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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
876240ee88937df11f7aca8ba10d59891d34fe31
|
40f4908483b98fc4f370ff4f2d520e1284d045b3
|
/phase02/immortals_repo/buildSrc/ImmortalsConfig/src/main/java/mil/darpa/immortals/config/FusekiConfiguration.java
|
a9ffb828fcd7a751150bd340c74aec3d9a1e2400
|
[] |
no_license
|
TF-185/bbn-immortals
|
7f70610bdbbcbf649f3d9021f087baaa76f0d8ca
|
e298540f7b5f201779213850291337a8bded66c7
|
refs/heads/master
| 2023-05-31T00:16:42.522840
| 2019-10-24T21:45:07
| 2019-10-24T21:45:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,293
|
java
|
package mil.darpa.immortals.config;
import java.net.URI;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.HashMap;
/**
* Created by awellman@bbn.com on 12/19/17.
*/
public class FusekiConfiguration implements RestfulAppConfigInterface {
private static HashMap<String, String> genParameters(String identifier) {
String fuseki_home = System.getenv("FUSEKI_HOME");
if (fuseki_home == null) {
fuseki_home = "";
}
HashMap<String, String> parameters = new HashMap<>();
parameters.put("FUSEKI_HOME", fuseki_home);
parameters.put("FUSEKI_BASE", GlobalsConfig.mkworkingdir("_" + identifier + "/fuseki_base"));
parameters.put("FUSEKI_RUN", GlobalsConfig.mkworkingdir("_" + identifier + "/fuseki_run"));
return parameters;
}
private boolean userManaged = false;
private long startupTimeMS = 20000;
private String identifier = "fuseki";
private int port = 3030;
private String protocol = "http";
private String url = "127.0.0.1";
private String exePath = System.getenv("FUSEKI_HOME") == null ? "" : Paths.get(System.getenv("FUSEKI_HOME")).resolve("fuseki-server.jar").toAbsolutePath().toString();
private String workingDirectory = GlobalsConfig.mkworkingdir("_" + identifier);
private String workingDirectoryTemplateFolder;
private String[] interpreterParameters = new String[0];
private String[] parameters = {
"--update", "--mem", "--port=" + Integer.toString(port), "/ds"
};
private HashMap<String, String> environmentVariables = genParameters(identifier);
private String readyStdoutLineRegexPattern = ".*(?<=Started).*(?<= on port ).*";
private boolean shutdownEverythingOnTermination = false;
@Override
public boolean isUserManaged() {
return userManaged;
}
public long getStartupTimeMS() {
return startupTimeMS;
}
@Override
public String getProtocol() {
return protocol;
}
@Override
public String getUrl() {
return url;
}
@Override
public int getPort() {
return port;
}
@Override
public URI getFullUrl() {
return GlobalsConfig.toFullUrl(this);
}
@Override
public String getIdentifier() {
return identifier;
}
@Override
public String getExePath() {
return exePath;
}
@Override
public String getWorkingDirectory() {
return workingDirectory;
}
@Override
public String[] getInterpreterParameters() {
return interpreterParameters;
}
@Override
public String[] getParameters() {
return parameters;
}
@Override
public HashMap<String, String> getEnvironmentVariables() {
return environmentVariables;
}
@Override
public String getReadyStdoutLineRegexPattern() {
return readyStdoutLineRegexPattern;
}
@Override
public Path getWorkingDirectoryTemplateFolder() {
if (workingDirectoryTemplateFolder == null) return null;
return Paths.get(workingDirectoryTemplateFolder);
}
@Override
public boolean isShutdownEverythingOnTermination() {
return shutdownEverythingOnTermination;
}
}
|
[
"austin.wellman@raytheon.com"
] |
austin.wellman@raytheon.com
|
9b5cac5326eba80a2ebe924d53ad12c81787e922
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/10/10_0fd710671078ed66ad151ac70fed067b9bb6b459/PathwayElementMenuListener/10_0fd710671078ed66ad151ac70fed067b9bb6b459_PathwayElementMenuListener_t.java
|
e392dd52d0f7fbc5eec1b50cc0b64f66bf0e15ec
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 7,868
|
java
|
// PathVisio,
// a tool for data visualization and analysis using Biological Pathways
// Copyright 2006-2009 BiGCaT Bioinformatics
//
// 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.pathvisio.gui.swing;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.List;
import javax.swing.ButtonGroup;
import javax.swing.JMenu;
import javax.swing.JPopupMenu;
import javax.swing.JRadioButtonMenuItem;
import org.pathvisio.gui.swing.CommonActions.AddLiteratureAction;
import org.pathvisio.gui.swing.CommonActions.EditLiteratureAction;
import org.pathvisio.gui.swing.CommonActions.PropertiesAction;
import org.pathvisio.gui.swing.dialogs.PathwayElementDialog;
import org.pathvisio.model.AnchorType;
import org.pathvisio.model.ConnectorType;
import org.pathvisio.model.GroupStyle;
import org.pathvisio.view.Citation;
import org.pathvisio.view.Graphics;
import org.pathvisio.view.Group;
import org.pathvisio.view.Handle;
import org.pathvisio.view.InfoBox;
import org.pathvisio.view.Line;
import org.pathvisio.view.MouseEvent;
import org.pathvisio.view.VAnchor;
import org.pathvisio.view.VPathway;
import org.pathvisio.view.VPathwayElement;
import org.pathvisio.view.VPathwayEvent;
import org.pathvisio.view.VPathwayListener;
import org.pathvisio.view.VPoint;
import org.pathvisio.view.ViewActions;
import org.pathvisio.view.swing.VPathwaySwing;
/**
* Implementation of {@link VPathwayListener} that handles righ-click events to
* show a popup menu when a {@link VPathwayElement} is clicked.
*
* This class is responsible for maintaining a list of {@link PathwayElementMenuHook}'s,
* There should be a single Listener per MainPanel, possibly listening to multiple {@link VPathway}'s.
*/
public class PathwayElementMenuListener implements VPathwayListener {
private List<PathwayElementMenuHook> hooks = new ArrayList<PathwayElementMenuHook>();
public void addPathwayElementMenuHook(PathwayElementMenuHook hook)
{
hooks.add (hook);
}
public void removePathwayElementMenuHook(PathwayElementMenuHook hook)
{
hooks.remove(hook);
}
/**
* This should be implemented by plug-ins
* that wish to hook into the Pathway Element Menu
*/
public interface PathwayElementMenuHook
{
public void pathwayElementMenuHook (VPathwayElement e, JPopupMenu menu);
}
/**
* Get an instance of a {@link JPopupMenu} for a given {@link VPathwayElement}
* @param e The {@link VPathwayElement} to create the popup menu for. If e is an instance of
* {@link Handle}, the menu is based on the parent element.
* @return The {@link JPopupMenu} for the given pathway element
*/
private JPopupMenu getMenuInstance(SwingEngine swingEngine, VPathwayElement e) {
if(e instanceof Citation) return null;
if(e instanceof Handle) e = ((Handle)e).getParent();
if(e instanceof VPoint) e = ((VPoint)e).getLine();
VPathway vp = e.getDrawing();
VPathwaySwing component = (VPathwaySwing)vp.getWrapper();
ViewActions vActions = vp.getViewActions();
JPopupMenu menu = new JPopupMenu();
//Don't show delete if the element cannot be deleted
if(!(e instanceof InfoBox)) {
menu.add(vActions.delete);
}
JMenu selectMenu = new JMenu("Select");
selectMenu.add(vActions.selectAll);
selectMenu.add(vActions.selectDataNodes);
menu.add(selectMenu);
menu.addSeparator();
//Only show group/ungroup when multiple objects or a group are selected
if((e instanceof Group)) {
GroupStyle s = ((Group)e).getPathwayElement().getGroupStyle();
if(s == GroupStyle.GROUP) {
menu.add(vActions.toggleGroup);
} else {
menu.add(vActions.toggleComplex);
}
menu.addSeparator();
} else if(vp.getSelectedGraphics().size() > 1) {
menu.add(vActions.toggleGroup);
menu.add(vActions.toggleComplex);
}
if((e instanceof Line)) {
final Line line = (Line)e;
menu.add(vActions.addAnchor);
JMenu typeMenu = new JMenu("Line type");
ButtonGroup buttons = new ButtonGroup();
ActionListener listener = new ActionListener() {
public void actionPerformed(ActionEvent e) {
line.getPathwayElement().setConnectorType(
ConnectorType.fromName(e.getActionCommand())
);
}
};
for(ConnectorType t : ConnectorType.getValues()) {
JRadioButtonMenuItem mi = new JRadioButtonMenuItem(t.getName());
mi.setActionCommand(t.getName());
mi.setSelected(t.equals(line.getPathwayElement().getConnectorType()));
mi.addActionListener(listener);
typeMenu.add(mi);
buttons.add(mi);
}
menu.add(typeMenu);
}
if((e instanceof VAnchor)) {
final VAnchor anchor = ((VAnchor)e);
JMenu anchorMenu = new JMenu("Anchor type");
ButtonGroup buttons = new ButtonGroup();
ActionListener listener = new ActionListener() {
public void actionPerformed(ActionEvent e) {
anchor.getMAnchor().setShape(
AnchorType.fromName(e.getActionCommand()));
}
};
for(AnchorType at : AnchorType.getValues()) {
JRadioButtonMenuItem mi = new JRadioButtonMenuItem(at.getName());
mi.setActionCommand(at.getName());
mi.setSelected(at.equals(anchor.getMAnchor().getShape()));
mi.addActionListener(listener);
anchorMenu.add(mi);
buttons.add(mi);
}
menu.add(anchorMenu);
}
JMenu orderMenu = new JMenu("Order");
orderMenu.add(vActions.orderBringToFront);
orderMenu.add(vActions.orderSendToBack);
orderMenu.add(vActions.orderUp);
orderMenu.add(vActions.orderDown);
menu.add(orderMenu);
if(e instanceof Graphics) {
JMenu litMenu = new JMenu("Literature");
litMenu.add(new AddLiteratureAction(swingEngine, component, e));
litMenu.add(new EditLiteratureAction(swingEngine, component, e));
menu.add(litMenu);
menu.addSeparator();
menu.add(new PropertiesAction(swingEngine, component,e));
}
// give plug-ins a chance to add menu items.
for (PathwayElementMenuHook hook : hooks)
{
hook.pathwayElementMenuHook (e, menu);
}
return menu;
}
private SwingEngine swingEngine;
PathwayElementMenuListener(SwingEngine swingEngine)
{
this.swingEngine = swingEngine;
}
public void vPathwayEvent(VPathwayEvent e) {
switch(e.getType()) {
case VPathwayEvent.ELEMENT_CLICKED_DOWN:
if(e.getAffectedElement() instanceof Citation) {
Citation c = (Citation)e.getAffectedElement();
PathwayElementDialog d = PathwayElementDialog.getInstance(swingEngine,
c.getParent().getPathwayElement(), false, null, null
);
d.selectPathwayElementPanel(PathwayElementDialog.TAB_LITERATURE);
d.setVisible(true);
break;
}
case VPathwayEvent.ELEMENT_CLICKED_UP:
assert(e.getVPathway() != null);
assert(e.getVPathway().getWrapper() instanceof VPathwaySwing);
if(e.getMouseEvent().isPopupTrigger()) {
Component invoker = (VPathwaySwing)e.getVPathway().getWrapper();
MouseEvent me = e.getMouseEvent();
JPopupMenu m = getMenuInstance(swingEngine, e.getAffectedElement());
if(m != null) {
m.show(invoker, me.getX(), me.getY());
}
}
break;
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
7e5c53f306855c459a1a4bd0aed6d34a8d4f5584
|
3ce0c632e643fd2cf554d2349881970dc7ae9bfd
|
/dialer/src/main/java/com/kinstalk/her/dialer/logging/InteractionEvent.java
|
122c354fc28a20f23cc3a2aedb4f6a10a74a1f66
|
[] |
no_license
|
sherry5707/mzx-c-m-c-c-voip
|
85033e179714b83e6939fe7a58ebcd690ed0b5ca
|
b282d8b241cd34b43ecf1a8ac33c41a2bc17afe4
|
refs/heads/master
| 2020-04-06T13:35:59.468776
| 2019-03-27T08:14:27
| 2019-03-27T08:14:27
| 157,507,267
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,135
|
java
|
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kinstalk.her.dialer.logging;
/**
* Class holding constants for Dialer interactions
*/
public class InteractionEvent {
public static final int UNKNOWN = 0;
/**
* An incoming call was blocked
*/
public static final int CALL_BLOCKED = 15;
/**
* The user blocked a number from the Call Log screen
*/
public static final int BLOCK_NUMBER_CALL_LOG = 16;
/**
* The user blocked a number from the Call details screen
*/
public static final int BLOCK_NUMBER_CALL_DETAIL = 17;
/**
* The user blocked a number from the Management screen
*/
public static final int BLOCK_NUMBER_MANAGEMENT_SCREEN = 18;
/**
* The user unblocked a number from the Call Log screen
*/
public static final int UNBLOCK_NUMBER_CALL_LOG = 19;
/**
* The user unblocked a number from the Call details screen
*/
public static final int UNBLOCK_NUMBER_CALL_DETAIL = 20;
/**
* The user unblocked a number from the Management screen
*/
public static final int UNBLOCK_NUMBER_MANAGEMENT_SCREEN = 21;
/**
* The user blocked numbers from contacts marked as send to voicemail
*/
public static final int IMPORT_SEND_TO_VOICEMAIL = 22;
/**
* The user blocked a number then undid the block
*/
public static final int UNDO_BLOCK_NUMBER = 23;
/**
* The user unblocked a number then undid the unblock
*/
public static final int UNDO_UNBLOCK_NUMBER = 24;
}
|
[
"meng.zhaoxue@shuzijiayuan.com"
] |
meng.zhaoxue@shuzijiayuan.com
|
4164a249b724be618e9eefbcc68e06682088aa7d
|
5148293c98b0a27aa223ea157441ac7fa9b5e7a3
|
/Method_Scraping/xml_scraping/NicadOutputFile_t1_beam_2nd/Nicad_t1_beam_2nd1203.java
|
f490f5fb7ad4b6e184b8420ba6b99ed5e28a47ad
|
[] |
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
| 500
|
java
|
// clone pairs:5904:90%
// 7779:beam/runners/spark/src/main/java/org/apache/beam/runners/spark/translation/GroupNonMergingWindowsFunctions.java
public class Nicad_t1_beam_2nd1203
{
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
WindowedKey that = (WindowedKey) o;
return Arrays.equals(key, that.key) && Arrays.equals(window, that.window);
}
}
|
[
"naist1020@gmail.com"
] |
naist1020@gmail.com
|
169da76850815f723d7e1e2959c2ff8e07996a0a
|
7d1df492699a1d2e5e1ab0fdb91e92ef1c3b41b8
|
/distr_manage/src/com/xwtech/uomp/base/service/business/IBusinessTagService.java
|
4ba6ce4805dacb82bac11fd895ed1bb07d00265f
|
[] |
no_license
|
5391667/xwtec
|
ab492d6eeb4c00a2fac74ba0adc965932a4e4c5f
|
ca6c4f0011d5b1dbbfaa19468e5b5989c308496d
|
refs/heads/master
| 2020-05-31T16:06:18.102976
| 2014-04-30T08:39:05
| 2014-04-30T08:39:05
| 190,374,043
| 0
| 0
| null | 2019-06-05T10:21:40
| 2019-06-05T10:21:40
| null |
UTF-8
|
Java
| false
| false
| 793
|
java
|
package com.xwtech.uomp.base.service.business;
import java.util.List;
import java.util.Map;
import com.xwtech.uomp.base.pojo.business.BusiTagBean;
/**
*
* This class is used for ...
* @author zhangel
* @version
* 1.0, 2013-12-23 下午03:16:31
*/
public interface IBusinessTagService {
void deleteByPrimaryKey(Long tagId);
void insert(BusiTagBean record);
void insertSelective(BusiTagBean record);
BusiTagBean selectByPrimaryKey(Long tagId);
void updateByPrimaryKeySelective(BusiTagBean record);
void updateByPrimaryKey(BusiTagBean record);
List<BusiTagBean> queryBusiTagList(Map<String, String> param);
void deleteBusinessTag(Map<String, Object> param);
BusiTagBean selectBusiTagBean(Map<String, String> param);
}
|
[
"redtroyzhang@gmail.com"
] |
redtroyzhang@gmail.com
|
ad39749ae3eea25743ca6977e260fc224cd89670
|
4b5e7ed50be30c9cdf8acc106d5485228561bdd3
|
/WebPaymentsProject/paygatedemo/src/main/java/com/oneconnectgroup/paygatedemo/PayGateUtil.java
|
4223fc6d3117a208a72ce9aec1e672e54e810105
|
[] |
no_license
|
CDuPlooy/PaymentsBackEnd
|
1ddeb28093159f3d428c4c3ad2bde64eb5860fb4
|
7ff9027bda3046cd732a7c63b837c47f4ecbe389
|
refs/heads/master
| 2021-06-14T09:05:18.024540
| 2017-02-08T21:26:24
| 2017-02-08T21:26:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,164
|
java
|
package com.oneconnectgroup.paygatedemo;
import android.os.AsyncTask;
import android.util.Log;
import com.google.api.client.extensions.android.http.AndroidHttp;
import com.google.api.client.extensions.android.json.AndroidJsonFactory;
import com.google.api.client.googleapis.services.AbstractGoogleClientRequest;
import com.google.api.client.googleapis.services.GoogleClientRequestInitializer;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.oneconnect.payments.paymentApi.PaymentApi;
import com.oneconnect.payments.paymentApi.model.PayGateInitiateRequestDTO;
import com.oneconnect.payments.paymentApi.model.PayGateQueryTransactionRequestDTO;
import com.oneconnect.payments.paymentApi.model.PayGateResponseDTO;
import java.io.IOException;
import java.net.ConnectException;
import java.util.Set;
import java.util.Timer;
import okhttp3.FormBody;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;
/**
* Created by aubreymalabie on 1/30/17.
*/
public class PayGateUtil {
private static PaymentApi paymentApi;
public static final String TAG = PayGateUtil.class.getSimpleName();
public static final Gson GSON = new GsonBuilder().setPrettyPrinting().create();
public static final String GAE_URL = "https://paymentsproject-156208.appspot.com/_ah/api/";
// public static final String GAE_URL = "http://192.168.1.233:8083/_ah/api/";
public static final String URL = "https://secure.paygate.co.za/payweb3/",
QUERY = "query.trans",
PROCESS_TRANS = "process.trans",
INITIATE_TRANS = "initiate.trans";
public static final String
APPLICATION_NAME = "OneConnect Payments";
public interface PayGateListener {
void onResponse(PayGateResponseDTO response);
void onError(String message);
}
public static void initiateTransaction(PayGateInitiateRequestDTO request, PayGateListener listener) {
new MTask(request, listener).execute();
}
public static void queryTransaction(PayGateQueryTransactionRequestDTO request, PayGateListener listener) {
new MTask(request, listener).execute();
}
static class MTask extends AsyncTask<Void, Void, Integer> {
int type = 0, count = 0;
Timer timer;
PayGateInitiateRequestDTO initiateRequest;
PayGateQueryTransactionRequestDTO queryTransactionRequest;
PayGateListener listener;
PayGateResponseDTO response = new PayGateResponseDTO();
public static final int INITIATE = 1, QUERY = 2;
public MTask(PayGateInitiateRequestDTO initiateRequest, PayGateListener listener) {
this.initiateRequest = initiateRequest;
this.listener = listener;
type = INITIATE;
}
public MTask(PayGateQueryTransactionRequestDTO queryTransactionRequest, PayGateListener listener) {
this.queryTransactionRequest = queryTransactionRequest;
this.listener = listener;
type = QUERY;
}
@Override
protected Integer doInBackground(Void... voids) {
Log.d(TAG, "PayGateUtil doInBackground: ########################## GAE URL: " + GAE_URL);
if (paymentApi == null) { // Only do this once
PaymentApi.Builder builder = new PaymentApi.Builder(AndroidHttp.newCompatibleTransport(),
new AndroidJsonFactory(), null)
.setApplicationName(APPLICATION_NAME)
.setRootUrl(GAE_URL)
.setGoogleClientRequestInitializer(new GoogleClientRequestInitializer() {
@Override
public void initialize(AbstractGoogleClientRequest<?> abstractGoogleClientRequest) throws IOException {
abstractGoogleClientRequest.setDisableGZipContent(true);
}
});
paymentApi = builder.build();
}
try {
switch (type) {
case INITIATE:
response = paymentApi.initiatePayGate(initiateRequest).execute();
break;
case QUERY:
response = paymentApi.queryPayGate(queryTransactionRequest).execute();
break;
}
} catch (ConnectException e) {
Log.e(TAG, "doInBackground: Server Unavailable", e );
return 8;
} catch (Exception e) {
Log.e(TAG, "doInBackground: failed", e);
return 9;
}
Log.i(TAG, "doInBackground: PayGate api returns from GoogleAppEngine: \n" + GSON.toJson(response));
return 0;
}
@Override
protected void onPostExecute(Integer result) {
if (result > 0) {
if (result == 8) {
listener.onError("Payment Service is not available at this time");
return;
}
listener.onError("Unable to process PayGate transaction");
return;
}
listener.onResponse(response);
}
}
static final OkHttpClient client = new OkHttpClient();
public static void test(RequestDTO req) {
new BTask(req).execute();
}
static class BTask extends AsyncTask<Void,Void,Integer> {
RequestDTO request;
public BTask(RequestDTO request) {
this.request = request;
}
@Override
protected Integer doInBackground(Void... voids) {
try {
sendPOSTRequest(request);
} catch (IOException e) {
e.printStackTrace();
}
return 0;
}
public void sendPOSTRequest(RequestDTO req) throws IOException {
req.calculateChecksum();
String url = URL.concat(INITIATE_TRANS);
Log.d(TAG, "sendPOSTRequest: url: ".concat( url));
Log.d(TAG, "BTask sendPOSTRequest: " + GSON.toJson(req));
RequestBody body = new FormBody.Builder()
.add(PayGateConstants.PAYGATE_ID, PayGateConstants.MERCHANT_PAYGATE_ID)
.add(PayGateConstants.REFERENCE, req.getReference())
.add(PayGateConstants.AMOUNT, String.valueOf(req.getAmount()))
.add(PayGateConstants.COUNTRY, req.getCountry())
.add(PayGateConstants.CURRENCY, req.getCurrency())
.add(PayGateConstants.EMAIL, req.getEmail())
.add(PayGateConstants.LOCALE, req.getLocale())
.add(PayGateConstants.RETURN_URL, req.getReturnURL())
.add(PayGateConstants.NOTIFY_URL, req.getNotifyURL())
.add(PayGateConstants.CHECKSUM, req.getChecksum())
.build();
Request request = new Request.Builder()
.addHeader("Content-Type", "text/html")
.url(url)
.post(body)
.build();
Log.i(TAG, "sendPOSTRequest: print request headers");
Set<String> namesx = request.headers().names();
for (String s: namesx) {
Log.d(TAG, "sendPOSTRequest: header " + s + " - " + request.header(s) );
}
//make the call
Response response = client.newCall(request).execute();
if (response.isSuccessful()) {
Log.i(TAG, "sendPOSTRequest: Request is CONNECTED!!! print response headers");
Set<String> names = response.headers().names();
for (String s: names) {
Log.w(TAG, "sendPOSTRequest: header " + s + " - " + response.header(s) );
}
} else {
Log.e(TAG, "sendPOSTRequest: we are FUCKED!" );
}
String data = response.body().string();
Log.i(TAG, "sendPOSTRequest, response: " + data+ "\n\n");
}
}
}
|
[
"malengatiger@gmail.com"
] |
malengatiger@gmail.com
|
81ecbea108f3d292fe8946863fe35f7bf121d93a
|
e9c10a2c351886a906483a1b0624abe6944ed73f
|
/leetcode/src/arrays/p01_two_sum.java
|
0a1a31ec0a3e1dd7d69b7498e697e710c52acb08
|
[] |
no_license
|
Taewii/leetcode
|
c1b7e964f7f859604bbba6359660e58925f41d3c
|
35a5dfb8bfcc962f425e7437150015d0e2393c6f
|
refs/heads/master
| 2020-11-29T02:58:31.610740
| 2020-03-27T16:18:06
| 2020-03-27T16:18:06
| 230,001,456
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,210
|
java
|
package arrays;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
public class p01_two_sum {
public static void main(String[] args) {
System.out.println(Arrays.toString(twoSum(new int[]{2, 7, 11, 15}, 9)));
}
static int[] twoSum(int[] nums, int target) {
int[] ans = new int[2];
Map<Integer, Integer> map = new HashMap<>(nums.length);
for (int i = 0; i < nums.length; i++) {
map.put(nums[i], i);
}
for (int i = 0; i < nums.length; i++) {
int needed = target - nums[i];
if (map.containsKey(needed) && map.get(needed) != i) {
ans[0] = i;
ans[1] = map.get(needed);
break;
}
}
return ans;
}
// static int[] twoSumOnePass(int[] nums, int target) {
// Map<Integer, Integer> map = new HashMap<>();
// for (int i = 0; i < nums.length; i++) {
// int needed = target - nums[i];
// if (map.containsKey(needed)) {
// return new int[]{map.get(needed), i};
// }
// map.put(nums[i], i);
// }
// return new int[]{0, 0};
// }
}
|
[
"p3rfec7@abv.bg"
] |
p3rfec7@abv.bg
|
77c8956624d3525ee183d81bbc844354d73c47ac
|
17c30fed606a8b1c8f07f3befbef6ccc78288299
|
/Mate10_8_1_0/src/main/java/com/android/server/security/tsmagent/utils/StringUtil.java
|
ae0ebe33774ec2573817be26cdbe5c43decedd46
|
[] |
no_license
|
EggUncle/HwFrameWorkSource
|
4e67f1b832a2f68f5eaae065c90215777b8633a7
|
162e751d0952ca13548f700aad987852b969a4ad
|
refs/heads/master
| 2020-04-06T14:29:22.781911
| 2018-11-09T05:05:03
| 2018-11-09T05:05:03
| 157,543,151
| 1
| 0
| null | 2018-11-14T12:08:01
| 2018-11-14T12:08:01
| null |
UTF-8
|
Java
| false
| false
| 304
|
java
|
package com.android.server.security.tsmagent.utils;
public class StringUtil {
public static boolean isTrimedEmpty(String str) {
return str != null ? isEmpty(str.trim()) : true;
}
public static boolean isEmpty(String str) {
return str != null ? str.isEmpty() : true;
}
}
|
[
"lygforbs0@mail.com"
] |
lygforbs0@mail.com
|
198923f4aa50ba847d4fd5fd4a34e243d59f5a38
|
36bbde826ff3e123716dce821020cf2a931abf6e
|
/plugin/docker/src/main/java/com/perl5/lang/perl/idea/sdk/host/docker/PerlDockerProjectSettingsConfigurable.java
|
fb60b4a34ae10227646f50b10e9000f325652254
|
[
"Apache-2.0"
] |
permissive
|
Camelcade/Perl5-IDEA
|
0332dd4794aab5ed91126a2c1ecd608f9c801447
|
deecc3c4fcdf93b4ff35dd31b4c7045dd7285407
|
refs/heads/master
| 2023-08-08T07:47:31.489233
| 2023-07-27T05:18:40
| 2023-07-27T06:17:04
| 33,823,684
| 323
| 79
|
NOASSERTION
| 2023-09-13T04:36:15
| 2015-04-12T16:09:15
|
Java
|
UTF-8
|
Java
| false
| false
| 3,522
|
java
|
/*
* Copyright 2015-2020 Alexandr Evstigneev
*
* 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.perl5.lang.perl.idea.sdk.host.docker;
import com.intellij.openapi.options.UnnamedConfigurable;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.ui.RawCommandLineEditor;
import com.intellij.util.ui.FormBuilder;
import com.intellij.util.ui.UIUtil;
import com.perl5.lang.perl.idea.execution.PerlCommandLine;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
class PerlDockerProjectSettingsConfigurable implements UnnamedConfigurable {
private final @NotNull PerlDockerProjectSettings mySettings;
private RawCommandLineEditor myArgumentsEditor;
private RawCommandLineEditor myPreviewEditor;
public PerlDockerProjectSettingsConfigurable(@NotNull Project project) {
mySettings = PerlDockerProjectSettings.getInstance(project);
}
@Override
public @Nullable JComponent createComponent() {
FormBuilder builder = FormBuilder.createFormBuilder();
myArgumentsEditor = new RawCommandLineEditor();
builder.addLabeledComponent(PerlDockerBundle.message("command.line.option.label"), myArgumentsEditor);
myPreviewEditor = new RawCommandLineEditor();
JTextField previewEditorTextField = myPreviewEditor.getTextField();
previewEditorTextField.setForeground(UIUtil.getInactiveTextColor());
previewEditorTextField.setEditable(false);
builder.addLabeledComponent(PerlDockerBundle.message("command.line.preview.label"), myPreviewEditor);
myArgumentsEditor.getTextField().getDocument().addDocumentListener(new DocumentListener() {
@Override
public void insertUpdate(DocumentEvent e) {
updatePreview();
}
@Override
public void removeUpdate(DocumentEvent e) {
updatePreview();
}
@Override
public void changedUpdate(DocumentEvent e) {
updatePreview();
}
});
updatePreview();
return builder.getPanel();
}
private void updatePreview() {
PerlCommandLine dockerCommandLine = PerlDockerAdapter.buildBaseProcessCommandLine(new PerlCommandLine());
dockerCommandLine.addParameters(StringUtil.split(myArgumentsEditor.getText(), " "));
dockerCommandLine.addParameters("<project_and_helpers_volumes>", "<image_name>", "sh", "<shell_script_with_commands>");
myPreviewEditor.setText(dockerCommandLine.getCommandLineString());
}
@Override
public boolean isModified() {
return !StringUtil.equals(mySettings.getAdditionalDockerParameters(), myArgumentsEditor.getText());
}
@Override
public void apply() {
if (!isModified()) {
return;
}
mySettings.setAdditionalDockerParameters(myArgumentsEditor.getText());
}
@Override
public void reset() {
myArgumentsEditor.setText(mySettings.getAdditionalDockerParameters());
}
}
|
[
"hurricup@gmail.com"
] |
hurricup@gmail.com
|
d7c606eccca948c413d7a3dc7fe10bac8b00ffb1
|
c85c460e7c7410e66aec5d2b1c5b44467a320d58
|
/src/test/java/com/alibaba/druid/bvt/pool/TestConnectError.java
|
48ae6cbb290bb21083fa636335525eafe3bb47cf
|
[] |
no_license
|
Pengxiaolong/druid
|
f51900708114a34872b79a397a254344f066bb54
|
cc6956c7df7c2037d8d2169cea068444b20f7d5d
|
refs/heads/master
| 2020-12-25T17:03:11.640854
| 2012-08-18T14:28:42
| 2012-08-18T14:28:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,417
|
java
|
package com.alibaba.druid.bvt.pool;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Properties;
import java.util.concurrent.atomic.AtomicInteger;
import junit.framework.Assert;
import junit.framework.TestCase;
import com.alibaba.druid.mock.MockDriver;
import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.druid.stat.DruidDataSourceStatManager;
public class TestConnectError extends TestCase {
private DruidDataSource dataSource;
private MockDriver driver;
protected void setUp() throws Exception {
driver = new MockDriver() {
private AtomicInteger count = new AtomicInteger();
public Connection connect(String url, Properties info) throws SQLException {
if (count.getAndIncrement() % 2 == 0) {
throw new SQLException();
}
try {
Thread.sleep(10);
} catch (InterruptedException e) {
throw new SQLException();
}
return super.connect(url, info);
}
};
Assert.assertEquals(0, DruidDataSourceStatManager.getInstance().getDataSourceList().size());
dataSource = new DruidDataSource();
dataSource.setDriver(driver);
dataSource.setRemoveAbandoned(true);
dataSource.setRemoveAbandonedTimeoutMillis(1000 * 180);
dataSource.setLogAbandoned(true);
dataSource.setTimeBetweenEvictionRunsMillis(10);
dataSource.setMinEvictableIdleTimeMillis(300 * 1000);
dataSource.setMaxActive(20);
dataSource.setUrl("jdbc:mock:TestConnectError");
}
protected void tearDown() throws Exception {
dataSource.close();
Assert.assertEquals(0, DruidDataSourceStatManager.getInstance().getDataSourceList().size());
}
public void test_connect_error() throws Exception {
Assert.assertEquals(0, dataSource.getCreateErrorCount());
int count = 10;
Connection[] connections = new Connection[count];
for (int i = 0; i < count; ++i) {
connections[i] = dataSource.getConnection();
}
for (int i = 0; i < count; ++i) {
connections[i].close();
}
Assert.assertEquals(10, dataSource.getCreateErrorCount());
}
}
|
[
"xiusiyan@gmail.com"
] |
xiusiyan@gmail.com
|
c8a38871b6ed35115ace68b13c96ed4a2df57673
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/30/30_ad5d677e5355541160a1a9f819d50ea6f08fd634/ModJam/30_ad5d677e5355541160a1a9f819d50ea6f08fd634_ModJam_t.java
|
2f25db5e7746436626bdbe822150029f0e8af80e
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,937
|
java
|
package modJam;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.CraftingManager;
import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraftforge.common.Configuration;
import net.minecraftforge.oredict.OreDictionary;
import net.minecraftforge.oredict.ShapelessOreRecipe;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
@Mod(modid="fuj1n.modJam", name=CommonProxyModJam.modName, version=CommonProxyModJam.version)
@NetworkMod(clientSideRequired=true, serverSideRequired=false)
public class ModJam {
@SidedProxy(serverSide="modJam.CommonProxyModJam", clientSide="modJam.ClientProxyModJam")
public static CommonProxyModJam proxy;
public static Configuration config;
//Config values
//Blocks
public static int oreAwesomeID = 1024;
//Items
public static int ingotAwesomeID = 3240;
//End Config values
//Blocks
public static Block awesomeOre;
//Items
public static Item awesomeIngot;
//CreativeTabs
public static CreativeTabs modJamCreativeTab;
//Sub Names
private static final String[] awesomeColors = {
"White", "Orange", "Magenta",
"Light-Blue", "Yellow", "Lime", "Pink", "Gray", "Light-Gray", "Cyan",
"Purple", "Blue", "Brown", "Green", "Red", "Black"
};
@PreInit
public void PreInit(FMLPreInitializationEvent event){
config = new Configuration(event.getSuggestedConfigurationFile());
config.load();
//Blocks
oreAwesomeID = config.getBlock("Awesome Ore ID", oreAwesomeID).getInt();
//Items
ingotAwesomeID = config.getItem("Awesome Ingot ID", ingotAwesomeID).getInt();
config.save();
}
@Init
public void Init(FMLInitializationEvent event){
proxy.handler();
registerCreativeTab();
initAllBlocks();
initAllItems();
registerAllBlocks();
addAllNames();
addAllCrafting();
addAllSmelting();
registerAllOreDictionary();
}
public void initAllBlocks(){
awesomeOre = new BlockAwesomeOre(oreAwesomeID).setHardness(5F).setResistance(5F).setCreativeTab(modJamCreativeTab).setUnlocalizedName("fuj1n.modJam.AwesomeOre");
}
public void initAllItems(){
awesomeIngot = new ItemAwesomeIngot(ingotAwesomeID).setCreativeTab(modJamCreativeTab);
}
public void registerAllBlocks(){
GameRegistry.registerBlock(awesomeOre, ItemAwesomeOre.class, "fuj1n.modJam.awesomeOre");
}
public void addAllNames(){
for (int i = 0; i < 16; i++) {
LanguageRegistry.addName(new ItemStack(awesomeOre, 1, i), awesomeColors[new ItemStack(awesomeOre, 1, i).getItemDamage()] + " Awesome Ore");
LanguageRegistry.addName(new ItemStack(awesomeIngot, 1, i), awesomeColors[new ItemStack(awesomeIngot, 1, i).getItemDamage()] + " Awesome Ingot");
}
}
public void registerCreativeTab(){
modJamCreativeTab = new CreativeTabModJam("fuj1n.modJam");
LanguageRegistry.instance().addStringLocalization("itemGroup." + modJamCreativeTab.getTabLabel(), CommonProxyModJam.modName);
}
public void addAllCrafting(){}
public void addAllSmelting(){
for (int i = 0; i < 16; i++){
FurnaceRecipes.smelting().addSmelting(oreAwesomeID, i, new ItemStack(ingotAwesomeID, 1, i), 0.1F);
}
}
public void registerAllOreDictionary(){
for (int i = 0; i < 16; i++) {
OreDictionary.registerOre("oreAwesome" + awesomeColors[i], new ItemStack(awesomeOre, 1, i));
OreDictionary.registerOre("ingotAwesome" + awesomeColors[i], new ItemStack(awesomeIngot, 1, i));
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
60d296663c47d9b0305e054dd9ea89a8051cd57d
|
471a1d9598d792c18392ca1485bbb3b29d1165c5
|
/jadx-MFP/src/main/java/com/google/android/gms/internal/icing/zzab.java
|
5e5e5a0d5e2f250ae0bc6b5bffb33b83317d56ec
|
[] |
no_license
|
reed07/MyPreferencePal
|
84db3a93c114868dd3691217cc175a8675e5544f
|
365b42fcc5670844187ae61b8cbc02c542aa348e
|
refs/heads/master
| 2020-03-10T23:10:43.112303
| 2019-07-08T00:39:32
| 2019-07-08T00:39:32
| 129,635,379
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 349
|
java
|
package com.google.android.gms.internal.icing;
import android.os.IInterface;
import android.os.RemoteException;
import com.google.firebase.appindexing.internal.zza;
public interface zzab extends IInterface {
void zza(zzad zzad, String str, zzx[] zzxArr) throws RemoteException;
void zza(zzad zzad, zza[] zzaArr) throws RemoteException;
}
|
[
"anon@ymous.email"
] |
anon@ymous.email
|
21462ca47041454b8ea5d1c9227a5422a75159b0
|
d4d2f56187a8dd0684f96688d37840614c04fb38
|
/itrip/itrip-auth/src/test/cn/itrip/auth/service/TestUserService.java
|
99055a045594c88c52ae93627606a5ad5b1ef187
|
[] |
no_license
|
zengyujun0524/yy
|
db8ba985a96e3cc6d8d144801258d953ddb543a4
|
5539ff306aa66db234829c5a214b4a171ce1e6f1
|
refs/heads/master
| 2022-12-21T23:55:10.999543
| 2019-09-10T05:38:06
| 2019-09-10T05:38:06
| 163,580,266
| 2
| 0
| null | 2022-12-16T06:03:44
| 2018-12-30T10:50:41
|
Java
|
UTF-8
|
Java
| false
| false
| 1,393
|
java
|
package cn.itrip.auth.service;
import cn.itrip.beans.pojo.ItripUser;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import java.util.List;
public class TestUserService {
/* @Test
public void testAddUser() {
ApplicationContext ctx = new ClassPathXmlApplicationContext(
"applicationContext.xml");
UserService userService = ctx.getBean(UserService.class);
ItripUser user=new ItripUser();
user.setUserCode("itrip@163.com");
user.setUserPassword("123456");
user.setUserName("");
try {
userService.itriptxCreateUser(user);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}*/
@Test
public void testfindAll() {
ApplicationContext ctx = new ClassPathXmlApplicationContext(
"applicationContext.xml");
UserService userService = ctx.getBean(UserService.class);
List<ItripUser> list = null;
try {
list = userService.findAll();
for (ItripUser itripUser : list) {
System.out.println(itripUser.getId() + " " + itripUser.getUserCode());
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
|
[
"email@example.com"
] |
email@example.com
|
cae7f21a714d1c07afa246614500c69487391116
|
206989531cb57770edb8b2b7079639af4bff5875
|
/Socialize/sdk/src/com/socialize/launcher/Launcher.java
|
f93265f82bd6fa9e4d9780561df182b570b6172d
|
[] |
no_license
|
jbailey2010/Boozle
|
543f6bac00423aa34d06013fac97661bff8e7458
|
3a50809e01708f68f98839f077656934e99651c1
|
refs/heads/master
| 2020-04-13T12:30:42.391029
| 2015-04-21T02:50:38
| 2015-04-21T02:50:38
| 16,244,666
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,157
|
java
|
/*
* Copyright (c) 2012 Socialize Inc.
*
* 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 com.socialize.launcher;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
/**
* Defines the logic for launching a launch action.
* @author Jason Polites
*/
public interface Launcher {
/**
* Launches an activity (or anything really) based on the bundle of data provided.
* @param context
* @param data
*/
public boolean launch(Activity context, Bundle data);
/**
* Handles the result from the launch in the activity callback
* @param context
* @param requestCode
* @param resultCode
* @param returnedIntent The intent returned from the activity.
* @param originalIntent The original intent that launched the activity.
*/
public void onResult(Activity context, int requestCode, int resultCode, Intent returnedIntent, Intent originalIntent);
/**
* Returns true if the launcher activity should call finish after launch.
* @param context The current context.
* @return
*/
public boolean shouldFinish(Activity context);
public boolean isAsync();
}
|
[
"bailey27@illinois.edu"
] |
bailey27@illinois.edu
|
a281e81199f771b2cb50aef48a3211c1aed00850
|
f1807eaa59584353294af73e8a34abbda63c080d
|
/dbsaving/DBSAVINGSvc_IFR/src/com/encocns/id/service/svo/ID203004OUT.java
|
6ccc3fae769229703663620eb8847b71644066a3
|
[] |
no_license
|
jkkim444/flow-demo
|
b9756f1b24fb917e60be9e489d45296263e777b2
|
7113f02e0f9e4623553263270825b2e275b2833f
|
refs/heads/main
| 2023-04-01T23:12:24.474064
| 2021-04-14T06:38:30
| 2021-04-14T06:38:30
| 357,788,546
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 788
|
java
|
/*
* Copyright ENCOCNS.,LTD.
* All rights reserved.
*
* This software is the confidential and proprietary information
* of ENCOCNS.,LTD. ("Confidential Information").
*/
/**
* @file ID203004OUT.java
* @brief 공시보고서검증 마감 OUT
* @section Major History
* <pre>
* - 차상길 | 2020. 09. 10. | First Created
* </pre>
*/
/**
* @namespace com.encocns.id.service.svo
* @brief id SVO Package
*/
package com.encocns.id.service.svo;
/**
* @brief 공시보고서검증 마감 OUT
* @details 공시보고서검증 마감 OUT
* @author : 차 상 길
* @date : 2020. 09. 10.
*/
public class ID203004OUT {
private int iResult; /* 건수 */
public int getiResult() {
return iResult;
}
public void setiResult(int iResult) {
this.iResult = iResult;
}
}
|
[
"jk.kim@daeunextier.com"
] |
jk.kim@daeunextier.com
|
96025c9c9e647049cba53301057aceb1855945de
|
a2df6764e9f4350e0d9184efadb6c92c40d40212
|
/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeInstanceSpecResponse.java
|
3d9af36418f5e800312f428c1a1fbbe1f7ecc03c
|
[
"Apache-2.0"
] |
permissive
|
warriorsZXX/aliyun-openapi-java-sdk
|
567840c4bdd438d43be6bd21edde86585cd6274a
|
f8fd2b81a5f2cd46b1e31974ff6a7afed111a245
|
refs/heads/master
| 2022-12-06T15:45:20.418475
| 2020-08-20T08:37:31
| 2020-08-26T06:17:49
| 290,450,773
| 1
| 0
|
NOASSERTION
| 2020-08-26T09:15:48
| 2020-08-26T09:15:47
| null |
UTF-8
|
Java
| false
| false
| 3,323
|
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.ens.model.v20171110;
import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.ens.transform.v20171110.DescribeInstanceSpecResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class DescribeInstanceSpecResponse extends AcsResponse {
private String requestId;
private Integer code;
private Integer dataDiskMinSize;
private Integer dataDiskMaxSize;
private Integer systemDiskMaxSize;
private Integer bandwidthLimit;
private List<InstanceSpec> instanceSpecs;
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 Integer getDataDiskMinSize() {
return this.dataDiskMinSize;
}
public void setDataDiskMinSize(Integer dataDiskMinSize) {
this.dataDiskMinSize = dataDiskMinSize;
}
public Integer getDataDiskMaxSize() {
return this.dataDiskMaxSize;
}
public void setDataDiskMaxSize(Integer dataDiskMaxSize) {
this.dataDiskMaxSize = dataDiskMaxSize;
}
public Integer getSystemDiskMaxSize() {
return this.systemDiskMaxSize;
}
public void setSystemDiskMaxSize(Integer systemDiskMaxSize) {
this.systemDiskMaxSize = systemDiskMaxSize;
}
public Integer getBandwidthLimit() {
return this.bandwidthLimit;
}
public void setBandwidthLimit(Integer bandwidthLimit) {
this.bandwidthLimit = bandwidthLimit;
}
public List<InstanceSpec> getInstanceSpecs() {
return this.instanceSpecs;
}
public void setInstanceSpecs(List<InstanceSpec> instanceSpecs) {
this.instanceSpecs = instanceSpecs;
}
public static class InstanceSpec {
private String instanceType;
private String core;
private String memory;
private String displayName;
public String getInstanceType() {
return this.instanceType;
}
public void setInstanceType(String instanceType) {
this.instanceType = instanceType;
}
public String getCore() {
return this.core;
}
public void setCore(String core) {
this.core = core;
}
public String getMemory() {
return this.memory;
}
public void setMemory(String memory) {
this.memory = memory;
}
public String getDisplayName() {
return this.displayName;
}
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
}
@Override
public DescribeInstanceSpecResponse getInstance(UnmarshallerContext context) {
return DescribeInstanceSpecResponseUnmarshaller.unmarshall(this, context);
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
9bf62db74a1ae39d2b515567d08c8f7d239fe5c8
|
936aa88990d1e478491aa66627b0263b5590aaa0
|
/Platform/mo-5-cloud/src/cloud-define/org/mo/cloud/define/enums/core/EGcPersonIncome.java
|
87d657f426ced108c206478b3849e4bbe5d83651
|
[] |
no_license
|
favedit/MoCloud3d
|
f6d417412c5686a0f043a2cc53cd34214ee35618
|
ef6116df5b66fbc16468bd5e915ba19bb982d867
|
refs/heads/master
| 2021-01-10T12:12:22.837243
| 2016-02-21T09:05:53
| 2016-02-21T09:05:53
| 48,077,310
| 2
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,485
|
java
|
//============================================================
// <T>月收入。</T>
//
// @version 1.0.1
//============================================================
package org.mo.cloud.define.enums.core;
//============================================================
// <T>月收入枚举定义。</T>
//
// @enum
//============================================================
public class EGcPersonIncome
{
// 枚举名称
public final static String DefineName = "GcPersonIncome";
// 未知
public final static int Unknown = 0;
// 未知字符串
public final static String UnknownString = "Unknown";
// 未知标签
public final static String UnknownLabel = "未知";
// 5000以下
public final static int LessThan5000 = 1;
// 5000以下字符串
public final static String LessThan5000String = "LessThan5000";
// 5000以下标签
public final static String LessThan5000Label = "5000以下";
// 5000-10000
public final static int In5000to10000 = 2;
// 5000-10000字符串
public final static String In5000to10000String = "In5000to10000";
// 5000-10000标签
public final static String In5000to10000Label = "5000-10000";
// 10000-50000
public final static int In10000to50000 = 3;
// 10000-50000字符串
public final static String In10000to50000String = "In10000to50000";
// 10000-50000标签
public final static String In10000to50000Label = "10000-50000";
// 50000以上
public final static int MoreThan50000 = 4;
// 50000以上字符串
public final static String MoreThan50000String = "MoreThan50000";
// 50000以上标签
public final static String MoreThan50000Label = "50000以上";
//============================================================
// <T>是否含有指定内容</T>
//
// @param value 内容
// @return 是否含有
//============================================================
public static boolean contains(int value){
String result = format(value);
return !result.equals("Unknown");
}
//============================================================
// <T>是否含有指定内容</T>
//
// @param value 内容
// @return 是否含有
//============================================================
public static boolean contains(String value){
int result = parse(value);
return (result != 0);
}
//============================================================
// <T>格式化数字为字符串。<T>
//
// @param value 内容
// @return 字符串
//============================================================
public static String format(int value){
switch(value){
case Unknown:
return UnknownString;
case LessThan5000:
return LessThan5000String;
case In5000to10000:
return In5000to10000String;
case In10000to50000:
return In10000to50000String;
case MoreThan50000:
return MoreThan50000String;
default:
return "Unknown";
}
}
//============================================================
// <T>格式化数字为字符串。<T>
//
// @param value 内容
// @return 字符串
//============================================================
public static String formatLabel(int value){
switch(value){
case Unknown:
return UnknownLabel;
case LessThan5000:
return LessThan5000Label;
case In5000to10000:
return In5000to10000Label;
case In10000to50000:
return In10000to50000Label;
case MoreThan50000:
return MoreThan50000Label;
default:
return "Unknown";
}
}
//============================================================
// <T>解析数字为字符串</T>
//
// @param value 内容
// @return 字符串
//============================================================
public static int parse(String value){
switch(value){
case UnknownString:
return Unknown;
case LessThan5000String:
return LessThan5000;
case In5000to10000String:
return In5000to10000;
case In10000to50000String:
return In10000to50000;
case MoreThan50000String:
return MoreThan50000;
default:
return 0;
}
}
}
|
[
"favedit@hotmail.com"
] |
favedit@hotmail.com
|
237285aa8818837a3aae48799eead8f9bd0c5594
|
8572c91b73fb4b791e27d712af70497fd319266e
|
/okhttp/samples/guide/src/main/java/okhttp3/recipes/LoggingInterceptors.java
|
170ed756ced950bf7e0efd9c93fbf66fc4ee04cd
|
[
"Apache-2.0"
] |
permissive
|
yuchuangu85/AndroidCommonLibrary
|
7908a0dce11e4e32cd5386b62354da2432e727a0
|
86b30a7b049b1f76e532197e58b185322b70a810
|
refs/heads/master
| 2022-10-15T22:49:52.834171
| 2021-05-17T15:51:16
| 2021-05-17T15:51:16
| 192,298,435
| 16
| 6
| null | 2022-10-04T23:55:02
| 2019-06-17T07:41:12
|
Java
|
UTF-8
|
Java
| false
| false
| 2,160
|
java
|
/*
* Copyright (C) 2014 Square, 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 okhttp3.recipes;
import java.io.IOException;
import java.util.logging.Logger;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
public final class LoggingInterceptors {
private static final Logger logger = Logger.getLogger(LoggingInterceptors.class.getName());
private final OkHttpClient client = new OkHttpClient.Builder()
.addInterceptor(new LoggingInterceptor())
.build();
public void run() throws Exception {
Request request = new Request.Builder()
.url("https://publicobject.com/helloworld.txt")
.build();
Response response = client.newCall(request).execute();
response.body().close();
}
private static class LoggingInterceptor implements Interceptor {
@Override
public Response intercept(Chain chain) throws IOException {
long t1 = System.nanoTime();
Request request = chain.request();
logger.info(String.format("Sending request %s on %s%n%s",
request.url(), chain.connection(), request.headers()));
Response response = chain.proceed(request);
long t2 = System.nanoTime();
logger.info(String.format("Received response for %s in %.1fms%n%s",
request.url(), (t2 - t1) / 1e6d, response.headers()));
return response;
}
}
public static void main(String... args) throws Exception {
new LoggingInterceptors().run();
}
}
|
[
"yuchuangu85@gmail.com"
] |
yuchuangu85@gmail.com
|
9a48bc13f173548916a1e6a279fb93038c73314a
|
ce1a693343bda16dc75fd64f1688bbfa5d27ac07
|
/webservices/src/main/org/jboss/wsf/container/jboss50/invocation/InvocationHandlerFactoryImpl.java
|
d00d27fb21d0a68fda8e5bf6b8f282ffb844d140
|
[] |
no_license
|
JavaQualitasCorpus/jboss-5.1.0
|
641c412b1e4f5f75bb650cecdbb2a56de2f6a321
|
9307e841b1edc37cc97c732e4b87125530d8ae49
|
refs/heads/master
| 2023-08-12T08:39:55.319337
| 2020-06-02T17:48:09
| 2020-06-02T17:48:09
| 167,004,817
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,238
|
java
|
/*
* JBoss, Home of Professional Open Source.
* Copyright 2006, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.wsf.container.jboss50.invocation;
import org.jboss.wsf.spi.invocation.*;
/**
* The default invocation model factory fro AS 5.0.
*
* @author Heiko.Braun@jboss.com
* Created: Jul 19, 2007
*/
public class InvocationHandlerFactoryImpl extends InvocationHandlerFactory
{
public InvocationHandler newInvocationHandler(InvocationType type)
{
InvocationHandler handler = null;
switch(type)
{
case JAXRPC_JSE:
handler = new InvocationHandlerJAXRPC();
break;
case JAXRPC_EJB21:
handler = new InvocationHandlerEJB21();
break;
case JAXRPC_MDB21:
handler = new InvocationHandlerMDB21();
break;
case JAXWS_JSE:
handler = new InvocationHandlerJAXWS();
break;
case JAXWS_EJB3:
handler = new InvocationHandlerEJB3();
break;
case JAXWS_MDB3:
handler = new InvocationHandlerMDB3();
break;
}
if(null == handler)
throw new IllegalArgumentException("Unable to resolve spi.invocation.InvocationHandler for type " +type);
return handler;
}
}
|
[
"taibi@sonar-scheduler.rd.tut.fi"
] |
taibi@sonar-scheduler.rd.tut.fi
|
f477f5478051439d14b509a33b65fbc31e54db0a
|
cdab26c7d4bdfa4145004f21a1c9d9ab4baf4cfb
|
/src/main/java/com/vcredit/jdev/p2p/enums/InvestmentTypeEnum.java
|
4fe919c5b0ff6dbd6852bd7fadd1fd8e0a7f5f41
|
[] |
no_license
|
gspandy/p2p-server
|
eaec4e0cbdd37d5a3851dd528c54d5edd51b853c
|
6792ed9fd9cdef0bbeb4d63169024d0574928d1d
|
refs/heads/master
| 2023-08-09T23:25:30.229310
| 2015-05-08T04:40:46
| 2015-05-08T04:40:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 457
|
java
|
package com.vcredit.jdev.p2p.enums;
/**
* 发布方式
* @author 周佩
*
*/
public enum InvestmentTypeEnum {
/** 自动发布 */
AUTO(1),
/** 定时发布 */
TIMEING(2),
/** 临时发布 */
TEMPORARY(3),
/** 流标在发布的老项目 */
LASTBID2ONLINE(4),
/** 流标在发布的新项目 */
NEWONLINE(5);
InvestmentTypeEnum(Integer code) {
this.code = code;
}
private Integer code;
public Integer getCode() {
return code;
}
}
|
[
"372594984@qq.com"
] |
372594984@qq.com
|
fbf9ef364d4e464ad332abe898da1dd46a657fd6
|
dd566c2ff27a23500a6c6fbd41331b63dfaec026
|
/src/com/ufgov/gk/server/console/dao/ibatis/MaUserNumLimDao.java
|
31d9ef16cb2a4625d6203dcd51a1eac47141f12a
|
[] |
no_license
|
jielen/EB
|
0e1154c476bf07f5f4a16d9915a33420bd3519e0
|
ed0a3027a8e3f5998230b964ced5dc9134669a09
|
refs/heads/master
| 2020-04-08T00:52:30.321902
| 2015-08-29T17:25:00
| 2015-08-29T17:25:00
| 41,600,840
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,984
|
java
|
package com.ufgov.gk.server.console.dao.ibatis;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.orm.ibatis.SqlMapClientCallback;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import com.ibatis.sqlmap.client.SqlMapExecutor;
import com.ufgov.gk.server.console.dao.IMaUserNumLimDao;
import com.ufgov.gk.common.console.model.MaUserNumLim;
public class MaUserNumLimDao extends SqlMapClientDaoSupport implements IMaUserNumLimDao {
public List getMaUserNumLim(String userId, String compoId, String funcId, String ctrlField) {
Map map = new HashMap();
map.put("user_id", userId);
map.put("compo_id", compoId);
map.put("func_id", funcId);
map.put("ctrl_field", ctrlField);
return this.getSqlMapClientTemplate().queryForList(
"MaUserNumLim.getMaUserNumLim", map);
}
public int deleteMaUserNumLim(String userId, String compoId, String funcId, String ctrlField) {
Map map = new HashMap();
map.put("user_id", userId);
map.put("compo_id", compoId);
map.put("func_id", funcId);
map.put("ctrl_field", ctrlField);
return this.getSqlMapClientTemplate().delete(
"MaUserNumLim.deleteMaUserNumLim", map);
}
public MaUserNumLim insertMaUserNumLim(MaUserNumLim maUserNumLim) {
return (MaUserNumLim)this.getSqlMapClientTemplate().insert(
"MaUserNumLim.insertMaUserNumLim", maUserNumLim);
}
public void insertMaUserNumLimList(final List maUserNumLimList) {
this.getSqlMapClientTemplate().execute(new SqlMapClientCallback() {
public Object doInSqlMapClient(SqlMapExecutor executor) throws SQLException {
executor.startBatch();
for (int i = 0; i < maUserNumLimList.size(); i++) {
MaUserNumLim maUser = (MaUserNumLim) maUserNumLimList.get(i);
executor.insert("MaUserNumLim.insertMaUserNumLim", maUser);
}
executor.executeBatch();
return null;
}
});
}
}
|
[
"jielenzghsy1@163.com"
] |
jielenzghsy1@163.com
|
d0ad95075796c6643674903f8f4e3dfb07a17f04
|
b442604a86e5d3695fc060e8fa5d5fdaa2b666d2
|
/1/nm-service-manage-order/src/main/java/com/ningmeng/order/mq/ChooseCourseTask.java
|
0a3190fa7bf42a600878eebcf2b1ba996b17e585
|
[] |
no_license
|
1704AClass/jiang
|
c57c4a75a7c002e2599e9c79d654591ec2a87a83
|
dbd7b83f3c682f936a14f43297b3ef97b893959a
|
refs/heads/dev
| 2022-12-12T03:26:27.321082
| 2020-03-18T03:10:17
| 2020-03-18T03:10:17
| 240,629,297
| 0
| 0
| null | 2022-11-24T06:27:37
| 2020-02-15T01:52:03
|
Java
|
UTF-8
|
Java
| false
| false
| 2,266
|
java
|
package com.ningmeng.order.mq;
import com.ningmeng.framework.domain.task.NmTask;
import com.ningmeng.order.config.RabbitMQConfig;
import com.ningmeng.order.service.TaskService;
import com.rabbitmq.client.Channel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.io.IOException;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
@Component
public class ChooseCourseTask {
private static final Logger LOGGER = LoggerFactory.getLogger(ChooseCourseTask.class);
@Resource
private TaskService taskService;
//每隔一分钟扫描消息表
//@Scheduled(fixedDelay = 60000)
@Scheduled(cron = "0 * * * * ? ")
public void sendChoosecourseTask(){
//取出当前时间1分钟之前的时间
Calendar calendar = new GregorianCalendar();
calendar.setTime(new Date());
calendar.add(GregorianCalendar.MINUTE,-1);
Date time = calendar.getTime();
List<NmTask> taskList = taskService.findTaskList(time,1000);
for(NmTask nmTask:taskList){
//任务Id
String taskId = nmTask.getId();
//版本号
Integer version = nmTask.getVersion();
//调用乐观锁方法效验任务是否可以执行
if(taskService.getTask(taskId,version) > 0){
//发送选课消息
taskService.publish(nmTask,nmTask.getMqExchange(),nmTask.getMqRoutingkey());
LOGGER.info("send choose course task id:{}",nmTask.getId());
}
}
}
@RabbitListener(queues = {RabbitMQConfig.NM_LEARNING_FINISHADDCHOOSECOURSE})
public void receiveFinishChoosecourseTask(NmTask task, Message message, Channel channel) throws IOException {
LOGGER.info("receiveChoosecourseTask. . .{}",task.getId());
//接收到的消息id
String id = task.getId();
//删除任务,添加历史任务
taskService.finishTask(id);
}
}
|
[
"you@example.com"
] |
you@example.com
|
44f41872e11586020f2347f6f9d4d135cd45d88b
|
183931eedd8ed7ff685e22cb055f86f12a54d707
|
/test/miscCode/src/main/java/string/ToString.java
|
80a14509f1e23a742780bcfd105e797096013ab7
|
[] |
no_license
|
cynepCTAPuk/headFirstJava
|
94a87be8f6958ab373cd1640a5bdb9c3cc3bf166
|
7cb45f6e2336bbc78852d297ad3474fd491e5870
|
refs/heads/master
| 2023-08-16T06:51:14.206516
| 2023-08-08T16:44:11
| 2023-08-08T16:44:11
| 154,661,091
| 0
| 1
| null | 2023-01-06T21:32:31
| 2018-10-25T11:40:54
|
Java
|
UTF-8
|
Java
| false
| false
| 797
|
java
|
package string;
import java.util.Arrays;
import java.util.stream.Collectors;
public class ToString {
public static void main(String[] args) {
int i = 0;
System.out.println(++i + " " + "-".repeat(30));
Character[] characters = {'a', 'b', 'c'};
System.out.println(Arrays.toString(characters));
System.out.println(Arrays.asList(characters));
System.out.println(++i + " " + "-".repeat(30));
char[] chars = {'a', 'b', 'c'};
System.out.println(chars);
String[] strings = {"a", "b", "c"};
System.out.println(String.join(", ", strings));
System.out.println(Arrays.stream(strings).collect(Collectors.joining(", ", "{", "}")));
System.out.println(++i + " " + "-".repeat(30));
String str = null;
System.out.println(str);
Double dbl = null;
System.out.println(dbl);
}
}
|
[
"CTAPuk@gmail.com"
] |
CTAPuk@gmail.com
|
34b3b0f529aa0cd81d7ccb4b319c7eb2c625f33a
|
8ab3b581022a570e89b30de843d4cc5f671609f3
|
/src/main/java/com/ebay/sdk/call/SetMessagePreferencesCall.java
|
cb44b4209cd39ded0aa02f5b85ac027188d3e4df
|
[] |
no_license
|
lespaul361/eBaySDK1027
|
745198a748e47cf2e9f26719f3a03384e8210901
|
6c5e0de66b89dbfb859bc34376cd7e0616724358
|
refs/heads/master
| 2021-04-26T23:54:52.208637
| 2018-03-10T07:27:19
| 2018-03-10T07:27:19
| 124,628,809
| 0
| 1
| null | 2018-08-03T00:38:05
| 2018-03-10T06:24:24
|
Java
|
UTF-8
|
Java
| false
| false
| 2,878
|
java
|
/*
Copyright (c) 2013 eBay, Inc.
This program is licensed under the terms of the eBay Common Development and
Distribution License (CDDL) Version 1.0 (the "License") and any subsequent version
thereof released by eBay. The then-current version of the License can be found
at http://www.opensource.org/licenses/cddl1.php and in the eBaySDKLicense file that
is under the eBay SDK ../docs directory.
*/
package com.ebay.sdk.call;
import com.ebay.sdk.*;
import com.ebay.soap.eBLBaseComponents.*;
/**
* Wrapper class of the SetMessagePreferences call of eBay SOAP API.
* <br>
* <p>Title: SOAP API wrapper library.</p>
* <p>Description: Contains wrapper classes for eBay SOAP APIs.</p>
* <p>Copyright: Copyright (c) 2009</p>
* <p>Company: eBay Inc.</p>
* <br> <B>Input property:</B> <code>ASQPreferences</code> - Contains custom ASQ subjects or a flag to reset those
* subjects to their default values.
*
* @author Ron Murphy
* @version 1.0
*/
public class SetMessagePreferencesCall extends com.ebay.sdk.ApiCall
{
private ASQPreferencesType aSQPreferences = null;
private SetMessagePreferencesResponseType response;
/**
* Constructor.
*/
public SetMessagePreferencesCall() {
}
/**
* Constructor.
* @param apiContext The ApiContext object to be used to make the call.
*/
public SetMessagePreferencesCall(ApiContext apiContext) {
super(apiContext);
}
/**
* Enables a seller to add custom Ask Seller a Question (ASQ) subjects to their
* Ask a Question page, or to reset any custom subjects to their default values.
*
* <br>
* @throws ApiException
* @throws SdkException
* @throws Exception
* @return The void object.
*/
public void setMessagePreferences()
throws com.ebay.sdk.ApiException, com.ebay.sdk.SdkException, java.lang.Exception
{
SetMessagePreferencesRequestType req;
req = new SetMessagePreferencesRequestType();
if (this.aSQPreferences != null)
req.setASQPreferences(this.aSQPreferences);
SetMessagePreferencesResponseType resp = (SetMessagePreferencesResponseType) execute(req);
response = resp;
}
/**
* Gets the SetMessagePreferencesRequestType.aSQPreferences.
* @return ASQPreferencesType
*/
public ASQPreferencesType getASQPreferences()
{
return this.aSQPreferences;
}
/**
* Sets the SetMessagePreferencesRequestType.aSQPreferences.
* @param aSQPreferences ASQPreferencesType
*/
public void setASQPreferences(ASQPreferencesType aSQPreferences)
{
this.aSQPreferences = aSQPreferences;
}
/**
* Gets the SetMessagePreferencesResponseType.response.
* @return SetMessagePreferencesResponseType
*/
public SetMessagePreferencesResponseType getResponse() {
return response;
}
}
|
[
"lespaul36@gmail.com"
] |
lespaul36@gmail.com
|
4228266e87e03cc4f44def1323d890823e91aa3e
|
bf8a03c42406cab500aaae562a7a514204af9c44
|
/src/main/java/pw/cdmi/om/protocol/cim/core/CIM_ManagedSystemElement.java
|
9cc3189ea5bd9d8147beec5c839302b61d1c934f
|
[
"Apache-2.0"
] |
permissive
|
byte4sec/cdmi-core-monitor
|
701457e9f1bd4cc6a0e1fd66bfeb7ea3a44a8af8
|
e5c2f82aa0200d65a28383cab3ebbb38971adbf1
|
refs/heads/master
| 2021-10-09T16:52:45.309438
| 2017-05-01T09:15:08
| 2017-05-01T09:15:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 562
|
java
|
package pw.cdmi.om.protocol.cim.core;
import java.util.Date;
import javax.cim.UnsignedInteger16;
public class CIM_ManagedSystemElement extends CIM_ManagedElement{
private Date InstallDate;
private String Name;
private UnsignedInteger16 OperationalStatus[];
private String StatusDescriptions[];
private String Status;
private UnsignedInteger16 HealthState;
private UnsignedInteger16 CommunicationStatus;
private UnsignedInteger16 DetailedStatus;
private UnsignedInteger16 OperatingStatus;
private UnsignedInteger16 PrimaryStatus;
}
|
[
"wuwei@jmapi.cn"
] |
wuwei@jmapi.cn
|
d56063ed4897ab8ca21e0f8eaa5e8592623cd306
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project62/src/test/java/org/gradle/test/performance62_5/Test62_428.java
|
580b1d4173bb3c599c67feeaf9af7fbc7cccbd6a
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 292
|
java
|
package org.gradle.test.performance62_5;
import static org.junit.Assert.*;
public class Test62_428 {
private final Production62_428 production = new Production62_428("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
eada589b9043c27442eeec42a05395be847e79ed
|
24fec8593856302f73cc1463e96532b67c3d6a4d
|
/mcp/temp/src/minecraft/net/minecraft/command/CommandGameRule.java
|
fb98cb9929cd26eb90f63f1658924a2d89f70921
|
[
"BSD-3-Clause"
] |
permissive
|
theorbtwo/visual-sound
|
3cf8fc540728c334e66a39fdf921038c37db2cba
|
af76f171eddf6759097ea3445a55f18cdf4a86af
|
refs/heads/master
| 2021-01-23T11:48:03.750673
| 2013-06-20T17:20:08
| 2013-06-20T17:20:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,194
|
java
|
package net.minecraft.command;
import java.util.List;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;
import net.minecraft.command.WrongUsageException;
import net.minecraft.server.MinecraftServer;
import net.minecraft.world.GameRules;
public class CommandGameRule extends CommandBase {
public String func_71517_b() {
return "gamerule";
}
public int func_82362_a() {
return 2;
}
public String func_71518_a(ICommandSender p_71518_1_) {
return p_71518_1_.func_70004_a("commands.gamerule.usage", new Object[0]);
}
public void func_71515_b(ICommandSender p_71515_1_, String[] p_71515_2_) {
String var6;
if(p_71515_2_.length == 2) {
var6 = p_71515_2_[0];
String var7 = p_71515_2_[1];
GameRules var8 = this.func_82366_d();
if(var8.func_82765_e(var6)) {
var8.func_82764_b(var6, var7);
func_71522_a(p_71515_1_, "commands.gamerule.success", new Object[0]);
} else {
func_71522_a(p_71515_1_, "commands.gamerule.norule", new Object[]{var6});
}
} else if(p_71515_2_.length == 1) {
var6 = p_71515_2_[0];
GameRules var4 = this.func_82366_d();
if(var4.func_82765_e(var6)) {
String var5 = var4.func_82767_a(var6);
p_71515_1_.func_70006_a(var6 + " = " + var5);
} else {
func_71522_a(p_71515_1_, "commands.gamerule.norule", new Object[]{var6});
}
} else if(p_71515_2_.length == 0) {
GameRules var3 = this.func_82366_d();
p_71515_1_.func_70006_a(func_71527_a(var3.func_82763_b()));
} else {
throw new WrongUsageException("commands.gamerule.usage", new Object[0]);
}
}
public List func_71516_a(ICommandSender p_71516_1_, String[] p_71516_2_) {
return p_71516_2_.length == 1?func_71530_a(p_71516_2_, this.func_82366_d().func_82763_b()):(p_71516_2_.length == 2?func_71530_a(p_71516_2_, new String[]{"true", "false"}):null);
}
private GameRules func_82366_d() {
return MinecraftServer.func_71276_C().func_71218_a(0).func_82736_K();
}
}
|
[
"james@mastros.biz"
] |
james@mastros.biz
|
6b18ebc6e271fbd39bc27d1ac3b2c0092e7147fa
|
445c3cf84dd4bbcbbccf787b2d3c9eb8ed805602
|
/aliyun-java-sdk-emr/src/main/java/com/aliyuncs/emr/model/v20160408/DeleteFlowEditLockRequest.java
|
b5d4cd18334ab04de14e992e6259acfa0fdcfde5
|
[
"Apache-2.0"
] |
permissive
|
caojiele/aliyun-openapi-java-sdk
|
b6367cc95469ac32249c3d9c119474bf76fe6db2
|
ecc1c949681276b3eed2500ec230637b039771b8
|
refs/heads/master
| 2023-06-02T02:30:02.232397
| 2021-06-18T04:08:36
| 2021-06-18T04:08:36
| 172,076,930
| 0
| 0
|
NOASSERTION
| 2019-02-22T14:08:29
| 2019-02-22T14:08:29
| null |
UTF-8
|
Java
| false
| false
| 1,922
|
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.emr.model.v20160408;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.emr.Endpoint;
/**
* @author auto create
* @version
*/
public class DeleteFlowEditLockRequest extends RpcAcsRequest<DeleteFlowEditLockResponse> {
private Long resourceOwnerId;
private String entityId;
public DeleteFlowEditLockRequest() {
super("Emr", "2016-04-08", "DeleteFlowEditLock");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public void setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
if(resourceOwnerId != null){
putQueryParameter("ResourceOwnerId", resourceOwnerId.toString());
}
}
public String getEntityId() {
return this.entityId;
}
public void setEntityId(String entityId) {
this.entityId = entityId;
if(entityId != null){
putQueryParameter("EntityId", entityId);
}
}
@Override
public Class<DeleteFlowEditLockResponse> getResponseClass() {
return DeleteFlowEditLockResponse.class;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
e73adfffc1cbc0eca44b3868367cf718e2e8fdbb
|
45736204805554b2d13f1805e47eb369a8e16ec3
|
/net/minecraft/network/play/server/SPacketCombatEvent.java
|
b76520faece0288d6c5d365c9b1ca93beec17821
|
[] |
no_license
|
KrOySi/ArchWare-Source
|
9afc6bfcb1d642d2da97604ddfed8048667e81fd
|
46cdf10af07341b26bfa704886299d80296320c2
|
refs/heads/main
| 2022-07-30T02:54:33.192997
| 2021-08-08T23:36:39
| 2021-08-08T23:36:39
| 394,089,144
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,835
|
java
|
/*
* Decompiled with CFR 0.150.
*/
package net.minecraft.network.play.server;
import java.io.IOException;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerPlayClient;
import net.minecraft.util.CombatTracker;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.TextComponentString;
public class SPacketCombatEvent
implements Packet<INetHandlerPlayClient> {
public Event eventType;
public int playerId;
public int entityId;
public int duration;
public ITextComponent deathMessage;
public SPacketCombatEvent() {
}
public SPacketCombatEvent(CombatTracker tracker, Event eventIn) {
this(tracker, eventIn, true);
}
public SPacketCombatEvent(CombatTracker tracker, Event eventIn, boolean p_i46932_3_) {
this.eventType = eventIn;
EntityLivingBase entitylivingbase = tracker.getBestAttacker();
switch (eventIn) {
case END_COMBAT: {
this.duration = tracker.getCombatDuration();
this.entityId = entitylivingbase == null ? -1 : entitylivingbase.getEntityId();
break;
}
case ENTITY_DIED: {
this.playerId = tracker.getFighter().getEntityId();
this.entityId = entitylivingbase == null ? -1 : entitylivingbase.getEntityId();
this.deathMessage = p_i46932_3_ ? tracker.getDeathMessage() : new TextComponentString("");
}
}
}
@Override
public void readPacketData(PacketBuffer buf) throws IOException {
this.eventType = buf.readEnumValue(Event.class);
if (this.eventType == Event.END_COMBAT) {
this.duration = buf.readVarIntFromBuffer();
this.entityId = buf.readInt();
} else if (this.eventType == Event.ENTITY_DIED) {
this.playerId = buf.readVarIntFromBuffer();
this.entityId = buf.readInt();
this.deathMessage = buf.readTextComponent();
}
}
@Override
public void writePacketData(PacketBuffer buf) throws IOException {
buf.writeEnumValue(this.eventType);
if (this.eventType == Event.END_COMBAT) {
buf.writeVarIntToBuffer(this.duration);
buf.writeInt(this.entityId);
} else if (this.eventType == Event.ENTITY_DIED) {
buf.writeVarIntToBuffer(this.playerId);
buf.writeInt(this.entityId);
buf.writeTextComponent(this.deathMessage);
}
}
@Override
public void processPacket(INetHandlerPlayClient handler) {
handler.handleCombatEvent(this);
}
public static enum Event {
ENTER_COMBAT,
END_COMBAT,
ENTITY_DIED;
}
}
|
[
"67242784+KrOySi@users.noreply.github.com"
] |
67242784+KrOySi@users.noreply.github.com
|
afbd15dd7b3b75ccc3ffc9ff5febf7978ac77fe8
|
181fc8bfc2b2a76253f0dd1a3d81acd572247fd7
|
/kubernetesclient/patch/src/main/java/com/bolingcavalry/patch/ClassPathResourceReader.java
|
390111caceabcf590119a9a44009cd66c7acffed
|
[
"Apache-2.0"
] |
permissive
|
huguiqi/blog_demos
|
3da819f9773f4f96a38355d60f136cbb374067ea
|
c6d864e91b505fc765835325f904c95ff9257833
|
refs/heads/master
| 2022-12-25T07:16:56.894155
| 2020-09-30T00:30:59
| 2020-09-30T00:30:59
| 299,854,530
| 1
| 1
|
Apache-2.0
| 2020-09-30T08:21:35
| 2020-09-30T08:21:35
| null |
UTF-8
|
Java
| false
| false
| 919
|
java
|
package com.bolingcavalry.patch;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.stream.Collectors;
import org.springframework.core.io.ClassPathResource;
public class ClassPathResourceReader {
private final String path;
private String content;
public ClassPathResourceReader(String path) {
this.path = path;
}
public String getContent() {
if (content == null) {
try {
ClassPathResource resource = new ClassPathResource(path);
BufferedReader reader = new BufferedReader(new InputStreamReader(resource.getInputStream()));
content = reader.lines().collect(Collectors.joining("\n"));
reader.close();
} catch (IOException ex) {
throw new RuntimeException(ex);
}
}
return content;
}
}
|
[
"zq2599@gmail.com"
] |
zq2599@gmail.com
|
192e36d8db5d1c0caf626c3d9698b9b29f432318
|
dc1eedacb01c50f21072d50294280655f86de4c6
|
/src/main/java/gg/steve/mc/splugin/nbt/NBTEntity.java
|
08281680a820e8dd1d2ce1ab8aab8a4d318980ad
|
[] |
no_license
|
nbdSteve/SPlugin
|
8b073c6af220e9e6625e09daa686a5a63af8ad87
|
a3f80753b3ffc7dd17e3f854353ff64a891bd414
|
refs/heads/master
| 2023-06-05T08:51:17.765639
| 2021-07-04T09:37:31
| 2021-07-04T09:37:31
| 351,328,362
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,394
|
java
|
package gg.steve.mc.splugin.nbt;
import gg.steve.mc.splugin.nbt.utils.MinecraftVersion;
import gg.steve.mc.splugin.nbt.utils.annotations.AvailableSince;
import org.bukkit.entity.Entity;
/**
* NBT class to access vanilla tags from Entities. Entities don't support custom
* tags. Use the NBTInjector for custom tags. Changes will be instantly applied
* to the Entity, use the merge method to do many things at once.
*
* @author tr7zw
*
*/
public class NBTEntity extends NBTCompound {
private final Entity ent;
/**
* @param entity Any valid Bukkit Entity
*/
public NBTEntity(Entity entity) {
super(null, null);
if (entity == null) {
throw new NullPointerException("Entity can't be null!");
}
ent = entity;
}
@Override
public Object getCompound() {
return NBTReflectionUtil.getEntityNBTTagCompound(NBTReflectionUtil.getNMSEntity(ent));
}
@Override
protected void setCompound(Object compound) {
NBTReflectionUtil.setEntityNBTTag(compound, NBTReflectionUtil.getNMSEntity(ent));
}
/**
* Gets the NBTCompound used by spigots PersistentDataAPI. This method is only
* available for 1.14+!
*
* @return NBTCompound containing the data of the PersistentDataAPI
*/
@AvailableSince(version = MinecraftVersion.MC1_14_R1)
public NBTCompound getPersistentDataContainer() {
return new NBTPersistentDataContainer(ent.getPersistentDataContainer());
}
}
|
[
"s.goodhill@protonmail.com"
] |
s.goodhill@protonmail.com
|
ba5c900195469a82d7ca77b251778b8cbbeccf09
|
c5a67e2aeabbde81c93a329ae2e9c7ccc3631246
|
/src/main/java/com/vnw/data/jooq/tables/TblonlineOrderPaymentStatus.java
|
23dd1dc1b4b0e65274279503363600363dd72e2d
|
[] |
no_license
|
phuonghuynh/dtools
|
319d773d01c32093fd17d128948ef89c81f3f4bf
|
883d15ef19da259396a7bc16ac9df590e8add015
|
refs/heads/master
| 2016-09-14T03:46:53.463230
| 2016-05-25T04:04:32
| 2016-05-25T04:04:32
| 59,534,869
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,187
|
java
|
/**
* This class is generated by jOOQ
*/
package com.vnw.data.jooq.tables;
import com.vnw.data.jooq.Keys;
import com.vnw.data.jooq.VnwCore;
import com.vnw.data.jooq.tables.records.TblonlineOrderPaymentStatusRecord;
import java.sql.Timestamp;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Identity;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.TableImpl;
import org.jooq.types.UInteger;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.0"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TblonlineOrderPaymentStatus extends TableImpl<TblonlineOrderPaymentStatusRecord> {
private static final long serialVersionUID = -1325897520;
/**
* The reference instance of <code>vnw_core.tblonline_order_payment_status</code>
*/
public static final TblonlineOrderPaymentStatus TBLONLINE_ORDER_PAYMENT_STATUS = new TblonlineOrderPaymentStatus();
/**
* The class holding records for this type
*/
@Override
public Class<TblonlineOrderPaymentStatusRecord> getRecordType() {
return TblonlineOrderPaymentStatusRecord.class;
}
/**
* The column <code>vnw_core.tblonline_order_payment_status.id</code>.
*/
public final TableField<TblonlineOrderPaymentStatusRecord, UInteger> ID = createField("id", org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, "");
/**
* The column <code>vnw_core.tblonline_order_payment_status.orderId</code>. Payment Online Id
*/
public final TableField<TblonlineOrderPaymentStatusRecord, UInteger> ORDERID = createField("orderId", org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, "Payment Online Id");
/**
* The column <code>vnw_core.tblonline_order_payment_status.paidType</code>. 1: visa card, 2: ATM card, 0: offline
*/
public final TableField<TblonlineOrderPaymentStatusRecord, Byte> PAIDTYPE = createField("paidType", org.jooq.impl.SQLDataType.TINYINT.nullable(false), this, "1: visa card, 2: ATM card, 0: offline");
/**
* The column <code>vnw_core.tblonline_order_payment_status.paidCode</code>.
*/
public final TableField<TblonlineOrderPaymentStatusRecord, String> PAIDCODE = createField("paidCode", org.jooq.impl.SQLDataType.VARCHAR.length(10), this, "");
/**
* The column <code>vnw_core.tblonline_order_payment_status.status</code>. 0: created, 1: success, 2: fail, 3: re-open
*/
public final TableField<TblonlineOrderPaymentStatusRecord, Byte> STATUS = createField("status", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.TINYINT)), this, "0: created, 1: success, 2: fail, 3: re-open");
/**
* The column <code>vnw_core.tblonline_order_payment_status.createdDate</code>. created date of test
*/
public final TableField<TblonlineOrderPaymentStatusRecord, Timestamp> CREATEDDATE = createField("createdDate", org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, " created date of test");
/**
* Create a <code>vnw_core.tblonline_order_payment_status</code> table reference
*/
public TblonlineOrderPaymentStatus() {
this("tblonline_order_payment_status", null);
}
/**
* Create an aliased <code>vnw_core.tblonline_order_payment_status</code> table reference
*/
public TblonlineOrderPaymentStatus(String alias) {
this(alias, TBLONLINE_ORDER_PAYMENT_STATUS);
}
private TblonlineOrderPaymentStatus(String alias, Table<TblonlineOrderPaymentStatusRecord> aliased) {
this(alias, aliased, null);
}
private TblonlineOrderPaymentStatus(String alias, Table<TblonlineOrderPaymentStatusRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public Schema getSchema() {
return VnwCore.VNW_CORE;
}
/**
* {@inheritDoc}
*/
@Override
public Identity<TblonlineOrderPaymentStatusRecord, UInteger> getIdentity() {
return Keys.IDENTITY_TBLONLINE_ORDER_PAYMENT_STATUS;
}
/**
* {@inheritDoc}
*/
@Override
public UniqueKey<TblonlineOrderPaymentStatusRecord> getPrimaryKey() {
return Keys.KEY_TBLONLINE_ORDER_PAYMENT_STATUS_PRIMARY;
}
/**
* {@inheritDoc}
*/
@Override
public List<UniqueKey<TblonlineOrderPaymentStatusRecord>> getKeys() {
return Arrays.<UniqueKey<TblonlineOrderPaymentStatusRecord>>asList(Keys.KEY_TBLONLINE_ORDER_PAYMENT_STATUS_PRIMARY);
}
/**
* {@inheritDoc}
*/
@Override
public TblonlineOrderPaymentStatus as(String alias) {
return new TblonlineOrderPaymentStatus(alias, this);
}
/**
* Rename this table
*/
public TblonlineOrderPaymentStatus rename(String name) {
return new TblonlineOrderPaymentStatus(name, null);
}
}
|
[
"phuonghqh@gmail.com"
] |
phuonghqh@gmail.com
|
f362df30e53d2195c20f4d8337ca8c38a16e2ebd
|
c0300f807778680ef55226d86c8569f4d22c05b3
|
/src/anb/ground/dialogs/DateRangePicker.java
|
1ef06de978919f0b7996f549dd75e299f2fb416f
|
[] |
no_license
|
jaydi/Ground-android
|
f9b0f8b603f53031bba793590698fe32ba0fc35b
|
6d3626794614d0cb53664d9ed0615a5a7a31ee78
|
refs/heads/master
| 2021-01-01T15:40:20.178459
| 2015-07-21T19:33:25
| 2015-07-21T19:33:25
| 39,465,484
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,152
|
java
|
package anb.ground.dialogs;
import anb.ground.R;
import anb.ground.utils.DateUtils;
import anb.ground.utils.Validator;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.DatePicker;
public class DateRangePicker extends DialogFragment {
private DateRangePickerListener listener;
public interface DateRangePickerListener {
public void onDatePicked(int[] numbers);
}
public void setListener(DateRangePickerListener listener) {
this.listener = listener;
}
@Override
public Dialog onCreateDialog(Bundle state) {
super.onCreateDialog(state);
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
LayoutInflater inflater = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View view = inflater.inflate(R.layout.dialog_date_range_picker_layout, null, false);
final DatePicker startDatePicker = (DatePicker) view.findViewById(R.id.date_date_range_picker_start);
final DatePicker endDatePicker = (DatePicker) view.findViewById(R.id.date_date_range_picker_end);
startDatePicker.setMinDate(DateUtils.getToday());
endDatePicker.setMinDate(DateUtils.getToday());
builder.setView(view).setPositiveButton(R.string.confirm, new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
int[] numbers = new int[] { startDatePicker.getYear(), startDatePicker.getMonth(), startDatePicker.getDayOfMonth(), endDatePicker.getYear(),
endDatePicker.getMonth(), endDatePicker.getDayOfMonth() };
if(Validator.validateDateRange(numbers[0], numbers[1], numbers[2], numbers[3], numbers[4], numbers[5]))
listener.onDatePicked(numbers);
}
}).setNegativeButton(R.string.cancel, new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.cancel();
}
});
return builder.create();
}
}
|
[
"jaydi727@gmail.com"
] |
jaydi727@gmail.com
|
bff5dfb97597aa3371a50eed6019623ee6743578
|
5741045375dcbbafcf7288d65a11c44de2e56484
|
/reddit-decompilada/kotlin/reflect/jvm/internal/impl/serialization/deserialization/descriptors/DeserializedAnnotationsWithPossibleTargets$iterator$1.java
|
1f12f85fffa04dc8866712cd53251b035d179725
|
[] |
no_license
|
miarevalo10/ReporteReddit
|
18dd19bcec46c42ff933bb330ba65280615c281c
|
a0db5538e85e9a081bf268cb1590f0eeb113ed77
|
refs/heads/master
| 2020-03-16T17:42:34.840154
| 2018-05-11T10:16:04
| 2018-05-11T10:16:04
| 132,843,706
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 995
|
java
|
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.AnnotationWithTarget;
/* compiled from: DeserializedAnnotations.kt */
final class DeserializedAnnotationsWithPossibleTargets$iterator$1 extends Lambda implements Function1<AnnotationWithTarget, Boolean> {
public static final DeserializedAnnotationsWithPossibleTargets$iterator$1 f38869a = new DeserializedAnnotationsWithPossibleTargets$iterator$1();
DeserializedAnnotationsWithPossibleTargets$iterator$1() {
super(1);
}
public final /* synthetic */ Object mo6492a(Object obj) {
AnnotationWithTarget annotationWithTarget = (AnnotationWithTarget) obj;
Intrinsics.m26847b(annotationWithTarget, "it");
return Boolean.valueOf(annotationWithTarget.f25536b == null ? true : null);
}
}
|
[
"mi.arevalo10@uniandes.edu.co"
] |
mi.arevalo10@uniandes.edu.co
|
2ba1d496967add6e6290c042738b6a7a591421cd
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/26/26_ca5fe6bb7742f35f19d60fede0f6f41b51b3f713/FormContentFullConverter/26_ca5fe6bb7742f35f19d60fede0f6f41b51b3f713_FormContentFullConverter_t.java
|
b5ad8a2bb5b7fd6d9f9f52bc37f5bb5d32ddc0fe
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 7,025
|
java
|
package com.kit.lightserver.adapters.adapterout;
import java.util.Date;
import kit.primitives.forms.FieldAndContentBean;
import kit.primitives.forms.FormContent;
import kit.primitives.forms.FormContentFull;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.kit.lightserver.domain.types.ConhecimentoSTY;
import com.kit.lightserver.domain.types.NotafiscalSTY;
import com.kit.lightserver.domain.types.TemplateEnumSTY;
import com.kit.lightserver.types.response.FormContentFullConhecimentoRSTY;
import com.kit.lightserver.types.response.FormContentFullNotafiscalRSTY;
import com.kit.lightserver.types.response.FormContentFullRSTY;
public final class FormContentFullConverter {
private static final Logger LOGGER = LoggerFactory.getLogger(FormContentFullConverter.class);
static public ConverterResult convertForm(final FormContentFullRSTY formContentFullRSTY) {
final FormContentFull formContentFull;
if (formContentFullRSTY instanceof FormContentFullNotafiscalRSTY) {
final FormContentFullNotafiscalRSTY forContentFullNotafiscalRSTY = (FormContentFullNotafiscalRSTY) formContentFullRSTY;
formContentFull = FormContentFullConverter.convertNotaFiscal(forContentFullNotafiscalRSTY);
} else if (formContentFullRSTY instanceof FormContentFullConhecimentoRSTY) {
final FormContentFullConhecimentoRSTY forContentFullNotafiscalRSTY = (FormContentFullConhecimentoRSTY) formContentFullRSTY;
formContentFull = FormContentFullConverter.convertConhecimento(forContentFullNotafiscalRSTY);
} else {
formContentFull = null;
}
final ConverterResult result;
if (formContentFull != null) {
result = new ConverterResult(true, formContentFull);
} else {
result = new ConverterResult();
}
return result;
}
static private FormContentFull convertConhecimento(final FormContentFullConhecimentoRSTY formContentFullConhecimentoRSTY) {
final ConhecimentoSTY form = formContentFullConhecimentoRSTY.getConhecimentoSTY();
final int ktRowId = form.getKtRowId();
final String anchorCategoryId = ktRowId + "P";
final TemplateEnumSTY template = form.getTemplate();
final String templateStr = TemplateEnumSTYConverter.convert(template);
final FormContentFull response = new FormContentFull();
response.formId = templateStr + "%" + ktRowId;
response.formStatus = FormContentFullConverter.calculateFormStatus(form);
response.templateId = templateStr;
response.category = anchorCategoryId;
response.title = form.getTitle();
response.showFlags = 32; // because it is "Conhecimento" template
response.firstReadDate = new Date(); // new Date(0L) didn't work, need to discuss
response.lastEditDate = new Date(); // new Date(0L);
final String childrenCategoryAncora = ktRowId + "";
final FieldAndContentBean numeroConhecimentoBean = new FieldAndContentBean("ancora", childrenCategoryAncora);
response.add(numeroConhecimentoBean);
final String statusEntregaStr = StatusEntregaConverter.toKeyString(form.getStatusEntrega());
final FieldAndContentBean statusEntregaBean = new FieldAndContentBean("statusEntrega", statusEntregaStr);
response.add(statusEntregaBean);
if( form.getDataEntrega() != null ) { // Sanity
LOGGER.error("Investigate. form.getDataEntrega() != null, form="+form);
}
final FieldAndContentBean dataEntregaBean = new FieldAndContentBean("dataEntrega", "null"); // Mandatory, the mobile crashes without it
response.add(dataEntregaBean);
final String remetenteCNPJ = form.getRemetenteCNPJ();
final FieldAndContentBean remetenteCNPJBean = new FieldAndContentBean("remetenteCNPJ", remetenteCNPJ);
response.add(remetenteCNPJBean);
final String destinatarioNome = form.getDestinatarioNome();
final FieldAndContentBean destinatarioNomeBean = new FieldAndContentBean("destinatarioNome", destinatarioNome);
response.add(destinatarioNomeBean);
return response;
}
static public FormContentFull convertNotaFiscal(final FormContentFullNotafiscalRSTY formContentFullNotafiscalRSTY) {
final NotafiscalSTY form = formContentFullNotafiscalRSTY.getNotafiscalSTY();
final TemplateEnumSTY template = form.getTemplate();
final FormContentFull response = new FormContentFull();
final String templateStr = TemplateEnumSTYConverter.convert(template);
final int ktRowId = form.getKtRowId();
response.formId = templateStr + "%" + ktRowId;
response.formStatus = FormContentFullConverter.calculateFormStatus(form);
response.templateId = templateStr;
final String category = Integer.toString(form.getParentKnowledgeRowId());
response.category = category;
response.title = form.getTitle();
response.showFlags = 0; // because it is "NotaFiscal" template
response.firstReadDate = new Date();
response.lastEditDate = new Date();
final String parentCategoryAncora = form.getParentKnowledgeRowId() + "P";
final FieldAndContentBean numeroConhecimentoBean = new FieldAndContentBean("ancora", parentCategoryAncora);
response.add(numeroConhecimentoBean);
final FieldAndContentBean statusEntregaBean = new FieldAndContentBean("statusEntrega", "AN"); // AN = Ainda não entregue
response.add(statusEntregaBean);
final String dataEntregaStr = DataEntregaConverter.convert(form.getDataEntrega());
final FieldAndContentBean dataEntregaBean = new FieldAndContentBean("dataEntrega", dataEntregaStr);
response.add(dataEntregaBean);
return response;
}
static private byte calculateFormStatus(final ConhecimentoSTY form) {
if (form.isEdited()) {
return FormContent.FORM_EDITED;
}
else if (form.isRead()) {
return FormContent.FORM_READ;
}
else if (form.isReceived()) {
return FormContent.FORM_RECEIVED;
}
else {
return FormContent.FORM_NEW;
}
}
static private byte calculateFormStatus(final NotafiscalSTY form) {
if (form.isEdited()) {
return FormContent.FORM_EDITED;
}
else if (form.isRead()) {
return FormContent.FORM_READ;
}
else if (form.isReceived()) {
return FormContent.FORM_RECEIVED;
}
else {
return FormContent.FORM_NEW;
}
}
}// class
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
fc151bbecef9db84bdedbf0827038df75a33acf4
|
a18d920e3bf32f02ffaf853c1244a3ff41a939d8
|
/JLibrary04/lib/Caching/jcs-1.3/src/test/org/apache/jcs/auxiliary/lateral/socket/tcp/LateralTCPFilterRemoveHashCodeUnitTest.java
|
75428b83b48b427426103ae0d468f8db18e9cbd4
|
[
"Xerox",
"Apache-2.0",
"LicenseRef-scancode-mit-specification-disclaimer"
] |
permissive
|
amitabha66/JLibrary04
|
195e085181f1eef87b81ad80c006bdd4e9a66293
|
8236d7a01cd53b4d845def022fd75372da1d420a
|
refs/heads/master
| 2020-12-24T00:38:36.070462
| 2016-06-23T11:27:27
| 2016-06-23T11:27:27
| 61,799,715
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,231
|
java
|
package org.apache.jcs.auxiliary.lateral.socket.tcp;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.io.Serializable;
import junit.framework.TestCase;
import org.apache.jcs.JCS;
import org.apache.jcs.engine.CacheElement;
import org.apache.jcs.engine.behavior.ICacheElement;
/**
* @author asmuts
*/
public class LateralTCPFilterRemoveHashCodeUnitTest
extends TestCase
{
//private static boolean isSysOut = false;
private static boolean isSysOut = true;
/**
* Constructor for the TestDiskCache object.
*
* @param testName
*/
public LateralTCPFilterRemoveHashCodeUnitTest( String testName )
{
super( testName );
}
/**
* Test setup
*/
public void setUp()
{
JCS.setConfigFilename( "/TestTCPLateralRemoveFilter.ccf" );
}
/**
*
* @throws Exception
*/
public void test()
throws Exception
{
this.runTestForRegion( "region1", 200, 1 );
}
/**
* This tests issues tons of puts. It also check to see that a key that was
* put in was removed by the clients remove command.
*
* @param region
* Name of the region to access
* @param numOps
* @param testNum
*
* @exception Exception
* If an error occurs
*/
public void runTestForRegion( String region, int numOps, int testNum )
throws Exception
{
//boolean show = true;//false;
JCS cache = JCS.getInstance( region );
Thread.sleep( 100 );
TCPLateralCacheAttributes lattr2 = new TCPLateralCacheAttributes();
lattr2.setTcpListenerPort( 1102 );
lattr2.setTransmissionTypeName( "TCP" );
lattr2.setTcpServer( "localhost:1110" );
lattr2.setIssueRemoveOnPut( true );
// should still try to remove
lattr2.setAllowPut( false );
// this service will put and remove using the lateral to
// the cache instance above
// the cache thinks it is different since the listenerid is different
LateralTCPService service = new LateralTCPService( lattr2 );
service.setListenerId( 123456 );
String keyToBeRemovedOnPut = "test1";
String keyToNotBeRemovedOnPut = "test2";
Serializable dataToPassHashCodeCompare = new Serializable()
{
private static final long serialVersionUID = 1L;
public int hashCode()
{
return 1;
}
};
//String dataToPassHashCodeCompare = "this should be the same and not
// get removed.";
//p( "dataToPassHashCodeCompare hashcode = " + +
// dataToPassHashCodeCompare.hashCode() );
cache.put( keyToBeRemovedOnPut, "this should get removed." );
ICacheElement element1 = new CacheElement( region, keyToBeRemovedOnPut, region
+ ":data-this shouldn't get there" );
service.update( element1 );
cache.put( keyToNotBeRemovedOnPut, dataToPassHashCodeCompare );
ICacheElement element2 = new CacheElement( region, keyToNotBeRemovedOnPut, dataToPassHashCodeCompare );
service.update( element2 );
/*
* try { for ( int i = 1; i < numOps; i++ ) { Random ran = new Random( i );
* int n = ran.nextInt( 4 ); int kn = ran.nextInt( range ); String key =
* "key" + kn;
*
* ICacheElement element = new CacheElement( region, key, region +
* ":data" + i + " junk asdfffffffadfasdfasf " + kn + ":" + n );
* service.update( element ); if ( show ) { p( "put " + key ); }
*
* if ( i % 100 == 0 ) { System.out.println( cache.getStats() ); }
* } p( "Finished cycle of " + numOps ); } catch ( Exception e ) { p(
* e.toString() ); e.printStackTrace( System.out ); throw e; }
*/
JCS jcs = JCS.getInstance( region );
String key = "testKey" + testNum;
String data = "testData" + testNum;
jcs.put( key, data );
String value = (String) jcs.get( key );
assertEquals( "Couldn't put normally.", data, value );
// make sure the items we can find are in the correct region.
for ( int i = 1; i < numOps; i++ )
{
String keyL = "key" + i;
String dataL = (String) jcs.get( keyL );
if ( dataL != null )
{
assertTrue( "Incorrect region detected.", dataL.startsWith( region ) );
}
}
Thread.sleep( 200 );
Object testObj1 = cache.get( keyToBeRemovedOnPut );
p( "test object1 = " + testObj1 );
assertNull( "The test object should have been remvoed by a put.", testObj1 );
Object testObj2 = cache.get( keyToNotBeRemovedOnPut );
p( "test object2 = " + testObj2 + " hashCode = " );
if ( testObj2 != null )
{
p( "test2 hashcode = " + +testObj2.hashCode() );
}
assertNotNull( "This should not have been removed, since the hascode were the same.", testObj2 );
}
/**
* @param s String to print
*/
public static void p( String s )
{
if ( isSysOut )
{
System.out.println( s );
}
}
}
|
[
"amitabha66@gmail.com"
] |
amitabha66@gmail.com
|
590986243280e662f1fc421aa8712cae86ee129f
|
a00326c0e2fc8944112589cd2ad638b278f058b9
|
/src/main/java/000/128/958/CWE190_Integer_Overflow__int_console_readLine_multiply_54b.java
|
48282c25e657b73de60acc4ccd776a14d716ab26
|
[] |
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
| 1,430
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__int_console_readLine_multiply_54b.java
Label Definition File: CWE190_Integer_Overflow__int.label.xml
Template File: sources-sinks-54b.tmpl.java
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: console_readLine Read data from the console using readLine
* GoodSource: A hardcoded non-zero, non-min, non-max, even number
* Sinks: multiply
* GoodSink: Ensure there will not be an overflow before multiplying data by 2
* BadSink : If data is positive, multiply by 2, which can cause an overflow
* Flow Variant: 54 Data flow: data passed as an argument from one method through three others to a fifth; all five functions are in different classes in the same package
*
* */
public class CWE190_Integer_Overflow__int_console_readLine_multiply_54b
{
public void badSink(int data ) throws Throwable
{
(new CWE190_Integer_Overflow__int_console_readLine_multiply_54c()).badSink(data );
}
/* goodG2B() - use goodsource and badsink */
public void goodG2BSink(int data ) throws Throwable
{
(new CWE190_Integer_Overflow__int_console_readLine_multiply_54c()).goodG2BSink(data );
}
/* goodB2G() - use badsource and goodsink */
public void goodB2GSink(int data ) throws Throwable
{
(new CWE190_Integer_Overflow__int_console_readLine_multiply_54c()).goodB2GSink(data );
}
}
|
[
"anhtluet12@gmail.com"
] |
anhtluet12@gmail.com
|
4b23f080a9ab013077a4550e31dcce2d67ae8acf
|
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
|
/ant_cluster/19589/src_3.java
|
9f3cbec4c1ab21589bf0384c5d7b646e73d108b8
|
[] |
no_license
|
martinezmatias/GenPat-data-C3
|
63cfe27efee2946831139747e6c20cf952f1d6f6
|
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
|
refs/heads/master
| 2022-04-25T17:59:03.905613
| 2020-04-15T14:41:34
| 2020-04-15T14:41:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,526
|
java
|
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.todo.taskdefs.javadoc;
import java.util.ArrayList;
import java.util.Iterator;
import org.apache.myrmidon.api.TaskException;
import org.apache.tools.todo.types.Path;
public class DocletInfo
{
private ArrayList m_params = new ArrayList();
private String m_name;
private Path m_path;
public void setName( final String name )
{
m_name = name;
}
public void setPath( final Path path )
throws TaskException
{
if( m_path == null )
{
m_path = path;
}
else
{
m_path.append( path );
}
}
public String getName()
{
return m_name;
}
public Iterator getParams()
{
return m_params.iterator();
}
public Path getPath()
{
return m_path;
}
public DocletParam createParam()
{
final DocletParam param = new DocletParam();
m_params.add( param );
return param;
}
public Path createPath()
throws TaskException
{
if( m_path == null )
{
m_path = new Path();
}
Path path1 = m_path;
final Path path = new Path();
path1.addPath( path );
return path;
}
}
|
[
"375833274@qq.com"
] |
375833274@qq.com
|
b962c32c0e4a3656578d41044e58a6752e304adb
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project42/src/test/java/org/gradle/test/performance42_3/Test42_225.java
|
231a9784207aed28cd3b2efa09c1c88fa45e0b48
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 292
|
java
|
package org.gradle.test.performance42_3;
import static org.junit.Assert.*;
public class Test42_225 {
private final Production42_225 production = new Production42_225("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
2f67d8cdc58912334566ef4d43360bed7453019f
|
6b2a8dd202fdce77c971c412717e305e1caaac51
|
/solutions_5658282861527040_0/java/cly753/TheRepeater.java
|
92d0073038f536870a56fc972310bdd5a6f618e5
|
[] |
no_license
|
alexandraback/datacollection
|
0bc67a9ace00abbc843f4912562f3a064992e0e9
|
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
|
refs/heads/master
| 2021-01-24T18:27:24.417992
| 2017-05-23T09:23:38
| 2017-05-23T09:23:38
| 84,313,442
| 2
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,436
|
java
|
import java.io.*;
import java.util.*;
public class TheRepeater {
public static Scanner sc;
public static void main(String[] args) throws Exception {
// sc = new Scanner(System.in);
sc = new Scanner(new File("E:\\GitHub\\HHH\\CodeJam\\TheRepeater\\B-small-attempt0.in"));
int c = sc.nextInt();
String sol = "";
for (int i = 1; i <= c; i++)
sol += "Case #" + i + ": " + solve() + "\n";
System.out.print(sol);
PrintWriter pw = new PrintWriter(new File("E:\\GitHub\\HHH\\CodeJam\\TheRepeater\\B-small-attempt0.out"));
pw.print(sol);
pw.close();
}
public static String solve() {
long a = sc.nextInt();
long b = sc.nextInt();
long k = sc.nextInt();
long ans = 0;
for (int i = 0; i < a; i++) {
for (int j = 0; j < b; j++) {
long temp = i & j;
// System.out.println("i: " + i + ", j: " + j + ", temp: " + temp);
if (temp < k)
ans++;
}
}
return "" + ans;
}
// public static void toBinary(int in, int[] out) {
// String temp = Integer.toBinaryString();
// out = new int[temp.size()];
// for (int i = 0; i < temp.size(); i++) {
// out[i] = temp.charAt(i) - '0';
// }
// }
}
|
[
"eewestman@gmail.com"
] |
eewestman@gmail.com
|
2f4be0d1007171c5be15171c0e4c5a43df435e6e
|
f417dbb7856d987373c1588014b9aed059235015
|
/spring-context/src/test/java/org/springframework/aop/aspectj/autoproxy/AtAspectJAnnotationBindingTests.java
|
1fb620b845f1bc540a17fbc8e8759c2e63015b3b
|
[
"Apache-2.0"
] |
permissive
|
MonsterCodingJ/spring-framework
|
975c0bc44247cfbd367bdb35da67146c0d7e3971
|
5f152cb1530ea88485efef115e0ff05687301792
|
refs/heads/master
| 2022-12-05T04:43:08.831380
| 2020-08-28T00:47:56
| 2020-08-28T00:47:56
| 290,420,347
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,718
|
java
|
/*
* Copyright 2002-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
*
* 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.springframework.aop.aspectj.autoproxy;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.Resource;
import static org.junit.Assert.*;
/**
* @author Adrian Colyer
* @author Juergen Hoeller
* @author Chris Beams
*/
public class AtAspectJAnnotationBindingTests {
private AnnotatedTestBean testBean;
private ClassPathXmlApplicationContext ctx;
@Before
public void setup() {
ctx = new ClassPathXmlApplicationContext(getClass().getSimpleName() + "-context.xml", getClass());
testBean = (AnnotatedTestBean) ctx.getBean("testBean");
}
@Test
public void testAnnotationBindingInAroundAdvice() {
assertEquals("this value doThis", testBean.doThis());
assertEquals("that value doThat", testBean.doThat());
assertEquals(2, testBean.doArray().length);
}
@Test
public void testNoMatchingWithoutAnnotationPresent() {
assertEquals("doTheOther", testBean.doTheOther());
}
@Test
public void testPointcutEvaulatedAgainstArray() {
ctx.getBean("arrayFactoryBean");
}
}
@Aspect
class AtAspectJAnnotationBindingTestAspect {
@Around("execution(* *(..)) && @annotation(testAnn)")
public Object doWithAnnotation(ProceedingJoinPoint pjp, TestAnnotation testAnn)
throws Throwable {
String annValue = testAnn.value();
Object result = pjp.proceed();
return (result instanceof String ? annValue + " " + result : result);
}
}
class ResourceArrayFactoryBean implements FactoryBean<Object> {
@Override
@TestAnnotation("some value")
public Object getObject() {
return new Resource[0];
}
@Override
@TestAnnotation("some value")
public Class<?> getObjectType() {
return Resource[].class;
}
@Override
public boolean isSingleton() {
return true;
}
}
|
[
"459997077@qq.com"
] |
459997077@qq.com
|
0740f7b9974e8f4dcd1fc863c3533f603882877b
|
e1dadef5f26d4e09374c20e47cb467ebdaed3581
|
/src/main/java/com/tvd12/ezyfoxserver/client/entity/EzySimpleApp.java
|
03ff1aed1ff3724cde9276ec2033e50f8f13fa4a
|
[] |
no_license
|
jack2992/ezyfox-server-java-client
|
218775e6d6a543fa4b9dc8d0babb12900b6f1d4d
|
af42309f77982c65e3fa59efc8edf3e60cae140b
|
refs/heads/master
| 2023-06-03T17:48:00.840662
| 2021-06-27T16:37:45
| 2021-06-27T16:37:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,479
|
java
|
package com.tvd12.ezyfoxserver.client.entity;
import com.tvd12.ezyfox.entity.EzyArray;
import com.tvd12.ezyfox.entity.EzyData;
import com.tvd12.ezyfox.entity.EzyEntity;
import com.tvd12.ezyfox.factory.EzyEntityFactory;
import com.tvd12.ezyfox.util.EzyEquals;
import com.tvd12.ezyfoxserver.client.EzyClient;
import com.tvd12.ezyfoxserver.client.constant.EzyCommand;
import com.tvd12.ezyfoxserver.client.handler.EzyAppDataHandler;
import com.tvd12.ezyfoxserver.client.handler.EzyAppDataHandlers;
import com.tvd12.ezyfoxserver.client.request.EzyRequest;
public class EzySimpleApp extends EzyEntity implements EzyApp {
protected final int id;
protected final String name;
protected final EzyZone zone;
protected final EzyClient client;
protected final EzyAppDataHandlers dataHandlers;
public EzySimpleApp(EzyZone zone, int id, String name) {
this.client = zone.getClient();
this.zone = zone;
this.id = id;
this.name = name;
this.dataHandlers = client.getHandlerManager().getAppDataHandlers(name);
}
@Override
public void send(EzyRequest request) {
String cmd = (String) request.getCommand();
EzyData data = request.serialize();
send(cmd, data);
}
@Override
public void send(String cmd) {
send(cmd, EzyEntityFactory.EMPTY_OBJECT);
}
@Override
public void send(String cmd, EzyData data) {
send(cmd, data, false);
}
@Override
public void send(String cmd, EzyData data, boolean encrypted) {
EzyArray commandData = EzyEntityFactory.newArray();
commandData.add(cmd, data);
send(commandData, encrypted);
}
private void send(EzyArray request, boolean encrypted) {
EzyArray requestData = EzyEntityFactory.newArray();
requestData.add(id, request);
client.send(EzyCommand.APP_REQUEST, requestData, encrypted);
}
@Override
public void udpSend(EzyRequest request) {
String cmd = (String) request.getCommand();
EzyData data = request.serialize();
udpSend(cmd, data);
}
@Override
public void udpSend(String cmd) {
udpSend(cmd, EzyEntityFactory.EMPTY_OBJECT);
}
@Override
public void udpSend(String cmd, EzyData data) {
EzyArray commandData = EzyEntityFactory.newArray();
commandData.add(cmd, data);
EzyArray requestData = EzyEntityFactory.newArray();
requestData.add(id, commandData);
client.udpSend(EzyCommand.APP_REQUEST, requestData);
}
@Override
public int getId() {
return id;
}
@Override
public String getName() {
return name;
}
@Override
public EzyClient getClient() {
return client;
}
@Override
public EzyZone getZone() {
return zone;
}
@Override
public EzyAppDataHandler<?> getDataHandler(Object cmd) {
EzyAppDataHandler<?> handler = dataHandlers.getHandler(cmd);
return handler;
}
@Override
public boolean equals(Object obj) {
return new EzyEquals<EzySimpleApp>()
.function(t -> t.id)
.isEquals(this, obj);
}
@Override
public int hashCode() {
return id;
}
@Override
public String toString() {
return new StringBuilder()
.append("App(")
.append("id: ").append(id).append(", ")
.append("name: ").append(name)
.append(")")
.toString();
}
}
|
[
"itprono3@gmail.com"
] |
itprono3@gmail.com
|
faa3a58d5640ec53d48179c5980225adb40405e5
|
5cfaeebdc7c50ca23ee368fa372d48ed1452dfeb
|
/xd_2b_dashboard_clean/src/main/java/com/xiaodou/st/dataclean/dao/dashboard/alarm/AlarmRecordDao.java
|
b6b6b357e1dc6b2b2eebfc0fcc98a22f359910c4
|
[] |
no_license
|
zdhuangelephant/xd_pro
|
c8c8ff6dfcfb55aead733884909527389e2c8283
|
5611b036968edfff0b0b4f04f0c36968333b2c3b
|
refs/heads/master
| 2022-12-23T16:57:28.306580
| 2019-12-05T06:05:43
| 2019-12-05T06:05:43
| 226,020,526
| 0
| 2
| null | 2022-12-16T02:23:20
| 2019-12-05T05:06:27
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 630
|
java
|
package com.xiaodou.st.dataclean.dao.dashboard.alarm;
import org.springframework.stereotype.Repository;
import com.xiaodou.st.dataclean.model.domain.dashboard.alarm.AlarmRecordModel;
import com.xiaodou.summer.dao.jdbc.BaseDao;
/**
* @name @see com.xiaodou.st.dataclean.dao.dashboard.alarm.AlarmRecordDao.java
* @CopyRright (c) 2017 by Corp.XiaodouTech
*
* @author <a href="mailto:zhaodan@corp.51xiaodou.com">zhaodan</a>
* @date 2017年4月6日
* @description 报警记录操作Dao
* @version 1.0
*/
@Repository("alarmRecordDao")
public class AlarmRecordDao extends BaseDao<AlarmRecordModel> {
}
|
[
"zedong.huang@bitmain.com"
] |
zedong.huang@bitmain.com
|
dd00b9bf94d44c4e475d4475e860548dda048fd9
|
dc17a43f25cfd1d3ecf0ffebf709b2721c80031d
|
/IDE/device/com.lembed.lite.studio.device.ui/src/com/lembed/lite/studio/device/ui/widgets/LiteColumnAdvisor.java
|
1fd4bf4f1c37345aac54eb5ba802182845e88b83
|
[] |
no_license
|
skykying/bundle
|
e7b25a8d56668a5cb1cd70932d14958927960e50
|
0b3b590760baa953677eb99e07d7e1a37af5434c
|
refs/heads/master
| 2023-01-07T20:03:42.318642
| 2020-11-08T06:36:39
| 2020-11-08T06:36:39
| 306,216,461
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,985
|
java
|
/*******************************************************************************
* Copyright (c) 2015 ARM Ltd. and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* ARM Ltd and ARM Germany GmbH - Initial API and implementation
*******************************************************************************/
package com.lembed.lite.studio.device.ui.widgets;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ColumnViewer;
import com.lembed.lite.studio.device.core.lite.ILiteModelController;
import com.lembed.lite.studio.device.ui.CpStringsUI;
import com.lembed.lite.studio.device.ui.tree.ColumnAdvisor;
/**
* Extends ColumnAdvisor with IRteCobdelController support
*/
public abstract class LiteColumnAdvisor extends ColumnAdvisor implements ILiteColumnAdvisor {
private ILiteModelController fRteModelController = null;
public LiteColumnAdvisor(ColumnViewer columnViewer) {
super(columnViewer);
}
public LiteColumnAdvisor(ColumnViewer columnViewer, ILiteModelController modelController) {
this(columnViewer);
fRteModelController = modelController;
}
@Override
public void setModelController(ILiteModelController modelController) {
fRteModelController = modelController;
}
@Override
public ILiteModelController getModelController() {
return fRteModelController;
}
@Override
public void openUrl(String url) {
if (fRteModelController != null) {
String msg = fRteModelController.openUrl(url);
if (msg != null) {
String message = CpStringsUI.CannotOpenURL + url;
message += "\n"; //$NON-NLS-1$
message += msg;
MessageDialog.openError(this.control != null ? this.control.getShell() : null,
CpStringsUI.CannotOpenURL, message);
}
} else {
super.openUrl(url);
}
}
}
|
[
"root@lembed.com"
] |
root@lembed.com
|
32ef4cf39b6ff96be21c32a9b81a06f410e07508
|
c6e4c765862b98d11f12f800789e0982a980e5d9
|
/oap-server/server-storage-plugin/storage-elasticsearch7-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/elasticsearch7/cache/NetworkAddressInventoryCacheEs7DAO.java
|
447c7e12594e8f664b732c3c0dfe8bf7382b7a9b
|
[
"Apache-2.0",
"BSD-3-Clause"
] |
permissive
|
Fxdemon/incubator-skywalking
|
ba70e8a481c2613aa966e941a187f6eb140a67f2
|
89183fbc3830313566b58dbbab0a45cd94023141
|
refs/heads/master
| 2020-04-19T03:23:51.307175
| 2019-12-09T03:33:10
| 2019-12-09T03:33:10
| 152,511,085
| 2
| 0
|
Apache-2.0
| 2019-01-28T01:10:09
| 2018-10-11T01:14:13
|
Java
|
UTF-8
|
Java
| false
| false
| 2,664
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.skywalking.oap.server.storage.plugin.elasticsearch7.cache;
import org.apache.skywalking.oap.server.core.register.NetworkAddressInventory;
import org.apache.skywalking.oap.server.library.client.elasticsearch.ElasticSearchClient;
import org.apache.skywalking.oap.server.storage.plugin.elasticsearch.cache.NetworkAddressInventoryCacheEsDAO;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.SearchHit;
import org.elasticsearch.search.builder.SearchSourceBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author peng-yongsheng, jian.tan
* @author kezhenxu94
*/
public class NetworkAddressInventoryCacheEs7DAO extends NetworkAddressInventoryCacheEsDAO {
private static final Logger logger = LoggerFactory.getLogger(NetworkAddressInventoryCacheEs7DAO.class);
public NetworkAddressInventoryCacheEs7DAO(ElasticSearchClient client, int resultWindowMaxSize) {
super(client, resultWindowMaxSize);
}
@Override public NetworkAddressInventory get(int addressId) {
try {
SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
searchSourceBuilder.query(QueryBuilders.termQuery(NetworkAddressInventory.SEQUENCE, addressId));
searchSourceBuilder.size(1);
SearchResponse response = getClient().search(NetworkAddressInventory.INDEX_NAME, searchSourceBuilder);
if (response.getHits().getTotalHits().value == 1) {
SearchHit searchHit = response.getHits().getAt(0);
return builder.map2Data(searchHit.getSourceAsMap());
} else {
return null;
}
} catch (Throwable t) {
logger.error(t.getMessage(), t);
return null;
}
}
}
|
[
"wu.sheng@foxmail.com"
] |
wu.sheng@foxmail.com
|
52ad0cc9891ae0471eaa0b6bcc87838c960fee56
|
aff90cf49aefa5261a80df81e03a5f8a1147e9f1
|
/src/org/ie/client/Class59.java
|
72e09f3fd74e810fa407da919a15e274bc9db7d3
|
[] |
no_license
|
Rune-Status/mig5-interface-editor
|
7ce4e45e55f7e911254c0b63096e61485190d0d2
|
0261577a84161857033ecfe5f19596f6dca66d98
|
refs/heads/master
| 2020-11-25T08:57:15.369183
| 2019-12-17T09:42:42
| 2019-12-17T09:42:42
| 228,582,704
| 0
| 0
| null | 2019-12-17T09:59:50
| 2019-12-17T09:38:22
| null |
UTF-8
|
Java
| false
| false
| 1,300
|
java
|
package org.ie.client;
/* Class59 - Decompiled by JODE
* Visit http://jode.sourceforge.net/
*/
public class Class59
{
public static int anInt1129 = 0;
public static int anInt1130;
public static Class37_Sub4_Sub9_Sub1[] aClass37_Sub4_Sub9_Sub1Array1131;
public static int anInt1132;
public static Sprite[] aClass37_Sub4_Sub9_Sub3Array1133;
public static int anInt1134 = -1;
public static Sprite aClass37_Sub4_Sub9_Sub3_1135;
public static RSString aClass16_1136;
public static int anInt1137;
public static RSString aClass16_1138;
public static void method1163(byte i) {
aClass16_1136 = null;
aClass16_1138 = null;
aClass37_Sub4_Sub9_Sub1Array1131 = null;
aClass37_Sub4_Sub9_Sub3Array1133 = null;
aClass37_Sub4_Sub9_Sub3_1135 = null;
if (i != 0)
method1164(-60, 116);
}
public static void method1164(int i, int i_0_) {
anInt1137++;
if (i != 32701)
aClass16_1136 = null;
if (Class37_Sub7.anInt1904 == 0)
Class37_Sub4_Sub7.aClass37_Sub3_Sub3_2635.method384(i_0_,
(byte) 119);
else
Class37_Sub13.anInt2118 = i_0_;
}
static {
anInt1132 = 0;
aClass16_1136 = Class37_Sub2.create_rsstring("Spieler");
aClass16_1138 = Class37_Sub2.create_rsstring("headicons_hint");
anInt1130 = 0;
}
}
|
[
"iano2k4@hotmail.com"
] |
iano2k4@hotmail.com
|
c55da0872b967273daee4f76d8b205660eeded84
|
e9e57939c941911a761ac07cf3d89aa4fa3c25b6
|
/java/com/rumaruka/thaumicbases/common/block/BlockTBBush.java
|
f32db13b6ea3630a41983ac97132123daa0073e7
|
[
"MIT"
] |
permissive
|
Rumaruka/Thaumic-Bases-Unofficial
|
5517f1feb8f7b506dc38578ed6ae5f98971b2705
|
ee29997337436defa54ef152ead03a8bf463e037
|
refs/heads/master
| 2023-07-27T19:25:27.583396
| 2022-10-19T07:46:15
| 2022-10-19T07:46:15
| 132,911,104
| 7
| 19
|
MIT
| 2023-08-29T14:57:50
| 2018-05-10T14:22:49
|
Java
|
UTF-8
|
Java
| false
| false
| 8,183
|
java
|
package com.rumaruka.thaumicbases.common.block;
import com.rumaruka.thaumicbases.core.TBCore;
import com.rumaruka.thaumicbases.init.TBItems;
import net.minecraft.block.*;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyInteger;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.BlockRenderLayer;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.common.EnumPlantType;
import net.minecraftforge.common.IPlantable;
import net.minecraftforge.common.util.FakePlayer;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import javax.annotation.Nonnull;
import java.util.Random;
public class BlockTBBush extends Block implements IPlantable, IGrowable
{
public static final PropertyInteger AGE = PropertyInteger.create("age", 0, 3);
private ItemStack itemDrop = new ItemStack(TBItems.briar_seedbag);
//@formatter:off
public static final AxisAlignedBB SMALL_BUSH_AABB = new AxisAlignedBB(0.25D, 0.0D, 0.25D, 0.75D, 0.5D, 0.75D);
public static final AxisAlignedBB MEDIUM_BUSH_AABB = new AxisAlignedBB(0.125D, 0.0D, 0.125D, 0.875D, 0.75D, 0.875D);
public static final AxisAlignedBB FULL_BUSH_AABB = new AxisAlignedBB(0.0D, 0.0D, 0.0D, 1.0D, 1.0D, 1.0D);
//@formatter:on
public BlockTBBush()
{
super(Material.LEAVES);
this.setTickRandomly(true);
this.setHardness(0.3F);
this.setSoundType(SoundType.PLANT);
}
public boolean isMaxAge(IBlockState state)
{
return state.getValue(AGE).intValue() >= 3;
}
public void setItemDrop(ItemStack itemIn)
{
this.itemDrop = itemIn;
}
@Nonnull
@Override
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos)
{
int age = state.getValue(AGE).intValue();
if (age == 0)
{
return SMALL_BUSH_AABB;
}
if (age == 1)
{
return MEDIUM_BUSH_AABB;
}
if (age == 2)
{
return FULL_BUSH_AABB;
}
if (age == 3)
{
return FULL_BUSH_AABB;
}
return FULL_BUSH_AABB;
}
@Override
public EnumPlantType getPlantType(IBlockAccess world, BlockPos pos)
{
return EnumPlantType.Plains;
}
@Override
public IBlockState getPlant(IBlockAccess world, BlockPos pos)
{
IBlockState state = world.getBlockState(pos);
if (state.getBlock() != this)
{
return this.getDefaultState();
}
return state;
}
@Override
public boolean canGrow(World worldIn, BlockPos pos, IBlockState state, boolean isClient)
{
return !this.isMaxAge(state);
}
@Override
public boolean canUseBonemeal(World worldIn, Random rand, BlockPos pos, IBlockState state)
{
int meta = state.getValue(AGE);
if(meta<2) {
worldIn.setBlockState(pos,state.withProperty(AGE,meta+1));
return true;
}
return false;
}
@Override
public void grow(World worldIn, Random rand, BlockPos pos, IBlockState state)
{
}
/**
* Convert the given metadata into a BlockState for this Block
*/
@Override
public IBlockState getStateFromMeta(int meta)
{
return this.getDefaultState().withProperty(AGE, Integer.valueOf(meta));
}
/**
* Convert the BlockState into the correct metadata value
*/
@Override
public int getMetaFromState(IBlockState state)
{
return state.getValue(AGE).intValue();
}
@Override
protected BlockStateContainer createBlockState()
{
return new BlockStateContainer(this, new IProperty[] { AGE });
}
/**
* Used to determine ambient occlusion and culling when rebuilding chunks for render
*/
@Override
public boolean isOpaqueCube(IBlockState state)
{
return false;
}
@Override
@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer()
{
return TBCore.proxy.fancyGraphicsEnable() ? BlockRenderLayer.CUTOUT_MIPPED : BlockRenderLayer.SOLID;
}
@Override
public boolean causesSuffocation(IBlockState state)
{
return false;
}
@SuppressWarnings("deprecation")
@Override
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side)
{
return !TBCore.proxy.fancyGraphicsEnable() && blockAccess.getBlockState(pos.offset(side)).getBlock() == this ? false : super.shouldSideBeRendered(blockState, blockAccess, pos, side);
}
public boolean isTopBlock(int meta)
{
return meta > 3;
}
@Override
public void updateTick(World w, BlockPos pos, IBlockState state, Random rnd) {
super.updateTick(w, pos, state, rnd);
if(w.getBlockState(pos).getBlock()==this)
{
int meta = w.getBlockState(pos).getValue(AGE).intValue();
if(isTopBlock(meta))
{
if(meta-3 < 3 && w.rand.nextInt(4) == 0)
{
w.setBlockState(pos, this.getStateFromMeta(meta+1));
}
}else
{
if(meta < 3 && w.rand.nextInt(4) == 0)
{
w.setBlockState(pos, this.getStateFromMeta(meta+1));
}
}
}
}
@Override
public boolean isFullCube(IBlockState state)
{
int age = state.getValue(AGE).intValue();
if (age == 0)
{
return false;
}
if (age == 1)
{
return false;
}
if (age == 2)
{
return true;
}
if (age == 3)
{
return true;
}
return false;
}
@Override
public int damageDropped(IBlockState state)
{
return 0;
}
@Override
public void onBlockClicked(World worldIn, BlockPos pos, EntityPlayer playerIn)
{
if (worldIn.isRemote)
{
return;
}
int age = worldIn.getBlockState(pos).getValue(AGE).intValue();
if (age == 3)
{
worldIn.setBlockState(pos, this.getDefaultState().withProperty(AGE, Integer.valueOf(2)), 2);
ItemStack itemDrop = new ItemStack(TBItems.briar_seedbag, 1 );
EntityItem entityitem = new EntityItem(worldIn, playerIn.posX, playerIn.posY - 1.0D, playerIn.posZ, itemDrop);
worldIn.spawnEntity(entityitem);
if (!(playerIn instanceof FakePlayer))
{
entityitem.onCollideWithPlayer(playerIn);
}
}
}
@Override
public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ)
{
int age = state.getValue(AGE).intValue();
if (age == 3)
{
if (worldIn.isRemote)
{
return true;
}
worldIn.setBlockState(pos, this.getDefaultState().withProperty(AGE, Integer.valueOf(2)), 2);
ItemStack itemDrop = new ItemStack(TBItems.briar_seedbag, 1 );
EntityItem entityitem = new EntityItem(worldIn, playerIn.posX, playerIn.posY - 1.0D, playerIn.posZ, itemDrop);
worldIn.spawnEntity(entityitem);
if (!(playerIn instanceof FakePlayer))
{
entityitem.onCollideWithPlayer(playerIn);
}
return true;
}
return false;
}
}
|
[
"rumarukakunnya@gmail.com"
] |
rumarukakunnya@gmail.com
|
8ec36f7ad97e1e6e71cb48b0be49adf4d33d9f08
|
a251aed53871b298acd436dd023504d28f2bbe16
|
/chapter17/src/main/java/com/smart/web/MyWebSoketConfig.java
|
e141ba74f625d879e2cddee766cacd3cd47b14b8
|
[] |
no_license
|
landy8530/masterspring
|
266f3a55dc8cdbe846d4f398c37cba63ad87a097
|
1298080a6621f6b2192c4e13d5255c5fb0e985ae
|
refs/heads/master
| 2021-08-24T15:55:50.890900
| 2017-12-10T09:46:30
| 2017-12-10T09:46:30
| 113,738,741
| 2
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 732
|
java
|
package com.smart.web;
import org.springframework.context.annotation.Bean;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.config.annotation.WebSocketConfigurer;
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry;
/**
* Created by wenjg on 2016/6/2.
*/
@EnableWebSocket
public class MyWebSoketConfig implements WebSocketConfigurer {
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry webSocketHandlerRegistry) {
webSocketHandlerRegistry.addHandler(helloHandler(),"/chapter17/hello");
}
@Bean
public MyWebSocketHandler helloHandler(){
return new MyWebSocketHandler();
}
}
|
[
"landy8530@hotmail.com"
] |
landy8530@hotmail.com
|
c7b132f58ad44dfa1328d17e83d044b1736d4915
|
80a6b8d1efa66efbb94f0df684eedb81a5cc552c
|
/assertj-core/src/main/java/org/assertj/core/condition/Negative.java
|
80676bb6858697a846c1e1d5bfec651bdae61a7e
|
[
"Apache-2.0"
] |
permissive
|
AlHasan89/System_Re-engineering
|
43f232e90f65adc940af3bfa2b4d584d25ce076c
|
b80e6d372d038fd246f946e41590e07afddfc6d7
|
refs/heads/master
| 2020-03-27T05:08:26.156072
| 2019-01-06T17:54:59
| 2019-01-06T17:54:59
| 145,996,692
| 0
| 1
|
Apache-2.0
| 2019-01-06T17:55:00
| 2018-08-24T13:43:31
|
Java
|
UTF-8
|
Java
| false
| false
| 1,133
|
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.
*
* Copyright 2012-2017 the original author or authors.
*/
package org.assertj.core.condition;
import org.assertj.core.api.Condition;
import org.assertj.core.util.VisibleForTesting;
/**
* Inverse the condition.
*
* @author Nicolas François
* @author Mikhail Mazursky
*/
public abstract class Negative<T> extends Condition<T> {
@VisibleForTesting
final Condition<? super T> condition;
@Override
public boolean matches(T value) {
return !condition.matches(value);
}
protected Negative(Condition<? super T> condition) {
this.condition = condition;
}
}
|
[
"nw91@le.ac.uk"
] |
nw91@le.ac.uk
|
4acd8aa42ebab2cd3a05b6128ee60c6f9ebca24f
|
ec897c1152f53fa1efe994e7842cb73d5bd82d08
|
/mdgen/src/hamy/mdgen/api/generator/format/aseXML/RemoteServiceData.java
|
7cb77317d56da2497121b2d3f792d631ad4c3ce7
|
[
"MIT"
] |
permissive
|
hemantmurthy/mdgen
|
4b69e5f6805526bd35a532c1c61610dae052ad78
|
31333e4d7687526103d08b6f6772a1805cd12c7a
|
refs/heads/master
| 2020-12-27T22:16:34.251746
| 2020-06-11T00:21:10
| 2020-06-11T00:21:10
| 238,079,485
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,850
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.03.18 at 10:36:34 AM AEDT
//
package hamy.mdgen.api.generator.format.aseXML;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* Schema - RemoteService
* r36.1 WL. Change Meters element to be optional.
*
*
* <p>Java class for RemoteServiceData complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="RemoteServiceData">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="RequestID" type="{urn:aseXML:r38}ServiceRequestID"/>
* <element name="NMI" type="{urn:aseXML:r38}NMI"/>
* <element name="Meters" type="{urn:aseXML:r38}MeterSerialNumbers" minOccurs="0"/>
* <element name="ServiceType" type="{urn:aseXML:r38}RemoteServiceType"/>
* <element name="RequestCode" type="{urn:aseXML:r38}RemoteServiceRequestCode"/>
* <element name="ResponseFormat" type="{urn:aseXML:r38}ResponseFormat"/>
* <element name="FromDateTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="ToDateTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="UserDef" type="{urn:aseXML:r38}UserDefData" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RemoteServiceData", propOrder = {
"requestID",
"nmi",
"meters",
"serviceType",
"requestCode",
"responseFormat",
"fromDateTime",
"toDateTime",
"userDef"
})
public class RemoteServiceData {
@XmlElement(name = "RequestID", required = true)
protected String requestID;
@XmlElement(name = "NMI", required = true)
protected NMI nmi;
@XmlElement(name = "Meters")
protected MeterSerialNumbers meters;
@XmlElement(name = "ServiceType", required = true)
protected String serviceType;
@XmlElement(name = "RequestCode", required = true)
protected String requestCode;
@XmlElement(name = "ResponseFormat", required = true)
protected String responseFormat;
@XmlElement(name = "FromDateTime")
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar fromDateTime;
@XmlElement(name = "ToDateTime")
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar toDateTime;
@XmlElement(name = "UserDef")
protected UserDefData userDef;
/**
* Gets the value of the requestID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRequestID() {
return requestID;
}
/**
* Sets the value of the requestID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRequestID(String value) {
this.requestID = value;
}
/**
* Gets the value of the nmi property.
*
* @return
* possible object is
* {@link NMI }
*
*/
public NMI getNMI() {
return nmi;
}
/**
* Sets the value of the nmi property.
*
* @param value
* allowed object is
* {@link NMI }
*
*/
public void setNMI(NMI value) {
this.nmi = value;
}
/**
* Gets the value of the meters property.
*
* @return
* possible object is
* {@link MeterSerialNumbers }
*
*/
public MeterSerialNumbers getMeters() {
return meters;
}
/**
* Sets the value of the meters property.
*
* @param value
* allowed object is
* {@link MeterSerialNumbers }
*
*/
public void setMeters(MeterSerialNumbers value) {
this.meters = value;
}
/**
* Gets the value of the serviceType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getServiceType() {
return serviceType;
}
/**
* Sets the value of the serviceType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setServiceType(String value) {
this.serviceType = value;
}
/**
* Gets the value of the requestCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRequestCode() {
return requestCode;
}
/**
* Sets the value of the requestCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRequestCode(String value) {
this.requestCode = value;
}
/**
* Gets the value of the responseFormat property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getResponseFormat() {
return responseFormat;
}
/**
* Sets the value of the responseFormat property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setResponseFormat(String value) {
this.responseFormat = value;
}
/**
* Gets the value of the fromDateTime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getFromDateTime() {
return fromDateTime;
}
/**
* Sets the value of the fromDateTime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setFromDateTime(XMLGregorianCalendar value) {
this.fromDateTime = value;
}
/**
* Gets the value of the toDateTime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getToDateTime() {
return toDateTime;
}
/**
* Sets the value of the toDateTime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setToDateTime(XMLGregorianCalendar value) {
this.toDateTime = value;
}
/**
* Gets the value of the userDef property.
*
* @return
* possible object is
* {@link UserDefData }
*
*/
public UserDefData getUserDef() {
return userDef;
}
/**
* Sets the value of the userDef property.
*
* @param value
* allowed object is
* {@link UserDefData }
*
*/
public void setUserDef(UserDefData value) {
this.userDef = value;
}
}
|
[
"hemantmurthy@gmail.com"
] |
hemantmurthy@gmail.com
|
4d10b2d753ec3104a95db8135dd2bfc3b0a87802
|
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
|
/java/neo4j/2019/4/Plan.java
|
7efee0c1fa3c9db52732659b366ea701fc07ff87
|
[] |
no_license
|
rosoareslv/SED99
|
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
|
a062c118f12b93172e31e8ca115ce3f871b64461
|
refs/heads/main
| 2023-02-22T21:59:02.703005
| 2021-01-28T19:40:51
| 2021-01-28T19:40:51
| 306,497,459
| 1
| 1
| null | 2020-11-24T20:56:18
| 2020-10-23T01:18:07
| null |
UTF-8
|
Java
| false
| false
| 2,991
|
java
|
/*
* Copyright (c) 2002-2019 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.io.pagecache.randomharness;
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicInteger;
import org.neo4j.io.pagecache.PagedFile;
class Plan
{
private final Action[] plan;
private final Map<File,PagedFile> fileMap;
private final List<File> mappedFiles;
private final Set<File> filesTouched;
private final long[] executedByThread;
private final AtomicInteger actionCounter;
private final CountDownLatch startLatch;
Plan( Action[] plan, Map<File,PagedFile> fileMap, List<File> mappedFiles, Set<File> filesTouched )
{
this.plan = plan;
this.fileMap = fileMap;
this.mappedFiles = mappedFiles;
this.filesTouched = filesTouched;
executedByThread = new long[plan.length];
Arrays.fill( executedByThread, -1 );
actionCounter = new AtomicInteger();
startLatch = new CountDownLatch( 1 );
}
public void start()
{
startLatch.countDown();
}
public Action next() throws InterruptedException
{
startLatch.await();
int index = actionCounter.getAndIncrement();
if ( index < plan.length )
{
executedByThread[index] = Thread.currentThread().getId();
return plan[index];
}
return null;
}
public void close() throws IOException
{
for ( File mappedFile : mappedFiles )
{
PagedFile pagedFile = fileMap.get( mappedFile );
if ( pagedFile != null )
{
pagedFile.close();
}
}
}
public void print( PrintStream out )
{
out.println( "Plan: [thread; action]" );
for ( int i = 0; i < plan.length; i++ )
{
long threadId = executedByThread[i];
out.printf( " % 3d : %s%n", threadId, plan[i] );
if ( threadId == -1 )
{
break;
}
}
}
public Set<File> getFilesTouched()
{
return filesTouched;
}
}
|
[
"rodrigosoaresilva@gmail.com"
] |
rodrigosoaresilva@gmail.com
|
8b5addd47a67cb4c2a86e8714a0a9618492f8013
|
2fc61c19fd5c3e82e50eb9f55b20ab6ba4265b65
|
/ureport2-core/src/main/java/com/bstek/ureport/definition/CellStyle.java
|
9b55ff4d23344aa4e4037481c0f329c0ac71c556
|
[
"Apache-2.0"
] |
permissive
|
tanmingft/ureport
|
66172f3d15ca871e5c1620d8917440f9a38765b6
|
c58c3421c51b71cb25310a26dc4ebd6bcb0953fb
|
refs/heads/master
| 2021-01-20T13:13:35.687558
| 2017-08-29T08:21:38
| 2017-08-29T08:21:38
| 101,741,287
| 2
| 0
| null | 2017-08-29T09:02:03
| 2017-08-29T09:02:03
| null |
UTF-8
|
Java
| false
| false
| 3,955
|
java
|
/*******************************************************************************
* Copyright 2017 Bstek
*
* 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.bstek.ureport.definition;
import java.awt.Font;
import java.io.Serializable;
import org.codehaus.jackson.annotate.JsonIgnore;
/**
* @author Jacky.gao
* @since 2017年1月18日
*/
public class CellStyle implements Serializable{
private static final long serialVersionUID = 8327688051735343849L;
private String bgcolor;
private String forecolor="0,0,0";
private int fontSize=10;
private String fontFamily="宋体";
private String format;
private Alignment align;
private Alignment valign;
private Boolean bold;
private Boolean italic;
private Boolean underline;
private Boolean wrapCompute;
private Border leftBorder;
private Border rightBorder;
private Border topBorder;
private Border bottomBorder;
private Font font;
public Border getLeftBorder() {
return leftBorder;
}
public void setLeftBorder(Border leftBorder) {
this.leftBorder = leftBorder;
}
public Border getRightBorder() {
return rightBorder;
}
public void setRightBorder(Border rightBorder) {
this.rightBorder = rightBorder;
}
public Border getTopBorder() {
return topBorder;
}
public void setTopBorder(Border topBorder) {
this.topBorder = topBorder;
}
public Border getBottomBorder() {
return bottomBorder;
}
public void setBottomBorder(Border bottomBorder) {
this.bottomBorder = bottomBorder;
}
public String getBgcolor() {
return bgcolor;
}
public void setBgcolor(String bgcolor) {
this.bgcolor = bgcolor;
}
public String getForecolor() {
return forecolor;
}
public void setForecolor(String forecolor) {
this.forecolor = forecolor;
}
public int getFontSize() {
return fontSize;
}
public void setFontSize(int fontSize) {
this.fontSize = fontSize;
}
public String getFontFamily() {
return fontFamily;
}
public void setFontFamily(String fontFamily) {
this.fontFamily = fontFamily;
}
public String getFormat() {
return format;
}
public void setFormat(String format) {
this.format = format;
}
public Alignment getAlign() {
return align;
}
public void setAlign(Alignment align) {
this.align = align;
}
public Alignment getValign() {
return valign;
}
public void setValign(Alignment valign) {
this.valign = valign;
}
public Boolean getBold() {
return bold;
}
public void setBold(Boolean bold) {
this.bold = bold;
}
public Boolean getItalic() {
return italic;
}
public void setItalic(Boolean italic) {
this.italic = italic;
}
public Boolean getUnderline() {
return underline;
}
public void setUnderline(Boolean underline) {
this.underline = underline;
}
public Boolean getWrapCompute() {
return wrapCompute;
}
public void setWrapCompute(Boolean wrapCompute) {
this.wrapCompute = wrapCompute;
}
public void setFont(Font font) {
this.font = font;
}
@JsonIgnore
public Font getFont(){
if(this.font==null){
int fontStyle=Font.PLAIN;
if((bold!=null && bold) && (italic!=null && italic)){
fontStyle=Font.BOLD|Font.ITALIC;
}else if(bold!=null && bold){
fontStyle=Font.BOLD;
}else if(italic!=null && italic){
fontStyle=Font.ITALIC;
}
this.font=new Font(fontFamily,fontStyle,fontSize);
}
return this.font;
}
}
|
[
"jacky6024@sina.com"
] |
jacky6024@sina.com
|
31f2f4ee0a30f68c680405b47b627e5d7e1fd624
|
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
|
/methods/Method_24886.java
|
fcf6ce9b904d7ca48a201102f4f5636b75815080
|
[] |
no_license
|
P79N6A/icse_20_user_study
|
5b9c42c6384502fdc9588430899f257761f1f506
|
8a3676bc96059ea2c4f6d209016f5088a5628f3c
|
refs/heads/master
| 2020-06-24T08:25:22.606717
| 2019-07-25T15:31:16
| 2019-07-25T15:31:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 233
|
java
|
/**
* Parse the sketch size and set the internal sizeInfo variable
*/
public SurfaceInfo initSketchSize(String code,boolean sizeWarning) throws SketchException {
sizeInfo=parseSketchSize(code,sizeWarning);
return sizeInfo;
}
|
[
"sonnguyen@utdallas.edu"
] |
sonnguyen@utdallas.edu
|
c5fd57084f805056f647cc48e9fe49774e45af26
|
e1e5bd6b116e71a60040ec1e1642289217d527b0
|
/H5/L2_Scripts_com/L2_Scripts_Revision_20720_2268/dist/gameserver/data/scripts/ai/DeluLizardmanSpecialCommander.java
|
6391bfb4142801c4e353dd8370ebb18149203412
|
[] |
no_license
|
serk123/L2jOpenSource
|
6d6e1988a421763a9467bba0e4ac1fe3796b34b3
|
603e784e5f58f7fd07b01f6282218e8492f7090b
|
refs/heads/master
| 2023-03-18T01:51:23.867273
| 2020-04-23T10:44:41
| 2020-04-23T10:44:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,129
|
java
|
package ai;
import java.util.List;
import l2s.commons.util.Rnd;
import l2s.gameserver.ai.CtrlEvent;
import l2s.gameserver.ai.Fighter;
import l2s.gameserver.model.Creature;
import l2s.gameserver.model.instances.NpcInstance;
import l2s.gameserver.scripts.Functions;
/**
* @author pchayka
*/
public class DeluLizardmanSpecialCommander extends Fighter
{
private boolean _shouted = false;
public DeluLizardmanSpecialCommander(NpcInstance actor)
{
super(actor);
}
@Override
protected void onEvtSpawn()
{
_shouted = false;
super.onEvtSpawn();
}
@Override
protected void onEvtAttacked(Creature attacker, int damage)
{
NpcInstance actor = getActor();
if(Rnd.chance(40) && !_shouted)
{
_shouted = true;
Functions.npcSay(actor, "Come on my fellows, assist me here!");
List<NpcInstance> around = actor.getAroundNpc(1000, 300);
if(around != null && !around.isEmpty())
for(NpcInstance npc : around)
if(npc.isMonster())
npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, 5000);
}
super.onEvtAttacked(attacker, damage);
}
}
|
[
"64197706+L2jOpenSource@users.noreply.github.com"
] |
64197706+L2jOpenSource@users.noreply.github.com
|
ea439441c60d99fd9dd7b03924e090c827f6b973
|
3471259729500a5cf67a7b1810bf560e771fe3f4
|
/odps-sdk/odps-sdk-core/src/main/java/com/aliyun/odps/simpleframework/xml/transform/EnumTransform.java
|
0b035ac5a4299a71bc0ae7479b0cc69a1568b504
|
[
"Apache-2.0"
] |
permissive
|
aliyun/aliyun-odps-java-sdk
|
df8fcc1ca4545097c6819cbc58ff849985389e68
|
d16a592a55e0782ed72e0713a7fef85c187ffe03
|
refs/heads/master
| 2023-09-05T11:57:34.060838
| 2022-08-10T05:51:54
| 2022-08-10T05:51:54
| 38,743,792
| 91
| 64
|
NOASSERTION
| 2023-09-06T07:17:39
| 2015-07-08T09:10:55
|
Java
|
UTF-8
|
Java
| false
| false
| 2,533
|
java
|
/*
* EnumTransform.java May 2007
*
* Copyright (C) 2007, Niall Gallagher <niallg@users.sf.net>
*
* 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.aliyun.odps.simpleframework.xml.transform;
/**
* The <code>EnumTransform</code> represents a transform that is
* used to transform enumerations to strings and back again. This
* is used when enumerations are used in comma separated arrays.
* This may be created multiple times for different types.
*
* @author Niall Gallagher
*/
class EnumTransform implements Transform<Enum> {
/**
* This is the specific enumeration that this transforms.
*/
private final Class type;
/**
* Constructor for the <code>EnumTransform</code> object. This
* is used to create enumerations from strings and convert them
* back again. This allows enumerations to be used in arrays.
*
* @param type this is the enumeration type to be transformed
*/
public EnumTransform(Class type) {
this.type = type;
}
/**
* This method is used to convert the string value given to an
* appropriate representation. This is used when an object is
* being deserialized from the XML document and the value for
* the string representation is required.
*
* @param value this is the string representation of the value
*
* @return this returns an appropriate instanced to be used
*/
public Enum read(String value) throws Exception {
return Enum.valueOf(type, value);
}
/**
* This method is used to convert the provided value into an XML
* usable format. This is used in the serialization process when
* there is a need to convert a field value in to a string so
* that that value can be written as a valid XML entity.
*
* @param value this is the value to be converted to a string
*
* @return this is the string representation of the given value
*/
public String write(Enum value) throws Exception {
return value.name();
}
}
|
[
"lymanrb@gmail.com"
] |
lymanrb@gmail.com
|
22a1ca4d459d4d310b5a32eb523e8a57aa65fbe1
|
ce7adad993fa5b21ce05a2527cf5842cbf3e4604
|
/examples/api-clients/src/main/java/org/jboss/resteasy/examples/twitter/TwitterClient.java
|
e1ce14f23ef2578923689acaeda238a70054d0b6
|
[
"Apache-2.0"
] |
permissive
|
soul2zimate/resteasy2
|
3fabeabf206a641317b2db19bcda741896c775fa
|
5fca9d3089069947d1085e093ed4ce93c506cb89
|
refs/heads/master
| 2022-12-22T11:27:50.878948
| 2015-08-07T06:28:11
| 2015-08-07T06:32:00
| 40,344,474
| 0
| 0
|
NOASSERTION
| 2022-12-15T23:36:40
| 2015-08-07T06:18:43
|
Java
|
UTF-8
|
Java
| false
| false
| 4,800
|
java
|
package org.jboss.resteasy.examples.twitter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import java.util.Properties;
import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import net.oauth.OAuthMessage;
import org.apache.http.HttpHost;
import org.apache.http.client.HttpClient;
import org.apache.http.conn.params.ConnRoutePNames;
import org.apache.http.impl.client.DefaultHttpClient;
import org.jboss.resteasy.client.ClientExecutor;
import org.jboss.resteasy.client.ProxyFactory;
import org.jboss.resteasy.client.core.executors.ApacheHttpClient4Executor;
import org.jboss.resteasy.plugins.providers.RegisterBuiltin;
import org.jboss.resteasy.spi.ResteasyProviderFactory;
public class TwitterClient {
public static void main(String[] args) throws Exception {
if (args.length < 1) {
System.err.println("TwitterClient [help | <operation>]");
return;
} else if ("help".equals(args[0])) {
System.err.println("\n*Please see the readme.txt*\n");
return;
}
new TwitterClient().execute(args[0]);
}
private Properties props;
private File propFile;
private TwitterClientOAuthHelper oauthHelper;
private TwitterResource twitter;
public TwitterClient() {
try {
props = new Properties();
propFile = new File(TwitterClient.class.getResource(
"/twitter.properties").getFile());
props.load(new FileInputStream(propFile));
oauthHelper = new TwitterClientOAuthHelper(props, propFile);
RegisterBuiltin.register(ResteasyProviderFactory.getInstance());
final ClientExecutor clientExecutor = new ApacheHttpClient4Executor(
createClient());
twitter = ProxyFactory.create(TwitterResource.class,
"http://api.twitter.com/1", clientExecutor);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
private void execute(String operation) throws Exception {
if ("request".equals(operation)) {
oauthHelper.request();
System.out.println(propFile.getCanonicalPath() + " updated");
} else if ("authorize".equals(operation)) {
String url = oauthHelper.authorize();
System.out.println("Paste this in a browser:");
System.out.println(url);
} else if ("access".equals(operation)) {
oauthHelper.access();
System.out.println(propFile.getCanonicalPath() + " updated");
} else if ("query".equals(operation)) {
printStatuses(twitter
.getFriendsTimelines(oauthHelper
.prepareOAuthHeaderForAccesingResources(
props,
OAuthMessage.GET,
"http://api.twitter.com/1/statuses/friends_timeline.xml",
null)));
} else if ("update".equals(operation)) {
String status = "I programmatically tweeted with the RESTEasy Client at "
+ new Date();
twitter.updateStatus(oauthHelper
.prepareOAuthHeaderForAccesingResources(props,
OAuthMessage.POST,
"http://api.twitter.com/1/statuses/update.xml",
status), status);
}
}
public static interface TwitterResource {
@Path("/statuses/friends_timeline.xml")
@GET
Statuses getFriendsTimelines(@HeaderParam("Authorization") String header);
@Path("/statuses/update.xml")
@POST
Status updateStatus(@HeaderParam("Authorization") String header,
@FormParam("status") String status);
}
private static void printStatuses(Statuses statuses) {
for (Status status : statuses.status)
System.out.println(status);
}
private static HttpClient createClient() {
HttpClient httpClient = new DefaultHttpClient();
// Use Proxy to access if you are in one of the countries that cannot connects to twitter directly.
// HttpHost proxy = new HttpHost("your_proxy_url", your_proxy_port);
// httpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY,
// proxy);
return httpClient;
}
@XmlRootElement
public static class Statuses {
public List<Status> status;
}
@XmlRootElement
public static class Status {
public String text;
public User user;
@XmlElement(name = "created_at")
@XmlJavaTypeAdapter(value = DateAdapter.class)
public Date created;
public String toString() {
return String.format("== %s: %s (%s)", user.name, text, created);
}
}
public static class User {
public String name;
}
}
|
[
"cdewolf@redhat.com"
] |
cdewolf@redhat.com
|
f5642620df07e008560ba592f77a08f7f2517112
|
2612f336d667a087823234daf946f09b40d8ca3d
|
/plugins/ant/src/com/intellij/lang/ant/dom/AntlibDomFileDescription.java
|
312c12f18eafd1e287da7a0433f4a314f8694a05
|
[
"Apache-2.0"
] |
permissive
|
tnorbye/intellij-community
|
df7f181861fc5c551c02c73df3b00b70ab2dd589
|
f01cf262fc196bf4dbb99e20cd937dee3705a7b6
|
refs/heads/master
| 2021-04-06T06:57:57.974599
| 2018-03-13T17:37:00
| 2018-03-13T17:37:00
| 125,079,130
| 2
| 0
|
Apache-2.0
| 2018-03-13T16:09:41
| 2018-03-13T16:09:41
| null |
UTF-8
|
Java
| false
| false
| 1,620
|
java
|
/*
* Copyright 2000-2010 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 com.intellij.lang.ant.dom;
import com.intellij.openapi.module.Module;
import com.intellij.psi.xml.XmlDocument;
import com.intellij.psi.xml.XmlFile;
import com.intellij.psi.xml.XmlTag;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* @author Eugene Zhuravlev
*/
public class AntlibDomFileDescription extends AntFileDescription<AntDomAntlib> {
private static final String ROOT_TAG_NAME = "antlib";
public AntlibDomFileDescription() {
super(AntDomAntlib.class, ROOT_TAG_NAME);
}
public boolean isMyFile(@NotNull XmlFile file, @Nullable Module module) {
return super.isMyFile(file, module) && isAntLibFile(file);
}
public static boolean isAntLibFile(final XmlFile xmlFile) {
final XmlDocument document = xmlFile.getDocument();
if (document != null) {
final XmlTag tag = document.getRootTag();
return tag != null && ROOT_TAG_NAME.equals(tag.getName()) && tag.getContext() instanceof XmlDocument;
}
return false;
}
}
|
[
"jeka@intellij.com"
] |
jeka@intellij.com
|
169c7ebcabfd13e48386f30b8b0a95b209f86697
|
9e2d5dbca9de4bc24d0be8dd60747268cba344b5
|
/bootiful-rsocket/src/main/java/rsb/rsocket/routing/client/ClientConfiguration.java
|
977b4b158a8ab58031b9d6abcf9390cee71a518a
|
[] |
no_license
|
awgroeneveld/rsocket
|
cabbd2938f08bf0819397f98466abd90cf65f9ea
|
1810e4ab08fdd0531726c1533b878ff7349ef578
|
refs/heads/master
| 2023-02-21T14:53:40.510096
| 2021-01-27T23:35:14
| 2021-01-27T23:35:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 529
|
java
|
package rsb.rsocket.routing.client;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.messaging.rsocket.RSocketRequester;
import rsb.rsocket.BootifulProperties;
@Configuration
class ClientConfiguration {
@Bean
RSocketRequester rSocketRequester(BootifulProperties properties,
RSocketRequester.Builder builder) {
return builder.connectTcp(properties.getRsocket().getHostname(),
properties.getRsocket().getPort()).block();
}
}
|
[
"josh@joshlong.com"
] |
josh@joshlong.com
|
db8425779e447b1aedf92d28fffacf775c0ef184
|
02d7815d44030fa9cee804c3736320baef63f858
|
/sdk/src/main/java/org/zstack/sdk/UpdateZoneResult.java
|
4b63868cd650131c6fc990fa244b842dd337122d
|
[
"Apache-2.0"
] |
permissive
|
txdyzdy/zstack
|
b9d60f1f580fefa4734bce6a5ddedb081a383caa
|
3b919f5d1c9b156fcef374cfd61c80ce5b52d8a2
|
refs/heads/master
| 2021-09-05T22:22:45.585615
| 2018-01-31T06:36:03
| 2018-01-31T06:36:03
| 114,520,620
| 1
| 0
| null | 2017-12-17T08:19:48
| 2017-12-17T08:19:48
| null |
UTF-8
|
Java
| false
| false
| 273
|
java
|
package org.zstack.sdk;
public class UpdateZoneResult {
public ZoneInventory inventory;
public void setInventory(ZoneInventory inventory) {
this.inventory = inventory;
}
public ZoneInventory getInventory() {
return this.inventory;
}
}
|
[
"xin.zhang@mevoco.com"
] |
xin.zhang@mevoco.com
|
cf2439fe20c6bfdb64bdc3f1d84a037544ed9824
|
f9b571fe2008211cd041dba0f59a2ad750517f17
|
/http/src/main/java/com/okline/vboss/http/OLException.java
|
872608cd391f48e99365e583feece63263d70ad4
|
[] |
no_license
|
w296365959/OKLine
|
fb855c4994f03e82e2e82c61f1871da3bf35fe9c
|
0982270b1572f625b0983b7d36b3f9e3d9b15506
|
refs/heads/master
| 2020-07-29T17:52:55.850568
| 2019-09-22T10:44:02
| 2019-09-22T10:44:02
| 209,903,938
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,561
|
java
|
package com.okline.vboss.http;
/**
* OKLine(HangZhou) co.,Ltd.<br/>
* Author : Shi Haijun <br/>
* Email : haijun@okline.cn <br/>
* Date : 2017/3/29 <br/>
* Summary : 在这里描述Class的主要功能
*/
public class OLException extends RuntimeException {
public static final int CODE_HTTP_EXCEPTION = 1000;
private int code = -1;
private String bodyType;
public OLException(int code, String message) {
this(message);
this.code = code;
}
public OLException(int code, String bodyType, String message) {
this(message);
this.code = code;
this.bodyType = bodyType;
}
public OLException(String message) {
super(message);
}
public OLException(int code, String message, Throwable cause) {
super(message, cause);
this.code = code;
}
public OLException(int code, Throwable cause) {
super(cause);
this.code = code;
}
/**
* 获取异常错误码
*/
public int getCode() {
return code;
}
@Override
public String toString() {
String s = bodyType != null ? String.format(" %s : [%s] ", getClass().getName(), bodyType) : getClass().getName() + " : ";
String message = getLocalizedMessage();
String codeDesc = code == -1 ? "Unknown" : String.valueOf(code);
// String addition = bodyType != null ? String.format("[%s] %s", bodyType, codeDesc) : codeDesc;
return (message != null) ? (s + codeDesc + " , " + message) : s + " " + codeDesc;
}
}
|
[
"726759622@qq.com"
] |
726759622@qq.com
|
9423ce9bf3df80e715106dbbeca9c994b6de4dfe
|
5698a7888b0b35e7a2510ee278b24168cda41d47
|
/filemanager/src/androidTest/java/com/migu/filemanager/ExampleInstrumentedTest.java
|
6d301ede46ddb270c99ec13bad0cf008e0071211
|
[] |
no_license
|
d071225/AndroidStudioDemo
|
80a94edbf88d6c4aad586d0d30eb224301de9225
|
122966d69406bd58d34ac80e63ee9a1c7e73a450
|
refs/heads/master
| 2020-06-18T20:32:06.025168
| 2017-06-05T09:34:42
| 2017-06-05T09:34:42
| 74,941,379
| 0
| 0
| null | 2017-05-03T03:26:10
| 2016-11-28T05:48:37
|
Java
|
UTF-8
|
Java
| false
| false
| 744
|
java
|
package com.migu.filemanager;
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("com.migu.filemanager", appContext.getPackageName());
}
}
|
[
"764552635@qq.com"
] |
764552635@qq.com
|
0ad463f8a797b0296a7d5bec55a368d9fa794cab
|
724e4cb5cffa3ca2be6e9ac8fe5ecd92113d459a
|
/src/main/java/com/zc/concurrent/T01LockPrint.java
|
b404720b020b13db70ab09ec3bc85a0da4774b4d
|
[] |
no_license
|
FlyingZC/MyThread
|
b5194ca9ca65591965ee6284df17144412c5a15b
|
a94d5837273c441cdc452f5c726206e2f650a314
|
refs/heads/master
| 2021-01-19T04:15:00.532924
| 2019-12-06T16:13:13
| 2019-12-06T16:13:13
| 65,822,883
| 0
| 0
| null | 2020-10-13T18:01:33
| 2016-08-16T13:31:56
|
Java
|
UTF-8
|
Java
| false
| false
| 1,863
|
java
|
package com.zc.concurrent;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
// 两个线程 无规则获取锁并输出zccc或xddd
public class T01LockPrint
{
public static void main(String[] args)
{
// 两个线程必须使用同一个Outputer对象,才能起到使用同一把锁的作用
final Outputer printer = new Outputer();
new Thread(new Runnable()
{
@Override
public void run()
{
while (true)
{
printer.output("zccccccccc");
}
}
}).start();
new Thread(new Runnable()
{
@Override
public void run()
{
while (true)
{
printer.output("xddddddddd");
}
}
}).start();
}
static class Outputer
{
//创建锁对象 一个可重入的互斥锁 Lock
Lock lock = new ReentrantLock();
public void output(String name)
{
int len = name.length();
lock.lock();// 加锁,放在try外面.不要放到try里,如果在获取锁(自定义锁的实现)时发生了异常,异常抛出的同时,也会导致锁无故释放
try
{
System.out.print(Thread.currentThread().getName() + "输出: ");
for (int i = 0; i < len; i++)
{
// 若此时抛异常,不会释放锁.所以建议在finally里unlock()
System.out.print(name.charAt(i));
}
System.out.println();
}
finally
{//可以没有catch块
lock.unlock();//在finally中解锁
}
}
}
}
|
[
"1262797000@qq.com"
] |
1262797000@qq.com
|
fa531dc232da0ae206ab21c7aa89ac104f86dc1c
|
88f60611ea3ec5e7c8f83ab7746fe185563de396
|
/src/flow/MP/VerificaPermissao/SituacaoParticipante.java
|
9901974451495a90218f031213fd99efdd1e50a4
|
[] |
no_license
|
gtau/WSTeste
|
ac6b8bcba4d002a2b70ac94c71940742e89c9ca2
|
998359cc9346e9f4a614a8552a59f5b9ce5bcf3d
|
refs/heads/master
| 2021-01-01T04:06:50.085131
| 2016-04-27T01:49:30
| 2016-04-27T01:49:30
| 57,174,030
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,050
|
java
|
package flow.MP.VerificaPermissao;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* <p>Java class for SituacaoParticipante complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="SituacaoParticipante">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="situacao" type="{http://ebo.multiplusfidelidade.com.br/v1}TipoReferencia" minOccurs="0"/>
* <element name="data-hora-situacao" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="descricao" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SituacaoParticipante", propOrder = {
"situacao",
"dataHoraSituacao",
"descricao"
})
public class SituacaoParticipante {
protected TipoReferencia situacao;
@XmlElement(name = "data-hora-situacao")
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar dataHoraSituacao;
protected String descricao;
/**
* Gets the value of the situacao property.
*
* @return
* possible object is
* {@link TipoReferencia }
*
*/
public TipoReferencia getSituacao() {
return situacao;
}
/**
* Sets the value of the situacao property.
*
* @param value
* allowed object is
* {@link TipoReferencia }
*
*/
public void setSituacao(TipoReferencia value) {
this.situacao = value;
}
/**
* Gets the value of the dataHoraSituacao property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDataHoraSituacao() {
return dataHoraSituacao;
}
/**
* Sets the value of the dataHoraSituacao property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDataHoraSituacao(XMLGregorianCalendar value) {
this.dataHoraSituacao = value;
}
/**
* Gets the value of the descricao property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescricao() {
return descricao;
}
/**
* Sets the value of the descricao property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescricao(String value) {
this.descricao = value;
}
}
|
[
"gabrieltau@365ti.com.br"
] |
gabrieltau@365ti.com.br
|
06ed775b938277d666c9e8b63d37c3236749a74f
|
f0e3f7ec4525290e46a54917911b2791930d34a7
|
/swarm-pos-erply/src/main/java/com/sonrisa/swarm/erply/service/ErplyStoreService.java
|
cd6aee0ee7b68fd5e1ccf07896bbbf9259ada6fe
|
[] |
no_license
|
nobesnickr/POS-Gateway-Source-Swarm
|
f808e65a2bbf4fd28d6fd041a996de031a2a49bc
|
cc35ba6218cdc120e76a1c51609f57f07afc8184
|
refs/heads/master
| 2021-04-12T03:54:25.359891
| 2015-01-19T20:54:43
| 2015-01-19T20:54:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,832
|
java
|
/*
* Copyright (c) 2014 Sonrisa Informatikai Kft. All Rights Reserved.
*
* This software is the confidential and proprietary information of
* Sonrisa Informatikai Kft. ("Confidential Information").
* You shall not disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Sonrisa.
*
* SONRISA MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
* THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SONRISA SHALL NOT BE LIABLE FOR
* ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
* DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
*/
package com.sonrisa.swarm.erply.service;
import com.sonrisa.swarm.erply.ErplyAccount;
import com.sonrisa.swarm.erply.service.exception.ErplyStoreServiceException;
import com.sonrisa.swarm.model.legacy.StoreEntity;
/**
* An Erply store service is capable of registering new Erply stores in the gateway
* based on the store's credentials and client code.
*
* @TODO: Possible do warehouse based division later. This might not be soo easy, as
* timezone information is only available on an "account" level, we would need a
* test account with at least two warehouses in different timezones to try this (which we don't have now).
*
* @author Barnabas
*/
public interface ErplyStoreService {
/**
* Finds account in the <code>stores</table> or
* create new.
*/
StoreEntity getStore(ErplyAccount account);
/**
* Create new RICS account using its credentials
*/
ErplyAccount getAccount(String clientCode, String userName, String password) throws ErplyStoreServiceException;
}
|
[
"szirmayb@sonrisa.hu"
] |
szirmayb@sonrisa.hu
|
671ac3a0c078965d732bd6d7865d3cbf0e18fb7f
|
573a66e4f4753cc0f145de8d60340b4dd6206607
|
/JS-CS-Detection-byExample/Dataset (ALERT 5 GB)/362855/quickfix-1.2.0/quickfix/src/java/src/org/quickfix/fix42/ResendRequest.java
|
337df3384ab4f05c18b0098f35eb63752c46454a
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-2-Clause"
] |
permissive
|
mkaouer/Code-Smells-Detection-in-JavaScript
|
3919ec0d445637a7f7c5f570c724082d42248e1b
|
7130351703e19347884f95ce6d6ab1fb4f5cfbff
|
refs/heads/master
| 2023-03-09T18:04:26.971934
| 2022-03-23T22:04:28
| 2022-03-23T22:04:28
| 73,915,037
| 8
| 3
| null | 2023-02-28T23:00:07
| 2016-11-16T11:47:44
| null |
UTF-8
|
Java
| false
| false
| 1,075
|
java
|
package org.quickfix.fix42;
import org.quickfix.FieldNotFound;
import org.quickfix.field.*;
public class ResendRequest extends Message
{
public ResendRequest()
{
getHeader().setField(new MsgType("2"));
}
public ResendRequest(
BeginSeqNo aBeginSeqNo,
EndSeqNo aEndSeqNo )
{
getHeader().setField(new MsgType("2"));
set(aBeginSeqNo);
set(aEndSeqNo);
}
public void set(BeginSeqNo value)
{
setField(value);
}
public BeginSeqNo get(BeginSeqNo value) throws FieldNotFound
{
getField(value);
return value;
}
public BeginSeqNo getBeginSeqNo() throws FieldNotFound
{
BeginSeqNo value = new BeginSeqNo();
getField(value);
return value;
}
public void set(EndSeqNo value)
{
setField(value);
}
public EndSeqNo get(EndSeqNo value) throws FieldNotFound
{
getField(value);
return value;
}
public EndSeqNo getEndSeqNo() throws FieldNotFound
{
EndSeqNo value = new EndSeqNo();
getField(value);
return value;
}
}
|
[
"mmkaouer@umich.edu"
] |
mmkaouer@umich.edu
|
f5ecdda4eaba917f006253d67d965ef794d8c11c
|
d620ab67aa540c7d8466325a39f962fcf074bd06
|
/modules/dsb-service-client/src/main/java/org/petalslink/dsb/service/client/WSAClient.java
|
65acbf0d84511c254b1961ff7b6e79515507a4c3
|
[] |
no_license
|
chamerling/petals-dsb
|
fa8439f28bb4077a9324371d7eb691b484a12d24
|
58b355b79f4a4d753a3c762f619ec2b32833549a
|
refs/heads/master
| 2016-09-05T20:44:59.125937
| 2012-03-27T10:28:37
| 2012-03-27T10:28:37
| 3,722,608
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,918
|
java
|
/**
*
*/
package org.petalslink.dsb.service.client;
import javax.xml.namespace.QName;
import org.petalslink.dsb.api.WSAConstants;
/**
* @author chamerling
*
*/
public abstract class WSAClient implements Client {
// FIXME : THis comes from the CDK and should me in an API somewhere...
public static final String NAMESPACE_URI = "http://www.w3.org/2005/08/addressing";
public static final String PREFIX = "wsa";
public static final QName TO_QNAME = new QName(NAMESPACE_URI, "To", PREFIX);
private String protocol;
private String to;
/**
*
*/
public WSAClient(String protocol, String to) {
this.protocol = protocol;
this.to = to;
}
/*
* (non-Javadoc)
*
* @see
* org.petalslink.dsb.service.client.Client#fireAndForget(org.petalslink
* .dsb.service.client.Message)
*/
public final void fireAndForget(Message message) throws ClientException {
updateMessage(message);
doFireAndForget(message);
}
/**
* @param message
*/
protected abstract void doFireAndForget(Message message) throws ClientException;
/*
* (non-Javadoc)
*
* @see
* org.petalslink.dsb.service.client.Client#sendReceive(org.petalslink.dsb
* .service.client.Message)
*/
public final Message sendReceive(Message message) throws ClientException {
updateMessage(message);
return doSendReceive(message);
}
/**
* @param message
* @return
*/
protected abstract Message doSendReceive(Message message) throws ClientException;
/*
* (non-Javadoc)
*
* @see
* org.petalslink.dsb.service.client.Client#sendAsync(org.petalslink.dsb
* .service.client.Message,
* org.petalslink.dsb.service.client.MessageListener)
*/
public final void sendAsync(Message message, MessageListener listener) throws ClientException {
updateMessage(message);
doSendAsync(message, listener);
}
/**
* Set the right data for WSA calls...
*
* @param message
*/
private void updateMessage(Message message) {
String ns = String.format(WSAConstants.NS_TEMPLATE, protocol);
String serviceName = WSAConstants.SERVICE_NAME;
String itfName = WSAConstants.INTERFACE_NAME;
String ep = WSAConstants.ENDPOINT_NAME;
final QName service = new QName(ns, serviceName);
final QName interfaceQName = new QName(ns, itfName);
final String endpoint = ep;
message.setService(service);
message.setEndpoint(endpoint);
message.setInterface(interfaceQName);
message.setProperty(TO_QNAME.toString(), to);
}
/**
* @param message
* @param listener
*/
protected abstract void doSendAsync(Message message, MessageListener listener)
throws ClientException;
}
|
[
"christophe.hamerling@gmail.com"
] |
christophe.hamerling@gmail.com
|
9118377dc9248c07f9a7ed19e0ac4d5ce45ac834
|
8227ef7a8506842cc2eac2ce72706efa1189f131
|
/core/domain-web/src/main/java/fr/k2i/adbeback/core/business/player/WebRole.java
|
af535074e1c94c813f54fba37970d5fbbf0ee902
|
[] |
no_license
|
icudroid/addonf
|
a4fa46376cd259bb6b3d19c15e21592e1f4a93ce
|
442fba8e35592e94f7bd4a568c0c72078d13b33a
|
refs/heads/master
| 2021-01-11T08:51:33.154640
| 2018-01-16T14:36:49
| 2018-01-16T14:36:49
| 76,735,425
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 579
|
java
|
package fr.k2i.adbeback.core.business.player;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import java.io.Serializable;
/**
* Created with IntelliJ IDEA.
* User: dev
* Date: 15/01/14
* Time: 15:36
* To change this template use File | Settings | File Templates.
*/
@Data
public class WebRole implements Serializable, GrantedAuthority {
private Role role;
public WebRole(){}
public WebRole(Role role) {
this.role = role;
}
@Override
public String getAuthority() {
return role.getName();
}
}
|
[
"dimitri@d-kahn.net"
] |
dimitri@d-kahn.net
|
f1de9cb6de9850415eba2d038e0ebd2fe19ba446
|
3b4bdbba320c49d32f569c4013f0479109b742a9
|
/moco-core/src/main/java/com/github/dreamhead/moco/extractor/XPathRequestExtractor.java
|
34a96b3b6b6f10fc16563ad5384e15de34a6980f
|
[
"MIT"
] |
permissive
|
liweinan0423/moco
|
32f5c856041fcd37f960e1d21709f9e489279eb4
|
810419bae52bdf1a47c321a5dea2a3275297f427
|
refs/heads/master
| 2020-12-30T18:50:22.236556
| 2013-06-23T08:21:13
| 2013-06-23T08:21:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,178
|
java
|
package com.github.dreamhead.moco.extractor;
import com.github.dreamhead.moco.RequestExtractor;
import org.jboss.netty.handler.codec.http.HttpRequest;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathExpression;
import javax.xml.xpath.XPathExpressionException;
import javax.xml.xpath.XPathFactory;
public class XPathRequestExtractor implements RequestExtractor {
private final XmlExtractorHelper helper = new XmlExtractorHelper();
private final ContentRequestExtractor extractor = new ContentRequestExtractor();
private final XPathExpression xPathExpression;
public XPathRequestExtractor(String xpath) {
XPathFactory xPathfactory = XPathFactory.newInstance();
XPath target = xPathfactory.newXPath();
try {
xPathExpression = target.compile(xpath);
} catch (XPathExpressionException e) {
throw new RuntimeException(e);
}
}
@Override
public String extract(HttpRequest request) {
try {
return xPathExpression.evaluate(helper.extractAsInputSource(request, extractor));
} catch (XPathExpressionException e) {
return "";
}
}
}
|
[
"dreamhead.cn@gmail.com"
] |
dreamhead.cn@gmail.com
|
578bf16f7255af8ce3acae9e87ba5a175e55ba24
|
7c4ece985a9b727e551d51b4a63bd919fc938ac0
|
/RxTools-library/src/main/java/com/vondear/rxtools/activity/ActivityBaseLocation.java
|
7eddb5ac307cc8e58874583b3f7cca583bd91b1c
|
[
"Apache-2.0"
] |
permissive
|
duboAndroid/RxTools-master
|
caf57dbd9ae6a7d2463b2a79012dc0a859de2b6a
|
dfa9549ce577dac661d0360af7f90a4dd16fa232
|
refs/heads/master
| 2021-07-17T13:54:48.816686
| 2017-10-25T10:37:48
| 2017-10-25T10:37:48
| 108,255,984
| 166
| 41
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,944
|
java
|
package com.vondear.rxtools.activity;
import android.Manifest;
import android.content.pm.PackageManager;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.location.LocationProvider;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import com.vondear.rxtools.RxLocationTool;
import com.vondear.rxtools.RxVibrateTool;
import com.vondear.rxtools.view.RxToast;
import com.vondear.rxtools.view.dialog.RxDialogGPSCheck;
public abstract class ActivityBaseLocation extends ActivityBase {
public double mLongitude = 0;//经度
public double mLatitude = 0;//纬度
public LocationManager mLocationManager;
private LocationListener mLocationListener;
public abstract void setGpsInfo(Location location);
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
initGPS();//初始化GPS
gpsCheck();//GPS开启状态检测
}
private void initGPS() {
mLocationManager = (LocationManager) this.getSystemService(LOCATION_SERVICE);
}
//----------------------------------------------------------------------------------------------检测GPS是否已打开 start
private void gpsCheck() {
if (!RxLocationTool.isGpsEnabled(this)) {
RxDialogGPSCheck rxDialogGPSCheck = new RxDialogGPSCheck(mContext);
rxDialogGPSCheck.show();
} else {
getLocation();
}
}
//==============================================================================================检测GPS是否已打开 end
private void getLocation() {
if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(mContext, new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION}, 1);
return;
}
mLocationListener = new LocationListener() {
@Override
public void onLocationChanged(Location location) {
mLongitude = location.getLongitude();
mLatitude = location.getLatitude();
setGpsInfo(location);
}
@Override
public void onStatusChanged(String provider, int status, Bundle extras) {
switch (status) {
//GPS状态为可见时
case LocationProvider.AVAILABLE:
break;
//GPS状态为服务区外时
case LocationProvider.OUT_OF_SERVICE:
RxToast.normal("当前GPS信号弱");
RxVibrateTool.vibrateOnce(mContext, 3000);
break;
//GPS状态为暂停服务时
case LocationProvider.TEMPORARILY_UNAVAILABLE:
break;
}
}
@Override
public void onProviderEnabled(String provider) {
RxToast.normal("当前GPS设备已打开");
RxVibrateTool.vibrateOnce(mContext, 800);
}
@Override
public void onProviderDisabled(String provider) {
RxToast.normal("当前GPS设备已关闭");
RxVibrateTool.vibrateOnce(mContext, 800);
gpsCheck();
}
};
mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 2000, 0, mLocationListener);
}
@Override
protected void onDestroy() {
super.onDestroy();
if (mLocationListener != null) {
mLocationManager.removeUpdates(mLocationListener);
}
}
}
|
[
"277627117@qq.com"
] |
277627117@qq.com
|
9f909776d4a91c389b726712df874536b6328752
|
a4178e5042f43f94344789794d1926c8bdba51c0
|
/iwxxm2Converter/src/test/resources/iwxxm/3.1/output/aero/aixm/schema/_5_1/GuidanceLineLightSystemTimeSlicePropertyType.java
|
0813937149e8e6a977239fc2fff56d2ba45ad104
|
[
"Apache-2.0"
] |
permissive
|
moryakovdv/iwxxmConverter
|
c6fb73bc49765c4aeb7ee0153cca04e3e3846ab0
|
5c2b57e57c3038a9968b026c55e381eef0f34dad
|
refs/heads/master
| 2023-07-20T06:58:00.317736
| 2023-07-05T10:10:10
| 2023-07-05T10:10:10
| 128,777,786
| 11
| 7
|
Apache-2.0
| 2023-07-05T10:03:12
| 2018-04-09T13:38:59
|
Java
|
UTF-8
|
Java
| false
| false
| 3,389
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.05.06 at 11:11:25 PM MSK
//
package aero.aixm.schema._5_1;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for GuidanceLineLightSystemTimeSlicePropertyType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="GuidanceLineLightSystemTimeSlicePropertyType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.aixm.aero/schema/5.1.1}GuidanceLineLightSystemTimeSlice"/>
* </sequence>
* <attGroup ref="{http://www.opengis.net/gml/3.2}OwnershipAttributeGroup"/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "GuidanceLineLightSystemTimeSlicePropertyType", propOrder = {
"guidanceLineLightSystemTimeSlice"
})
public class GuidanceLineLightSystemTimeSlicePropertyType {
@XmlElement(name = "GuidanceLineLightSystemTimeSlice", required = true)
protected GuidanceLineLightSystemTimeSliceType guidanceLineLightSystemTimeSlice;
@XmlAttribute(name = "owns")
protected Boolean owns;
/**
* Gets the value of the guidanceLineLightSystemTimeSlice property.
*
* @return
* possible object is
* {@link GuidanceLineLightSystemTimeSliceType }
*
*/
public GuidanceLineLightSystemTimeSliceType getGuidanceLineLightSystemTimeSlice() {
return guidanceLineLightSystemTimeSlice;
}
/**
* Sets the value of the guidanceLineLightSystemTimeSlice property.
*
* @param value
* allowed object is
* {@link GuidanceLineLightSystemTimeSliceType }
*
*/
public void setGuidanceLineLightSystemTimeSlice(GuidanceLineLightSystemTimeSliceType value) {
this.guidanceLineLightSystemTimeSlice = value;
}
public boolean isSetGuidanceLineLightSystemTimeSlice() {
return (this.guidanceLineLightSystemTimeSlice!= null);
}
/**
* Gets the value of the owns property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isOwns() {
if (owns == null) {
return false;
} else {
return owns;
}
}
/**
* Sets the value of the owns property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setOwns(boolean value) {
this.owns = value;
}
public boolean isSetOwns() {
return (this.owns!= null);
}
public void unsetOwns() {
this.owns = null;
}
}
|
[
"moryakovdv@gmail.com"
] |
moryakovdv@gmail.com
|
ec06739afde8f63ebbf094901ccfdfd53eef534b
|
42d1506e7e4cc28f87e1cbebe2ce323039f9a1a9
|
/fedra/src/main/java/org/example/collections/CollApp2.java
|
5dd8db4265f66448a610916badc5db5e8cd4c106
|
[] |
no_license
|
michalstadnicki/java-school
|
9e4787e1388247cf3ddbb55e27c99b2eaad3643e
|
fcd3c3a8512c93f56c8c3b4c4884829c9e1e9c33
|
refs/heads/master
| 2021-01-05T00:12:27.467022
| 2020-01-26T08:08:02
| 2020-01-26T08:20:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 260
|
java
|
package org.example.collections;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import java.util.Collection;
import java.util.Map;
public class CollApp2 extends CollApp {
}
|
[
"you@example.com"
] |
you@example.com
|
c5909d35442a31b366c0d736ac3befea7a8d2646
|
4ec3bf36837420a2cb84bec4adb772d2664f6e92
|
/FrameworkDartesESP_alunosSDIS/brokerOM2M/org.eclipse.om2m/org.eclipse.om2m.commons/src/main/java/org/eclipse/om2m/commons/resource/AnnounceableResource.java
|
3a4f74f3d94761f7dd9ef0c63c3563fe7dd80cc5
|
[] |
no_license
|
BaltasarAroso/SDIS_OM2M
|
1f2ce310b3c1bf64c2a95ad9d236c64bf672abb0
|
618fdb4da1aba5621a85e49dae0442cafef5ca31
|
refs/heads/master
| 2020-04-08T19:08:22.073674
| 2019-01-20T15:42:48
| 2019-01-20T15:42:48
| 159,641,777
| 0
| 2
| null | 2020-03-06T15:49:51
| 2018-11-29T09:35:02
|
C
|
UTF-8
|
Java
| false
| false
| 4,498
|
java
|
/*******************************************************************************
* Copyright (c) 2013-2016 LAAS-CNRS (www.laas.fr)
* 7 Colonel Roche 31077 Toulouse - France
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Initial Contributors:
* Thierry Monteil : Project manager, technical co-manager
* Mahdi Ben Alaya : Technical co-manager
* Samir Medjiah : Technical co-manager
* Khalil Drira : Strategy expert
* Guillaume Garzone : Developer
* François Aïssaoui : Developer
*
* New contributors :
*******************************************************************************/
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.04.15 at 03:56:27 PM CEST
//
package org.eclipse.om2m.commons.resource;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.MappedSuperclass;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlList;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import org.eclipse.om2m.commons.constants.ShortName;
/**
* <p>
* Java class for announceableResource complex type.
*
* <p>
* The following schema fragment specifies the expected content contained within
* this class.
*
* <pre>
* <complexType name="announceableResource">
* <complexContent>
* <extension base="{http://www.onem2m.org/xml/protocols}regularResource">
* <sequence>
* <element name="announceTo" type="{http://www.onem2m.org/xml/protocols}listOfURIs" minOccurs="0"/>
* <element name="announcedAttribute" minOccurs="0">
* <simpleType>
* <list itemType="{http://www.w3.org/2001/XMLSchema}token" />
* </simpleType>
* </element>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "announceableResource")
@XmlSeeAlso({ LocationPolicy.class, RemoteCSE.class, Node.class, AE.class,
NodeAnnc.class, MgmtObj.class, Group.class, Container.class, AbstractFlexContainer.class })
@MappedSuperclass
public class AnnounceableResource extends RegularResource {
@XmlList
@XmlElement(name=ShortName.ANNOUNCE_TO, required=false, namespace="")
protected List<String> announceTo;
@XmlList
@XmlElement(name=ShortName.ANNOUNCED_ATTRIBUTE, required=false, namespace="")
protected List<String> announcedAttribute;
/**
* Gets the value of the announceTo property.
*
* <p>
* This accessor method returns a reference to the live list, not a
* snapshot. Therefore any modification you make to the returned list will
* be present inside the JAXB object. This is why there is not a
* <CODE>set</CODE> method for the announceTo property.
*
* <p>
* For example, to add a new item, do as follows:
*
* <pre>
* getAnnounceTo().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list {@link String }
*
*
*/
public List<String> getAnnounceTo() {
if (announceTo == null) {
announceTo = new ArrayList<String>();
}
return this.announceTo;
}
/**
* Gets the value of the announcedAttribute property.
*
* <p>
* This accessor method returns a reference to the live list, not a
* snapshot. Therefore any modification you make to the returned list will
* be present inside the JAXB object. This is why there is not a
* <CODE>set</CODE> method for the announcedAttribute property.
*
* <p>
* For example, to add a new item, do as follows:
*
* <pre>
* getAnnouncedAttribute().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list {@link String }
*
*
*/
public List<String> getAnnouncedAttribute() {
if (announcedAttribute == null) {
announcedAttribute = new ArrayList<String>();
}
return this.announcedAttribute;
}
}
|
[
"ba_aroso@icloud.com"
] |
ba_aroso@icloud.com
|
987defab65c805fb1de1d8954b38fc6712172f3f
|
3d89836012f4436076aa4acc31ac13f55e04be4f
|
/security/src/main/java/io/micronaut/security/token/generator/TokenGenerator.java
|
72c928a02ad1a3045f18093f89b129f263575301
|
[
"Apache-2.0"
] |
permissive
|
joshuayan/micronaut-security
|
9908b2da4b2e4af654601e7bd6555d8c7312964b
|
dc58cf96608177a0c7b7d2b4698ccb7dd7287feb
|
refs/heads/master
| 2021-01-06T11:37:03.050514
| 2020-02-10T07:09:11
| 2020-02-12T09:09:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,413
|
java
|
/*
* Copyright 2017-2020 original 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.micronaut.security.token.generator;
import io.micronaut.security.authentication.UserDetails;
import javax.annotation.Nullable;
import java.util.Map;
import java.util.Optional;
/**
* Responsible for generating token strings.
*
* @author Sergio del Amo
* @since 1.0
*/
public interface TokenGenerator {
/**
* @param userDetails Authenticated user's representation.
* @param expiration The amount of time in milliseconds until the token expires
* @return An optional JWT string
*/
Optional<String> generateToken(UserDetails userDetails, @Nullable Integer expiration);
/**
* @param claims Claims to be included in the JWT token to be generated
* @return a JSON Web Token ( JWT )
*/
Optional<String> generateToken(Map<String, Object> claims);
}
|
[
"sergio.delamo@softamo.com"
] |
sergio.delamo@softamo.com
|
5da2ff924710f60eec66be8fee85805d17bbc9c6
|
7f9760c5526adb67b4b8df913aa836cf8b23ed56
|
/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/TemporalPrecisionEnum.java
|
165ad3efe0f74414ceb20e41b83f3fa7abb6866a
|
[] |
no_license
|
sallenwilliams/hapi-fhir
|
4335ab64591b6ff858fcc740e318a88fc317d07b
|
8e7370500002049d019d64244dbc2a5edb4c511b
|
refs/heads/master
| 2021-01-22T15:04:11.238013
| 2015-01-09T21:15:55
| 2015-01-09T21:15:55
| 29,741,317
| 1
| 0
| null | 2015-01-23T16:26:30
| 2015-01-23T16:26:30
| null |
UTF-8
|
Java
| false
| false
| 2,009
|
java
|
package org.hl7.fhir.instance.model;
/*
* #%L
* HAPI FHIR - Core Library
* %%
* Copyright (C) 2014 - 2015 University Health Network
* %%
* 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.
* #L%
*/
import java.util.Calendar;
import java.util.Date;
import org.apache.commons.lang3.time.DateUtils;
public enum TemporalPrecisionEnum {
YEAR(Calendar.YEAR) {
@Override
public Date add(Date theInput, int theAmount) {
return DateUtils.addYears(theInput, theAmount);
}
},
MONTH(Calendar.MONTH) {
@Override
public Date add(Date theInput, int theAmount) {
return DateUtils.addMonths(theInput, theAmount);
}
},
DAY(Calendar.DATE) {
@Override
public Date add(Date theInput, int theAmount) {
return DateUtils.addDays(theInput, theAmount);
}
},
MINUTE(Calendar.MINUTE) {
@Override
public Date add(Date theInput, int theAmount) {
return DateUtils.addMinutes(theInput, theAmount);
}
},
SECOND(Calendar.SECOND) {
@Override
public Date add(Date theInput, int theAmount) {
return DateUtils.addSeconds(theInput, theAmount);
}
},
MILLI(Calendar.MILLISECOND) {
@Override
public Date add(Date theInput, int theAmount) {
return DateUtils.addMilliseconds(theInput, theAmount);
}
},
;
private int myCalendarConstant;
TemporalPrecisionEnum(int theCalendarConstant) {
myCalendarConstant = theCalendarConstant;
}
public abstract Date add(Date theInput, int theAmount);
public int getCalendarConstant() {
return myCalendarConstant;
}
}
|
[
"jamesagnew@gmail.com"
] |
jamesagnew@gmail.com
|
ea59b3114ee5425925c14e012ab9dc1b1497bda6
|
e7861c0ed1b49224b6c4ccf6dbfc63be61a026e5
|
/JAVA/12월 20일 컬렉션/차주님/testCollectionProject/src/practice3/AscBookTitle.java
|
565f001d0186ba33442c0d3047b7d7a6402b9963
|
[] |
no_license
|
kdw912001/kh
|
7d7610b4ddaab286714131d1c9108373f6c920a9
|
73c511db0723e0bc49258d8d146ba6f8ee9db762
|
refs/heads/master
| 2020-04-06T10:19:58.220792
| 2019-05-03T18:41:57
| 2019-05-03T18:41:57
| 157,376,594
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 503
|
java
|
package practice3;
import practice2.Book;
public class AscBookTitle implements java.util.Comparator{
public AscBookTitle(){}
@Override
public int compare(Object o1, Object o2) {
//도서명 기준 오름차순 정렬 처리
int result = 0;
if(o1 instanceof Book && o2 instanceof Book){
Book b1 = (Book)o1;
Book b2 = (Book)o2;
result = b1.getTitle().compareTo(b2.getTitle()) > 0 ? 1 :
(b1.getTitle().compareTo(b2.getTitle()) < 0 ? -1 : 0);
}
return result;
}
}
|
[
"kdw912001@naver.com"
] |
kdw912001@naver.com
|
aeee4a28414c456d22e54d36f36fdc696d38577f
|
e5224618c59081af1062825d92d7fb1b87967151
|
/src/main/java/io/mycat/memory/unsafe/utils/sort/PrefixComparators.java
|
92c72b1f61921a70b0965ea70035f48b680cf591
|
[
"GPL-2.0-only"
] |
permissive
|
lizhanke/Mycat-Server
|
5836c51089925ef92d69fde50b0f17f0846700cb
|
ea2e1469c9f84c42ecf1f916a7ad537cbfe2f012
|
refs/heads/master
| 2021-01-11T19:48:52.761511
| 2018-03-12T08:44:25
| 2018-09-06T14:03:20
| 49,316,066
| 0
| 0
|
Apache-2.0
| 2018-09-06T14:03:22
| 2016-01-09T07:57:01
|
Java
|
UTF-8
|
Java
| false
| false
| 4,097
|
java
|
package io.mycat.memory.unsafe.utils.sort;
import com.google.common.primitives.UnsignedLongs;
import io.mycat.memory.unsafe.types.ByteArray;
public class PrefixComparators {
private PrefixComparators() {}
public static final PrefixComparator STRING = new UnsignedPrefixComparator();
public static final PrefixComparator STRING_DESC = new UnsignedPrefixComparatorDesc();
public static final PrefixComparator BINARY = new UnsignedPrefixComparator();
public static final PrefixComparator BINARY_DESC = new UnsignedPrefixComparatorDesc();
public static final PrefixComparator LONG = new SignedPrefixComparator();
public static final PrefixComparator LONG_DESC = new SignedPrefixComparatorDesc();
public static final PrefixComparator DOUBLE = new UnsignedPrefixComparator();
public static final PrefixComparator DOUBLE_DESC = new UnsignedPrefixComparatorDesc();
public static final PrefixComparator RadixSortDemo = new RadixSortDemo();
public static final class BinaryPrefixComparator {
public static long computePrefix(byte[] bytes) {
return ByteArray.getPrefix(bytes);
}
}
public static final class DoublePrefixComparator {
/**
* Converts the double into a value that compares correctly as an unsigned long. For more
* details see http://stereopsis.com/radix.html.
*/
public static long computePrefix(double value) {
// Java's doubleToLongBits already canonicalizes all NaN values to the smallest possible
// positive NaN, so there's nothing special we need to do for NaNs.
long bits = Double.doubleToLongBits(value);
// Negative floats compare backwards due to their sign-magnitude representation, so flip
// all the bits in this case.
long mask = -(bits >>> 63) | 0x8000000000000000L;
return bits ^ mask;
}
}
/**
* Provides radix sort parameters. Comparators implementing this also are indicating that the
* ordering they define is compatible with radix sort.
*/
public abstract static class RadixSortSupport extends PrefixComparator {
/** @return Whether the sort should be descending in binary sort order. */
public abstract boolean sortDescending();
/** @return Whether the sort should take into account the sign bit. */
public abstract boolean sortSigned();
}
public static final class RadixSortDemo extends PrefixComparators.RadixSortSupport{
@Override
public boolean sortDescending() {
return false;
}
@Override
public boolean sortSigned() {
return false;
}
@Override
public int compare(long prefix1, long prefix2) {
return PrefixComparators.BINARY.compare(prefix1 & 0xffffff0000L, prefix1 & 0xffffff0000L);
}
}
//
// Standard prefix comparator implementations
//
public static final class UnsignedPrefixComparator extends RadixSortSupport {
@Override public boolean sortDescending() { return false; }
@Override public boolean sortSigned() { return false; }
@Override
public int compare(long aPrefix, long bPrefix) {
return UnsignedLongs.compare(aPrefix, bPrefix);
}
}
public static final class UnsignedPrefixComparatorDesc extends RadixSortSupport {
@Override public boolean sortDescending() { return true; }
@Override public boolean sortSigned() { return false; }
@Override
public int compare(long bPrefix, long aPrefix) {
return UnsignedLongs.compare(aPrefix, bPrefix);
}
}
public static final class SignedPrefixComparator extends RadixSortSupport {
@Override public boolean sortDescending() { return false; }
@Override public boolean sortSigned() { return true; }
@Override
public int compare(long a, long b) {
return (a < b) ? -1 : (a > b) ? 1 : 0;
}
}
public static final class SignedPrefixComparatorDesc extends RadixSortSupport {
@Override public boolean sortDescending() { return true; }
@Override public boolean sortSigned() { return true; }
@Override
public int compare(long b, long a) {
return (a < b) ? -1 : (a > b) ? 1 : 0;
}
}
}
|
[
"slzhk@163.com"
] |
slzhk@163.com
|
1021056c331ca3ddff0ba8ba36f099993824b95a
|
658e398bcd11a3cf32f250112abd14f8bf571438
|
/src/test/java/com/github/oscerd/strategy/StrategyTest.java
|
9bf594b38ee21d0aee49a3ffc1b13f12490cdbf1
|
[] |
no_license
|
oscerd/java-design-patterns
|
bbe5b8a18b861109bd5c7576d8955db6f979b2d8
|
a0ccf9c7ed05ccf403b211c83bdd34fbb1c44923
|
refs/heads/master
| 2016-09-15T23:57:43.967789
| 2015-08-27T15:52:02
| 2015-08-27T15:52:02
| 15,648,966
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,467
|
java
|
package com.github.oscerd.strategy;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import com.github.oscerd.strategy.IMachine.MachineClass;
public class StrategyTest{
@Test
public void testStrategyLowMaxSpeed(){
Machine m = new Machine(100, 200, "Impreza", true, MachineClass.RACING);
Machine m1 = new Machine(102, 230, "Terrano", true, MachineClass.SUV);
Machine m2 = new Machine(167, 120, "Clio", true, MachineClass.NORMAL);
List p = new ArrayList();
p.add(m);
p.add(m1);
p.add(m2);
new LowMaxSpeedStrategy(p).order();
System.err.println(p.toString());
}
@Test
public void testStrategyMaxLowHorses(){
Machine m = new Machine(100, 200, "Impreza", true, MachineClass.RACING);
Machine m1 = new Machine(102, 230, "Terrano", true, MachineClass.SUV);
Machine m2 = new Machine(101, 120, "Clio", true, MachineClass.NORMAL);
List p = new ArrayList();
p.add(m);
p.add(m1);
p.add(m2);
new MaxLowHorsesStrategy(p).order();
System.err.println(p.toString());
}
@Test
public void testStrategyName(){
Machine m = new Machine(100, 200, "Impreza", true, MachineClass.RACING);
Machine m1 = new Machine(102, 230, "Terrano", true, MachineClass.SUV);
Machine m2 = new Machine(101, 120, "Clio", true, MachineClass.NORMAL);
List p = new ArrayList();
p.add(m);
p.add(m1);
p.add(m2);
new NameStrategy(p).order();
System.err.println(p.toString());
}
}
|
[
"ancosen@gmail.com"
] |
ancosen@gmail.com
|
b936f7de31a67b383d2d7d8ef25723392eb28ed0
|
19ef0cac77793c3c3e71e7c2b07f04cd8c638fd6
|
/src/main/java/net/tce/admin/service/TrackingMonitorService.java
|
4de9b0a3a5a313f8848c0b9b2ebece42c1e3ba66
|
[] |
no_license
|
evalle-mx/SpringB-Notifier
|
0b36ffdf04b991eabd5b411e15ee09f49ff32861
|
f46cd59c5bb4d83dfa1c3f6b6bb2d19c76acb002
|
refs/heads/main
| 2023-02-05T01:07:02.000591
| 2020-12-01T02:15:04
| 2020-12-01T02:15:04
| 317,377,520
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 189
|
java
|
package net.tce.admin.service;
import net.tce.dto.TrackingMonitorDto;
public interface TrackingMonitorService {
String create(TrackingMonitorDto trackingMonitorDto) throws Exception;
}
|
[
"netto.speed@gmail.com"
] |
netto.speed@gmail.com
|
023f474cd54966734e45062259195bff8aba7d85
|
91ccd861db10cdd383b42bbbd5cf12e07b3ccde6
|
/autocoder/src/main/java/com/simiacryptus/ref/core/ReflectionUtil.java
|
3e9f4f4f93d520a27be40d21811eec5801230551
|
[
"Apache-2.0"
] |
permissive
|
SimiaCryptus/java-reference-counter
|
8ecc84803113f28b7100bbaf9b7621e9f5e3fbef
|
a2ef43af79443db2d9275cb7685c2113a9e5f962
|
refs/heads/master
| 2022-05-04T22:33:36.004944
| 2021-01-03T01:52:24
| 2021-01-03T01:52:24
| 220,719,898
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,586
|
java
|
/*
* Copyright (c) 2020 by Andrew Charneski.
*
* The author licenses this file to you under the
* Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance
* with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.simiacryptus.ref.core;
import org.apache.commons.lang3.ClassUtils;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Optional;
public class ReflectionUtil {
@Nullable
public static <T> T getField(@Nonnull Object obj, String name) {
final Field value = Arrays.stream(obj.getClass().getDeclaredFields()).filter(x -> x.getName().equals(name)).findFirst().orElse(null);
if (value != null) {
value.setAccessible(true);
try {
return (T) value.get(obj);
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
}
}
return null;
}
@Nonnull
public static <T> T invokeMethod(@Nonnull Object obj, String name, @Nonnull Object... args) {
final Method value = Arrays.stream(obj.getClass().getDeclaredMethods())
.filter(x -> x.getName().equals(name))
.filter(x -> {
final Class<?>[] parameterTypes = x.getParameterTypes();
if (parameterTypes.length != args.length) return false;
for (int i = 0; i < parameterTypes.length; i++) {
if (!ClassUtils.isAssignable(parameterTypes[i], args[i].getClass())) return false;
}
return true;
})
.findFirst()
.orElse(null);
if (value != null) {
value.setAccessible(true);
try {
return (T) value.invoke(obj, args);
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
} catch (InvocationTargetException e) {
throw new RuntimeException(e);
}
}
throw new RuntimeException(String.format("Method %s.%s(%s) not found", obj.getClass(), name, Arrays.stream(args).map(x -> x.getClass().getSimpleName()).reduce((a, b) -> a + ", " + b).get()));
}
@Nonnull
public static Field getField(@Nonnull Class<?> nodeClass, String name) {
final Field[] fields = nodeClass.getDeclaredFields();
final Optional<Field> parent = Arrays.stream(fields).filter(x -> x.getName().equals(name)).findFirst();
if (!parent.isPresent()) {
final Class<?> superclass = nodeClass.getSuperclass();
if (superclass != null) {
return getField(superclass, name);
} else {
throw new AssertionError(String.format("Cannot find field %s", name));
}
}
final Field field = parent.get();
field.setAccessible(true);
return field;
}
@SuppressWarnings("unused")
@Nonnull
public static <T> T setField(@Nonnull T astNode, String name, Object value) {
try {
getField(astNode.getClass(), name).set(astNode, value);
return astNode;
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
}
}
}
|
[
"acharneski@gmail.com"
] |
acharneski@gmail.com
|
0698377ff1a31ed50f9d3ba2ca97ffeb1118acbc
|
55c387444715d58a61288d8fef4a4c943245c3b2
|
/src/main/java/io/github/carlosthe19916/pe/sunat/camel/CfxConstants.java
|
4a600050b15555e6f97badab17fa001dd58df04e
|
[] |
no_license
|
arianr2014/sunat-cpe
|
6a8a9ff9642770b86168647b5456cc5c0ba9bd85
|
71c6ae42ccac407e1ddfab06adccc73697149072
|
refs/heads/master
| 2021-05-20T10:09:18.116860
| 2018-11-29T04:20:53
| 2018-11-29T04:20:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 282
|
java
|
package io.github.carlosthe19916.pe.sunat.camel;
public class CfxConstants {
public static final String END_POINT_HEADER = "OpenfactWsEndpoint";
public static final String USERNAME = "OpenfactWsUsername";
public static final String PASSWORD = "OpenfactWsPassword";
}
|
[
"carlosthe19916@gmail.com"
] |
carlosthe19916@gmail.com
|
3505f9ddadbc40bb368a865fdb67daba0d3801cc
|
28e9aa3314109a950b33e3f8fd822f3e8e9dd025
|
/src/main/java/com/doverdee/thinkinginjava/generics/InheritBounds.java
|
6ace07403728d453f89c4a9349d4da41950a952b
|
[] |
no_license
|
DoverDee/JavaBase
|
8778ddc9fb7e7b0eef7bfaac124226948368114f
|
cde35a8b70665f1eccc6c8b2010abc005676959e
|
refs/heads/master
| 2021-06-08T22:05:28.630454
| 2020-07-26T08:04:33
| 2020-07-26T08:04:33
| 106,983,345
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 934
|
java
|
package com.doverdee.thinkinginjava.generics;//: generics/InheritBounds.java
class HoldItem<T> {
T item;
HoldItem(T item) { this.item = item; }
T getItem() { return item; }
}
class Colored2<T extends HasColor> extends HoldItem<T> {
Colored2(T item) { super(item); }
java.awt.Color color() { return item.getColor(); }
}
class ColoredDimension2<T extends Dimension & HasColor>
extends Colored2<T> {
ColoredDimension2(T item) { super(item); }
int getX() { return item.x; }
int getY() { return item.y; }
int getZ() { return item.z; }
}
class Solid2<T extends Dimension & HasColor & Weight>
extends ColoredDimension2<T> {
Solid2(T item) { super(item); }
int weight() { return item.weight(); }
}
public class InheritBounds {
public static void main(String[] args) {
Solid2<Bounded> solid2 =
new Solid2<Bounded>(new Bounded());
solid2.color();
solid2.getY();
solid2.weight();
}
} ///:~
|
[
"fdlijia@163.com"
] |
fdlijia@163.com
|
01cd51b6efae1ba281effa824b7ecd3536adda58
|
7aa1b1eddcf97a40e05dcfe91207d51717afb232
|
/src/fpt/bean/ll.java
|
83e3977321ce393523734061042358cd7c132260
|
[] |
no_license
|
thanchetit73/QuanLyMayTinh
|
da0f682e60d9afb9f74627193ea6398869930df2
|
6c9ad19321ab25a16e41f8c47b81f5dd3ddd1774
|
refs/heads/master
| 2020-05-02T19:12:14.825352
| 2019-04-10T15:15:14
| 2019-04-10T15:15:14
| 178,152,178
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 151
|
java
|
package fpt.bean;
public class ll {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("kaka");
}
}
|
[
"you@example.com"
] |
you@example.com
|
26f3f31e573c9b04f0b81e2ccd20b7c8fba560da
|
933a698ed99317cbfef721b78cd3d912aa6c705e
|
/src/main/java/com/asgab/entity/BusinessOpportunityRemark.java
|
71863fa300cb1337728db7277d06d290985de51c
|
[] |
no_license
|
sunwenjie/pms_pro
|
30b9dc1e1aa2f2393562eebe86859f3e41cc1311
|
6d52853ace2343a5b37045f7897ecac2454d4bcc
|
refs/heads/master
| 2020-12-03T01:49:57.829907
| 2017-06-30T09:47:14
| 2017-06-30T09:47:14
| 95,874,026
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,313
|
java
|
package com.asgab.entity;
import java.util.Date;
public class BusinessOpportunityRemark {
private Long id;
private Long business_opportunity_id;
private Integer progress;
private String content;
private Date created_at;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getBusiness_opportunity_id() {
return business_opportunity_id;
}
public void setBusiness_opportunity_id(Long business_opportunity_id) {
this.business_opportunity_id = business_opportunity_id;
}
public Integer getProgress() {
return progress;
}
public void setProgress(Integer progress) {
this.progress = progress;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public Date getCreated_at() {
return created_at;
}
public void setCreated_at(Date created_at) {
this.created_at = created_at;
}
public void reset(BusinessOpportunity businessOpportunity) {
if (businessOpportunity != null) {
this.business_opportunity_id = businessOpportunity.getId();
this.progress = businessOpportunity.getProgress();
this.content = businessOpportunity.getProgressRemarkPage();
this.created_at = new Date();
}
}
}
|
[
"wenjie.sun@i-click.com"
] |
wenjie.sun@i-click.com
|
339d09ba30fbecd32551370b6101201ebc685f45
|
d8ad832b122e21fb15d8cb48900b58340f9f77f6
|
/agency/zfPayBackOver/src/main/java/com/ruoyi/project/devemana/user/domain/ManaUserCashRecord.java
|
bb169c0c8b04a9175e4b8d798ee9a342a49a026e
|
[
"MIT"
] |
permissive
|
s284309258/zfpay
|
1aa3e954f693004b54e151ce292a89122a77ff10
|
b05510a6fadc33d4f97658865c0d59082690c887
|
refs/heads/master
| 2022-12-20T05:22:04.281543
| 2020-07-31T02:03:27
| 2020-07-31T02:03:27
| 253,762,177
| 0
| 0
| null | 2022-12-12T21:42:12
| 2020-04-07T10:34:58
|
Java
|
UTF-8
|
Java
| false
| false
| 8,041
|
java
|
package com.ruoyi.project.devemana.user.domain;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
/**
* 参数表 t_user_cash_record
*
* @author ruoyi
* @date 2019-05-17
*/
public class ManaUserCashRecord extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
@Excel(name = "编号")
private Integer id;
/** 订单号 */
@Excel(name = "订单号")
private String order_id;
/** 代理编号 */
@Excel(name = "代理编号")
private String manager_id;
/** 代理账号 */
@Excel(name = "代理账号")
private String manager_login_name;
/** 代理用户名 */
@Excel(name = "代理用户名")
private String manager_user_name;
/** 中付提现账号 */
@Excel(name = "中付提现账号")
private String sub_agent_account;
/** 用户编号 */
@Excel(name = "用户编号")
private String user_id;
/** 手机号 */
@Excel(name = "手机号")
private String user_tel;
/** 真实姓名 */
@Excel(name = "真实姓名")
private String real_name;
/** 机构号 */
@Excel(name = "机构号")
private String org_no;
/** 机构名 */
@Excel(name = "机构名")
private String org_name;
/** 账户类型 */
@Excel(name = "账户类型", readConverterExp = "11=对私,12=对公")
private String account_type;
/** 提现总额 */
@Excel(name = "提现总额")
private String cash_money;
/** 实际到账金额 */
@Excel(name = "实际到账金额")
private String cash_actual_money;
/** 所得税比例 */
@Excel(name = "所得税比例")
private String feet_rate;
/** 比例手续费 */
@Excel(name = "比例手续费")
private String rate_feet_money;
/** 单笔手续费 */
@Excel(name = "单笔手续费")
private String single_feet_money;
/** 考核未达标扣除金额 */
@Excel(name = "考核未达标扣除金额")
private String deduct_money;
/** 结算账号(银行卡号) */
@Excel(name = "结算账号(银行卡号)")
private String account;
/** 结算账户名 */
@Excel(name = "结算账户名")
private String account_name;
/** 身份证号 */
@Excel(name = "身份证号")
private String id_card;
/** 银行代码 */
@Excel(name = "银行代码")
private String bank_code;
/** 银行名称 */
@Excel(name = "银行名称")
private String bank_name;
/** 批次号 */
@Excel(name = "批次号")
private String batch_no;
/** 状态 */
@Excel(name = "状态", readConverterExp = "00=待处理,02=处理中,04=已撤销,08=处理失败,09=处理成功")
private String status;
/** 创建时间 */
@Excel(name = "创建时间")
private String cre_date;
/** 更新时间 */
@Excel(name = "更新时间")
private String up_date;
/** 更新者 */
@Excel(name = "更新者")
private String update_by;
/** 备注 */
@Excel(name = "备注")
private String remark;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getOrder_id() {
return order_id;
}
public void setOrder_id(String order_id) {
this.order_id = order_id;
}
public String getManager_id() {
return manager_id;
}
public void setManager_id(String manager_id) {
this.manager_id = manager_id;
}
public String getManager_login_name() {
return manager_login_name;
}
public void setManager_login_name(String manager_login_name) {
this.manager_login_name = manager_login_name;
}
public String getManager_user_name() {
return manager_user_name;
}
public void setManager_user_name(String manager_user_name) {
this.manager_user_name = manager_user_name;
}
public String getUser_id() {
return user_id;
}
public void setUser_id(String user_id) {
this.user_id = user_id;
}
public String getUser_tel() {
return user_tel;
}
public void setUser_tel(String user_tel) {
this.user_tel = user_tel;
}
public String getOrg_no() {
return org_no;
}
public void setOrg_no(String org_no) {
this.org_no = org_no;
}
public String getOrg_name() {
return org_name;
}
public void setOrg_name(String org_name) {
this.org_name = org_name;
}
public String getAccount_type() {
return account_type;
}
public void setAccount_type(String account_type) {
this.account_type = account_type;
}
public String getCash_money() {
return cash_money;
}
public void setCash_money(String cash_money) {
this.cash_money = cash_money;
}
public String getCash_actual_money() {
return cash_actual_money;
}
public void setCash_actual_money(String cash_actual_money) {
this.cash_actual_money = cash_actual_money;
}
public String getFeet_rate() {
return feet_rate;
}
public void setFeet_rate(String feet_rate) {
this.feet_rate = feet_rate;
}
public String getRate_feet_money() {
return rate_feet_money;
}
public void setRate_feet_money(String rate_feet_money) {
this.rate_feet_money = rate_feet_money;
}
public String getSingle_feet_money() {
return single_feet_money;
}
public void setSingle_feet_money(String single_feet_money) {
this.single_feet_money = single_feet_money;
}
public String getDeduct_money() {
return deduct_money;
}
public void setDeduct_money(String deduct_money) {
this.deduct_money = deduct_money;
}
public String getAccount() {
return account;
}
public void setAccount(String account) {
this.account = account;
}
public String getAccount_name() {
return account_name;
}
public void setAccount_name(String account_name) {
this.account_name = account_name;
}
public String getId_card() {
return id_card;
}
public void setId_card(String id_card) {
this.id_card = id_card;
}
public String getBank_code() {
return bank_code;
}
public void setBank_code(String bank_code) {
this.bank_code = bank_code;
}
public String getBank_name() {
return bank_name;
}
public void setBank_name(String bank_name) {
this.bank_name = bank_name;
}
public String getBatch_no() {
return batch_no;
}
public void setBatch_no(String batch_no) {
this.batch_no = batch_no;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getCre_date() {
return cre_date;
}
public void setCre_date(String cre_date) {
this.cre_date = cre_date;
}
public String getUp_date() {
return up_date;
}
public void setUp_date(String up_date) {
this.up_date = up_date;
}
public String getUpdate_by() {
return update_by;
}
public void setUpdate_by(String update_by) {
this.update_by = update_by;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public String getSub_agent_account() {
return sub_agent_account;
}
public void setSub_agent_account(String sub_agent_account) {
this.sub_agent_account = sub_agent_account;
}
public String getReal_name() {
return real_name;
}
public void setReal_name(String real_name) {
this.real_name = real_name;
}
@Override
public String toString() {
return "ManaUserCashRecord [id=" + id + ", order_id=" + order_id + ", manager_id=" + manager_id
+ ", manager_login_name=" + manager_login_name + ", manager_user_name=" + manager_user_name
+ ", sub_agent_account=" + sub_agent_account + ", user_id=" + user_id + ", user_tel=" + user_tel
+ ", real_name=" + real_name + ", org_no=" + org_no + ", org_name=" + org_name + ", account_type="
+ account_type + ", cash_money=" + cash_money + ", cash_actual_money=" + cash_actual_money
+ ", feet_rate=" + feet_rate + ", rate_feet_money=" + rate_feet_money + ", single_feet_money="
+ single_feet_money + ", deduct_money=" + deduct_money + ", account=" + account + ", account_name="
+ account_name + ", id_card=" + id_card + ", bank_code=" + bank_code + ", bank_name=" + bank_name
+ ", batch_no=" + batch_no + ", status=" + status + ", cre_date=" + cre_date + ", up_date=" + up_date
+ ", update_by=" + update_by + ", remark=" + remark + "]";
}
}
|
[
"s284309258@163.com"
] |
s284309258@163.com
|
5e15a42a1648fb21b7304a45d096580adb955607
|
5a027c7a6d9afc1bbc8b2bc86e43e96b80dd9fa8
|
/workspace_movistar_wl11/zejbComunClient/ejbModule/co/com/telefonica/atiempo/ejb/eb/Bitacora_peticionKey.java
|
286bc0fa10212ec3fc2b55d598bf90b8aba5d903
|
[] |
no_license
|
alexcamp/ArrobaTiempoGradle
|
00135dc6f101e99026a377adc0d3b690cb5f2bd7
|
fc4a845573232e332c5f1211b72216ce227c3f38
|
refs/heads/master
| 2020-12-31T00:18:57.337668
| 2016-05-27T15:02:04
| 2016-05-27T15:02:04
| 59,520,455
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,115
|
java
|
package co.com.telefonica.atiempo.ejb.eb;
/**
* Key class for Entity Bean: Bitacora_peticion
*/
public class Bitacora_peticionKey implements java.io.Serializable {
static final long serialVersionUID = 3206093459760846163L;
/**
* Implementation field for persistent attribute: bipe_id
*/
public java.lang.Long bipe_id;
/**
* Creates an empty key for Entity Bean: Bitacora_peticion
*/
public Bitacora_peticionKey() {
}
/**
* Creates a key for Entity Bean: Bitacora_peticion
*/
public Bitacora_peticionKey(java.lang.Long bipe_id) {
this.bipe_id = bipe_id;
}
/**
* Returns true if both keys are equal.
*/
public boolean equals(java.lang.Object otherKey) {
if (otherKey
instanceof co.com.telefonica.atiempo.ejb.eb.Bitacora_peticionKey) {
co.com.telefonica.atiempo.ejb.eb.Bitacora_peticionKey o =
(co
.com
.telefonica
.atiempo
.ejb
.eb
.Bitacora_peticionKey) otherKey;
return ((this.bipe_id.equals(o.bipe_id)));
}
return false;
}
/**
* Returns the hash code for the key.
*/
public int hashCode() {
return (bipe_id.hashCode());
}
}
|
[
"alexander5075@hotmail.com"
] |
alexander5075@hotmail.com
|
2ee1edd79c6daba11e7ba66bc33f8a4aae566f1d
|
9e7352d7f96ba5e289fb960d1a7419fb9c4c7470
|
/Model/src/main/java/org/xdi/oxauth/model/common/ResponseMode.java
|
d7bdf36613dea48f1e017cdab0801edb9139a270
|
[
"MIT"
] |
permissive
|
IDmachines/oxAuth
|
e38a66159eac948f8534fe3883d620083b2750eb
|
368a5d7dcf6bf1b2a9947d03ea7e0f2de4998663
|
refs/heads/master
| 2021-01-18T04:17:11.299386
| 2014-09-04T20:20:06
| 2014-09-04T20:20:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 845
|
java
|
package org.xdi.oxauth.model.common;
import java.util.HashMap;
import java.util.Map;
/**
* @author Javier Rojas Blum Date: 03.21.2014
*/
public enum ResponseMode implements HasParamName {
QUERY("query"),
FRAGMENT("fragment");
private final String value;
private static Map<String, ResponseMode> mapByValues = new HashMap<String, ResponseMode>();
static {
for (ResponseMode enumType : values()) {
mapByValues.put(enumType.getParamName(), enumType);
}
}
private ResponseMode(String value) {
this.value = value;
}
public static ResponseMode getByValue(String value) {
return mapByValues.get(value);
}
@Override
public String getParamName() {
return value;
}
@Override
public String toString() {
return value;
}
}
|
[
"Yuriy.Movchan@gmail.com"
] |
Yuriy.Movchan@gmail.com
|
6440b5e889e75bb9cca8ee5e4c6a213b9e158efa
|
82571b4de8c3ab487c9fbf198a035179ab3a964a
|
/src/javase/src/main/java/org/zp/javase/effectivejava/chapter04/item16/InstrumentedHashSet.java
|
96f4c5039284e03eb7f61d994ed57e4d138bb39e
|
[
"Apache-2.0"
] |
permissive
|
liupd/JavaParty
|
ab69d57920730da4f8bc5de49a2ac1aea867c61e
|
c5b0254f041191d13dffe676f7c862bcab14c122
|
refs/heads/master
| 2021-01-12T10:23:32.705211
| 2016-12-14T08:28:32
| 2016-12-14T08:28:32
| 76,442,724
| 2
| 0
| null | 2016-12-14T09:04:10
| 2016-12-14T09:04:10
| null |
UTF-8
|
Java
| false
| false
| 900
|
java
|
// Broken - Inappropriate use of inheritance!
package org.zp.javase.effectivejava.chapter04.item16;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
public class InstrumentedHashSet<E> extends HashSet<E> {
// The number of attempted element insertions
private int addCount = 0;
public InstrumentedHashSet() {
}
public InstrumentedHashSet(int initCap, float loadFactor) {
super(initCap, loadFactor);
}
@Override
public boolean add(E e) {
addCount++;
return super.add(e);
}
@Override
public boolean addAll(Collection<? extends E> c) {
addCount += c.size();
return super.addAll(c);
}
public int getAddCount() {
return addCount;
}
public static void main(String[] args) {
InstrumentedHashSet<String> s = new InstrumentedHashSet<String>();
s.addAll(Arrays.asList("Snap", "Crackle", "Pop"));
System.out.println(s.getAddCount());
}
}
|
[
"atlantis1024@163.com"
] |
atlantis1024@163.com
|
30a06b66617171b3461352495a21d656cac78f04
|
8793a441daafbfab383df84dcec43aae681883a1
|
/app-layout-ui-tests/app-layout-ui-test-left-responsive-overlay/src/test/java/com/github/appreciated/app/layout/test/annotated/LeftResponsiveOverlayTest.java
|
2b0b218473f364887f1a5f2cfd0b3aaf529fd980
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-3-Clause"
] |
permissive
|
watho/vaadin-app-layout
|
13e943aef7d588bc859ee820957395ced1955982
|
085eb71617fde9c0baae7f09a5ce3397d963e041
|
refs/heads/master
| 2020-03-30T19:34:51.930427
| 2018-12-15T18:30:10
| 2018-12-15T18:30:10
| 151,549,277
| 0
| 0
|
Apache-2.0
| 2018-10-04T09:40:40
| 2018-10-04T09:40:40
| null |
UTF-8
|
Java
| false
| false
| 4,833
|
java
|
package com.github.appreciated.app.layout.test.annotated;
import com.codeborne.selenide.SelenideElement;
import com.codeborne.selenide.WebDriverRunner;
import com.github.appreciated.app.layout.test.leftresponsiveoverlay.LeftResponsiveOverlayMain;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.interactions.Actions;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.web.server.LocalServerPort;
import org.springframework.test.context.junit4.SpringRunner;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.stream.Stream;
import static com.codeborne.selenide.Selenide.open;
@EnableAutoConfiguration
@RunWith(SpringRunner.class)
@SpringBootTest(classes = LeftResponsiveOverlayMain.class,
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class LeftResponsiveOverlayTest {
private static WebDriver driver;
@LocalServerPort
int randomServerPort;
@BeforeClass
public static void init() {
try (Stream<Path> stream = Files.find(Paths.get("../selenium/bin"), 15,
(path, attr) -> (path.getFileName().toString().contains("chromedriver")))) {
System.setProperty("webdriver.chrome.driver", stream.findFirst().get().toString());
} catch (IOException e) {
e.printStackTrace();
}
driver = new ChromeDriver();
WebDriverRunner.setWebDriver(driver);
}
@AfterClass
public static void teardown() {
if (driver != null) {
driver.quit();
}
}
@Test
public void testMenu() {
openWebsite();
WebElement root = getShadowRoot("app-layout-left-responsive-overlay");
clickByClassName(root, "app-menu-item", 0);
clickByClassName(root, "app-menu-item", 1);
clickByClassName(root, "app-menu-item", 2);
clickByClassName(root, "app-menu-item", 3);
clickByClassName(root, "app-menu-item", 4);
clickByClassName(root, "app-menu-item", 5);
clickByClassName(root, "app-menu-item", 6);
clickByClassName(root, "app-menu-item", 7);
clickByClassName(root, "app-menu-item", 8);
clickByClassName(root, "app-menu-item", 9);
}
/**
* document.getElementsByTagName("app-layout-left-responsive")[0].shadowRoot.childNodes[2].getElementsByTagName("app-drawer-layout")[0].getElementsByTagName("app-drawer")
*
* @param element
* @return
*/
public WebElement getShadowRoot(String element) {
return (WebElement) ((JavascriptExecutor) driver).executeScript(
"return document.getElementsByTagName(\"" + element + "\")[0].shadowRoot.childNodes[2]");
}
public WebElement findByTagName(WebElement element, String tag) {
return findByTagName(element, tag, 0);
}
public WebElement findByTagName(WebElement element, String tag, int i) {
return (WebElement) ((JavascriptExecutor) driver).executeScript(
"return arguments[0].getElementsByTagName(\"" + tag + "\")[" + i + "]", element);
}
public void clickByTagName(WebElement element, String tag, int i) {
findByTagName(element, tag, i).click();
try {
Thread.sleep(900);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
public WebElement findByClassName(WebElement element, String className) {
return findByClassName(element, className, 0);
}
public WebElement findByClassName(WebElement element, String className, int i) {
WebElement root = (WebElement) ((JavascriptExecutor) driver).executeScript(
"return arguments[0].getElementsByClassName(\"" + className + "\")[" + i + "]", element);
return root;
}
public void clickByClassName(WebElement element, String className, int i) {
findByClassName(element, className, i).click();
try {
Thread.sleep(300);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
private void clickElement(SelenideElement element) {
Actions actions = new Actions(driver);
actions.click(element).perform();
try {
Thread.sleep(500);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
public void openWebsite() {
open("http://localhost:" + randomServerPort);
}
}
|
[
"GoebelJohannes@gmx.net"
] |
GoebelJohannes@gmx.net
|
15906601ca140f04fe84191d84a0a052f76fb86e
|
f55740d354098ef66436b0b42e3301823152f90d
|
/com/google/android/gms/maps/internal/zzu.java
|
c02363200a0af8082828da702c69159cc15aa682
|
[] |
no_license
|
life-of-kar/Techgif
|
3de6719bd824aba41104104ffb1823ffb7ead652
|
64267640c5b48c5c515056822ab9b4469756bb1d
|
refs/heads/master
| 2020-08-03T18:09:28.700147
| 2016-11-11T13:34:47
| 2016-11-11T13:34:47
| 73,539,775
| 2
| 0
| null | 2016-11-12T07:58:57
| 2016-11-12T07:58:56
| null |
UTF-8
|
Java
| false
| false
| 2,962
|
java
|
package com.google.android.gms.maps.internal;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import com.google.android.gms.maps.model.internal.zzg;
import org.telegram.messenger.exoplayer.MediaCodecVideoTrackRenderer;
public interface zzu extends IInterface {
public static abstract class zza extends Binder implements zzu {
private static class zza implements zzu {
private IBinder zzoz;
zza(IBinder iBinder) {
this.zzoz = iBinder;
}
public IBinder asBinder() {
return this.zzoz;
}
public void zza(zzg com_google_android_gms_maps_model_internal_zzg) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.google.android.gms.maps.internal.IOnPolygonClickListener");
obtain.writeStrongBinder(com_google_android_gms_maps_model_internal_zzg != null ? com_google_android_gms_maps_model_internal_zzg.asBinder() : null);
this.zzoz.transact(1, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
}
public zza() {
attachInterface(this, "com.google.android.gms.maps.internal.IOnPolygonClickListener");
}
public static zzu zzcQ(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.maps.internal.IOnPolygonClickListener");
return (queryLocalInterface == null || !(queryLocalInterface instanceof zzu)) ? new zza(iBinder) : (zzu) queryLocalInterface;
}
public IBinder asBinder() {
return this;
}
public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {
switch (code) {
case MediaCodecVideoTrackRenderer.MSG_SET_SURFACE /*1*/:
data.enforceInterface("com.google.android.gms.maps.internal.IOnPolygonClickListener");
zza(com.google.android.gms.maps.model.internal.zzg.zza.zzdj(data.readStrongBinder()));
reply.writeNoException();
return true;
case 1598968902:
reply.writeString("com.google.android.gms.maps.internal.IOnPolygonClickListener");
return true;
default:
return super.onTransact(code, data, reply, flags);
}
}
}
void zza(zzg com_google_android_gms_maps_model_internal_zzg) throws RemoteException;
}
|
[
"sureshrajpurohit@live.in"
] |
sureshrajpurohit@live.in
|
bd83b118852d4b7fed6d827b6544b64e1704070a
|
adcb84d478d51e5467d413b5b89a4db836e09543
|
/app/src/main/java/com/finwin/payyanur/ckyc/upload/UploadRepository.java
|
b9ee3b8a4755f12a8eed405fe90b9c761b882f45
|
[] |
no_license
|
appsfinwin/ckyc_payyanur
|
28d5c229eea7083896ce2c18bea4cb882816633f
|
5ebb5d8e047bb1baffd541606dbe9452e322348e
|
refs/heads/master
| 2023-07-03T23:41:54.818022
| 2021-08-10T02:58:21
| 2021-08-10T02:58:21
| 393,260,875
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,862
|
java
|
package com.finwin.payyanur.ckyc.upload;
import androidx.lifecycle.MutableLiveData;
import com.finwin.payyanur.ckyc.retrofit.ApiInterface;
import com.finwin.payyanur.ckyc.upload.pojo.VerifyCustIdResponse;
import com.finwin.payyanur.ckyc.upload.pojo.update.UpdateImageResponse;
import java.net.SocketTimeoutException;
import java.net.UnknownHostException;
import io.reactivex.Single;
import io.reactivex.SingleObserver;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.disposables.Disposable;
import io.reactivex.schedulers.Schedulers;
import okhttp3.RequestBody;
public class UploadRepository
{
public static UploadRepository instance;
public static UploadRepository getInstance()
{
if (instance==null)
{
instance= new UploadRepository();
}
return instance;
}
MutableLiveData<UploadAction> mAction;
CompositeDisposable disposable;
public MutableLiveData<UploadAction> getmAction() {
return mAction;
}
public void setmAction(MutableLiveData<UploadAction> mAction) {
this.mAction = mAction;
}
public CompositeDisposable getDisposable() {
return disposable;
}
public void setDisposable(CompositeDisposable disposable) {
this.disposable = disposable;
}
public void verifyCustId(ApiInterface apiInterface, RequestBody body) {
Single<VerifyCustIdResponse> call = apiInterface.verifyCustId(body);
call.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new SingleObserver<VerifyCustIdResponse>() {
@Override
public void onSubscribe(Disposable d) {
disposable.add(d);
}
@Override
public void onSuccess(VerifyCustIdResponse response) {
if (response.getData().getTable().size()>0)
{
mAction.setValue(new UploadAction(UploadAction.VERIFY_CUST_ID_SUCCESS,response));
}
else
{
mAction.setValue(new UploadAction(UploadAction.INVALID_CUST_ID));
}
}
@Override
public void onError(Throwable e) {
if (e instanceof SocketTimeoutException)
{
mAction.setValue(new UploadAction(UploadAction.API_ERROR,"Timeout! Please try again later"));
}else if (e instanceof UnknownHostException)
{
mAction.setValue(new UploadAction(UploadAction.API_ERROR,"No Internet"));
}else {
mAction.setValue(new UploadAction(UploadAction.API_ERROR, e.getMessage()));
}
}
});
}
public void uploadPhotos(ApiInterface apiInterface, RequestBody body) {
Single<UpdateImageResponse> call = apiInterface.uploadPhotos(body);
call.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new SingleObserver<UpdateImageResponse>() {
@Override
public void onSubscribe(Disposable d) {
disposable.add(d);
}
@Override
public void onSuccess(UpdateImageResponse response) {
if (response.getData().getTable1().size()>0)
{
mAction.setValue(new UploadAction(UploadAction.UPLOAD_PHOTOS_SUCCESS,response));
}
else
{
mAction.setValue(new UploadAction(UploadAction.UPLOAD_PHOTOS_ERROR));
}
}
@Override
public void onError(Throwable e) {
if (e instanceof SocketTimeoutException)
{
mAction.setValue(new UploadAction(UploadAction.API_ERROR,"Timeout! Please try again later"));
}else if (e instanceof UnknownHostException)
{
mAction.setValue(new UploadAction(UploadAction.API_ERROR,"No Internet"));
}else {
mAction.setValue(new UploadAction(UploadAction.API_ERROR, e.getMessage()));
}
}
});
}
}
|
[
"it@finwintechnologies.com"
] |
it@finwintechnologies.com
|
648a0d00b3c4b0a9492e300e975184afc8a677d3
|
493a8065cf8ec4a4ccdf136170d505248ac03399
|
/net.sf.ictalive.coordination.wfannotation.bpel.diagram.diagram/src/net/sf/ictalive/coordination/wfannotation/bpel/diagram/bpeldiag/diagram/edit/policies/ExtensionActivity14ItemSemanticEditPolicy.java
|
5e4ab78aabf0493cec016174f5b0406129e037ca
|
[] |
no_license
|
ignasi-gomez/aliveclipse
|
593611b2d471ee313650faeefbed591c17beaa50
|
9dd2353c886f60012b4ee4fe8b678d56972dff97
|
refs/heads/master
| 2021-01-14T09:08:24.839952
| 2014-10-09T14:21:01
| 2014-10-09T14:21:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,603
|
java
|
package net.sf.ictalive.coordination.wfannotation.bpel.diagram.bpeldiag.diagram.edit.policies;
import net.sf.ictalive.coordination.wfannotation.bpel.diagram.bpeldiag.diagram.providers.BpeldiagElementTypes;
import org.eclipse.emf.ecore.EAnnotation;
import org.eclipse.gef.commands.Command;
import org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand;
import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand;
import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
import org.eclipse.gmf.runtime.notation.View;
/**
* @generated
*/
public class ExtensionActivity14ItemSemanticEditPolicy extends
BpeldiagBaseItemSemanticEditPolicy {
/**
* @generated
*/
public ExtensionActivity14ItemSemanticEditPolicy() {
super(BpeldiagElementTypes.ExtensionActivity_3269);
}
/**
* @generated
*/
protected Command getDestroyElementCommand(DestroyElementRequest req) {
View view = (View) getHost().getModel();
CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(
getEditingDomain(), null);
cmd.setTransactionNestingEnabled(false);
EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
if (annotation == null) {
// there are indirectly referenced children, need extra commands: false
addDestroyShortcutsCommand(cmd, view);
// delete host element
cmd.add(new DestroyElementCommand(req));
} else {
cmd.add(new DeleteCommand(getEditingDomain(), view));
}
return getGEFWrapper(cmd.reduce());
}
}
|
[
"salvarez@lsi.upc.edu"
] |
salvarez@lsi.upc.edu
|
beae67cd9d0f921d673b21d540c078b0ebebd0f7
|
40f49d38e1b30dc531e3f04c343186027b68dcfe
|
/src/main/java/com/cat/demo/config/InitConfig.java
|
c7cd05f537ab03eb07c211435f333c2ef235becf
|
[] |
no_license
|
zhsyk34/demo
|
149d004a10bf39da28c6ecc661f452dc56be34e8
|
78a76e6f619001bae98163f389cd6bb96d738bd7
|
refs/heads/master
| 2021-04-12T11:15:11.570272
| 2016-06-23T16:37:06
| 2016-06-23T16:37:06
| 61,540,858
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,495
|
java
|
package com.cat.demo.config;
import java.util.List;
import com.cat.demo.controller.HouseController;
import com.cat.demo.interceptor.PropertyInterceptor;
import com.cat.demo.util.ParseMapping;
import com.cat.demo.util.ScanClass;
import com.jfinal.config.Constants;
import com.jfinal.config.Handlers;
import com.jfinal.config.Interceptors;
import com.jfinal.config.JFinalConfig;
import com.jfinal.config.Plugins;
import com.jfinal.config.Routes;
import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
import com.jfinal.plugin.c3p0.C3p0Plugin;
public class InitConfig extends JFinalConfig {
@Override
public void configConstant(Constants me) {
me.setDevMode(true);
}
@Override
public void configRoute(Routes me) {
me.add("/house", HouseController.class);
}
@Override
public void configPlugin(Plugins me) {
C3p0Plugin cp = new C3p0Plugin("jdbc:mysql://localhost/test", "root", "root");
me.add(cp);
ActiveRecordPlugin arp = new ActiveRecordPlugin(cp);
// TODO controller mapping...
// arp.addMapping("house", House.class);
me.add(arp);
}
@Override
public void configInterceptor(Interceptors me) {
me.add(new PropertyInterceptor());
}
@Override
public void configHandler(Handlers me) {
}
@Override
public void afterJFinalStart() {
// 扫描包下的类并注册映射关系...
List<Class<?>> clazzs = ScanClass.getClasses("com.cat.demo.entity");
ParseMapping.parseAnnotation(clazzs);
}
}
|
[
"zhsy1985@sina.com"
] |
zhsy1985@sina.com
|
65d9a3522bba64a462f231ef59bd51dc67e3ba08
|
a33aac97878b2cb15677be26e308cbc46e2862d2
|
/data/libgdx/btVoronoiSimplexSolver_getCachedBC.java
|
aa98930f62c363f2a4efe37b9775ba0f7ba9aeab
|
[] |
no_license
|
GabeOchieng/ggnn.tensorflow
|
f5d7d0bca52258336fc12c9de6ae38223f28f786
|
7c62c0e8427bea6c8bec2cebf157b6f1ea70a213
|
refs/heads/master
| 2022-05-30T11:17:42.278048
| 2020-05-02T11:33:31
| 2020-05-02T11:33:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 209
|
java
|
public btSubSimplexClosestResult getCachedBC() {
long cPtr = CollisionJNI.btVoronoiSimplexSolver_cachedBC_get(swigCPtr, this);
return (cPtr == 0) ? null : new btSubSimplexClosestResult(cPtr, false);
}
|
[
"bdqnghi@gmail.com"
] |
bdqnghi@gmail.com
|
6e95d9312a63415dbda54d8bd6c4bb6e9144649a
|
34c3b0887f71165a6d4a533bc06ffa2624c2dc10
|
/summer-alipay-core/src/main/java/com/alipay/api/domain/KoubeiMarketingCampaignIntelligentTemplateConsultModel.java
|
59b04c19143b7b338b2bd2c4b4afdb846456b24b
|
[] |
no_license
|
songhaoran/summer-alipay
|
91a7a7fdddf67265241785cd6bb2b784c0f0f1c4
|
d02e33d9ab679dfc56160af4abd759c0abb113a4
|
refs/heads/master
| 2021-05-04T16:39:11.272890
| 2018-01-17T09:52:32
| 2018-01-17T09:52:32
| 120,255,759
| 1
| 0
| null | 2018-02-05T04:42:15
| 2018-02-05T04:42:15
| null |
UTF-8
|
Java
| false
| false
| 1,685
|
java
|
package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 智能营销模板咨询
*
* @author auto create
* @since 1.0, 2017-11-17 06:02:39
*/
public class KoubeiMarketingCampaignIntelligentTemplateConsultModel extends AlipayObject {
private static final long serialVersionUID = 6531557753242628919L;
/**
* 操作上下文
*/
@ApiField("operator_context")
private PromoOperatorInfo operatorContext;
/**
* 代表了一次请求,作为业务幂等性控制
*/
@ApiField("out_request_no")
private String outRequestNo;
/**
* 商户和支付宝交互时,用于代表支付宝分配给商户ID
*/
@ApiField("partner_id")
private String partnerId;
/**
* 默认(不传shop_ids门店)使用待体验门店匹配适用模板,指定门店列表(shop_ids)后根据入参匹配适用模板
*/
@ApiListField("shop_ids")
@ApiField("string")
private List<String> shopIds;
public PromoOperatorInfo getOperatorContext() {
return this.operatorContext;
}
public void setOperatorContext(PromoOperatorInfo operatorContext) {
this.operatorContext = operatorContext;
}
public String getOutRequestNo() {
return this.outRequestNo;
}
public void setOutRequestNo(String outRequestNo) {
this.outRequestNo = outRequestNo;
}
public String getPartnerId() {
return this.partnerId;
}
public void setPartnerId(String partnerId) {
this.partnerId = partnerId;
}
public List<String> getShopIds() {
return this.shopIds;
}
public void setShopIds(List<String> shopIds) {
this.shopIds = shopIds;
}
}
|
[
"1467237221@qq.com"
] |
1467237221@qq.com
|
b45ec447998112ddbd03e5b262b25be965f95534
|
52349a56924e127c783d70cceaefe6cf9e46f46b
|
/ews-ms-api/src/main/java/microsoft/exchange/webservices/data/CalendarResponseObjectSchema.java
|
7493e35dfcad021c5ef508ed1494d177b2ca06a1
|
[] |
no_license
|
floriankammermann/java-microsoft-exchange-webservice-access
|
0f6eee1214689be4e1f421414d5592c5ea017080
|
f4f0c94caf29e8bd38e068282414ac20af70cdcd
|
refs/heads/master
| 2016-09-05T23:48:28.635612
| 2011-10-04T07:12:54
| 2011-10-04T07:12:54
| 2,326,818
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,667
|
java
|
/**************************************************************************
* copyright file="CalendarResponseObjectSchema.java" company="Microsoft"
* Copyright (c) Microsoft Corporation. All rights reserved.
*
* Defines the CalendarResponseObjectSchema.java.
**************************************************************************/
package microsoft.exchange.webservices.data;
/**
* Represents the schema for CalendarResponseObject.
*/
class CalendarResponseObjectSchema extends ServiceObjectSchema {
// This must be declared after the property definitions
/** The Constant Instance. */
static final CalendarResponseObjectSchema Instance =
new CalendarResponseObjectSchema();
/**
* Registers properties.
*/
// / IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the
// same order as they are defined in types.xsd)
@Override
protected void registerProperties() {
super.registerProperties();
this.registerProperty(ItemSchema.ItemClass);
this.registerProperty(ItemSchema.Sensitivity);
this.registerProperty(ItemSchema.Body);
this.registerProperty(ItemSchema.Attachments);
this.registerProperty(ItemSchema.InternetMessageHeaders);
this.registerProperty(EmailMessageSchema.Sender);
this.registerProperty(EmailMessageSchema.ToRecipients);
this.registerProperty(EmailMessageSchema.CcRecipients);
this.registerProperty(EmailMessageSchema.BccRecipients);
this.registerProperty(EmailMessageSchema.IsReadReceiptRequested);
this.registerProperty(EmailMessageSchema.IsDeliveryReceiptRequested);
this.registerProperty(ResponseObjectSchema.ReferenceItemId);
}
}
|
[
"florian.kammermann@gmail.com"
] |
florian.kammermann@gmail.com
|
4806c0b8af184d893e0981d843400716f735a1d9
|
2992ec745a417ac3f4a1598387fcb450e5f8c75f
|
/code/Threads/src/ProducerConsumer/ConsumerLinkedQueue.java
|
6cac1e5ccafc4035281e5648e99cc043a22ee9ed
|
[] |
no_license
|
Andrea99-beep/ooprogramming
|
404eec0bc7e1d4ac440844a55e5296776d3ba124
|
4d08dda9efd6156155c49eb2b43408248a919777
|
refs/heads/master
| 2022-06-24T14:19:47.211128
| 2020-05-07T09:40:04
| 2020-05-07T09:40:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 387
|
java
|
package ProducerConsumer;
import java.util.Queue;
public class ConsumerLinkedQueue<T> extends Consumer<T> {
public ConsumerLinkedQueue(Queue<T> q) {
super(q);
}
@Override
public void run() {
while (running) {
if (!q.isEmpty()) {
q.poll();
System.out.printf("Consumer %s received %d items\n", Thread.currentThread().getName(), count);
count += 1;
}
}
}
}
|
[
"nicola.bicocchi@gmail.com"
] |
nicola.bicocchi@gmail.com
|
2ee4f6efcb55fdd5ac0e0c40c0fb706f15cd4978
|
f4c7d1157a1b714c937b9beb754fb75ffdf98dac
|
/ThreadReview3/src/com/lei/jucPack/CountDownLatchTest.java
|
19364119ec584d35bacf9349a8a46e5856b06699
|
[] |
no_license
|
supergirl1234/ThreadPraction
|
8d02f13519541dfef3361382c1b77e7613f68dbe
|
836dc80b1845b9e6959154ab21a34de7037a1105
|
refs/heads/master
| 2021-04-08T14:37:26.461586
| 2020-03-22T08:08:29
| 2020-03-22T08:08:29
| 248,784,280
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,275
|
java
|
package com.lei.jucPack;
import java.util.Collections;
import java.util.concurrent.CountDownLatch;
/* 使用CountDownLatch实现剑法计数器*/
/* new CountDownLatch(10) 、countDown() 、await()这三个方法必须配合使用,
创建对象时赋的值是多少,countDown()就要执行多少次,否则计数器不会清零,计数器就不会停止,其他线程无法唤醒*/
public class CountDownLatchTest {
public static void main(String[] args) {
/*优先执行,执行完毕之后,才能执行 main*/
/*1、实例化计数器 100*/
CountDownLatch countDownLatch=new CountDownLatch(10);
new Thread(()->{
for(int i=0;i<9;i++){
System.out.println("++++++Thread");
countDownLatch.countDown();//countDown() 是计数器减一
}
}).start();
for(int i=0;i<1;i++){
countDownLatch.countDown();
}
/* 2、调用await方法*/
try {
countDownLatch.await();//await() 当计数器减为0,计算器停止,唤醒其他线程
} catch (InterruptedException e) {
e.printStackTrace();
}
for(int i=0;i<10;i++){
System.out.println("main-----");
}
}
}
|
[
"2547462712@qq.com"
] |
2547462712@qq.com
|
ba01d9f68eee58f743c2c9bcff74d614c9a94366
|
e368d9adb1fe3b2d6e20c31835ff4abeea77e4ee
|
/workspace_1/Code_CTDL/voc/book/TestCircleRectangle.java
|
8530137eb4c451e58e1dccfdb1f8996c5363636d
|
[] |
no_license
|
thanghoang07/java
|
29edf868f79318672707be626d9105935fd83478
|
41d62d5e9f206f0459b9c3d42a8581fc5395b223
|
refs/heads/master
| 2020-05-07T13:45:13.479039
| 2019-04-10T09:59:34
| 2019-04-10T09:59:34
| 180,541,189
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 811
|
java
|
package book;
public class TestCircleRectangle {
public static void main(String[] args) {
CircleFromSimpleGeometricObject circle =
new CircleFromSimpleGeometricObject(1);
System.out.println("A circle " + circle.toString());
System.out.println("The color is " + circle.getColor());
System.out.println("The radius is " + circle.getRadius());
System.out.println("The area is " + circle.getArea());
System.out.println("The diameter is " + circle.getDiameter());
RectangleFromSimpleGeometricObject rectangle =
new RectangleFromSimpleGeometricObject(2, 4);
System.out.println("\nA rectangle " + rectangle.toString());
System.out.println("The area is " + rectangle.getArea());
System.out.println("The perimeter is " +
rectangle.getPerimeter());
}
}
|
[
"thanghoang07@outlook.com"
] |
thanghoang07@outlook.com
|
5ab9f18e70a74aa6d568d965148a8b76b8592300
|
245f62127d7870bc179039ca7cc4d581ecb39473
|
/src/main/java/com/travel/app/web/rest/errors/ParameterizedErrorDTO.java
|
10b1f751707343d915a01103529c9387757eea67
|
[] |
no_license
|
atomar7/travelApp
|
de2e89a0dfa3d7d18436b02d43d0266a685e82ce
|
6dacadc0da040aace91818954333a043ceb9c6e8
|
refs/heads/master
| 2021-05-04T11:01:08.153218
| 2016-02-27T08:51:48
| 2016-02-27T08:51:48
| 51,305,194
| 0
| 1
| null | 2020-09-18T05:38:28
| 2016-02-08T15:14:16
|
Java
|
UTF-8
|
Java
| false
| false
| 582
|
java
|
package com.travel.app.web.rest.errors;
import java.io.Serializable;
/**
* DTO for sending a parameterized error message.
*/
public class ParameterizedErrorDTO implements Serializable {
private static final long serialVersionUID = 1L;
private final String message;
private final String[] params;
public ParameterizedErrorDTO(String message, String... params) {
this.message = message;
this.params = params;
}
public String getMessage() {
return message;
}
public String[] getParams() {
return params;
}
}
|
[
"abhishek.tomar@gmail.com"
] |
abhishek.tomar@gmail.com
|
48e592242cf6e2bcec4e68add7c5bce41efb9fd1
|
852976d9996a469ff18440b79f4c5fbf3e6d101e
|
/src/ui/HudMinimap.java
|
838f0c004f89f5ae0cb6e3587888a9bcbe1ef04b
|
[] |
no_license
|
dtbinh/ShadowCrawler
|
fbc72652e4fcdef9a03342b389a9016668117418
|
06e255717ebe21cdb114e5963f79a9fbd90e8aff
|
refs/heads/master
| 2020-07-01T06:44:24.173174
| 2015-06-14T13:11:46
| 2015-06-14T13:11:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,259
|
java
|
package ui;
import gfx.Drawing;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import player.Campaign;
import world.Board;
public class HudMinimap
{
private Board board;
private Campaign campaign;
// Position
private int posX, posY, sizeX, sizeY;
public HudMinimap(Board board, Campaign campaign)
{
this.board = board;
this.campaign = campaign;
this.posX = 1100;
this.posY = 100;
this.sizeX = 200;
this.sizeY = 200;
}
private BufferedImage getPlayerImage()
{
return Drawing.getImage("interface/minimap/iconPlayer.png");
}
private double getRotation(String face)
{
if(face == "E") {return 90;}
if(face == "S") {return 180;}
if(face == "W") {return 270;}
return 0;
}
public void render(Graphics gfx)
{
renderTerrain(gfx);
renderPlayer(gfx);
renderEnemies(gfx);
//renderTreasure(gfx);
renderDetails(gfx);
renderBorder(gfx);
}
private void renderBorder(Graphics gfx)
{
gfx.drawImage(Drawing.getImage("interface/minimap/mapBorder.png"), this.posX, this.posY, null);
}
private void renderDetails(Graphics gfx)
{
gfx.setColor(Color.BLACK);
Drawing.write(gfx, "Mantas Tomb", this.posX + 20, (this.posY + this.sizeY) - 20, "LEFT");
Drawing.write(gfx, "00 x 00", (this.posX + this.sizeX) - 20, (this.posY + this.sizeY) - 20, "RIGHT");
}
private void renderEnemies(Graphics gfx)
{
// NOTE: need to pick a range (this could be zoomable) and survery every entity in that area
// then just draw them accordingly to scale
}
private void renderPlayer(Graphics gfx)
{
Drawing.drawImageRotate(gfx, this.getPlayerImage(), this.posX + (this.sizeX / 2) - 8, this.posY + (this.sizeY / 2) - 8, this.getRotation(this.board.getPlayer().getFace()));
}
private void renderTerrain(Graphics gfx)
{
Drawing.drawImageOpaque(gfx, Drawing.getImage("interface/minimap/bkgGrass.png"), this.posX + 4, this.posY + 4, 0.6f);
}
public void tick()
{
}
}
|
[
"jamie.purchase@medicapp.com"
] |
jamie.purchase@medicapp.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.