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
0093913271bf8d2fdd6ecfdaa1383faeb403280e
24d8cf871b092b2d60fc85d5320e1bc761a7cbe2
/jEdit/rev9022-9450/left-trunk-9450/org/gjt/sp/jedit/textarea/MouseHandler.java
2fcef2924df07c64f93cdd895937c7d1bd42d2a9
[]
no_license
joliebig/featurehouse_fstmerge_examples
af1b963537839d13e834f829cf51f8ad5e6ffe76
1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad
refs/heads/master
2016-09-05T10:24:50.974902
2013-03-28T16:28:47
2013-03-28T16:28:47
9,080,611
3
2
null
null
null
null
UTF-8
Java
false
false
2,852
java
package org.gjt.sp.jedit.textarea; import java.awt.event.*; import org.gjt.sp.jedit.Registers; import org.gjt.sp.jedit.OperatingSystem; public class MouseHandler extends TextAreaMouseHandler { public MouseHandler(JEditTextArea textArea) { super(textArea); this.textArea = textArea; } public void mousePressed(MouseEvent evt) { showCursor(); control = (OperatingSystem.isMacOS() && evt.isMetaDown()) || (!OperatingSystem.isMacOS() && evt.isControlDown()); textArea.getInputHandler().resetLastActionCount(); quickCopyDrag = (textArea.isQuickCopyEnabled() && isMiddleButton(evt.getModifiers())); if(!quickCopyDrag) { textArea.requestFocus(); TextArea.focusedComponent = textArea; } if(textArea.getBuffer().isLoading()) return; int x = evt.getX(); int y = evt.getY(); dragStart = textArea.xyToOffset(x,y, !(textArea.getPainter().isBlockCaretEnabled() || textArea.isOverwriteEnabled())); dragStartLine = textArea.getLineOfOffset(dragStart); dragStartOffset = dragStart - textArea.getLineStartOffset( dragStartLine); if(isPopupTrigger(evt) && textArea.getRightClickPopup() != null) { if(textArea.isRightClickPopupEnabled()) textArea.handlePopupTrigger(evt); return; } dragged = false; textArea.blink = true; textArea.invalidateLine(textArea.getCaretLine()); clickCount = evt.getClickCount(); if(textArea.isDragEnabled() && textArea.selectionManager.insideSelection(x,y) && clickCount == 1 && !evt.isShiftDown()) { maybeDragAndDrop = true; textArea.moveCaretPosition(dragStart,false); return; } maybeDragAndDrop = false; if(quickCopyDrag) { doSingleClick(evt); } else { switch(clickCount) { case 1: doSingleClick(evt); break; case 2: doDoubleClick(); break; default: doTripleClick(); break; } } } public void mouseReleased(MouseEvent evt) { Selection sel = textArea.getSelectionAtOffset(dragStart); if(dragged && sel != null) { Registers.setRegister('%',textArea.getSelectedText(sel)); if(quickCopyDrag) { textArea.removeFromSelection(sel); Registers.paste((JEditTextArea) TextArea.focusedComponent, '%',sel instanceof Selection.Rect); TextArea.focusedComponent.requestFocus(); } } else if(!dragged && textArea.isQuickCopyEnabled() && isMiddleButton(evt.getModifiers())) { textArea.requestFocus(); TextArea.focusedComponent = textArea; textArea.setCaretPosition(dragStart,false); if(!textArea.isEditable()) textArea.getToolkit().beep(); else Registers.paste((JEditTextArea) textArea,'%',control); } else if(maybeDragAndDrop && !textArea.isMultipleSelectionEnabled()) { textArea.selectNone(); } dragged = false; } private JEditTextArea textArea; }
[ "joliebig@fim.uni-passau.de" ]
joliebig@fim.uni-passau.de
a3866fc7ad95259e24893c221bab1728a24a2b8b
22e506ee8e3620ee039e50de447def1e1b9a8fb3
/java_src/com/tencent/cos/xml/model/bucket/GetBucketACLRequest.java
1bc806ab4346baf05a6da935a36ed6e8c25bbff5
[]
no_license
Qiangong2/GraffitiAllianceSource
477152471c02aa2382814719021ce22d762b1d87
5a32de16987709c4e38594823cbfdf1bd37119c5
refs/heads/master
2023-07-04T23:09:23.004755
2021-08-11T18:10:17
2021-08-11T18:10:17
395,075,728
0
0
null
null
null
null
UTF-8
Java
false
false
722
java
package com.tencent.cos.xml.model.bucket; import com.tencent.qcloud.core.http.RequestBodySerializer; import java.util.Map; public final class GetBucketACLRequest extends BucketRequest { public GetBucketACLRequest(String bucket) { super(bucket); } @Override // com.tencent.cos.xml.model.CosXmlRequest public String getMethod() { return "GET"; } @Override // com.tencent.cos.xml.model.CosXmlRequest public Map<String, String> getQueryString() { this.queryParameters.put("acl", null); return super.getQueryString(); } @Override // com.tencent.cos.xml.model.CosXmlRequest public RequestBodySerializer getRequestBody() { return null; } }
[ "sassafrass@fasizzle.com" ]
sassafrass@fasizzle.com
12894291e25aa8cb38fa4d6cdd66bc7761b53374
ad64a14fac1f0d740ccf74a59aba8d2b4e85298c
/linkwee-supermarket-pull-jfqz/src/main/java/com/linkwee/openApi/TestGetToken.java
c3be9b949f7d0bf17393b5ead374844e230092ac
[]
no_license
zhangjiayin/supermarket
f7715aa3fdd2bf202a29c8683bc9322b06429b63
6c37c7041b5e1e32152e80564e7ea4aff7128097
refs/heads/master
2020-06-10T16:57:09.556486
2018-10-30T07:03:15
2018-10-30T07:03:15
193,682,975
0
1
null
2019-06-25T10:03:03
2019-06-25T10:03:03
null
UTF-8
Java
false
false
2,350
java
package com.linkwee.openApi; import java.util.HashMap; import java.util.Map; import com.linkwee.xoss.util.HttpClientUtil; public class TestGetToken { public static void main(String[] args) { // TODO Auto-generated method stub //获取token接口 //获取token接口 String reqUrl = "http://opentest.9f.cn/openweb/getToken"; Map<String, String> params = new HashMap<String, String>(); params.put("appId", "TezqnSOXG2FF50pt"); params.put("appSecret", "3054faa9d6d5b1c75f257ae353027cd9"); params.put("userId", "d94e51ce631f46bcb471726b2d8b392d"); String res =null; try { res = HttpClientUtil.httpPost(reqUrl, params); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } //{"message":"成功","data":{"token":"54365dd0d99769d064dfad1aaac01f3e"},"code":"SUCCESS"} System.out.println(res); //获取用户的资金信息接口 //获取用户的资金信息接口 /*String reqUrl = "http://opentest.9f.cn/openweb/api/member/queryAccountInfo?token="; Map<String, String> params = new HashMap<String, String>(); params.put("appId", "TezqnSOXG2FF50pt"); params.put("appSecret", "3054faa9d6d5b1c75f257ae353027cd9"); params.put("userId", "d94e51ce631f46bcb471726b2d8b392d"); String res =null; try { res = HttpClientUtil.httpsGet(reqUrl+"0572909c8f411fda53f3cdd4bb609012"); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } //{"message":"成功","data":{"token":"54365dd0d99769d064dfad1aaac01f3e"},"code":"SUCCESS"} System.out.println(res);*/ //获取产品的接口 //获取产品的接口 /* String reqUrl = "http://opentest.9f.cn/openweb/p/getProductList?token="; Map<String, String> params = new HashMap<String, String>(); params.put("appId", "TezqnSOXG2FF50pt"); params.put("appSecret", "3054faa9d6d5b1c75f257ae353027cd9"); params.put("userId", "d94e51ce631f46bcb471726b2d8b392d"); String res =null; try { res = HttpClientUtil.httpsGet(reqUrl+"492a4c435a7b8360e51d1251e25d07be"); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } //{"message":"成功","data":{"token":"54365dd0d99769d064dfad1aaac01f3e"},"code":"SUCCESS"} System.out.println(res);*/ } }
[ "liqimoon@qq.com" ]
liqimoon@qq.com
c41b7be271a5fe882cc335fd7a990508070a5a3e
dd682af5fcb81a74deab62d8c95777cd143982dd
/ch02/src/ch02/Ch02Ex02_05.java
6909eebd3e6c5575887a8f52be2df79253d2c387
[]
no_license
zhixiandev/work_java
969d20fc9a4228710cc9fd80129e6ad985c03769
299457990b6416792a436aafe3b10be3f27d89ae
refs/heads/master
2020-03-18T03:43:35.731586
2018-07-28T09:21:35
2018-07-28T09:21:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
782
java
package ch02; import java.util.*; public class Ch02Ex02_05 { public static void main(String[] args) { /*다음 두 값을 키보드로 입력받아 곱셈 계산식을 출력하는 프로그램을 작성하라. (소수는 Float.parseFloat()을 이용하여 String을 float으로 변경) 추의 무게 = 49, 중력의 비율 = 0.2683 */ Scanner scanner = new Scanner(System.in); System.out.println("추의 무게 49, 중력의비율 0.2683을 키보드로 입력해주세요"); String strNum1 = scanner.nextLine(); String strNum2 = scanner.nextLine(); int num1 = Integer.parseInt(strNum1); float num2 = Float.parseFloat(strNum2); float mul = (num1*num2); System.out.printf("%d x %.6f = %.6f", num1, num2, mul); } }
[ "KOITT@KOITT-PC" ]
KOITT@KOITT-PC
7042633e4d4d6b968bf13bd69cd2ebb0145c1f05
ada228ab4a35f1d9cb62192a2b33fa6dbc2d8453
/src/main/java/som/lib/vector/Vector2D.java
c34f7d86537f872451d40b7dca11bb9b1a086270
[]
no_license
kennycason/selforganizingmap
27a0271f0ac8f917bb7b8b5e8ea0a3136f30654b
b7e5e0d27caea4d3db3480abd30cdaa28267f733
refs/heads/master
2021-01-16T21:00:59.887030
2018-08-25T19:57:46
2018-08-25T19:57:46
10,718,384
0
0
null
null
null
null
UTF-8
Java
false
false
542
java
package som.lib.vector; public class Vector2D extends Vector { public Vector2D() { this(0, 0); } public Vector2D(double x, double y) { super(x, y); } public double x() { return get(0); } public void x(double x) { set(0, x); } public double y() { return get(1); } public void y(double y) { set(1, y); } public Vector2D unit() { Vector2D v = new Vector2D(); double m = magnitude(); v.x(x() / m); v.y(y() / m); return v; } public Vector2D clone() { return new Vector2D(x(), y()); } }
[ "kenneth.cason@gmail.com" ]
kenneth.cason@gmail.com
497b6a2e05669af27a2d06a242d075a8352828e3
f35f4008d60bf04e6e3236a60514693cae296d42
/app/src/main/java/com/google/android/gms/drive/realtime/internal/event/TextDeletedDetails.java
fe7d19f104c2863bba5d87d78f091c48bf55bfd9
[]
no_license
alsmwsk/golfmon
ef0c8e8c7ecaa13371deed40f7e20468b823b0e9
740132d47185bfe9ec9d6774efbde5404ea8cf6d
refs/heads/master
2020-03-22T11:16:01.438894
2018-07-06T09:47:10
2018-07-06T09:47:10
139,959,669
0
0
null
null
null
null
UTF-8
Java
false
false
1,035
java
package com.google.android.gms.drive.realtime.internal.event; import android.os.Parcel; import android.os.Parcelable.Creator; import com.google.android.gms.common.internal.safeparcel.SafeParcelable; public class TextDeletedDetails implements SafeParcelable { public static final Parcelable.Creator<TextDeletedDetails> CREATOR = new e(); final int CK; final int Ti; final int mIndex; TextDeletedDetails(int paramInt1, int paramInt2, int paramInt3) { this.CK = paramInt1; this.mIndex = paramInt2; this.Ti = paramInt3; } public int describeContents() { return 0; } public void writeToParcel(Parcel paramParcel, int paramInt) { e.a(this, paramParcel, paramInt); } } /* Location: C:\Users\TGKIM\Downloads\작업폴더\리버싱\androidReversetools\jd-gui-0.3.6.windows\com.appg.golfmon-1-dex2jar.jar * Qualified Name: com.google.android.gms.drive.realtime.internal.event.TextDeletedDetails * JD-Core Version: 0.7.0.1 */
[ "alsmwsk@naver.com" ]
alsmwsk@naver.com
6bbcb6db2855b482e815e871542b0ca2bda27068
5ca3901b424539c2cf0d3dda52d8d7ba2ed91773
/src_procyon/y/f/i/U_1.java
a586697fce53aa0ce2115f7576de95891dbf2d03
[]
no_license
fjh658/bindiff
c98c9c24b0d904be852182ecbf4f81926ce67fb4
2a31859b4638404cdc915d7ed6be19937d762743
refs/heads/master
2021-01-20T06:43:12.134977
2016-06-29T17:09:03
2016-06-29T17:09:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,820
java
package y.f.i; class U { private final Object b; private final double c; private final double d; private double e; final double a; private final double f; private double g; private double h; private final byte i; private boolean j; private U(final Object b, final double n, final double f, final double c, final double d, final byte i, final double n2, final double n3) { final int f2 = v.f; this.b(n2); this.c(n3); this.a = n * 0.5; this.f = f; this.b = b; this.a(Double.NaN); this.i = i; this.c = c; this.d = d; Label_0110: { switch (i) { case 0: case 3: { this.b(false); if (f2 != 0) { break Label_0110; } return; } case 1: case 2: { this.b(true); if (f2 != 0) { break; } return; } } } this.b(true); } public byte a() { return this.i; } static U a(final Object o, final double n, final double n2, final double n3, final boolean b, final double n4, final boolean b2) { return a(o, n, n2, n3, b, n4, b2, -1.7976931348623157E308, Double.MAX_VALUE); } static U a(final Object o, final double n, final double n2, final double n3, final boolean b, final double n4, final boolean b2, final double n5, final double n6) { if (n3 > n4) { return new U(o, n, n2, n4, n3, (byte)(b2 ? (b ? 0 : 2) : (b ? 1 : 3)), n5, n6); } return new U(o, n, n2, n3, n4, (byte)(b ? (b2 ? 0 : 2) : (b2 ? 1 : 3)), n5, n6); } public void a(final boolean b) { this.b(b); } public boolean b() { return this.j; } public Object c() { return this.b; } public double d() { return this.e; } public void a(final double e) { this.e = e; } public double e() { return this.g; } public void b(final double g) { this.g = g; } public double f() { return this.h; } public void c(final double h) { this.h = h; } public void b(final boolean j) { this.j = j; } static byte a(final U u) { return u.i; } static double b(final U u) { return u.d; } static double c(final U u) { return u.c; } static double d(final U u) { return u.e; } static double e(final U u) { return u.f; } }
[ "manouchehri@riseup.net" ]
manouchehri@riseup.net
2969d12304a06807f2e726868d17fba1bfa31fad
f1b5543affa2bc6cfbc44ec0587a0cb8aa6195d4
/src/main/java/com/eomcs/lang/ex05/Exam0120.java
b01d41ffcf086a58fc28088919f4cea2e1413f7b
[]
no_license
eomjinyoung/bitcamp-20201221
1b5d5ebe5c17a0af9e123df0e5bdd37203372ecb
582c105d48a5369e1d4a4eb0a7e91f4ed7823111
refs/heads/main
2023-05-12T20:01:45.249224
2021-06-03T10:12:59
2021-06-03T10:12:59
326,534,759
1
0
null
null
null
null
UTF-8
Java
false
false
1,158
java
package com.eomcs.lang.ex05; //# 산술 연산자 : 우선 순위 // public class Exam0120 { public static void main(String[] args) { // *, /, % 는 +, - 보다 먼저 계산된다. System.out.println(2 + 3 * 7); // 3 * 7을 먼저 수행한다. System.out.println(3 * 7 + 2); // 3 * 7을 먼저 수행한다. // 같은 우선순위에서는 먼저 나온 것을 먼저 계산한다. System.out.println(3 * 8 / 2); // 3 * 8을 먼저 계산 System.out.println(8 / 2 * 3); // 8 / 2를 먼저 계산 // 같은 우선순위의 연산자는 실행 순서가 바뀌더라도 상관없다. // 강제로 실행 순서를 바꾸고 싶다면 // 괄호()를 묶어라! System.out.println((2 + 3) * 7); // = 35 } } /* # 연산자 우선 순위 괄호: () 후위 연산자: a++, a-- 전위 연산자: ++a, --a, 단항 연산자(+, -) *, /, % +, - 비트이동 연산자: <<, >>, >>> 관계 연산자: <, >, <=, >=, instanceof 등위 연산자: ==, != & ^ | 논리 연산자 AND: && 논리 연산자 OR: || 삼항 연산자: (조건) ? 값 : 값 할당 연산자: =, +=, -=, *=, /=, %=, &=, ^=, |=, <<=, >>=, >>>= */
[ "jinyoung.eom@gmail.com" ]
jinyoung.eom@gmail.com
6ffa626cf6b0b8a3a44e8947a5da61b8688cf579
ec1821602e059e58a3509ac528201cbf5470b377
/eclipse/portal/plugins/com.liferay.ide.eclipse.layouttpl.ui/src/com/liferay/ide/eclipse/layouttpl/ui/wizard/NewLayoutTplWizard.java
ee04e22bc1bf6e9d968892e012c1ff380215fa6f
[]
no_license
adrianrm/liferay-ide
058ef2c3b4c2088bb01b38b84bba8c789c022337
1b88e31e08c38f95aae6e014f59a7093a5e14123
refs/heads/master
2021-01-16T22:47:35.590720
2011-08-12T08:37:39
2011-08-12T08:37:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,770
java
/******************************************************************************* * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. * *******************************************************************************/ package com.liferay.ide.eclipse.layouttpl.ui.wizard; import com.liferay.ide.eclipse.layouttpl.core.operation.INewLayoutTplDataModelProperties; import com.liferay.ide.eclipse.layouttpl.core.operation.NewLayoutTplDataModelProvider; import com.liferay.ide.eclipse.layouttpl.ui.LayoutTplUI; import java.lang.reflect.InvocationTargetException; import org.eclipse.core.resources.IFile; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jface.text.templates.TemplateContextType; import org.eclipse.jface.text.templates.persistence.TemplateStore; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.ui.INewWizard; import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbenchPage; import org.eclipse.ui.PartInitException; import org.eclipse.ui.PlatformUI; import org.eclipse.ui.ide.IDE; import org.eclipse.wst.common.frameworks.datamodel.IDataModel; import org.eclipse.wst.common.frameworks.datamodel.IDataModelOperation; import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider; import org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard; /** * @author Greg Amerson */ @SuppressWarnings("restriction") public class NewLayoutTplWizard extends DataModelWizard implements INewWizard, INewLayoutTplDataModelProperties { public static final String LAYOUTTPL_LAYOUT_PAGE = "layoutTplLayoutPage"; public static final String LAYOUTTPL_PAGE = "layoutTplPage"; public static final String[] WIZARD_PAGES = new String[] { LAYOUTTPL_PAGE, LAYOUTTPL_LAYOUT_PAGE }; protected NewLayoutTplWizardPage layoutTplPage; protected NewLayoutTplLayoutWizardPage layoutTplStartPage; public NewLayoutTplWizard() { this(null); } public NewLayoutTplWizard(IDataModel dataModel) { super(dataModel); this.setWindowTitle("New Layout Template"); this.setDefaultPageImageDescriptor(getDefaultImageDescriptor()); } public void init(IWorkbench workbench, IStructuredSelection selection) { getDataModel(); } @Override protected void doAddPages() { layoutTplPage = new NewLayoutTplWizardPage(getDataModel(), LAYOUTTPL_PAGE); addPage(layoutTplPage); layoutTplStartPage = new NewLayoutTplLayoutWizardPage(getDataModel(), LAYOUTTPL_LAYOUT_PAGE); addPage(layoutTplStartPage); } protected ImageDescriptor getDefaultImageDescriptor() { return LayoutTplUI.imageDescriptorFromPlugin(LayoutTplUI.PLUGIN_ID, "/icons/wizban/layout_template_wiz.png"); } @Override protected IDataModelProvider getDefaultProvider() { TemplateStore templateStore = LayoutTplUI.getDefault().getTemplateStore(); TemplateContextType contextType = LayoutTplUI.getDefault().getTemplateContextRegistry().getContextType(LayoutTplTemplateContextTypeIds.NEW); return new NewLayoutTplDataModelProvider(templateStore, contextType) { @Override public IDataModelOperation getDefaultOperation() { return new AddLayoutTplOperation(getDataModel(), templateStore, contextType); } }; } protected void openEditor(final IFile file) { if (file != null) { getShell().getDisplay().asyncExec(new Runnable() { public void run() { try { IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); IDE.openEditor(page, file, true); } catch (PartInitException e) { LayoutTplUI.logError(e); } } }); } } protected void openWebFile(IFile file) { try { openEditor(file); } catch (Exception cantOpen) { LayoutTplUI.logError(cantOpen); } } @Override protected void postPerformFinish() throws InvocationTargetException { super.postPerformFinish(); IFile layoutTplFile = (IFile) getDataModel().getProperty(LAYOUT_TPL_FILE_CREATED); if (layoutTplFile != null && layoutTplFile.exists()) { openWebFile(layoutTplFile); } } @Override protected boolean runForked() { return false; } }
[ "gregory.amerson@liferay.com" ]
gregory.amerson@liferay.com
eef72c272c1a266c782ba0d68639ac5da4c5ce13
f63f198b0ca6771d1eb3aba003907fde921ed4d4
/education-web-api/src/main/java/com/jimmy/web/api/controller/admin/DictionaryController.java
8a67128286abc7c5d5515b4c67836942bc2b3821
[]
no_license
aidenyan/education
4c7bc652a380fde09cfef391e077284654e957bc
d237d771ec5f05bf310ae7bd1d9a95438358f62c
refs/heads/master
2022-07-07T08:06:56.957303
2019-09-07T02:30:00
2019-09-07T02:30:00
190,502,159
0
0
null
2022-06-17T02:11:33
2019-06-06T02:42:18
JavaScript
GB18030
Java
false
false
3,235
java
package com.jimmy.web.api.controller.admin; import com.jimmy.core.base.Page; import com.jimmy.dao.entity.Dictionary; import com.jimmy.dao.entity.DictionaryItem; import com.jimmy.mvc.common.base.Result; import com.jimmy.mvc.common.base.ResultBuilder; import com.jimmy.mvc.common.model.dto.DictionaryDTO; import com.jimmy.mvc.common.model.dto.DictionaryItemDTO; import com.jimmy.mvc.common.model.transfer.DictionaryDTOTransfer; import com.jimmy.mvc.common.model.transfer.DictionaryItemDTOTransfer; import com.jimmy.service.DictionaryService; import com.jimmy.web.api.controller.BaseController; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; import java.util.List; /** * @ClassName: ClassRoomController * @Description: * @author: aiden * @date: 2019/7/11/011. */ @Api(value = "字典信息处理", description = "字典信息处理API") @Controller @RequestMapping("/admin/dictionary") public class DictionaryController extends BaseController { @Autowired private DictionaryService dictionaryService; @ResponseBody @GetMapping("/page") @ApiOperation("字典的分页信息") public Result<Page<DictionaryDTO>> page(String name, Integer pageNo, Integer pageSize) { this.setPage(pageNo, pageSize); List<Dictionary> list = dictionaryService.list(name); Page<DictionaryDTO> resultList = getPageResult(list, target -> DictionaryDTOTransfer.INSTANCE.toDictionaryDTOList(target)); return ResultBuilder.ok(resultList); } @ResponseBody @PostMapping("/save") @ApiOperation("保存字典信息") public Result<Void> save(@Validated @RequestBody DictionaryDTO dictionaryDTO) { dictionaryService.save(DictionaryDTOTransfer.INSTANCE.toDictionary(dictionaryDTO)); return ResultBuilder.ok(null); } @ResponseBody @PostMapping("/item/save") @ApiOperation("保存字典详细信息") public Result<Void> save(@Validated @RequestBody DictionaryItemDTO dictionaryItemDTO) { dictionaryService.save(DictionaryItemDTOTransfer.INSTANCE.toDictionaryItem(dictionaryItemDTO)); return ResultBuilder.ok(null); } @ResponseBody @GetMapping("/item") @ApiOperation("字典详细的列表") public Result<List<DictionaryItemDTO>> info(Long id) { List<DictionaryItem> dictionaryItemList = dictionaryService.list(id); return ResultBuilder.ok(DictionaryItemDTOTransfer.INSTANCE.toDictionaryItemDTOList(dictionaryItemList)); } @ResponseBody @PostMapping("/deleted/{id}") @ApiOperation("删除字典信息") public Result<Void> deleted(@PathVariable("id") Long id) { dictionaryService.deletedDictionary(id); return ResultBuilder.ok(null); } @ResponseBody @PostMapping("/item/deleted/{id}") @ApiOperation("删除字典信息") public Result<Void> deletedItem(@PathVariable("id") Long id) { dictionaryService.deletedDictionaryItem(id); return ResultBuilder.ok(null); } }
[ "yanyifei@zcckj.com" ]
yanyifei@zcckj.com
59a014ddd3d2e3fbf65676502e08235291494913
db469e5705930874a00c23d9a0abe2da34902acb
/src/main/java/hprose/server/HproseClients.java
a30a69bd682c23dab00b9b568c17ddb68c86f3cd
[ "MIT" ]
permissive
AngryOrange/hprose-java
0b546c9fd61f45512989a6207830ce2976335cec
147fb45a4582ce4365e3ce39af11e850003acfca
refs/heads/master
2021-01-16T20:54:52.397980
2016-06-27T15:59:56
2016-06-27T15:59:56
62,102,854
1
0
null
2016-06-28T02:18:00
2016-06-28T02:18:00
null
UTF-8
Java
false
false
2,225
java
/**********************************************************\ | | | hprose | | | | Official WebSite: http://www.hprose.com/ | | http://www.hprose.org/ | | | \**********************************************************/ /**********************************************************\ * * * HproseClients.java * * * * hprose clients interface for Java. * * * * LastModified: May 3, 2016 * * Author: Ma Bingyao <andot@hprose.com> * * * \**********************************************************/ package hprose.server; import hprose.common.HproseException; import hprose.util.concurrent.Action; import hprose.util.concurrent.Promise; public interface HproseClients { Integer[] idlist(String topic) throws HproseException; boolean exist(String topic, Integer id) throws HproseException; void broadcast(String topic, Object result) throws HproseException; void broadcast(String topic, Object result, Action<Integer[]> callback) throws HproseException; void multicast(String topic, Integer[] ids, Object result) throws HproseException; void multicast(String topic, Integer[] ids, Object result, Action<Integer[]> callback) throws HproseException; void unicast(String topic, Integer id, Object result) throws HproseException; void unicast(String topic, Integer id, Object result, Action<Boolean> callback) throws HproseException; Promise<Integer[]> push(String topic, Object result) throws HproseException; Promise<Integer[]> push(String topic, Integer[] ids, Object result) throws HproseException; Promise<Boolean> push(String topic, Integer id, Object result) throws HproseException; }
[ "mabingyao@gmail.com" ]
mabingyao@gmail.com
6ae992e5a7107eb608ea633929dbc18d3a2c9f47
9a6f5a64768b4882836fc67bd185568f58af19dd
/cps/src/main/java/com/jdcloud/sdk/service/cps/client/CreateKeypairsExecutor.java
702af0c7a62e60cb372cee891bd92396ba1f8244
[ "Apache-2.0" ]
permissive
zhangycjob/jdcloud-sdk-java
20362dd311465966f90984f8f1ddc775fcc0fbfa
662c7617574ddfcac5c769dc0c7cf3a7eedadcff
refs/heads/master
2020-09-05T15:34:30.767907
2019-11-22T04:11:57
2019-11-22T04:11:57
220,145,202
0
0
Apache-2.0
2019-11-07T03:38:43
2019-11-07T03:38:43
null
UTF-8
Java
false
false
1,376
java
/* * Copyright 2018 JDCLOUD.COM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:#www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * 云物理服务器 * 云物理服务器密钥对操作相关的接口 * * OpenAPI spec version: v1 * Contact: * * NOTE: This class is auto generated by the jdcloud code generator program. */ package com.jdcloud.sdk.service.cps.client; import com.jdcloud.sdk.client.JdcloudExecutor; import com.jdcloud.sdk.service.JdcloudResponse; import com.jdcloud.sdk.service.cps.model.CreateKeypairsResponse; /** * 创建密钥对 */ class CreateKeypairsExecutor extends JdcloudExecutor { @Override public String method() { return "PUT"; } @Override public String url() { return "/regions/{regionId}/keypairs"; } @Override public Class<? extends JdcloudResponse> returnType() { return CreateKeypairsResponse.class; } }
[ "tancong@jd.com" ]
tancong@jd.com
8999f4457cd0a7ece83ab1385377d0342a6627ac
91dfca9e91f299c1036c37c98bffd1922447c4e7
/newBusinessServices/src/com/csc/fsg/nba/workflow/api/rest/UnlockWorkPreProcessor.java
55c23223d93ff2ceaf3ad72fe3adf1f4def8abfd
[]
no_license
gajendrasinghthakur/SpringBootnMicroservices
7a1d016d932b70b13706ad13224d52c9488b7008
96b42b1250fb25a0b78f4ca088015d6ef07f1dd6
refs/heads/master
2020-07-03T10:54:19.565991
2019-08-12T08:57:01
2019-08-12T08:57:01
201,883,128
0
0
null
null
null
null
UTF-8
Java
false
false
2,873
java
package com.csc.fsg.nba.workflow.api.rest; /* * *******************************************************************************<BR> * Copyright 2015, Computer Sciences Corporation. All Rights Reserved.<BR> * * CSC, the CSC logo, nbAccelerator, and csc.com are trademarks or registered * trademarks of Computer Sciences Corporation, registered in the United States * and other jurisdictions worldwide. Other product and service names might be * trademarks of CSC or other companies.<BR> * * Warning: This computer program is protected by copyright law and international * treaties. Unauthorized reproduction or distribution of this program, or any * portion of it, may result in severe civil and criminal penalties, and will be * prosecuted to the maximum extent possible under the law.<BR> * *******************************************************************************<BR> */ import java.util.Iterator; import java.util.List; import com.csc.fs.ObjectRepository; import com.csc.fs.Result; import com.csc.fs.dataobject.accel.workflow.ItemID; import com.csc.fs.sa.PreProcess; import com.csc.fs.sa.SystemAPI; import com.csc.fs.sa.SystemService; /** * UnlockWorkPreProcessor contains pre-process logic for Unlocking work items * <p> * <b>Modifications:</b><br> * <table border=0 cellspacing=5 cellpadding=5> * <thead> * <th align=left>Project</th><th align=left>Release</th><th align=left>Description</th> * </thead> * <tr><td>NBA331</td><td>Version NB-1401</td><td>AWD REST</td></tr> * </table> * <p> * @author CSC FSG Developer * @version NB-1402 * @since New Business Accelerator - Version NB-1401 */ public class UnlockWorkPreProcessor extends RestPreProcessor implements PreProcess { /** * Pre-process logic for system api. * */ public Result systemApi(List input, SystemService service, SystemAPI api, ObjectRepository or) { Result result = super.systemApi(input, service, api, or); //NBA331.1 ItemID initalItemID = null; StringBuffer buff = new StringBuffer(); Iterator it = input.iterator(); while (it.hasNext()){ Object obj = it.next(); if (obj instanceof ItemID){ ItemID itemIdDO = (ItemID) obj; if (initalItemID == null){ initalItemID = itemIdDO; buff.append(itemIdDO.getItemID()); } else { buff.append("," + itemIdDO.getItemID()); it.remove(); } } } if (initalItemID != null){ initalItemID.setItemID(buff.toString()); } return result; //NBA331.1 } /** * Pre-process logic for system service. * */ public Result systemService(List input, SystemService service, ObjectRepository or) { return null; } }
[ "gthakur3@dxc.com" ]
gthakur3@dxc.com
2655552e37b224942fd2a18aaa830802a68ee810
f025182e8db3b7174b1d4954f60bf4e571261486
/test/com/basejava/webapp/storage/AbstractStorageTest.java
54d21947194df3cbeecff67b7e20961e02843749
[]
no_license
AnatolVishnyakov/basejava
718ae3f19994e950ef8f3c4f8e1c38304c1fbae1
a4fa9463fb6cffc22b7ee9b01268b7123c0ae3c8
refs/heads/master
2020-04-04T14:51:19.035657
2019-08-17T13:49:50
2019-08-17T13:49:50
156,015,776
0
0
null
null
null
null
UTF-8
Java
false
false
3,441
java
package com.basejava.webapp.storage; import com.basejava.webapp.Config; import com.basejava.webapp.exception.ExistStorageException; import com.basejava.webapp.exception.NotExistStorageException; import com.basejava.webapp.model.ContactType; import com.basejava.webapp.model.Resume; import org.junit.Before; import org.junit.Test; import java.io.File; import java.util.Arrays; import java.util.Comparator; import java.util.List; import static com.basejava.webapp.ResumeTestData.*; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; public abstract class AbstractStorageTest { protected static final File PATH_STORAGE_DIRECTORY = Config.getInstance().getStorageDirectory(); protected static final Comparator<Resume> RESUME_COMPARATOR = Comparator .comparing(Resume::getFullName) .thenComparing(Resume::getUuid); protected final Storage storage; protected AbstractStorageTest(Storage storage) { this.storage = storage; } @Before public void setUp() { storage.clear(); storage.save(RESUME_1); storage.save(RESUME_2); storage.save(RESUME_3); } @Test public void clear() { storage.clear(); assertEquals(0, storage.size()); } @Test public void getAllSorted() { List<Resume> actualValue = storage.getAllSorted(); assertEquals(3, actualValue.size()); List<Resume> expected = Arrays.asList(RESUME_1, RESUME_2, RESUME_3); expected.sort(RESUME_COMPARATOR); assertEquals(expected, actualValue); } @Test public void emptyContacts() { storage.clear(); storage.save(RESUME_5); List<Resume> resumes = storage.getAllSorted(); assertEquals(1, resumes.size()); resumes.forEach(resume -> assertEquals(0, resume.getContacts().size())); } @Test public void update() { Resume expectedResume = new Resume(UUID_1, "Francisco Domingo Carlos Andres Sebastian D'anconia"); expectedResume.setContact(ContactType.WEBSITE, "www.testsite.com"); expectedResume.setContact(ContactType.EMAIL, "test@testsite.com"); storage.update(expectedResume); Resume actualResume = storage.get(UUID_1); assertEquals(expectedResume, actualResume); } @Test(expected = NotExistStorageException.class) public void updateNotExist() { storage.update(RESUME_4); } @Test public void save() { storage.save(RESUME_4); assertEquals(4, storage.size()); assertEquals(RESUME_4, storage.get(UUID_4)); } @Test(expected = ExistStorageException.class) public void saveExist() { storage.save(RESUME_3); } @Test(expected = NotExistStorageException.class) public void delete() { storage.delete(UUID_2); assertEquals(2, storage.size()); storage.get(UUID_2); } @Test public void size() { assertEquals(3, storage.size()); } @Test public void get() { assertEquals(RESUME_1, storage.get(UUID_1)); assertEquals(RESUME_2, storage.get(UUID_2)); assertEquals(RESUME_3, storage.get(UUID_3)); } @Test public void getIfEmptyContacts() { RESUME_1.getContacts().clear(); assertEquals(0, RESUME_1.getContacts().size()); assertNull(RESUME_1.getContact(ContactType.WEBSITE)); } }
[ "malfenius@gmail.com" ]
malfenius@gmail.com
0a26774549ededf8f48b0140f0299ac5d8d9eef3
16f5d591c90d6f80fc7055396a197e6c17374542
/firefly/src/main/java/com/firefly/server/http2/ServerSecureDecoder.java
1b340b25ea33a7ba579252c2b36389d9ca476908
[ "Apache-2.0" ]
permissive
awei4home/firefly
118a503f0490180f397697918512d766d0803b41
c416d8f2c62399a4fc58928b21a6552f15a49604
refs/heads/master
2021-01-18T02:07:16.005808
2016-05-06T08:11:04
2016-05-06T08:11:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,047
java
package com.firefly.server.http2; import java.nio.ByteBuffer; import com.firefly.codec.http2.stream.HTTPConnection; import com.firefly.net.DecoderChain; import com.firefly.net.Session; import com.firefly.net.tcp.ssl.SSLSession; import com.firefly.utils.log.Log; import com.firefly.utils.log.LogFactory; public class ServerSecureDecoder extends DecoderChain { private static Log log = LogFactory.getInstance().getLog("firefly-system"); public ServerSecureDecoder(DecoderChain next) { super(next); } @Override public void decode(ByteBuffer buf, Session session) throws Throwable { if (session.getAttachment() instanceof HTTPConnection) { HTTPConnection connection = (HTTPConnection) session.getAttachment(); ByteBuffer plaintext; switch (connection.getHttpVersion()) { case HTTP_2: plaintext = ((HTTP2ServerConnection) connection).getSSLSession().read(buf); break; case HTTP_1_1: plaintext = ((HTTP1ServerConnection) connection).getSSLSession().read(buf); break; default: throw new IllegalStateException( "server does not support the http version " + connection.getHttpVersion()); } if (plaintext != null && next != null) next.decode(plaintext, session); } else if (session.getAttachment() instanceof HTTP2ServerSSLHandshakeContext) { HTTP2ServerSSLHandshakeContext context = (HTTP2ServerSSLHandshakeContext) session.getAttachment(); SSLSession sslSession = context.sslSession; ByteBuffer plaintext = sslSession.read(buf); if (plaintext != null && plaintext.hasRemaining()) { log.debug("server session {} handshake finished and received cleartext size {}", session.getSessionId(), plaintext.remaining()); if (session.getAttachment() instanceof HTTPConnection) { if (next != null) { next.decode(plaintext, session); } } else { throw new IllegalStateException("the server http connection has not been created"); } } else { log.debug("server ssl session {} is shaking hands", session.getSessionId()); } } } }
[ "qptkk@163.com" ]
qptkk@163.com
02a5910856b671079dd1481726d1b3365985d09d
63f751519e64ac067e11189edaf6a34aeb3e5dba
/1.JavaSyntax/src/com/javarush/task/task09/task0914/Solution.java
f24fc8ea3ab02c48e3443b4179fbf5f110be32d7
[]
no_license
sharygin-vic/JavaRushTasks
8507b96c2103828be4c8c3de29f6ad446b33b9df
88e383a10a64286a2750bd67ec7f27d1a10a21dd
refs/heads/master
2021-01-21T18:25:20.400669
2017-08-01T22:50:45
2017-08-01T22:50:45
92,046,759
1
0
null
null
null
null
UTF-8
Java
false
false
885
java
package com.javarush.task.task09.task0914; /* Группа перехвата исключений */ public class Solution { public static void main(String[] args) throws Exception { //напишите тут ваш код try { method1(); } //напишите тут ваш код catch (Exception3 e) { } catch (Exception2 e) { } catch (Exception1 e) { } } public static void method1() throws Exception1, Exception2, Exception3 { int i = (int) (Math.random() * 3); if (i == 0) throw new Exception1(); if (i == 1) throw new Exception2(); if (i == 2) throw new Exception3(); } } class Exception1 extends Exception { } class Exception2 extends Exception1 { } class Exception3 extends Exception2 { }
[ "lasprog@mail.ru" ]
lasprog@mail.ru
044330098a6229a66b25ece1f6e2ed3c812ea26b
f77d04f1e0f64a6a5e720ce24b65b1ccb3c546d2
/zyj-hec-master/zyj-hec/src/main/java/com/hand/hec/wfl/dto/WflDocBizRuleAssign.java
904eff8a08f80146d750ff0aac16ebf3a11b31c0
[]
no_license
floodboad/zyj-hssp
3139a4e73ec599730a67360cd04aa34bc9eaf611
dc0ef445935fa48b7a6e86522ec64da0042dc0f3
refs/heads/master
2023-05-27T21:28:01.290266
2020-01-03T06:21:59
2020-01-03T06:29:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,049
java
package com.hand.hec.wfl.dto; /** Auto Generated By Hap Code Generator **/ import javax.persistence.GeneratedValue; import javax.persistence.Id; import com.hand.hap.core.BaseConstants; import com.hand.hap.mybatis.annotation.ExtensionAttribute; import com.hand.hap.mybatis.common.query.JoinColumn; import com.hand.hap.mybatis.common.query.JoinOn; import com.hand.hap.mybatis.common.query.JoinTable; import com.hand.hap.mybatis.common.query.Where; import com.hand.hec.fnd.dto.FndBusinessRule; import lombok.*; import org.hibernate.validator.constraints.Length; import javax.persistence.Table; import javax.persistence.Transient; import javax.persistence.criteria.JoinType; import com.hand.hap.system.dto.BaseDTO; @ExtensionAttribute(disable = true) @Table(name = "wfl_doc_biz_rule_assign") @Getter @Setter @AllArgsConstructor @NoArgsConstructor @Builder @ToString public class WflDocBizRuleAssign extends BaseDTO { public static final String FIELD_ASSIGN_ID = "assignId"; public static final String FIELD_DOC_PROCESS_ASSIGN_ID = "docProcessAssignId"; public static final String FIELD_BUSINESS_RULE_ID = "businessRuleId"; public static final String FIELD_ENABLED_FLAG = "enabledFlag"; /** * ID */ @Id @GeneratedValue @Where private Long assignId; /** * 单据流程分配ID */ @Where private Long docProcessAssignId; /** * 权限规则ID */ @Where @JoinTable(name = "businessRuleJoin", type = JoinType.LEFT, target = FndBusinessRule.class, joinMultiLanguageTable = true, on = {@JoinOn(joinField = FndBusinessRule.FIELD_BUSINESS_RULE_ID), @JoinOn(joinField = BaseDTO.FIELD_LANG, joinExpression = BaseConstants.PLACEHOLDER_LOCALE)}) private Long businessRuleId; @Transient @JoinColumn(joinName = "businessRuleJoin", field = FndBusinessRule.FIELD_BUSINESS_RULE_NAME) private String businessRuleName; /** * 启用标志 */ @Length(max = 1) private String enabledFlag; }
[ "1961187382@qq.com" ]
1961187382@qq.com
233b6b5dfa6fc9fb54f16d1edd129d5ce3023813
34120b19916f363fe6824eb61ca904b0414729ec
/web/src/main/java/com/alnpet/service/DefaultOrderService.java
2718fb0b64a94dab03f87f151aa30dabf0a13a9c
[]
no_license
alnpet/zeus
a3eaf1e92164aa63f5ccabb1a95119d2d016c217
1641f106c4853a48f714a669b836aec009f7d90a
refs/heads/master
2016-08-08T02:18:54.234228
2015-05-17T09:44:51
2015-05-17T09:44:51
24,521,966
0
0
null
null
null
null
UTF-8
Java
false
false
3,121
java
package com.alnpet.service; import java.util.List; import org.unidal.dal.jdbc.DalException; import org.unidal.dal.jdbc.DalNotFoundException; import org.unidal.lookup.annotation.Inject; import com.alnpet.dal.trx.Address; import com.alnpet.dal.trx.AddressDao; import com.alnpet.dal.trx.AddressEntity; import com.alnpet.dal.trx.Coupon; import com.alnpet.dal.trx.CouponDao; import com.alnpet.dal.trx.CouponEntity; import com.alnpet.dal.trx.Order; import com.alnpet.dal.trx.OrderDao; import com.alnpet.dal.trx.OrderEntity; public class DefaultOrderService implements OrderService { @Inject private AddressDao m_addressDao; @Inject private CouponDao m_couponDao; @Inject private OrderDao m_orderDao; private Order createOrder(int userId, Address address, Coupon coupon) throws DalException { Order order = new Order(); order.setUserId(userId); order.setAddressId(address.getId()); order.setPrice(coupon.getPrice()); order.setCoupon(coupon.getCode()); order.setStatus(1); m_orderDao.insert(order); return order; } private Coupon findCoupon(String code) throws DalException { if (code != null && code.length() > 0) { try { return m_couponDao.findByCode(code, CouponEntity.READSET_FULL); } catch (DalNotFoundException e) { throw new RuntimeException(""); } } Coupon coupon = new Coupon(); coupon.setPrice(118); return coupon; } private Address findOrCreateAddress(int userId, String name, String state, String city, String postalCode, String addressLine1, String addressLine2) throws DalException { List<Address> addresses = m_addressDao.findAllByUserId(userId, AddressEntity.READSET_FULL); for (Address address : addresses) { if (!address.getName().equals(name)) { continue; } if (!address.getState().equals(state)) { continue; } if (!address.getCity().equals(city)) { continue; } if (!address.getPostalCode().equals(postalCode)) { continue; } if (!address.getAddressLine1().equals(addressLine1)) { continue; } return address; } Address a = new Address(); a.setUserId(userId); a.setName(name); a.setState(state); a.setCity(city); a.setPostalCode(postalCode); a.setAddressLine1(addressLine1); a.setAddressLine2(addressLine2); a.setStatus(1); m_addressDao.insert(a); return a; } @Override public Order findOrder(int orderId) throws Exception { Order order = m_orderDao.findByPK(orderId, OrderEntity.READSET_FULL); String code = order.getCoupon(); if (code != null && code.length() > 0) { Coupon coupon = m_couponDao.findByCode(code, CouponEntity.READSET_FULL); order.setPaypalButtonId(coupon.getPaypalButtonId()); } return order; } @Override public Order placeOrder(int userId, String code, String name, String state, String city, String postalCode, String addressLine1, String addressLine2) throws Exception { Address address = findOrCreateAddress(userId, name, state, city, postalCode, addressLine1, addressLine2); Coupon coupon = findCoupon(code); Order order = createOrder(userId, address, coupon); return order; } }
[ "qmwu2000@gmail.com" ]
qmwu2000@gmail.com
b18e8181e8364f4efdaba8f2370062aec127f4cf
cb7b9692de53972afb29152d671bb7286ec9e81b
/spy2servers-core/src/main/java/org/xmatthew/spy2servers/core/Component.java
5619589e205d032f3854c5d3543ae3caeda106dd
[]
no_license
412537896/Spy2Servers
25189143e03d0804380ef908a83462d4d933ae1d
1e14bd318dd28a60a92626fe66c205038019cb4e
refs/heads/master
2021-01-12T01:09:47.661610
2014-08-05T06:07:09
2014-08-05T06:07:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,859
java
/* * Copyright 2008- 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.xmatthew.spy2servers.core; import java.util.Date; import org.xmatthew.spy2servers.core.context.ComponentContext; /** * Component interface. * 组件接口,提供组件的基本管理服务和状态监控。 所有组件必须要实现该接口。 * * @author Matthew Xie * */ public interface Component { /** * component run status * */ final static int ST_RUN = 1; /** * component run status name */ final static String ST_RUN_NAME = "Active"; /** * component stop status */ final static int ST_STOP = 2; /** * component stop status name */ final static String ST_STOP_NAME = "Decctive"; /** * get component status * <p> * One of ST_RUN, ST_STOP. * @return component status */ int getStatus(); /** * get component status * <p> * One of ST_RUN_NAME, ST_STOP_NAME. * * @return component status name */ String getStatusName(); /** * if component active return true * * @return true if component is in status ST_RUN */ boolean isActive(); /** * will be invoked after component plugs. */ void startup(); /** * will be invoked after component unplugs. */ void stop(); /** * set component context to the component. * it will auto invoke by CoreComponent * * @param context set the component context * */ void setContext(ComponentContext context); /** * @return get the component context */ ComponentContext getContext(); /** * get component name * @return get component name */ String getName(); /** * get component strartup date * @return get component strartup date */ Date getStartupDate(); /** * set startup date to the component. * it will auto invoke by CoreComponent * * @param date startup date */ void setStartupDate(Date date); /** * @param name set the component name */ void setName(String name); //visitor pattern /** * @param visitor {@link IVisitor} call back */ void accept(IVisitor visitor); }
[ "ant_miracle@hotmail.com" ]
ant_miracle@hotmail.com
c65bc1ab4c97cf650e11b6abb33e6159459b8be5
63e8187870af12c903d64109738ffd8f479e28e0
/WeBASE-Collect-Bee-common/src/main/java/com/webank/webasebee/common/tools/FunctionInputDecode.java
bcff0618960d5008749d2f6113e87a0ef2508a4b
[ "Apache-2.0" ]
permissive
yanyanho/WeBASE-Collect-Bee
edbee8b28da63b5dffb54b8fd84fdb361053b580
16d8b67911f32d9c84494969f6428cf57ae27727
refs/heads/master
2020-06-20T13:48:33.349578
2019-11-06T06:59:58
2019-11-06T06:59:58
197,141,141
1
3
Apache-2.0
2019-11-20T08:31:05
2019-07-16T07:15:30
Java
UTF-8
Java
false
false
2,248
java
/** * Copyright 2014-2019 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 com.webank.webasebee.common.tools; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.fisco.bcos.web3j.abi.TypeReference; import org.fisco.bcos.web3j.abi.datatypes.Type; import org.fisco.bcos.web3j.utils.Numeric; import lombok.extern.slf4j.Slf4j; /** * FunctionInputDecode * * @Description: FunctionInputDecode * @author graysonzhang * @data 2018-12-04 10:54:15 * */ @Slf4j public class FunctionInputDecode { /** * decode function input, return List<Type>. * * @param rawInput * @param inputParameters * @return * @return List<Type> */ public static List<Type> decode(String rawInput, List<TypeReference<Type>> inputParameters) { String input = Numeric.cleanHexPrefix(rawInput); log.info("input without Prefix : {}", input); if (input == null || input.length() == 0) { return Collections.emptyList(); } else { return build(input, inputParameters); } } private static List<Type> build(String input, List<TypeReference<Type>> inputParameters) { List<Type> results = new ArrayList<>(inputParameters.size()); int offset = 0; for (TypeReference<?> typeReference : inputParameters) { try { @SuppressWarnings("unchecked") Class<Type> type = (Class<Type>) typeReference.getClassType(); } catch (ClassNotFoundException e) { throw new UnsupportedOperationException("Invalid class reference provided", e); } } return results; } }
[ "njumjy06@126.com" ]
njumjy06@126.com
205b262c63dc1e8f297f7e3f0f03029c98a0055f
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project25/src/main/java/org/gradle/test/performance25_5/Production25_414.java
714d309ba959c5ef1c320d0b0c164bdd71cb4f38
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
305
java
package org.gradle.test.performance25_5; public class Production25_414 extends org.gradle.test.performance12_5.Production12_414 { private final String property; public Production25_414() { this.property = "foo"; } public String getProperty() { return property; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
73e4fdbdadbf9c2157751b36320d9cf0d5227326
5355c413e4a7acbf35d8e751b22528f4d04d0b6a
/src/main/java/org/everest/mvc/classFilter/ValidatorClassFilter.java
6fe2a308522e19d02f2cee0ae0ee7f6793ba8bf0
[]
no_license
chendjouCaleb/Everest
402e77c22924628a86fd91e480ce7973556de537
fcf595c58836bae353f75651b615766953cc5410
refs/heads/master
2021-10-24T04:52:43.571782
2019-03-21T05:57:54
2019-03-21T05:57:54
104,355,982
0
0
null
null
null
null
UTF-8
Java
false
false
417
java
package org.everest.mvc.classFilter; import org.everest.core.dic.handler.ITypeFilter; import org.everest.mvc.binding.IConverter; import javax.validation.ConstraintValidator; import java.util.Arrays; public class ValidatorClassFilter implements ITypeFilter { @Override public boolean isAdmissible(Class type) { return Arrays.asList(type.getInterfaces()).contains(ConstraintValidator.class); } }
[ "chendjou2016@outlook.fr" ]
chendjou2016@outlook.fr
126ebad91f979eeba4c49c833960bd942d252c2b
482a0fe6424b42de7f2768f7b64c4fd36dd24054
/apps/gmail/gmail_uncompressed/app/src/com/google/android/gms/search/queries/h.java
2174a5a28f3d2bdee03d696795dedb8d78d63496
[]
no_license
dan7800/SoftwareTestingGradProjectTeamB
b96d10c6b42e2e554e51fc1d7fd7a7189afe79d6
0ad2d46d692c77bdc75f8a82162749e2e652c7ab
refs/heads/master
2021-01-22T09:27:25.378594
2015-05-15T23:59:13
2015-05-15T23:59:13
30,304,655
0
0
null
null
null
null
UTF-8
Java
false
false
654
java
package com.google.android.gms.search.queries; import android.os.*; import com.google.android.gms.common.api.*; import com.google.android.gms.appdatasearch.*; import com.google.android.gms.common.internal.safeparcel.*; public final class h implements Parcelable$Creator<QueryCall$Response> { static void a(final QueryCall$Response queryCall$Response, final Parcel parcel, final int n) { final int ae = b.ae(parcel); b.d(parcel, 1000, queryCall$Response.btV); b.a(parcel, 1, (Parcelable)queryCall$Response.buu, n, false); b.a(parcel, 2, (Parcelable)queryCall$Response.cky, n, false); b.D(parcel, ae); } }
[ "mjthornton0112@gmail.com" ]
mjthornton0112@gmail.com
f519ac4e231c591e6f21ab83833858698ae12302
15959d22626f73f2f3601d47cae98d7481d015cf
/src/rocket_chat_setting/Main.java
d19fba19467b6d2b4769e461f40cbfb138cbd82a
[]
no_license
col-panic/rocket-chat-setting
23544cab05a9dc1890140d6f7810c57106863284
dc608f0ff1817bf99a620e699e0a24870f24a056
refs/heads/master
2023-04-02T09:01:36.728026
2022-10-19T07:15:30
2022-10-19T07:15:30
202,300,768
0
0
null
2023-03-31T15:18:13
2019-08-14T07:46:13
Java
UTF-8
Java
false
false
3,787
java
package rocket_chat_setting; import java.io.IOException; import java.security.KeyManagementException; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.List; import com.beust.jcommander.JCommander; import com.beust.jcommander.Parameter; import com.beust.jcommander.ParameterException; import com.github.baloise.rocketchatrestclient.RocketChatClient; import com.github.baloise.rocketchatrestclient.RocketChatRestApiV1Settings; import com.github.baloise.rocketchatrestclient.model.Setting; public class Main { @Parameter(names = "-u", required = true, description = "RocketChat service url, e.g. https://rocketchat:3000") String serviceUrl; @Parameter(names = "-l", required = true, description = "username") String user; @Parameter(names = "-p", required = true, description = "password") String password; @Parameter(names = "-t", description = "Trust all HTTPS certificates") boolean trustSelfSignedCertificate = false; @Parameter(names = "-v", description = "Verbose output") boolean verbose = false; @Parameter(names = "-s", description = "values to set as key=value; multiple occurences allowed") List<String> set = new ArrayList<>(); @Parameter List<String> parameters = new ArrayList<>(); private RocketChatClient rcc; public static void main(String... argv){ Main main = new Main(); JCommander commander = JCommander.newBuilder().addObject(main).build(); try { commander.parse(argv); main.run(); } catch (ParameterException e) { System.out.println(e.getMessage() + "\n"); commander.usage(); } } public void run(){ rcc = new RocketChatClient(serviceUrl, user, password); if (trustSelfSignedCertificate) { try { rcc.trustSelfSignedCertificates(); } catch (KeyManagementException | NoSuchAlgorithmException | KeyStoreException e) { if (verbose) { e.printStackTrace(); } else { System.out.println(e.getMessage()); } System.exit(1); } } StringBuilder output = new StringBuilder(); try { for (String setParamPair : set) { if (setParamPair.contains("=")) { String[] keyValue = setParamPair.split("=", 2); String key = keyValue[0]; String value = (keyValue.length > 1) ? keyValue[1] : ""; try { setParameter(rcc.getSettingsApi(), output, key, value); } catch (IOException ioe) { output.append("setting [" + key + "] failed: " + ioe.getMessage() + "\n"); } } else { if (verbose) { output.append("Invalid set param pair " + setParamPair + "\n"); } } } for (String getParamKey : parameters) { Setting setting = rcc.getSettingsApi().getById(getParamKey); if (setting != null) { if (verbose) { output.append("[" + getParamKey + "] " + setting.getValue() + "\n"); } else { output.append(setting.getValue() + "\n"); } } else { output.append("setting [" + getParamKey + "] not found\n"); } } rcc.logout(); } catch (IOException e) { if (verbose) { e.printStackTrace(); } else { System.out.println(e.getMessage()); } System.exit(1); } if (output != null) { System.out.println(output.toString()); } } private void setParameter(RocketChatRestApiV1Settings rocketChatRestApiV1Settings, StringBuilder output, String key, String value) throws IOException{ Object _value; if (Boolean.TRUE.toString().equalsIgnoreCase(value) || Boolean.FALSE.toString().equalsIgnoreCase(value)) { _value = Boolean.parseBoolean(value); } else { _value = value; } rcc.getSettingsApi().setById(key, _value); if (verbose) { output.append("[" + key + "] -> " + _value + "\n"); } } }
[ "marco@descher.at" ]
marco@descher.at
ae9050989e8f87c0895b7501e84061a6d404f8c9
4192d19e5870c22042de946f211a11c932c325ec
/hi4springJDBC-20110823/src/org/hi/base/report/excel/action/webwork/ExcelCellListAction.java
5f9d94ec3b9047725b0f08074e8c4bfd82d3cc17
[]
no_license
arthurxiaohz/ic-card
1f635d459d60a66ebda272a09ba65e616d2e8b9e
5c062faf976ebcffd7d0206ad650f493797373a4
refs/heads/master
2021-01-19T08:15:42.625340
2013-02-01T06:57:41
2013-02-01T06:57:41
39,082,049
2
1
null
null
null
null
UTF-8
Java
false
false
2,194
java
/* */ package org.hi.base.report.excel.action.webwork; /* */ /* */ import java.util.List; /* */ import org.hi.SpringContextHolder; /* */ import org.hi.base.report.excel.action.ExcelCellPageInfo; /* */ import org.hi.base.report.excel.model.ExcelCell; /* */ import org.hi.base.report.excel.service.ExcelCellManager; /* */ import org.hi.framework.paging.PageInfo; /* */ import org.hi.framework.web.PageInfoUtil; /* */ import org.hi.framework.web.webwork.BaseAction; /* */ /* */ public class ExcelCellListAction extends BaseAction /* */ { /* */ private ExcelCell excelCell; /* */ private ExcelCellPageInfo pageInfo; /* */ private List<ExcelCell> excelCells; /* */ /* */ public String execute() /* */ throws Exception /* */ { /* 20 */ ExcelCellManager excelCellMgr = (ExcelCellManager)SpringContextHolder.getBean(ExcelCell.class); /* 21 */ this.pageInfo = (this.pageInfo == null ? new ExcelCellPageInfo() : this.pageInfo); /* 22 */ PageInfo sarchPageInfo = PageInfoUtil.populate(this.pageInfo); /* */ /* 24 */ this.excelCells = excelCellMgr.getExcelCellList(sarchPageInfo); /* */ /* 26 */ return returnCommand(); /* */ } /* */ /* */ public ExcelCell getExcelCell() { /* 30 */ return this.excelCell; /* */ } /* */ /* */ public void setExcelCell(ExcelCell excelCell) { /* 34 */ this.excelCell = excelCell; /* */ } /* */ /* */ public List<ExcelCell> getExcelCells() { /* 38 */ return this.excelCells; /* */ } /* */ /* */ public void setExcelCells(List<ExcelCell> excelCells) { /* 42 */ this.excelCells = excelCells; /* */ } /* */ /* */ public ExcelCellPageInfo getPageInfo() { /* 46 */ return this.pageInfo; /* */ } /* */ /* */ public void setPageInfo(ExcelCellPageInfo pageInfo) { /* 50 */ this.pageInfo = pageInfo; /* */ } /* */ } /* Location: C:\Users\Angi\Desktop\framework-boss-core-1.0.1.jar * Qualified Name: org.hi.base.report.excel.action.webwork.ExcelCellListAction * JD-Core Version: 0.6.0 */
[ "Angi.Wang.AFE@gmail.com" ]
Angi.Wang.AFE@gmail.com
bb272ea7fb87f297c5921be27ab4db3689732fa3
fec4a09f54f4a1e60e565ff833523efc4cc6765a
/Dependencies/work/decompile-00fabbe5/net/minecraft/server/level/TicketType.java
40c9ddbcdaa761dd9eb158a9643f27730346efc5
[]
no_license
DefiantBurger/SkyblockItems
012d2082ae3ea43b104ac4f5bf9eeb509889ec47
b849b99bd4dc52ae2f7144ddee9cbe2fd1e6bf03
refs/heads/master
2023-06-23T17:08:45.610270
2021-07-27T03:27:28
2021-07-27T03:27:28
389,780,883
0
0
null
null
null
null
UTF-8
Java
false
false
1,942
java
package net.minecraft.server.level; import java.util.Comparator; import net.minecraft.core.BaseBlockPosition; import net.minecraft.core.BlockPosition; import net.minecraft.util.Unit; import net.minecraft.world.level.ChunkCoordIntPair; public class TicketType<T> { private final String name; private final Comparator<T> comparator; public long timeout; public static final TicketType<Unit> START = a("start", (unit, unit1) -> { return 0; }); public static final TicketType<Unit> DRAGON = a("dragon", (unit, unit1) -> { return 0; }); public static final TicketType<ChunkCoordIntPair> PLAYER = a("player", Comparator.comparingLong(ChunkCoordIntPair::pair)); public static final TicketType<ChunkCoordIntPair> FORCED = a("forced", Comparator.comparingLong(ChunkCoordIntPair::pair)); public static final TicketType<ChunkCoordIntPair> LIGHT = a("light", Comparator.comparingLong(ChunkCoordIntPair::pair)); public static final TicketType<BlockPosition> PORTAL = a("portal", BaseBlockPosition::compareTo, 300); public static final TicketType<Integer> POST_TELEPORT = a("post_teleport", Integer::compareTo, 5); public static final TicketType<ChunkCoordIntPair> UNKNOWN = a("unknown", Comparator.comparingLong(ChunkCoordIntPair::pair), 1); public static <T> TicketType<T> a(String s, Comparator<T> comparator) { return new TicketType<>(s, comparator, 0L); } public static <T> TicketType<T> a(String s, Comparator<T> comparator, int i) { return new TicketType<>(s, comparator, (long) i); } protected TicketType(String s, Comparator<T> comparator, long i) { this.name = s; this.comparator = comparator; this.timeout = i; } public String toString() { return this.name; } public Comparator<T> a() { return this.comparator; } public long b() { return this.timeout; } }
[ "joseph.cicalese@gmail.com" ]
joseph.cicalese@gmail.com
d6c14fb6cf1b5251b9205745520621797918d418
f7c8bb03a5c85c63b90153270f4e00148156c56b
/android/app/src/main/java/com/engear_24043/MainApplication.java
9305bec0a84d3d47106a3f99bf2c7335675d29a9
[]
no_license
crowdbotics-apps/engear-24043
7045445451f8d1578dc813fc7fd343df0abcd2cc
11faf58e22cf9d883f4ac53371c45358815fd6cf
refs/heads/master
2023-02-25T02:13:28.639621
2021-01-25T10:13:14
2021-01-25T10:13:14
332,705,557
0
0
null
null
null
null
UTF-8
Java
false
false
2,689
java
package com.engear_24043; import android.app.Application; import android.content.Context; import com.facebook.react.PackageList; import com.facebook.react.ReactInstanceManager; import com.facebook.react.ReactApplication; import com.facebook.react.ReactNativeHost; import com.facebook.react.ReactPackage; import com.facebook.soloader.SoLoader; import java.lang.reflect.InvocationTargetException; import java.util.List; public class MainApplication extends Application implements ReactApplication { private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { @Override public boolean getUseDeveloperSupport() { return BuildConfig.DEBUG; } @Override protected List<ReactPackage> getPackages() { @SuppressWarnings("UnnecessaryLocalVariable") List<ReactPackage> packages = new PackageList(this).getPackages(); // Packages that cannot be autolinked yet can be added manually here, for example: // packages.add(new MyReactNativePackage()); return packages; } @Override protected String getJSMainModuleName() { return "index"; } }; @Override public ReactNativeHost getReactNativeHost() { return mReactNativeHost; } @Override public void onCreate() { super.onCreate(); SoLoader.init(this, /* native exopackage */ false); initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); } /** * Loads Flipper in React Native templates. Call this in the onCreate method with something like * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); * * @param context * @param reactInstanceManager */ private static void initializeFlipper( Context context, ReactInstanceManager reactInstanceManager) { if (BuildConfig.DEBUG) { try { /* We use reflection here to pick up the class that initializes Flipper, since Flipper library is not available in release mode */ Class<?> aClass = Class.forName("com.rndiffapp.ReactNativeFlipper"); aClass .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) .invoke(null, context, reactInstanceManager); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } }
[ "team@crowdbotics.com" ]
team@crowdbotics.com
9163d84d64b66106896865e8fa4888edf7b4e6a2
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/21/21_c7855452383168abba9a38d285fb5c8205963c79/OutputTextTag/21_c7855452383168abba9a38d285fb5c8205963c79_OutputTextTag_s.java
3fd157bbf664fcb86d38e9059d12accdd5eb17c6
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
7,926
java
/* * Copyright 2003-2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package renderkits.taglib.svg; import java.io.IOException; import javax.el.*; import javax.faces.*; import javax.faces.component.*; import javax.faces.context.*; import javax.faces.convert.*; import javax.faces.el.*; import javax.faces.event.*; import javax.faces.validator.*; import javax.faces.webapp.*; import javax.servlet.jsp.JspException; /* * ******* GENERATED CODE - DO NOT EDIT ******* */ public final class OutputTextTag extends UIComponentELTag { // Setter Methods // PROPERTY: converter private javax.el.ValueExpression converter; public void setConverter(javax.el.ValueExpression converter) { this.converter = converter; } // PROPERTY: value private javax.el.ValueExpression value; public void setValue(javax.el.ValueExpression value) { this.value = value; } // PROPERTY: escape private javax.el.ValueExpression escape; public void setEscape(javax.el.ValueExpression escape) { this.escape = escape; } // PROPERTY: style private javax.el.ValueExpression style; public void setStyle(javax.el.ValueExpression style) { this.style = style; } // PROPERTY: styleClass private javax.el.ValueExpression styleClass; public void setStyleClass(javax.el.ValueExpression styleClass) { this.styleClass = styleClass; } // PROPERTY: x private javax.el.ValueExpression x; public void setX(javax.el.ValueExpression x) { this.x = x; } // PROPERTY: y private javax.el.ValueExpression y; public void setY(javax.el.ValueExpression y) { this.y = y; } // PROPERTY: dx private javax.el.ValueExpression dx; public void setDx(javax.el.ValueExpression dx) { this.dx = dx; } // PROPERTY: dy private javax.el.ValueExpression dy; public void setDy(javax.el.ValueExpression dy) { this.dy = dy; } // PROPERTY: rotate private javax.el.ValueExpression rotate; public void setRotate(javax.el.ValueExpression rotate) { this.rotate = rotate; } // PROPERTY: textLength private javax.el.ValueExpression textLength; public void setTextLength(javax.el.ValueExpression textLength) { this.textLength = textLength; } // PROPERTY: textAdjust private javax.el.ValueExpression textAdjust; public void setTextAdjust(javax.el.ValueExpression textAdjust) { this.textAdjust = textAdjust; } // General Methods public String getRendererType() { return "renderkit.svg.Text"; } public String getComponentType() { return "javax.faces.Output"; } protected void setProperties(UIComponent component) { super.setProperties(component); javax.faces.component.UIOutput output = null; try { output = (javax.faces.component.UIOutput) component; } catch (ClassCastException cce) { throw new IllegalStateException("Component " + component.toString() + " not expected type. Expected: javax.faces.component.UIOutput. Perhaps you're missing a tag?"); } if (converter != null) { if (!converter.isLiteralText()) { output.setValueExpression("converter", converter); } else { Converter conv = FacesContext.getCurrentInstance().getApplication().createConverter(converter.getExpressionString()); output.setConverter(conv); } } if (value != null) { if (!value.isLiteralText()) { output.setValueExpression("value", value); } else { output.setValue(value.getExpressionString()); } } if (escape != null) { if (!escape.isLiteralText()) { output.setValueExpression("escape", escape); } else { output.getAttributes().put("escape", java.lang.Boolean.valueOf(escape.getExpressionString())); } } if (style != null) { if (!style.isLiteralText()) { output.setValueExpression("style", style); } else { output.getAttributes().put("style", style.getExpressionString()); } } if (styleClass != null) { if (!styleClass.isLiteralText()) { output.setValueExpression("styleClass", styleClass); } else { output.getAttributes().put("styleClass", styleClass.getExpressionString()); } } if (x != null) { if (!x.isLiteralText()) { output.setValueExpression("x", x); } else { output.getAttributes().put("x", x.getExpressionString()); } } if (y != null) { if (!y.isLiteralText()) { output.setValueExpression("y", y); } else { output.getAttributes().put("y", y.getExpressionString()); } } if (dx != null) { if (!dx.isLiteralText()) { output.setValueExpression("dx", dx); } else { output.getAttributes().put("dx", dx.getExpressionString()); } } if (dy != null) { if (!dy.isLiteralText()) { output.setValueExpression("dy", dy); } else { output.getAttributes().put("dy", dy.getExpressionString()); } } if (rotate != null) { if (!rotate.isLiteralText()) { output.setValueExpression("rotate", rotate); } else { output.getAttributes().put("rotate", rotate.getExpressionString()); } } if (textLength != null) { if (!textLength.isLiteralText()) { output.setValueExpression("textLength", textLength); } else { output.getAttributes().put("textLength", textLength.getExpressionString()); } } } // Methods From TagSupport public int doStartTag() throws JspException { try { return super.doStartTag(); } catch (Exception e) { Throwable root = e; while (root.getCause() != null) { root = root.getCause(); } throw new JspException(root); } } public int doEndTag() throws JspException { try { return super.doEndTag(); } catch (Exception e) { Throwable root = e; while (root.getCause() != null) { root = root.getCause(); } throw new JspException(root); } } // RELEASE public void release() { super.release(); // component properties this.converter = null; this.value = null; // rendered attributes this.escape = null; this.style = null; this.styleClass = null; } public String getDebugString() { String result = "id: " + this.getId() + " class: " + this.getClass().getName(); return result; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
1ba170033217828f02d0678844d2ad22be28913a
96d71f73821cfbf3653f148d8a261eceedeac882
/external/decompiled/blackberry/bb (4)/decompiled/WhatsApp-21/com/whatsapp/client/FunXMPP$Connection$19.java
556fb544c1436bb563227c841238a114b877e3be
[]
no_license
JaapSuter/Niets
9a9ec53f448df9b866a8c15162a5690b6bcca818
3cc42f8c2cefd9c3193711cbf15b5304566e08cb
refs/heads/master
2020-04-09T19:09:40.667155
2012-09-28T18:11:33
2012-09-28T18:11:33
5,751,595
2
1
null
null
null
null
UTF-8
Java
false
false
4,130
java
// ####################################################### // Decompiled by : coddec // Module : WhatsApp-16.cod // Module version : 2.7.3204 // Class ID : 14 // ######################################################## package com.whatsapp.client; abstract final class FunXMPP$Connection$19 extends com.whatsapp.client.FunXMPP$IqResultHandler { // @@@@@@@@@@@@@ Fields private final Runnable /*java.lang.Runnable*/ field_56778 ; // ofs = 56778 addr = 0) private final com.whatsapp.client.FunXMPP$IntRunnable /*module:WhatsApp-14.class#21*/ field_56782 ; // ofs = 56782 addr = 0) private final com.whatsapp.client.FunXMPP$Connection /*module:WhatsApp-17.class#0*/ field_56786 ; // ofs = 56786 addr = 0) // @@@@@@@@@@@@@ Static routines <init>( com.whatsapp.client.FunXMPP$Connection$19, module:WhatsApp-17.class#0, java.lang.Runnable, module:WhatsApp-14.class#21 ); // address: 0 { enter aload_0 invokespecial_lib .routine_10568 // pc=1 aload_0 aload_1 putfield .field_2_2 // get_name_1: .field_2_2 // get_name_2: .field_2_2 // get_Name: .field_2_2 // getName->1: null // getName->2: null // getName->N: null // ofs = -1 ord = 0 addr = 2 aload_0 aload_2 putfield .field_0_ // get_name_1: .field_0_ // get_name_2: .field_0_ // get_Name: .field_0_ // getName->1: null // getName->2: null // getName->N: null // ofs = -1 ord = 0 addr = 0 aload_0 aload_3 putfield .field_1_1 // get_name_1: .field_1_1 // get_name_2: .field_1_1 // get_Name: .field_1_1 // getName->1: null // getName->2: null // getName->N: null // ofs = -1 ord = 0 addr = 1 return } // @@@@@@@@@@@@@ Virtual routines public final parse( com.whatsapp.client.FunXMPP$Connection$19, module:WhatsApp-18.class#3, java.lang.String ); // address: 0 { enter new_lib java.util.Vector//java.util.Vector java.util.Vector java.util.Vector dup invokespecial_lib java.util.Vector.<init> // pc=1 astore_3 new_lib java.util.Hashtable//java.util.Hashtable java.util.Hashtable java.util.Hashtable dup invokespecial_lib java.util.Hashtable.<init> // pc=1 astore_4 aload_0_getfield .field_2_2 // get_name_1: .field_2_2 // get_name_2: .field_2_2 // get_Name: .field_2_2 // getName->1: null // getName->2: null // getName->N: null // ofs = -1 ord = 0 addr = 2 aload_1 aload_3 aload_4 ldc literal_426:"add" invokespecial_lib .routine_8881 // pc=5 aload_0_getfield .field_2_2 // get_name_1: .field_2_2 // get_name_2: .field_2_2 // get_Name: .field_2_2 // getName->1: null // getName->2: null // getName->N: null // ofs = -1 ord = 0 addr = 2 getfield .field_7_7 // get_name_1: .field_7_7 // get_name_2: .field_7_7 // get_Name: .field_7_7 // getName->1: null // getName->2: null // getName->N: null // ofs = -1 ord = 0 addr = 7 aload_2 aload_3 aload_4 invokeinterface interfacemethodref_88 // pc=4 guess=16 aload_0_getfield .field_0_ // get_name_1: .field_0_ // get_name_2: .field_0_ // get_Name: .field_0_ // getName->1: null // getName->2: null // getName->N: null // ofs = -1 ord = 0 addr = 0 ifnull Label25 aload_0_getfield .field_0_ // get_name_1: .field_0_ // get_name_2: .field_0_ // get_Name: .field_0_ // getName->1: null // getName->2: null // getName->N: null // ofs = -1 ord = 0 addr = 0 invokeinterface interfacemethodref_83 // pc=1 guess=17 Label25: return } public final error( com.whatsapp.client.FunXMPP$Connection$19, int ); // address: 0 { enter_narrow aload_0_getfield .field_1_1 // get_name_1: .field_1_1 // get_name_2: .field_1_1 // get_Name: .field_1_1 // getName->1: null // getName->2: null // getName->N: null // ofs = -1 ord = 0 addr = 1 ifnull Label6 aload_0_getfield .field_1_1 // get_name_1: .field_1_1 // get_name_2: .field_1_1 // get_Name: .field_1_1 // getName->1: null // getName->2: null // getName->N: null // ofs = -1 ord = 0 addr = 1 iload_1 invokeinterface interfacemethodref_82 // pc=2 guess=18 Label6: return } }
[ "git@jaapsuter.com" ]
git@jaapsuter.com
3d7d96a85ab705d5124557a355b9dcc29c322296
ef8e7192cc0366cad6aec24fb00187d7e1bc954d
/TurboEX/TurboLauncherEX/src/com/cooee/launcher/theme/ThemeReceiver.java
f1a2885749f499ad82ace3eb1740f329b777aed4
[]
no_license
srsman/daima111
44c89d430d5e296f01663fcf02627ccc4a0ab8fd
b8c1fb8a75d390f6542c53eaec9e46c6c505f022
refs/heads/master
2021-01-22T16:31:23.754703
2015-03-26T05:40:59
2015-03-26T05:40:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,855
java
/* 文件名: ThemeReceiver.java 2014年8月26日 * * 描述:主题广播接收器,主要接收主题相关操作的广播,例如切换主题 * * 作者: cooee */ package com.cooee.launcher.theme; import com.cooee.launcher.Launcher; import com.cooee.launcher.pub.provider.PubProviderHelper; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Handler; import android.util.Log; public class ThemeReceiver extends BroadcastReceiver { private static final String TAG = "ThemeReceiver"; public static final String ACTION_DEFAULT_THEME_CHANGED = "com.coco.theme.action.DEFAULT_THEME_CHANGED"; public static final String ACTION_LAUNCHER_CLICK_THEME = "com.cooee.launcher.click_theme"; public static final String ACTION_LAUNCHER_REQ_RESUME_TIME = "com.cooee.launcher.req_resume_time"; public static final String ACTION_LAUNCHER_RSP_RESUME_TIME = "com.cooee.launcher.rsp_resume_time"; public static String ACTION_LAUNCHER_RESTART = "com.coco.launcher.restart"; public static final String ACTION_LAUNCHER_APPLY_THEME = "com.coco.launcher.apply_theme"; public static final String ACTI0N_LAUNCHER_ADD_WIDGET = "com.coco.launcher.add.widget"; private Handler mHandler = new Handler(); @Override public void onReceive(Context c, Intent intent) { Log.d(TAG, "intent:" + intent.getAction()); final String action = intent.getAction(); if (action.equals(ACTION_LAUNCHER_RESTART)) { restart(c, false); } else if (action.equals(ACTION_LAUNCHER_APPLY_THEME)) { // UtilsShortcut.setWallpaperPositon( -1 ); applyTheme(c, intent); } else if (action.equals(ACTION_LAUNCHER_CLICK_THEME)) { String selectedLauncher = intent .getStringExtra("selected_launcher"); String themePkgName = intent.getStringExtra("theme_pkg_name"); if (selectedLauncher != null && selectedLauncher.equals(c.getPackageName()) && themePkgName != null) { Intent intent2 = new Intent(ACTION_LAUNCHER_APPLY_THEME);// add // start // for // personal_center // separate // 2014.01.23 // by // hupeng intent2.putExtra("theme_status", 1); intent2.putExtra("theme", themePkgName); applyTheme(c, intent2); restart(c, true); c.sendBroadcast(new Intent(ACTION_DEFAULT_THEME_CHANGED));// add // start // for // personal_center // separate // 2014.01.23 // by // hupeng } } else if (action.equals(ACTION_LAUNCHER_REQ_RESUME_TIME)) { SharedPreferences prefs2 = c.getSharedPreferences("launcher", Context.MODE_WORLD_READABLE); Intent intent2 = new Intent(ACTION_LAUNCHER_RSP_RESUME_TIME); intent2.putExtra("resume_time", prefs2.getLong("resume_time", -1)); intent2.putExtra("launcher_pkg_name", c.getPackageName()); c.sendBroadcast(intent2); } } /** * 应用主题的接口 * * @param c * 上下文 * @param intent * Intent对象 */ public void applyTheme(final Context c, Intent intent) { SharedPreferences prefs = c.getSharedPreferences("theme", Activity.MODE_WORLD_WRITEABLE); prefs.edit().putString("theme", intent.getStringExtra("theme")) .commit(); prefs.edit() .putInt("theme_status", intent.getIntExtra("theme_status", 1)) .commit(); PubProviderHelper.addOrUpdateValue("theme", "theme", intent.getStringExtra("theme")); PubProviderHelper.addOrUpdateValue("theme", "theme_status", String.valueOf(intent.getIntExtra("theme_status", 1))); restart(c, false); } /** * 桌面重新启动的接口 * * @param c * 上下文 * @param fromThemeClick * 是否是从桌面直接点击主题的操作 */ public void restart(Context c, boolean fromThemeClick) { if (ThemeManager.getInstance() == null) { final Intent intent2 = new Intent(); intent2.setClass(c, Launcher.class); intent2.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); c.startActivity(intent2); System.exit(0); } else if (fromThemeClick) { final Intent intent2 = new Intent(); intent2.setClass(c, Launcher.class); intent2.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); c.startActivity(intent2); } else { Log.v("Launcher", "exit========"); final Intent intent2 = new Intent(); intent2.setClass(c, Launcher.class); intent2.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); c.startActivity(intent2); System.exit(0); } } } // enable_themebox
[ "liangxiaoling@cooee.cn" ]
liangxiaoling@cooee.cn
76a9e77290e56a9fbcc90d411643e3e57593ee6c
c885ef92397be9d54b87741f01557f61d3f794f3
/results/Gson-10/com.google.gson.internal.bind.ReflectiveTypeAdapterFactory/BBC-F0-opt-10/tests/27/com/google/gson/internal/bind/ReflectiveTypeAdapterFactory_ESTest.java
bb7788f9be8e84a864fbaa4a3f7854f9cc0093a3
[ "CC-BY-4.0", "MIT" ]
permissive
pderakhshanfar/EMSE-BBC-experiment
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
fea1a92c2e7ba7080b8529e2052259c9b697bbda
refs/heads/main
2022-11-25T00:39:58.983828
2022-04-12T16:04:26
2022-04-12T16:04:26
309,335,889
0
1
null
2021-11-05T11:18:43
2020-11-02T10:30:38
null
UTF-8
Java
false
false
8,124
java
/* * This file was automatically generated by EvoSuite * Sat Oct 23 07:33:20 GMT 2021 */ package com.google.gson.internal.bind; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import com.google.gson.FieldNamingPolicy; import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonNull; import com.google.gson.JsonPrimitive; import com.google.gson.TypeAdapter; import com.google.gson.internal.ConstructorConstructor; import com.google.gson.internal.Excluder; import com.google.gson.internal.ObjectConstructor; import com.google.gson.internal.bind.ReflectiveTypeAdapterFactory; import com.google.gson.reflect.TypeToken; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.io.PipedReader; import java.lang.reflect.Field; import java.util.HashMap; import java.util.Map; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true) public class ReflectiveTypeAdapterFactory_ESTest extends ReflectiveTypeAdapterFactory_ESTest_scaffolding { @Test(timeout = 4000) public void test0() throws Throwable { ReflectiveTypeAdapterFactory.Adapter<Integer> reflectiveTypeAdapterFactory_Adapter0 = new ReflectiveTypeAdapterFactory.Adapter<Integer>((ObjectConstructor<Integer>) null, (Map<String, ReflectiveTypeAdapterFactory.BoundField>) null); Integer integer0 = new Integer(46); // Undeclared exception! try { reflectiveTypeAdapterFactory_Adapter0.write((JsonWriter) null, integer0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter", e); } } @Test(timeout = 4000) public void test1() throws Throwable { HashMap<String, ReflectiveTypeAdapterFactory.BoundField> hashMap0 = new HashMap<String, ReflectiveTypeAdapterFactory.BoundField>(); ReflectiveTypeAdapterFactory.Adapter<Integer> reflectiveTypeAdapterFactory_Adapter0 = new ReflectiveTypeAdapterFactory.Adapter<Integer>((ObjectConstructor<Integer>) null, hashMap0); PipedReader pipedReader0 = new PipedReader(); JsonReader jsonReader0 = new JsonReader(pipedReader0); try { reflectiveTypeAdapterFactory_Adapter0.read(jsonReader0); fail("Expecting exception: IOException"); } catch(IOException e) { // // Pipe not connected // verifyException("java.io.PipedReader", e); } } @Test(timeout = 4000) public void test2() throws Throwable { FieldNamingPolicy fieldNamingPolicy0 = FieldNamingPolicy.UPPER_CAMEL_CASE_WITH_SPACES; Excluder excluder0 = Excluder.DEFAULT; ReflectiveTypeAdapterFactory reflectiveTypeAdapterFactory0 = new ReflectiveTypeAdapterFactory((ConstructorConstructor) null, fieldNamingPolicy0, excluder0); Gson gson0 = new Gson(); Class<Object> class0 = Object.class; TypeToken<Object> typeToken0 = TypeToken.get(class0); // Undeclared exception! try { reflectiveTypeAdapterFactory0.create(gson0, typeToken0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("com.google.gson.internal.bind.ReflectiveTypeAdapterFactory", e); } } @Test(timeout = 4000) public void test3() throws Throwable { ReflectiveTypeAdapterFactory.Adapter<Integer> reflectiveTypeAdapterFactory_Adapter0 = new ReflectiveTypeAdapterFactory.Adapter<Integer>((ObjectConstructor<Integer>) null, (Map<String, ReflectiveTypeAdapterFactory.BoundField>) null); JsonNull jsonNull0 = JsonNull.INSTANCE; Integer integer0 = reflectiveTypeAdapterFactory_Adapter0.fromJsonTree(jsonNull0); assertNull(integer0); } @Test(timeout = 4000) public void test4() throws Throwable { ReflectiveTypeAdapterFactory.Adapter<Integer> reflectiveTypeAdapterFactory_Adapter0 = new ReflectiveTypeAdapterFactory.Adapter<Integer>((ObjectConstructor<Integer>) null, (Map<String, ReflectiveTypeAdapterFactory.BoundField>) null); Character character0 = Character.valueOf('?'); JsonPrimitive jsonPrimitive0 = new JsonPrimitive(character0); // Undeclared exception! try { reflectiveTypeAdapterFactory_Adapter0.fromJsonTree(jsonPrimitive0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter", e); } } @Test(timeout = 4000) public void test5() throws Throwable { FieldNamingPolicy fieldNamingPolicy0 = FieldNamingPolicy.UPPER_CAMEL_CASE; ReflectiveTypeAdapterFactory reflectiveTypeAdapterFactory0 = new ReflectiveTypeAdapterFactory((ConstructorConstructor) null, fieldNamingPolicy0, (Excluder) null); Gson gson0 = new Gson(); Class<Integer> class0 = Integer.TYPE; TypeToken<Integer> typeToken0 = TypeToken.get(class0); TypeAdapter<Integer> typeAdapter0 = reflectiveTypeAdapterFactory0.create(gson0, typeToken0); assertNull(typeAdapter0); } @Test(timeout = 4000) public void test6() throws Throwable { FieldNamingPolicy fieldNamingPolicy0 = FieldNamingPolicy.UPPER_CAMEL_CASE_WITH_SPACES; ReflectiveTypeAdapterFactory reflectiveTypeAdapterFactory0 = new ReflectiveTypeAdapterFactory((ConstructorConstructor) null, fieldNamingPolicy0, (Excluder) null); Gson gson0 = new Gson(); JsonElement jsonElement0 = gson0.toJsonTree((Object) reflectiveTypeAdapterFactory0); assertFalse(jsonElement0.isJsonPrimitive()); } @Test(timeout = 4000) public void test7() throws Throwable { HashMap<String, ReflectiveTypeAdapterFactory.BoundField> hashMap0 = new HashMap<String, ReflectiveTypeAdapterFactory.BoundField>(); ReflectiveTypeAdapterFactory.Adapter<Object> reflectiveTypeAdapterFactory_Adapter0 = new ReflectiveTypeAdapterFactory.Adapter<Object>((ObjectConstructor<Object>) null, hashMap0); JsonElement jsonElement0 = reflectiveTypeAdapterFactory_Adapter0.toJsonTree((Object) null); assertTrue(jsonElement0.isJsonNull()); } @Test(timeout = 4000) public void test8() throws Throwable { FieldNamingPolicy fieldNamingPolicy0 = FieldNamingPolicy.UPPER_CAMEL_CASE_WITH_SPACES; Excluder excluder0 = Excluder.DEFAULT; ReflectiveTypeAdapterFactory reflectiveTypeAdapterFactory0 = new ReflectiveTypeAdapterFactory((ConstructorConstructor) null, fieldNamingPolicy0, excluder0); // Undeclared exception! try { reflectiveTypeAdapterFactory0.excludeField((Field) null, false); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("com.google.gson.internal.bind.ReflectiveTypeAdapterFactory", e); } } @Test(timeout = 4000) public void test9() throws Throwable { Gson gson0 = new Gson(); Excluder excluder0 = gson0.excluder(); // Undeclared exception! try { ReflectiveTypeAdapterFactory.excludeField((Field) null, false, excluder0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("com.google.gson.internal.bind.ReflectiveTypeAdapterFactory", e); } } }
[ "pderakhshanfar@serg2.ewi.tudelft.nl" ]
pderakhshanfar@serg2.ewi.tudelft.nl
2e725c32e9408d86d49b430a31156468f07e991e
3bb9e1a187cb72e2620a40aa208bf94e5cee46f5
/mobile_catalog/src/ong/eu/soon/mobile/json/ifx/element/RelationshipMgrIdent.java
1c18e0d1ab84b9bf394e5db74c9ec9de3feedf6e
[]
no_license
eusoon/Mobile-Catalog
2e6f766864ea25f659f87548559502358ac5466c
869d7588447117b751fcd1387cd84be0bd66ef26
refs/heads/master
2021-01-22T23:49:12.717052
2013-12-10T08:22:20
2013-12-10T08:22:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
148
java
package ong.eu.soon.mobile.json.ifx.element; public class RelationshipMgrIdent extends Identifier { protected RelationshipMgrIdent(){ } }
[ "eusoon@gmail.com" ]
eusoon@gmail.com
c1c884d29f58e297742a78a95e120768cf79a20a
883a0e13d7d5820f8d4d1dfb642c3ea9fe5afc34
/semanticparser-impl/src/main/java/ai/labs/parser/extensions/dictionaries/TimeExpressionDictionary.java
1e2d590252e63d0eb90f8b17d85129580025af37
[ "Apache-2.0" ]
permissive
EdtechFoundry/EDDI
0aad06d22ce011e612cf509dc59cafe73db5767e
201cf9b0304e0a9046030f42f6014242886309c7
refs/heads/master
2023-04-13T07:54:22.427808
2022-03-31T09:51:05
2022-03-31T09:51:05
96,883,190
0
0
Apache-2.0
2023-04-03T23:52:46
2017-07-11T10:51:54
Java
UTF-8
Java
false
false
1,390
java
package ai.labs.parser.extensions.dictionaries; import ai.labs.expressions.Expression; import ai.labs.expressions.Expressions; import ai.labs.expressions.utilities.IExpressionProvider; import ai.labs.parser.model.FoundWord; import ai.labs.parser.model.Word; import ai.labs.utilities.LanguageUtilities; import java.util.Collections; import java.util.Date; import java.util.List; /** * @author ginccc */ public class TimeExpressionDictionary implements IDictionary { private static final String ID = "TimeExpressionDictionary"; private final IExpressionProvider expressionProvider; public TimeExpressionDictionary(IExpressionProvider expressionProvider) { this.expressionProvider = expressionProvider; } @Override public List<IFoundWord> lookupTerm(String value) { final Date timeAsDate = LanguageUtilities.isTimeExpression(value); if (timeAsDate != null) { final String timeString = timeAsDate.toString(); Expression timeExp = expressionProvider.createExpression("time", timeAsDate.getTime()); IWord timeExpression = new Word(timeString, new Expressions(timeExp), ID); return Collections.singletonList(new FoundWord(timeExpression, false, 1.0)); } return IDictionary.NO_WORDS_FOUND; } @Override public boolean lookupIfKnown() { return true; } }
[ "gregor@jarisch.net" ]
gregor@jarisch.net
905aa5f0a29b17df7fc00dd033046c39c8bf768a
53d677a55e4ece8883526738f1c9d00fa6560ff7
/com/tencent/mm/plugin/wepkg/model/h$12.java
82cad6411b969f3670f36b4f546c886b173efb3c
[]
no_license
0jinxing/wechat-apk-source
544c2d79bfc10261eb36389c1edfdf553d8f312a
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
refs/heads/master
2020-06-07T20:06:03.580028
2019-06-21T09:17:26
2019-06-21T09:17:26
193,069,132
9
4
null
null
null
null
UTF-8
Java
false
false
612
java
package com.tencent.mm.plugin.wepkg.model; import com.tencent.matrix.trace.core.AppMethodBeat; final class h$12 implements Runnable { h$12(a parama, WepkgCrossProcessTask paramWepkgCrossProcessTask) { } public final void run() { AppMethodBeat.i(63578); if (this.uXt != null) this.uXt.a(this.uXy); this.uXy.aBW(); AppMethodBeat.o(63578); } } /* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes4-dex2jar.jar * Qualified Name: com.tencent.mm.plugin.wepkg.model.h.12 * JD-Core Version: 0.6.2 */
[ "172601673@qq.com" ]
172601673@qq.com
e65f83b3ffcb5ea26493a64f5b5f3027661c03ea
1c5e8605c1a4821bc2a759da670add762d0a94a2
/src/dahua/fdc/aimcost/VoucherForDynamicInfo.java
01f4ccc2ce09edd8c08eddc5a5a5204ba9829589
[]
no_license
shxr/NJG
8195cfebfbda1e000c30081399c5fbafc61bb7be
1b60a4a7458da48991de4c2d04407c26ccf2f277
refs/heads/master
2020-12-24T06:51:18.392426
2016-04-25T03:09:27
2016-04-25T03:09:27
19,804,797
0
3
null
null
null
null
UTF-8
Java
false
false
321
java
package com.kingdee.eas.fdc.aimcost; import java.io.Serializable; public class VoucherForDynamicInfo extends AbstractVoucherForDynamicInfo implements Serializable { public VoucherForDynamicInfo() { super(); } protected VoucherForDynamicInfo(String pkField) { super(pkField); } }
[ "shxr_code@126.com" ]
shxr_code@126.com
382c6a4b15dcd2bd319776131fb50662e9812ece
e574b6fd86a046960b61569bd4b7df76b815f4ed
/blueprint2/blueprint2-core/src/ananas/lib/blueprint2/impl/ImplText.java
e1e4b1968d345d1fc87636a356c35b61ee57944d
[]
no_license
xukun-glc/blueprint
2bf1777576dd0a2e06ac856cef7434625733720e
afa460607a6a279252595cbb9d18c48dc2838324
refs/heads/master
2021-05-31T03:19:46.780922
2015-12-02T03:10:52
2015-12-02T03:10:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
469
java
package ananas.lib.blueprint2.impl; import ananas.lib.blueprint2.dom.IText; import ananas.lib.blueprint2.dom.helper.IClass; final class ImplText implements IText { private final String mData; public ImplText(String data) { this.mData = data; } @Override public boolean bindBlueprintClass(IClass aClass) { return false; } @Override public IClass getBlueprintClass() { return null; } @Override public String getData() { return this.mData; } }
[ "xukun17@sina.com" ]
xukun17@sina.com
e7bee8c6d0c9117b4b0e206e7f81e47b1e9780e4
02accd85cb86f7819ccb8100a7edcb9c8ab06232
/20190901-RentalCarMongo/src/dto/Car.java
1596bc6b3a06839233cae1feec91ceb7bd00ac18
[]
no_license
select26/telran
77c7747297d59951c61b9081d468e5ea1d406658
72ea0765fac32a33e8b2f78c471b08dd01bfe42a
refs/heads/master
2022-12-25T14:35:59.139473
2019-10-24T11:47:14
2019-10-24T11:47:14
191,749,937
0
0
null
null
null
null
UTF-8
Java
false
false
659
java
package dto; import java.time.LocalDate; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.*; @AllArgsConstructor @NoArgsConstructor @Data public class Car { private String vin; // private String model; private Model model; private boolean inUse = false; private boolean removed = false; // public Car(String vIN, Model model) { // super(); // VIN = vIN; // this.model = model; // this.inUse = false; // this.removed = false; // } // @JsonFormat(pattern="yyyy-MM-dd") // private LocalDate productionDate; // private double engine; // private boolean ac; // private PersonDto owner; }
[ "Dennis@Chertkov.info" ]
Dennis@Chertkov.info
599970e2dd95a07f9a53d4552ca668f28449fd9b
613b90f015f0437fb856a1795c07ac7fc1f5a231
/springcss-parent-pom/sbi-customer-service/src/main/java/com/springcss/customer/repository/CustomerTicketRepository.java
e6955a8ae4a72d27f8cf2b8b383e70ff0ea9ef6a
[]
no_license
LCY2013/spring-in-thinking
f1984e83fd9f082f1ae3b91ef48d6a8204b65843
b4614a94c56b6784a4a7aca755375d5191a884ad
refs/heads/master
2023-06-23T04:20:58.539974
2023-06-11T02:23:01
2023-06-11T02:23:01
244,082,628
1
0
null
2022-12-14T20:43:37
2020-03-01T03:52:33
Java
UTF-8
Java
false
false
413
java
package com.springcss.customer.repository; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.springcss.customer.domain.CustomerTicket; @Repository public interface CustomerTicketRepository extends JpaRepository<CustomerTicket, Long> { List<CustomerTicket> getCustomerTicketByOrderNumber(String orderNumber); }
[ "15281205719@163.com" ]
15281205719@163.com
b531071de6c5841cb7d81591356c139206219950
0ad4a848f9c40fa49b21b4e90ddd901a8c4cfd41
/java/spring-javarx/src/main/java/com/sonal/springjavarx/rest/controller/vo/ReactiveWebRequestVO.java
9b09411d01d6e37f8ccc9db6901ef8ca12a44f1f
[]
no_license
sinhasonalkumar/sonalrnd
deb8dfa9dc71b4a9753a2d43a0605d326a56b009
bf6597cb06be824c75502a3e74b43e4cb1054839
refs/heads/master
2020-04-03T20:18:40.130321
2018-02-23T04:28:31
2018-02-23T04:28:31
26,343,473
3
1
null
null
null
null
UTF-8
Java
false
false
181
java
package com.sonal.springjavarx.rest.controller.vo; import lombok.Getter; import lombok.Setter; @Getter @Setter public class ReactiveWebRequestVO { private String userName; }
[ "sinha.sonal.kumar@gmail.com" ]
sinha.sonal.kumar@gmail.com
088805cd1b716b82c314b076df7a10cd7864f694
181cc0ec858797466c7bd01bd3722a3086134e02
/baseLibrary/src/main/java/com/fy/baselibrary/utils/TransfmtUtils.java
e4b53289564c015fe9137672bb3a02a7329d3163
[]
no_license
SetAdapter/WisdomMedicalDoctor
657d1720851dfd0887f1914f731636309df1eedf
e532a6cf5126a810f1c5a376a993f4801ed9dcea
refs/heads/master
2020-04-23T13:50:11.680720
2019-02-18T03:57:34
2019-02-18T03:57:34
171,211,163
0
0
null
null
null
null
UTF-8
Java
false
false
7,222
java
package com.fy.baselibrary.utils; import java.lang.reflect.Method; import java.text.DecimalFormat; import java.util.Arrays; import java.util.Collection; import java.util.List; /** * 数据转换 工具类 * Created by fangs on 2017/3/22. */ public class TransfmtUtils { private TransfmtUtils() { /* cannot be instantiated */ throw new UnsupportedOperationException("cannot be instantiated"); } /** * double类型数字 保留一位小数(四舍五入) * DecimalFormat转换最简便 * * @param doubleDigital * @return String */ public static String doubleToKeepTwoDecimalPlaces(double doubleDigital) { DecimalFormat df = new DecimalFormat("##0.0"); return df.format(doubleDigital); } /** * 把十进制字符串转化成 16进制字符串 (两两截取转换) * * String str1= "07101311" * 要转换成16进制的 070A0D0B * * @return 不够两位的前面 补零 */ public static String num2HexStr(String data) { StringBuffer sb = new StringBuffer(data.length()); String tmp = null; for (int i = 0; i < data.length(); i = i + 2) { tmp = data.substring(i, i + 2); String strtmp = Integer.toHexString(Integer.parseInt(tmp)); strtmp = strtmp.length() == 1 ? "0" + strtmp : strtmp; sb.append(strtmp); } return sb.toString(); } /** * 十六进制字符串转十进制字符串 并且 小于十的在前加 “0” * * @param data * @return */ public static String hexToInt(String data) { StringBuffer sb = new StringBuffer(data.length()); String tmp = null; for (int i = 0; i < data.length(); i += 2) { tmp = data.substring(i, i + 2); String strtmp = toInt(tmp); sb.append(strtmp); } return sb.toString(); } /** * 十六进制字符串转十进制字符串 并且 小于十的在前加 “0” * * @param data * @return */ public static String toInt(String data) { // 十六进制转化为十进制 int intData = Integer.parseInt(data, 16); return TwoBitInteger(intData); } /** * 月份 日期保留两位整数 * * @param data * @return */ public static String TwoBitInteger(int data) { String result = ""; if (data < 10) { result = "0" + data; } else { result = data + ""; } return result; } /** * 二进制字符串 转化成 十六进制字符串 * * @param bString * @return */ public static String binaryString2hexString(String bString) { if (bString == null || bString.equals("") || bString.length() % 8 != 0) return null; StringBuffer tmp = new StringBuffer(); int iTmp = 0; for (int i = 0; i < bString.length(); i += 4) { iTmp = 0; for (int j = 0; j < 4; j++) { iTmp += Integer.parseInt(bString.substring(i + j, i + j + 1)) << (4 - j - 1); } tmp.append(Integer.toHexString(iTmp)); } return tmp.toString(); } /** * 把16进制字符串转换成 字节数组 * * @param hexString * @return */ public static byte[] hexStringToBytes(String hexString) { if (hexString == null || hexString.equals("")) { return null; } //将字符串中的字符 都转换为大写 hexString = hexString.toUpperCase(); int length = hexString.length() / 2; char[] hexChars = hexString.toCharArray(); byte[] d = new byte[length]; for (int i = 0; i < length; i++) { int pos = i * 2; d[i] = (byte) (charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1])); } return d; } private static byte charToByte(char c) { return (byte) "0123456789ABCDEF".indexOf(c); } /** * 把字节数组转换成 16进制字符串 * @param bytes * @return */ public static String byte2HexStr(byte[] bytes) { StringBuilder sb = new StringBuilder(); String tmp = null; for (byte b : bytes) { // 将每个字节与0xFF进行与运算,然后转化为10进制,然后借助于Integer再转化为16进制 tmp = Integer.toHexString(0xFF & b); if (tmp.length() == 1){// 每个字节8为,转为16进制标志,2个16进制位 tmp = "0" + tmp; } sb.append(tmp); } return sb.toString(); } /** * 利用反射实现对象之间属性复制 * @param from * @param to */ public static void copyProperties(Object from, Object to) { try { copyPropertiesExclude(from, to, null); } catch (Exception e) { e.printStackTrace(); } } /** * 复制对象属性 * @param from * @param to * @param excludsArray 排除属性列表 * @throws Exception */ @SuppressWarnings("unchecked") public static void copyPropertiesExclude(Object from, Object to, String[] excludsArray) throws Exception { List<String> excludesList = null; if(excludsArray != null && excludsArray.length > 0) { excludesList = Arrays.asList(excludsArray); //构造列表对象 } Method[] fromMethods = from.getClass().getDeclaredMethods(); Method[] toMethods = to.getClass().getDeclaredMethods(); Method fromMethod = null, toMethod = null; String fromMethodName = null, toMethodName = null; for (int i = 0; i < fromMethods.length; i++) { fromMethod = fromMethods[i]; fromMethodName = fromMethod.getName(); if (!fromMethodName.contains("get") || fromMethodName.contains("getId")) continue; //排除列表检测 if(excludesList != null && excludesList.contains(fromMethodName.substring(3).toLowerCase())) { continue; } toMethodName = "set" + fromMethodName.substring(3); toMethod = findMethodByName(toMethods, toMethodName); if (toMethod == null) continue; Object value = fromMethod.invoke(from, new Object[0]); if(value == null) continue; //集合类判空处理 if(value instanceof Collection) { Collection newValue = (Collection)value; if(newValue.size() <= 0) continue; } toMethod.invoke(to, new Object[] {value}); } } /** * 从方法数组中获取指定名称的方法 * * @param methods * @param name * @return */ public static Method findMethodByName(Method[] methods, String name) { for (int j = 0; j < methods.length; j++) { if (methods[j].getName().equals(name)) return methods[j]; } return null; } }
[ "383411934@qq.com" ]
383411934@qq.com
ce730aca84466334509d728a6433eea2fecf278f
fe5d86481efdfe242d90398ecb98986286d55e17
/data/search/APIzator22610642.java
c3982fd16ca2fcfa75ba5a12ff501fa41647815a
[ "CC-BY-4.0" ]
permissive
pasqualesalza/apization
0923a438ac3b963d6efa8d779cce614e04bc0193
941ae03b2a9177875d00feec651dd27e7bdd5e29
refs/heads/main
2022-07-30T04:33:10.078103
2021-08-23T14:08:35
2021-08-23T14:08:35
399,110,560
1
0
null
null
null
null
UTF-8
Java
false
false
576
java
package com.stackoverflow.api; import java.math.BigDecimal; /** * Rounding Bigdecimal values with 2 Decimal Places * * @author APIzator * @see <a href="https://stackoverflow.com/a/22610642">https://stackoverflow.com/a/22610642</a> */ public class APIzator22610642 { public static BigDecimal roundValue() throws Exception { BigDecimal a = new BigDecimal("10.12345"); BigDecimal b = new BigDecimal("10.12556"); a = a.setScale(2, BigDecimal.ROUND_HALF_EVEN); b = b.setScale(2, BigDecimal.ROUND_HALF_EVEN); System.out.println(a); return b; } }
[ "pasquale.salza@gmail.com" ]
pasquale.salza@gmail.com
13a6f696a1dd88fc8923330efdd9492466834a9e
67fcea5c6df0bea03bb6b8ccab01841cab49d2d5
/jee/jaxrs/src/main/java/org/meruvian/workshop/jaxrs/service/NewsService.java
5f4ff3255675f44e1baafbddd527ed40c206bd75
[ "Apache-2.0" ]
permissive
meruvian/workshop
21b58b84640f6a035637268986f6a7412e10b99e
a32125506a88318032708dd6ef4afa4d219c50cd
refs/heads/v2
2021-01-10T22:11:06.067742
2017-03-16T14:41:40
2017-03-16T14:41:40
30,912,747
2
4
null
2016-12-05T07:06:23
2015-02-17T10:41:33
JavaScript
UTF-8
Java
false
false
901
java
package org.meruvian.workshop.jaxrs.service; import java.util.List; import javax.ws.rs.Consumes; import javax.ws.rs.DELETE; import javax.ws.rs.DefaultValue; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.MediaType; import org.meruvian.workshop.jaxrs.entity.News; @Path("/news") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public interface NewsService { @GET @Path("/{id}") News getNewsById(@PathParam("id") long id); @GET List<News> findNewsByTitle(@QueryParam("title") @DefaultValue("") String title); @POST News saveNews(News news); @PUT @Path("/{id}") News updateNews(@PathParam("id") long id, News news); @DELETE @Path("/{id}") void deleteNews(@PathParam("id") long id); }
[ "dian.aditya@meruvian.org" ]
dian.aditya@meruvian.org
bdceb8adb594b731822d4e87240e8366cb366329
d006fb5b14e20a05c6b680809f328a70835f8405
/macgyver-plugin-github/src/main/java/io/macgyver/plugin/github/WebHookController.java
d045a97b5db250d1b9043e6cf9860cbb6a67e1bf
[]
no_license
ryanlfoster/macgyver
77138fb1a8ec1801ec58a554079a62f79550f533
d1ed92781ef297575d3f7eaf397e118e8970d44c
refs/heads/master
2021-01-19T08:45:25.457874
2015-04-02T17:15:03
2015-04-02T17:15:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,056
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 io.macgyver.plugin.github; import io.macgyver.core.eventbus.MacGyverAsyncEventBus; import java.io.IOException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; import javax.annotation.PostConstruct; import javax.servlet.http.HttpServletRequest; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.base.Optional; import com.google.common.base.Preconditions; import com.google.common.eventbus.Subscribe; import com.google.common.io.ByteStreams; @Controller public class WebHookController { public static final int WEBHOOK_MAX_BYTES_DEFAULT=500 * 1024; @Autowired MacGyverAsyncEventBus eventBus; static org.slf4j.Logger logger = LoggerFactory .getLogger(WebHookController.class); ObjectMapper mapper = new ObjectMapper(); List<WebHookAuthenticator> authenticatorList = new CopyOnWriteArrayList<>(); int webhookMaxBytes = WEBHOOK_MAX_BYTES_DEFAULT; public static class WebHookLogReceiver { @Subscribe public void testIt(WebHookEvent evt) { logger.info("received: {}", evt); } } @PostConstruct public void registerLogger() { eventBus.register(new WebHookLogReceiver()); } @RequestMapping(value = "/api/plugin/github/webhook", method = RequestMethod.POST, consumes = "application/json") @PreAuthorize("permitAll") @ResponseBody public ResponseEntity<JsonNode> processHook(HttpServletRequest request) throws IOException, InvalidKeyException, NoSuchAlgorithmException { if (request.getContentLength() >webhookMaxBytes) { JsonNode returnNode = new ObjectMapper().createObjectNode() .put("success", "false") .put("error", "message too large"); return new ResponseEntity<JsonNode>(returnNode, HttpStatus.UNAUTHORIZED); } byte[] bytes = ByteStreams.toByteArray(request.getInputStream()); WebHookEvent event = new WebHookEvent(bytes); if (isAuthenticated(event, request)) { eventBus.post(event); JsonNode returnNode = new ObjectMapper().createObjectNode().put( "success", "true"); return new ResponseEntity<JsonNode>(returnNode, HttpStatus.OK); } else { JsonNode returnNode = new ObjectMapper().createObjectNode() .put("success", "false") .put("error", "unauthorized"); return new ResponseEntity<JsonNode>(returnNode, HttpStatus.UNAUTHORIZED); } } boolean isAuthenticated(WebHookEvent event, HttpServletRequest request) { if (authenticatorList.isEmpty()) { // if no authenticators are set up, assume we want to just trust everything return true; } for (WebHookAuthenticator auth: authenticatorList) { Optional<Boolean> b = auth.authenticate(event, request); if (b.isPresent()) { return b.get(); } } return false; } public void addAuthenticator(WebHookAuthenticator auth) { Preconditions.checkNotNull(auth); authenticatorList.add(auth); } }
[ "robschoening@gmail.com" ]
robschoening@gmail.com
fb98cb627070b77d51d7afc4a68af816653cf025
473b311ca79ff79ade7004af72e57258cdf5790c
/app/src/main/java/com/lsjr/zizisteward/bean/DataList.java
8b47673df3f3b62554d61922eae0bcaf798580f7
[]
no_license
gyymz1993/ZiZisteward1.0
687296995bb4ba0f4102a50e523841932261570e
73b393ddd877bb5a56c97694af4db2c1f2e0c894
refs/heads/master
2021-01-01T19:05:09.633865
2017-10-13T01:48:35
2017-10-13T01:48:54
98,502,871
2
0
null
null
null
null
UTF-8
Java
false
false
1,100
java
package com.lsjr.zizisteward.bean; public class DataList { private String bname; private String id; private String sbrand; private String sell_points; private String skeyword; private String sname; private String spic; public String getBname() { return bname; } public void setBname(String bname) { this.bname = bname; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getSbrand() { return sbrand; } public void setSbrand(String sbrand) { this.sbrand = sbrand; } public String getSell_points() { return sell_points; } public void setSell_points(String sell_points) { this.sell_points = sell_points; } public String getSkeyword() { return skeyword; } public void setSkeyword(String skeyword) { this.skeyword = skeyword; } public String getSname() { return sname; } public void setSname(String sname) { this.sname = sname; } public String getSpic() { return spic; } public void setSpic(String spic) { this.spic = spic; } }
[ "gyymz1993@126.com" ]
gyymz1993@126.com
80995e0d94a628b0cb727bdf141acdd338aee870
4b3fbbc7a3122fe2ee73d12f9c7609a1e43d5aac
/eu.jgen.notes.walkency/src/eu/jgen/notes/walkency/parts/AssociationNode.java
7c738b7f34b5335df78a87935e21576eaf91fee3
[]
no_license
JGen-Notes/toolset.walkency
ba609ef9e102b393e5aba929fd5d397c5a86689a
114968f73318c615519fa1b9807b1dfbe15bb78d
refs/heads/master
2020-04-05T12:09:32.076364
2017-08-03T11:11:59
2017-08-03T11:11:59
95,232,385
0
0
null
null
null
null
UTF-8
Java
false
false
2,137
java
/** * [The "BSD license"] * Copyright (c) 2016,JGen Notes * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of conditions * and the following disclaimer. * * 2. 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. * * 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 HOLDER 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 eu.jgen.notes.walkency.parts; import com.ca.gen.jmmi.schema.AscTypeCode; import eu.jgen.notes.automation.wrapper.JGenObject; public class AssociationNode { public AssociationNode(JGenObject fromGenObject, JGenObject toGenObject, AscTypeCode ascTypeCode) { this.fromGenObject = fromGenObject; this.toGenObject = toGenObject; this.ascTypeCode = ascTypeCode; } public AscTypeCode getAscTypeCode() { return ascTypeCode; } public JGenObject getFromGenObject() { return fromGenObject; } public JGenObject getToGenObject() { return toGenObject; } private JGenObject fromGenObject; private JGenObject toGenObject; private AscTypeCode ascTypeCode; }
[ "ms@jgen.eu" ]
ms@jgen.eu
9a509d33e566468fb660ce59317f77325f70ccec
caf5264de3dfe64b0d02736d3608dcbfdb494468
/config/src/main/java/org/jboss/hal/config/Build.java
0cddafb3430fe9c4dfd61f109763c6a58273b6e9
[ "Apache-2.0", "MIT" ]
permissive
spriadka/console
284ca236801edd276e20d5cb7180368f13e4f68d
0500040a7e554b271c1f7a34473a6971ccb14614
refs/heads/master
2022-11-26T17:20:13.231332
2018-08-13T11:34:20
2018-08-13T11:34:20
144,987,454
0
0
Apache-2.0
2018-08-16T12:53:20
2018-08-16T12:53:20
null
UTF-8
Java
false
false
1,031
java
/* * Copyright 2015-2016 Red Hat, Inc, and individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jboss.hal.config; public enum Build { COMMUNITY, PRODUCT; public static Build parse(final String value) { Build build = COMMUNITY; if (value != null) { try { build = Build.valueOf(value.toUpperCase()); } catch (IllegalArgumentException ignore) { // ignore } } return build; } }
[ "harald.pehl@gmail.com" ]
harald.pehl@gmail.com
4925159e5f410c233f0bd1dacfd447eb09568434
198b414444851f724d4294055925ee2260f0477a
/module_preview_pictures/src/main/java/com/karashok/library/module_preview_pictures/ui/fragment/PicturesPreviewFragment.java
8bcd8b58321d81727cfad9c51bca4025ca212e4e
[ "Apache-2.0" ]
permissive
KaraShok/MVVM-Android-For-Java
39f0f453a95f5bd800e18742d9d8eacd6a238bf5
e5d625717606f354be5b95f7eb43d22fd9aa56c1
refs/heads/master
2020-12-13T02:56:31.880807
2020-04-14T10:22:25
2020-04-14T10:22:25
234,293,009
2
0
null
null
null
null
UTF-8
Java
false
false
6,286
java
package com.karashok.library.module_preview_pictures.ui.fragment; import android.Manifest; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.RelativeLayout; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx.viewpager.widget.ViewPager; import com.karashok.library.module_permission.ModulePermissionContants; import com.karashok.library.module_permission.ui.fragment.PermissionFragment; import com.karashok.library.module_preview_pictures.ModulePicturePreviewContants; import com.karashok.library.module_preview_pictures.R; import com.karashok.library.module_preview_pictures.data.FileEntity; import com.karashok.library.module_preview_pictures.ui.adapter.PicturePagerAdapter; import com.karashok.library.module_preview_pictures.ui.widget.PhotoViewPager; import com.karashok.library.module_preview_pictures.ui.widget.photoview.OnPhotoTapListener; import java.io.File; import java.util.ArrayList; import java.util.List; import pub.devrel.easypermissions.EasyPermissions; /** * @author KaraShokZ(zhangyaozhong) * @name PicturesPreviewFragment * DESCRIPTION 图片预览 * @date 2018/05/18/下午2:52 */ public class PicturesPreviewFragment extends Fragment { private ImageView mTitleBackIv; private TextView mTitleTv; private RelativeLayout mTitleRl; private PhotoViewPager mTitlePvp; private PhotoTapState mTapState; private List<FileEntity> mFileItems; private int mCurIndex; public static PicturesPreviewFragment getInstance(@NonNull ArrayList<String> imagesPath, int curIndex){ PicturesPreviewFragment fragment = new PicturesPreviewFragment(); Bundle bundle = new Bundle(); ArrayList<FileEntity> fileItems = new ArrayList<>(); for (int i = 0, size = imagesPath.size(); i < size; i++){ String path = imagesPath.get(i); File file = new File(imagesPath.get(i)); FileEntity fileEntity = new FileEntity(); fileEntity.setName(file.getName()); fileEntity.setPath(path); fileItems.add(fileEntity); } bundle.putSerializable(ModulePicturePreviewContants.FILE_ITEMS, fileItems); bundle.putInt(ModulePicturePreviewContants.CURRENT_INDEX, curIndex); fragment.setArguments(bundle); return fragment; } @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View inflate = inflater.inflate(R.layout.activity_pictures_preview, container, false); return inflate; } @Override public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); initData(); initView(view); initPictureViewPager(); } private void initData(){ Bundle arguments = getArguments(); mFileItems = (List<FileEntity>) arguments.getSerializable(ModulePicturePreviewContants.FILE_ITEMS); mCurIndex = arguments.getInt(ModulePicturePreviewContants.CURRENT_INDEX,1); } private void initView(View view){ mTitleBackIv = view.findViewById(R.id.act_picture_preview_title_back_iv); mTitleTv = view.findViewById(R.id.act_picture_preview_title_title_iv); mTitleRl = view.findViewById(R.id.act_picture_preview_title_rl); mTitlePvp = view.findViewById(R.id.act_picture_preview_pvp); mTitleBackIv.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { getActivity().finish(); } }); mTitleTv.setText(String.format("%s/%s", mCurIndex + 1, mFileItems.size())); } private void initPictureViewPager(){ PicturePagerAdapter adapter = new PicturePagerAdapter(mFileItems, new OnPhotoTapListener() { @Override public void onPhotoTap(ImageView view, float x, float y) { if (mTitleRl.getVisibility() == View.GONE) { mTitleRl.setVisibility(View.VISIBLE); setTapCallBackState(true); } else { mTitleRl.setVisibility(View.GONE); setTapCallBackState(false); } } }); mTitlePvp.setAdapter(adapter); mTitlePvp.addOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener(){ @Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { super.onPageScrolled(position, positionOffset, positionOffsetPixels); mTitleTv.setText(String.format("%s/%s", position + 1, mFileItems.size())); } }); mTitlePvp.setCurrentItem(mCurIndex); } public void toNext(){ int currentItem = getIndex(); mTitlePvp.setCurrentItem(currentItem + 1); } public void toLast(){ int currentItem = getIndex(); mTitlePvp.setCurrentItem(currentItem - 1); } public int getIndex(){ return mTitlePvp.getCurrentItem(); } @Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { super.onRequestPermissionsResult(requestCode, permissions, grantResults); EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults); for (String permisstion : permissions) { if (permisstion.equalsIgnoreCase(Manifest.permission.WRITE_EXTERNAL_STORAGE)) { PermissionFragment.showRequestPermTextAgain(permissions, grantResults, getActivity(), ModulePermissionContants.EXPLAIN_SETTING_SD_CARD_PERM); } } } public void setPhotoTap(PhotoTapState tapState){ mTapState = tapState; } private void setTapCallBackState(boolean state){ if (mTapState != null){ mTapState.tapState(state); } } public interface PhotoTapState{ void tapState(boolean state); } }
[ "user@example.com" ]
user@example.com
b129720901376031b9e8234d6630085f00f5be48
26d739fac80ffecc265c731d276d244bfa494db8
/server/src/main/java/io/atomix/copycat/server/storage/system/Configuration.java
1db315bcde6a1a444c7040d77f44711687d4a300
[ "Apache-2.0" ]
permissive
chicc999/copycat
65823f316262fde04085705695966cd63a68f1bb
c4fc54645c5d942c22cd3234a7e719bcf0085304
refs/heads/master
2020-12-03T05:31:38.361643
2015-12-22T19:09:59
2015-12-22T19:10:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,597
java
/* * Copyright 2015 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 io.atomix.copycat.server.storage.system; import io.atomix.catalyst.util.Assert; import io.atomix.copycat.server.state.Member; import java.util.Collection; /** * Stored server configuration. * * @author <a href="http://github.com/kuujo>Jordan Halterman</a> */ public class Configuration { private final long index; private final Collection<Member> members; public Configuration(long index, Collection<Member> members) { this.index = index; this.members = Assert.notNull(members, "members"); } /** * Returns the configuration index. * * @return The configuration index. */ public long index() { return index; } /** * Returns the collection of active members. * * @return The collection of active members. */ public Collection<Member> members() { return members; } @Override public String toString() { return String.format("%s[index=%d, members=%s]", getClass().getSimpleName(), index, members); } }
[ "jordan.halterman@gmail.com" ]
jordan.halterman@gmail.com
208b85eb4f3ac524185306926b5fa820b7d6e548
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/12/12_72a1a917d8386de63fb4304918d4fc5a9120b7c9/Manufacturer/12_72a1a917d8386de63fb4304918d4fc5a9120b7c9_Manufacturer_t.java
12a4023969809c61a27131f36db5d03e9b3dc8b9
[]
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,195
java
package devopsdistilled.operp.server.data.entity.items; import java.io.Serializable; import java.util.List; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.OneToMany; import devopsdistilled.operp.server.data.entity.Entiti; @Entity public class Manufacturer extends Entiti implements Serializable { private static final long serialVersionUID = 3771480832066400289L; @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long manufacturerId; private String manufacturerName; @OneToMany(mappedBy = "manufacturer") private List<Brand> brands; public Long getManufacturerId() { return manufacturerId; } public void setManufacturerId(Long manufacturerId) { this.manufacturerId = manufacturerId; } public String getManufacturerName() { return manufacturerName; } public void setManufacturerName(String manufactuerName) { this.manufacturerName = manufactuerName; } public List<Brand> getBrands() { return brands; } public void setBrands(List<Brand> brands) { this.brands = brands; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
625e350d998cf2f1e7594d414ff78d65bfddd7b5
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/orientechnologies--orientdb/4c520a491600e0df391f487e5afc12d8e84a11ae/before/OSQLFunctionMove.java
adb6f2fdba13d72c80b4ae9b429e66b5d842a941
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
5,833
java
/* * * * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.com) * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * http://www.apache.org/licenses/LICENSE-2.0 * * * * Unless required by applicable law or agreed to in writing, software * * distributed under the License is distributed on an "AS IS" BASIS, * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and * * limitations under the License. * * * * For more information: http://www.orientechnologies.com * */ package com.orientechnologies.orient.graph.sql.functions; import com.orientechnologies.common.collection.OMultiValue; import com.orientechnologies.common.types.OModifiableBoolean; import com.orientechnologies.common.util.OCallable; import com.orientechnologies.orient.core.command.OCommandContext; import com.orientechnologies.orient.core.db.ODatabaseDocumentInternal; import com.orientechnologies.orient.core.db.ODatabaseRecordThreadLocal; import com.orientechnologies.orient.core.db.record.OIdentifiable; import com.orientechnologies.orient.core.record.impl.ODocument; import com.orientechnologies.orient.core.record.impl.ODocumentInternal; import com.orientechnologies.orient.core.serialization.serializer.OStringSerializerHelper; import com.orientechnologies.orient.core.sql.OSQLEngine; import com.orientechnologies.orient.core.sql.functions.OSQLFunctionConfigurableAbstract; import com.orientechnologies.orient.graph.sql.OGraphCommandExecutorSQLFactory; import com.tinkerpop.blueprints.Direction; import com.tinkerpop.blueprints.Vertex; import com.tinkerpop.blueprints.impls.orient.*; import java.util.HashSet; import java.util.Set; /** * Hi-level function to move inside a graph. Return the incoming connections. If the current element is a vertex, then will be * returned edges otherwise vertices. * * @author Luca Garulli (l.garulli--at--orientechnologies.com) * */ public abstract class OSQLFunctionMove extends OSQLFunctionConfigurableAbstract { public static final String NAME = "move"; public OSQLFunctionMove() { super(NAME, 1, 2); } public OSQLFunctionMove(final String iName, final int iMin, final int iMax) { super(iName, iMin, iMax); } protected abstract Object move(final OrientBaseGraph graph, final OIdentifiable iRecord, final String[] iLabels); public String getSyntax() { return "Syntax error: " + name + "([<labels>])"; } public Object execute(final Object iThis, final OIdentifiable iCurrentRecord, final Object iCurrentResult, final Object[] iParameters, final OCommandContext iContext) { final OModifiableBoolean shutdownFlag = new OModifiableBoolean(); ODatabaseDocumentInternal curDb = ODatabaseRecordThreadLocal.INSTANCE.get(); final OrientBaseGraph graph = OGraphCommandExecutorSQLFactory.getGraph(false, shutdownFlag); try { final String[] labels; if (iParameters != null && iParameters.length > 0 && iParameters[0] != null) labels = OMultiValue.array(iParameters, String.class, new OCallable<Object, Object>() { @Override public Object call(final Object iArgument) { return OStringSerializerHelper.getStringContent(iArgument); } }); else labels = null; return OSQLEngine.foreachRecord(new OCallable<Object, OIdentifiable>() { @Override public Object call(final OIdentifiable iArgument) { return move(graph, iArgument, labels); } }, iThis, iContext); } finally { if (shutdownFlag.getValue()) graph.shutdown(false); ODatabaseRecordThreadLocal.INSTANCE.set(curDb); } } protected Object v2v(final OrientBaseGraph graph, final OIdentifiable iRecord, final Direction iDirection, final String[] iLabels) { final ODocument rec = iRecord.getRecord(); if (ODocumentInternal.getImmutableSchemaClass(rec) != null) if (ODocumentInternal.getImmutableSchemaClass(rec).isSubClassOf(OrientVertexType.CLASS_NAME)) { // VERTEX final OrientVertex vertex = graph.getVertex(rec); if (vertex != null) return vertex.getVertices(iDirection, iLabels); } return null; } protected Object v2e(final OrientBaseGraph graph, final OIdentifiable iRecord, final Direction iDirection, final String[] iLabels) { final ODocument rec = iRecord.getRecord(); if (ODocumentInternal.getImmutableSchemaClass(rec) != null) if (ODocumentInternal.getImmutableSchemaClass(rec).isSubClassOf(OrientVertexType.CLASS_NAME)) { // VERTEX final OrientVertex vertex = graph.getVertex(rec); if (vertex != null) return vertex.getEdges(iDirection, iLabels); } return null; } protected Object e2v(final OrientBaseGraph graph, final OIdentifiable iRecord, final Direction iDirection, final String[] iLabels) { final ODocument rec = iRecord.getRecord(); if (ODocumentInternal.getImmutableSchemaClass(rec) != null) if (ODocumentInternal.getImmutableSchemaClass(rec).isSubClassOf(OrientEdgeType.CLASS_NAME)) { // EDGE final OrientEdge edge = graph.getEdge(rec); if (edge != null) { if (Direction.BOTH.equals(iDirection)) { Set<Vertex> result = new HashSet<Vertex>(); result.add(edge.getVertex(Direction.OUT)); result.add(edge.getVertex(Direction.IN)); return result; } else { final OrientVertex out = (OrientVertex) edge.getVertex(iDirection); return out; } } } return null; } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
14958cc497f15aae5a9e49049e05823dd3d3da61
ff1fa232add9298921cba67377bdb06ed64544b6
/chapter-07-other-web-frameworks/coursemanager-gwt/src/main/java/org/rooinaction/coursemanager/client/managed/ui/CourseDetailsView.java
fe99ed322fe8b9ab37979d4bef2cb84d4528a0cc
[]
no_license
tsuji/spring-roo-in-action-examples
a60f1b74997101635caffdd9d19c351d5d0af079
a2dd5af5cdd0a6ae1817bf896c7a3dffc38f954a
refs/heads/master
2021-01-18T08:21:55.457227
2013-01-30T18:26:41
2013-01-30T18:26:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,377
java
package org.rooinaction.coursemanager.client.managed.ui; import com.google.gwt.core.client.GWT; import com.google.gwt.dom.client.SpanElement; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.HasClickHandlers; import com.google.gwt.i18n.client.DateTimeFormat; import com.google.gwt.i18n.client.NumberFormat; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.uibinder.client.UiHandler; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.HTMLPanel; import com.google.gwt.user.client.ui.Widget; import java.util.Set; import org.rooinaction.coursemanager.client.scaffold.place.ProxyDetailsView; import org.rooinaction.coursemanager.client.scaffold.place.ProxyListView; import org.rooinaction.coursemanager.web.gwt.proxies.CourseProxy; import org.rooinaction.coursemanager.web.gwt.proxies.OfferingProxy; import org.rooinaction.coursemanager.web.gwt.proxies.TagProxy; import org.rooinaction.coursemanager.web.gwt.proxies.TrainingProgramProxy; public class CourseDetailsView extends CourseDetailsView_Roo_Gwt { private static final Binder BINDER = GWT.create(Binder.class); private static org.rooinaction.coursemanager.client.managed.ui.CourseDetailsView instance; @UiField HasClickHandlers edit; @UiField HasClickHandlers delete; private Delegate delegate; public CourseDetailsView() { initWidget(BINDER.createAndBindUi(this)); } public static org.rooinaction.coursemanager.client.managed.ui.CourseDetailsView instance() { if (instance == null) { instance = new CourseDetailsView(); } return instance; } public Widget asWidget() { return this; } public boolean confirm(String msg) { return Window.confirm(msg); } public CourseProxy getValue() { return proxy; } @UiHandler("delete") public void onDeleteClicked(ClickEvent e) { delegate.deleteClicked(); } @UiHandler("edit") public void onEditClicked(ClickEvent e) { delegate.editClicked(); } public void setDelegate(Delegate delegate) { this.delegate = delegate; } interface Binder extends UiBinder<HTMLPanel, CourseDetailsView> { } }
[ "krimple@chariotsolutions.com" ]
krimple@chariotsolutions.com
fe855496508977384880741cdd1abfd707a1d20a
447520f40e82a060368a0802a391697bc00be96f
/apks/playstore_apps/com_ubercab/source/ccn.java
77aa494b36351070187323c42017f76bf01500dc
[ "GPL-1.0-or-later", "Apache-2.0" ]
permissive
iantal/AndroidPermissions
7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465
d623b732734243590b5f004d167e542e2e2ae249
refs/heads/master
2023-07-19T01:29:26.689186
2019-09-30T19:01:42
2019-09-30T19:01:42
107,239,248
0
0
Apache-2.0
2023-07-16T07:41:38
2017-10-17T08:22:57
null
UTF-8
Java
false
false
356
java
import android.graphics.drawable.Drawable; import android.os.Build.VERSION; import android.view.View; public class ccn { public static void a(View paramView, Drawable paramDrawable) { if (Build.VERSION.SDK_INT >= 16) { paramView.setBackground(paramDrawable); return; } paramView.setBackgroundDrawable(paramDrawable); } }
[ "antal.micky@yahoo.com" ]
antal.micky@yahoo.com
71493b9e8b1a2ae4cee3a30d7d3fe58bbbe9e061
1fbc7b819ded0824d28f4e24465b023e30c1f421
/ui/src/main/java/org/mini2Dx/ui/style/ruleset/ButtonStyleRuleset.java
3be0677249899d9bc5224f10646d7e2475b1f4b4
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
mini2Dx/mini2Dx
959bfce4690f54cce68c9e8bb68328d2d48eaeaa
93a5c6cb59ff186926ca7005604aad5e707a7656
refs/heads/master
2023-09-03T14:37:58.044965
2023-08-19T18:47:09
2023-08-19T18:47:09
8,236,056
543
76
Apache-2.0
2022-12-05T21:53:34
2013-02-16T13:27:08
Java
UTF-8
Java
false
false
2,185
java
/******************************************************************************* * Copyright 2019 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 org.mini2Dx.ui.style.ruleset; import org.mini2Dx.core.assets.AssetDescriptor; import org.mini2Dx.core.assets.AssetManager; import org.mini2Dx.core.files.FileHandleResolver; import org.mini2Dx.core.serialization.annotation.Field; import org.mini2Dx.gdx.utils.Array; import org.mini2Dx.gdx.utils.ObjectMap; import org.mini2Dx.ui.layout.ScreenSize; import org.mini2Dx.ui.style.ButtonStyleRule; import org.mini2Dx.ui.style.StyleRuleset; import org.mini2Dx.ui.style.UiTheme; /** * {@link StyleRuleset} implementation for {@link ButtonStyleRule}s */ public class ButtonStyleRuleset extends StyleRuleset<ButtonStyleRule> { @Field private ObjectMap<ScreenSize, ButtonStyleRule> rules; @Override public void putStyleRule(ScreenSize screenSize, ButtonStyleRule rule) { if(rules == null) { rules = new ObjectMap<ScreenSize, ButtonStyleRule>(); } rules.put(screenSize, rule); } @Override public ButtonStyleRule getStyleRule(ScreenSize screenSize) { return getStyleRule(screenSize, rules); } @Override public void validate(UiTheme theme) { validate(theme, rules); } @Override public void loadDependencies(UiTheme theme, Array<AssetDescriptor> dependencies) { loadDependencies(theme, dependencies, rules); } @Override public void prepareAssets(UiTheme theme, FileHandleResolver fileHandleResolver, AssetManager assetManager) { prepareAssets(theme, fileHandleResolver, assetManager, rules); } }
[ "thomascashman404@gmail.com" ]
thomascashman404@gmail.com
40804e94f5dcba7a27c18b761b8c1d4e86eeafa4
97aac7aa73a5fcf5b10cf084dc8622616663e5c6
/src/main/java/io/github/nucleuspowered/nucleus/internal/userprefs/UserPrefKeys.java
321da027998f9a659c1da58d36ebaf9a52cce3ba
[ "MIT" ]
permissive
Dirt-Craft/Nucleus
5f5ebbcd523ac0712c8e580b63bf472fcfd961ef
7d140ebf6b100162834df80e947735ad6bc09383
refs/heads/master
2021-08-18T09:48:08.191641
2021-06-13T10:33:16
2021-06-13T10:33:16
191,478,397
0
0
MIT
2021-06-13T10:33:31
2019-06-12T01:55:13
Java
UTF-8
Java
false
false
542
java
/* * This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file * at the root of this project for more details. */ package io.github.nucleuspowered.nucleus.internal.userprefs; import io.github.nucleuspowered.nucleus.annotationprocessor.Store; import io.github.nucleuspowered.nucleus.internal.Constants; /** * Indicates that this contains {@link io.github.nucleuspowered.nucleus.api.service.NucleusUserPreferenceService.PreferenceKey}s. */ @Store(Constants.PREF_KEYS) public interface UserPrefKeys { }
[ "git@drnaylor.co.uk" ]
git@drnaylor.co.uk
8f20d166067f797c022d634afff5cfecb83cf374
42bb692d9140736c468e7ae328564c12b830b4be
/bitcamp-web01/src/main/java/step08/ex3/Common.java
604653dd72cfb246abb482bb6391b61cd265e246
[]
no_license
kimkwanhee/bitcamp
b047f4cc391d2c43bad858f2ffb4f3a6a3779aa2
0245693f83b06d773365b9b5b6b3d4747877d070
refs/heads/master
2021-01-24T10:28:06.247239
2018-08-20T03:13:18
2018-08-20T03:13:18
123,054,178
0
0
null
null
null
null
UTF-8
Java
false
false
1,076
java
// 다른 서블릿의 작업을 포함하기 - include package step08.ex3; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @SuppressWarnings("serial") @WebServlet("/step08/ex3/common") public class Common extends HttpServlet { @Override protected void doGet( HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); out.println("<style>"); out.println("div#header {"); out.println(" background-color: blue;"); out.println(" color: white;"); out.println(" font-weight: bold;"); out.println("}"); out.println("div#footer {"); out.println(" background-color: yellow;"); out.println("}"); out.println("</style>"); } }
[ "rhdwn1955@naver.com" ]
rhdwn1955@naver.com
4db7a1e99d597e60500ae6c74b27233c72b2b6aa
3a5985651d77a31437cfdac25e594087c27e93d6
/ojc-core/hl7bc/hl7bcimpl/src/com/sun/jbi/hl7bc/extservice/ack/hl7v26/DTN.java
5f85ddfa356776c8716143c03ed7cd562872ec66
[]
no_license
vitalif/openesb-components
a37d62133d81edb3fdc091abd5c1d72dbe2fc736
560910d2a1fdf31879e3d76825edf079f76812c7
refs/heads/master
2023-09-04T14:40:55.665415
2016-01-25T13:12:22
2016-01-25T13:12:33
48,222,841
0
5
null
null
null
null
UTF-8
Java
false
false
2,316
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1-b02-fcs // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2008.12.04 at 12:45:30 AM IST // package com.sun.jbi.hl7bc.extservice.ack.hl7v26; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for DTN complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="DTN"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element ref="{urn:hl7-org:v2xml}DTN.1" minOccurs="0"/> * &lt;element ref="{urn:hl7-org:v2xml}DTN.2" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DTN", propOrder = { "dtn1", "dtn2" }) public class DTN { @XmlElement(name = "DTN.1") protected DTN1CONTENT dtn1; @XmlElement(name = "DTN.2") protected DTN2CONTENT dtn2; /** * Gets the value of the dtn1 property. * * @return * possible object is * {@link DTN1CONTENT } * */ public DTN1CONTENT getDTN1() { return dtn1; } /** * Sets the value of the dtn1 property. * * @param value * allowed object is * {@link DTN1CONTENT } * */ public void setDTN1(DTN1CONTENT value) { this.dtn1 = value; } /** * Gets the value of the dtn2 property. * * @return * possible object is * {@link DTN2CONTENT } * */ public DTN2CONTENT getDTN2() { return dtn2; } /** * Sets the value of the dtn2 property. * * @param value * allowed object is * {@link DTN2CONTENT } * */ public void setDTN2(DTN2CONTENT value) { this.dtn2 = value; } }
[ "bitbucket@bitbucket02.private.bitbucket.org" ]
bitbucket@bitbucket02.private.bitbucket.org
cf43c73720eca8dfa0e1ce5f394f7c9ba60877c2
65a09e9f4450c6133e6de337dbba373a5510160f
/naifg8/src/main/java/co/simasoft/Beans/Naifg8Bean.java
fb25dfd4b53018dbb08298e1ea05e371d5580447
[]
no_license
nelsonjava/simasoft
c0136cdf0c208a5e8d01ab72080330e4a15b1261
be83eb8ef67758be82bbd811b672572eff1910ee
refs/heads/master
2021-01-23T15:21:01.981277
2017-04-27T12:46:16
2017-04-27T12:46:16
27,980,384
0
0
null
null
null
null
UTF-8
Java
false
false
3,645
java
package co.simasoft.beans; import co.simasoft.models.naif.domainmodels.*; import java.util.Calendar; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Random; import java.util.StringTokenizer; import javax.ejb.LocalBean; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.LockModeType; import javax.persistence.OptimisticLockException; import javax.persistence.PersistenceContext; import org.apache.lucene.search.NumericRangeQuery; import org.apache.lucene.search.Query; import org.apache.lucene.search.Sort; import org.apache.lucene.search.SortField; import org.hibernate.search.jpa.FullTextEntityManager; import org.hibernate.search.jpa.FullTextQuery; import org.hibernate.search.jpa.Search; import org.hibernate.search.query.DatabaseRetrievalMethod; import org.hibernate.search.query.ObjectLookupMethod; import org.hibernate.search.query.dsl.QueryBuilder; @Stateless @LocalBean public class Naifg8Bean { private QueryBuilder qb; private FullTextEntityManager fTEM; /** * Initializes the objects required for an Hibernate Search/Apache Lucene Query. * * @param entityClass Entity type used for data retrieval during query creation. */ private void prepare(Class<?> entityClass,EntityManager em) { if (entityClass == null) { throw new NullPointerException("Entity class(.class type) is null."); } if (fTEM == null) { fTEM = Search.getFullTextEntityManager(em); } qb = fTEM.getSearchFactory().buildQueryBuilder().forEntity(entityClass).get(); } // end : prepare Method /** * Finishes the Hibernate Search Query wrap-up, and begins execution. * * @param query Hibernate search/Apache Lucene query. * @param entityClasses Entity types that will be returned by the query. * @param projectionWith Entity fields to be projected with the query. * @param sortByThisField Field used to order the query results. * @return A untyped list of the results. */ private List execute(Query query, Class<?>[] entityClasses, String[] projectionWith, SortField sortByThisField) { try { if (query == null) { throw new NullPointerException("Lucene query object is null."); } if ( (entityClasses == null) || (entityClasses.length == 0) ) { throw new NullPointerException("There must be at least one entity class(.class type)."); } fTEM.createIndexer().startAndWait(); FullTextQuery fTQ = fTEM.createFullTextQuery(query, entityClasses); if (projectionWith != null) { fTQ.setProjection(projectionWith); } if (sortByThisField != null) { fTQ.setSort(new Sort(sortByThisField)); } fTQ.initializeObjectsWith(ObjectLookupMethod.SKIP, DatabaseRetrievalMethod.FIND_BY_ID); return fTQ.getResultList(); } // try catch(Exception ioe) { ioe.printStackTrace(); } // catch return null; // Revisar } // end : execute Method // QUERIES // public List<Cardinalities> selectAllCardinalities(EntityManager em) { prepare(Cardinalities.class,em); Query query = qb.all().createQuery(); List<Cardinalities> results = execute(query, new Class[]{Cardinalities.class}, null, new SortField("orden", SortField.DOUBLE)); return results; } } // Fin de clase
[ "nelsonjava@gmail.com" ]
nelsonjava@gmail.com
d23cf17512868720ed266e109fa36d652099acb8
eaadbbf75cefd3896ed93c45f23c30d9c4b80ff9
/sources/com/google/android/gms/games/internal/api/zzdj.java
0d5bec0c30fe00894d70d2eb2c34934c1aee1912
[]
no_license
Nicholas1771/Mighty_Monkey_Android_Game
2bd4db2951c6d491f38da8e5303e3c004b4331c7
042601e568e0c22f338391c06714fa104dba9a5b
refs/heads/master
2023-03-09T00:06:01.492150
2021-02-27T04:02:42
2021-02-27T04:02:42
342,766,422
0
0
null
null
null
null
UTF-8
Java
false
false
719
java
package com.google.android.gms.games.internal.api; import com.google.android.gms.common.api.GoogleApiClient; import com.google.android.gms.common.api.Result; import com.google.android.gms.common.api.Status; import com.google.android.gms.games.Games; import com.google.android.gms.games.multiplayer.turnbased.TurnBasedMultiplayer; abstract class zzdj extends Games.zza<TurnBasedMultiplayer.LeaveMatchResult> { private zzdj(GoogleApiClient googleApiClient) { super(googleApiClient); } /* synthetic */ zzdj(GoogleApiClient googleApiClient, zzcv zzcv) { this(googleApiClient); } public final /* synthetic */ Result zzb(Status status) { return new zzdk(this, status); } }
[ "nicholasiozzo17@gmail.com" ]
nicholasiozzo17@gmail.com
b6635bb06fe0f65cdc29ee433ae03770b4f3c1dd
a4d3f40e3148524017c3c413a661b6d6376fab7b
/xmet-war/src/main/java/org/xmetdb/xmet/task/XMETCuratorRouter.java
3b07ee0ac5614f7796e463eeab1fbefdc4fc9212
[]
no_license
xmetdb/xmetdb-server
c3146431cf354bd30cc32411ea18fa618a01d9e1
2831a4ea6f0e6234b857f9a78c2148dcdf5ce902
refs/heads/master
2021-04-12T05:16:44.776262
2019-01-01T09:16:08
2019-01-01T09:16:08
5,520,179
0
0
null
2013-04-29T10:33:00
2012-08-23T06:44:01
Java
UTF-8
Java
false
false
513
java
package org.xmetdb.xmet.task; import net.idea.restnet.aa.resource.AdminRouter; import org.restlet.Context; import org.xmetdb.rest.FileResource; import org.xmetdb.rest.xmet.curator.DraftObservationsResource; public class XMETCuratorRouter extends AdminRouter { public XMETCuratorRouter(Context context) { super(context); } @Override protected void init() { attachDefault(DraftObservationsResource.class); attach(String.format("/{%s}",FileResource.resourceKey),DraftObservationsResource.class); } }
[ "jeliazkova.nina@gmail.com" ]
jeliazkova.nina@gmail.com
d067eb9206fb1fb9d3be7c477ff386068158f9a9
ba0657f835fe4a2fb0b0524ad2a38012be172bc8
/src/main/java/designpatterns/hf/behavioural/strategy/duck/app/BehaviourInjection.java
97da9ae773ac4c461ed888fe232501c553ef1f9c
[]
no_license
jsdumas/java-dev-practice
bc2e29670dd6f1784b3a84f52e526a56a66bbba2
db85b830e7927fea863d95f5ea8baf8d3bdc448b
refs/heads/master
2020-12-02T16:28:41.081765
2017-12-08T23:10:53
2017-12-08T23:10:53
96,547,922
0
0
null
null
null
null
UTF-8
Java
false
false
501
java
package designpatterns.hf.behavioural.strategy.duck.app; import designpatterns.hf.behavioural.strategy.duck.behaviour.fly.FlyRocketPowered; import designpatterns.hf.behavioural.strategy.duck.bird.ModelDuck; public class BehaviourInjection { public static void main(String[] args) { ModelDuck model = new ModelDuck(); model.performFly(); // Inject a new FlyBehaviour model.setFlyBehavior(new FlyRocketPowered()); // Now FlyBehaviour of ModelDuck is different model.performFly(); } }
[ "jsdumas@free.fr" ]
jsdumas@free.fr
b41d58f99eb6d49f96531b87d86145384f6433b9
26bb15d40208d378a58c2f8646e8d17e2520fc72
/java-basic/examples/bitcamp/java100/ch06/ex4/Test02.java
a04b6636827409b3ebac61405f0861845fe5f18e
[]
no_license
dazzul94/bitcamp
ee7dbd9a926befed5828ba4d4be4173fdcbf218e
6d0b1fd4d796203fcf0111b69251a7f58554ffaa
refs/heads/master
2021-09-11T08:24:31.944955
2018-04-06T07:43:57
2018-04-06T07:43:57
104,423,438
0
0
null
null
null
null
UTF-8
Java
false
false
728
java
package bitcamp.java100.ch06.ex4; //클래스 멤버와 인스턴스 멤버의 활용 public class Test02 { //2단계 : 메서드 분리 static int plus(int a, int b) { return a + b; } static int multiple(int a, int b) { return a * b; } static int minus(int a, int b) { return a - b; } static int devide(int a, int b) { return a / b; } public static void main(String[] args) { //2 + 5 * 3 - 7 / 2 int result; result = plus(2, 5); result = multiple(result, 3); result = minus(result, 7); result = devide(result, 2); System.out.println(result); } }
[ "dazzul@naver.com" ]
dazzul@naver.com
4b92b3455a5fb1390ffab889474c9d9889e7f7b4
777d41c7dc3c04b17dfcb2c72c1328ea33d74c98
/dongciSDK_android/src/main/java/com/dongci/sun/gpuimglibrary/gles/filter/diyfilter/GPUImageBeautifyFilter.java
dd293ed3a67356004981958383ebbd9650bd550c
[]
no_license
foryoung2018/videoedit
00fc132c688be6565efb373cae4564874f61d52a
7a316996ce1be0f08dbf4c4383da2c091447c183
refs/heads/master
2020-04-08T04:56:42.930063
2018-11-25T14:27:43
2018-11-25T14:27:43
159,038,966
2
0
null
null
null
null
UTF-8
Java
false
false
2,756
java
package com.dongci.sun.gpuimglibrary.gles.filter.diyfilter; import com.dongci.sun.gpuimglibrary.gles.filter.filternew.GPUImageBilateralFilter; import com.dongci.sun.gpuimglibrary.gles.filter.filternew.GPUImageFilterGroup; public class GPUImageBeautifyFilter extends GPUImageFilterGroup { private GPUImageBilateralFilter mBilateralFilter; private GPUImageFilterGroup mBilateralFilterContainer; private GPUImageCannyEdgeDetectionFilter mCannyEdgeDetectionFilter; private GPUImageFilterGroup mCannyEdgeDetectionFilterContainer; private GPUImageCombinationFilter mCombinationFilter; private GPUImageHSBFilter mHSBFilter; public GPUImageBeautifyFilter() { super(); mBilateralFilter = new GPUImageBilateralFilter(); mBilateralFilterContainer = new GPUImageFilterGroup(); mBilateralFilterContainer.addFilter(mBilateralFilter); mCannyEdgeDetectionFilter = new GPUImageCannyEdgeDetectionFilter(); mCannyEdgeDetectionFilterContainer = new GPUImageFilterGroup(); mCannyEdgeDetectionFilterContainer.addFilter(mCannyEdgeDetectionFilter); mCombinationFilter = new GPUImageCombinationFilter(); addFilter(mCombinationFilter); mHSBFilter = new GPUImageHSBFilter(); addFilter(mHSBFilter); } @Override public void onInit() { super.onInit(); mBilateralFilterContainer.onInit(); mCannyEdgeDetectionFilterContainer.onInit(); mBilateralFilter.setDistanceNormalizationFactor(4.0f); mHSBFilter.adjustBrightness(1.1f); mHSBFilter.adjustSaturation(1.1f); } @Override public void onInitialized() { super.onInitialized(); } @Override public void onInputSizeChanged(final int width, final int height) { super.onInputSizeChanged(width, height); mBilateralFilterContainer.onInputSizeChanged(width, height); mCannyEdgeDetectionFilterContainer.onInputSizeChanged(width, height); } @Override public void onDisplaySizeChanged(final int width, final int height) { super.onDisplaySizeChanged(width, height); mBilateralFilterContainer.onDisplaySizeChanged(width, height); mCannyEdgeDetectionFilterContainer.onDisplaySizeChanged(width, height); } @Override public int onDraw(final int textureId) { mBilateralFilterContainer.onDraw(textureId, mGLCubeBuffer, mGLTextureBuffer); mCannyEdgeDetectionFilterContainer.onDraw(textureId, mGLCubeBuffer, mGLTextureBuffer); mCombinationFilter.setTexture(mBilateralFilterContainer.getTextureId()); mCombinationFilter.setTexture3(mCannyEdgeDetectionFilterContainer.getTextureId()); return super.onDraw(textureId); } }
[ "1184394624@qq.com" ]
1184394624@qq.com
eb688f8008d317db84dcadf4898173504975bed2
4d6c00789d5eb8118e6df6fc5bcd0f671bbcdd2d
/src/main/java/com/alipay/api/domain/AlipaySecurityRiskAntifraudBatchqueryModel.java
8a5ace6e53a19f56d009dea5fdec07737a847cdf
[ "Apache-2.0" ]
permissive
weizai118/payment-alipay
042898e172ce7f1162a69c1dc445e69e53a1899c
e3c1ad17d96524e5f1c4ba6d0af5b9e8fce97ac1
refs/heads/master
2020-04-05T06:29:57.113650
2018-11-06T11:03:05
2018-11-06T11:03:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,093
java
package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 反舞弊风险批量查询 * * @author auto create * @since 1.0, 2017-07-20 10:50:29 */ public class AlipaySecurityRiskAntifraudBatchqueryModel extends AlipayObject { private static final long serialVersionUID = 7523123332556953465L; /** * company_list+传入的一批待检查的企业名单+用户传入+还可以传入{"creditCode":"企业信用代码"}或者{"regNo":"企业工商注册号"} */ @ApiListField("company_list") @ApiField("string") private List<String> companyList; /** * partner_name+唯一+作为标识调用者身份的字段+用户填入 */ @ApiField("partner_name") private String partnerName; /** * staff_list+传入的一批待检查员工信息+用户传入+手机号/身份证姓名二选一+还可以传入{"name":"姓名","phone":"手机号码"} */ @ApiListField("staff_list") @ApiField("string") private List<String> staffList; /** * Gets company list. * * @return the company list */ public List<String> getCompanyList() { return this.companyList; } /** * Sets company list. * * @param companyList the company list */ public void setCompanyList(List<String> companyList) { this.companyList = companyList; } /** * Gets partner name. * * @return the partner name */ public String getPartnerName() { return this.partnerName; } /** * Sets partner name. * * @param partnerName the partner name */ public void setPartnerName(String partnerName) { this.partnerName = partnerName; } /** * Gets staff list. * * @return the staff list */ public List<String> getStaffList() { return this.staffList; } /** * Sets staff list. * * @param staffList the staff list */ public void setStaffList(List<String> staffList) { this.staffList = staffList; } }
[ "hanley@thlws.com" ]
hanley@thlws.com
ccdb9965ad286cd65c7cf780ecc109c1f5c30fce
d1e27692c858fbd3a2433fd6e8ed15f86050a642
/src/test/java/com/automation/utils/ExcelUtils.java
d49054f775ffdb193ee43f35d547296c1f4e3a09
[]
no_license
saikrishna89/IndeedProject
7d734aebd18713e48f2db7460503a7892d1b19a1
e68d284e5f0294af42c3247905e98909269018de
refs/heads/master
2021-01-23T03:34:35.490743
2017-12-21T06:07:07
2017-12-21T06:07:07
86,095,699
0
0
null
null
null
null
UTF-8
Java
false
false
2,130
java
package com.automation.utils; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.DataFormatter; import org.apache.poi.xssf.usermodel.XSSFSheet; import org.apache.poi.xssf.usermodel.XSSFWorkbook; public class ExcelUtils { public FileInputStream fileInput = null; public FileOutputStream fileOutput =null; public XSSFWorkbook wb = null; public static XSSFSheet ws = null; static{ try(FileInputStream fileInput = new FileInputStream(System.getProperty("user.dir")+"//TestData//TestData.xlsx"); XSSFWorkbook wb = new XSSFWorkbook(fileInput)){ ws = wb.getSheet("TestData"); }catch(Exception e){ e.printStackTrace(); } } public List<String> getCellData(String TCID) throws IOException{ String ActualStringValue = null; List<String> settingValues = null; //ReadExcelData(); if(ws != null){ int firstrow = ws.getFirstRowNum(); int lastrow = ws.getLastRowNum(); for(int i = firstrow+1; i <= lastrow; i++){ ActualStringValue = ws.getRow(i).getCell(0).getStringCellValue(); if(ActualStringValue.equalsIgnoreCase(TCID)){ settingValues = new ArrayList<String>(); DataFormatter formatter = new DataFormatter(); Cell cell1 = ws.getRow(i).getCell(2); Cell cell2 = ws.getRow(i).getCell(3); Cell cell3 = ws.getRow(i).getCell(4); Cell cell4 = ws.getRow(i).getCell(5); Cell cell5 = ws.getRow(i).getCell(6); settingValues.add(formatter.formatCellValue(cell1)); settingValues.add(formatter.formatCellValue(cell2)); settingValues.add(formatter.formatCellValue(cell3)); settingValues.add(formatter.formatCellValue(cell4)); settingValues.add(formatter.formatCellValue(cell5)); } } } return settingValues; } public void fnCloseReadExcel() { try { fileInput.close(); wb.close(); fileInput=null; wb=null; ws=null; } catch (IOException e) { System.out.println("fnCloseReadExcel--------------Failed"); e.printStackTrace(); } } }
[ "abhi.madhireddy@gmail.com" ]
abhi.madhireddy@gmail.com
eae454d2a0967c6fc42d7719294b7969851690f2
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
/benchmark/training/com/google/cloud/datastore/KeyTest.java
3ee9b78ba2a98ca24360e1d4896e4dbd0bfc07fd
[]
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,503
java
/** * Copyright 2015 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.cloud.datastore; import Key.Builder; import org.junit.Assert; import org.junit.Test; public class KeyTest { @Test public void testHasId() throws Exception { Key.Builder builder = Key.newBuilder("d", "k", 10); Key key = builder.build(); Assert.assertTrue(key.hasId()); key = builder.setName("bla").build(); Assert.assertFalse(key.hasId()); } @Test public void testId() throws Exception { Key.Builder builder = Key.newBuilder("d", "k", 10); Key key = builder.build(); Assert.assertEquals(Long.valueOf(10), key.getId()); key = builder.setId(100).build(); Assert.assertEquals(Long.valueOf(100), key.getId()); } @Test public void testHasName() throws Exception { Key.Builder builder = Key.newBuilder("d", "k", "n"); Key key = builder.build(); Assert.assertTrue(key.hasName()); key = builder.setId(1).build(); Assert.assertFalse(key.hasName()); } @Test public void testName() throws Exception { Key.Builder builder = Key.newBuilder("d", "k", "n"); Key key = builder.build(); Assert.assertEquals("n", key.getName()); key = builder.setName("o").build(); Assert.assertEquals("o", key.getName()); } @Test public void testNameOrId() throws Exception { Key.Builder builder = Key.newBuilder("d", "k", "n"); Key key = builder.build(); Assert.assertEquals("n", key.getNameOrId()); key = builder.setId(1).build(); Assert.assertEquals(Long.valueOf(1), key.getNameOrId()); } @Test public void testToAndFromUrlSafe() throws Exception { Key key = Key.newBuilder("d", "k", "n").build(); String urlSafe = key.toUrlSafe(); Key copy = Key.fromUrlSafe(urlSafe); Assert.assertEquals(key, copy); } }
[ "benjamin.danglot@inria.fr" ]
benjamin.danglot@inria.fr
a0f10c9dd3e9ff3d8b87bbd2b5edc574766d7aa5
32b72e1dc8b6ee1be2e80bb70a03a021c83db550
/ast_results/MarcelJurtz_MTG_LifeCounter/app/src/main/java/com/marceljurtz/lifecounter/Settings/ISettingsPresenter.java
04bf29534612d8d6b11feea228b826f07dd61467
[]
no_license
cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning
d90c41a17e88fcd99d543124eeb6e93f9133cb4a
0564143d92f8024ff5fa6b659c2baebf827582b1
refs/heads/master
2020-07-13T13:53:40.297493
2019-01-11T11:51:18
2019-01-11T11:51:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
486
java
// isComment package com.marceljurtz.lifecounter.Settings; import com.marceljurtz.lifecounter.Helper.BaseInterface.IPresenter; import com.marceljurtz.lifecounter.Helper.Color; import com.marceljurtz.lifecounter.Helper.MagicColor; public interface isClassOrIsInterface extends IPresenter { void isMethod(); void isMethod(); void isMethod(); void isMethod(MagicColor isParameter); void isMethod(Color isParameter); void isMethod(); void isMethod(); }
[ "matheus@melsolucoes.net" ]
matheus@melsolucoes.net
4e9ce5a3529c1a572065c4a774fb3776f21e6e50
9208ba403c8902b1374444a895ef2438a029ed5c
/sources/pl/droidsonroids/gif/GifImageButton.java
0702ea8a6a2df80a9cd9ec5323d53be005224635
[]
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
2,882
java
package pl.droidsonroids.gif; import android.content.Context; import android.graphics.drawable.Drawable; import android.net.Uri; import android.os.Parcelable; import android.util.AttributeSet; import android.widget.ImageButton; import androidx.annotation.RequiresApi; public class GifImageButton extends ImageButton { private boolean mFreezesAnimation; public GifImageButton(Context context) { super(context); } public GifImageButton(Context context, AttributeSet attributeSet) { super(context, attributeSet); postInit(GifViewUtils.initImageView(this, attributeSet, 0, 0)); } public GifImageButton(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); postInit(GifViewUtils.initImageView(this, attributeSet, i, 0)); } @RequiresApi(21) public GifImageButton(Context context, AttributeSet attributeSet, int i, int i2) { super(context, attributeSet, i, i2); postInit(GifViewUtils.initImageView(this, attributeSet, i, i2)); } private void postInit(GifImageViewAttributes gifImageViewAttributes) { this.mFreezesAnimation = gifImageViewAttributes.freezesAnimation; if (gifImageViewAttributes.mSourceResId > 0) { super.setImageResource(gifImageViewAttributes.mSourceResId); } if (gifImageViewAttributes.mBackgroundResId > 0) { super.setBackgroundResource(gifImageViewAttributes.mBackgroundResId); } } public void setImageURI(Uri uri) { if (!GifViewUtils.setGifImageUri(this, uri)) { super.setImageURI(uri); } } public void setImageResource(int i) { if (!GifViewUtils.setResource(this, true, i)) { super.setImageResource(i); } } public void setBackgroundResource(int i) { if (!GifViewUtils.setResource(this, false, i)) { super.setBackgroundResource(i); } } public Parcelable onSaveInstanceState() { Drawable drawable = null; Drawable drawable2 = this.mFreezesAnimation ? getDrawable() : null; if (this.mFreezesAnimation) { drawable = getBackground(); } return new GifViewSavedState(super.onSaveInstanceState(), drawable2, drawable); } public void onRestoreInstanceState(Parcelable parcelable) { if (!(parcelable instanceof GifViewSavedState)) { super.onRestoreInstanceState(parcelable); return; } GifViewSavedState gifViewSavedState = (GifViewSavedState) parcelable; super.onRestoreInstanceState(gifViewSavedState.getSuperState()); gifViewSavedState.restoreState(getDrawable(), 0); gifViewSavedState.restoreState(getBackground(), 1); } public void setFreezesAnimation(boolean z) { this.mFreezesAnimation = z; } }
[ "xiayuanzhong@gmail.com" ]
xiayuanzhong@gmail.com
e027bf53d0c8661d61306fb7fe022a8d5c735409
ee1df4f152a55dfd256b490a146a24ea41345745
/1.1/JavaLibrary/src/test/org/bn/coders/test_asn/ContentPartHeader.java
fabbe612c1880a621477b997114096c1da8e5d85
[]
no_license
ishisystems/BinaryNotes
a50d58f42facca077f9edb045bd5f2265c2e4710
1b3dfaa274fbb919ce74da332bf4ad0226bd68d1
refs/heads/master
2020-04-05T23:59:39.166498
2011-09-19T22:21:55
2011-09-19T22:21:55
60,371,143
1
0
null
null
null
null
UTF-8
Java
false
false
1,411
java
package test.org.bn.coders.test_asn; // // This file was generated by the BinaryNotes compiler. // See http://bnotes.sourceforge.net // Any modifications to this file will be lost upon recompilation of the source schema. // import org.bn.*; import org.bn.annotations.*; import org.bn.annotations.constraints.*; import org.bn.coders.*; @ASN1Sequence ( name = "ContentPartHeader" ) public class ContentPartHeader { @ASN1Element ( name = "name", isOptional = false , hasTag = true, tag = 0 ) @ASN1String( name = "", stringType = UniversalTag.PrintableString , isUCS = false ) private String name = null; @ASN1Element ( name = "values", isOptional = false , hasTag = true, tag = 1 ) @ASN1SequenceOf( name = "" ) private java.util.Collection<ValueWithParams> values = null; public String getName () { return this.name; } public void setName (String value) { this.name = value; } public java.util.Collection<ValueWithParams> getValues () { return this.values; } public void setValues (java.util.Collection<ValueWithParams> value) { this.values = value; } }
[ "akira_ag@6e58b0a2-a920-0410-943a-aae568831f16" ]
akira_ag@6e58b0a2-a920-0410-943a-aae568831f16
45cdca3e1e8384ccb84007de436c1a070dcfa990
238d7792025b9e09f3b1dbeff44657eca107d78a
/sourceCode/it.univaq.QN_Solver/src/it/univaq/editors/XMLDocumentProvider.java
e923b5de4ab6ee6f0981714b7d91f316d7a7d99d
[]
no_license
SEALABQualityGroup/two-eagles
e87c043b26ac1e1140bcf17a3e481820de67a9c5
7e0e484822e1757fcdd662138dbd1a10341a2ab9
refs/heads/master
2021-01-23T08:00:04.527493
2017-07-06T19:06:19
2017-07-06T19:06:19
86,469,869
0
0
null
null
null
null
UTF-8
Java
false
false
801
java
package it.univaq.editors; import org.eclipse.core.runtime.CoreException; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.IDocumentPartitioner; import org.eclipse.jface.text.rules.FastPartitioner; import org.eclipse.ui.editors.text.FileDocumentProvider; public class XMLDocumentProvider extends FileDocumentProvider { protected IDocument createDocument(Object element) throws CoreException { IDocument document = super.createDocument(element); if (document != null) { IDocumentPartitioner partitioner = new FastPartitioner( new XMLPartitionScanner(), new String[] { XMLPartitionScanner.XML_TAG, XMLPartitionScanner.XML_COMMENT }); partitioner.connect(document); document.setDocumentPartitioner(partitioner); } return document; } }
[ "dipompeodaniele@gmail.com" ]
dipompeodaniele@gmail.com
3da36714cb004ed9bd590fa87c462c60cd1ebf1f
73858300b5e04e531738161cbac1f6f4c1f9c5fd
/src/main/java/com/example/designmode/company/dip/section4/ICar.java
884cf50203503141a9b5f5e715b7f44328bbc15a
[]
no_license
175272511/spring-boot-demo
37099c8f36133b02bbfb9f48fe20fc21db75aa9d
548c74f4671ea9af8351a6ce8be3936ba6378ee4
refs/heads/master
2023-04-29T09:13:24.603325
2021-09-08T08:44:55
2021-09-08T08:44:55
50,085,429
0
1
null
2023-04-16T23:59:37
2016-01-21T05:51:48
Java
UTF-8
Java
false
false
238
java
package com.example.designmode.company.dip.section4; /** * @author cbf4Life cbf4life@126.com * I'm glad to share my knowledge with you all. * 汽车接口 */ public interface ICar { //是汽车就应该能跑 public void run(); }
[ "liuhui3@meilele.com" ]
liuhui3@meilele.com
d3a1c95f8eabd61d1eeeecd78be2946e2dadfe39
910d4dac1d6fa0849b371df2e0e6ea9a52f06054
/src/com/codyy/rrt/resource/mapper/ResourceKnowledgeMapper.java
6209159301cae694cce7a877b35ad34c1e6343f9
[]
no_license
cytvictor/springmvc-mybatis-redis-mongodb
27fa28a6fce982d6796c5d944467ffc43c72228b
b1d3bcef9d281a63cbf4ed2e2402d9664d85a81e
refs/heads/master
2020-04-12T14:53:08.146534
2015-10-27T02:50:55
2015-10-27T02:50:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
601
java
package com.codyy.rrt.resource.mapper; import java.util.List; import com.codyy.rrt.resource.model.ResourceKnowledge; public interface ResourceKnowledgeMapper { /** * 保存资源的知识点 * * @param resourceKnowledge */ public void saveResourceKnowledge(ResourceKnowledge resourceKnowledge); /** * 根据资源Id查询知识点集合 * * @param resourceId * @return */ public List<ResourceKnowledge> findByResourceId(String resourceId); /** * 根据资源Id删除相关知识点 * * @param resourceId */ public void deleteByResourceId(String resourceId); }
[ "372594984@qq.com" ]
372594984@qq.com
1e46a60074307ff7596c351554c51576871a9f41
7410648ed602d53c2f0ef7306a2ffd76f6af5956
/src/com/learn/dao/UserDao.java
b5d1b5e96bfcdff21acd3b49b3a146f409e9e7f3
[]
no_license
xiaoyu19950911/myssm
657d5dea33614c20021d40652b34782f056fc13e
363b6532ba2213d7ddc3075ded7ee3cdbba794c9
refs/heads/master
2021-07-02T22:45:55.391681
2017-09-21T11:49:01
2017-09-21T11:55:45
104,341,838
0
0
null
null
null
null
UTF-8
Java
false
false
171
java
package com.learn.dao; import com.learn.pojo.User; public interface UserDao { public User findUserByName(String username); public void add(User user); }
[ "1015407731@qq.com" ]
1015407731@qq.com
3b5f3a02bbe93724c8fafac0f0d2a58c993b7dd4
3801a73f30aad8da2c020d03deed2c46198266c4
/jess/Retract.java
97087c5ef4e5e744db03e350da602503ad47c311
[]
no_license
rngwrldngnr/Facade
6eada6681e2e7d5843ba7837a283efee4326e76c
31a421a55a1f69294fdab6c0f075e89683160b80
refs/heads/master
2023-04-25T21:11:53.686955
2021-05-28T20:41:26
2021-05-28T20:41:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,166
java
package jess; import java.io.Serializable; class Retract implements Userfunction, Serializable { public String getName() { return "retract"; } public Value call(final ValueVector valueVector, final Context context) throws JessException { final Value value = valueVector.get(1); if (value.type() == 1 && value.stringValue(context).equals("*")) { context.getEngine().removeAllFacts(); } else { final Rete engine = context.getEngine(); for (int i = 1; i < valueVector.size(); ++i) { final Value resolveValue = valueVector.get(i).resolveValue(context); Fact factByID; if (resolveValue.type() == 4) { factByID = engine.findFactByID(resolveValue.intValue(context)); } else { factByID = (Fact)resolveValue.externalAddressValue(context); } if (factByID == null) { return Funcall.FALSE; } engine.retract(factByID); } } return Funcall.TRUE; } }
[ "videogamesm12@gmail.com" ]
videogamesm12@gmail.com
e490cec63e547d06891df504c425ce816e9fc592
f1fb970cce7cda7ce6c8c3e0dc9119b2ffe595c7
/kikaha-modules/kikaha-urouting/source/kikaha/urouting/SimpleExchange.java
f5df01cb609ee603f3823fd3c5aa82a468d38afa
[ "Apache-2.0" ]
permissive
hustbill/kikaha
fc4eb7064793e420140a11525dc5d1113720ad8d
d709dcead58e74c3657fd881bb88c7a233d3d9b3
refs/heads/master
2021-01-13T13:31:14.342076
2016-10-28T14:04:52
2016-10-28T14:04:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,846
java
package kikaha.urouting; import java.io.IOException; import java.util.*; import io.undertow.server.HttpServerExchange; import io.undertow.server.handlers.Cookie; import io.undertow.util.*; import kikaha.urouting.api.*; import lombok.RequiredArgsConstructor; /** * Represents an incoming request. Most of time, is just a very tiny layer above * Undertow's API providing to developers an easy to use API for their daily routines. */ @RequiredArgsConstructor(staticName = "wrap") public class SimpleExchange { final HttpServerExchange exchange; final RoutingMethodParameterReader parameterReader; final RoutingMethodResponseWriter responseWriter; /** * Return the host, and also the port if this request was sent to a non-standard port. In general * this will just be the value of the Host header. * <p> * If this resolves to an IPv6 address it *will* be enclosed by square brackets. The return * value of this method is suitable for inclusion in a URL. * * @return The host and port part of the destination address */ public String getHostAndPort(){ return exchange.getHostAndPort(); } /** * Get the request URI scheme. Normally this is one of {@code http} or {@code https}. * * @return the request URI scheme */ public String getRequestScheme() { return exchange.getRequestScheme(); } /** * Get the HTTP request method. Normally this is one of the strings listed in {@link io.undertow.util.Methods}. * * @return the HTTP request method */ public HttpString getHttpMethod() { return exchange.getRequestMethod(); } /** * Get the request relative path. This is the path which should be evaluated by the current handler. * * @return the request relative path */ public String getRelativePath() { return exchange.getRelativePath(); } /** * Returns a mutable map of query parameters. * * @return The query parameters */ public Map<String, Deque<String>> getQueryParameters() { return exchange.getQueryParameters(); } /** * Get a simple query parameter, named {@code name}, converted to the type {@code type}. * * @param name * @param type * @param <T> * @return * @throws IOException if anything goes wrong during the conversion process */ public <T> T getQueryParameter(String name, Class<T> type) throws IOException { try { return parameterReader.getQueryParam(exchange, name, type); } catch ( IllegalAccessException | InstantiationException e) { throw new IOException(e); } } /** * Retrieve all path parameters related to this request. * * @return all path parameters. */ public Map<String, String> getPathParameters() { return parameterReader.getPathParams( exchange ); } /** * Get a path parameter from request converted to the {@code <T>} type as * defined by {@code clazz} argument. * * @param name * @param type * @param <T> * @return * @throws IOException */ public <T> T getPathParameter(String name, Class<T> type) throws IOException { try { return parameterReader.getPathParam( exchange, name, type ); } catch (ConversionException | InstantiationException | IllegalAccessException e) { throw new IOException(e); } } /** * Get the response headers. * * @return the response headers */ public HeaderMap getHeaderParameters() { return exchange.getRequestHeaders(); } /** * Get a header parameter from request converted to the {@code <T>} type as * defined by {@code clazz} argument. * * @param name * @param type * @param <T> * @return * @throws IOException */ public <T> T getHeaderParameter(String name, Class<T> type) throws IOException { try { return parameterReader.getHeaderParam( exchange, name, type ); } catch (ConversionException | InstantiationException | IllegalAccessException e) { throw new IOException(e); } } /** * @return A mutable map of request cookies */ public Map<String, Cookie> getCookieParameters() { return exchange.getRequestCookies(); } /** * Get a cookie from request converted to the {@code <T>} type as defined by * {@code clazz} argument. * * @param name * @param type * @param <T> * @return * @throws IOException */ public <T> T getCookieParameter(String name, Class<T> type) throws IOException { try { return parameterReader.getCookieParam( exchange, name, type ); } catch (ConversionException | InstantiationException | IllegalAccessException e) { throw new IOException(e); } } /** * Get the body of current request and convert to {@code <T>} type as * defined by {@code clazz} argument.<br> * <br> * <p> * It searches for {@link Unserializer} implementations to convert sent data * from client into the desired object. The "Content-Type" header is the * information needed to define which {@link Unserializer} should be used to * decode the sent data into an object. When no {@link Unserializer} is * found it uses the {@code defaultConsumingContentType} argument to seek * another one. * * @param type * @param contentType * @param <T> * @return * @throws IOException if no decoder/unserializer was found. */ public <T> T getRequestBody(Class<T> type, String contentType) throws IOException { return parameterReader.getBody(exchange, type, contentType); } /** * Serialize and send the {@code response} object to the HTTP Client. * * @param response * @throws IOException */ public void sendResponse(Response response) throws IOException { responseWriter.write( exchange, response ); } /** * Serialize and send the {@code response} object to the HTTP Client. * * @param response * @param contentType * @throws IOException */ public void sendResponse(Object response, String contentType) throws IOException { responseWriter.write( exchange, contentType, response ); } }
[ "miere00@gmail.com" ]
miere00@gmail.com
890b9177eba8b740fddaa59c9088775bc9386b17
aac5bd343754ac28ff7e66d5af4104165e2acebb
/common/mdiyo/inficraft/flora/trees/EucalyptusBoatRender.java
87cb548912b44f094df0704d63a38c1ed4642cfc
[]
no_license
AlexTheLarge/InfiCraft
8c36406887da285b1e30c7787334780869953e20
0d6fc1a2e622988a77d71f9eabaecef39005edf8
refs/heads/master
2021-01-16T20:35:08.747272
2012-08-28T06:43:33
2012-08-28T06:43:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,484
java
package mdiyo.inficraft.flora.trees; import net.minecraft.src.*; import org.lwjgl.opengl.GL11; public class EucalyptusBoatRender extends Render { protected ModelBase modelBoat; private String texture; public EucalyptusBoatRender() { shadowSize = 0.5F; modelBoat = new ModelBoat(); } public void renderBoat(EucalyptusBoat entityboat, double d, double d1, double d2, float f, float f1) { GL11.glPushMatrix(); GL11.glTranslatef((float)d, (float)d1, (float)d2); GL11.glRotatef(180F - f, 0.0F, 1.0F, 0.0F); float f2 = (float)entityboat.getTimeSinceHit() - f1; float f3 = (float)entityboat.getDamageTaken() - f1; if (f3 < 0.0F) { f3 = 0.0F; } if (f2 > 0.0F) { GL11.glRotatef(((MathHelper.sin(f2) * f2 * f3) / 10F) * (float)entityboat.getForwardDirection(), 1.0F, 0.0F, 0.0F); } //loadTexture("/terrain.png"); float f4 = 0.75F; GL11.glScalef(f4, f4, f4); GL11.glScalef(1.0F / f4, 1.0F / f4, 1.0F / f4); loadTexture("/floratex/eucalyptusboat.png"); GL11.glScalef(-1F, -1F, 1.0F); modelBoat.render(entityboat, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F); GL11.glPopMatrix(); } public void doRender(Entity entity, double d, double d1, double d2, float f, float f1) { renderBoat((EucalyptusBoat)entity, d, d1, d2, f, f1); } }
[ "merdiwendiyo@gmail.com" ]
merdiwendiyo@gmail.com
6ca948258962b8d9300e65085e72cab17ea1632e
112c6355566c5e09f5b577d3a6000b5ad7c1e161
/app/src/main/java/com/smart/simacol/Ruang2/ListBooking2Activity.java
6b4628f40ebaeef388ce8f828cba4d27fa5ffc67
[]
no_license
yogabraman/Simacol
f2a6d4f6e27a7d2ef43009c683ba40ce142fe465
315fa3f5200f41d8b9c5b4cc9fa7f2d42f32034f
refs/heads/master
2023-01-28T15:14:09.288334
2020-01-05T12:24:48
2020-01-05T12:24:48
231,910,615
0
0
null
2023-01-09T12:06:57
2020-01-05T12:00:02
Java
UTF-8
Java
false
false
2,115
java
package com.smart.simacol.Ruang2; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.MenuItem; import com.firebase.ui.database.FirebaseRecyclerOptions; import com.google.firebase.database.FirebaseDatabase; import com.google.firebase.database.Query; import com.smart.simacol.Adapters.BookingAllAdapter; import com.smart.simacol.R; import com.smart.simacol.models.BookingAll; public class ListBooking2Activity extends AppCompatActivity { BookingAllAdapter bookingAllAdapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_list_booking2); getSupportActionBar().setDisplayHomeAsUpEnabled(true); Query query = FirebaseDatabase.getInstance() .getReference() .child("BOOKING") .child("room2") .orderByChild("status") .equalTo("0"); FirebaseRecyclerOptions<BookingAll> options = new FirebaseRecyclerOptions.Builder<BookingAll>() .setQuery(query, BookingAll.class) .setLifecycleOwner(this) .build(); bookingAllAdapter = new BookingAllAdapter(options); RecyclerView recyclerView = findViewById(R.id.recycle_bookingAll); recyclerView.setLayoutManager(new LinearLayoutManager(getApplicationContext())); recyclerView.setAdapter(bookingAllAdapter); } @Override public void onStart() { super.onStart(); bookingAllAdapter.startListening(); } @Override public void onStop() { super.onStop(); bookingAllAdapter.stopListening(); } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: finish(); return true; default: return super.onOptionsItemSelected(item); } } }
[ "you@example.com" ]
you@example.com
7bc2c411469eebad37cd5d44c72268ad11cdd44a
0895d54cd9c3a06323ac3fcf7ec290a1430afe1b
/src/main/java/org/jocean/svr/interceptor/LogRest.java
b38b187c8e43365e4ac0c29bbd0d3cffca4ac9e0
[]
no_license
isdom/jocean-svr
97c124cb81b97c892ff4010cb2825865f39d0e5a
9c012d486b86386fae42af234250c28289a76dd6
refs/heads/master
2023-08-17T06:01:18.861134
2023-08-15T12:02:50
2023-08-15T12:02:50
101,281,685
0
0
null
null
null
null
UTF-8
Java
false
false
1,040
java
package org.jocean.svr.interceptor; import org.jocean.svr.MethodInterceptor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import io.netty.handler.codec.http.HttpResponse; import rx.Observable; public class LogRest implements MethodInterceptor { private static final Logger LOG = LoggerFactory.getLogger(LogRest.class); @Override public Observable<? extends Object> preInvoke(final Context ctx) { LOG.debug("REST - Before Processor: [{}]\r\n[{}]\r\n[ handle req ]:\r\n{}", ctx.resource(), ctx.processor(), ctx.request()); return null; } @Override public Observable<? extends Object> postInvoke(final Context ctx) { return ctx.obsResponse().doOnNext(obj -> { if (obj instanceof HttpResponse) { LOG.debug("REST - After Processor: [{}]\r\n[{}]\r\n[ handle req ]:\r\n{}\r\n[ and resp ]:\r\n{}", ctx.resource(), ctx.processor(), ctx.request(), obj); } }); } }
[ "isdom.maming@gmail.com" ]
isdom.maming@gmail.com
6767b1e60a3fcfbc272138ae0b277b99fb42115a
81af064d73a5cd2afc4f51b97618352a06454631
/src/yp/Java_NIO/Test_04_BlockingNIO2.java
e1c9e116b7eafcc4c4db6cb5f44673288c0957fd
[]
no_license
RickYinPeng/JavaSE
46d08e31d5448576e712264e3974be971912d287
cde1a4a9d214c67e4ea852fb6364cbeff9a110bf
refs/heads/master
2021-08-15T21:51:40.976031
2020-04-14T14:03:29
2020-04-14T14:03:29
157,563,014
0
0
null
null
null
null
UTF-8
Java
false
false
2,749
java
package yp.Java_NIO; import org.junit.Test; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; import java.nio.file.Paths; import java.nio.file.StandardOpenOption; /** * @author RickYinPeng * @ClassName Test_04_BlockingNIO2 * @Description * @date 2019/2/1/12:38 */ public class Test_04_BlockingNIO2 { //客户端 @Test public void client() throws IOException, InterruptedException { SocketChannel sChannel = SocketChannel.open(new InetSocketAddress("127.0.0.1", 9898)); FileChannel inChannel = FileChannel.open(Paths.get("1.txt"), StandardOpenOption.READ); ByteBuffer buf = ByteBuffer.allocate(1024); System.out.println("客户端开始读取信息"); while(inChannel.read(buf)!=-1){ Thread.sleep(100); System.out.println("客户端----"); buf.flip(); sChannel.write(buf); buf.clear(); } System.out.println("客户端读取完毕并且发送过去"); sChannel.shutdownOutput(); System.out.println("客户端等待服务端"); //接受服务端的反馈 int len = 0; while ((len = sChannel.read(buf))!=-1){ Thread.sleep(1000); System.out.println("客户端等待服务端的数据"); buf.flip(); System.out.println(new String(buf.array(),0,len)); buf.clear(); } System.out.println("客户端已经接受服务端消息"); inChannel.close(); sChannel.close(); } //服务端 @Test public void server() throws IOException, InterruptedException { ServerSocketChannel ssChannel = ServerSocketChannel.open(); ssChannel.bind(new InetSocketAddress(9898)); SocketChannel sChannel = ssChannel.accept(); ByteBuffer buf = ByteBuffer.allocate(1024); FileChannel outChannel = FileChannel.open(Paths.get("2.txt"), StandardOpenOption.WRITE, StandardOpenOption.CREATE); System.out.println("服务端等待接受客户端消息"); while (sChannel.read(buf)!=-1){ System.out.println("服务端------"); Thread.sleep(1000); buf.flip(); outChannel.write(buf); buf.clear(); } System.out.println("服务端接受客户端消息成功"); //给客户端返回信息 buf.put("服务端接受客户端数据成功".getBytes()); buf.flip(); sChannel.write(buf); outChannel.close(); sChannel.close(); ssChannel.close(); } }
[ "272940172@qq.com" ]
272940172@qq.com
bc823c871e9e58419d6b69f4457a8a1361ca46b3
bc541f0e686034bcd8693a37cbb0e9cb40474047
/springboot-interceptor/src/main/java/com/example/interceptor/filter/UserFilter.java
b5852ce1970f5f4272af480493823b02bbdf9cad
[]
no_license
zhupeng0521/springboot-collections
847d95cc36f8424b64eb88368ee972248c87fbf8
d0def11b6f7d3924a2b26d925bd3198d7a49590c
refs/heads/master
2021-05-16T18:28:56.797977
2020-02-10T06:41:03
2020-02-10T06:41:03
250,419,692
0
1
null
2020-03-27T02:15:24
2020-03-27T02:15:24
null
UTF-8
Java
false
false
721
java
package com.example.interceptor.filter; import lombok.extern.slf4j.Slf4j; import javax.servlet.*; import java.io.IOException; /** * @author : zhaojh * @date : 2019-07-21 * @function : */ @Slf4j public class UserFilter implements Filter { public void init(FilterConfig filterConfig) throws ServletException { log.info("filter------->初始化 init......"); } public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException{ log.info("filter------->进行过滤 doFilter......"); chain.doFilter(request,response); } public void destroy() { log.info("filter------->销毁 destory ......"); } }
[ "1763124707@qq.com" ]
1763124707@qq.com
77c878c959d3f7eb794cedf87059dbae8be610d2
e59ccd9e58239f3fea1dd376cf7dc44b32768f44
/java-basic/src/main/java/bitcamp/java100/ch20/ex3/Test1.java
bdf2ac334fe7fe711b48d4782725c85248a26f8d
[]
no_license
zerox7066/bitcamp
9cdb962478ce5d6f406fecfe6aae1db9cd2575b1
3759bf5c9b2c4d7ffa2cf37196e26e12478ccbe2
refs/heads/master
2021-09-03T14:04:30.247015
2018-01-09T15:35:15
2018-01-09T15:35:15
104,423,465
0
0
null
null
null
null
UTF-8
Java
false
false
436
java
// Spring IoC(Inversion of Control) 컨테이너 사용 package bitcamp.java100.ch20.ex3; import org.springframework.context.support.ClassPathXmlApplicationContext; public class Test1 { public static void main(String[] args) { ClassPathXmlApplicationContext appCtx = new ClassPathXmlApplicationContext("bitcamp/java100/ch20/ex3/application-context1.xml"); } }
[ "xilm1004@naver.com" ]
xilm1004@naver.com
34add879679edbfb21c9949a61e11ceb35f5a978
fe64c196ca9acdda3db0d82d4c9dc33038b1518c
/qywx-spring-boot-model/src/main/java/com/github/shuaidd/dto/JobResultDetail.java
2b8eca5bf8461e1e599cfa49bc1422bd3c875b36
[]
no_license
Luck0o0/qywx
d4a9af799d1c3e3ade7809261d067a06376cfc80
d4c1649dbe78829ce7de09d9dacbf9cc871cc9b9
refs/heads/master
2023-02-22T14:21:11.675636
2021-01-14T07:36:41
2021-01-14T07:36:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,321
java
package com.github.shuaidd.dto; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.StringJoiner; /** * 描述 * * @author ddshuai * date 2019-04-06 20:53 **/ public class JobResultDetail { /** * type为sync_user、replace_user */ @JsonProperty("userid") private String userId; /** type为replace_party */ /** * 操作类型(按位或):1 新建部门 ,2 更改部门名称, 4 移动部门, 8 修改部门排序 */ private Integer action; @JsonProperty("partyid") private Integer partyId; public String getUserId() { return userId; } public void setUserId(String userId) { this.userId = userId; } public Integer getAction() { return action; } public void setAction(Integer action) { this.action = action; } public Integer getPartyId() { return partyId; } public void setPartyId(Integer partyId) { this.partyId = partyId; } @Override public String toString() { return new StringJoiner(", ", JobResultDetail.class.getSimpleName() + "[", "]") .add("userId='" + userId + "'") .add("action=" + action) .add("partyId=" + partyId) .toString(); } }
[ "ddshuai@shinyway.com.cn" ]
ddshuai@shinyway.com.cn
d6069721996d09f3a378d369ecfce9d37a426ebb
84d4c12d7dffe314cc49a4cda5dd1ee7e80d4676
/tests/src/test/java/net/devh/boot/grpc/test/interceptor/PickupServerInterceptorTest.java
dac65fef2ca53171a7da5dd1604aec6e3e299d5c
[ "MIT" ]
permissive
followwwind/grpc-spring-boot-starter
3b7103279dcf7edce76c979abb1dfd51e035bcc3
a6ff30c466e097368f6c7b135385d2ebe6e5a4cd
refs/heads/master
2022-11-24T07:45:07.386720
2020-07-29T03:47:44
2020-07-29T03:47:44
283,687,228
1
0
MIT
2020-07-30T06:21:37
2020-07-30T06:21:36
null
UTF-8
Java
false
false
5,771
java
/* * Copyright (c) 2016-2020 Michael Zhang <yidongnan@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the * Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ package net.devh.boot.grpc.test.interceptor; import static org.assertj.core.api.Assertions.assertThat; import java.util.ArrayList; import java.util.List; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringBootConfiguration; import org.springframework.boot.autoconfigure.ImportAutoConfiguration; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.stereotype.Component; import io.grpc.Metadata; import io.grpc.ServerCall; import io.grpc.ServerCall.Listener; import io.grpc.ServerCallHandler; import io.grpc.ServerInterceptor; import net.devh.boot.grpc.server.autoconfigure.GrpcServerAutoConfiguration; import net.devh.boot.grpc.server.interceptor.AnnotationGlobalServerInterceptorConfigurer; import net.devh.boot.grpc.server.interceptor.GlobalServerInterceptorConfigurer; import net.devh.boot.grpc.server.interceptor.GlobalServerInterceptorRegistry; import net.devh.boot.grpc.server.interceptor.GrpcGlobalServerInterceptor; import net.devh.boot.grpc.server.scope.GrpcRequestScope; /** * Tests that {@link GrpcGlobalServerInterceptor}, {@link GlobalServerInterceptorConfigurer} and * {@link GlobalServerInterceptorRegistry} work as expected. */ @SpringBootTest class PickupServerInterceptorTest { @Autowired AnnotationGlobalServerInterceptorConfigurer annotationGlobalServerInterceptorConfigurer; @Autowired GlobalServerInterceptorRegistry globalServerInterceptorRegistry; @Autowired GrpcRequestScope grpcRequestScope; @Test void test() { final List<ServerInterceptor> interceptors = new ArrayList<>(); this.annotationGlobalServerInterceptorConfigurer.configureServerInterceptors(interceptors); assertThat(interceptors).containsExactlyInAnyOrder( new ConfigAnnotatedServerInterceptor(), new ClassAnnotatedServerInterceptor(), this.grpcRequestScope); assertThat(this.globalServerInterceptorRegistry.getServerInterceptors()).containsExactlyInAnyOrder( new ConfigAnnotatedServerInterceptor(), new ClassAnnotatedServerInterceptor(), new ConfigurerServerInterceptor(), this.grpcRequestScope); } @SpringBootConfiguration @ImportAutoConfiguration(GrpcServerAutoConfiguration.class) @ComponentScan(basePackageClasses = ClassAnnotatedServerInterceptor.class) public static class TestConfig { @GrpcGlobalServerInterceptor ConfigAnnotatedServerInterceptor configAnnotatedServerInterceptor() { return new ConfigAnnotatedServerInterceptor(); } @Bean GlobalServerInterceptorConfigurer globalServerInterceptorConfigurer() { return interceptors -> interceptors.add(new ConfigurerServerInterceptor()); } } /** * Simple No-Op ServerInterceptor for testing purposes. */ static class NoOpServerInterceptor implements ServerInterceptor { @Override public <ReqT, RespT> Listener<ReqT> interceptCall( final ServerCall<ReqT, RespT> call, final Metadata headers, final ServerCallHandler<ReqT, RespT> next) { return next.startCall(call, headers); } @Override public int hashCode() { return getClass().hashCode(); } @Override // Fake equality for test simplifications public boolean equals(final Object obj) { return obj != null && getClass().equals(obj.getClass()); } } /** * Used to check that {@link GrpcGlobalServerInterceptor} works in {@link Configuration}s. */ static class ConfigAnnotatedServerInterceptor extends NoOpServerInterceptor { } /** * Used to check that {@link GrpcGlobalServerInterceptor} works on bean classes themselves. */ @GrpcGlobalServerInterceptor static class ClassAnnotatedServerInterceptor extends NoOpServerInterceptor { } /** * Used to check that {@link GlobalServerInterceptorConfigurer} work. */ @Component static class ConfigurerServerInterceptor extends NoOpServerInterceptor { } /** * Used to check that {@link ServerInterceptor} aren't picked up randomly. */ @Component static class DoNotPickMeUpServerInterceptor extends NoOpServerInterceptor { } }
[ "ST-DDT@gmx.de" ]
ST-DDT@gmx.de
91b3ea9780233d669f6451e14039a73d4f51a297
d3572d18f2b122cf618b0e8bc2000cbc496a741b
/AQG-IE/src/exploration/model/dummy/DummyWorkload.java
f15bda0ba881190f183545a960e384b20fc968c8
[]
no_license
pjbarrio/AQG-IE
36c20595347f74d1d66c652f6ab56b64f77a34c0
75954fb5931225f698e15be13983a2f51beac40d
refs/heads/master
2021-01-10T06:15:31.171181
2015-12-29T17:16:47
2015-12-29T17:16:47
48,337,847
0
0
null
null
null
null
UTF-8
Java
false
false
190
java
package exploration.model.dummy; import exploration.model.WorkloadModel; public class DummyWorkload extends WorkloadModel { public DummyWorkload(int id) { super(id,"","","",""); } }
[ "pjbarrio@cs.columbia.edu" ]
pjbarrio@cs.columbia.edu
400d404c034fc1e7f3f97a769336a8353d12b721
be608e227e7e385cd8e68bdfae4c79283ee88595
/service-edi271/target/generated-sources/xjc/org/delta/b2b/edi/t271/EAAA04FollowUpActionCode.java
e011aabeb6564a313b4bba7022ec9d6b9f050802
[]
no_license
msen2000/services
4867cdc3e2be12e9b5f54f2568e7c9844e91af25
cb84c48792aee88ab8533f407b8150430c5da2dd
refs/heads/master
2016-08-04T19:08:09.872078
2014-02-16T08:11:16
2014-02-16T08:11:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,542
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.5-b02-fcs // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2011.07.30 at 07:43:57 PM PDT // package org.delta.b2b.edi.t271; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * Code identifying follow-up actions allowed * * <p>Java class for E-AAA04-Follow-up_Action_Code complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="E-AAA04-Follow-up_Action_Code"> * &lt;simpleContent> * &lt;restriction base="&lt;http://www.delta.org/b2b/edi/t271>EDI-Element-String-Type"> * &lt;attribute name="EDIDataType" type="{http://www.w3.org/2001/XMLSchema}string" fixed="ID" /> * &lt;attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}string" fixed="889" /> * &lt;attribute name="Name" type="{http://www.w3.org/2001/XMLSchema}string" fixed="Follow-up Action Code" /> * &lt;/restriction> * &lt;/simpleContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "E-AAA04-Follow-up_Action_Code") public class EAAA04FollowUpActionCode extends EDIElementStringType { }
[ "msen2000@gmail.com" ]
msen2000@gmail.com
a54a9afe23364f4e74306e6d227a6d57d40a4557
947e71b34d21f3c9f5c0a197d91a880f346afa6c
/ambari-metrics/ambari-metrics-common/src/main/java/org/apache/hadoop/metrics2/sink/timeline/availability/MetricSinkWriteShardHostnameHashingStrategy.java
25bff549d48c35817433422d550c90e10268b4ad
[ "MIT", "Apache-2.0", "GPL-1.0-or-later", "GPL-2.0-or-later", "OFL-1.1", "MS-PL", "AFL-2.1", "GPL-2.0-only", "Python-2.0", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
liuwenru/Apache-Ambari-ZH
4bc432d4ea7087bb353a6dd97ffda0a85cb0fef0
7879810067f1981209b658ceb675ac76e951b07b
refs/heads/master
2023-01-14T14:43:06.639598
2020-07-28T12:06:25
2020-07-28T12:06:25
223,551,095
38
44
Apache-2.0
2023-01-02T21:55:10
2019-11-23T07:43:49
Java
UTF-8
Java
false
false
2,279
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 * <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.metrics2.sink.timeline.availability; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import java.util.List; /** * Provides sharding based on hostname */ public class MetricSinkWriteShardHostnameHashingStrategy implements MetricSinkWriteShardStrategy { private final String hostname; private final long hostnameHash; private static final Log LOG = LogFactory.getLog(MetricSinkWriteShardHostnameHashingStrategy.class); public MetricSinkWriteShardHostnameHashingStrategy(String hostname) { this.hostname = hostname; this.hostnameHash = hostname != null ? computeHash(hostname) : 1000; // some constant } @Override public String findCollectorShard(List<String> collectorHosts) { long index = hostnameHash % collectorHosts.size(); index = index < 0 ? index + collectorHosts.size() : index; String collectorHost = collectorHosts.get((int) index); LOG.info(String.format("Calculated collector shard %s based on hostname: %s", collectorHost, hostname)); return collectorHost; } /** * Compute consistent hash based on hostname which should give decently * uniform distribution assuming hostname generally have a sequential * numeric suffix. */ long computeHash(String hostname) { long h = 11987L; // prime int len = hostname.length(); for (int i = 0; i < len; i++) { h = 31 * h + hostname.charAt(i); } return h; } }
[ "ijarvis@sina.com" ]
ijarvis@sina.com
642b1900e4919a6f34c31390848b3f1d8fb8ccaf
1bf3919968ba16e39485109015a48eb858ee68cc
/MobileOpticalScanner/app/src/main/java/tr/com/erenkaya/mobileopticalscanner/entities/MorTest.java
516d49db0b372ec457d04fa3b8ddd050e4e9f4cc
[]
no_license
ErenKaya/mos
c4f96524826b24770dae0e57e11b463e15f8844c
e335170f01435a6a2b7a3d47183b244601a8b26a
refs/heads/master
2021-01-01T16:32:31.896312
2017-07-20T16:03:51
2017-07-20T16:03:51
97,854,483
1
0
null
null
null
null
UTF-8
Java
false
false
3,207
java
package tr.com.erenkaya.mobileopticalscanner.entities; /** * Created by Eren on 13.3.2017. */ public class MorTest { private int testId; private String testTitle; private String testForm; private int testBooklet; private int testNetCalculateNum; private int testQuestionCount; private int testQuestionPoint; private long testSchoolId; private long testClassId; public MorTest(int testId, String testTitle, String testForm, int testBooklet, int testNetCalculateNum, int testQuestionCount, int testQuestionPoint, long testSchoolId, long testClassId) { this.testId = testId; this.testTitle = testTitle; this.testForm = testForm; this.testBooklet = testBooklet; this.testNetCalculateNum = testNetCalculateNum; this.testQuestionCount = testQuestionCount; this.testQuestionPoint = testQuestionPoint; this.testSchoolId = testSchoolId; this.testClassId = testClassId; } public MorTest() { } public int getTestId() { return testId; } public void setTestId(int testId) { this.testId = testId; } public String getTestTitle() { return testTitle; } public void setTestTitle(String testTitle) { this.testTitle = testTitle; } public String getTestForm() { return testForm; } public void setTestForm(String testForm) { this.testForm = testForm; } public int getTestBooklet() { return testBooklet; } public void setTestBooklet(int testBooklet) { this.testBooklet = testBooklet; } public int getTestNetCalculateNum() { return testNetCalculateNum; } public void setTestNetCalculateNum(int testNetCalculateNum) { this.testNetCalculateNum = testNetCalculateNum; } public int getTestQuestionCount() { return testQuestionCount; } public void setTestQuestionCount(int testQuestionCount) { this.testQuestionCount = testQuestionCount; } public int getTestQuestionPoint() { return testQuestionPoint; } public void setTestQuestionPoint(int testQuestionPoint) { this.testQuestionPoint = testQuestionPoint; } public long getTestSchoolId() { return testSchoolId; } public void setTestSchoolId(long testSchoolId) { this.testSchoolId = testSchoolId; } public long getTestClassId() { return testClassId; } public void setTestClassId(long testClassId) { this.testClassId = testClassId; } @Override public String toString() { return "MorTest{" + "testId=" + testId + ", testTitle='" + testTitle + '\'' + ", testForm='" + testForm + '\'' + ", testBooklet=" + testBooklet + ", testNetCalculateNum=" + testNetCalculateNum + ", testQuestionCount=" + testQuestionCount + ", testQuestionPoint=" + testQuestionPoint + ", testSchoolId=" + testSchoolId + ", testClassId=" + testClassId + '}'; } }
[ "erenkaya1993@gmail.com" ]
erenkaya1993@gmail.com
eb6c1d9819b25a920dd6cb4b32fe6ebafbf0a376
fec4c1754adce762b5c4b1cba85ad057e0e4744a
/jf_manager/src/com/jf/service/LotterySettingsService.java
da131313a1ea28bcac160553b6b349c5a9876458
[]
no_license
sengeiou/workspace_xg
140b923bd301ff72ca4ae41bc83820123b2a822e
540a44d550bb33da9980d491d5c3fd0a26e3107d
refs/heads/master
2022-11-30T05:28:35.447286
2020-08-19T02:30:25
2020-08-19T02:30:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
710
java
package com.jf.service; import com.jf.dao.LotterySettingsMapper; import com.jf.entity.LotterySettings; import com.jf.entity.LotterySettingsExample; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service @Transactional public class LotterySettingsService extends BaseService<LotterySettings, LotterySettingsExample>{ @Autowired private LotterySettingsMapper lotterySettingsMapper; @Autowired public void setLotterySettingsMapper(LotterySettingsMapper lotterySettingsMapper) { super.setDao(lotterySettingsMapper); this.lotterySettingsMapper = lotterySettingsMapper; } }
[ "397716215@qq.com" ]
397716215@qq.com
e7ca0ab17042eba6809428281c5192ae0b5218d9
d67f6450b24fb08f2f61b74dcdecce3025ee3efc
/gemp-swccg-cards/src/main/java/com/gempukku/swccgo/cards/set9/light/Card9_087.java
2db810f1096e881a39cf9a046cbb63cb752a8741
[ "MIT" ]
permissive
cburyta/gemp-swccg-public
00a974d042195e69d3c104e61e9ee5bd48728f9a
05529086de91ecb03807fda820d98ec8a1465246
refs/heads/master
2023-01-09T12:45:33.347296
2020-10-26T14:39:28
2020-10-26T14:39:28
309,400,711
0
0
MIT
2020-11-07T04:57:04
2020-11-02T14:47:59
null
UTF-8
Java
false
false
3,735
java
package com.gempukku.swccgo.cards.set9.light; import com.gempukku.swccgo.cards.AbstractStarshipWeapon; import com.gempukku.swccgo.common.*; import com.gempukku.swccgo.filters.Filter; import com.gempukku.swccgo.filters.Filters; import com.gempukku.swccgo.game.PhysicalCard; import com.gempukku.swccgo.game.SwccgGame; import com.gempukku.swccgo.logic.actions.FireWeaponAction; import com.gempukku.swccgo.logic.actions.FireWeaponActionBuilder; import com.gempukku.swccgo.logic.modifiers.DefinedByGameTextDeployCostModifier; import com.gempukku.swccgo.logic.modifiers.Modifier; import com.gempukku.swccgo.logic.modifiers.TotalWeaponDestinyModifier; import java.util.Collections; import java.util.LinkedList; import java.util.List; /** * Set: Death Star II * Type: Weapon * Subtype: Starship * Title: Concussion Missiles */ public class Card9_087 extends AbstractStarshipWeapon { public Card9_087() { super(Side.LIGHT, 4, Title.Concussion_Missiles); setLore("Used by veteran smugglers. Defend transports from maneuverable TIE fighters. Frequently used to arm Rebellion transports and freighters."); setGameText("Use 1 Force to deploy on your bomber, A-wing, freighter, or transport. May target a starship for free. Draw destiny. Add 1 if targeting a starfighter or squadron. Target hit if total destiny > defense value."); addIcons(Icon.DEATH_STAR_II); addKeywords(Keyword.MISSILE, Keyword.STARSHIP_WEAPON_THAT_DEPLOYS_ON_STARFIGHTERS); } @Override protected List<Modifier> getGameTextAlwaysOnModifiers(SwccgGame game, final PhysicalCard self) { List<Modifier> modifiers = new LinkedList<Modifier>(); modifiers.add(new DefinedByGameTextDeployCostModifier(self, 1)); return modifiers; } @Override protected Filter getGameTextValidDeployTargetFilter(SwccgGame game, PhysicalCard self, PlayCardOptionId playCardOptionId, boolean asReact) { return Filters.and(Filters.your(self), Filters.or(Filters.bomber, Filters.A_wing, Filters.freighter, Filters.transport)); } @Override protected Filter getGameTextValidToUseWeaponFilter(final SwccgGame game, final PhysicalCard self) { return Filters.or(Filters.bomber, Filters.A_wing, Filters.freighter, Filters.transport); } @Override protected List<FireWeaponAction> getGameTextFireWeaponActions(String playerId, final SwccgGame game, final PhysicalCard self, boolean forFree, int extraForceRequired, PhysicalCard sourceCard, boolean repeatedFiring, Filter targetedAsCharacter, Float defenseValueAsCharacter, Filter fireAtTargetFilter, boolean ignorePerAttackOrBattleLimit) { FireWeaponActionBuilder actionBuilder = FireWeaponActionBuilder.startBuildPrep(playerId, game, sourceCard, self, forFree, extraForceRequired, repeatedFiring, targetedAsCharacter, defenseValueAsCharacter, fireAtTargetFilter, ignorePerAttackOrBattleLimit) .targetForFree(Filters.or(Filters.starship, Filters.canBeTargetedByWeaponAsStarfighter), TargetingReason.TO_BE_HIT).finishBuildPrep(); if (actionBuilder != null) { // Build action using common utility FireWeaponAction action = actionBuilder.buildFireWeaponWithHitAction(1, Statistic.DEFENSE_VALUE); return Collections.singletonList(action); } return null; } @Override protected List<Modifier> getGameTextWhileActiveInPlayModifiers(SwccgGame game, final PhysicalCard self) { List<Modifier> modifiers = new LinkedList<Modifier>(); modifiers.add(new TotalWeaponDestinyModifier(self, 1, Filters.or(Filters.starfighter, Filters.canBeTargetedByWeaponAsStarfighter, Filters.squadron))); return modifiers; } }
[ "andrew@bender.io" ]
andrew@bender.io
e206e5bd7b4637f03c728075f0acb5cc83f78230
c885ef92397be9d54b87741f01557f61d3f794f3
/results/Math-10/org.apache.commons.math3.analysis.differentiation.DSCompiler/BBC-F0-opt-100/tests/4/org/apache/commons/math3/analysis/differentiation/DSCompiler_ESTest_scaffolding.java
b4367befa14034ea421bd9e6948206dc3a9e4164
[ "CC-BY-4.0", "MIT" ]
permissive
pderakhshanfar/EMSE-BBC-experiment
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
fea1a92c2e7ba7080b8529e2052259c9b697bbda
refs/heads/main
2022-11-25T00:39:58.983828
2022-04-12T16:04:26
2022-04-12T16:04:26
309,335,889
0
1
null
2021-11-05T11:18:43
2020-11-02T10:30:38
null
UTF-8
Java
false
false
5,812
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Tue Oct 19 22:03:44 GMT 2021 */ package org.apache.commons.math3.analysis.differentiation; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; import org.evosuite.runtime.sandbox.Sandbox; import org.evosuite.runtime.sandbox.Sandbox.SandboxMode; @EvoSuiteClassExclude public class DSCompiler_ESTest_scaffolding { @org.junit.Rule public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule(); 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.math3.analysis.differentiation.DSCompiler"; 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(); setSystemProperties(); initializeClasses(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler(); org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode(); 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 static void setSystemProperties() { /*No java.lang.System property to set*/ } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(DSCompiler_ESTest_scaffolding.class.getClassLoader() , "org.apache.commons.math3.exception.util.ExceptionContextProvider", "org.apache.commons.math3.util.MathArrays", "org.apache.commons.math3.exception.util.ArgUtils", "org.apache.commons.math3.exception.MathArithmeticException", "org.apache.commons.math3.exception.NumberIsTooSmallException", "org.apache.commons.math3.util.FastMath$ExpIntTable", "org.apache.commons.math3.util.FastMath$lnMant", "org.apache.commons.math3.exception.NotPositiveException", "org.apache.commons.math3.exception.MathInternalError", "org.apache.commons.math3.exception.MathIllegalStateException", "org.apache.commons.math3.analysis.differentiation.DSCompiler", "org.apache.commons.math3.util.FastMath$ExpFracTable", "org.apache.commons.math3.exception.NonMonotonicSequenceException", "org.apache.commons.math3.exception.MathIllegalArgumentException", "org.apache.commons.math3.util.FastMath$CodyWaite", "org.apache.commons.math3.exception.MathIllegalNumberException", "org.apache.commons.math3.exception.util.LocalizedFormats", "org.apache.commons.math3.util.FastMath", "org.apache.commons.math3.exception.DimensionMismatchException", "org.apache.commons.math3.exception.util.Localizable", "org.apache.commons.math3.exception.NumberIsTooLargeException", "org.apache.commons.math3.exception.NotStrictlyPositiveException", "org.apache.commons.math3.exception.util.ExceptionContext", "org.apache.commons.math3.exception.NullArgumentException", "org.apache.commons.math3.util.FastMathLiteralArrays" ); } private static void resetClasses() { org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(DSCompiler_ESTest_scaffolding.class.getClassLoader()); org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses( "org.apache.commons.math3.analysis.differentiation.DSCompiler", "org.apache.commons.math3.util.FastMath", "org.apache.commons.math3.util.FastMathLiteralArrays", "org.apache.commons.math3.util.FastMath$lnMant", "org.apache.commons.math3.util.FastMath$ExpIntTable", "org.apache.commons.math3.util.FastMath$ExpFracTable", "org.apache.commons.math3.util.Precision", "org.apache.commons.math3.exception.util.LocalizedFormats", "org.apache.commons.math3.util.ArithmeticUtils", "org.apache.commons.math3.exception.MathIllegalArgumentException", "org.apache.commons.math3.exception.MathIllegalNumberException", "org.apache.commons.math3.exception.DimensionMismatchException", "org.apache.commons.math3.exception.util.ExceptionContext", "org.apache.commons.math3.exception.util.ArgUtils", "org.apache.commons.math3.util.MathArrays", "org.apache.commons.math3.util.FastMath$CodyWaite", "org.apache.commons.math3.exception.NumberIsTooLargeException" ); } }
[ "pderakhshanfar@serg2.ewi.tudelft.nl" ]
pderakhshanfar@serg2.ewi.tudelft.nl
284bf5452dd533a44286e4839cd87ef6d16afaed
2dcc440fa85d07e225104f074bcf9f061fe7a7ae
/gameserver/src/main/java/org/mmocore/gameserver/phantoms/template/PhantomSpawnTemplate.java
dfa50a350cdaf3c7a9ca590af17d07febbd888bd
[]
no_license
VitaliiBashta/L2Jts
a113bc719f2d97e06db3e0b028b2adb62f6e077a
ffb95b5f6e3da313c5298731abc4fcf4aea53fd5
refs/heads/master
2020-04-03T15:48:57.786720
2018-10-30T17:34:29
2018-10-30T17:35:04
155,378,710
0
3
null
null
null
null
UTF-8
Java
false
false
1,607
java
package org.mmocore.gameserver.phantoms.template; import org.mmocore.gameserver.model.Territory; import org.mmocore.gameserver.phantoms.ai.PhantomAiType; import org.mmocore.gameserver.templates.item.ItemTemplate; /** * Created by Hack * Date: 22.08.2016 4:41 */ public class PhantomSpawnTemplate { private PhantomAiType type; //unused, TODO private int count; private ItemTemplate.Grade gradeMin, gradeMax; private Territory territory; public PhantomSpawnTemplate() { } public PhantomSpawnTemplate(PhantomAiType type, int count, ItemTemplate.Grade gradeMin, ItemTemplate.Grade gradeMax, Territory territory) { this.type = type; this.count = count; this.gradeMin = gradeMin; this.gradeMax = gradeMax; this.territory = territory; } public PhantomAiType getType() { return type; } public void setType(PhantomAiType type) { this.type = type; } public int getCount() { return count; } public void setCount(int count) { this.count = count; } public ItemTemplate.Grade getGradeMin() { return gradeMin; } public void setGradeMin(ItemTemplate.Grade gradeMin) { this.gradeMin = gradeMin; } public ItemTemplate.Grade getGradeMax() { return gradeMax; } public void setGradeMax(ItemTemplate.Grade gradeMax) { this.gradeMax = gradeMax; } public Territory getTerritory() { return territory; } public void setTerritory(Territory territory) { this.territory = territory; } }
[ "Vitalii.Bashta@accenture.com" ]
Vitalii.Bashta@accenture.com
3802369f87d7d06341eab4e4b161bed0c47cbb66
6b4cdc6e5c461ed4ab0490de5a0e7e66a6a7d26f
/OpaAPI/src/main/java/gov/nara/opa/api/controller/migration/AccountsMigrationController.java
2894372ad9546ff620b8fc69c86aa2ba1f218598
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
usnationalarchives/catalog-source
c281dd2963cc204313202c7d9bc2b4e5a942f089
74187b9096a388c033ff1f5ca4ec6634b5bba69e
refs/heads/master
2022-12-23T10:25:40.725697
2018-10-01T14:34:56
2018-10-01T14:34:56
151,100,359
5
0
NOASSERTION
2022-12-16T01:33:10
2018-10-01T14:15:31
Java
UTF-8
Java
false
false
2,667
java
package gov.nara.opa.api.controller.migration; import gov.nara.opa.api.services.migration.AccountsMigrationService; import gov.nara.opa.api.system.Constants; import gov.nara.opa.api.validation.migration.AccountsMigrationRequestParameters; import gov.nara.opa.api.validation.migration.AccountsMigrationValidator; import gov.nara.opa.api.valueobject.migration.AccountsMigrationValueObject; import gov.nara.opa.architecture.logging.OpaLogger; import gov.nara.opa.architecture.web.controller.AbstractBaseController; import gov.nara.opa.architecture.web.validation.ValidationResult; import javax.servlet.http.HttpServletRequest; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; @Controller public class AccountsMigrationController extends AbstractBaseController { private static OpaLogger logger = OpaLogger.getLogger(AccountsMigrationController.class); @Autowired private AccountsMigrationValidator validator; @Autowired private AccountsMigrationService migrationService; public static final String DATA_MIGRATION_ACTION = "data-migration"; public static final String DATA_MIGRATION_PARENT_ENTITY_NAME = "data"; @RequestMapping(value = { "/" + Constants.PUBLIC_API_PATH + "/" + Constants.API_VERS_NUM + "/migration/accounts" }, method = RequestMethod.POST) public ResponseEntity<String> dataMigration( @Valid AccountsMigrationRequestParameters requestParameters, BindingResult bindingResult, HttpServletRequest request) { logger.info("Starting account migration"); //Validate logger.info("Account validation"); ValidationResult validationResult = validator.validate( bindingResult, request); if (!validationResult.isValid()) { return createErrorResponseEntity(validationResult, request, DATA_MIGRATION_ACTION); } //Do migration logger.info("Migrating data"); AccountsMigrationValueObject accountsMigration = migrationService.doMigration(requestParameters, validationResult); if(!validationResult.isValid()) { return createErrorResponseEntity(validationResult, request, DATA_MIGRATION_ACTION); } logger.info("Migration successful"); return createSuccessResponseEntity(DATA_MIGRATION_PARENT_ENTITY_NAME, requestParameters, accountsMigration, request, DATA_MIGRATION_ACTION); } }
[ "jason.clingerman@nara.gov" ]
jason.clingerman@nara.gov
0ee80d1ce27e34d02c3c0a7b2064b2d67e82b125
7c4355a36c36e8079e94246e1c4f18aa78442791
/src/examples/java/com/sudoplay/joise/examples/module/fractal/simplex/ModuleFractalSimplexRidgeMultiExample.java
d2616342366a49b1ae65974c9b0731ada2c2a5a5
[ "Apache-2.0", "Zlib" ]
permissive
Mr00Anderson/Joise
ddacc005f876db09840e75bc617b7785c93ff33c
238bff1573ba9092938273584e6ad6ed6fbf1a3b
refs/heads/master
2020-06-24T03:04:18.095917
2018-10-31T20:43:47
2018-10-31T20:43:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,003
java
package com.sudoplay.joise.examples.module.fractal.simplex; import com.sudoplay.joise.examples.AbstractSplitExample; import com.sudoplay.joise.examples.SplitCanvas; import com.sudoplay.joise.module.ModuleAutoCorrect; import com.sudoplay.joise.module.ModuleFractal; import static com.sudoplay.joise.module.ModuleBasisFunction.BasisType; import static com.sudoplay.joise.module.ModuleBasisFunction.InterpolationType; import static com.sudoplay.joise.module.ModuleFractal.FractalType; /** * Created by codetaylor on 1/9/2017. */ public class ModuleFractalSimplexRidgeMultiExample extends AbstractSplitExample { static { EXAMPLE_CLASS = ModuleFractalSimplexRidgeMultiExample.class; } @Override protected String getWindowTitle() { return "ModuleFractal Simplex RidgeMulti Example"; } @Override protected void run(SplitCanvas canvas) { BasisType basisType = BasisType.SIMPLEX; FractalType fractalType = FractalType.RIDGEMULTI; canvas.updateImage( "none", getModule(basisType, InterpolationType.NONE, fractalType), "linear", getModule(basisType, InterpolationType.LINEAR, fractalType), "cubic", getModule(basisType, InterpolationType.CUBIC, fractalType), "quintic", getModule(basisType, InterpolationType.QUINTIC, fractalType) ); } private ModuleAutoCorrect getModule( BasisType basisType, InterpolationType interpolationType, FractalType fractalType ) { ModuleFractal gen = new ModuleFractal(); gen.setAllSourceBasisTypes(basisType); gen.setAllSourceInterpolationTypes(interpolationType); gen.setNumOctaves(5); gen.setFrequency(2.34); gen.setType(fractalType); gen.setSeed(42); /** * We auto-correct into the range [0, 1], performing 10,000 samples to calculate the auto-correct values. */ ModuleAutoCorrect source = new ModuleAutoCorrect(0, 1); source.setSource(gen); source.setSamples(10000); source.calculate2D(); return source; } }
[ "jason@codetaylor.com" ]
jason@codetaylor.com
cc56c553f4f7ca8e62f0a598d1d886b6c29e933d
7d28d457ababf1b982f32a66a8896b764efba1e8
/platform-pojo-bl/src/test/java/ua/com/fielden/platform/reflection/test_entities/DynamicKeyEntity.java
ef493ff5c54546e853e40535a995ddbd0788b658
[ "MIT" ]
permissive
fieldenms/tg
f742f332343f29387e0cb7a667f6cf163d06d101
f145a85a05582b7f26cc52d531de9835f12a5e2d
refs/heads/develop
2023-08-31T16:10:16.475974
2023-08-30T08:23:18
2023-08-30T08:23:18
20,488,386
17
9
MIT
2023-09-14T17:07:35
2014-06-04T15:09:44
JavaScript
UTF-8
Java
false
false
932
java
package ua.com.fielden.platform.reflection.test_entities; import ua.com.fielden.platform.entity.AbstractEntity; import ua.com.fielden.platform.entity.DynamicEntityKey; import ua.com.fielden.platform.entity.annotation.CompositeKeyMember; import ua.com.fielden.platform.entity.annotation.DescTitle; import ua.com.fielden.platform.entity.annotation.IsProperty; import ua.com.fielden.platform.entity.annotation.KeyTitle; import ua.com.fielden.platform.entity.annotation.KeyType; @KeyType(DynamicEntityKey.class) @KeyTitle(value = "Dynamic key") @DescTitle(value = "Dynamic description") public class DynamicKeyEntity extends AbstractEntity<DynamicEntityKey> { @IsProperty @CompositeKeyMember(1) private String firstKeyMemeber; @IsProperty @CompositeKeyMember(2) private String secondKeyMember; @IsProperty private String commonProperty; @IsProperty private SimpleEntity uncommonProperty; }
[ "oles.hodych@gmail.com" ]
oles.hodych@gmail.com
f91a9a9d5148e994bb707756642929f46b78b8be
8e9fd7daf47c89d6911c399cc524bceaee600a59
/src/main/java/com/example/areospikedemo/controllers/UserCacheController.java
cd1d8de44f2a2fb76682601213bc5b36eab680fa
[]
no_license
shah-smit/spring-boot-areospike-demo
175997d7dced30d535b42c485d96c3794302ca45
18a36d35a220b6fc8d8fd2aeed575349062833d9
refs/heads/main
2023-09-03T05:52:43.888048
2021-11-19T16:04:30
2021-11-19T16:04:30
429,856,804
0
0
null
null
null
null
UTF-8
Java
false
false
1,043
java
package com.example.areospikedemo.controllers; import com.example.areospikedemo.objects.User; import com.example.areospikedemo.repositories.UserRepository; import java.util.Optional; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; @RestController public class UserCacheController { UserRepository userRepository; @GetMapping("/cache/users/{id}") public Optional<User> readUserById(@PathVariable("id") Integer id) { return userRepository.findById(id); } @PostMapping("/cache/users") public void addUser(@RequestBody User user) { userRepository.save(user); } @DeleteMapping("/cache/users/{id}") public void deleteUserById(@PathVariable("id") Integer id) { userRepository.deleteById(id); } }
[ "smitshah95@hotmail.com" ]
smitshah95@hotmail.com
0064541c58e618d1d09f19b03b7ca9c84fd5395f
5db30d963b870f9b202007d6a4904b97f38fe4b5
/app/src/main/java/cn/com/startai/socket/app/fragment/BaseFragment.java
d0f99f6b142fece5db83bd1a788ef44803f697bd
[]
no_license
GuoqiangSun/Socket
e4e47bcd1d882554e8062a439adc30d8127bd80e
07076b2932fe9ef0d0241201f45713dff1f3adac
refs/heads/master
2020-03-29T18:35:09.424752
2019-11-07T04:14:25
2019-11-07T04:14:25
150,221,753
1
0
null
null
null
null
UTF-8
Java
false
false
1,391
java
package cn.com.startai.socket.app.fragment; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import cn.com.startai.socket.app.SocketApplication; /** * author: Guoqiang_Sun * date : 2018/4/16 0016 * desc : */ public abstract class BaseFragment extends Fragment { protected String TAG = SocketApplication.TAG; @Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); } private View mRootView; protected View getRootView() { return mRootView; } @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) { if (mRootView == null) { mRootView = inflateView(); } return mRootView; } protected abstract View inflateView(); @Override public void onDestroyView() { if (mRootView != null) { ViewGroup vg = (ViewGroup) mRootView.getParent(); if (vg != null) { vg.removeView(mRootView); } mRootView = null; } super.onDestroyView(); } @Override public void onDestroy() { super.onDestroy(); } }
[ "2481288068@qq.com" ]
2481288068@qq.com
6773c6fd2e1a14a94bc141d696e0a88acbe0f5fc
5f9ef996e5be954ccf95df44d94164fc7588dec7
/payasia-dao-bean/src/main/java/com/payasia/dao/bean/IntegrationMaster.java
fcd7a85e528742de526e8766c7fcc8e1bc7c734f
[]
no_license
VaibhavMind/dummycode
26f5e6db2820470b6e958947c21984443187ca0b
a0679a042f817719b90f00101037f83a1e918b59
refs/heads/master
2022-12-06T02:02:25.251493
2019-10-01T07:19:44
2019-10-01T07:19:44
212,033,145
3
0
null
2022-12-06T00:33:03
2019-10-01T07:06:32
Java
UTF-8
Java
false
false
2,387
java
package com.payasia.dao.bean; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; /** * The persistent class for the Integration_Master database table. * */ @Entity @Table(name = "Integration_Master") public class IntegrationMaster implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "Integration_ID") private long integrationId; @Column(name = "Integration_Name") private String integrationName; @Column(name = "Username") private String username; @Column(name = "Password") private String password; @Column(name = "Base_URL") private String baseURL; @Column(name = "API_Key") private String apiKey; @Column(name = "Company_ID") private Long companyId; @Column(name = "External_Company_ID") private Long externalCompanyId; @Column(name = "Active") private boolean active; public IntegrationMaster() { } public long getIntegrationId() { return integrationId; } public void setIntegrationId(long integrationId) { this.integrationId = integrationId; } public String getIntegrationName() { return integrationName; } public void setIntegrationName(String integrationName) { this.integrationName = integrationName; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getBaseURL() { return baseURL; } public void setBaseURL(String baseURL) { this.baseURL = baseURL; } public String getApiKey() { return apiKey; } public void setApiKey(String apiKey) { this.apiKey = apiKey; } public Long getCompanyId() { return companyId; } public void setCompanyId(Long companyId) { this.companyId = companyId; } public Long getExternalCompanyId() { return externalCompanyId; } public void setExternalCompanyId(Long externalCompanyId) { this.externalCompanyId = externalCompanyId; } public boolean isActive() { return active; } public void setActive(boolean active) { this.active = active; } }
[ "Vaibhav.Dhawan@mind-infotech.com" ]
Vaibhav.Dhawan@mind-infotech.com
ea747124d972aa6115e086b4d23cd807139dc382
8c9b743f156307cfb8781f95d2039f3697305b78
/src/com/gargoylesoftware/htmlunit/svg/SvgColorProfile.java
e74055dfa6a7f18890ea7f2beed66dec47b0e7e4
[]
no_license
jiafenggit/HtmlUnitTao
f8fbd9065b03b6cd0f3a4ce1db6b4fbfd4941000
ede3e10603d16f022b60798ea340c392f57495f7
refs/heads/master
2021-04-28T23:46:58.642674
2016-03-15T08:08:02
2016-03-15T08:08:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,571
java
/* * Copyright (c) 2002-2015 Gargoyle Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.gargoylesoftware.htmlunit.svg; import java.util.Map; import com.gargoylesoftware.htmlunit.SgmlPage; import com.gargoylesoftware.htmlunit.html.DomAttr; /** * Wrapper for the SVG element "color-profile". * * @version $Revision: 9837 $ * @author Frank Danek */ public class SvgColorProfile extends SvgElement { /** The tag represented by this element. */ public static final String TAG_NAME = "color-profile"; /** * Creates a new instance. * * @param namespaceURI the URI that identifies an XML namespace * @param qualifiedName the qualified name of the element type to instantiate * @param page the page that contains this element * @param attributes the initial attributes */ SvgColorProfile(final String namespaceURI, final String qualifiedName, final SgmlPage page, final Map<String, DomAttr> attributes) { super(namespaceURI, qualifiedName, page, attributes); } }
[ "jeruen@gmail.com" ]
jeruen@gmail.com
50a39cdd6ca16b6574d332099f6320b290011b59
7b6566e085578ed60aba653c0e8bd0cdb011e4aa
/interactive_engine/src/frontend/compiler/src/main/java/com/alibaba/maxgraph/tinkerpop/steps/CustomVertexProgramStep.java
9b11c50faf8ce951730e4a265cc826359cb51fe3
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-elastic-license-2018", "LicenseRef-scancode-other-permissive" ]
permissive
LDA111222/GraphScope
e2dd96b87cc73dc49dd09488fbb167ec92f550af
b485408919af470be1c4a267571a81fd08cca9cf
refs/heads/main
2023-05-03T19:42:52.869888
2021-05-17T08:16:34
2021-05-17T08:16:34
368,792,494
1
0
Apache-2.0
2021-05-19T08:11:40
2021-05-19T08:11:39
null
UTF-8
Java
false
false
1,651
java
/** * Copyright 2020 Alibaba Group Holding Limited. * * 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.alibaba.maxgraph.tinkerpop.steps; import com.alibaba.maxgraph.sdkcommon.compiler.custom.program.CustomProgram; import org.apache.tinkerpop.gremlin.process.computer.Memory; import org.apache.tinkerpop.gremlin.process.computer.VertexProgram; import org.apache.tinkerpop.gremlin.process.computer.traversal.step.map.VertexProgramStep; import org.apache.tinkerpop.gremlin.process.traversal.Traversal; import org.apache.tinkerpop.gremlin.structure.Graph; public class CustomVertexProgramStep extends VertexProgramStep { private static final long serialVersionUID = 2931171074623314328L; private VertexProgram customProgram; public CustomVertexProgramStep(Traversal.Admin traversal, VertexProgram customProgram) { super(traversal); this.customProgram = customProgram; } @Override public VertexProgram generateProgram(Graph graph, Memory memory) { throw new IllegalArgumentException(); } public VertexProgram getCustomProgram() { return customProgram; } }
[ "linzhu.ht@alibaba-inc.com" ]
linzhu.ht@alibaba-inc.com
33b14238d30b2ac42e8effc1a8fccfeddb06dd41
b03a18e552193c06bb88874370a3e96aeaef5794
/belajar-android/DemoSqlite/app/src/main/java/com/muhardin/endy/belajar/android/demosqlite/DataMahasiswaActivity.java
43509fe3b5a357c327f529e4d26376d02a4dfed4
[]
no_license
endymuhardin/materi-kuliah-java-2014-03
95d0b07899ae3e228db82763b7c69a96047a8134
650908803e6e8e2c0f07ab377b498bc7803ac987
refs/heads/master
2016-09-05T19:29:59.472855
2014-12-19T04:05:54
2014-12-19T04:05:54
24,483,640
0
1
null
null
null
null
UTF-8
Java
false
false
673
java
package com.muhardin.endy.belajar.android.demosqlite; import android.app.Activity; import android.os.Bundle; import android.widget.ListView; import java.util.List; public class DataMahasiswaActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_data_mahasiswa); List<Mahasiswa> data = new MahasiswaDao(this).semuaMahasiswa(); MahasiswaAdapter ma = new MahasiswaAdapter(this, android.R.layout.simple_list_item_1, data); ListView lv = (ListView) findViewById(R.id.listMahasiswa); lv.setAdapter(ma); } }
[ "endy.muhardin@gmail.com" ]
endy.muhardin@gmail.com
bda5ae2c950049e1ee584020dc3002cb3517ff56
d5decb236da7da2bb8d123311207766b6a8435cf
/src/com/taobao/api/response/PictureUserinfoGetResponse.java
76a1e99749bae433f49122c901028d4bb13efe6b
[]
no_license
tasfe/my-project-taobao-demo
85fee9861361e1e9ef4810f56aa5bbb3290ea216
f05a8141b6f3b23e88053bad4a12c8a138c2ef51
refs/heads/master
2021-01-13T01:30:17.440485
2013-02-16T08:38:02
2013-02-16T08:38:02
32,249,939
0
1
null
null
null
null
UTF-8
Java
false
false
676
java
package com.taobao.api.response; import com.taobao.api.internal.mapping.ApiField; import com.taobao.api.domain.UserInfo; import com.taobao.api.TaobaoResponse; /** * TOP API: taobao.picture.userinfo.get response. * * @author auto create * @since 1.0, null */ public class PictureUserinfoGetResponse extends TaobaoResponse { private static final long serialVersionUID = 6757272924763858636L; /** * 用户使用图片空间的信息 */ @ApiField("user_info") private UserInfo userInfo; public void setUserInfo(UserInfo userInfo) { this.userInfo = userInfo; } public UserInfo getUserInfo( ) { return this.userInfo; } }
[ "bingzhaoliu@gmail.com@28b099c3-0654-7635-3fca-eff556b9d3f2" ]
bingzhaoliu@gmail.com@28b099c3-0654-7635-3fca-eff556b9d3f2