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
381105edd3f4793bb7428f89f80731ecc4633ce7
bedceaea7f8c943961ea513d065e6a8bb6ce8c65
/src/FrequencyCountOverDataStream/Server.java
6a9dd72865c0619688249a500407450017cfe6ff
[]
no_license
lizhieffe/AlgorithmPractice
86fca218ef343b101014579ed980f497766f3600
cfcb9fd750b52de5518435d499605f2e920a6353
refs/heads/master
2021-01-02T23:07:39.598301
2015-02-22T15:54:56
2015-02-22T15:54:56
21,952,624
0
0
null
null
null
null
UTF-8
Java
false
false
1,204
java
package FrequencyCountOverDataStream; import java.util.List; import java.util.Scanner; public class Server { volatile private boolean running = false; private StringStreamQueue queue = new StringStreamQueue(); private FrequencyCount fc = new FrequencyCount(queue); public void start() { if (running) { System.out.println("Server is already running"); return; } running = true; System.out.println("Server is started"); System.out.println("Server is running"); boolean stop = false; Scanner sc = new Scanner(System.in); while (!stop) { String[] s = sc.nextLine().split(" "); for (String tmp : s) { if (tmp.equals("[s]")) { stop = true; break; } else if (tmp.equals("[p]")) printTopFrequency(10); else queue.add(tmp); } } running = false; System.out.println("Server stops"); } public void printTopFrequency(int n) { List<CountEntry> list = getTopFrequency(n); for (CountEntry e : list) System.out.println("[" + e.s + "]: " + e.count); } public List<CountEntry> getTopFrequency(int n) { return fc.getTopFrequency(n); } public static void main(String[] args) { Server s = new Server(); s.start(); } }
[ "lizhieffe@gmail.com" ]
lizhieffe@gmail.com
1ae7589d9fd26a0068ba8af329b04bf426fd44af
854f0c192c4fd99bd8b98fdcecb6481eb191227b
/samples/Comments2.0/src/main/java/com/gluonhq/comments20/DrawerManager.java
49d6513be71c2ece02794e8c7f96c936af9f434b
[]
no_license
hpc-cefet-rj/gluon-app
c352d8315fba8907014bc073351513c9ad781455
951275ef54688735fcce3e37abe7172cb80d69ab
refs/heads/master
2021-01-16T23:08:59.677655
2016-10-27T10:33:08
2016-10-27T10:33:08
72,004,708
0
0
null
null
null
null
UTF-8
Java
false
false
3,746
java
package com.gluonhq.comments20; import com.airhacks.afterburner.injection.Injector; import com.gluonhq.charm.down.Platform; import com.gluonhq.charm.down.Services; import com.gluonhq.charm.down.plugins.DisplayService; import com.gluonhq.charm.down.plugins.LifecycleService; import com.gluonhq.charm.glisten.application.MobileApplication; import com.gluonhq.charm.glisten.application.ViewStackPolicy; import com.gluonhq.charm.glisten.control.Avatar; import com.gluonhq.charm.glisten.control.NavigationDrawer; import com.gluonhq.charm.glisten.control.NavigationDrawer.Item; import com.gluonhq.charm.glisten.control.NavigationDrawer.ViewItem; import com.gluonhq.charm.glisten.visual.MaterialDesignIcon; import static com.gluonhq.comments20.Comments20.COMMENTS_VIEW; import static com.gluonhq.comments20.Comments20.EDITION_VIEW; import static com.gluonhq.comments20.Comments20.MENU_LAYER; import com.gluonhq.comments20.cloud.Service; import javafx.scene.Node; import javafx.scene.image.Image; public class DrawerManager { private final Service service; private final NavigationDrawer drawer; private final Avatar avatar; public DrawerManager() { this.drawer = new NavigationDrawer(); service = Injector.instantiateModelOrService(Service.class); avatar = new Avatar(21, new Image(DrawerManager.class.getResourceAsStream("/icon.png"))); Services.get(DisplayService.class) .ifPresent(d -> { if (d.isTablet()) { avatar.getStyleClass().add("tablet"); } }); service.userProperty().addListener((obs, ov, nv) -> avatar.setImage(getAvatarImage())); avatar.setImage(getAvatarImage()); NavigationDrawer.Header header = new NavigationDrawer.Header("Gluon Mobile", "The Comments App", avatar); drawer.setHeader(header); final Item commentsItem = new ViewItem("Comments", MaterialDesignIcon.COMMENT.graphic(), COMMENTS_VIEW, ViewStackPolicy.SKIP); final Item editionItem = new ViewItem("Edition", MaterialDesignIcon.EDIT.graphic(), EDITION_VIEW); editionItem.disableProperty().bind(service.userProperty().isNull()); drawer.getItems().addAll(commentsItem, editionItem); if (Platform.isDesktop()) { final Item quitItem = new Item("Quit", MaterialDesignIcon.EXIT_TO_APP.graphic()); quitItem.selectedProperty().addListener((obs, ov, nv) -> { if (nv) { Services.get(LifecycleService.class).ifPresent(LifecycleService::shutdown); } }); drawer.getItems().add(quitItem); } drawer.addEventHandler(NavigationDrawer.ITEM_SELECTED, e -> MobileApplication.getInstance().hideLayer(MENU_LAYER)); MobileApplication.getInstance().viewProperty().addListener((obs, oldView, newView) -> updateItem(newView.getName())); updateItem(COMMENTS_VIEW); } private void updateItem(String nameView) { for (Node item : drawer.getItems()) { if (item instanceof ViewItem && ((ViewItem) item).getViewName().equals(nameView)) { drawer.setSelectedItem(item); break; } } } public NavigationDrawer getDrawer() { return drawer; } private Image getAvatarImage() { if (service != null && service.userProperty().get() != null) { return Service.getUserImage(service.userProperty().get().getPicture()); } return new Image(Comments20.class.getResourceAsStream("/icon.png")); } }
[ "joao.parana@gmail.com" ]
joao.parana@gmail.com
0cb11ef1aa38e46a2014cd130941e1c5bfaeb71d
677197bbd8a9826558255b8ec6235c1e16dd280a
/src/android/support/v4/view/AccessibilityDelegateCompatIcs.java
1fd0cff4748c49300158ad8f4a09ed8ee7efb3a7
[]
no_license
xiaolongyuan/QingTingCheat
19fcdd821650126b9a4450fcaebc747259f41335
989c964665a95f512964f3fafb3459bec7e4125a
refs/heads/master
2020-12-26T02:31:51.506606
2015-11-11T08:12:39
2015-11-11T08:12:39
45,967,303
0
1
null
2015-11-11T07:47:59
2015-11-11T07:47:59
null
UTF-8
Java
false
false
5,265
java
package android.support.v4.view; import android.view.View; import android.view.View.AccessibilityDelegate; import android.view.ViewGroup; import android.view.accessibility.AccessibilityEvent; import android.view.accessibility.AccessibilityNodeInfo; class AccessibilityDelegateCompatIcs { public static boolean dispatchPopulateAccessibilityEvent(Object paramObject, View paramView, AccessibilityEvent paramAccessibilityEvent) { return ((View.AccessibilityDelegate)paramObject).dispatchPopulateAccessibilityEvent(paramView, paramAccessibilityEvent); } public static Object newAccessibilityDelegateBridge(AccessibilityDelegateBridge paramAccessibilityDelegateBridge) { return new View.AccessibilityDelegate() { public boolean dispatchPopulateAccessibilityEvent(View paramAnonymousView, AccessibilityEvent paramAnonymousAccessibilityEvent) { return this.val$bridge.dispatchPopulateAccessibilityEvent(paramAnonymousView, paramAnonymousAccessibilityEvent); } public void onInitializeAccessibilityEvent(View paramAnonymousView, AccessibilityEvent paramAnonymousAccessibilityEvent) { this.val$bridge.onInitializeAccessibilityEvent(paramAnonymousView, paramAnonymousAccessibilityEvent); } public void onInitializeAccessibilityNodeInfo(View paramAnonymousView, AccessibilityNodeInfo paramAnonymousAccessibilityNodeInfo) { this.val$bridge.onInitializeAccessibilityNodeInfo(paramAnonymousView, paramAnonymousAccessibilityNodeInfo); } public void onPopulateAccessibilityEvent(View paramAnonymousView, AccessibilityEvent paramAnonymousAccessibilityEvent) { this.val$bridge.onPopulateAccessibilityEvent(paramAnonymousView, paramAnonymousAccessibilityEvent); } public boolean onRequestSendAccessibilityEvent(ViewGroup paramAnonymousViewGroup, View paramAnonymousView, AccessibilityEvent paramAnonymousAccessibilityEvent) { return this.val$bridge.onRequestSendAccessibilityEvent(paramAnonymousViewGroup, paramAnonymousView, paramAnonymousAccessibilityEvent); } public void sendAccessibilityEvent(View paramAnonymousView, int paramAnonymousInt) { this.val$bridge.sendAccessibilityEvent(paramAnonymousView, paramAnonymousInt); } public void sendAccessibilityEventUnchecked(View paramAnonymousView, AccessibilityEvent paramAnonymousAccessibilityEvent) { this.val$bridge.sendAccessibilityEventUnchecked(paramAnonymousView, paramAnonymousAccessibilityEvent); } }; } public static Object newAccessibilityDelegateDefaultImpl() { return new View.AccessibilityDelegate(); } public static void onInitializeAccessibilityEvent(Object paramObject, View paramView, AccessibilityEvent paramAccessibilityEvent) { ((View.AccessibilityDelegate)paramObject).onInitializeAccessibilityEvent(paramView, paramAccessibilityEvent); } public static void onInitializeAccessibilityNodeInfo(Object paramObject1, View paramView, Object paramObject2) { ((View.AccessibilityDelegate)paramObject1).onInitializeAccessibilityNodeInfo(paramView, (AccessibilityNodeInfo)paramObject2); } public static void onPopulateAccessibilityEvent(Object paramObject, View paramView, AccessibilityEvent paramAccessibilityEvent) { ((View.AccessibilityDelegate)paramObject).onPopulateAccessibilityEvent(paramView, paramAccessibilityEvent); } public static boolean onRequestSendAccessibilityEvent(Object paramObject, ViewGroup paramViewGroup, View paramView, AccessibilityEvent paramAccessibilityEvent) { return ((View.AccessibilityDelegate)paramObject).onRequestSendAccessibilityEvent(paramViewGroup, paramView, paramAccessibilityEvent); } public static void sendAccessibilityEvent(Object paramObject, View paramView, int paramInt) { ((View.AccessibilityDelegate)paramObject).sendAccessibilityEvent(paramView, paramInt); } public static void sendAccessibilityEventUnchecked(Object paramObject, View paramView, AccessibilityEvent paramAccessibilityEvent) { ((View.AccessibilityDelegate)paramObject).sendAccessibilityEventUnchecked(paramView, paramAccessibilityEvent); } public static abstract interface AccessibilityDelegateBridge { public abstract boolean dispatchPopulateAccessibilityEvent(View paramView, AccessibilityEvent paramAccessibilityEvent); public abstract void onInitializeAccessibilityEvent(View paramView, AccessibilityEvent paramAccessibilityEvent); public abstract void onInitializeAccessibilityNodeInfo(View paramView, Object paramObject); public abstract void onPopulateAccessibilityEvent(View paramView, AccessibilityEvent paramAccessibilityEvent); public abstract boolean onRequestSendAccessibilityEvent(ViewGroup paramViewGroup, View paramView, AccessibilityEvent paramAccessibilityEvent); public abstract void sendAccessibilityEvent(View paramView, int paramInt); public abstract void sendAccessibilityEventUnchecked(View paramView, AccessibilityEvent paramAccessibilityEvent); } } /* Location: /Users/zhangxun-xy/Downloads/qingting2/classes_dex2jar.jar * Qualified Name: android.support.v4.view.AccessibilityDelegateCompatIcs * JD-Core Version: 0.6.2 */
[ "cnzx219@qq.com" ]
cnzx219@qq.com
9fdf6fa0c7fe0e2fb500b63eb98c396a68147058
430bd23decf16dc572a587b7af9f5c8e7dea5e6b
/servers/jaxrs/src/gen/java/io/swagger/api/ApiResponseMessage.java
d70d3972b3ce8a82a5198123db47b9e6a9f8d876
[ "Apache-2.0" ]
permissive
jltrade/api-connectors
332d4df5e7e60bd27b6c5a43182df7d99a665972
fa2cf561b414e18e9d2e1b5d68e94cc710d315e5
refs/heads/master
2020-06-19T10:20:46.022967
2016-09-24T13:12:17
2016-09-24T13:12:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,561
java
package io.swagger.api; import javax.xml.bind.annotation.XmlTransient; @javax.xml.bind.annotation.XmlRootElement @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2016-07-05T09:41:09.909-05:00") public class ApiResponseMessage { public static final int ERROR = 1; public static final int WARNING = 2; public static final int INFO = 3; public static final int OK = 4; public static final int TOO_BUSY = 5; int code; String type; String message; public ApiResponseMessage(){} public ApiResponseMessage(int code, String message){ this.code = code; switch(code){ case ERROR: setType("error"); break; case WARNING: setType("warning"); break; case INFO: setType("info"); break; case OK: setType("ok"); break; case TOO_BUSY: setType("too busy"); break; default: setType("unknown"); break; } this.message = message; } @XmlTransient public int getCode() { return code; } public void setCode(int code) { this.code = code; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } }
[ "samuel.trace.reed@gmail.com" ]
samuel.trace.reed@gmail.com
d222d992b85a2f6302318371ce741250fd496724
fa9dd0f223ff8285089e8d3021373e989818be05
/Solutions/src/com/rajaraghvendra/solutions/_408.java
fc7003d072f79737de6f9a566e27b4566267b4c7
[]
no_license
rajaraghvendra/Leetcode
36e2c9aca3428f39e18c840c401a3cb639bc1b28
616cf3b04e961cada6a6d13788d372cea3e260d8
refs/heads/master
2021-05-02T16:25:09.761450
2020-06-11T02:47:13
2020-06-11T02:47:13
62,503,993
0
0
null
null
null
null
UTF-8
Java
false
false
3,745
java
package com.rajaraghvendra.solutions; /** * 408. Valid Word Abbreviation * * Given a non-empty string s and an abbreviation abbr, * return whether the string matches with the given abbreviation. * A string such as "word" contains only the following valid abbreviations: ["word", "1ord", "w1rd", "wo1d", "wor1", "2rd", "w2d", "wo2", "1o1d", "1or1", "w1r1", "1o2", "2r1", "3d", "w3", "4"] Notice that only the above abbreviations are valid abbreviations of the string "word". Any other string is not a valid abbreviation of "word". Note: Assume s contains only lowercase letters and abbr contains only lowercase letters and digits. Example 1: Given s = "internationalization", abbr = "i12iz4n": Return true. Example 2: Given s = "apple", abbr = "a2e": Return false. */ public class _408 { public static class Solution1 { public boolean validWordAbbreviation(String word, String abbr) { if (abbr.length() > word.length()) { return false; } else { char[] abbrChars = abbr.toCharArray(); char[] wordChars = word.toCharArray(); if (abbr.length() == word.length()) { boolean prevDigit = false; for (int i = 0, j = 0; i < abbrChars.length && j < wordChars.length; i++, j++) { if (Character.isDigit(abbrChars[i]) && !prevDigit) { prevDigit = true; if (Character.getNumericValue(abbrChars[i]) != 1) { return false; } } else if (Character.isDigit(abbrChars[i]) && prevDigit) { return false; } else if (abbrChars[i] != wordChars[j]) { return false; } else if (prevDigit) { prevDigit = false; } } return true; } else { StringBuilder stringBuilder = new StringBuilder(); boolean firstDigit = true; for (int i = 0, j = 0; i < abbrChars.length && j < wordChars.length; i++) { while (i < abbrChars.length && Character.isDigit(abbrChars[i])) { if (firstDigit && Character.getNumericValue(abbrChars[i]) == 0) { return false; } stringBuilder.append(abbrChars[i]); i++; firstDigit = false; } firstDigit = true; if (!stringBuilder.toString().isEmpty()) { int number = Integer.valueOf(stringBuilder.toString()); j += number; stringBuilder.setLength(0); } if ((i >= abbrChars.length && j < wordChars.length) || (i < abbrChars.length && j >= wordChars.length)) { return false; } if (i < abbrChars.length && j < wordChars.length && abbrChars[i] != wordChars[j]) { return false; } if (j > wordChars.length && i <= abbrChars.length) { return false; } j++; } return true; } } } } }
[ "rajaraghvendra@gmail.com" ]
rajaraghvendra@gmail.com
7b82e76b27d091658f39a16bce87417b95bc7c39
0a6336496abdb49a8fbcbbbcad581c850356f018
/src/test/java/org/openapitools/client/model/GetWalletTransactionDetailsByTransactionIDRIBSBCVinInnerTest.java
df70b833d39dae4eec01c27af9d4ffe451a0939d
[]
no_license
Crypto-APIs/Crypto_APIs_2.0_SDK_Java
8afba51f53a7a617d66ef6596010cc034a48c17d
29bac849e4590c4decfa80458fce94a914801019
refs/heads/main
2022-09-24T04:43:37.066099
2022-09-12T17:38:13
2022-09-12T17:38:13
360,245,136
5
1
null
null
null
null
UTF-8
Java
false
false
2,972
java
/* * CryptoAPIs * Crypto APIs is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of their blockchain applications. Crypto APIs provides unified endpoints and data, raw data, automatic tokens and coins forwardings, callback functionalities, and much more. * * The version of the OpenAPI document: 2021-03-20 * Contact: developers@cryptoapis.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ package org.openapitools.client.model; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.openapitools.client.model.GetWalletTransactionDetailsByTransactionIDRIBSBCVinInnerScriptSig; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; /** * Model tests for GetWalletTransactionDetailsByTransactionIDRIBSBCVinInner */ public class GetWalletTransactionDetailsByTransactionIDRIBSBCVinInnerTest { private final GetWalletTransactionDetailsByTransactionIDRIBSBCVinInner model = new GetWalletTransactionDetailsByTransactionIDRIBSBCVinInner(); /** * Model tests for GetWalletTransactionDetailsByTransactionIDRIBSBCVinInner */ @Test public void testGetWalletTransactionDetailsByTransactionIDRIBSBCVinInner() { // TODO: test GetWalletTransactionDetailsByTransactionIDRIBSBCVinInner } /** * Test the property 'addresses' */ @Test public void addressesTest() { // TODO: test addresses } /** * Test the property 'coinbase' */ @Test public void coinbaseTest() { // TODO: test coinbase } /** * Test the property 'scriptSig' */ @Test public void scriptSigTest() { // TODO: test scriptSig } /** * Test the property 'sequence' */ @Test public void sequenceTest() { // TODO: test sequence } /** * Test the property 'txid' */ @Test public void txidTest() { // TODO: test txid } /** * Test the property 'txinwitness' */ @Test public void txinwitnessTest() { // TODO: test txinwitness } /** * Test the property 'value' */ @Test public void valueTest() { // TODO: test value } /** * Test the property 'vout' */ @Test public void voutTest() { // TODO: test vout } }
[ "kristiyan.ivanov@menasoftware.com" ]
kristiyan.ivanov@menasoftware.com
3ba47fbc5b7d0f9731a51e27f8558c4a13d2c41c
8b9190a8c5855d5753eb8ba7003e1db875f5d28f
/sources/com/google/common/io/LittleEndianDataOutputStream.java
d20a5ad7dfad831f0cc9bf1f9e844a9d16385cf0
[]
no_license
stevehav/iowa-caucus-app
6aeb7de7487bd800f69cb0b51cc901f79bd4666b
e3c7eb39de0be6bbfa8b6b063aaa85dcbcee9044
refs/heads/master
2020-12-29T10:25:28.354117
2020-02-05T23:15:52
2020-02-05T23:15:52
238,565,283
21
3
null
null
null
null
UTF-8
Java
false
false
2,342
java
package com.google.common.io; import com.google.common.annotations.Beta; import com.google.common.annotations.GwtIncompatible; import com.google.common.base.Preconditions; import com.google.common.primitives.Longs; import java.io.DataOutput; import java.io.DataOutputStream; import java.io.FilterOutputStream; import java.io.IOException; import java.io.OutputStream; @GwtIncompatible @Beta public final class LittleEndianDataOutputStream extends FilterOutputStream implements DataOutput { public LittleEndianDataOutputStream(OutputStream outputStream) { super(new DataOutputStream((OutputStream) Preconditions.checkNotNull(outputStream))); } public void write(byte[] bArr, int i, int i2) throws IOException { this.out.write(bArr, i, i2); } public void writeBoolean(boolean z) throws IOException { ((DataOutputStream) this.out).writeBoolean(z); } public void writeByte(int i) throws IOException { ((DataOutputStream) this.out).writeByte(i); } @Deprecated public void writeBytes(String str) throws IOException { ((DataOutputStream) this.out).writeBytes(str); } public void writeChar(int i) throws IOException { writeShort(i); } public void writeChars(String str) throws IOException { for (int i = 0; i < str.length(); i++) { writeChar(str.charAt(i)); } } public void writeDouble(double d) throws IOException { writeLong(Double.doubleToLongBits(d)); } public void writeFloat(float f) throws IOException { writeInt(Float.floatToIntBits(f)); } public void writeInt(int i) throws IOException { this.out.write(i & 255); this.out.write((i >> 8) & 255); this.out.write((i >> 16) & 255); this.out.write((i >> 24) & 255); } public void writeLong(long j) throws IOException { byte[] byteArray = Longs.toByteArray(Long.reverseBytes(j)); write(byteArray, 0, byteArray.length); } public void writeShort(int i) throws IOException { this.out.write(i & 255); this.out.write((i >> 8) & 255); } public void writeUTF(String str) throws IOException { ((DataOutputStream) this.out).writeUTF(str); } public void close() throws IOException { this.out.close(); } }
[ "steve@havelka.co" ]
steve@havelka.co
0b8d7a7df6c39f2e4bd32b42dc7766bd0a5ee691
bdb5d205d56ef9e0f523be1c3fd683400f7057a5
/app/src/main/java/com/tgf/kcwc/app/SelectSeriesByFactoryBrandActivity.java
b4f4d8c7c9023ae2dbddafb4775b097cdbd28c7e
[]
no_license
yangyusong1121/Android-car
f8fbd83b8efeb2f0e171048103f2298d96798f9e
d6215e7a59f61bd7f15720c8e46423045f41c083
refs/heads/master
2020-03-11T17:25:07.154083
2018-04-19T02:18:15
2018-04-19T02:20:19
130,146,301
0
1
null
null
null
null
UTF-8
Java
false
false
4,222
java
package com.tgf.kcwc.app; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ImageButton; import android.widget.ListView; import android.widget.TextView; import com.tgf.kcwc.R; import com.tgf.kcwc.adapter.WrapAdapter; import com.tgf.kcwc.base.BaseActivity; import com.tgf.kcwc.common.Constants; import com.tgf.kcwc.mvp.model.CarBean; import com.tgf.kcwc.mvp.presenter.CarDataPresenter; import com.tgf.kcwc.mvp.view.CarDataView; import com.tgf.kcwc.util.CommonUtils; import com.tgf.kcwc.util.IOUtils; import com.tgf.kcwc.util.TextUtil; import com.tgf.kcwc.view.FunctionView; import java.io.Serializable; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Author:Jenny * Date:2016/12/19 15:52 * E-mail:fishloveqin@gmail.com * 厂商车系 */ public class SelectSeriesByFactoryBrandActivity extends BaseActivity implements AdapterView.OnItemClickListener, CarDataView<List<CarBean>> { private ListView mList; private WrapAdapter<CarBean> mAdapter; private CarDataPresenter mPresenter; private String mBrandName; private boolean isSelectModel; private int mIndex; private String mModuleType; @Override protected void titleBarCallback(ImageButton back, FunctionView function, TextView text) { backEvent(back); text.setText(R.string.select_series); text.setTextColor(mRes.getColor(R.color.white)); } @Override protected void setUpViews() { mList = (ListView) findViewById(R.id.list); mPresenter = new CarDataPresenter(); mPresenter.attachView(this); mPresenter.getSeriesByBrand(mId + "", IOUtils.getToken(mContext)); mList.setOnItemClickListener(this); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = getIntent(); mId = getIntent().getIntExtra(Constants.IntentParams.ID, -1); mModuleType = intent.getStringExtra(Constants.IntentParams.MODULE_TYPE); setContentView(R.layout.activity_model_list); } private int mId; @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { CarBean carBean = (CarBean) parent.getAdapter().getItem(position); String modelType = KPlayCarApp.getValue(Constants.KeyParams.PRE_REG_SELECT_MODEL); if (!TextUtil.isEmpty(modelType) && Constants.CheckInFormKey.SERIES.equals(modelType)) { KPlayCarApp.putValue(Constants.KeyParams.PRE_REG_SELECT_MODEL_VALUE, carBean.factoryName + " " + carBean.name); List<Activity> allPages = KPlayCarApp.getActivityStack(); for (Activity a : allPages) { if (a instanceof FactoryBrandActivity || a instanceof SelectSeriesByFactoryBrandActivity) { a.finish(); } } return; } Map<String, Serializable> args = new HashMap<String, Serializable>(); args.put(Constants.IntentParams.ID, carBean.id); args.put(Constants.IntentParams.MODULE_TYPE, mModuleType); CommonUtils.startNewActivity(this, args, SelectModelBySeriesActivity.class); } @Override public void setLoadingIndicator(boolean active) { showLoadingIndicator(active); } @Override public void showLoadingTasksError() { dismissLoadingDialog(); } @Override public Context getContext() { return mContext; } @Override protected void onDestroy() { super.onDestroy(); if (mPresenter != null) { mPresenter.detachView(); } } @Override public void showData(List<CarBean> datas) { mAdapter = new WrapAdapter<CarBean>(mContext, datas, R.layout.select_model_item) { @Override public void convert(ViewHolder helper, CarBean item) { TextView tv = helper.getView(R.id.name); tv.setText(item.name); } }; mList.setAdapter(mAdapter); } }
[ "328797668@qq.com" ]
328797668@qq.com
9c41be5fb105cd928b153175d866a5bbd7f2da74
25baed098f88fc0fa22d051ccc8027aa1834a52b
/src/main/java/com/ljh/service/VListunreportService.java
b6b1ba32a7c4cebaddb6ea26adc4c6f34262e169
[]
no_license
woai555/ljh
a5015444082f2f39d58fb3e38260a6d61a89af9f
17cf8f4415c9ae7d9fedae46cd9e9d0d3ce536f9
refs/heads/master
2022-07-11T06:52:07.620091
2022-01-05T06:51:27
2022-01-05T06:51:27
132,585,637
0
0
null
2022-06-17T03:29:19
2018-05-08T09:25:32
Java
UTF-8
Java
false
false
273
java
package com.ljh.service; import com.ljh.bean.VListunreport; import com.baomidou.mybatisplus.extension.service.IService; /** * <p> * 服务类 * </p> * * @author ljh * @since 2020-10-26 */ public interface VListunreportService extends IService<VListunreport> { }
[ "37681193+woai555@users.noreply.github.com" ]
37681193+woai555@users.noreply.github.com
a10d888b087fbcc2ca2fbd69984f392de41be03c
678a3d58c110afd1e9ce195d2f20b2531d45a2e0
/sources/com/airbnb/android/core/models/ReferralOffer.java
ce9bede69aa550dfead2160718af1494333fd8f0
[]
no_license
jasonnth/AirCode
d1c37fb9ba3d8087efcdd9fa2103fb85d13735d5
d37db1baa493fca56f390c4205faf5c9bbe36604
refs/heads/master
2020-07-03T08:35:24.902940
2019-08-12T03:34:56
2019-08-12T03:34:56
201,842,970
0
2
null
null
null
null
UTF-8
Java
false
false
629
java
package com.airbnb.android.core.models; import android.os.Parcel; import android.os.Parcelable.Creator; import com.airbnb.android.core.models.generated.GenReferralOffer; public class ReferralOffer extends GenReferralOffer { public static final Creator<ReferralOffer> CREATOR = new Creator<ReferralOffer>() { public ReferralOffer[] newArray(int size) { return new ReferralOffer[size]; } public ReferralOffer createFromParcel(Parcel source) { ReferralOffer object = new ReferralOffer(); object.readFromParcel(source); return object; } }; }
[ "thanhhuu2apc@gmail.com" ]
thanhhuu2apc@gmail.com
9b2a190fe97ee8b78cf609f3944c0dcf217a5738
288fdb292fc9646e2f69c49265f546892d7926bd
/src/main/java/com/epam/adok/generic/super_vs_extends/GenericsExamples_pecs.java
4acbbe4d907538a4d7db86150167bb2d2d890644
[]
no_license
AdilhanKaikenov/generic-project
73fdce51fae0d71ef03a3599cd8ff72cf265f315
c68a47389d33263e8c3138418023b7c9264c62b8
refs/heads/master
2020-03-12T21:23:52.207096
2018-04-24T10:27:57
2018-04-24T10:27:57
130,827,220
0
0
null
null
null
null
UTF-8
Java
false
false
3,543
java
package com.epam.adok.generic.super_vs_extends; import java.util.ArrayList; import java.util.List; class Fruit { @Override public String toString() { return "I am a Fruit !!"; } public String fruitMethod() { return "fruitMethod()"; } } class Apple extends Fruit { @Override public String toString() { return "I am an Apple !!"; } public String appleMethod() { return "appleMethod()"; } } class AsianApple extends Apple { @Override public String toString() { return "I am an AsianApple !!"; } public String asianAppleMethod() { return "asianAppleMethod()"; } } /** 'PECS' is from the collection's point of view. If you are only pulling items from a generic collection, it is a producer and you should use extends; if you are only stuffing items in, it is a consumer and you should use super. If you do both with the same collection, you shouldn't use either extends or super. */ public class GenericsExamples_pecs { public static void main(String[] args) { /** Case 1: You want to go through the collection and do things with each item. Then the list is a producer, so you should use a Collection<? extends Thing>. The reasoning is that a Collection<? extends Thing> could hold any subtype of Thing, and thus each element will behave as a Thing when you perform your operation. (You actually cannot add anything to a Collection<? extends Thing>, because you cannot know at runtime which specific subtype of Thing the collection holds.) */ //List of apples List<Apple> apples1 = new ArrayList<>(); apples1.add(new Apple()); //We can assign a list of apples to a basket of fruits; //because apple is subtype of fruit List<? extends Fruit> basketExtends = apples1; //Here we know that in basket there is nothing but fruit only for (Fruit fruit : basketExtends) { System.out.println(fruit); } /** <? extends Fruit> wildcard tells the compiler that we’re dealing with a subtype of the type Fruit, but we cannot know which fruit as there may be multiple subtypes. Since there’s no way to tell, and we need to guarantee type safety (invariance), you won’t be allowed to put anything inside such a structure. */ // basketExtends.add(new Apple()); //Compile time error // basketExtends.add(new Fruit()); //Compile time error // ------------------------------------------------------------------------------- /** Case 2: You want to add things to the collection. Then the list is a consumer, so you should use a Collection<? super Thing>. The reasoning here is that unlike Collection<? extends Thing>, Collection<? super Thing> can always hold a Thing no matter what the actual parameterized type is. Here you don't care what is already in the list as long as it will allow a Thing to be added; this is what ? super Thing guarantees */ //List of apples List<Apple> apples2 = new ArrayList<>(); apples2.add(new Apple()); //We can assign a list of apples to a basket of apples List<? super Apple> basketSuper = apples2; basketSuper.add(new Apple()); //Successful basketSuper.add(new AsianApple()); //Successful // basketSuper.add(new Fruit()); //Compile time error } }
[ "adilhan_kai@mail.ru" ]
adilhan_kai@mail.ru
fbb42a36d79fd5a1b19e186f44710be692f6827b
fae551eb54ab3a907ba13cf38aba1db288708d92
/chrome/browser/lens/java/src/org/chromium/chrome/browser/lens/LensFeature.java
25602c7d7424f4ab4fd7ea1732777af770b3611f
[ "BSD-3-Clause" ]
permissive
xtblock/chromium
d4506722fc6e4c9bc04b54921a4382165d875f9a
5fe0705b86e692c65684cdb067d9b452cc5f063f
refs/heads/main
2023-04-26T18:34:42.207215
2021-05-27T04:45:24
2021-05-27T04:45:24
371,258,442
2
1
BSD-3-Clause
2021-05-27T05:36:28
2021-05-27T05:36:28
null
UTF-8
Java
false
false
2,829
java
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.lens; import org.chromium.chrome.browser.flags.BooleanCachedFieldTrialParameter; import org.chromium.chrome.browser.flags.ChromeFeatureList; import org.chromium.chrome.browser.flags.StringCachedFieldTrialParameter; /** * A helper class contains cached Lens feature flags and params. */ public class LensFeature { private static final String DISABLE_ON_INCOGNITO_PARAM_NAME = "disableOnIncognito"; public static final BooleanCachedFieldTrialParameter DISABLE_LENS_CAMERA_ASSISTED_SEARCH_ON_INCOGNITO = new BooleanCachedFieldTrialParameter( ChromeFeatureList.LENS_CAMERA_ASSISTED_SEARCH, DISABLE_ON_INCOGNITO_PARAM_NAME, true); private static final String ENABLE_LENS_CAMERA_ASSISTED_SEARCH_ON_LOW_END_DEVICE_PARAM_NAME = "enableCameraAssistedSearchOnLowEndDevice"; public static final BooleanCachedFieldTrialParameter ENABLE_LENS_CAMERA_ASSISTED_SEARCH_ON_LOW_END_DEVICE = new BooleanCachedFieldTrialParameter( ChromeFeatureList.LENS_CAMERA_ASSISTED_SEARCH, ENABLE_LENS_CAMERA_ASSISTED_SEARCH_ON_LOW_END_DEVICE_PARAM_NAME, false); private static final String MIN_AGSA_VERSION_LENS_CAMERA_ASSISTED_SEARCH_PARAM_NAME = "minAgsaVersionForLensCameraAssistedSearch"; public static final StringCachedFieldTrialParameter MIN_AGSA_VERSION_LENS_CAMERA_ASSISTED_SEARCH = new StringCachedFieldTrialParameter( ChromeFeatureList.LENS_CAMERA_ASSISTED_SEARCH, MIN_AGSA_VERSION_LENS_CAMERA_ASSISTED_SEARCH_PARAM_NAME, "12.13"); private static final String SEARCH_BOX_START_VARIANT_LENS_CAMERA_ASSISTED_SEARCH_PARAM_NAME = "searchBoxStartVariantForLensCameraAssistedSearch"; public static final BooleanCachedFieldTrialParameter SEARCH_BOX_START_VARIANT_LENS_CAMERA_ASSISTED_SEARCH = new BooleanCachedFieldTrialParameter( ChromeFeatureList.LENS_CAMERA_ASSISTED_SEARCH, SEARCH_BOX_START_VARIANT_LENS_CAMERA_ASSISTED_SEARCH_PARAM_NAME, false); private static final String ENABLE_LENS_CAMERA_ASSISTED_SEARCH_ON_TABLET_PARAM_NAME = "enableCameraAssistedSearchOnTablet"; public static final BooleanCachedFieldTrialParameter ENABLE_LENS_CAMERA_ASSISTED_SEARCH_ON_TABLET = new BooleanCachedFieldTrialParameter( ChromeFeatureList.LENS_CAMERA_ASSISTED_SEARCH, ENABLE_LENS_CAMERA_ASSISTED_SEARCH_ON_TABLET_PARAM_NAME, false); }
[ "chromium-scoped@luci-project-accounts.iam.gserviceaccount.com" ]
chromium-scoped@luci-project-accounts.iam.gserviceaccount.com
36d285ad50aa3a3b479bc8b6bf51315f0720d30c
17abe434c2bc8995fbc73f7f81217e49a0283c2e
/src/main/java/com/google/gwt/user/client/impl/DOMImplIE9.java
ddbac12c33287a54545f5eedad66e27a6ac54ab3
[ "Apache-2.0" ]
permissive
aliz-ai/gwt-mock-2.5.1
6d7d41c9f29d3110eef5c74b23a3d63b3af5e71b
af5495454005f2bba630b8d869fde75930d4ec2e
refs/heads/master
2022-12-31T06:00:31.983924
2020-07-13T12:06:47
2020-07-13T12:06:47
55,702,877
1
1
NOASSERTION
2020-10-13T09:09:21
2016-04-07T14:48:45
Java
UTF-8
Java
false
false
1,790
java
/* * Copyright 2011 Google 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.google.gwt.user.client.impl; import com.google.gwt.dom.client.BrowserEvents; import com.google.gwt.dom.client.Element; /** * IE9 implementation of {@link com.google.gwt.user.client.impl.DOMImplStandardBase}. */ class DOMImplIE9 extends DOMImplStandardBase { /** * IE uses a non-standard way of handling drag events. */ @Override protected void initEventSystem() { super.initEventSystem(); initEventSystemIE(); } @Override protected void sinkBitlessEventImpl(Element elem, String eventTypeName) { super.sinkBitlessEventImpl(elem, eventTypeName); if (BrowserEvents.DRAGOVER.equals(eventTypeName)) { /* * In IE, we have to sink dragenter with dragover in order to make an * element a drop target. */ super.sinkBitlessEventImpl(elem, BrowserEvents.DRAGENTER); } } private native void initEventSystemIE() /*-{ // In IE, drag events return false instead of calling preventDefault. @com.google.gwt.user.client.impl.DOMImplStandard::dispatchDragEvent = $entry(function(evt) { @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent.call(this, evt); return false; }); }-*/; }
[ "gabor.farkas@doctusoft.com" ]
gabor.farkas@doctusoft.com
240f508e264a3a00acb1cbad6787838d6104516d
14488392026c0eace190dbaeb139240219c6f71f
/src/main/java/net/avdw/anomalydetection/NelsonRuleGood.java
bbf38509777d2785c2b33c62f07a1ec3a996357f
[]
no_license
avanderw/anomaly-detection
917ab7168b4e1c57a3398c7d6d1ad546197c3528
7985935a7fda0b35c4f06bd60c27a34fb4baad98
refs/heads/master
2021-04-28T10:54:27.956476
2018-02-27T10:47:11
2018-02-27T10:47:11
122,077,121
0
0
null
null
null
null
UTF-8
Java
false
false
176
java
package net.avdw.anomalydetection; import net.avdw.economy.api.AGood; class NelsonRuleGood implements AGood { Boolean failed; String rule; String description; }
[ "avanderw@gmail.com" ]
avanderw@gmail.com
99b02efc11575608c8ce8172169e9646e8ecd921
d8d5dee018bd5f6d484e0f383c6f64513860b5bb
/src/main/java/com/ruoyi/project/monitor/operlog/service/IOperLogService.java
d1743a76e5ea1848ad0a99ac0f11df204c21df6e
[ "MIT" ]
permissive
fengderongyan/zhjy
7643b0c7c58d630ccc4a96076ee68920fc102e21
98c752a911e5d316a26cb91f4401021e8a9312c0
refs/heads/master
2022-09-19T21:43:18.363771
2020-01-08T02:06:06
2020-01-08T02:06:06
232,459,082
1
0
MIT
2022-09-01T23:18:53
2020-01-08T02:21:41
JavaScript
UTF-8
Java
false
false
986
java
package com.ruoyi.project.monitor.operlog.service; import java.util.List; import com.ruoyi.project.monitor.operlog.domain.OperLog; /** * 操作日志 服务层 * * @author ruoyi */ public interface IOperLogService { /** * 新增操作日志 * * @param operLog 操作日志对象 */ public void insertOperlog(OperLog operLog); /** * 查询系统操作日志集合 * * @param operLog 操作日志对象 * @return 操作日志集合 */ public List<OperLog> selectOperLogList(OperLog operLog); /** * 批量删除系统操作日志 * * @param ids 需要删除的数据 * @return 结果 */ public int deleteOperLogByIds(String ids); /** * 查询操作日志详细 * * @param operId 操作ID * @return 操作日志对象 */ public OperLog selectOperLogById(Long operId); /** * 清空操作日志 */ public void cleanOperLog(); }
[ "2252743889@qq.com" ]
2252743889@qq.com
37c2ad1f9483d4390bebe05214a3c9c7fe165df1
c3319fb9adce6a3e88f4cd949721ca032726941e
/com/syntax/class21/Dog.java
04b1093fbc06ee2bdd74b80233fb107bc18eb077
[]
no_license
Dinara9786/JavaBatch7
9a0fa5d16f3961ecc1468189f5ea621b09521365
3c0484c974d0721a410fc8ebfdc7e63cdb0fd9ea
refs/heads/master
2023-01-15T19:59:38.420543
2020-11-22T03:01:13
2020-11-22T03:01:13
272,066,513
0
0
null
null
null
null
UTF-8
Java
false
false
140
java
package com.syntax.class21; public class Dog extends Animal { boolean tail; void bark () { System.out.println("Dog can bark"); } }
[ "knowledge9786@gmail.com" ]
knowledge9786@gmail.com
15eff7c3be97a1a7d11f02e329ab8057e3d2439e
4acc3acebe988ec4e13c29625d4f1ea22b0a17c5
/第10章/ComponentScanMorePackage/src/entity1/Userinfo.java
ec9ddddc806d56462f84046845c2880e009fac14
[ "MIT" ]
permissive
finersoft/JavaEECoreFrameworkPractisesV2Code
e78d65e892754162d9ac992337f987bffa083c72
a9fb5f0395a169c6522612e18c64990b7f81b069
refs/heads/master
2021-09-10T17:39:14.216582
2018-03-30T08:00:29
2018-03-30T08:00:29
119,354,905
1
1
null
null
null
null
UTF-8
Java
false
false
191
java
package entity1; import org.springframework.stereotype.Component; @Component public class Userinfo { public Userinfo() { System.out.println("public Userinfo() " + this.hashCode()); } }
[ "290384427@qq.com" ]
290384427@qq.com
753c38a5e4d4fe67aa0bc1f4a114ad4dd54bcee2
b17fc9e282f3ae10579e4456d9ca2774f4b14780
/thinking-in-java4/src/main/java/cn/tim/thinking/polymorphic/ConstructorPolymorphicDemo.java
6c27317f62decd5082f9ddeac1973ea55fe8c85a
[]
no_license
luolibing/coding-life
8c351e306111b217585c4fbaab34c10e42012b23
06318973d4c0bbbfc0225c4a5bc5d4a2ddf2c6ff
refs/heads/master
2022-12-27T02:26:49.599091
2021-12-22T04:01:00
2021-12-22T04:01:00
94,624,544
1
1
null
2022-12-16T06:49:34
2017-06-17T13:11:35
Java
UTF-8
Java
false
false
1,964
java
package cn.tim.thinking.polymorphic; import org.junit.Test; /** * Created by LuoLiBing on 16/12/15. * 构造器与多态 * 构造器是隐式的static方法, 所以也不具备多态性. * * 基类的构造器总是在导出类的构造过程中被调用, 而且按照继承层次逐渐向上链接, 以使得每个基类的构造器都能得到调用. * 这样做是有意义的, 因为构造器具有意向特殊任务: 检查对象是否被正确地构造. 导出类只能访问它自己的成员,不能访问基类的成员, * 只有基类构造器才能对自己的元素进行初始化,因此必须令所有构造器都得到调用, 否则就不能正确构造完整对象. 这就是为什么要强制每个导出类都必须调用构造器的原因. */ public class ConstructorPolymorphicDemo { class Meal { Meal() { System.out.println("Meal()"); } } class Bread { Bread() { System.out.println("Bread()"); } } class Cheese { Cheese() { System.out.println("Cheese()"); } } class Lettuce { Lettuce() { System.out.println("Lettuce()"); } } class Lunch extends Meal { Lunch() { System.out.println("Lunch()"); } } class PortableLunch extends Lunch { PortableLunch() { System.out.println("PortableLunch()"); } } class SandWich extends PortableLunch { private Bread b = new Bread(); private Cheese c = new Cheese(); private Lettuce l = new Lettuce(); public SandWich() { System.out.println("SandWich()"); } } /** * 调用顺序: * 1 调用基类构造器, 从根目录到导出类 * 2 按声明顺序调用成员的初始化方法 * 3 调用导出类构造器主题 */ @Test public void sandwich() { new SandWich(); } }
[ "397911353@qq.com" ]
397911353@qq.com
8910c4a2ce2522bbaf02b5a7b99636eabcc8e177
d96c629cc896012b84bee066912b38ab17046de1
/src/main/java/mnm/serv/productidel.java
6f7becd55ece76e6425159101bc525474a577102
[]
no_license
javacart/javacart_admin
3cd10dee6399c5956743d85653cf59ec46d1ea57
20f5c06d1c2e0b0a433964c73088341fe826f8d3
refs/heads/master
2021-06-09T19:42:18.189765
2017-01-30T01:38:29
2017-01-30T01:38:30
80,345,329
1
0
null
null
null
null
UTF-8
Java
false
false
2,457
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package mnm.serv; import java.io.IOException; import javax.mail.internet.AddressException; import javax.mail.internet.InternetAddress; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import mnm.util.db; /** * * @author mohammadghasemy */ public class productidel extends HttpServlet{ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); try{ boolean log=(Boolean)session.getAttribute("login"); if(!log){ getServletContext().getRequestDispatcher("/index.jsp").forward( request, response); return; } }catch(Exception s){ getServletContext().getRequestDispatcher("/index.jsp").forward( request, response); } try{ String id=(request.getParameter("id")); db d=(db)session.getAttribute("database"); if(null==d){ d=new db(); session.setAttribute("database",d); } d.delete_producti(id); System.out.println("complete inserting"); }catch(Exception s){ s.printStackTrace(); getServletContext().getRequestDispatcher("/panel/index.jsp").forward( request, response); return; } getServletContext().getRequestDispatcher("/panel/image.jsp?id="+request.getParameter("id2")+"&title="+request.getParameter("title")).forward( request, response); } public static boolean isValidEmailAddress(String email) { boolean result = true; try { InternetAddress emailAddr = new InternetAddress(email); emailAddr.validate(); } catch (AddressException ex) { result = false; } return result; } }
[ "mohammad.ghasemy@gmail.com" ]
mohammad.ghasemy@gmail.com
b0ba77acbec0770a41d86aa4d03474ec37ec9558
aba3b6092cf7cc9cce5714858731dd363de1a2f6
/src/main/java/com/bikash/bikashBackend/Model/Transactions.java
9cfc810308ab61109c75b3ffd5646dce71e64b32
[]
no_license
PlabonKumarsaha/bkashBackend
3b58108af1614d1722f937f198d9f21c0929b0b7
5065a9df5e5cbdc9a3f2a23eaab952663cfbff49
refs/heads/master
2022-12-04T17:13:15.209174
2020-08-23T09:24:16
2020-08-23T09:24:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
522
java
package com.bikash.bikashBackend.Model; import lombok.Data; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Temporal; import javax.persistence.TemporalType; import java.util.Date; @Data @Entity public class Transactions extends BaseModel { private Long transactionId; private String transactionRef; @Temporal(TemporalType.TIMESTAMP) @Column(updatable = false) private Date transactionDate; private double transactionAmount; private Long userId; }
[ "kibria92@gmail.com" ]
kibria92@gmail.com
3603fcad293b141d7d01c8061f14f27fa7d13882
69dd96401da44bd8631654fce55ba80c794ab3b4
/module-info/src/org/fufeng/module/java/UseCaseTwo.java
0c34119bb7a221108087df428dbb6d6da636e000
[]
no_license
LCY2013/jguid
6867241b9bfbc40bf2c79f2920379425f9dbe724
39dc47d3cb7e204511efbe177facea9f041efcd8
refs/heads/master
2022-06-14T02:13:17.397733
2021-03-07T12:55:23
2021-03-07T12:55:23
225,802,714
2
1
null
2022-04-23T02:59:32
2019-12-04T07:10:27
Java
UTF-8
Java
false
false
1,548
java
/* * The MIT License (MIT) * ------------------------------------------------------------------ * Copyright © 2019 Ramostear.All Rights Reserved. * * ProjectName: jguid * @Author : <a href="https://github.com/lcy2013">MagicLuo</a> * @date : 2020-07-14 * @version : 1.0.0-RELEASE * * 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 org.fufeng.module.java; /** * @program: jguid * @description: 测试用例二 * @author: <a href="https://github.com/lcy2013">MagicLuo</a> * @create: 2020-07-14 */ public class UseCaseTwo { }
[ "15281205719@163.com" ]
15281205719@163.com
53724826ecac332c6ffeb9b89ca159271b6398cb
90f9d0d74e6da955a34a97b1c688e58df9f627d0
/com.ibm.ccl.soa.deploy.ihs/src/com/ibm/ccl/soa/deploy/ihs/provider/IhsSystemUnitItemProvider.java
0e6045a37fa8cf7184b8cebb0b9c568f8c102c09
[]
no_license
kalapriyakannan/UMLONT
0431451674d7b3eb744fb436fab3d13e972837a4
560d9f5d2ba6a800398a24fd8265e5a946179fd3
refs/heads/master
2020-03-30T03:16:44.327160
2018-09-28T03:28:11
2018-09-28T03:28:11
150,679,726
1
1
null
null
null
null
UTF-8
Java
false
false
5,930
java
/******************************************************************************* * Copyright (c) 2003, 2007 IBM Corporation Licensed Material - Property of IBM. All rights reserved. * * US Government Users Restricted Rights - Use, duplication or disclosure v1.0 restricted by GSA ADP * Schedule Contract with IBM Corp. * * Contributors: IBM Corporation - initial API and implementation *******************************************************************************/ package com.ibm.ccl.soa.deploy.ihs.provider; import java.util.Collection; import java.util.List; import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.util.ResourceLocator; import org.eclipse.emf.ecore.EStructuralFeature; import org.eclipse.emf.ecore.util.FeatureMap; import org.eclipse.emf.ecore.util.FeatureMapUtil; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; import org.eclipse.emf.edit.provider.IItemPropertySource; import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; import org.eclipse.emf.edit.provider.ITreeItemContentProvider; import com.ibm.ccl.soa.deploy.core.CorePackage; import com.ibm.ccl.soa.deploy.core.provider.UnitItemProvider; import com.ibm.ccl.soa.deploy.ihs.IhsSystemUnit; /** * This is the item provider adapter for a {@link com.ibm.ccl.soa.deploy.ihs.IhsSystemUnit} object. * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public class IhsSystemUnitItemProvider extends UnitItemProvider implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { /** * This constructs an instance from a factory and a notifier. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @generated */ public IhsSystemUnitItemProvider(AdapterFactory adapterFactory) { super(adapterFactory); } /** * This returns the property descriptors for the adapted class. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @generated */ public List getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); } return itemPropertyDescriptors; } /** * This returns IhsSystemUnit.gif. * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public Object getImage(Object object) { return overlayImage(object, getResourceLocator().getImage("full/obj16/IhsSystemUnit")); //$NON-NLS-1$ } /** * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc * --> * * @generated */ public String getText(Object object) { String label = ((IhsSystemUnit)object).getName(); return label == null || label.length() == 0 ? getString("_UI_IhsSystemUnit_type") : //$NON-NLS-1$ getString("_UI_IhsSystemUnit_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ } /** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void notifyChanged(Notification notification) { updateChildren(notification); super.notifyChanged(notification); } /** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children * that can be created under this object. * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); } /** * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @generated */ public String getCreateChildText(Object owner, Object feature, Object child, Collection selection) { Object childFeature = feature; Object childObject = child; if (childFeature instanceof EStructuralFeature && FeatureMapUtil.isFeatureMap((EStructuralFeature)childFeature)) { FeatureMap.Entry entry = (FeatureMap.Entry)childObject; childFeature = entry.getEStructuralFeature(); childObject = entry.getValue(); } boolean qualify = childFeature == CorePackage.Literals.DEPLOY_MODEL_OBJECT__ARTIFACTS || childFeature == CorePackage.Literals.DEPLOY_CORE_ROOT__ARTIFACT_FILE || childFeature == CorePackage.Literals.DEPLOY_MODEL_OBJECT__CONSTRAINTS || childFeature == CorePackage.Literals.DEPLOY_CORE_ROOT__REQ_EXPR || childFeature == CorePackage.Literals.UNIT__CAPABILITIES || childFeature == CorePackage.Literals.DEPLOY_CORE_ROOT__CAPABILITY_BUNDLE || childFeature == CorePackage.Literals.DEPLOY_CORE_ROOT__CAPABILITY_COMMUNICATION || childFeature == CorePackage.Literals.DEPLOY_CORE_ROOT__SERVICE || childFeature == CorePackage.Literals.UNIT__REQUIREMENTS || childFeature == CorePackage.Literals.DEPLOY_CORE_ROOT__REFERENCE || childFeature == CorePackage.Literals.UNIT__UNIT_LINKS || childFeature == CorePackage.Literals.DEPLOY_CORE_ROOT__LINK_HOSTING || childFeature == CorePackage.Literals.DEPLOY_CORE_ROOT__LINK_MEMBER; if (qualify) { return getString ("_UI_CreateChild_text2", //$NON-NLS-1$ new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) }); } return super.getCreateChildText(owner, feature, child, selection); } /** * Return the resource locator for this item provider's resources. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @generated */ public ResourceLocator getResourceLocator() { return IhsEditPlugin.INSTANCE; } }
[ "kalapriya.kannan@in.ibm.com" ]
kalapriya.kannan@in.ibm.com
bc0bdedf213aba51aa982942592c258ddf691ace
00cb65b1c597ac9dcfb5777d9c2a53df4afb6fe0
/src/main/java/org/folio/cataloging/dao/persistence/LocationKey.java
6618eaf07be52edfadc76f250fd1e9f61c022a59
[ "Apache-2.0" ]
permissive
cchiama/mod-cataloging
35bb6d7a74cff436ce3482038eaad56bd3a2386c
03033567e708400fd9596cd79493bca503e1cca2
refs/heads/master
2020-03-28T17:00:51.976674
2018-09-20T13:24:17
2018-09-20T13:24:17
148,750,798
0
0
null
2018-09-14T07:17:23
2018-09-14T07:17:23
null
UTF-8
Java
false
false
1,811
java
/* * (c) LibriCore * * Created on 15-jul-2004 * * LocationKey.java */ package org.folio.cataloging.dao.persistence; import java.io.Serializable; /** * @author elena * @version $Revision: 1.7 $, $Date: 2005/12/21 13:33:33 $ * @since 1.0 */ public class LocationKey implements Serializable { private int organisationNumber; private short locationNumber; private String language; /** * Class constructor * @since 1.0 */ public LocationKey() { super(); } /** * Class constructor * @since 1.0 */ public LocationKey(int orgNbr, short locNbr) { this.setOrganisationNumber(orgNbr); this.setLocationNumber(locNbr); } /** * override equals and hashcode for hibernate key comparison */ public boolean equals(Object anObject) { if (anObject instanceof LocationKey) { LocationKey aKey = (LocationKey) anObject; return ( organisationNumber == aKey.getOrganisationNumber() && locationNumber == aKey.getLocationNumber() && language.equals(aKey.language)); } else { return false; } } public int hashCode() { return organisationNumber + locationNumber + getLanguage().hashCode(); } public int getOrganisationNumber() { return organisationNumber; } public void setOrganisationNumber(int i) { organisationNumber = i; } public short getLocationNumber() { return locationNumber; } public void setLocationNumber(short s) { locationNumber = s; } /** * * * @return * @exception * @see * @since 1.0 */ public String getLanguage() { return language; } /** * * * @param string * @exception * @see * @since 1.0 */ public void setLanguage(String string) { language = string; } }
[ "a.gazzarini@gmail.com" ]
a.gazzarini@gmail.com
d7c9678ba7c90e7db05a7593acac452da5eae0bb
78804247f93fb51336e92af40342cd5898a9ac23
/src/cornflakes/compiler/HeadCompiler.java
57aacf09834751023b55716852efa53a9e82cad3
[ "MIT" ]
permissive
LucasBaizer/Cornflakes
e2f3b2101cad7771f3cc19217e5c94856d140369
e66f5ec6f5ed4d7f9d1144d661b0978ecadcbf9d
refs/heads/master
2023-02-04T23:14:43.263270
2020-12-23T03:58:33
2020-12-23T03:58:33
113,383,107
1
1
null
2018-01-14T17:42:08
2017-12-07T00:36:27
Java
UTF-8
Java
false
false
5,196
java
package cornflakes.compiler; import java.util.ArrayList; import java.util.List; import org.objectweb.asm.ClassWriter; public class HeadCompiler extends Compiler implements PostCompiler { private Line[] after; private ClassWriter cw; private ClassData data; @Override public void compile(ClassData data, ClassWriter cw, Line body, Line[] lines) { this.cw = cw; this.data = data; String className = ""; String simple = ""; String parent = "java/lang/Object"; String packageName = ""; Line firstLine = Strings.normalizeSpaces(lines[0]); int index = 1; if (firstLine.startsWith("package ")) { className = firstLine.substring(firstLine.indexOf(" ") + 1).getLine(); Strings.handleLetterString(className, Strings.PERIOD); className = Strings.transformClassName(className) + "/"; packageName = className.substring(0, className.length() - 1); firstLine = Strings.normalizeSpaces(lines[1]); index = 2; } List<String> interfaces = new ArrayList<>(); String type = ""; int accessor = ACC_SUPER; if (firstLine.contains("class ")) { type = "class"; } else if (firstLine.contains("struct ")) { type = "struct"; } else { throw new CompileError("Expecting class definition"); } String before = firstLine.substring(0, firstLine.indexOf(type)).trim().getLine(); if (!before.isEmpty()) { List<String> usedKeywords = new ArrayList<>(); String[] split = before.split(" "); for (String key : split) { key = key.trim(); if (usedKeywords.contains(key)) { throw new CompileError("Duplicate keyword: " + key); } if (key.equals("abstract")) { accessor |= ACC_ABSTRACT; } else if (key.equals("public")) { if (usedKeywords.contains("private") || usedKeywords.contains("protected")) { throw new CompileError("Cannot have multiple access modifiers"); } accessor |= ACC_PUBLIC; } else if (key.equals("protected")) { if (usedKeywords.contains("private") || usedKeywords.contains("public")) { throw new CompileError("Cannot have multiple access modifiers"); } accessor |= ACC_PROTECTED; } else if (key.equals("sealed")) { accessor |= ACC_FINAL; } else if (key.equals("serial")) { interfaces.add("java/io/Serializable"); } else { throw new CompileError("Unexpected keyword: " + key); } usedKeywords.add(key); } String after = firstLine.substring(firstLine.indexOf(type)).trim().getLine(); String[] keywordSplit = after.split(" "); className += simple = keywordSplit[1]; Strings.handleLetterString(keywordSplit[1]); String[] interfaceArray = null; if (keywordSplit.length > 2) { if (keywordSplit[2].equals("extends")) { if (keywordSplit.length < 4) { throw new CompileError("Expecting identifier after keyword 'extends'"); } parent = Strings.transformClassName(keywordSplit[3]); Strings.handleLetterString(parent, Strings.SLASH); if (keywordSplit.length > 4) { if (keywordSplit[4].equals("implements")) { if (keywordSplit.length < 6) { throw new CompileError("Expecting identifier after keyword 'implements'"); } interfaceArray = Strings.after(keywordSplit, 5); } else { throw new CompileError("Expecting 'implements' token"); } } } else if (keywordSplit[2].equals("implements")) { if (keywordSplit.length < 4) { throw new CompileError("Expecting identifier after keyword 'implements'"); } interfaceArray = Strings.after(keywordSplit, 3); } else { throw new CompileError("Unexpected token: " + keywordSplit[3]); } } if (interfaceArray != null) { for (String str : interfaceArray) { if (str.endsWith(",")) { str = str.substring(0, str.length() - 1); } str = str.trim(); String resolved = Strings.transformClassName(str); try { ClassData intData = ClassData.forName(resolved); if (!intData.isInterface()) { throw new CompileError("Cannot implement a non-interface type"); } } catch (ClassNotFoundException e) { throw new CompileError(e); } if (resolved.equals("java/io/Serializable")) { throw new CompileError( "If you wish to have a serializable class, use the 'serial' keyword instead of implementing the java.io.Serializable interface"); } interfaces.add(resolved); } } } String[] intArr = interfaces.toArray(new String[interfaces.size()]); data.setClassName(className); data.setClassWriter(cw); data.setSimpleClassName(simple); data.setParentName(parent); data.setModifiers(accessor); data.setPackageName(packageName); data.setInterfaces(intArr); Compiler.register(cw, data); ClassData.registerCornflakesClass(data); cw.visit(V1_8, accessor, className, null, parent, intArr.length == 0 ? null : intArr); cw.visitSource(data.getSourceName(), null); after = Strings.after(lines, index); Compiler.addPostCompiler(className, this); } @Override public void write() { BodyCompiler compiler = new BodyCompiler(data, cw, Strings.accumulate(after), after); Compiler.addPostCompiler(data.getClassName(), compiler); } }
[ "titaniumsapphire32@gmail.com" ]
titaniumsapphire32@gmail.com
208b24a66db8a6527b6d4671e62e018c2ad1aaae
62867c0debba4090f6debdf9e8649293fdcf2886
/车辆管理系统(struts+hibernate+spring+oracle)/ITSMPM/src/com/service/impl/UserImpl.java
df3ae7d97518285bc2759e85b9c843f770057ac2
[]
no_license
luomo135/26-
ac1a56a2d2c78a10bf22e31a7bc6d291dd7a8bcc
349538f5cdebae979910c11150962a72cc2f799c
refs/heads/master
2022-01-26T08:25:48.015257
2018-08-01T02:55:06
2018-08-01T02:55:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
497
java
package com.service.impl; import com.dao.XxuserDAO; import com.java.Xxuser; import com.service.intface.Test; public class UserImpl extends TestImpl{ private XxuserDAO xxuserDAO; @Override public void saveObject(Object ob) { // TODO Auto-generated method stub System.out.println("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"); xxuserDAO.save((Xxuser)ob); } public XxuserDAO getXxuserDAO() { return xxuserDAO; } public void setXxuserDAO(XxuserDAO xxuserDAO) { this.xxuserDAO = xxuserDAO; } }
[ "huangwutongdd@163.com" ]
huangwutongdd@163.com
c211234615c7aecd24413662959b6bfd29419a0e
56d01ef3c52dd0610c5e2323cb35018549044cd0
/SeleniumFeatures/src/test/java/checkbox/CheckboxTest.java
c3162d3decd02c8b62008fd0b7bf65c228cd4917
[]
no_license
htankhai/SeleniumAppiumWorkspace
8bb1c60c19e475476ee34686b0121dc771275ec8
921fa45d0244fe9e7041f534c33fc1af3a5959fd
refs/heads/master
2021-01-02T22:17:33.006839
2015-08-14T21:55:41
2015-08-14T21:55:41
40,279,010
0
0
null
null
null
null
UTF-8
Java
false
false
2,175
java
package checkbox; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; import org.testng.annotations.Test; public class CheckboxTest { private WebDriver driver; private String basePageURL; @Test public void testCaseToCheck() { driver = new FirefoxDriver(); driver.get(basePageURL); WebElement checkBoxElement=driver.findElement(By.id("persist_box")); //Wait for the checkbox element to be visible new WebDriverWait(driver, 10).until(ExpectedConditions.visibilityOf(checkBoxElement)); try { if (checkBoxElement.isSelected()) { System.out.println("Checkbox: " + checkBoxElement+ "is already selected"); } else { // Select the checkbox checkBoxElement.click(); } } catch (Exception e) { System.out.println("Unable to select the checkbox: " + checkBoxElement); } } @Test public void testCaseToUnCheck() { driver.navigate().to(basePageURL); WebElement checkBoxElement=driver.findElement(By.id("persist_box")); new WebDriverWait(driver, 10).until(ExpectedConditions.visibilityOf(checkBoxElement)); try { if (checkBoxElement.isSelected()) { //De-select the checkbox checkBoxElement.click(); } else { System.out.println("Checkbox: " + checkBoxElement+ "is already selected"); } } catch (Exception e) { System.out.println("Unable to select the checkbox: " + checkBoxElement); } } @Test public void testCaseToCheckDesired(){ driver.navigate().to("someother page"); WebElement element = driver.findElement(By.cssSelector(".display")); Select_The_CheckBox_from_List(element, "soccer"); } public void Select_The_CheckBox_from_List(WebElement element, String valueToSelect) { List<WebElement> allOptions = element.findElements(By.tagName("input")); for (WebElement option : allOptions) { System.out.println("Option value "+option.getText()); if (valueToSelect.equals(option.getText())) { option.click(); break; } } } }
[ "htan.khai@yahoo.com" ]
htan.khai@yahoo.com
59145d5ddecd177b423aac8833e78bf9e24b255a
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
/viapi-regen-20211119/src/main/java/com/aliyun/viapi_regen20211119/models/DisableDataReflowRequest.java
9f178eb7f922e97d7a8cd4868051191eaebd8eb0
[ "Apache-2.0" ]
permissive
aliyun/alibabacloud-java-sdk
83a6036a33c7278bca6f1bafccb0180940d58b0b
008923f156adf2e4f4785a0419f60640273854ec
refs/heads/master
2023-09-01T04:10:33.640756
2023-09-01T02:40:45
2023-09-01T02:40:45
288,968,318
40
45
null
2023-06-13T02:47:13
2020-08-20T09:51:08
Java
UTF-8
Java
false
false
664
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.viapi_regen20211119.models; import com.aliyun.tea.*; public class DisableDataReflowRequest extends TeaModel { @NameInMap("ServiceId") public Long serviceId; public static DisableDataReflowRequest build(java.util.Map<String, ?> map) throws Exception { DisableDataReflowRequest self = new DisableDataReflowRequest(); return TeaModel.build(map, self); } public DisableDataReflowRequest setServiceId(Long serviceId) { this.serviceId = serviceId; return this; } public Long getServiceId() { return this.serviceId; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
f7b97a36793226b830a2f49e0904a19481d662a8
3971cede02d6675fd6010b45017f91b422ee2fbd
/chapter_009/src/main/java/ru/yalymar/filter/controller/AddController.java
1453fc7e37f91c2588a7b3f3de1aad141785ec8c
[]
no_license
SlavaLymar/job4j.ru
cdb6b323e9a8f4fe8147eef56f00c98c95295e92
365947c6388bb7a87c91b17bea058e4730b5f75d
refs/heads/master
2021-01-11T09:31:38.556410
2017-12-18T08:58:25
2017-12-18T08:58:25
77,396,278
0
0
null
null
null
null
UTF-8
Java
false
false
1,716
java
package ru.yalymar.filter.controller; import ru.yalymar.filter.model.User; import ru.yalymar.filter.model.UserManager; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.Calendar; /** * @author slavalymar * @since 15.05.2017 * @version 1 */ public class AddController extends HttpServlet{ /** * instance of userManager for CRUD operations */ private final UserManager userManager = new UserManager(); public UserManager getUserManager() { return this.userManager; } /** get add form * @param req * @param resp * @throws ServletException * @throws IOException */ @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { req.getRequestDispatcher("/WEB-INF/views/filter/mvcadd.jsp").forward(req, resp); } /** update user * @param req * @param resp * @throws ServletException * @throws IOException */ @Override public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { User user = new User(req.getParameter("login"), req.getParameter("password"), req.getParameter("email"), Calendar.getInstance(), "user", req.getParameter("country"), req.getParameter("city")); this.userManager.add(user); req.setAttribute("users", this.userManager.getAll()); req.getRequestDispatcher("/WEB-INF/views/filter/mvcusers.jsp").forward(req, resp); } }
[ "slavalymar@gmail.com" ]
slavalymar@gmail.com
94212cf1a077783424b15a99e29777f391f5613c
f17279cfa0faff7d3f70e33750c96b6a8120f6cd
/mobile-web/src/main/java/com/party/mobile/web/utils/AlipayConstant.java
a037cc52578a3193b0159143141093d73fc38907
[]
no_license
cenbow/party
2e6a40bc81ae461b7d18f5013f95f2ccae1762e3
c26f1cd0e819bcb3dcdcccfbdc56303d9a916787
refs/heads/master
2021-06-20T13:18:11.527548
2017-08-01T11:36:58
2017-08-01T11:36:59
116,683,505
0
1
null
2018-01-08T13:58:42
2018-01-08T13:58:41
null
UTF-8
Java
false
false
555
java
package com.party.mobile.web.utils; /** * 支付报常量类 * party * Created by wei.li * on 2016/9/24 0024. */ public class AlipayConstant { //销售产品码 public static final String PRODUCT_CODE = "QUICK_WAP_PAY"; //接口名称 public static final String METHOD = "alipay.trade.wap.pay"; //编码格式 public static final String CHARSET = "utf-8"; //商户生成签名字符 public static final String SIGN_TYPE = "RSA"; //调用的接口版本 public static final String VERSION = "1.0"; }
[ "易凤" ]
易凤
f471b7d586b28b97a4aaa1bb4d8cf86506a04441
c18855f5a1eac0f5a35803d27ff310c48e8db075
/src/main/java/se/swedenconnect/opensaml/xmlsec/algorithm/descriptors/curves/NamedCurve_secp256r1.java
217a44daad78e86028f4ab4a9f432f31b827dbf5
[ "Apache-2.0" ]
permissive
zhiqinghuang/opensaml-security-ext
b66eb8b74850d05c16e742cdce868f097220e1e1
6a00d71b4a81e7736d042d53cb15138a1e968dd9
refs/heads/master
2020-09-10T02:29:28.931209
2019-10-28T13:14:15
2019-10-28T13:14:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,177
java
/* * Copyright 2019 Sweden Connect * * 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 se.swedenconnect.opensaml.xmlsec.algorithm.descriptors.curves; /** * Definition of named curve secp256r1. * * @author Martin Lindström (martin@idsec.se) * @author Stefan Santesson (stefan@idsec.se) */ public class NamedCurve_secp256r1 extends AbstractNamedCurve { /** {@inheritDoc} */ @Override public String getObjectIdentifier() { return "1.2.840.10045.3.1.7"; } /** {@inheritDoc} */ @Override public String getName() { return "secp256r1"; } /** {@inheritDoc} */ @Override public Integer getKeyLength() { return 256; } }
[ "martin.lindstrom@litsec.se" ]
martin.lindstrom@litsec.se
09648614b282e8da43e63d0f10e5f4589bc002fd
0907c886f81331111e4e116ff0c274f47be71805
/sources/com/appsgeyser/sdk/hasher/Hasher.java
67a951631b12d82b7637249a9b188a7c05cb5f9f
[ "MIT" ]
permissive
Minionguyjpro/Ghostly-Skills
18756dcdf351032c9af31ec08fdbd02db8f3f991
d1a1fb2498aec461da09deb3ef8d98083542baaf
refs/heads/Android-OS
2022-07-27T19:58:16.442419
2022-04-15T07:49:53
2022-04-15T07:49:53
415,272,874
2
0
MIT
2021-12-21T10:23:50
2021-10-09T10:12:36
Java
UTF-8
Java
false
false
838
java
package com.appsgeyser.sdk.hasher; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class Hasher { public static String md5(String str) { try { MessageDigest instance = MessageDigest.getInstance("MD5"); instance.update(str.getBytes()); byte[] digest = instance.digest(); StringBuilder sb = new StringBuilder(); for (byte b : digest) { String hexString = Integer.toHexString(b & 255); while (hexString.length() < 2) { hexString = "0" + hexString; } sb.append(hexString); } return sb.toString(); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); return ""; } } }
[ "66115754+Minionguyjpro@users.noreply.github.com" ]
66115754+Minionguyjpro@users.noreply.github.com
b2f43d74a4397f8f56cc30caf0d5be3c4ba3a7f0
95c49f466673952b465e19a5ee3ae6eff76bee00
/src/main/java/com/zhihu/android/app/sku/bottombar/p1268ui/widget/p1274b/p1275a/IPurchaseWidget.java
cbdcba5af72c0025c64ffbe52857f5f87ccc3f38
[]
no_license
Phantoms007/zhihuAPK
58889c399ae56b16a9160a5f48b807e02c87797e
dcdbd103436a187f9c8b4be8f71bdf7813b6d201
refs/heads/main
2023-01-24T01:34:18.716323
2020-11-25T17:14:55
2020-11-25T17:14:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
541
java
package com.zhihu.android.app.sku.bottombar.p1268ui.widget.p1274b.p1275a; import kotlin.Metadata; @Metadata /* renamed from: com.zhihu.android.app.sku.bottombar.ui.widget.b.a.b */ /* compiled from: IPurchaseWidget.kt */ public interface IPurchaseWidget { @Metadata /* renamed from: com.zhihu.android.app.sku.bottombar.ui.widget.b.a.b$a */ /* compiled from: IPurchaseWidget.kt */ public static final class C14662a { /* renamed from: a */ public static void m73920a(IPurchaseWidget bVar) { } } }
[ "seasonpplp@qq.com" ]
seasonpplp@qq.com
2f93c7d98e3dec33fa240f849f16b4e08cdb3b88
bdbc3a79bc73ba77a7d83629fe7ba94cfebf7efe
/edot-server/src/main/java/com/asiainfo/aigov/web/webservice/edot/mpsService/bean/ED1014/rsp/Response.java
532b7551931eb47b3592a0483d7ea7182f618308
[]
no_license
876860131robert/edot
3d8b856493866ad91b5237d6cc4630c889570802
45a0bde8cdba875281c3c81b63ac53008e6fc35a
refs/heads/master
2021-01-19T16:47:15.090957
2017-08-22T06:57:13
2017-08-22T06:57:13
101,027,248
1
0
null
null
null
null
UTF-8
Java
false
false
5,696
java
/* * This class was automatically generated with * <a href="http://castor.exolab.org">Castor 0.9.4</a>, using an * XML Schema. * $Id$ */ package com.asiainfo.aigov.web.webservice.edot.mpsService.bean.ED1014.rsp; //---------------------------------/ //- Imported classes and packages -/ //---------------------------------/ import java.io.IOException; import java.io.Reader; import java.io.Serializable; import java.io.Writer; import org.exolab.castor.xml.*; import org.exolab.castor.xml.MarshalException; import org.exolab.castor.xml.ValidationException; import org.xml.sax.ContentHandler; /** * * * @version $Revision$ $Date$ **/ public class Response implements java.io.Serializable { //--------------------------/ //- Class/Member Variables -/ //--------------------------/ private java.lang.String _result_Code; private java.lang.String _error_Msg; private java.lang.String _serviceName; private java.lang.String _patient_Id; private Result_Data _result_Data; //----------------/ //- Constructors -/ //----------------/ public Response() { super(); } //-- com.asiainfo.aigov.web.webservice.edot.mpsService.bean.ED1014.rsp.Response() //-----------/ //- Methods -/ //-----------/ /** * Returns the value of field 'error_Msg'. * * @return the value of field 'error_Msg'. **/ public java.lang.String getError_Msg() { return this._error_Msg; } //-- java.lang.String getError_Msg() /** * Returns the value of field 'patient_Id'. * * @return the value of field 'patient_Id'. **/ public java.lang.String getPatient_Id() { return this._patient_Id; } //-- java.lang.String getPatient_Id() /** * Returns the value of field 'result_Code'. * * @return the value of field 'result_Code'. **/ public java.lang.String getResult_Code() { return this._result_Code; } //-- java.lang.String getResult_Code() /** * Returns the value of field 'result_Data'. * * @return the value of field 'result_Data'. **/ public Result_Data getResult_Data() { return this._result_Data; } //-- Result_Data getResult_Data() /** * Returns the value of field 'serviceName'. * * @return the value of field 'serviceName'. **/ public java.lang.String getServiceName() { return this._serviceName; } //-- java.lang.String getServiceName() /** **/ public boolean isValid() { try { validate(); } catch (org.exolab.castor.xml.ValidationException vex) { return false; } return true; } //-- boolean isValid() /** * * * @param out **/ public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, out); } //-- void marshal(java.io.Writer) /** * * * @param handler **/ public void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, handler); } //-- void marshal(org.xml.sax.ContentHandler) /** * Sets the value of field 'error_Msg'. * * @param error_Msg the value of field 'error_Msg'. **/ public void setError_Msg(java.lang.String error_Msg) { this._error_Msg = error_Msg; } //-- void setError_Msg(java.lang.String) /** * Sets the value of field 'patient_Id'. * * @param patient_Id the value of field 'patient_Id'. **/ public void setPatient_Id(java.lang.String patient_Id) { this._patient_Id = patient_Id; } //-- void setPatient_Id(java.lang.String) /** * Sets the value of field 'result_Code'. * * @param result_Code the value of field 'result_Code'. **/ public void setResult_Code(java.lang.String result_Code) { this._result_Code = result_Code; } //-- void setResult_Code(java.lang.String) /** * Sets the value of field 'result_Data'. * * @param result_Data the value of field 'result_Data'. **/ public void setResult_Data(Result_Data result_Data) { this._result_Data = result_Data; } //-- void setResult_Data(Result_Data) /** * Sets the value of field 'serviceName'. * * @param serviceName the value of field 'serviceName'. **/ public void setServiceName(java.lang.String serviceName) { this._serviceName = serviceName; } //-- void setServiceName(java.lang.String) /** * * * @param reader **/ public static com.asiainfo.aigov.web.webservice.edot.mpsService.bean.ED1014.rsp.Response unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (com.asiainfo.aigov.web.webservice.edot.mpsService.bean.ED1014.rsp.Response) Unmarshaller.unmarshal(com.asiainfo.aigov.web.webservice.edot.mpsService.bean.ED1014.rsp.Response.class, reader); } //-- com.asiainfo.aigov.web.webservice.edot.mpsService.bean.ED1014.rsp.Response unmarshal(java.io.Reader) /** **/ public void validate() throws org.exolab.castor.xml.ValidationException { org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); validator.validate(this); } //-- void validate() }
[ "876860131@qq.com" ]
876860131@qq.com
0fb85a1d1485f5ccdd933427cfcafe47501e2db5
ebdcaff90c72bf9bb7871574b25602ec22e45c35
/modules/adwords_axis/src/main/java/com/google/api/ads/adwords/axis/v201809/cm/CampaignTrialType.java
70fd80dbe09a860c733a47dca9040c3644eedaef
[ "Apache-2.0" ]
permissive
ColleenKeegan/googleads-java-lib
3c25ea93740b3abceb52bb0534aff66388d8abd1
3d38daadf66e5d9c3db220559f099fd5c5b19e70
refs/heads/master
2023-04-06T16:16:51.690975
2018-11-15T20:50:26
2018-11-15T20:50:26
158,986,306
1
0
Apache-2.0
2023-04-04T01:42:56
2018-11-25T00:56:39
Java
UTF-8
Java
false
false
3,626
java
// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /** * CampaignTrialType.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.adwords.axis.v201809.cm; public class CampaignTrialType implements java.io.Serializable { private java.lang.String _value_; private static java.util.HashMap _table_ = new java.util.HashMap(); // Constructor protected CampaignTrialType(java.lang.String value) { _value_ = value; _table_.put(_value_,this); } public static final java.lang.String _UNKNOWN = "UNKNOWN"; public static final java.lang.String _BASE = "BASE"; public static final java.lang.String _DRAFT = "DRAFT"; public static final java.lang.String _TRIAL = "TRIAL"; public static final CampaignTrialType UNKNOWN = new CampaignTrialType(_UNKNOWN); public static final CampaignTrialType BASE = new CampaignTrialType(_BASE); public static final CampaignTrialType DRAFT = new CampaignTrialType(_DRAFT); public static final CampaignTrialType TRIAL = new CampaignTrialType(_TRIAL); public java.lang.String getValue() { return _value_;} public static CampaignTrialType fromValue(java.lang.String value) throws java.lang.IllegalArgumentException { CampaignTrialType enumeration = (CampaignTrialType) _table_.get(value); if (enumeration==null) throw new java.lang.IllegalArgumentException(); return enumeration; } public static CampaignTrialType fromString(java.lang.String value) throws java.lang.IllegalArgumentException { return fromValue(value); } public boolean equals(java.lang.Object obj) {return (obj == this);} public int hashCode() { return toString().hashCode();} public java.lang.String toString() { return _value_;} public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);} public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.EnumSerializer( _javaType, _xmlType); } public static org.apache.axis.encoding.Deserializer getDeserializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.EnumDeserializer( _javaType, _xmlType); } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(CampaignTrialType.class); static { typeDesc.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201809", "CampaignTrialType")); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } }
[ "jradcliff@users.noreply.github.com" ]
jradcliff@users.noreply.github.com
55f58b12d7103264b603b30c70598b35d7154c0b
4cf21506ff431ea6798ce47025d252cf7fab0a58
/src/GeekUniversity/Java/Lesson3HW/ReverseString.java
a2c320bf35d4a27d42a6df8f3d14261b8b8b84e3
[]
no_license
Keos99/AlgorithmsAndDataStructures
bc9ccd0f85fe95e8813886e8cc41673ac72087bf
5fec84b78191845746dbe2433b7b2890965c9889
refs/heads/master
2020-03-27T09:20:20.253054
2018-09-21T12:01:11
2018-09-21T12:01:11
146,331,092
0
0
null
null
null
null
UTF-8
Java
false
false
532
java
package GeekUniversity.Java.Lesson3HW; import java.util.Stack; public class ReverseString { Stack <Character> stack; String linetoinvert; StringBuilder stringBuilder; public void invertString (String line){ linetoinvert = line; for (int i = 0; i < linetoinvert.length(); i++) { stack.push(linetoinvert.charAt(i)); } for (int i = 0; i < stack.capacity(); i++) { stringBuilder.append(stack.pop()); } System.out.println(stringBuilder); } }
[ "keos99@bk.ru" ]
keos99@bk.ru
68a8466086a056fa5e6341771c3df936233ccfca
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
/sas-20181203/src/main/java/com/aliyun/sas20181203/models/CreateSuspEventNoteResponse.java
65c0ad0d310bcddeb5aa1acef493349f3375175b
[ "Apache-2.0" ]
permissive
aliyun/alibabacloud-java-sdk
83a6036a33c7278bca6f1bafccb0180940d58b0b
008923f156adf2e4f4785a0419f60640273854ec
refs/heads/master
2023-09-01T04:10:33.640756
2023-09-01T02:40:45
2023-09-01T02:40:45
288,968,318
40
45
null
2023-06-13T02:47:13
2020-08-20T09:51:08
Java
UTF-8
Java
false
false
1,407
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sas20181203.models; import com.aliyun.tea.*; public class CreateSuspEventNoteResponse extends TeaModel { @NameInMap("headers") @Validation(required = true) public java.util.Map<String, String> headers; @NameInMap("statusCode") @Validation(required = true) public Integer statusCode; @NameInMap("body") @Validation(required = true) public CreateSuspEventNoteResponseBody body; public static CreateSuspEventNoteResponse build(java.util.Map<String, ?> map) throws Exception { CreateSuspEventNoteResponse self = new CreateSuspEventNoteResponse(); return TeaModel.build(map, self); } public CreateSuspEventNoteResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public CreateSuspEventNoteResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public CreateSuspEventNoteResponse setBody(CreateSuspEventNoteResponseBody body) { this.body = body; return this; } public CreateSuspEventNoteResponseBody getBody() { return this.body; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
b935cc96c95246c6b89e1074058ac4be14892aac
869e4cc22e942acf91008e741f01568e20a9efd1
/src/ni/org/ics/zip/appmovil/helpers/ZpPreScreeningHelper.java
8cbfed9716f4d18b6926d8e96ff3bc6babeaaec1
[]
no_license
wmonterrey/zika-zip-app
7df056c038bdf2d7d71911307829da7b5bba65b4
38f9c466cf8e502a529a796adddeb7631d0503b9
refs/heads/master
2021-05-04T03:21:12.087675
2018-11-22T16:31:10
2018-11-22T16:31:10
71,379,359
0
0
null
null
null
null
UTF-8
Java
false
false
3,553
java
package ni.org.ics.zip.appmovil.helpers; import java.util.Date; import ni.org.ics.zip.appmovil.domain.ZpPreScreening; import ni.org.ics.zip.appmovil.utils.MainDBConstants; import android.content.ContentValues; import android.database.Cursor; public class ZpPreScreeningHelper { public static ContentValues crearZpPreScreeningValues(ZpPreScreening datos){ ContentValues cv = new ContentValues(); cv.put(MainDBConstants.recId, datos.getRecId()); cv.put(MainDBConstants.cs, String.valueOf(datos.getCs())); cv.put(MainDBConstants.compId, String.valueOf(datos.getCompId())); cv.put(MainDBConstants.consecutive, String.valueOf(datos.getConsecutive())); cv.put(MainDBConstants.verbalConsent, String.valueOf(datos.getVerbalConsent())); if (datos.getRecordDate() != null) cv.put(MainDBConstants.recordDate, datos.getRecordDate().getTime()); cv.put(MainDBConstants.recordUser, datos.getRecordUser()); cv.put(MainDBConstants.pasive, String.valueOf(datos.getPasive())); cv.put(MainDBConstants.ID_INSTANCIA, datos.getIdInstancia()); cv.put(MainDBConstants.FILE_PATH, datos.getInstancePath()); cv.put(MainDBConstants.STATUS, datos.getEstado()); cv.put(MainDBConstants.START, datos.getStart()); cv.put(MainDBConstants.END, datos.getEnd()); cv.put(MainDBConstants.DEVICE_ID, datos.getDeviceid()); cv.put(MainDBConstants.SIM_SERIAL, datos.getSimserial()); cv.put(MainDBConstants.PHONE_NUMBER, datos.getPhonenumber()); if (datos.getToday() != null) cv.put(MainDBConstants.TODAY, datos.getToday().getTime()); return cv; } public static ZpPreScreening crearZpPreScreening(Cursor cursorDatos){ ZpPreScreening mDatos = new ZpPreScreening(); mDatos.setRecId(cursorDatos.getString(cursorDatos.getColumnIndex(MainDBConstants.recId))); mDatos.setCs(cursorDatos.getString(cursorDatos.getColumnIndex(MainDBConstants.cs))); mDatos.setCompId(cursorDatos.getString(cursorDatos.getColumnIndex(MainDBConstants.compId))); mDatos.setConsecutive(cursorDatos.getInt(cursorDatos.getColumnIndex(MainDBConstants.consecutive))); mDatos.setVerbalConsent(cursorDatos.getString(cursorDatos.getColumnIndex(MainDBConstants.verbalConsent))); if(cursorDatos.getLong(cursorDatos.getColumnIndex(MainDBConstants.recordDate))>0) mDatos.setRecordDate(new Date(cursorDatos.getLong(cursorDatos.getColumnIndex(MainDBConstants.recordDate)))); mDatos.setRecordUser(cursorDatos.getString(cursorDatos.getColumnIndex(MainDBConstants.recordUser))); mDatos.setPasive(cursorDatos.getString(cursorDatos.getColumnIndex(MainDBConstants.pasive)).charAt(0)); mDatos.setIdInstancia(cursorDatos.getInt(cursorDatos.getColumnIndex(MainDBConstants.ID_INSTANCIA))); mDatos.setInstancePath(cursorDatos.getString(cursorDatos.getColumnIndex(MainDBConstants.FILE_PATH))); mDatos.setEstado(cursorDatos.getString(cursorDatos.getColumnIndex(MainDBConstants.STATUS))); mDatos.setStart(cursorDatos.getString(cursorDatos.getColumnIndex(MainDBConstants.START))); mDatos.setEnd(cursorDatos.getString(cursorDatos.getColumnIndex(MainDBConstants.END))); mDatos.setSimserial(cursorDatos.getString(cursorDatos.getColumnIndex(MainDBConstants.SIM_SERIAL))); mDatos.setPhonenumber(cursorDatos.getString(cursorDatos.getColumnIndex(MainDBConstants.PHONE_NUMBER))); mDatos.setDeviceid(cursorDatos.getString(cursorDatos.getColumnIndex(MainDBConstants.DEVICE_ID))); if(cursorDatos.getLong(cursorDatos.getColumnIndex(MainDBConstants.TODAY))>0) mDatos.setToday(new Date(cursorDatos.getLong(cursorDatos.getColumnIndex(MainDBConstants.TODAY)))); return mDatos; } }
[ "waviles@icsnicaragua.org" ]
waviles@icsnicaragua.org
64f4007946ce1f0c78445cca0c26a9af2d0ede7c
fea683c0ec66ff872b001f39fba4bd0f5a772176
/jpuppeteer-cdp/src/main/java/jpuppeteer/cdp/cdp/entity/security/CertificateErrorEvent.java
d514a54a90b74f0933be212b60e7b1c4fe13792a
[]
no_license
affjerry/jpuppeteer
c343f64636eabdf5c3da52b6c0d660054d837894
5dbd900862035b4403b975f91f1b18938b19f08b
refs/heads/master
2023-08-15T23:45:39.292666
2020-05-27T01:48:41
2020-05-27T01:48:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
706
java
package jpuppeteer.cdp.cdp.entity.security; /** * There is a certificate error. If overriding certificate errors is enabled, then it should be handled with the `handleCertificateError` command. Note: this event does not fire if the certificate error has been allowed internally. Only one client per target should override certificate errors at the same time. */ @lombok.Setter @lombok.Getter @lombok.ToString public class CertificateErrorEvent { /** * The ID of the event. */ private Integer eventId; /** * The type of the error. */ private String errorType; /** * The url that was requested. */ private String requestURL; }
[ "jarvis.xu@vipshop.com" ]
jarvis.xu@vipshop.com
6fa1f9917bf570bfe5cd02e617a8c509ba1bbc4e
319a371ab83c04a9a2466b0ec1e2a67b93fa7f2f
/zx-erp/src/main/java/com/apih5/mybatis/pojo/ZxSfHazardmainDetailJu.java
e851075e7468262f6f061218e1a14d0af07576bc
[]
no_license
zhangrenyi666/apih5-2
0232faa65e2968551d55db47fb35f689e5a03996
afd9b7d574fab11410aab5e0465a0bd706bcf942
refs/heads/master
2023-08-01T13:11:51.678508
2021-09-10T05:52:34
2021-09-10T05:52:34
406,647,352
0
0
null
null
null
null
UTF-8
Java
false
false
4,527
java
package com.apih5.mybatis.pojo; import java.math.BigDecimal; import java.util.Date; import java.util.List; import cn.hutool.json.JSONObject; import cn.hutool.json.JSONArray; import com.apih5.framework.entity.BasePojo; import com.google.common.collect.Lists; import com.google.common.collect.Maps; public class ZxSfHazardmainDetailJu extends BasePojo { // 主键 private String zxSfHazardmainDetailJuId; // 主表id private String mainId; // 所属机构 private String orgId; // 所属机构名称 private String orgName; // 编制人 private String preparer; // 过程 private String proArea; // 行为(活动)或设备 private String doing; // 危险因素 private String riskFactors; // 可能导致的伤害(事故) private String accident; // 作业条件危险性评价(L) private String lee; // 作业条件危险性评价(e) private String bee; // 作业条件危险性评价(c) private String cee; // 作业条件危险性评价(d) private String dee; // 风险等级 private String riskLevel; // 备注 private String remarks; // 排序 private int sort=0; public String getZxSfHazardmainDetailJuId() { return zxSfHazardmainDetailJuId == null ? "" : zxSfHazardmainDetailJuId.trim(); } public void setZxSfHazardmainDetailJuId(String zxSfHazardmainDetailJuId) { this.zxSfHazardmainDetailJuId = zxSfHazardmainDetailJuId == null ? null : zxSfHazardmainDetailJuId.trim(); } public String getMainId() { return mainId == null ? "" : mainId.trim(); } public void setMainId(String mainId) { this.mainId = mainId == null ? null : mainId.trim(); } public String getOrgId() { return orgId == null ? "" : orgId.trim(); } public void setOrgId(String orgId) { this.orgId = orgId == null ? null : orgId.trim(); } public String getOrgName() { return orgName == null ? "" : orgName.trim(); } public void setOrgName(String orgName) { this.orgName = orgName == null ? null : orgName.trim(); } public String getPreparer() { return preparer == null ? "" : preparer.trim(); } public void setPreparer(String preparer) { this.preparer = preparer == null ? null : preparer.trim(); } public String getProArea() { return proArea == null ? "" : proArea.trim(); } public void setProArea(String proArea) { this.proArea = proArea == null ? null : proArea.trim(); } public String getDoing() { return doing == null ? "" : doing.trim(); } public void setDoing(String doing) { this.doing = doing == null ? null : doing.trim(); } public String getRiskFactors() { return riskFactors == null ? "" : riskFactors.trim(); } public void setRiskFactors(String riskFactors) { this.riskFactors = riskFactors == null ? null : riskFactors.trim(); } public String getAccident() { return accident == null ? "" : accident.trim(); } public void setAccident(String accident) { this.accident = accident == null ? null : accident.trim(); } public String getLee() { return lee == null ? "" : lee.trim(); } public void setLee(String lee) { this.lee = lee == null ? null : lee.trim(); } public String getBee() { return bee == null ? "" : bee.trim(); } public void setBee(String bee) { this.bee = bee == null ? null : bee.trim(); } public String getCee() { return cee == null ? "" : cee.trim(); } public void setCee(String cee) { this.cee = cee == null ? null : cee.trim(); } public String getDee() { return dee == null ? "" : dee.trim(); } public void setDee(String dee) { this.dee = dee == null ? null : dee.trim(); } public String getRiskLevel() { return riskLevel == null ? "" : riskLevel.trim(); } public void setRiskLevel(String riskLevel) { this.riskLevel = riskLevel == null ? null : riskLevel.trim(); } public String getRemarks() { return remarks == null ? "" : remarks.trim(); } public void setRemarks(String remarks) { this.remarks = remarks == null ? null : remarks.trim(); } public int getSort() { return sort; } public void setSort(int sort) { this.sort = sort; } }
[ "2267843676@qq.com" ]
2267843676@qq.com
2834df3120159d816882ab67db465559d516fb11
3714974b546f7fddeeea54d84b543c3b350a7583
/myProjects/MGTV/src/com/mstar/android/tvapi/common/vo/ThreeDimensionInfo$1.java
f61e39ed1c53f8bad48c7da3854eb948f9cbfbea
[]
no_license
lubing521/ideaProjects
57a8dadea5c0d8fc3e478c7829e6897dce242bde
5fd85e6dbe1ede8f094de65226de41321c1d0683
refs/heads/master
2022-01-18T23:10:05.057971
2018-10-26T12:27:00
2018-10-26T12:27:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
617
java
package com.mstar.android.tvapi.common.vo; import android.os.Parcel; import android.os.Parcelable.Creator; final class ThreeDimensionInfo$1 implements Parcelable.Creator<ThreeDimensionInfo> { public ThreeDimensionInfo createFromParcel(Parcel paramParcel) { throw new RuntimeException("stub"); } public ThreeDimensionInfo[] newArray(int paramInt) { throw new RuntimeException("stub"); } } /* Location: C:\Users\THX\Desktop\aa\aa\反编译工具包\out\classes_dex2jar.jar * Qualified Name: com.mstar.android.tvapi.common.vo.ThreeDimensionInfo.1 * JD-Core Version: 0.6.2 */
[ "hiram@finereport.com" ]
hiram@finereport.com
ba66ee0cd49206a9920c58907f6e0dc391cfdc5a
ec258bb9d40a12bea24cefc206e9f0768e19a518
/mhub/src/main/java/br/pucrio/inf/lac/mhub/models/locals/StartCommunicationTechnologyMessage.java
1a8b0dfbd78f30c5cae1477e07011c4bc7227214
[]
no_license
lukazalves/cddl
cf0794ecda028281cd5d8dbc39ed67393720a77f
671673ff584c2472a04d0e5822830e9df71a3b72
refs/heads/master
2023-06-15T02:45:16.483446
2021-07-06T22:39:37
2021-07-06T22:39:37
264,774,026
0
0
null
2020-11-19T20:15:09
2020-05-17T23:11:06
Java
UTF-8
Java
false
false
449
java
package br.pucrio.inf.lac.mhub.models.locals; /** * Created by bertodetacio on 06/06/17. */ public class StartCommunicationTechnologyMessage { private int technology; public StartCommunicationTechnologyMessage(int technology) { this.technology = technology; } public int getTechnology() { return technology; } public void setTechnology(int technology) { this.technology = technology; } }
[ "=" ]
=
921ccc8f97ec058f73e48e8d9239f5f2c057e3db
40953aa2b935b66705457ba5078a6012e883d39a
/WYD-WorldServer/src/com/wyd/empire/world/common/util/FundUtil.java
93818bb9258f314e789ec21188779ba73a134cd3
[]
no_license
mestatrit/game
91f303ba2ff9d26bdf54cdcf8c99a0c158cdf184
e57b58aa5f282ed035664d08f6a5564161397029
refs/heads/master
2020-12-31T07:19:00.143960
2015-04-18T10:01:14
2015-04-18T10:01:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,882
java
package com.wyd.empire.world.common.util; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import com.wyd.empire.world.server.service.factory.ServiceManager; /** * 基金相关配置信息 * * @author sunzx */ public class FundUtil { /** 初级基金类型 */ public static final int FUND_TYPE_LOW = 0; /** 中级基金类型 */ public static final int FUND_TYPE_MIDDLE = 1; /** 高级基金类型 */ public static final int FUND_TYPE_HIGH = 2; /** 初级基金金额 */ public static final int FUND_TYPE_LOW_AMOUNT = 100; /** 中级基金金额 */ public static final int FUND_TYPE_MIDDLE_AMOUNT = 500; /** 高级基金金额 */ public static final int FUND_TYPE_HIGH_AMOUNT = 1000; /** 初级基金金额信息 */ public static String FUND_TYPE_LOW_AMOUNT_INFO = ""; /** 中级基金金额 信息 */ public static String FUND_TYPE_MIDDLE_AMOUNT_INFO = ""; /** 高级基金金额 信息 */ public static String FUND_TYPE_HIGH_AMOUNT_INFO = ""; private static Map<Integer, Map<Integer, Integer>> fundMap = null; // static{ // initMap(); // } /** * 根据数据库中的基金配置动态初始化相应map、 */ public static void initMap() { String fund = ServiceManager.getManager().getVersionService().getVersion().getFundAllocation(); if (fund == null || fund.equals(null) || fund.equals("")) { System.out.println("基金参数为空!"); return; } String[] fundStr = fund.split("\\|"); fundMap = new HashMap<Integer, Map<Integer, Integer>>(); if (fundStr.length >= 1) { Map<Integer, Integer> levelLowMap = new LinkedHashMap<Integer, Integer>(); String[] str = fundStr[0].split(","); FUND_TYPE_LOW_AMOUNT_INFO = fundStr[0]; for (String parameter : str) { levelLowMap.put(Integer.parseInt(parameter.split("=")[0]), Integer.parseInt(parameter.split("=")[1])); } fundMap.put(FUND_TYPE_LOW, levelLowMap); } if (fundStr.length >= 2) { Map<Integer, Integer> levelMiddleMap = new LinkedHashMap<Integer, Integer>(); String[] str = fundStr[1].split(","); FUND_TYPE_MIDDLE_AMOUNT_INFO = fundStr[1]; for (String parameter : str) { levelMiddleMap.put(Integer.parseInt(parameter.split("=")[0]), Integer.parseInt(parameter.split("=")[1])); } fundMap.put(FUND_TYPE_MIDDLE, levelMiddleMap); } if (fundStr.length >= 3) { Map<Integer, Integer> levelHighMap = new LinkedHashMap<Integer, Integer>(); String[] str = fundStr[2].split(","); FUND_TYPE_HIGH_AMOUNT_INFO = fundStr[2]; for (String parameter : str) { levelHighMap.put(Integer.parseInt(parameter.split("=")[0]), Integer.parseInt(parameter.split("=")[1])); } fundMap.put(FUND_TYPE_HIGH, levelHighMap); } } /** * 获取基金类型MAP * * @return 基金类型MAP */ public static Map<Integer, Integer> getFundLevelMap(int type) { return fundMap.get(type); } }
[ "huangwei2wei@126.com" ]
huangwei2wei@126.com
3ce825e44bcbd0416be7f30f6483a935cf9e0542
a744882fb7cf18944bd6719408e5a9f2f0d6c0dd
/sourcecode7/src/sun/beans/editors/BooleanEditor.java
7b6ab1a515d13f791e2fd1a46e15b80469f2bce3
[ "Apache-2.0" ]
permissive
hanekawasann/learn
a39b8d17fd50fa8438baaa5b41fdbe8bd299ab33
eef678f1b8e14b7aab966e79a8b5a777cfc7ab14
refs/heads/master
2022-09-13T02:18:07.127489
2020-04-26T07:58:35
2020-04-26T07:58:35
176,686,231
0
0
Apache-2.0
2022-09-01T23:21:38
2019-03-20T08:16:05
Java
UTF-8
Java
false
false
2,496
java
/* * Copyright (c) 2006, 2007, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package sun.beans.editors; /** * Property editor for a java builtin "boolean" type. */ import java.beans.*; public class BooleanEditor extends PropertyEditorSupport { public String getJavaInitializationString() { Object value = getValue(); return (value != null) ? value.toString() : "null"; } public String getAsText() { Object value = getValue(); return (value instanceof Boolean) ? getValidName((Boolean) value) : null; } public void setAsText(String text) throws java.lang.IllegalArgumentException { if (text == null) { setValue(null); } else if (isValidName(true, text)) { setValue(Boolean.TRUE); } else if (isValidName(false, text)) { setValue(Boolean.FALSE); } else { throw new java.lang.IllegalArgumentException(text); } } public String[] getTags() { return new String[] { getValidName(true), getValidName(false) }; } // the following method should be localized (4890258) private String getValidName(boolean value) { return value ? "True" : "False"; } private boolean isValidName(boolean value, String name) { return getValidName(value).equalsIgnoreCase(name); } }
[ "763803382@qq.com" ]
763803382@qq.com
36df1cfd12492fafaa6098e79a55403d2d349031
d0c4364fe35d4cebc9787bfd52e1a9a40fa8b8c1
/paypal/src/com/ebay/api/PayPalUserStatusCodeType.java
bb9e57e88ed148b8448cddd1c95f56a23aa2ba7b
[]
no_license
vamshivushakola/Asian-Paints-Everything
6f92b153474b1c5416821846867319bb1719e845
2a7147537aebf5b58ed94902ba6fbc72595c7134
refs/heads/master
2021-01-20T20:52:21.611576
2016-07-16T18:21:01
2016-07-16T18:21:01
63,496,094
0
1
null
null
null
null
UTF-8
Java
false
false
1,245
java
package com.ebay.api; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for PayPalUserStatusCodeType. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name="PayPalUserStatusCodeType"> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}token"> * &lt;enumeration value="verified"/> * &lt;enumeration value="unverified"/> * &lt;/restriction> * &lt;/simpleType> * </pre> * */ @XmlType(name = "PayPalUserStatusCodeType") @XmlEnum public enum PayPalUserStatusCodeType { @XmlEnumValue("verified") VERIFIED("verified"), @XmlEnumValue("unverified") UNVERIFIED("unverified"); private final String value; PayPalUserStatusCodeType(String v) { value = v; } public String value() { return value; } public static PayPalUserStatusCodeType fromValue(String v) { for (PayPalUserStatusCodeType c: PayPalUserStatusCodeType.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } }
[ "vamshi.vshk@gmail.com" ]
vamshi.vshk@gmail.com
99bbb1e87f336653c4ac80d2d68907b003bb3c68
e9d8a548bbf666e4a46705b696372464d5038fbb
/app/src/androidTest/java/ui/anwesome/com/kotlincirclerotateexpanderview/ExampleInstrumentedTest.java
613e59887989d87d1867a6028f0833dfadced1d0
[]
no_license
Anwesh43/KotlinCircleRotateExpanderView
f6aeb5035ced057bc5675f0236a1a7da25645025
0f29c5fc7ee559534a96b37b37ca56f72c9965a2
refs/heads/master
2021-04-27T00:10:32.028099
2018-03-04T12:59:37
2018-03-04T12:59:37
123,761,630
0
0
null
null
null
null
UTF-8
Java
false
false
796
java
package ui.anwesome.com.kotlincirclerotateexpanderview; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumentation test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("ui.anwesome.com.kotlincirclerotateexpanderview", appContext.getPackageName()); } }
[ "anweshthecool0@gmail.com" ]
anweshthecool0@gmail.com
edbcb866cdcdf7eb7acbcc89f78a7805d1eca65a
5148293c98b0a27aa223ea157441ac7fa9b5e7a3
/Method_Scraping/xml_scraping/NicadOutputFile_t1_beam_2nd/Nicad_t1_beam_2nd1560.java
bc45051d2c9fe276a07f73b6e2cf6a9408c8cf42
[]
no_license
ryosuke-ku/TestCodeSeacherPlus
cfd03a2858b67a05ecf17194213b7c02c5f2caff
d002a52251f5461598c7af73925b85a05cea85c6
refs/heads/master
2020-05-24T01:25:27.000821
2019-08-17T06:23:42
2019-08-17T06:23:42
187,005,399
0
0
null
null
null
null
UTF-8
Java
false
false
486
java
// clone pairs:7345:80% // 9914:beam/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/windowing/AfterProcessingTime.java public class Nicad_t1_beam_2nd1560 { public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof AfterProcessingTime)) { return false; } AfterProcessingTime that = (AfterProcessingTime) obj; return getTimestampTransforms().equals(that.getTimestampTransforms()); } }
[ "naist1020@gmail.com" ]
naist1020@gmail.com
b795073af7c3f4f3a085334bb364544c55803741
8c81eeaa4bde7c4f9e402c1647940de5deb146fc
/src/Tour1408.java
44e275954cbfc113d1cd11d03b4d81f0262bf6d5
[]
no_license
Luciwar/Example
f4b51b53eef6189ba18ea7714f5ee38be4287864
15b5d4d48e930d75597555b1c9c128b8501812f4
refs/heads/master
2020-06-04T23:41:07.098593
2018-10-11T15:31:24
2018-10-11T15:31:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,305
java
package tiendm.codefight.tournament.aug; import java.util.Arrays; public class Tour1408 { int numberOfOperations(int a, int b) { int min = Math.min(a, b), max = Math.max(a, b); int count = 0; while (max % min == 0 && min > 1) { count++; int t = min; min = max / min; max = t; if (min > max) { int tmp = max; max = min; min = tmp; } } return count; } char lastDigitRegExp(String inputString) { for (int i = inputString.length() - 1; i >= 0; i--) { if (inputString.charAt(i) >= '0' && inputString.charAt(i) <= '9') { return inputString.charAt(i); } } return ' '; } String replaceFirstDigitRegExp(String input) { for (int i = input.length() - 1; i >= 0; i--) { if (input.charAt(i) >= '0' && input.charAt(i) <= '9') { return input.replace(input.charAt(i), '#'); } } return input; } boolean equationTemplate(int[] input) { Arrays.sort(input); return input[0] * input[1] * input[2] == input[3] || input[0] * input[3] == input[1] * input[2] || input[0] * input[1] == input[2] * input[3] || input[0] == input[1] * input[2] * input[3] || input[0] * input[2] == input[1] * input[3]; } public static void main(String[] args) { Tour1408 t = new Tour1408(); System.out.println(t.numberOfOperations(432, 72)); } }
[ "linhhoang13k@gmail.com" ]
linhhoang13k@gmail.com
4a50a08321d9bbd8e04482d041405e24f9dd37bb
c7646d4fe1c3462f20cc01161ba0cc48be6b8638
/src/main/java/io/github/seleniumquery/by/common/preparser/CssParsedSelector.java
01b038bd4e50e2ad134f75ff246d2367ba48cac1
[ "Apache-2.0" ]
permissive
saadabdulllah/seleniumQuery
c05a2e1d4335fc264a6474f03f19ffebad7eaecf
6989b623734ec51c08f3fed5425b24a8b78f0f8a
refs/heads/master
2021-01-21T20:23:22.577908
2017-04-13T16:10:41
2017-04-13T16:10:41
92,228,872
0
1
null
2017-05-23T23:17:05
2017-05-23T23:17:05
null
UTF-8
Java
false
false
1,149
java
/* * Copyright (c) 2015 seleniumQuery 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.github.seleniumquery.by.common.preparser; import org.w3c.css.sac.Selector; /** * @author acdcjunior * @since 0.10.0 */ public class CssParsedSelector { private ArgumentMap argumentMap; private Selector selector; public CssParsedSelector(Selector selector, ArgumentMap argumentMap) { this.argumentMap = argumentMap; this.selector = selector; } public ArgumentMap getArgumentMap() { return argumentMap; } public Selector getSelector() { return selector; } }
[ "acdcjunior@gmail.com" ]
acdcjunior@gmail.com
35a8e114e0f7411d078875428623a179360fc0a9
770c76a2180ee695bc02064d24d87f5c47c0fb79
/factory-dz/src/main/java/com/lc/ibps/pgs/PingJia/persistence/dao/PingJiaQueryDao.java
f74b1dd924f7b0a165234cb2e747f031c38a0f3f
[]
no_license
incidunt/qingjiao_dev
aff658944c0f89c822d547f5a2180649f48cbf00
385a69cddabc784e974f7d802807fc19101e83ee
refs/heads/master
2020-09-23T17:05:12.859324
2018-12-18T08:26:04
2018-12-18T08:26:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
464
java
package com.lc.ibps.pgs.PingJia.persistence.dao; import com.lc.ibps.base.framework.persistence.dao.IQueryDao; import com.lc.ibps.pgs.PingJia.persistence.entity.PingJiaPo; /** * t_pymbpj 查询Dao接口 * *<pre> * 开发公司:广州流辰信息技术有限公司 * 开发人员:panzhonghuai * 邮箱地址:1546077710@qq.com * 创建时间:2017-12-11 16:18:49 *</pre> */ public interface PingJiaQueryDao extends IQueryDao<String, PingJiaPo> { }
[ "marco23037@163.com" ]
marco23037@163.com
c2bb6b09f13dacbee874d9fa1552a1f1e43f22cc
9a38a072fe281f176fda34f7ef46af7c26101cf2
/app/src/main/java/com/xiangying/fighting/ui/chat/parse/UserProfileManager.java
63e2adb4fa4c5d734746cd4ddbdcc05fccf89e36
[]
no_license
gaoyuan117/Fighting
91a7c1713ed405f9723f31262b5df9976e0cf29a
3eabc5b3723738c425e6591e7caee7a614e33c32
refs/heads/master
2021-01-22T02:17:51.751170
2017-02-09T07:43:42
2017-02-09T07:43:42
81,041,856
0
1
null
null
null
null
UTF-8
Java
false
false
4,793
java
package com.xiangying.fighting.ui.chat.parse; import android.content.Context; import com.hyphenate.EMValueCallBack; import com.hyphenate.chat.EMClient; import com.hyphenate.easeui.domain.EaseUser; import com.xiangying.fighting.ui.chat.help.DemoHelper; import com.xiangying.fighting.ui.chat.help.PreferenceManager; import java.util.ArrayList; import java.util.List; public class UserProfileManager { /** * application context */ protected Context appContext = null; /** * init flag: test if the sdk has been inited before, we don't need to init * again */ private boolean sdkInited = false; /** * HuanXin sync contact nick and avatar listener */ private List<DemoHelper.DataSyncListener> syncContactInfosListeners; private boolean isSyncingContactInfosWithServer = false; private EaseUser currentUser; public UserProfileManager() { } public synchronized boolean init(Context context) { if (sdkInited) { return true; } ParseManager.getInstance().onInit(context); syncContactInfosListeners = new ArrayList<DemoHelper.DataSyncListener>(); sdkInited = true; return true; } public void addSyncContactInfoListener(DemoHelper.DataSyncListener listener) { if (listener == null) { return; } if (!syncContactInfosListeners.contains(listener)) { syncContactInfosListeners.add(listener); } } public void removeSyncContactInfoListener(DemoHelper.DataSyncListener listener) { if (listener == null) { return; } if (syncContactInfosListeners.contains(listener)) { syncContactInfosListeners.remove(listener); } } public void asyncFetchContactInfosFromServer(List<String> usernames, final EMValueCallBack<List<EaseUser>> callback) { if (isSyncingContactInfosWithServer) { return; } isSyncingContactInfosWithServer = true; ParseManager.getInstance().getContactInfos(usernames, new EMValueCallBack<List<EaseUser>>() { @Override public void onSuccess(List<EaseUser> value) { isSyncingContactInfosWithServer = false; // in case that logout already before server returns,we should // return immediately if (!DemoHelper.getInstance().isLoggedIn()) { return; } if (callback != null) { callback.onSuccess(value); } } @Override public void onError(int error, String errorMsg) { isSyncingContactInfosWithServer = false; if (callback != null) { callback.onError(error, errorMsg); } } }); } public void notifyContactInfosSyncListener(boolean success) { for (DemoHelper.DataSyncListener listener : syncContactInfosListeners) { listener.onSyncComplete(success); } } public boolean isSyncingContactInfoWithServer() { return isSyncingContactInfosWithServer; } public synchronized void reset() { isSyncingContactInfosWithServer = false; currentUser = null; PreferenceManager.getInstance().removeCurrentUserInfo(); } public synchronized EaseUser getCurrentUserInfo() { if (currentUser == null) { String username = EMClient.getInstance().getCurrentUser(); currentUser = new EaseUser(username); String nick = getCurrentUserNick(); currentUser.setNick((nick != null) ? nick : username); currentUser.setAvatar(getCurrentUserAvatar()); } return currentUser; } public boolean updateCurrentUserNickName(final String nickname) { boolean isSuccess = ParseManager.getInstance().updateParseNickName(nickname); if (isSuccess) { setCurrentUserNick(nickname); } return isSuccess; } public String uploadUserAvatar(byte[] data) { String avatarUrl = ParseManager.getInstance().uploadParseAvatar(data); if (avatarUrl != null) { setCurrentUserAvatar(avatarUrl); } return avatarUrl; } public void asyncGetCurrentUserInfo() { ParseManager.getInstance().asyncGetCurrentUserInfo(new EMValueCallBack<EaseUser>() { @Override public void onSuccess(EaseUser value) { if(value != null){ setCurrentUserNick(value.getNick()); setCurrentUserAvatar(value.getAvatar()); } } @Override public void onError(int error, String errorMsg) { } }); } public void asyncGetUserInfo(final String username,final EMValueCallBack<EaseUser> callback){ ParseManager.getInstance().asyncGetUserInfo(username, callback); } private void setCurrentUserNick(String nickname) { getCurrentUserInfo().setNick(nickname); PreferenceManager.getInstance().setCurrentUserNick(nickname); } private void setCurrentUserAvatar(String avatar) { getCurrentUserInfo().setAvatar(avatar); PreferenceManager.getInstance().setCurrentUserAvatar(avatar); } private String getCurrentUserNick() { return PreferenceManager.getInstance().getCurrentUserNick(); } private String getCurrentUserAvatar() { return PreferenceManager.getInstance().getCurrentUserAvatar(); } }
[ "970725917@qq.com" ]
970725917@qq.com
ffdaed84be5b45ce4dfa0a15e41daf0a14b16404
ccf0d38f0e4e53ba7acddc01fd66c42e248a263c
/org/chartacaeli/model/descriptors/CircleParallelDescriptor.java
bc171ccaab14eaa2873e6aea9dd1573702529616
[ "MIT" ]
permissive
otabuzzman/chartacaeli-app
28b89c0f4ebb95d92a5a45d18755a0b1bdf6d206
881b4cf280a80b3ff7e4ff80f55aafa73607071b
refs/heads/master
2023-05-10T19:33:30.697791
2023-05-05T20:42:59
2023-05-05T20:42:59
49,746,695
2
0
MIT
2020-11-09T13:31:44
2016-01-15T21:45:11
Java
UTF-8
Java
false
false
5,359
java
/* * This class was automatically generated with * <a href="http://www.castor.org">Castor 1.3.3</a>, using an XML * Schema. * $Id$ */ package org.chartacaeli.model.descriptors; //---------------------------------/ //- Imported classes and packages -/ //---------------------------------/ import org.chartacaeli.model.CircleParallel; /** * * * @version $Revision$ $Date$ */ public class CircleParallelDescriptor extends org.chartacaeli.model.descriptors.CircleTypeDescriptor { /** * Field _elementDefinition. */ private boolean _elementDefinition; /** * Field _nsPrefix. */ private java.lang.String _nsPrefix; /** * Field _nsURI. */ private java.lang.String _nsURI; /** * Field _xmlName. */ private java.lang.String _xmlName; /** * Field _identity. */ private org.exolab.castor.xml.XMLFieldDescriptor _identity; public CircleParallelDescriptor() { super(); setExtendsWithoutFlatten(new org.chartacaeli.model.descriptors.CircleTypeDescriptor()); _nsURI = "http://www.chartacaeli.org/model"; _xmlName = "CircleParallel"; _elementDefinition = true; //-- set grouping compositor setCompositorAsSequence(); org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; org.exolab.castor.mapping.FieldHandler handler = null; org.exolab.castor.xml.FieldValidator fieldValidator = null; //-- initialize attribute descriptors //-- initialize element descriptors //-- angle desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.chartacaeli.model.Angle.class, "angle", "Angle", org.exolab.castor.xml.NodeType.Element); handler = new org.exolab.castor.xml.XMLFieldHandler() { @Override public java.lang.Object getValue( java.lang.Object object ) throws IllegalStateException { CircleParallel target = (CircleParallel) object; return target.getAngle(); } @Override public void setValue( java.lang.Object object, java.lang.Object value) throws IllegalStateException, IllegalArgumentException { try { CircleParallel target = (CircleParallel) object; target.setAngle( (org.chartacaeli.model.Angle) value); } catch (java.lang.Exception ex) { throw new IllegalStateException(ex.toString()); } } @Override @SuppressWarnings("unused") public java.lang.Object newInstance(java.lang.Object parent) { return null; } }; desc.setSchemaType("org.chartacaeli.model.Angle"); desc.setHandler(handler); desc.setNameSpaceURI("http://www.chartacaeli.org/model"); desc.setRequired(true); desc.setMultivalued(false); addFieldDescriptor(desc); addSequenceElement(desc); //-- validation code for: angle fieldValidator = new org.exolab.castor.xml.FieldValidator(); fieldValidator.setMinOccurs(1); { //-- local scope } desc.setValidator(fieldValidator); } /** * Method getAccessMode. * * @return the access mode specified for this class. */ @Override() public org.exolab.castor.mapping.AccessMode getAccessMode() { return null; } /** * Method getIdentity. * * @return the identity field, null if this class has no * identity. */ @Override() public org.exolab.castor.mapping.FieldDescriptor getIdentity() { if (_identity == null) { return super.getIdentity(); } return _identity; } /** * Method getJavaClass. * * @return the Java class represented by this descriptor. */ @Override() public java.lang.Class getJavaClass() { return org.chartacaeli.model.CircleParallel.class; } /** * Method getNameSpacePrefix. * * @return the namespace prefix to use when marshaling as XML. */ @Override() public java.lang.String getNameSpacePrefix() { return _nsPrefix; } /** * Method getNameSpaceURI. * * @return the namespace URI used when marshaling and * unmarshaling as XML. */ @Override() public java.lang.String getNameSpaceURI() { return _nsURI; } /** * Method getValidator. * * @return a specific validator for the class described by this * ClassDescriptor. */ @Override() public org.exolab.castor.xml.TypeValidator getValidator() { return this; } /** * Method getXMLName. * * @return the XML Name for the Class being described. */ @Override() public java.lang.String getXMLName() { return _xmlName; } /** * Method isElementDefinition. * * @return true if XML schema definition of this Class is that * of a global * element or element with anonymous type definition. */ public boolean isElementDefinition() { return _elementDefinition; } }
[ "iuergen.schuck@gmail.com" ]
iuergen.schuck@gmail.com
d8acc54b48928a79acc188da8931e07e904e1f8c
e75be673baeeddee986ece49ef6e1c718a8e7a5d
/submissions/blizzard/Corpus/eclipse.jdt.ui/9673.java
b0b77d84875a7ebbd9032050862a5ef161ccc6ac
[ "MIT" ]
permissive
zhendong2050/fse18
edbea132be9122b57e272a20c20fae2bb949e63e
f0f016140489961c9e3c2e837577f698c2d4cf44
refs/heads/master
2020-12-21T11:31:53.800358
2018-07-23T10:10:57
2018-07-23T10:10:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
287
java
package locals_out; public class A_test538 { public void foo() { int i = 0; int[] array = new int[10]; extracted(i, array); } protected void extracted(int i, int[] array) { /*[*/ array[i] = /*]*/ 10; } }
[ "tim.menzies@gmail.com" ]
tim.menzies@gmail.com
6bab4f1658050065f436b57f9189689a3a15527b
2760cbcf6a5cf401c37ad47b7055cd455d170ca9
/javademo/src/java0722_stream_collection/Java168_stream.java
b1473607a7efd0705864d789a34f87e4d5e74d8a
[]
no_license
davidkim9204/KH
d761f3a2721e1c3edf124c6ebf3e229b2836dfe8
d2f39c5c8075c54d84c565783e4c0e0e6314ce64
refs/heads/master
2021-01-12T12:27:49.630370
2016-11-02T08:11:03
2016-11-02T08:11:03
72,500,407
0
0
null
null
null
null
UTF-8
Java
false
false
2,819
java
package java0722_stream_collection; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutput; import java.io.ObjectOutputStream; import java.io.OutputStream; import java.io.Serializable; /* * 직렬화(serializable) - 아무것도 구현이 안된 interface * 1 객체를 연속적인 데이터로 변환하는 것이다. * 반대로는 역직렬화이다. * 2 객체의 멤버변수들의 값을 일렬로 나열하는 것이다. * 3 객체를 저장하기 위해서는 객체를 직렬화해야 한다. * 4 객체를 저장한다는 것은 객체의 멤버변수의 값을 저장한다는 것이다. * 5 객체를 직렬화하여 입출력할 수 있는 스트림 * ObjectInputStream, ObjectOutputStream */ class Phone implements Serializable{ String name; transient int price; //직렬화에서 제외하려면 public Phone(){ } public Phone(String name, int price){ super(); this.name = name; this.price=price; } @Override public String toString() { return name+" "+price; } }//end class public class Java168_stream { public static void main(String[] args) { File file=new File("./src/java0722_stream_collection/phone.dat"); FileOutputStream fs= null; FileInputStream fi= null; ObjectOutputStream os = null; ObjectInputStream oi=null; try { fs=new FileOutputStream(file); os=new ObjectOutputStream(fs); Phone p=new Phone("android",5000); os.writeObject(p); System.out.println("Phone객체 저장"); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); }finally{ try { os.close(); fs.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } System.out.println("///////////////////////////////////"); try{ fi=new FileInputStream(file); oi=new ObjectInputStream(fi); Phone p=(Phone)oi.readObject(); } catch(FileNotFoundException e){ e.printStackTrace(); } catch (IOException e){ e.printStackTrace(); }catch(ClassCastException e){ e.printStackTrace(); } catch (ClassNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); }finally{ try { oi.close(); fi.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } //너무 길어서 실수 부분이 존재하니 수정요망. }//end main() }//end class
[ "user1@user1-PC" ]
user1@user1-PC
4c612a6b8baba2462e846dfef8249b1ecdb94ee8
e47d2faa2d5ee992ba5d2da965dcba19deb092e6
/core/src/main/java/react4j/ReactErrorInfo.java
5a20bee048f5af4807a6b1ffa8e4571f5fb01553
[ "Apache-2.0" ]
permissive
react4j/react4j
95e13c276126973f67b0e4888c2eb4b7775d9efc
dadbc3283943cd2c5bc78420e38f8ac4e6888dfe
refs/heads/master
2023-02-07T19:26:30.934517
2023-01-31T02:16:47
2023-01-31T02:16:47
104,152,070
35
0
Apache-2.0
2023-01-23T05:07:51
2017-09-20T01:55:55
Java
UTF-8
Java
false
false
344
java
package react4j; import javax.annotation.Nonnull; import jsinterop.annotations.JsPackage; import jsinterop.annotations.JsType; @JsType( isNative = true, namespace = JsPackage.GLOBAL, name = "Object" ) public class ReactErrorInfo { @SuppressWarnings( { "NotNullFieldNotInitialized", "unused" } ) @Nonnull public String componentStack; }
[ "peter@realityforge.org" ]
peter@realityforge.org
bc3f1e7a39d48d5b405423a8f3a537ed3f653286
501989f313f923b069c9c1b06a507463ab946e2b
/src/com/jspgou/core/manager/ThirdAccountMng.java
be280d75ce3116bf70095380a4c8d75248909d3d
[]
no_license
xrogzu/shop
fded93f9dbc801ff983362fc10d33ad7a8c07fad
17568c709f64323e2b0dce06f4bc3d600a8157f8
refs/heads/master
2021-04-12T08:48:48.082699
2017-07-24T06:11:52
2017-07-24T06:16:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
518
java
package com.jspgou.core.manager; import com.jspgou.common.page.Pagination; import com.jspgou.core.entity.ThirdAccount; public interface ThirdAccountMng { public Pagination getPage(String username,String source,int pageNo, int pageSize); public ThirdAccount findById(Long id); public ThirdAccount findByKey(String key); public ThirdAccount save(ThirdAccount bean); public ThirdAccount update(ThirdAccount bean); public ThirdAccount deleteById(Long id); public ThirdAccount[] deleteByIds(Long[] ids); }
[ "he.tang@everydayratings.com" ]
he.tang@everydayratings.com
b45879d4604195d7fbe218e3509301513501d484
41650d800965e07477d46e5161dd18b541067e5a
/src/main/java/com/dmatek/zgb/db/setting/service/imp/ReliablePerson_NodeServiceImp.java
54c8d35a9a008ec45e932414bc7c10e8eab689c6
[]
no_license
287396159/ZGBWEBSSM
7a9a0a53fb8423f48bbbb80c1e5bd18cc2ba95ee
90eccec48e2fc6bf8db9254f62ac296608d7e781
refs/heads/master
2022-07-15T11:54:47.976581
2019-08-27T09:01:41
2019-08-27T09:01:41
204,664,275
0
0
null
2022-06-21T01:45:24
2019-08-27T09:08:42
JavaScript
UTF-8
Java
false
false
2,317
java
package com.dmatek.zgb.db.setting.service.imp; import java.util.List; import org.apache.logging.log4j.util.Strings; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.thymeleaf.util.ListUtils; import com.alibaba.druid.util.StringUtils; import com.dmatek.zgb.db.pojo.setting.Node; import com.dmatek.zgb.db.pojo.setting.ReliablePerson_Node; import com.dmatek.zgb.db.setting.dao.ReliablePerson_NodeDao; import com.dmatek.zgb.db.setting.service.ReliablePerson_NodeService; @Service("reliableTag_NodeService") public class ReliablePerson_NodeServiceImp implements ReliablePerson_NodeService { @Autowired private ReliablePerson_NodeDao reliablePerson_NodeDao; @Override public boolean addReliablePerson_Node(List<ReliablePerson_Node> personNodes) throws Exception { if(!ListUtils.isEmpty(personNodes)){ return reliablePerson_NodeDao.addReliablePerson_Node(personNodes); } return false; } @Override public boolean deleteReliablePerson_Node(String tagId) throws Exception { if(!Strings.isEmpty(tagId)){ return reliablePerson_NodeDao.deleteReliablePerson_Node(tagId); } return false; } @Override public List<ReliablePerson_Node> selectAll() throws Exception { return reliablePerson_NodeDao.selectAll(); } @Override public List<ReliablePerson_Node> selectPage(int page, int limit) throws Exception { return reliablePerson_NodeDao.selectPage(page, limit); } @Override public List<ReliablePerson_Node> selectPageKeyName(int page, int limit, String name) throws Exception { return reliablePerson_NodeDao.selectPageKeyName(page, limit, name); } @Override public List<Node> selectOne(String tagId) throws Exception { if(!StringUtils.isEmpty(tagId)) { return reliablePerson_NodeDao.selectOne(tagId); } return null; } @Override public boolean deleteReliableCompany_Node(String companyNo) throws Exception { if(!StringUtils.isEmpty(companyNo)) { return reliablePerson_NodeDao.deleteReliableCompany_Node(companyNo); } return false; } @Override public List<Node> findReliableCompany_Node(String companyNo, int psNumber) throws Exception { if(!StringUtils.isEmpty(companyNo)) { return reliablePerson_NodeDao.findReliableCompany_Node(companyNo, psNumber); } return null; } }
[ "admin@qq.com" ]
admin@qq.com
fd65a15b1bc5dbbdd6e720b6eaeb24dede0d79ed
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/TIME-20b-1-29-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/joda/time/format/DateTimeFormatter_ESTest_scaffolding.java
56b739bb8e43c636eb9bdc37deb5c6046a9e5c5e
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
7,381
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Mon Apr 06 10:44:49 UTC 2020 */ package org.joda.time.format; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; import static org.evosuite.shaded.org.mockito.Mockito.*; @EvoSuiteClassExclude public class DateTimeFormatter_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.joda.time.format.DateTimeFormatter"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; org.evosuite.runtime.Runtime.getInstance().resetRuntime(); try { initMocksToAvoidTimeoutsInTheTests(); } catch(ClassNotFoundException e) {} } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); 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.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(DateTimeFormatter_ESTest_scaffolding.class.getClassLoader() , "org.joda.time.DateTimeZone", "org.joda.time.DateTimeUtils$MillisProvider", "org.joda.time.chrono.GJYearOfEraDateTimeField", "org.joda.time.field.RemainderDateTimeField", "org.joda.time.JodaTimePermission", "org.joda.time.chrono.BasicWeekOfWeekyearDateTimeField", "org.joda.time.DateTimeFieldType", "org.joda.time.format.DateTimeFormatterBuilder$Fraction", "org.joda.time.DateTimeFieldType$StandardDateTimeFieldType", "org.joda.time.ReadableInterval", "org.joda.time.chrono.BasicChronology$HalfdayField", "org.joda.time.chrono.BasicChronology$YearInfo", "org.joda.time.tz.DateTimeZoneBuilder$PrecalculatedZone", "org.joda.time.field.UnsupportedDurationField", "org.joda.time.base.AbstractDateTime", "org.joda.time.format.DateTimePrinter", "org.joda.time.base.BaseLocal", "org.joda.time.chrono.ISOChronology", "org.joda.time.chrono.BasicChronology", "org.joda.time.chrono.BasicYearDateTimeField", "org.joda.time.field.DividedDateTimeField", "org.joda.time.chrono.ZonedChronology", "org.joda.time.format.DateTimeFormatterBuilder$TimeZoneOffset", "org.joda.time.field.BaseDateTimeField", "org.joda.time.field.ZeroIsMaxDateTimeField", "org.joda.time.format.DateTimeFormatterBuilder", "org.joda.time.format.FormatUtils", "org.joda.time.field.MillisDurationField", "org.joda.time.base.AbstractInstant", "org.joda.time.tz.DateTimeZoneBuilder", "org.joda.time.format.DateTimeParserBucket", "org.joda.time.field.UnsupportedDateTimeField", "org.joda.time.field.ScaledDurationField", "org.joda.time.chrono.ISOYearOfEraDateTimeField", "org.joda.time.field.PreciseDurationDateTimeField", "org.joda.time.LocalDateTime", "org.joda.time.MutableDateTime", "org.joda.time.tz.FixedDateTimeZone", "org.joda.time.field.PreciseDateTimeField", "org.joda.time.tz.CachedDateTimeZone", "org.joda.time.ReadableDateTime", "org.joda.time.DateMidnight", "org.joda.time.field.DecoratedDateTimeField", "org.joda.time.YearMonthDay", "org.joda.time.format.DateTimeParser", "org.joda.time.format.DateTimeFormatterBuilder$CharacterLiteral", "org.joda.time.field.OffsetDateTimeField", "org.joda.time.DateTime$Property", "org.joda.time.chrono.GJMonthOfYearDateTimeField", "org.joda.time.chrono.BasicWeekyearDateTimeField", "org.joda.time.DateTimeField", "org.joda.time.format.ISODateTimeFormat", "org.joda.time.ReadableInstant", "org.joda.time.DateTimeUtils$SystemMillisProvider", "org.joda.time.chrono.GJDayOfWeekDateTimeField", "org.joda.time.IllegalFieldValueException", "org.joda.time.tz.DefaultNameProvider", "org.joda.time.format.DateTimeFormatterBuilder$Composite", "org.joda.time.tz.Provider", "org.joda.time.field.ImpreciseDateTimeField$LinkedDurationField", "org.joda.time.ReadablePeriod", "org.joda.time.chrono.ZonedChronology$ZonedDateTimeField", "org.joda.time.chrono.GregorianChronology", "org.joda.time.chrono.AssembledChronology$Fields", "org.joda.time.DurationFieldType", "org.joda.time.ReadWritableInstant", "org.joda.time.tz.NameProvider", "org.joda.time.format.DateTimeFormatterBuilder$PaddedNumber", "org.joda.time.chrono.BasicMonthOfYearDateTimeField", "org.joda.time.base.AbstractPartial", "org.joda.time.base.BasePartial", "org.joda.time.base.BaseDateTime", "org.joda.time.DateTimeUtils", "org.joda.time.LocalTime", "org.joda.time.field.DecoratedDurationField", "org.joda.time.tz.DateTimeZoneBuilder$DSTZone", "org.joda.time.chrono.AssembledChronology", "org.joda.time.TimeOfDay", "org.joda.time.chrono.GJEraDateTimeField", "org.joda.time.tz.ZoneInfoProvider", "org.joda.time.DateTimeZone$1", "org.joda.time.chrono.BaseChronology", "org.joda.time.field.ImpreciseDateTimeField", "org.joda.time.field.PreciseDurationField", "org.joda.time.ReadableDuration", "org.joda.time.chrono.BasicGJChronology", "org.joda.time.format.DateTimeFormatterBuilder$NumberFormatter", "org.joda.time.format.DateTimeFormatter", "org.joda.time.DurationField", "org.joda.time.Chronology", "org.joda.time.DateTime", "org.joda.time.field.AbstractReadableInstantFieldProperty", "org.joda.time.LocalDate", "org.joda.time.format.DateTimeParserBucket$SavedField", "org.joda.time.ReadWritableDateTime", "org.joda.time.chrono.BasicDayOfMonthDateTimeField", "org.joda.time.chrono.ZonedChronology$ZonedDurationField", "org.joda.time.Instant", "org.joda.time.ReadablePartial", "org.joda.time.chrono.BasicDayOfYearDateTimeField", "org.joda.time.DurationFieldType$StandardDurationFieldType", "org.joda.time.field.BaseDurationField" ); } private static void initMocksToAvoidTimeoutsInTheTests() throws ClassNotFoundException { mock(Class.forName("org.joda.time.format.DateTimeParser", false, DateTimeFormatter_ESTest_scaffolding.class.getClassLoader())); mock(Class.forName("org.joda.time.format.DateTimePrinter", false, DateTimeFormatter_ESTest_scaffolding.class.getClassLoader())); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
d617b043d1b641c2b4b9a734417fc11a834b5ecf
08c24bcbd5cb24f47bc746dbaa449c38560abdde
/src/main/java/org/terraform/command/SplineCommand.java
b43b0632a2a988e5ec909a9e0e74e8493a3ab477
[]
no_license
PiggyPiglet/TerraformGenerator
e5ca9a8e9c9820b859a1f94e76e2e121caf3f68a
b2f4d3066b8bc64cdec8194b9df8256fc55ffe31
refs/heads/master
2022-12-11T01:07:05.558564
2020-08-12T10:19:11
2020-08-12T10:19:11
286,964,891
0
0
null
2020-08-12T08:53:28
2020-08-12T08:53:27
null
UTF-8
Java
false
false
741
java
package org.terraform.command; import java.util.Stack; import org.bukkit.command.CommandSender; import org.drycell.command.DCCommand; import org.drycell.command.InvalidArgumentException; import org.drycell.main.DrycellPlugin; public class SplineCommand extends DCCommand { public SplineCommand(DrycellPlugin plugin, String... aliases) { super(plugin, aliases); } @Override public String getDefaultDescription() { return "Trys out splining"; } @Override public boolean canConsoleExec() { return true; } @Override public boolean hasPermission(CommandSender sender) { return sender.isOp(); } @Override public void execute(CommandSender sender, Stack<String> args) throws InvalidArgumentException { } }
[ "noreply@piggypiglet.me" ]
noreply@piggypiglet.me
5a47aab521ed91168643aedf31d7cb8d0379edd2
7e3a7f5d9cd4d98bba4ea68b399fb883d96cd50b
/JavaOOPAdvanced/src/I_ObjectCommAndEvents_Exercise/B_KingSGambit/contracts/Defender.java
0f20f754d54e70a867a7209ca893ee0f3971c1f9
[]
no_license
ISpectruM/Java-fundamentals
9f51b3658dd55326c4b817d9f62b76d001eb3244
ac3ea51a4edf0ca430f23655a37c3417ac9afb95
refs/heads/master
2021-01-21T11:30:08.901909
2017-05-15T14:09:57
2017-05-15T14:09:57
83,553,470
0
0
null
null
null
null
UTF-8
Java
false
false
134
java
package I_ObjectCommAndEvents_Exercise.B_KingSGambit.contracts; public interface Defender extends Observer{ String getName(); }
[ "ispectrumcode@gmail.com" ]
ispectrumcode@gmail.com
16bcde48df451120d1d8c245f6ec827f835893a6
a006be286d4482aecf4021f62edd8dd9bb600040
/src/main/java/com/alipay/api/response/AlipayCommerceCityfacilitatorDepositCancelResponse.java
49d502419df87aa75c7e0584b65b7d003fbe021a
[]
no_license
zero-java/alipay-sdk
16e520fbd69974f7a7491919909b24be9278f1b1
aac34d987a424497d8e8b1fd67b19546a6742132
refs/heads/master
2021-07-19T12:34:20.765988
2017-12-13T07:43:24
2017-12-13T07:43:24
96,759,166
0
0
null
2017-07-25T02:02:45
2017-07-10T09:20:13
Java
UTF-8
Java
false
false
383
java
package com.alipay.api.response; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.commerce.cityfacilitator.deposit.cancel response. * * @author auto create * @since 1.0, 2016-01-19 17:11:09 */ public class AlipayCommerceCityfacilitatorDepositCancelResponse extends AlipayResponse { private static final long serialVersionUID = 3533698953379588392L; }
[ "443683059a" ]
443683059a
6594a16fc207566b4f91e988f09766603ff9bd34
9358108f386b8c718f10c0150043f3af60e64712
/integrella-microservices-producer-fpml/src/main/java/com/integrella/fpML/schema/DeterminationMethodReference.java
b448cbc5c8a6380fc77feac8e7d247149b0465f8
[]
no_license
kashim-git/integrella-microservices
6148b7b1683ff6b787ff5d9dba7ef0b15557caa4
f92d6a2ea818267364f90f2f1b2d373fbab37cfc
refs/heads/master
2021-01-20T02:53:03.118896
2017-04-28T13:31:55
2017-04-28T13:31:55
89,459,083
0
0
null
null
null
null
UTF-8
Java
false
false
2,044
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 // 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: 2017.04.26 at 04:37:38 PM BST // package com.integrella.fpML.schema; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlIDREF; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; /** * A reference to the return swap notional determination method. * * <p>Java class for DeterminationMethodReference complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="DeterminationMethodReference"> * &lt;complexContent> * &lt;extension base="{http://www.fpml.org/FpML-5/master}Reference"> * &lt;attribute name="href" use="required" type="{http://www.w3.org/2001/XMLSchema}IDREF" /> * &lt;/extension> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DeterminationMethodReference") public class DeterminationMethodReference extends Reference { @XmlAttribute(name = "href", required = true) @XmlIDREF @XmlSchemaType(name = "IDREF") protected Object href; /** * Gets the value of the href property. * * @return * possible object is * {@link Object } * */ public Object getHref() { return href; } /** * Sets the value of the href property. * * @param value * allowed object is * {@link Object } * */ public void setHref(Object value) { this.href = value; } }
[ "Kashim@192.168.47.69" ]
Kashim@192.168.47.69
c2a23e31651cba3f8ae4ade1a131d72411129691
9b75d8540ff2e55f9ff66918cc5676ae19c3bbe3
/cab.snapp.passenger.play_184.apk-decompiled/sources/cab/snapp/passenger/units/login/loginWithEmail/b.java
e05dd51abb2844785ec039725acaee3d201b00b8
[]
no_license
BaseMax/PopularAndroidSource
a395ccac5c0a7334d90c2594db8273aca39550ed
bcae15340907797a91d39f89b9d7266e0292a184
refs/heads/master
2020-08-05T08:19:34.146858
2019-10-06T20:06:31
2019-10-06T20:06:31
212,433,298
2
0
null
null
null
null
UTF-8
Java
false
false
1,468
java
package cab.snapp.passenger.units.login.loginWithEmail; import cab.snapp.passenger.data_access_layer.a.d; import cab.snapp.passenger.f.b.b.c; import dagger.MembersInjector; import javax.inject.Provider; public final class b implements MembersInjector<a> { /* renamed from: a reason: collision with root package name */ private final Provider<d> f841a; /* renamed from: b reason: collision with root package name */ private final Provider<c> f842b; private final Provider<cab.snapp.authenticator.c> c; public b(Provider<d> provider, Provider<c> provider2, Provider<cab.snapp.authenticator.c> provider3) { this.f841a = provider; this.f842b = provider2; this.c = provider3; } public static MembersInjector<a> create(Provider<d> provider, Provider<c> provider2, Provider<cab.snapp.authenticator.c> provider3) { return new b(provider, provider2, provider3); } public final void injectMembers(a aVar) { injectSnappDataLayer(aVar, this.f841a.get()); injectReportManagerHelper(aVar, this.f842b.get()); injectSnappAccountManager(aVar, this.c.get()); } public static void injectSnappDataLayer(a aVar, d dVar) { aVar.f840b = dVar; } public static void injectReportManagerHelper(a aVar, c cVar) { aVar.c = cVar; } public static void injectSnappAccountManager(a aVar, cab.snapp.authenticator.c cVar) { aVar.d = cVar; } }
[ "MaxBaseCode@gmail.com" ]
MaxBaseCode@gmail.com
484ca4ee0f72dabcfe6acae14f54553ebc096ebd
18606c6b3f164a935e571932b3356260b493e543
/JastAddExtensions/JastAddModulesOSGITranslatorCaseStudies/CASE_OSGI_JHotdraw/src/org/jhotdraw/svg/SVGAttributeKeys.java
af307d1b5c015d9b37fe7a08ec7ec1fde575dd92
[]
no_license
jackyhaoli/abc
d9a3bd2d4140dd92b9f9d0814eeafa16ea7163c4
42071b0dcb91db28d7b7fdcffd062f567a5a1e6c
refs/heads/master
2020-04-03T09:34:47.612136
2019-01-11T07:16:04
2019-01-11T07:16:04
155,169,244
0
0
null
null
null
null
UTF-8
Java
false
false
6,945
java
/* * @(#)SVGAttributeKeys.java 1.3 2007-12-16 * * Copyright (c) 1996-2007 by the original authors of JHotDraw * and all its contributors. * All rights reserved. * * The copyright of this software is owned by the authors and * contributors of the JHotDraw project ("the copyright holders"). * You may not use, copy or modify this software, except in * accordance with the license agreement you entered into with * the copyright holders. For details see accompanying license terms. */ //module org.jhotdraw; package org.jhotdraw.svg; import java.awt.*; import java.awt.geom.*; import org.jhotdraw.draw.*; /** * SVGAttributeKeys. * * @author Werner Randelshofer * @version 1.3 2007-12-16 Added TITLE and DESCRIPTION. * <br>1.2 2007-04-22 Attribute Key LINK added. * <br>1.1 2007-04-10 Attribute key TEXT_ALIGN added. * <br>1.0 December 9, 2006 Created. */ public class SVGAttributeKeys extends AttributeKeys { public enum TextAnchor { START, MIDDLE, END } /** * Specifies the title of an SVG drawing. * This attribute can be null, to indicate that the drawing has no title. */ public final static AttributeKey<String> TITLE = new AttributeKey<String>("title"); /** * Specifies the description of an SVG drawing. * This attribute can be null, to indicate that the drawing has no description. */ public final static AttributeKey<String> DESCRIPTION = new AttributeKey<String>("title"); /** * Specifies the viewport-fill of an SVG viewport. * This attribute can be null, to indicate that the viewport has no viewport-fill. */ public final static AttributeKey<Color> VIEWPORT_FILL = CANVAS_FILL_COLOR; /** * Specifies the viewport-fill-opacity of an SVG viewport. */ public final static AttributeKey<Double> VIEWPORT_FILL_OPACITY = CANVAS_FILL_OPACITY; /** * Specifies the text anchor of a SVGText figure. */ public final static AttributeKey<TextAnchor> TEXT_ANCHOR = new AttributeKey<TextAnchor>("textAnchor",TextAnchor.START, false); public enum TextAlign { START, CENTER, END } /** * Specifies the text alignment of a SVGText figure. */ public final static AttributeKey<TextAlign> TEXT_ALIGN = new AttributeKey<TextAlign>("textAlign",TextAlign.START, false); /** * Specifies the fill gradient of a SVG figure. */ public final static AttributeKey<Gradient> FILL_GRADIENT = new AttributeKey<Gradient>("fillGradient", null); /** * Specifies the fill opacity of a SVG figure. * This is a value between 0 and 1 whereas 0 is translucent and 1 is fully opaque. */ public final static AttributeKey<Double> FILL_OPACITY = new AttributeKey<Double>("fillOpacity", 1d, false); /** * Specifies the overall opacity of a SVG figure. * This is a value between 0 and 1 whereas 0 is translucent and 1 is fully opaque. */ public final static AttributeKey<Double> OPACITY = new AttributeKey<Double>("opacity", 1d, false); /** * Specifies the stroke gradient of a SVG figure. */ public final static AttributeKey<Gradient> STROKE_GRADIENT = new AttributeKey<Gradient>("strokeGradient", null); /** * Specifies the stroke opacity of a SVG figure. * This is a value between 0 and 1 whereas 0 is translucent and 1 is fully opaque. */ public final static AttributeKey<Double> STROKE_OPACITY = new AttributeKey<Double>("strokeOpacity", 1d, false); /** * Specifies a link. * In an SVG file, the link is stored in a "a" element which encloses the * figure. * http://www.w3.org/TR/SVGMobile12/linking.html#AElement */ public final static AttributeKey<String> LINK = new AttributeKey<String>("link", null); /** * Gets the fill paint for the specified figure based on the attributes * FILL_GRADIENT, FILL_OPACITY, FILL_PAINT and the bounds of the figure. * Returns null if the figure is not filled. */ public static Paint getFillPaint(Figure f) { double opacity = FILL_OPACITY.get(f); if (FILL_GRADIENT.get(f) != null) { return FILL_GRADIENT.get(f).getPaint(f, opacity); } Color color = FILL_COLOR.get(f); if (color != null) { if (opacity != 1) { color = new Color( (color.getRGB() & 0xffffff) | (int) (opacity * 255) << 24, true); } } return color; } /** * Gets the stroke paint for the specified figure based on the attributes * STROKE_GRADIENT, STROKE_OPACITY, STROKE_PAINT and the bounds of the figure. * Returns null if the figure is not filled. */ public static Paint getStrokePaint(Figure f) { double opacity = STROKE_OPACITY.get(f); if (STROKE_GRADIENT.get(f) != null) { return STROKE_GRADIENT.get(f).getPaint(f, opacity); } Color color = STROKE_COLOR.get(f); if (color != null) { if (opacity != 1) { color = new Color( (color.getRGB() & 0xffffff) | (int) (opacity * 255) << 24, true); } } return color; } /** Sets SVG default values. */ public static void setDefaults(Figure f) { // Fill properties // http://www.w3.org/TR/SVGMobile12/painting.html#FillProperties FILL_COLOR.basicSet(f, Color.black); WINDING_RULE.basicSet(f, WindingRule.NON_ZERO); // Stroke properties // http://www.w3.org/TR/SVGMobile12/painting.html#StrokeProperties STROKE_COLOR.basicSet(f, null); STROKE_WIDTH.basicSet(f, 1d); STROKE_CAP.basicSet(f, BasicStroke.CAP_BUTT); STROKE_JOIN.basicSet(f, BasicStroke.JOIN_MITER); STROKE_MITER_LIMIT.basicSet(f, 4d); IS_STROKE_MITER_LIMIT_FACTOR.basicSet(f, false); STROKE_DASHES.basicSet(f, null); STROKE_DASH_PHASE.basicSet(f, 0d); IS_STROKE_DASH_FACTOR.basicSet(f, false); } /** * Returns the distance, that a Rectangle needs to grow (or shrink) to * make hit detections on a shape as specified by the FILL_UNDER_STROKE and STROKE_POSITION * attributes of a figure. * The value returned is the number of units that need to be grown (or shrunk) * perpendicular to a stroke on an outline of the shape. */ public static double getPerpendicularHitGrowth(Figure f) { double grow; if (STROKE_COLOR.get(f) == null && STROKE_GRADIENT.get(f) == null) { grow = getPerpendicularFillGrowth(f); } else { double strokeWidth = AttributeKeys.getStrokeTotalWidth(f); grow = getPerpendicularDrawGrowth(f) + strokeWidth / 2d; } return grow; } }
[ "neil@40514614-586c-40e6-bf05-bf7e477dc3e6" ]
neil@40514614-586c-40e6-bf05-bf7e477dc3e6
72c7f982ffa888699b7327a450eeb7e6b7f011e5
6de38b69cccd64135b41e6de30a438961d39dfb9
/modules/activiti5-engine/src/test/java/org/activiti/engine/test/api/nonpublic/EventSubscriptionQueryTest.java
7791e8bf4983d4ee7a3fb2b5d8e9c9049e033ce7
[ "Apache-2.0" ]
permissive
reva/Activiti
06ef4a3323544faca903f83871b225cec52af7f7
1963fd71a414342189a94f6a1b8b2cb09eceb01e
refs/heads/master
2021-01-18T06:35:53.569802
2015-08-11T15:43:39
2015-08-11T15:43:39
37,851,078
0
0
null
2015-08-25T07:11:22
2015-06-22T11:13:35
Java
UTF-8
Java
false
false
7,374
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 org.activiti.engine.test.api.nonpublic; import java.util.List; import org.activiti5.engine.impl.EventSubscriptionQueryImpl; import org.activiti5.engine.impl.interceptor.Command; import org.activiti5.engine.impl.interceptor.CommandContext; import org.activiti5.engine.impl.persistence.entity.EventSubscriptionEntity; import org.activiti5.engine.impl.persistence.entity.MessageEventSubscriptionEntity; import org.activiti5.engine.impl.persistence.entity.SignalEventSubscriptionEntity; import org.activiti5.engine.impl.test.PluggableActivitiTestCase; import org.activiti5.engine.runtime.Execution; import org.activiti5.engine.runtime.ProcessInstance; import org.activiti5.engine.test.Deployment; /** * @author Daniel Meyer */ public class EventSubscriptionQueryTest extends PluggableActivitiTestCase { public void testQueryByEventName() { processEngineConfiguration.getCommandExecutor() .execute(new Command<Void>() { public Void execute(CommandContext commandContext) { MessageEventSubscriptionEntity messageEventSubscriptionEntity1 = new MessageEventSubscriptionEntity(); messageEventSubscriptionEntity1.setEventName("messageName"); messageEventSubscriptionEntity1.insert(); MessageEventSubscriptionEntity messageEventSubscriptionEntity2 = new MessageEventSubscriptionEntity(); messageEventSubscriptionEntity2.setEventName("messageName"); messageEventSubscriptionEntity2.insert(); MessageEventSubscriptionEntity messageEventSubscriptionEntity3 = new MessageEventSubscriptionEntity(); messageEventSubscriptionEntity3.setEventName("messageName2"); messageEventSubscriptionEntity3.insert(); return null; } }); List<EventSubscriptionEntity> list = newEventSubscriptionQuery() .eventName("messageName") .list(); assertEquals(2, list.size()); list = newEventSubscriptionQuery() .eventName("messageName2") .list(); assertEquals(1, list.size()); cleanDb(); } public void testQueryByEventType() { processEngineConfiguration.getCommandExecutor() .execute(new Command<Void>() { public Void execute(CommandContext commandContext) { MessageEventSubscriptionEntity messageEventSubscriptionEntity1 = new MessageEventSubscriptionEntity(); messageEventSubscriptionEntity1.setEventName("messageName"); messageEventSubscriptionEntity1.insert(); MessageEventSubscriptionEntity messageEventSubscriptionEntity2 = new MessageEventSubscriptionEntity(); messageEventSubscriptionEntity2.setEventName("messageName"); messageEventSubscriptionEntity2.insert(); SignalEventSubscriptionEntity signalEventSubscriptionEntity3 = new SignalEventSubscriptionEntity(); signalEventSubscriptionEntity3.setEventName("messageName2"); signalEventSubscriptionEntity3.insert(); return null; } }); List<EventSubscriptionEntity> list = newEventSubscriptionQuery() .eventType("signal") .list(); assertEquals(1, list.size()); list = newEventSubscriptionQuery() .eventType("message") .list(); assertEquals(2, list.size()); cleanDb(); } public void testQueryByActivityId() { processEngineConfiguration.getCommandExecutor() .execute(new Command<Void>() { public Void execute(CommandContext commandContext) { MessageEventSubscriptionEntity messageEventSubscriptionEntity1 = new MessageEventSubscriptionEntity(); messageEventSubscriptionEntity1.setEventName("messageName"); messageEventSubscriptionEntity1.setActivityId("someActivity"); messageEventSubscriptionEntity1.insert(); MessageEventSubscriptionEntity messageEventSubscriptionEntity2 = new MessageEventSubscriptionEntity(); messageEventSubscriptionEntity2.setEventName("messageName"); messageEventSubscriptionEntity2.setActivityId("someActivity"); messageEventSubscriptionEntity2.insert(); SignalEventSubscriptionEntity signalEventSubscriptionEntity3 = new SignalEventSubscriptionEntity(); signalEventSubscriptionEntity3.setEventName("messageName2"); signalEventSubscriptionEntity3.setActivityId("someOtherActivity"); signalEventSubscriptionEntity3.insert(); return null; } }); List<EventSubscriptionEntity> list = newEventSubscriptionQuery() .activityId("someOtherActivity") .list(); assertEquals(1, list.size()); list = newEventSubscriptionQuery() .activityId("someActivity") .eventType("message") .list(); assertEquals(2, list.size()); cleanDb(); } @Deployment public void testQueryByExecutionId() { // starting two instances: ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("catchSignal"); runtimeService.startProcessInstanceByKey("catchSignal"); // test query by process instance id EventSubscriptionEntity subscription = newEventSubscriptionQuery() .processInstanceId(processInstance.getId()) .singleResult(); assertNotNull(subscription); Execution executionWaitingForSignal = runtimeService.createExecutionQuery() .activityId("signalEvent") .processInstanceId(processInstance.getId()) .singleResult(); // test query by execution id EventSubscriptionEntity signalSubscription = newEventSubscriptionQuery() .executionId(executionWaitingForSignal.getId()) .singleResult(); assertNotNull(signalSubscription); assertEquals(signalSubscription, subscription); cleanDb(); } protected EventSubscriptionQueryImpl newEventSubscriptionQuery() { return new EventSubscriptionQueryImpl(processEngineConfiguration.getCommandExecutor()); } protected void cleanDb() { processEngineConfiguration.getCommandExecutor() .execute(new Command<Void>() { public Void execute(CommandContext commandContext) { final List<EventSubscriptionEntity> subscriptions = new EventSubscriptionQueryImpl(commandContext).list(); for (EventSubscriptionEntity eventSubscriptionEntity : subscriptions) { eventSubscriptionEntity.delete(); } return null; } }); } }
[ "joram.barrez@gmail.com" ]
joram.barrez@gmail.com
c3d743fe2f69cd72e7124e8aa728145ae240f6c8
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/25/25_ced9577695f820a4f27853d550a127808995b1ce/VomsPlugin/25_ced9577695f820a4f27853d550a127808995b1ce_VomsPlugin_t.java
b368c202442299ba0385eabadbd1a01567279553
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
4,045
java
package org.dcache.gplazma.plugins; import java.io.IOException; import java.security.Principal; import java.security.cert.CRLException; import java.security.cert.CertificateException; import java.security.cert.X509Certificate; import java.util.Properties; import java.util.Set; import java.util.Map; import org.dcache.auth.FQANPrincipal; import org.dcache.gplazma.AuthenticationException; import org.dcache.gplazma.SessionID; import org.glite.voms.PKIStore; import org.glite.voms.PKIVerifier; import org.glite.voms.VOMSValidator; import org.glite.voms.ac.ACValidator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.slf4j.MDC; /** * Validates and extracts FQANs from any X509Certificate certificate * chain in the public credentials. */ public class VomsPlugin implements GPlazmaAuthenticationPlugin { private static final Logger _log = LoggerFactory.getLogger(VomsPlugin.class); private static final String DEFAULT_CADIR = "/etc/grid-security/certificates"; private static final String DEFAULT_VOMSDIR = "/etc/grid-security/vomsdir"; private static final String CADIR = "cadir"; private static final String VOMSDIR = "vomsdir"; private final String _caDir; private final String _vomsDir; private final Map _mdcContext; private PKIVerifier _pkiVerifier; public VomsPlugin(Properties properties) { _caDir = properties.getProperty(CADIR, DEFAULT_CADIR); _vomsDir = properties.getProperty(VOMSDIR, DEFAULT_VOMSDIR); _mdcContext = MDC.getCopyOfContextMap(); } protected synchronized PKIVerifier getPkiVerifier() throws IOException, CertificateException, CRLException { if (_pkiVerifier == null) { /* Since PKIStore instantiates internal threads to * periodically reload the store, we reset the MDC to * avoid that messages logged by the refresh thread have * the wrong context. */ Map map = MDC.getCopyOfContextMap(); try { MDC.setContextMap(_mdcContext); _pkiVerifier = new PKIVerifier(new PKIStore(_vomsDir, PKIStore.TYPE_VOMSDIR), new PKIStore(_caDir, PKIStore.TYPE_CADIR)); } finally { MDC.setContextMap(map); } } return _pkiVerifier; } @Override public void authenticate(SessionID sID, Set<Object> publicCredentials, Set<Object> privateCredentials, Set<Principal> identifiedPrincipals) throws AuthenticationException { try { VOMSValidator validator = new VOMSValidator(null, new ACValidator(getPkiVerifier())); boolean primary = true; for (Object credential: publicCredentials) { if (credential instanceof X509Certificate[]) { X509Certificate[] chain = (X509Certificate[]) credential; validator.setClientChain(chain).validate(); for (String fqan: validator.getAllFullyQualifiedAttributes()) { identifiedPrincipals.add(new FQANPrincipal(fqan, primary)); primary = false; } } } if (primary) { throw new AuthenticationException("X509 certificate chain or VOMS extensions missing"); } } catch (IOException e) { _log.error("Failed to load PKI stores: {}", e.getMessage()); throw new AuthenticationException(e.getMessage(), e); } catch (CertificateException e) { throw new AuthenticationException(e.getMessage(), e); } catch (CRLException e) { throw new AuthenticationException(e.getMessage(), e); } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
03741d865496a82fa961e29419080b0371c3bf03
4adb6ed7c6043b537cb93e5589e27f6aa22696d4
/src/main/java/testing/BirdPlayer.java
ae938a9b0b3fcd4e3ad6d64917966b205c5906b9
[ "Apache-2.0" ]
permissive
faxe0603/salty-engine
dc1fe3002ace9a40109c1dd843af5138bc654a35
481c0eb34251b65077e62953f931eaa48f429731
refs/heads/master
2020-04-14T17:46:42.240254
2019-01-02T18:12:37
2019-01-02T18:12:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,939
java
/* * Copyright 2018 Malte Dostal * * 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 testing; import de.edgelord.saltyengine.components.FixedRate; import de.edgelord.saltyengine.components.animation.AnimationRender; import de.edgelord.saltyengine.components.animation.LinearTransformAnimations; import de.edgelord.saltyengine.core.Game; import de.edgelord.saltyengine.core.event.CollisionEvent; import de.edgelord.saltyengine.core.graphics.SaltyGraphics; import de.edgelord.saltyengine.effect.Animation; import de.edgelord.saltyengine.effect.Spritesheet; import de.edgelord.saltyengine.gameobject.GameObject; import de.edgelord.saltyengine.input.Input; import de.edgelord.saltyengine.io.serialization.Serializable; import de.edgelord.saltyengine.transform.Coordinates; import de.edgelord.saltyengine.transform.Vector2f; import de.edgelord.stdf.Species; import de.edgelord.stdf.reading.ValueToListConverter; import java.awt.image.BufferedImage; import java.util.List; public class BirdPlayer extends GameObject implements Serializable { private Animation animation; private Spritesheet spritesheet; private final float speed = 2500f; private LinearTransformAnimations keyFrameAnimationX = new LinearTransformAnimations(this, "mySuperAnimationX", LinearTransformAnimations.Control.X_POS); private LinearTransformAnimations keyFrameAnimationRotation = new LinearTransformAnimations(this, "mySuperAnimationRotation", LinearTransformAnimations.Control.ROTATION); private LinearTransformAnimations keyFrameAnimationWidth = new LinearTransformAnimations(this, "mySuperAnimationWidth", LinearTransformAnimations.Control.WIDTH); private LinearTransformAnimations keyFrameAnimationHeight = new LinearTransformAnimations(this, "mySuperAnimationHeight", LinearTransformAnimations.Control.HEIGHT); private AnimationRender animationRender; private FixedRate soundTiming = new FixedRate(this, "soundTiming", 350); public BirdPlayer(final Vector2f position, final BufferedImage spriteSheetImage) { super(position.getX(), position.getY(), 0, 0, "testing.birdPlayer"); initAnimations(spriteSheetImage); animationRender = new AnimationRender(this, "animationRender", animation, 75); getHitboxAsSimpleHitbox().setOffsetX(25); getHitboxAsSimpleHitbox().setOffsetY(12); getHitboxAsSimpleHitbox().setWidth(85); getHitboxAsSimpleHitbox().setHeight(75); addComponent(animationRender); addComponent(soundTiming); } private void initAnimations(final BufferedImage spriteSheetImage) { animation = new Animation(this); spritesheet = new Spritesheet(spriteSheetImage, 150, 101); animation.setFrames(spritesheet.getManualFrames(new Coordinates(1, 1), new Coordinates(2, 2), new Coordinates(3, 2), new Coordinates(4, 1))); keyFrameAnimationX.addKeyframe(3000, 0); keyFrameAnimationX.addKeyframe(9000, 700); keyFrameAnimationX.addKeyframe(10000, 1000); keyFrameAnimationRotation.addKeyframe(1500, 0); keyFrameAnimationRotation.addKeyframe(5000, 360); keyFrameAnimationRotation.addKeyframe(7500, 180); keyFrameAnimationRotation.addKeyframe(9000, 0); keyFrameAnimationWidth.addKeyframe(1000, 0); keyFrameAnimationWidth.addKeyframe(5000, 150); keyFrameAnimationHeight.addKeyframe(1000, 0); keyFrameAnimationHeight.addKeyframe(5000, 101); addComponent(keyFrameAnimationX); addComponent(keyFrameAnimationRotation); addComponent(keyFrameAnimationWidth); addComponent(keyFrameAnimationHeight); keyFrameAnimationX.start(); keyFrameAnimationRotation.start(); keyFrameAnimationWidth.start(); keyFrameAnimationHeight.start(); setMass(0.5f); } @Override public void initialize() { System.out.println("Info: Initialised a new BirdPlayer"); } @Override public void onCollision(final CollisionEvent e) { } @Override public void onFixedTick() { getTransform().setRotationCentreToMiddle(); accelerateTo(speed, Input.getInput()); if (Input.inputUp) { if (soundTiming.now()) { Tester.getAudioPlayer().play("bird_flap"); } } if (Input.inputDown) { if (soundTiming.now()) { Tester.getAudioPlayer().play("bird_flap"); } } if (Input.inputRight) { if (soundTiming.now()) { Tester.getAudioPlayer().play("bird_flap"); } } if (Input.inputLeft) { if (soundTiming.now()) { Tester.getAudioPlayer().play("bird_flap"); } } } @Override public void draw(final SaltyGraphics saltyGraphics) { } @Override public void serialize(Species species) { species.addTag("camPos", Game.getCamera().getX() + "," + Game.getCamera().getY()); } @Override public void deserialize(Species species) { List<String> camPos = ValueToListConverter.convertToList(species, "camPos", ","); /* Game.getCamera().setX(Float.valueOf(camPos.get(0))); Game.getCamera().setY(Float.valueOf(camPos.get(1))); */ } @Override public String getDataSetName() { return "player"; } }
[ "malte.dostal@gmail.com" ]
malte.dostal@gmail.com
72b680324bbd3244a8ed7384c35af0fc88690115
6e31cdbf8fcd7fad8f99d960cbd95c20ad01a241
/src/main/java/com/src/xygl/credit/controller/NdFamousFirmInfoController.java
6fd27e36593a5b1167aab8fb3a5c2e3f2fcbdba8
[]
no_license
7373/Enterprise-credit-management-system
7a49eef3e464198086b1b9c19e253d6e44fa8ad5
fea491a6e6906a09c6e17dd5cb73fd4b012f2bfb
refs/heads/master
2021-01-15T10:19:34.017169
2018-01-04T02:33:20
2018-01-04T02:33:20
99,578,469
6
2
null
null
null
null
UTF-8
Java
false
false
1,448
java
/* * Copyright© 2003-2016 浙江汇信科技有限公司, All Rights Reserved. */ package com.icinfo.ndrc.credit.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import com.icinfo.framework.core.web.BaseController; import com.icinfo.framework.mybatis.pagehelper.datatables.PageRequest; import com.icinfo.framework.mybatis.pagehelper.datatables.PageResponse; import com.icinfo.ndrc.credit.model.NdFamousFirmInfo; import com.icinfo.ndrc.credit.model.NdRewardInfo; import com.icinfo.ndrc.credit.service.INdFamousFirmInfoService; import com.icinfo.ndrc.credit.service.INdRewardInfoService; /** * 描述: nd_famous_firm_info 对应的Controller类.<br> * * @author framework generator * @date 2017年06月30日 */ @Controller @RequestMapping("/credit/ndFamousFirmInfo") public class NdFamousFirmInfoController extends BaseController { @Autowired INdFamousFirmInfoService ndFamousFirmInfoService; /** * 获取数据 * @author rah */ @RequestMapping({ "/data.json" }) @ResponseBody public PageResponse<NdFamousFirmInfo> doGetList(PageRequest request) throws Exception { List<NdFamousFirmInfo> data = ndFamousFirmInfoService.selectList(request); return new PageResponse<NdFamousFirmInfo>(data); } }
[ "15024454222@qq.com" ]
15024454222@qq.com
38a00d4a8c364804ec6628fb9a472a1b23c7faef
8326cb3ba3a288a9aff26f8019c2b5a9005e1db9
/C03_Aspects_and_AspectJ/src/main/java/pl/dmichalski/c03_08_injecting_to_domain_objects/Runner.java
8fea0b2ed7526a5f3daa17263976e2d476d248dd
[]
no_license
DanielMichalski/spring-recipe
a021b1dbbdf8436e0248066d5cd3e48ba3786d6c
a7a6d729291045896b3711fc091d7a2c35ae9231
refs/heads/master
2021-01-02T22:59:15.095297
2015-02-22T10:47:11
2015-02-22T10:47:11
28,300,796
3
1
null
null
null
null
UTF-8
Java
false
false
799
java
package pl.dmichalski.c03_08_injecting_to_domain_objects; import org.springframework.context.support.ClassPathXmlApplicationContext; import pl.dmichalski.c03_08_injecting_to_domain_objects.calculator.Complex; import pl.dmichalski.c03_08_injecting_to_domain_objects.calculator.ComplexCalculator; /** * Author: Daniel */ public class Runner { public static void main(String[] args) { ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("c03_08/spring_context.xml"); ComplexCalculator complexCalculator = context.getBean("complexCalculatorImpl", ComplexCalculator.class); complexCalculator.add(new Complex(1, 2), new Complex(2, 3)); complexCalculator.sub(new Complex(5, 8), new Complex(2, 3)); } }
[ "michalskidaniel2@gmail.com" ]
michalskidaniel2@gmail.com
b33441b96d9d62a0bb43495445a48ce9cc951b9d
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/LANG-13b-4-9-FEMO-WeightedSum:TestLen:CallDiversity/org/apache/commons/lang3/SerializationUtils$ClassLoaderAwareObjectInputStream_ESTest_scaffolding.java
463d27874d5da979e09c0678006f73bd87e963a6
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
481
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Mon Jan 20 12:58:45 UTC 2020 */ package org.apache.commons.lang3; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class SerializationUtils$ClassLoaderAwareObjectInputStream_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
c4c7b5daae165d82ede11661e76a53fbfdc6aa55
3982cc0a73455f8ce32dba330581b4a809988a17
/plugins/git4idea/src/git4idea/update/GitRebaseUpdater.java
c2f503d741cf7df71d8e53b06d08f3ab9b16261f
[ "Apache-2.0" ]
permissive
lshain-android-source/tools-idea
56d754089ebadd689b7d0e6400ef3be4255f6bc6
b37108d841684bcc2af45a2539b75dd62c4e283c
refs/heads/master
2016-09-05T22:31:43.471772
2014-07-09T07:58:59
2014-07-09T07:58:59
16,572,470
3
2
null
null
null
null
UTF-8
Java
false
false
6,764
java
/* * Copyright 2000-2011 JetBrains s.r.o. * * 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 git4idea.update; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.progress.ProgressIndicator; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.Ref; import com.intellij.openapi.vcs.VcsException; import com.intellij.openapi.vcs.update.UpdatedFiles; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.util.ui.UIUtil; import git4idea.GitBranch; import git4idea.GitUtil; import git4idea.Notificator; import git4idea.branch.GitBranchPair; import git4idea.commands.*; import git4idea.rebase.GitRebaseProblemDetector; import git4idea.rebase.GitRebaser; import git4idea.repo.GitRepository; import org.jetbrains.annotations.NotNull; import java.util.Collections; import java.util.Map; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicReference; /** * Handles 'git pull --rebase' */ public class GitRebaseUpdater extends GitUpdater { private static final Logger LOG = Logger.getInstance(GitRebaseUpdater.class.getName()); private final GitRebaser myRebaser; public GitRebaseUpdater(@NotNull Project project, @NotNull Git git, @NotNull VirtualFile root, @NotNull final Map<VirtualFile, GitBranchPair> trackedBranches, ProgressIndicator progressIndicator, UpdatedFiles updatedFiles) { super(project, git, root, trackedBranches, progressIndicator, updatedFiles); myRebaser = new GitRebaser(myProject, git, myProgressIndicator); } @Override public boolean isSaveNeeded() { return true; } protected GitUpdateResult doUpdate() { LOG.info("doUpdate "); String remoteBranch = getRemoteBranchToMerge(); final GitLineHandler rebaseHandler = new GitLineHandler(myProject, myRoot, GitCommand.REBASE); rebaseHandler.addParameters(remoteBranch); final GitRebaseProblemDetector rebaseConflictDetector = new GitRebaseProblemDetector(); rebaseHandler.addLineListener(rebaseConflictDetector); GitUntrackedFilesOverwrittenByOperationDetector untrackedFilesDetector = new GitUntrackedFilesOverwrittenByOperationDetector(myRoot); rebaseHandler.addLineListener(untrackedFilesDetector); String progressTitle = makeProgressTitle("Rebasing"); GitTask rebaseTask = new GitTask(myProject, rebaseHandler, progressTitle); rebaseTask.setProgressIndicator(myProgressIndicator); rebaseTask.setProgressAnalyzer(new GitStandardProgressAnalyzer()); final AtomicReference<GitUpdateResult> updateResult = new AtomicReference<GitUpdateResult>(); final AtomicBoolean failure = new AtomicBoolean(); rebaseTask.executeInBackground(true, new GitTaskResultHandlerAdapter() { @Override protected void onSuccess() { updateResult.set(GitUpdateResult.SUCCESS); } @Override protected void onCancel() { cancel(); updateResult.set(GitUpdateResult.CANCEL); } @Override protected void onFailure() { failure.set(true); } }); if (failure.get()) { updateResult.set(myRebaser.handleRebaseFailure(rebaseHandler, myRoot, rebaseConflictDetector, untrackedFilesDetector)); } return updateResult.get(); } @NotNull private String getRemoteBranchToMerge() { GitBranchPair gitBranchPair = myTrackedBranches.get(myRoot); GitBranch dest = gitBranchPair.getDest(); LOG.assertTrue(dest != null, String.format("Destination branch is null for source branch %s in %s", gitBranchPair.getBranch().getName(), myRoot)); return dest.getName(); } // TODO //if (!checkLocallyModified(myRoot)) { // cancel(); // updateSucceeded.set(false); //} // TODO: show at any case of update successfullibility, also don't show here but for all roots //if (mySkippedCommits.size() > 0) { // GitSkippedCommits.showSkipped(myProject, mySkippedCommits); //} public void cancel() { myRebaser.abortRebase(myRoot); myProgressIndicator.setText2("Refreshing files for the root " + myRoot.getPath()); myRoot.refresh(false, true); } /** * Check and process locally modified files * * @param root the project root * @param ex the exception holder */ protected boolean checkLocallyModified(final VirtualFile root) throws VcsException { final Ref<Boolean> cancelled = new Ref<Boolean>(false); UIUtil.invokeAndWaitIfNeeded(new Runnable() { public void run() { if (!GitUpdateLocallyModifiedDialog.showIfNeeded(myProject, root)) { cancelled.set(true); } } }); return !cancelled.get(); } @Override public String toString() { return "Rebase updater"; } /** * Tries to execute {@code git merge --ff-only}. * @return true, if everything is successful; false for any error (to let a usual "fair" update deal with it). */ public boolean fastForwardMerge() { LOG.info("Trying fast-forward merge for " + myRoot); GitRepository repository = GitUtil.getRepositoryManager(myProject).getRepositoryForRoot(myRoot); if (repository == null) { LOG.error("Repository is null for " + myRoot); return false; } try { markStart(myRoot); } catch (VcsException e) { LOG.info("Couldn't mark start for repository " + myRoot, e); return false; } GitCommandResult result = myGit.merge(repository, getRemoteBranchToMerge(), Collections.singletonList("--ff-only")); try { markEnd(myRoot); } catch (VcsException e) { // this is not critical, and update has already happened, // so we just notify the user about problems with collecting the updated changes. LOG.info("Couldn't mark end for repository " + myRoot, e); Notificator.getInstance(myProject). notifyWeakWarning("Couldn't collect the updated files info", String.format("Update of %s was successful, but we couldn't collect the updated changes because of an error", myRoot), null); } return result.success(); } }
[ "lshain.gyh@gmail.com" ]
lshain.gyh@gmail.com
f3022c2308b0d58b1b9dc69da207b6b3dbf3d082
a00326c0e2fc8944112589cd2ad638b278f058b9
/src/main/java/000/127/595/CWE134_Uncontrolled_Format_String__Property_format_72a.java
e75ce5286e8b16b517689b4386eff96c5f74a785
[]
no_license
Lanhbao/Static-Testing-for-Juliet-Test-Suite
6fd3f62713be7a084260eafa9ab221b1b9833be6
b095b11c7cb6d4a5bb2b76181e35d6ee00e96e68
refs/heads/master
2020-08-24T13:34:04.004149
2019-10-25T09:26:00
2019-10-25T09:26:00
216,822,684
0
1
null
2019-11-08T09:51:54
2019-10-22T13:37:13
Java
UTF-8
Java
false
false
2,815
java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__Property_format_72a.java Label Definition File: CWE134_Uncontrolled_Format_String.label.xml Template File: sources-sinks-72a.tmpl.java */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource: Property Read data from a system property * GoodSource: A hardcoded string * Sinks: format * GoodSink: dynamic formatted stdout with string defined * BadSink : dynamic formatted stdout without validation * Flow Variant: 72 Data flow: data passed in a Vector from one method to another in different source files in the same package * * */ import java.util.Vector; public class CWE134_Uncontrolled_Format_String__Property_format_72a extends AbstractTestCase { public void bad() throws Throwable { String data; /* get system property user.home */ /* POTENTIAL FLAW: Read data from a system property */ data = System.getProperty("user.home"); Vector<String> dataVector = new Vector<String>(5); dataVector.add(0, data); dataVector.add(1, data); dataVector.add(2, data); (new CWE134_Uncontrolled_Format_String__Property_format_72b()).badSink(dataVector ); } public void good() throws Throwable { goodG2B(); goodB2G(); } /* goodG2B() - use GoodSource and BadSink */ private void goodG2B() throws Throwable { String data; /* FIX: Use a hardcoded string */ data = "foo"; Vector<String> dataVector = new Vector<String>(5); dataVector.add(0, data); dataVector.add(1, data); dataVector.add(2, data); (new CWE134_Uncontrolled_Format_String__Property_format_72b()).goodG2BSink(dataVector ); } /* goodB2G() - use BadSource and GoodSink */ private void goodB2G() throws Throwable { String data; /* get system property user.home */ /* POTENTIAL FLAW: Read data from a system property */ data = System.getProperty("user.home"); Vector<String> dataVector = new Vector<String>(5); dataVector.add(0, data); dataVector.add(1, data); dataVector.add(2, data); (new CWE134_Uncontrolled_Format_String__Property_format_72b()).goodB2GSink(dataVector ); } /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException { mainFromParent(args); } }
[ "anhtluet12@gmail.com" ]
anhtluet12@gmail.com
9d935bbe2a369c8ab278ae680ff5d80de52aed0d
38a6795a6a384e43b8d1ae8c7fd8c6a40671f83f
/youlai-admin/admin-boot/src/main/java/com/youlai/admin/service/impl/SysRolePermissionServiceImpl.java
309a5a97d624ced10167bc5c9d937707b2ba8a27
[ "Apache-2.0" ]
permissive
zhlog1024/youlai-mall
43a53c7591ddc1cf1fbc6a644f06e5f42ea3b830
7cd5ebe9f48e2c87e3cb0f15356f1ff95f81e7ea
refs/heads/master
2023-07-11T00:31:20.174578
2021-08-14T12:20:25
2021-08-14T12:20:25
394,536,585
0
0
Apache-2.0
2021-08-14T12:20:26
2021-08-10T05:33:36
null
UTF-8
Java
false
false
2,711
java
package com.youlai.admin.service.impl; import cn.hutool.core.collection.CollectionUtil; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.youlai.admin.mapper.SysRolePermissionMapper; import com.youlai.admin.pojo.dto.RolePermissionDTO; import com.youlai.admin.pojo.entity.SysRolePermission; import com.youlai.admin.service.ISysRolePermissionService; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; @Service public class SysRolePermissionServiceImpl extends ServiceImpl<SysRolePermissionMapper, SysRolePermission> implements ISysRolePermissionService { @Override public List<Long> listPermissionId(Long roleId) { return this.baseMapper.listPermissionId(null, roleId); } @Override public List<Long> listPermissionId(Long menuId, Long roleId) { return this.baseMapper.listPermissionId(menuId, roleId); } @Override public boolean update(RolePermissionDTO rolePermission) { boolean result = true; List<Long> permissionIds = rolePermission.getPermissionIds(); Long menuId = rolePermission.getMenuId(); Long roleId = rolePermission.getRoleId(); List<Long> dbPermissionIds = this.baseMapper.listPermissionId(menuId, roleId); // 删除数据库存在此次提交不存在的 if (CollectionUtil.isNotEmpty(dbPermissionIds)) { List<Long> removePermissionIds = dbPermissionIds.stream().filter(id -> !permissionIds.contains(id)).collect(Collectors.toList()); if (CollectionUtil.isNotEmpty(removePermissionIds)) { this.remove(new LambdaQueryWrapper<SysRolePermission>().eq(SysRolePermission::getRoleId, roleId) .in(SysRolePermission::getPermissionId, removePermissionIds)); } } // 插入数据库不存在的 if (CollectionUtil.isNotEmpty(permissionIds)) { List<Long> insertPermissionIds = permissionIds.stream().filter(id -> !dbPermissionIds.contains(id)).collect(Collectors.toList()); if (CollectionUtil.isNotEmpty(insertPermissionIds)) { List<SysRolePermission> roleMenus = new ArrayList<>(); for (Long insertPermissionId : insertPermissionIds) { SysRolePermission sysRolePermission = new SysRolePermission().setRoleId(roleId).setPermissionId(insertPermissionId); roleMenus.add(sysRolePermission); } result = this.saveBatch(roleMenus); } } return result; } }
[ "1490493387@qq.com" ]
1490493387@qq.com
ab70a4456f068d88466ddab97567896eba75c6cf
2b8c47031dddd10fede8bcf16f8db2b52521cb4f
/subject SPLs and test cases/Lampiro(4)/Lampiro4_P2/evosuite-tests2/it/yup/xmpp/Group_ESTest_scaffolding2.java
037cd0c1c1160370bcf29447969fe771c4eeb04f
[]
no_license
psjung/SRTST_experiments
6f1ff67121ef43c00c01c9f48ce34f31724676b6
40961cb4b4a1e968d1e0857262df36832efb4910
refs/heads/master
2021-06-20T04:45:54.440905
2019-09-06T04:05:38
2019-09-06T04:05:38
206,693,757
1
0
null
2020-10-13T15:50:41
2019-09-06T02:10:06
Java
UTF-8
Java
false
false
1,460
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sun Jul 01 12:34:07 KST 2018 */ package it.yup.xmpp; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class Group_ESTest_scaffolding2 { @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 = "it.yup.xmpp.Group"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); org.evosuite.runtime.GuiSupport.setHeadless(); org.evosuite.runtime.agent.InstrumentingAgent.activate(); } @After public void doneWithTestCase(){ threadStopper.killAndJoinClientThreads(); org.evosuite.runtime.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } }
[ "psjung@kaist.ac.kr" ]
psjung@kaist.ac.kr
0a35280645c9b5c859bf554ad2393985fd2ee1b6
f81b774e5306ac01d2c6c1289d9e01b5264aae70
/chrome/browser/share/android/javatests/src/org/chromium/chrome/browser/share/screenshot/ScreenshotShareSheetMediatorUnitTest.java
7750e9fba2a5c7ba2a4ec8abc9f6d11627ea2c3a
[ "BSD-3-Clause" ]
permissive
waaberi/chromium
a4015160d8460233b33fe1304e8fd9960a3650a9
6549065bd785179608f7b8828da403f3ca5f7aab
refs/heads/master
2022-12-13T03:09:16.887475
2020-09-05T20:29:36
2020-09-05T20:29:36
293,153,821
1
1
BSD-3-Clause
2020-09-05T21:02:50
2020-09-05T21:02:49
null
UTF-8
Java
false
false
5,238
java
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.share.screenshot; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyLong; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.verify; import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.net.Uri; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestRule; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import org.robolectric.annotation.Config; import org.chromium.base.Callback; import org.chromium.base.test.BaseRobolectricTestRunner; import org.chromium.chrome.browser.flags.ChromeFeatureList; import org.chromium.chrome.browser.share.share_sheet.ChromeOptionShareCallback; import org.chromium.chrome.browser.tab.Tab; import org.chromium.chrome.test.util.browser.Features; import org.chromium.ui.modelutil.PropertyModel; /** * Tests for {@link ScreenshotShareSheetMediator}. */ @RunWith(BaseRobolectricTestRunner.class) @Config(manifest = Config.NONE) // clang-format off @Features.EnableFeatures(ChromeFeatureList.CHROME_SHARE_SCREENSHOT) public class ScreenshotShareSheetMediatorUnitTest { // clang-format on @Rule public TestRule mProcessor = new Features.JUnitProcessor(); @Mock Runnable mDeleteRunnable; @Mock Runnable mSaveRunnable; @Mock Callback<Runnable> mInstallRunnable; @Mock Activity mContext; @Mock Tab mTab; @Mock ChromeOptionShareCallback mShareCallback; private PropertyModel mModel; private class MockScreenshotShareSheetMediator extends ScreenshotShareSheetMediator { private boolean mGenerateTemporaryUriFromBitmapCalled; MockScreenshotShareSheetMediator(Context context, PropertyModel propertyModel, Runnable deleteRunnable, Runnable saveRunnable, Tab tab, ChromeOptionShareCallback chromeOptionShareCallback, Callback<Runnable> installCallback) { super(context, propertyModel, deleteRunnable, saveRunnable, tab, chromeOptionShareCallback, installCallback); } @Override protected void generateTemporaryUriFromBitmap( Context context, String fileName, Bitmap bitmap, Callback<Uri> callback) { mGenerateTemporaryUriFromBitmapCalled = true; } public boolean generateTemporaryUriFromBitmapCalled() { return mGenerateTemporaryUriFromBitmapCalled; } }; private MockScreenshotShareSheetMediator mMediator; @Before public void setUp() { MockitoAnnotations.initMocks(this); doNothing().when(mDeleteRunnable).run(); doNothing().when(mSaveRunnable).run(); doNothing().when(mShareCallback).showThirdPartyShareSheet(any(), any(), anyLong()); doReturn(true).when(mTab).isInitialized(); mModel = new PropertyModel(ScreenshotShareSheetViewProperties.ALL_KEYS); mMediator = new MockScreenshotShareSheetMediator(mContext, mModel, mDeleteRunnable, mSaveRunnable, mTab, mShareCallback, mInstallRunnable); } @Test public void onClickDelete() { Callback<Integer> callback = mModel.get(ScreenshotShareSheetViewProperties.NO_ARG_OPERATION_LISTENER); callback.onResult(ScreenshotShareSheetViewProperties.NoArgOperation.DELETE); verify(mDeleteRunnable).run(); } @Test public void onClickSave() { Callback<Integer> callback = mModel.get(ScreenshotShareSheetViewProperties.NO_ARG_OPERATION_LISTENER); callback.onResult(ScreenshotShareSheetViewProperties.NoArgOperation.SAVE); verify(mSaveRunnable).run(); } @Test public void onClickShare() { Callback<Integer> callback = mModel.get(ScreenshotShareSheetViewProperties.NO_ARG_OPERATION_LISTENER); callback.onResult(ScreenshotShareSheetViewProperties.NoArgOperation.SHARE); Assert.assertTrue(mMediator.generateTemporaryUriFromBitmapCalled()); verify(mDeleteRunnable).run(); } @Test public void onClickShareUninitialized() { doReturn(false).when(mTab).isInitialized(); Callback<Integer> callback = mModel.get(ScreenshotShareSheetViewProperties.NO_ARG_OPERATION_LISTENER); callback.onResult(ScreenshotShareSheetViewProperties.NoArgOperation.SHARE); Assert.assertFalse(mMediator.generateTemporaryUriFromBitmapCalled()); } @Test public void onClickInstall() { Callback<Integer> callback = mModel.get(ScreenshotShareSheetViewProperties.NO_ARG_OPERATION_LISTENER); callback.onResult(ScreenshotShareSheetViewProperties.NoArgOperation.INSTALL); verify(mInstallRunnable).onResult(any()); } @After public void tearDown() {} }
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
e3e05f74d53b988aface6f18aa70df39bacdbb46
c4bf4e2855a80547d630ef672c53bb76cb16bebe
/jscl/src/test/java/jscl/math/operator/SumTest.java
0e6be747ed63825de25f886bae83a3e24bac018b
[]
no_license
benluo/android-calculatorpp
93abfa28e6fbb677e29b018d2b518b63891b79fb
fe4b82cadbc0bc6e0cfd9625bea677b488dfa7c8
refs/heads/master
2021-01-22T13:30:26.928679
2016-04-02T23:20:02
2016-04-02T23:20:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
897
java
package jscl.math.operator; import jscl.JsclMathEngine; import jscl.math.function.Constant; import jscl.math.function.ExtendedConstant; import org.junit.Assert; import org.junit.Test; /** * User: serso * Date: 1/30/12 * Time: 4:17 PM */ public class SumTest { @Test public void testExp() throws Exception { final JsclMathEngine me = JsclMathEngine.getInstance(); final ExtendedConstant.Builder x = new ExtendedConstant.Builder(new Constant("x"), 2d); me.getConstantsRegistry().addOrUpdate(x.create()); final ExtendedConstant.Builder i = new ExtendedConstant.Builder(new Constant("i"), (String) null); me.getConstantsRegistry().addOrUpdate(i.create()); Assert.assertEquals("51.735296462438285", me.evaluate("Σ((1+x/i)^i, i, 1, 10)")); Assert.assertEquals("686.0048440525586", me.evaluate("Σ((1+x/i)^i, i, 1, 100)")); } }
[ "se.solovyev@gmail.com" ]
se.solovyev@gmail.com
d2bb8f6de7c4731476af69af11ba7a919c47e42b
183d057ee3f1255551c9f2bc6080dfcc23262639
/app/src/main/java/com/cliffex/videomaker/videoeditor/introvd/template/component/videofetcher/view/C5503b.java
57236076f63285ee33b934a0ec37bb4c4cbea68c
[]
no_license
datcoind/VideoMaker-1
5567ff713f771b19154ba463469b97d18d0164ec
bcd6697db53b1e76ee510e6e805e46b24a4834f4
refs/heads/master
2023-03-19T20:33:16.016544
2019-09-27T13:55:07
2019-09-27T13:55:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,416
java
package com.introvd.template.component.videofetcher.view; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.view.Window; import android.view.WindowManager.LayoutParams; import android.widget.Toast; import com.introvd.template.component.videofetcher.C5355a; import com.introvd.template.component.videofetcher.R; import com.introvd.template.component.videofetcher.p237a.C5357b; import com.introvd.template.component.videofetcher.p239c.C5391a; import com.introvd.template.component.videofetcher.p240d.C5409f; import com.introvd.template.component.videofetcher.p240d.C5410g; import com.introvd.template.component.videofetcher.utils.C5489g; import com.introvd.template.component.videofetcher.utils.C5496j; import java.util.ArrayList; import java.util.List; /* renamed from: com.introvd.template.component.videofetcher.view.b */ public class C5503b extends Dialog { private List<C5391a> cmJ; private VideoDownloadRecyclerView cmK; private C5410g cmL; public C5503b(Context context, List<C5391a> list) { super(context, R.style.fetcher_download_dialog); this.cmJ = list; } /* access modifiers changed from: private */ /* renamed from: a */ public void m14935a(C5391a aVar, FetcherRoundView fetcherRoundView) { C5489g.m14902d("ruomiz", "开始下载dialog"); if (!C5496j.isNetworkAvaliable(getContext())) { Toast.makeText(getContext(), getContext().getString(R.string.video_fetcher_str_network_unavailable), 0).show(); } if (this.cmL != null) { this.cmL.clearAnimation(); } if (isShowing()) { dismiss(); } Toast.makeText(getContext(), getContext().getString(R.string.video_fetcher_str_start_download), 0).show(); C5357b.m14586ZJ().mo26925a(getContext(), aVar.getName(), aVar.getAddress(), C5355a.ciX, aVar.cka, null); } private void aaG() { Window window = getWindow(); LayoutParams attributes = window.getAttributes(); window.getDecorView().setPadding(0, 0, 0, 0); attributes.gravity = 80; attributes.width = -1; attributes.height = -2; attributes.windowAnimations = R.style.dialog_anim; window.setAttributes(attributes); } /* renamed from: a */ public void mo27217a(C5410g gVar) { this.cmL = gVar; } /* renamed from: e */ public void mo27218e(ArrayList<C5391a> arrayList) { this.cmJ = arrayList; if (this.cmK != null) { this.cmK.mo27212aC(this.cmJ); } } /* access modifiers changed from: protected */ public void onCreate(Bundle bundle) { super.onCreate(bundle); setContentView(R.layout.fetcher_ppw_download); aaG(); setCanceledOnTouchOutside(true); this.cmK = (VideoDownloadRecyclerView) findViewById(R.id.ppw_recycle); this.cmK.mo27212aC(this.cmJ); this.cmK.setItemClickListener(new C5409f() { /* renamed from: a */ public void mo27036a(int i, FetcherRoundView fetcherRoundView, C5391a aVar) { StringBuilder sb = new StringBuilder(); sb.append("开始下载"); sb.append(i); C5489g.m14902d("ruomiz", sb.toString()); C5503b.this.m14935a(aVar, fetcherRoundView); } }); } }
[ "bhagat.singh@cliffex.com" ]
bhagat.singh@cliffex.com
e65e1e74a9467c68ca29044db1dc9becabdde82d
95f7449a6e0a91cf251e3f259da9518e69260550
/src/com/beini/mapper/ClassBeanMapper.java
d6950c0a64f6a93a4702e2e3d396b942ad0cbeac
[]
no_license
hwhVm/SpringMVC
0943244f2f7a50d90829fd71c2cd9ed48956db6d
cc1453c46ce36e70a6924f579c3639f3d75f4917
refs/heads/master
2020-04-05T10:14:42.233082
2018-02-11T05:51:48
2018-02-11T05:51:48
87,791,814
1
0
null
null
null
null
UTF-8
Java
false
false
274
java
package com.beini.mapper; import com.beini.bean.ClassBean; import org.apache.ibatis.annotations.Param; /** * Created by beini on 2017/4/15. */ public interface ClassBeanMapper { //查询一年级的学生信息 ClassBean queryClassById(@Param("id") int id); }
[ "874140704@qq.com" ]
874140704@qq.com
7a2536f4b1a9d5fb2f5017290bb357b39f0d82e0
498dd2daff74247c83a698135e4fe728de93585a
/clients/google-api-services-gamesConfiguration/v1configuration/1.29.2/com/google/api/services/gamesConfiguration/model/GamesNumberFormatConfiguration.java
2f80b2f46e104380bc6f993ce52c5630d2268e5c
[ "Apache-2.0" ]
permissive
googleapis/google-api-java-client-services
0e2d474988d9b692c2404d444c248ea57b1f453d
eb359dd2ad555431c5bc7deaeafca11af08eee43
refs/heads/main
2023-08-23T00:17:30.601626
2023-08-20T02:16:12
2023-08-20T02:16:12
147,399,159
545
390
Apache-2.0
2023-09-14T02:14:14
2018-09-04T19:11:33
null
UTF-8
Java
false
false
5,648
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. */ /* * This code was generated by https://github.com/googleapis/google-api-java-client-services/ * Modify at your own risk. */ package com.google.api.services.gamesConfiguration.model; /** * This is a JSON template for a number format resource. * * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Google Play Game Services Publishing API. For a * detailed explanation see: * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> * </p> * * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class GamesNumberFormatConfiguration extends com.google.api.client.json.GenericJson { /** * The curreny code string. Only used for CURRENCY format type. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String currencyCode; /** * The number of decimal places for number. Only used for NUMERIC format type. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer numDecimalPlaces; /** * The formatting for the number. Possible values are: - "NUMERIC" - Numbers are formatted to * have no digits or a fixed number of digits after the decimal point according to locale. An * optional custom unit can be added. - "TIME_DURATION" - Numbers are formatted to hours, minutes * and seconds. - "CURRENCY" - Numbers are formatted to currency according to locale. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String numberFormatType; /** * An optional suffix for the NUMERIC format type. These strings follow the same plural rules as * all Android string resources. * The value may be {@code null}. */ @com.google.api.client.util.Key private GamesNumberAffixConfiguration suffix; /** * The curreny code string. Only used for CURRENCY format type. * @return value or {@code null} for none */ public java.lang.String getCurrencyCode() { return currencyCode; } /** * The curreny code string. Only used for CURRENCY format type. * @param currencyCode currencyCode or {@code null} for none */ public GamesNumberFormatConfiguration setCurrencyCode(java.lang.String currencyCode) { this.currencyCode = currencyCode; return this; } /** * The number of decimal places for number. Only used for NUMERIC format type. * @return value or {@code null} for none */ public java.lang.Integer getNumDecimalPlaces() { return numDecimalPlaces; } /** * The number of decimal places for number. Only used for NUMERIC format type. * @param numDecimalPlaces numDecimalPlaces or {@code null} for none */ public GamesNumberFormatConfiguration setNumDecimalPlaces(java.lang.Integer numDecimalPlaces) { this.numDecimalPlaces = numDecimalPlaces; return this; } /** * The formatting for the number. Possible values are: - "NUMERIC" - Numbers are formatted to * have no digits or a fixed number of digits after the decimal point according to locale. An * optional custom unit can be added. - "TIME_DURATION" - Numbers are formatted to hours, minutes * and seconds. - "CURRENCY" - Numbers are formatted to currency according to locale. * @return value or {@code null} for none */ public java.lang.String getNumberFormatType() { return numberFormatType; } /** * The formatting for the number. Possible values are: - "NUMERIC" - Numbers are formatted to * have no digits or a fixed number of digits after the decimal point according to locale. An * optional custom unit can be added. - "TIME_DURATION" - Numbers are formatted to hours, minutes * and seconds. - "CURRENCY" - Numbers are formatted to currency according to locale. * @param numberFormatType numberFormatType or {@code null} for none */ public GamesNumberFormatConfiguration setNumberFormatType(java.lang.String numberFormatType) { this.numberFormatType = numberFormatType; return this; } /** * An optional suffix for the NUMERIC format type. These strings follow the same plural rules as * all Android string resources. * @return value or {@code null} for none */ public GamesNumberAffixConfiguration getSuffix() { return suffix; } /** * An optional suffix for the NUMERIC format type. These strings follow the same plural rules as * all Android string resources. * @param suffix suffix or {@code null} for none */ public GamesNumberFormatConfiguration setSuffix(GamesNumberAffixConfiguration suffix) { this.suffix = suffix; return this; } @Override public GamesNumberFormatConfiguration set(String fieldName, Object value) { return (GamesNumberFormatConfiguration) super.set(fieldName, value); } @Override public GamesNumberFormatConfiguration clone() { return (GamesNumberFormatConfiguration) super.clone(); } }
[ "chingor@google.com" ]
chingor@google.com
44ca502da2b1d909494660fdafe4eb230a30fd94
638870a60546f127f1b7a7d3b736690ce65a6504
/samples/server/petstore/java-play-framework-no-wrap-calls/app/controllers/UserApiController.java
5f5878b7ccfda04e3ecba7bab124e322593fadbc
[ "Apache-2.0" ]
permissive
tbc-beren/swagger-codegen
aa4c35bca81d6f6f160a157fc311a74bbf9038a0
b0333af8bdb017a41f9f531229d964c9a37ee0bc
refs/heads/master
2021-01-16T07:36:52.693253
2017-08-11T00:50:36
2017-08-11T00:50:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,251
java
package controllers; import java.util.List; import apimodels.User; import play.mvc.Controller; import play.mvc.Result; import play.mvc.Http; import java.util.List; import java.util.Map; import java.util.ArrayList; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.JsonNode; import com.google.inject.Inject; import java.io.IOException; import swagger.SwaggerUtils; import com.fasterxml.jackson.core.type.TypeReference; import javax.validation.constraints.*; public class UserApiController extends Controller { private final UserApiControllerImpInterface imp; private final ObjectMapper mapper; @Inject private UserApiController(UserApiControllerImpInterface imp) { this.imp = imp; mapper = new ObjectMapper(); } public Result createUser() throws Exception { JsonNode nodebody = request().body().asJson(); User body; body = mapper.readValue(nodebody.toString(), User.class); body.validate(); imp.createUser(body); return ok(); } public Result createUsersWithArrayInput() throws Exception { JsonNode nodebody = request().body().asJson(); List<User> body; body = mapper.readValue(nodebody.toString(), new TypeReference<List<User>>(){}); for (User curItem : body) { curItem.validate(); } imp.createUsersWithArrayInput(body); return ok(); } public Result createUsersWithListInput() throws Exception { JsonNode nodebody = request().body().asJson(); List<User> body; body = mapper.readValue(nodebody.toString(), new TypeReference<List<User>>(){}); for (User curItem : body) { curItem.validate(); } imp.createUsersWithListInput(body); return ok(); } public Result deleteUser(String username) throws Exception { imp.deleteUser(username); return ok(); } public Result getUserByName(String username) throws Exception { User obj = imp.getUserByName(username); obj.validate(); JsonNode result = mapper.valueToTree(obj); return ok(result); } public Result loginUser() throws Exception { String valueusername = request().getQueryString("username"); String username; username = (String)valueusername; String valuepassword = request().getQueryString("password"); String password; password = (String)valuepassword; String obj = imp.loginUser(username, password); JsonNode result = mapper.valueToTree(obj); return ok(result); } public Result logoutUser() throws Exception { imp.logoutUser(); return ok(); } public Result updateUser(String username) throws Exception { JsonNode nodebody = request().body().asJson(); User body; body = mapper.readValue(nodebody.toString(), User.class); body.validate(); imp.updateUser(username, body); return ok(); } }
[ "wing328hk@gmail.com" ]
wing328hk@gmail.com
cbf7c1109df97728cc2d935a4c0fdc47f2ca2048
837a002eb1f53ac2f0d5e1194137a4a097bc113f
/webapp/wms/WEB-INF/src/jp/co/daifuku/wms/YkkGMAX/PageController/TicketNoViewPager.java
655f638b23f0c6996aca47f45104bc5c627a7bf0
[]
no_license
FlashChenZhi/ykk_sz_gm
560e476af244f0eab17508c3e0f701df768b5d36
b3cdd25e96be72201ede5aaf0c1897a4c38b07f2
refs/heads/master
2021-09-27T18:48:19.800606
2018-11-10T14:24:48
2018-11-10T14:24:48
156,988,072
0
1
null
null
null
null
UTF-8
Java
false
false
2,913
java
package jp.co.daifuku.wms.YkkGMAX.PageController; import java.sql.Connection; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import jp.co.daifuku.bluedog.ui.control.ListCell; import jp.co.daifuku.bluedog.ui.control.Page; import jp.co.daifuku.bluedog.ui.control.Pager; import jp.co.daifuku.wms.YkkGMAX.Entities.TicketNoViewEntity; import jp.co.daifuku.wms.YkkGMAX.Exceptions.YKKDBException; import jp.co.daifuku.wms.YkkGMAX.Exceptions.YKKSQLException; import jp.co.daifuku.wms.YkkGMAX.ListProxy.TicketNoViewListProxy; import jp.co.daifuku.wms.YkkGMAX.Popup.TicketNoViewBusiness; import jp.co.daifuku.wms.YkkGMAX.Utils.ASRSInfoCentre; import jp.co.daifuku.wms.YkkGMAX.Utils.ConnectionManager; import jp.co.daifuku.wms.YkkGMAX.Utils.Debugprinter.DebugLevel; import jp.co.daifuku.wms.YkkGMAX.Utils.Debugprinter.DebugPrinter; public class TicketNoViewPager implements IPageable { private final String TICKET_NO = "TICKET_NO"; private Page page = null; private Pager pager = null; public TicketNoViewPager(Page page, Pager pager) { this.page = page; this.pager = pager; } public List getList(int beginningPos, int length) throws YKKDBException, YKKSQLException { Connection conn = null; List ticketNoViewEntityList = new ArrayList(); try { conn = ConnectionManager.getConnection(); ASRSInfoCentre centre = new ASRSInfoCentre(conn); ticketNoViewEntityList = centre.getTicketNoViewList(getTicketNo(), beginningPos, length); } finally { if (conn != null) { try { conn.close(); } catch (SQLException e) { DebugPrinter.print(DebugLevel.ERROR, e.getMessage()); YKKDBException ex = new YKKDBException(); ex.setResourceKey("7200002"); throw ex; } } } return ticketNoViewEntityList; } public String getTicketNo() { return (String) page.getSession().getAttribute(TICKET_NO); } public ListCell getListCell() { return ((TicketNoViewBusiness) page).lst_TicketNoView; } public Pager getPager() { return pager; } public int getTotalCount() throws YKKDBException, YKKSQLException { Connection conn = null; int totalCount = 0; try { conn = ConnectionManager.getConnection(); ASRSInfoCentre centre = new ASRSInfoCentre(conn); totalCount = centre.getTicketNoViewCount(getTicketNo()); } finally { if (conn != null) { try { conn.close(); } catch (SQLException e) { DebugPrinter.print(DebugLevel.ERROR, e.getMessage()); YKKDBException ex = new YKKDBException(); ex.setResourceKey("7200002"); throw ex; } } } return totalCount; } public void setRowValue(ListCell listCell, int rowNum, Object object) { TicketNoViewListProxy listProxy = new TicketNoViewListProxy(listCell); TicketNoViewEntity entity = (TicketNoViewEntity) object; listProxy.setRowValueByEntity(entity, rowNum); } }
[ "yutao81@live.cn" ]
yutao81@live.cn
66ecaf8c0fa3c76c826d816c5c21c9bd331574d1
3e48ca2af1000a8b994e3ef6e71ffd5dd03063a9
/app/src/main/java/com/samsung/register/PhoneRegisterDataEditNicknameFragment.java
9c5d3875da71615f792566ff3125711f473aeefd
[]
no_license
haifeng2016/isharecar
1b1107b0818881f71faff49ef38418bb6c08c044
446fb15a2fc3824571979ea0092693ce69296df8
refs/heads/master
2021-01-01T15:53:35.366091
2017-07-19T14:28:49
2017-07-19T14:28:49
97,725,888
0
0
null
null
null
null
UTF-8
Java
false
false
2,167
java
package com.samsung.register; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import com.samsung.isharecar.FragmentBase; import com.samsung.isharecar.R; public class PhoneRegisterDataEditNicknameFragment extends FragmentBase { private Button nicknamesave; private View view; private String nickname; private EditText editText; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { view = inflater.inflate(R.layout.fragment_phoneregister_dataedit_nickname, container,false); //设置标题栏 dataEditActivity.childViewActionBarStyle(R.string.nickname); Bundle arguments = getArguments(); String hintText = arguments.getString("HintText"); editText = (EditText) view.findViewById(R.id.nickname); editText.setText(hintText); editText.setSelection(hintText.length()); nicknamesave = (Button) view.findViewById(R.id.nicknamesave); nicknamesave.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { nickname = editText.getText().toString(); TextView nicknameTextView = (TextView) dataEditActivity.findViewById(R.id.nicknameinfo); dataEditActivity.contact.set_name(nickname); //update the nick name dataEditActivity.mBaseData.updateUser(dataEditActivity,dataEditActivity.contact); if (nicknameTextView != null) { nicknameTextView.setText(nickname); } dataEditActivity.doPopFragmentAction(); } }); return view; } @Override public void onBackPressed() { dataEditActivity.doPopFragmentAction(); } }
[ "you@example.com" ]
you@example.com
95ebcd9d8367861a062f60be09acc6c79e5223b6
8048dc07dbbe351a8624eb8870958e20b24d9141
/spring-restdocs-core/src/main/java/org/springframework/restdocs/operation/AbstractOperationMessage.java
0146e419bb68632b023d3e5880e3f2f5999180cd
[ "Apache-2.0" ]
permissive
hubelias/spring-restdocs
b985749a18ecfddc7788645e69de5ce3a30da39a
080156432142bae24861c19b0805bb36dd7642c9
refs/heads/master
2022-02-21T06:09:14.119190
2019-08-13T09:16:53
2019-08-13T09:16:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,892
java
/* * Copyright 2014-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.restdocs.operation; import java.nio.charset.Charset; import java.util.Arrays; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; /** * Abstract base class for operation requests, request parts, and responses. * * @author Andy Wilkinson */ abstract class AbstractOperationMessage { private final byte[] content; private final HttpHeaders headers; AbstractOperationMessage(byte[] content, HttpHeaders headers) { this.content = (content != null) ? content : new byte[0]; this.headers = headers; } public byte[] getContent() { return Arrays.copyOf(this.content, this.content.length); } public HttpHeaders getHeaders() { return HttpHeaders.readOnlyHttpHeaders(this.headers); } public String getContentAsString() { if (this.content.length > 0) { Charset charset = extractCharsetFromContentTypeHeader(); return (charset != null) ? new String(this.content, charset) : new String(this.content); } return ""; } private Charset extractCharsetFromContentTypeHeader() { if (this.headers == null) { return null; } MediaType contentType = this.headers.getContentType(); if (contentType == null) { return null; } return contentType.getCharset(); } }
[ "awilkinson@pivotal.io" ]
awilkinson@pivotal.io
62b248529fcd5d40dd1beb436daf11804aede245
a993b98793857e93de978a6ef55103a37b414bbf
/content/public/android/java/src/org/chromium/content/app/PrivilegedProcessService17.java
98c3534304d853bb0da04d6242d63f50219d510c
[ "BSD-3-Clause" ]
permissive
goby/chromium
339e6894f9fb38cc324baacec8d6f38fe016ec80
07aaa7750898bf9bdbff8163959d96a0bc1fe038
refs/heads/master
2023-01-10T18:22:31.622284
2017-01-09T11:22:55
2017-01-09T11:22:55
47,946,272
1
0
null
2017-01-09T11:22:56
2015-12-14T01:57:57
null
UTF-8
Java
false
false
410
java
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.content.app; /** * This is needed to register multiple PrivilegedProcess services so that we can have * more than one privileged process. */ public class PrivilegedProcessService17 extends PrivilegedProcessService { }
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
432f015224062f5ee57be7e629eb6fc5976bb600
904b0d83e2e198c64951d6c4e282de4da7d9d178
/taotao-portal/src/main/java/guo/ping/taotao/portal/pojo/SearchResult.java
50d2a9244c41775f1f853b06cbdc85af305df9eb
[]
no_license
cuicuier/taotao
3b1234c285ae81d427d2bb2ef451a6bdbb02135c
b5681090f3596631b150659af8d51f51292c8ba6
refs/heads/master
2020-05-03T13:55:48.555682
2018-07-29T14:00:19
2018-07-29T14:00:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
912
java
package guo.ping.taotao.portal.pojo; import java.util.List; /** * Solr查询服务pojo */ public class SearchResult { private List<SearchItem> itemList; private Long recordCount; private int pageCount; private int currentPage; public List<SearchItem> getItemList() { return itemList; } public void setItemList(List<SearchItem> itemList) { this.itemList = itemList; } public Long getRecordCount() { return recordCount; } public void setRecordCount(Long recordCount) { this.recordCount = recordCount; } public int getPageCount() { return pageCount; } public void setPageCount(int pageCount) { this.pageCount = pageCount; } public int getCurrentPage() { return currentPage; } public void setCurrentPage(int currentPage) { this.currentPage = currentPage; } }
[ "Kingdompin@163.com" ]
Kingdompin@163.com
0741b8e5eec4769e56e7e7ed58b2b7da7a423ee7
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
/genny_JavaWithoutLambdasApi21/applicationModule/src/main/java/applicationModulepackageJava3/Foo411.java
90571eee8665882bcbb98b6f4b3efeebbb6a0d77
[]
no_license
NikitaKozlov/generated-project-for-desugaring
0bc1443ab3ddc84cd289331c726761585766aea7
81506b3711004185070ca4bb9a93482b70011d36
refs/heads/master
2020-03-20T00:35:06.996525
2018-06-12T09:30:37
2018-06-12T09:30:37
137,049,317
0
0
null
null
null
null
UTF-8
Java
false
false
346
java
package applicationModulepackageJava3; public class Foo411 { public void foo0() { new applicationModulepackageJava3.Foo410().foo5(); } public void foo1() { foo0(); } public void foo2() { foo1(); } public void foo3() { foo2(); } public void foo4() { foo3(); } public void foo5() { foo4(); } }
[ "nikita.e.kozlov@gmail.com" ]
nikita.e.kozlov@gmail.com
936fdf083cb8be5e5bd84682d52800fbfc11856d
ae69e30f8eb4ff2cd47e2336b2a2b31f271a3e5a
/Java/codeforces/round_650_699/round_676/A.java
42dca8cc75e27dd07ccabd315be6b33f9d0549f2
[]
no_license
bdugersuren/CompetitiveProgramming
f35048ef8e5345c5219c992f2be8b84e1f7f1cb8
cd571222aabe3de952d90d6ddda055aa3b8c08d9
refs/heads/master
2023-05-12T00:45:15.065209
2021-05-14T13:24:53
2021-05-14T13:24:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,939
java
package codeforces.round_650_699.round_676; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.Random; import java.util.StringTokenizer; public final class A { public static void main(String[] args) { final FastScanner fs = new FastScanner(); final int t = fs.nextInt(); for (int test = 0; test < t; test++) { final long a = fs.nextLong(); final long b = fs.nextLong(); long x = 0; for (int i = 0; i < 40; i++) { if ((a & (1 << i)) != 0 && (b & (1 << i)) != 0) { x |= 1 << i; } } System.out.println((a ^ x) + (b ^ x)); } } static final class Utils { public static void shuffleSort(int[] x) { shuffle(x); Arrays.sort(x); } public static void shuffleSort(long[] x) { shuffle(x); Arrays.sort(x); } public static void shuffle(int[] x) { final Random r = new Random(); for (int i = 0; i <= x.length - 2; i++) { final int j = i + r.nextInt(x.length - i); swap(x, i, j); } } public static void shuffle(long[] x) { final Random r = new Random(); for (int i = 0; i <= x.length - 2; i++) { final int j = i + r.nextInt(x.length - i); swap(x, i, j); } } public static void swap(int[] x, int i, int j) { final int t = x[i]; x[i] = x[j]; x[j] = t; } public static void swap(long[] x, int i, int j) { final long t = x[i]; x[i] = x[j]; x[j] = t; } private Utils() {} } static class FastScanner { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); private String next() { while (!st.hasMoreTokens()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { //noinspection CallToPrintStackTrace e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } int[] nextIntArray(int n) { final int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = nextInt(); } return a; } long[] nextLongArray(int n) { final long[] a = new long[n]; for (int i = 0; i < n; i++) { a[i] = nextLong(); } return a; } } }
[ "nirvana_rsc@yahoo.com" ]
nirvana_rsc@yahoo.com
06860d549fa7e57b1dcf19dfa165bc5cfdfac46d
075637752e323ee979fc4315e0ff14843445f6ee
/http/http-api/src/main/java/com/okta/commons/http/authc/RequestAuthenticator.java
269fc945cdd98a6a143f2c4d49ecb143467ef744
[ "Apache-2.0" ]
permissive
okta/okta-commons-java
f2c0fc563a2303275a14b50b881a9ff8101fd63d
5d117e39242e80ecb7106c449fb6de9e8158afbe
refs/heads/master
2023-08-31T07:48:31.457262
2023-07-12T16:56:02
2023-07-12T16:56:02
147,567,252
4
9
Apache-2.0
2023-09-04T21:56:56
2018-09-05T19:11:28
Java
UTF-8
Java
false
false
1,519
java
/* * Copyright 2014 Stormpath, Inc. * Modifications Copyright 2018 Okta, 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.okta.commons.http.authc; import com.okta.commons.http.Request; /** * Interface to be implemented by HTTP authentication schemes. Such scheme defines the way the communication with * the Okta API server will be authenticated. * * @since 0.5.0 */ public interface RequestAuthenticator { String AUTHORIZATION_HEADER = "Authorization"; /** * Implementations of this operation will prepare the authentication information as expected by the Okta API server. * * @param request the request that will be sent to Okta API server, it shall be modified by the implementating classes * in order to insert here the authentication information * @throws RequestAuthenticationException when the authentication request cannot be created */ void authenticate(Request request) throws RequestAuthenticationException; }
[ "brian.demers@gmail.com" ]
brian.demers@gmail.com
7cb92f10414e3d4624067aa08aa831e1e4d32947
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/MATH-84b-1-5-FEMO-WeightedSum:TestLen:CallDiversity/org/apache/commons/math/optimization/direct/DirectSearchOptimizer_ESTest_scaffolding.java
41d297131ae238d7543ead51b136e842f05c2143
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
2,839
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sat Apr 04 08:39:46 UTC 2020 */ package org.apache.commons.math.optimization.direct; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class DirectSearchOptimizer_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.math.optimization.direct.DirectSearchOptimizer"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; org.evosuite.runtime.Runtime.getInstance().resetRuntime(); } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); 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.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(DirectSearchOptimizer_ESTest_scaffolding.class.getClassLoader() , "org.apache.commons.math.FunctionEvaluationException", "org.apache.commons.math.optimization.RealPointValuePair", "org.apache.commons.math.MathException", "org.apache.commons.math.optimization.OptimizationException", "org.apache.commons.math.optimization.direct.NelderMead", "org.apache.commons.math.optimization.RealConvergenceChecker", "org.apache.commons.math.optimization.SimpleScalarValueChecker", "org.apache.commons.math.ConvergenceException", "org.apache.commons.math.MaxEvaluationsExceededException", "org.apache.commons.math.MaxIterationsExceededException", "org.apache.commons.math.analysis.MultivariateRealFunction", "org.apache.commons.math.optimization.direct.DirectSearchOptimizer", "org.apache.commons.math.optimization.MultivariateRealOptimizer", "org.apache.commons.math.optimization.GoalType" ); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
1d2ff8697746575108e6f9fc9dd1703b9a22e263
045f03ed626470163cad609359f7a6f1d16eea36
/app/src/main/java/com/xolo/gzqc/ui/activity/pickcar/VerhaulHistroyActivity.java
7af8a55b5d95b9c51ef7a32e13d6b5337910c3d4
[]
no_license
Superingxz/gzqc
487da1897127bfe55e24ab7b161f4b151ca73348
4ceef024bb63ef586aa0e8fc8d8d0a5b1c126db5
refs/heads/master
2021-01-17T11:30:06.783661
2017-03-06T06:05:58
2017-03-06T06:05:58
84,036,048
0
0
null
null
null
null
UTF-8
Java
false
false
453
java
package com.xolo.gzqc.ui.activity.pickcar; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.xolo.gzqc.BaseActivity; import com.xolo.gzqc.R; /** * 构件到货历史 */ public class VerhaulHistroyActivity extends BaseActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_verhaul_histroy); } }
[ "549856098@qq.com" ]
549856098@qq.com
3e4ef9436f48aa030b9a2b50de8b2b9c1d8948f8
77538989a2beeaec545ddedf5abdb250622e727e
/Chapter17/src/main/java/com/shiro/source/web/bind/CurrentUserMethodArgumentResolver.java
952d22907568b392fa5beb4c55a118d4add41d41
[]
no_license
liwangadd/ShiroTest
0c2a747db45e94f96e19a2d392f41d786c2b1f6d
073005fd35dc33f34e7190f3f9edea3ed68abb40
refs/heads/master
2021-01-10T08:10:20.985416
2015-10-10T03:07:37
2015-10-10T03:07:37
43,548,991
1
0
null
null
null
null
UTF-8
Java
false
false
1,208
java
package com.shiro.source.web.bind; import org.springframework.core.MethodParameter; import org.springframework.web.bind.support.WebDataBinderFactory; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.context.request.RequestAttributes; import org.springframework.web.method.support.HandlerMethodArgumentResolver; import org.springframework.web.method.support.ModelAndViewContainer; /** * Created by liwang on 15-10-9. */ public class CurrentUserMethodArgumentResolver implements HandlerMethodArgumentResolver { @Override public boolean supportsParameter(MethodParameter methodParameter) { if (methodParameter.hasParameterAnnotation(CurrentUser.class)) { return true; } return false; } @Override public Object resolveArgument(MethodParameter methodParameter, ModelAndViewContainer modelAndViewContainer, NativeWebRequest nativeWebRequest, WebDataBinderFactory webDataBinderFactory) throws Exception { CurrentUser currentUser = methodParameter.getParameterAnnotation(CurrentUser.class); return nativeWebRequest.getAttribute(currentUser.value(), RequestAttributes.SCOPE_REQUEST); } }
[ "liwangadd@gmail.com" ]
liwangadd@gmail.com
b408565b326da70461cc4f69d7b47093f0fc5a2d
29b6a856a81a47ebab7bfdba7fe8a7b845123c9e
/dingtalk/java/src/main/java/com/aliyun/dingtalkedu_1_0/models/QueryOrderRequest.java
7ca12cd64e975a61287b26ca9d4d6dd4a67617aa
[ "Apache-2.0" ]
permissive
aliyun/dingtalk-sdk
f2362b6963c4dbacd82a83eeebc223c21f143beb
586874df48466d968adf0441b3086a2841892935
refs/heads/master
2023-08-31T08:21:14.042410
2023-08-30T08:18:22
2023-08-30T08:18:22
290,671,707
22
9
null
2021-08-12T09:55:44
2020-08-27T04:05:39
PHP
UTF-8
Java
false
false
1,407
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.dingtalkedu_1_0.models; import com.aliyun.tea.*; public class QueryOrderRequest extends TeaModel { @NameInMap("alipayAppId") public String alipayAppId; @NameInMap("merchantId") public String merchantId; @NameInMap("orderNo") public String orderNo; @NameInMap("signature") public String signature; public static QueryOrderRequest build(java.util.Map<String, ?> map) throws Exception { QueryOrderRequest self = new QueryOrderRequest(); return TeaModel.build(map, self); } public QueryOrderRequest setAlipayAppId(String alipayAppId) { this.alipayAppId = alipayAppId; return this; } public String getAlipayAppId() { return this.alipayAppId; } public QueryOrderRequest setMerchantId(String merchantId) { this.merchantId = merchantId; return this; } public String getMerchantId() { return this.merchantId; } public QueryOrderRequest setOrderNo(String orderNo) { this.orderNo = orderNo; return this; } public String getOrderNo() { return this.orderNo; } public QueryOrderRequest setSignature(String signature) { this.signature = signature; return this; } public String getSignature() { return this.signature; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
1748fbfcac5fb84235b07941d28cfb91ed8a245b
ddc6a947c1e56465e89d9275ae16d0bad048cb67
/server/SynaptixMyBatis/src/main/java/com/synaptix/mybatis/cache/SerializedSynaptixCache.java
170ed7da86615b12119366a7d17296f9c98c6e12
[]
no_license
TalanLabs/SynaptixLibs
15ad37af6fd575f6e366deda761ba650d9e18237
cbff7279e1f2428754fce3d83fcec5a834898747
refs/heads/master
2020-03-22T16:08:53.617289
2018-03-07T16:07:22
2018-03-07T16:07:22
140,306,435
1
0
null
null
null
null
UTF-8
Java
false
false
2,643
java
package com.synaptix.mybatis.cache; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.ObjectStreamClass; import java.io.Serializable; import java.util.concurrent.locks.ReadWriteLock; import org.apache.ibatis.cache.CacheException; import org.apache.ibatis.io.Resources; class SerializedSynaptixCache implements ISynaptixCache { private ISynaptixCache delegate; public SerializedSynaptixCache(ISynaptixCache delegate) { this.delegate = delegate; } public String getId() { return delegate.getId(); } public int getSize() { return delegate.getSize(); } public void putObject(Object key, Object object) { if (object == null || object instanceof Serializable) { delegate.putObject(key, serialize((Serializable) object)); } else { throw new CacheException("SharedCache failed to make a copy of a non-serializable object: " + object); } } public Object getObject(Object key) { Object object = delegate.getObject(key); return object == null ? null : deserialize((byte[]) object); } public Object removeObject(Object key) { return delegate.removeObject(key); } public void clear(boolean fire) { delegate.clear(fire); } public ReadWriteLock getReadWriteLock() { return delegate.getReadWriteLock(); } public int hashCode() { return delegate.hashCode(); } public boolean equals(Object obj) { return delegate.equals(obj); } private byte[] serialize(Serializable value) { try { ByteArrayOutputStream bos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(bos); oos.writeObject(value); oos.flush(); oos.close(); return bos.toByteArray(); } catch (Exception e) { throw new CacheException("Error serializing object. Cause: " + e, e); } } private Serializable deserialize(byte[] value) { Serializable result; try { ByteArrayInputStream bis = new ByteArrayInputStream(value); ObjectInputStream ois = new CustomObjectInputStream(bis); result = (Serializable) ois.readObject(); ois.close(); } catch (Exception e) { throw new CacheException("Error deserializing object. Cause: " + e, e); } return result; } public static class CustomObjectInputStream extends ObjectInputStream { public CustomObjectInputStream(InputStream in) throws IOException { super(in); } @Override protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException { return Resources.classForName(desc.getName()); } } }
[ "gabriel.allaigre@synaptix-labs.com" ]
gabriel.allaigre@synaptix-labs.com
ddde4e66f37529c62384b9b534c2c98b00b43657
079232cc8952af38105cbae03a12f027d9314e10
/faichuis-mbg/src/main/java/com/faichuis/faichuismall/model/UmsIntegrationConsumeSetting.java
fb5453d2b26bf7b59d9a321c55b9f6a9bcb3a1ef
[]
no_license
Faichuis/faichuis_play
8b64f730c1f40e663b2866861de9dd132ff6d4e0
90684eba68388ca3ddd336d4b8b8ee7fc38405ad
refs/heads/master
2023-07-03T07:47:09.351916
2021-08-09T13:51:26
2021-08-09T13:51:26
381,465,503
0
0
null
null
null
null
UTF-8
Java
false
false
2,213
java
package com.faichuis.faichuismall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class UmsIntegrationConsumeSetting implements Serializable { private Long id; @ApiModelProperty(value = "每一元需要抵扣的积分数量") private Integer deductionPerAmount; @ApiModelProperty(value = "每笔订单最高抵用百分比") private Integer maxPercentPerOrder; @ApiModelProperty(value = "每次使用积分最小单位100") private Integer useUnit; @ApiModelProperty(value = "是否可以和优惠券同用;0->不可以;1->可以") private Integer couponStatus; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Integer getDeductionPerAmount() { return deductionPerAmount; } public void setDeductionPerAmount(Integer deductionPerAmount) { this.deductionPerAmount = deductionPerAmount; } public Integer getMaxPercentPerOrder() { return maxPercentPerOrder; } public void setMaxPercentPerOrder(Integer maxPercentPerOrder) { this.maxPercentPerOrder = maxPercentPerOrder; } public Integer getUseUnit() { return useUnit; } public void setUseUnit(Integer useUnit) { this.useUnit = useUnit; } public Integer getCouponStatus() { return couponStatus; } public void setCouponStatus(Integer couponStatus) { this.couponStatus = couponStatus; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", deductionPerAmount=").append(deductionPerAmount); sb.append(", maxPercentPerOrder=").append(maxPercentPerOrder); sb.append(", useUnit=").append(useUnit); sb.append(", couponStatus=").append(couponStatus); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
[ "465766401@qq.com" ]
465766401@qq.com
7b25a9c5640403a910444a9ad9d1f5aa9c104de2
ed5159d056e98d6715357d0d14a9b3f20b764f89
/test/irvine/oeis/a041/A041697Test.java
c9a62ea0246df9c80e2878fe7c5d5347dfd1e8e7
[]
no_license
flywind2/joeis
c5753169cf562939b04dd246f8a2958e97f74558
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
refs/heads/master
2020-09-13T18:34:35.080552
2019-11-19T05:40:55
2019-11-19T05:40:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
195
java
package irvine.oeis.a041; import irvine.oeis.AbstractSequenceTest; /** * Tests the corresponding class. * @author Sean A. Irvine */ public class A041697Test extends AbstractSequenceTest { }
[ "sairvin@gmail.com" ]
sairvin@gmail.com
aef61978dcbd03d1bebf82f8447784a2ed719d7b
fd8fadf30b2e357c1f432a303115ce5bf30ff57c
/src/net/sourceforge/plantuml/graph/Board.java
c35e0ed429dcd2c0b7930dab159df4d25be00b82
[]
no_license
lixinlin/plantuml-code
6642e452ae8e6834942593a7ecd42f44418b8b6b
f558a8ec50f9ec617528dede774c3f46f1aac5ae
refs/heads/master
2021-06-28T02:24:29.085869
2019-09-22T11:20:25
2019-09-22T11:20:25
214,447,468
0
0
null
2021-02-03T19:33:31
2019-10-11T13:45:25
Java
UTF-8
Java
false
false
7,392
java
/* ======================================================================== * PlantUML : a free UML diagram generator * ======================================================================== * * (C) Copyright 2009-2020, Arnaud Roques * * Project Info: http://plantuml.com * * If you like this project or if you find it useful, you can support us at: * * http://plantuml.com/patreon (only 1$ per month!) * http://plantuml.com/paypal * * This file is part of PlantUML. * * PlantUML is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * PlantUML distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public * License for more details. * * You should have received a copy of the GNU General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, * USA. * * * Original Author: Arnaud Roques * * */ package net.sourceforge.plantuml.graph; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; public class Board { private final List<ALink> links; private final Map<ALink, Integer> initialDirection; private final Map<ANode, Integer> nodesCols = new LinkedHashMap<ANode, Integer>(); private int hashcodeValue; private boolean hashcodeComputed = false; private Board(Board old) { this.links = old.links; this.initialDirection = old.initialDirection; this.nodesCols.putAll(old.nodesCols); } public Comparator<ALink> getLinkComparator() { return new LenghtLinkComparator(nodesCols); } public boolean equals(Object o) { final Board other = (Board) o; if (this.links != other.links) { return false; } final Iterator<Integer> it1 = this.nodesCols.values().iterator(); final Iterator<Integer> it2 = other.nodesCols.values().iterator(); assert this.nodesCols.size() == other.nodesCols.size(); while (it1.hasNext()) { if (it1.next().equals(it2.next()) == false) { return false; } } return true; } @Override public int hashCode() { if (this.hashcodeComputed) { return this.hashcodeValue; } this.hashcodeValue = 13; for (Integer i : nodesCols.values()) { this.hashcodeValue = this.hashcodeValue * 17 + i; } this.hashcodeComputed = true; return this.hashcodeValue; } public void normalize() { int minRow = Integer.MAX_VALUE; int minCol = Integer.MAX_VALUE; int maxRow = Integer.MIN_VALUE; int maxCol = Integer.MIN_VALUE; for (Map.Entry<ANode, Integer> ent : nodesCols.entrySet()) { minRow = Math.min(minRow, ent.getKey().getRow()); maxRow = Math.max(maxRow, ent.getKey().getRow()); minCol = Math.min(minCol, ent.getValue()); maxCol = Math.max(maxCol, ent.getValue()); } for (Map.Entry<ANode, Integer> ent : nodesCols.entrySet()) { if (minRow != 0) { ent.getKey().setRow(ent.getKey().getRow() - minRow); } if (minCol != 0) { ent.setValue(ent.getValue() - minCol); } } } private void normalizeCol() { final int minCol = Collections.min(nodesCols.values()); if (minCol != 0) { for (Map.Entry<ANode, Integer> ent : nodesCols.entrySet()) { ent.setValue(ent.getValue() - minCol); } } } void internalMove(String code, int newCol) { hashcodeComputed = false; for (ANode n : nodesCols.keySet()) { if (n.getCode().equals(code)) { nodesCols.put(n, newCol); return; } } } public Board copy() { return new Board(this); } public Board(List<ANode> nodes, List<ALink> links) { for (ANode n : nodes) { addInRow(n); } this.links = Collections.unmodifiableList(new ArrayList<ALink>(links)); this.initialDirection = new HashMap<ALink, Integer>(); for (ALink link : links) { this.initialDirection.put(link, getDirection(link)); } } public int getInitialDirection(ALink link) { return initialDirection.get(link); } public int getDirection(ALink link) { return getCol(link.getNode2()) - getCol(link.getNode1()); } private void addInRow(ANode n) { hashcodeComputed = false; int col = 0; while (true) { if (getNodeAt(n.getRow(), col) == null) { nodesCols.put(n, col); assert getNodeAt(n.getRow(), col) == n; return; } col++; } } public Collection<ANode> getNodes() { return Collections.unmodifiableCollection(nodesCols.keySet()); } public Collection<ANode> getNodesInRow(int row) { final List<ANode> result = new ArrayList<ANode>(); for (ANode n : nodesCols.keySet()) { if (n.getRow() == row) { result.add(n); } } return Collections.unmodifiableCollection(result); } public final List<? extends ALink> getLinks() { return Collections.unmodifiableList(links); } public int getCol(ANode n) { return nodesCols.get(n); } public void applyMove(Move move) { final ANode piece = getNodeAt(move.getRow(), move.getCol()); if (piece == null) { throw new IllegalArgumentException(); } final ANode piece2 = getNodeAt(move.getRow(), move.getNewCol()); nodesCols.put(piece, move.getNewCol()); if (piece2 != null) { nodesCols.put(piece2, move.getCol()); } normalizeCol(); hashcodeComputed = false; } public Collection<Move> getAllPossibleMoves() { final List<Move> result = new ArrayList<Move>(); for (Map.Entry<ANode, Integer> ent : nodesCols.entrySet()) { final int row = ent.getKey().getRow(); final int col = ent.getValue(); result.add(new Move(row, col, -1)); result.add(new Move(row, col, 1)); } return result; } public ANode getNodeAt(int row, int col) { for (Map.Entry<ANode, Integer> ent : nodesCols.entrySet()) { if (ent.getKey().getRow() == row && ent.getValue().intValue() == col) { return ent.getKey(); } } return null; } public Set<ANode> getConnectedNodes(ANode root, int level) { if (level < 0) { throw new IllegalArgumentException(); } if (level == 0) { return Collections.singleton(root); } final Set<ANode> result = new HashSet<ANode>(); if (level == 1) { for (ALink link : links) { if (link.getNode1() == root) { result.add(link.getNode2()); } else if (link.getNode2() == root) { result.add(link.getNode1()); } } } else { for (ANode n : getConnectedNodes(root, level - 1)) { result.addAll(getConnectedNodes(n, 1)); } } return Collections.unmodifiableSet(result); } public Set<ALink> getAllLinks(Set<ANode> nodes) { final Set<ALink> result = new HashSet<ALink>(); for (ALink link : links) { if (nodes.contains(link.getNode1()) || nodes.contains(link.getNode2())) { result.add(link); } } return Collections.unmodifiableSet(result); } }
[ "arnaud_roques@2bfd43ce-aac2-44f9-bcbc-61bf0d4e0ab5" ]
arnaud_roques@2bfd43ce-aac2-44f9-bcbc-61bf0d4e0ab5
0ddefc50547842fcdabea2bdd6284b50703e015f
b3c5431a215e90fca010c682ac1743df7b0283f5
/Clase2019/src/tema1/ejercicios/Pelota.java
b5d798839c07e88502ea75980c897049535530db
[]
no_license
andoni-eguiluz/ud-prog2-clase-2019
70d496a3e74398aa38e17236d3487db4ded9caaf
fd8f2d409270fb6a1e6e4d9f4988ba2163db5210
refs/heads/master
2020-04-20T22:20:51.809905
2020-04-01T08:35:16
2020-04-01T08:35:16
169,136,670
2
0
null
null
null
null
UTF-8
Java
false
false
4,323
java
package tema1.ejercicios; import java.awt.Color; import java.awt.Point; import tema1.VentanaGrafica; /** Clase que permite crear y gestionar pelotas y dibujarlas en una ventana gráfica */ public class Pelota { // ================================================= // PARTE STATIC // ================================================= /** Método principal de prueba de la clase * @param args No utilizado */ public static void main(String[] args) { // Creamos una pelota en (300,300) con radio 200 Pelota p1 = new Pelota(); p1.x = 300; p1.y = 300; p1.radio = 200; p1.color = 'a'; // a -> azul p1.bota = true; // Creamos una ventana gráfica para dibujarla VentanaGrafica v = new VentanaGrafica( 1000, 700, "Ventana gráfica de pelotas" ); // La dibujamos y la borramos dibujaYBorra( v, p1 ); v.espera( 1000 ); // Esperamos 1000 milisegundos // Que crezca dibujaYCrece( v, p1, 400 ); v.espera( 1000 ); p1.borra( v ); // Y la borramos // Que decrezca dibujaYCrece( v, p1, 100 ); v.espera( 1000 ); p1.borra( v ); // Y la borramos // La movemos interactivamente con el ratón p1.dibuja( v ); while ( !v.estaCerrada() ) { Point p = v.getRatonPulsado(); if (p!=null) { p1.borra( v ); p1.x = p.x; p1.y = p.y; p1.dibuja( v ); } v.espera(1); } // Otras opciones /* // Si quisiéramos cerrar la ventana tras 3 segundos y cerramos la ventana v.espera( 3000 ); v.acaba(); */ /* // Si quisiéramos crear pelotas a saco al hacer click con el ratón p1.dibuja( v ); while ( !v.estaCerrada() ) { Point p = v.getRatonPulsado(); if (p!=null) { PelotaV1 p3 = new PelotaV1(); p3.x = p.x; p3.y = p.y; p3.radio = 50; p3.bota = true; p3.dibuja( v ); } v.espera(1); } */ } // Dibuja una pelota en la ventana, espera un segundo y la borra private static void dibujaYBorra( VentanaGrafica v, Pelota r ) { r.dibuja( v ); v.espera( 1000 ); r.borra( v ); } // Dibuja una pelota en la ventana y hace que crezca hasta el nuevo radio indicado // Va dibujando esa pelota mientras su radio crece o decrece (de píxel en píxel) private static void dibujaYCrece( VentanaGrafica v, Pelota p, double nuevoRadio ) { if (p.radio<nuevoRadio) { // Si el radio tiene que crecer while (p.radio<nuevoRadio) { p.dibuja( v ); // Dibuja, espera 10 milisegundos y borra para causar el efecto visual v.espera( 10 ); p.borra( v ); p.radio += 1; // Suma de uno en uno hasta el radio final } } else { while (p.radio>nuevoRadio) { p.dibuja( v ); // Dibuja, espera 10 milisegundos y borra para causar el efecto visual v.espera( 10 ); p.borra( v ); p.radio -= 1; // Resta de uno en uno hasta el radio final } } p.dibuja( v ); // La deja dibujada al final } // ================================================= // PARTE DE OBJETO (NO STATIC) // ================================================= private double radio; // Radio de pelota public double x; // Coordenada x de centro de pelota public double y; // Coordenada y de centro de pelota private char color; // Color de la pelota ('a' = azul, 'v' = verde) private boolean bota = true; // Información de si la pelota bota o no // Esto es lo que hace Java (constructor por defecto) // public Pelota() { // Código vacío // } /** Calcula el volumen de la pelota partiendo de su información de radio * @return Volumen de la pelota suponiendo una esfera perfecta */ double getVolumen() { return 4.0/3*Math.PI*radio*radio*radio; } /** Dibuja la pelota en una ventana * @param v Ventana en la que dibujar la pelota */ public void dibuja( VentanaGrafica v ) { Color color = Color.black; if (this.color=='v') color = Color.green; else if (this.color=='a') color = Color.blue; v.dibujaCirculo( x, y, radio, 2f, color ); } /** Borra la pelota en una ventana * @param v Ventana en la que borrar la pelota */ public void borra( VentanaGrafica v ) { v.borraCirculo( x, y, radio, 2f ); } // Faltan gets y sets (para exponer y poder modificar públicamente los atributos) }
[ "andoni.eguiluz@deusto.es" ]
andoni.eguiluz@deusto.es
15921c1b0d813fe79db6e5119a45d3c79d0dd6da
e0daa8f1cc1b590fd6d07d9aec16821d27a3b1ea
/jdk1.8/org/omg/IOP/CodecFactoryOperations.java
a3632648906f78eb8c0e86779b001526c6c4b0a4
[]
no_license
gavin-one/jdk-study
5d81a4296fc39a975b3b51de2bbba91a3686aa8e
0bea803ef3ccac6cf2ec1ef93cb985c3c34c48d0
refs/heads/master
2021-04-15T10:11:34.631763
2018-03-23T06:23:54
2018-03-23T06:23:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,076
java
package org.omg.IOP; /** * org/omg/IOP/CodecFactoryOperations.java . * Generated by the IDL-to-Java compiler (portable), version "3.2" * from d:/re/workspace/8-2-build-windows-amd64-cygwin/jdk8/2238/corba/src/share/classes/org/omg/PortableInterceptor/IOP.idl * Tuesday, March 4, 2014 3:47:39 AM PST */ /** * <code>Codecs</code> are obtained from the <code>CodecFactory</code>. * The <code>CodecFactory</code> is obtained through a call to * <code>ORB.resolve_initial_references( "CodecFactory" )</code>. */ public interface CodecFactoryOperations { /** * Create a <code>Codec</code> of the given encoding. * <p> * @param enc The encoding for which to create a <code>Codec</code>. * @return A <code>Codec</code> obtained with the given encoding. * @exception UnknownEncoding thrown if this factory cannot create a * <code>Codec</code> of the given encoding. */ org.omg.IOP.Codec create_codec (org.omg.IOP.Encoding enc) throws org.omg.IOP.CodecFactoryPackage.UnknownEncoding; } // interface CodecFactoryOperations
[ "tingzhu@ctrip.com" ]
tingzhu@ctrip.com
a840c85ffb1bd7cb7635d15d074d6dfd6f2c0e45
ee46681e5a830796201ad0764ce046a5ea377991
/vpm/src/main/java/com/adt/vpm/videoplayer/source/extractor/mp3/package-info.java
96711ef7ad2e7e0ee3c133d0cafbd31f4e53a147
[]
no_license
muthurajasoptisol/vpm
9291d73b6eb6c58efa41ca4bad6adfa4f1d5d662
696e2c104d2ae735a47e02c7c6cfb120a24270ac
refs/heads/main
2023-01-02T03:39:49.532652
2020-10-29T07:35:33
2020-10-29T07:35:33
308,247,905
1
0
null
null
null
null
UTF-8
Java
false
false
260
java
/* * Created by ADT author on 9/29/20 5:06 PM * Copyright (C) 2020 ADT. All rights reserved. * Last modified 9/29/20 5:06 PM */ @NonNullApi package com.adt.vpm.videoplayer.source.extractor.mp3; import com.adt.vpm.videoplayer.source.common.util.NonNullApi;
[ "muthuraja.s@optisolbusiness.com" ]
muthuraja.s@optisolbusiness.com
79ab158202413473c9267124223f6c4f8f21bd2a
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
/aliyun-java-sdk-retailcloud/src/main/java/com/aliyuncs/retailcloud/model/v20180313/ListAvailableClusterNodeResponse.java
6ee07c3c54416f93cf45148c711cd728cf292ba5
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-java-sdk
a263fa08e261f12d45586d1b3ad8a6609bba0e91
e19239808ad2298d32dda77db29a6d809e4f7add
refs/heads/master
2023-09-03T12:28:09.765286
2023-09-01T09:03:00
2023-09-01T09:03:00
39,555,898
1,542
1,317
NOASSERTION
2023-09-14T07:27:05
2015-07-23T08:41:13
Java
UTF-8
Java
false
false
6,626
java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.aliyuncs.retailcloud.model.v20180313; import java.util.List; import com.aliyuncs.AcsResponse; import com.aliyuncs.retailcloud.transform.v20180313.ListAvailableClusterNodeResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class ListAvailableClusterNodeResponse extends AcsResponse { private String requestId; private Integer code; private String errorMsg; private Integer pageNumber; private Integer pageSize; private Long totalCount; private List<ClusterNodeInfo> data; public String getRequestId() { return this.requestId; } public void setRequestId(String requestId) { this.requestId = requestId; } public Integer getCode() { return this.code; } public void setCode(Integer code) { this.code = code; } public String getErrorMsg() { return this.errorMsg; } public void setErrorMsg(String errorMsg) { this.errorMsg = errorMsg; } public Integer getPageNumber() { return this.pageNumber; } public void setPageNumber(Integer pageNumber) { this.pageNumber = pageNumber; } public Integer getPageSize() { return this.pageSize; } public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } public Long getTotalCount() { return this.totalCount; } public void setTotalCount(Long totalCount) { this.totalCount = totalCount; } public List<ClusterNodeInfo> getData() { return this.data; } public void setData(List<ClusterNodeInfo> data) { this.data = data; } public static class ClusterNodeInfo { private String vpcId; private String ecsEip; private String ecsOsType; private String businessCode; private String ecsLocalStorageCapacity; private String instanceId; private String internetMaxBandwidthOut; private String internetMaxBandwidthIn; private String instanceType; private String ecsMemory; private String ecsConfiguration; private String regionId; private String ecsPublicIp; private String ecsPrivateIp; private String instanceNetworkType; private String instanceName; private String oSName; private String ecsZone; private String ecsExpiredTime; private String ecsCpu; public String getVpcId() { return this.vpcId; } public void setVpcId(String vpcId) { this.vpcId = vpcId; } public String getEcsEip() { return this.ecsEip; } public void setEcsEip(String ecsEip) { this.ecsEip = ecsEip; } public String getEcsOsType() { return this.ecsOsType; } public void setEcsOsType(String ecsOsType) { this.ecsOsType = ecsOsType; } public String getBusinessCode() { return this.businessCode; } public void setBusinessCode(String businessCode) { this.businessCode = businessCode; } public String getEcsLocalStorageCapacity() { return this.ecsLocalStorageCapacity; } public void setEcsLocalStorageCapacity(String ecsLocalStorageCapacity) { this.ecsLocalStorageCapacity = ecsLocalStorageCapacity; } public String getInstanceId() { return this.instanceId; } public void setInstanceId(String instanceId) { this.instanceId = instanceId; } public String getInternetMaxBandwidthOut() { return this.internetMaxBandwidthOut; } public void setInternetMaxBandwidthOut(String internetMaxBandwidthOut) { this.internetMaxBandwidthOut = internetMaxBandwidthOut; } public String getInternetMaxBandwidthIn() { return this.internetMaxBandwidthIn; } public void setInternetMaxBandwidthIn(String internetMaxBandwidthIn) { this.internetMaxBandwidthIn = internetMaxBandwidthIn; } public String getInstanceType() { return this.instanceType; } public void setInstanceType(String instanceType) { this.instanceType = instanceType; } public String getEcsMemory() { return this.ecsMemory; } public void setEcsMemory(String ecsMemory) { this.ecsMemory = ecsMemory; } public String getEcsConfiguration() { return this.ecsConfiguration; } public void setEcsConfiguration(String ecsConfiguration) { this.ecsConfiguration = ecsConfiguration; } public String getRegionId() { return this.regionId; } public void setRegionId(String regionId) { this.regionId = regionId; } public String getEcsPublicIp() { return this.ecsPublicIp; } public void setEcsPublicIp(String ecsPublicIp) { this.ecsPublicIp = ecsPublicIp; } public String getEcsPrivateIp() { return this.ecsPrivateIp; } public void setEcsPrivateIp(String ecsPrivateIp) { this.ecsPrivateIp = ecsPrivateIp; } public String getInstanceNetworkType() { return this.instanceNetworkType; } public void setInstanceNetworkType(String instanceNetworkType) { this.instanceNetworkType = instanceNetworkType; } public String getInstanceName() { return this.instanceName; } public void setInstanceName(String instanceName) { this.instanceName = instanceName; } public String getOSName() { return this.oSName; } public void setOSName(String oSName) { this.oSName = oSName; } public String getEcsZone() { return this.ecsZone; } public void setEcsZone(String ecsZone) { this.ecsZone = ecsZone; } public String getEcsExpiredTime() { return this.ecsExpiredTime; } public void setEcsExpiredTime(String ecsExpiredTime) { this.ecsExpiredTime = ecsExpiredTime; } public String getEcsCpu() { return this.ecsCpu; } public void setEcsCpu(String ecsCpu) { this.ecsCpu = ecsCpu; } } @Override public ListAvailableClusterNodeResponse getInstance(UnmarshallerContext context) { return ListAvailableClusterNodeResponseUnmarshaller.unmarshall(this, context); } @Override public boolean checkShowJsonItemName() { return false; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
4b6e7d42c745a0266005fc6c663a7c2151e334c0
e51de484e96efdf743a742de1e91bce67f555f99
/Android/triviacrack_src/src/com/millennialmedia/android/BridgeMMCachedVideo$3.java
79531759e2a0efca7afaa756e546faf454fe76c3
[]
no_license
adumbgreen/TriviaCrap
b21e220e875f417c9939f192f763b1dcbb716c69
beed6340ec5a1611caeff86918f107ed6807d751
refs/heads/master
2021-03-27T19:24:22.401241
2015-07-12T01:28:39
2015-07-12T01:28:39
28,071,899
0
0
null
null
null
null
UTF-8
Java
false
false
832
java
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.millennialmedia.android; import java.util.concurrent.Callable; // Referenced classes of package com.millennialmedia.android: // BridgeMMCachedVideo, VideoPlayerActivity, MMJSResponse class a implements Callable { final VideoPlayerActivity a; final BridgeMMCachedVideo b; public MMJSResponse call() { a.l(); return MMJSResponse.a(); } public volatile Object call() { return call(); } (BridgeMMCachedVideo bridgemmcachedvideo, VideoPlayerActivity videoplayeractivity) { b = bridgemmcachedvideo; a = videoplayeractivity; super(); } }
[ "klayderpus@chimble.net" ]
klayderpus@chimble.net