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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23a7247f9b677520e05a212308a08e374e843c81
|
f8e2ddc4e20a16b178d2cb59b35422386deb97da
|
/src/main/java/com/mightyjava/Application.java
|
f23f53617f598848fc8ccdf1af5a85c115f74727
|
[] |
no_license
|
CiprianBeldean/money-monster
|
da030dc8b0ea4a9608112dff27e62541a269f94f
|
1d4ccaa37a57403cb5b24f5d19980273df41f4dd
|
refs/heads/master
| 2022-08-27T16:12:55.764552
| 2020-05-29T16:15:23
| 2020-05-29T16:15:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 295
|
java
|
package com.mightyjava;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
|
[
"jeetparmar949@gmail.com"
] |
jeetparmar949@gmail.com
|
2cdc73f4df3784d0196f4c32c7eb8956ca727326
|
258a8585ed637342645b56ab76a90a1256ecbb45
|
/Folitics/src/main/java/com/ohmuk/folitics/hibernate/service/pollOption/distribution/PollOptionQualificationService.java
|
243ed70e98edd97ce09da7a7cbf9bb5417060f56
|
[] |
no_license
|
exatip407/folitics
|
06e899aae2dbfdeda981c40c0ce578d223979568
|
aff3392e09c35f5f799e3fb1c4534b5343a22f01
|
refs/heads/master
| 2021-01-01T16:23:14.684470
| 2017-07-20T10:27:08
| 2017-07-20T10:27:08
| 97,819,592
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,657
|
java
|
package com.ohmuk.folitics.hibernate.service.pollOption.distribution;
import javax.transaction.Transactional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ohmuk.folitics.exception.MessageException;
import com.ohmuk.folitics.hibernate.entity.poll.PollOptionQualification;
import com.ohmuk.folitics.hibernate.entity.poll.PollOptionQualificationId;
import com.ohmuk.folitics.hibernate.repository.pollOption.distribution.IPollOptionDistributionRepository;
/**
* Service implementation for {@link PollOptionQualification}
* @author Abhishek
*
*/
@Service
@Transactional
public class PollOptionQualificationService implements
IPollOptionDistributionService<PollOptionQualification, PollOptionQualificationId> {
private static Logger logger = LoggerFactory.getLogger(PollOptionQualificationService.class);
@Autowired
private IPollOptionDistributionRepository<PollOptionQualification, PollOptionQualificationId> repository;
@Override
public PollOptionQualification addDistribution(PollOptionQualification pollOptionQualification)
throws MessageException {
logger.debug("Entered PollOptionQualificationService addDistribution method");
if (pollOptionQualification == null) {
logger.error("PollOptionQualification object found null in PollOptionQualificationService.addDistribution method");
throw (new MessageException("PollOptionQualification object can't be null"));
}
if (pollOptionQualification.getId() == null) {
logger.error("Id in PollOptionQualification object found null in PollOptionQualificationService.addDistribution method");
throw (new MessageException("Id in PollOptionQualification object can't be null"));
}
logger.debug("Trying to save the PollOptionQualification object for poll option id = "
+ pollOptionQualification.getId().getPollOption().getId() + " and qualification id = "
+ pollOptionQualification.getId().getQualification().getId());
pollOptionQualification = repository.save(pollOptionQualification);
logger.debug("PollOptionQualification saved successfully. Exiting PollOptionQualificationService addDistribution method");
return pollOptionQualification;
}
@Override
public PollOptionQualification getDistribution(PollOptionQualificationId pollOptionQualificationId)
throws MessageException {
logger.debug("Entered PollOptionQualificationService getDistribution method");
if (pollOptionQualificationId == null) {
logger.error("PollOptionQualificationId object found null in PollOptionQualificationService.getDistribution method");
throw (new MessageException("PollOptionQualificationId object can't be null"));
}
if (pollOptionQualificationId.getPollOption() == null) {
logger.error("PollOption in PollOptionQualificationId object found null in PollOptionQualificationService.getDistribution method");
throw (new MessageException("PollOption in PollOptionQualificationId object can't be null"));
}
if (pollOptionQualificationId.getQualification() == null) {
logger.error("Qualification in PollOptionQualificationId object found null in PollOptionQualificationService.getDistribution method");
throw (new MessageException("Qualification in PollOptionQualificationId object can't be null"));
}
logger.debug("Trying to get the PollOptionQualification object for poll option id = "
+ pollOptionQualificationId.getPollOption().getId() + " and qualification id = "
+ pollOptionQualificationId.getQualification().getId());
PollOptionQualification pollOptionQualification = repository.find(pollOptionQualificationId);
logger.debug("Got PollOptionQualification from database. Exiting PollOptionQualificationService getDistribution method");
return pollOptionQualification;
}
@Override
public PollOptionQualification updateDistribution(PollOptionQualification pollOptionQualification)
throws MessageException {
logger.debug("Entered PollOptionQualificationService updateDistribution method");
if (pollOptionQualification == null) {
logger.error("PollOptionQualification object found null in PollOptionQualificationService.updateDistribution method");
throw (new MessageException("PollOptionQualification object can't be null"));
}
if (pollOptionQualification.getId() == null) {
logger.error("Id in PollOptionQualification object found null in PollOptionQualificationService.updateDistribution method");
throw (new MessageException("Id in PollOptionQualification object can't be null"));
}
logger.debug("Trying to get the PollOptionQualification object for poll option id = "
+ pollOptionQualification.getId().getPollOption().getId() + " and qualification id = "
+ pollOptionQualification.getId().getQualification().getId());
pollOptionQualification = repository.update(pollOptionQualification);
logger.debug("Updated PollOptionQualification in database. Exiting PollOptionQualificationService updateDistribution method");
return pollOptionQualification;
}
}
|
[
"gautam@exatip.com"
] |
gautam@exatip.com
|
fcdc75b696aef23cc60565d4dd63f1f3e08045eb
|
bbebaa880d979b5005c39aaa16bd03a18038efab
|
/generators/hibernate/tests/org.obeonetwork.dsl.entity.gen.java.hibernate.tests/src/inheritance_associations/org/obeonetwork/sample/inheritanceassociations/Class01ManyBI.java
|
15abd735b2c01bbbc077f588c92aa93a7e9443b4
|
[] |
no_license
|
Novi4ekik92/InformationSystem
|
164baf6ec1da05da2f144787a042d85af81d4caa
|
6387d3cf75efffee0c860ab58f7b8127140a5bb2
|
refs/heads/master
| 2020-12-11T09:07:38.255013
| 2015-01-05T16:52:58
| 2015-01-05T16:52:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,863
|
java
|
package org.obeonetwork.sample.inheritanceassociations;
// Start of user code for imports
import java.io.Serializable;
import java.util.Collection;
import java.util.HashSet;
// End of user code for imports
/**
* */
public class Class01ManyBI implements Serializable {
/**
* serialVersionUID is used for serialization.
*/
private static final long serialVersionUID = 1L;
/**
* Constant representing the name of the automatic primary key field.
*/
public static final String PROP_ID = "id";
/**
* Constant representing the name of the field fakeAttr.
*/
public static final String PROP_FAKEATTR = "fakeAttr";
/**
* Constant representing the name of the field target.
*/
public static final String PROP_TARGET = "target";
/**
* Automatic primary key.
*/
private String id;
/**
* Field fakeAttr.
*/
protected String fakeAttr;
/**
* Field target.
*/
protected Collection<Class01ManyBIEND> target;
/**
* Default constructor.
*/
public Class01ManyBI() {
super();
this.target = new HashSet<Class01ManyBIEND>();
}
/**
* Return the identifier.
* @return id
*/
public String getId() {
return this.id;
}
/**
* Set a value to parameter id.
* @param id Value of the identifier.
*/
public void setId(final String id) {
this.id = id;
}
/**
* Constructor with all parameters initialized.
* @param fakeAttr.
* @param target.
*/
public Class01ManyBI(String fakeAttr, Collection<Class01ManyBIEND> target) {
this();
this.fakeAttr = fakeAttr;
this.target.addAll(target);
}
/**
* Return fakeAttr.
* @return fakeAttr
*/
public String getFakeAttr() {
return fakeAttr;
}
/**
* Set a value to parameter fakeAttr.
* @param fakeAttr
*/
public void setFakeAttr(final String fakeAttr) {
this.fakeAttr = fakeAttr;
}
/**
* Return target.
* @return target
*/
public Collection<Class01ManyBIEND> getTarget() {
return target;
}
/**
* Set a value to parameter target.
* @param target
*/
public void setTarget(final Collection<Class01ManyBIEND> target) {
this.target = target;
}
/**
* Add a target to the target collection.
* Birectional association : add the current Class_01_Many_BI instance to given target parameter.
* @param targetElt Element to add.
*/
public void addTarget(final Class01ManyBIEND targetElt) {
this.target.add(targetElt);
targetElt.setSource(this);
}
/**
* Remove a target to the target collection.
* Birectionnal association : remove the current Class_01_Many_BI instance to given target parameter.
* @param targetElt Element to remove.
*/
public void removeTarget(final Class01ManyBIEND targetElt) {
this.target.remove(targetElt);
targetElt.setSource(null);
}
/**
* Equality test based on identifiers.
* @param value Value to compare.
* @return Returns true if and only if given object is an instance of
* Class01ManyBI and the given object has the same PK as this
* if the PK is not null or their ids are equal.
*/
public boolean equals(final Object other) {
// Start of user code for equals
if (this == other) {
return true;
}
if (id==null) {
return false;
}
if (!(other instanceof Class01ManyBI)) {
return false;
}
final Class01ManyBI castedOther = (Class01ManyBI) other;
if (id != null && castedOther.getId() != null) {
return id.equals(castedOther.getId());
}
return true;
// End of user code for equals
}
/**
* HashTable code based on identifier hash codes.
* @return hash value.
*/
public int hashCode() {
return id==null ? System.identityHashCode(this) : id.hashCode();
}
// Start of user code for private methods
// TODO Remove this line and add your private methods here
// End of user code for private methods
}
|
[
"goulwen.lefur@obeo.fr"
] |
goulwen.lefur@obeo.fr
|
8af59c9936e31f57ef9b9a9da72cecc70568e653
|
43334ae5400646e072ce2c217cb6b647d9c50734
|
/src/main/java/org/drip/sample/fundinghistorical/CZKShapePreserving1YStart.java
|
bbc3482cb3d6378fad27d8e8419473fc109fe688
|
[
"Apache-2.0"
] |
permissive
|
BukhariH/DROP
|
0e2f70ff441f082a88c7f26a840585fb593665fb
|
8770f84c747c41ed2022155fee1e6f63bb09f6fa
|
refs/heads/master
| 2020-03-30T06:27:29.042934
| 2018-09-29T06:13:19
| 2018-09-29T06:13:19
| 150,862,864
| 1
| 0
|
Apache-2.0
| 2018-09-29T12:37:29
| 2018-09-29T12:37:28
| null |
UTF-8
|
Java
| false
| false
| 7,135
|
java
|
package org.drip.sample.fundinghistorical;
import java.util.Map;
import org.drip.analytics.date.JulianDate;
import org.drip.feed.loader.*;
import org.drip.historical.state.FundingCurveMetrics;
import org.drip.quant.common.FormatUtil;
import org.drip.service.env.EnvManager;
import org.drip.service.state.FundingCurveAPI;
import org.drip.service.template.LatentMarketStateBuilder;
/*
* -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*/
/*!
* Copyright (C) 2018 Lakshmi Krishnamurthy
* Copyright (C) 2017 Lakshmi Krishnamurthy
* Copyright (C) 2016 Lakshmi Krishnamurthy
*
* This file is part of DRIP, a free-software/open-source library for buy/side financial/trading model
* libraries targeting analysts and developers
* https://lakshmidrip.github.io/DRIP/
*
* DRIP is composed of four main libraries:
*
* - DRIP Fixed Income - https://lakshmidrip.github.io/DRIP-Fixed-Income/
* - DRIP Asset Allocation - https://lakshmidrip.github.io/DRIP-Asset-Allocation/
* - DRIP Numerical Optimizer - https://lakshmidrip.github.io/DRIP-Numerical-Optimizer/
* - DRIP Statistical Learning - https://lakshmidrip.github.io/DRIP-Statistical-Learning/
*
* - DRIP Fixed Income: Library for Instrument/Trading Conventions, Treasury Futures/Options,
* Funding/Forward/Overnight Curves, Multi-Curve Construction/Valuation, Collateral Valuation and XVA
* Metric Generation, Calibration and Hedge Attributions, Statistical Curve Construction, Bond RV
* Metrics, Stochastic Evolution and Option Pricing, Interest Rate Dynamics and Option Pricing, LMM
* Extensions/Calibrations/Greeks, Algorithmic Differentiation, and Asset Backed Models and Analytics.
*
* - DRIP Asset Allocation: Library for model libraries for MPT framework, Black Litterman Strategy
* Incorporator, Holdings Constraint, and Transaction Costs.
*
* - DRIP Numerical Optimizer: Library for Numerical Optimization and Spline Functionality.
*
* - DRIP Statistical Learning: Library for Statistical Evaluation and Machine Learning.
*
* 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.
*/
/**
* CZKShapePreserving1YStart Generates the Historical CZK Shape Preserving Funding Curve Native Compounded
* Forward Rate starting at 1Y Tenor.
*
* @author Lakshmi Krishnamurthy
*/
public class CZKShapePreserving1YStart {
public static final void main (
final String[] astrArgs)
throws Exception
{
EnvManager.InitEnv ("");
String strCurrency = "CZK";
String strClosesLocation = "C:\\DRIP\\CreditAnalytics\\Daemons\\Transforms\\FundingStateMarks\\" + strCurrency + "ShapePreservingReconstitutor.csv";
String[] astrInTenor = new String[] {
"1Y"
};
String[] astrForTenor = new String[] {
"1Y",
"2Y",
"3Y",
"4Y",
"5Y",
"6Y",
"7Y",
"8Y",
"9Y",
"10Y",
"11Y",
"12Y",
"15Y",
"20Y",
"25Y",
};
String[] astrFixFloatMaturityTenor = new String[] {
"1Y",
"2Y",
"3Y",
"4Y",
"5Y",
"6Y",
"7Y",
"8Y",
"9Y",
"10Y",
"11Y",
"12Y",
"15Y",
"20Y",
"25Y",
"30Y",
"40Y",
"50Y"
};
CSVGrid csvGrid = CSVParser.StringGrid (
strClosesLocation,
true
);
JulianDate[] adtClose = csvGrid.dateArrayAtColumn (0);
double[] adblFixFloatQuote1Y = csvGrid.doubleArrayAtColumn (1);
double[] adblFixFloatQuote2Y = csvGrid.doubleArrayAtColumn (2);
double[] adblFixFloatQuote3Y = csvGrid.doubleArrayAtColumn (3);
double[] adblFixFloatQuote4Y = csvGrid.doubleArrayAtColumn (4);
double[] adblFixFloatQuote5Y = csvGrid.doubleArrayAtColumn (5);
double[] adblFixFloatQuote6Y = csvGrid.doubleArrayAtColumn (6);
double[] adblFixFloatQuote7Y = csvGrid.doubleArrayAtColumn (7);
double[] adblFixFloatQuote8Y = csvGrid.doubleArrayAtColumn (8);
double[] adblFixFloatQuote9Y = csvGrid.doubleArrayAtColumn (9);
double[] adblFixFloatQuote10Y = csvGrid.doubleArrayAtColumn (10);
double[] adblFixFloatQuote11Y = csvGrid.doubleArrayAtColumn (11);
double[] adblFixFloatQuote12Y = csvGrid.doubleArrayAtColumn (12);
double[] adblFixFloatQuote15Y = csvGrid.doubleArrayAtColumn (13);
double[] adblFixFloatQuote20Y = csvGrid.doubleArrayAtColumn (14);
double[] adblFixFloatQuote25Y = csvGrid.doubleArrayAtColumn (15);
double[] adblFixFloatQuote30Y = csvGrid.doubleArrayAtColumn (16);
double[] adblFixFloatQuote40Y = csvGrid.doubleArrayAtColumn (17);
double[] adblFixFloatQuote50Y = csvGrid.doubleArrayAtColumn (18);
int iNumClose = adtClose.length;
JulianDate[] adtSpot = new JulianDate[iNumClose];
double[][] aadblFixFloatQuote = new double[iNumClose][18];
for (int i = 0; i < iNumClose; ++i) {
adtSpot[i] = adtClose[i];
aadblFixFloatQuote[i][0] = adblFixFloatQuote1Y[i];
aadblFixFloatQuote[i][1] = adblFixFloatQuote2Y[i];
aadblFixFloatQuote[i][2] = adblFixFloatQuote3Y[i];
aadblFixFloatQuote[i][3] = adblFixFloatQuote4Y[i];
aadblFixFloatQuote[i][4] = adblFixFloatQuote5Y[i];
aadblFixFloatQuote[i][5] = adblFixFloatQuote6Y[i];
aadblFixFloatQuote[i][6] = adblFixFloatQuote7Y[i];
aadblFixFloatQuote[i][7] = adblFixFloatQuote8Y[i];
aadblFixFloatQuote[i][8] = adblFixFloatQuote9Y[i];
aadblFixFloatQuote[i][9] = adblFixFloatQuote10Y[i];
aadblFixFloatQuote[i][10] = adblFixFloatQuote11Y[i];
aadblFixFloatQuote[i][11] = adblFixFloatQuote12Y[i];
aadblFixFloatQuote[i][12] = adblFixFloatQuote15Y[i];
aadblFixFloatQuote[i][13] = adblFixFloatQuote20Y[i];
aadblFixFloatQuote[i][14] = adblFixFloatQuote25Y[i];
aadblFixFloatQuote[i][15] = adblFixFloatQuote30Y[i];
aadblFixFloatQuote[i][16] = adblFixFloatQuote40Y[i];
aadblFixFloatQuote[i][17] = adblFixFloatQuote50Y[i];
}
String strDump = "Date";
for (String strInTenor : astrInTenor) {
for (String strForTenor : astrForTenor)
strDump += "," + strInTenor + strForTenor;
}
System.out.println (strDump);
Map<JulianDate, FundingCurveMetrics> mapFCM = FundingCurveAPI.HorizonMetrics (
adtSpot,
astrFixFloatMaturityTenor,
aadblFixFloatQuote,
astrInTenor,
astrForTenor,
strCurrency,
LatentMarketStateBuilder.SHAPE_PRESERVING
);
for (int i = 0; i < iNumClose; ++i) {
FundingCurveMetrics fcm = mapFCM.get (adtSpot[i]);
strDump = adtSpot[i].toString();
for (String strInTenor : astrInTenor) {
for (String strForTenor : astrForTenor) {
try {
strDump += "," + FormatUtil.FormatDouble (
fcm.nativeForwardRate (
strInTenor,
strForTenor
), 1, 5, 100.
);
} catch (Exception e) {
}
}
}
System.out.println (strDump);
}
}
}
|
[
"lakshmi7977@gmail.com"
] |
lakshmi7977@gmail.com
|
bf6f992b292729c7554d832a4d2db56ecba1a53c
|
f71be0ba4ff19fa563f0f257451e5ecff138dddf
|
/jackknife-ioc/src/main/java/com/lwh/jackknife/ioc/inject/InjectAdapter.java
|
69060ce465bca544efb69626ba8f072842c13abc
|
[
"Apache-2.0"
] |
permissive
|
JinHT1218/jackknife
|
030163ff42c5458288bb32d96ad4fa25b831ef87
|
e5e1bc5131b2476fc0165523dd8f80919a4af814
|
refs/heads/master
| 2020-04-07T11:28:26.684775
| 2018-11-18T12:50:26
| 2018-11-18T12:50:26
| 158,327,730
| 1
| 0
|
Apache-2.0
| 2018-11-20T03:49:52
| 2018-11-20T03:49:52
| null |
UTF-8
|
Java
| false
| false
| 1,273
|
java
|
/*
* Copyright (C) 2018 The JackKnife 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.lwh.jackknife.ioc.inject;
import com.lwh.jackknife.ioc.SupportV;
import com.lwh.jackknife.ioc.bind.BindEvent;
import com.lwh.jackknife.ioc.bind.BindLayout;
import com.lwh.jackknife.ioc.bind.BindView;
/**
* The default implementation to decrease code.
*/
public abstract class InjectAdapter implements InjectHandler {
@Override
public String generateLayoutName(SupportV v) {
return null;
}
@Override
public void performInject(BindLayout bindLayout) {
}
@Override
public void performInject(BindView bindView) {
}
@Override
public void performInject(BindEvent bindEvent) {
}
}
|
[
"924666990@qq.com"
] |
924666990@qq.com
|
490d2ba4e6bec7af3cc0d413a571fb582debe634
|
4c9d35da30abf3ec157e6bad03637ebea626da3f
|
/eclipse/src/org/ripple/power/server/chat/ChatMessage.java
|
3bfb169f3908b376c413eb39045b710b39507b7c
|
[
"Apache-2.0"
] |
permissive
|
youweixue/RipplePower
|
9e6029b94a057e7109db5b0df3b9fd89c302f743
|
61c0422fa50c79533e9d6486386a517565cd46d2
|
refs/heads/master
| 2020-04-06T04:40:53.955070
| 2015-04-02T12:22:30
| 2015-04-02T12:22:30
| 33,860,735
| 0
| 0
| null | 2015-04-13T09:52:14
| 2015-04-13T09:52:11
| null |
UTF-8
|
Java
| false
| false
| 957
|
java
|
package org.ripple.power.server.chat;
public class ChatMessage extends AMessage {
private String msg;
private short type;
private String username;
private String toUser;
public ChatMessage() {
super();
}
public ChatMessage(short type, String msg, String username,String toUser) {
super();
this.msg = msg;
this.type = type;
this.username = username;
this.toUser = toUser;
}
@Override
public short getMessageType() {
return MessageType.CS_CHAT;
}
@Override
public void readImpl() {
this.type = readShort();
this.msg = readString();
this.username = readString();
this.toUser = readString();
}
@Override
public void writeImpl() {
writeShort(type);
writeString(msg);
writeString(username);
writeString(toUser);
}
public String getMsg() {
return msg;
}
public short getType() {
return type;
}
public String getUsername() {
return username;
}
public String getToUser() {
return toUser;
}
}
|
[
"longwind2012@hotmail.com"
] |
longwind2012@hotmail.com
|
8d0a68d4a3db5846eae1ced69f609687ce802db7
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/28/28_ea751b81abed396099e0beee9e5ca59b967df38a/MixtureModel/28_ea751b81abed396099e0beee9e5ca59b967df38a_MixtureModel_t.java
|
a4e9489ea85a5095ecfc12f5faf0a422295b27fb
|
[] |
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,266
|
java
|
package core.evolution;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
public class MixtureModel {
///stop condition
public double Eps = 0.01;
///max iterate number
public int MaxIteration = 1000;
//background distribution weight
public double Lamda = 0.95;
//how many themes
public int K = 10;
//theme weight for every document (number of article) * (k theme)
public double pi[][];
//word distribution for themes (number of words) * (k theme)
public double phi[][];
//all the words and TF of articles
private List<Map<String,Integer>> Words = new ArrayList<Map<String,Integer>>();
private Map<String,Integer> Background = new LinkedHashMap<String,Integer>();
private List<String> WordsIdMap = new ArrayList<String>();
private Map<String,Integer> IdWordsMap = new HashMap<String,Integer>();
private long TotalWordNum;
public MixtureModel(){
}
///constructor
public MixtureModel(int k, double lamda){
this.K = k;
this.Lamda = lamda;
}
///constructor
public MixtureModel(int k, double lamda,int maxIteration,double eps){
this.K = k;
this.Lamda = lamda;
this.MaxIteration = maxIteration;
this.Eps = eps;
}
///initialize the words map from a file
private void initWords(String in){
BufferedReader br;
try {
br = new BufferedReader(new FileReader(in));
String line = "";
while((line = br.readLine()) != null){
Map<String,Integer> articleWords = new HashMap<String,Integer>();
String[] its = line.split("\t");
String[] words = its[3].split(" ");
for(String wd : words){
if(wd.length() == 0)
continue;
if(Background.containsKey(wd)){
Background.put(wd, Background.get(wd) + 1);
}else{
Background.put(wd, 1);
IdWordsMap.put(wd, WordsIdMap.size());
WordsIdMap.add(wd);
}
if(articleWords.containsKey(wd)){
articleWords.put(wd, articleWords.get(wd) + 1);
}else{
articleWords.put(wd, 1);
}
TotalWordNum++;
}
Words.add(articleWords);
}
br.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
//initialize some random value to arguments
private void initPara(){
Random rd = new Random(new Date().getTime());
/// 0 stands for background
pi = new double[Words.size()][K + 1];
phi = new double[Background.size() + 1][K + 1];
///init of pi
for(int i = 0 ;i < Words.size();i++){
double total_pi = 0;
for(int j = 0 ;j<=K;j++){
pi[i][j] = rd.nextDouble();
total_pi+= pi[i][j];
}
for(int j = 0 ;j<=K;j++){
pi[i][j] = pi[i][j] / total_pi;
}
}
///init of phi
for(int i = 0 ;i < Background.size();i++){
double total_phi = 0;
for(int j = 0 ;j<= K ;j++){
if(j == 0){
phi[i][j] = Background.get(WordsIdMap.get(i)) / (double)TotalWordNum;
}else{
phi[i][j] = rd.nextDouble();
}
total_phi+= phi[i][j];
}
for(int j = 0 ;j<= K;j++){
phi[i][j] = phi[i][j] / total_phi;
}
}
}
private void init(){
initWords("D:\\ETT\\tianyi");
initPara();
}
private void updatePara(){
////update the p(z_dw = j) and p(z_dw = B)
List<Map<String,List<Double>>> p_dw_t = new ArrayList<Map<String,List<Double>>>();
for(int i = 0 ;i < Words.size(); i++){
Map<String,List<Double>> dw_t = new HashMap<String,List<Double>>();
Map<String,Integer> wds = Words.get(i);
Iterator<String> it_wds = wds.keySet().iterator();
while(it_wds.hasNext()){
String wd = it_wds.next();
List<Double> ts = new ArrayList<Double>();
double t_t = 0.0;
double[] tmp_ts =new double[K+1];
for(int t = 0 ; t<= K ; t++){
//for background
if(t == 0){
double up = Lamda * Background.get(wd) / TotalWordNum;
double tmp_down = 0.0;
for(int tt = 1 ; tt<= K ;tt ++){
tmp_down += pi[i][tt] * phi[IdWordsMap.get(wd)][tt];
}
double down = up + (1-Lamda) * tmp_down;
ts.add(up / down);
}else{
double up = pi[i][t] * phi[IdWordsMap.get(wd)][t];
t_t += up;
tmp_ts[t] = up;
}
}
for(int t = 1 ;t <= K ;t++){
ts.add(tmp_ts[t] / t_t);
}
dw_t.put(wd, ts);
}
p_dw_t.add(dw_t);
}
///update pi
for(int i = 0 ; i< Words.size() ; i++){
Map<String,Integer> wds = Words.get(i);
double[] tmp_pis = new double[K + 1];
double total_pis = 0.0;
for(int t = 1 ; t <= K ;t ++){
double t_j = 0.0;
Iterator<String> it_wds = wds.keySet().iterator();
while(it_wds.hasNext()){
String word = it_wds.next();
int count = wds.get(word);
t_j += count * p_dw_t.get(i).get(word).get(t);
}
tmp_pis[t] = t_j;
total_pis += t_j;
}
for(int t = 1 ;t <= K ;t++){
pi[i][t] = tmp_pis[t] / total_pis;
}
}
///update phi
double[] tmp_pws = new double[K + 1];
for(int i = 1 ;i<= K ;i++){
for(int a = 0 ; a < Words.size(); a++){
Map<String,Integer> wds = Words.get(a);
Iterator<String> it_wds = wds.keySet().iterator();
while(it_wds.hasNext()){
String word = it_wds.next();
tmp_pws[i] += wds.get(word) *
(1 - p_dw_t.get(a).get(word).get(0)) *
p_dw_t.get(a).get(word).get(i);
}
}
}
for(int i = 0 ; i< WordsIdMap.size(); i++){
String word = WordsIdMap.get(i);
for(int t = 1 ; t<= K ;t++){
double tmp_s = 0.0;
for(int j = 0 ; j< Words.size();j++){
if(Words.get(j).containsKey(word)){
tmp_s += Words.get(j).get(word) * (1- p_dw_t.get(j).get(word).get(0)) *p_dw_t.get(j).get(word).get(t);
}
}
phi[i][t] = tmp_s / tmp_pws[t];
if(phi[i][t] == 0){
}
}
}
}
private void printTopWords(int N){
//sort
double[][] keys = new double[K + 1][ N ];
int[][] vals = new int[K+1][N];
for(int t = 0 ; t<= K;t++){
for(int j = 0 ; j < N ;j++){
double max = -1;
int index = 0;
for(int i = 0 ; i< WordsIdMap.size(); i++){
if(phi[i][t] > max && j != 0 && phi[i][t] < keys[t][j - 1]){
max = phi[i][t];
index = i;
}else if(j == 0){
if(phi[i][t] > max){
max = phi[i][t];
index = i;
}
}
}
keys[t][j] = max;
vals[t][j] = index;
}
}
for(int t = 0 ; t<= K ;t++){
for(int i = 0 ; i< N ;i ++){
System.out.print(WordsIdMap.get(vals[t][i]) + "\t" + keys[t][i]+"\t");
}
System.out.println();
}
}
public static void main(String[] args){
MixtureModel mm = new MixtureModel();
mm.init();
mm.printTopWords(20);
System.out.println("init ok ... ");
for(int i = 0 ; i< 2000;i++){
System.out.println("iteration... " + i);
mm.updatePara();
mm.printTopWords(10);
System.out.println("-------------------");
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
349d99bf7eba56bf45134c4d092ce51d666e81b0
|
2a317cd5006075eeb8e9b282de69734aa6e2daf8
|
/com.bodaboda_source_code/sources/com/google/android/gms/games/internal/JingleLog.java
|
94f9898989aaef3fef77695c0995bccc8d975200
|
[] |
no_license
|
Akuku25/bodaapp
|
ee1ed22b0ad05c11aa8c8d4595f5b50da338fbe0
|
c4f54b5325d035b54d0288a402558aa1592a165f
|
refs/heads/master
| 2020-04-28T03:52:04.729338
| 2019-03-11T08:24:30
| 2019-03-11T08:24:30
| 174,954,616
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 226
|
java
|
package com.google.android.gms.games.internal;
import com.google.android.gms.common.internal.zzp;
public final class JingleLog {
private static final zzp zzUh = new zzp("GamesJingle");
private JingleLog() {
}
}
|
[
"wanyama19@gmail.com"
] |
wanyama19@gmail.com
|
36dc851e353f8a96b2eef7b3fdc51419df0be4af
|
4e9cc5d6eb8ec75e717404c7d65ab07e8f749c83
|
/sdk-hook/src/main/java/com/dingtalk/api/request/OapiCateringUnfreezeRequest.java
|
c770ab72773113cf991c742bfd958e8b0b89318e
|
[] |
no_license
|
cvdnn/ZtoneNetwork
|
38878e5d21a17d6fe69a107cfc901d310418e230
|
2b985cc83eb56d690ec3b7964301aeb4fda7b817
|
refs/heads/master
| 2023-05-03T16:41:01.132198
| 2021-05-19T07:35:58
| 2021-05-19T07:35:58
| 92,125,735
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,726
|
java
|
package com.dingtalk.api.request;
import com.taobao.api.internal.util.RequestCheckUtils;
import java.util.Map;
import java.util.List;
import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.dingtalk.api.DingTalkConstants;
import com.taobao.api.Constants;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.internal.util.TaobaoUtils;
import com.dingtalk.api.response.OapiCateringUnfreezeResponse;
/**
* TOP DingTalk-API: dingtalk.oapi.catering.unfreeze request
*
* @author top auto create
* @since 1.0, 2019.10.11
*/
public class OapiCateringUnfreezeRequest extends BaseTaobaoRequest<OapiCateringUnfreezeResponse> {
/**
* 订单编号
*/
private String orderId;
/**
* 餐补规则编码
*/
private String ruleCode;
/**
* 点餐人userid
*/
private String userid;
public void setOrderId(String orderId) {
this.orderId = orderId;
}
public String getOrderId() {
return this.orderId;
}
public void setRuleCode(String ruleCode) {
this.ruleCode = ruleCode;
}
public String getRuleCode() {
return this.ruleCode;
}
public void setUserid(String userid) {
this.userid = userid;
}
public String getUserid() {
return this.userid;
}
public String getApiMethodName() {
return "dingtalk.oapi.catering.unfreeze";
}
private String topResponseType = Constants.RESPONSE_TYPE_DINGTALK_OAPI;
public String getTopResponseType() {
return this.topResponseType;
}
public void setTopResponseType(String topResponseType) {
this.topResponseType = topResponseType;
}
public String getTopApiCallType() {
return DingTalkConstants.CALL_TYPE_OAPI;
}
private String topHttpMethod = DingTalkConstants.HTTP_METHOD_POST;
public String getTopHttpMethod() {
return this.topHttpMethod;
}
public void setTopHttpMethod(String topHttpMethod) {
this.topHttpMethod = topHttpMethod;
}
public void setHttpMethod(String httpMethod) {
this.setTopHttpMethod(httpMethod);
}
public Map<String, String> getTextParams() {
TaobaoHashMap txtParams = new TaobaoHashMap();
txtParams.put("order_id", this.orderId);
txtParams.put("rule_code", this.ruleCode);
txtParams.put("userid", this.userid);
if(this.udfParams != null) {
txtParams.putAll(this.udfParams);
}
return txtParams;
}
public Class<OapiCateringUnfreezeResponse> getResponseClass() {
return OapiCateringUnfreezeResponse.class;
}
public void check() throws ApiRuleException {
RequestCheckUtils.checkNotEmpty(orderId, "orderId");
RequestCheckUtils.checkNotEmpty(ruleCode, "ruleCode");
RequestCheckUtils.checkNotEmpty(userid, "userid");
}
}
|
[
"cvvdnn@gmail.com"
] |
cvvdnn@gmail.com
|
1a016b2afa5f9573774481f14692be4113f53411
|
7c890da84f919085a37f68608f724cb339e6a426
|
/zeusLamp/src/scripts/contentvalidation_stage/ContentValidation_locale_2.java
|
827c2c0a1b8b20ecb3809abe5a6c797010854bf8
|
[] |
no_license
|
AnandSelenium/ZeusRepo
|
8da6921068f4ce4450c8f34706da0c52fdeb0bab
|
0a9bb33bdac31945b1b1a80e6475a390d1dc5d08
|
refs/heads/master
| 2020-03-23T21:38:11.536096
| 2018-07-24T07:26:48
| 2018-07-24T07:26:48
| 142,121,241
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,878
|
java
|
package scripts.contentvalidation_stage;
import org.openqa.selenium.JavascriptExecutor;
import org.testng.annotations.AfterClass;
import org.testng.annotations.Test;
import java.io.IOException;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Parameters;
import classes.aem.AEMTechPaperPage;
import classes.utilities.UtilityMethods;
import com.arsin.ArsinSeleniumAPI;
public class ContentValidation_locale_2{
ArsinSeleniumAPI oASelFW = null;
@Parameters({ "prjName", "testEnvironment","instanceName","sauceUser","moduleName","testSetName"})
@BeforeClass
public void oneTimeSetUp(String prjName,String testEnvironment,String instanceName,String sauceUser,String moduleName,String testSetName) throws InterruptedException
{
String[] environment=new ArsinSeleniumAPI().getEnvironment(testEnvironment,this.getClass().getName());
String os=environment[0];String browser=environment[1];String testCasename=this.getClass().getSimpleName();
oASelFW = new ArsinSeleniumAPI(prjName,testCasename,browser,os,instanceName,sauceUser,moduleName,testSetName);
oASelFW.startSelenium(oASelFW.getURL("Content_Validation_URL2_Stage",oASelFW.instanceName));
}
@SuppressWarnings("unused")
@Test
public void ContentValidation_locale_2() throws Exception
{
try
{
UtilityMethods utlmthds = new UtilityMethods(oASelFW);
String[] urls = utlmthds.getValuesFromPropertiesFile("constant","Content_Validation_URL2_Stage").split(",");
outer:
for(int i=0;i<urls.length;i++)
{
try{
oASelFW.driver.get(urls[i]);
Thread.sleep(20000);
AEMTechPaperPage aemTpObj = new AEMTechPaperPage(oASelFW);
String[] error_msg={"error_country","error_fname","error_lname","error_company_name","error_address1","error_city","error_Email","error_Phone","error_title","error_department","error_jobRole","error_relationshipVMware","error_numberEmployeesGlobal","error_respondents_comments"};
aemTpObj.click_Submit_locale();
JavascriptExecutor je = (JavascriptExecutor) oASelFW.driver;
je.executeScript("window.scrollBy(0,-250)", "");
je.executeScript("window.scrollBy(0,-250)", "");
je.executeScript("window.scrollBy(0,-250)", "");
je.executeScript("window.scrollBy(0,-250)", "");
//Verifying Elements
aemTpObj.verify_MainHeading("Contact Sales");
aemTpObj.verify_SubHeading("Tell Us About Yourself");
aemTpObj.verify_Description("Complete the form below to");
// aemTpObj.verify_Tags("Home");
// aemTpObj.verify_Tags("Company");
// aemTpObj.verify_Tags("Contact Sales");
//Error Validation
aemTpObj.errorValidation(error_msg);
//Form Filling
aemTpObj.form_dropdown_locale("1","country","India");
Thread.sleep(3000);
System.out.println("selected country");
aemTpObj.form_filling_locale("1", "First Name", "qa");
Thread.sleep(3000);
aemTpObj.form_filling_locale("2", "Last Name", "test");
Thread.sleep(3000);
aemTpObj.form_filling_locale("3", "Company", "VMware Software India Pvt Ltd");
Thread.sleep(3000);
aemTpObj.form_filling_locale("4", "Address 1", "JP Nagar");
Thread.sleep(3000);
aemTpObj.form_filling_locale("6", "City", "Bengaluru");
Thread.sleep(3000);
aemTpObj.form_filling_locale("9", "Work Email", "qatest1215151@vmware.com");
Thread.sleep(3000);
aemTpObj.form_filling_locale("10", "Business Number", "+918040440000");
Thread.sleep(3000);
aemTpObj.form_filling_locale("11", "Job Title", "Test Manager");
Thread.sleep(3000);
aemTpObj.form_dropdown_locale_second("2","department","IT - Project Management");
Thread.sleep(6000);
aemTpObj.form_dropdown_locale_second("3","jobRole", "Analyst");
Thread.sleep(3000);
aemTpObj.form_dropdown_locale_second("4","product_interest","Airwatch");
Thread.sleep(3000);
/*aemTpObj.form_dropdown_locale_second("5","relationshipvmware","Customer");
Thread.sleep(3000);
*/
System.out.println("before VM informarion need");
aemTpObj.form_dropdown_locale_three("6","numberemployeesglobal","Less Than 100");
Thread.sleep(30000);
aemTpObj.form_desc_locale("Thank You");
aemTpObj.checkbox_locale();
//click submit
aemTpObj.click_Submit_locale();
Thread.sleep(70000);
aemTpObj.verify_MainHeading_locale("Thank You For Contacting VMware!");
aemTpObj.get_URL();
} catch(Exception e)
{
continue outer;
}
if(oASelFW.sResultFlag.contains("Fail"))
{
oASelFW.testNgFail();
}
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
@AfterClass
public void oneTearDown() throws IOException{
oASelFW.stopSelenium();
}
}
|
[
"seleniumauto175@gmail.com"
] |
seleniumauto175@gmail.com
|
6893cdb650cc33f6a215a6bb5968f2589fe4cf3f
|
2ee73c10aae5f38ada1b7164b60b228655ba879e
|
/src/main/java/com/tseong/learning/basic/nio/_06_GatherScatterDemo.java
|
96d26039b10066fb5d8e43591984fcaf80d2516f
|
[] |
no_license
|
shawn-zhong/JavaLearning
|
f5f43da9d0b83036f29a0d650726976a40d96f83
|
7e124d294c736c4f2010043211aee389c71ad96f
|
refs/heads/master
| 2021-04-27T06:29:45.940324
| 2020-10-30T07:55:25
| 2020-10-30T07:55:25
| 122,615,400
| 1
| 0
| null | 2021-03-12T21:56:32
| 2018-02-23T11:55:41
|
Java
|
UTF-8
|
Java
| false
| false
| 3,996
|
java
|
package com.tseong.learning.basic.nio;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
/*
scatter/gather指的在多个缓冲区上实现一个简单的I/O操作,比如从通道中读取数据到多个缓冲区,或从多个缓冲区中写入数据到通道;
scatter(分散):指的是从通道中读取数据分散到多个缓冲区Buffer的过程,该过程会将每个缓存区填满,直至通道中无数据或缓冲区没有空间;
gather(聚集):指的是将多个缓冲区Buffer聚集起来写入到通道的过程,该过程类似于将多个缓冲区的内容连接起来写入通道;
*/
public class _06_GatherScatterDemo {
static private final int HEADER_LENGTH = 5;
static private final int BODY_LENGTH = 10;
public static void main(String[] args) throws Exception {
int port = 8080;
ServerSocketChannel ssc = ServerSocketChannel.open();
InetSocketAddress address = new InetSocketAddress(port);
ssc.socket().bind(address);
int messageLentgh = HEADER_LENGTH + BODY_LENGTH;
ByteBuffer[] buffers = new ByteBuffer[2];
buffers[0] = ByteBuffer.allocate(HEADER_LENGTH); // header buffer
buffers[1] = ByteBuffer.allocate(BODY_LENGTH); // body buffer
SocketChannel sc = ssc.accept();
int byteRead = 0;
while (byteRead < messageLentgh) {
long r = sc.read(buffers); // scatter 读取
byteRead += r;
System.out.println("r " + r);
for (int i=0; i<buffers.length; i++) {
ByteBuffer bb = buffers[i];
System.out.println("b" + i + " position : " + bb.position());
}
}
// pay message
// flip buffer
for (int i=0; i<buffers.length; i++) {
ByteBuffer bb = buffers[i];
bb.flip();
}
// scatter write
long byteWrite = 0;
while (byteWrite < messageLentgh) {
long r = sc.write(buffers); // gather 写入
byteWrite += r;
}
// clear buffers
for (int i=0; i<buffers.length; i++) {
ByteBuffer bb = buffers[i];
bb.clear();
}
System.out.println(byteRead + " " + byteWrite + " " + messageLentgh);
}
}
/*
public interface ScatteringByteChannel extends ReadableByteChannel
{
public long read(ByteBuffer[] dsts) throws IOException;
public long read(ByteBuffer[] dsts, int offset, int length) throws IOException;
}
public interface GatheringByteChannel extends WritableByteChannel
{
public long write(ByteBuffer[] srcs) throws IOException;
public long write(ByteBuffer[] srcs, int offset, int length) throws IOException;
}
提醒下,带offset和length参数的read( ) 和write( )方法可以让我们只使用缓冲区数组的子集,注意这里的offset指的是缓冲区数组索引,而不是Buffer数据的索引,length指的是要使用的缓冲区数量;
如下代码,将会往通道写入第二个、第三个、第四个缓冲区内容;
int bytesRead = channel.write (fiveBuffers, 1, 3);
注意,无论是scatter还是gather操作,都是按照buffer在数组中的顺序来依次读取或写入的;
ByteBuffer header = ByteBuffer.allocate(128);
ByteBuffer body = ByteBuffer.allocate(1024);
//write data into buffers
ByteBuffer[] bufferArray = { header, body };
channel.write(bufferArray);
以上代码会将header和body这两个缓冲区的数据写入到通道;
这里要特别注意的并不是所有数据都写入到通道,写入的数据要根据position和limit的值来判断,只有position和limit之间的数据才会被写入;
举个例子,假如以上header缓冲区中有128个字节数据,但此时position=0,limit=58;那么只有下标索引为0-57的数据才会被写入到通道中;
*/
|
[
"tseong@foxmail.com"
] |
tseong@foxmail.com
|
7e9254834567cd2d89e14b2346fd5eee05e7746e
|
a8595c2b7a8f9ded844e7ace8517b4423a692736
|
/erp2_entity/src/main/java/com/itcast/erp/entity/Returnorderdetail.java
|
09e9fd4aa7a4ed1e28f24774c9007bcc9291e528
|
[] |
no_license
|
yzzzyk/ERP
|
8c1971d81ddc9a52a8d3d0886debb5a2907086f4
|
cefdda7d03a86a65558b2b47806c540d7f9fe88d
|
refs/heads/master
| 2020-05-04T16:33:53.159083
| 2020-04-13T16:04:50
| 2020-04-13T16:04:50
| 179,281,282
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,275
|
java
|
package com.itcast.erp.entity;
import com.alibaba.fastjson.annotation.JSONField;
/**
* 退货订单明细实体类
* @author Administrator *
*/
public class Returnorderdetail {
private Long uuid;//编号
private Long goodsuuid;//商品编号
private String goodsname;//商品名称
private Double price;//价格
private Long num;//数量
private Double money;//金额
private java.util.Date endtime;//结束日期
private Long ender;//库管员
private Long storeuuid;//仓库编号
private String state;//状态
/**
* 1=已入库
*/
public static final String STATE_IN="1";
/**
* 0=未入库
*/
public static final String STATE__NOT_IN="0";
/**
* 0=未出库
*/
public static final String STATE__NOT_OUT="0";
/**
* 1=已出库
*/
public static final String STATE__OUT="1";
//表达多对一
@JSONField(serialize=false)
private Returnorders returnorders;//退货订单
public Long getUuid() {
return uuid;
}
public void setUuid(Long uuid) {
this.uuid = uuid;
}
public Long getGoodsuuid() {
return goodsuuid;
}
public void setGoodsuuid(Long goodsuuid) {
this.goodsuuid = goodsuuid;
}
public String getGoodsname() {
return goodsname;
}
public void setGoodsname(String goodsname) {
this.goodsname = goodsname;
}
public Double getPrice() {
return price;
}
public void setPrice(Double price) {
this.price = price;
}
public Long getNum() {
return num;
}
public void setNum(Long num) {
this.num = num;
}
public Double getMoney() {
return money;
}
public void setMoney(Double money) {
this.money = money;
}
public java.util.Date getEndtime() {
return endtime;
}
public void setEndtime(java.util.Date endtime) {
this.endtime = endtime;
}
public Long getEnder() {
return ender;
}
public void setEnder(Long ender) {
this.ender = ender;
}
public Long getStoreuuid() {
return storeuuid;
}
public void setStoreuuid(Long storeuuid) {
this.storeuuid = storeuuid;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public Returnorders getReturnorders() {
return returnorders;
}
public void setReturnorders(Returnorders returnorders) {
this.returnorders = returnorders;
}
}
|
[
"you@example.com"
] |
you@example.com
|
807d4d2fcc8b26f606aba273abc6912629244238
|
f24971da11abd8baa2007952f3291f4cae145810
|
/Product/Production/Common/AurionCoreLib/src/main/java/org/alembic/aurion/hiem/adapter/unsubscribe/AdapterHiemUnsubscribeOrchImpl.java
|
58f130dcf513cde8a73a94936c7ebc8a71c1097d
|
[] |
no_license
|
AurionProject/Aurion_4.1
|
88e912dd0f688dea2092c80aff3873ad438d5aa9
|
db21f7fe860550baa7942c1d78e49eab3ece82db
|
refs/heads/master
| 2021-01-17T15:41:34.372017
| 2015-12-21T21:09:42
| 2015-12-21T21:09:42
| 49,459,325
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 738
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.alembic.aurion.hiem.adapter.unsubscribe;
import org.alembic.aurion.common.nhinccommon.AssertionType;
import org.alembic.aurion.hiem.consumerreference.ReferenceParametersElements;
import org.oasis_open.docs.wsn.b_2.Unsubscribe;
import org.oasis_open.docs.wsn.b_2.UnsubscribeResponse;
/**
*
* @author JHOPPESC
*/
public class AdapterHiemUnsubscribeOrchImpl {
public UnsubscribeResponse unsubscribe(Unsubscribe unsubscribeElement, ReferenceParametersElements referenceParametersElements, AssertionType assertion)
{
UnsubscribeResponse response = new UnsubscribeResponse();
return response;
}
}
|
[
"leswestberg@fake.com"
] |
leswestberg@fake.com
|
35232b8f7c0c121660e644cbd76c54fb7fc5e011
|
78a1d443196d812f10852bb13b40e66d61e7de16
|
/src/main/java/org/atomic/java/catalog/collections/map/IdentityHashMapExample.java
|
2b37e87c4bd4dd8abac4528c3df4d5a601149b9e
|
[] |
no_license
|
atomicworld/knowledge
|
645a29b81f527adb6e19f1eb5b64cd4f305440ff
|
354168221eb74c55e2cc43b2231abea6552c7cef
|
refs/heads/master
| 2020-05-09T18:00:43.416558
| 2019-05-12T11:02:30
| 2019-05-12T11:02:30
| 181,322,141
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,144
|
java
|
package org.atomic.java.catalog.collections.map;
import java.util.IdentityHashMap;
import java.util.Map;
public class IdentityHashMapExample {
public static void main(String[] args) {
//IdentityHashMap使用===================================
Map<String, String> identityHashMap = new IdentityHashMap<>();
identityHashMap.put(new String("a"), "1");
identityHashMap.put(new String("a"), "2");
identityHashMap.put(new String("a"), "3");
System.out.println(identityHashMap.size()); //3
Map<Person, String> identityHashMap2 = new IdentityHashMap<>();
identityHashMap2.put(new Person(1), "1");
identityHashMap2.put(new Person(1), "2");
identityHashMap2.put(new Person(1), "3");
System.out.println(identityHashMap2.size()); //3
Map<PersonOverWrite, String> identityHashMap3 = new IdentityHashMap<>();
identityHashMap3.put(new PersonOverWrite(1), "1");
identityHashMap3.put(new PersonOverWrite(1), "2");
identityHashMap3.put(new PersonOverWrite(1), "3");
System.out.println(identityHashMap3.size()); //3
}
}
|
[
"huangwen9@wanda.cn"
] |
huangwen9@wanda.cn
|
d3da4b7477fb3246ffca640bfbe48fcdcce528c8
|
a28ec548b942eb9428ee15306c400edcbcb9cf07
|
/mybatis01-初识/src/main/java/com/kuang/utils/MybatisUtils.java
|
f5b09a8c085ca7c5868bfd5fb668e2005a7154b3
|
[] |
no_license
|
Archer-Fang/mybatis-study
|
72192ba6b7d0833039545b85dfaa2bf9b45bdfc2
|
32fcc322832925188cc384e80ef78f17d5dbece9
|
refs/heads/main
| 2023-03-04T09:23:57.137734
| 2021-02-10T08:27:03
| 2021-02-10T08:27:03
| 334,070,879
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,042
|
java
|
package com.kuang.utils;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import java.io.IOException;
import java.io.InputStream;
/**
* @author :fzj
* @date :2021/1/8
*/
//sqlSessionFactory --> sqlSession
public class MybatisUtils {
private static SqlSessionFactory sqlSessionFactory;
static {
try {
//使用mybatis第一步:获取sqlSessionFactory对象
String resource = "mybatis-config.xml";
InputStream inputStream = Resources.getResourceAsStream(resource);
sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);
} catch (IOException e) {
e.printStackTrace();
}
}
//获取SqlSession连接
public static SqlSession getSession(){
return sqlSessionFactory.openSession();
}
public static void main(String[] args) {
getSession();
}
}
|
[
"1091053002@qq.com"
] |
1091053002@qq.com
|
0a2a6d5e936c95dcb548b1b25c42d243e1b826fe
|
1c2f80c42d910e32b2af30ac42ebe032c236a832
|
/src/main/java/org/overbaard/jira/impl/OverbaardFacadeImpl.java
|
7db2563dcbd828d73b4b332f3c1b86a2aa162ab4
|
[] |
no_license
|
kabir/overbaard-redux
|
09395946f14206573f4742c1b25698c2248615a7
|
963caca98ca84f1db98a3ee57485cc74b24f82f6
|
refs/heads/master
| 2020-12-03T01:57:38.586823
| 2018-05-01T16:34:21
| 2018-05-01T16:34:21
| 95,884,422
| 0
| 1
| null | 2018-03-21T16:01:53
| 2017-06-30T11:59:53
|
Java
|
UTF-8
|
Java
| false
| false
| 6,102
|
java
|
/*
* Copyright 2016 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.overbaard.jira.impl;
import java.io.InputStream;
import java.util.jar.Manifest;
import javax.inject.Inject;
import javax.inject.Named;
import org.jboss.dmr.ModelNode;
import org.overbaard.jira.OverbaardLogger;
import org.overbaard.jira.api.BoardConfigurationManager;
import org.overbaard.jira.api.BoardManager;
import org.overbaard.jira.api.JiraFacade;
import org.overbaard.jira.api.UserAccessManager;
import org.overbaard.jira.impl.config.BoardConfig;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import com.atlassian.jira.issue.search.SearchException;
import com.atlassian.jira.user.ApplicationUser;
@Named ("overbaardJiraFacade")
public class OverbaardFacadeImpl implements JiraFacade, InitializingBean, DisposableBean {
private final BoardConfigurationManager boardConfigurationManager;
private final BoardManager boardManager;
private final UserAccessManager userAccessManager;
private static final String overbaardVersion;
static {
String version;
try (InputStream stream = OverbaardFacadeImpl.class.getClassLoader().getResourceAsStream("META-INF/MANIFEST.MF")) {
Manifest manifest = null;
if (stream != null) {
manifest = new Manifest(stream);
}
version = manifest.getMainAttributes().getValue("Bundle-Version");
} catch (Exception e) {
// ignored
version = "Error";
}
overbaardVersion = version;
}
@Inject
public OverbaardFacadeImpl(final BoardConfigurationManager boardConfigurationManager,
final BoardManager boardManager,
final UserAccessManager userAccessManager) {
this.boardConfigurationManager = boardConfigurationManager;
this.boardManager = boardManager;
this.userAccessManager = userAccessManager;
}
@Override
public String getBoardConfigurations(ApplicationUser user) {
return boardConfigurationManager.getBoardsJson(user, true);
}
@Override
public String getBoardJsonForConfig(ApplicationUser user, int boardId) {
return boardConfigurationManager.getBoardJsonConfig(user, boardId);
}
@Override
public void saveBoardConfiguration(ApplicationUser user, int id, String jiraUrl, ModelNode config) {
BoardConfig boardConfig = boardConfigurationManager.saveBoard(user, id, config);
if (id >= 0) {
//We are modifying a board's configuration. Delete the board config and board data to force a refresh.
boardManager.deleteBoard(user, boardConfig.getCode());
}
}
@Override
public void deleteBoardConfiguration(ApplicationUser user, int id) {
final String code = boardConfigurationManager.deleteBoard(user, id);
boardManager.deleteBoard(user, code);
}
@Override
public String getBoardJson(ApplicationUser user, boolean backlog, String code) throws SearchException {
try {
return boardManager.getBoardJson(user, backlog, code);
} catch (Exception e) {
//Last parameter is the exception (it does not match a {} entry)
OverbaardLogger.LOGGER.debug("BoardManagerImpl.handleEvent - Error loading board {}", code, e);
if (e instanceof SearchException || e instanceof RuntimeException) {
throw e;
}
throw new RuntimeException(e);
}
}
@Override
public String getBoardsForDisplay(ApplicationUser user) {
return boardConfigurationManager.getBoardsJson(user, false);
}
@Override
public String getChangesJson(ApplicationUser user, boolean backlog, String code, int viewId) throws SearchException {
return boardManager.getChangesJson(user, backlog, code, viewId);
}
@Override
public void saveCustomFieldId(ApplicationUser user, ModelNode idNode) {
boardConfigurationManager.saveRankCustomFieldId(user, idNode);
}
@Override
public String getStateHelpTexts(ApplicationUser user, String boardCode) {
return boardConfigurationManager.getStateHelpTextsJson(user, boardCode);
}
@Override
public String getOverbaardVersion() {
return overbaardVersion;
}
@Override
public void logUserAccess(ApplicationUser user, String boardCode, String userAgent) {
userAccessManager.logUserAccess(user, boardCode, userAgent);
}
@Override
public String getUserAccessJson(ApplicationUser user) {
return userAccessManager.getUserAccessJson(user);
}
@Override
public void updateParallelTaskForIssue(ApplicationUser user, String boardCode, String issueKey, int taskIndex, int optionIndex) throws SearchException{
try {
boardManager.updateParallelTaskForIssue(user, boardCode, issueKey, taskIndex, optionIndex);
} catch (Exception e) {
//Last parameter is the exception (it does not match a {} entry)
OverbaardLogger.LOGGER.debug("BoardManagerImpl.handleEvent - Error updating board {}", boardCode, e);
if (e instanceof SearchException || e instanceof RuntimeException) {
throw e;
}
throw new RuntimeException(e);
}
}
@Override
public void afterPropertiesSet() throws Exception {
}
@Override
public void destroy() throws Exception {
}
}
|
[
"kkhan@redhat.com"
] |
kkhan@redhat.com
|
77213ca8c8d24be6bde95af5fd3aed55e0306f15
|
022980735384919a0e9084f57ea2f495b10c0d12
|
/src/ext-cttdt-lltnxp/ext-service/src/com/sgs/portlet/onedoorpccc/service/persistence/PmlPaintDocumentPersistence.java
|
3be7d69f1ac5623397cbc14033b0b017b355a39c
|
[] |
no_license
|
thaond/nsscttdt
|
474d8e359f899d4ea6f48dd46ccd19bbcf34b73a
|
ae7dacc924efe578ce655ddfc455d10c953abbac
|
refs/heads/master
| 2021-01-10T03:00:24.086974
| 2011-02-19T09:18:34
| 2011-02-19T09:18:34
| 50,081,202
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,379
|
java
|
package com.sgs.portlet.onedoorpccc.service.persistence;
public interface PmlPaintDocumentPersistence {
public com.sgs.portlet.onedoorpccc.model.PmlPaintDocument create(
long paintDocumentId);
public com.sgs.portlet.onedoorpccc.model.PmlPaintDocument remove(
long paintDocumentId)
throws com.liferay.portal.SystemException,
com.sgs.portlet.onedoorpccc.NoSuchPmlPaintDocumentException;
public com.sgs.portlet.onedoorpccc.model.PmlPaintDocument remove(
com.sgs.portlet.onedoorpccc.model.PmlPaintDocument pmlPaintDocument)
throws com.liferay.portal.SystemException;
/**
* @deprecated Use <code>update(PmlPaintDocument pmlPaintDocument, boolean merge)</code>.
*/
public com.sgs.portlet.onedoorpccc.model.PmlPaintDocument update(
com.sgs.portlet.onedoorpccc.model.PmlPaintDocument pmlPaintDocument)
throws com.liferay.portal.SystemException;
/**
* Add, update, or merge, the entity. This method also calls the model
* listeners to trigger the proper events associated with adding, deleting,
* or updating an entity.
*
* @param pmlPaintDocument the entity to add, update, or merge
* @param merge boolean value for whether to merge the entity. The
* default value is false. Setting merge to true is more
* expensive and should only be true when pmlPaintDocument is
* transient. See LEP-5473 for a detailed discussion of this
* method.
* @return true if the portlet can be displayed via Ajax
*/
public com.sgs.portlet.onedoorpccc.model.PmlPaintDocument update(
com.sgs.portlet.onedoorpccc.model.PmlPaintDocument pmlPaintDocument,
boolean merge) throws com.liferay.portal.SystemException;
public com.sgs.portlet.onedoorpccc.model.PmlPaintDocument updateImpl(
com.sgs.portlet.onedoorpccc.model.PmlPaintDocument pmlPaintDocument,
boolean merge) throws com.liferay.portal.SystemException;
public com.sgs.portlet.onedoorpccc.model.PmlPaintDocument findByPrimaryKey(
long paintDocumentId)
throws com.liferay.portal.SystemException,
com.sgs.portlet.onedoorpccc.NoSuchPmlPaintDocumentException;
public com.sgs.portlet.onedoorpccc.model.PmlPaintDocument fetchByPrimaryKey(
long paintDocumentId) throws com.liferay.portal.SystemException;
public java.util.List<com.sgs.portlet.onedoorpccc.model.PmlPaintDocument> findByQuantity(
int quantity) throws com.liferay.portal.SystemException;
public java.util.List<com.sgs.portlet.onedoorpccc.model.PmlPaintDocument> findByQuantity(
int quantity, int start, int end)
throws com.liferay.portal.SystemException;
public java.util.List<com.sgs.portlet.onedoorpccc.model.PmlPaintDocument> findByQuantity(
int quantity, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException;
public com.sgs.portlet.onedoorpccc.model.PmlPaintDocument findByQuantity_First(
int quantity, com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.sgs.portlet.onedoorpccc.NoSuchPmlPaintDocumentException;
public com.sgs.portlet.onedoorpccc.model.PmlPaintDocument findByQuantity_Last(
int quantity, com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.sgs.portlet.onedoorpccc.NoSuchPmlPaintDocumentException;
public com.sgs.portlet.onedoorpccc.model.PmlPaintDocument[] findByQuantity_PrevAndNext(
long paintDocumentId, int quantity,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.sgs.portlet.onedoorpccc.NoSuchPmlPaintDocumentException;
public java.util.List<com.sgs.portlet.onedoorpccc.model.PmlPaintDocument> findByFileId(
java.lang.String fileId) throws com.liferay.portal.SystemException;
public java.util.List<com.sgs.portlet.onedoorpccc.model.PmlPaintDocument> findByFileId(
java.lang.String fileId, int start, int end)
throws com.liferay.portal.SystemException;
public java.util.List<com.sgs.portlet.onedoorpccc.model.PmlPaintDocument> findByFileId(
java.lang.String fileId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException;
public com.sgs.portlet.onedoorpccc.model.PmlPaintDocument findByFileId_First(
java.lang.String fileId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.sgs.portlet.onedoorpccc.NoSuchPmlPaintDocumentException;
public com.sgs.portlet.onedoorpccc.model.PmlPaintDocument findByFileId_Last(
java.lang.String fileId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.sgs.portlet.onedoorpccc.NoSuchPmlPaintDocumentException;
public com.sgs.portlet.onedoorpccc.model.PmlPaintDocument[] findByFileId_PrevAndNext(
long paintDocumentId, java.lang.String fileId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.sgs.portlet.onedoorpccc.NoSuchPmlPaintDocumentException;
public java.util.List<Object> findWithDynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException;
public java.util.List<Object> findWithDynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end) throws com.liferay.portal.SystemException;
public java.util.List<com.sgs.portlet.onedoorpccc.model.PmlPaintDocument> findAll()
throws com.liferay.portal.SystemException;
public java.util.List<com.sgs.portlet.onedoorpccc.model.PmlPaintDocument> findAll(
int start, int end) throws com.liferay.portal.SystemException;
public java.util.List<com.sgs.portlet.onedoorpccc.model.PmlPaintDocument> findAll(
int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException;
public void removeByQuantity(int quantity)
throws com.liferay.portal.SystemException;
public void removeByFileId(java.lang.String fileId)
throws com.liferay.portal.SystemException;
public void removeAll() throws com.liferay.portal.SystemException;
public int countByQuantity(int quantity)
throws com.liferay.portal.SystemException;
public int countByFileId(java.lang.String fileId)
throws com.liferay.portal.SystemException;
public int countAll() throws com.liferay.portal.SystemException;
public void registerListener(
com.liferay.portal.model.ModelListener listener);
public void unregisterListener(
com.liferay.portal.model.ModelListener listener);
}
|
[
"nguyentanmo@843501e3-6f96-e689-5e61-164601347e4e"
] |
nguyentanmo@843501e3-6f96-e689-5e61-164601347e4e
|
42410860bbaf9e622da1ec6d212f0b0d17774f30
|
eaec4795e768f4631df4fae050fd95276cd3e01b
|
/src/cmps252/HW4_2/UnitTesting/record_3710.java
|
8b07312072e8a177143a983ed96cf4f9ec4c9830
|
[
"MIT"
] |
permissive
|
baraabilal/cmps252_hw4.2
|
debf5ae34ce6a7ff8d3bce21b0345874223093bc
|
c436f6ae764de35562cf103b049abd7fe8826b2b
|
refs/heads/main
| 2023-01-04T13:02:13.126271
| 2020-11-03T16:32:35
| 2020-11-03T16:32:35
| 307,839,669
| 1
| 0
|
MIT
| 2020-10-27T22:07:57
| 2020-10-27T22:07:56
| null |
UTF-8
|
Java
| false
| false
| 2,453
|
java
|
package cmps252.HW4_2.UnitTesting;
import static org.junit.jupiter.api.Assertions.*;
import java.io.FileNotFoundException;
import java.util.List;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import cmps252.HW4_2.Customer;
import cmps252.HW4_2.FileParser;
@Tag("2")
class Record_3710 {
private static List<Customer> customers;
@BeforeAll
public static void init() throws FileNotFoundException {
customers = FileParser.getCustomers(Configuration.CSV_File);
}
@Test
@DisplayName("Record 3710: FirstName is Noreen")
void FirstNameOfRecord3710() {
assertEquals("Noreen", customers.get(3709).getFirstName());
}
@Test
@DisplayName("Record 3710: LastName is Raynor")
void LastNameOfRecord3710() {
assertEquals("Raynor", customers.get(3709).getLastName());
}
@Test
@DisplayName("Record 3710: Company is Rosalyn Moss Travel")
void CompanyOfRecord3710() {
assertEquals("Rosalyn Moss Travel", customers.get(3709).getCompany());
}
@Test
@DisplayName("Record 3710: Address is 44777 S Grimmer Blvd #-c")
void AddressOfRecord3710() {
assertEquals("44777 S Grimmer Blvd #-c", customers.get(3709).getAddress());
}
@Test
@DisplayName("Record 3710: City is Fremont")
void CityOfRecord3710() {
assertEquals("Fremont", customers.get(3709).getCity());
}
@Test
@DisplayName("Record 3710: County is Alameda")
void CountyOfRecord3710() {
assertEquals("Alameda", customers.get(3709).getCounty());
}
@Test
@DisplayName("Record 3710: State is CA")
void StateOfRecord3710() {
assertEquals("CA", customers.get(3709).getState());
}
@Test
@DisplayName("Record 3710: ZIP is 94538")
void ZIPOfRecord3710() {
assertEquals("94538", customers.get(3709).getZIP());
}
@Test
@DisplayName("Record 3710: Phone is 510-794-0403")
void PhoneOfRecord3710() {
assertEquals("510-794-0403", customers.get(3709).getPhone());
}
@Test
@DisplayName("Record 3710: Fax is 510-794-8116")
void FaxOfRecord3710() {
assertEquals("510-794-8116", customers.get(3709).getFax());
}
@Test
@DisplayName("Record 3710: Email is noreen@raynor.com")
void EmailOfRecord3710() {
assertEquals("noreen@raynor.com", customers.get(3709).getEmail());
}
@Test
@DisplayName("Record 3710: Web is http://www.noreenraynor.com")
void WebOfRecord3710() {
assertEquals("http://www.noreenraynor.com", customers.get(3709).getWeb());
}
}
|
[
"mbdeir@aub.edu.lb"
] |
mbdeir@aub.edu.lb
|
599c91e9ad1312d415961154e9a059a7d7080e52
|
46167791cbfeebc8d3ddc97112764d7947fffa22
|
/quarkus/src/main/java/com/justexample/repository/Entity1043Repository.java
|
bbe485e90da7f85019d0f58a52a90174f2fbbe43
|
[] |
no_license
|
kahlai/unrealistictest
|
4f668b4822a25b4c1f06c6b543a26506bb1f8870
|
fe30034b05f5aacd0ef69523479ae721e234995c
|
refs/heads/master
| 2023-08-25T09:32:16.059555
| 2021-11-09T08:17:22
| 2021-11-09T08:17:22
| 425,726,016
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 244
|
java
|
package com.example.repository;
import java.util.List;
import com.example.entity.Entity1043;
import org.springframework.data.jpa.repository.JpaRepository;
public interface Entity1043Repository extends JpaRepository<Entity1043,Long>{
}
|
[
"laikahhoe@gmail.com"
] |
laikahhoe@gmail.com
|
dc37b0ad3cb4e27687d1fe13f4942a80998b00c7
|
5af0568f8f5fc6419aa626531648ed19ba268beb
|
/egradle-plugin-main/src/main/java/de/jcup/egradle/core/Constants.java
|
077a3b3b1ff7772db39ac1cbfaf94984fa893dc8
|
[
"Apache-2.0"
] |
permissive
|
wolfgang-ch/egradle
|
89a09287fa3cad93636b463baec31c5ddcb3cf6a
|
1bff129bf84c8b1ad465621ad6b8591717655b32
|
refs/heads/master
| 2021-01-20T08:14:05.987432
| 2017-05-03T07:44:10
| 2017-05-03T07:44:10
| 90,116,554
| 0
| 0
| null | 2017-05-03T06:38:54
| 2017-05-03T06:38:54
| null |
UTF-8
|
Java
| false
| false
| 1,183
|
java
|
/*
* Copyright 2016 Albert Tregnaghi
*
* 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 de.jcup.egradle.core;
public class Constants {
public static final String VIRTUAL_ROOTPROJECT_NAME = "- virtual root project";
public static final String VIRTUAL_ROOTPROJECT_FOLDERNAME = ".egradle";
public static final String CONSOLE_FAILED = "[FAILED]";
public static final String CONSOLE_OK = "[OK]";
public static final String CONSOLE_WARNING = "[WARNING]";
/**
* Validation output is shrinked to optimize validation performance. The value marks what is the limit of lines necessary to validate
*/
public static final int VALIDATION_OUTPUT_SHRINK_LIMIT = 25;
}
|
[
"albert.tregnaghi@gmail.com"
] |
albert.tregnaghi@gmail.com
|
118321e61cee0f0f5a2091a2cb0fe2f53c0c9029
|
59d56ad52a7e016883b56b73761104a17833a453
|
/src/main/java/com/whatever/SempService/ObjectFactory.java
|
734820f4c4b95df83769e78afd7f09420e2c6a6f
|
[] |
no_license
|
zapho/cxf-client-quarkus
|
3c330a3a5f370cce21c5cd1477ffbe274d1bba59
|
6e147d44b9ea9cc455d52f0efe234ef787b336c4
|
refs/heads/master
| 2023-01-22T03:33:27.579072
| 2020-12-08T14:55:27
| 2020-12-08T14:55:27
| 319,641,033
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,331
|
java
|
package com.whatever.SempService;
import javax.xml.bind.annotation.XmlRegistry;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the com.whatever.SempService package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.whatever.SempService
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link GetChildren }
*
*/
public GetChildren createGetChildren() {
return new GetChildren();
}
/**
* Create an instance of {@link SearchByIdResponse }
*
*/
public SearchByIdResponse createSearchByIdResponse() {
return new SearchByIdResponse();
}
/**
* Create an instance of {@link Semp }
*
*/
public Semp createSemp() {
return new Semp();
}
/**
* Create an instance of {@link GetParent }
*
*/
public GetParent createGetParent() {
return new GetParent();
}
/**
* Create an instance of {@link SearchById }
*
*/
public SearchById createSearchById() {
return new SearchById();
}
/**
* Create an instance of {@link SearchByName }
*
*/
public SearchByName createSearchByName() {
return new SearchByName();
}
/**
* Create an instance of {@link SearchByNameResponse }
*
*/
public SearchByNameResponse createSearchByNameResponse() {
return new SearchByNameResponse();
}
/**
* Create an instance of {@link ArrayOfSemp }
*
*/
public ArrayOfSemp createArrayOfSemp() {
return new ArrayOfSemp();
}
/**
* Create an instance of {@link GetChildrenResponse }
*
*/
public GetChildrenResponse createGetChildrenResponse() {
return new GetChildrenResponse();
}
/**
* Create an instance of {@link SearchByProductId }
*
*/
public SearchByProductId createSearchByProductId() {
return new SearchByProductId();
}
/**
* Create an instance of {@link GetParentResponse }
*
*/
public GetParentResponse createGetParentResponse() {
return new GetParentResponse();
}
/**
* Create an instance of {@link GetRootNode }
*
*/
public GetRootNode createGetRootNode() {
return new GetRootNode();
}
/**
* Create an instance of {@link GetRootNodeResponse }
*
*/
public GetRootNodeResponse createGetRootNodeResponse() {
return new GetRootNodeResponse();
}
/**
* Create an instance of {@link SearchByProductIdResponse }
*
*/
public SearchByProductIdResponse createSearchByProductIdResponse() {
return new SearchByProductIdResponse();
}
}
|
[
"fabrice.aupert@dedalus-group.com"
] |
fabrice.aupert@dedalus-group.com
|
4b07be0ec6c8bc0846caff8072fd380d84ee3f8b
|
c173832fd576d45c875063a1a480672fbd59ca04
|
/seguridad/localgismezcla/src/com/geopista/server/database/validacion/beans/V_casa_con_uso_bean.java
|
646d0d50ee1ff4e115d7a95e3046c5f7aa962d1a
|
[] |
no_license
|
jormaral/allocalgis
|
1308616b0f3ac8aa68fb0820a7dfa89d5a64d0e6
|
bd5b454b9c2e8ee24f70017ae597a32301364a54
|
refs/heads/master
| 2021-01-16T18:08:36.542315
| 2016-04-12T11:43:18
| 2016-04-12T11:43:18
| 50,914,723
| 0
| 0
| null | 2016-02-02T11:04:27
| 2016-02-02T11:04:27
| null |
UTF-8
|
Java
| false
| false
| 1,390
|
java
|
package com.geopista.server.database.validacion.beans;
public class V_casa_con_uso_bean {
String clave="-";
String provincia="-";
String municipio="-";
String entidad="-";
String poblamient="-";
String orden_casa="-";
String uso="-";
int s_cubi;
public String getClave() {
return clave;
}
public void setClave(String clave) {
this.clave = clave;
}
public String getProvincia() {
return provincia;
}
public void setProvincia(String provincia) {
this.provincia = provincia;
}
public String getMunicipio() {
return municipio;
}
public void setMunicipio(String municipio) {
this.municipio = municipio;
}
public String getEntidad() {
return entidad;
}
public void setEntidad(String entidad) {
this.entidad = entidad;
}
public String getPoblamient() {
return poblamient;
}
public void setPoblamient(String poblamient) {
this.poblamient = poblamient;
}
public String getOrden_casa() {
return orden_casa;
}
public void setOrden_casa(String orden_casa) {
this.orden_casa = orden_casa;
}
public String getUso() {
return uso;
}
public void setUso(String uso) {
this.uso = uso;
}
public int getS_cubi() {
return s_cubi;
}
public void setS_cubi(int s_cubi) {
this.s_cubi = s_cubi;
}
}
|
[
"jorge.martin@cenatic.es"
] |
jorge.martin@cenatic.es
|
5cca9f83a34a644937e50335da43a4ed6cc39084
|
37fe7efb0f3f6e266da113a66a8114da3fac88f0
|
/Ver.2/2.00/source/JavaModel/web/tbm42_study_cdisc_domain.java
|
590c19ce1fe29c2d39a1ecbcf562c18c33a186dc
|
[
"Apache-2.0",
"BSD-2-Clause"
] |
permissive
|
epoc-software-open/SEDC
|
e07d62248e8c2ed020973edd251e79b140b9fb3d
|
6327165f63e448af1b0460f7071d62b5c12c9f09
|
refs/heads/master
| 2021-08-11T05:56:09.625380
| 2021-08-10T03:41:45
| 2021-08-10T03:41:45
| 96,168,280
| 2
| 1
|
BSD-2-Clause
| 2021-08-10T03:41:45
| 2017-07-04T02:42:21
|
Java
|
SHIFT_JIS
|
Java
| false
| false
| 1,100
|
java
|
/*
File: TBM42_STUDY_CDISC_DOMAIN
Description: 試験別CDISCドメインマスタ
Author: GeneXus Java Generator version 10_3_3-92797
Generated on: July 3, 2017 17:16:34.72
Program type: Callable routine
Main DBMS: mysql
*/
import com.genexus.*;
import com.genexus.db.*;
import com.genexus.distributed.*;
import com.genexus.webpanels.*;
import java.sql.*;
import com.genexus.search.*;
@javax.servlet.annotation.WebServlet(value ="/servlet/tbm42_study_cdisc_domain")
public final class tbm42_study_cdisc_domain extends GXWebObjectStub
{
protected void doExecute( com.genexus.internet.HttpContext context ) throws Exception
{
new tbm42_study_cdisc_domain_impl(context).doExecute();
}
public String getServletInfo( )
{
return "試験別CDISCドメインマスタ";
}
protected boolean IntegratedSecurityEnabled( )
{
return false;
}
protected int IntegratedSecurityLevel( )
{
return 0;
}
protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}
}
|
[
"t-shimotori@weing.co.jp"
] |
t-shimotori@weing.co.jp
|
c571d80e67557132c0f52a07948caf39735046bc
|
69616ad6607651c32dfc0df3235af25062df066a
|
/src/main/java/com/tlkzzz/jeesite/modules/ck/dao/CYkinfoDao.java
|
b0adcd8bc7537841205a36fc6fe98bd100287b03
|
[
"Apache-2.0"
] |
permissive
|
magicgis/xpjfx
|
6ca07c61474caab19271e53091885b81223db5db
|
6c6c6e6e6030272f3008a582796c88f8229a4a85
|
refs/heads/master
| 2021-01-19T05:34:20.680849
| 2017-04-06T12:41:31
| 2017-04-06T12:41:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 476
|
java
|
/**
* Copyright © 2012-2016 <a href="https://github.com/tlkzzz/jeesite">JeeSite</a> All rights reserved.
*/
package com.tlkzzz.jeesite.modules.ck.dao;
import com.tlkzzz.jeesite.common.persistence.CrudDao;
import com.tlkzzz.jeesite.common.persistence.annotation.MyBatisDao;
import com.tlkzzz.jeesite.modules.ck.entity.CYkinfo;
/**
* 移库记录DAO接口
* @author xrc
* @version 2017-03-15
*/
@MyBatisDao
public interface CYkinfoDao extends CrudDao<CYkinfo> {
}
|
[
"tlk@qq.com"
] |
tlk@qq.com
|
09106b3f326c7086b86a1aa9eaf01605ce1aa56e
|
2cdee741ee724e4ba566f4c88cd38c03b00e83fc
|
/src/main/java/ng/com/bitsystems/mis/services/consultations/DiseaseDirectoryService.java
|
c709247082b51d7759eea15eca8210eb684f85be
|
[] |
no_license
|
slowcodes/bitsystem-spring-mis
|
2d6acd965c3163a1b995e7a1b22805ae29eaaa76
|
b68adb3e5c1faa23ae3df012019d00b1a7faa659
|
refs/heads/master
| 2023-09-02T03:55:46.316388
| 2021-02-06T01:23:45
| 2021-02-06T01:23:45
| 282,743,674
| 1
| 1
| null | 2020-10-15T09:30:29
| 2020-07-26T22:27:22
|
HTML
|
UTF-8
|
Java
| false
| false
| 263
|
java
|
package ng.com.bitsystems.mis.services.consultations;
import ng.com.bitsystems.mis.models.consultation.DiseaseDirectory;
import ng.com.bitsystems.mis.services.CrudService;
public interface DiseaseDirectoryService extends CrudService<DiseaseDirectory, Long> {
}
|
[
"charlesezenna@gmail.com"
] |
charlesezenna@gmail.com
|
9b20e0fcf16cdfe901cff33365060f93a41e22c0
|
355edbedadeb6aa65ff5aa6eaa353dfd8fffcb1f
|
/app/src/test/java/com/smlnskgmail/jaman/hashchecker/history/HistoryItemTest.java
|
53ffac476d4d30698e44701e09b88ca0d58a6d9b
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
servicios-internacionales/hash-checker
|
551dfea85bbccc98efc36b766cfa0ea2413a2d00
|
c50a8bb297da5d67c8c76242904c5776b51a3524
|
refs/heads/master
| 2023-02-13T21:33:34.098703
| 2021-01-06T04:54:36
| 2021-01-06T04:54:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,026
|
java
|
package com.smlnskgmail.jaman.hashchecker.history;
import com.smlnskgmail.jaman.hashchecker.entities.BaseEntityTest;
import com.smlnskgmail.jaman.hashchecker.logic.hashcalculator.HashType;
import com.smlnskgmail.jaman.hashchecker.logic.history.HistoryItem;
import java.util.Date;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
public class HistoryItemTest extends BaseEntityTest {
private Date generationDate = new Date();
private HashType hashType = HashType.MD5;
private boolean isFile = true;
private String objectValue = "./Downloads/task_manager.apk";
private String hashValue = "9gkfnb7nvklckofdamvkdlsop16789dm";
private HistoryItem historyItem = new HistoryItem(
generationDate,
hashType,
isFile,
objectValue,
hashValue
);
@Override
public void validateFields() {
assertEquals(
generationDate,
historyItem.getGenerationDate()
);
assertEquals(
hashType,
historyItem.getHashType()
);
assertEquals(
isFile,
historyItem.isFile()
);
assertEquals(
objectValue,
historyItem.getObjectValue()
);
assertEquals(
hashValue,
historyItem.getHashValue()
);
}
@Override
public void validateEquals() {
assertEquals(
historyItem,
historyItem
);
assertEquals(
new HistoryItem(
generationDate,
hashType,
isFile,
objectValue,
hashValue
),
historyItem
);
assertNotEquals(
new HistoryItem(
generationDate,
HashType.SHA_1,
isFile,
objectValue,
hashValue
),
historyItem
);
assertNotEquals(
new HistoryItem(
generationDate,
hashType,
false,
objectValue,
hashValue
),
historyItem
);
assertNotEquals(
new HistoryItem(
generationDate,
hashType,
isFile,
"",
hashValue
),
historyItem
);
assertNotEquals(
new HistoryItem(
generationDate,
hashType,
isFile,
objectValue,
""
),
historyItem
);
assertNotEquals(
historyItem,
null
);
assertNotEquals(
historyItem,
"String"
);
}
@Override
public void validateHashCode() {
assertEquals(
historyItem.hashCode(),
historyItem.hashCode()
);
assertEquals(
new HistoryItem(
generationDate,
hashType,
isFile,
objectValue,
hashValue
).hashCode(),
historyItem.hashCode()
);
assertNotEquals(
new HistoryItem(
generationDate,
HashType.SHA_1,
isFile,
objectValue,
hashValue
).hashCode(),
historyItem.hashCode()
);
}
}
|
[
"jaman.smlnsk@gmail.com"
] |
jaman.smlnsk@gmail.com
|
ce9b17df1527ea948736b69eb6d81ff1ae999c94
|
853a3207c23d0d0ce85ee78255a8b60613b53331
|
/FragmentList/app/src/main/java/android/huyhuynh/fragmentlist/MainActivity.java
|
8eddc41b4db9bc8e84bfcc3f44e78c56e5257429
|
[] |
no_license
|
huyhuynh1905/Android-Tutorial
|
068409027f90ebe101494f4366cbe470d2e9446a
|
838d15fc27085561f5cb80190a6dbb702575d8b6
|
refs/heads/master
| 2022-12-12T21:28:14.682411
| 2019-09-16T15:31:50
| 2019-09-16T15:31:50
| 195,052,365
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 755
|
java
|
package android.huyhuynh.fragmentlist;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
/*FragmentManager fragmentManager = getSupportFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
FragmentList fragmentList = new FragmentList();
fragmentTransaction.add(R.id.fragment,fragmentList);
fragmentTransaction.commit();*/
}
}
|
[
"34849208+huyhuynh1905@users.noreply.github.com"
] |
34849208+huyhuynh1905@users.noreply.github.com
|
6f3f196a27f8d26620fe87990e26311bf0a1c70d
|
5cad59b093f6be43057e15754ad0edd101ed4f67
|
/src/Interview/Google/Array/ValidParentheses.java
|
07cf6f57ea57438e634de7fc6dfa351c1e86b507
|
[] |
no_license
|
GeeKoders/Algorithm
|
fe7e58687bbbca307e027558f6a1b4907ee338db
|
fe5c2fca66017b0a278ee12eaf8107c79aef2a14
|
refs/heads/master
| 2023-04-01T16:31:50.820152
| 2021-04-21T23:55:31
| 2021-04-21T23:55:31
| 276,102,037
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,008
|
java
|
package Interview.Google.Array;
import java.util.HashMap;
import java.util.Map;
import java.util.Stack;
public class ValidParentheses {
/*
* 20. Valid Parentheses (Easy)
*
* https://leetcode.com/problems/valid-parentheses/
*
* solution: https://leetcode.com/problems/valid-parentheses/solution/
*
* Your runtime beats 98.67 % of java submissions.
* Your memory usage beats 75.10 % of java submissions.
*
* Time complexity: O(N)
* Space complexity: O(N)
*
*
*/
public boolean isValid(String s) {
Map<Character, Character> map = new HashMap<>();
map.put(')', '(');
map.put(']', '[');
map.put('}', '{');
Stack<Character> stack = new Stack<>();
for (int i = 0; i < s.length(); i++) {
char element = s.charAt(i);
if (map.containsKey(element)) {
char popElement = stack.empty() ? '#' : stack.pop();
if (map.get(element) != popElement) {
return false;
}
} else {
stack.push(element);
}
}
return stack.empty();
}
}
|
[
"iloveitone@gmail.com"
] |
iloveitone@gmail.com
|
a5da1cfa4a1928aa1193d232bb0640e1af003e86
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project44/src/test/java/org/gradle/test/performance44_2/Test44_188.java
|
90cd560ea2528b6ff4274042cddbc089e56b6c50
|
[] |
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.performance44_2;
import static org.junit.Assert.*;
public class Test44_188 {
private final Production44_188 production = new Production44_188("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
4d098dc2b2c5a8d0b3ba28bf0e5e083f8a926030
|
82cea37d7947409dbe5358bbf99374835e3c284e
|
/src/main/java/net/finmath/time/daycount/DayCountConventionFactory.java
|
c3cc4c6701cc3465b104782768d97eb1a55bab77
|
[
"Apache-2.0",
"LicenseRef-scancode-mit-old-style",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.0-or-later"
] |
permissive
|
Diffblue-benchmarks/finmath-lib
|
813f6a77bed031169e7905beca159160b7993daa
|
6833bc313240c2b1e1ff0d46e3879eea8174e262
|
refs/heads/master
| 2020-04-22T11:15:30.345998
| 2019-02-10T21:27:29
| 2019-02-10T21:27:29
| 170,333,282
| 0
| 0
|
Apache-2.0
| 2019-02-19T12:02:53
| 2019-02-12T14:36:09
|
Java
|
UTF-8
|
Java
| false
| false
| 3,035
|
java
|
/*
* (c) Copyright Christian P. Fries, Germany. Contact: email@christian-fries.de.
*
* Created on 20.09.2013
*/
package net.finmath.time.daycount;
import java.time.LocalDate;
/**
* Factory methods for day count conventions.
*
* @author Christian Fries
* @version 1.0
*/
public class DayCountConventionFactory {
/**
* Factory methods for day count conventions.
*/
private DayCountConventionFactory() {
}
/**
* Create a day count convention base on a convention string.
* The follwoing convention strings are supported
* <ul>
* <li>act/act isda</li>
* <li>30/360</li>
* <li>30E/360</li>
* <li>30U/360</li>
* <li>act/360</li>
* <li>act/365</li>
* <li>act/act yearfrac</li>
* </ul>
*
* @param convention A convention string.
* @return A day count convention object.
*/
public static DayCountConvention getDayCountConvention(String convention) {
if(convention.compareToIgnoreCase("act/act isda") == 0) {
return new DayCountConvention_ACT_ACT_ISDA();
}
else if(convention.compareToIgnoreCase("30/360") == 0) {
return new DayCountConvention_30E_360_ISDA();
}
else if(convention.compareToIgnoreCase("30e/360") == 0) {
return new DayCountConvention_30E_360();
}
else if(convention.compareToIgnoreCase("30u/360") == 0) {
return new DayCountConvention_30U_360();
}
else if(convention.compareToIgnoreCase("act/360") == 0) {
return new DayCountConvention_ACT_360();
}
else if(convention.compareToIgnoreCase("act/365") == 0) {
return new DayCountConvention_ACT_365();
}
else if(convention.compareToIgnoreCase("act/act yearfrac") == 0) {
return new DayCountConvention_ACT_ACT_YEARFRAC();
}
throw new IllegalArgumentException("Unknow day count convention: " + convention);
}
/**
* Return the number of days between startDate and endDate given the
* specific daycount convention.
*
* @param startDate The start date given as a {@link java.time.LocalDate}.
* @param endDate The end date given as a {@link java.time.LocalDate}.
* @param convention A convention string.
* @return The number of days within the given period.
*/
public static double getDaycount(LocalDate startDate, LocalDate endDate, String convention) {
DayCountConvention daycountConvention = getDayCountConvention(convention);
return daycountConvention.getDaycount(startDate, endDate);
}
/**
* Return the daycount fraction corresponding to the period from startDate to endDate given the
* specific daycount convention.
*
* @param startDate The start date given as a {@link java.time.LocalDate}.
* @param endDate The end date given as a {@link java.time.LocalDate}.
* @param convention A convention string.
* @return The daycount fraction corresponding to the given period.
*/
public static double getDaycountFraction(LocalDate startDate, LocalDate endDate, String convention) {
DayCountConvention daycountConvention = getDayCountConvention(convention);
return daycountConvention.getDaycountFraction(startDate, endDate);
}
}
|
[
"email@christian-fries.de"
] |
email@christian-fries.de
|
3f950652f8e56cd68a303c3fb38fa25fee21d434
|
680b891b4c724b0e84a64fee47e5901ed60fc44b
|
/src/main/java/com/casic/accessControl/event/domain/Event.java
|
fc22f528cde4df8a7abd2a365ac99d20c3d77622
|
[] |
no_license
|
predatorZhang/EMS
|
e662e9114dafcae7ae5368bb683b60e0606df476
|
e44042197a7c2e4e2e8723237d269ff06e01ecd2
|
refs/heads/master
| 2021-01-01T06:06:53.556966
| 2017-07-16T03:34:10
| 2017-07-16T03:34:10
| 97,357,624
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,924
|
java
|
package com.casic.accessControl.event.domain;
import javax.persistence.*;
import java.util.Date;
/**
* Created by lenovo on 2016/8/11.
*/
@Entity
@Table(name = "event")
public class Event {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
private Long id;
@Column(name="task_id")
private Long taskId;
@Column(name="description")
private String description;
@Column(name="create_time")
private Date createTime;
@Column(name="image_name")
private String imageName;
@Column(name="latitude")
private Double latitude;
@Column(name="longitude")
private Double longitude;
@Column(name="status")
private Integer status;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getTaskId() {
return taskId;
}
public void setTaskId(Long taskId) {
this.taskId = taskId;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getImageName() {
return imageName;
}
public void setImageName(String imageName) {
this.imageName = imageName;
}
public Double getLatitude() {
return latitude;
}
public void setLatitude(Double latitude) {
this.latitude = latitude;
}
public Double getLongitude() {
return longitude;
}
public void setLongitude(Double longitude) {
this.longitude = longitude;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
}
|
[
"zhangfan1212@126.com"
] |
zhangfan1212@126.com
|
bc092af9c1c2ff4bd1f0e529985ce87c8bc16327
|
4c78d9c605cc36c74224f6b962594290ded10b1c
|
/src/main/java/com/niit/shoppingcart/DAO/ProductDAOImpl.java
|
006db237b9c2a87a556ada364b3e65e884d1fe2e
|
[] |
no_license
|
Kavyachanda/admin-module
|
35227da51d829720e92857acb0756e5131a23059
|
c6cb190e4817a82a00f80987f67a81669da169c8
|
refs/heads/master
| 2021-01-12T17:47:08.207075
| 2016-09-27T19:30:19
| 2016-09-27T19:30:19
| 69,391,250
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,888
|
java
|
/*package com.niit.shoppingcart.DAO;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import com.niit.shoppingcart.model.Product;
@Repository
public class ProductDAOImpl implements ProductDAO{
@Autowired
private SessionFactory sessionFactory;
public ProductDAOImpl(SessionFactory sessionFactory) {
this.sessionFactory = sessionFactory;
}
@Transactional
public boolean saveOrUpdate(Product product){
try {
sessionFactory.getCurrentSession().saveOrUpdate(product);
return true;
} catch (Exception e) {
e.printStackTrace();
return false;
}
}
@Transactional
public boolean delete(Product product)
{
try {
sessionFactory.getCurrentSession().delete(product);
return true;
}
catch (Exception e){
e.printStackTrace();
return false;
}
}
@Transactional
@SuppressWarnings({ "rawtypes", "deprecation" })
public Product get(int id) {
String hql = "from"+" Product"+" where id=" +id;
Query query = sessionFactory.getCurrentSession().createQuery(hql);
@SuppressWarnings("unchecked")
List<Product> listProduct = (List<Product>) query.list();
if (listProduct != null && !listProduct.isEmpty()) {
return listProduct.get(0);
}
return null;
}
@SuppressWarnings("deprecation")
@Transactional
public List<Product> list(){
@SuppressWarnings("unchecked")
List<Product> listProduct = (List<Product>)
sessionFactory.getCurrentSession()
.createCriteria(Product.class)
.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY).list();
return listProduct;
}
}
*/
|
[
"DELL@DELL-PC"
] |
DELL@DELL-PC
|
59356fe683a36eeddae1bc27b566800f4b33ad82
|
7bd3af8d387a5227c5d7c26d2892097d9fbdfc02
|
/sources/com/google/android/gms/internal/zzbfd.java
|
d540aaa212c778af151f7e43e7cfdd32fee58ccf
|
[] |
no_license
|
Sanjida-urme/Bangladesh_Stock_Exchang
|
445919408454db50358d1b8513b4847a7ec633ac
|
bd293ebcf6a9b6e7abe2515005db4c60a94bda2a
|
refs/heads/master
| 2020-05-18T14:02:30.475641
| 2019-05-01T17:59:34
| 2019-05-01T17:59:34
| 184,456,836
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,489
|
java
|
package com.google.android.gms.internal;
import android.annotation.SuppressLint;
import android.support.annotation.Nullable;
import android.util.Log;
import com.google.android.gms.common.internal.zzal;
import java.util.Locale;
public final class zzbfd {
private final String mTag;
private final int zzdsq;
private final String zzfyp;
private final zzal zzfzn;
private zzbfd(String str, String str2) {
this.zzfyp = str2;
this.mTag = str;
this.zzfzn = new zzal(str);
this.zzdsq = getLogLevel();
}
public zzbfd(String str, String... strArr) {
this(str, zzc(strArr));
}
private final String format(String str, @Nullable Object... objArr) {
if (objArr != null && objArr.length > 0) {
str = String.format(Locale.US, str, objArr);
}
return this.zzfyp.concat(str);
}
private final int getLogLevel() {
int i = 2;
while (7 >= i && !Log.isLoggable(this.mTag, i)) {
i++;
}
return i;
}
private static String zzc(String... strArr) {
if (strArr.length == 0) {
return "";
}
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append('[');
for (String str : strArr) {
if (stringBuilder.length() > 1) {
stringBuilder.append(",");
}
stringBuilder.append(str);
}
stringBuilder.append(']');
stringBuilder.append(' ');
return stringBuilder.toString();
}
public final void zza(String str, Throwable th, @Nullable Object... objArr) {
Log.wtf(this.mTag, format(str, objArr), th);
}
public final void zzb(String str, @Nullable Object... objArr) {
if (this.zzdsq <= 3) {
Log.d(this.mTag, format(str, objArr));
}
}
public final void zzc(String str, @Nullable Object... objArr) {
Log.e(this.mTag, format(str, objArr));
}
public final void zze(String str, @Nullable Object... objArr) {
Log.i(this.mTag, format(str, objArr));
}
public final void zze(Throwable th) {
Log.wtf(this.mTag, th);
}
public final void zzf(String str, @Nullable Object... objArr) {
Log.w(this.mTag, format(str, objArr));
}
@SuppressLint({"WtfWithoutException"})
public final void zzi(String str, @Nullable Object... objArr) {
Log.wtf(this.mTag, format(str, objArr));
}
}
|
[
"sanjida.liakat.cse@ulab.edu.bd"
] |
sanjida.liakat.cse@ulab.edu.bd
|
2f413cdb254281b052c5b52d0f851cd70b3581ec
|
e75be673baeeddee986ece49ef6e1c718a8e7a5d
|
/submissions/blizzard/Corpus/eclipse.jdt.ui/4625.java
|
343b2e366c4a7c29c201b26ee8915cbd39285b1c
|
[
"MIT"
] |
permissive
|
zhendong2050/fse18
|
edbea132be9122b57e272a20c20fae2bb949e63e
|
f0f016140489961c9e3c2e837577f698c2d4cf44
|
refs/heads/master
| 2020-12-21T11:31:53.800358
| 2018-07-23T10:10:57
| 2018-07-23T10:10:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,706
|
java
|
/*******************************************************************************
* Copyright (c) 2000, 2011 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.ui.filters;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerFilter;
import org.eclipse.jdt.core.IPackageFragmentRoot;
/**
* The LibraryFilter is a filter used to determine whether
* a Java internal library is shown
*/
public class ContainedLibraryFilter extends ViewerFilter {
@Override
public boolean select(Viewer viewer, Object parentElement, Object element) {
if (element instanceof IPackageFragmentRoot) {
IPackageFragmentRoot root = (IPackageFragmentRoot) element;
if (root.isArchive()) {
// don't filter out JARs contained in the project itself
IResource resource = root.getResource();
if (resource != null) {
IProject jarProject = resource.getProject();
IProject container = root.getJavaProject().getProject();
return !container.equals(jarProject);
}
}
}
return true;
}
}
|
[
"tim.menzies@gmail.com"
] |
tim.menzies@gmail.com
|
9c8d651480afdeef7f62ced372e82050ffe341c9
|
c697b14836a01be88e6bbf43ac648be83426ade0
|
/Algorithms/1001-2000/1508. Range Sum of Sorted Subarray Sums/Solution.java
|
d618e7d296867ff2606fe756497818bf5789df1d
|
[] |
no_license
|
jianyimiku/My-LeetCode-Solution
|
8b916d7ebbb89606597ec0657f16a8a9e88895b4
|
48058eaeec89dc3402b8a0bbc8396910116cdf7e
|
refs/heads/master
| 2023-07-17T17:50:11.718015
| 2021-09-05T06:27:06
| 2021-09-05T06:27:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 667
|
java
|
class Solution {
public int rangeSum(int[] nums, int n, int left, int right) {
final int MODULO = 1000000007;
int length = nums.length;
int sumsLength = length * (length + 1) / 2;
int[] sums = new int[sumsLength];
int index = 0;
for (int i = 0; i < length; i++) {
int sum = 0;
for (int j = i; j < length; j++) {
sum += nums[j];
sums[index++] = sum;
}
}
Arrays.sort(sums);
int rangeSum = 0;
for (int i = left - 1; i < right; i++)
rangeSum = (rangeSum + sums[i]) % MODULO;
return rangeSum;
}
}
|
[
"chenyi_storm@sina.com"
] |
chenyi_storm@sina.com
|
b5377b13ff38bc0484c8b1dc9f62c87d67164b9d
|
6b379e330f76defc144d2a223e744925e4e31718
|
/gydelegationadapter/src/main/java/com/gy/delegationadapter/AbsDelegationAdapter.java
|
40ea578794273d19c47ee4a59b3fbb024ceebdcb
|
[] |
no_license
|
newPersonKing/BottomNavigationView
|
c9cdb8adddf1b1bf4f8ee9222dd6bcf83d88b970
|
c9e80f8c6d3c98dd9ecf06e8b952463203144062
|
refs/heads/master
| 2020-03-21T22:31:54.641408
| 2018-06-29T09:50:47
| 2018-06-29T09:50:47
| 139,132,485
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,603
|
java
|
/*
* Copyright (c) 2018 Kevin zhou
*
* 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.gy.delegationadapter;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;
import adpterimpl.BaseViewHolder;
import adpterimpl.MyAdapter;
public abstract class AbsDelegationAdapter<VH extends RecyclerView.ViewHolder> extends RecyclerView.Adapter<VH> {
private OnItemClickListener mOnItemClickListener;
private OnItemLongClickListener mOnItemLongClickListener;
private OnItemChildClickListener mOnItemChildClickListener;
private OnItemChildLongClickListener mOnItemChildLongClickListener;
private AdapterDelegatesManager<VH> delegatesManager;
public AbsDelegationAdapter() {
this(new AdapterDelegatesManager());
}
public AbsDelegationAdapter(@NonNull AdapterDelegatesManager delegatesManager) {
if (delegatesManager == null) {
throw new NullPointerException("AdapterDelegatesManager is null.");
}
this.delegatesManager = delegatesManager;
}
/**
* Add an Adapter Delegate
*
* @param delegate 修改成必须强制输入tag
*/
// public void addDelegate(AdapterDelegate delegate) {
// addDelegate(delegate, delegate.getTag());
// }
/**
* Add an Adapter Delegate with tag, the role of tag is to distinguish Adapters with the
* same data type.
*
* @param delegate
* @param tag
*/
public void addDelegate(AdapterDelegate delegate, String tag) {
delegate.setTag(tag);
delegatesManager.addDelegate(delegate, tag);
}
public void setFallbackDelegate(AdapterDelegate delegate) {
delegatesManager.setFallbackDelegate(delegate);
}
@Override
public VH onCreateViewHolder(ViewGroup parent, int viewType) {
VH holder=delegatesManager.onCreateViewHolder(parent,viewType);
if (holder instanceof BaseViewHolder){
((BaseViewHolder) holder).setAdapter(this);
}
return holder;
}
@Override
public void onBindViewHolder(VH holder, int position) {
View itemview=holder.itemView;
bindViewClickListener(itemview,position);
delegatesManager.onBindViewHolder(holder, position, getItem(position));
}
@Override
public void onBindViewHolder(VH holder, int position, List<Object> payloads) {
onBindViewHolder(holder, position);
delegatesManager.onBindViewHolder(holder, position, payloads, getItem(position));
}
@Override
public int getItemViewType(int position) {
return delegatesManager.getItemViewType(getItem(position), position);
}
@Override
public void onViewRecycled(VH holder) {
delegatesManager.onViewRecycled(holder);
}
@Override
public boolean onFailedToRecycleView(VH holder) {
return delegatesManager.onFailedToRecycleView(holder);
}
@Override
public void onViewAttachedToWindow(VH holder) {
delegatesManager.onViewAttachedToWindow(holder);
}
@Override
public void onViewDetachedFromWindow(VH holder) {
delegatesManager.onViewDetachedFromWindow(holder);
}
protected abstract Object getItem(int position);
public interface OnItemChildClickListener {
void onItemChildClick(MyAdapter adapter, View view, int position);
}
public interface OnItemChildLongClickListener {
boolean onItemChildLongClick(MyAdapter adapter, View view, int position);
}
public interface OnItemLongClickListener {
boolean onItemLongClick(MyAdapter adapter, View view, int position);
}
public interface OnItemClickListener {
void onItemClick(MyAdapter adapter, View view, int position);
}
public void setOnItemClickListener(@Nullable OnItemClickListener listener) {
mOnItemClickListener = listener;
}
public void setOnItemChildClickListener(OnItemChildClickListener listener) {
mOnItemChildClickListener = listener;
}
public void setOnItemLongClickListener(OnItemLongClickListener listener) {
mOnItemLongClickListener = listener;
}
public void setOnItemChildLongClickListener(OnItemChildLongClickListener listener) {
mOnItemChildLongClickListener = listener;
}
public final OnItemLongClickListener getOnItemLongClickListener() {
return mOnItemLongClickListener;
}
public final OnItemClickListener getOnItemClickListener() {
return mOnItemClickListener;
}
@Nullable
public final OnItemChildClickListener getOnItemChildClickListener() {
return mOnItemChildClickListener;
}
@Nullable
public final OnItemChildLongClickListener getOnItemChildLongClickListener() {
return mOnItemChildLongClickListener;
}
public abstract void bindViewClickListener(View itemView,int positon) ;
}
|
[
"guoyong@emcc.net.com"
] |
guoyong@emcc.net.com
|
55ef453bfb0fe33e973384a4dc916a34db2b5c6a
|
5afc1e039d0c7e0e98216fa265829ce2168100fd
|
/his-mobile/src/main/java/cn/honry/mobile/personMenu/dao/PersonMenuDAO.java
|
c46a7dc0f2836a5eceecd7d30cee7687e1acb4a7
|
[] |
no_license
|
konglinghai123/his
|
66dc0c1ecbde6427e70b8c1087cddf60f670090d
|
3dc3eb064819cb36ce4185f086b25828bb4bcc67
|
refs/heads/master
| 2022-01-02T17:05:27.239076
| 2018-03-02T04:16:41
| 2018-03-02T04:16:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,774
|
java
|
package cn.honry.mobile.personMenu.dao;
import java.util.List;
import cn.honry.base.bean.model.SysUserMenuFunjuris;
import cn.honry.base.dao.EntityDao;
import cn.honry.inner.system.menu.vo.ParentMenuVo;
import cn.honry.mobile.personMenu.vo.MenuVo;
import cn.honry.mobile.personMenu.vo.UserVo;
/**
*
* @className:UserMenuFunJurisDAO
* @Description: 用户栏目功能权限管理(移动端)
* @Author:dutianliang
* @CreateDate:2017-7-03 上午11:56:31
* @Modifier:dutianliang
* @ModifyDate:2017-7-03 上午11:56:31
* @ModifyRmk:
* @version 1.0
*
*/
@SuppressWarnings({"all"})
public interface PersonMenuDAO extends EntityDao<SysUserMenuFunjuris>{
/**
*
* <p>用户分页查询查询条数</p>
* @Author: dutianliang
* @CreateDate: 2017年7月10日 下午4:22:30
* @Modifier: dutianliang
* @ModifyDate: 2017年7月10日 下午4:22:30
* @ModifyRmk:
* @version: V1.0
* @param q 查询条件
* @return: int 总条数
*
*/
int getUserTotal(String q);
/**
*
* <p>用户分页查询查询当前页数据</p>
* @Author: dutianliang
* @CreateDate: 2017年7月10日 下午4:22:33
* @Modifier: dutianliang
* @ModifyDate: 2017年7月10日 下午4:22:33
* @ModifyRmk:
* @version: V1.0
* @param page
* @param rows
* @param q 查询条件
* @return: List<UserVo> 当前页数据
*
*/
List<UserVo> getUserRows(String page, String rows, String q);
/**
*
* <p>查询栏目下拉框(只有别名和名称两个字段,并且都是一级栏目)</p>
* @Author: dutianliang
* @CreateDate: 2017年7月10日 下午5:36:27
* @Modifier: dutianliang
* @ModifyDate: 2017年7月10日 下午5:36:27
* @ModifyRmk:
* @version: V1.0
* @return: List<ParentMenuVo> 栏目下拉框数据
*
*/
List<ParentMenuVo> queryMenuCombo();
/**
*
* <p>查询栏目列表信息</p>
* @Author: dutianliang
* @CreateDate: 2017年7月10日 下午5:54:43
* @Modifier: dutianliang
* @ModifyDate: 2017年7月10日 下午5:54:43
* @ModifyRmk:
* @version: V1.0
* @param parentId 父级id
* @param userAccount 用户账号
*
*/
List<MenuVo> queryMenuList(String parentId, String userAccount);
/**
*
* <p>通过栏目别名以及员工账号查询权限</p>
* @Author: dutianliang
* @CreateDate: 2017年7月15日 下午5:49:10
* @Modifier: dutianliang
* @ModifyDate: 2017年7月15日 下午5:49:10
* @ModifyRmk:
* @version: V1.0
* @param menuAlias 栏目别名
* @param userAcc 员工账号
* @return: SysUserMenuFunjuris 权限
*
*/
SysUserMenuFunjuris getByMenuIdUserId(String menuAlias, String userAcc);
}
|
[
"user3@163.com"
] |
user3@163.com
|
cf800570bc2e0d56c2be5e194d4cd3bb7d83e7c5
|
8922e51e7b544b069ff163496780aa8b37ad4f8a
|
/xml/src/java/org/apache/hivemind/conditional/Lexer.java
|
045f9c382fc7cf629d2fb57eab9faec71dac957d
|
[
"Apache-2.0"
] |
permissive
|
rsassi/hivemind2
|
e44cd3b7634bf15180c68c20a3a4f6fa51c21dd0
|
2ab77f62bf2ecbea4e3e03f6bde525a90e3f1a08
|
refs/heads/master
| 2023-06-28T09:19:39.745800
| 2021-07-25T03:45:03
| 2021-07-25T03:45:03
| 389,251,042
| 0
| 0
| null | 2021-07-25T03:45:04
| 2021-07-25T03:26:24
|
Java
|
UTF-8
|
Java
| false
| false
| 3,626
|
java
|
// Copyright 2004, 2005 The Apache Software Foundation
//
// 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.apache.hivemind.conditional;
import org.apache.hivemind.util.Defense;
/**
* Parses a string into a series of {@link org.apache.hivemind.conditional.Token}s.
*
* @author Howard M. Lewis Ship
* @since 1.1
*/
class Lexer
{
private char[] _input;
private int _cursor = 0;
private static final Token OPAREN = new Token(TokenType.OPAREN);
private static final Token CPAREN = new Token(TokenType.CPAREN);
private static final Token AND = new Token(TokenType.AND);
private static final Token OR = new Token(TokenType.OR);
private static final Token NOT = new Token(TokenType.NOT);
private static final Token PROPERTY = new Token(TokenType.PROPERTY);
private static final Token CLASS = new Token(TokenType.CLASS);
Lexer(String input)
{
Defense.notNull(input, "input");
_input = input.toCharArray();
}
/**
* Returns the next token from the input, or null when all tokens have been recognized.
*/
Token next()
{
while (_cursor < _input.length)
{
char ch = _input[_cursor];
if (ch == ')')
{
_cursor++;
return CPAREN;
}
if (ch == '(')
{
_cursor++;
return OPAREN;
}
if (Character.isWhitespace(ch))
{
_cursor++;
continue;
}
if (isSymbolChar(ch))
return readSymbol();
throw new RuntimeException(ConditionalMessages.unexpectedCharacter(_cursor, _input));
}
return null;
}
/**
* This is somewhat limited; a complete regexp would only allow dots within the text, would not
* allow consecutive dots, and would require that the string start with letter or underscore.
*/
private boolean isSymbolChar(char ch)
{
return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9')
|| (ch == '-') || (ch == '.') || (ch == '_');
}
/**
* Reads the next symbol at the cursor position, leaving the cursor on the character after the
* symbol. Also recognizes keywords.
*/
private Token readSymbol()
{
int start = _cursor;
while (true)
{
_cursor++;
if (_cursor >= _input.length)
break;
if (!isSymbolChar(_input[_cursor]))
break;
}
String symbol = new String(_input, start, _cursor - start);
if (symbol.equalsIgnoreCase("and"))
return AND;
if (symbol.equalsIgnoreCase("or"))
return OR;
if (symbol.equalsIgnoreCase("not"))
return NOT;
if (symbol.equalsIgnoreCase("property"))
return PROPERTY;
if (symbol.equalsIgnoreCase("class"))
return CLASS;
return new Token(TokenType.SYMBOL, symbol);
}
}
|
[
"ahuegen@localhost"
] |
ahuegen@localhost
|
6e4ced8c180b2fd25bf1d47867ed549b081480bb
|
6e674b34fe9f906670ebbe3e1289709294048f03
|
/JazminDeployer/src/jazmin/deploy/view/machine/MachineDetailWindow.java
|
dada61afdfd0b4e71d88b4e97bc09bee21f4ff16
|
[] |
no_license
|
icecooly/JazminServer
|
56455725de9a134029df151a9823494d4bb0f551
|
56b8ca3ab08d29c68b55364361ba9939d350f9ab
|
refs/heads/master
| 2023-08-31T01:17:46.482612
| 2023-08-29T09:16:16
| 2023-08-29T09:16:16
| 54,451,494
| 6
| 7
| null | 2020-03-10T02:39:07
| 2016-03-22T06:39:40
|
Java
|
UTF-8
|
Java
| false
| false
| 1,772
|
java
|
/**
*
*/
package jazmin.deploy.view.machine;
import jazmin.deploy.domain.Machine;
import jazmin.deploy.ui.StaticBeanForm;
import com.vaadin.event.ShortcutAction.KeyCode;
import com.vaadin.server.Responsive;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Button;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
import com.vaadin.ui.themes.ValoTheme;
/**
* @author yama
* 6 Jan, 2015
*/
@SuppressWarnings("serial")
public class MachineDetailWindow extends Window{
//
public MachineDetailWindow(Machine machine) {
Responsive.makeResponsive(this);
setCaption(machine.id+" information");
setWidth("600px");
center();
setCloseShortcut(KeyCode.ESCAPE, null);
setResizable(true);
setClosable(true);
setHeight(90.0f, Unit.PERCENTAGE);
VerticalLayout content = new VerticalLayout();
content.setSizeFull();
setContent(content);
StaticBeanForm<Machine>beanForm=new StaticBeanForm<Machine>(
machine, 1,"sshPassword","rootSshPassword","vncPassword");
beanForm.setSizeFull();
content.addComponent(beanForm);
content.setExpandRatio(beanForm, 1f);
//
HorizontalLayout footer = new HorizontalLayout();
footer.addStyleName(ValoTheme.WINDOW_BOTTOM_TOOLBAR);
footer.setWidth(100.0f, Unit.PERCENTAGE);
Button ok = new Button("Close");
ok.addStyleName(ValoTheme.BUTTON_SMALL);
ok.addStyleName(ValoTheme.BUTTON_PRIMARY);
ok.addClickListener(e->close());
ok.focus();
footer.addComponent(ok);
footer.setComponentAlignment(ok, Alignment.TOP_RIGHT);
content.addComponent(footer);
}
}
|
[
"guooscar@gmail.com"
] |
guooscar@gmail.com
|
c551491904507e2b59f2fc88b033cdffe59fc243
|
33d2cb3de7eee7d47dc499a20037ae4f23d28fd0
|
/packages/apps/YG_CANBus/src/com/yecon/canbus/raise/mazda/MazdaACActivity.java
|
49d71a9ec6ad969b234caa65804087a0ea5043ed
|
[] |
no_license
|
lvxiaojia/yecon
|
0e139c9dddac12a71d55184bb10eaa658c3b906f
|
87658d255c405802d906be389353ef2b2e828d59
|
refs/heads/master
| 2020-05-18T05:31:19.781960
| 2018-06-07T05:11:17
| 2018-06-07T05:11:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,066
|
java
|
/**
* @Title: MazdaACActivity.java
* @Package com.yecon.canbus.raise.mazda
* @Description: TODO
* Copyright: Copyright (c) 2011
* Company:深圳市益光实业有限公司
*
* @author hzGuo
* @date 2016年4月15日 下午4:14:25
* @version V1.0
*/
package com.yecon.canbus.raise.mazda;
import com.yecon.canbus.R;
import com.yecon.canbus.ui.CanbusACActivity;
/**
* @ClassName: MazdaACActivity
* @Description: TODO
* @author hzGuo
* @date 2016年4月15日 下午4:14:25
*
*/
public class MazdaACActivity extends CanbusACActivity {
/**
* <p>Title: getCanbusUIConstruct</p>
* <p>Description: </p>
* @return
* @see com.yecon.canbus.ui.CANBusUI#getCanbusUIConstruct()
*/
@Override
public CanbusUIConstruct getCanbusUIConstruct() {
// TODO Auto-generated method stub
CanbusUIConstruct ac = new CanbusUIConstruct();
ac.mLayoutID = R.layout.canbus_ac_activity;
ac.mRelateCmd = new int[2];
ac.mRelateCmd[0] = RaiseMazdaParse.RAISE_MAZDA_DATACMD_AIR;
ac.mRelateCmd[1] = RaiseGC7Parse.RAISE_MAZDA_DATACMD_GC7AIR;
return ac;
}
}
|
[
"275129737@qq.com"
] |
275129737@qq.com
|
3c7ff50e3ce11b75142f4f10c2526deb7e6d2956
|
18ce5f96e391774c6d9e19d1bd4824f4e22690f1
|
/asynctcp/src/main/java/dev/squaremile/asynctcp/internal/serialization/sbe/ConnectionClosedEncoder.java
|
51331f9936254125ffc7daba9841cc9c6e2a9f24
|
[
"Apache-2.0"
] |
permissive
|
squaremiledev/asynctransport
|
bc5579c4ddf2bb7b4015b88056226e8a9e247c51
|
442148d2d69a972c405595e296e3459711e585d3
|
refs/heads/master
| 2023-06-22T03:59:42.755687
| 2023-06-13T21:08:40
| 2023-06-13T21:08:40
| 291,040,306
| 3
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,705
|
java
|
/* Generated SBE (Simple Binary Encoding) message codec */
package dev.squaremile.asynctcp.internal.serialization.sbe;
import org.agrona.MutableDirectBuffer;
import org.agrona.DirectBuffer;
@SuppressWarnings("all")
public class ConnectionClosedEncoder
{
public static final int BLOCK_LENGTH = 20;
public static final int TEMPLATE_ID = 5;
public static final int SCHEMA_ID = 1;
public static final int SCHEMA_VERSION = 0;
public static final java.nio.ByteOrder BYTE_ORDER = java.nio.ByteOrder.LITTLE_ENDIAN;
private final ConnectionClosedEncoder parentMessage = this;
private MutableDirectBuffer buffer;
protected int offset;
protected int limit;
public int sbeBlockLength()
{
return BLOCK_LENGTH;
}
public int sbeTemplateId()
{
return TEMPLATE_ID;
}
public int sbeSchemaId()
{
return SCHEMA_ID;
}
public int sbeSchemaVersion()
{
return SCHEMA_VERSION;
}
public String sbeSemanticType()
{
return "";
}
public MutableDirectBuffer buffer()
{
return buffer;
}
public int offset()
{
return offset;
}
public ConnectionClosedEncoder wrap(final MutableDirectBuffer buffer, final int offset)
{
if (buffer != this.buffer)
{
this.buffer = buffer;
}
this.offset = offset;
limit(offset + BLOCK_LENGTH);
return this;
}
public ConnectionClosedEncoder wrapAndApplyHeader(
final MutableDirectBuffer buffer, final int offset, final MessageHeaderEncoder headerEncoder)
{
headerEncoder
.wrap(buffer, offset)
.blockLength(BLOCK_LENGTH)
.templateId(TEMPLATE_ID)
.schemaId(SCHEMA_ID)
.version(SCHEMA_VERSION);
return wrap(buffer, offset + MessageHeaderEncoder.ENCODED_LENGTH);
}
public int encodedLength()
{
return limit - offset;
}
public int limit()
{
return limit;
}
public void limit(final int limit)
{
this.limit = limit;
}
public static int portId()
{
return 1;
}
public static int portSinceVersion()
{
return 0;
}
public static int portEncodingOffset()
{
return 0;
}
public static int portEncodingLength()
{
return 4;
}
public static String portMetaAttribute(final MetaAttribute metaAttribute)
{
switch (metaAttribute)
{
case EPOCH: return "";
case TIME_UNIT: return "";
case SEMANTIC_TYPE: return "";
case PRESENCE: return "required";
}
return "";
}
public static int portNullValue()
{
return -2147483648;
}
public static int portMinValue()
{
return -2147483647;
}
public static int portMaxValue()
{
return 2147483647;
}
public ConnectionClosedEncoder port(final int value)
{
buffer.putInt(offset + 0, value, java.nio.ByteOrder.LITTLE_ENDIAN);
return this;
}
public static int commandIdId()
{
return 2;
}
public static int commandIdSinceVersion()
{
return 0;
}
public static int commandIdEncodingOffset()
{
return 4;
}
public static int commandIdEncodingLength()
{
return 8;
}
public static String commandIdMetaAttribute(final MetaAttribute metaAttribute)
{
switch (metaAttribute)
{
case EPOCH: return "";
case TIME_UNIT: return "";
case SEMANTIC_TYPE: return "";
case PRESENCE: return "required";
}
return "";
}
public static long commandIdNullValue()
{
return -9223372036854775808L;
}
public static long commandIdMinValue()
{
return -9223372036854775807L;
}
public static long commandIdMaxValue()
{
return 9223372036854775807L;
}
public ConnectionClosedEncoder commandId(final long value)
{
buffer.putLong(offset + 4, value, java.nio.ByteOrder.LITTLE_ENDIAN);
return this;
}
public static int connectionIdId()
{
return 3;
}
public static int connectionIdSinceVersion()
{
return 0;
}
public static int connectionIdEncodingOffset()
{
return 12;
}
public static int connectionIdEncodingLength()
{
return 8;
}
public static String connectionIdMetaAttribute(final MetaAttribute metaAttribute)
{
switch (metaAttribute)
{
case EPOCH: return "";
case TIME_UNIT: return "";
case SEMANTIC_TYPE: return "";
case PRESENCE: return "required";
}
return "";
}
public static long connectionIdNullValue()
{
return -9223372036854775808L;
}
public static long connectionIdMinValue()
{
return -9223372036854775807L;
}
public static long connectionIdMaxValue()
{
return 9223372036854775807L;
}
public ConnectionClosedEncoder connectionId(final long value)
{
buffer.putLong(offset + 12, value, java.nio.ByteOrder.LITTLE_ENDIAN);
return this;
}
public String toString()
{
return appendTo(new StringBuilder(100)).toString();
}
public StringBuilder appendTo(final StringBuilder builder)
{
ConnectionClosedDecoder writer = new ConnectionClosedDecoder();
writer.wrap(buffer, offset, BLOCK_LENGTH, SCHEMA_VERSION);
return writer.appendTo(builder);
}
}
|
[
"contact@michaelszymczak.com"
] |
contact@michaelszymczak.com
|
16f121740d3359479e1e591d8d710d21330c3215
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/single-large-project/src/test/java/org/gradle/test/performancenull_295/Testnull_29401.java
|
a6947334e6ab83273bbe0914e0e86b960d4c5872
|
[] |
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
| 308
|
java
|
package org.gradle.test.performancenull_295;
import static org.junit.Assert.*;
public class Testnull_29401 {
private final Productionnull_29401 production = new Productionnull_29401("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
f1969a1ba0cbc3c6cd547ab83241070b832b52d0
|
a5d01febfd8d45a61f815b6f5ed447e25fad4959
|
/Source Code/5.27.0/sources/com/google/android/gms/internal/vision/zzab.java
|
15456559cf9e46dd74a0beba2b917245db9d8c1d
|
[] |
no_license
|
kkagill/Decompiler-IQ-Option
|
7fe5911f90ed2490687f5d216cb2940f07b57194
|
c2a9dbbe79a959aa1ab8bb7a89c735e8f9dbc5a6
|
refs/heads/master
| 2020-09-14T20:44:49.115289
| 2019-11-04T06:58:55
| 2019-11-04T06:58:55
| 223,236,327
| 1
| 0
| null | 2019-11-21T18:17:17
| 2019-11-21T18:17:16
| null |
UTF-8
|
Java
| false
| false
| 1,041
|
java
|
package com.google.android.gms.internal.vision;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.dynamic.IObjectWrapper;
public final class zzab extends zza implements zzaa {
zzab(IBinder iBinder) {
super(iBinder, "com.google.android.gms.vision.text.internal.client.INativeTextRecognizer");
}
public final zzae[] zza(IObjectWrapper iObjectWrapper, zzn zzn, zzag zzag) {
Parcel obtainAndWriteInterfaceToken = obtainAndWriteInterfaceToken();
zzc.zza(obtainAndWriteInterfaceToken, (IInterface) iObjectWrapper);
zzc.zza(obtainAndWriteInterfaceToken, (Parcelable) zzn);
zzc.zza(obtainAndWriteInterfaceToken, (Parcelable) zzag);
Parcel zza = zza(3, obtainAndWriteInterfaceToken);
zzae[] zzaeArr = (zzae[]) zza.createTypedArray(zzae.CREATOR);
zza.recycle();
return zzaeArr;
}
public final void zzs() {
zzb(2, obtainAndWriteInterfaceToken());
}
}
|
[
"yihsun1992@gmail.com"
] |
yihsun1992@gmail.com
|
fc1b2af5474afd4a976f05e9ff75abc256bff9b0
|
3a6b03115f89c52c0990048d653e2d66ff85feba
|
/java/util/InputMismatchException.java
|
d73d8d07115f9c50255f3d7f206edb891856e155
|
[] |
no_license
|
isabella232/android-sdk-sources-for-api-level-1
|
9159e92080649343e6e2be0da2b933fa9d3fea04
|
c77731af5068b85a350e768757d229cae00f8098
|
refs/heads/master
| 2023-03-18T05:07:06.633807
| 2015-06-13T13:35:17
| 2015-06-13T13:35:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 616
|
java
|
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: InputMismatchException.java
package java.util;
import java.io.Serializable;
// Referenced classes of package java.util:
// NoSuchElementException
public class InputMismatchException extends NoSuchElementException
implements Serializable
{
public InputMismatchException()
{
throw new RuntimeException("Stub!");
}
public InputMismatchException(String msg)
{
throw new RuntimeException("Stub!");
}
}
|
[
"root@ifeegoo.com"
] |
root@ifeegoo.com
|
e5fc8508c982ce5cbdea7c2e29d9825e09c25b1d
|
2b306dc014de7ba958ff599a56733a58329bcc2f
|
/my-boot-app-parent/my-boot-app-01/my-boot-app-01-db/my-boot-app-01-db-bill/src/main/java/org/myproject/app/db/bill/BillDbAutoConfiguration.java
|
f7cbf0a07dbb481163d5d2957d0cb32d51ffd4bd
|
[
"LicenseRef-scancode-mulanpsl-2.0-en",
"MulanPSL-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
yuan50697105/my-project-parent
|
9b9fadaca287d51c046149e3d04a58a5c120a763
|
84bc924a11f818cdcd35ce69cbe31f3d4c3712b4
|
refs/heads/master
| 2022-12-10T18:30:22.539725
| 2020-09-01T16:49:41
| 2020-09-01T16:49:41
| 274,936,439
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 447
|
java
|
package org.myproject.app.db.bill;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.ComponentScan;
/**
* @program: my-project-spring
* @description:
* @author: yuane
* @create: 2020-09-01 23:57
*/
@SpringBootConfiguration
@ComponentScan
@MapperScan(basePackages = "org.myproject.app.db.*.mapper")
public class BillDbAutoConfiguration {
}
|
[
"710575900@qq.com"
] |
710575900@qq.com
|
b086db2fafd358aa1967ce67764f121b7ba86139
|
280ca7e9bc0643e7aec53c2729fb0c65a4e77aef
|
/src/p02/lecture/A13TypeConverstion.java
|
ec0e6d8b9a73b94760c92b310ce78a562e2810ea
|
[] |
no_license
|
ParkSangPil/java20210325
|
0620701c603a847dd1a71f5272c7406d3fb6a439
|
2e0e42a1f4324fe8df7d7eed2e7a1532db8ca12d
|
refs/heads/master
| 2023-07-11T22:46:59.876381
| 2021-08-25T03:17:53
| 2021-08-25T03:17:53
| 351,269,453
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 688
|
java
|
package p02.lecture;
public class A13TypeConverstion {
public static void main(String[] args) {
// int : 4byte (32bit)
// float : 4byte (32bit)
// float 저장법
// 부호비트 1
// 지수비트 8 + A x 2^n
// 가수비트 23
// 0000 0000 0000 0000 0000 0000 0000 0000
// ---------------------------- 까지 A
// ---------- 까지 지수
// - 까지 부호
int intVar1 = 66977791;
float floatVar1 = intVar1;
System.out.println(floatVar1);
// double 저장법 (8byte)
// 부호비트 1
// 지수비트 11
// 가수비트 52
double doubleVar1 = intVar1;
System.out.println(doubleVar1);
}
}
|
[
"kevin01123@naver.com"
] |
kevin01123@naver.com
|
26db862a2db541ed16488cb8875f89619930478f
|
ba93c6bc277bc8faca6db7be593fe579598a7bfe
|
/Uzumzki-project/2018/eke/src/main/java/com/xiaoyi/ssm/service/impl/TownServiceImpl.java
|
6613e4efe1a54594f06432ab5347577789ed5623
|
[
"MIT"
] |
permissive
|
senghor-song/Naruto-Uzumaki
|
abbf101ae763aff33dcbae0eb035ed7ad288b9c1
|
24879ae0688efc7ff0ec22fbb9210158834df7e2
|
refs/heads/master
| 2023-05-11T07:51:55.254986
| 2023-05-05T03:24:57
| 2023-05-05T03:24:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 618
|
java
|
package com.xiaoyi.ssm.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xiaoyi.ssm.dao.TownMapper;
import com.xiaoyi.ssm.model.Town;
import com.xiaoyi.ssm.service.TownService;
/**
* @Description: 新盘业务逻辑层实现
* @author 宋高俊
* @date 2018年7月31日 下午4:04:54
*/
@Service
public class TownServiceImpl extends AbstractService<Town,String> implements TownService{
@Autowired
private TownMapper townMapper;
@Override
public void setBaseMapper() {
super.setBaseMapper(townMapper);
}
}
|
[
"15207108156@163.com"
] |
15207108156@163.com
|
8485b9ae7cf5b5abcc78fe0e496bae71d19f53df
|
2054895337b913b51fa8be9d2906f6c97923eda4
|
/src/main/java/org/hr_xml/_3/USHealthCoverageCodeType.java
|
fbc8581df21b16f68c5d60355d4b14bb689af541
|
[] |
no_license
|
jkomorek/hrxml
|
92e9fee42336a2b4b9e91fa7383584de452b8e79
|
4151d85f1a4e05132f4f1bda3d06b3e0705069f9
|
refs/heads/master
| 2021-01-23T03:04:51.415157
| 2014-02-28T05:51:52
| 2014-02-28T05:51:52
| 16,828,973
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,127
|
java
|
//
// 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: 2014.01.06 at 10:26:45 PM EST
//
package org.hr_xml._3;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* <p>Java class for USHealthCoverageCodeType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="USHealthCoverageCodeType">
* <simpleContent>
* <extension base="<http://www.hr-xml.org/3>USHealthCoverageCodeContentType">
* <attGroup ref="{http://www.openapplications.org/oagis/9}CodeListAttributeGroup"/>
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "USHealthCoverageCodeType", propOrder = {
"value"
})
public class USHealthCoverageCodeType {
@XmlValue
protected String value;
@XmlAttribute(name = "listID")
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
protected String listID;
@XmlAttribute(name = "listAgencyID")
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
protected String listAgencyID;
@XmlAttribute(name = "listAgencyName")
protected String listAgencyName;
@XmlAttribute(name = "listName")
protected String listName;
@XmlAttribute(name = "listVersionID")
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
protected String listVersionID;
@XmlAttribute(name = "name")
protected String name;
@XmlAttribute(name = "languageID")
protected String languageID;
@XmlAttribute(name = "listURI")
@XmlSchemaType(name = "anyURI")
protected String listURI;
@XmlAttribute(name = "listSchemeURI")
@XmlSchemaType(name = "anyURI")
protected String listSchemeURI;
/**
* A code that classifies the types of tier coverage. This is an HR-XML open list.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
/**
* Gets the value of the listID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getListID() {
return listID;
}
/**
* Sets the value of the listID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setListID(String value) {
this.listID = value;
}
/**
* Gets the value of the listAgencyID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getListAgencyID() {
return listAgencyID;
}
/**
* Sets the value of the listAgencyID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setListAgencyID(String value) {
this.listAgencyID = value;
}
/**
* Gets the value of the listAgencyName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getListAgencyName() {
return listAgencyName;
}
/**
* Sets the value of the listAgencyName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setListAgencyName(String value) {
this.listAgencyName = value;
}
/**
* Gets the value of the listName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getListName() {
return listName;
}
/**
* Sets the value of the listName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setListName(String value) {
this.listName = value;
}
/**
* Gets the value of the listVersionID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getListVersionID() {
return listVersionID;
}
/**
* Sets the value of the listVersionID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setListVersionID(String value) {
this.listVersionID = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the languageID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLanguageID() {
return languageID;
}
/**
* Sets the value of the languageID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLanguageID(String value) {
this.languageID = value;
}
/**
* Gets the value of the listURI property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getListURI() {
return listURI;
}
/**
* Sets the value of the listURI property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setListURI(String value) {
this.listURI = value;
}
/**
* Gets the value of the listSchemeURI property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getListSchemeURI() {
return listSchemeURI;
}
/**
* Sets the value of the listSchemeURI property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setListSchemeURI(String value) {
this.listSchemeURI = value;
}
}
|
[
"jonathan.komorek@gmail.com"
] |
jonathan.komorek@gmail.com
|
21624eca28111e3e635658b96c2e5a48f16b0583
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/neo4j--neo4j/9dd11032d0d8a8f16a9795ceabacfe067bebc0dd/before/BatchOperationService.java
|
17c1f09fe287f5eed140afe1a265d34d675ebb83
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003
| 2018-11-30T13:00:57
| 2018-11-30T13:00:57
| 87,353,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,820
|
java
|
/*
* Copyright (c) 2002-2016 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.server.rest.web;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.servlet.WriteListener;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.StreamingOutput;
import javax.ws.rs.core.UriInfo;
import org.eclipse.jetty.util.log.Log;
import org.eclipse.jetty.util.log.Logger;
import org.neo4j.server.rest.batch.BatchOperationResults;
import org.neo4j.server.rest.batch.NonStreamingBatchOperations;
import org.neo4j.server.rest.repr.OutputFormat;
import org.neo4j.server.rest.repr.RepresentationWriteHandler;
import org.neo4j.server.rest.repr.StreamingFormat;
import org.neo4j.server.web.HttpHeaderUtils;
import org.neo4j.server.web.WebServer;
@Path("/batch")
public class BatchOperationService {
private static final Logger LOGGER = Log.getLogger(BatchOperationService.class);
private final OutputFormat output;
private final WebServer webServer;
private RepresentationWriteHandler representationWriteHandler = RepresentationWriteHandler.DO_NOTHING;
public BatchOperationService( @Context WebServer webServer, @Context OutputFormat output )
{
this.output = output;
this.webServer = webServer;
}
public void setRepresentationWriteHandler( RepresentationWriteHandler representationWriteHandler )
{
this.representationWriteHandler = representationWriteHandler;
}
@POST
public Response performBatchOperations(@Context UriInfo uriInfo,
@Context HttpHeaders httpHeaders, @Context HttpServletRequest req, InputStream body)
{
if ( isStreaming( httpHeaders ) )
{
return batchProcessAndStream( uriInfo, httpHeaders, req, body );
}
return batchProcess( uriInfo, httpHeaders, req, body );
}
private Response batchProcessAndStream( final UriInfo uriInfo, final HttpHeaders httpHeaders,
final HttpServletRequest req, final InputStream body )
{
try
{
final StreamingOutput stream = new StreamingOutput()
{
@Override
public void write( final OutputStream output ) throws IOException, WebApplicationException
{
try
{
final ServletOutputStream servletOutputStream = new ServletOutputStream()
{
@Override
public void write( int i ) throws IOException
{
output.write( i );
}
@Override
public boolean isReady()
{
return true;
}
@Override
public void setWriteListener( WriteListener writeListener )
{
try
{
writeListener.onWritePossible();
}
catch ( IOException e )
{
// Ignore
}
}
};
new StreamingBatchOperations( webServer ).readAndExecuteOperations( uriInfo, httpHeaders, req,
body, servletOutputStream );
representationWriteHandler.onRepresentationWritten();
}
catch ( Exception e )
{
LOGGER.warn( "Error executing batch request ", e );
}
finally
{
representationWriteHandler.onRepresentationFinal();
}
}
};
return Response.ok(stream)
.type( HttpHeaderUtils.mediaTypeWithCharsetUtf8(MediaType.APPLICATION_JSON_TYPE) ).build();
}
catch ( Exception e )
{
return output.serverError( e );
}
}
private Response batchProcess( UriInfo uriInfo, HttpHeaders httpHeaders, HttpServletRequest req, InputStream body )
{
try
{
NonStreamingBatchOperations batchOperations = new NonStreamingBatchOperations( webServer );
BatchOperationResults results = batchOperations.performBatchJobs( uriInfo, httpHeaders, req, body );
Response res = Response.ok().entity(results.toJSON())
.type(HttpHeaderUtils.mediaTypeWithCharsetUtf8(MediaType.APPLICATION_JSON_TYPE)).build();
representationWriteHandler.onRepresentationWritten();
return res;
}
catch ( Exception e )
{
return output.serverError( e );
}
finally
{
representationWriteHandler.onRepresentationFinal();
}
}
private boolean isStreaming( HttpHeaders httpHeaders )
{
if ( "true".equalsIgnoreCase( httpHeaders.getRequestHeaders().getFirst( StreamingFormat.STREAM_HEADER ) ) )
{
return true;
}
for ( MediaType mediaType : httpHeaders.getAcceptableMediaTypes() )
{
Map<String, String> parameters = mediaType.getParameters();
if ( parameters.containsKey( "stream" ) && "true".equalsIgnoreCase( parameters.get( "stream" ) ) )
{
return true;
}
}
return false;
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
c72af5c7303ee3a68cefc03d6ac30d85d5634336
|
ab6d5edbaca72c2b0a23fdd50591f6ac4e686b0f
|
/src/com/barunsw/ojt/yjkim/day17/SevCellRenderer.java
|
419f0d40821160bc084f4b5831bd3bd965c38748
|
[] |
no_license
|
barunsw/OJT
|
27a4f95f4738e18242b93a1025ad13ec82118b1a
|
34e1c8fd39e148f62b2ae84376f714762dab87c8
|
refs/heads/master
| 2022-12-10T18:28:23.817064
| 2022-04-26T02:27:35
| 2022-04-26T02:27:35
| 187,738,988
| 0
| 3
| null | 2022-11-23T22:26:11
| 2019-05-21T01:27:38
|
Java
|
UTF-8
|
Java
| false
| false
| 1,718
|
java
|
package com.barunsw.ojt.yjkim.day17;
import java.awt.Color;
import java.awt.Component;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.UIManager;
import javax.swing.table.TableCellRenderer;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class SevCellRenderer extends JPanel
implements TableCellRenderer {
private static final Logger LOGGER = LogManager.getLogger(SevCellRenderer.class);
private JTextField jTextField_Sev = new JTextField();
public SevCellRenderer() {
initComponent();
}
private void initComponent() {
this.setLayout(new GridBagLayout());
this.add(jTextField_Sev,
new GridBagConstraints(1, 600, 1, 1,
1.0, 1.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets(5, 5, 5, 5),
0, 0));
}
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
{
LOGGER.debug("+++ getTableCellRendererComponent value " + value);
String sev = "";
if (value instanceof String) {
sev = (String)value;
LOGGER.debug("sev :", sev);
jTextField_Sev.setText(sev);
}
if (!isSelected) {
if (sev == "CRITICAL") {
this.setBackground(Color.RED);
}
else if (sev == "MAJOR") {
this.setBackground(Color.orange);
}
else if (sev == "MINOR") {
this.setBackground(Color.yellow);
}
else if (sev == "NORMAL") {
this.setBackground(Color.white);
}
}
LOGGER.debug("--- getTableCellRendererComponent");
return this;
}
}
|
[
"yebin0322@naver.com"
] |
yebin0322@naver.com
|
dd5824c283cac569a4eda0e2510dfc6f278ca10c
|
ee9b257daf708b583cadb1adefa5fc798ea109fd
|
/src/main/java/com/sammidev/mediator/entity/Savings.java
|
d7769fa36b62c8e3566d3236bbee932109024e28
|
[] |
no_license
|
SemmiDev/Spring-DesignPattern
|
1ee8e29fe8786a1c917529d45264f2903b635967
|
7341fa11168c02ea378f3fc9d3298a2d095b21f4
|
refs/heads/master
| 2022-12-18T06:07:24.842997
| 2020-09-25T14:13:59
| 2020-09-25T14:13:59
| 298,240,140
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 314
|
java
|
package com.sammidev.mediator.entity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Savings {
private String id;
private BigDecimal balance;
}
|
[
"sammidev4@gmail.com"
] |
sammidev4@gmail.com
|
7fed9f338bc374194a0b082eaddd94b580032f3b
|
ef2b2697731a0e509ee13043a3bc21b0fbcd2dc6
|
/tools/plugins/com.liferay.ide.server.ui/src/com/liferay/ide/server/ui/action/AbstractServerRunningAction.java
|
e384174303572dd06878f098da7507209306d01b
|
[] |
no_license
|
cinnndy9/liferay-ide
|
e7ad193cc17592111778ee06e558c3f05d502205
|
afabd27787cb7215f7c8b7e60bed694645568506
|
refs/heads/master
| 2020-12-25T06:31:30.607233
| 2013-02-28T03:44:16
| 2013-02-28T03:50:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,909
|
java
|
/*******************************************************************************
* Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
*******************************************************************************/
package com.liferay.ide.server.ui.action;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IObjectActionDelegate;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.PlatformUI;
import org.eclipse.wst.server.core.IServer;
import org.eclipse.wst.server.ui.IServerModule;
/**
* @author Greg Amerson
*/
public abstract class AbstractServerRunningAction implements IObjectActionDelegate
{
protected IServer selectedServer;
protected IServerModule selectedModule;
protected IWorkbenchPart activePart;
public AbstractServerRunningAction()
{
super();
}
public void selectionChanged( IAction action, ISelection selection )
{
selectedServer = null;
if( !selection.isEmpty() )
{
if( selection instanceof IStructuredSelection )
{
Object obj = ( (IStructuredSelection) selection ).getFirstElement();
if( obj instanceof IServer )
{
selectedServer = (IServer) obj;
action.setEnabled( ( selectedServer.getServerState() & getRequiredServerState() ) > 0 );
}
else if( obj instanceof IServerModule )
{
selectedModule = (IServerModule) obj;
action.setEnabled( ( selectedModule.getServer().getServerState() & getRequiredServerState() ) > 0 );
}
}
}
}
protected abstract int getRequiredServerState();
public void setActivePart( IAction action, IWorkbenchPart targetPart )
{
this.activePart = targetPart;
}
protected IWorkbenchPart getActivePart()
{
return this.activePart;
}
protected Shell getActiveShell()
{
if( getActivePart() != null )
{
return getActivePart().getSite().getShell();
}
else
{
return PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
}
}
}
|
[
"gregory.amerson@liferay.com"
] |
gregory.amerson@liferay.com
|
e5cabfcabd44ab07024487511967c5869f9e0775
|
f97ba375da68423d12255fa8231365104867d9b0
|
/study-notes/j2ee-collection/java-web/04-JavaWeb/src/com/coderZsq/_25_shoppingcart/servlet/ShoppingCartServlet.java
|
3cc6c167f280f3c9c986343f95d00101b122e631
|
[
"MIT"
] |
permissive
|
lei720/coderZsq.practice.server
|
7a728612e69c44e0877c0153c828b50d8ea7fa7c
|
4ddf9842cd088d4a0c2780ac22d41d7e6229164b
|
refs/heads/master
| 2023-07-16T11:21:26.942849
| 2021-09-08T04:38:07
| 2021-09-08T04:38:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,606
|
java
|
package com.coderZsq._25_shoppingcart.servlet;
import com.coderZsq._25_shoppingcart.domain.CartItem;
import com.coderZsq._25_shoppingcart.domain.ShoppingCart;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.math.BigDecimal;
// 处理购物车的添加/删除
@WebServlet("/shoppingcart")
public class ShoppingCartServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
@Override
protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
req.setCharacterEncoding("UTF-8");
String cmd = req.getParameter("cmd");
if ("save".equals(cmd)) {
this.save(req, resp);
} else if ("delete".equals(cmd)) {
this.delete(req, resp);
}
resp.sendRedirect("/shoppingcart/cart_list.jsp");
}
// 添加进购物车
protected void save(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
// 1. 接受请求参数
String name = req.getParameter("name");
String num = req.getParameter("num");
String id = "";
BigDecimal price = BigDecimal.ZERO;
if ("iphone".equals(name)) {
id = "123";
price = new BigDecimal("5000");
} else if ("ipad".equals(name)) {
id = "456";
price = new BigDecimal("3000");
} else if ("iWatch".equals(name)) {
id = "789";
price = new BigDecimal("10000");
}
CartItem item = new CartItem(id, name, price, Integer.valueOf(num));
// 2. 调用业务方法处理请求
ShoppingCart cart = (ShoppingCart) req.getSession().getAttribute("SHOPPINGCART_IN_SESSION");
if (cart == null) {
cart = new ShoppingCart();
req.getSession().setAttribute("SHOPPINGCART_IN_SESSION", cart);
}
cart.save(item);
// 3. 控制界面跳转
}
// 从购物车中移除某个商品
protected void delete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
// 1. 接受请求参数
String id = req.getParameter("id");
// 2. 调用业务方法处理请求
ShoppingCart cart = (ShoppingCart) req.getSession().getAttribute("SHOPPINGCART_IN_SESSION");
cart.delete(id);
// 3. 控制界面跳转
}
}
|
[
"a13701777868@yahoo.com"
] |
a13701777868@yahoo.com
|
20abadfe7bed03fcad9a8487b1502296428a7469
|
df648a9777f985e502af5373a24f6e7b16450a6b
|
/app/src/main/java/com/crazyhitty/chdev/ks/predator/account/PredatorAuthenticator.java
|
55bac8bb9822df55dd891e0d68d21bf667499c73
|
[
"MIT"
] |
permissive
|
Sifdon/Capstone-Project
|
94bc8b0942b405c07bf7ff6696c5a006c575ecee
|
1e4fb59e754ea2a8984e217b4046565ba2d40202
|
refs/heads/master
| 2021-05-06T13:50:26.620146
| 2017-09-29T20:30:20
| 2017-09-29T20:30:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,529
|
java
|
/*
* MIT License
*
* Copyright (c) 2016 Kartik Sharma
*
* 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.crazyhitty.chdev.ks.predator.account;
import android.accounts.AbstractAccountAuthenticator;
import android.accounts.Account;
import android.accounts.AccountAuthenticatorResponse;
import android.accounts.AccountManager;
import android.accounts.NetworkErrorException;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import com.crazyhitty.chdev.ks.predator.data.Constants;
import com.crazyhitty.chdev.ks.predator.ui.activities.AuthenticatorActivity;
import com.crazyhitty.chdev.ks.predator.utils.Logger;
import java.lang.ref.WeakReference;
import static android.accounts.AccountManager.KEY_BOOLEAN_RESULT;
/**
* Author: Kartik Sharma
* Email Id: cr42yh17m4n@gmail.com
* Created: 1/1/2017 9:14 PM
* Description: Authenticator account manager for predator.
*/
public class PredatorAuthenticator extends AbstractAccountAuthenticator {
private static final String TAG = "PredatorAuthenticator";
private WeakReference<Context> mContextWeakReference;
public PredatorAuthenticator(Context context) {
super(context);
mContextWeakReference = new WeakReference<Context>(context);
}
@Override
public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) {
return null;
}
@Override
public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) throws NetworkErrorException {
// Check if the context was null or not.
if (mContextWeakReference.get() == null) {
return null;
}
Intent intent = new Intent(mContextWeakReference.get(), AuthenticatorActivity.class);
intent.putExtra(Constants.Authenticator.ACCOUNT_TYPE, accountType);
intent.putExtra(Constants.Authenticator.AUTH_TOKEN_TYPE, authTokenType);
intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response);
Bundle bundle = new Bundle();
bundle.putParcelable(AccountManager.KEY_INTENT, intent);
return bundle;
}
@Override
public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) throws NetworkErrorException {
return null;
}
@Override
public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle options) throws NetworkErrorException {
// Check if the context was null or not.
if (mContextWeakReference.get() == null) {
return null;
}
// Check if any authToken is available or not.
AccountManager accountManager = AccountManager.get(mContextWeakReference.get());
String authToken = accountManager.peekAuthToken(account, authTokenType);
// If the authToken is available, return it.
if (!TextUtils.isEmpty(authToken)) {
Bundle result = new Bundle();
result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name);
result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type);
result.putString(AccountManager.KEY_AUTHTOKEN, authToken);
return result;
}
// If the authToken is unavailable, retry for a new one.
Intent intent = new Intent(mContextWeakReference.get(), AuthenticatorActivity.class);
intent.putExtra(Constants.Authenticator.ACCOUNT_TYPE, account.type);
intent.putExtra(Constants.Authenticator.AUTH_TOKEN_TYPE, authTokenType);
intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response);
Bundle bundle = new Bundle();
bundle.putParcelable(AccountManager.KEY_INTENT, intent);
return bundle;
}
@Override
public String getAuthTokenLabel(String authTokenType) {
return null;
}
@Override
public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle options) throws NetworkErrorException {
return null;
}
@Override
public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, String[] features) throws NetworkErrorException {
final Bundle result = new Bundle();
result.putBoolean(KEY_BOOLEAN_RESULT, false);
return result;
}
}
|
[
"cr42yh17m4n@gmail.com"
] |
cr42yh17m4n@gmail.com
|
73bf77ed0321d6e745af1aec84c5a50a61dfb9e4
|
dca48bb5af970a6e247640dc68d7fdc26a9ae2b0
|
/src/main/java/com/spring/mvc/psi/entities/Product.java
|
0b6edb9913d9ddd55c24364c99eaeaac20b6ed8a
|
[] |
no_license
|
vincenttuan/SpringData1102
|
8ac00838f51de585115ac184498d54b33b0574b4
|
2139027e2959d1fb0c4a557eb494c88f4f69b8a6
|
refs/heads/master
| 2023-02-12T14:49:13.685911
| 2021-01-08T13:41:17
| 2021-01-08T13:41:17
| 324,987,944
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,684
|
java
|
package com.spring.mvc.psi.entities;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.OneToMany;
import javax.persistence.Table;
@Entity
@Table(name = "PRODUCT")
public class Product {
@Id
@GeneratedValue
private Integer id;
@Column(name = "name", nullable = false, length = 50)
private String name;
@Column(name = "image", columnDefinition = "clob") // clob 大字串, blob 大二進位
@Lob
private String image; // base64 String for image
@OneToMany(mappedBy = "product")
private List<Purchase> purchases = new ArrayList<>();
@OneToMany(mappedBy = "product")
private List<Sales> saleses = new ArrayList<>();
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public List<Purchase> getPurchases() {
return purchases;
}
public void setPurchases(List<Purchase> purchases) {
this.purchases = purchases;
}
public List<Sales> getSaleses() {
return saleses;
}
public void setSaleses(List<Sales> saleses) {
this.saleses = saleses;
}
}
|
[
"teacher@192.168.1.180"
] |
teacher@192.168.1.180
|
d3c14de511f0a83c3034c2f41bfdea2f568694d7
|
338328bc06567d54ef2052a0a38bf6dbe0109506
|
/shells/ca-dbtool-shell/src/main/java/org/xipki/ca/dbtool/shell/ImportOcspCmd.java
|
b588d5e53aea9908250e8f64f6c4942befd74fec
|
[
"Apache-2.0"
] |
permissive
|
karymei/xipki
|
bd519579936d2a78d9ba461fccb61da2bcf2d056
|
7582ca7b205ee95c1820cc65eac1e7cea23b95c5
|
refs/heads/master
| 2021-09-04T02:41:32.311989
| 2018-01-14T20:09:24
| 2018-01-14T20:09:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,315
|
java
|
/*
*
* Copyright (c) 2013 - 2018 Lijun Liao
*
* 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.xipki.ca.dbtool.shell;
import org.apache.karaf.shell.api.action.Command;
import org.apache.karaf.shell.api.action.Completion;
import org.apache.karaf.shell.api.action.Option;
import org.apache.karaf.shell.api.action.lifecycle.Service;
import org.xipki.ca.dbtool.port.DbPortWorker;
import org.xipki.ca.dbtool.port.ocsp.OcspDbImportWorker;
import org.xipki.console.karaf.completer.DirPathCompleter;
import org.xipki.console.karaf.completer.FilePathCompleter;
/**
* @author Lijun Liao
* @since 2.0.0
*/
@Command(scope = "ca", name = "import-ocsp",
description = "import OCSP database")
@Service
public class ImportOcspCmd extends DbPortAction {
private static final String DFLT_DBCONF_FILE = "xipki/ca-config/ocsp-db.properties";
@Option(name = "--db-conf",
description = "database configuration file")
@Completion(FilePathCompleter.class)
private String dbconfFile = DFLT_DBCONF_FILE;
@Option(name = "--in-dir", required = true,
description = "input directory\n(required)")
@Completion(DirPathCompleter.class)
private String indir;
@Option(name = "-k",
description = "number of certificates per commit")
private Integer numCertsPerCommit = 100;
@Option(name = "--resume")
private Boolean resume = Boolean.FALSE;
@Option(name = "--test",
description = "just test the import, no real import")
private Boolean testOnly = Boolean.FALSE;
@Override
protected DbPortWorker getDbPortWorker() throws Exception {
return new OcspDbImportWorker(datasourceFactory, passwordResolver, dbconfFile, resume,
indir, numCertsPerCommit.intValue(), testOnly);
}
}
|
[
"lijun.liao@gmail.com"
] |
lijun.liao@gmail.com
|
66ab76d33a6f801c3f9304713f02c4704d193eb6
|
24d8cf871b092b2d60fc85d5320e1bc761a7cbe2
|
/DrJava/rev3734-3807/right-branch-380/src/edu/rice/cs/drjava/model/debug/DebugBreakpointData.java
|
cd62992b44c60290d7f7ac64eb769908ff5ab36a
|
[] |
no_license
|
joliebig/featurehouse_fstmerge_examples
|
af1b963537839d13e834f829cf51f8ad5e6ffe76
|
1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad
|
refs/heads/master
| 2016-09-05T10:24:50.974902
| 2013-03-28T16:28:47
| 2013-03-28T16:28:47
| 9,080,611
| 3
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 237
|
java
|
package edu.rice.cs.drjava.model.debug;
import java.io.File;
public interface DebugBreakpointData {
public File getFile();
public int getOffset();
public int getLineNumber();
public boolean isEnabled();
}
|
[
"joliebig@fim.uni-passau.de"
] |
joliebig@fim.uni-passau.de
|
41579c47f0f74437b8a21c3f6ba35cf000619fed
|
3581ea333137a694eeec2e07da2b3c7b556ac32c
|
/testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/providers/jackson2/resource/ProxyWithGenericReturnTypeJacksonAbstractParent.java
|
417f14dea5406a6881e56a2f87e3677f81f3e030
|
[
"Apache-2.0"
] |
permissive
|
fabiocarvalho777/Resteasy
|
d8b39366c50d49d197d5938b97c73b1a5cb581b5
|
94dae2cf6866705fe409048fde78ef2316c93121
|
refs/heads/master
| 2020-12-02T16:28:18.396872
| 2017-07-07T18:36:57
| 2017-07-07T18:36:57
| 96,557,475
| 1
| 0
| null | 2017-07-07T16:41:04
| 2017-07-07T16:41:04
| null |
UTF-8
|
Java
| false
| false
| 693
|
java
|
package org.jboss.resteasy.test.providers.jackson2.resource;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonSubTypes({
@JsonSubTypes.Type(value = ProxyWithGenericReturnTypeJacksonType1.class, name = "type1"),
@JsonSubTypes.Type(value = ProxyWithGenericReturnTypeJacksonType2.class, name = "type2")})
public abstract class ProxyWithGenericReturnTypeJacksonAbstractParent {
protected long id;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
}
|
[
"asoldano@redhat.com"
] |
asoldano@redhat.com
|
33e038e6f32c29269111c0f08c5823819adabd39
|
0ac28b7e3cb0c11a028c529d1720547ec7b60a06
|
/src/main/java/osm5/ns/yang/nfvo/mano/types/rev170208/guest/epa/guest/epa/numa/policy/numa/aware/numa/node/policy/node/OmNumaType.java
|
924b3cdd13bb5f3909252811ba0393cabbd57504
|
[
"Apache-2.0"
] |
permissive
|
openslice/io.openslice.sol005nbi.osm5
|
5d76e8dd9b4170bdbb9b2359459371abb2324d41
|
f4f6cf80dbd61f5336052ebfcd572ae238d68d89
|
refs/heads/master
| 2021-11-18T00:35:31.753227
| 2020-06-15T15:50:33
| 2020-06-15T15:50:33
| 198,384,737
| 0
| 0
|
Apache-2.0
| 2021-08-02T17:18:18
| 2019-07-23T08:16:53
|
Java
|
UTF-8
|
Java
| false
| false
| 2,301
|
java
|
/*-
* ========================LICENSE_START=================================
* io.openslice.sol005nbi.osm5
* %%
* Copyright (C) 2019 openslice.io
* %%
* 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.
* =========================LICENSE_END==================================
*/
package osm5.ns.yang.nfvo.mano.types.rev170208.guest.epa.guest.epa.numa.policy.numa.aware.numa.node.policy.node;
import org.opendaylight.yangtools.yang.binding.ChoiceIn;
import org.opendaylight.yangtools.yang.common.QName;
import osm5.ns.yang.nfvo.mano.types.rev170208.$YangModuleInfoImpl;
import osm5.ns.yang.nfvo.mano.types.rev170208.guest.epa.guest.epa.numa.policy.numa.aware.numa.node.policy.Node;
/**
* OpenMANO Numa type selection
*
* <p>
* This class represents the following YANG schema fragment defined in module <b>mano-types</b>
* <pre>
* choice om-numa-type {
* case cores {
* leaf num-cores {
* type uint8;
* }
* }
* case paired-threads {
* container paired-threads {
* leaf num-paired-threads {
* type uint8;
* }
* list paired-thread-ids {
* max-elements 16;
* key thread-a;
* leaf thread-a {
* type uint8;
* }
* leaf thread-b {
* type uint8;
* }
* }
* }
* }
* case threads {
* leaf num-threads {
* type uint8;
* }
* }
* }
* </pre>The schema path to identify an instance is
* <i>mano-types/guest-epa/guest-epa/numa-policy/numa-aware/numa-node-policy/node/om-numa-type</i>
*
*/
public interface OmNumaType
extends
ChoiceIn<Node>
{
public static final QName QNAME = $YangModuleInfoImpl.qnameOf("om-numa-type");
}
|
[
"tranoris@gmail.com"
] |
tranoris@gmail.com
|
f8772b363dc46063e6c5fc5ac9e3864b460d45d3
|
2e98a39e61db1e5da89a71607b13082af4ddca94
|
/flexwdreanew/src/com/flexwm/server/cm/WFlowOpportunityLoose.java
|
0bec58dd2d2a180c61aab77fdab76c40070f7175
|
[] |
no_license
|
ceherrera-sym/flexwm-dreanew
|
59b927a48a8246babe827f19a131b9129abe2a52
|
228ed7be7718d46a1f2592c253b096e1b942631e
|
refs/heads/master
| 2022-12-18T13:44:42.804524
| 2020-09-15T15:01:52
| 2020-09-15T15:01:52
| 285,393,781
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,606
|
java
|
package com.flexwm.server.cm;
import com.flexwm.server.wf.IWFlowAction;
import com.flexwm.server.wf.PmWFlow;
import com.flexwm.server.wf.PmWFlowLog;
import com.flexwm.shared.cm.BmoCustomer;
import com.flexwm.shared.cm.BmoLoseMotive;
import com.flexwm.shared.cm.BmoOpportunity;
import com.flexwm.shared.cm.BmoQuote;
import com.flexwm.shared.wf.BmoWFlow;
import com.flexwm.shared.wf.BmoWFlowLog;
import com.flexwm.shared.wf.BmoWFlowStep;
import com.symgae.server.PmConn;
import com.symgae.shared.BmUpdateResult;
import com.symgae.shared.SFException;
import com.symgae.shared.SFParams;
public class WFlowOpportunityLoose implements IWFlowAction {
@Override
public void action(SFParams sFParams, PmConn pmConn, BmoWFlowStep bmoWFlowStep, BmUpdateResult bmUpdateResult) throws SFException {
// Se gana la oportunidad dependiendo del avance de la tarea
PmOpportunity pmOpportunity = new PmOpportunity(sFParams);
BmoOpportunity bmoOpportunity = (BmoOpportunity)pmOpportunity.get(pmConn, bmoWFlowStep.getBmoWFlow().getCallerId().toInteger());
// Obtener el flujo
PmWFlow pmWFlow = new PmWFlow(sFParams);
BmoWFlow bmoWFlow = (BmoWFlow)pmWFlow.get(pmConn, bmoOpportunity.getWFlowId().toInteger());
PmWFlowLog pmWFlowLog = new PmWFlowLog(sFParams);
// Obtiene datos del cliente
PmCustomer pmCustomer = new PmCustomer(sFParams);
BmoCustomer bmoCustomer = (BmoCustomer)pmCustomer.get(pmConn, bmoOpportunity.getCustomerId().toInteger());
// Si la oportunidad no esta ganada o perdida y la tarea esta al 100, cambia status
if (bmoWFlowStep.getProgress().toInteger() == 100 && bmoOpportunity.getStatus().toChar() != BmoOpportunity.STATUS_LOST
|| bmoOpportunity.getStatus().toChar() != BmoOpportunity.STATUS_WON) {
bmoOpportunity.getStatus().setValue(BmoOpportunity.STATUS_LOST);
pmOpportunity.saveSimple(pmConn, bmoOpportunity, bmUpdateResult);
String motives = "";
//if (bmoOpportunity.getBmoOrderType().getType().equals(BmoOrderType.TYPE_PROPERTY)) {
// En caso de establecer como perdida la oportunidad, forzar ingreso del motivo
if (bmoOpportunity.getStatus().toChar() == BmoOpportunity.STATUS_LOST) {
if (!(bmoOpportunity.getLoseMotiveId().toInteger() > 0))
bmUpdateResult.addError(bmoOpportunity.getLoseMotiveId().getName(), "Debe asigarse el Motivo de Perder en la Oportunidad.");
else{
PmLoseMotive pmLoseMotive = new PmLoseMotive(sFParams);
BmoLoseMotive bmoLoseMotive = (BmoLoseMotive)pmLoseMotive.get(bmoOpportunity.getLoseMotiveId().toInteger());
motives = bmoLoseMotive.getName().toString() + " | "+ bmoOpportunity.getLoseComments().toString();
}
}
//}
pmWFlowLog.addLog(pmConn, bmUpdateResult, bmoOpportunity.getWFlowId().toInteger(), BmoWFlowLog.TYPE_OTHER, "Oportunidad Perdida a través de la Tarea: " + bmoWFlowStep.getName().toString() + ", Motivo: " + motives);
//Cancelar cotización
PmQuote pmQuote = new PmQuote(sFParams);
BmoQuote bmoQuote = new BmoQuote();
bmoQuote = (BmoQuote)pmQuote.get(pmConn, bmoOpportunity.getQuoteId().toInteger());
if (bmoQuote.getWFlowId().toInteger() > 0){
bmoQuote.getStatus().setValue(BmoQuote.STATUS_CANCELLED);
pmQuote.saveSimple(pmConn, bmoQuote, bmUpdateResult);
pmWFlowLog.addLog(pmConn, bmUpdateResult, bmoQuote.getWFlowId().toInteger(), BmoWFlowLog.TYPE_OTHER, "La Cotización se guardó como Cancelada.");
}
// Deshabilitar flujo
bmoWFlow.getStatus().setValue(BmoWFlow.STATUS_INACTIVE);
pmWFlow.saveSimple(pmConn, bmoWFlow, bmUpdateResult);
//Actualizar estatus del cliente
pmCustomer.updateStatus(pmConn, bmoCustomer, bmUpdateResult);
}
// Si el avance es menor a 100 y la oportunidad esta autorizada, regresarlo
else if (bmoWFlowStep.getProgress().toInteger() < 100 && bmoOpportunity.getStatus().toChar() == BmoOpportunity.STATUS_LOST) {
//Si tiene permiso para cambiar estatus de la oportunidad cambia estatus desde la tarea
if (sFParams.hasSpecialAccess(BmoOpportunity.ACCESS_CHANGESTATUS)) {
bmoOpportunity.getStatus().setValue(BmoOpportunity.STATUS_REVISION);
pmOpportunity.saveSimple(pmConn, bmoOpportunity, bmUpdateResult);
pmWFlowLog.addLog(pmConn, bmUpdateResult, bmoOpportunity.getWFlowId().toInteger(), BmoWFlowLog.TYPE_OTHER, "Oportunidad En Revisión a través de la Tarea: " + bmoWFlowStep.getName().toString());
// Habilitar flujo
bmoWFlow.getStatus().setValue(BmoWFlow.STATUS_ACTIVE);
pmWFlow.saveSimple(pmConn, bmoWFlow, bmUpdateResult);
//Actualizar estatus del cliente
pmCustomer.updateStatus(pmConn, bmoCustomer, bmUpdateResult);
}
}
}
}
|
[
"ceherrera.symetria@gmail.com"
] |
ceherrera.symetria@gmail.com
|
e86f5d5fce9d99964d8f13d67ab987a63c963e29
|
65e6c8d79f89eab2b0be41b18f998b1aaab33959
|
/zz91/ast1949-persist/src/main/java/com/ast/ast1949/persist/information/impl/PeriodicalDetailsDAOImpl.java
|
96b1a94439066671904a6af0d153f95ea50cb81e
|
[] |
no_license
|
cash2one/91
|
14eeb47d22c7e561d2a718489cbc99409d6abd07
|
525b49860cd5e92ef012b474df6c9dc4f8256756
|
refs/heads/master
| 2021-01-19T11:20:46.930263
| 2016-06-28T02:36:26
| 2016-06-28T02:37:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,659
|
java
|
/**
* Copyright 2010 ASTO.
* All right reserved.
* Created on 2010-8-25
*/
package com.ast.ast1949.persist.information.impl;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Component;
import com.ast.ast1949.domain.information.PeriodicalDetails;
import com.ast.ast1949.dto.PageDto;
import com.ast.ast1949.exception.PersistLayerException;
import com.ast.ast1949.persist.information.PeriodicalDetailsDAO;
import com.ast.ast1949.util.Assert;
/**
* @author Mays (x03570227@gmail.com)
*
*/
@Component("periodicalDetailsDAO")
public class PeriodicalDetailsDAOImpl extends SqlMapClientDaoSupport implements PeriodicalDetailsDAO {
public Integer batchInsertPeriodicalDetails(List<PeriodicalDetails> details) {
Assert.notNull(details, "the details list can not be null");
Integer impact=0;
try {
getSqlMapClient().startBatch();
for(PeriodicalDetails d:details){
if((Integer)getSqlMapClientTemplate().insert("periodicalDetails.insertPeriodicalDetails", d)>0){
impact+=1;
}
}
getSqlMapClient().executeBatch();
} catch (SQLException e) {
throw new PersistLayerException("an error occur when batch insert periodical details",e);
}
return impact;
}
public Integer deleteDetails(Integer[] detailsIdArray) {
Assert.notNull(detailsIdArray, "the details list can not be null");
Integer impact=0;
try {
getSqlMapClient().startBatch();
for(Integer i:detailsIdArray){
if(getSqlMapClientTemplate().delete("periodicalDetails.deleteDetailsById",i)>0){
impact+=1;
}
}
getSqlMapClient().executeBatch();
} catch (SQLException e) {
throw new PersistLayerException("an error occur when batch delete periodical details",e);
}
return impact;
}
public List<PeriodicalDetails> listPreviewDetailsByPeriodicalId(
Integer periodicalId) {
Assert.notNull(periodicalId, "the periodicalId list can not be null");
return getSqlMapClientTemplate().queryForList("periodicalDetails.listPreviewDetailsByPeriodicalId",periodicalId);
}
public Integer updateBaseDetails(PeriodicalDetails details) {
Assert.notNull(details, "the details list can not be null");
return getSqlMapClientTemplate().update("periodicalDetails.updateBaseDetails", details);
}
public Integer updatePageType(Integer id, Integer pageType) {
Assert.notNull(pageType , "the pageType list can not be null");
Assert.notNull(id , "the id list can not be null");
Map<String, Object> root = new HashMap<String, Object>();
root.put("id", id);
if(pageType==null||"".equals(pageType)){
pageType=PAGE_TYPE_BODY;
}
root.put("pageType", pageType);
return getSqlMapClientTemplate().update("periodicalDetails.updatePageType", root);
}
public Integer countPageDetailsByPeriodicalId(Integer periodicalId) {
Assert.notNull(periodicalId, "the periodicalId list can not be null");
return (Integer) getSqlMapClientTemplate().queryForObject("periodicalDetails.countPageDetailsByPeriodicalId", periodicalId);
}
public List<PeriodicalDetails> pageDetailsByPeriodicalId(
Integer periodicalId, PageDto page) {
Assert.notNull(periodicalId, "the periodicalId list can not be null");
Assert.notNull(page, "the page list can not be null");
Map<String, Object> root = new HashMap<String, Object>();
root.put("periodicalId",periodicalId);
root.put("page",page);
return getSqlMapClientTemplate().queryForList("periodicalDetails.pageDetailsByPeriodicalId",root);
}
public Integer deleteDetailsByPeriodicalId(Integer periodicalId) {
Assert.notNull(periodicalId, "the periodicalId list can not be null");
return getSqlMapClientTemplate().delete("periodicalDetails.deleteDetailsByPeriodicalId", periodicalId);
}
public PeriodicalDetails selectDetailsById(Integer id) {
Assert.notNull(id, "id is not null");
return (PeriodicalDetails) getSqlMapClientTemplate().queryForObject("periodicalDetails.selectDetailsById", id);
}
@SuppressWarnings("unchecked")
public List<PeriodicalDetails> pageDetailsByPeriodicalIdAndType(Integer periodicalId,
Integer type) {
Assert.notNull(type, "type is not null");
Assert.notNull(periodicalId, "periodicalId is not null");
Map<String, Object> map=new HashMap<String, Object>();
map.put("type", type);
map.put("periodicalId", periodicalId);
return getSqlMapClientTemplate().queryForList("periodicalDetails.pageDetailsByPeriodicalIdAndType", map);
}
}
|
[
"785395338@qq.com"
] |
785395338@qq.com
|
f19c1869a46f74e2f29c9b4d244a44ff6c458c86
|
59ca721ca1b2904fbdee2350cd002e1e5f17bd54
|
/aliyun-java-sdk-smartag-inner/src/main/java/com/aliyuncs/smartag_inner/model/v20180313/InnerDeleteCCNEventRelationRequest.java
|
5e5a57ee2cd1473805ef682964a160ba402a3f8a
|
[
"Apache-2.0"
] |
permissive
|
longtx/aliyun-openapi-java-sdk
|
8fadfd08fbcf00c4c5c1d9067cfad20a14e42c9c
|
7a9ab9eb99566b9e335465a3358553869563e161
|
refs/heads/master
| 2020-04-26T02:00:35.360905
| 2019-02-28T13:47:08
| 2019-02-28T13:47:08
| 173,221,745
| 2
| 0
|
NOASSERTION
| 2019-03-01T02:33:35
| 2019-03-01T02:33:35
| null |
UTF-8
|
Java
| false
| false
| 3,789
|
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.smartag_inner.model.v20180313;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
* @version
*/
public class InnerDeleteCCNEventRelationRequest extends RpcAcsRequest<InnerDeleteCCNEventRelationResponse> {
public InnerDeleteCCNEventRelationRequest() {
super("Smartag-inner", "2018-03-13", "InnerDeleteCCNEventRelation", "smartag", "innerAPI");
}
private String access_key_id;
private String childEventInstanceId;
private String childEventNamespace;
private String parentEventRegionNo;
private String parentEventNamespace;
private String parentEventInstanceId;
private String childEventRegionNo;
private String regionNo;
public String getAccess_key_id() {
return this.access_key_id;
}
public void setAccess_key_id(String access_key_id) {
this.access_key_id = access_key_id;
if(access_key_id != null){
putQueryParameter("access_key_id", access_key_id);
}
}
public String getChildEventInstanceId() {
return this.childEventInstanceId;
}
public void setChildEventInstanceId(String childEventInstanceId) {
this.childEventInstanceId = childEventInstanceId;
if(childEventInstanceId != null){
putQueryParameter("ChildEventInstanceId", childEventInstanceId);
}
}
public String getChildEventNamespace() {
return this.childEventNamespace;
}
public void setChildEventNamespace(String childEventNamespace) {
this.childEventNamespace = childEventNamespace;
if(childEventNamespace != null){
putQueryParameter("ChildEventNamespace", childEventNamespace);
}
}
public String getParentEventRegionNo() {
return this.parentEventRegionNo;
}
public void setParentEventRegionNo(String parentEventRegionNo) {
this.parentEventRegionNo = parentEventRegionNo;
if(parentEventRegionNo != null){
putQueryParameter("ParentEventRegionNo", parentEventRegionNo);
}
}
public String getParentEventNamespace() {
return this.parentEventNamespace;
}
public void setParentEventNamespace(String parentEventNamespace) {
this.parentEventNamespace = parentEventNamespace;
if(parentEventNamespace != null){
putQueryParameter("ParentEventNamespace", parentEventNamespace);
}
}
public String getParentEventInstanceId() {
return this.parentEventInstanceId;
}
public void setParentEventInstanceId(String parentEventInstanceId) {
this.parentEventInstanceId = parentEventInstanceId;
if(parentEventInstanceId != null){
putQueryParameter("ParentEventInstanceId", parentEventInstanceId);
}
}
public String getChildEventRegionNo() {
return this.childEventRegionNo;
}
public void setChildEventRegionNo(String childEventRegionNo) {
this.childEventRegionNo = childEventRegionNo;
if(childEventRegionNo != null){
putQueryParameter("ChildEventRegionNo", childEventRegionNo);
}
}
public String getRegionNo() {
return this.regionNo;
}
public void setRegionNo(String regionNo) {
this.regionNo = regionNo;
if(regionNo != null){
putQueryParameter("RegionNo", regionNo);
}
}
@Override
public Class<InnerDeleteCCNEventRelationResponse> getResponseClass() {
return InnerDeleteCCNEventRelationResponse.class;
}
}
|
[
"yixiong.jxy@alibaba-inc.com"
] |
yixiong.jxy@alibaba-inc.com
|
ae400627bb82b96a37daee0c04c42b880643e19d
|
e5a8c17e3109386f6f0a2f863517637a81e264b7
|
/Eclipse_WS/apitraining/src/main/java/com/synechron/apiautomation/apitraining/post/GitRepoPOJO.java
|
473b9c0da866a95f233b8c7c6909163cdaf7d307
|
[] |
no_license
|
AravindaHB/Synechron_API_Automation
|
9b7eba325f3626cc28bdf8e2e75f6a1ecfd0e030
|
a0bb521eaa8f029a03c0d4198f9c1df182944e32
|
refs/heads/master
| 2023-08-10T16:40:15.511870
| 2021-09-24T10:51:26
| 2021-09-24T10:51:26
| 409,167,569
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 392
|
java
|
package com.synechron.apiautomation.apitraining.post;
public class GitRepoPOJO {
private String name;
private String description;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}
|
[
"aru03.info@gmail.com"
] |
aru03.info@gmail.com
|
8c086b3a3fa19163aaae37586dd92d51dc6fd988
|
80f2a3291e8d7f69dcc980529df42fada4a30546
|
/engine_java/000_Engine_Core/gfx/com/cell/gfx/particle/IParticleLauncher.java
|
fd593bf8c370294d77710bffd1ce58edfb8a0079
|
[] |
no_license
|
Letractively/cellengine
|
5b125d8418df1e108fd4d24557553c23af671aff
|
4f79ddc33f0f45c3ac6d3da7ef2eb3b1e97a9ded
|
refs/heads/master
| 2016-08-12T18:40:47.360983
| 2012-12-04T08:57:18
| 2012-12-04T08:57:18
| 46,205,801
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 928
|
java
|
package com.cell.gfx.particle;
import com.cell.gfx.IGraphics;
/**
* Particle Launcher.</br>
* do something what particle movement.
* @author yifeizhang
* @since 2006-12-5
* @version 1.0
*/
public interface IParticleLauncher {
/**
* Initial Emitted Particle.
* @param particle
* @param id
*/
public void particleEmitted(CParticle particle, int id);
/**
* when the Particle Terminated.
* @param particle
* @param id
*/
public void particleTerminated(CParticle particle, int id);
/**
* Affected the Particle.
* @param particle
* @param id
*/
public void particleAffected(CParticle particle, int id);
/**
* Render the Particle.
* @param g
* @param x TODO
* @param y TODO
* @param particle
* @param id
* @param x
* @param y
*/
public void particleRender(IGraphics g, int x, int y, CParticle particle, int id);
}
|
[
"wazazhang@3d9cc3ef-9625-0410-a0f0-cde76ce531e7"
] |
wazazhang@3d9cc3ef-9625-0410-a0f0-cde76ce531e7
|
e5a66c170e3f65dfd656578eec995e8e54b304f4
|
e7cb38a15026d156a11e4cf0ea61bed00b837abe
|
/groundwork-monitor-platform/agents/cloudhub/src/main/java/org/groundwork/cloudhub/connectors/rhev/restapi/Clusters.java
|
46bf2c5f1f836938ce5ace7476fea59d73ce7551
|
[] |
no_license
|
wang-shun/groundwork-trunk
|
5e0ce72c739fc07f634aeefc8f4beb1c89f128af
|
ea1ca766fd690e75c3ee1ebe0ec17411bc651a76
|
refs/heads/master
| 2020-04-01T08:50:03.249587
| 2018-08-20T21:21:57
| 2018-08-20T21:21:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,336
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// 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: 2013.02.07 at 03:07:31 PM PST
//
package org.groundwork.cloudhub.connectors.rhev.restapi;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
import java.util.List;
/**
* <p>Java class for Clusters complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="Clusters">
* <complexContent>
* <extension base="{}BaseResources">
* <sequence>
* <element ref="{}cluster" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Clusters", propOrder = {
"clusters"
})
public class Clusters
extends BaseResources
{
@XmlElement(name = "cluster")
protected List<Cluster> clusters;
/**
* Gets the value of the clusters 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 clusters property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getClusters().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Cluster }
*
*
*/
public List<Cluster> getClusters() {
if (clusters == null) {
clusters = new ArrayList<Cluster>();
}
return this.clusters;
}
public boolean isSetClusters() {
return ((this.clusters!= null)&&(!this.clusters.isEmpty()));
}
public void unsetClusters() {
this.clusters = null;
}
}
|
[
"gibaless@gmail.com"
] |
gibaless@gmail.com
|
c2debc50f712ed39990bde6122e9410d30238ea1
|
316af620cbca854412fe5274fc709bc234bf5918
|
/app/src/main/java/com/kingja/ticketassistant/util/CountTimer.java
|
0fe143f4822356f50a99f9b54e381f6738522c15
|
[] |
no_license
|
KingJA/ticketassistant
|
3ae8add087143fea372c0468d8412a34a80f5fe9
|
8845f49b6fc6aa2f257b63018688cb1280169455
|
refs/heads/master
| 2020-04-07T21:23:57.604645
| 2018-11-28T14:02:10
| 2018-11-28T14:02:10
| 158,725,266
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 730
|
java
|
package com.kingja.ticketassistant.util;
import android.os.CountDownTimer;
import android.widget.TextView;
/**
* Description:TODO
* Create Time:2018/4/17 14:35
* Author:KingJA
* Email:kingjavip@gmail.com
*/
public class CountTimer extends CountDownTimer {
private final TextView textView;
public CountTimer(int count, TextView textView) {
super(count*1000+50, 1000);
this.textView = textView;
}
@Override
public void onTick(long millisUntilFinished) {
textView.setText(Math.round((double) millisUntilFinished / 1000) + " 秒后重发");
}
@Override
public void onFinish() {
textView.setText("获取验证码");
textView.setClickable(true);
}
}
|
[
"kingjavip@gmail.com"
] |
kingjavip@gmail.com
|
52a8a675c8073dc502aecd1bc90490ed99703262
|
ac72641cacd2d68bd2f48edfc511f483951dd9d6
|
/opscloud-manage/src/test/java/com/baiyi/opscloud/zabbix/ZabbixHandlerTest.java
|
ab8f86e643674c4c35e8501096ef2ac559a604ee
|
[] |
no_license
|
fx247562340/opscloud-demo
|
6afe8220ce6187ac4cc10602db9e14374cb14251
|
b608455cfa5270c8c021fbb2981cb8c456957ccb
|
refs/heads/main
| 2023-05-25T03:33:22.686217
| 2021-06-08T03:17:32
| 2021-06-08T03:17:32
| 373,446,042
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 480
|
java
|
package com.baiyi.opscloud.zabbix;
import com.baiyi.opscloud.BaseUnit;
import com.baiyi.opscloud.zabbix.handler.ZabbixHandler;
import org.junit.jupiter.api.Test;
import javax.annotation.Resource;
/**
* @Author baiyi
* @Date 2019/12/31 4:05 下午
* @Version 1.0
*/
public class ZabbixHandlerTest extends BaseUnit {
@Resource
private ZabbixHandler zabbixHandler;
@Test
void testZabbixLogin() {
System.err.println(zabbixHandler.login());
}
}
|
[
"fanxin01@longfor.com"
] |
fanxin01@longfor.com
|
a2f87ad7fc207bca3293ef3f100c8085869c128f
|
cc511ceb3194cfdd51f591e50e52385ba46a91b3
|
/example/source_code/jackrabbit/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AuthContextProvider.java
|
17cca073403b8348aeca2cbc86637a9845f8f4ce
|
[] |
no_license
|
huox-lamda/testing_hw
|
a86cdce8d92983e31e653dd460abf38b94a647e4
|
d41642c1e3ffa298684ec6f0196f2094527793c3
|
refs/heads/master
| 2020-04-16T19:24:49.643149
| 2019-01-16T15:47:13
| 2019-01-16T15:47:13
| 165,858,365
| 3
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,225
|
java
|
org apach jackrabbit core secur authent
org apach jackrabbit core config login modul config loginmoduleconfig
org apach jackrabbit core secur princip princip provid registri principalproviderregistri
javax jcr credenti
javax jcr repositori except repositoryexcept
javax jcr session
javax secur auth subject
javax secur auth callback callback handler callbackhandl
javax secur auth login app configur entri appconfigurationentri
javax secur auth login configur
java util arrai list arraylist
java util list
java util map
java util properti
code authcontextprovid code defin current request login
handl default link org apach jackrabbit core config repositoryconfig
local repositori configur take preced jaa configur
local configur present jaa configur provid
link getauthcontext fail code repositoryexcept code
auth context provid authcontextprovid
initi
configur state jaa configur exist applic
jaa isjaa
configur option local loginmodul
login modul config loginmoduleconfig config
applic loginconfig entri
string app appnam
param appnam loginconfig applic instanc
param config option loginmodul configur jaa
auth context provid authcontextprovid string app appnam login modul config loginmoduleconfig config
app appnam app appnam
config config
param credenti
param subject
param session
param principalproviderregistri
param adminid
param anonymousid
return context authent log
throw repositoryexcept case code jaascontext code
code localcontext code successfulli creat
auth context authcontext auth context getauthcontext credenti credenti
subject subject
session session
princip provid registri principalproviderregistri princip provid registri principalproviderregistri
string admin adminid
string anonym anonymousid
repositori except repositoryexcept
callback handler callbackhandl handler cbhandler callback handler impl callbackhandlerimpl credenti session princip provid registri principalproviderregistri admin adminid anonym anonymousid
local isloc
local auth context localauthcontext config handler cbhandler subject
jaa isjaa
jaa auth context jaasauthcontext app appnam handler cbhandler subject
repositori except repositoryexcept login configur
return true applic entri jaa link configur
jaa isjaa
local isloc initi
app configur entri appconfigurationentri entri jaa config getjaasconfig
jaa isjaa entri entri length
initi
jaa isjaa
return true login modul configur
local isloc
config
return option configur loginmodul
properti modul config getmoduleconfig
properti prop properti
local isloc
prop properti config paramet getparamet
app configur entri appconfigurationentri entri jaa config getjaasconfig
entri
list properti tmp arrai list arraylist properti entri length
app configur entri appconfigurationentri entri entri
map opt entri option getopt
opt
properti prop properti
prop put putal opt
tmp add prop
prop tmp arrai toarrai properti tmp size
prop
return jaa login modul applic null
app configur entri appconfigurationentri jaa config getjaasconfig
check jaa loginmodul fallback configur
configur login
login configur configur getconfigur
except
mean jaa configur file permiss read
login
login app configur entri getappconfigurationentri app appnam
except
wlp throw illegalargumentexcept unknown appnam
|
[
"huox@lamda.nju.edu.cn"
] |
huox@lamda.nju.edu.cn
|
a610d0fd7654d4256e114334c221cd71523cbd46
|
57ab5ccfc179da80bed6dc6aa1407c2181cee926
|
/co.moviired:digitalContent/src/main/java/co/moviired/digitalcontent/business/src/main/java/co/moviired/digitalcontent/business/domain/src/main/java/co/moviired/digitalcontent/business/domain/repository/IPinHistoryRepository.java
|
e03066bb115b7b9f99463e12ea6444793dac036b
|
[] |
no_license
|
sandys/filtro
|
7190e8e8af7c7b138922c133a7a0ffe9b9b8efa7
|
9494d10444983577a218a2ab2e0bbce374c6484e
|
refs/heads/main
| 2022-12-08T20:46:08.611664
| 2020-09-11T09:26:22
| 2020-09-11T09:26:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 688
|
java
|
package co.moviired.digitalcontent.business.domain.repository;
import co.moviired.digitalcontent.business.domain.entity.PinHistory;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.io.Serializable;
import java.util.Optional;
@Repository
public interface IPinHistoryRepository extends CrudRepository<PinHistory, Integer>, Serializable {
@Query("SELECT p FROM PinHistory p WHERE (p.authorizationCode = ?1 OR p.transferId = ?2) AND (p.sendMail = true OR p.sendMail = true)")
Optional<PinHistory> findPin(String authorizationCode, String transferId);
}
|
[
"me@deletescape.ch"
] |
me@deletescape.ch
|
7fd1f30b646373bc0e1244a6e80eb8b56821a7c3
|
512eaec99ceba66eafd09ff21be2e17af2f37dc9
|
/Server/sdc2ch.root-prod/sdc-2ch-web/sdc-2ch-web-repository/src/main/java/com/sdc2ch/web/admin/repo/domain/T_MOBILE_APP_USE_INFO.java
|
15071b9dfe2e320bb8b1fc0038ea700191e3fe0d
|
[] |
no_license
|
VAIPfoundation/logis2ch
|
8ce48f90f928021c9c944b88b7a55c52d6e6fc67
|
2b0ce4e8d4edd28971d96fedcdbf219fcc276f03
|
refs/heads/master
| 2023-03-06T17:15:02.840903
| 2021-02-24T13:00:08
| 2021-02-24T13:00:08
| 341,898,312
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,739
|
java
|
package com.sdc2ch.web.admin.repo.domain;
import static com.sdc2ch.require.repo.schema.GTConfig.MIDDLE_CONTENTS_LNG_300;
import static com.sdc2ch.require.repo.schema.GTConfig.SHOT_CONTENTS_LNG_100;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import com.sdc2ch.repo.io.MobileApkInfoIO;
import com.sdc2ch.repo.io.MobileAppInfoIO;
import com.sdc2ch.repo.io.TosIO;
import com.sdc2ch.require.repo.T_ID;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Entity
@Getter
@Setter
@ToString
public class T_MOBILE_APP_USE_INFO extends T_ID implements MobileAppInfoIO {
@Column(name = "USER_DETAIL_FK")
private String userId;
@Column(name = "MOBILE_OS_NAME")
private String osName;
@Column(name = "MOBILE_OS_VER")
private String osVer;
@Column(name = "MOBILE_MODEL", columnDefinition = SHOT_CONTENTS_LNG_100)
private String model;
@Column(name = "MOBILE_TELCO", columnDefinition = SHOT_CONTENTS_LNG_100)
private String telCo;
@Column(name = "MOBILE_APP_TOKEN", columnDefinition = MIDDLE_CONTENTS_LNG_300)
private String appTkn;
@Column(name = "MOBILE_APP_TOKEN_VALID")
private boolean validTkn;
@ManyToOne(targetEntity = T_MOBILE_APK_INFO.class)
@JoinColumn(name = "APP_INFO_FK")
private MobileApkInfoIO apk;
@ManyToMany(cascade = {CascadeType.MERGE}, fetch = FetchType.EAGER, targetEntity = T_TOS.class)
@JoinTable(name = "T_MOBILE_APP_USE_INFO_TOS_MAP")
private List<TosIO> tosses = new ArrayList<>();
}
|
[
"richard@aivision.co.kr"
] |
richard@aivision.co.kr
|
2f707a41b4d8755f43a1274ee9db2ba2c52d8a14
|
db3043ea4728125fd1d7a6a127daf0cc2caad626
|
/OCPay_admin/src/main/java/com/stormfives/ocpay/member/dao/entity/OcpayAddressBalanceDual.java
|
4d53ad2747aac301a355c73334d74d61ed180799
|
[] |
no_license
|
OdysseyOCN/OCPay
|
74f0b2ee9b2c847599118861ffa43b8c869b2e71
|
5f6c03c8eea53ea107ac6917f3d97a3c7fc86209
|
refs/heads/master
| 2022-07-25T07:49:12.120351
| 2019-03-29T03:14:46
| 2019-03-29T03:14:46
| 135,281,926
| 9
| 5
| null | 2022-07-15T21:06:38
| 2018-05-29T10:48:50
|
Java
|
UTF-8
|
Java
| false
| false
| 723
|
java
|
package com.stormfives.ocpay.member.dao.entity;
import java.math.BigDecimal;
import java.util.Date;
public class OcpayAddressBalanceDual {
private Integer id;
private BigDecimal addressesBalance;
private Date creatTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public BigDecimal getAddressesBalance() {
return addressesBalance;
}
public void setAddressesBalance(BigDecimal addressesBalance) {
this.addressesBalance = addressesBalance;
}
public Date getCreatTime() {
return creatTime;
}
public void setCreatTime(Date creatTime) {
this.creatTime = creatTime;
}
}
|
[
"cyp206@qq.com"
] |
cyp206@qq.com
|
372c590618f6a481917b8ee488278c7052be6784
|
04f1a14a5a60619f4d22f155fd3ba8a8cfc0eb27
|
/dragon-javaee-example/src/main/java/com/dragon/basic/java/lang/thread/volatilefield/Counter.java
|
f4508334a53849a45e6d019fda2d2bd34a9ded5a
|
[] |
no_license
|
ymzyf2007/dragon-master
|
9029a13641a05f542f1c27f93848646d91a8b296
|
5b246a9ed726185f7f337f476a5aadabcf8ab7dd
|
refs/heads/master
| 2021-08-14T08:02:04.820103
| 2017-11-15T02:07:32
| 2017-11-15T02:07:32
| 109,670,267
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,243
|
java
|
package com.dragon.basic.java.lang.thread.volatilefield;
/**
* 下面看一个例子,我们实现一个计数器,每次线程启动的时候,会调用计数器inc方法,对计数器进行加一
* 详细说明看CSDN博客:http://blog.csdn.net/ymzyf2007/article/details/50222767
*
*/
public class Counter {
// volatile只能保证可见性,不能保证原子性
public volatile static int count = 0;
public static void inc() {
// 这里延迟1毫秒,使得结果明显
try {
Thread.sleep(1);
} catch (InterruptedException e) {
e.printStackTrace();
}
count++;
}
public static void main(String[] args) {
// 同时启动1000个线程,去进行i++运算,看看实际结果
for(int i = 0; i < 1000; i++) {
new Thread(new Runnable() {
// 执行完线程中的所有代码后,线程就自动结束并自我销毁
@Override
public void run() {
Counter.inc();
}
}).start();
}
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
// 这里每次运行的值都有可能不同,可能为1000
System.out.println("运行结果:Counter.count=" + Counter.count);
}
}
|
[
"yumin_860619@126.com"
] |
yumin_860619@126.com
|
44c1943d7d3059d6fe6e85440c84fb2b83d35255
|
53073a648fc85aee29d3d3080a2cc87937eb8cd9
|
/src/com/iskyshop/foundation/domain/Area.java
|
3e9227bedb0a9913427193e06bfbccfea30a88f8
|
[] |
no_license
|
Arlinlol/UziShop
|
850e1ac3a156339d0b6914934813502406e423f8
|
0a1a112638ac15341502f78d124683d2699e6de7
|
refs/heads/master
| 2021-01-19T07:19:03.808599
| 2014-03-28T07:56:42
| 2014-03-28T07:56:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,958
|
java
|
package com.iskyshop.foundation.domain;
import com.iskyshop.core.domain.IdEntity;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Entity
@Table(name = "iskyshop_area")
public class Area extends IdEntity {
private String areaName;
@SuppressWarnings({ "unchecked", "rawtypes" })
@OneToMany(mappedBy = "parent", cascade = { javax.persistence.CascadeType.REMOVE })
private List<Area> childs = new ArrayList();
@ManyToOne(fetch = FetchType.LAZY)
private Area parent;
private int sequence;
private int level;
@Column(columnDefinition = "bit default false")
private boolean common;
public boolean isCommon() {
return this.common;
}
public void setCommon(boolean common) {
this.common = common;
}
public List<Area> getChilds() {
return this.childs;
}
public void setChilds(List<Area> childs) {
this.childs = childs;
}
public Area getParent() {
return this.parent;
}
public void setParent(Area parent) {
this.parent = parent;
}
public String getAreaName() {
return this.areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public int getLevel() {
return this.level;
}
public void setLevel(int level) {
this.level = level;
}
public int getSequence() {
return this.sequence;
}
public void setSequence(int sequence) {
this.sequence = sequence;
}
}
|
[
"suhao@55317.com.cn"
] |
suhao@55317.com.cn
|
e662b2ca8774829945bee20659d1cecbd0a2662d
|
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
|
/sources/io/reactivex/rxjava3/internal/operators/flowable/FlowableMapPublisher.java
|
5e9296475d241d794ac3ef796aab023c3a69cc4c
|
[] |
no_license
|
Auch-Auch/avito_source
|
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
|
76fdcc5b7e036c57ecc193e790b0582481768cdc
|
refs/heads/master
| 2023-05-06T01:32:43.014668
| 2021-05-25T10:19:22
| 2021-05-25T10:19:22
| 370,650,685
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 807
|
java
|
package io.reactivex.rxjava3.internal.operators.flowable;
import io.reactivex.rxjava3.core.Flowable;
import io.reactivex.rxjava3.functions.Function;
import io.reactivex.rxjava3.internal.operators.flowable.FlowableMap;
import org.reactivestreams.Publisher;
import org.reactivestreams.Subscriber;
public final class FlowableMapPublisher<T, U> extends Flowable<U> {
public final Publisher<T> b;
public final Function<? super T, ? extends U> c;
public FlowableMapPublisher(Publisher<T> publisher, Function<? super T, ? extends U> function) {
this.b = publisher;
this.c = function;
}
@Override // io.reactivex.rxjava3.core.Flowable
public void subscribeActual(Subscriber<? super U> subscriber) {
this.b.subscribe(new FlowableMap.b(subscriber, this.c));
}
}
|
[
"auchhunter@gmail.com"
] |
auchhunter@gmail.com
|
8fefda14afe55a2dd54e4acd5c57b2142923981d
|
a484a3994e079fc2f340470a658e1797cd44e8de
|
/app/src/main/java/shangri/example/com/shangri/presenter/RegisterPresenter.java
|
50e992b0d265baa1990533f89c7f1332145010a5
|
[] |
no_license
|
nmbwq/newLiveHome
|
2c4bef9b2bc0b83038dd91c7bf7a6a6a2c987437
|
fde0011f14e17ade627426935cd514fcead5096c
|
refs/heads/master
| 2020-07-12T20:33:23.502494
| 2019-08-28T09:55:52
| 2019-08-28T09:55:52
| 204,899,192
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,305
|
java
|
package shangri.example.com.shangri.presenter;
import android.content.Context;
import shangri.example.com.shangri.UserConfig;
import shangri.example.com.shangri.api.RxHelper;
import shangri.example.com.shangri.api.RxObserver;
import shangri.example.com.shangri.base.BasePresenter;
import shangri.example.com.shangri.model.bean.request.BaseRequestEntity;
import shangri.example.com.shangri.model.bean.request.CheckCodeBean;
import shangri.example.com.shangri.model.bean.request.GetSMSVerificationCodeBean;
import shangri.example.com.shangri.model.bean.request.ResetPwdBean;
import shangri.example.com.shangri.model.bean.request.TelBean;
import shangri.example.com.shangri.model.bean.request.WeChatBean;
import shangri.example.com.shangri.model.bean.response.BaseResponseEntity;
import shangri.example.com.shangri.model.bean.response.TelResposeBean;
import shangri.example.com.shangri.model.bean.response.UserRegistrationNext;
import shangri.example.com.shangri.model.bean.response.WebBean;
import shangri.example.com.shangri.presenter.view.RegisterView;
import io.reactivex.Observable;
import io.reactivex.disposables.Disposable;
/**
* Created by chengaofu on 2017/6/27.
*/
public class RegisterPresenter extends BasePresenter<RegisterView> {
private RegisterView mRegisterView;
public RegisterPresenter(Context context, RegisterView view) {
super(context, view);
mRegisterView = view;
}
/**
* 注册获取短信验证码
*
* @param tel 手机
* @param type 类型
*/
public void getSMSVerificationCode(String tel, String type) {
RxObserver rxObserver = new RxObserver<Object>() {
@Override
public void onHandleSuccess(Object resultBean) {
}
@Override
public void onHandleComplete() {
mRegisterView.getSMSVerificationCode(); //成功获取验证码后
}
@Override
public void onHandleFailed(String message) {
mRegisterView.requestFailed(message);
}
};
GetSMSVerificationCodeBean codeBean = new GetSMSVerificationCodeBean();
codeBean.setTelephone(tel);
codeBean.setType(type);
Observable<BaseResponseEntity<Object>> observable = mRxSerivce.getSMSVerificationCode(codeBean);
Disposable disposable = observable
.compose(RxHelper.handleObservableResult())
.subscribeWith(rxObserver);
addSubscribe(disposable);
}
/**
* 注册下一步校验验证码
*
* @param tel 手机
* @param code 验证码
*/
public void checkCode(String tel, String code, String type) {
RxObserver rxObserver = new RxObserver<UserRegistrationNext>() {
@Override
public void onHandleSuccess(UserRegistrationNext resultBean) {
if (resultBean != null) {
//设置token值
// UserConfig.getInstance().setToken(resultBean.getToken().trim());
UserConfig.getInstance().setMobile(resultBean.getTelephone().trim());
}
mRegisterView.checkCode(resultBean); //检验校验码成功
}
@Override
public void onHandleComplete() {
mRegisterView.checkCode(null); //检验校验码成功
}
@Override
public void onHandleFailed(String message) {
mRegisterView.requestFailed(message); //检验校验码成功
}
};
CheckCodeBean codeBean = new CheckCodeBean();
codeBean.setTelephone(tel);
codeBean.setVerify_code(code);
codeBean.setType(type);
// BaseRequestEntity<CheckCodeBean> requestEntity =
// new BaseRequestEntity<CheckCodeBean>();
// requestEntity.setData(codeBean);
//
// //加密后的entity
// BaseRequestEntity<CheckCodeBean> entity =
// (BaseRequestEntity<CheckCodeBean>) KeytUtil.getRSAKeyt(requestEntity, null);
Observable<BaseResponseEntity<UserRegistrationNext>> observable = mRxSerivce.checkCode(codeBean);
Disposable disposable = observable
.compose(RxHelper.<UserRegistrationNext>handleObservableResult())
.subscribeWith(rxObserver);
addSubscribe(disposable);
}
/**
* 检测手机是否注册
*
* @param tel
*/
public void checkPhone(String tel) {
RxObserver rxObserver = new RxObserver<TelResposeBean>() {
@Override
public void onHandleSuccess(TelResposeBean resultBean) {
mRegisterView.checkPhone(resultBean.count);
}
@Override
public void onHandleComplete() {
}
@Override
public void onHandleFailed(String message) {
mRegisterView.requestFailed(message);
}
};
TelBean codeBean = new TelBean();
codeBean.telephone = tel;
Observable<BaseResponseEntity<TelResposeBean>> observable = mRxSerivce.checkPhone(codeBean);
Disposable disposable = observable
.compose(RxHelper.<TelResposeBean>handleObservableResult())
.subscribeWith(rxObserver);
addSubscribe(disposable);
}
public void weburl() {
RxObserver rxObserver = new RxObserver<WebBean>() {
@Override
public void onHandleSuccess(WebBean resultBean) {
mRegisterView.signProtocol(resultBean);
}
@Override
public void onHandleComplete() {
}
@Override
public void onHandleFailed(String message) {
mRegisterView.requestFailed(message);
}
};
BaseRequestEntity<WeChatBean> requestEntity =
new BaseRequestEntity<WeChatBean>();
WeChatBean weChatBean = new WeChatBean();
Observable<BaseResponseEntity<WebBean>> observable = mRxSerivce.signProtocol(weChatBean);
Disposable disposable = observable
.compose(RxHelper.<WebBean>handleObservableResult())
.subscribeWith(rxObserver);
addSubscribe(disposable);
}
}
|
[
"1763312610@qq.com"
] |
1763312610@qq.com
|
1119737f6ec36acdc4330d89f18f41c90384b6db
|
86db6de0e8d4aa61db9838bcbd2dbdb16d1964e6
|
/src/main/java/com/tingyu/xblog/app/service/impl/TraceServiceImpl.java
|
f3acf3218918abeaf932891026fd8b52ae8f6cf2
|
[] |
no_license
|
Essionshy/xblog
|
844bba4d3dbbe20d80c170248715c3d6f107372c
|
fb78a10180a9581339f882b5ef3645f222c35b44
|
refs/heads/master
| 2022-12-24T22:57:47.262724
| 2020-03-09T15:13:57
| 2020-03-09T15:13:57
| 246,068,053
| 0
| 0
| null | 2022-12-14T20:45:07
| 2020-03-09T15:10:17
|
Java
|
UTF-8
|
Java
| false
| false
| 864
|
java
|
package com.tingyu.xblog.app.service.impl;//package com.tingyu.xblog.app.service.impl;
//
//import org.springframework.boot.actuate.trace.http.HttpTrace;
//import org.springframework.boot.actuate.trace.http.HttpTraceRepository;
//import org.springframework.stereotype.Service;
//import com.tingyu.xblog.app.service.TraceService;
//
//import java.util.List;
//
///**
// * TraceService implementation class.
// *
// * @author johnniang
// * @date 2019-06-18
// */
//@Service
//public class TraceServiceImpl implements TraceService {
//
// private final HttpTraceRepository httpTraceRepository;
//
// public TraceServiceImpl(HttpTraceRepository httpTraceRepository) {
// this.httpTraceRepository = httpTraceRepository;
// }
//
// @Override
// public List<HttpTrace> listHttpTraces() {
// return httpTraceRepository.findAll();
// }
//}
|
[
"1218817610@qq.com"
] |
1218817610@qq.com
|
d6da8e4d44f999b613829d0c2f4bb9586b8bb797
|
6cda4ba980b4084941cdeb8029bb427d172300fc
|
/src/NumberOfIslands||/Solution1.java
|
e01fa3a17c081820c788934b56768d90803713a2
|
[] |
no_license
|
zhenyiluo/lintcode
|
b0c9f2500300e425b07456a6e5309bb930d89948
|
6002d1f0d4357734f509c41f1bd4155d45ca0c23
|
refs/heads/master
| 2020-04-06T03:42:21.345545
| 2015-12-28T18:48:38
| 2015-12-28T18:48:38
| 42,069,812
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,655
|
java
|
/**
* Definition for a point.
* struct Point {
* int x;
* int y;
* Point() : x(0), y(0) {}
* Point(int a, int b) : x(a), y(b) {}
* };
*/
public class Solution {
private int findFather(HashMap<Integer, Integer> father, int x) {
if (father.contains(x)) {
father.put(x, x);
return x;
}
int res = x, tmp;
while (res != father.get(res)) {
res = father.get(res);
}
while (x != father.get(x)) {
tmp = father.get(x);
father.put(x, res);
x = tmp;
}
return x;
}
public static final int dx[] = {0, 1, 0, -1};
public static final int dy[] = {1, 0, -1, 0};
public List<Integer> numIslands2(int n, int m, Point[] operators) {
// Write your code here
HashMap<Integer, Integer> father;
List<Integer> res = new ArrayList<Integer>();
int cnt = 0;
for (Point op : operators) {
int p = op.x * m + op.y;
int fp = findFather(father, p);
if (fp == p) ++cnt;
for (int i = 0; i < 4; ++i) {
int xx = op.x + dx[i], yy = op.y + dy[i];
if (xx < 0 || xx >= n || yy < 0 || yy >= m) continue;
int q = (op.x + dx[i]) * m + op.y + dy[i];
if (father.find(q) != father.end()) {
int fq = findFather(father, q);
if (fp != fq) {
--cnt;
father.put(fq, fp);
}
}
}
res.add(cnt);
}
return res;
}
}
|
[
"zhenyiluo@gmail.com"
] |
zhenyiluo@gmail.com
|
f8757cd9c9deed32cb1e906ad0ce0df0265b407f
|
dbc258080422b91a8ff08f64146261877e69d047
|
/java-opensaml2-2.3.1/src/test/java/org/opensaml/saml2/core/impl/StatusResponseTestBase.java
|
8dd411bb46cc3539638ca956532976e4b781e986
|
[] |
no_license
|
mayfourth/greference
|
bd99bc5f870ecb2e0b0ad25bbe776ee25586f9f9
|
f33ac10dbb4388301ddec3ff1b130b1b90b45922
|
refs/heads/master
| 2020-12-05T02:03:59.750888
| 2016-11-02T23:45:58
| 2016-11-02T23:45:58
| 65,941,369
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,331
|
java
|
/*
* Copyright [2005] [University Corporation for Advanced Internet Development, Inc.]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
*
*/
package org.opensaml.saml2.core.impl;
import javax.xml.namespace.QName;
import org.joda.time.DateTime;
import org.joda.time.chrono.ISOChronology;
import org.opensaml.common.SAMLObject;
import org.opensaml.common.BaseSAMLObjectProviderTestCase;
import org.opensaml.common.SAMLVersion;
import org.opensaml.common.xml.SAMLConstants;
import org.opensaml.saml2.core.Issuer;
import org.opensaml.saml2.core.Status;
import org.opensaml.saml2.core.StatusResponseType;
/**
*
*/
public abstract class StatusResponseTestBase extends BaseSAMLObjectProviderTestCase {
/** Expected ID attribute */
protected String expectedID;
/** Expected InResponseTo attribute */
protected String expectedInResponseTo;
/** Expected Version attribute */
protected SAMLVersion expectedSAMLVersion;
/** Expected IssueInstant attribute */
protected DateTime expectedIssueInstant;
/** Expected Destination attribute */
protected String expectedDestination;
/** Expected Consent attribute */
protected String expectedConsent;
/** Expected Issuer child element */
protected Issuer expectedIssuer;
/** Expected Status child element */
protected Status expectedStatus;
/**
* Constructor
*
*/
public StatusResponseTestBase() {
}
/** {@inheritDoc} */
protected void setUp() throws Exception {
super.setUp();
expectedID = "def456";
expectedInResponseTo = "abc123";
expectedSAMLVersion = SAMLVersion.VERSION_20;
expectedIssueInstant = new DateTime(2006, 2, 21, 16, 40, 0, 0, ISOChronology.getInstanceUTC());
expectedDestination = "http://sp.example.org/endpoint";
expectedConsent = "urn:string:consent";
QName issuerQName = new QName(SAMLConstants.SAML20_NS, Issuer.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
expectedIssuer = (Issuer) buildXMLObject(issuerQName);
QName statusQName = new QName(SAMLConstants.SAML20P_NS, Status.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20P_PREFIX);
expectedStatus = (Status) buildXMLObject(statusQName);
}
/** {@inheritDoc} */
public abstract void testSingleElementUnmarshall();
/** {@inheritDoc} */
public abstract void testSingleElementMarshall();
/**
* Used by subclasses to populate the required attribute values
* that this test expects.
*
* @param samlObject
*/
protected void populateRequiredAttributes(SAMLObject samlObject) {
StatusResponseType sr = (StatusResponseType) samlObject;
sr.setID(expectedID);
sr.setIssueInstant(expectedIssueInstant);
// NOTE: the SAML Version attribute is set automatically by the impl superclas
}
/**
* Used by subclasses to populate the optional attribute values
* that this test expects.
*
* @param samlObject
*/
protected void populateOptionalAttributes(SAMLObject samlObject) {
StatusResponseType sr = (StatusResponseType) samlObject;
sr.setInResponseTo(expectedInResponseTo);
sr.setConsent(expectedConsent);
sr.setDestination(expectedDestination);
}
/**
* Used by subclasses to populate the child elements that this test expects.
*
*
* @param samlObject
*/
protected void populateChildElements(SAMLObject samlObject) {
StatusResponseType sr = (StatusResponseType) samlObject;
sr.setIssuer(expectedIssuer);
sr.setStatus(expectedStatus);
}
protected void helperTestSingleElementUnmarshall(SAMLObject samlObject) {
StatusResponseType sr = (StatusResponseType) samlObject;
assertEquals("Unmarshalled ID attribute was not the expected value", expectedID, sr.getID());
assertEquals("Unmarshalled Version attribute was not the expected value", expectedSAMLVersion.toString(), sr.getVersion().toString());
assertEquals("Unmarshalled IssueInstant attribute was not the expected value", 0, expectedIssueInstant.compareTo(sr.getIssueInstant()));
assertNull("InResponseTo was not null", sr.getInResponseTo());
assertNull("Consent was not null", sr.getConsent());
assertNull("Destination was not null", sr.getDestination());
}
protected void helperTestSingleElementOptionalAttributesUnmarshall(SAMLObject samlObject) {
StatusResponseType sr = (StatusResponseType) samlObject;
assertEquals("Unmarshalled ID attribute was not the expected value", expectedID, sr.getID());
assertEquals("Unmarshalled Version attribute was not the expected value", expectedSAMLVersion.toString(), sr.getVersion().toString());
assertEquals("Unmarshalled IssueInstant attribute was not the expected value", 0, expectedIssueInstant.compareTo(sr.getIssueInstant()));
assertEquals("Unmarshalled InResponseTo attribute was not the expected value", expectedInResponseTo, sr.getInResponseTo());
assertEquals("Unmarshalled Consent attribute was not the expected value", expectedConsent, sr.getConsent());
assertEquals("Unmarshalled Destination attribute was not the expected value", expectedDestination, sr.getDestination());
}
protected void helperTestChildElementsUnmarshall(SAMLObject samlObject) {
StatusResponseType sr = (StatusResponseType) samlObject;
assertNotNull("Issuer was null", sr.getIssuer());
assertNotNull("Status was null", sr.getIssuer());
}
}
|
[
"kai.xu@service-now.com"
] |
kai.xu@service-now.com
|
abaecf5436541d9a43fe949ea74480c06ab14239
|
07174aa43b1644b795e9d7dd6fc6a376669265c1
|
/library/src/main/java/com/tom_roush/pdfbox/contentstream/operator/graphics/CurveToReplicateInitialPoint.java
|
336dfb3cfab8caf660c1329bae39427e3ff2d578
|
[
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"APAFML",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
sbassomp/PdfBox-Android
|
a505a0afc930305544358d2b3d4b17eca70d2e4b
|
c9b99fa03e6f2cfca3574bceb763fbd54530c4c3
|
refs/heads/master
| 2020-03-13T22:47:16.923659
| 2018-04-27T16:53:02
| 2018-04-27T16:53:02
| 131,322,744
| 0
| 0
|
Apache-2.0
| 2018-04-27T16:53:04
| 2018-04-27T16:50:39
|
Java
|
UTF-8
|
Java
| false
| false
| 1,512
|
java
|
package com.tom_roush.pdfbox.contentstream.operator.graphics;
import android.graphics.PointF;
import android.util.Log;
import com.tom_roush.pdfbox.contentstream.operator.Operator;
import com.tom_roush.pdfbox.cos.COSBase;
import com.tom_roush.pdfbox.cos.COSNumber;
import java.io.IOException;
import java.util.List;
/**
* v Append curved segment to path with the initial point replicated.
*
* @author Ben Litchfield
*/
public class CurveToReplicateInitialPoint extends GraphicsOperatorProcessor
{
@Override
public void process(Operator operator, List<COSBase> operands) throws IOException
{
COSNumber x2 = (COSNumber) operands.get(0);
COSNumber y2 = (COSNumber) operands.get(1);
COSNumber x3 = (COSNumber) operands.get(2);
COSNumber y3 = (COSNumber) operands.get(3);
PointF currentPoint = context.getCurrentPoint();
PointF point2 = context.transformedPoint(x2.floatValue(), y2.floatValue());
PointF point3 = context.transformedPoint(x3.floatValue(), y3.floatValue());
if (currentPoint == null)
{
Log.w("PdfBox-Android", "curveTo (" + point3.x + "," + point3.y + ") without initial MoveTo");
context.moveTo(point3.x, point3.y);
}
else
{
context.curveTo(currentPoint.x, currentPoint.y,
point2.x, point2.y,
point3.x, point3.y);
}
}
@Override
public String getName()
{
return "v";
}
}
|
[
"birdbrain2@comcast.net"
] |
birdbrain2@comcast.net
|
927aeae142902a8d9cd2a032da84519991d1ae48
|
e1af7696101f8f9eb12c0791c211e27b4310ecbc
|
/MCP/temp/src/minecraft/net/minecraft/world/WorldProviderSurface.java
|
d03bb474756b9b32327fb3024ec7b6f40c4e47e8
|
[] |
no_license
|
VinmaniaTV/Mania-Client
|
e36810590edf09b1d78b8eeaf5cbc46bb3e2d8ce
|
7a12b8bad1a8199151b3f913581775f50cc4c39c
|
refs/heads/main
| 2023-02-12T10:31:29.076263
| 2021-01-13T02:29:35
| 2021-01-13T02:29:35
| 329,156,099
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 333
|
java
|
package net.minecraft.world;
public class WorldProviderSurface extends WorldProvider {
public DimensionType func_186058_p() {
return DimensionType.OVERWORLD;
}
public boolean func_186056_c(int p_186056_1_, int p_186056_2_) {
return !this.field_76579_a.func_72916_c(p_186056_1_, p_186056_2_);
}
}
|
[
"vinmaniamc@gmail.com"
] |
vinmaniamc@gmail.com
|
cc65717dd0b98a3a2305d98031cf989297a5af9e
|
e7ee311e20b40c87bf6d23a53a1d7b11fd29d2c3
|
/src/chosun/ciis/ad/pub/ds/AD_PUB_1120_ADataSet.java
|
4c4ab24f01583a9931eebc237ffbb1d42b4322d7
|
[] |
no_license
|
nosmoon/misdevteam
|
4e3695ef7bbdcd231bb84d7d8d7df54a23ff0a60
|
1829d5bd489eb6dd307ca244f0e183a31a1de773
|
refs/heads/master
| 2020-04-15T15:57:05.480056
| 2019-01-10T01:12:01
| 2019-01-10T01:12:01
| 164,812,547
| 1
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 2,630
|
java
|
/***************************************************************************************************
* 파일명 :
* 기능 :
* 작성일자 :
* 작성자 :
***************************************************************************************************/
/***************************************************************************************************
* 수정내역 :
* 수정자 :
* 수정일자 :
* 백업 :
***************************************************************************************************/
package chosun.ciis.ad.pub.ds;
import java.sql.*;
import java.util.*;
import somo.framework.db.*;
import somo.framework.util.*;
import chosun.ciis.ad.pub.dm.*;
import chosun.ciis.ad.pub.rec.*;
/**
*
*/
public class AD_PUB_1120_ADataSet extends somo.framework.db.BaseDataSet implements java.io.Serializable{
public String errcode;
public String errmsg;
public AD_PUB_1120_ADataSet(){}
public AD_PUB_1120_ADataSet(String errcode, String errmsg){
this.errcode = errcode;
this.errmsg = errmsg;
}
public void setErrcode(String errcode){
this.errcode = errcode;
}
public void setErrmsg(String errmsg){
this.errmsg = errmsg;
}
public String getErrcode(){
return this.errcode;
}
public String getErrmsg(){
return this.errmsg;
}
public void getValues(CallableStatement cstmt) throws SQLException{
this.errcode = Util.checkString(cstmt.getString(1));
this.errmsg = Util.checkString(cstmt.getString(2));
}
}/*----------------------------------------------------------------------------------------------------
Web Tier에서 DataSet 객체 관련 코드 작성시 사용하십시오.
<%
AD_PUB_1120_ADataSet ds = (AD_PUB_1120_ADataSet)request.getAttribute("ds");
%>
Web Tier에서 Record 객체 관련 코드 작성시 사용하십시오.
----------------------------------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------------------------------
Web Tier에서 DataSet 객체의 <%= %> 작성시 사용하십시오.
<%= ds.getErrcode()%>
<%= ds.getErrmsg()%>
----------------------------------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------------------------------
Web Tier에서 Record 객체의 <%= %> 작성시 사용하십시오.
----------------------------------------------------------------------------------------------------*/
/* 작성시간 : Wed Oct 07 18:42:09 KST 2009 */
|
[
"DLCOM000@172.16.30.11"
] |
DLCOM000@172.16.30.11
|
adc2214de45e21536fe177d939f701395b75087d
|
68102394ed601826c92384977465d4f7d911d95a
|
/hr-hexagon/src/com/example/hr/repository/EmployeeRepository.java
|
299587d7e3941434e00a6684ce075c7aeb7aae93
|
[
"MIT"
] |
permissive
|
deepcloudlabs/dcl350-2021-jun-07
|
b34724f20fec751e9a31fde95297b89390aa9cf0
|
05332025909e49b8067657d02eed1bef08c03a92
|
refs/heads/main
| 2023-05-21T01:14:28.843633
| 2021-06-11T13:35:40
| 2021-06-11T13:35:40
| 374,163,769
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 311
|
java
|
package com.example.hr.repository;
import com.example.hr.domain.Employee;
import com.example.hr.domain.TcKimlikNo;
public interface EmployeeRepository {
boolean exists(TcKimlikNo tcKimlikNo);
void save(Employee employee);
Employee findByIdentity(TcKimlikNo kimlik);
void remove(Employee employee);
}
|
[
"deepcloudlabs@gmail.com"
] |
deepcloudlabs@gmail.com
|
4bac7ce26fc91be89dfa6a9a03fe4b863f2308d0
|
8b978fdd162e701b58e4269b9e26286a85418a06
|
/src/main/java/com/minegusta/mgessentials/command/RekCommand.java
|
177018a1d41c28f2afd76c611a69fde51b5043ee
|
[] |
no_license
|
saitohirga/LFG-Essentials
|
08c635b72c61bcceb4e2d133cd3a20048496ef1c
|
fe1ec1e30145b035859ef4ace1181a83d2ea90c9
|
refs/heads/master
| 2021-06-10T15:38:54.892337
| 2017-01-13T23:59:06
| 2017-01-13T23:59:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,634
|
java
|
package com.minegusta.mgessentials.command;
import com.minegusta.mgessentials.util.Title;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class RekCommand implements CommandExecutor {
@Override
public boolean onCommand(CommandSender s, Command cmd, String label, String[] args) {
if ((!s.isOp() && !s.hasPermission("minegusta.rek")) || args.length < 1) {
s.sendMessage(ChatColor.RED + "Usage: " + ChatColor.DARK_RED + "/Rek <Name>");
} else {
if (args[0].equals("*")) {
for (Player p : Bukkit.getOnlinePlayers()) {
rekPlayer(p, s.getName());
}
s.sendMessage(ChatColor.YELLOW + "You rekt everyone.");
return true;
}
try {
Player victim = Bukkit.getPlayer(args[0]);
rekPlayer(victim, s.getName());
s.sendMessage(ChatColor.YELLOW + "You rekt " + victim.getName() + ".");
} catch (Exception ignored) {
s.sendMessage(ChatColor.RED + "That is not an online player!");
}
}
return true;
}
private void rekPlayer(Player p, String sender) {
Title title = new Title("You got rekt");
title.setSubtitle("By " + sender);
title.setTitleColor(ChatColor.RED);
title.setFadeInTime(2);
title.setStayTime(5);
title.setFadeOutTime(2);
title.send(p);
}
}
|
[
"janie177@hotmail.com"
] |
janie177@hotmail.com
|
89f5513bfc7ce99e39b4dfcdd75c88a58750f62d
|
6d17c72acbb53f1d3e38222fa9935d2a4a4da937
|
/src/com/sj/service/IPeriodicalsService.java
|
6b4fa45e490f46651168ca2a2a70b64a7123a497
|
[] |
no_license
|
MsTiny/sj
|
cb536914b6f08973a514a9aed66a271c41011fa0
|
d7a573f689426d79059df914626cb26f6ceddc7c
|
refs/heads/master
| 2021-01-15T13:29:03.286113
| 2017-06-27T03:30:29
| 2017-06-27T03:30:29
| 99,674,629
| 1
| 0
| null | 2017-08-08T09:21:06
| 2017-08-08T09:21:06
| null |
UTF-8
|
Java
| false
| false
| 508
|
java
|
package com.sj.service;
import java.util.List;
import com.sj.entity.Periodicals;
public interface IPeriodicalsService extends IBaseService<Periodicals>{
/**
* 获取最期刊
* @return
*/
public List<Periodicals> getnewPeriodicals();
public List<Periodicals> getnewPeriodicals(Integer page,Integer row);
public List<Periodicals> getnewPeriodicals(Integer cp, Integer row, Integer type,
String keycontect);
public List<Periodicals> getLikeperiodicals(List<Periodicals> periodicals);
}
|
[
"you@example.com"
] |
you@example.com
|
0ebd9cd03e67806e9d505d0d39b1b71264848c7c
|
a464211147d0fd47d2be533a5f0ced0da88f75f9
|
/EvoSuiteTests/evosuite_2/evosuite-tests/org/mozilla/classfile/TypeInfo_ESTest.java
|
0a8533315e276442117d9af456f3e9cc9e29db14
|
[
"MIT"
] |
permissive
|
LASER-UMASS/Swami
|
63016a6eccf89e4e74ca0ab775e2ef2817b83330
|
5bdba2b06ccfad9d469f8122c2d39c45ef5b125f
|
refs/heads/master
| 2022-05-19T12:22:10.166574
| 2022-05-12T13:59:18
| 2022-05-12T13:59:18
| 170,765,693
| 11
| 5
|
NOASSERTION
| 2022-05-12T13:59:19
| 2019-02-14T22:16:01
|
HTML
|
UTF-8
|
Java
| false
| false
| 7,572
|
java
|
/*
* This file was automatically generated by EvoSuite
* Wed Aug 01 08:50:14 GMT 2018
*/
package org.mozilla.classfile;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
import org.mozilla.classfile.ClassFileWriter;
import org.mozilla.classfile.ConstantPool;
import org.mozilla.classfile.TypeInfo;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true)
public class TypeInfo_ESTest extends TypeInfo_ESTest_scaffolding {
@Test(timeout = 4000)
public void test00() throws Throwable {
ConstantPool constantPool0 = new ConstantPool((ClassFileWriter) null);
String string0 = TypeInfo.toString(6, constantPool0);
assertEquals("uninitialized_this", string0);
assertNotNull(string0);
}
@Test(timeout = 4000)
public void test01() throws Throwable {
int[] intArray0 = new int[10];
intArray0[0] = 5;
ClassFileWriter classFileWriter0 = new ClassFileWriter("dnJ<R", "wd:MV]", "Psd/nC%C*phw^ZB+.-");
ConstantPool constantPool0 = new ConstantPool(classFileWriter0);
TypeInfo.print(intArray0, intArray0, constantPool0);
assertArrayEquals(new int[] {5, 0, 0, 0, 0, 0, 0, 0, 0, 0}, intArray0);
}
@Test(timeout = 4000)
public void test02() throws Throwable {
ClassFileWriter classFileWriter0 = new ClassFileWriter(";Z-", ";Z-", ";Z-");
ConstantPool constantPool0 = new ConstantPool(classFileWriter0);
// Undeclared exception!
try {
TypeInfo.merge(7, 3, constantPool0);
fail("Expecting exception: IllegalArgumentException");
} catch(IllegalArgumentException e) {
//
// bad merge attempt between null and double
//
verifyException("org.mozilla.classfile.TypeInfo", e);
}
}
@Test(timeout = 4000)
public void test03() throws Throwable {
ClassFileWriter classFileWriter0 = new ClassFileWriter("No method to add to", "No method to add to", "No method to add to");
ConstantPool constantPool0 = new ConstantPool(classFileWriter0);
// Undeclared exception!
try {
TypeInfo.merge((short)2, (short)8, constantPool0);
fail("Expecting exception: IllegalArgumentException");
} catch(IllegalArgumentException e) {
//
// bad merge attempt between float and uninitialized
//
verifyException("org.mozilla.classfile.TypeInfo", e);
}
}
@Test(timeout = 4000)
public void test04() throws Throwable {
ConstantPool constantPool0 = new ConstantPool((ClassFileWriter) null);
String string0 = TypeInfo.toString(1, constantPool0);
assertEquals("int", string0);
assertNotNull(string0);
}
@Test(timeout = 4000)
public void test05() throws Throwable {
// Undeclared exception!
try {
TypeInfo.merge(4, 4856, (ConstantPool) null);
fail("Expecting exception: IllegalArgumentException");
} catch(IllegalArgumentException e) {
//
// bad type
//
verifyException("org.mozilla.classfile.TypeInfo", e);
}
}
@Test(timeout = 4000)
public void test06() throws Throwable {
int int0 = TypeInfo.merge(5, 1287, (ConstantPool) null);
assertEquals(1287, int0);
}
@Test(timeout = 4000)
public void test07() throws Throwable {
ClassFileWriter classFileWriter0 = new ClassFileWriter(";Z-", ";Z-", ";Z-");
ConstantPool constantPool0 = new ConstantPool(classFileWriter0);
int int0 = TypeInfo.merge((short)32, (short)1024, constantPool0);
assertEquals(0, int0);
}
@Test(timeout = 4000)
public void test08() throws Throwable {
int int0 = TypeInfo.merge(1287, 5, (ConstantPool) null);
assertEquals(1287, int0);
}
@Test(timeout = 4000)
public void test09() throws Throwable {
boolean boolean0 = TypeInfo.isTwoWords(3);
assertTrue(boolean0);
}
@Test(timeout = 4000)
public void test10() throws Throwable {
ConstantPool constantPool0 = new ConstantPool((ClassFileWriter) null);
// Undeclared exception!
try {
TypeInfo.getPayloadAsType(6, constantPool0);
fail("Expecting exception: IllegalArgumentException");
} catch(IllegalArgumentException e) {
//
// expecting object type
//
verifyException("org.mozilla.classfile.TypeInfo", e);
}
}
@Test(timeout = 4000)
public void test11() throws Throwable {
ClassFileWriter classFileWriter0 = new ClassFileWriter("D#3^CCZc%CMe4 $\":", "D#3^CCZc%CMe4 $\":", "D#3^CCZc%CMe4 $\":");
ConstantPool constantPool0 = new ConstantPool(classFileWriter0);
// Undeclared exception!
try {
TypeInfo.merge(519, 7, constantPool0);
fail("Expecting exception: NullPointerException");
} catch(NullPointerException e) {
}
}
@Test(timeout = 4000)
public void test12() throws Throwable {
ClassFileWriter classFileWriter0 = new ClassFileWriter("Z]jJ", "Z]jJ", "Z]jJ");
ConstantPool constantPool0 = new ConstantPool(classFileWriter0);
// Undeclared exception!
try {
TypeInfo.fromType("M", constantPool0);
fail("Expecting exception: IllegalArgumentException");
} catch(IllegalArgumentException e) {
//
// bad type
//
verifyException("org.mozilla.classfile.TypeInfo", e);
}
}
@Test(timeout = 4000)
public void test13() throws Throwable {
int int0 = TypeInfo.fromType("J", (ConstantPool) null);
assertEquals(4, int0);
}
@Test(timeout = 4000)
public void test14() throws Throwable {
ClassFileWriter classFileWriter0 = new ClassFileWriter("Sg&", "Sg&", "Sg&");
ConstantPool constantPool0 = new ConstantPool(classFileWriter0);
int int0 = TypeInfo.fromType("F", constantPool0);
assertEquals(2, int0);
}
@Test(timeout = 4000)
public void test15() throws Throwable {
ClassFileWriter classFileWriter0 = new ClassFileWriter("bad operand [8:ze", "bad operand [8:ze", "bad operand [8:ze");
ConstantPool constantPool0 = new ConstantPool(classFileWriter0);
int int0 = TypeInfo.fromType("B", constantPool0);
assertEquals(1, int0);
}
@Test(timeout = 4000)
public void test16() throws Throwable {
ClassFileWriter classFileWriter0 = new ClassFileWriter("bU eArg/ sBGe", "bU eArg/ sBGe", "bU eArg/ sBGe");
ConstantPool constantPool0 = new ConstantPool(classFileWriter0);
int int0 = TypeInfo.fromType("D", constantPool0);
assertEquals(3, int0);
}
@Test(timeout = 4000)
public void test17() throws Throwable {
int int0 = TypeInfo.UNINITIALIZED_VARIABLE(5);
assertEquals(1288, int0);
}
@Test(timeout = 4000)
public void test18() throws Throwable {
ClassFileWriter classFileWriter0 = new ClassFileWriter("D#3^CCZc%CMe4 $\":", "D#3^CCZc%CMe4 $\":", "D#3^CCZc%CMe4 $\":");
ConstantPool constantPool0 = new ConstantPool(classFileWriter0);
TypeInfo.fromType("D#3^CCZc%CMe4 $\":", constantPool0);
// Undeclared exception!
try {
TypeInfo.merge(519, 7, constantPool0);
fail("Expecting exception: NullPointerException");
} catch(NullPointerException e) {
}
}
}
|
[
"mmotwani@cs.umass.edu"
] |
mmotwani@cs.umass.edu
|
e0b32fbcab6086cb226285b60ba66c9ab7622c08
|
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
|
/drjava_cluster/21548/tar_0.java
|
b580f69a27d39b46e4a065408a423b451f780b31
|
[] |
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
| 4,974
|
java
|
/*BEGIN_COPYRIGHT_BLOCK
*
* This file is part of DrJava. Download the current version of this project from http://www.drjava.org/
* or http://sourceforge.net/projects/drjava/
*
* DrJava Open Source License
*
* Copyright (C) 2001-2006 JavaPLT group at Rice University (javaplt@rice.edu). All rights reserved.
*
* Developed by: Java Programming Languages Team, Rice University, http://www.cs.rice.edu/~javaplt/
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal with 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:
*
* - Redistributions of source code must retain the above copyright notice, this list of conditions and the
* following disclaimers.
* - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
* following disclaimers in the documentation and/or other materials provided with the distribution.
* - Neither the names of DrJava, the JavaPLT, Rice University, nor the names of its contributors may be used to
* endorse or promote products derived from this Software without specific prior written permission.
* - Products derived from this software may not be called "DrJava" nor use the term "DrJava" as part of their
* names without prior written permission from the JavaPLT group. For permission, write to javaplt@rice.edu.
*
* 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
* CONTRIBUTORS 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
* WITH THE SOFTWARE.
*
*END_COPYRIGHT_BLOCK*/
package edu.rice.cs.drjava.model.definitions.indent;
import javax.swing.text.*;
import edu.rice.cs.util.UnexpectedException;
import edu.rice.cs.drjava.model.AbstractDJDocument;
/**
* Indents the current line in the document to the indent level of the
* start of the previous line, plus the given suffix, then backs up to a
* specific cursor position.
* @version $Id$
*/
class ActionStartPrevLinePlusBackup extends IndentRuleAction {
private String _suffix;
private int _position = 0;
/**
* Rule that repeats the indentation from the previous line, plus a string,
* then moves the cursor to a specified location.
* @param suffix The string to be added
* @param position the character within the suffix string before which to
* place the cursor
* @throws IllegalArgumentException if the position is negative or
* outside the bounds of the suffix string
*/
public ActionStartPrevLinePlusBackup(String suffix, int position) {
_suffix = suffix;
if ((position >= 0) && (position <= suffix.length())) {
_position = position;
}
else {
throw new IllegalArgumentException
("The specified position was not within the bounds of the suffix.");
}
}
/**
* Indents the line according to the previous line, with the suffix string added,
* then backs up the cursor position a number of characters.
* If on the first line, indent is set to 0.
* @param doc AbstractDJDocument containing the line to be indented.
* @param The reason that the indentation is taking place
* @return this is always false, since we are updating the cursor location
*/
public boolean indentLine(AbstractDJDocument doc, Indenter.IndentReason reason) {
super.indentLine(doc, reason);
try {
// Find start of line
int here = doc.getCurrentLocation();
int startLine = doc.getLineStartPos(here);
if (startLine > AbstractDJDocument.DOCSTART) {
// Find prefix of previous line
int startPrevLine = doc.getLineStartPos(startLine - 1);
int firstChar = doc.getLineFirstCharPos(startPrevLine);
String prefix = doc.getText(startPrevLine, firstChar - startPrevLine);
// indent and add the suffix
doc.setTab(prefix + _suffix, here);
// move the cursor to the new position
doc.setCurrentLocation(startLine + prefix.length() + _position);
}
else {
// On first line
doc.setTab(_suffix, here);
// move the cursor to the new position
doc.setCurrentLocation(here + _position);
}
return false;
}
catch (BadLocationException e) {
// Shouldn't happen
throw new UnexpectedException(e);
}
}
}
|
[
"375833274@qq.com"
] |
375833274@qq.com
|
dc79e258dd316fe6f5cae2a92c3cd7f25cf5d442
|
206d15befecdfb67a93c61c935c2d5ae7f6a79e9
|
/justdoit/SoJQGrid/src/main/java/ningbo/media/util/JqgridFilter.java
|
da6e6407324138718fd20d93b28ced17a25fa8f1
|
[] |
no_license
|
MarkChege/micandroid
|
2e4d2884929548a814aa0a7715727c84dc4dcdab
|
0b0a6dee39cf7e258b6f54e1103dcac8dbe1c419
|
refs/heads/master
| 2021-01-10T19:15:34.994670
| 2013-05-16T05:56:21
| 2013-05-16T05:56:21
| 34,704,029
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,825
|
java
|
package ningbo.media.util;
import java.util.ArrayList;
/**
* A POJO that represents a jQgrid JSON requests {@link String}<br/>
* A sample filter follows the following format:
* <pre>
* {"groupOp":"AND","rules":[{"field":"firstName","op":"eq","data":"John"}]}
* </pre>
*/
public class JqgridFilter {
private String source;
private String groupOp;
private ArrayList<Rule> rules;
public JqgridFilter() {
super();
}
public JqgridFilter(String source) {
super();
this.source = source;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public String getGroupOp() {
return groupOp;
}
public void setGroupOp(String groupOp) {
this.groupOp = groupOp;
}
public ArrayList<Rule> getRules() {
return rules;
}
public void setRules(ArrayList<Rule> rules) {
this.rules = rules;
}
/**
* Inner class containing field rules
*/
public static class Rule {
private String junction;
private String field;
private String op;
private String data;
public Rule() {}
public Rule(String junction, String field, String op, String data) {
super();
this.junction = junction;
this.field = field;
this.op = op;
this.data = data;
}
public String getJunction() {
return junction;
}
public void setJunction(String junction) {
this.junction = junction;
}
public String getField() {
return field;
}
public void setField(String field) {
this.field = field;
}
public String getOp() {
return op;
}
public void setOp(String op) {
this.op = op;
}
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
}
}
|
[
"zoopnin@gmail.com@29cfa68c-37ae-8048-bc30-ccda835e92b1"
] |
zoopnin@gmail.com@29cfa68c-37ae-8048-bc30-ccda835e92b1
|
299d5e39971f36e804f0383e53bf1f408fc68a06
|
c43a892192412d00e1d1ab8f01603204d6c45f82
|
/app/src/main/java/com/example/rapfilm/custom/StringPresenter.java
|
a636fc1e15ea5aab2abc56a6623237a8ec89a2dd
|
[] |
no_license
|
nhtlquan/rapfilm
|
987032efe781cdd98cccb31ea2ca1c0762014583
|
23e3aaa597c84b26d26b32d52550b6b8c9992c2f
|
refs/heads/master
| 2020-03-17T13:15:38.367398
| 2018-05-09T04:26:51
| 2018-05-09T04:26:51
| 133,624,127
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 503
|
java
|
package com.example.rapfilm.custom;
import android.content.Context;
import com.example.rapfilm.ui.presenter.AbstractCardPresenter;
public class StringPresenter extends AbstractCardPresenter<StringCardView> {
public StringPresenter(Context context) {
super(context);
}
protected StringCardView onCreateView() {
return new StringCardView(getContext());
}
public void onBindViewHolder(Object card, StringCardView cardView) {
cardView.updateUi(card);
}
}
|
[
"vanquan@vtvlive.vn"
] |
vanquan@vtvlive.vn
|
231ea1e15332de107faf23395c3609cea8c71f1c
|
9dc9f8dafb58dd27d4791379458b7bf60cdaebc5
|
/src/ua/practice/java/ch1_object/E10_ShowArgs.java
|
38b37691e0652f7f5eaa45838053829f800465b3
|
[] |
no_license
|
vasiliykulik/Practice-with-Bruce-Eckel
|
00dc60563b42eb0a26b8aff4365c0c60cdd5bfe3
|
dc745eef472419b43adffbb35f15fd403dcff366
|
refs/heads/master
| 2021-01-22T21:22:48.764801
| 2020-06-18T15:49:31
| 2020-06-18T15:49:31
| 85,421,493
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,180
|
java
|
package ch1_object;
/**
* Created by Vasiliy Kylik on 23.05.2017.
*/
/****************** Exercise 10 ****************
* * Write a program that prints three arguments
* taken from the command line.
* You'll need to index into the command-line
* array of Strings.
***********************************************/
public class E10_ShowArgs {
public static void main(String[] args) {
if (args.length < 3) {
System.err.println("Need 3 arguments");
System.exit(1);
}
System.out.println(args[0]);
System.out.println(args[1]);
System.out.println(args[2]);
}
/*Remember, when you want to get an argument from the command line:
• Arguments are provided in a String array.
• args[0] is the first command-line argument and not the name of the
program (as it is in C).
• You’ll cause a runtime exception if you run the program without enough
arguments.*/
/*System.exit( ) terminates the program and passes its argument back to the
operating system as a status code. (With most operating systems, a non-zero
status code indicates that the program execution failed.) Typically, you send
error messages to System.err, as shown above.*/
}
|
[
"detroi.vv@gmail.com"
] |
detroi.vv@gmail.com
|
26f7d3aaf0c7887ccda9d843c9007e7a44054744
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/23/23_3442324ccdcf45374b42e067a3a6b2ff102a0a9c/InstallWorker/23_3442324ccdcf45374b42e067a3a6b2ff102a0a9c_InstallWorker_t.java
|
dc24c36513d179106ec2a78cc12de8564ef7b94e
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 5,935
|
java
|
package de.haukerehfeld.quakeinjector;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
import javax.swing.SwingWorker;
/**
* Install maps in a worker thread
* Init once and let swing start it - don't reuse
*/
public class InstallWorker extends SwingWorker<PackageFileList, Void> {
private String url;
private String baseDirectory;
private Package map;
private long downloadSize = 0;
private long downloaded = 0;
private PackageFileList files;
public InstallWorker(Package map,
String url,
String baseDirectory) {
this.map = map;
this.url = url;
this.baseDirectory = baseDirectory;
}
@Override
public PackageFileList doInBackground() throws IOException, FileNotFoundException, Installer.CancelledException {
System.out.println("Installing " + map.getId());
try {
files = download(url);
}
catch (Installer.CancelledException e) {
System.out.println("cancelled exception!");
//throw e;
throw new OnlineFileNotFoundException();
}
map.setInstalled(true);
return files;
}
public PackageFileList download(String urlString) throws java.io.IOException, Installer.CancelledException {
URL url;
try {
url = new URL(urlString);
}
catch (java.net.MalformedURLException e) {
throw new RuntimeException("Something is wrong with the way we construct URLs");
}
URLConnection con;
InputStream in;
try {
con = url.openConnection();
this.downloadSize = con.getContentLength();
in = (InputStream) url.getContent();
}
catch (FileNotFoundException e) {
throw new OnlineFileNotFoundException(e.getMessage());
}
String relativedir = map.getRelativeBaseDir();
String unzipdir = baseDirectory;
if (relativedir != null) {
unzipdir += File.separator + relativedir;
}
return unzip(in, this.baseDirectory, unzipdir, map.getId());
}
public PackageFileList unzip(InputStream in,
String basedir,
String unzipdir,
String mapid)
throws IOException, FileNotFoundException, Installer.CancelledException {
files = new PackageFileList(mapid);
ZipInputStream zis = new ZipInputStream(new BufferedInputStream(in));
ZipEntry entry;
while((entry = zis.getNextEntry()) != null) {
File f = new File(unzipdir + File.separator + entry.getName());
//System.out.println("Processing " + f);
ArrayList<File> createdDirs = mkdirs(f);
for (File dirname: createdDirs) {
String relative = RelativePath.getRelativePath(new File(basedir), dirname);
//System.out.println("adding to installpaths: " + relative);
files.add(relative);
}
if (entry.isDirectory()) {
continue;
}
String filename = RelativePath.getRelativePath(new File(basedir), f);
files.add(filename);
System.out.println("Writing " + filename + " (" + entry.getCompressedSize() + "b)");
try {
writeFile(zis, f,
new WriteToDownloadProgress(entry.getCompressedSize(), entry.getSize()));
}
catch (FileNotFoundException e) {
files.remove(filename);
throw new FileNotWritableException(e.getMessage());
}
}
//save the mapfile list so we can uninstall
zis.close();
return files;
}
private ArrayList<File> mkdirs(File f) {
ArrayList<File> files = new ArrayList<File>();
if (f.isDirectory()) {
files.add(f);
}
File parentDir = f.getParentFile();
while (!parentDir.exists()) {
files.add(parentDir);
parentDir = parentDir.getParentFile();
}
java.util.Collections.reverse(files);
for (File dir: files) {
System.out.println("Creating dir " + dir);
dir.mkdir();
}
return files;
}
private void writeFile(InputStream in, File file, WriteToDownloadProgress progress)
throws FileNotFoundException, IOException, Installer.CancelledException {
writeFile(in, file, 2048, progress);
}
private void writeFile(InputStream in, File file, int BUFFERSIZE, WriteToDownloadProgress progress)
throws FileNotFoundException, IOException, Installer.CancelledException {
byte data[] = new byte[BUFFERSIZE];
BufferedOutputStream dest = new BufferedOutputStream(new FileOutputStream(file),
BUFFERSIZE);
int readcount;
while ((readcount = in.read(data, 0, BUFFERSIZE)) != -1) {
progress.publish(readcount);
dest.write(data, 0, readcount);
}
dest.flush();
dest.close();
}
private class WriteToDownloadProgress {
private long downloadSize;
private long writeSize;
public WriteToDownloadProgress(long downloadSize, long writeSize) {
this.downloadSize = downloadSize;
this.writeSize = writeSize;
if (writeSize <= 0) {
System.out.println("writeSize " + writeSize);
}
}
public void publish(int writtenBytes) throws Installer.CancelledException {
long downloaded = downloadSize * writtenBytes / writeSize;
addDownloaded(downloaded);
}
}
private void addDownloaded(long read) throws Installer.CancelledException {
//we do this here because this is the most frequently called portion
checkCancelled();
downloaded += read;
int progress = (int) (100 * downloaded / downloadSize);
//System.out.println("Progress(%): " + progress);
if (progress <= 100) {
setProgress(progress);
}
}
private void checkCancelled() throws Installer.CancelledException {
if (isCancelled()) {
System.out.println("canceling...");
throw new Installer.CancelledException();
}
}
public PackageFileList getInstalledFiles() {
return files;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
59ca06230cedc6b83254af7562f8f2a070d9f7e0
|
128eb90ce7b21a7ce621524dfad2402e5e32a1e8
|
/laravel-converted/src/main/java/com/project/convertedCode/includes/vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/file_SQLiteGrammar_php.java
|
42692d47b04e8085ab131736e578df21b0d6fd2c
|
[
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
RuntimeConverter/RuntimeConverterLaravelJava
|
657b4c73085b4e34fe4404a53277e056cf9094ba
|
7ae848744fbcd993122347ffac853925ea4ea3b9
|
refs/heads/master
| 2020-04-12T17:22:30.345589
| 2018-12-22T10:32:34
| 2018-12-22T10:32:34
| 162,642,356
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,237
|
java
|
package com.project.convertedCode.includes.vendor.laravel.framework.src.Illuminate.Database.Query.Grammars;
import com.runtimeconverter.runtime.RuntimeStack;
import com.runtimeconverter.runtime.interfaces.ContextConstants;
import com.runtimeconverter.runtime.includes.RuntimeIncludable;
import com.runtimeconverter.runtime.includes.IncludeEventException;
import com.runtimeconverter.runtime.classes.RuntimeClassBase;
import com.runtimeconverter.runtime.RuntimeEnv;
import com.runtimeconverter.runtime.interfaces.UpdateRuntimeScopeInterface;
import com.runtimeconverter.runtime.arrays.ZPair;
/*
Converted with The Runtime Converter (runtimeconverter.com)
vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/SQLiteGrammar.php
*/
public class file_SQLiteGrammar_php implements RuntimeIncludable {
public static final file_SQLiteGrammar_php instance = new file_SQLiteGrammar_php();
public final void include(RuntimeEnv env, RuntimeStack stack) throws IncludeEventException {
Scope1162 scope = new Scope1162();
stack.pushScope(scope);
this.include(env, stack, scope);
stack.popScope();
}
public final void include(RuntimeEnv env, RuntimeStack stack, Scope1162 scope)
throws IncludeEventException {
// Namespace import was here
// Namespace import was here
// Namespace import was here
// Conversion Note: class named SQLiteGrammar was here in the source code
env.addManualClassLoad("Illuminate\\Database\\Query\\Grammars\\SQLiteGrammar");
}
private static final ContextConstants runtimeConverterContextContantsInstance =
new ContextConstants()
.setDir("/vendor/laravel/framework/src/Illuminate/Database/Query/Grammars")
.setFile(
"/vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/SQLiteGrammar.php");
public ContextConstants getContextConstants() {
return runtimeConverterContextContantsInstance;
}
private static class Scope1162 implements UpdateRuntimeScopeInterface {
public void updateStack(RuntimeStack stack) {}
public void updateScope(RuntimeStack stack) {}
}
}
|
[
"git@runtimeconverter.com"
] |
git@runtimeconverter.com
|
faeb40bcb2c1f132c2474fbc9e7f46de1cd6edd9
|
60fd481d47bdcc768ebae0bd265fa9a676183f17
|
/xinyu-service/src/main/java/com/xinyu/service/qm/QmMethodInterface.java
|
984345fa0dee50288f9f6e87ca5f0065b26d3842
|
[] |
no_license
|
zilonglym/xinyu
|
3257d2d10187205c4f91efa4fed8e992a9419694
|
8828638b77e3e0f6da099f050476cf634ef84c7b
|
refs/heads/master
| 2020-03-09T16:49:34.758186
| 2018-03-27T06:52:46
| 2018-03-27T06:52:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 826
|
java
|
package com.xinyu.service.qm;
public interface QmMethodInterface {
/**
* 发货确认
*/
public final String METHOD_DELIVERORDER="taobao.qimen.deliveryorder.confirm";//发货确认
/**
* 发货单缺货通知接口
*/
public final String METHOD_ITEMLACK="taobao.qimen.itemlack.report";//发货单缺货通知接口
/**
* 库存盘点通知接口
*/
public final String METHOD_INVENTORY="taobao.qimen.inventory.report";//库存盘点通知接口
/**
* 仓内加工单确认接口
*/
public final String METHODD_STOREPROCESS="taobao.qimen.storeprocess.confirm";//仓内加工单确认接口
/**
* 库存异动接口
*/
public final String METHOD_STOCKCHANGE="taobao.qimen.stockchange.report";//库存异动接口
/**
* 仓库编码
*/
public final String warehouseCode="zhongcang";//
}
|
[
"36021388+zhongcangVip@users.noreply.github.com"
] |
36021388+zhongcangVip@users.noreply.github.com
|
ce8643bd52248a547892ea94151ea724de4d2d4a
|
97fd02f71b45aa235f917e79dd68b61c62b56c1c
|
/src/main/java/com/tencentcloudapi/trro/v20220325/models/ModifyProjectRequest.java
|
cb2519400575ea60583dd7b314a5c79e5ce575af
|
[
"Apache-2.0"
] |
permissive
|
TencentCloud/tencentcloud-sdk-java
|
7df922f7c5826732e35edeab3320035e0cdfba05
|
09fa672d75e5ca33319a23fcd8b9ca3d2afab1ec
|
refs/heads/master
| 2023-09-04T10:51:57.854153
| 2023-09-01T03:21:09
| 2023-09-01T03:21:09
| 129,837,505
| 537
| 317
|
Apache-2.0
| 2023-09-13T02:42:03
| 2018-04-17T02:58:16
|
Java
|
UTF-8
|
Java
| false
| false
| 4,791
|
java
|
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.trro.v20220325.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ModifyProjectRequest extends AbstractModel{
/**
* 目标修改项目的项目ID
*/
@SerializedName("ProjectId")
@Expose
private String ProjectId;
/**
* 修改后的项目名称,不填则不修改
*/
@SerializedName("ProjectName")
@Expose
private String ProjectName;
/**
* 修改后的项目描述,不填则不修改
*/
@SerializedName("ProjectDescription")
@Expose
private String ProjectDescription;
/**
* 修改后的权限模式,black为黑名单,white为白名单,不填则不修改
*/
@SerializedName("PolicyMode")
@Expose
private String PolicyMode;
/**
* Get 目标修改项目的项目ID
* @return ProjectId 目标修改项目的项目ID
*/
public String getProjectId() {
return this.ProjectId;
}
/**
* Set 目标修改项目的项目ID
* @param ProjectId 目标修改项目的项目ID
*/
public void setProjectId(String ProjectId) {
this.ProjectId = ProjectId;
}
/**
* Get 修改后的项目名称,不填则不修改
* @return ProjectName 修改后的项目名称,不填则不修改
*/
public String getProjectName() {
return this.ProjectName;
}
/**
* Set 修改后的项目名称,不填则不修改
* @param ProjectName 修改后的项目名称,不填则不修改
*/
public void setProjectName(String ProjectName) {
this.ProjectName = ProjectName;
}
/**
* Get 修改后的项目描述,不填则不修改
* @return ProjectDescription 修改后的项目描述,不填则不修改
*/
public String getProjectDescription() {
return this.ProjectDescription;
}
/**
* Set 修改后的项目描述,不填则不修改
* @param ProjectDescription 修改后的项目描述,不填则不修改
*/
public void setProjectDescription(String ProjectDescription) {
this.ProjectDescription = ProjectDescription;
}
/**
* Get 修改后的权限模式,black为黑名单,white为白名单,不填则不修改
* @return PolicyMode 修改后的权限模式,black为黑名单,white为白名单,不填则不修改
*/
public String getPolicyMode() {
return this.PolicyMode;
}
/**
* Set 修改后的权限模式,black为黑名单,white为白名单,不填则不修改
* @param PolicyMode 修改后的权限模式,black为黑名单,white为白名单,不填则不修改
*/
public void setPolicyMode(String PolicyMode) {
this.PolicyMode = PolicyMode;
}
public ModifyProjectRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public ModifyProjectRequest(ModifyProjectRequest source) {
if (source.ProjectId != null) {
this.ProjectId = new String(source.ProjectId);
}
if (source.ProjectName != null) {
this.ProjectName = new String(source.ProjectName);
}
if (source.ProjectDescription != null) {
this.ProjectDescription = new String(source.ProjectDescription);
}
if (source.PolicyMode != null) {
this.PolicyMode = new String(source.PolicyMode);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap<String, String> map, String prefix) {
this.setParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.setParamSimple(map, prefix + "ProjectName", this.ProjectName);
this.setParamSimple(map, prefix + "ProjectDescription", this.ProjectDescription);
this.setParamSimple(map, prefix + "PolicyMode", this.PolicyMode);
}
}
|
[
"tencentcloudapi@tencent.com"
] |
tencentcloudapi@tencent.com
|
c274454d620980f9f761e6ecb09c0e84e227ce27
|
983213b697dae8028c4dfba4c0df2df0e4704ce9
|
/src/main/java/com/slyak/dynip/DynipReporterApplication.java
|
6a2fc51cbc74d66202357aba19271223fd48306d
|
[] |
no_license
|
stormning/dynip-reporter
|
71b04e527531d88e5358e9ec72be585fbb565fb9
|
ae069fedca69f921f983eba114e4ab0931f0702c
|
refs/heads/master
| 2021-01-10T03:31:35.178446
| 2015-10-10T01:36:33
| 2015-10-10T01:36:33
| 43,947,872
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 583
|
java
|
package com.slyak.dynip;
import com.slyak.dynip.util.Config;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication
@EnableScheduling
@EnableConfigurationProperties({Config.class})
public class DynipReporterApplication {
public static void main(String[] args) {
SpringApplication.run(DynipReporterApplication.class, args);
}
}
|
[
"stormning@163.com"
] |
stormning@163.com
|
7d4a8e0937876d0f350b4136f9aa0ef64aa80998
|
77fb90c41fd2844cc4350400d786df99e14fa4ca
|
/m/a/NoArgsConstructor.java
|
6e6fd5badf1d1d5d106352e7389289ce94dee00b
|
[] |
no_license
|
highnes7/umaang_decompiled
|
341193b25351188d69b4413ebe7f0cde6525c8fb
|
bcfd90dffe81db012599278928cdcc6207632c56
|
refs/heads/master
| 2020-06-19T07:47:18.630455
| 2019-07-12T17:16:13
| 2019-07-12T17:16:13
| 196,615,053
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 370
|
java
|
package m.a;
import java.lang.annotation.Annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import m.a.b.c;
import m.a.javac.CommentInfo.StartConnection;
@Documented
@Retention(RetentionPolicy.RUNTIME)
@c
public @interface NoArgsConstructor
{
CommentInfo.StartConnection when();
}
|
[
"highnes.7@gmail.com"
] |
highnes.7@gmail.com
|
196ef62a4b6013f902183996db03175c8a465327
|
15b260ccada93e20bb696ae19b14ec62e78ed023
|
/v2/src/main/java/com/alipay/api/domain/AlipayDataDataservicePropertyBusinesspropertyModifyModel.java
|
e30c96580445c505cc4d28e5be01a948cf53f097
|
[
"Apache-2.0"
] |
permissive
|
alipay/alipay-sdk-java-all
|
df461d00ead2be06d834c37ab1befa110736b5ab
|
8cd1750da98ce62dbc931ed437f6101684fbb66a
|
refs/heads/master
| 2023-08-27T03:59:06.566567
| 2023-08-22T14:54:57
| 2023-08-22T14:54:57
| 132,569,986
| 470
| 207
|
Apache-2.0
| 2022-12-25T07:37:40
| 2018-05-08T07:19:22
|
Java
|
UTF-8
|
Java
| false
| false
| 3,719
|
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, 2019-10-16 21:35:53
*/
public class AlipayDataDataservicePropertyBusinesspropertyModifyModel extends AlipayObject {
private static final long serialVersionUID = 8839657253145164475L;
/**
* 业务负责人工号
*/
@ApiField("biz_owner_id")
private String bizOwnerId;
/**
* 业务画像消费类目id
*/
@ApiField("business_profile_category_id")
private String businessProfileCategoryId;
/**
* 业务画像标签id
*/
@ApiField("business_property_id")
private String businessPropertyId;
/**
* 创建人工号
*/
@ApiField("creator_id")
private String creatorId;
/**
* 数据负责人工号
*/
@ApiField("data_owner_id")
private String dataOwnerId;
/**
* 数据类型 NUMBER("数值型"), STRING("文本型"), DATE("日期型"), ENUM("枚举型"), LBS("经纬度类");
*/
@ApiField("data_type")
private String dataType;
/**
* 当数据类型为枚举型时,要指定枚举ID
*/
@ApiField("enum_id")
private String enumId;
/**
* 个性化信息,jsonarray字符串
*/
@ApiListField("personality_info")
@ApiField("string")
private List<String> personalityInfo;
/**
* 统计类型 ETL("ETL统计"), MODEL("模型预测")
*/
@ApiField("proc_type")
private String procType;
/**
* 标签描述
*/
@ApiField("property_desc")
private String propertyDesc;
/**
* 标签名称
*/
@ApiField("propery_name")
private String properyName;
/**
* 质量负责人工号
*/
@ApiField("quality_owner_id")
private String qualityOwnerId;
public String getBizOwnerId() {
return this.bizOwnerId;
}
public void setBizOwnerId(String bizOwnerId) {
this.bizOwnerId = bizOwnerId;
}
public String getBusinessProfileCategoryId() {
return this.businessProfileCategoryId;
}
public void setBusinessProfileCategoryId(String businessProfileCategoryId) {
this.businessProfileCategoryId = businessProfileCategoryId;
}
public String getBusinessPropertyId() {
return this.businessPropertyId;
}
public void setBusinessPropertyId(String businessPropertyId) {
this.businessPropertyId = businessPropertyId;
}
public String getCreatorId() {
return this.creatorId;
}
public void setCreatorId(String creatorId) {
this.creatorId = creatorId;
}
public String getDataOwnerId() {
return this.dataOwnerId;
}
public void setDataOwnerId(String dataOwnerId) {
this.dataOwnerId = dataOwnerId;
}
public String getDataType() {
return this.dataType;
}
public void setDataType(String dataType) {
this.dataType = dataType;
}
public String getEnumId() {
return this.enumId;
}
public void setEnumId(String enumId) {
this.enumId = enumId;
}
public List<String> getPersonalityInfo() {
return this.personalityInfo;
}
public void setPersonalityInfo(List<String> personalityInfo) {
this.personalityInfo = personalityInfo;
}
public String getProcType() {
return this.procType;
}
public void setProcType(String procType) {
this.procType = procType;
}
public String getPropertyDesc() {
return this.propertyDesc;
}
public void setPropertyDesc(String propertyDesc) {
this.propertyDesc = propertyDesc;
}
public String getProperyName() {
return this.properyName;
}
public void setProperyName(String properyName) {
this.properyName = properyName;
}
public String getQualityOwnerId() {
return this.qualityOwnerId;
}
public void setQualityOwnerId(String qualityOwnerId) {
this.qualityOwnerId = qualityOwnerId;
}
}
|
[
"auto-publish"
] |
auto-publish
|
46d669ac6286f39853e6e5bbdae509790637fff7
|
0d71dd0aa1c7e336008f9da88e9ac10a5668fa19
|
/it.ltc.services.custom/src/main/java/it/ltc/services/custom/authentication/CustomAuthenticationProvider.java
|
5dcca6f6f19f1aa8bead1131a1f792c03e79a0f2
|
[] |
no_license
|
Dufler/webservices
|
6f27cd674b605bceded296cefb56006ec3ac50b8
|
2efecfe088f6d0d5c67ecdec3cacd92932ecc0d1
|
refs/heads/master
| 2022-12-24T14:52:16.132351
| 2019-06-04T13:31:32
| 2019-06-04T13:31:32
| 130,059,064
| 0
| 0
| null | 2022-12-16T05:12:30
| 2018-04-18T12:30:05
|
Java
|
UTF-8
|
Java
| false
| false
| 2,923
|
java
|
package it.ltc.services.custom.authentication;
import java.util.ArrayList;
import java.util.Collection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;
import org.springframework.stereotype.Component;
import it.ltc.database.model.utente.UtenteUtenti;
import it.ltc.services.custom.controller.LoginController;
/**
* Classe atta all'autenticazione delle richieste fatte dagli utenti tramite BASIC AUTH su HTTP.
* @author Damiano
*
*/
@Component
public class CustomAuthenticationProvider implements AuthenticationProvider {
private static final ArrayList<Role> authorities = new ArrayList<Role>();
private static final String INVALID_CREDENTIALS = "Login fallito: username o password non validi.";
@Autowired
private LoginController loginManager;
// public CustomAuthenticationProvider() {
// loginManager = LoginController.getInstance();
// }
@Override
public Authentication authenticate(Authentication authentication) throws AuthenticationException {
String username = authentication.getName();
String password = (String) authentication.getCredentials();
UtenteUtenti user = loginManager.getUserByUsernameAndPassword(username, password);
if (user == null)
throw new BadCredentialsException(INVALID_CREDENTIALS);
//throw new CustomException(INVALID_CREDENTIALS, 401);
UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken(username, password, getAuthorities());
return token;
}
@Override
public boolean supports(Class<?> c) {
return true;
}
/**
* Questo metodo va cambiato per far restituire il giusto ruolo dell'utente:
* lato DB, tabella Utente: aggiungere la colonna 'ruolo', potrebbe contenere in chiaro una lista di ruoli separati da una virgola.
* lato DB, soluzione alternativa: fare tabella 'ruolo' e una join table con utente dove vengono indicati i ruoli attribuiti all'utente.
* qui: questo metodo deve accettare come argomento un'oggetto POJO Utente e ricavarne i ruoli, restituisce poi una Collection di Role
* qui, soluzione alternativa: l'oggetto POJO ruolo implementa l'interface di Role e lo soppianta del tutto.
* xml spring security: diversificare i path dove necessario in base ai ruoli definiti.
* TODO - implementare una delle due soluzioni.
* @return
*/
private static Collection<Role> getAuthorities() {
if (authorities.isEmpty()) {
authorities.add(new Role());
}
return authorities;
}
}
|
[
"Damiano@Damiano-PC"
] |
Damiano@Damiano-PC
|
9ebda1d13880be42a2e325e716ee1b93de57485c
|
5e3cfc138ca45746cbd8ed1fc8eccaa59cd0840b
|
/Homeless/Android/Homeless_com.positivelymade.homeless_source_from_JADX/android/support/v4/view/ab.java
|
ac57b4458ec543beadff4a380388cc6318730c8d
|
[] |
no_license
|
ycourteau/PedagogiqueProjets
|
18011979f797bacd5f6b87bd6e6866ebc83752f9
|
7704cf3e431f34b408f874d908132af9aa498c7b
|
refs/heads/master
| 2021-06-27T21:30:17.028954
| 2019-05-08T17:26:29
| 2019-05-08T17:26:29
| 110,717,560
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 162
|
java
|
package android.support.v4.view;
import android.view.View;
class ab {
public static int m789a(View view) {
return view.getOverScrollMode();
}
}
|
[
"ycourteau@collegeshawinigan.qc.ca"
] |
ycourteau@collegeshawinigan.qc.ca
|
7d5009db85aa43785ce024c5d86f1a93cc2f3aa5
|
262b91ee24fd9ff49aa0f74aa9f3867cb13b63e8
|
/Other/MBIT 2020 Fall/CMBIT.java
|
f575ffa23f808d70720df9d10eaad8463ffdedcc
|
[] |
no_license
|
Senpat/Competitive-Programming
|
ec169b1ed9ee85186768b72479b38391df9234b3
|
d13731811eb310fb3d839e9a8e8200975d926321
|
refs/heads/master
| 2023-06-23T01:25:35.209727
| 2023-06-15T02:55:48
| 2023-06-15T02:55:48
| 146,513,522
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,105
|
java
|
//make sure to make new file!
import java.io.*;
import java.util.*;
public class CMBIT{
public static void main(String[] args)throws IOException{
BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
PrintWriter out = new PrintWriter(System.out);
int n = Integer.parseInt(f.readLine());
StringTokenizer st1 = new StringTokenizer(f.readLine());
StringTokenizer st2 = new StringTokenizer(f.readLine());
int[] a = new int[n];
int[] b = new int[n];
int[] indexofa = new int[n+1];
for(int k = 0; k < n; k++){
a[k] = Integer.parseInt(st1.nextToken());
b[k] = Integer.parseInt(st2.nextToken());
indexofa[a[k]] = k;
}
long numbelow = 0L;
long numat = 0L;
long numabove = 0L;
long answer = 0L;
int[] rotfreq = new int[n];
for(int k = 0; k < n; k++){
if(k < indexofa[b[k]]){
numbelow++;
rotfreq[indexofa[b[k]]-k]++;
}
if(k == indexofa[b[k]]) numat++;
if(k > indexofa[b[k]]){
numabove++;
rotfreq[indexofa[b[k]]-k+n]++;
}
answer += (long)Math.abs(k-indexofa[b[k]]);
}
//out.println(answer);
long prevanswer = answer;
for(int k = 1; k < n; k++){
long curanswer = prevanswer;
curanswer -= numbelow;
curanswer += (numat + numabove);
numabove += numat;
numat = rotfreq[k];
numbelow -= numat;
//update last
numabove--;
numbelow++;
curanswer -= (long)Math.abs(n-indexofa[b[n-k]]);
curanswer += (long)indexofa[b[n-k]];
answer = Math.min(answer,curanswer);
prevanswer = curanswer;
//out.println(curanswer);
}
out.println(answer);
out.close();
}
}
|
[
"pgz11902@gmail.com"
] |
pgz11902@gmail.com
|
b3eb6ae377e936c2a3bfd3fb6233a108dc855bd9
|
82e2fa3b1128edc8abd2bd84ecfc01c932831bc0
|
/jena-arq/src/main/java/org/apache/jena/riot/thrift/RiotThriftException.java
|
13e3ebae170a4d56f4f91caea8ba34afe7f8d901
|
[
"BSD-3-Clause",
"Apache-2.0"
] |
permissive
|
apache/jena
|
b64f6013582f2b5aa38d1c9972d7b14e55686316
|
fb41e79d97f065b8df9ebbc6c69b3f983b6cde04
|
refs/heads/main
| 2023-08-14T15:16:21.086308
| 2023-08-03T08:34:08
| 2023-08-03T08:34:08
| 7,437,073
| 966
| 760
|
Apache-2.0
| 2023-09-02T09:04:08
| 2013-01-04T08:00:32
|
Java
|
UTF-8
|
Java
| false
| false
| 1,251
|
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.jena.riot.thrift;
import org.apache.jena.riot.RiotException ;
public class RiotThriftException extends RiotException {
public RiotThriftException() { super() ; }
public RiotThriftException(String msg) { super(msg) ; }
public RiotThriftException(Throwable th) { super(th) ; }
public RiotThriftException(String msg, Throwable th) { super(msg, th) ; }
}
|
[
"andy@apache.org"
] |
andy@apache.org
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.