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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7a4a655a337c0f99a185d0f15d0a46bf6fe54635
|
7742fee89a60c69f77cd14c8cc7c8c67d14ddef1
|
/sql-processor-hibernate/src/main/java/org/sqlproc/engine/hibernate/type/HibernateType.java
|
c08212ca9e03dbf9f9cd7d6bb8bc29c34dc0e7e5
|
[] |
no_license
|
nathieb/sql-processor
|
87b6b85c2c3197d46b557b4cffe1ec04831f77c7
|
a13f6cacf8f753d3dc3d15f2b29ca9e436cf0cad
|
refs/heads/master
| 2020-12-25T10:38:19.167778
| 2012-02-29T08:53:21
| 2012-02-29T08:53:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,918
|
java
|
package org.sqlproc.engine.hibernate.type;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import org.hibernate.Hibernate;
import org.hibernate.type.PrimitiveType;
import org.hibernate.type.Type;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.sqlproc.engine.SqlQuery;
import org.sqlproc.engine.SqlRuntimeException;
import org.sqlproc.engine.impl.BeanUtils;
import org.sqlproc.engine.type.SqlMetaType;
/**
* The general Hibernate META type.
*
* @author <a href="mailto:Vladimir.Hudec@gmail.com">Vladimir Hudec</a>
*/
public class HibernateType extends SqlMetaType {
/**
* The internal slf4j logger.
*/
protected static final Logger logger = LoggerFactory.getLogger(HibernateType.class);
/**
* The map between the Hibernate types names and the Hibernate types.
*/
static Map<String, Field> hibernateTypes = new HashMap<String, Field>();
static {
Field[] fields = Hibernate.class.getFields();
for (Field f : fields) {
if (!Modifier.isStatic(f.getModifiers()))
continue;
try {
if (f.get(null) instanceof Type)
hibernateTypes.put(f.getName().toUpperCase(), f);
} catch (IllegalArgumentException e) {
throw e;
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
}
}
}
/**
* The Hibernate type. A standard way to assign the type of a parameter/scalar binding to the Hibernate Query.
*/
private Type hibernateType;
/**
* Creates a new instance of general Hibernate type based on the declaration in the META SQL statement.
*
* @param sMetaType
* the name of the Hibernate type, for example INTEGER
*/
public HibernateType(String sMetaType) {
String sHibernateType = sMetaType.toUpperCase();
Field f = hibernateTypes.get(sHibernateType);
if (f != null) {
try {
this.hibernateType = (Type) f.get(null);
} catch (IllegalArgumentException e) {
throw new RuntimeException(e);
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
}
} else {
throw new SqlRuntimeException("Unsupported Hibernate Type " + sHibernateType);
}
}
/**
* {@inheritDoc}
*/
public void addScalar(SqlQuery query, String dbName, Class<?> attributeType) {
query.addScalar(dbName, hibernateType);
}
/**
* {@inheritDoc}
*/
@Override
public void setResult(Object resultInstance, String attributeName, Object resultValue, boolean ingoreError)
throws SqlRuntimeException {
if (logger.isTraceEnabled()) {
logger.trace(">>> setResult HIBERNATE: resultInstance=" + resultInstance + ", attributeName="
+ attributeName + ", resultValue=" + resultValue + ", resultType"
+ ((resultValue != null) ? resultValue.getClass() : null) + ", hibernateType=" + hibernateType);
}
Method m = BeanUtils.getSetter(resultInstance, attributeName, hibernateType.getReturnedClass());
if (m == null && hibernateType instanceof PrimitiveType)
m = BeanUtils.getSetter(resultInstance, attributeName, ((PrimitiveType) hibernateType).getPrimitiveClass());
if (m == null && hibernateType.getReturnedClass() == java.util.Date.class)
m = BeanUtils.getSetter(resultInstance, attributeName, java.sql.Timestamp.class);
if (m != null) {
BeanUtils.simpleInvokeMethod(m, resultInstance, resultValue);
} else if (ingoreError) {
logger.error("There's no getter for " + attributeName + " in " + resultInstance
+ ", META type is HIBERNATE");
} else {
throw new SqlRuntimeException("There's no setter for " + attributeName + " in " + resultInstance
+ ", META type is HIBERNATE");
}
}
/**
* {@inheritDoc}
*/
@Override
public void setParameter(SqlQuery query, String paramName, Object inputValue, Class<?> inputType,
boolean ingoreError) throws SqlRuntimeException {
if (logger.isTraceEnabled()) {
logger.trace(">>> setParameter HIBERNATE: paramName=" + paramName + ", inputValue=" + inputValue
+ ", inputType=" + inputType + ", hibernateType=" + hibernateType);
}
if (inputValue instanceof Collection) {
query.setParameterList(paramName, ((Collection) inputValue).toArray(), hibernateType);
} else {
query.setParameter(paramName, inputValue, hibernateType);
}
}
}
|
[
"Vladimir.Hudec@gmail.com"
] |
Vladimir.Hudec@gmail.com
|
361e43d1a2a5eb299738a1c74b1f048860674e25
|
c9bf8341047cc07717cd2d8966aca2402f5f0158
|
/designPatterns/src/wyc/factoryMethod/BydFactory.java
|
f1a14a91ec49c02ce5ff086987b95356785c6abc
|
[] |
no_license
|
wangyc0104/Java_DesignPatterns
|
5d6dda3a153fb1fcf3b4a3fbede6daf0d05d0bf0
|
e4c2664f3e9479c5337a38c845133c65b24a2f62
|
refs/heads/master
| 2020-05-24T07:45:16.093902
| 2019-08-12T12:33:48
| 2019-08-12T12:33:48
| 187,168,323
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 150
|
java
|
package wyc.factoryMethod;
public class BydFactory implements CarFactory {
@Override
public Car createCar() {
return new Byd();
}
}
|
[
"wangyc0104@126.com"
] |
wangyc0104@126.com
|
4de3bb5b2b24a96b761a0f9f72978a33030ba0d4
|
dafdbbb0234b1f423970776259c985e6b571401f
|
/graphics/opengl/OpenGLESJavaLibraryM/src/main/java/org/allbinary/image/opengles/OpenGLESGL11ExtImage.java
|
6c7a9488774756c7946f1b46063347f179eff903
|
[
"LicenseRef-scancode-warranty-disclaimer"
] |
no_license
|
biddyweb/AllBinary-Platform
|
3581664e8613592b64f20fc3f688dc1515d646ae
|
9b61bc529b0a5e2c647aa1b7ba59b6386f7900ad
|
refs/heads/master
| 2020-12-03T10:38:18.654527
| 2013-11-17T11:17:35
| 2013-11-17T11:17:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,636
|
java
|
/*
* AllBinary Open License Version 1
* Copyright (c) 2011 AllBinary
*
* By agreeing to this license you and any business entity you represent are
* legally bound to the AllBinary Open License Version 1 legal agreement.
*
* You may obtain the AllBinary Open License Version 1 legal agreement from
* AllBinary or the root directory of AllBinary's AllBinary Platform repository.
*
* Created By: Travis Berthelot
*
*/
package org.allbinary.image.opengles;
import javax.microedition.khronos.opengles.GL;
import javax.microedition.khronos.opengles.GL10;
import javax.microedition.khronos.opengles.GL11;
import javax.microedition.khronos.opengles.GL11Ext;
import javax.microedition.lcdui.Image;
import org.allbinary.graphics.opengles.OpenGLLogUtil;
import org.allbinary.graphics.opengles.TextureFactory;
import abcs.logic.basic.string.CommonStrings;
import abcs.logic.communication.log.LogFactory;
import abcs.logic.communication.log.LogUtil;
import allbinary.graphics.displayable.DisplayInfoSingleton;
import allbinary.graphics.displayable.event.DisplayChangeEvent;
//Many devices don't support this even though it is supposed to
public class OpenGLESGL11ExtImage extends OpenGLESImage
{
// private IntBuffer rectParams;
private int a;
private final int[] rectangle;
public OpenGLESGL11ExtImage(Image image)
{
super(image);
this.onDisplayChangeEvent(null);
rectangle = new int[]
{ 0, this.getHeight(), this.getWidth(), -this.getHeight() };
}
/*
public OpenGLESGL11ExtImage(GL10 gl, Image image, boolean matchColor)
{
super(gl, image, matchColor);
this.onDisplayChangeEvent(null);
rectangle = new int[]
{ 0, this.getHeight(), this.getWidth(), -this.getHeight() };
this.update(gl);
}
*/
public void onDisplayChangeEvent(DisplayChangeEvent displayChangeEvent)
{
try
{
LogUtil.put(LogFactory.getInstance(CommonStrings.getInstance().START, this, "onResize"));
this.a = DisplayInfoSingleton.getInstance().getLastHeight() - this.getHeight();
}
catch(Exception e)
{
LogUtil.put(LogFactory.getInstance(CommonStrings.getInstance().EXCEPTION, this, "onResize", e));
}
}
public void set(GL gl)
{
this.onDisplayChangeEvent(null);
GL11 gl11 = (GL11) gl;
if (super.initTexture(gl11))
{
// IntBuffer rectBB = IntBuffer.allocate(rect.length);
// rectBB.order();
// rectParams = rectBB;
// rectParams.put(rect);
//if(!this.matchColor)
//{
//gl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE,
// GL10.GL_REPLACE);
//((GL11) gl).glTexEnvi(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE,
// GL10.GL_REPLACE);
//}
TextureFactory.getInstance().load(GL10.GL_TEXTURE_2D, 0, this, 0);
gl11.glTexParameteriv(GL10.GL_TEXTURE_2D, GL11Ext.GL_TEXTURE_CROP_RECT_OES, rectangle, 0);
gl11.glDisable(GL10.GL_TEXTURE_2D);
OpenGLLogUtil.getInstance().logError(gl11, this);
}
}
public void draw(GL10 gl, int x, int y, int z)
{
gl.glEnable(GL10.GL_TEXTURE_2D);
gl.glBindTexture(GL10.GL_TEXTURE_2D, textureID);
//glDrawTexiOES
((GL11Ext) gl).glDrawTexfOES(x, a - y, z, this.getWidth(), this.getHeight());
gl.glDisable(GL10.GL_TEXTURE_2D);
}
}
|
[
"travisberthelot@hotmail.com"
] |
travisberthelot@hotmail.com
|
1184fbaaa797b4247096188831929bb12e7feb00
|
a5dbeadebfd268a529d6a012fb23dc0b635f9b8c
|
/core/src/main/java/ru/mipt/cybersecurity/pqc/asn1/XMSSMTPublicKey.java
|
3f07ada5021a55fd8f2921b4797c701153176838
|
[
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] |
permissive
|
skhvostyuk/CyberSecurity
|
22f6a272e38b56bfb054aae0dd7aa03bc96b6d06
|
33ea483df41973984d0edbe47a20201b204150aa
|
refs/heads/master
| 2021-08-29T04:44:31.041415
| 2017-12-13T12:15:29
| 2017-12-13T12:15:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,162
|
java
|
package ru.mipt.cybersecurity.pqc.asn1;
import java.math.BigInteger;
import ru.mipt.cybersecurity.asn1.ASN1EncodableVector;
import ru.mipt.cybersecurity.asn1.ASN1Integer;
import ru.mipt.cybersecurity.asn1.ASN1Object;
import ru.mipt.cybersecurity.asn1.ASN1Primitive;
import ru.mipt.cybersecurity.asn1.ASN1Sequence;
import ru.mipt.cybersecurity.asn1.DEROctetString;
import ru.mipt.cybersecurity.asn1.DERSequence;
import ru.mipt.cybersecurity.util.Arrays;
/**
* XMSSMTPublicKey
* <pre>
* XMSSMTPublicKey ::= SEQUENCE {
* version INTEGER -- 0
* publicSeed OCTET STRING
* root OCTET STRING
* }
* </pre>
*/
public class XMSSMTPublicKey
extends ASN1Object
{
private final byte[] publicSeed;
private final byte[] root;
public XMSSMTPublicKey(byte[] publicSeed, byte[] root)
{
this.publicSeed = Arrays.clone(publicSeed);
this.root = Arrays.clone(root);
}
private XMSSMTPublicKey(ASN1Sequence seq)
{
if (!ASN1Integer.getInstance(seq.getObjectAt(0)).getValue().equals(BigInteger.valueOf(0)))
{
throw new IllegalArgumentException("unknown version of sequence");
}
this.publicSeed = Arrays.clone(DEROctetString.getInstance(seq.getObjectAt(1)).getOctets());
this.root = Arrays.clone(DEROctetString.getInstance(seq.getObjectAt(2)).getOctets());
}
public static XMSSMTPublicKey getInstance(Object o)
{
if (o instanceof XMSSMTPublicKey)
{
return (XMSSMTPublicKey)o;
}
else if (o != null)
{
return new XMSSMTPublicKey(ASN1Sequence.getInstance(o));
}
return null;
}
public byte[] getPublicSeed()
{
return Arrays.clone(publicSeed);
}
public byte[] getRoot()
{
return Arrays.clone(root);
}
public ASN1Primitive toASN1Primitive()
{
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(new ASN1Integer(0)); // version
v.add(new DEROctetString(publicSeed));
v.add(new DEROctetString(root));
return new DERSequence(v);
}
}
|
[
"hvostuksergey@gmail.com"
] |
hvostuksergey@gmail.com
|
b64d7d9c19a2248386e61773874d303019b883e8
|
9e97f2c9948b7f14e3f402e174adee06faea0eec
|
/src/main/java/br/indie/fiscal4j/nfe310/webservices/WSCancelamento.java
|
faf2106b4796159c1a02c5d301d211c36003f2c3
|
[
"Apache-2.0"
] |
permissive
|
andrauz/fiscal4j
|
1d16a4d56275c9fa50499fb9204fd60445ffd201
|
fe5558337a389f807040d92a6d140d4a2fa937d4
|
refs/heads/master
| 2020-04-25T01:13:47.253714
| 2019-02-15T19:29:18
| 2019-02-15T19:29:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,203
|
java
|
package br.indie.fiscal4j.nfe310.webservices;
import br.indie.fiscal4j.DFModelo;
import br.indie.fiscal4j.assinatura.AssinaturaDigital;
import br.indie.fiscal4j.nfe.NFeConfig;
import br.indie.fiscal4j.nfe310.classes.NFAutorizador31;
import br.indie.fiscal4j.nfe310.classes.evento.NFEnviaEventoRetorno;
import br.indie.fiscal4j.nfe310.classes.evento.cancelamento.NFEnviaEventoCancelamento;
import br.indie.fiscal4j.nfe310.classes.evento.cancelamento.NFEventoCancelamento;
import br.indie.fiscal4j.nfe310.classes.evento.cancelamento.NFInfoCancelamento;
import br.indie.fiscal4j.nfe310.classes.evento.cancelamento.NFInfoEventoCancelamento;
import br.indie.fiscal4j.nfe310.parsers.NotaFiscalChaveParser;
import br.indie.fiscal4j.nfe310.webservices.gerado.RecepcaoEventoStub;
import br.indie.fiscal4j.nfe310.webservices.gerado.RecepcaoEventoStub.NfeCabecMsg;
import br.indie.fiscal4j.nfe310.webservices.gerado.RecepcaoEventoStub.NfeCabecMsgE;
import br.indie.fiscal4j.nfe310.webservices.gerado.RecepcaoEventoStub.NfeDadosMsg;
import br.indie.fiscal4j.nfe310.webservices.gerado.RecepcaoEventoStub.NfeRecepcaoEventoResult;
import br.indie.fiscal4j.persister.DFPersister;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.util.AXIOMUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.math.BigDecimal;
import java.time.ZonedDateTime;
import java.util.Collections;
class WSCancelamento {
private static final String DESCRICAO_EVENTO = "Cancelamento";
private static final BigDecimal VERSAO_LEIAUTE = new BigDecimal("1.00");
private static final String EVENTO_CANCELAMENTO = "110111";
private static final Logger LOGGER = LoggerFactory.getLogger(WSCancelamento.class);
private final NFeConfig config;
WSCancelamento(final NFeConfig config) {
this.config = config;
}
NFEnviaEventoRetorno cancelaNotaAssinada(final String chaveAcesso, final String eventoAssinadoXml) throws Exception {
final OMElement omElementResult = this.efetuaCancelamento(eventoAssinadoXml, chaveAcesso);
return new DFPersister().read(NFEnviaEventoRetorno.class, omElementResult.toString());
}
NFEnviaEventoRetorno cancelaNota(final String chaveAcesso, final String numeroProtocolo, final String motivo) throws Exception {
final String cancelamentoNotaXML = this.gerarDadosCancelamento(chaveAcesso, numeroProtocolo, motivo).toString();
final String xmlAssinado = new AssinaturaDigital(this.config).assinarDocumento(cancelamentoNotaXML);
final OMElement omElementResult = this.efetuaCancelamento(xmlAssinado, chaveAcesso);
return new DFPersister().read(NFEnviaEventoRetorno.class, omElementResult.toString());
}
private OMElement efetuaCancelamento(final String xmlAssinado, final String chaveAcesso) throws Exception {
final RecepcaoEventoStub.NfeCabecMsg cabecalho = new NfeCabecMsg();
cabecalho.setCUF(this.config.getCUF().getCodigoIbge());
cabecalho.setVersaoDados(WSCancelamento.VERSAO_LEIAUTE.toPlainString());
final RecepcaoEventoStub.NfeCabecMsgE cabecalhoE = new NfeCabecMsgE();
cabecalhoE.setNfeCabecMsg(cabecalho);
final RecepcaoEventoStub.NfeDadosMsg dados = new NfeDadosMsg();
final OMElement omElementXML = AXIOMUtil.stringToOM(xmlAssinado);
WSCancelamento.LOGGER.debug(omElementXML.toString());
dados.setExtraElement(omElementXML);
final NotaFiscalChaveParser parser = new NotaFiscalChaveParser(chaveAcesso);
final NFAutorizador31 autorizador = NFAutorizador31.valueOfChaveAcesso(chaveAcesso);
final String urlWebService = DFModelo.NFCE.equals(parser.getModelo()) ? autorizador.getNfceRecepcaoEvento(this.config.getAmbiente()) : autorizador.getRecepcaoEvento(this.config.getAmbiente());
if (urlWebService == null) {
throw new IllegalArgumentException("Nao foi possivel encontrar URL para RecepcaoEvento " + parser.getModelo().name() + ", autorizador " + autorizador.name());
}
final NfeRecepcaoEventoResult nfeRecepcaoEvento = new RecepcaoEventoStub(urlWebService).nfeRecepcaoEvento(dados, cabecalhoE);
final OMElement omElementResult = nfeRecepcaoEvento.getExtraElement();
WSCancelamento.LOGGER.debug(omElementResult.toString());
return omElementResult;
}
private NFEnviaEventoCancelamento gerarDadosCancelamento(final String chaveAcesso, final String numeroProtocolo, final String motivo) {
final NotaFiscalChaveParser chaveParser = new NotaFiscalChaveParser(chaveAcesso);
final NFInfoCancelamento cancelamento = new NFInfoCancelamento();
cancelamento.setDescricaoEvento(WSCancelamento.DESCRICAO_EVENTO);
cancelamento.setVersao(WSCancelamento.VERSAO_LEIAUTE);
cancelamento.setJustificativa(motivo);
cancelamento.setProtocoloAutorizacao(numeroProtocolo);
final NFInfoEventoCancelamento infoEvento = new NFInfoEventoCancelamento();
infoEvento.setAmbiente(this.config.getAmbiente());
infoEvento.setChave(chaveAcesso);
infoEvento.setCnpj(chaveParser.getCnpjEmitente());
infoEvento.setDataHoraEvento(ZonedDateTime.now(this.config.getTimeZone().toZoneId()));
infoEvento.setId(String.format("ID%s%s0%s", WSCancelamento.EVENTO_CANCELAMENTO, chaveAcesso, "1"));
infoEvento.setNumeroSequencialEvento(1);
infoEvento.setOrgao(chaveParser.getNFUnidadeFederativa());
infoEvento.setCodigoEvento(WSCancelamento.EVENTO_CANCELAMENTO);
infoEvento.setVersaoEvento(WSCancelamento.VERSAO_LEIAUTE);
infoEvento.setCancelamento(cancelamento);
final NFEventoCancelamento evento = new NFEventoCancelamento();
evento.setInfoEvento(infoEvento);
evento.setVersao(WSCancelamento.VERSAO_LEIAUTE);
final NFEnviaEventoCancelamento enviaEvento = new NFEnviaEventoCancelamento();
enviaEvento.setEvento(Collections.singletonList(evento));
enviaEvento.setIdLote(Long.toString(ZonedDateTime.now(this.config.getTimeZone().toZoneId()).toInstant().toEpochMilli()));
enviaEvento.setVersao(WSCancelamento.VERSAO_LEIAUTE);
return enviaEvento;
}
}
|
[
"jeferson.hck@gmail.com"
] |
jeferson.hck@gmail.com
|
4fd4578ea632068268567ce56e89181d361ca52b
|
76936cf1ad93a7a02ed4bd8630537a9b332da53d
|
/support/cas-server-support-passwordless-jpa/src/test/java/org/apereo/cas/impl/token/JpaPasswordlessTokenRepositoryTests.java
|
d391135bbd4384fd7f4485c23e9045a644c232a6
|
[
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
amasr/cas
|
07d72bced7aac41f5071c2a7f6691123becffa91
|
513a708796e458285747210ccfe3c214f761402a
|
refs/heads/master
| 2022-11-17T05:10:26.604549
| 2022-11-07T04:26:53
| 2022-11-07T04:26:53
| 239,546,074
| 0
| 0
|
Apache-2.0
| 2020-02-10T15:34:05
| 2020-02-10T15:34:04
| null |
UTF-8
|
Java
| false
| false
| 2,230
|
java
|
package org.apereo.cas.impl.token;
import org.apereo.cas.api.PasswordlessTokenRepository;
import org.apereo.cas.config.CasHibernateJpaConfiguration;
import org.apereo.cas.config.JpaPasswordlessAuthenticationConfiguration;
import org.apereo.cas.impl.BasePasswordlessUserAccountStoreTests;
import lombok.Getter;
import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;
import org.springframework.test.context.TestPropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import java.util.UUID;
import static org.junit.jupiter.api.Assertions.*;
/**
* This is {@link JpaPasswordlessTokenRepositoryTests}.
*
* @author Misagh Moayyed
* @since 6.2.0
*/
@EnableTransactionManagement(proxyTargetClass = false)
@EnableAspectJAutoProxy(proxyTargetClass = false)
@Getter
@Tag("JDBC")
@Import({
CasHibernateJpaConfiguration.class,
JpaPasswordlessAuthenticationConfiguration.class
})
@TestPropertySource(properties = "cas.jdbc.show-sql=false")
public class JpaPasswordlessTokenRepositoryTests extends BasePasswordlessUserAccountStoreTests {
@Autowired
@Qualifier(PasswordlessTokenRepository.BEAN_NAME)
private PasswordlessTokenRepository repository;
@Test
public void verifyAction() {
val uid = UUID.randomUUID().toString();
val token = repository.createToken(uid);
assertTrue(repository.findToken(uid).isEmpty());
repository.saveToken(uid, token);
assertTrue(repository.findToken(uid).isPresent());
repository.deleteToken(uid, token);
assertTrue(repository.findToken(uid).isEmpty());
}
@Test
public void verifyCleaner() {
val uid = UUID.randomUUID().toString();
val token = repository.createToken(uid);
repository.saveToken(uid, token);
assertTrue(repository.findToken(uid).isPresent());
repository.clean();
assertTrue(repository.findToken(uid).isEmpty());
}
}
|
[
"mm1844@gmail.com"
] |
mm1844@gmail.com
|
905bcf60b5342ad2791859a5fc956d93b2e2b62d
|
bcc75c13d5e34025cecc4991df685b59147cd98a
|
/boot-user-service-provider/src/main/java/com/itheima/bootuserserviceprovider/service/impl/UserServiceImpl.java
|
0f73376ce3198676b264cb1c3e45868f6c4c46c5
|
[] |
no_license
|
syngebee/dubboDemo
|
47752d561c8d3f8e3f72b63bbf93eea770afc105
|
30ee18eeafd5465fa666f8eee1474fc81a9a2da1
|
refs/heads/master
| 2022-12-20T22:51:38.101205
| 2020-09-15T08:06:00
| 2020-09-15T08:06:00
| 295,633,013
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,157
|
java
|
package com.itheima.bootuserserviceprovider.service.impl;
import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.pojo.UserAddress;
import com.itheima.service.UserService;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List;
@Service
@Component
public class UserServiceImpl implements UserService {
@HystrixCommand
@Override
public List<UserAddress> getUserAddressList() {
System.out.println("userService2");
UserAddress userAddress1 = new UserAddress(1, "上海市浦东新区", "2", "陈老师", "13916427105", "true");
UserAddress userAddress2 = new UserAddress(2, "上海市奉贤区", "3", "秦老师", "13916427105", "true");
ArrayList<UserAddress> userAddresses = new ArrayList<>();
userAddresses.add(userAddress1);
userAddresses.add(userAddress2);
double random = Math.random();
System.out.println(random);
if (random>0.8){
throw new RuntimeException("测试容错");
}
return userAddresses;
}
}
|
[
"zs@bjpowernode.com"
] |
zs@bjpowernode.com
|
a9416306d644115f64d0f870b0b572855ff6c396
|
7e651dc44a5fd2b636003958d7e5a283e1828318
|
/minecraft/net/minecraft/server/management/UserListOpsEntry.java
|
c45d46b53e532928654740af587ab951375888e2
|
[] |
no_license
|
Niklas61/CandyClient
|
b05a1edc0d360dacc84fed7944bce5dc0a873be4
|
97e317aaacdcf029b8e87960adab4251861371eb
|
refs/heads/master
| 2023-04-24T15:48:59.747252
| 2021-05-12T16:54:32
| 2021-05-12T16:54:32
| 352,600,734
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,216
|
java
|
package net.minecraft.server.management;
import com.google.gson.JsonObject;
import com.mojang.authlib.GameProfile;
import java.util.UUID;
public class UserListOpsEntry extends UserListEntry<GameProfile>
{
private final int field_152645_a;
private final boolean field_183025_b;
public UserListOpsEntry(GameProfile p_i46492_1_, int p_i46492_2_, boolean p_i46492_3_)
{
super(p_i46492_1_);
this.field_152645_a = p_i46492_2_;
this.field_183025_b = p_i46492_3_;
}
public UserListOpsEntry(JsonObject p_i1150_1_)
{
super(func_152643_b(p_i1150_1_), p_i1150_1_);
this.field_152645_a = p_i1150_1_.has("level") ? p_i1150_1_.get("level").getAsInt() : 0;
this.field_183025_b = p_i1150_1_.has("bypassesPlayerLimit") && p_i1150_1_.get("bypassesPlayerLimit").getAsBoolean();
}
/**
* Gets the permission level of the user, as defined in the "level" attribute of the ops.json file
*/
public int getPermissionLevel()
{
return this.field_152645_a;
}
public boolean func_183024_b()
{
return this.field_183025_b;
}
protected void onSerialization(JsonObject data)
{
if (this.getValue() != null)
{
data.addProperty("uuid", this.getValue().getId() == null ? "" : this.getValue().getId().toString());
data.addProperty("name", this.getValue().getName());
super.onSerialization(data);
data.addProperty("level", Integer.valueOf(this.field_152645_a) );
data.addProperty("bypassesPlayerLimit", Boolean.valueOf(this.field_183025_b));
}
}
private static GameProfile func_152643_b(JsonObject p_152643_0_)
{
if (p_152643_0_.has("uuid") && p_152643_0_.has("name"))
{
String s = p_152643_0_.get("uuid").getAsString();
UUID uuid;
try
{
uuid = UUID.fromString(s);
}
catch (Throwable var4)
{
return null;
}
return new GameProfile(uuid, p_152643_0_.get("name").getAsString());
}
else
{
return null;
}
}
}
|
[
"unconfigured@null.spigotmc.org"
] |
unconfigured@null.spigotmc.org
|
21feddcfd476eb62f5f9bbcde07f9c18080337cc
|
e90ee236013e985fce8c4081d2492eb60e839648
|
/app/src/main/java/com/example/amr/demogson/CustomAdapter.java
|
1c7c27acde23f16c742fbe67be9a4c920d97e77e
|
[] |
no_license
|
AmrAbdelhameed/DemoGson
|
76d420359b15372197f2224d9781c7f4effdf88a
|
7a06b7c044b79612b03aca1cfaa5d4eb9e3eba73
|
refs/heads/master
| 2021-03-27T11:27:17.769765
| 2017-07-11T21:20:14
| 2017-07-11T21:20:14
| 96,895,004
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,673
|
java
|
package com.example.amr.demogson;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.squareup.picasso.Picasso;
import java.util.List;
public class CustomAdapter extends BaseAdapter {
private List<Story> mMovieitem;
private Context mContext;
private LayoutInflater inflater;
public CustomAdapter(Context mContext, List<Story> mMovieitem) {
this.mContext = mContext;
this.mMovieitem = mMovieitem;
}
@Override
public int getCount() {
return mMovieitem.size();
}
@Override
public Object getItem(int position) {
return mMovieitem.get(position);
}
@Override
public long getItemId(int position) {
return 0;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
LayoutInflater inflater = (LayoutInflater) mContext
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View rowView = inflater.inflate(R.layout.list_view_layout, parent, false);
TextView title = (TextView) rowView.findViewById(R.id.title);
TextView rating = (TextView) rowView.findViewById(R.id.published);
ImageView thumbnail = (ImageView) rowView.findViewById(R.id.imagevi);
title.setText(mMovieitem.get(position).getTitle());
rating.setText(mMovieitem.get(position).getPublished_date());
Picasso.with(mContext).load(mMovieitem.get(position).getImageurl()).into(thumbnail);
return rowView;
}
}
|
[
"amrabdelhameedfcis123@gmail.com"
] |
amrabdelhameedfcis123@gmail.com
|
460670bafb1c1ff2c0c76e655c2e8d6eaa0eda25
|
a636258c60406f8db850d695b064836eaf75338b
|
/src-gen/org/openbravo/model/pricing/pricelist/ProductPrice.java
|
e4eb245afe36b2323bc329256847991fac855783
|
[] |
no_license
|
Afford-Solutions/openbravo-payroll
|
ed08af5a581fa41455f4e9b233cb182d787d5064
|
026fee4fe79b1f621959670fdd9ae6dec33d263e
|
refs/heads/master
| 2022-03-10T20:43:13.162216
| 2019-11-07T18:31:05
| 2019-11-07T18:31:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,807
|
java
|
/*
*************************************************************************
* The contents of this file are subject to the Openbravo Public License
* Version 1.1 (the "License"), being the Mozilla Public License
* Version 1.1 with a permitted attribution clause; you may not use this
* file except in compliance with the License. You may obtain a copy of
* the License at http://www.openbravo.com/legal/license.html
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
* The Original Code is Openbravo ERP.
* The Initial Developer of the Original Code is Openbravo SLU
* All portions are Copyright (C) 2008-2011 Openbravo SLU
* All Rights Reserved.
* Contributor(s): ______________________________________.
************************************************************************
*/
package org.openbravo.model.pricing.pricelist;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.openbravo.base.structure.ActiveEnabled;
import org.openbravo.base.structure.BaseOBObject;
import org.openbravo.base.structure.ClientEnabled;
import org.openbravo.base.structure.OrganizationEnabled;
import org.openbravo.base.structure.Traceable;
import org.openbravo.model.ad.access.User;
import org.openbravo.model.ad.system.Client;
import org.openbravo.model.common.enterprise.Organization;
import org.openbravo.model.common.plm.Product;
import org.openbravo.model.common.plm.ProductByPriceAndWarehouse;
/**
* Entity class for entity PricingProductPrice (stored in table M_ProductPrice).
*
* NOTE: This class should not be instantiated directly. To instantiate this
* class the {@link org.openbravo.base.provider.OBProvider} should be used.
*/
public class ProductPrice extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
private static final long serialVersionUID = 1L;
public static final String TABLE_NAME = "M_ProductPrice";
public static final String ENTITY_NAME = "PricingProductPrice";
public static final String PROPERTY_ID = "id";
public static final String PROPERTY_PRICELISTVERSION = "priceListVersion";
public static final String PROPERTY_PRODUCT = "product";
public static final String PROPERTY_CLIENT = "client";
public static final String PROPERTY_ORGANIZATION = "organization";
public static final String PROPERTY_ACTIVE = "active";
public static final String PROPERTY_CREATIONDATE = "creationDate";
public static final String PROPERTY_CREATEDBY = "createdBy";
public static final String PROPERTY_UPDATED = "updated";
public static final String PROPERTY_UPDATEDBY = "updatedBy";
public static final String PROPERTY_LISTPRICE = "listPrice";
public static final String PROPERTY_STANDARDPRICE = "standardPrice";
public static final String PROPERTY_PRICELIMIT = "priceLimit";
public static final String PROPERTY_COST = "cost";
public static final String PROPERTY_RCGIEXTRAPERCENTAGE = "rcgiExtrapercentage";
public static final String PROPERTY_RCGIDISCOUNT = "rcgiDiscount";
public static final String PROPERTY_RCGIEFFECTIVEFROM = "rcgiEffectivefrom";
public static final String PROPERTY_PRODUCTBYPRICEANDWAREHOUSELIST = "productByPriceAndWarehouseList";
public ProductPrice() {
setDefaultValue(PROPERTY_ACTIVE, true);
setDefaultValue(PROPERTY_COST, new BigDecimal(0));
setDefaultValue(PROPERTY_RCGIEXTRAPERCENTAGE, new BigDecimal(0));
setDefaultValue(PROPERTY_RCGIDISCOUNT, new BigDecimal(0));
setDefaultValue(PROPERTY_PRODUCTBYPRICEANDWAREHOUSELIST, new ArrayList<Object>());
}
@Override
public String getEntityName() {
return ENTITY_NAME;
}
public String getId() {
return (String) get(PROPERTY_ID);
}
public void setId(String id) {
set(PROPERTY_ID, id);
}
public PriceListVersion getPriceListVersion() {
return (PriceListVersion) get(PROPERTY_PRICELISTVERSION);
}
public void setPriceListVersion(PriceListVersion priceListVersion) {
set(PROPERTY_PRICELISTVERSION, priceListVersion);
}
public Product getProduct() {
return (Product) get(PROPERTY_PRODUCT);
}
public void setProduct(Product product) {
set(PROPERTY_PRODUCT, product);
}
public Client getClient() {
return (Client) get(PROPERTY_CLIENT);
}
public void setClient(Client client) {
set(PROPERTY_CLIENT, client);
}
public Organization getOrganization() {
return (Organization) get(PROPERTY_ORGANIZATION);
}
public void setOrganization(Organization organization) {
set(PROPERTY_ORGANIZATION, organization);
}
public Boolean isActive() {
return (Boolean) get(PROPERTY_ACTIVE);
}
public void setActive(Boolean active) {
set(PROPERTY_ACTIVE, active);
}
public Date getCreationDate() {
return (Date) get(PROPERTY_CREATIONDATE);
}
public void setCreationDate(Date creationDate) {
set(PROPERTY_CREATIONDATE, creationDate);
}
public User getCreatedBy() {
return (User) get(PROPERTY_CREATEDBY);
}
public void setCreatedBy(User createdBy) {
set(PROPERTY_CREATEDBY, createdBy);
}
public Date getUpdated() {
return (Date) get(PROPERTY_UPDATED);
}
public void setUpdated(Date updated) {
set(PROPERTY_UPDATED, updated);
}
public User getUpdatedBy() {
return (User) get(PROPERTY_UPDATEDBY);
}
public void setUpdatedBy(User updatedBy) {
set(PROPERTY_UPDATEDBY, updatedBy);
}
public BigDecimal getListPrice() {
return (BigDecimal) get(PROPERTY_LISTPRICE);
}
public void setListPrice(BigDecimal listPrice) {
set(PROPERTY_LISTPRICE, listPrice);
}
public BigDecimal getStandardPrice() {
return (BigDecimal) get(PROPERTY_STANDARDPRICE);
}
public void setStandardPrice(BigDecimal standardPrice) {
set(PROPERTY_STANDARDPRICE, standardPrice);
}
public BigDecimal getPriceLimit() {
return (BigDecimal) get(PROPERTY_PRICELIMIT);
}
public void setPriceLimit(BigDecimal priceLimit) {
set(PROPERTY_PRICELIMIT, priceLimit);
}
public BigDecimal getCost() {
return (BigDecimal) get(PROPERTY_COST);
}
public void setCost(BigDecimal cost) {
set(PROPERTY_COST, cost);
}
public BigDecimal getRcgiExtrapercentage() {
return (BigDecimal) get(PROPERTY_RCGIEXTRAPERCENTAGE);
}
public void setRcgiExtrapercentage(BigDecimal rcgiExtrapercentage) {
set(PROPERTY_RCGIEXTRAPERCENTAGE, rcgiExtrapercentage);
}
public BigDecimal getRcgiDiscount() {
return (BigDecimal) get(PROPERTY_RCGIDISCOUNT);
}
public void setRcgiDiscount(BigDecimal rcgiDiscount) {
set(PROPERTY_RCGIDISCOUNT, rcgiDiscount);
}
public Date getRcgiEffectivefrom() {
return (Date) get(PROPERTY_RCGIEFFECTIVEFROM);
}
public void setRcgiEffectivefrom(Date rcgiEffectivefrom) {
set(PROPERTY_RCGIEFFECTIVEFROM, rcgiEffectivefrom);
}
@SuppressWarnings("unchecked")
public List<ProductByPriceAndWarehouse> getProductByPriceAndWarehouseList() {
return (List<ProductByPriceAndWarehouse>) get(PROPERTY_PRODUCTBYPRICEANDWAREHOUSELIST);
}
public void setProductByPriceAndWarehouseList(List<ProductByPriceAndWarehouse> productByPriceAndWarehouseList) {
set(PROPERTY_PRODUCTBYPRICEANDWAREHOUSELIST, productByPriceAndWarehouseList);
}
}
|
[
"rcss@ubuntu-server.administrator"
] |
rcss@ubuntu-server.administrator
|
eb8794a2257c590ca49936558385dfc9f144a863
|
14d083e172837377a0bc3e9b2b031c058e75a4aa
|
/src/AI/State/ExtendedBehaviorNetwork/CPredecessorLink.java
|
69ac79eb2fc19ebbc5172b08045594adfdfa8e07
|
[] |
no_license
|
wgres101/NECROTEK3Dv2
|
478b708936b4dcfd9aa7f9b949e23bfa3e61bd43
|
4f57b5f56fc2fa6406d2ce6ed5fdce21964fd483
|
refs/heads/master
| 2020-12-18T18:58:42.660286
| 2017-08-10T23:23:29
| 2017-08-10T23:23:29
| 235,483,578
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 455
|
java
|
package AI.State.ExtendedBehaviorNetwork;
public class CPredecessorLink {
//activation that goes from a goal g to a module k through a predecessor
//link at instant t Function f is a triangular norm that combines the strength
//and dynamic relevance of a goal. The term ex_j is the value of the effect
//proposition that is the target of a link
float activation_a = CParameters.gamma * CParameters.triangularnorm()*CParameters.ex_j;
}
|
[
"ted_gress@yahoo.com"
] |
ted_gress@yahoo.com
|
c53a3b9ed49a70c47d090aa8b2b6b20696098467
|
7df40f6ea2209b7d48979465fd8081ec2ad198cc
|
/TOOLS/server/org/controlsfx/control/CheckComboBox.java
|
26180ca1dd5e0984116822eec5d4aae54b8c4148
|
[
"IJG"
] |
permissive
|
warchiefmarkus/WurmServerModLauncher-0.43
|
d513810045c7f9aebbf2ec3ee38fc94ccdadd6db
|
3e9d624577178cd4a5c159e8f61a1dd33d9463f6
|
refs/heads/master
| 2021-09-27T10:11:56.037815
| 2021-09-19T16:23:45
| 2021-09-19T16:23:45
| 252,689,028
| 0
| 0
| null | 2021-09-19T16:53:10
| 2020-04-03T09:33:50
|
Java
|
UTF-8
|
Java
| false
| false
| 6,645
|
java
|
/* */ package org.controlsfx.control;
/* */
/* */ import impl.org.controlsfx.skin.CheckComboBoxSkin;
/* */ import java.util.HashMap;
/* */ import java.util.Map;
/* */ import javafx.beans.property.BooleanProperty;
/* */ import javafx.beans.property.ObjectProperty;
/* */ import javafx.beans.property.SimpleObjectProperty;
/* */ import javafx.collections.FXCollections;
/* */ import javafx.collections.ListChangeListener;
/* */ import javafx.collections.ObservableList;
/* */ import javafx.scene.control.Skin;
/* */ import javafx.util.StringConverter;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class CheckComboBox<T>
/* */ extends ControlsFXControl
/* */ {
/* */ private final ObservableList<T> items;
/* */ private final Map<T, BooleanProperty> itemBooleanMap;
/* */
/* */ public CheckComboBox() {
/* 104 */ this(null);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public CheckComboBox(ObservableList<T> items) {
/* 114 */ int initialSize = (items == null) ? 32 : items.size();
/* */
/* 116 */ this.itemBooleanMap = new HashMap<>(initialSize);
/* 117 */ this.items = (items == null) ? FXCollections.observableArrayList() : items;
/* 118 */ setCheckModel(new CheckComboBoxBitSetCheckModel<>(this.items, this.itemBooleanMap));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ protected Skin<?> createDefaultSkin() {
/* 131 */ return (Skin<?>)new CheckComboBoxSkin(this);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public ObservableList<T> getItems() {
/* 139 */ return this.items;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public BooleanProperty getItemBooleanProperty(int index) {
/* 147 */ if (index < 0 || index >= this.items.size()) return null;
/* 148 */ return getItemBooleanProperty((T)getItems().get(index));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public BooleanProperty getItemBooleanProperty(T item) {
/* 156 */ return this.itemBooleanMap.get(item);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 168 */ private ObjectProperty<IndexedCheckModel<T>> checkModel = (ObjectProperty<IndexedCheckModel<T>>)new SimpleObjectProperty(this, "checkModel");
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public final void setCheckModel(IndexedCheckModel<T> value) {
/* 180 */ checkModelProperty().set(value);
/* */ }
/* */
/* */
/* */
/* */
/* */ public final IndexedCheckModel<T> getCheckModel() {
/* 187 */ return (this.checkModel == null) ? null : (IndexedCheckModel<T>)this.checkModel.get();
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public final ObjectProperty<IndexedCheckModel<T>> checkModelProperty() {
/* 197 */ return this.checkModel;
/* */ }
/* */
/* */
/* 201 */ private ObjectProperty<StringConverter<T>> converter = (ObjectProperty<StringConverter<T>>)new SimpleObjectProperty(this, "converter");
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public final ObjectProperty<StringConverter<T>> converterProperty() {
/* 209 */ return this.converter;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public final void setConverter(StringConverter<T> value) {
/* 218 */ converterProperty().set(value);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public final StringConverter<T> getConverter() {
/* 226 */ return (StringConverter<T>)converterProperty().get();
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ private static class CheckComboBoxBitSetCheckModel<T>
/* */ extends CheckBitSetModelBase<T>
/* */ {
/* */ private final ObservableList<T> items;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ CheckComboBoxBitSetCheckModel(ObservableList<T> items, Map<T, BooleanProperty> itemBooleanMap) {
/* 265 */ super(itemBooleanMap);
/* */
/* 267 */ this.items = items;
/* 268 */ this.items.addListener(new ListChangeListener<T>() {
/* */ public void onChanged(ListChangeListener.Change<? extends T> c) {
/* 270 */ CheckComboBox.CheckComboBoxBitSetCheckModel.this.updateMap();
/* */ }
/* */ });
/* */
/* 274 */ updateMap();
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public T getItem(int index) {
/* 286 */ return (T)this.items.get(index);
/* */ }
/* */
/* */ public int getItemCount() {
/* 290 */ return this.items.size();
/* */ }
/* */
/* */ public int getItemIndex(T item) {
/* 294 */ return this.items.indexOf(item);
/* */ }
/* */ }
/* */ }
/* Location: C:\Users\leo\Desktop\server.jar!\org\controlsfx\control\CheckComboBox.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/
|
[
"warchiefmarkus@gmail.com"
] |
warchiefmarkus@gmail.com
|
d5ff61c2adc0abe7c4b28407430ca258c9e9a8df
|
3ef55e152decb43bdd90e3de821ffea1a2ec8f75
|
/large/module1358_public/src/java/module1358_public/a/IFoo3.java
|
3e0cba36d0255da370970be9b43fe80a5217f617
|
[
"BSD-3-Clause"
] |
permissive
|
salesforce/bazel-ls-demo-project
|
5cc6ef749d65d6626080f3a94239b6a509ef145a
|
948ed278f87338edd7e40af68b8690ae4f73ebf0
|
refs/heads/master
| 2023-06-24T08:06:06.084651
| 2023-03-14T11:54:29
| 2023-03-14T11:54:29
| 241,489,944
| 0
| 5
|
BSD-3-Clause
| 2023-03-27T11:28:14
| 2020-02-18T23:30:47
|
Java
|
UTF-8
|
Java
| false
| false
| 858
|
java
|
package module1358_public.a;
import java.sql.*;
import java.util.logging.*;
import java.util.zip.*;
/**
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
* labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
* Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
*
* @see javax.management.Attribute
* @see javax.naming.directory.DirContext
* @see javax.net.ssl.ExtendedSSLSession
*/
@SuppressWarnings("all")
public interface IFoo3<H> extends module1358_public.a.IFoo2<H> {
javax.rmi.ssl.SslRMIClientSocketFactory f0 = null;
java.awt.datatransfer.DataFlavor f1 = null;
java.beans.beancontext.BeanContext f2 = null;
String getName();
void setName(String s);
H get();
void set(H e);
}
|
[
"gwagenknecht@salesforce.com"
] |
gwagenknecht@salesforce.com
|
0c75be064775678b42b8bbd12e943f94053b4dd5
|
9b8c54d9cc6675620f725a85505e23e73b773a00
|
/src/org/benf/cfr/reader/bytecode/analysis/parse/expression/ArithmeticMutationOperation.java
|
4c6840979c1d15d921f3c12ab8de9f280e3a29ad
|
[
"MIT"
] |
permissive
|
leibnitz27/cfr
|
d54db8d56a1e7cffe720f2144f9b7bba347afd90
|
d6f6758ee900ae1a1fffebe2d75c69ce21237b2a
|
refs/heads/master
| 2023-08-24T14:56:50.161997
| 2022-08-12T07:17:41
| 2022-08-12T07:20:06
| 19,706,727
| 1,758
| 252
|
MIT
| 2022-08-12T07:19:26
| 2014-05-12T16:39:42
|
Java
|
UTF-8
|
Java
| false
| false
| 5,548
|
java
|
package org.benf.cfr.reader.bytecode.analysis.parse.expression;
import org.benf.cfr.reader.bytecode.analysis.loc.BytecodeLoc;
import org.benf.cfr.reader.bytecode.analysis.parse.Expression;
import org.benf.cfr.reader.bytecode.analysis.parse.LValue;
import org.benf.cfr.reader.bytecode.analysis.parse.StatementContainer;
import org.benf.cfr.reader.bytecode.analysis.parse.expression.misc.Precedence;
import org.benf.cfr.reader.bytecode.analysis.parse.literal.TypedLiteral;
import org.benf.cfr.reader.bytecode.analysis.parse.rewriters.CloneHelper;
import org.benf.cfr.reader.bytecode.analysis.parse.rewriters.ExpressionRewriter;
import org.benf.cfr.reader.bytecode.analysis.parse.rewriters.ExpressionRewriterFlags;
import org.benf.cfr.reader.bytecode.analysis.parse.utils.*;
import org.benf.cfr.reader.state.TypeUsageCollector;
import org.benf.cfr.reader.util.Troolean;
import org.benf.cfr.reader.util.output.Dumper;
import java.util.Set;
public class ArithmeticMutationOperation extends AbstractMutatingAssignmentExpression {
private LValue mutated;
private final ArithOp op;
private Expression mutation;
public ArithmeticMutationOperation(BytecodeLoc loc, LValue mutated, Expression mutation, ArithOp op) {
super(loc, mutated.getInferredJavaType());
this.mutated = mutated;
this.op = op;
this.mutation = mutation;
}
@Override
public BytecodeLoc getCombinedLoc() {
return BytecodeLoc.combine(this, mutation);
}
@Override
public Expression deepClone(CloneHelper cloneHelper) {
return new ArithmeticMutationOperation(getLoc(), cloneHelper.replaceOrClone(mutated), cloneHelper.replaceOrClone(mutation), op);
}
@Override
public void collectTypeUsages(TypeUsageCollector collector) {
mutated.collectTypeUsages(collector);
mutation.collectTypeUsages(collector);
}
@Override
public Precedence getPrecedence() {
return Precedence.ASSIGNMENT;
}
@Override
public Dumper dumpInner(Dumper d) {
d.dump(mutated).print(' ').operator(op.getShowAs() + "=").print(' ');
mutation.dumpWithOuterPrecedence(d, getPrecedence(), Troolean.NEITHER);
return d;
}
@Override
public Expression replaceSingleUsageLValues(LValueRewriter lValueRewriter, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer) {
Set fixed = statementContainer.getSSAIdentifiers().getFixedHere();
// anything in fixed CANNOT be assigned to inside rvalue.
lValueRewriter = lValueRewriter.getWithFixed(fixed);
mutation = mutation.replaceSingleUsageLValues(lValueRewriter, ssaIdentifiers, statementContainer);
return this;
}
@Override
public Expression applyExpressionRewriter(ExpressionRewriter expressionRewriter, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags) {
mutated = expressionRewriter.rewriteExpression(mutated, ssaIdentifiers, statementContainer, ExpressionRewriterFlags.LANDRVALUE);
mutation = expressionRewriter.rewriteExpression(mutation, ssaIdentifiers, statementContainer, flags);
return this;
}
@Override
public Expression applyReverseExpressionRewriter(ExpressionRewriter expressionRewriter, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags) {
mutation = expressionRewriter.rewriteExpression(mutation, ssaIdentifiers, statementContainer, flags);
mutated = expressionRewriter.rewriteExpression(mutated, ssaIdentifiers, statementContainer, ExpressionRewriterFlags.LANDRVALUE);
return this;
}
@Override
public boolean isSelfMutatingOp1(LValue lValue, ArithOp arithOp) {
return this.mutated.equals(lValue) &&
this.op == arithOp &&
this.mutation.equals(new Literal(TypedLiteral.getInt(1)));
}
@Override
public LValue getUpdatedLValue() {
return mutated;
}
public ArithOp getOp() {
return op;
}
public Expression getMutation() {
return mutation;
}
@Override
public ArithmeticPostMutationOperation getPostMutation() {
return new ArithmeticPostMutationOperation(getLoc(), mutated, op);
}
@Override
public ArithmeticPreMutationOperation getPreMutation() {
return new ArithmeticPreMutationOperation(getLoc(), mutated, op);
}
@Override
public void collectUsedLValues(LValueUsageCollector lValueUsageCollector) {
mutation.collectUsedLValues(lValueUsageCollector);
}
@Override
public boolean equals(Object o) {
if (o == this) return true;
if (!(o instanceof ArithmeticMutationOperation)) return false;
ArithmeticMutationOperation other = (ArithmeticMutationOperation) o;
return mutated.equals(other.mutated) &&
op.equals(other.op) &&
mutation.equals(other.mutation);
}
@Override
public final boolean equivalentUnder(Object o, EquivalenceConstraint constraint) {
if (o == null) return false;
if (o == this) return true;
if (getClass() != o.getClass()) return false;
ArithmeticMutationOperation other = (ArithmeticMutationOperation) o;
if (!constraint.equivalent(op, other.op)) return false;
if (!constraint.equivalent(mutated, other.mutated)) return false;
if (!constraint.equivalent(mutation, other.mutation)) return false;
return true;
}
}
|
[
"lee@benf.org"
] |
lee@benf.org
|
aab3058b0cbcec4565b9dae42d9bd7191fcce08d
|
2c7bbc8139c4695180852ed29b229bb5a0f038d7
|
/com/netflix/mediaclient/service/falkor/Falkor$Creator$14.java
|
5d1a627e11fed28871a04e2e9711fb66e7bdd33a
|
[] |
no_license
|
suliyu/evolucionNetflix
|
6126cae17d1f7ea0bc769ee4669e64f3792cdd2f
|
ac767b81e72ca5ad636ec0d471595bca7331384a
|
refs/heads/master
| 2020-04-27T05:55:47.314928
| 2017-05-08T17:08:22
| 2017-05-08T17:08:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 532
|
java
|
//
// Decompiled by Procyon v0.5.30
//
package com.netflix.mediaclient.service.falkor;
import com.netflix.falkor.ModelProxy;
import com.netflix.model.branches.FalkorEpisode;
import com.netflix.falkor.Func;
final class Falkor$Creator$14 implements Func<FalkorEpisode>
{
final /* synthetic */ ModelProxy val$proxy;
Falkor$Creator$14(final ModelProxy val$proxy) {
this.val$proxy = val$proxy;
}
@Override
public FalkorEpisode call() {
return new FalkorEpisode(this.val$proxy);
}
}
|
[
"sy.velasquez10@uniandes.edu.co"
] |
sy.velasquez10@uniandes.edu.co
|
f5dd2abca6837dbbbd6d44b7e3ad2e6a88193a8c
|
5cd3600ba89cf8d07045d439b2915d11d7ec0e9b
|
/Salesforce_Core_Framework/src/main/java/com/test/xcdhr/Salesforce_Core_Framework1/hrms_payroll/rti_Payroll_Scenario3_Month11/TestSuiteBase.java
|
e64471c766663e1a2185ec522b76f117666f5df2
|
[] |
no_license
|
AzizMudgal/XCDHR_Payroll
|
56e49d17f467e1b37c336d9042c0557855ce8bb9
|
fa6c6a665a4d19cec7645edc4914ac4ac2fa4ca4
|
refs/heads/master
| 2021-01-19T23:01:01.467009
| 2018-06-19T13:36:54
| 2018-06-19T13:36:54
| 101,260,492
| 0
| 0
| null | 2018-02-19T06:29:10
| 2017-08-24T06:14:06
|
Java
|
UTF-8
|
Java
| false
| false
| 829
|
java
|
package com.test.xcdhr.Salesforce_Core_Framework1.hrms_payroll.rti_Payroll_Scenario3_Month11;
import org.testng.annotations.BeforeSuite;
import com.test.xcdhr.Salesforce_Core_Framework1.testBase.TestBase;
import com.test.xcdhr.Salesforce_Core_Framework1.Salesforce_Util.Test_Util;
public class TestSuiteBase extends TestBase
{
@BeforeSuite
public void CheckSuiteSkip() throws Throwable
{
initialize();
processDesiredTaxYearInputExcelFile(TaxYear);
APP_LOGS.debug("Checking runmode of"+ PayrollRecognitionScenario3_Inputsheet);
if(! Test_Util.isSuiteRunnable(SuiteXls,PayrollRecognitionScenario3_Inputsheet))
{
APP_LOGS.debug("Setting the Payroll Suite to OFF as the runmode is set to 'N'");
throw new Exception("Payroll suite is not going to execute as its being skipped");
}
}
}
|
[
"azizm@peoplexcd.com"
] |
azizm@peoplexcd.com
|
71da4ef209326c58bf5e05a7a46d469b04f414b2
|
4312a71c36d8a233de2741f51a2a9d28443cd95b
|
/RawExperiments/DB/Math70/AstorMain-math70/src/variant-1441/org/apache/commons/math/analysis/solvers/UnivariateRealSolverUtils.java
|
10a049fe50ddc79ad53acc463bfa1b3b4af8c4b1
|
[] |
no_license
|
SajjadZaidi/AutoRepair
|
5c7aa7a689747c143cafd267db64f1e365de4d98
|
e21eb9384197bae4d9b23af93df73b6e46bb749a
|
refs/heads/master
| 2021-05-07T00:07:06.345617
| 2017-12-02T18:48:14
| 2017-12-02T18:48:14
| 112,858,432
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,459
|
java
|
package org.apache.commons.math.analysis.solvers;
public class UnivariateRealSolverUtils {
private static final java.lang.String NULL_FUNCTION_MESSAGE = "function is null";
private UnivariateRealSolverUtils() {
super();
}
public static double solve(org.apache.commons.math.analysis.UnivariateRealFunction f, double x0, double x1) throws org.apache.commons.math.ConvergenceException, org.apache.commons.math.FunctionEvaluationException {
org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils.setup(f);
return org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils.LazyHolder.FACTORY.newDefaultSolver().solve(f, x0, x1);
}
public static double solve(org.apache.commons.math.analysis.UnivariateRealFunction f, double x0, double x1, double absoluteAccuracy) throws org.apache.commons.math.ConvergenceException, org.apache.commons.math.FunctionEvaluationException {
org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils.setup(f);
org.apache.commons.math.analysis.solvers.UnivariateRealSolver solver = org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils.LazyHolder.FACTORY.newDefaultSolver();
solver.setAbsoluteAccuracy(absoluteAccuracy);
return solver.solve(f, x0, x1);
}
public static double[] bracket(org.apache.commons.math.analysis.UnivariateRealFunction function, double initial, double lowerBound, double upperBound) throws org.apache.commons.math.ConvergenceException, org.apache.commons.math.FunctionEvaluationException {
return org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils.bracket(function, initial, lowerBound, upperBound, java.lang.Integer.MAX_VALUE);
}
public static double[] bracket(org.apache.commons.math.analysis.UnivariateRealFunction function, double initial, double lowerBound, double upperBound, int maximumIterations) throws org.apache.commons.math.ConvergenceException, org.apache.commons.math.FunctionEvaluationException {
if (function == null) {
throw org.apache.commons.math.MathRuntimeException.createIllegalArgumentException(org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils.NULL_FUNCTION_MESSAGE);
}
if (maximumIterations <= 0) {
throw org.apache.commons.math.MathRuntimeException.createIllegalArgumentException("bad value for maximum iterations number: {0}", maximumIterations);
}
if (((initial < lowerBound) || (initial > upperBound)) || (lowerBound >= upperBound)) {
throw org.apache.commons.math.MathRuntimeException.createIllegalArgumentException("invalid bracketing parameters: lower bound={0}, initial={1}, upper bound={2}", lowerBound, initial, upperBound);
}
double a = initial;
double b = initial;
double fa;
double fb;
int numIterations = 0;
do {
a = java.lang.Math.max((a - 1.0), lowerBound);
b = java.lang.Math.min((b + 1.0), upperBound);
fa = function.value(a);
fb = function.value(b);
numIterations++;
} while ((((fa * fb) > 0.0) && (numIterations < maximumIterations)) && ((a > lowerBound) || (b < upperBound)) );
if ((fa * fb) > 0.0) {
throw new org.apache.commons.math.ConvergenceException(("number of iterations={0}, maximum iterations={1}, " + ("initial={2}, lower bound={3}, upper bound={4}, final a value={5}, " + "final b value={6}, f(a)={7}, f(b)={8}")) , numIterations , maximumIterations , initial , lowerBound , upperBound , a , b , fa , fb);
}
return new double[]{ a , b };
}
public static double midpoint(double a, double b) {
throw org.apache.commons.math.MathRuntimeException.createIllegalArgumentException("matrix must have at least one column");
return (a + b) * 0.5;
}
private static void setup(org.apache.commons.math.analysis.UnivariateRealFunction f) {
if (f == null) {
throw org.apache.commons.math.MathRuntimeException.createIllegalArgumentException(org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils.NULL_FUNCTION_MESSAGE);
}
}
private static class LazyHolder {
private static final org.apache.commons.math.analysis.solvers.UnivariateRealSolverFactory FACTORY = org.apache.commons.math.analysis.solvers.UnivariateRealSolverFactory.newInstance();
}
}
|
[
"sajjad.syed@ucalgary.ca"
] |
sajjad.syed@ucalgary.ca
|
42489d17406b244660a8e199139b3aa36441d0bf
|
ab29db898c4a49802fec7fe07e0afff810597f3d
|
/src/main/java/minestrapteam/virtious/common/VEventHandler.java
|
820f3b869b5309e2b66bedac51ca112af84ecf7f
|
[] |
no_license
|
MinestrapTeam/Virtious
|
85f051a7232c79ed8dedc8523961ce694e96d9ce
|
2a9c01c92211b6fb804742443465477a8ad1e0f6
|
refs/heads/master
| 2021-01-16T18:59:59.938691
| 2014-09-06T22:08:02
| 2014-09-06T22:08:02
| 11,410,287
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 942
|
java
|
package minestrapteam.virtious.common;
import cpw.mods.fml.common.eventhandler.Event.Result;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import minestrapteam.virtious.lib.VBlocks;
import minestrapteam.virtious.lib.VItems;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraftforge.event.entity.player.FillBucketEvent;
public class VEventHandler
{
@SubscribeEvent
public void onBucketFill(FillBucketEvent event)
{
ItemStack result = null;
int x = event.target.blockX;
int y = event.target.blockY;
int z = event.target.blockZ;
Block block = event.world.getBlock(x, y, z);
int metadata = event.world.getBlockMetadata(x, y, z);
if (block == VBlocks.virtious_acid && metadata == 0)
{
result = new ItemStack(VItems.acid_bucket);
}
if (result != null)
{
event.world.setBlockToAir(x, y, z);
event.result = result;
event.setResult(Result.ALLOW);
}
}
}
|
[
"clashsoft@hotmail.com"
] |
clashsoft@hotmail.com
|
816b28cfd7420865fc5a095f73835938dc0a232d
|
d0e8f076f037fb8be5ec272e2c0d7c16fa7f4b5d
|
/modules/citrus-mail/src/test/java/com/consol/citrus/mail/integration/MailServerAcceptIT.java
|
a88464501b234e53cee6925eb757d754b999ba03
|
[
"Apache-2.0"
] |
permissive
|
swathisprasad/citrus
|
b6811144ab46e1f88bb85b16f00539e1fe075f0c
|
5156c5e03f89de193b642aad91a4ee1611b4b27f
|
refs/heads/master
| 2020-05-20T08:27:52.578157
| 2019-05-11T12:29:42
| 2019-05-11T12:29:42
| 185,473,773
| 2
| 0
|
Apache-2.0
| 2019-05-07T20:32:02
| 2019-05-07T20:32:02
| null |
UTF-8
|
Java
| false
| false
| 990
|
java
|
/*
* Copyright 2006-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.consol.citrus.mail.integration;
import com.consol.citrus.annotations.CitrusXmlTest;
import com.consol.citrus.testng.AbstractTestNGCitrusTest;
import org.testng.annotations.Test;
/**
* @author Christoph Deppisch
*/
public class MailServerAcceptIT extends AbstractTestNGCitrusTest {
@Test
@CitrusXmlTest
public void MailServerAcceptIT() {}
}
|
[
"deppisch@consol.de"
] |
deppisch@consol.de
|
791c29e8d4e19348c65e9bfd5c02b2866feaa9c0
|
c2fb6846d5b932928854cfd194d95c79c723f04c
|
/java_backup/my java/Faceoff/Temperature.java
|
7fde277461920b0ad4de739c068b8c92b632bcfc
|
[
"MIT"
] |
permissive
|
Jimut123/code-backup
|
ef90ccec9fb6483bb6dae0aa6a1f1cc2b8802d59
|
8d4c16b9e960d352a7775786ea60290b29b30143
|
refs/heads/master
| 2022-12-07T04:10:59.604922
| 2021-04-28T10:22:19
| 2021-04-28T10:22:19
| 156,666,404
| 9
| 5
|
MIT
| 2022-12-02T20:27:22
| 2018-11-08T07:22:48
|
Jupyter Notebook
|
UTF-8
|
Java
| false
| false
| 977
|
java
|
class Temperature
{
public static void main (int c, int l, int x, int a)
{
int f;
System.out.println("press 1 for leap year");
System.out.println("press 2 for conversion from degree celsius to farenheit");
System.out.println("press 3 for finding a five digit number");
switch (x)
{
case 1:if(a%4==0 && a%400==0)
System.out.println("leap year");
else
System.out.println("not a leap year");
break;
case 2:f=((9*c+160)/5);
System.out.println("farenheit" +f);
break;
case 3:if(l<=10000 && l>=99999)
System.out.println("five digit number");
else
System.out.println("not a five digit number");
default:System.out.println("not valid");
}
}
}
|
[
"jimutbahanpal@yahoo.com"
] |
jimutbahanpal@yahoo.com
|
2510f211d263e175cb0cb5caf0e5174b7cb30c6c
|
7dd044984221cdae301615a3979895576f93eb7e
|
/src/main/java/com/mashibing/service/impl/WyCarSpaceRentServiceImpl.java
|
0740086e1840341373fc4e82cdc5c79d12187f62
|
[] |
no_license
|
dnz777/family_service_platform
|
e55f1bf9f7998f0ce77c1914e46b4a796d84fcc8
|
4551b15c7c5d680a23dab60cfa0ac40af449abe1
|
refs/heads/master
| 2023-08-01T12:22:10.402158
| 2021-09-12T06:24:05
| 2021-09-12T06:24:05
| 404,557,618
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 540
|
java
|
package com.mashibing.service.impl;
import com.mashibing.bean.WyCarSpaceRent;
import com.mashibing.mapper.WyCarSpaceRentMapper;
import com.mashibing.service.base.WyCarSpaceRentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 车位租赁 服务实现类
* </p>
*
* @author dnz
* @since 2021-09-09
*/
@Service
public class WyCarSpaceRentServiceImpl extends ServiceImpl<WyCarSpaceRentMapper, WyCarSpaceRent> implements WyCarSpaceRentService {
}
|
[
"1316072982@qq.com"
] |
1316072982@qq.com
|
68a8e493c9a7466e37f6d4cd2f8b9daeb4a78888
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/14/14_c4eb0933196fb0f145ea48d588d3108ffa9f2b22/NavigateSubModuleControllerTest/14_c4eb0933196fb0f145ea48d588d3108ffa9f2b22_NavigateSubModuleControllerTest_s.java
|
f5700ca29229854286dba2b1d6cc6bf1cbcd6e9d
|
[] |
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,403
|
java
|
/*******************************************************************************
* Copyright (c) 2007, 2010 compeople AG 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:
* compeople AG - initial API and implementation
*******************************************************************************/
package org.eclipse.riena.client.controller.test;
import static org.easymock.EasyMock.*;
import java.util.Comparator;
import org.easymock.LogicalOperator;
import org.eclipse.riena.beans.common.Person;
import org.eclipse.riena.example.client.controllers.NavigateSubModuleController;
import org.eclipse.riena.internal.core.test.collect.NonUITestCase;
import org.eclipse.riena.internal.example.client.beans.PersonModificationBean;
import org.eclipse.riena.navigation.INavigationNode;
import org.eclipse.riena.navigation.ISubModuleNode;
import org.eclipse.riena.navigation.NavigationArgument;
import org.eclipse.riena.navigation.NavigationNodeId;
import org.eclipse.riena.navigation.NodePositioner;
import org.eclipse.riena.navigation.model.SubModuleNode;
import org.eclipse.riena.navigation.ui.swt.controllers.AbstractSubModuleControllerTest;
import org.eclipse.riena.ui.ridgets.IActionRidget;
/**
* Tests for the NavigateSubModuleController.
*/
@SuppressWarnings({ "restriction", "unchecked" })
@NonUITestCase
public class NavigateSubModuleControllerTest extends AbstractSubModuleControllerTest<NavigateSubModuleController> {
@Override
protected NavigateSubModuleController createController(final ISubModuleNode node) {
final NavigateSubModuleController newInst = new NavigateSubModuleController();
node.setNodeId(new NavigationNodeId("org.eclipse.riena.example.navigate"));
newInst.setNavigationNode(node);
return newInst;
}
public void testNavigateCombo() {
expect(
getMockNavigationProcessor().navigate(eq(getController().getNavigationNode()),
eq(new NavigationNodeId("org.eclipse.riena.example.navigate.comboAndList")),
(NavigationArgument) notNull())).andReturn(
createNavigationNode("org.eclipse.riena.example.navigate.comboAndList"));
replay(getMockNavigationProcessor());
final IActionRidget navigateToComboButton = getController().getRidget(IActionRidget.class, "comboAndList");
navigateToComboButton.fireAction();
verify(getMockNavigationProcessor());
}
/**
* Tests whether the method <code>INavigationProcessor#navigate</code> is
* called with the proper parameters: <br>
* - a NavigationNode<br>
* - a NavigationNodeId and<br>
* - a <code>NavigationArgument</code> that has the ridgetId "textFirst" and
* a parameter that is compared by a custom compare-method. This
* compare-method returns 0, if the first- and lastName of the
* <code>PersonModificationBean</code> match.
*/
public void testNavigateToRidgetWithCompare() {
final PersonModificationBean bean = new PersonModificationBean();
bean.setPerson(new Person("Doe", "Jane"));
expect(
getMockNavigationProcessor().navigate(eq(getController().getNavigationNode()),
eq(new NavigationNodeId("org.eclipse.riena.example.combo")),
cmp(new NavigationArgument(bean, "textFirst"), new Comparator<NavigationArgument>() {
public int compare(final NavigationArgument o1, final NavigationArgument o2) {
if (o1.getParameter() instanceof PersonModificationBean
&& o2.getParameter() instanceof PersonModificationBean) {
return comparePersonModificationBeans((PersonModificationBean) o1.getParameter(),
(PersonModificationBean) o2.getParameter());
} else {
return -1;
}
}
}, LogicalOperator.EQUAL))).andReturn(createNavigationNode("org.eclipse.riena.example.combo"));
replay(getMockNavigationProcessor());
final IActionRidget navigateToNavigateRidget = getController().getRidget(IActionRidget.class,
"btnNavigateToRidget");
navigateToNavigateRidget.fireAction();
verify(getMockNavigationProcessor());
}
/**
* Tests whether the method <code>INavigationProcessor#navigate</code> is
* called with the proper parameters: <br>
* - a NavigationNode<br>
* - a NavigationNodeId and<br>
* - a <code>NavigationArgument</code> that has the ridgetId "textFirst" and
* a parameter that is not null
*/
public void testNavigateToRidgetWithNotNull() {
expect(
getMockNavigationProcessor().navigate(eq(getController().getNavigationNode()),
eq(new NavigationNodeId("org.eclipse.riena.example.combo")),
new NavigationArgument(notNull(), "textFirst"))).andReturn(
createNavigationNode("org.eclipse.riena.example.combo"));
replay(getMockNavigationProcessor());
final IActionRidget navigateToNavigateRidget = getController().getRidget(IActionRidget.class,
"btnNavigateToRidget");
navigateToNavigateRidget.fireAction();
verify(getMockNavigationProcessor());
}
/**
* Tests whether the method <code>INavigationProcessor#navigate</code> is
* called with the proper parameters: <br>
* - a NavigationNode<br>
* - a NavigationNodeId and<br>
* - a <code>NavigationArgument</code> that has the ridgetId "textFirst" and
* a parameter that compared by the equals methods in the specific classes.
*/
public void testNavigateToRidgetWithEquals() {
final PersonModificationBean bean = new PersonModificationBean();
bean.setPerson(new Person("Doe", "Jane"));
expect(
getMockNavigationProcessor().navigate(eq(getController().getNavigationNode()),
eq(new NavigationNodeId("org.eclipse.riena.example.combo")),
eq(new NavigationArgument(bean, "textFirst")))).andReturn(
createNavigationNode("org.eclipse.riena.example.combo"));
replay(getMockNavigationProcessor());
final IActionRidget navigateToNavigateRidget = getController().getRidget(IActionRidget.class,
"btnNavigateToRidget");
navigateToNavigateRidget.fireAction();
verify(getMockNavigationProcessor());
}
public void testNavigateTableTextAndTree() {
final NavigationArgument naviAgr = new NavigationArgument();
naviAgr.setNodePositioner(NodePositioner.ADD_BEGINNING);
expect(
getMockNavigationProcessor().navigate(eq(getController().getNavigationNode()),
eq(new NavigationNodeId("org.eclipse.riena.example.navigate.tableTextAndTree")), eq(naviAgr)))
.andReturn(createNavigationNode("org.eclipse.riena.example.navigate.tableTextAndTree"));
replay(getMockNavigationProcessor());
final IActionRidget navigateToTableTextAndTree = getController().getRidget(IActionRidget.class,
"tableTextAndTree");
navigateToTableTextAndTree.fireAction();
verify(getMockNavigationProcessor());
}
private int comparePersonModificationBeans(final PersonModificationBean p1, final PersonModificationBean p2) {
if (p1.getFirstName().equals(p2.getFirstName()) && p1.getLastName().equals(p2.getLastName())) {
return 0;
} else {
return -1;
}
}
@SuppressWarnings("rawtypes")
private INavigationNode createNavigationNode(final String id) {
return new SubModuleNode(new NavigationNodeId(id));
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
b24880187fc207be506640acd3e7865006724014
|
283f2a520b70a1d68cb451c1ba7b8274db61a121
|
/restsimple-api/src/main/java/org/sonatype/restsimple/spi/NegotiationTokenGenerator.java
|
584377595072e0769d7a048b29857af7f7a93e4d
|
[] |
no_license
|
sonatype/RestSimple
|
3610a651c5a83084a0795dfb9ec46bc1d1a51ce9
|
7863d40d2b215b3f8622029c41d3f39617b6ae59
|
refs/heads/master
| 2023-08-07T03:26:58.572257
| 2011-06-28T19:00:45
| 2011-06-28T19:00:45
| 1,252,892
| 1
| 3
| null | 2019-11-19T00:17:03
| 2011-01-14T00:44:34
|
Java
|
UTF-8
|
Java
| false
| false
| 1,564
|
java
|
/*******************************************************************************
* Copyright (c) 2010-2011 Sonatype, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
* The Apache License v2.0 is available at
* http://www.apache.org/licenses/LICENSE-2.0.html
* You may elect to redistribute this code under either of these licenses.
*******************************************************************************/
package org.sonatype.restsimple.spi;
import com.google.inject.ImplementedBy;
import org.sonatype.restsimple.api.MediaType;
import java.util.List;
/**
* Server side component for implementing a version or content negotiation challenge between a client and a server.
*/
@ImplementedBy( RFC2295NegotiationTokenGenerator.class )
public interface NegotiationTokenGenerator {
/**
* Return the name of the challenged header.
* @return he name of the challenged header.
*/
String challengedHeaderName();
/**
* Generate an challenge header for challenging the server during version/content negotiation.
* @param uri The uri challenged
* @param mediaTypes the list of server's MediaType.
* @return A string representing the value for the challenged header.
*/
String generateNegotiationHeader(String uri, List<MediaType> mediaTypes);
}
|
[
"jfarcand@apache.org"
] |
jfarcand@apache.org
|
2ae49f264eae3c2f4a95fe1fd6db20f610600e7b
|
3441de0b93c9bc4dc40e1a46abd7d36cafe51c2d
|
/passcloud-common/passcloud-common-core/src/main/java/com/passcloud/common/core/interceptor/CoreHttpRequestInterceptor.java
|
2496a0dd521008c44458946d51a1e3d777e5ca10
|
[] |
no_license
|
XinxiJiang/passcloud-master
|
23baeb1c4360432585c07e49e7e2366dc2955398
|
212c2d7c2c173a788445c21de4775c4792a11242
|
refs/heads/master
| 2023-04-11T21:31:27.208057
| 2018-12-11T04:42:18
| 2018-12-11T04:44:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,427
|
java
|
package com.passcloud.common.core.interceptor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpRequest;
import org.springframework.http.client.ClientHttpRequestExecution;
import org.springframework.http.client.ClientHttpRequestInterceptor;
import org.springframework.http.client.ClientHttpResponse;
import org.springframework.http.client.support.HttpRequestWrapper;
import org.springframework.util.StringUtils;
import java.io.IOException;
/**
* The class Core http request interceptor.
*
* @author liyuzhang
*/
@Slf4j
public class CoreHttpRequestInterceptor implements ClientHttpRequestInterceptor {
/**
* Intercept client http response.
*
* @param request the request
* @param body the body
* @param execution the execution
*
* @return the client http response
*
* @throws IOException the io exception
*/
@Override
public ClientHttpResponse intercept(HttpRequest request, byte[] body,
ClientHttpRequestExecution execution) throws IOException {
HttpRequestWrapper requestWrapper = new HttpRequestWrapper(request);
String header = StringUtils.collectionToDelimitedString(
CoreHeaderInterceptor.LABEL.get(),
CoreHeaderInterceptor.HEADER_LABEL_SPLIT);
log.info("header={} ", header);
requestWrapper.getHeaders().add(CoreHeaderInterceptor.HEADER_LABEL, header);
return execution.execute(requestWrapper, body);
}
}
|
[
"35205889+mliyz@users.noreply.github.com"
] |
35205889+mliyz@users.noreply.github.com
|
d0b5b56b6bbe13c4ef0432205e52b50b1c8da5ad
|
fcf8139123133dec8cdd344d12e2dc778cd706fc
|
/src/com/avrgaming/civcraft/command/HereCommand.java
|
9f6f699efdfacab80b8296e30b2ef925952e1a2d
|
[] |
no_license
|
YourCoal/phase3beta-check
|
ae689c17a0f5075b3b2e10eb2f8006b826b66135
|
470b858ded994cd6161dd51cc95c1629f087e503
|
refs/heads/master
| 2021-01-20T20:45:07.179785
| 2016-06-25T23:52:11
| 2016-06-25T23:52:11
| 61,965,954
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,482
|
java
|
package com.civcraft.command;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.civcraft.main.CivGlobal;
import com.civcraft.main.CivMessage;
import com.civcraft.object.CultureChunk;
import com.civcraft.object.TownChunk;
import com.civcraft.util.ChunkCoord;
import com.civcraft.util.CivColor;
public class HereCommand implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
if (sender instanceof Player) {
Player player = (Player)sender;
ChunkCoord coord = new ChunkCoord(player.getLocation());
CultureChunk cc = CivGlobal.getCultureChunk(coord);
if (cc != null) {
CivMessage.send(sender, CivColor.LightPurple+"You're currently inside the culture of Civ:"+
CivColor.Yellow+cc.getCiv().getName()+CivColor.LightPurple+" for town:"+CivColor.Yellow+cc.getTown().getName());
}
TownChunk tc = CivGlobal.getTownChunk(coord);
if (tc != null) {
CivMessage.send(sender, CivColor.Green+"You're currently inside the town borders of "+CivColor.LightGreen+tc.getTown().getName());
if (tc.isOutpost()) {
CivMessage.send(sender, CivColor.Yellow+"This chunk is an outpost.");
}
}
if (cc == null && tc == null) {
CivMessage.send(sender, CivColor.Yellow+"You stand in wilderness.");
}
}
return false;
}
}
|
[
"yourcoal5446@gmail.com"
] |
yourcoal5446@gmail.com
|
8d72d2eec0e8e6b86ee8d99a56f425ea946dedeb
|
c956d2599f67aeaaf5f7bfa24dff23b6c0bd5081
|
/gws-fishjoy-biz/src/main/java/net/foreworld/fishjoy/model/Fish.java
|
6c1ef47e91c08443712a56c350f5434b813bbe81
|
[
"MIT"
] |
permissive
|
3203317/g
|
3a707b5af4237b2c2ad9ea6aa591e6db632744f7
|
c59ba1a6c99f6dde7742b4b354cfb3064423a58a
|
refs/heads/master
| 2021-05-02T18:47:49.808198
| 2017-12-14T13:55:25
| 2017-12-14T13:55:25
| 69,540,973
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 639
|
java
|
package net.foreworld.fishjoy.model;
import java.io.Serializable;
/**
*
* @author huangxin
*
*/
public class Fish implements Serializable {
private static final long serialVersionUID = -6594210220189780333L;
private String id;
private Integer fish_type;
private Integer score;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Integer getFish_type() {
return fish_type;
}
public void setFish_type(Integer fish_type) {
this.fish_type = fish_type;
}
public Integer getScore() {
return score;
}
public void setScore(Integer score) {
this.score = score;
}
}
|
[
"3203317@qq.com"
] |
3203317@qq.com
|
1d8703dedd87ede7632ba1cfc793bf41d7a5d94a
|
3cd69da4d40f2d97130b5bf15045ba09c219f1fa
|
/sources/kotlin/p022native/concurrent/ThreadLocal.java
|
4a473343064d96704410018d7063862465814fef
|
[] |
no_license
|
TheWizard91/Album_base_source_from_JADX
|
946ea3a407b4815ac855ce4313b97bd42e8cab41
|
e1d228fc2ee550ac19eeac700254af8b0f96080a
|
refs/heads/master
| 2023-01-09T08:37:22.062350
| 2020-11-11T09:52:40
| 2020-11-11T09:52:40
| 311,927,971
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 931
|
java
|
package kotlin.p022native.concurrent;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import kotlin.Metadata;
import kotlin.annotation.AnnotationRetention;
import kotlin.annotation.AnnotationTarget;
import kotlin.annotation.Retention;
@Target({ElementType.TYPE})
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.PROPERTY, AnnotationTarget.CLASS})
@Metadata(mo33669bv = {1, 0, 3}, mo33670d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\b\"\u0018\u00002\u00020\u0001B\u0000¨\u0006\u0002"}, mo33671d2 = {"Lkotlin/native/concurrent/ThreadLocal;", "", "kotlin-stdlib"}, mo33672k = 1, mo33673mv = {1, 1, 16})
@Retention(AnnotationRetention.BINARY)
@java.lang.annotation.Retention(RetentionPolicy.CLASS)
/* renamed from: kotlin.native.concurrent.ThreadLocal */
/* compiled from: NativeAnnotationsH.kt */
@interface ThreadLocal {
}
|
[
"agiapong@gmail.com"
] |
agiapong@gmail.com
|
74980c4342bd832923b2810595462ff7326ab7e3
|
df755f1ad9f30e2968faaf65d5f203ac9de8dcf1
|
/mftcc-platform-web-master/src/main/java/app/component/report/feign/MfReportCustomerFeign.java
|
ee3e83e771660cd4044bf55f243918029eb6f47e
|
[] |
no_license
|
gaoqiang9399/eclipsetogit
|
afabf761f77fe542b3da1535b15d4005274b8db7
|
03e02ef683929ea408d883ea35cbccf07a4c43e6
|
refs/heads/master
| 2023-01-22T16:42:32.813383
| 2020-11-23T07:31:23
| 2020-11-23T07:31:23
| 315,209,391
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,067
|
java
|
package app.component.report.feign;
import java.util.List;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import app.base.ServiceException;
import app.component.report.entity.MfCreditQueryRecordHis;
import app.component.report.entity.MfReportCustomer;
@FeignClient("mftcc-platform-factor")
public interface MfReportCustomerFeign {
@RequestMapping(value = "/mfReportCustomer/getCusList")
public List<MfReportCustomer> getCusList(@RequestBody MfReportCustomer mfReportCustomer) throws ServiceException;
/**
*
* 方法描述: 获得客户征信查询台账
* @param mfCreditQueryRecordHis
* @return
* @throws Exception
* List<MfCreditQueryRecordHis>
* @author 沈浩兵
* @date 2018-1-17 下午4:30:54
*/
@RequestMapping(value = "/mfReportCustomer/getCreditQueryList")
public List<MfCreditQueryRecordHis> getCreditQueryList(@RequestBody MfCreditQueryRecordHis mfCreditQueryRecordHis) throws Exception;
}
|
[
"gaoqiang1@chenbingzhu.zgcGuaranty.net"
] |
gaoqiang1@chenbingzhu.zgcGuaranty.net
|
3460f7fc5c5c61a21309bff9b4819e603339d009
|
806f76edfe3b16b437be3eb81639d1a7b1ced0de
|
/src/com/huawei/hwdatamigrate/p407a/ay.java
|
96e4eb32d271e74bd85b41e30bc1579f2be4f877
|
[] |
no_license
|
magic-coder/huawei-wear-re
|
1bbcabc807e21b2fe8fe9aa9d6402431dfe3fb01
|
935ad32f5348c3d8c8d294ed55a5a2830987da73
|
refs/heads/master
| 2021-04-15T18:30:54.036851
| 2018-03-22T07:16:50
| 2018-03-22T07:16:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 297
|
java
|
package com.huawei.hwdatamigrate.p407a;
/* compiled from: UserConfig */
public class ay {
public int f17516a;
public String f17517b;
public int f17518c;
public int f17519d;
public int f17520e;
public String f17521f;
public String f17522g;
public String f17523h;
}
|
[
"lebedev1537@gmail.com"
] |
lebedev1537@gmail.com
|
873a968f552bcbe97f1ca2be8b0f6f5e5551181f
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project34/src/test/java/org/gradle/test/performance34_4/Test34_345.java
|
7a6f374f7d6f193b585c03a4f3544fc78dd987ff
|
[] |
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.performance34_4;
import static org.junit.Assert.*;
public class Test34_345 {
private final Production34_345 production = new Production34_345("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
f99c8cbe43b61d9458916b8fb2f9ae089d6cc069
|
e2df03554a0bdcb32ce30b8c657375d9cb36a626
|
/arc-core/src/io/anuke/arc/input/InputEventQueue.java
|
559c335958132fe832f77442bfc959c1b809afb4
|
[] |
no_license
|
todun/Arc-2
|
4dbd5b2efb616b13cfedebba875bb45b7715fad0
|
c7f3d8125c8d13c0a31c5f14fdabdb3d0efbd676
|
refs/heads/master
| 2020-09-21T10:07:44.440002
| 2019-11-26T04:48:28
| 2019-11-26T04:48:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,641
|
java
|
package io.anuke.arc.input;
import io.anuke.arc.collection.IntArray;
import io.anuke.arc.util.Time;
/**
* Queues events that are later passed to the wrapped {@link InputProcessor}.
* @author Nathan Sweet
*/
public class InputEventQueue implements InputProcessor{
static private final int SKIP = -1;
static private final int KEY_DOWN = 0;
static private final int KEY_UP = 1;
static private final int KEY_TYPED = 2;
static private final int TOUCH_DOWN = 3;
static private final int TOUCH_UP = 4;
static private final int TOUCH_DRAGGED = 5;
static private final int MOUSE_MOVED = 6;
static private final int SCROLLED = 7;
private final IntArray queue = new IntArray();
private final IntArray processingQueue = new IntArray();
private InputProcessor processor;
private long currentEventTime;
public InputEventQueue(){
}
public InputEventQueue(InputProcessor processor){
this.processor = processor;
}
public InputProcessor getProcessor(){
return processor;
}
public void setProcessor(InputProcessor processor){
this.processor = processor;
}
public void drain(){
synchronized(this){
if(processor == null){
queue.clear();
return;
}
processingQueue.addAll(queue);
queue.clear();
}
int[] q = processingQueue.items;
InputProcessor localProcessor = processor;
for(int i = 0, n = processingQueue.size; i < n; ){
int type = q[i++];
currentEventTime = (long)q[i++] << 32 | q[i++] & 0xFFFFFFFFL;
switch(type){
case SKIP:
i += q[i];
break;
case KEY_DOWN:
localProcessor.keyDown(KeyCode.byOrdinal(q[i++]));
break;
case KEY_UP:
localProcessor.keyUp(KeyCode.byOrdinal(q[i++]));
break;
case KEY_TYPED:
localProcessor.keyTyped((char)q[i++]);
break;
case TOUCH_DOWN:
localProcessor.touchDown(q[i++], q[i++], q[i++], KeyCode.byOrdinal(q[i++]));
break;
case TOUCH_UP:
localProcessor.touchUp(q[i++], q[i++], q[i++], KeyCode.byOrdinal(q[i++]));
break;
case TOUCH_DRAGGED:
localProcessor.touchDragged(q[i++], q[i++], q[i++]);
break;
case MOUSE_MOVED:
localProcessor.mouseMoved(q[i++], q[i++]);
break;
case SCROLLED:
localProcessor.scrolled(q[i++] / 256f, q[i++] / 256f);
break;
default:
throw new RuntimeException();
}
}
processingQueue.clear();
}
private synchronized int next(int nextType, int i){
int[] q = queue.items;
for(int n = queue.size; i < n; ){
int type = q[i];
if(type == nextType) return i;
i += 3;
switch(type){
case SKIP:
i += q[i];
break;
case KEY_DOWN:
i++;
break;
case KEY_UP:
i++;
break;
case KEY_TYPED:
i++;
break;
case TOUCH_DOWN:
i += 4;
break;
case TOUCH_UP:
i += 4;
break;
case TOUCH_DRAGGED:
i += 3;
break;
case MOUSE_MOVED:
i += 2;
break;
case SCROLLED:
i += 2;
break;
default:
throw new RuntimeException();
}
}
return -1;
}
private void queueTime(){
long time = Time.nanos();
queue.add((int)(time >> 32));
queue.add((int)time);
}
public synchronized boolean keyDown(KeyCode keycode){
queue.add(KEY_DOWN);
queueTime();
queue.add(keycode.ordinal());
return false;
}
public synchronized boolean keyUp(KeyCode keycode){
queue.add(KEY_UP);
queueTime();
queue.add(keycode.ordinal());
return false;
}
public synchronized boolean keyTyped(char character){
queue.add(KEY_TYPED);
queueTime();
queue.add(character);
return false;
}
public synchronized boolean touchDown(int screenX, int screenY, int pointer, KeyCode button){
queue.add(TOUCH_DOWN);
queueTime();
queue.add(screenX);
queue.add(screenY);
queue.add(pointer);
queue.add(button.ordinal());
return false;
}
public synchronized boolean touchUp(int screenX, int screenY, int pointer, KeyCode button){
queue.add(TOUCH_UP);
queueTime();
queue.add(screenX);
queue.add(screenY);
queue.add(pointer);
queue.add(button.ordinal());
return false;
}
public synchronized boolean touchDragged(int screenX, int screenY, int pointer){
// Skip any queued touch dragged events for the same pointer.
for(int i = next(TOUCH_DRAGGED, 0); i >= 0; i = next(TOUCH_DRAGGED, i + 6)){
if(queue.get(i + 5) == pointer){
queue.set(i, SKIP);
queue.set(i + 3, 3);
}
}
queue.add(TOUCH_DRAGGED);
queueTime();
queue.add(screenX);
queue.add(screenY);
queue.add(pointer);
return false;
}
public synchronized boolean mouseMoved(int screenX, int screenY){
// Skip any queued mouse moved events.
for(int i = next(MOUSE_MOVED, 0); i >= 0; i = next(MOUSE_MOVED, i + 5)){
queue.set(i, SKIP);
queue.set(i + 3, 2);
}
queue.add(MOUSE_MOVED);
queueTime();
queue.add(screenX);
queue.add(screenY);
return false;
}
public synchronized boolean scrolled(float amountX, float amountY){
queue.add(SCROLLED);
queueTime();
queue.add((int)(amountX * 256));
queue.add((int)(amountY * 256));
return false;
}
public long getCurrentEventTime(){
return currentEventTime;
}
}
|
[
"arnukren@gmail.com"
] |
arnukren@gmail.com
|
6caca84179bb3e570125f6b65f9fcda86783a7dd
|
06524e70cf835526f93794b2c4d11cf78bc5d7d2
|
/AR projects/DroidAR/app/src/main/java/com/example/kirti_pc/droidar/commands/system/CameraSetARInputCommand.java
|
f49e3028013cef9a955b551bc161e65438847cf3
|
[] |
no_license
|
KirtiVarinda/Projects
|
3dcb96e4e689ce61d515baa7eacc475094919063
|
4b01814ca04e5159cd82ea8a5136fb8ae9df122d
|
refs/heads/master
| 2021-01-22T04:22:52.149201
| 2017-02-10T07:57:53
| 2017-02-10T07:57:53
| 81,534,494
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 772
|
java
|
package com.example.kirti_pc.droidar.commands.system;
import gl.GLCamera;
import commands.undoable.UndoableCommand;
public class CameraSetARInputCommand extends UndoableCommand {
private GLCamera myTargetCamera;
private boolean valueToSet;
private boolean backupValue;
public CameraSetARInputCommand(GLCamera targetCamera, boolean valueToSet) {
myTargetCamera = targetCamera;
this.valueToSet = valueToSet;
}
@Override
public boolean override_do() {
backupValue = myTargetCamera.isSensorInputEnabled();
myTargetCamera.setSensorInputEnabled(valueToSet);
myTargetCamera.resetBufferedAngle(); // TODO do this here?
return true;
}
@Override
public boolean override_undo() {
myTargetCamera.setSensorInputEnabled(backupValue);
return true;
}
}
|
[
"keeruvarinda@gmail.com"
] |
keeruvarinda@gmail.com
|
987b2fbf0937ba4039e0b8287f01c222014a5f08
|
2527a1e4b30bee9caf7fc392d1015173706c1be1
|
/app/src/main/java/com/yunwei/frame/vendor/baiduTrack/BaiduTrackListener.java
|
67f2ad6fdb2e721bdd35d67000fb389b95092fe0
|
[
"Apache-2.0"
] |
permissive
|
yibulaxi/BaseProject-1
|
72dc0cea30b51930994aea30e4341fa9de507fc2
|
58b3e866fdb8e7173063b8e0f7e494e00e211aca
|
refs/heads/master
| 2021-06-09T17:39:12.346946
| 2017-01-13T04:48:46
| 2017-01-13T04:48:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 391
|
java
|
package com.yunwei.frame.vendor.baiduTrack;
/**
* @author hezhiWu
* @version V1.0
* @Package com.yunwei.baidu
* @Description:历史记录查询回调接口
* @date 2016/9/23 10:32
*/
public interface BaiduTrackListener {
void onQueryHistoryTrackSuccess(HistoryTrackData entity);
void onQueryHistoryTrackFailure(String str);
void onQueryDistanceCallback(String str);
}
|
[
"wuhezhi@wayto.com.cn"
] |
wuhezhi@wayto.com.cn
|
3ebad28fa9a6bbea095aec59e37e6870c4ec1df4
|
642dcf23a9a524c984e77784bb168463f6aaf633
|
/webapi-spring/src/main/java/com/monitorz/webapi/data/City.java
|
0a9f7f62ad4dc991b1023eb5ca945a9434c4be62
|
[] |
no_license
|
malengatiger/new-monitor-repo
|
8075b950b752c6c4a255b9009fd2a3f2ac4607c5
|
f709416132bc545ab9817fed2e0af39bf4afc448
|
refs/heads/master
| 2022-07-13T06:05:01.863463
| 2021-12-08T21:47:38
| 2021-12-08T21:47:38
| 195,287,781
| 3
| 0
| null | 2022-06-27T17:28:12
| 2019-07-04T18:41:49
|
Dart
|
UTF-8
|
Java
| false
| false
| 1,639
|
java
|
package com.monitorz.webapi.data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import lombok.Data;
@Data
@Document(collection = "cities")
public class City {
@Id
private String id;
private String cityId;
String name, countryId, countryName, provinceName, created;
Position position;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getCityId() {
return cityId;
}
public void setCityId(String cityId) {
this.cityId = cityId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCountryId() {
return countryId;
}
public void setCountryId(String countryId) {
this.countryId = countryId;
}
public String getCountryName() {
return countryName;
}
public void setCountryName(String countryName) {
this.countryName = countryName;
}
public String getProvinceName() {
return provinceName;
}
public void setProvinceName(String provinceName) {
this.provinceName = provinceName;
}
public String getCreated() {
return created;
}
public void setCreated(String created) {
this.created = created;
}
public Position getPosition() {
return position;
}
public void setPosition(Position position) {
this.position = position;
}
}
|
[
"malengatiger@gmail.com"
] |
malengatiger@gmail.com
|
28348df7abbeb5779d4d12719a8ee99217b18b1c
|
ba5874c92dd537ef2974a07e0d8771929860587f
|
/code-samples/common/src/main/java/utils/IOUtils.java
|
74458983afa6cbb13f541f10c4e3a951bdfc1010
|
[] |
no_license
|
fatihalgan/Infinispan
|
927b517ede7e6826dcf7b7c90518e5b326fa0b3c
|
8ced205b02d7123ce54a592ed8108e6f4ac0fb4a
|
refs/heads/master
| 2021-01-16T23:19:32.815332
| 2016-06-01T19:57:51
| 2016-06-01T19:57:51
| 60,206,149
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 696
|
java
|
package utils;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class IOUtils {
public static String readLine(String s) {
System.out.print(s);
String returnval = null;
try {
BufferedReader bufRead = new BufferedReader(new InputStreamReader(System.in));
returnval = bufRead.readLine();
} catch (IOException e) {
throw new RuntimeException(e);
}
return returnval;
}
public static void dumpWelcomeMessage() {
System.out.println("Ticket booking system");
System.out.println("=====================");
System.out.println("Commands: book, pay, list");
}
}
|
[
"fatih.algan@gmail.com"
] |
fatih.algan@gmail.com
|
328247acaa522866786a51de95a12f006742b6ff
|
6baf1fe00541560788e78de5244ae17a7a2b375a
|
/hollywood/com.oculus.userserver2-UserServer2/sources/com/fasterxml/jackson/databind/deser/std/NumberDeserializers$BigDecimalDeserializer.java
|
ab303859db3b89adf8a494d3b497828d04132014
|
[] |
no_license
|
phwd/quest-tracker
|
286e605644fc05f00f4904e51f73d77444a78003
|
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
|
refs/heads/main
| 2023-03-29T20:33:10.959529
| 2021-04-10T22:14:11
| 2021-04-10T22:14:11
| 357,185,040
| 4
| 2
| null | 2021-04-12T12:28:09
| 2021-04-12T12:28:08
| null |
UTF-8
|
Java
| false
| false
| 1,495
|
java
|
package com.fasterxml.jackson.databind.deser.std;
import X.AbstractC0122Rd;
import X.AnonymousClass9p;
import X.AnonymousClass9r;
import X.B3;
import X.Rn;
import com.fasterxml.jackson.databind.annotation.JacksonStdImpl;
import java.io.IOException;
import java.math.BigDecimal;
@JacksonStdImpl
public class NumberDeserializers$BigDecimalDeserializer extends StdScalarDeserializer<BigDecimal> {
public static final NumberDeserializers$BigDecimalDeserializer A00 = new NumberDeserializers$BigDecimalDeserializer();
private final BigDecimal A00(Rn rn) throws IOException, AnonymousClass9r {
AnonymousClass9p r1 = ((B3) rn).A00;
if (r1 == AnonymousClass9p.VALUE_NUMBER_INT || r1 == AnonymousClass9p.VALUE_NUMBER_FLOAT) {
return rn.A0A();
}
if (r1 == AnonymousClass9p.VALUE_STRING) {
String trim = rn.A09().trim();
if (trim.length() == 0) {
return null;
}
try {
return new BigDecimal(trim);
} catch (IllegalArgumentException unused) {
throw null;
}
} else {
throw null;
}
}
public NumberDeserializers$BigDecimalDeserializer() {
super(BigDecimal.class);
}
@Override // com.fasterxml.jackson.databind.JsonDeserializer
public final /* bridge */ /* synthetic */ Object A03(Rn rn, AbstractC0122Rd rd) throws IOException, AnonymousClass9r {
return A00(rn);
}
}
|
[
"cyuubiapps@gmail.com"
] |
cyuubiapps@gmail.com
|
9280d0745c44fa7fe78d98d16dc74cdb72246f53
|
8782061b1e1223488a090f9f3f3b8dfe489e054a
|
/storeMongoDB/projects/ABCD/andrekeane_marenor/main/24.java
|
d470b412d88d37f0a435aea7d39ec185a4758f06
|
[] |
no_license
|
ryosuke-ku/TCS_init
|
3cb79a46aa217e62d8fff13d600f2a9583df986c
|
e1207d68bdc9d2f1eed63ef44a672b5a37b45633
|
refs/heads/master
| 2020-08-08T18:40:17.929911
| 2019-10-18T01:06:32
| 2019-10-18T01:06:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 356
|
java
|
public void setHighlightColor(Color highlightColor)
{
if (highlightColor == null)
{
String message = Logging.getMessage("nullValue.ColorIsNull");
Logging.logger().severe(message);
throw new IllegalStateException(message);
}
this.highlightColor = highlightColor;
}
|
[
"naist1020@gmail.com"
] |
naist1020@gmail.com
|
6693ba4ca67d8f5f24c2434763eab4a63297ec39
|
1584faa7facf9b2fa2e0fb6d8ecb672a6457a782
|
/week-04/assessment/sustainable-foraging/src/main/java/learn/foraging/models/CategoryValue.java
|
12432e960cb2a2616c4fbfc372e8c02c41b4a795
|
[] |
no_license
|
JacobRosenbaum/dev10-classwork
|
4c652f1a187df78b9a138b13688b7964766b9f49
|
b1444ce74f590462536cb10c04e3e6c87cc2bd1f
|
refs/heads/main
| 2023-03-04T04:58:59.065185
| 2021-02-19T18:25:16
| 2021-02-19T18:25:16
| 319,703,778
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,156
|
java
|
package learn.foraging.models;
import java.math.BigDecimal;
import java.math.RoundingMode;
public class CategoryValue {
private Item item;
private Category category;
private double kilograms;
private BigDecimal value;
public CategoryValue(Item item, Category category, BigDecimal value) {
this.item = item;
this.category = category;
this.value = value;
}
public Item getItem() {
return item;
}
public void setItem(Item item) {
this.item = item;
}
public Category getCategory() {
return category;
}
public void setCategory(Category category) {
this.category = category;
}
public double getKilograms() {
return kilograms;
}
public void setKilograms(double kilograms) {
this.kilograms = kilograms;
}
public BigDecimal getValue() {
if (item == null || item.getDollarPerKilogram() == null) {
return BigDecimal.ZERO;
}
BigDecimal kilos = new BigDecimal(kilograms).setScale(4, RoundingMode.HALF_UP);
return item.getDollarPerKilogram().multiply(kilos);
}
}
|
[
"jacobrosenbaum95@gmail.com"
] |
jacobrosenbaum95@gmail.com
|
f1999706e56e300b4f266c10de81086627fba8ef
|
bb4b2b54c8d532612e83fb09cd9ff6e883d239a8
|
/src/org/jiangtao/daoImpl/CommentDaoImpl.java
|
c4d7e9d0ac832cde62f96cc04d3bdd4444dacd36
|
[] |
no_license
|
Labradors/blog-backup
|
ea3809f214b084ac910bcb6a656630db6b977979
|
dbf418c94a885035a8462659e7c70600a0250ab7
|
refs/heads/master
| 2021-06-07T10:58:28.163245
| 2016-11-06T13:29:21
| 2016-11-06T13:29:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,200
|
java
|
package org.jiangtao.daoImpl;
import com.j256.ormlite.dao.Dao;
import com.j256.ormlite.dao.DaoManager;
import com.j256.ormlite.stmt.QueryBuilder;
import com.j256.ormlite.support.ConnectionSource;
import org.jiangtao.bean.Accounts;
import org.jiangtao.bean.Comment;
import org.jiangtao.utils.Collections;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.ArrayList;
/**
* Created by MrJiang on 5/1/2016.
* 包含获取文章所有评论,添加评论等内容
*/
public class CommentDaoImpl {
private static CommentDaoImpl instance;
private ConnectionSource collections;
private Dao<Comment, String> mCommentDao;
private CommentDaoImpl() {
}
public static CommentDaoImpl getInstance() {
if (instance == null) {
synchronized (CommentDaoImpl.class) {
instance = new CommentDaoImpl();
}
}
return instance;
}
/**
* 获取文章的所有评论
*
* @param articleId
* @return
*/
public ArrayList<Comment> getAllComment(String articleId) {
collections = Collections.getInstance().openConnectionResource();
try {
mCommentDao = DaoManager.createDao(collections, Comment.class);
QueryBuilder<Comment, String> builder = mCommentDao.queryBuilder();
builder.where().eq("article_id", String.valueOf(articleId));
ArrayList<Comment> comments = (ArrayList<Comment>) builder.query();
if (comments != null && comments.size() != 0) {
return comments;
}
} catch (SQLException e) {
e.printStackTrace();
} finally {
Collections.getInstance().closeConnectionResource(collections);
}
return null;
}
/**
* parent_id为0,表示只是评论,parent_id不为0,表示回复
*
* @param articleId
* @param content
* @param isParent
* @param accountId
* @param parentID
* @return
*/
public synchronized ArrayList<Comment> insertComment(int articleId, String content, int isParent, int accountId, int parentID) {
Comment comment = new Comment();
comment.setContent(content);
comment.setArticle_id(articleId);
Timestamp timestamp = new Timestamp(System.currentTimeMillis());
comment.setCreate_at(timestamp.getTime());
comment.setParent_id(isParent);
Accounts accounts = AccountsDaoImpl.getInstance().getAccount(String.valueOf(accountId));
comment.setAccount(accounts);
Accounts parentAccounts = AccountsDaoImpl.getInstance().getAccount(String.valueOf(parentID));
comment.setParent_account(parentAccounts);
collections = Collections.getInstance().openConnectionResource();
try {
mCommentDao = DaoManager.createDao(collections, Comment.class);
mCommentDao.create(comment);
return getAllComment(String.valueOf(articleId));
} catch (SQLException e) {
e.printStackTrace();
} finally {
Collections.getInstance().closeConnectionResource(collections);
}
return null;
}
}
|
[
"jiangtao103cp@163.com"
] |
jiangtao103cp@163.com
|
14972a769d91fe63f146f725336d9d6198d76806
|
47da275d6b10915cc60d6fc3238b5bc243d6c5c1
|
/de.rcenvironment.core.gui.workflow.integration/src/main/java/de/rcenvironment/core/gui/workflow/integration/IntegrationEndpointPropertySection.java
|
c3746dcbecbdba5408b4a051b00b3039652d1c17
|
[] |
no_license
|
rcenvironment/rce-test
|
aa325877be8508ee0f08181304a50bd97fa9f96c
|
392406e8ca968b5d8168a9dd3155d620b5631ab6
|
HEAD
| 2016-09-06T03:35:58.165632
| 2015-01-16T10:45:50
| 2015-01-16T10:45:50
| 29,299,206
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,120
|
java
|
/*
* Copyright (C) 2006-2014 DLR, Germany
*
* All rights reserved
*
* http://www.rcenvironment.de/
*/
package de.rcenvironment.core.gui.workflow.integration;
import de.rcenvironment.core.datamodel.api.EndpointType;
import de.rcenvironment.core.gui.workflow.editor.properties.EndpointPropertySection;
import de.rcenvironment.core.gui.workflow.editor.properties.EndpointSelectionPane;
import de.rcenvironment.core.gui.workflow.editor.properties.Messages;
/**
* {@link EndpointPropertySection} for all custom integrated tools.
*
* @author Sascha Zur
*/
public class IntegrationEndpointPropertySection extends EndpointPropertySection {
public IntegrationEndpointPropertySection() {
super();
EndpointSelectionPane inputPane = new EndpointSelectionPane(Messages.inputs,
EndpointType.INPUT, this, false, "default", false);
EndpointSelectionPane outputPane = new EndpointSelectionPane(Messages.outputs,
EndpointType.OUTPUT, this, true, "default", false);
setColumns(2);
setPanes(inputPane, outputPane);
}
}
|
[
"robert.mischke@dlr.de"
] |
robert.mischke@dlr.de
|
07e985f362ee0b0603a9aea8a0b6d6d13096ebad
|
995f73d30450a6dce6bc7145d89344b4ad6e0622
|
/Honor5C-7.0/src/main/java/com/android/internal/util/IndentingPrintWriter.java
|
b17bf183f7e8f4da25f7da71c1d2edcac0b7da98
|
[] |
no_license
|
morningblu/HWFramework
|
0ceb02cbe42585d0169d9b6c4964a41b436039f5
|
672bb34094b8780806a10ba9b1d21036fd808b8e
|
refs/heads/master
| 2023-07-29T05:26:14.603817
| 2021-09-03T05:23:34
| 2021-09-03T05:23:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,762
|
java
|
package com.android.internal.util;
import android.util.PtmLog;
import java.io.PrintWriter;
import java.io.Writer;
import java.util.Arrays;
public class IndentingPrintWriter extends PrintWriter {
private char[] mCurrentIndent;
private int mCurrentLength;
private boolean mEmptyLine;
private StringBuilder mIndentBuilder;
private char[] mSingleChar;
private final String mSingleIndent;
private final int mWrapLength;
public IndentingPrintWriter(Writer writer, String singleIndent) {
this(writer, singleIndent, -1);
}
public IndentingPrintWriter(Writer writer, String singleIndent, int wrapLength) {
super(writer);
this.mIndentBuilder = new StringBuilder();
this.mEmptyLine = true;
this.mSingleChar = new char[1];
this.mSingleIndent = singleIndent;
this.mWrapLength = wrapLength;
}
public void increaseIndent() {
this.mIndentBuilder.append(this.mSingleIndent);
this.mCurrentIndent = null;
}
public void decreaseIndent() {
this.mIndentBuilder.delete(0, this.mSingleIndent.length());
this.mCurrentIndent = null;
}
public void printPair(String key, Object value) {
print(key + PtmLog.KEY_VAL_SEP + String.valueOf(value) + " ");
}
public void printPair(String key, Object[] value) {
print(key + PtmLog.KEY_VAL_SEP + Arrays.toString(value) + " ");
}
public void printHexPair(String key, int value) {
print(key + "=0x" + Integer.toHexString(value) + " ");
}
public void println() {
write(10);
}
public void write(int c) {
this.mSingleChar[0] = (char) c;
write(this.mSingleChar, 0, 1);
}
public void write(String s, int off, int len) {
char[] buf = new char[len];
s.getChars(off, len - off, buf, 0);
write(buf, 0, len);
}
public void write(char[] buf, int offset, int count) {
int indentLength = this.mIndentBuilder.length();
int bufferEnd = offset + count;
int lineStart = offset;
int lineEnd = offset;
while (lineEnd < bufferEnd) {
int lineEnd2 = lineEnd + 1;
char ch = buf[lineEnd];
this.mCurrentLength++;
if (ch == '\n') {
maybeWriteIndent();
super.write(buf, lineStart, lineEnd2 - lineStart);
lineStart = lineEnd2;
this.mEmptyLine = true;
this.mCurrentLength = 0;
}
if (this.mWrapLength > 0 && this.mCurrentLength >= this.mWrapLength - indentLength) {
if (this.mEmptyLine) {
maybeWriteIndent();
super.write(buf, lineStart, lineEnd2 - lineStart);
super.write(10);
this.mEmptyLine = true;
lineStart = lineEnd2;
this.mCurrentLength = 0;
} else {
super.write(10);
this.mEmptyLine = true;
this.mCurrentLength = lineEnd2 - lineStart;
}
}
lineEnd = lineEnd2;
}
if (lineStart != lineEnd) {
maybeWriteIndent();
super.write(buf, lineStart, lineEnd - lineStart);
}
}
private void maybeWriteIndent() {
if (this.mEmptyLine) {
this.mEmptyLine = false;
if (this.mIndentBuilder.length() != 0) {
if (this.mCurrentIndent == null) {
this.mCurrentIndent = this.mIndentBuilder.toString().toCharArray();
}
super.write(this.mCurrentIndent, 0, this.mCurrentIndent.length);
}
}
}
}
|
[
"dstmath@163.com"
] |
dstmath@163.com
|
1a03cf6617bdc6a4d04c07115c56366d7240bd7c
|
be4c64d319d9b2f1231609d75099ad8a0ea7cb54
|
/sdks/java/http_client/v1/src/test/java/org/openapitools/client/model/V1IntervalScheduleTest.java
|
64540aeeb691a2161c097a6b6a94b7cc194b9d94
|
[
"Apache-2.0"
] |
permissive
|
wxrui/polyaxon
|
2a65069352c58edf1e2072f8f29b031f635809d5
|
57a01ed33faca41c8aa42594a9efe15ad0448cee
|
refs/heads/master
| 2022-11-14T06:19:28.159632
| 2020-06-27T21:01:38
| 2020-06-27T21:01:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,413
|
java
|
// Copyright 2018-2020 Polyaxon, 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.
/*
* Polyaxon SDKs and REST API specification.
* Polyaxon SDKs and REST API specification.
*
* The version of the OpenAPI document: 1.1.0-rc0
* Contact: contact@polyaxon.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.openapitools.client.model;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import org.threeten.bp.OffsetDateTime;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
/**
* Model tests for V1IntervalSchedule
*/
public class V1IntervalScheduleTest {
private final V1IntervalSchedule model = new V1IntervalSchedule();
/**
* Model tests for V1IntervalSchedule
*/
@Test
public void testV1IntervalSchedule() {
// TODO: test V1IntervalSchedule
}
/**
* Test the property 'kind'
*/
@Test
public void kindTest() {
// TODO: test kind
}
/**
* Test the property 'startAt'
*/
@Test
public void startAtTest() {
// TODO: test startAt
}
/**
* Test the property 'endAt'
*/
@Test
public void endAtTest() {
// TODO: test endAt
}
/**
* Test the property 'frequency'
*/
@Test
public void frequencyTest() {
// TODO: test frequency
}
/**
* Test the property 'dependsOnPast'
*/
@Test
public void dependsOnPastTest() {
// TODO: test dependsOnPast
}
}
|
[
"mouradmourafiq@gmail.com"
] |
mouradmourafiq@gmail.com
|
c95cfa9c66c9d3eaf138d43f9e4e44b1a4f53567
|
91c6f7ffe48ede9ad8cfea851447cfc476aa301d
|
/src/main/java/com/wpx/spring/demo18/AccountDaoImpl.java
|
1d0e7cf9a26f34e60e7daad3db475b5a7a893287
|
[] |
no_license
|
vclisunlang/javaee
|
db09ba0231378bf14302dbacfd637eabd642e0bb
|
ac30acfea9765460bd3a15ffbc9c46998c24e19f
|
refs/heads/master
| 2021-05-11T05:17:25.099359
| 2018-01-17T12:34:15
| 2018-01-17T12:34:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 505
|
java
|
package com.wpx.spring.demo18;
import org.springframework.jdbc.core.support.JdbcDaoSupport;
public class AccountDaoImpl extends JdbcDaoSupport implements AccountDao {
public void in(String to, Double money) {
String sql="UPDATE account SET money = money + ? WHERE NAME= ? ";
this.getJdbcTemplate().update(sql, money,to);
}
public void out(String from, Double money) {
String sql="UPDATE account SET money = money - ? WHERE NAME= ? ";
this.getJdbcTemplate().update(sql, money,from);
}
}
|
[
"1256317570@qq.com"
] |
1256317570@qq.com
|
dfc6f56d1b7553c094965783d30a6a4d0b8dcf71
|
3acfb6df11412013c50520e812b2183e07c1a8e5
|
/investharyana/src/main/java/com/hartron/investharyana/service/dto/StateDTO.java
|
7fec4f6e60b067793fc695e89fdf9095bc1eba3e
|
[] |
no_license
|
ramanrai1981/investharyana
|
ad2e5b1d622564a23930d578b25155d5cc9ec97a
|
b8f359c120f6dae456ec0490156cf34fd0125a30
|
refs/heads/master
| 2021-01-19T08:29:32.042236
| 2017-04-14T18:34:50
| 2017-04-14T18:34:50
| 87,635,613
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,450
|
java
|
package com.hartron.investharyana.service.dto;
import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.Objects;
import java.util.UUID;
/**
* A DTO for the State entity.
*/
public class StateDTO implements Serializable {
private UUID id;
@NotNull
private String statename;
private String countryname;
public UUID getId() {
return id;
}
public void setId(UUID id) {
this.id = id;
}
public String getStatename() {
return statename;
}
public void setStatename(String statename) {
this.statename = statename;
}
public String getCountryname() {
return countryname;
}
public void setCountryname(String countryname) {
this.countryname = countryname;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
StateDTO stateDTO = (StateDTO) o;
if ( ! Objects.equals(id, stateDTO.id)) { return false; }
return true;
}
@Override
public int hashCode() {
return Objects.hashCode(id);
}
@Override
public String toString() {
return "StateDTO{" +
"id=" + id +
", statename='" + statename + "'" +
", countryname='" + countryname + "'" +
'}';
}
}
|
[
"raman.kumar.rai@gmail.com"
] |
raman.kumar.rai@gmail.com
|
6c13cc7fa34c40dbe6ab1588987f1b3155ee8b4a
|
4d13380edc86bf502a3e48b1290d6b0231c7c28e
|
/src/main/java/nmd/orb/exporter/Channel.java
|
57524bf658c7ea896071ebacf6f024fc79f073c3
|
[] |
no_license
|
igors48/nmdService
|
8f3cab9162059b34bab207b080abfaa59f0dc5f2
|
ae3cfda09aaf30771b8b752fb26164a2384a2d0c
|
refs/heads/develop
| 2020-05-21T15:17:42.139398
| 2019-01-30T20:00:40
| 2019-01-30T20:00:40
| 9,654,583
| 3
| 1
| null | 2017-01-15T10:48:12
| 2013-04-24T18:15:30
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 1,298
|
java
|
package nmd.orb.exporter;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;
import static nmd.orb.util.Assert.assertNotNull;
import static nmd.orb.util.Assert.assertStringIsValid;
/**
* Author : Igor Usenko ( igors48@gmail.com )
* Date : 16.05.13
*/
@XmlRootElement
class Channel {
private String description;
private String title;
private String link;
@XmlElement(name = "item")
private List<Item> items;
Channel() {
// empty
}
public String getDescription() {
return this.description;
}
public void setDescription(final String description) {
assertStringIsValid(description);
this.description = description;
}
public String getTitle() {
return this.title;
}
public void setTitle(final String title) {
assertStringIsValid(title);
this.title = title;
}
public String getLink() {
return this.link;
}
public void setLink(final String link) {
assertStringIsValid(link);
this.link = link;
}
List<Item> getItems() {
return this.items;
}
void setItems(final List<Item> items) {
assertNotNull(items);
this.items = items;
}
}
|
[
"nmds48@gmail.com"
] |
nmds48@gmail.com
|
950584abaf7725db3f6bc26c4735fa60560793d3
|
e257e4af9f33f6b5be5b78fd636491146f543f4e
|
/app/src/main/java/com/mingchu/newcalendar/MainActivity.java
|
38dc96cbf961d0d320d9b7338423a930bcc9ee9d
|
[] |
no_license
|
wuyinlei/NewCalendar
|
fd8d48ff5e202a6b56e76fe8f94c1291de083b54
|
77b2c1c30f730c871e58c2a1f1883abd41cad047
|
refs/heads/master
| 2021-01-22T10:40:17.482807
| 2017-05-29T14:09:06
| 2017-05-29T14:09:06
| 92,650,654
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 485
|
java
|
package com.mingchu.newcalendar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
|
[
"power1118wu@gmail.com"
] |
power1118wu@gmail.com
|
749cf27f01aa21194269af56f0fc380120dc5224
|
600792877088d46531cb71faf2cf9ab6b7a9358f
|
/src/main/java/com/chocolate/chocolateQuest/gui/GuiButtonMultiOptions.java
|
1bd780ce1965515acbe5c037f0a473c747ad7bf7
|
[] |
no_license
|
Bogdan-G/chocolateQuest
|
e6ca3da6a85eddc7291ef7ea4fdf67b8c237362b
|
8f79017f45ac18e14e9db6329cb787195988ff2d
|
refs/heads/master
| 2020-04-15T03:49:36.507542
| 2019-01-09T23:06:52
| 2019-01-09T23:06:52
| 164,361,568
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,000
|
java
|
package com.chocolate.chocolateQuest.gui;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiButton;
@SideOnly(Side.CLIENT)
public class GuiButtonMultiOptions extends GuiButton {
public int value = 0;
String[] names;
public GuiButtonMultiOptions(int id, int posX, int posY, int width, int height, String[] par5Str, int value) {
super(id, posX, posY, width, height, par5Str[value]);
this.names = par5Str;
this.value = value;
}
public boolean mousePressed(Minecraft mc, int x, int y) {
if(super.mousePressed(mc, x, y)) {
this.setValue(++this.value);
return true;
} else {
return false;
}
}
public void setValue(int value) {
if(value >= this.names.length) {
value = 0;
}
this.value = value;
super.displayString = this.names[value];
}
}
|
[
"bogdangtt@gmail.com"
] |
bogdangtt@gmail.com
|
8b8e1e824eb97d8d613d615dde614b7c9b62cf8f
|
1a32d704493deb99d3040646afbd0f6568d2c8e7
|
/BOOT-INF/lib/org/apache/catalina/servlet4preview/RequestDispatcher.java
|
e45913af26477596fdb34996c217bc95025f04ef
|
[] |
no_license
|
yanrumei/bullet-zone-server-2.0
|
e748ff40f601792405143ec21d3f77aa4d34ce69
|
474c4d1a8172a114986d16e00f5752dc019cdcd2
|
refs/heads/master
| 2020-05-19T11:16:31.172482
| 2019-03-25T17:38:31
| 2019-03-25T17:38:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 564
|
java
|
package org.apache.catalina.servlet4preview;
@Deprecated
public abstract interface RequestDispatcher
extends javax.servlet.RequestDispatcher
{
public static final String FORWARD_MAPPING = "javax.servlet.forward.mapping";
public static final String INCLUDE_MAPPING = "javax.servlet.include.mapping";
}
/* Location: C:\Users\ikatwal\Downloads\bullet-zone-server-2.0.jar!\BOOT-INF\lib\tomcat-embed-core-8.5.27.jar!\org\apache\catalina\servlet4preview\RequestDispatcher.class
* Java compiler version: 7 (51.0)
* JD-Core Version: 0.7.1
*/
|
[
"ishankatwal@gmail.com"
] |
ishankatwal@gmail.com
|
76553c27a825c75ef51801c7cd16a3e410014f30
|
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
|
/methods/Method_697.java
|
0e3520e1903e3654f4560a8bdcbee2201dee6bc0
|
[] |
no_license
|
P79N6A/icse_20_user_study
|
5b9c42c6384502fdc9588430899f257761f1f506
|
8a3676bc96059ea2c4f6d209016f5088a5628f3c
|
refs/heads/master
| 2020-06-24T08:25:22.606717
| 2019-07-25T15:31:16
| 2019-07-25T15:31:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 338
|
java
|
/**
* Close the stream. This method does not release the buffer, since its contents might still be required. Note: Invoking this method in this class will have no effect.
*/
public void close(){
if (writer != null && count > 0) {
flush();
}
if (buf.length <= BUFFER_THRESHOLD) {
bufLocal.set(buf);
}
this.buf=null;
}
|
[
"sonnguyen@utdallas.edu"
] |
sonnguyen@utdallas.edu
|
da3bec03221a9f593d730a999b68a4b0ca6909d6
|
61d8b7c6efc2a595a1db2a0abe42c432d935deba
|
/multi-datasource-transaction/src/main/java/tech/qijin/study/transaction/mysql/db2/dao/User2Dao.java
|
eb84a351b43a59c794cef05cab4b378f0b1c6ea1
|
[] |
no_license
|
my1free/qijin-tech-study-java
|
9392a72aca285064d3945e24c0ea7585f4aaedd5
|
1e799abd8717b17acb43196b02fd3ca3392c3c41
|
refs/heads/master
| 2022-06-23T16:58:28.751238
| 2021-03-10T03:31:06
| 2021-03-10T03:31:06
| 250,989,327
| 0
| 0
| null | 2022-06-21T04:15:17
| 2020-03-29T08:48:31
|
Java
|
UTF-8
|
Java
| false
| false
| 397
|
java
|
package tech.qijin.study.transaction.mysql.db2.dao;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tech.qijin.study.transaction.mysql.db2.model.User2;
import java.util.List;
public interface User2Dao {
@Select("select * from user2")
List<User2> selectAll();
@Update("update user2 set age=age+1 where id=1")
Integer update();
}
|
[
"yangshangqiang@inke.cn"
] |
yangshangqiang@inke.cn
|
a04dab39546f2f51e25a8fa6f31d7465bc7cb2e1
|
689cdf772da9f871beee7099ab21cd244005bfb2
|
/classes/com/android/thinkive/framework/message/handler/Message50110$1.java
|
53f5aa8b05ef7cc3cd18bd952b5a224f148ef9d7
|
[] |
no_license
|
waterwitness/dazhihui
|
9353fd5e22821cb5026921ce22d02ca53af381dc
|
ad1f5a966ddd92bc2ac8c886eb2060d20cf610b3
|
refs/heads/master
| 2020-05-29T08:54:50.751842
| 2016-10-08T08:09:46
| 2016-10-08T08:09:46
| 70,314,359
| 2
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,900
|
java
|
package com.android.thinkive.framework.message.handler;
import android.app.Activity;
import android.content.Context;
import android.text.TextUtils;
import android.view.Window;
import com.android.thinkive.framework.ThinkiveInitializer;
import com.android.thinkive.framework.util.CommonUtil;
import com.android.thinkive.framework.util.Log;
import com.android.thinkive.framework.view.InfoDialog;
class Message50110$1
implements Runnable
{
Message50110$1(Message50110 paramMessage50110, Context paramContext) {}
public void run()
{
String str = CommonUtil.getTopActivity(this.val$context);
Activity localActivity = ThinkiveInitializer.getInstance().getActivity(str);
Log.d("50110 currentActivityName = " + str + " currentActivity = " + localActivity);
if (localActivity != null) {
Message50110.access$0(this.this$0, new InfoDialog(localActivity));
}
for (;;)
{
if (!TextUtils.isEmpty(Message50110.access$2(this.this$0))) {
Message50110.access$1(this.this$0).setTitle(Message50110.access$2(this.this$0));
}
Message50110.access$1(this.this$0).setContent(Message50110.access$3(this.this$0));
if ("0".equals(Message50110.access$4(this.this$0))) {
Message50110.access$1(this.this$0).setCancelBtnVisible(false);
}
Message50110.access$1(this.this$0).setFlag(Message50110.access$5(this.this$0));
Message50110.access$1(this.this$0).setSourceModule(Message50110.access$6(this.this$0));
Message50110.access$1(this.this$0).show();
return;
Message50110.access$0(this.this$0, new InfoDialog(this.val$context));
Message50110.access$1(this.this$0).getWindow().setType(2003);
}
}
}
/* Location: E:\apk\dazhihui2\classes-dex2jar.jar!\com\android\thinkive\framework\message\handler\Message50110$1.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"1776098770@qq.com"
] |
1776098770@qq.com
|
c07b437f87355b0bea61d91f462ca92d1054b626
|
7b1e49424c3098d4e4850f290e39e6fb55964678
|
/src/com/akjava/gwt/androidhtml5/client/DataUrlDropDockRootPanel.java
|
f8a5a3664741a6de89bfcace061cd955ebb669cb
|
[
"Apache-2.0"
] |
permissive
|
akjava/gwthtml5apps
|
8e1fb948b2999c1c15bc741d68bb004159539cdf
|
1c594672547f3aef4076ece7c58c7d5c6f19e9ec
|
refs/heads/master
| 2020-04-15T17:31:51.241105
| 2016-05-30T23:57:43
| 2016-05-30T23:57:43
| 19,660,816
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,482
|
java
|
package com.akjava.gwt.androidhtml5.client;
import com.akjava.gwt.html5.client.file.File;
import com.akjava.gwt.html5.client.file.FileHandler;
import com.akjava.gwt.html5.client.file.FileReader;
import com.akjava.gwt.lib.client.LogUtils;
import com.google.common.base.Predicate;
import com.google.gwt.dom.client.Style.Unit;
/*
*
* this is usefull when do nothing drop rootPanel
*/
/**
* @deprecated use common
* @author aki
*
*/
public abstract class DataUrlDropDockRootPanel extends DropDockRootPanel{
public DataUrlDropDockRootPanel(Unit unit,boolean addRootLayoutPanel) {
super(unit,addRootLayoutPanel);
}
private Predicate<File> filePredicate;
public Predicate<File> getFilePredicate() {
return filePredicate;
}
public void setFilePredicate(Predicate<File> filePredicate) {
this.filePredicate = filePredicate;
}
@Override
public void callback(final File file, String parent) {
if(file==null){
return;
}
if(filePredicate!=null && !filePredicate.apply(file)){
return;
}
//LogUtils.log(file+","+parent);
final FileReader reader = FileReader.createFileReader();
reader.setOnLoad(new FileHandler() {
@Override
public void onLoad() {
String dataUrl=reader.getResultAsString();
loadFile(file, dataUrl);
}
});
if(file!=null){
reader.readAsDataURL(file);
}
}
public abstract void loadFile(final File file,final String dataUrl);
}
|
[
"aki@xps"
] |
aki@xps
|
b356d94c7fd34b29c8ca00ebb7e1d39d8ba13013
|
17e8438486cb3e3073966ca2c14956d3ba9209ea
|
/dso/branches/nonstop/dso-l2/src/main/java/com/tc/objectserver/impl/CanCancel.java
|
955a37e7ae4499a917dd88736d491f951b3eca1b
|
[] |
no_license
|
sirinath/Terracotta
|
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
|
00a7662b9cf530dfdb43f2dd821fa559e998c892
|
refs/heads/master
| 2021-01-23T05:41:52.414211
| 2015-07-02T15:21:54
| 2015-07-02T15:21:54
| 38,613,711
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 255
|
java
|
/*
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
*/
package com.tc.objectserver.impl;
import java.util.concurrent.Callable;
/**
*
* @author mscott
*/
public interface CanCancel {
boolean cancel();
}
|
[
"asingh@7fc7bbf3-cf45-46d4-be06-341739edd864"
] |
asingh@7fc7bbf3-cf45-46d4-be06-341739edd864
|
51f5d69a1819e92ae0e1fd9f0c7583131b8a897a
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_584fae3f605c654a13434c1aa0a09d51f52a2cc3/MetricRunnable/2_584fae3f605c654a13434c1aa0a09d51f52a2cc3_MetricRunnable_s.java
|
3167c5725a060ecec5fb440873f46a01d367b6d0
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,262
|
java
|
package com.bizo.asperatus.jmx;
import java.util.List;
import javax.management.MBeanServer;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;
import javax.management.openmbean.CompositeData;
import com.bizo.asperatus.jmx.configuration.MetricConfiguration;
import com.bizo.asperatus.jmx.configuration.MetricConfigurationException;
import com.bizo.asperatus.model.Dimension;
import com.bizo.asperatus.tracker.MetricTracker;
/**
* This runnable executes a single pull of data from JMX and pushes the information to Asperatus.
*/
public class MetricRunnable implements Runnable {
private final MBeanServer mBeanServer;
private final ObjectName jmxName;
private final MetricTracker tracker;
private final List<Dimension> dimensions;
private final MetricConfiguration config;
private final ErrorHandler errorHandler;
/**
* Creates a new MetricRunnable.
*
* @param config
* the configuration to pull
* @param server
* the MBeanServer containing data
* @param tracker
* the Asperatus tracker that will receive data
* @param dimensions
* the dimensions to send to Asperatus
* @param errorHandler
* the handler that processes error notifications
*/
public MetricRunnable(
final MetricConfiguration config,
final MBeanServer server,
final MetricTracker tracker,
final List<Dimension> dimensions,
final ErrorHandler errorHandler) {
mBeanServer = server;
this.tracker = tracker;
this.dimensions = dimensions;
this.config = config;
this.errorHandler = errorHandler;
try {
jmxName = new ObjectName(config.getObjectName());
} catch (final MalformedObjectNameException moan) {
throw new MetricConfigurationException(moan);
}
}
@Override
public void run() {
try {
final Object result = mBeanServer.getAttribute(jmxName, config.getAttribute());
if (config.getCompositeDataKey() != null) {
if (result instanceof CompositeData) {
final CompositeData cData = (CompositeData) result;
final Object compositeDataValue = cData.get(config.getCompositeDataKey());
if (compositeDataValue != null && compositeDataValue instanceof Number) {
track((Number) compositeDataValue);
}
} else {
typeError(result, CompositeData.class);
}
} else if (result instanceof Number) {
track((Number) result);
} else {
typeError(result, Number.class);
}
} catch (final Exception e) {
errorHandler.handleError("Error while getting data for metric " + config.getMetricName(), e);
}
}
private void track(final Number value) {
tracker.track(config.getMetricName(), value, config.getUnit(), dimensions);
}
private void typeError(final Object result, final Class<?> expectedType) {
final String actualType = result != null ? result.getClass().getName() : "null";
errorHandler.handleError(
String.format("Metric %s returned a %s, required a %s", config.getMetricName(), actualType, expectedType),
null);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
a774e42ef1be6cb132a9b0a5ad396cae50097c1b
|
598c9459a42282de936de1d1a67622eca4883813
|
/Primer semestre/Diseño del Software/Prac.7/src/outputs/Output.java
|
7f96c322771c615c5090aa61282817c03f47c371
|
[
"MIT"
] |
permissive
|
SantiMA10/3ero
|
85550dbc077309b73122a4db35e1f43124efb0a4
|
570aeb6c60615285329df2ffc7ebf50666a20faa
|
refs/heads/master
| 2021-05-01T12:41:06.218185
| 2018-01-28T11:56:56
| 2018-01-28T11:56:56
| 51,208,804
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 137
|
java
|
package outputs;
import java.io.*;
public interface Output {
void send(char c) throws IOException;
void close() throws IOException;
}
|
[
"santiagomartinagra@gmail.com"
] |
santiagomartinagra@gmail.com
|
7f8910e4f29455c1d9ada6f345c04a0554c03450
|
5a0bfac7ad00c079fe8e0bdf1482f4271c46eeab
|
/app/src/main/wechat6.5.3/com/tencent/mm/plugin/card/ui/c.java
|
ef22a4f98ac0f1bc0e4adbeb275e202b7afb4edd
|
[] |
no_license
|
newtonker/wechat6.5.3
|
8af53a870a752bb9e3c92ec92a63c1252cb81c10
|
637a69732afa3a936afc9f4679994b79a9222680
|
refs/heads/master
| 2020-04-16T03:32:32.230996
| 2017-06-15T09:54:10
| 2017-06-15T09:54:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 954
|
java
|
package com.tencent.mm.plugin.card.ui;
import com.tencent.mm.plugin.card.base.a;
import com.tencent.mm.plugin.card.base.b;
import com.tencent.mm.plugin.card.model.CardInfo;
import com.tencent.mm.plugin.card.model.af;
public final class c implements a {
private b eHH;
public final /* synthetic */ b iQ(int i) {
return this.eHH != null ? (CardInfo) this.eHH.getItem(i) : null;
}
public c(b bVar) {
this.eHH = bVar;
}
public final void onCreate() {
if (this.eHH != null) {
af.aak().c(this.eHH);
}
}
public final void onDestroy() {
if (this.eHH != null) {
af.aak().d(this.eHH);
b bVar = this.eHH;
bVar.avc();
bVar.eFW.release();
bVar.eFW = null;
this.eHH = null;
}
}
public final void zk() {
if (this.eHH != null) {
this.eHH.a(null, null);
}
}
}
|
[
"zhangxhbeta@gmail.com"
] |
zhangxhbeta@gmail.com
|
85fd8bfdc13fad66a22e318e75cdbff0919f618f
|
2fbb920555d82dc6fdadc129749acf6c632fb7d4
|
/gdsap-framework/src/main/java/uk/co/quidos/gdsap/evaluation/persistence/GdsapEvalSolutionSeqMapper.java
|
d96a08adefb21fd47c6821ffdc95decc38202ee3
|
[
"Apache-2.0"
] |
permissive
|
ZhangPeng1990/crm
|
3cd31b6a121418c47032979354af0886a236a0cf
|
c5b176718924c024a13cc6ceccb2e737e70cedd3
|
refs/heads/master
| 2020-06-05T18:25:41.600112
| 2015-04-29T10:38:01
| 2015-04-29T10:38:01
| 34,787,517
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 583
|
java
|
package uk.co.quidos.gdsap.evaluation.persistence;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import uk.co.quidos.gdsap.evaluation.persistence.object.GdsapEvalSolutionSeq;
@Repository
public interface GdsapEvalSolutionSeqMapper
{
int insert(GdsapEvalSolutionSeq model);
void delete(Long reportId);
GdsapEvalSolutionSeq load(@Param("reportId") Long reportId, @Param("solutionType") Integer solutionType);
void update(GdsapEvalSolutionSeq model);
void updateSelective(GdsapEvalSolutionSeq model);
}
|
[
"peng.zhang@argylesoftware.co.uk"
] |
peng.zhang@argylesoftware.co.uk
|
508f17db7bc17926874ed95f56c829a7f9308c5a
|
e89d45f9e6831afc054468cc7a6ec675867cd3d7
|
/src/main/java/com/microsoft/graph/requests/extensions/ReportRootGetTeamsDeviceUsageDistributionUserCountsCollectionResponse.java
|
ad5690948c9171508ff2361bbd008865187fc2b8
|
[
"MIT"
] |
permissive
|
isabella232/msgraph-beta-sdk-java
|
67d3b9251317f04a465042d273fe533ef1ace13e
|
7d2b929d5c99c01ec1af1a251f4bf5876ca95ed8
|
refs/heads/dev
| 2023-03-12T05:44:24.349020
| 2020-11-19T15:51:17
| 2020-11-19T15:51:17
| 318,158,544
| 0
| 0
|
MIT
| 2021-02-23T20:48:09
| 2020-12-03T10:37:46
| null |
UTF-8
|
Java
| false
| false
| 2,823
|
java
|
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.requests.extensions;
import com.microsoft.graph.http.IRequestBuilder;
import com.microsoft.graph.core.ClientException;
import com.microsoft.graph.concurrency.ICallback;
import com.microsoft.graph.models.extensions.TeamsDeviceUsageDistributionUserCounts;
import java.util.Arrays;
import java.util.EnumSet;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import com.microsoft.graph.serializer.IJsonBackedObject;
import com.microsoft.graph.serializer.ISerializer;
import com.microsoft.graph.serializer.AdditionalDataManager;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Report Root Get Teams Device Usage Distribution User Counts Collection Response.
*/
public class ReportRootGetTeamsDeviceUsageDistributionUserCountsCollectionResponse implements IJsonBackedObject {
@SerializedName("value")
@Expose
public java.util.List<TeamsDeviceUsageDistributionUserCounts> value;
@SerializedName("@odata.nextLink")
@Expose(serialize = false)
public String nextLink;
private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
@Override
public final AdditionalDataManager additionalDataManager() {
return additionalDataManager;
}
/**
* The raw representation of this class
*/
private JsonObject rawObject;
/**
* The serializer
*/
private ISerializer serializer;
/**
* Gets the raw representation of this class
*
* @return the raw representation of this class
*/
public JsonObject getRawObject() {
return rawObject;
}
/**
* Gets serializer
*
* @return the serializer
*/
protected ISerializer getSerializer() {
return serializer;
}
/**
* Sets the raw JSON object
*
* @param serializer the serializer
* @param json the JSON object to set this object to
*/
public void setRawObject(final ISerializer serializer, final JsonObject json) {
this.serializer = serializer;
rawObject = json;
if (json.has("value")) {
final JsonArray array = json.getAsJsonArray("value");
for (int i = 0; i < array.size(); i++) {
value.get(i).setRawObject(serializer, (JsonObject) array.get(i));
}
}
}
}
|
[
"GraphTooling@service.microsoft.com"
] |
GraphTooling@service.microsoft.com
|
934f59f200688c42dec9e7a347abf8654c26c7ca
|
36073e09d6a12a275cc85901317159e7fffa909e
|
/thomasjungblut_thomasjungblut-common/modifiedFiles/2/old/MinHash.java
|
f6eb0970738aea61089770d2a17d65f220b6bfcc
|
[] |
no_license
|
monperrus/bug-fixes-saner16
|
a867810451ddf45e2aaea7734d6d0c25db12904f
|
9ce6e057763db3ed048561e954f7aedec43d4f1a
|
refs/heads/master
| 2020-03-28T16:00:18.017068
| 2018-11-14T13:48:57
| 2018-11-14T13:48:57
| 148,648,848
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,928
|
java
|
package de.jungblut.nlp;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Random;
import java.util.Set;
import com.google.common.base.Preconditions;
import com.google.common.hash.Hashing;
import de.jungblut.datastructure.ArrayUtils;
import de.jungblut.math.DoubleVector;
import de.jungblut.math.DoubleVector.DoubleVectorElement;
/**
* Linear MinHash algorithm to find near duplicates faster or to speedup nearest
* neighbour searches.
*
* @author thomas.jungblut
*
*/
public final class MinHash {
/*
* define some hashfunctions
*/
public static enum HashType {
LINEAR, MURMUR128, MD5
}
abstract class HashFunction {
protected int seed;
public HashFunction(int seed) {
this.seed = seed;
}
abstract int hash(byte[] bytes);
}
class LinearHashFunction extends HashFunction {
private int seed2;
public LinearHashFunction(int seed, int seed2) {
super(seed);
this.seed2 = seed2;
}
@Override
int hash(byte[] bytes) {
long hashValue = 31;
for (byte byteVal : bytes) {
hashValue *= seed * byteVal;
hashValue += seed2;
}
return Math.abs((int) (hashValue % 2147482949));
}
}
class Murmur128HashFunction extends HashFunction {
com.google.common.hash.HashFunction murmur;
public Murmur128HashFunction(int seed) {
super(seed);
this.murmur = Hashing.murmur3_128(seed);
}
@Override
int hash(byte[] bytes) {
return murmur.hashBytes(bytes).asInt();
}
}
class MD5HashFunction extends HashFunction {
com.google.common.hash.HashFunction md5;
public MD5HashFunction(int seed) {
super(seed);
this.md5 = Hashing.md5();
}
@Override
int hash(byte[] bytes) {
return md5.hashBytes(bytes).asInt();
}
}
/*
* Hashfunction end
*/
private final int numHashes;
private final HashFunction[] functions;
private MinHash(int numHashes) {
this(numHashes, HashType.LINEAR, System.currentTimeMillis());
}
private MinHash(int numHashes, HashType type) {
this(numHashes, type, System.currentTimeMillis());
}
private MinHash(int numHashes, HashType type, long seed) {
this.numHashes = numHashes;
this.functions = new HashFunction[numHashes];
Random r = new Random(seed);
for (int i = 0; i < numHashes; i++) {
switch (type) {
case LINEAR:
functions[i] = new LinearHashFunction(r.nextInt(), r.nextInt());
break;
case MURMUR128:
functions[i] = new Murmur128HashFunction(r.nextInt());
break;
case MD5:
functions[i] = new MD5HashFunction(r.nextInt());
break;
default:
throw new IllegalArgumentException(
"Don't know the equivalent hashfunction to: " + type);
}
}
}
/**
* Minhashes the given vector by iterating over all non zero items and hashing
* each byte in its value (as an integer). So it will end up with 4 bytes to
* be hashed into a single integer by a linear hash function.
*
* @param vector a arbitrary vector.
* @return a int array of min hashes based on how many hashes were configured.
*/
public int[] minHashVector(DoubleVector vector) {
int[] minHashes = new int[numHashes];
byte[] bytesToHash = new byte[4];
Arrays.fill(minHashes, Integer.MAX_VALUE);
for (int i = 0; i < numHashes; i++) {
Iterator<DoubleVectorElement> iterateNonZero = vector.iterateNonZero();
while (iterateNonZero.hasNext()) {
DoubleVectorElement next = iterateNonZero.next();
int value = (int) next.getValue();
bytesToHash[0] = (byte) (value >> 24);
bytesToHash[1] = (byte) (value >> 16);
bytesToHash[2] = (byte) (value >> 8);
bytesToHash[3] = (byte) value;
int hash = functions[i].hash(bytesToHash);
if (minHashes[i] > hash) {
minHashes[i] = hash;
}
}
}
return minHashes;
}
/**
* Measures the similarity between two min hash arrays by comparing the hashes
* at the same index. This is assuming that both arrays having the same size.
*
* @return a similarity between 0 and 1, where 1 is very similar.
*/
@SuppressWarnings("static-method")
public double measureSimilarity(int[] left, int[] right) {
Preconditions.checkArgument(left.length == right.length,
"Left length was not equal to right length! " + left.length + " != "
+ right.length);
if (left.length + right.length == 0)
return 0d;
int[] union = ArrayUtils.union(left, right);
int[] intersection = ArrayUtils.intersectionUnsorted(left, right);
return intersection.length / (double) union.length;
}
/**
* Generates cluster keys from the minhashes. Make sure that if you are going
* to lookup the ids in a hashtable, sort out these that don't have a specific
* minimum occurence. Also make sure that if you're using this in parallel,
* you have to make sure that the seeds of the minhash should be consistent
* across each task. Otherwise this key will be completely random.
*
* @param keyGroups how many keygroups there should be, normally it's just a
* single per hash.
* @return a set of string IDs that can refer as cluster identifiers.
*/
public Set<String> createClusterKeys(int[] minHashes, int keyGroups) {
HashSet<String> set = new HashSet<>();
for (int i = 0; i < numHashes; i++) {
StringBuilder clusterIdBuilder = new StringBuilder();
for (int j = 0; j < keyGroups; j++) {
clusterIdBuilder.append(minHashes[(i + j) % minHashes.length]).append(
'_');
}
String clusterId = clusterIdBuilder.toString();
clusterId = clusterId.substring(0, clusterId.lastIndexOf('_'));
set.add(clusterId);
}
return set;
}
/**
* Creates a {@link MinHash} instance with the given number of hash functions
* with a linear hashing function.
*/
public static MinHash create(int numHashes) {
return new MinHash(numHashes);
}
/**
* Creates a {@link MinHash} instance with the given number of hash functions
* and a seed to be used in parallel systems. This method uses a linear
* hashfunction.
*/
public static MinHash create(int numHashes, long seed) {
return new MinHash(numHashes, HashType.LINEAR, seed);
}
/**
* Creates a {@link MinHash} instance with the given number of hash functions.
*/
public static MinHash create(int numHashes, HashType type) {
return new MinHash(numHashes, type);
}
/**
* Creates a {@link MinHash} instance with the given number of hash functions
* and a seed to be used in parallel systems.
*/
public static MinHash create(int numHashes, HashType type, long seed) {
return new MinHash(numHashes, type, seed);
}
}
|
[
"martin.monperrus@gnieh.org"
] |
martin.monperrus@gnieh.org
|
97f1496aa02eaca19e24afd7bc7713c7b5f48c24
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_341ec8ca6834a3c50a86ae8892b097b815a1b7e8/MakeAppTouchTestable/2_341ec8ca6834a3c50a86ae8892b097b815a1b7e8_MakeAppTouchTestable_t.java
|
9429879f9fce91e46bafef6a7025021783681eed
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,525
|
java
|
package com.soasta.jenkins;
import hudson.AbortException;
import hudson.Extension;
import hudson.FilePath;
import hudson.Launcher;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.BuildListener;
import hudson.model.JDK;
import hudson.tasks.BuildStepDescriptor;
import hudson.tasks.Builder;
import hudson.util.ArgumentListBuilder;
import hudson.util.ListBoxModel;
import hudson.util.QuotedStringTokenizer;
import org.kohsuke.stapler.DataBoundConstructor;
import javax.inject.Inject;
import java.io.IOException;
/**
* @author Kohsuke Kawaguchi
*/
public class MakeAppTouchTestable extends Builder {
private final String url;
private final String projectFile,target;
private final String additionalOptions;
@DataBoundConstructor
public MakeAppTouchTestable(String url, String projectFile, String target, String additionalOptions) {
this.url = url;
this.projectFile = projectFile;
this.target = target;
this.additionalOptions = additionalOptions;
}
public String getUrl() {
return url;
}
public String getProjectFile() {
return projectFile;
}
public String getTarget() {
return target;
}
public String getAdditionalOptions() {
return additionalOptions;
}
public CloudTestServer getServer() {
return CloudTestServer.get(url);
}
@Override
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException {
ArgumentListBuilder args = new ArgumentListBuilder();
JDK java = build.getProject().getJDK();
if (java!=null)
args.add(java.getHome()+"/bin/java");
else
args.add("java");
CloudTestServer s = getServer();
if (s==null)
throw new AbortException("No TouchTest server is configured in the system configuration.");
FilePath path = new MakeAppTouchTestableInstaller(s).performInstallation(build.getBuiltOn(), listener);
args.add("-jar").add(path.child("MakeAppTouchTestable.jar"))
.add("-overwriteapp")
.add("-project", projectFile)
.add("-target", target)
.add("-url").add(s.getUrl())
.add("-username",s.getUsername())
.add("-password").addMasked(s.getPassword().getPlainText());
args.add(new QuotedStringTokenizer(additionalOptions).toArray());
int r = launcher.launch().cmds(args).pwd(build.getWorkspace()).stdout(listener).join();
return r==0;
}
@Extension
public static class DescriptorImpl extends BuildStepDescriptor<Builder> {
@Inject
CloudTestServer.DescriptorImpl serverDescriptor;
@Override
public boolean isApplicable(Class<? extends AbstractProject> jobType) {
return true;
}
public ListBoxModel doFillUrlItems() {
ListBoxModel r = new ListBoxModel();
for (CloudTestServer s : serverDescriptor.getServers()) {
r.add(s.getUrl().toExternalForm());
}
return r;
}
public boolean showUrlField() {
return serverDescriptor.getServers().size()>1;
}
@Override
public String getDisplayName() {
return "Make App TouchTestable";
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
b4624f5b864227a3c5cba507b3f36a2c86b2a053
|
802bd0e3175fe02a3b6ca8be0a2ff5347a1fd62c
|
/corelibrary/src/main/java/com/wuwind/corelibrary/network/download/DownloadTaskListener.java
|
2308285bb1bf3e35f74b0e29874453e9d58bd9e8
|
[] |
no_license
|
wuwind/CstFramePub
|
87b8534d85cabcf6b8ca58077ef54d706c8a6a91
|
4059789b42224fe53806569673065a207c0890dd
|
refs/heads/master
| 2023-04-11T20:58:37.505639
| 2021-04-14T06:11:29
| 2021-04-14T06:11:29
| 351,687,796
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 558
|
java
|
package com.wuwind.corelibrary.network.download;
/**
* Created by dzc on 15/11/21.
*/
public interface DownloadTaskListener {
void onPrepare(DownloadTask downloadTask);
void onStart(DownloadTask downloadTask);
void onDownloading(DownloadTask downloadTask);
void onPause(DownloadTask downloadTask);
void onCancel(DownloadTask downloadTask);
void onCompleted(DownloadTask downloadTask);
void onError(DownloadTask downloadTask, int errorCode);
int DOWNLOAD_ERROR_FILE_NOT_FOUND = -1;
int DOWNLOAD_ERROR_IO_ERROR = -2;
}
|
[
"412719784@qq.com"
] |
412719784@qq.com
|
1446f715b209128da6e4f1c3dfce9a22e1fac70a
|
2df8d1ebf168c0db3eb02cf180548983e720d1e3
|
/src/main/java/com/waw/hr/model/AdminUserModel.java
|
cc2c82f9bc1008551cec286a26f9b34aae11a521
|
[] |
no_license
|
heboot/waw_server
|
e75288c68348a2f2dd3b14960c96853c45d8250c
|
14e3d3cbf5db0e18b6d33de48f2363d9b6c4f6d1
|
refs/heads/master
| 2020-04-20T00:48:29.024191
| 2019-04-10T10:45:40
| 2019-04-10T10:45:40
| 168,529,763
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,385
|
java
|
package com.waw.hr.model;
import com.waw.hr.core.MValue;
import javafx.scene.control.cell.MapValueFactory;
import org.apache.commons.lang3.StringUtils;
public class AdminUserModel {
private Integer id;
private String name;
private String mobile;
private Integer status;
private int role;
private Integer createUid;
private String createTime;
private String lastLoginTime;
private String wxCode;
private String qqCode;
private String nickname;
private String avatar;
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 getMobile() {
return mobile;
}
public void setMobile(String mobile) {
this.mobile = mobile;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public int getRole() {
return role;
}
public void setRole(int role) {
this.role = role;
}
public Integer getCreateUid() {
return createUid;
}
public void setCreateUid(Integer createUid) {
this.createUid = createUid;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getLastLoginTime() {
return lastLoginTime;
}
public void setLastLoginTime(String lastLoginTime) {
this.lastLoginTime = lastLoginTime;
}
public String getWxCode() {
return wxCode;
}
public void setWxCode(String wxCode) {
this.wxCode = wxCode;
}
public String getQqCode() {
return qqCode;
}
public void setQqCode(String qqCode) {
this.qqCode = qqCode;
}
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
this.nickname = nickname;
}
public String getAvatar() {
if (StringUtils.isEmpty(avatar)) {
return avatar;
}
return MValue.IMAGE_PRIFIX + avatar;
}
public void setAvatar(String avatar) {
this.avatar = avatar;
}
}
|
[
"heboot@126.com"
] |
heboot@126.com
|
a04e2e24be693a13cdf4d8b52e582259eca6fb86
|
68a7acc92e7312b4db75a4adc79469473d8dcc52
|
/src/platform/JavaProperties.java
|
a08e2205a51982dcaf43bc5a70081790d95dd0f5
|
[] |
no_license
|
vasanthsubram/JavaCookBook
|
e83f95a9a08d6227455ebd213d216837ec1c97b5
|
3fb2dfc38a4bb56f21f329b0dbc8283609412840
|
refs/heads/master
| 2022-12-16T00:13:31.515018
| 2019-06-24T03:12:11
| 2019-06-24T03:12:11
| 30,102,351
| 0
| 0
| null | 2022-12-13T19:13:55
| 2015-01-31T04:39:51
|
Java
|
UTF-8
|
Java
| false
| false
| 1,103
|
java
|
package platform;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Properties;
public class JavaProperties {
public static void main(String[] args) throws Exception {
FileInputStream def = null, custom=null;
FileOutputStream customOut=null;
try {
//default
Properties props = new Properties();
def = new FileInputStream("resources/default.properties");
props.load(def);
System.out.println(props.get("test1.prop"));
System.out.println(props.getProperty("test1.prop"));
System.out.println(props.contains("test.prop"));
props.list(System.out);
//custom
custom = new FileInputStream("resources/custom.properties");
Properties customProps = new Properties();
customProps.load(custom);
customProps.put("new.prop", "pigloo");
custom.close();
customOut=new FileOutputStream("resources/custom.properties");
customProps.store(customOut, "--");
} finally {
if (def != null) {
def.close();
}
if(custom !=null){
custom.close();
}
if(customOut !=null){
customOut.close();
}
}
}
}
|
[
"v-vsubramanian@expedia.com"
] |
v-vsubramanian@expedia.com
|
b97894e18ff7c7017fd6711eb8c878cf2e734923
|
9fda2ffae67a651d41ad69c7b28ee516d8e90888
|
/src/com/sollace/unicopia/Race.java
|
759b6caf72d445766c2af79ae580cac6f2102199
|
[] |
no_license
|
killjoy1221/Unicopia
|
c72d3a9fcc895e33edc737f1cb8321f2b671a9dd
|
6832e896d56d2169cd5f8b6c9451007d70408e7d
|
refs/heads/master
| 2020-04-29T14:01:06.470241
| 2018-05-21T17:02:18
| 2018-05-21T17:02:18
| 176,183,865
| 0
| 0
| null | 2019-03-18T01:34:28
| 2019-03-18T01:34:28
| null |
UTF-8
|
Java
| false
| false
| 1,871
|
java
|
package com.sollace.unicopia;
import com.google.common.base.Predicate;
import com.sollace.unicopia.server.PlayerSpeciesRegister;
import net.minecraft.entity.player.EntityPlayer;
public enum Race implements Predicate<EntityPlayer> {
EARTH("Earth Pony", false, false),
UNICORN("Unicorn", false, true),
PEGASUS("Pegasus", true, false),
ALICORN("Alicorn", true, true),
CHANGELING("Changeling", true, false);
private final String displayName;
private final boolean fly;
private final boolean magic;
Race(String name, boolean flying, boolean magical) {
displayName = name;
fly = flying;
magic = magical;
}
public static Race getDefault() {
return EARTH;
}
public boolean canUseEarth() {
return this == EARTH || this == ALICORN;
}
public boolean canCast() {
return magic;
}
public boolean canFly() {
return fly;
}
public boolean canInteractWithClouds() {
return this == PEGASUS || this == ALICORN;
}
public String displayName() {
return displayName;
}
public boolean startsWithVowel() {
return "AEIO".indexOf(name().charAt(0)) != -1;
}
public static Race value(String s) {
Race result = getSpeciesFromName(s);
return result != null ? result : getDefault();
}
public static Race getSpeciesFromName(String s) {
if (s != null && !s.isEmpty()) {
s = s.toUpperCase();
for (Race i : values()) {
if (i.name().contentEquals(s) || i.displayName().contentEquals(s)) return i;
}
}
return null;
}
public static Race getSpeciesFromId(String s) {
try {
int id = Integer.parseInt(s);
Race[] values = values();
if (id >= 0 || id < values.length) {
return values[id];
}
} catch (NumberFormatException e) { }
return null;
}
public boolean apply(EntityPlayer o) {
return o instanceof EntityPlayer && PlayerSpeciesRegister.getPlayerSpecies((EntityPlayer)o) == this;
}
}
|
[
"sollacea@gmail.com"
] |
sollacea@gmail.com
|
f2990fa3316244457fed5e9346a46aca8985039c
|
4536078b4070fc3143086ff48f088e2bc4b4c681
|
/v1.1.2/decompiled/androidx/appcompat/widget/SearchView$p.java
|
2b630ab55a39e41501d0072ce1dfe5ec2b30f2d9
|
[] |
no_license
|
olealgoritme/smittestopp_src
|
485b81422752c3d1e7980fbc9301f4f0e0030d16
|
52080d5b7613cb9279bc6cda5b469a5c84e34f6a
|
refs/heads/master
| 2023-05-27T21:25:17.564334
| 2023-05-02T14:24:31
| 2023-05-02T14:24:31
| 262,846,147
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,268
|
java
|
package androidx.appcompat.widget;
import android.graphics.Rect;
import android.view.MotionEvent;
import android.view.TouchDelegate;
import android.view.View;
import android.view.ViewConfiguration;
public class SearchView$p
extends TouchDelegate
{
public final View a;
public final Rect b;
public final Rect c;
public final Rect d;
public final int e;
public boolean f;
public SearchView$p(Rect paramRect1, Rect paramRect2, View paramView)
{
super(paramRect1, paramView);
e = ViewConfiguration.get(paramView.getContext()).getScaledTouchSlop();
b = new Rect();
d = new Rect();
c = new Rect();
a(paramRect1, paramRect2);
a = paramView;
}
public void a(Rect paramRect1, Rect paramRect2)
{
b.set(paramRect1);
d.set(paramRect1);
paramRect1 = d;
int i = e;
paramRect1.inset(-i, -i);
c.set(paramRect2);
}
public boolean onTouchEvent(MotionEvent paramMotionEvent)
{
int i = (int)paramMotionEvent.getX();
int j = (int)paramMotionEvent.getY();
int k = paramMotionEvent.getAction();
boolean bool1 = true;
boolean bool2 = false;
if (k != 0) {
if ((k != 1) && (k != 2))
{
if (k != 3) {
break label131;
}
bool1 = f;
f = false;
}
else
{
bool3 = f;
bool1 = bool3;
if (bool3)
{
bool1 = bool3;
if (!d.contains(i, j))
{
bool1 = bool3;
k = 0;
break label137;
}
}
}
}
for (;;)
{
k = 1;
break label137;
if (!b.contains(i, j)) {
break;
}
f = true;
}
label131:
k = 1;
bool1 = false;
label137:
boolean bool3 = bool2;
if (bool1)
{
if ((k != 0) && (!c.contains(i, j)))
{
paramMotionEvent.setLocation(a.getWidth() / 2, a.getHeight() / 2);
}
else
{
Rect localRect = c;
paramMotionEvent.setLocation(i - left, j - top);
}
bool3 = a.dispatchTouchEvent(paramMotionEvent);
}
return bool3;
}
}
/* Location:
* Qualified Name: androidx.appcompat.widget.SearchView.p
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"olealgoritme@gmail.com"
] |
olealgoritme@gmail.com
|
0e27363adfc62d9ecda19e601d397a84dbe14cce
|
6d60a8adbfdc498a28f3e3fef70366581aa0c5fd
|
/codebase/selected/1144107.java
|
88715097a128969dcc85c590aa5b1a3ae7ace7a8
|
[] |
no_license
|
rayhan-ferdous/code2vec
|
14268adaf9022d140a47a88129634398cd23cf8f
|
c8ca68a7a1053d0d09087b14d4c79a189ac0cf00
|
refs/heads/master
| 2022-03-09T08:40:18.035781
| 2022-02-27T23:57:44
| 2022-02-27T23:57:44
| 140,347,552
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,067
|
java
|
package DAOs;
import beans.RecTeam;
import beans.RecTeamPK;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
import DAOs.RecTeamJpaController;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
/**
*
* @author Ioana C
*/
public class RecTeamConverter implements Converter {
public Object getAsObject(FacesContext facesContext, UIComponent component, String string) {
if (string == null || string.length() == 0) {
return null;
}
RecTeamPK id = getId(string);
RecTeamJpaController controller = (RecTeamJpaController) facesContext.getApplication().getELResolver().getValue(facesContext.getELContext(), null, "recTeamJpa");
return controller.findRecTeam(id);
}
RecTeamPK getId(String string) {
RecTeamPK id = new RecTeamPK();
String[] params = new String[2];
int p = 0;
int grabStart = 0;
String delim = "#";
String escape = "~";
Pattern pattern = Pattern.compile(escape + "*" + delim);
Matcher matcher = pattern.matcher(string);
while (matcher.find()) {
String found = matcher.group();
if (found.length() % 2 == 1) {
params[p] = string.substring(grabStart, matcher.start());
p++;
grabStart = matcher.end();
}
}
if (p != params.length - 1) {
throw new IllegalArgumentException("string " + string + " is not in expected format. expected 2 ids delimited by " + delim);
}
params[p] = string.substring(grabStart);
for (int i = 0; i < params.length; i++) {
params[i] = params[i].replace(escape + delim, delim);
params[i] = params[i].replace(escape + escape, escape);
}
id.setPersonID(Integer.parseInt(params[0]));
id.setRecProcessID(Integer.parseInt(params[1]));
return id;
}
public String getAsString(FacesContext facesContext, UIComponent component, Object object) {
if (object == null) {
return null;
}
if (object instanceof RecTeam) {
RecTeam o = (RecTeam) object;
RecTeamPK id = o.getRecTeamPK();
if (id == null) {
return "";
}
String delim = "#";
String escape = "~";
String personID = String.valueOf(id.getPersonID());
personID = personID.replace(escape, escape + escape);
personID = personID.replace(delim, escape + delim);
String recProcessID = String.valueOf(id.getRecProcessID());
recProcessID = recProcessID.replace(escape, escape + escape);
recProcessID = recProcessID.replace(delim, escape + delim);
return personID + delim + recProcessID;
} else {
throw new IllegalArgumentException("object " + object + " is of type " + object.getClass().getName() + "; expected type: beans.RecTeam");
}
}
}
|
[
"aaponcseku@gmail.com"
] |
aaponcseku@gmail.com
|
f79f08e8f504b2d5920575048efbbdb4979358bd
|
a3df789ce5e66610eee20af8627a79fd6bb191e9
|
/src/test/amz/Amazon2.java
|
48ca9e1ab41e122fc084a93c304866246ad5774e
|
[] |
no_license
|
evalle-mx/demo-varios
|
d5701fe2bfc8d0481ea3c505f8b24d5c16c52aba
|
d4cc083af5057a511b354e1a7cf13ce257397510
|
refs/heads/master
| 2022-10-22T09:08:41.895259
| 2020-06-17T00:47:00
| 2020-06-17T00:47:00
| 272,843,433
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,032
|
java
|
package amz;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
public class Amazon2 {
// METHOD SIGNATURE BEGINS, THIS METHOD IS REQUIRED
int minimumHours(int rows, int columns, List<List<Integer> > grid)
{
// WRITE YOUR CODE HERE
Iterator<List<Integer>> itGrid = grid.iterator();
List<Integer> ls;
boolean noZero=false, ones=false;
int hours = 1;
Integer iBase;
int y=0;
while(itGrid.hasNext()) {
ls = itGrid.next();
System.out.println(ls);
for(int x=0;x<ls.size();x++) {
iBase=ls.get(x);
if(iBase==1) {
ones=true;//At least one
System.out.println("("+x+","+y+") look for adjacency");
if(x<ls.size()-2) {
if(ls.get(x+1)==0) {
hours++;
}
}
}
}
y++;
}
if(!ones) {
return -1;
}
return hours;
}
// METHOD SIGNATURE ENDS
public static void main(String[] args) {
Amazon2 demo = new Amazon2();
List<List<Integer>> grid = new ArrayList<List<Integer>>();
String linea = "1,0,0,0,0";
grid.add(parsInts(linea));
linea = "0,1,0,0,0";
grid.add(parsInts(linea));
linea = "0,0,1,0,0";
grid.add(parsInts(linea));
linea = "0,0,0,1,0";
grid.add(parsInts(linea));
linea = "0,0,0,0,1";
grid.add(parsInts(linea));
System.out.println("numH: " + demo.minimumHours(5, 5, grid) );
}
private static List<Integer> parsInts(String linea){
List<String> lsData = Arrays.asList(linea.split("\\s*,\\s*"));
List<Integer> lsLinea = new ArrayList<Integer>();
for(int x=0;x<lsData.size();x++) {
int pInt = Integer.parseInt(lsData.get(x));
lsLinea.add(pInt);
}
return lsLinea;
}
}
|
[
"netto.speed@gmail.com"
] |
netto.speed@gmail.com
|
1710e2db640b49b3b6057cb7d6e1db759de5c68d
|
36698a8464c18cfe4476b954eed4c9f3911b5e2c
|
/ZimbraIM/src/java/org/jivesoftware/util/PropertyEventListener.java
|
d0eeb51c70c992df83ae33afd77c8ddb3b21ffe5
|
[] |
no_license
|
mcsony/Zimbra-1
|
392ef27bcbd0e0962dce99ceae3f20d7a1e9d1c7
|
4bf3dc250c68a38e38286bdd972c8d5469d40e34
|
refs/heads/master
| 2021-12-02T06:45:15.852374
| 2011-06-13T13:10:57
| 2011-06-13T13:10:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,919
|
java
|
/*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2006, 2007, 2009, 2010 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.zimbra.com/license.
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
* ***** END LICENSE BLOCK *****
*/
package org.jivesoftware.util;
import java.util.Map;
/**
* Interface to listen for property events. Use the
* {@link org.jivesoftware.util.PropertyEventDispatcher#addListener(PropertyEventListener)}
* method to register for events.
*
* @author Matt Tucker
*/
public interface PropertyEventListener {
/**
* A property was set. The parameter map <tt>params</tt> will contain the
* the value of the property under the key <tt>value</tt>.
*
* @param property the name of the property.
* @param params event parameters.
*/
public void propertySet(String property, Map params);
/**
* A property was deleted.
*
* @param property the name of the property deleted.
* @param params event parameters.
*/
public void propertyDeleted(String property, Map params);
/**
* An XML property was set. The parameter map <tt>params</tt> will contain the
* the value of the property under the key <tt>value</tt>.
*
* @param property the name of the property.
* @param params event parameters.
*/
public void xmlPropertySet(String property, Map params);
/**
* An XML property was deleted.
*
* @param property the name of the property.
* @param params event parameters.
*/
public void xmlPropertyDeleted(String property, Map params);
}
|
[
"dstites@autobase.net"
] |
dstites@autobase.net
|
79b4bb46d4cddfe7961057f07dc5ce6dee3a917a
|
e951240dae6e67ee10822de767216c5b51761bcb
|
/src/main/java/concurrent/AtomicIntegerArrayTest.java
|
4fd194f5e005af57dfd5904d5c3116edbcb359c4
|
[] |
no_license
|
fengjiny/practice
|
b1315ca8800ba25b5d6fed64b0d68d870d84d1bb
|
898e635967f3387dc870c1ee53a95ba8a37d5e37
|
refs/heads/master
| 2021-06-03T09:20:35.904702
| 2020-10-26T10:45:03
| 2020-10-26T10:45:03
| 131,289,290
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 383
|
java
|
package concurrent;
import java.util.concurrent.atomic.AtomicIntegerArray;
public class AtomicIntegerArrayTest {
static int[] value = new int[] {2, 3};
static AtomicIntegerArray ai = new AtomicIntegerArray(value);
public static void main(String[] args) {
ai.getAndSet(0, 3);
System.out.println(ai.get(0));
System.out.println(value[0]);
}
}
|
[
"fengjinyu@mobike.com"
] |
fengjinyu@mobike.com
|
d6a58f7e4a71c64c80ebb0b24b51c7dc52463498
|
62e334192393326476756dfa89dce9f0f08570d4
|
/tk_code/position/position-server/src/main/java/com/huatu/tiku/position/biz/service/SpecialtyService.java
|
124b7015ea7bb34308eeb01937b751e84fcdd3db
|
[] |
no_license
|
JellyB/code_back
|
4796d5816ba6ff6f3925fded9d75254536a5ddcf
|
f5cecf3a9efd6851724a1315813337a0741bd89d
|
refs/heads/master
| 2022-07-16T14:19:39.770569
| 2019-11-22T09:22:12
| 2019-11-22T09:22:12
| 223,366,837
| 1
| 2
| null | 2022-06-30T20:21:38
| 2019-11-22T09:15:50
|
Java
|
UTF-8
|
Java
| false
| false
| 444
|
java
|
package com.huatu.tiku.position.biz.service;
import com.huatu.tiku.position.base.service.BaseService;
import com.huatu.tiku.position.biz.domain.Specialty;
import com.huatu.tiku.position.biz.enums.Education;
import java.util.List;
/**
* @author wangjian
**/
public interface SpecialtyService extends BaseService<Specialty,Long> {
/**
* 通过学历查找专业
*/
List<Specialty> findByEducation(Education education);
}
|
[
"jelly_b@126.com"
] |
jelly_b@126.com
|
027f12c00722e4366d4fa4ca1f376db7a287eba1
|
76b3578d338ea9bbc230414f601d009726ace021
|
/platform-examples/process-monitor-sample/process-monitor-common/src/main/java/com/canoo/dolphin/samples/processmonitor/model/ProcessBean.java
|
6996c9d0329513a4b2814e3c582bd19e282b596f
|
[
"Apache-2.0"
] |
permissive
|
kunsingh/dolphin-platform
|
1a32ff8633cf2e990d18e738df572993e8d50d76
|
15e56b5eb31b3594c462e3fe447a0c8ae96af88d
|
refs/heads/master
| 2020-07-16T20:12:22.422460
| 2017-06-14T09:27:02
| 2017-06-14T09:27:02
| 94,314,705
| 0
| 1
| null | 2017-06-14T09:37:55
| 2017-06-14T09:37:55
| null |
UTF-8
|
Java
| false
| false
| 2,025
|
java
|
/*
* Copyright 2015-2016 Canoo Engineering AG.
*
* 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.canoo.dolphin.samples.processmonitor.model;
import com.canoo.dolphin.mapping.DolphinBean;
import com.canoo.dolphin.mapping.Property;
@DolphinBean
public class ProcessBean {
private Property<String> processID;
private Property<String> name;
private Property<String> cpuPercentage;
private Property<String> memoryPercentage;
public Property<String> processIDProperty() {
return processID;
}
public Property<String> nameProperty() {
return name;
}
public Property<String> cpuPercentageProperty() {
return cpuPercentage;
}
public Property<String> memoryPercentageProperty() {
return memoryPercentage;
}
public void setProcessID(String processID) {
this.processID.set(processID);
}
public void setCpuPercentage(String cpuPercentage) {
this.cpuPercentage.set(cpuPercentage);
}
public void setMemoryPercentage(String memoryPercentage) {
this.memoryPercentage.set(memoryPercentage);
}
public void setName(String name) {
this.name.set(name);
}
public String getProcessID() {
return processID.get();
}
public String getName() {
return name.get();
}
public String getCpuPercentage() {
return cpuPercentage.get();
}
public String getMemoryPercentage() {
return memoryPercentage.get();
}
}
|
[
"hendrik.ebbers@web.de"
] |
hendrik.ebbers@web.de
|
865e8071d002af7a9c5165fea7886a7ca660ba32
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/31/31_a2ca71e26f7146483276caafcd2a76afa54376b4/MongoDBResourceSetProvider/31_a2ca71e26f7146483276caafcd2a76afa54376b4_MongoDBResourceSetProvider_t.java
|
76b601928cc1f215266194b93967d6e04fda3e5a
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 2,582
|
java
|
/*******************************************************************************
* Copyright (c) 2013 EclipseSource Muenchen GmbH.
*
* 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:
* Johannes Faltermeier
******************************************************************************/
package org.eclipse.emf.emfstore.client.mongodb;
import java.util.LinkedHashMap;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.ecore.resource.URIConverter;
import org.eclipse.emf.ecore.resource.URIHandler;
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
import org.eclipse.emf.emfstore.client.provider.ESResourceSetProvider;
import org.eclipse.emf.emfstore.internal.common.ResourceFactoryRegistry;
import org.eclipselabs.mongo.emf.ext.IResourceSetFactory;
/**
* MongoDB ResourceSet provider for EMFStore Client.
*
* @author jfaltermeier
*
*/
public class MongoDBResourceSetProvider implements ESResourceSetProvider {
private static IResourceSetFactory resourceSetFactory;
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.emfstore.client.provider.ESResourceSetProvider#getResourceSet()
*/
public ResourceSet getResourceSet() {
ResourceSetImpl resourceSet = (ResourceSetImpl) resourceSetFactory.createResourceSet();
resourceSet.setResourceFactoryRegistry(new ResourceFactoryRegistry());
resourceSet.setURIConverter(createURIConverter(resourceSet));
resourceSet.setURIResourceMap(new LinkedHashMap<URI, Resource>());
return resourceSet;
}
private URIConverter createURIConverter(ResourceSetImpl resourceSet) {
// reuse uri handlers set up by resourcesetfactory
EList<URIHandler> uriHandler = resourceSet.getURIConverter().getURIHandlers();
URIConverter uriConverter = new MongoURIConverter();
uriConverter.getURIHandlers().clear();
uriConverter.getURIHandlers().addAll(uriHandler);
return uriConverter;
}
/**
* Binds the resource set factory.
*
* @param resourceSetFactory the resource set factory
*/
void bindResourceSetFactory(IResourceSetFactory resourceSetFactory) {
this.resourceSetFactory = resourceSetFactory;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
600d1ca88793cf179445ab57b9a185d9d26957c8
|
7913176ad5870cfd1b37308c935607941d6c2b4e
|
/app/src/main/java/com/example/lab/android/nuc/chat/view/activity/AboutActivity.java
|
21031ab4f42f2fe6364e01be0f37410afe84bad6
|
[
"Apache-2.0"
] |
permissive
|
chineseliuyongchao/ChatWithChinese
|
e50f327a4a1bea2346adf13b260cba10ae176833
|
10136adda9298d09031a4fdaec27546639d156c6
|
refs/heads/master
| 2020-04-07T15:05:49.787484
| 2018-08-26T02:23:01
| 2018-08-26T02:23:01
| 158,473,061
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,031
|
java
|
package com.example.lab.android.nuc.chat.view.activity;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MenuItem;
import com.example.lab.android.nuc.chat.R;
public class AboutActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate( savedInstanceState );
setContentView( R.layout.activity_about );
//添加返回按钮
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
// Show the Up button in the action bar.
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setTitle( "关于" );
}
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()){
case android.R.id.home:
this.finish();
return true;
}
return super.onOptionsItemSelected( item );
}
}
|
[
"1484290617@qq.com"
] |
1484290617@qq.com
|
c01d618dcfd11057d9d0075ddd9ac2e2c01989b4
|
e8d0ae5190a2b27403178a295a5e62b6db3a26c6
|
/Chapter14/src/part01/sec01/exam01/Program_9.java
|
aff56588c34e4eef8d385f8dcdb9f8f5e5697cd2
|
[] |
no_license
|
unboxing0913/Java_Study
|
2a5d0ec4bc5ac9be00988c22091e1a324b8bab8e
|
612a36f5099fc6cd4ccf52e4c4aa16ecccc75ed6
|
refs/heads/master
| 2023-02-08T07:14:28.267122
| 2020-12-30T13:10:08
| 2020-12-30T13:10:08
| 325,555,237
| 0
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 437
|
java
|
package part01.sec01.exam01;
public class Program_9 {
public static void main(String[] args) {
Object[] arr=new Object[5];//모든클래스의 조상 Object[] 부모타입으로 다형성원리에 의해서 가능하다(객체일경우)
arr[0]="오렌지";
arr[1]=new Integer(52);
arr[2]=3.14;
arr[3]=new Character('귤');
arr[4]=true;
for(int cnt=0;cnt<arr.length;cnt++) {
System.out.println(arr[cnt]);
}
}
}
|
[
"kaa0913@nave.com"
] |
kaa0913@nave.com
|
8d3dccf0037c242580ff5bf53054ca83ee10d605
|
68e4676b246cfef371a0de908fd3922f56b881d0
|
/alipay-sdk-master/src/main/java/com/alipay/api/domain/ReportErrorFeature.java
|
d2f66dea151d39c3c1a87e35e080d3dc54c409f5
|
[
"Apache-2.0"
] |
permissive
|
everLuck666/BoruiSystem
|
c66872ac965df2c6d833c7b529c1f76805d5cb05
|
7e19e43e8bb42420e87398dcd737f80904611a56
|
refs/heads/master
| 2023-03-29T12:08:07.978557
| 2021-03-22T03:12:23
| 2021-03-22T03:12:23
| 335,288,821
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 551
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 错误上报的特征字段
*
* @author auto create
* @since 1.0, 2017-07-03 14:41:37
*/
public class ReportErrorFeature extends AlipayObject {
private static final long serialVersionUID = 7164779752472381333L;
/**
* 桌号
*/
@ApiField("table_num")
private String tableNum;
public String getTableNum() {
return this.tableNum;
}
public void setTableNum(String tableNum) {
this.tableNum = tableNum;
}
}
|
[
"49854860+DFRUfO@users.noreply.github.com"
] |
49854860+DFRUfO@users.noreply.github.com
|
85b1710df2246347b5565abb1a05db713685488b
|
8db21b4782aead385da5ec3978915baf4e4a082b
|
/com.jiuqi.rpa.core/src/com/jiuqi/rpa/action/browser/openbrowser/OpenBrowserAction.java
|
a00b060e31bb8560041ea660d3f5838fcf3da076
|
[] |
no_license
|
hihod/uni-studio-based-on-jiuqi
|
5fd26938476edb4feec47e30ae35a9dfc10cfaa0
|
c106df0a6f5542ca0026c14cead63870b9b490e5
|
refs/heads/master
| 2022-01-31T21:54:28.815046
| 2019-08-19T03:13:23
| 2019-08-19T03:13:23
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 1,099
|
java
|
package com.jiuqi.rpa.action.browser.openbrowser;
import com.jiuqi.rpa.action.Action;
import com.jiuqi.rpa.action.ActionException;
import com.jiuqi.rpa.action.IActionOutput;
import com.jiuqi.rpa.lib.Context;
import com.jiuqi.rpa.lib.browser.UIBrowser;
import com.jiuqi.rpa.lib.browser.WebBrowserLibary;
/**
* 打开浏览器活动
*
* @author wangshanyu
*/
public class OpenBrowserAction extends Action {
private OpenBrowserInput input;
private OpenBrowserOutput output;
/**
* 活动输入
*
* @param input
*/
public OpenBrowserAction(OpenBrowserInput input) {
super(input);
this.input = input;
this.output = new OpenBrowserOutput();
}
@Override
protected IActionOutput run() throws ActionException {
Context context = getContext();
try {
UIBrowser browser = WebBrowserLibary.open(input.getBrowserType(),input.getUrl());
context.add(browser);
this.output.setBrowser(browser);
return this.output;
} catch (Exception e) {
throw new ActionException("打开浏览器活动异常"+e.getMessage(), e);
}
}
}
|
[
"mrliangpengyv@gmail.com"
] |
mrliangpengyv@gmail.com
|
4fa34fde9892f7845a484c4f8bfdfa2fb99b5ef8
|
a5de97af54055beca26563e0dd1c52d99182d8f6
|
/structure-editor/src/main/java/gov/nist/hit/hl7/igamt/structure/domain/SegmentStructureMetadata.java
|
8d296054338a7d1c34ae75958a9098db4d0219d6
|
[] |
no_license
|
usnistgov/hl7-igamt
|
77331007562eeb03aad96d17a4b627165ef4cdc5
|
dcee50821ea1f3cc2ee9a3ea66709661760bd4f6
|
refs/heads/master
| 2023-09-02T15:38:18.271533
| 2021-11-29T17:41:35
| 2021-11-29T17:41:35
| 122,214,311
| 10
| 2
| null | 2023-07-19T16:50:00
| 2018-02-20T15:10:33
|
Java
|
UTF-8
|
Java
| false
| false
| 813
|
java
|
package gov.nist.hit.hl7.igamt.structure.domain;
public class SegmentStructureMetadata {
String name;
String identifier;
String description;
String hl7Version;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getIdentifier() {
return identifier;
}
public void setIdentifier(String identifier) {
this.identifier = identifier;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getHl7Version() {
return hl7Version;
}
public void setHl7Version(String hl7Version) {
this.hl7Version = hl7Version;
}
}
|
[
"hossam.tamri@nist.gov"
] |
hossam.tamri@nist.gov
|
d41830c4b30b7e9bb96c20b1ae84b06d002626de
|
e8333d24b903fdf6a0ff1e18329b4f782e579e13
|
/src/main/java/com/accenture/microservices/config/LoggingAspectConfiguration.java
|
b8f95c90684b3cbb89fbde2e8c0938bba5ab07a6
|
[] |
no_license
|
Zomahd/microservices
|
315609b60d3455e675fba7b02294d86341a1b6b0
|
40287f628682ec5483152a13de90cb647d22b5f7
|
refs/heads/master
| 2020-04-24T00:25:25.849354
| 2019-02-19T23:19:02
| 2019-02-19T23:19:02
| 171,562,779
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 516
|
java
|
package com.accenture.microservices.config;
import com.accenture.microservices.aop.logging.LoggingAspect;
import io.github.jhipster.config.JHipsterConstants;
import org.springframework.context.annotation.*;
import org.springframework.core.env.Environment;
@Configuration
@EnableAspectJAutoProxy
public class LoggingAspectConfiguration {
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
return new LoggingAspect(env);
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
6842aa5b758ff1f5ae5273ec9053cd283548dbff
|
dd66f580d332e4fbfc69f9c828c5dab7ddaa8d63
|
/demos/substance-samples/src/main/java/org/pushingpixels/samples/substance/cookbook/ScaledResizableIcon.java
|
0f7dab7fe18117c5c60065d66ddc87facd87ee30
|
[
"BSD-3-Clause"
] |
permissive
|
spslinger/radiance
|
44f06d939afc3e27c0d4997b2fd89a27aff39fdf
|
7cf51ee22014df1368c04f5f9f6ecbea93695231
|
refs/heads/master
| 2020-03-31T18:00:48.170702
| 2018-10-11T12:49:29
| 2018-10-11T12:49:29
| 152,442,895
| 0
| 0
|
BSD-3-Clause
| 2018-10-11T12:49:31
| 2018-10-10T15:04:46
|
Java
|
UTF-8
|
Java
| false
| false
| 2,870
|
java
|
/*
* Copyright (c) 2005-2018 Substance Kirill Grouchnikov. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* o Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* o Neither the name of Substance Kirill Grouchnikov nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.pushingpixels.samples.substance.cookbook;
import org.pushingpixels.neon.icon.ResizableIcon;
import java.awt.*;
/**
* Custom implementation of resizable icon that allows scaling down another
* resizable icon during the painting.
*
* @author Kirill Grouchnikov
*/
public class ScaledResizableIcon implements ResizableIcon {
private ResizableIcon delegate;
private double scaleFactor;
public ScaledResizableIcon(ResizableIcon delegate, double scaleFactor) {
this.delegate = delegate;
this.scaleFactor = scaleFactor;
}
public int getIconHeight() {
return delegate.getIconHeight();
}
public int getIconWidth() {
return delegate.getIconWidth();
}
public void paintIcon(Component c, Graphics g, int x, int y) {
Graphics2D g2d = (Graphics2D) g.create();
double dx = this.getIconWidth() * (1.0 - this.scaleFactor) / 2;
double dy = this.getIconHeight() * (1.0 - this.scaleFactor) / 2;
g2d.translate((int) dx, (int) dy);
g2d.scale(this.scaleFactor, this.scaleFactor);
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
delegate.paintIcon(c, g2d, x, y);
g2d.dispose();
}
public void setDimension(Dimension newDimension) {
delegate.setDimension(newDimension);
}
}
|
[
"kirill.grouchnikov@gmail.com"
] |
kirill.grouchnikov@gmail.com
|
0d351e43090707a7d7d71927e1ecf8cf53ac33ca
|
29f78bfb928fb6f191b08624ac81b54878b80ded
|
/generated_SPs_SCs/ehealth/SPs/SP_healthcareserviceprovider11/src/main/java/SP_healthcareserviceprovider11/resource/Resource_restServiceName_1.java
|
ac61b93932d4ed4b1c1ab03fda600cbd739718ce
|
[] |
no_license
|
MSPL4SOA/MSPL4SOA-tool
|
8a78e73b4ac7123cf1815796a70f26784866f272
|
9f3419e416c600cba13968390ee89110446d80fb
|
refs/heads/master
| 2020-04-17T17:30:27.410359
| 2018-07-27T14:18:55
| 2018-07-27T14:18:55
| 66,304,158
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,831
|
java
|
package SP_radar1.resource;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.DELETE;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
import SP_radar1.output.OutputDataClassName_1_1;
import SP_radar1.output.OutputDataClassName_1_2;
import SP_radar1.output.OutputDataClassName_1_3;
@Path("ServiceName_1")
public interface Resource_restServiceName_1 {
@GET
@Path("/CapabilityName_1_1/{InputName_1_1_1}/{InputName_1_1_2}/{InputName_1_1_5}/{InputName_1_1_3}/{InputName_1_1_4}/")
@Produces({ "text/xml" })
public Response CapabilityName_1_1(
@PathParam("InputName_1_1_1") Integer InputName_1_1_1
, @PathParam("InputName_1_1_2") Integer InputName_1_1_2
, @PathParam("InputName_1_1_5") Float InputName_1_1_5
, @PathParam("InputName_1_1_3") Float InputName_1_1_3
, @PathParam("InputName_1_1_4") String InputName_1_1_4
);
@GET
@Path("/CapabilityName_1_2/{InputName_1_2_1}/{InputName_1_2_4}/{InputName_1_2_2}/{InputName_1_2_3}/")
@Produces({ "text/xml" })
public Response CapabilityName_1_2(
@PathParam("InputName_1_2_1") Float InputName_1_2_1
, @PathParam("InputName_1_2_4") String InputName_1_2_4
, @PathParam("InputName_1_2_2") Float InputName_1_2_2
, @PathParam("InputName_1_2_3") String InputName_1_2_3
);
@GET
@Path("/CapabilityName_1_3/{InputName_1_3_5}/{InputName_1_3_3}/{InputName_1_3_4}/{InputName_1_3_1}/{InputName_1_3_2}/")
@Produces({ "text/xml" })
public Response CapabilityName_1_3(
@PathParam("InputName_1_3_5") Integer InputName_1_3_5
, @PathParam("InputName_1_3_3") Float InputName_1_3_3
, @PathParam("InputName_1_3_4") String InputName_1_3_4
, @PathParam("InputName_1_3_1") Float InputName_1_3_1
, @PathParam("InputName_1_3_2") Integer InputName_1_3_2
);
}
|
[
"akram.kamoun@gmail.com"
] |
akram.kamoun@gmail.com
|
3c96e8727ccc6d91c00d681fae38e1be747b5c7b
|
4aa90348abcb2119011728dc067afd501f275374
|
/app/src/main/java/com/tencent/mm/plugin/fingerprint/a$1.java
|
97f99dafe8304f4a323aec2637ba7219c7c9e6b1
|
[] |
no_license
|
jambestwick/HackWechat
|
0d4ceb2d79ccddb45004ca667e9a6a984a80f0f6
|
6a34899c8bfd50d19e5a5ec36a58218598172a6b
|
refs/heads/master
| 2022-01-27T12:48:43.446804
| 2021-12-29T10:36:30
| 2021-12-29T10:36:30
| 249,366,791
| 0
| 0
| null | 2020-03-23T07:48:32
| 2020-03-23T07:48:32
| null |
UTF-8
|
Java
| false
| false
| 335
|
java
|
package com.tencent.mm.plugin.fingerprint;
import com.tencent.mm.sdk.platformtools.x;
class a$1 implements Runnable {
final /* synthetic */ a myW;
a$1(a aVar) {
this.myW = aVar;
}
public final void run() {
x.i("MicroMsg.SubCoreFingerPrint", "alvinluo post 1500ms delayed");
a.aJV();
}
}
|
[
"malin.myemail@163.com"
] |
malin.myemail@163.com
|
3780e17bc9e12addeafb8f80138e7286ef42f909
|
300ba8025a69ff2f3d31a999da19f3efde169bb3
|
/app/src/main/java/com/bhargav/hcms/TotalHealthTips/Tabs/Hair_Loss/HairlossTab4.java
|
36bb8fa38c1f83e921c19f01c66df4bce0132d6f
|
[] |
no_license
|
bhargav944/HCMS
|
849ba41e46949614d0289e2d0aaa3171f46e0339
|
669cf36cf8ebd5414afb923ae2cab48fe4a6204a
|
refs/heads/master
| 2020-09-22T02:59:59.901157
| 2019-11-17T13:27:23
| 2019-11-17T13:27:23
| 157,401,002
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,142
|
java
|
package com.bhargav.hcms.TotalHealthTips.Tabs.Hair_Loss;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.bhargav.hcms.R;
import com.bhargav.hcms.models.TotalHlthModels.ModelOverall;
import com.bhargav.hcms.views.TotalHlthView.OverallView;
import com.firebase.ui.database.FirebaseRecyclerAdapter;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
/**
* Created by Gurramkonda Bhargav on 07-07-2018.
*/
public class HairlossTab4 extends Fragment {
FirebaseAuth firebaseAuth;
RecyclerView mRecyclerView;
FirebaseDatabase mFirebaseDatabase;
DatabaseReference mRef;
private static final String ARG_PARAM1 = "param1";
private static final String ARG_PARAM2 = "param2";
private String mParam1;
private String mParam2;
private OnFragmentInteractionListener mListener;
public HairlossTab4() {
}
public static HairlossTab4 newInstance(String param1, String param2) {
HairlossTab4 fragment = new HairlossTab4();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
mParam1 = getArguments().getString(ARG_PARAM1);
mParam2 = getArguments().getString(ARG_PARAM2);
}
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.hairlossfragment_tab4, container, false);
firebaseAuth = FirebaseAuth.getInstance();
firebaseAuth = FirebaseAuth.getInstance();
mRecyclerView = view.findViewById(R.id.recyclerView);
mRecyclerView.setHasFixedSize(true);
mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
mFirebaseDatabase = FirebaseDatabase.getInstance();
mRef = mFirebaseDatabase.getReference("Total Health Tips").child("Hair Loss").child("Hair Loss 4");
return view;
}
@Override
public void onStart() {
super.onStart();
FirebaseRecyclerAdapter<ModelOverall, OverallView> firebaseRecyclerAdapter =
new FirebaseRecyclerAdapter<ModelOverall, OverallView>(
ModelOverall.class,
R.layout.healthtips_overall_list,
OverallView.class,
mRef
) {
@Override
protected void populateViewHolder(OverallView overallView, ModelOverall modelOverall, int i) {
overallView.setDetails(getActivity(),modelOverall.getImage(), modelOverall.getTitle(), modelOverall.getDescription());
}
};
mRecyclerView.setAdapter(firebaseRecyclerAdapter);
}
public void onButtonPressed(Uri uri) {
if (mListener != null) {
mListener.onFragmentInteraction(uri);
}
}
@Override
public void onAttach(Context context) {
super.onAttach(context);
if (context instanceof HairlossTab4.OnFragmentInteractionListener) {
mListener = (HairlossTab4.OnFragmentInteractionListener) context;
} else {
throw new RuntimeException(context.toString()
+ " must implement OnFragmentInteractionListener");
}
}
@Override
public void onDetach() {
super.onDetach();
mListener = null;
}
public interface OnFragmentInteractionListener {
void onFragmentInteraction(Uri uri);
}
}
|
[
"bhargav.gurramkonda@gmail.com"
] |
bhargav.gurramkonda@gmail.com
|
53a9bc8537d6e79bca4321d8b2a252edb3c3fad1
|
32ada64601dca2faf2ad0dae2dd5a080fd9ecc04
|
/timesheet/src/main/java/com/fastcode/timesheet/application/core/authorization/users/dto/UpdateUsersOutput.java
|
47d5ec19f8bc76ea7111973c5da432fef7253dec
|
[] |
no_license
|
fastcoderepos/tbuchner-sampleApplication1
|
d61cb323aeafd65e3cfc310c88fc371e2344847d
|
0880d4ef63b6aeece6f4a715e24bfa94de178664
|
refs/heads/master
| 2023-07-09T02:59:47.254443
| 2021-08-11T16:48:27
| 2021-08-11T16:48:27
| 395,057,379
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 452
|
java
|
package com.fastcode.timesheet.application.core.authorization.users.dto;
import java.time.*;
import lombok.Getter;
import lombok.Setter;
@Getter @Setter
public class UpdateUsersOutput {
private String emailaddress;
private String firstname;
private Long id;
private Boolean isactive;
private LocalDate joinDate;
private String lastname;
private String triggerGroup;
private String triggerName;
private String username;
}
|
[
"info@nfinityllc.com"
] |
info@nfinityllc.com
|
9c45b49b2abb68b51aea94abaf78a46806009e91
|
d9f0033546ffae9b5ca7a37ff6a0e30dd312e4ac
|
/o2o_business_studio/fanwe_o2o_businessclient_23/src/main/java/com/fanwe/model/Biz_dealvCtlIndexActModel.java
|
285aa292098a1bc2ccc16da86bb5282f3b772244
|
[] |
no_license
|
aliang5820/o2o_studio_projects
|
f4c69c9558b6a405275b3896669aed00d4ea3d4b
|
7427c5e41406c71147dbbc622e3e4f6f7850c050
|
refs/heads/master
| 2020-04-16T02:12:16.817584
| 2017-05-26T07:44:46
| 2017-05-26T07:44:46
| 63,346,646
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 624
|
java
|
package com.fanwe.model;
import java.util.ArrayList;
/**
* @author 作者 E-mail:309581534@qq.com
* @version 创建时间:2015-5-11 下午2:33:40 类说明
*/
public class Biz_dealvCtlIndexActModel extends BaseCtlActModel
{
private ArrayList<LocationModel> location_list;
private int is_auth;
public ArrayList<LocationModel> getLocation_list()
{
return location_list;
}
public void setLocation_list(ArrayList<LocationModel> location_list)
{
this.location_list = location_list;
}
public int getIs_auth()
{
return is_auth;
}
public void setIs_auth(int is_auth)
{
this.is_auth = is_auth;
}
}
|
[
"aliang5820@126.com"
] |
aliang5820@126.com
|
5c0982db6156d784cebb6dd5d4057106f2476b20
|
ceddf4fbef335bec3a770a05a067564f1e40560f
|
/src/main/java/com/polarising/auth/security/oauth2/SimpleAuthoritiesExtractor.java
|
f6679bad63ef205169f8df9615dec4f96aa4e68c
|
[] |
no_license
|
jrjm/cognito-auth
|
c7e635d25eef44bb428cf845bf1775ff6f4a0fb2
|
8f9cfca5d021a62f443d7ee167fdd78185ceba9d
|
refs/heads/master
| 2020-04-13T15:07:59.976739
| 2018-12-27T10:42:53
| 2018-12-27T10:42:53
| 163,282,398
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,084
|
java
|
package com.polarising.auth.security.oauth2;
import org.springframework.boot.autoconfigure.security.oauth2.resource.AuthoritiesExtractor;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import static java.util.stream.Collectors.toList;
public class SimpleAuthoritiesExtractor implements AuthoritiesExtractor {
private final String oauth2AuthoritiesAttribute;
public SimpleAuthoritiesExtractor(String oauth2AuthoritiesAttribute) {
this.oauth2AuthoritiesAttribute = oauth2AuthoritiesAttribute;
}
@Override
public List<GrantedAuthority> extractAuthorities(Map<String, Object> map) {
return Optional.ofNullable((List<String>) map.get(oauth2AuthoritiesAttribute))
.filter(it -> !it.isEmpty())
.orElse(Collections.emptyList())
.stream()
.map(SimpleGrantedAuthority::new)
.collect(toList());
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
e8ccd958f2112dbb3957bf77bd155b0181adcfdd
|
0e0c16b6749edfda8ecf435e0393c0f59fd442cb
|
/app/src/main/java/id/luvie/luviedokter/model/statusDokter/ResponseStatusDokter.java
|
1d45653c5d81e2d0db5ce67c88fb68408328006b
|
[] |
no_license
|
ranggacikal/DokterHaloQlinic
|
dcc671964e028c39874d387f58318504193f1797
|
5e13d429e9e85e7b60f2751ad6b3a0a04e52379f
|
refs/heads/master
| 2023-08-22T04:49:40.681491
| 2021-09-22T04:57:06
| 2021-09-22T04:57:06
| 370,740,963
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 453
|
java
|
package id.luvie.luviedokter.model.statusDokter;
import com.google.gson.annotations.SerializedName;
public class ResponseStatusDokter{
@SerializedName("response")
private String response;
public void setResponse(String response){
this.response = response;
}
public String getResponse(){
return response;
}
@Override
public String toString(){
return
"ResponseStatusDokter{" +
"response = '" + response + '\'' +
"}";
}
}
|
[
"ranggacikal2@gmail.com"
] |
ranggacikal2@gmail.com
|
abdcfd7d36e326da501ec9d561ad4b7ef4f015cf
|
70c850db946f675884a4635fc9f0159b9faea9a8
|
/example/spring-boot-atguigu/spring-boot-cyh-01-mybatis-paginator/src/main/java/com/cyh/mapper/EmployeeMapper.java
|
68cec78ba5523d18f8caf0fa66b8e5f5283a28fc
|
[] |
no_license
|
oudream/hello-spring
|
dd5542b80a5f84abbdffc29053eaf5a1ec841078
|
0c32a9d97eaa81a2d33ca289a1750f5cca6c7720
|
refs/heads/master
| 2022-11-18T10:27:49.388512
| 2020-06-17T04:31:26
| 2020-06-17T04:31:26
| 231,731,318
| 1
| 0
| null | 2022-11-16T09:41:13
| 2020-01-04T08:20:52
|
Java
|
UTF-8
|
Java
| false
| false
| 477
|
java
|
package com.cyh.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import com.cyh.bean.Employee;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
@Mapper
@Component
public interface EmployeeMapper {
/**
* 根据性别查询员工
* @param gender
* @param pageBounds
* @return
*/
List<Employee> findByGender(Integer gender, PageBounds pageBounds);
}
|
[
"oudream@126.com"
] |
oudream@126.com
|
93304906d21dd2d45102edd6b55411f67b74b127
|
b857c0a9f29b7ff8d3aa177734526e97d3358f38
|
/app/src/main/java/com/lxyg/app/customer/iface/PostDataListener.java
|
aa896f5b25a23acc214b956a5062181a38ce16dd
|
[] |
no_license
|
mirror5821/LXYG
|
a133d68b93901a375d1fef47710683c9c93cc953
|
d2be2366b41b5301d1d5c6bba6e0c5bbb25521e5
|
refs/heads/master
| 2021-01-21T13:41:20.864539
| 2016-05-05T06:50:58
| 2016-05-05T06:50:58
| 47,088,931
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 141
|
java
|
package com.lxyg.app.customer.iface;
public interface PostDataListener {
void getDate(String data, String msg);
void error(String msg);
}
|
[
"mirror5821@163.com"
] |
mirror5821@163.com
|
dab3d07798adea998b81b211c01607a0a27817ff
|
6404ac646e701b0039b3dec3abb023d3058da573
|
/JAVA programs/cPHP/PrimernoControlno2/gotzeva_exam_bandit/src/Sheriff.java
|
b0b520a26728a7a9322edf25b694ff6f21242e6f
|
[] |
no_license
|
YovoManolov/GithubRepJava
|
0b6ffa5234bcca3dec1ac78f491b1d96882420e8
|
307f11e11d384ae0dbf7b2634210656be539d92f
|
refs/heads/master
| 2023-01-09T23:26:01.806341
| 2021-03-28T13:41:36
| 2021-03-28T13:41:36
| 85,554,350
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 522
|
java
|
public class Sheriff extends Villain {
public Sheriff() {
// TODO Auto-generated constructor stub
}
public Sheriff(int numLegs, int numHands, int numEyes, String name,
String horseName, String whiskey, String shortName, int numShoots,
int price) {
super(numLegs, numHands, numEyes, name, horseName, whiskey, shortName,
numShoots, price);
// TODO Auto-generated constructor stub
}
@Override
public int Shoot() {
// TODO Auto-generated method stub
return Math.min(super.Shoot()+20, 100);
}
}
|
[
"yovo.manolov@abv.bg"
] |
yovo.manolov@abv.bg
|
7a0696e81ff0edbc7047073055240f5839689b82
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_037b8ef1bcbf9fdd66a93dfa27804d69a5c41815/IndexUpdater/2_037b8ef1bcbf9fdd66a93dfa27804d69a5c41815_IndexUpdater_t.java
|
a89ec54b87d8cfa095d1b23def2f11ae53a6fc0e
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 4,960
|
java
|
package no.feide.moria.directory;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.TimerTask;
import no.feide.moria.directory.index.DirectoryManagerIndex;
import no.feide.moria.log.MessageLogger;
/**
* This is the task responsible for periodically checking for a new index file,
* and, if necessary update the existing index.
*/
public class IndexUpdater
extends TimerTask {
/** The message logger. */
private final static MessageLogger log = new MessageLogger(IndexUpdater.class);
/** The location of the index file. */
private final String filename;
/** The timestamp of the last read index file. Initially set to 0 (zero). */
private long timestamp = 0;
/** The instance of Directory Manager that created this task. */
private final DirectoryManager owner;
/**
* Constructor.
* @param dm
* The instance of Directory Manager that created this instance.
* Required since <code>IndexUpdater</code> uses this object
* directly to update its index. Cannot be <code>null</code>.
* @param indexFilename
* The index filename. Cannot be <code>null</code>.
*/
public IndexUpdater(DirectoryManager dm, final String indexFilename) {
super();
// Sanity checks.
if (dm == null)
throw new IllegalArgumentException("Directory Manager cannot be NULL");
if (indexFilename == null)
throw new IllegalArgumentException("Index file name cannot be NULL");
// Set some local variables.
owner = dm;
filename = indexFilename;
}
/**
* Performs the periodic update of the DirectoryManager's index, by calling
* the <code>DirectoryManager.updateIndex(DirectoryManagerIndex)</code>
* method.
* @see java.lang.Runnable#run()
* @see DirectoryManager#updateIndex(DirectoryManagerIndex)
*/
public void run() {
owner.updateIndex(readIndex());
}
/**
* Reads an index file and create a new index object. <br>
* <br>
* Note that this method is also called by
* <code>DirectoryManager.setConfig(Properties)</code> to force through an
* initial update of the index.
* @param filename
* The filename of the index. Cannot be <code>null</code>.
* @return The newly read index, as an object implementing the
* <code>DirectoryManagerIndex</code> interface. Will return
* <code>null</code> if this method has already been used to
* successfully read an index file, and the file has not been
* updated since (based on the file's timestamp on disk, as per the
* <code>File.lastModified()</code> method).
* @throws IllegalArgumentException
* If <code>filename</code> is <code>null</code>.
* @throws DirectoryManagerConfigurationException
* If the index file does not exist, or if unable to read from
* the file, or if unable to instantiate the index as a
* <code>DirectoryManagerIndex</code> object.
* @see java.io.File#lastModified()
* @see DirectoryManager#setConfig(Properties)
*/
protected DirectoryManagerIndex readIndex() {
// Sanity check.
if (filename == null)
throw new IllegalArgumentException("Index filename cannot be NULL");
// Check if the index file exists.
File indexFile = new File(filename);
if (!indexFile.isFile())
throw new DirectoryManagerConfigurationException("Index file " + filename + " does not exist");
// Check if we have received a newer index file than the one previously
// read.
if (timestamp >= indexFile.lastModified())
return null; // No update necessary.
timestamp = indexFile.lastModified();
DirectoryManagerIndex index = null;
try {
// Read the new index from file.
ObjectInputStream in = new ObjectInputStream(new FileInputStream(filename));
index = (DirectoryManagerIndex) in.readObject();
in.close();
} catch (FileNotFoundException e) {
throw new DirectoryManagerConfigurationException("Index file " + filename + " does not exist");
} catch (IOException e) {
throw new DirectoryManagerConfigurationException("Unable to read index from file " + filename, e);
} catch (ClassNotFoundException e) {
throw new DirectoryManagerConfigurationException("Unable to instantiate index object", e);
}
timestamp = indexFile.lastModified();
return index;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
0616d9277fab8ca575fa242d8caba562814575b8
|
cb2e0b45e47ebeb518f1c8d7d12dfa0680aed01c
|
/openbanking-api-soap-transform/src/main/gen/com/laegler/openbanking/soap/model/LoanProviderInterestRateType.java
|
3c32514b1d0d8a7490e627ee5f959436c5a78c27
|
[
"MIT"
] |
permissive
|
thlaegler/openbanking
|
4909cc9e580210267874c231a79979c7c6ec64d8
|
924a29ac8c0638622fba7a5674c21c803d6dc5a9
|
refs/heads/develop
| 2022-12-23T15:50:28.827916
| 2019-10-30T09:11:26
| 2019-10-31T05:43:04
| 213,506,933
| 1
| 0
|
MIT
| 2022-11-16T11:55:44
| 2019-10-07T23:39:49
|
HTML
|
UTF-8
|
Java
| false
| false
| 1,072
|
java
|
package com.laegler.openbanking.soap.model;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for LoanProviderInterestRateType.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="LoanProviderInterestRateType">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="INBB"/>
* <enumeration value="INFR"/>
* <enumeration value="INGR"/>
* <enumeration value="INLR"/>
* <enumeration value="INNE"/>
* <enumeration value="INOT"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "LoanProviderInterestRateType")
@XmlEnum
public enum LoanProviderInterestRateType {
INBB,
INFR,
INGR,
INLR,
INNE,
INOT;
public String value() {
return name();
}
public static LoanProviderInterestRateType fromValue(String v) {
return valueOf(v);
}
}
|
[
"thomas.laegler@googlemail.com"
] |
thomas.laegler@googlemail.com
|
901217f19ba750a9fdbdf5814ff39f48591b58cc
|
4ac28ecfc2f16f0a01b206a9bea32947f44813b4
|
/src/main/java/edu/man/prod/service/ZahvatiService.java
|
2788a1d4b0258cf80aa5bc6fe04d9ebdb167f37b
|
[] |
no_license
|
VladaStc/ManProd
|
bca1eb112f80c30c31039f96748e606c9e85c941
|
18816e99990b32a9bb5e4fdb7a0c1f2bdb5e6499
|
refs/heads/master
| 2020-04-04T15:27:33.000979
| 2018-11-04T01:26:40
| 2018-11-04T01:26:40
| 139,568,536
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 761
|
java
|
package edu.man.prod.service;
import edu.man.prod.domain.Zahvati;
import java.util.List;
import java.util.Optional;
/**
* Service Interface for managing Zahvati.
*/
public interface ZahvatiService {
/**
* Save a zahvati.
*
* @param zahvati the entity to save
* @return the persisted entity
*/
Zahvati save(Zahvati zahvati);
/**
* Get all the zahvatis.
*
* @return the list of entities
*/
List<Zahvati> findAll();
/**
* Get the "id" zahvati.
*
* @param id the id of the entity
* @return the entity
*/
Optional<Zahvati> findOne(Long id);
/**
* Delete the "id" zahvati.
*
* @param id the id of the entity
*/
void delete(Long id);
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
f1053cdb804bfa2ebb1c72e56ffba5d01df036c9
|
0b4863800f50005bffc560b0567755d13890c8dc
|
/src/main/java/org/antframework/common/util/tostring/format/HideFieldFormatter.java
|
241b499920e56d28c71a4e5d19917ea9cb333ca9
|
[
"Apache-2.0"
] |
permissive
|
luchao0111/ant-common-util
|
b072269946495c6a4063fcbdfed9b3c1048cf98c
|
8e398f31054f15e8c2a7fd06b2f83099e6154dcc
|
refs/heads/master
| 2020-07-11T16:11:41.184791
| 2019-05-04T16:04:17
| 2019-05-04T16:04:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 536
|
java
|
/*
* 作者:钟勋 (e-mail:zhongxunking@163.com)
*/
/*
* 修订记录:
* @author 钟勋 2017-06-20 18:21 创建
*/
package org.antframework.common.util.tostring.format;
import org.antframework.common.util.tostring.FieldFormatter;
import java.lang.reflect.Field;
/**
* 隐藏属性的格式器(不输出属性)
*/
public class HideFieldFormatter implements FieldFormatter {
@Override
public void initialize(Field field) {
}
@Override
public String format(Object obj) {
return null;
}
}
|
[
"zhongxunking@163.com"
] |
zhongxunking@163.com
|
5cf57e6ce8c53d983ff4a17f515c9b8e89031745
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-14263-53-19-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/xwiki/velocity/internal/DefaultVelocityEngine_ESTest_scaffolding.java
|
8028970bc260bbb949e05f085d5f2b96c00a2ca3
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 453
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Tue Apr 07 02:00:14 UTC 2020
*/
package org.xwiki.velocity.internal;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class DefaultVelocityEngine_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
4c68dab38e75c5cf2f5a43502011beb90b0c7024
|
592eb3c39bbd5550c5406abdfd45f49c24e6fd6c
|
/autoweb/src/main/java/com/autosite/util/SiteConfigUtil.java
|
935937eae734c6605cc4a58db057463c4c92fc3c
|
[] |
no_license
|
passionblue/autoweb
|
f77dc89098d59fddc48a40a81f2f2cf27cd08cfb
|
8ea27a5b83f02f4f0b66740b22179bea4d73709e
|
refs/heads/master
| 2021-01-17T20:33:28.634291
| 2016-06-17T01:38:45
| 2016-06-17T01:38:45
| 60,968,206
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,611
|
java
|
package com.autosite.util;
import java.util.Map;
import com.autosite.db.Site;
import com.autosite.db.SiteConfig;
import com.autosite.theme.DefaultThemeManager;
import com.jtrend.util.WebUtil;
public class SiteConfigUtil {
public static SiteConfig getDefaultSiteConfig() {
DefaultThemeManager themeManager = DefaultThemeManager.getInstance();
Map fields = themeManager.getDefaultThemeFields();
SiteConfig config = new SiteConfig();
// config.setColorBorders("#ffffff");
// config.setColorSubmenuBg("#e1ebfd");
// config.setHomeColCount(5);
// config.setWidth(1000);
// config.setMenuWidth(125);
// config.setAdWidth(125);
// config.setMenuReverse(0);
// config.setMidColumnWidth(250);
// config.setShowMidColumn(0);
// config.setShowMenuColumn(1);
// config.setShowAdColumn(1);
//
// config.setShowTopMenu(1);
//
// config.setShowHomeMenu(1);
// config.setShowHomeMid(0);
// config.setShowHomeAd(1);
//
// config.setUseWysiwygContent(1);
// config.setUseWysiwygPost(0);
//
// config.setBackgroundColor("#ffffff");
//
// config.setFrontDisplayFeed(1);
config.setColorBorders("#ffffff");
config.setColorSubmenuBg("#e1ebfd");
config.setHomeColCount(5);
config.setWidth(1000);
config.setMenuWidth(125);
config.setAdWidth(125);
config.setMenuReverse(0);
config.setMidColumnWidth(250);
config.setShowMidColumn(0);
config.setShowMenuColumn(1);
config.setShowAdColumn(1);
config.setShowTopMenu(1);
config.setShowHomeMenu(1);
config.setShowHomeMid(0);
config.setShowHomeAd(1);
config.setUseWysiwygContent(1);
config.setUseWysiwygPost(0);
config.setBackgroundColor("#ffffff");
config.setFrontDisplayFeed(1);
config.setUnderlyingDynamicPage(1);
return config;
}
// If mysite.basesite.com, it returns "mysite" only for the child site. for the base site, returns null;
public static String getSitePrefixForSubsite(Site site) {
if (WebUtil.isNull(site.getSiteRegisterSite())) {
return null;
}
String siteUrl = site.getSiteUrl();
String baseUrl = site.getSiteRegisterSite();
return siteUrl.replaceAll("."+baseUrl, "");
}
}
|
[
"joshua@joshua-dell"
] |
joshua@joshua-dell
|
12ddc1bc511a4657ffc1441b51ba4f810a066ba5
|
b108b825ffdec76a6bd945e2911277959a33a6eb
|
/tzcs/src/main/java/com/hsfcompany/tzcs/dao/DaoSession.java
|
ca863d76643ed58d0b8986fafef3f7c3ebd38937
|
[] |
no_license
|
liangchengcheng/ZSBPJ
|
87ba63f589121821697e5c8c90e9820484aa5762
|
5e48b3bef2b88d8dec9bce605681c3336c9e46c3
|
refs/heads/master
| 2020-04-04T05:50:55.475814
| 2018-12-12T07:49:13
| 2018-12-12T07:49:13
| 48,907,404
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,146
|
java
|
package com.hsfcompany.tzcs.dao;
import android.database.sqlite.SQLiteDatabase;
import java.util.Map;
import de.greenrobot.dao.AbstractDao;
import de.greenrobot.dao.AbstractDaoSession;
import de.greenrobot.dao.identityscope.IdentityScopeType;
import de.greenrobot.dao.internal.DaoConfig;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* {@inheritDoc}
*
* @see de.greenrobot.dao.AbstractDaoSession
*/
public class DaoSession extends AbstractDaoSession {
private final DaoConfig userInfoDaoConfig;
private final UserInfoDao userInfoDao;
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
daoConfigMap) {
super(db);
userInfoDaoConfig = daoConfigMap.get(UserInfoDao.class).clone();
userInfoDaoConfig.initIdentityScope(type);
userInfoDao = new UserInfoDao(userInfoDaoConfig, this);
registerDao(UserInfo.class, userInfoDao);
}
public void clear() {
userInfoDaoConfig.getIdentityScope().clear();
}
public UserInfoDao getUserInfoDao() {
return userInfoDao;
}
}
|
[
"1038127753@qq.com"
] |
1038127753@qq.com
|
256119ede08b8a22ea2c1d6b7daee6aceda0c7d9
|
e0ce65ca68416abe67d41f340e13d7d7dcec8e0f
|
/src/main/java/org/trypticon/luceneupgrader/lucene7/internal/lucene/index/SegmentCoreReaders.java
|
7401e2d7831696dbcc3c88ebd0e8a97a5310f1eb
|
[
"Apache-2.0"
] |
permissive
|
arandomgal/lucene-one-stop-index-upgrader
|
943264c22e6cadfef13116f41766f7d5fb2d3a7c
|
4c8b35dcda9e57f0507de48d8519e9c31cb8efb6
|
refs/heads/main
| 2023-06-07T04:18:20.805332
| 2021-07-05T22:28:46
| 2021-07-05T22:28:46
| 383,277,257
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,488
|
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.trypticon.luceneupgrader.lucene7.internal.lucene.index;
import java.io.Closeable;
import java.io.EOFException;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.NoSuchFileException;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import org.trypticon.luceneupgrader.lucene7.internal.lucene.codecs.Codec;
import org.trypticon.luceneupgrader.lucene7.internal.lucene.codecs.FieldsProducer;
import org.trypticon.luceneupgrader.lucene7.internal.lucene.codecs.NormsProducer;
import org.trypticon.luceneupgrader.lucene7.internal.lucene.codecs.PointsReader;
import org.trypticon.luceneupgrader.lucene7.internal.lucene.codecs.PostingsFormat;
import org.trypticon.luceneupgrader.lucene7.internal.lucene.codecs.StoredFieldsReader;
import org.trypticon.luceneupgrader.lucene7.internal.lucene.codecs.TermVectorsReader;
import org.trypticon.luceneupgrader.lucene7.internal.lucene.index.IndexReader.CacheKey;
import org.trypticon.luceneupgrader.lucene7.internal.lucene.index.IndexReader.ClosedListener;
import org.trypticon.luceneupgrader.lucene7.internal.lucene.store.AlreadyClosedException;
import org.trypticon.luceneupgrader.lucene7.internal.lucene.store.Directory;
import org.trypticon.luceneupgrader.lucene7.internal.lucene.store.IOContext;
import org.trypticon.luceneupgrader.lucene7.internal.lucene.util.CloseableThreadLocal;
import org.trypticon.luceneupgrader.lucene7.internal.lucene.util.IOUtils;
final class SegmentCoreReaders {
// Counts how many other readers share the core objects
// (freqStream, proxStream, tis, etc.) of this reader;
// when coreRef drops to 0, these core objects may be
// closed. A given instance of SegmentReader may be
// closed, even though it shares core objects with other
// SegmentReaders:
private final AtomicInteger ref = new AtomicInteger(1);
final FieldsProducer fields;
final NormsProducer normsProducer;
final StoredFieldsReader fieldsReaderOrig;
final TermVectorsReader termVectorsReaderOrig;
final PointsReader pointsReader;
final Directory cfsReader;
final String segment;
final FieldInfos coreFieldInfos;
// TODO: make a single thread local w/ a
// Thingy class holding fieldsReader, termVectorsReader,
// normsProducer
final CloseableThreadLocal<StoredFieldsReader> fieldsReaderLocal = new CloseableThreadLocal<StoredFieldsReader>() {
@Override
protected StoredFieldsReader initialValue() {
return fieldsReaderOrig.clone();
}
};
final CloseableThreadLocal<TermVectorsReader> termVectorsLocal = new CloseableThreadLocal<TermVectorsReader>() {
@Override
protected TermVectorsReader initialValue() {
return (termVectorsReaderOrig == null) ? null : termVectorsReaderOrig.clone();
}
};
private final Set<IndexReader.ClosedListener> coreClosedListeners =
Collections.synchronizedSet(new LinkedHashSet<IndexReader.ClosedListener>());
SegmentCoreReaders(Directory dir, SegmentCommitInfo si, IOContext context) throws IOException {
final Codec codec = si.info.getCodec();
final Directory cfsDir; // confusing name: if (cfs) it's the cfsdir, otherwise it's the segment's directory.
boolean success = false;
try {
if (si.info.getUseCompoundFile()) {
cfsDir = cfsReader = codec.compoundFormat().getCompoundReader(dir, si.info, context);
} else {
cfsReader = null;
cfsDir = dir;
}
segment = si.info.name;
coreFieldInfos = codec.fieldInfosFormat().read(cfsDir, si.info, "", context);
final SegmentReadState segmentReadState = new SegmentReadState(cfsDir, si.info, coreFieldInfos, context);
final PostingsFormat format = codec.postingsFormat();
// Ask codec for its Fields
fields = format.fieldsProducer(segmentReadState);
assert fields != null;
// ask codec for its Norms:
// TODO: since we don't write any norms file if there are no norms,
// kinda jaky to assume the codec handles the case of no norms file at all gracefully?!
if (coreFieldInfos.hasNorms()) {
normsProducer = codec.normsFormat().normsProducer(segmentReadState);
assert normsProducer != null;
} else {
normsProducer = null;
}
fieldsReaderOrig = si.info.getCodec().storedFieldsFormat().fieldsReader(cfsDir, si.info, coreFieldInfos, context);
if (coreFieldInfos.hasVectors()) { // open term vector files only as needed
termVectorsReaderOrig = si.info.getCodec().termVectorsFormat().vectorsReader(cfsDir, si.info, coreFieldInfos, context);
} else {
termVectorsReaderOrig = null;
}
if (coreFieldInfos.hasPointValues()) {
pointsReader = codec.pointsFormat().fieldsReader(segmentReadState);
} else {
pointsReader = null;
}
success = true;
} catch (EOFException | FileNotFoundException e) {
throw new CorruptIndexException("Problem reading index from " + dir, dir.toString(), e);
} catch (NoSuchFileException e) {
throw new CorruptIndexException("Problem reading index.", e.getFile(), e);
} finally {
if (!success) {
decRef();
}
}
}
int getRefCount() {
return ref.get();
}
void incRef() {
int count;
while ((count = ref.get()) > 0) {
if (ref.compareAndSet(count, count+1)) {
return;
}
}
throw new AlreadyClosedException("SegmentCoreReaders is already closed");
}
@SuppressWarnings("try")
void decRef() throws IOException {
if (ref.decrementAndGet() == 0) {
Throwable th = null;
try (Closeable finalizer = this::notifyCoreClosedListeners){
IOUtils.close(termVectorsLocal, fieldsReaderLocal, fields, termVectorsReaderOrig, fieldsReaderOrig,
cfsReader, normsProducer, pointsReader);
}
}
}
private final IndexReader.CacheHelper cacheHelper = new IndexReader.CacheHelper() {
private final IndexReader.CacheKey cacheKey = new IndexReader.CacheKey();
@Override
public CacheKey getKey() {
return cacheKey;
}
@Override
public void addClosedListener(ClosedListener listener) {
coreClosedListeners.add(listener);
}
};
IndexReader.CacheHelper getCacheHelper() {
return cacheHelper;
}
private void notifyCoreClosedListeners() throws IOException {
synchronized(coreClosedListeners) {
IOUtils.applyToAll(coreClosedListeners, l -> l.onClose(cacheHelper.getKey()));
}
}
@Override
public String toString() {
return "SegmentCoreReader(" + segment + ")";
}
}
|
[
"ying.andrews@gmail.com"
] |
ying.andrews@gmail.com
|
c7acbaa99431e6436082927a6659dbb508ed34a3
|
8a4cf46c51577e3fbec149e03eff85b1a4d0fd5b
|
/roncoo-education-user/roncoo-education-user-common/src/main/java/com/roncoo/education/user/common/interfaces/gateway/auth/AuthApiLecturerAudit.java
|
10f5c9b14d5204174a4539ba74cb8afda29d4bd7
|
[] |
no_license
|
imanner/roncoo-education
|
0a50a85330e2fa0b3925b1338ceac6fe23a8d9bc
|
6665e3355846816f68ad9645a9b78c4146dcfbda
|
refs/heads/master
| 2020-04-12T23:25:08.309738
| 2018-12-20T06:57:42
| 2018-12-20T06:57:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,731
|
java
|
package com.roncoo.education.user.common.interfaces.gateway.auth;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.roncoo.education.user.common.bean.bo.auth.AuthLecturerAuditBO;
import com.roncoo.education.user.common.bean.bo.auth.AuthLecturerAuditSaveBO;
import com.roncoo.education.user.common.bean.dto.auth.AuthLecturerAuditViewDTO;
import com.roncoo.education.util.base.Result;
import io.swagger.annotations.ApiOperation;
/**
* 讲师信息-审核
*
* @author wujing
*/
public interface AuthApiLecturerAudit {
/**
* 讲师信息修改接口
*/
@ApiOperation(value = "讲师修改接口", notes = "修改讲师信息")
@RequestMapping(value = "/auth/user/api/lecturer/audit/update", method = RequestMethod.POST)
Result<Integer> update(@RequestBody AuthLecturerAuditBO authLecturerAuditBO);
/**
* 讲师信息查看接口
*/
@ApiOperation(value = "讲师查看接口", notes = "根据讲师用户编号查看讲师信息")
@RequestMapping(value = "/auth/user/api/lecturer/audit/view/{lecturerUserNo}", method = RequestMethod.POST)
Result<AuthLecturerAuditViewDTO> view(@PathVariable(value = "lecturerUserNo") Long lecturerUserNo);
/**
* 讲师申请接口
*
* @param authLecturerAuditSaveBO
* @author wuyun
*/
@ApiOperation(value = "讲师申请接口", notes = "保存讲师信息接口,需要审核")
@RequestMapping(value = "/auth/user/api/lecturer/audit/save", method = RequestMethod.POST)
Result<Integer> save(@RequestBody AuthLecturerAuditSaveBO authLecturerAuditSaveBO);
}
|
[
"297115770@qq.com"
] |
297115770@qq.com
|
9dbdb689c64814d15a98714800fd57d0430d2ab6
|
bc6b0667dd76713e535598e4c66a28467ee08cd9
|
/src/chapter5/bitwiseOperations/LowerCase.java
|
9813e983342c2b052d07ba8ad6ec889ba5c03431
|
[
"MIT"
] |
permissive
|
VladimirMetodiev/JavaByH.Schildt
|
b166b81f60581774d0d5cba7e8be54d7762cf024
|
c19e309a2fd10595b60685ab2991bf8b69ebd7da
|
refs/heads/main
| 2023-06-01T05:29:54.984195
| 2021-07-11T12:17:02
| 2021-07-11T12:17:02
| 343,064,763
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 358
|
java
|
package chapter5.bitwiseOperations;
public class LowerCase {
public static void main(String[] args) {
char letter;
for (int i = 0; i < 26; i++) {
letter = (char) ('A' + i);
System.out.print(letter);
letter = (char) ((int) letter | 32);
System.out.print(letter + " ");
}
}
}
|
[
"iarilomail@gmail.com"
] |
iarilomail@gmail.com
|
43f24d53deaa967394ded3bf347176679684a6dc
|
e455b112a11a44e17914f5177328b62c952a8fe3
|
/flood-spring-cloud-starter/flood-spring-cloud-starter-fegin/src/main/java/cn/flood/cloud/grpc/fegin/fallback/FloodFallbackFactory.java
|
c2aeb973a454195a25f7534e85fb23fa1a46538c
|
[
"Apache-2.0"
] |
permissive
|
mmdai/flood-dependencies
|
97035978179228efe740dc8712996a8b5188b51a
|
586fa0db96dcfdd7bbdec064922f213df3250d21
|
refs/heads/master
| 2023-09-02T00:47:29.496481
| 2023-08-01T03:26:23
| 2023-08-01T03:26:23
| 203,513,950
| 5
| 3
|
Apache-2.0
| 2023-03-01T09:04:21
| 2019-08-21T05:39:54
|
Java
|
UTF-8
|
Java
| false
| false
| 847
|
java
|
package cn.flood.cloud.grpc.fegin.fallback;
import feign.Target;
import lombok.AllArgsConstructor;
import org.springframework.cglib.proxy.Enhancer;
import org.springframework.cloud.openfeign.FallbackFactory;
/**
* 默认 Fallback,避免写过多fallback类
*
* @param <T> 泛型标记
* @author mmdai
*/
@AllArgsConstructor
public class FloodFallbackFactory<T> implements FallbackFactory<T> {
private final Target<T> target;
@Override
@SuppressWarnings("unchecked")
public T create(Throwable cause) {
final Class<T> targetType = target.type();
final String targetName = target.name();
Enhancer enhancer = new Enhancer();
enhancer.setSuperclass(targetType);
enhancer.setUseCache(true);
enhancer.setCallback(new FloodFeignFallback<>(targetType, targetName, cause));
return (T) enhancer.create();
}
}
|
[
"daiming123.happy@163.com"
] |
daiming123.happy@163.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.