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
c3ac49fc2971cb9c6d4d30311b8033cc39548946
e27942cce249f7d62b7dc8c9b86cd40391c1ddd4
/modules/dfp_axis/src/main/java/com/google/api/ads/dfp/axis/v201708/CompanyServiceLocator.java
fd38ba92ed567a75b007fe0cf3ef59fcd730458a
[ "Apache-2.0" ]
permissive
mo4ss/googleads-java-lib
b4b6178747d25d16ae6aa0c80d80ee18a2dfe01a
efaa9c3bd8a46a3ed4b00963dc9760c6dd8bd641
refs/heads/master
2022-12-05T00:30:56.740813
2022-11-16T10:47:15
2022-11-16T10:47:15
108,132,394
0
0
Apache-2.0
2022-11-16T10:47:16
2017-10-24T13:41:43
Java
UTF-8
Java
false
false
6,461
java
// Copyright 2017 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /** * CompanyServiceLocator.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.dfp.axis.v201708; public class CompanyServiceLocator extends org.apache.axis.client.Service implements com.google.api.ads.dfp.axis.v201708.CompanyService { public CompanyServiceLocator() { } public CompanyServiceLocator(org.apache.axis.EngineConfiguration config) { super(config); } public CompanyServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException { super(wsdlLoc, sName); } // Use to get a proxy class for CompanyServiceInterfacePort private java.lang.String CompanyServiceInterfacePort_address = "https://ads.google.com/apis/ads/publisher/v201708/CompanyService"; public java.lang.String getCompanyServiceInterfacePortAddress() { return CompanyServiceInterfacePort_address; } // The WSDD service name defaults to the port name. private java.lang.String CompanyServiceInterfacePortWSDDServiceName = "CompanyServiceInterfacePort"; public java.lang.String getCompanyServiceInterfacePortWSDDServiceName() { return CompanyServiceInterfacePortWSDDServiceName; } public void setCompanyServiceInterfacePortWSDDServiceName(java.lang.String name) { CompanyServiceInterfacePortWSDDServiceName = name; } public com.google.api.ads.dfp.axis.v201708.CompanyServiceInterface getCompanyServiceInterfacePort() throws javax.xml.rpc.ServiceException { java.net.URL endpoint; try { endpoint = new java.net.URL(CompanyServiceInterfacePort_address); } catch (java.net.MalformedURLException e) { throw new javax.xml.rpc.ServiceException(e); } return getCompanyServiceInterfacePort(endpoint); } public com.google.api.ads.dfp.axis.v201708.CompanyServiceInterface getCompanyServiceInterfacePort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { try { com.google.api.ads.dfp.axis.v201708.CompanyServiceSoapBindingStub _stub = new com.google.api.ads.dfp.axis.v201708.CompanyServiceSoapBindingStub(portAddress, this); _stub.setPortName(getCompanyServiceInterfacePortWSDDServiceName()); return _stub; } catch (org.apache.axis.AxisFault e) { return null; } } public void setCompanyServiceInterfacePortEndpointAddress(java.lang.String address) { CompanyServiceInterfacePort_address = address; } /** * For the given interface, get the stub implementation. * If this service has no port for the given interface, * then ServiceException is thrown. */ public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { try { if (com.google.api.ads.dfp.axis.v201708.CompanyServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) { com.google.api.ads.dfp.axis.v201708.CompanyServiceSoapBindingStub _stub = new com.google.api.ads.dfp.axis.v201708.CompanyServiceSoapBindingStub(new java.net.URL(CompanyServiceInterfacePort_address), this); _stub.setPortName(getCompanyServiceInterfacePortWSDDServiceName()); return _stub; } } catch (java.lang.Throwable t) { throw new javax.xml.rpc.ServiceException(t); } throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); } /** * For the given interface, get the stub implementation. * If this service has no port for the given interface, * then ServiceException is thrown. */ public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { if (portName == null) { return getPort(serviceEndpointInterface); } java.lang.String inputPortName = portName.getLocalPart(); if ("CompanyServiceInterfacePort".equals(inputPortName)) { return getCompanyServiceInterfacePort(); } else { java.rmi.Remote _stub = getPort(serviceEndpointInterface); ((org.apache.axis.client.Stub) _stub).setPortName(portName); return _stub; } } public javax.xml.namespace.QName getServiceName() { return new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201708", "CompanyService"); } private java.util.HashSet ports = null; public java.util.Iterator getPorts() { if (ports == null) { ports = new java.util.HashSet(); ports.add(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201708", "CompanyServiceInterfacePort")); } return ports.iterator(); } /** * Set the endpoint address for the specified port name. */ public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { if ("CompanyServiceInterfacePort".equals(portName)) { setCompanyServiceInterfacePortEndpointAddress(address); } else { // Unknown Port Name throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); } } /** * Set the endpoint address for the specified port name. */ public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException { setEndpointAddress(portName.getLocalPart(), address); } }
[ "api.cseeley@gmail.com" ]
api.cseeley@gmail.com
7cee8e242988a84b950f4e40a015b90185ee3fc3
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/28/28_4fc50526a39e524d0f0f1089f8d4763436478ef3/Address/28_4fc50526a39e524d0f0f1089f8d4763436478ef3_Address_s.java
206441f66ee0781c31db9bde927b0f7a687ca30e
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
1,929
java
package org.springframework.data.rest.test.webmvc; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.ManyToOne; /** * @author Jon Brisbin <jbrisbin@vmware.com> */ @Entity public class Address { @Id @GeneratedValue private Long id; private String[] lines; private String city; private String province; private String postalCode; @ManyToOne(optional = false, cascade = CascadeType.REMOVE) private Person person; public Address() { } public Address(String[] lines, String city, String province, String postalCode, Person person) { this.lines = lines; this.city = city; this.province = province; this.postalCode = postalCode; this.person = person; } public Long getId() { return id; } public String[] getLines() { return lines; } public void setLines(String[] lines) { this.lines = lines; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getProvince() { return province; } public void setProvince(String province) { this.province = province; } public String getPostalCode() { return postalCode; } public void setPostalCode(String postalCode) { this.postalCode = postalCode; } public Person getPerson() { return person; } public void setPerson(Person person) { this.person = person; } @Override public boolean equals(Object o) { if(!(o instanceof Address)) { return false; } Address address2 = (Address)o; return (address2.id == id || (id != null && id.equals(address2.id))); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
24f3ac9f656fefe34afcab6706d590a96d460341
8504b15ba9153caa24c1032f5482deef93b9e339
/MroXdrMerge/src/StructData/SIGNAL_XDR_3G.java
b54472b48d4996fde6ca7d637d67d619a021d710
[]
no_license
AlexanderKwong/myProject
78d4507f0ef9bcc64c383151233d744fe3cc89ef
3828aff308babb689c035e25be71c743d769c093
refs/heads/master
2021-08-31T19:53:35.167478
2017-12-22T16:42:10
2017-12-22T16:42:10
111,092,218
0
0
null
null
null
null
UTF-8
Java
false
false
1,218
java
package StructData; import cellconfig.CellConfig; import cellconfig.TdCellInfo; import jan.util.GisFunction; public class SIGNAL_XDR_3G extends SIGNAL_LOC { public int eventid; public int eventType; public long imsi; public int lac; public int ci; public int nettype;//1 gsm;2 tdscdma;3 lte public String uenettype; public String timeStr; public int lockNetMark; public SIGNAL_XDR_3G() { Clear(); } @Override public String GetCellKey() { return lac + "_" + ci; } @Override public int GetSampleDistance(int ilongitude, int ilatitude) { TdCellInfo cellInfo = CellConfig.GetInstance().getTdCell(lac, ci); if(cellInfo != null) { if(longitude > 0 && latitude > 0 && cellInfo.ilongitude > 0 && cellInfo.ilatitude > 0) { return (int)GisFunction.GetDistance(ilongitude, ilatitude, cellInfo.ilongitude, cellInfo.ilatitude); } } return StaticConfig.Int_Abnormal; } @Override public int GetMaxCellRadius() { int maxRadius = 6000; TdCellInfo cellInfo = CellConfig.GetInstance().getTdCell(lac, ci); if(cellInfo != null) { maxRadius = Math.min(maxRadius, 5*cellInfo.radius); maxRadius = Math.max(maxRadius, 1500); } return maxRadius; } }
[ "601828006@qq.com" ]
601828006@qq.com
038104cf7026d7938d7b6b9c3976492836d0d63f
148100c6a5ac58980e43aeb0ef41b00d76dfb5b3
/sources/com/google/android/gms/measurement/internal/bh.java
24be0a75aa50a0c8109e2461079b9a346e1a2da4
[]
no_license
niravrathod/car_details
f979de0b857f93efe079cd8d7567f2134755802d
398897c050436f13b7160050f375ec1f4e05cdf8
refs/heads/master
2020-04-13T16:36:29.854057
2018-12-27T19:03:46
2018-12-27T19:03:46
163,325,703
0
0
null
null
null
null
UTF-8
Java
false
false
1,087
java
package com.google.android.gms.measurement.internal; import android.os.RemoteException; final class bh implements Runnable { /* renamed from: a */ private final /* synthetic */ zzdn f10499a; /* renamed from: b */ private final /* synthetic */ zzdr f10500b; bh(zzdr zzdr, zzdn zzdn) { this.f10500b = zzdr; this.f10499a = zzdn; } public final void run() { zzag d = this.f10500b.f21656b; if (d == null) { this.f10500b.mo3172r().v_().m12354a("Failed to send current screen to service"); return; } try { if (this.f10499a == null) { d.mo3182a(0, null, null, this.f10500b.mo3170n().getPackageName()); } else { d.mo3182a(this.f10499a.f10781c, this.f10499a.f10779a, this.f10499a.f10780b, this.f10500b.mo3170n().getPackageName()); } this.f10500b.m29657I(); } catch (RemoteException e) { this.f10500b.mo3172r().v_().m12355a("Failed to send current screen to the service", e); } } }
[ "niravrathod473@gmail.com" ]
niravrathod473@gmail.com
1f5c599d01bc62ab58563b241d7212e4cfbd1bd5
88f60611ea3ec5e7c8f83ab7746fe185563de396
/src/ConsultaSaldo.java
e5e2f63bacf64a13a781f8319aa0320984f01a95
[]
no_license
gtau/WSTeste
ac6b8bcba4d002a2b70ac94c71940742e89c9ca2
998359cc9346e9f4a614a8552a59f5b9ce5bcf3d
refs/heads/master
2021-01-01T04:06:50.085131
2016-04-27T01:49:30
2016-04-27T01:49:30
57,174,030
0
0
null
null
null
null
UTF-8
Java
false
false
5,486
java
import javax.xml.ws.BindingProvider; import java.util.Properties; import java.util.ArrayList; import java.util.List; import flow.MP.ConsultaSaldo.PropriedadesExecucao; import flow.MP.ConsultaSaldo.ConsultarSaldoParticipanteOutput; import flow.MP.ConsultaSaldo.ConsultarSaldoParticipanteInput; import flow.MP.ConsultaSaldo.ConsultarSaldoParticipantev1; import flow.MP.ConsultaSaldo.ConsultarSaldoParticipantev1PortType; import flow.MP.ConsultaSaldo.Participante; import javax.xml.ws.handler.Handler; public class ConsultaSaldo { static { javax.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier(new javax.net.ssl.HostnameVerifier() { public boolean verify(String hostname, javax.net.ssl.SSLSession sslSession) { return true; } }); } public void testar(String[] args){ /* Set trust store so we can connect to the https server Certificate for qab2b.multiplus.com.br was added to this keystore */ System.setProperty("javax.net.ssl.trustStore", "c:\\tau.jks"); System.setProperty("javax.net.ssl.trustStorePassword", "Avaya@100"); /* * Enable Debug so we can dump packets */ System.setProperty("com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump", "true"); System.setProperty("com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump", "true"); System.setProperty("com.sun.xml.ws.transport.http.HttpAdapter.dump", "true"); System.setProperty("com.sun.xml.internal.ws.transport.http.HttpAdapter.dump", "true"); //System.setProperty("javax.net.ssl.keyStore", "c:\\tau.jks"); //System.setProperty("javax.net.ssl.keyStorePassword", "Avaya@100"); /* * Instantiate Webservice Variables */ ConsultarSaldoParticipanteInput consultasaldoinput = new ConsultarSaldoParticipanteInput(); ConsultarSaldoParticipanteOutput consultasaldooutput = new ConsultarSaldoParticipanteOutput(); Participante participante = new Participante(); ConsultarSaldoParticipantev1 consultasaldoimpl = new ConsultarSaldoParticipantev1(); ConsultarSaldoParticipantev1PortType consultasaldoport = consultasaldoimpl.getConsultarSaldoParticipantev1(); BindingProvider bindingprovider = (BindingProvider)consultasaldoport; bindingprovider.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "https://qab2b.pontosmultiplus.com.br:8443/API/ConsultarSaldoParticipanteAPISv1"); @SuppressWarnings("rawtypes") List<Handler> handlerChain = new ArrayList<Handler>(); handlerChain.add(new WSSecurityHeaderSOAPHandler("OrbitallUser", "Mplus2@16")); bindingprovider.getBinding().setHandlerChain(handlerChain); System.out.println(System.getProperty("javax.net.ssl.trustStore")); // System.setProperty("javax.net.ssl.keyStorePassword", "changeit"); // bp.getRequestContext().put("com.sun.xml.internal.ws.transport.https.client.SSLSocketFactory", getCustomSocketFactory()); // Inicio.setProp(); participante.setNumeroMultiplus("81233107577"); consultasaldoinput.setParticipante(participante); PropriedadesExecucao prop = new PropriedadesExecucao(); // We will be using interface 1 on this webservice call prop.setIdInterface(1); consultasaldoinput.setPropriedadesExecucao(prop); try { consultasaldooutput = consultasaldoport.consultarSaldoParticipante(consultasaldoinput); participante = consultasaldooutput.getParticipante(); } catch (flow.MP.ConsultaSaldo.ConsultarSaldoParticipanteFaultMsg e) { System.out.println("Erro na Executacao do WebService"); System.out.println("Codigo: " + e.getFaultInfo().getCodigo()); System.out.println("Mensagem: " + e.getFaultInfo().getMensagem()); System.out.println("Instrucao: " + e.getFaultInfo().getInstrucao()); System.out.println("Detalhe:" + e.getFaultInfo().getDetalhe()); } catch (flow.MP.ConsultaSaldo.ErroTecnicoFaultMsg e) { System.out.println("Erro na Executacao do WebService"); System.out.println("Codigo: " + e.getFaultInfo().getCodigo()); System.out.println("Mensagem: " + e.getFaultInfo().getMensagem()); System.out.println("Instrucao: " + e.getFaultInfo().getInstrucao()); System.out.println("Detalhe:" + e.getFaultInfo().getDetalhe()); } catch (Exception e) { e.printStackTrace(); // TODO: handle exception } System.out.println("id-participante: " + participante.getSaldoParticipante().getSaldoPontos()); } private static void setProp() { String keyStoreFileName = "ssl/clientKeyStore.jks"; String keyStorePath = ClassLoader.getSystemResource(keyStoreFileName).getPath(); String keyStoreType = "JKS"; String keyStorePassword = "mypassword"; String trustStoreFileName = "ssl/clientTruststore.jks"; String trustStorePath = ClassLoader.getSystemResource(trustStoreFileName).getPath(); String trustStoreType = "JKS"; String trustStorePassword = "mypassword"; Properties systemProps = System.getProperties(); systemProps.put("javax.net.ssl.keyStore", keyStorePath); System.out.println(keyStorePath); systemProps.put("javax.net.ssl.keyStorePassword", trustStorePassword); systemProps.put("javax.net.ssl.keyStoreType", keyStoreType); systemProps.put("javax.net.ssl.trustStore", trustStorePath); systemProps.put("javax.net.ssl.trustStoreType", trustStoreType); systemProps.put("javax.net.ssl.trustStorePassword", keyStorePassword); System.setProperties(systemProps); return; } }
[ "gabrieltau@365ti.com.br" ]
gabrieltau@365ti.com.br
71fe672fb0233b4a5477131e8f19ba96dd94213b
d2984ba2b5ff607687aac9c65ccefa1bd6e41ede
/src/net/datenwerke/rs/terminal/client/terminal/dto/InteractiveResultModifierDto.java
7481f998c245229eae98c10e6ed26daba3eddf31
[]
no_license
bireports/ReportServer
da979eaf472b3e199e6fbd52b3031f0e819bff14
0f9b9dca75136c2bfc20aa611ebbc7dc24cfde62
refs/heads/master
2020-04-18T10:18:56.181123
2019-01-25T00:45:14
2019-01-25T00:45:14
167,463,795
0
0
null
null
null
null
UTF-8
Java
false
false
3,271
java
/* * ReportServer * Copyright (c) 2018 InfoFabrik GmbH * http://reportserver.net/ * * * This file is part of ReportServer. * * ReportServer is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package net.datenwerke.rs.terminal.client.terminal.dto; import com.google.gwt.core.client.GWT; import java.util.ArrayList; import java.util.List; import java.util.Set; import net.datenwerke.dtoservices.dtogenerator.annotations.GeneratedType; import net.datenwerke.gf.base.client.dtogenerator.RsDto; import net.datenwerke.gxtdto.client.dtomanager.Dto2PosoMapper; import net.datenwerke.gxtdto.client.dtomanager.DtoView; import net.datenwerke.gxtdto.client.dtomanager.PropertyAccessor; import net.datenwerke.gxtdto.client.dtomanager.redoundo.ChangeTracker; import net.datenwerke.rs.terminal.client.terminal.dto.CommandResultModifierDto; import net.datenwerke.rs.terminal.client.terminal.dto.pa.InteractiveResultModifierDtoPA; import net.datenwerke.rs.terminal.client.terminal.dto.posomap.InteractiveResultModifierDto2PosoMap; import net.datenwerke.rs.terminal.service.terminal.obj.InteractiveResultModifier; /** * Dto for {@link InteractiveResultModifier} * * This file was automatically created by DtoAnnotationProcessor, version 0.1 */ @GeneratedType("net.datenwerke.dtoservices.dtogenerator.DtoAnnotationProcessor") public class InteractiveResultModifierDto extends RsDto implements CommandResultModifierDto { private static final long serialVersionUID = 1; /* Fields */ public InteractiveResultModifierDto() { super(); } @Override public String toString() { return super.toString(); } public static Dto2PosoMapper newPosoMapper() { return new InteractiveResultModifierDto2PosoMap(); } public InteractiveResultModifierDtoPA instantiatePropertyAccess() { return GWT.create(InteractiveResultModifierDtoPA.class); } public void clearModified() { } public boolean isModified() { if(super.isModified()) return true; return false; } public List<PropertyAccessor> getPropertyAccessors() { List<PropertyAccessor> list = super.getPropertyAccessors(); return list; } public List<PropertyAccessor> getModifiedPropertyAccessors() { List<PropertyAccessor> list = super.getModifiedPropertyAccessors(); return list; } public List<PropertyAccessor> getPropertyAccessorsByView(net.datenwerke.gxtdto.client.dtomanager.DtoView view) { List<PropertyAccessor> list = super.getPropertyAccessorsByView(view); return list; } public List<PropertyAccessor> getPropertyAccessorsForDtos() { List<PropertyAccessor> list = super.getPropertyAccessorsForDtos(); return list; } }
[ "srbala@gmail.com" ]
srbala@gmail.com
aecf1aa3ec3d5bb7f84f7388aa773c95dee6ffd5
30ed65975c43057c4e5929819620265bef1a1927
/src/main/java/com/jinyu/fdxc/struts/bean/Gkfw.java
7f39c89fd33d9a093d4433cc80644687a37edb38
[]
no_license
JuJieCo/fdxc_website
0bc813ddd0ecb01a317ed0e4d72bf97bc5351801
ce4cb3cb3ffab9456bd3362c3b7f639f75cf45fc
refs/heads/master
2021-06-21T16:49:48.527845
2017-04-20T16:38:09
2017-04-20T16:38:09
88,876,679
0
0
null
null
null
null
UTF-8
Java
false
false
1,647
java
package com.jinyu.fdxc.struts.bean; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Date; import com.jinyu.fdxc.model.utils.BaseBean; public class Gkfw extends BaseBean { private Integer gkfwID; private String gkfwTitle; private String gkfwContent; private Date subDate; private SysUser sysUser; private String hold; public Gkfw(){ this.sysUser = new SysUser(); } public Integer getGkfwID() { return gkfwID; } public void setGkfwID(Integer gkfwID) { this.gkfwID = gkfwID; } public String getGkfwTitle() { return gkfwTitle; } public void setGkfwTitle(String gkfwTitle) { this.gkfwTitle = gkfwTitle; } public String getGkfwContent() { return gkfwContent; } public void setGkfwContent(String gkfwContent) { this.gkfwContent = gkfwContent; } public Date getSubDate() { return subDate; } public void setSubDate(Date subDate) { this.subDate = subDate; } public SysUser getSysUser() { return sysUser; } public void setSysUser(SysUser sysUser) { this.sysUser = sysUser; } public String getHold() { return hold; } public void setHold(String hold) { this.hold = hold; } @Override public Gkfw mapRow(ResultSet rst, int rowNum) throws SQLException { Gkfw gkfw = new Gkfw(); gkfw.setGkfwID(rst.getInt("gkfw_id")); gkfw.setGkfwTitle(rst.getString("gkfw_title")); gkfw.setGkfwContent(rst.getString("gkfw_content")); gkfw.setSubDate(rst.getDate("sub_date")); gkfw.getSysUser().setUserID(rst.getInt("user_id")); gkfw.setHold(rst.getString("hold")); return gkfw; } }
[ "whm029@126.com" ]
whm029@126.com
3179052512c51bce0e675bc881a0c455c48531a3
ef17ad29fdefe45261d3e03cc3bfadf4b8ac7f3d
/src/main/java/com/finance/preprocessor/utilities/CurrencyPairDataPack.java
40e3ff565acf715a273ef0674f8faabed8b402e2
[]
no_license
Luke1024/financial-analytics
b84b3c014724d910ae40ddc66a3a375b136f327e
0861676924fd8a4b3cc22a8f55fb55b36fcdf94d
refs/heads/master
2022-12-12T22:28:16.751600
2020-09-08T16:07:11
2020-09-08T16:07:11
215,975,805
0
0
null
2020-09-06T11:40:31
2019-10-18T08:20:33
TSQL
UTF-8
Java
false
false
1,024
java
package com.finance.preprocessor.utilities; import java.time.temporal.ChronoUnit; import java.util.List; public class CurrencyPairDataPack { private String currencyPairName; private ChronoUnit timeFrame; private List<DataPoint> dataPointList; public CurrencyPairDataPack(String currencyPairName, ChronoUnit timeFrame, List<DataPoint> dataPointList) { this.currencyPairName = currencyPairName; this.timeFrame = timeFrame; this.dataPointList = dataPointList; } public String getCurrencyPairName() { return currencyPairName; } public ChronoUnit getTimeFrame() { return timeFrame; } public List<DataPoint> getDataPointList() { return dataPointList; } @Override public String toString() { return "CurrencyPairDataPack{" + "currencyPairName='" + currencyPairName + '\'' + ", timeFrame=" + timeFrame + ", dataPointList=" + dataPointList + '}'; } }
[ "chajdas.lukasz@gmail.com" ]
chajdas.lukasz@gmail.com
df107fb99cb9e4ea9b9d6584da6085a779975b27
e51de484e96efdf743a742de1e91bce67f555f99
/Android/triviacrack_src/src/com/facebook/AppLinkData$2.java
37cf83081ad137fe67b4fe59557bb3cbaa6fd55e
[]
no_license
adumbgreen/TriviaCrap
b21e220e875f417c9939f192f763b1dcbb716c69
beed6340ec5a1611caeff86918f107ed6807d751
refs/heads/master
2021-03-27T19:24:22.401241
2015-07-12T01:28:39
2015-07-12T01:28:39
28,071,899
0
0
null
null
null
null
UTF-8
Java
false
false
587
java
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.facebook; // Referenced classes of package com.facebook: // AppLinkData final class val.completionHandler implements Runnable { final mpletionHandler val$completionHandler; public void run() { val$completionHandler.onDeferredAppLinkDataFetched(null); } mpletionHandler() { val$completionHandler = mpletionhandler; super(); } }
[ "klayderpus@chimble.net" ]
klayderpus@chimble.net
45c791f953f6ff562bd837486f288f794c6f5a31
15b260ccada93e20bb696ae19b14ec62e78ed023
/v2/src/main/java/com/alipay/api/domain/AlipayCommerceTransportTaxiHighvalueorderSyncModel.java
a5be804f36a650f01b61d270922a51111da5cb73
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-java-all
df461d00ead2be06d834c37ab1befa110736b5ab
8cd1750da98ce62dbc931ed437f6101684fbb66a
refs/heads/master
2023-08-27T03:59:06.566567
2023-08-22T14:54:57
2023-08-22T14:54:57
132,569,986
470
207
Apache-2.0
2022-12-25T07:37:40
2018-05-08T07:19:22
Java
UTF-8
Java
false
false
3,715
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 出租车高价值订单同步 * * @author auto create * @since 1.0, 2022-11-24 20:24:50 */ public class AlipayCommerceTransportTaxiHighvalueorderSyncModel extends AlipayObject { private static final long serialVersionUID = 4417829693885657968L; /** * 渠道 */ @ApiField("channel_type") private String channelType; /** * 调度费,单位:分 */ @ApiField("dispatch_amount") private String dispatchAmount; /** * 支付宝统一司机id */ @ApiField("driver_id") private String driverId; /** * 预估价,单位:分 */ @ApiField("estimate_amount") private String estimateAmount; /** * 预估订单时长,单位:分钟 */ @ApiField("estimate_duration") private String estimateDuration; /** * 预估里程,单位:米 */ @ApiField("estimate_mileage") private String estimateMileage; /** * 预计接驾时间(实时单到达乘车点时间、预约单上车时间) */ @ApiField("estimate_pick_up_time") private String estimatePickUpTime; /** * 是否为高价值订单,取值为true/false */ @ApiField("is_high_value") private Boolean isHighValue; /** * 外部订单号 */ @ApiField("order_id") private String orderId; /** * 订单类型 */ @ApiField("order_type") private String orderType; /** * 请求时间 */ @ApiField("request_time") private String requestTime; /** * 订单开始时间(实时单出发接驾时间、预约单匹配成功时间) */ @ApiField("start_time") private String startTime; /** * 订单状态 */ @ApiField("status") private String status; public String getChannelType() { return this.channelType; } public void setChannelType(String channelType) { this.channelType = channelType; } public String getDispatchAmount() { return this.dispatchAmount; } public void setDispatchAmount(String dispatchAmount) { this.dispatchAmount = dispatchAmount; } public String getDriverId() { return this.driverId; } public void setDriverId(String driverId) { this.driverId = driverId; } public String getEstimateAmount() { return this.estimateAmount; } public void setEstimateAmount(String estimateAmount) { this.estimateAmount = estimateAmount; } public String getEstimateDuration() { return this.estimateDuration; } public void setEstimateDuration(String estimateDuration) { this.estimateDuration = estimateDuration; } public String getEstimateMileage() { return this.estimateMileage; } public void setEstimateMileage(String estimateMileage) { this.estimateMileage = estimateMileage; } public String getEstimatePickUpTime() { return this.estimatePickUpTime; } public void setEstimatePickUpTime(String estimatePickUpTime) { this.estimatePickUpTime = estimatePickUpTime; } public Boolean getIsHighValue() { return this.isHighValue; } public void setIsHighValue(Boolean isHighValue) { this.isHighValue = isHighValue; } public String getOrderId() { return this.orderId; } public void setOrderId(String orderId) { this.orderId = orderId; } public String getOrderType() { return this.orderType; } public void setOrderType(String orderType) { this.orderType = orderType; } public String getRequestTime() { return this.requestTime; } public void setRequestTime(String requestTime) { this.requestTime = requestTime; } public String getStartTime() { return this.startTime; } public void setStartTime(String startTime) { this.startTime = startTime; } public String getStatus() { return this.status; } public void setStatus(String status) { this.status = status; } }
[ "auto-publish" ]
auto-publish
c6daddea3bc643874603d04b10d277d93e12630e
2d27b4d2aca7f590485f914a6fae6e979338a951
/src/geom/GradientValue.java
98b55a61d3932b7f02151a6f9c8e90bd910a66c6
[]
no_license
dafrito/Riviera
af71c4b40cafed972e6d8c21d87fab42684284bb
1de0336961b78fde5593645c45e5077cbb49f773
refs/heads/master
2021-12-01T01:57:46.068373
2021-11-16T13:39:07
2021-11-16T13:40:31
674,718
0
2
null
null
null
null
UTF-8
Java
false
false
141
java
package geom; public interface GradientValue<T extends GradientValue<T>> { public T sample(double intensity); public String getName(); }
[ "dafrito@gmail.com" ]
dafrito@gmail.com
973266383e200a6e6e87cae7e3c21e3ee7bd423e
3063fa1a765662fcae9b9c5b2af57326523bb48d
/cloudalibaba-consumer-nacos-order-84/src/main/java/com/liuscoding/springcloud/service/PaymentService.java
5c49e7dc54101e09f39ca683d128e64f622778ce
[ "Apache-2.0" ]
permissive
dongweiqi/springcloud-2020
77e48fb68454e3ae139c5d5855fed25a11dbd1bb
f152bb09b9f2f59f9318f3b5dcda3203477de6e4
refs/heads/master
2023-04-14T14:42:02.548139
2021-04-28T09:57:54
2021-04-28T09:57:54
299,157,249
0
0
Apache-2.0
2020-09-28T01:45:07
2020-09-28T01:45:06
null
UTF-8
Java
false
false
649
java
package com.liuscoding.springcloud.service; import com.liuscoding.springcloud.entity.Payment; import com.liuscoding.springcloud.service.impl.PaymentFallbackService; import com.liuscoding.springcloud.vo.CommonResult; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; @FeignClient(value = "nacos-payment-provider",fallback = PaymentFallbackService.class) //@Component public interface PaymentService { @GetMapping(value = "/paymentSQL/{id}") public CommonResult<Payment> paymentSQL(@PathVariable("id") Long id); }
[ "14786469221@163.com" ]
14786469221@163.com
1e4baf086ce178296715cbe84d301b35375cb6c8
e8fc320e35fd8442b8a68b77db9ca55fb411a567
/tmp/java/Notifier.java
541bee0b7cbe8dea2522405f2fb533c8b58600e7
[]
no_license
pedroalmir/regressionTestingPriorization
0500b477ba9005e61204b62d09488824c5fbf0db
62372a83fa8b7c062cb861225bda750d655401fa
refs/heads/master
2020-04-06T04:22:35.207449
2013-11-04T21:31:39
2013-11-04T21:31:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,488
java
package br.com.infowaypi.servlets; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Date; import java.util.Iterator; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.hibernate.Query; import br.com.infowaypi.ecarebc.atendimentos.GuiaSimples; import br.com.infowaypi.ecarebc.enums.SituacaoEnum; import br.com.infowaypi.molecular.HibernateUtil; import br.com.infowaypi.molecular.SearchAgent; import br.com.infowaypi.molecular.parameter.Equals; import br.com.infowaypi.molecular.parameter.Greater; import br.com.infowaypi.molecular.parameter.NotEquals; import br.com.infowaypi.molecular.parameter.OrderBy; import br.com.infowaypi.msr.user.Usuario; import br.com.infowaypi.msr.utils.Utils; import com.google.gson.Gson; public class Notifier extends HttpServlet{ @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { resp.setContentType("application/json"); Usuario usuario = ((Usuario) req.getSession().getAttribute("usuario")); PrintWriter out = resp.getWriter(); Gson gson = new Gson(); String json = gson.toJson(new Notification(Notification.ERROR_CODE_NO_ROLE_ALLOWED, "Role invalido", new ArrayList<String>(), new ArrayList<String>(), new ArrayList<String>())); if (usuario != null && usuario.getRole() != null) { if (usuario.getRole().equals("prestadorAnestesista") || usuario.getRole().equals("prestadorCompleto") || usuario.getRole().equals("prestadorConsExmIntUrg") || usuario.getRole().equals("prestadorConsIntUrg") || usuario.getRole().equals("prestadorConsultaExame") || usuario.getRole().equals("prestadorInternacaoExameUrgencia") || usuario.getRole().equals("prestadorInternacaoUrgencia") || usuario.getRole().equals("prestadorOdonto") || usuario.getRole().equals("prestadorExame")) { String query = "SELECT guia.autorizacao, segurado.numeroDoCartao, guia.tipoDeGuia FROM " + "GuiaSimples as guia, AbstractSegurado as segurado WHERE " + "guia.segurado = segurado AND " + "guia.prestador.usuario = :usuario AND " + "guia.situacao.descricao = :situacao AND " + "guia.situacao.dataSituacao > :dataSituacao " + "ORDER BY guia.situacao.dataSituacao"; Query hql = HibernateUtil.currentSession().createQuery(query) .setEntity("usuario", usuario) .setString("situacao", SituacaoEnum.AUTORIZADO.descricao()) .setDate("dataSituacao", Utils.incrementaDias(new Date(), -60)); List<String> autorizacoes = new ArrayList<String>(); List<String> segurados = new ArrayList<String>(); List<String> tipoDeGuia = new ArrayList<String>(); List<Object[]> result = hql.list(); for (Object[] strs : result) { autorizacoes.add(strs[0].toString()); segurados.add(strs[1].toString()); tipoDeGuia.add(strs[2].toString()); } if (autorizacoes.isEmpty()) { json = gson.toJson(new Notification(Notification.ERROR_CODE_GUIAS_NAO_ENCONTRADAS, "Nenhuma guia encontrada", new ArrayList<String>(), new ArrayList<String>(), new ArrayList<String>())); } else { json = gson.toJson(new Notification(Notification.SUCCESS, "", autorizacoes, segurados, tipoDeGuia)); } } } out.println(json); out.flush(); out.close(); } }
[ "petrus.cc@gmail.com" ]
petrus.cc@gmail.com
2c974ea05b18452d776597b2bf8a0a88546d670e
e06e9cc98495e675f630b2821fcc8835913c3663
/src/main/java/uaa/web/rest/app/chat/base/GetHttpSessionConfigurator.java
2922b546ce9f0c92b11dc924c4d7945ee6169c51
[]
no_license
xuxueyang/gediaoUaa
bbb716719096a18df71fa9639df1aba9f1b60cba
444459a947bc0a2c46d6d98775e982f55e56059d
refs/heads/master
2022-12-10T06:48:00.032878
2021-06-21T01:25:52
2021-06-21T01:25:52
133,494,811
0
0
null
2022-12-09T04:21:04
2018-05-15T09:43:35
Java
UTF-8
Java
false
false
688
java
package uaa.web.rest.app.chat.base; import javax.servlet.http.HttpSession; import javax.websocket.HandshakeResponse; import javax.websocket.server.HandshakeRequest; import javax.websocket.server.ServerEndpointConfig; import javax.websocket.server.ServerEndpointConfig.Configurator; public class GetHttpSessionConfigurator extends Configurator{ @Override public void modifyHandshake(ServerEndpointConfig config, HandshakeRequest request, HandshakeResponse response) { HttpSession httpSession = (HttpSession) request.getHttpSession(); if(httpSession != null){ config.getUserProperties().put(HttpSession.class.getName(), httpSession); } } }
[ "xuxy@fengyuntec.com" ]
xuxy@fengyuntec.com
a1ce9159299c11a90f5b945a905c042aef0cc8a9
eb97ee5d4f19d7bf028ae9a400642a8c644f8fe3
/tags/2011-04-20/seasar2-2.4.44/s2jdbc-gen/s2jdbc-gen/src/main/java/org/seasar/extension/jdbc/gen/internal/exception/SequenceNotSupportedRuntimeException.java
58f7796780bfea8ca9ab86347f6db6ea529a002a
[ "Apache-2.0" ]
permissive
svn2github/s2container
54ca27cf0c1200a93e1cb88884eb8226a9be677d
625adc6c4e1396654a7297d00ec206c077a78696
refs/heads/master
2020-06-04T17:15:02.140847
2013-08-09T09:38:15
2013-08-09T09:38:15
10,850,644
0
1
null
null
null
null
UTF-8
Java
false
false
1,106
java
/* * Copyright 2004-2011 the Seasar Foundation and the Others. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.seasar.extension.jdbc.gen.internal.exception; import org.seasar.framework.exception.SRuntimeException; /** * @author taedium * */ public class SequenceNotSupportedRuntimeException extends SRuntimeException { private static final long serialVersionUID = 1L; /** * インスタンスを構築します。 * */ public SequenceNotSupportedRuntimeException() { super("ES2JDBCGen0025"); } }
[ "koichik@319488c0-e101-0410-93bc-b5e51f62721a" ]
koichik@319488c0-e101-0410-93bc-b5e51f62721a
da750924fc1628b4b9c0de60f955154f67fea6ad
d7bdaadca23880af130724d2a5813d56c9148f1b
/Catalog/src/catalog/CatalogFactory.java
26a6dd87f1ddfdee2d3ff014a006b38afba74bc8
[]
no_license
clagms/TrNet
14b957e4ba8b8fb81925ca9acf2e64bc805c12e1
5b14e0f0fb352b6f1bf6a684cc1d4aaa0104ab47
refs/heads/master
2021-01-01T03:41:58.483993
2016-04-26T14:20:22
2016-04-26T14:20:22
57,108,988
0
0
null
null
null
null
UTF-8
Java
false
false
2,602
java
/** */ package catalog; import org.eclipse.emf.ecore.EFactory; /** * <!-- begin-user-doc --> * The <b>Factory</b> for the model. * It provides a create method for each non-abstract class of the model. * <!-- end-user-doc --> * @see catalog.CatalogPackage * @generated */ public interface CatalogFactory extends EFactory { /** * The singleton instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ CatalogFactory eINSTANCE = catalog.impl.CatalogFactoryImpl.init(); /** * Returns a new object of class '<em>Model</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Model</em>'. * @generated */ CatalogModel createCatalogModel(); /** * Returns a new object of class '<em>Type Catalog</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Type Catalog</em>'. * @generated */ TypeCatalog createTypeCatalog(); /** * Returns a new object of class '<em>Attribute Catalog</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Attribute Catalog</em>'. * @generated */ AttributeCatalog createAttributeCatalog(); /** * Returns a new object of class '<em>Reference Catalog</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Reference Catalog</em>'. * @generated */ ReferenceCatalog createReferenceCatalog(); /** * Returns a new object of class '<em>Type Catalog Sample</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Type Catalog Sample</em>'. * @generated */ TypeCatalogSample createTypeCatalogSample(); /** * Returns a new object of class '<em>Attribute Catalog Sample</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Attribute Catalog Sample</em>'. * @generated */ AttributeCatalogSample createAttributeCatalogSample(); /** * Returns a new object of class '<em>Reference Catalog Sample</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Reference Catalog Sample</em>'. * @generated */ ReferenceCatalogSample createReferenceCatalogSample(); /** * Returns the package supported by this factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the package supported by this factory. * @generated */ CatalogPackage getCatalogPackage(); } //CatalogFactory
[ "cla.gms@gmail.com" ]
cla.gms@gmail.com
eec5cb9b8a41f6b178e4c5e72d11cc59b8ad7946
63489b9d7f48b5f95dd7823f1ee0e81beb88aba4
/artrade/src/main/java/com/tg/jiadeonline/date/EndOfDayListManager.java
08de9d1b796740e74a9267628b3921eb4d293efc
[]
no_license
h4x0r139/MyApplication
7f7b7b65c160cad5af5baa5727163fae5d26a2bb
b71648d2963761efdfdf66de72075e590781c835
refs/heads/master
2020-05-21T14:55:31.488110
2019-05-28T11:29:45
2019-05-28T11:29:45
63,512,880
5
0
null
null
null
null
UTF-8
Java
false
false
4,815
java
package com.tg.jiadeonline.date; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.util.Log; import com.tg.jiadeonline.bean.EndOfDayListBean; import java.util.ArrayList; import java.util.List; public class EndOfDayListManager { private static final String DB_NAME = "JiaDe"; private static final int DB_VERSION = 1; public static final String ID = "_id"; private static final String TABLE_NAME = "endofday"; private static final String TAG = "endofday"; private Context mContext = null; private SQLiteDatabase mSQLiteDatabase = null; private JiaDeSQLiteOpenHelper mSqLiteOpenHelper = null; public EndOfDayListManager(Context paramContext) { this.mContext = paramContext; Log.i("endofday", "UserDataManager construction!"); } public void closeDataBase() throws SQLException { this.mSqLiteOpenHelper.close(); } public boolean deleteAllDatas() { return this.mSQLiteDatabase.delete("endofday", null, null) > 0; } public List<EndOfDayListBean> fetchAllDatas() { Cursor localCursor = this.mSQLiteDatabase.query("endofday", null, null, null, null, null, null); Object localObject = null; localCursor.moveToFirst(); while (true) { if (localCursor.isAfterLast()) { localCursor.close(); return localObject; } if (localObject == null) localObject = new ArrayList(); int i = localCursor.getColumnIndex("itemnum"); int j = localCursor.getColumnIndex("title"); int k = localCursor.getColumnIndex("picPath"); int m = localCursor.getColumnIndex("timeStart"); int n = localCursor.getColumnIndex("timeEnd"); int i1 = localCursor.getColumnIndex("sysTime"); int i2 = localCursor.getColumnIndex("carePers"); int i3 = localCursor.getColumnIndex("minimumBid"); int i4 = localCursor.getColumnIndex("currentBid"); int i5 = localCursor.getColumnIndex("bstatus"); String str1 = localCursor.getString(i); String str2 = localCursor.getString(j); String str3 = localCursor.getString(k); String str4 = localCursor.getString(m); String str5 = localCursor.getString(n); String str6 = localCursor.getString(i1); String str7 = localCursor.getString(i2); String str8 = localCursor.getString(i3); String str9 = localCursor.getString(i4); String str10 = localCursor.getString(i5); EndOfDayListBean localEndOfDayListBean = new EndOfDayListBean(); localEndOfDayListBean.setItemnum(str1); localEndOfDayListBean.setTitle(str2); localEndOfDayListBean.setPicPath(str3); localEndOfDayListBean.setTimeStart(str4); localEndOfDayListBean.setTimeEnd(str5); localEndOfDayListBean.setSysTime(str6); localEndOfDayListBean.setCarePers(str7); localEndOfDayListBean.setMinimumBid(str8); localEndOfDayListBean.setCurrentBid(str9); localEndOfDayListBean.setBstatus(str10); ((List)localObject).add(localEndOfDayListBean); localCursor.moveToNext(); } } public long insertData(EndOfDayListBean paramEndOfDayListBean) { String str1 = paramEndOfDayListBean.getItemnum(); String str2 = paramEndOfDayListBean.getTitle(); String str3 = paramEndOfDayListBean.getPicPath(); String str4 = paramEndOfDayListBean.getTimeStart(); String str5 = paramEndOfDayListBean.getTimeEnd(); String str6 = paramEndOfDayListBean.getSysTime(); String str7 = paramEndOfDayListBean.getCarePers(); String str8 = paramEndOfDayListBean.getMinimumBid(); String str9 = paramEndOfDayListBean.getCurrentBid(); String str10 = paramEndOfDayListBean.getBstatus(); ContentValues localContentValues = new ContentValues(); localContentValues.put("itemnum", str1); localContentValues.put("title", str2); localContentValues.put("picPath", str3); localContentValues.put("timeStart", str4); localContentValues.put("timeEnd", str5); localContentValues.put("sysTime", str6); localContentValues.put("carePers", str7); localContentValues.put("minimumBid", str8); localContentValues.put("currentBid", str9); localContentValues.put("bstatus", str10); return this.mSQLiteDatabase.insert("endofday", "_id", localContentValues); } public void openDataBase() throws SQLException { this.mSqLiteOpenHelper = new JiaDeSQLiteOpenHelper(this.mContext, "JiaDe", null, 1); this.mSQLiteDatabase = this.mSqLiteOpenHelper.getWritableDatabase(); } } /* Location: D:\yinxm\Android\work\拍卖\apktool\artrade\classes_dex2jar.jar * Qualified Name: com.tg.jiadeonline.date.EndOfDayListManager * JD-Core Version: 0.6.2 */
[ "h4x0r_001@163.com" ]
h4x0r_001@163.com
b3779b6fce4aa8ad003ee7736540c0076a4f9ce1
64d3e1ede86f393d20f45bf5689ec97cfebf01da
/src/main/java/ch/ethz/systems/netbench/xpt/utility/FTEcmpFC.java
235c34aecd60d5dbf91283f24aec50ab195abef5
[ "MIT" ]
permissive
ibuystuff/netbench
efd8b492c6ffa33dc319bc0ac98f6f1a6e502564
e3ce5de28e6ef1940685d396adeb4fda86c82a48
refs/heads/master
2023-06-21T20:06:54.704052
2017-08-09T10:01:29
2017-08-09T10:01:29
121,750,449
0
0
MIT
2020-10-24T03:24:55
2018-02-16T12:51:18
Shell
UTF-8
Java
false
false
672
java
package ch.ethz.systems.netbench.xpt.utility; public class FTEcmpFC { public static void main(String args[]) { System.out.println("#server_pair_id,src,dst,pdf_num_bytes"); int c = 0; for (int i = 320; i < 333; i++) { if (i > 324 && i < 328) { continue; } for (int j = 320; j < 333; j++) { if (j > 324 && j < 328) { continue; } if (i == j) { continue; } System.out.println(c + "," + i + "," + j + "," + (1.0/90.0)); c++; } } } }
[ "s.a.kassing@gmail.com" ]
s.a.kassing@gmail.com
26b04d0d4a8914fca459a386697a1eae58e6f434
8647f4dc31215a6d2377548e78bd75d230f09297
/MasterNode-yoink/src/main/java/org/forYoink/database/service/reader/DbReader.java
fd7daf292d8e8d4c4a4579daeae4d49c7086d3b9
[]
no_license
ChristianOT/MasterNode
3ddb23935dc59e2d7fca0aed654ee9db5886bd87
3780888bce8b6c6a88cac56c22ee78bd2aa203a4
refs/heads/master
2021-07-08T03:25:15.028431
2016-12-06T16:50:48
2016-12-06T16:50:53
57,395,959
0
1
null
null
null
null
UTF-8
Java
false
false
827
java
package org.forYoink.database.service.reader; import org.springframework.batch.item.ItemReader; import org.springframework.stereotype.Service; import org.forYoink.api.model.molecular.MolecularSystem; import org.forYoink.database.repositories.MolecularSystemRepositoryForYoink; import javax.annotation.Resource; import java.util.List; @Service public class DbReader implements ItemReader<List<MolecularSystem>> { @Resource MolecularSystemRepositoryForYoink molecularSystemRepository; private int counter;// used to prevent multiple execution of the job @Override public List<MolecularSystem> read() { System.out.println("Reading files from Database"); if (counter == 0) { counter++; return molecularSystemRepository.findAll(); } else return null; } }
[ "c_oual01@uni-muenster.de" ]
c_oual01@uni-muenster.de
1a99fa45e58d89c687204f6e66f31fbaed184fbd
9b714837b9e77b5c384b5a5a7847963e5845f581
/src/org/redkale/convert/DeMember.java
3f2c2b8e674a160cb28fbd445da6eacf5a5e0df0
[ "Apache-2.0" ]
permissive
kamhung-001/redkale
a8aaa654f5a765acc1c9a85e0d9145b0c49b7b12
79928826188f2795197c2d9e23bc99b0cf711482
refs/heads/master
2021-01-17T21:35:11.694770
2016-06-17T14:29:26
2016-06-17T14:29:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,437
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package org.redkale.convert; import java.lang.reflect.*; import org.redkale.util.Attribute; /** * * <p> * 详情见: http://redkale.org * * @author zhangjx * @param <R> Reader输入的子类 * @param <T> 字段依附的类 * @param <F> 字段的数据类型 */ @SuppressWarnings("unchecked") public final class DeMember<R extends Reader, T, F> implements Comparable<DeMember<R, T, F>> { protected final Attribute<T, F> attribute; protected Decodeable<R, F> decoder; public DeMember(final Attribute<T, F> attribute) { this.attribute = attribute; } public DeMember(Attribute<T, F> attribute, Decodeable<R, F> decoder) { this(attribute); this.decoder = decoder; } public static <R extends Reader, T, F> DeMember<R, T, F> create(final ConvertFactory factory, final Class<T> clazz, final String fieldname) { try { Field field = clazz.getDeclaredField(fieldname); return new DeMember<>(Attribute.create(field), factory.loadDecoder(field.getGenericType())); } catch (Exception e) { throw new RuntimeException(e); } } public final boolean match(String name) { return attribute.field().equals(name); } public final void read(R in, T obj) { this.attribute.set(obj, decoder.convertFrom(in)); } public final F read(R in) { return decoder.convertFrom(in); } public Attribute<T, F> getAttribute() { return this.attribute; } @Override public final int compareTo(DeMember<R, T, F> o) { if (o == null) return 1; return this.attribute.field().compareTo(o.attribute.field()); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (!(obj instanceof DeMember)) return false; DeMember other = (DeMember) obj; return compareTo(other) == 0; } @Override public int hashCode() { return this.attribute.field().hashCode(); } @Override public String toString() { return "DeMember{" + "attribute=" + attribute.field() + ", decoder=" + decoder + '}'; } }
[ "22250530@qq.com" ]
22250530@qq.com
40a8e03334dc6a0ad434f1242e6940e4362f3aa5
7f785360d78bb5bb91c50e788c0ad6f3081741f2
/results/jGenProg+MinImpact/astor-test-and-classification/math/95/30/org/apache/commons/math/distribution/FDistributionImpl_ESTest.java
eb9e269b3e3fd78a9d6ac13eb07ffe9a62890aef
[]
no_license
Spirals-Team/test4repair-experiments
390a65cca4e2c0d3099423becfdc47bae582c406
5bf4dabf0ccf941d4c4053b6a0909f106efa24b5
refs/heads/master
2021-01-13T09:47:18.746481
2020-01-27T03:26:15
2020-01-27T03:26:15
69,664,991
5
6
null
2020-10-13T05:57:11
2016-09-30T12:28:13
Java
UTF-8
Java
false
false
7,919
java
/* * This file was automatically generated by EvoSuite * Sun Jan 29 09:15:40 GMT 2017 */ package org.apache.commons.math.distribution; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import org.apache.commons.math.distribution.FDistributionImpl; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true) public class FDistributionImpl_ESTest extends FDistributionImpl_ESTest_scaffolding { @Test(timeout = 4000) public void test00() throws Throwable { FDistributionImpl fDistributionImpl0 = new FDistributionImpl(165.0222249721, 165.0222249721); // Undeclared exception! try { fDistributionImpl0.setDenominatorDegreesOfFreedom(0.0); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // degrees of freedom must be positive. // verifyException("org.apache.commons.math.distribution.FDistributionImpl", e); } } @Test(timeout = 4000) public void test01() throws Throwable { FDistributionImpl fDistributionImpl0 = new FDistributionImpl(1.7976931348623157E308, 1.7976931348623157E308); double double0 = fDistributionImpl0.inverseCumulativeProbability(Double.NaN); assertEquals(1.7976931348623157E308, fDistributionImpl0.getDenominatorDegreesOfFreedom(), 0.01); assertEquals(1.7976931348623157E308, fDistributionImpl0.getNumeratorDegreesOfFreedom(), 0.01); assertEquals(2.0, double0, 0.01); } @Test(timeout = 4000) public void test02() throws Throwable { FDistributionImpl fDistributionImpl0 = new FDistributionImpl(0.9999999999998416, 1.0E-15); double double0 = fDistributionImpl0.getInitialDomain(0.9999999999998416); assertEquals(0.9999999999998416, fDistributionImpl0.getNumeratorDegreesOfFreedom(), 0.01); assertEquals((-5.000000000000003E-16), double0, 0.01); } @Test(timeout = 4000) public void test03() throws Throwable { FDistributionImpl fDistributionImpl0 = new FDistributionImpl(417.46078174, 417.46078174); double double0 = fDistributionImpl0.cumulativeProbability(2.0); assertEquals(0.999999999998791, double0, 0.01); } @Test(timeout = 4000) public void test04() throws Throwable { FDistributionImpl fDistributionImpl0 = new FDistributionImpl(0.9999999999998416, 1.0E-15); // Undeclared exception! try { fDistributionImpl0.setNumeratorDegreesOfFreedom((-5.000000000000003E-16)); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // degrees of freedom must be positive. // verifyException("org.apache.commons.math.distribution.FDistributionImpl", e); } } @Test(timeout = 4000) public void test05() throws Throwable { FDistributionImpl fDistributionImpl0 = new FDistributionImpl(1343.82896303, 1343.82896303); double double0 = fDistributionImpl0.cumulativeProbability((-571.33162748465)); assertEquals(0.0, double0, 0.01); assertEquals(1343.82896303, fDistributionImpl0.getNumeratorDegreesOfFreedom(), 0.01); assertEquals(1343.82896303, fDistributionImpl0.getDenominatorDegreesOfFreedom(), 0.01); } @Test(timeout = 4000) public void test06() throws Throwable { FDistributionImpl fDistributionImpl0 = new FDistributionImpl(417.46078174, 417.46078174); double double0 = fDistributionImpl0.getDenominatorDegreesOfFreedom(); assertEquals(417.46078174, double0, 0.01); assertEquals(417.46078174, fDistributionImpl0.getNumeratorDegreesOfFreedom(), 0.01); } @Test(timeout = 4000) public void test07() throws Throwable { FDistributionImpl fDistributionImpl0 = new FDistributionImpl(417.46078174, 417.46078174); double double0 = fDistributionImpl0.getNumeratorDegreesOfFreedom(); assertEquals(417.46078174, double0, 0.01); assertEquals(417.46078174, fDistributionImpl0.getDenominatorDegreesOfFreedom(), 0.01); } @Test(timeout = 4000) public void test08() throws Throwable { FDistributionImpl fDistributionImpl0 = new FDistributionImpl(30.8460321, 1.0E-14); // Undeclared exception! try { fDistributionImpl0.setDenominatorDegreesOfFreedom((-1190.599523046755)); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // degrees of freedom must be positive. // verifyException("org.apache.commons.math.distribution.FDistributionImpl", e); } } @Test(timeout = 4000) public void test09() throws Throwable { FDistributionImpl fDistributionImpl0 = null; try { fDistributionImpl0 = new FDistributionImpl(0.0, 0.0); fail("Expecting exception: IllegalArgumentException"); } catch(IllegalArgumentException e) { // // degrees of freedom must be positive. // verifyException("org.apache.commons.math.distribution.FDistributionImpl", e); } } @Test(timeout = 4000) public void test10() throws Throwable { FDistributionImpl fDistributionImpl0 = new FDistributionImpl(1.0, 1.0); double double0 = fDistributionImpl0.inverseCumulativeProbability(1.0); assertEquals(1.0, fDistributionImpl0.getDenominatorDegreesOfFreedom(), 0.01); assertEquals(1.0, fDistributionImpl0.getNumeratorDegreesOfFreedom(), 0.01); assertEquals(Double.POSITIVE_INFINITY, double0, 0.01); } @Test(timeout = 4000) public void test11() throws Throwable { FDistributionImpl fDistributionImpl0 = new FDistributionImpl(417.46078174, 417.46078174); double double0 = fDistributionImpl0.inverseCumulativeProbability(0.0); assertEquals(417.46078174, fDistributionImpl0.getDenominatorDegreesOfFreedom(), 0.01); assertEquals(417.46078174, fDistributionImpl0.getNumeratorDegreesOfFreedom(), 0.01); assertEquals(0.0, double0, 0.01); } @Test(timeout = 4000) public void test12() throws Throwable { FDistributionImpl fDistributionImpl0 = new FDistributionImpl(417.46078174, 417.46078174); double double0 = fDistributionImpl0.getInitialDomain(0.0); assertEquals(1.0048139321156229, double0, 0.01); assertEquals(417.46078174, fDistributionImpl0.getNumeratorDegreesOfFreedom(), 0.01); } @Test(timeout = 4000) public void test13() throws Throwable { FDistributionImpl fDistributionImpl0 = new FDistributionImpl(417.46078174, 417.46078174); double double0 = fDistributionImpl0.getDomainUpperBound(417.46078174); assertEquals(417.46078174, fDistributionImpl0.getNumeratorDegreesOfFreedom(), 0.01); assertEquals(1.7976931348623157E308, double0, 0.01); assertEquals(417.46078174, fDistributionImpl0.getDenominatorDegreesOfFreedom(), 0.01); } @Test(timeout = 4000) public void test14() throws Throwable { FDistributionImpl fDistributionImpl0 = new FDistributionImpl(417.46078174, 417.46078174); double double0 = fDistributionImpl0.getDomainLowerBound((-2676.552)); assertEquals(417.46078174, fDistributionImpl0.getNumeratorDegreesOfFreedom(), 0.01); assertEquals(417.46078174, fDistributionImpl0.getDenominatorDegreesOfFreedom(), 0.01); assertEquals(0.0, double0, 0.01); } @Test(timeout = 4000) public void test15() throws Throwable { FDistributionImpl fDistributionImpl0 = new FDistributionImpl(30.8460321, 1.0E-14); double double0 = fDistributionImpl0.cumulativeProbability(1.0E-14); assertEquals((-7.105427357601002E-15), double0, 0.01); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
246e79fe01167086d32d056c338ca2ee37d6a58c
13c2d3db2d49c40c74c2e6420a9cd89377f1c934
/program_data/JavaProgramData/99/862.java
6750a9f028bd299fe065a68bad51f622034bf1b1
[ "MIT" ]
permissive
qiuchili/ggnn_graph_classification
c2090fefe11f8bf650e734442eb96996a54dc112
291ff02404555511b94a4f477c6974ebd62dcf44
refs/heads/master
2021-10-18T14:54:26.154367
2018-10-21T23:34:14
2018-10-21T23:34:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,020
java
package <missing>; public class GlobalMembers { public static int Main() { int i; int m; int a = 0; int b = 0; int c = 0; int d = 0; int[] yer = new int[100]; double q; double w; double e; double r; String tempVar = ConsoleInput.scanfRead(); if (tempVar != null) { m = Integer.parseInt(tempVar); } for (i = 0;i < m;i++) { String tempVar2 = ConsoleInput.scanfRead(); if (tempVar2 != null) { (yer[i]) = Integer.parseInt(tempVar2); } } for (i = 0 ;i < m;i++) { if (yer[i] <= 18) { a += 1; } else if (19 <= yer[i] != 0 && yer[i] <= 35) { b += 1; } else if (36 <= yer[i] != 0 && yer[i] <= 60) { c += 1; } else { d += 1; } } q = 100.0 * a / m; w = 100.0 * b / m; e = 100.0 * c / m; r = 100.0 * d / m; System.out.printf("1-18: %.2lf%%\n",q); System.out.printf("19-35: %.2lf%%\n",w); System.out.printf("36-60: %.2lf%%\n",e); System.out.printf("60??: %.2lf%%\n",r); return 0; } }
[ "y.yu@open.ac.uk" ]
y.yu@open.ac.uk
9dbeca9a75b4df09964831109e21541cc9a07003
690941d09b25af9c5de3d2d8c6ee9c1726c44a83
/src/com/wpx/demo09/demo04.java
5774e23fbfd147329987fc332eff70c0fadc31b2
[]
no_license
zengxiangbin/javacore
5ca7cfb64434fe5a770d3f054dc080523aedc506
31688e69ca7395690ae1cf46795d822e7646c836
refs/heads/master
2020-12-05T05:24:47.175616
2018-07-11T05:14:02
2018-07-11T05:14:02
null
0
0
null
null
null
null
GB18030
Java
false
false
1,884
java
package com.wpx.demo09; import java.util.Arrays; import java.util.Properties; import java.util.concurrent.atomic.AtomicInteger; /** * System 系统类 主要用于获取系统的属性数据。 System类常用的方法: arraycopy(Object src, int srcPos, Object dest, int destPos, int length) 一般 src - 源数组。 srcPos - 源数组中的起始位置。 dest - 目标数组。 destPos - 目标数据中的起始位置。 length - 要复制的数组元素的数量。 currentTimeMillis() 获取当前系统系统。 重点 exit(int status) 退出jvm 如果参数是0表示正常退出jvm,非0表示异常退出jvm。 一般 gc() 建议jvm赶快启动垃圾回收期回收垃圾。 getenv(String name) 根据环境变量的名字获取环境变量。 getProperty(key) * @author wangpx */ class Student4{ String name; public Student4(String name) { super(); this.name = name; } @Override protected void finalize() throws Throwable { super.finalize(); System.out.println("gc is run...."); } } public class demo04 { public static void main(String[] args) { int[] srcArr = {1,4,45,67,9}; //把srcArr的数组元素拷贝 到destArr数组中。 int[] destArr =new int[3]; System.arraycopy(srcArr, 2, destArr, 0, 3); // System.exit(0); System.out.println(Arrays.toString(destArr)); System.out.println(System.currentTimeMillis()); System.out.println("环境变量:"+System.getenv("JAVA_HOME")); AtomicInteger a=new AtomicInteger(1); while(a.intValue() < 5) { Student4 s=new Student4(null); System.gc(); a.incrementAndGet(); } //Properties properties = System.getProperties(); //获取系统的所有属性。 //properties.list(System.out); String value = System.getProperty("java.vm.name");//根据系统的属性名获取对应的属性值 System.out.println(value); } }
[ "1256317570@qq.com" ]
1256317570@qq.com
a23c79896bb88ec7440786b6c7fd6d1a611ccc43
3560541681cfb7484f3d88772a94ce13aa00c95c
/PDFComparer/org/apache/pdfbox/preflight/font/descriptor/TrueTypeDescriptorHelper.java
b8561a1777aa9a5f1ba23c6aeb2e6c3dbdbec9c7
[]
no_license
daguti/PDFComparator
2efc16037a6cd3cd4ae6a12be13b8b7d083c51a7
4b84ea93bebc49f2739efac9325a417749e692c3
refs/heads/master
2021-01-10T12:43:08.814267
2016-03-17T16:39:36
2016-03-17T16:39:36
54,134,348
0
0
null
null
null
null
UTF-8
Java
false
false
3,536
java
/* */ package org.apache.pdfbox.preflight.font.descriptor; /* */ /* */ import java.io.ByteArrayInputStream; /* */ import java.io.IOException; /* */ import org.apache.commons.io.IOUtils; /* */ import org.apache.fontbox.ttf.CMAPTable; /* */ import org.apache.fontbox.ttf.TTFParser; /* */ import org.apache.fontbox.ttf.TrueTypeFont; /* */ import org.apache.pdfbox.cos.COSName; /* */ import org.apache.pdfbox.cos.COSStream; /* */ import org.apache.pdfbox.pdmodel.common.PDStream; /* */ import org.apache.pdfbox.pdmodel.font.PDFont; /* */ import org.apache.pdfbox.pdmodel.font.PDFontDescriptorDictionary; /* */ import org.apache.pdfbox.preflight.PreflightContext; /* */ import org.apache.pdfbox.preflight.ValidationResult.ValidationError; /* */ import org.apache.pdfbox.preflight.font.container.TrueTypeContainer; /* */ /* */ public class TrueTypeDescriptorHelper extends FontDescriptorHelper<TrueTypeContainer> /* */ { /* */ public TrueTypeDescriptorHelper(PreflightContext context, PDFont font, TrueTypeContainer fontContainer) /* */ { /* 48 */ super(context, font, fontContainer); /* */ } /* */ /* */ public PDStream extractFontFile(PDFontDescriptorDictionary fontDescriptor) /* */ { /* 53 */ PDStream fontFile = fontDescriptor.getFontFile2(); /* 54 */ COSStream stream = fontFile == null ? null : fontFile.getStream(); /* 55 */ if (stream == null) /* */ { /* 57 */ ((TrueTypeContainer)this.fContainer).push(new ValidationResult.ValidationError("3.1.3", "The FontFile2 is missing for " + fontDescriptor.getFontName())); /* */ /* 59 */ ((TrueTypeContainer)this.fContainer).notEmbedded(); /* 60 */ return null; /* */ } /* */ /* 63 */ if (stream.getInt(COSName.LENGTH1) <= 0) /* */ { /* 65 */ ((TrueTypeContainer)this.fContainer).push(new ValidationResult.ValidationError("3.1.3", "The FontFile entry /Length1 is invalid for " + fontDescriptor.getFontName())); /* */ /* 67 */ return null; /* */ } /* */ /* 70 */ return fontFile; /* */ } /* */ /* */ protected void processFontFile(PDFontDescriptorDictionary fontDescriptor, PDStream fontFile) /* */ { /* 79 */ ByteArrayInputStream bis = null; /* */ try /* */ { /* 83 */ bis = new ByteArrayInputStream(fontFile.getByteArray()); /* 84 */ TrueTypeFont ttf = new TTFParser(true).parseTTF(bis); /* */ /* 86 */ if ((fontDescriptor.isSymbolic()) && (ttf.getCMAP().getCmaps().length != 1)) /* */ { /* 88 */ ((TrueTypeContainer)this.fContainer).push(new ValidationResult.ValidationError("3.1.5", "The Encoding should be missing for the Symbolic TTF")); /* */ } /* */ else /* */ { /* 93 */ ((TrueTypeContainer)this.fContainer).setTrueTypeFont(ttf); /* */ } /* */ /* */ } /* */ catch (IOException e) /* */ { /* 99 */ ((TrueTypeContainer)this.fContainer).push(new ValidationResult.ValidationError("3.2.2", "The FontFile can't be read for " + this.font.getBaseFont())); /* */ } /* */ finally /* */ { /* 104 */ IOUtils.closeQuietly(bis); /* */ } /* */ } /* */ } /* Location: C:\Users\ESa10969\Desktop\PDFComparer\ * Qualified Name: org.apache.pdfbox.preflight.font.descriptor.TrueTypeDescriptorHelper * JD-Core Version: 0.6.2 */
[ "ESa10969@MADWN0030139.euro.net.intra" ]
ESa10969@MADWN0030139.euro.net.intra
1cd93d1ebef76fb932b0c9807d9e866a1ca83ca3
e4c22ea38a84eabd1fcbfb35301eff3f7a034da0
/LicentieBeheer/src/main/java/nl/lakedigital/djfc/commons/domain/Goud.java
d01ad3719ee3d4572b59b3a2a1e02bdbfdbb5ed5
[]
no_license
pheidotting/symplex
36ae4a6ce61d172f622e703af4a47abb25608d87
3cafb5730f4d8c907f9f5b3c8388ab82b854f444
refs/heads/development
2021-07-13T07:44:54.437965
2018-12-11T18:11:34
2018-12-11T18:11:34
109,175,311
0
0
null
2018-12-11T18:47:25
2017-11-01T19:37:16
Java
UTF-8
Java
false
false
308
java
package nl.lakedigital.djfc.commons.domain; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; import javax.persistence.Table; @Entity @Table(name = "LICENTIE") @DiscriminatorValue(value = "G") public class Goud extends Licentie { public Goud() { super(365); } }
[ "patrick@lakedigital.nl" ]
patrick@lakedigital.nl
74e830dca934879251a5e657a3c9568f99ee7626
e03ae6d4dd37b2880b3dcffadd39a13896c7eae9
/distributed-lock-api/src/main/java/com/github/alturkovic/lock/Locked.java
58278e44f8dcafc999128e038c8fcb9f9e1bed65
[ "MIT" ]
permissive
dvdeurse/distributed-lock
5a8e541ad1b04a4597597edc53ed3f39bd84d57e
4f6a61484be41cd59fec942897b8f06f279fe3d8
refs/heads/master
2023-02-03T12:27:25.041174
2020-10-27T08:30:43
2020-10-27T08:30:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,676
java
/* * MIT License * * Copyright (c) 2020 Alen Turkovic * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package com.github.alturkovic.lock; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import java.util.concurrent.TimeUnit; @Target({ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface Locked { /** * Flag to indicate if lock will be manually released. * By default, lock will be released after method execution. */ boolean manuallyReleased() default false; /** * Id of a specific store for lock to use. * For JDBC, this would be a lock table. * For Mongo, this would be a collection name. */ String storeId() default "lock"; /** * Prefix of all generated lock keys. */ String prefix() default ""; /** * SpEL expression with all arguments passed as SpEL variables {@code args} and available execution context. * By default, it will evaluate to the absolute method path (class + method) by evaluating a special 'executionPath' variable. */ String expression() default "#executionPath"; /** * Lock expiration interval. This indicates how long the lock should be considered locked after acquiring and when it should be invalidated. * If {@link #refresh() is positive, lock expiration will periodically be refreshed. This is useful for tasks that can occasionally hang for * longer than their expiration. This enables long-running task to keep the lock for a long time, but release it relatively quickly in case they fail. */ Interval expiration() default @Interval(value = "10", unit = TimeUnit.SECONDS); /** * Lock timeout interval. The maximum time to wait for lock. If lock is not acquired in this interval, lock is considered to be taken and * lock cannot be given to the annotated method. */ Interval timeout() default @Interval(value = "1", unit = TimeUnit.SECONDS); /** * Lock retry interval. How long to wait before trying to acquire the lock again after it was not acquired. */ Interval retry() default @Interval(value = "50"); /** * Lock refresh interval indicated how often should the lock be refreshed during method execution. If it is non-positive, lock will not * be refreshed during the execution and maximum time the lock can be held is defined by the {@link #expiration()} in this case. */ Interval refresh() default @Interval(value = "0"); /** * Lock type, see implementations of {@link Lock}. */ Class<? extends Lock> type() default Lock.class; }
[ "alturkovic@gmail.com" ]
alturkovic@gmail.com
f04cdb1750d28e3a17d9822a777e8fa858e4ead5
f766baf255197dd4c1561ae6858a67ad23dcda68
/app/src/main/java/com/tencent/mm/protocal/c/hx.java
9d42292641004182931391fbde57c3076dd62a9c
[]
no_license
jianghan200/wxsrc6.6.7
d83f3fbbb77235c7f2c8bc945fa3f09d9bac3849
eb6c56587cfca596f8c7095b0854cbbc78254178
refs/heads/master
2020-03-19T23:40:49.532494
2018-06-12T06:00:50
2018-06-12T06:00:50
137,015,278
4
2
null
null
null
null
UTF-8
Java
false
false
3,133
java
package com.tencent.mm.protocal.c; import f.a.a.b; import java.util.LinkedList; public final class hx extends bhd { public String bHt; public int offset; public String riK; protected final int a(int paramInt, Object... paramVarArgs) { if (paramInt == 0) { paramVarArgs = (f.a.a.c.a)paramVarArgs[0]; if (this.riK == null) { throw new b("Not all required fields were included: brand_user_name"); } if (this.shX != null) { paramVarArgs.fV(1, this.shX.boi()); this.shX.a(paramVarArgs); } if (this.riK != null) { paramVarArgs.g(2, this.riK); } if (this.bHt != null) { paramVarArgs.g(3, this.bHt); } paramVarArgs.fT(4, this.offset); return 0; } if (paramInt == 1) { if (this.shX == null) { break label454; } } label454: for (int i = f.a.a.a.fS(1, this.shX.boi()) + 0;; i = 0) { paramInt = i; if (this.riK != null) { paramInt = i + f.a.a.b.b.a.h(2, this.riK); } i = paramInt; if (this.bHt != null) { i = paramInt + f.a.a.b.b.a.h(3, this.bHt); } return i + f.a.a.a.fQ(4, this.offset); if (paramInt == 2) { paramVarArgs = new f.a.a.a.a((byte[])paramVarArgs[0], unknownTagHandler); for (paramInt = bhd.a(paramVarArgs); paramInt > 0; paramInt = bhd.a(paramVarArgs)) { if (!super.a(paramVarArgs, this, paramInt)) { paramVarArgs.cJS(); } } if (this.riK != null) { break; } throw new b("Not all required fields were included: brand_user_name"); } if (paramInt == 3) { Object localObject1 = (f.a.a.a.a)paramVarArgs[0]; hx localhx = (hx)paramVarArgs[1]; paramInt = ((Integer)paramVarArgs[2]).intValue(); switch (paramInt) { default: return -1; case 1: paramVarArgs = ((f.a.a.a.a)localObject1).IC(paramInt); i = paramVarArgs.size(); paramInt = 0; while (paramInt < i) { Object localObject2 = (byte[])paramVarArgs.get(paramInt); localObject1 = new fk(); localObject2 = new f.a.a.a.a((byte[])localObject2, unknownTagHandler); for (boolean bool = true; bool; bool = ((fk)localObject1).a((f.a.a.a.a)localObject2, (com.tencent.mm.bk.a)localObject1, bhd.a((f.a.a.a.a)localObject2))) {} localhx.shX = ((fk)localObject1); paramInt += 1; } case 2: localhx.riK = ((f.a.a.a.a)localObject1).vHC.readString(); return 0; case 3: localhx.bHt = ((f.a.a.a.a)localObject1).vHC.readString(); return 0; } localhx.offset = ((f.a.a.a.a)localObject1).vHC.rY(); return 0; } return -1; } } } /* Location: /Users/Han/Desktop/wxall/微信反编译/反编译 6.6.7/dex2jar-2.0/classes6-dex2jar.jar!/com/tencent/mm/protocal/c/hx.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "526687570@qq.com" ]
526687570@qq.com
596eedabac5943a4f2e65ff29d027913a74739a8
cacd87f8831b02e254d65c5e86d48264c7493d78
/pc/adds/src/com/manji/adds/utils/FolderUtils.java
84bdaaed4f86f523085137be4695ec64f832ea0c
[]
no_license
lichaoqian1992/beautifulDay
1a5a30947db08d170968611068673d2f0b626eb2
44e000ecd47099dc5342ab8a208edea73602760b
refs/heads/master
2021-07-24T22:48:33.067359
2017-11-03T09:06:15
2017-11-03T09:06:15
108,791,908
0
3
null
null
null
null
UTF-8
Java
false
false
2,505
java
package com.manji.adds.utils; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; public class FolderUtils { // 本地 // private static String piclocation = "F:/pic"; // private static String piclocation2 = "F:\\pic"; // 測試 private static String piclocation = "D:/pic"; private static String piclocation2 = "D:\\pic"; public static void main(String args[]) { // searchFiles("123"); } public static void makeFolder(String con_no) { String path = piclocation + "/" + con_no; File file = new File(path); if (!file.exists() && !file.isDirectory()) { System.out.println("//路径:" + path + " 不存在"); new File(path + "/contract").mkdirs(); new File(path + "/pic").mkdirs(); } else { System.out.println("//路径:" + path + " 已存在"); } } public static boolean makeFile(String con_no, String type, String fileName) { String path = piclocation + "/" + con_no + "/" + type + "/" + fileName; File file = new File(path); if (!file.exists()) { try { file.createNewFile(); System.out.println("文件创建成功"); } catch (IOException e) { e.printStackTrace(); System.out.println("文件创建失败"); return false; } } else { System.out.println("文件已存在"); } return false; } public static Map<String, String> searchFiles2() { Map<String, String> map = new HashMap<String, String>(); String path = piclocation2; File file = new File(path); File[] tempList = file.listFiles(); System.out.println("该目录下对象个数:" + tempList.length); for (int i = 0; i < tempList.length; i++) { if (tempList[i].isFile()) { System.out.println("文 件:" + tempList[i]); } if (tempList[i].isDirectory()) { System.out.println("文件夹:" + tempList[i]); } } return map; } public static ArrayList<String> searchFiles(String con_no) { ArrayList<String> list = new ArrayList<String>(); String path = piclocation + "/" + con_no + "/pic"; File file = new File(path); File[] tempList = file.listFiles(); if (null == tempList) { return list; } for (int i = 0; i < tempList.length; i++) { if (tempList[i].isFile()) { System.out.println(tempList[i]); list.add(tempList[i].toString()); // System.out.println(list.get(i)); } } return list; } }
[ "1015598423@qq.com" ]
1015598423@qq.com
42243742a49695492436750630a4ce6a31c6ba34
fa9c7cc793458184aab612536fb30d1df62010e0
/MyCustomViewLib/src/com/xuexiang/view/loadviewhelper/helper/VaryViewHelper.java
14d977dc6a62024ef147abee4d38e73ac7a9cd5c
[]
no_license
xdcs100/UtilXX
1056e62b7b25af023b6a42b0f5b2826f1fd56f4d
62ba9e5a5fef09ec5328bf624ab6c5c2c7522e39
refs/heads/master
2021-07-11T14:28:44.729444
2017-10-10T15:57:07
2017-10-10T15:57:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,485
java
/* Copyright 2015 shizhefei(LuckyJayce) 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.xuexiang.view.loadviewhelper.helper; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; /** * 用于切换布局,用一个新的布局替换掉原先的布局 * * @author LuckyJayce */ public class VaryViewHelper implements IVaryViewHelper { private View view; private ViewGroup parentView; private int viewIndex; private ViewGroup.LayoutParams params; private View currentView; public VaryViewHelper(View view) { super(); this.view = view; } private void init() { params = view.getLayoutParams(); if (view.getParent() != null) { parentView = (ViewGroup) view.getParent(); } else { parentView = (ViewGroup) view.getRootView().findViewById(android.R.id.content); } int count = parentView.getChildCount(); for (int index = 0; index < count; index++) { if (view == parentView.getChildAt(index)) { viewIndex = index; break; } } currentView = view; } @Override public View getCurrentLayout() { return currentView; } @Override public void restoreView() { showLayout(view); } @Override public void showLayout(View view) { if (parentView == null) { init(); } this.currentView = view; // 如果已经是那个view,那就不需要再进行替换操作了 if (parentView.getChildAt(viewIndex) != view) { ViewGroup parent = (ViewGroup) view.getParent(); if (parent != null) { parent.removeView(view); } parentView.removeViewAt(viewIndex); parentView.addView(view, viewIndex, params); } } @Override public void showLayout(int layoutId) { showLayout(inflate(layoutId)); } @Override public View inflate(int layoutId) { return LayoutInflater.from(view.getContext()).inflate(layoutId, null); } @Override public Context getContext() { return view.getContext(); } @Override public View getView() { return view; } }
[ "xuexiangjys@163.com" ]
xuexiangjys@163.com
2cdc130d09f0b8c6f0d234308e6e68732f4b0142
082e26b011e30dc62a62fae95f375e4f87d9e99c
/docs/weixin_7.0.4_source/反编译源码/反混淆后/src/main/java/com/tencent/p177mm/plugin/exdevice/service/C20549v.java
4d3d9a5f0252d4c167fc4b2367a445ca9cbc988d
[]
no_license
xsren/AndroidReverseNotes
9631a5aabc031006e795a112b7ac756a8edd4385
9202c276fe9f04a978e4e08b08e42645d97ca94b
refs/heads/master
2021-04-07T22:50:51.072197
2019-07-16T02:24:43
2019-07-16T02:24:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
755
java
package com.tencent.p177mm.plugin.exdevice.service; import com.tencent.matrix.trace.core.AppMethodBeat; import com.tencent.p177mm.sdk.platformtools.C5004al; import java.util.HashMap; /* renamed from: com.tencent.mm.plugin.exdevice.service.v */ public final class C20549v { private static C20549v lwR = null; public C5004al fPG = new C5004al(); final HashMap<Long, Integer> lwS = new HashMap(); private C20549v() { AppMethodBeat.m2504i(19630); AppMethodBeat.m2505o(19630); } public static C20549v bpz() { AppMethodBeat.m2504i(19631); if (lwR == null) { lwR = new C20549v(); } C20549v c20549v = lwR; AppMethodBeat.m2505o(19631); return c20549v; } }
[ "alwangsisi@163.com" ]
alwangsisi@163.com
3598268471f45a642b5c7960aa294d908badc2f5
e0ba7ddeb226fe452e5114ce2b8b94ddb4b97b3e
/app/src/main/java/com/zhuye/ershoufang/bean/QiTeBean.java
1a9741cec364c0a4abeed76c26744a723718ddaa
[]
no_license
jingzhixb/trunk
5337a676f9eb91888171bd06f7a657e72cb05636
e9201b355323c86db5b3a22a8e869b1243b00763
refs/heads/master
2020-03-28T01:34:08.005377
2018-09-05T12:34:05
2018-09-05T12:34:05
147,514,146
0
1
null
null
null
null
UTF-8
Java
false
false
3,723
java
package com.zhuye.ershoufang.bean; /** * Created by Administrator on 2018/5/7 0007. */ public class QiTeBean { /** * life_id : 委托房源id * area_id : 区域id * business_id : 街道id * xiaoqu : 小区 * addr : 详细地址 * photo : 图片 * num1 : 面积 * num2 : 售价 * select3 : 房屋类型 * uid : 接单经纪人 * area_name : 区 * business_name : 街道 * agent : 经纪人名称 * agent_mobile : 经纪人电话 */ private String title; public String getHuxing() { return huxing; } public void setHuxing(String huxing) { this.huxing = huxing; } private String huxing; public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } private String life_id; private String area_id; private String business_id; private String xiaoqu; private String addr; private String photo; private String num1; private String num2; private String select3; private String select2; private String create_time; public String getCreate_time() { return create_time; } public void setCreate_time(String create_time) { this.create_time = create_time; } public String getSelect1() { return select1; } public void setSelect1(String select1) { this.select1 = select1; } private String select1; private String uid; private String area_name; private String business_name; private String agent; private String agent_mobile; public String getLife_id() { return life_id; } public void setLife_id(String life_id) { this.life_id = life_id; } public String getArea_id() { return area_id; } public void setArea_id(String area_id) { this.area_id = area_id; } public String getBusiness_id() { return business_id; } public void setBusiness_id(String business_id) { this.business_id = business_id; } public String getXiaoqu() { return xiaoqu; } public void setXiaoqu(String xiaoqu) { this.xiaoqu = xiaoqu; } public String getAddr() { return addr; } public void setAddr(String addr) { this.addr = addr; } public String getPhoto() { return photo; } public void setPhoto(String photo) { this.photo = photo; } public String getNum1() { return num1; } public void setNum1(String num1) { this.num1 = num1; } public String getNum2() { return num2; } public void setNum2(String num2) { this.num2 = num2; } public String getSelect3() { return select3; } public void setSelect3(String select3) { this.select3 = select3; } public String getUid() { return uid; } public void setUid(String uid) { this.uid = uid; } public String getArea_name() { return area_name; } public void setArea_name(String area_name) { this.area_name = area_name; } public String getBusiness_name() { return business_name; } public void setBusiness_name(String business_name) { this.business_name = business_name; } public String getAgent() { return agent; } public void setAgent(String agent) { this.agent = agent; } public String getAgent_mobile() { return agent_mobile; } public void setAgent_mobile(String agent_mobile) { this.agent_mobile = agent_mobile; } }
[ "1390056147qq.com" ]
1390056147qq.com
c4be7448ffb96c3aa590bd507072d466103881bc
e1e5bd6b116e71a60040ec1e1642289217d527b0
/H5/L2jReunion/L2jReunion_2014_07_14/L2J_ReunionProject_Core/java/l2r/gameserver/network/serverpackets/ExChangeNpcState.java
14ab5b2950f48559e605362bff5d4c3d4b2d98a5
[]
no_license
serk123/L2jOpenSource
6d6e1988a421763a9467bba0e4ac1fe3796b34b3
603e784e5f58f7fd07b01f6282218e8492f7090b
refs/heads/master
2023-03-18T01:51:23.867273
2020-04-23T10:44:41
2020-04-23T10:44:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,165
java
/* * Copyright (C) 2004-2014 L2J Server * * This file is part of L2J Server. * * L2J Server is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * L2J Server is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package l2r.gameserver.network.serverpackets; /** * @author JIV */ public class ExChangeNpcState extends L2GameServerPacket { private final int _objId; private final int _state; public ExChangeNpcState(int objId, int state) { _objId = objId; _state = state; } @Override protected void writeImpl() { writeC(0xFE); writeH(0xBE); writeD(_objId); writeD(_state); } }
[ "64197706+L2jOpenSource@users.noreply.github.com" ]
64197706+L2jOpenSource@users.noreply.github.com
0ae3d77f6367d1fd9103f98764165aa761442527
e3e0dd82a8d8972fe528fa9717703fb96d2c41e6
/src/main/java/whatisnewin/java/lang/instrument/WhatIsNewInClassFileTransformer.java
cdb3bcbcc82e5c0a8086ca519d6f255971fbfb30
[]
no_license
weissreto/what-is-new-in-java-9-10-11
0ec10b40ad37de4b47abbb75004116e711800962
8d5afe909e2e05c9d90b6dc821502cd2ba2fd9d4
refs/heads/master
2020-09-09T01:34:00.617660
2020-03-29T12:38:36
2020-03-29T12:38:36
221,302,384
2
0
null
null
null
null
UTF-8
Java
false
false
1,326
java
package whatisnewin.java.lang.instrument; import java.lang.instrument.ClassFileTransformer; import java.security.ProtectionDomain; import java.lang.instrument.IllegalClassFormatException; /** * This source file was generated by WhatIsNewInJava.<br> * * This class provides an example call to each method in class {@link ClassFileTransformer} * that were newly introduced in Java versions 9, 10, 11.<br> * * {@link ClassFileTransformer} is an old class but has new fields, constructors or methods. * @since 1.5 * @see ClassFileTransformer */ public final class WhatIsNewInClassFileTransformer { /** * Example call to new method {@link ClassFileTransformer#transform(Module, ClassLoader, String, Class, ProtectionDomain, byte[])}. * @since 9 * @see ClassFileTransformer#transform(Module, ClassLoader, String, Class, ProtectionDomain, byte[]) */ public byte[] transform(Module module, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException { ClassFileTransformer testee = $$$(); byte[] result = testee.transform(module, loader, className, classBeingRedefined, protectionDomain, classfileBuffer); return result; } private ClassFileTransformer $$$() { return null; } }
[ "reto.weiss@ivyteam.ch" ]
reto.weiss@ivyteam.ch
1a39df9b995efb9fc0660cce27683575c794d6ca
220dd3d627d6a68fe9592c404717b4d68fe6bab3
/src/bi/view/cells/renderers/CMElementNameCellRenderer.java
05ba548064e1c279a2afa8226bb5f563e881ddce
[]
no_license
sergioemv/bin.dev.java.casemaker
b67fe8d2687bfc9c40a22e4788dba259f4509a5a
85fefdad3e51f2c620f7276c3f03a25b6d0ab70b
refs/heads/master
2023-03-28T13:28:04.979315
2021-04-04T03:53:28
2021-04-04T03:53:28
354,339,690
0
0
null
null
null
null
UTF-8
Java
false
false
1,142
java
package bi.view.cells.renderers; import java.awt.Color; import java.awt.Component; import java.awt.Font; import model.Element; import bi.view.cells.CMCellElementName; import bi.view.mainframeviews.CMApplication; import com.eliad.model.GridContext; public class CMElementNameCellRenderer extends CMBaseGridCellRenderer { public CMElementNameCellRenderer() { super(); } public Component getComponent(Object value, boolean isSelected, boolean hasFocus, boolean isEditable, int row, int column, GridContext context) { Element el=((CMCellElementName)value).getElement(); Component c = super.getComponent(el.getName(), isSelected, hasFocus, isEditable, row, column, context); if(!CMApplication.frame.getTreeWorkspaceView().getM_WorkspaceManager().isUsedElement(el.getLnkStructure(),el)) { c.setForeground(new Color(204,0,0)); c.setFont(new Font("Dialog",Font.PLAIN,12)); } else { c.setForeground(new Color(0,0,0)); c.setFont(new Font("Dialog",Font.PLAIN,12)); } return c; } }
[ "sergioemv@gmail.com" ]
sergioemv@gmail.com
59dcf951dc469018cbc63e7856c615f527f63132
7cab6fe085f321c794ac7bb35a55a94cd0b7bb82
/app/src/main/java/com/jl/jlapp/adapter/AfterSaleDetailGoodsListAdapter.java
4e733e95bb54edf1e28b4c5df79d41a35c6ba5ef
[]
no_license
beyondzzz/erp_android
ef3fa2a3e1f3ad55e5e27fcbd471cf7d4bf90eb0
df77ceb4f39d868252560ecc6e5c6c48a378b071
refs/heads/master
2020-04-26T23:01:35.572421
2019-03-06T07:23:36
2019-03-06T07:23:36
173,890,126
0
0
null
null
null
null
UTF-8
Java
false
false
2,284
java
package com.jl.jlapp.adapter; import android.support.annotation.LayoutRes; import android.support.annotation.Nullable; import android.widget.ImageView; import com.bumptech.glide.Glide; import com.bumptech.glide.request.RequestOptions; import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseViewHolder; import com.jl.jlapp.R; import com.jl.jlapp.eneity.CustomerServiceByUserIdAndOrderIdModel; import com.jl.jlapp.eneity.Order; import com.jl.jlapp.nets.AppFinal; import java.util.List; /** * Created by 柳亚婷 on 2018/1/14 0014. */ public class AfterSaleDetailGoodsListAdapter extends BaseQuickAdapter<CustomerServiceByUserIdAndOrderIdModel.ResultDataBean.OrderTableBean.OrderDetailsBean,BaseViewHolder> { public AfterSaleDetailGoodsListAdapter(@LayoutRes int layoutResId, @Nullable List<CustomerServiceByUserIdAndOrderIdModel.ResultDataBean.OrderTableBean.OrderDetailsBean> data) { super(layoutResId, data); } @Override protected void convert(BaseViewHolder helper, CustomerServiceByUserIdAndOrderIdModel.ResultDataBean.OrderTableBean.OrderDetailsBean item) { String picUrl = item.getGoodsCoverUrl(); ImageView imageView = helper.getView(R.id.goods_img); helper.setText(R.id.goods_name,item.getGoodsName()); helper.setText(R.id.goods_price,item.getGoodsOriginalPrice()+""); helper.setText(R.id.my_order_goods_num,item.getGoodsQuantity()+""); helper.setText(R.id.goods_total_price,(item.getGoodsOriginalPrice()*item.getGoodsQuantity())+""); //如果无图片 if(picUrl==null || picUrl == ""){ Glide .with(helper.itemView.getContext()) .asBitmap().apply(new RequestOptions().placeholder(R.drawable.img_noimg_xs).error(R.drawable.img_lose_xs)) .load(R.drawable.img_noimg_xs) .into(imageView); } //有图片 else{ Glide .with(helper.itemView.getContext()) .asBitmap().apply(new RequestOptions().placeholder(R.drawable.img_noimg_xs).error(R.drawable.img_lose_xs)) .load(AppFinal.BASEURL + picUrl) .into(imageView); } } }
[ "zhangyuanzhen@zhidaoauto.com" ]
zhangyuanzhen@zhidaoauto.com
6dd971d7939ede0c2ceff38e16e06a452af0d637
e3c912687a56e48fc7c6db2e95b644183f40b8f0
/src/test/java/iurii/job/interview/generic/memorymodel/MemoryModel.java
46099acbea2f1c03eb33418b169769ed70af84e2
[ "MIT" ]
permissive
dataronio/algorithms-1
00e11b0483eef96ab1b39bd39e00ab412d8e1e2c
ab3e08bd16203b077f4a600e31794d6d73303d68
refs/heads/master
2022-02-06T19:43:57.936282
2021-09-18T22:47:01
2021-09-18T22:47:01
158,045,329
0
0
MIT
2020-03-09T22:06:21
2018-11-18T03:07:59
Java
UTF-8
Java
false
false
2,092
java
package iurii.job.interview.generic.memorymodel; /** * In general JMM consists of the Heap and PermGen (removed in java 8 - only heap, but metaspace is introduced in heap). * * Heap is managed by JVM, PermGen is constant-size and not managed by JVM. * * Call stack, java classes, String pool are stored in PermGen space. * Thread pool were able * * Heap consists of two parts: Young generation and Old generation. * Long live objects are in the Old generation. * Young generations consists of two parts: Eden and Survivor space. * Newly created objects are in Eden, after surviving minorGC (only on Young generation) they move together to Survivor space. * After surviving many minorGC they are moved to Old generation. * * Major GC scans all living objects: Young and Old Generation space and can take a lot of time * * GC process * 1) Mark objects for deletion * 2) normal delete * 3) delete with compacting space (with moving to Survivor space) for better performance to create new objects * * Types of GC: * 1) Serial GC - simplest GC. with one thread does mark-sweep-compact. Have both minorGC and majorGC. * 2) Parallel GC - uses N threads for the young generation and one for old. Also called throughput GC because of spawning multiple threads. * 3) Parallel Old GC - uses N threads as well for the Old generation (not only for Young generation) * 4) CMS GC (concurrent mark sweep) - also referred as parallel low pause collector as for young generation it is same as parallel, but on Old generation it tries to progress with the application threads. So no long pauses should occur. * 5) G1GC - garbage first collector - is available from java 7, in java 8 as a standard and should replace CMS. * Parallel, concurrent and incrementally compacting low pause. Does not have separation between young and old generation. * Slits heap into equal region for each of its threads and first collects region with least live data * * More info * https://www.journaldev.com/2856/java-jvm-memory-model-memory-management-in-java */ public interface MemoryModel { }
[ "ydzyuban@gmail.com" ]
ydzyuban@gmail.com
87aaf0600eff1d5b77c3054ecaaf9a24e3b29036
e46e89eef878908b3de0e160865925cda4d896f9
/src/main/java/org/lastaflute/web/exception/UrlPatternBeginBraceNotFoundException.java
d4506ff4f75c6e4524e9447e5950bbad37df10a8
[ "Apache-2.0" ]
permissive
t-kameyama/lastaflute
f0bebeca8b0f243d101987070a582820970fac79
cd62cb004d44d8257b1df0b6b5edf951cde4dc7b
refs/heads/master
2020-04-03T11:14:03.820968
2018-10-11T05:34:30
2018-10-11T05:34:30
155,215,393
0
0
null
2018-10-29T13:20:19
2018-10-29T13:20:18
null
UTF-8
Java
false
false
966
java
/* * Copyright 2015-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.lastaflute.web.exception; import org.lastaflute.core.exception.LaSystemException; /** * @author jflute */ public class UrlPatternBeginBraceNotFoundException extends LaSystemException { private static final long serialVersionUID = 1L; public UrlPatternBeginBraceNotFoundException(String msg) { super(msg); } }
[ "dbflute@gmail.com" ]
dbflute@gmail.com
00b83cae3966e2ccff1cff3f23a586fe4965fd79
c37cc036ea35489c574f0815e3735815a5daeca8
/WEB-INF/src/net/joycool/wap/spec/farm/bean/FarmFeedBean.java
d94ab9331cf982a251d749b2d9ff69da8ad22af2
[]
no_license
liuyang0923/joycool
ac032b616d65ecc54fae8c08ae8e6f3e9ce139d3
e7fcd943d536efe34f2c77b91dddf20844e7cab9
refs/heads/master
2020-06-12T17:14:31.104162
2016-12-09T07:15:40
2016-12-09T07:15:40
75,793,605
0
0
null
null
null
null
UTF-8
Java
false
false
3,088
java
package net.joycool.wap.spec.farm.bean; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import net.joycool.wap.spec.farm.FarmWorld; import net.joycool.wap.util.RandomUtil; import net.joycool.wap.util.SimpleGameLog; import net.joycool.wap.util.StringUtil; /** * @author zhouj * @explain: 畜牧业 * @datetime:1007-10-24 */ public class FarmFeedBean { int id; int userId; int cropId; // 0 表示没有种植 long startTime; // 开始种植的时间 long lastActTime; // 上一次灌溉的时间 int actCount = 0; // 总的灌溉次数(成功的并且在种植时间内的) FarmCropBean crop = null; // null表示没有种植 static FarmWorld world = FarmWorld.one; // 生产了多少个 public int getProductCount() { return actCount / crop.getProductCount(); } // 收割剩余时间 public int harvestTimeLeft(long now) { return (int)((startTime - now) / 1000 + crop.getGrowTime()); } // 灌溉剩余时间 public int actTimeLeft(long now) { return (int)((lastActTime - now) / 1000 + crop.getActInterval()); } // 可以灌溉 public boolean canAct(long now) { return lastActTime + crop.getActInterval() * 1000 <= now; } // 可以收割 public boolean canHarvest(long now) { return startTime + crop.getGrowTime() * 1000 <= now; } // 灌溉,灌溉前需要自行检查是否可以灌溉 public void act(long now) { actCount++; lastActTime = now; } public void actFail(long now) { lastActTime = now; } /** * @return Returns the cropId. */ public int getCropId() { return cropId; } /** * @param cropId The cropId to set. */ public void setCropId(int cropId) { this.cropId = cropId; if(cropId == 0) crop = null; else crop = world.getCrop(cropId); } /** * @return Returns the id. */ public int getId() { return id; } /** * @param id The id to set. */ public void setId(int id) { this.id = id; } /** * @return Returns the startTime. */ public long getStartTime() { return startTime; } /** * @param startTime The startTime to set. */ public void setStartTime(long startTime) { this.startTime = startTime; } /** * @return Returns the userId. */ public int getUserId() { return userId; } /** * @param userId The userId to set. */ public void setUserId(int userId) { this.userId = userId; } /** * @return Returns the actCount. */ public int getActCount() { return actCount; } /** * @param actCount The actCount to set. */ public void setActCount(int actCount) { this.actCount = actCount; } /** * @return Returns the lastActTime. */ public long getLastActTime() { return lastActTime; } /** * @param lastActTime The lastActTime to set. */ public void setLastActTime(long lastActTime) { this.lastActTime = lastActTime; } /** * @return Returns the crop. */ public FarmCropBean getCrop() { return crop; } /** * @param crop The crop to set. */ public void setCrop(FarmCropBean crop) { this.crop = crop; } }
[ "liu_yang_0923@163.com" ]
liu_yang_0923@163.com
a19147c065dbbaa73245eb60d0eaaa0b49413e38
0af8b92686a58eb0b64e319b22411432aca7a8f3
/single-large-project/src/main/java/org/gradle/test/performancenull_408/Productionnull_40775.java
c49667133bd157131a33748532b34afb97e3ea98
[]
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
588
java
package org.gradle.test.performancenull_408; public class Productionnull_40775 { private final String property; public Productionnull_40775(String param) { this.property = param; } public String getProperty() { return property; } private String prop0; public String getProp0() { return prop0; } public void setProp0(String value) { prop0 = value; } private String prop1; public String getProp1() { return prop1; } public void setProp1(String value) { prop1 = value; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
b9e3cc7b09dd3533a02ab6d82922ac90cf90d187
8692972314994b8923b6f12b7ae9e76b30a36391
/memory_managment/ClassesList/src/Class731.java
67670dbcb071c0a40e769f59d122c3c3d2eef687
[]
no_license
Petrash-Samoilenka/2017W-D2D3-ST-Petrash-Samoilenka
d2cd65c1d10bec3c4d1b69b124d4f0aeef1d7308
214fbb3682ef6714514af86cc9eaca62f02993e1
refs/heads/master
2020-05-27T15:04:52.163194
2017-06-16T14:19:38
2017-06-16T14:19:38
82,560,968
1
0
null
null
null
null
UTF-8
Java
false
false
3,746
java
public class Class731 extends Class1 { private String _s1; private String _s2; private String _s3; private String _s4; private String _s5; private String _s6; private String _s7; private String _s8; public Class731() { } public void getValue1(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue2(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue3(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue4(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue5(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue6(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue7(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue8(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue9(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue10(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue11(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue12(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue13(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue14(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue15(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue16(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue17(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue18(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue19(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } public void getValue20(String s1, String s2, String s3, String s4, String s5, String s6, String s7, String s8) { _s1 = s1; _s2 = s2; _s3 = s3; _s4 = s4; } }
[ "rn.samoylenko@gmail.com" ]
rn.samoylenko@gmail.com
f034a0640920fddc3cd5f03e735ba729db1f1b2d
fd5f4048c6444ac9c5bc4325682e6d39c7fdbd00
/shop_online/build/generated/src/org/apache/jsp/ShowReport_jsp.java
7ca45a0869e9258e0c9e503deb63d53c5765f8ce
[]
no_license
Shahidul1786/Spring
c9ea165df307144bcee9587b18c999d40705e3c8
c9850aa3bcab22a65a8300076684565c3d7140db
refs/heads/master
2020-04-27T16:12:13.556764
2019-04-24T17:31:14
2019-04-24T17:31:14
174,476,162
0
0
null
null
null
null
UTF-8
Java
false
false
3,158
java
package org.apache.jsp; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; public final class ShowReport_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); private static java.util.List<String> _jspx_dependants; private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector; public java.util.List<String> getDependants() { return _jspx_dependants; } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { response.setContentType("text/html;charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("<!DOCTYPE html>\n"); out.write("<html>\n"); out.write(" <head>\n"); out.write(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n"); out.write(" <title>JSP Page</title>\n"); out.write(" </head>\n"); out.write(" <body>\n"); out.write("\n"); out.write("\n"); out.write(" <form action=\"report.jsp\" method=\"post\">\n"); out.write("\n"); out.write(" <h2>search by category id</h2> <input type=\"text\" name=\"m1\"/><br>\n"); out.write("\n"); out.write("\n"); out.write(" <input type=\"submit\" value=\"Show\"/>\n"); out.write(" </form>\n"); out.write(" <form action=\"report2.jsp\" method=\"post\">\n"); out.write("\n"); out.write(" <h2>search by zone name</h2> <input type=\"text\" name=\"m2\"/><br>\n"); out.write("\n"); out.write("\n"); out.write(" <input type=\"submit\" value=\"Show\"/>\n"); out.write(" </form>\n"); out.write("\n"); out.write(" </body>\n"); out.write("</html>\n"); } catch (Throwable t) { if (!(t instanceof SkipPageException)){ out = _jspx_out; if (out != null && out.getBufferSize() != 0) out.clearBuffer(); if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } } }
[ "stshahidislam1786@gmail.com" ]
stshahidislam1786@gmail.com
1894ade9d4a3a4b6a69090bcda9a53ec0efe0f02
3be7051c12f20eef9e11ff5314e88cf7813a85a1
/com.koala.system-facade/src/main/java/org/openkoala/organisation/facade/dto/OrganizationDTO.java
383d4b29999f9f0bfbac65560a775b85d25f379a
[]
no_license
xuliugen/security-system
abe81d13af6615c1a7e8a52f4554fd8989e58c55
cfc7092dbcb28293ff7b932428b5d3cff30bca49
refs/heads/master
2021-01-10T01:18:25.441755
2015-10-19T15:21:42
2015-10-19T15:21:42
44,530,641
1
0
null
null
null
null
UTF-8
Java
false
false
3,993
java
package org.openkoala.organisation.facade.dto; import java.io.Serializable; import java.util.Date; import java.util.HashSet; import java.util.Set; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; /** * 组织机构DTO */ public class OrganizationDTO implements Serializable { private static final long serialVersionUID = -6538960709126681092L; public static final String COMPANY = "Company"; public static final String DEPARTMENT = "Department"; private Long id; private String name; private String description; private Date createDate; private Date terminateDate; private Set<OrganizationDTO> children = new HashSet<OrganizationDTO>(); private String organizationType; private String sn; private String principalName; private int version; private Long pid; public OrganizationDTO() { } public OrganizationDTO(Long id, String name) { this.id = id; this.name = name; } public OrganizationDTO(String name, String sn, String description) { this.name = name; this.sn = sn; this.description = description; } public OrganizationDTO(Long id, Long pid, String name, String sn, Date createDate, Date terminateDate, String description, String organizationType, int version) { this.setId(id); this.setPid(pid); this.setName(name); this.setSn(sn); this.setCreateDate(createDate); this.setTerminateDate(terminateDate); this.setDescription(description); this.setOrganizationType(organizationType); this.setVersion(version); } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Date getCreateDate() { return createDate; } public void setCreateDate(Date createDate) { this.createDate = createDate; } public Date getTerminateDate() { return terminateDate; } public void setTerminateDate(Date terminateDate) { this.terminateDate = terminateDate; } public Set<OrganizationDTO> getChildren() { return children; } public void setChildren(Set<OrganizationDTO> children) { this.children = children; } public String getOrganizationType() { return organizationType; } public void setOrganizationType(String organizationType) { this.organizationType = organizationType; } public String getSn() { return sn; } public void setSn(String sn) { this.sn = sn; } public String getPrincipalName() { return principalName; } public void setPrincipalName(String principalName) { this.principalName = principalName; } public int getVersion() { return version; } public void setVersion(int version) { this.version = version; } @Override public boolean equals(Object other) { if (!(other instanceof OrganizationDTO)) { return false; } OrganizationDTO that = (OrganizationDTO) other; return new EqualsBuilder().append(this.getId(), that.getId()).append(this.getSn(), that.getSn()).isEquals(); } @Override public int hashCode() { return new HashCodeBuilder().append(getSn()).toHashCode(); } @Override public String toString() { return "OrganizationDTO [id=" + id + ", name=" + name + ", children=" + children + "]"; } public Long getPid() { return pid; } public void setPid(Long pid) { this.pid = pid; } }
[ "1573876303@qq.com" ]
1573876303@qq.com
7d1f889a6c8f9a803f0a4bdb5e1dea84df57ef17
8ec2cbabd6125ceeb00e0c6192c3ce84477bdde6
/com.nokia.as.gpto.itest/src/com/nokia/as/gpto/itest/TestScenario.java
ec14678b8dce6311716bb401ae54bb143c555c78
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
nokia/osgi-microfeatures
2cc2b007454ec82212237e012290425114eb55e6
50120f20cf929a966364550ca5829ef348d82670
refs/heads/main
2023-08-28T12:13:52.381483
2021-11-12T20:51:05
2021-11-12T20:51:05
378,852,173
1
1
null
null
null
null
UTF-8
Java
false
false
1,662
java
// Copyright 2000-2021 Nokia // // Licensed under the Apache License 2.0 // SPDX-License-Identifier: Apache-2.0 // package com.nokia.as.gpto.itest; import java.util.concurrent.CompletableFuture; import java.util.concurrent.atomic.AtomicInteger; import com.nokia.as.gpto.agent.api.ExecutionContext; import com.nokia.as.gpto.agent.api.Scenario; import com.nokia.as.gpto.agent.api.SessionContext; public class TestScenario implements Scenario { private AtomicInteger counter; public static class Factory implements Scenario.Factory { private AtomicInteger counter; public Factory(AtomicInteger testCounter) { this.counter = testCounter; } @Override public Scenario instanciate(ExecutionContext ectx) { return new TestScenario(ectx, counter); } @Override public String help() { // TODO Auto-generated method stub return null; } } public TestScenario(ExecutionContext ectx, AtomicInteger testCounter) { this.counter = testCounter; } @Override public CompletableFuture<Boolean> init() { return CompletableFuture.completedFuture(true); } @Override public CompletableFuture<Boolean> beginSession(SessionContext sctx) { return CompletableFuture.completedFuture(true); } @Override public CompletableFuture<Boolean> run(SessionContext sctx) { counter.incrementAndGet(); return CompletableFuture.completedFuture(true); } @Override public CompletableFuture<Void> endSession(SessionContext sctx) { System.out.println("endSession"); return CompletableFuture.completedFuture(null); } @Override public CompletableFuture<Void> dispose() { return CompletableFuture.completedFuture(null); } }
[ "pierre.de_rop@nokia.com" ]
pierre.de_rop@nokia.com
3fd560b1cb81056127242b21e7624828d22aa38f
39b7e86a2b5a61a1f7befb47653f63f72e9e4092
/src/main/java/com/alipay/api/response/AlipaySocialBaseChatGnoticeModifyResponse.java
9245e1d23b4a0fcb60bd2a3095d4a43571a4a608
[ "Apache-2.0" ]
permissive
slin1972/alipay-sdk-java-all
dbec0604c2d0b76d8a1ebf3fd8b64d4dd5d21708
63095792e900bbcc0e974fc242d69231ec73689a
refs/heads/master
2020-08-12T14:18:07.203276
2019-10-13T09:00:11
2019-10-13T09:00:11
214,782,009
0
0
Apache-2.0
2019-10-13T07:56:34
2019-10-13T07:56:34
null
UTF-8
Java
false
false
685
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.social.base.chat.gnotice.modify response. * * @author auto create * @since 1.0, 2019-01-07 20:51:15 */ public class AlipaySocialBaseChatGnoticeModifyResponse extends AlipayResponse { private static final long serialVersionUID = 2186866663563183554L; /** * 修改结果 */ @ApiField("result_modify") private String resultModify; public void setResultModify(String resultModify) { this.resultModify = resultModify; } public String getResultModify( ) { return this.resultModify; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
1fcb2bba8790f21a0bfc5a651023f5c51cf8395a
91d5cb9b8a38de63813e1d3d931771244be08b67
/javacode/sysframework/com/yinhai/sysframework/config/IConfigSyspath.java
03bd1a6275983d15ba181c362b9abc0b4ad337c3
[]
no_license
wc227/ta3-v4.0
68b3e335cef4352fa31c0238fd0cac9822626440
b8fcbedd8e3a62f417531dd5e75eac45f36d7001
refs/heads/master
2020-06-09T10:14:52.241470
2019-03-03T05:38:37
2019-03-03T05:38:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
350
java
package com.yinhai.sysframework.config; import java.io.Serializable; public interface IConfigSyspath extends Serializable { public static final String ISCURSYSTEM_YES = "0"; public static final String ISCURSYSTEM_NO = "1"; public abstract String getId(); public abstract String getUrl(); public abstract String getName(); }
[ "wuxh930911@163.com" ]
wuxh930911@163.com
8d360402dd00dfb02c4a34f46447b6d5c2b30d03
3a149d024f8226808e84306483b61091ed3eda00
/eclipse/src/org/mozilla/javascript/ConsString.java
2fb2b4d51625d1b58821d068c4071f99415b91be
[ "Apache-2.0" ]
permissive
fordream/RipplePower
237c2a7dabf710c9a98c03c75e6cdd3de1907c33
0a47fc8a160907b9fa0a4dc4f9e78dc6142b04ca
refs/heads/master
2020-12-14T09:43:56.267911
2015-09-14T13:27:40
2015-09-14T13:27:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,728
java
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package org.mozilla.javascript; import java.io.Serializable; /** * <p> * This class represents a string composed of two components, each of which may * be a <code>java.lang.String</code> or another ConsString. * </p> * * <p> * This string representation is optimized for concatenation using the "+" * operator. Instead of immediately copying both components to a new character * array, ConsString keeps references to the original components and only * converts them to a String if either toString() is called or a certain depth * level is reached. * </p> * * <p> * Note that instances of this class are only immutable if both parts are * immutable, i.e. either Strings or ConsStrings that are ultimately composed of * Strings. * </p> * * <p> * Both the name and the concept are borrowed from V8. * </p> */ public class ConsString implements CharSequence, Serializable { private static final long serialVersionUID = -8432806714471372570L; private CharSequence s1, s2; private final int length; private int depth; public ConsString(CharSequence str1, CharSequence str2) { s1 = str1; s2 = str2; length = str1.length() + str2.length(); depth = 1; if (str1 instanceof ConsString) { depth += ((ConsString) str1).depth; } if (str2 instanceof ConsString) { depth += ((ConsString) str2).depth; } // Don't let it grow too deep, can cause stack overflows if (depth > 2000) { flatten(); } } // Replace with string representation when serializing private Object writeReplace() { return this.toString(); } public String toString() { return depth == 0 ? (String) s1 : flatten(); } private synchronized String flatten() { if (depth > 0) { StringBuilder b = new StringBuilder(length); appendTo(b); s1 = b.toString(); s2 = ""; depth = 0; } return (String) s1; } private synchronized void appendTo(StringBuilder b) { appendFragment(s1, b); appendFragment(s2, b); } private static void appendFragment(CharSequence s, StringBuilder b) { if (s instanceof ConsString) { ((ConsString) s).appendTo(b); } else { b.append(s); } } public int length() { return length; } public char charAt(int index) { String str = depth == 0 ? (String) s1 : flatten(); return str.charAt(index); } public CharSequence subSequence(int start, int end) { String str = depth == 0 ? (String) s1 : flatten(); return str.substring(start, end); } }
[ "longwind2012@hotmail.com" ]
longwind2012@hotmail.com
13a693fcda8dff5f22b8d68451b930f079b93c29
19688c536e3e23d40ed58d7a5ad25dcacf80358e
/src/telas/Voluntariado/ProdutoOrcamentoBean.java
6d8f7cc27b4b0395c747ae861b9d71f8fdaa6f55
[]
no_license
julioizidoro/systm
0a8e9817dda18d9c33cf1c78d8b120cade55b13f
023acf52bdcc2489f9696f4934bbc304ab55f82a
refs/heads/master
2021-01-17T13:11:40.575259
2016-05-17T19:36:36
2016-05-17T19:36:36
22,035,771
0
0
null
null
null
null
UTF-8
Java
false
false
2,579
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package telas.Voluntariado; /** * * @author Wolverine */ public class ProdutoOrcamentoBean { private int idProdutoOrcamento; private String descricaoProdutoOrcamento; private float valorMoedaEstrangeira; private float valorMoedaReal; private boolean seguro; private boolean visto; private boolean apagar; private boolean novo; private int idOrcamentoProdutoOrcamento; private int adicionado =0; private String tipo; public int getIdProdutoOrcamento() { return idProdutoOrcamento; } public void setIdProdutoOrcamento(int idProdutoOrcamento) { this.idProdutoOrcamento = idProdutoOrcamento; } public String getDescricaoProdutoOrcamento() { return descricaoProdutoOrcamento; } public void setDescricaoProdutoOrcamento(String descricaoProdutoOrcamento) { this.descricaoProdutoOrcamento = descricaoProdutoOrcamento; } public float getValorMoedaEstrangeira() { return valorMoedaEstrangeira; } public int getAdicionado() { return adicionado; } public String getTipo() { return tipo; } public void setTipo(String tipo) { this.tipo = tipo; } public void setAdicionado(int adicionado) { this.adicionado = adicionado; } public boolean isNovo() { return novo; } public void setNovo(boolean novo) { this.novo = novo; } public int getIdOrcamentoProdutoOrcamento() { return idOrcamentoProdutoOrcamento; } public void setIdOrcamentoProdutoOrcamento(int idOrcamentoProdutoOrcamento) { this.idOrcamentoProdutoOrcamento = idOrcamentoProdutoOrcamento; } public void setValorMoedaEstrangeira(float valorMoedaEstrangeira) { this.valorMoedaEstrangeira = valorMoedaEstrangeira; } public float getValorMoedaReal() { return valorMoedaReal; } public void setValorMoedaReal(float valorMoedaReal) { this.valorMoedaReal = valorMoedaReal; } public boolean isSeguro() { return seguro; } public void setSeguro(boolean seguro) { this.seguro = seguro; } public boolean isVisto() { return visto; } public void setVisto(boolean visto) { this.visto = visto; } public boolean isApagar() { return apagar; } public void setApagar(boolean apagar) { this.apagar = apagar; } }
[ "jizidoro@globo.com" ]
jizidoro@globo.com
d5f7b1f5693521a3d32593022cfd4ff4b70b339d
af1cd5c68567dbbd70ebfab5e686581be2d4b74e
/solvers/java/src/test/java/com/analog/lyric/dimple/test/model/core/TestNodeId.java
85085e8e1c7f18dd158ce6e7eb7097b6efcf6c9c
[ "BSD-3-Clause", "Minpack", "Apache-2.0" ]
permissive
nagyistoce/dimple
12197a7973e1539eba18510d42cd86e7ba079273
c65db09f3e3cfa7cb1f968f3586dbdb259eb7b7c
refs/heads/master
2021-01-15T09:28:35.381274
2015-04-30T19:20:43
2015-04-30T19:20:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,270
java
/******************************************************************************* * Copyright 2015 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ********************************************************************************/ package com.analog.lyric.dimple.test.model.core; import static com.analog.lyric.dimple.model.core.Ids.*; import static org.junit.Assert.*; import java.util.UUID; import org.junit.Test; import com.analog.lyric.dimple.environment.DimpleEnvironment; import com.analog.lyric.dimple.model.core.Ids.Type; import com.analog.lyric.dimple.test.DimpleTestBase; /** * * @since 0.08 * @author Christopher Barber */ public class TestNodeId extends DimpleTestBase { @Test public void test() { testForIndex(LOCAL_ID_INDEX_MIN); testForIndex(LOCAL_ID_INDEX_MAX); for (int i = 0; i < 100; ++i) { final int index = LOCAL_ID_INDEX_MIN + testRand.nextInt(1 + LOCAL_ID_INDEX_MAX + LOCAL_ID_INDEX_MIN); testForIndex(index); } int bogusTypeLocalId = 0xF0000003; assertEquals("$X3", defaultNameForLocalId(bogusTypeLocalId)); assertEquals(-1, localIdFromDefaultName("")); assertEquals(-1, localIdFromDefaultName("barf")); assertEquals(-1, localIdFromDefaultName("$Vxxx")); assertEquals(-1, localIdFromDefaultName("$W42")); assertEquals(-1, localIdFromDefaultName("$X3")); assertEquals(-1, localIdFromDefaultName("$v42")); assertEquals(-1, localIdFromDefaultName("$$42")); assertEquals(-1, localIdFromDefaultName("$A-42")); assertEquals(-1, localIdFromDefaultName("$V268435456")); // index too large assertEquals(-1, graphIdFromDefaultName("")); assertEquals(-1, graphIdFromDefaultName("$Graph")); assertEquals(-1, graphIdFromDefaultName("$Graph-42")); assertEquals(-1, graphIdFromDefaultName("$Graph1073741824")); // id too large assertEquals(-1L, envIdFromUUID(UUID.randomUUID())); assertEquals(-1L, envIdFromUUID(new UUID(0,0))); assertEquals(-1L, globalIdFromUUID(UUID.randomUUID())); assertEquals(-1L, globalIdFromUUID(new UUID(0,0))); assertFalse(isUUIDString(UUID.randomUUID().toString())); assertTrue(isUUIDString("00000000-0000-D000-8000-000000000000")); assertTrue(isUUIDString("00000000-0000-d000-9000-000000000000")); assertTrue(isUUIDString("00000000-0000-D000-A000-000000000000")); assertTrue(isUUIDString("00000000-0000-d000-B000-000000000000")); assertFalse(isUUIDString("00000000-0000-0000-0000-000000000000")); assertFalse(isUUIDString("00000000-0000-0000-D000-000000000000")); assertFalse(isUUIDString("00000000=0000-D000-8000-000000000000")); assertFalse(isUUIDString("00000000-0000=D000-8000-000000000000")); assertFalse(isUUIDString("00000000-0000-D000=8000-000000000000")); assertFalse(isUUIDString("00000000-0000-D000-8000=000000000000")); assertFalse(isUUIDString("00000000-0000-D000-C000-000000000000")); assertFalse(isUUIDString("*0000000-0000-D000-8000-000000000000")); assertFalse(isUUIDString("0g000000-0000-D000-8000-000000000000")); assertFalse(isUUIDString("00G00000-0000-D000-8000-000000000000")); assertFalse(isUUIDString("000@0000-0000-D000-8000-000000000000")); } private void testForIndex(int index) { for (int type = TYPE_MIN; type <= TYPE_MAX; ++type) { int localId = localIdFromParts(type, index); assertEquals(index, indexFromLocalId(localId)); assertEquals(type, typeIndexFromLocalId(localId)); assertEquals(Type.valueOf(type), typeFromLocalId(localId)); String name = defaultNameForLocalId(localId); assertFalse(isUUIDString(name)); assertEquals(localId, localIdFromDefaultName(name)); int graphId = GRAPH_ID_MIN + testRand.nextInt(1 + GRAPH_ID_MAX - GRAPH_ID_MIN); long globalId = globalIdFromParts(graphId, localId); long globalId2 = globalIdFromParts(graphId, type, localId); assertEquals(globalId, globalId2); assertTrue(GLOBAL_ID_MIN <= globalId); assertTrue(GLOBAL_ID_MAX >= globalId); assertEquals(graphId, graphIdFromGlobalId(globalId)); assertEquals(localId, localIdFromGlobalId(globalId)); String graphName = defaultNameForGraphId(graphId); assertEquals(graphId, graphIdFromDefaultName(graphName)); int graphTreeIndex = testRand.nextInt(Short.MAX_VALUE); long graphTreeId = graphTreeIdFromParts(graphTreeIndex, localId); assertEquals(graphTreeIndex, graphTreeIndexFromGraphTreeId(graphTreeId)); assertEquals(localId, localIdFromGraphTreeId(graphTreeId)); long envId = DimpleEnvironment.active().getEnvId(); UUID uuid = makeUUID(envId, globalId); assertEquals(globalId, globalIdFromUUID(uuid)); assertEquals(envId, envIdFromUUID(uuid)); assertTrue(isUUIDString(uuid.toString())); assertTrue(isUUIDString(uuid.toString().toLowerCase())); } } }
[ "Christopher.Barber@analog.com" ]
Christopher.Barber@analog.com
61a9566116d9a05bf2cb6630d2f170c804a4dfb0
473fc28d466ddbe9758ca49c7d4fb42e7d82586e
/app/src/main/java/com/syd/source/aosp/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/stub/command/QuitCommandHandler.java
a5ff544ded84233ca86025dfbd3cc57db0ee830d
[ "Apache-2.0" ]
permissive
lz-purple/Source
a7788070623f2965a8caa3264778f48d17372bab
e2745b756317aac3c7a27a4c10bdfe0921a82a1c
refs/heads/master
2020-12-23T17:03:12.412572
2020-01-31T01:54:37
2020-01-31T01:54:37
237,205,127
4
2
null
null
null
null
UTF-8
Java
false
false
1,542
java
/* * Copyright 2007 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.mockftpserver.stub.command; import org.mockftpserver.core.command.Command; import org.mockftpserver.core.command.CommandHandler; import org.mockftpserver.core.command.InvocationRecord; import org.mockftpserver.core.command.ReplyCodes; import org.mockftpserver.core.session.Session; /** * CommandHandler for the QUIT command. Return a reply code of 221. * <p> * Each invocation record stored by this CommandHandler contains no data elements. * * @author Chris Mair * @version $Revision$ - $Date$ */ public class QuitCommandHandler extends AbstractStubCommandHandler implements CommandHandler { /** * Constructor. Initialize the replyCode. */ public QuitCommandHandler() { setReplyCode(ReplyCodes.QUIT_OK); } public void handleCommand(Command command, Session session, InvocationRecord invocationRecord) { sendReply(session); session.close(); } }
[ "997530783@qq.com" ]
997530783@qq.com
d23ab9325bff977ffffb80e771bb37a474e63b15
a94bfc1fbf7cb150028300f7479358dc70804089
/Etomo/src/etomo/comscript/LabelParam.java
6a29fc7dd80d15e8b90f366374c33370d0995cc2
[]
no_license
imod-mirror/IMOD
29f2a0d3f2c2156dc8624c917b9b36b3f23a38ec
499d656bc7784a23c9614380234511e5c758be4f
refs/heads/master
2021-01-02T08:47:39.133329
2015-08-25T06:42:46
2015-08-25T06:42:46
41,421,626
0
0
null
null
null
null
UTF-8
Java
false
false
926
java
package etomo.comscript; import etomo.type.ProcessName; /** * <p>Copyright: Copyright 2015 by the Regents of the University of Colorado</p> * <p/> * <p>Organization: Dept. of MCD Biology, University of Colorado</p> * * @version $Id$ */ public final class LabelParam implements CommandParam { private final String label; LabelParam(final ProcessName processName) { label = processName.toString(); } String getLabel() { return label + ":"; } public void parseComScriptCommand(ComScriptCommand scriptCommand) throws BadComScriptException, FortranInputSyntaxException, InvalidParameterException {} /** * Replace the parameters of the ComScriptCommand with the current * CommandParameter object's parameters * @param scriptCommand */ public void updateComScriptCommand(ComScriptCommand scriptCommand) throws BadComScriptException {} public void initializeDefaults() {} }
[ "mast@localhost" ]
mast@localhost
1f800856d7ec1ef8fdcbbc0d9a47c39fb25573d3
6b226baf5ec4a2ea89ffdb1465533b901488ece2
/oe-mokjang/src/main/java/kr/ch/oe/model/Worship.java
0a9146a70109c93783d4088ca637bbc83ac4e4fa
[]
no_license
sms8884/oe-mokjang
6d93da63aec5f7fc1cfeaed2d6b66d20fd165c8b
6c1b7662c974f51d954296a5eb53699c07ccc1d3
refs/heads/master
2021-01-01T19:33:03.579786
2017-08-31T01:23:34
2017-08-31T01:23:34
32,208,140
0
0
null
null
null
null
UTF-8
Java
false
false
4,035
java
package kr.ch.oe.model; import java.util.Date; public class Worship { /** * This field was generated by MyBatis Generator. This field corresponds to the database column worship.worship_seq * @mbggenerated Sun Jun 14 14:33:40 KST 2015 */ private Integer worshipSeq; /** * This field was generated by MyBatis Generator. This field corresponds to the database column worship.worship_name * @mbggenerated Sun Jun 14 14:33:40 KST 2015 */ private String worshipName; /** * This field was generated by MyBatis Generator. This field corresponds to the database column worship.worship_day * @mbggenerated Sun Jun 14 14:33:40 KST 2015 */ private String worshipDay; /** * This field was generated by MyBatis Generator. This field corresponds to the database column worship.reg_id * @mbggenerated Sun Jun 14 14:33:40 KST 2015 */ private String regId; /** * This field was generated by MyBatis Generator. This field corresponds to the database column worship.reg_time * @mbggenerated Sun Jun 14 14:33:40 KST 2015 */ private Date regTime; /** * This method was generated by MyBatis Generator. This method returns the value of the database column worship.worship_seq * @return the value of worship.worship_seq * @mbggenerated Sun Jun 14 14:33:40 KST 2015 */ public Integer getWorshipSeq() { return worshipSeq; } /** * This method was generated by MyBatis Generator. This method sets the value of the database column worship.worship_seq * @param worshipSeq the value for worship.worship_seq * @mbggenerated Sun Jun 14 14:33:40 KST 2015 */ public void setWorshipSeq(Integer worshipSeq) { this.worshipSeq = worshipSeq; } /** * This method was generated by MyBatis Generator. This method returns the value of the database column worship.worship_name * @return the value of worship.worship_name * @mbggenerated Sun Jun 14 14:33:40 KST 2015 */ public String getWorshipName() { return worshipName; } /** * This method was generated by MyBatis Generator. This method sets the value of the database column worship.worship_name * @param worshipName the value for worship.worship_name * @mbggenerated Sun Jun 14 14:33:40 KST 2015 */ public void setWorshipName(String worshipName) { this.worshipName = worshipName; } /** * This method was generated by MyBatis Generator. This method returns the value of the database column worship.worship_day * @return the value of worship.worship_day * @mbggenerated Sun Jun 14 14:33:40 KST 2015 */ public String getWorshipDay() { return worshipDay; } /** * This method was generated by MyBatis Generator. This method sets the value of the database column worship.worship_day * @param worshipDay the value for worship.worship_day * @mbggenerated Sun Jun 14 14:33:40 KST 2015 */ public void setWorshipDay(String worshipDay) { this.worshipDay = worshipDay; } /** * This method was generated by MyBatis Generator. This method returns the value of the database column worship.reg_id * @return the value of worship.reg_id * @mbggenerated Sun Jun 14 14:33:40 KST 2015 */ public String getRegId() { return regId; } /** * This method was generated by MyBatis Generator. This method sets the value of the database column worship.reg_id * @param regId the value for worship.reg_id * @mbggenerated Sun Jun 14 14:33:40 KST 2015 */ public void setRegId(String regId) { this.regId = regId; } /** * This method was generated by MyBatis Generator. This method returns the value of the database column worship.reg_time * @return the value of worship.reg_time * @mbggenerated Sun Jun 14 14:33:40 KST 2015 */ public Date getRegTime() { return regTime; } /** * This method was generated by MyBatis Generator. This method sets the value of the database column worship.reg_time * @param regTime the value for worship.reg_time * @mbggenerated Sun Jun 14 14:33:40 KST 2015 */ public void setRegTime(Date regTime) { this.regTime = regTime; } }
[ "sms8884@nate.com" ]
sms8884@nate.com
7ad2806cd0d2ed3c2e7e683593d89d5ba2b4a5d6
23d0cb2c89c138c3ba1b50b594ed0354a652806b
/src/main/java/com/ylzs/entity/bigstylecraft/BigStyleAnalysePartCraft.java
5e7fdcafaf81e129705694404fb95af39da3669a
[]
no_license
fenghao-xu/gst-project
b43c1b2997b45e6fbb84e3c4eec4c23513e1f096
7547d2c465dff7626fc19851ffbd2645921441af
refs/heads/master
2023-05-30T21:50:05.327223
2021-07-04T15:29:13
2021-07-04T15:29:13
382,882,581
0
0
null
null
null
null
UTF-8
Java
false
false
1,312
java
package com.ylzs.entity.bigstylecraft; import com.ylzs.core.model.SuperEntity; import com.ylzs.vo.partCraft.PartCraftMasterPictureVo; import lombok.Data; import java.util.List; /** * @author xuwei * @create 2020-03-24 9:25 * 大货款式工艺 的 部件工艺 */ @Data public class BigStyleAnalysePartCraft extends SuperEntity { /** * 款的随机码 */ private Long styleRandomCode; /** * 款的码 */ private String ctStyleCode; /** * 部件工艺编码 */ private String partCraftMainCode; /** * 部件工艺名称 */ private String partCraftMainName; /** * 结构部件 */ private String partCode; /** * 结构部件 */ private String partName; /** * 条格类型 */ private String patternSymmetry; /** * 条格类型 */ private String patternSymmetryName; /** * 部件下面的工序明细 */ private transient List<BigStyleAnalysePartCraftDetail> partCraftDetailList; /** * 部件下面的图片 */ private transient List<PartCraftMasterPictureVo> pictures; /** * 部件工艺描述 */ private String remark; /** * 部件工艺导入顺序 */ private Integer importOrder; }
[ "304705222@qq.com" ]
304705222@qq.com
0c9ad27c48f77d1b3fc340202bd2f8dcfd83fef1
1941f35742677f46120752345279125c9800f43c
/src/main/java/consumer/cas/AbstractMPCASConsumer.java
63996bad3061ebfc22903985daa287e8c4dcdcd2
[]
no_license
wonder2014/Consumer
c86b0ac341950320826623931fe9ceb9fd634fbd
115146369013be2210a53a642e6ce4e879599516
refs/heads/master
2021-06-17T00:13:20.550388
2017-05-09T07:35:10
2017-05-09T07:35:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
690
java
package consumer.cas; import consumer.MultiThreadsConsumer; import consumer.queue.SQueue; import consumer.queue.cas.MpmcBasedQueue; import consumer.queue.cas.MpscBasedQueue; /** * {@link MultiThreadsConsumer}实现,暂且只提供给予CAS的多线程消费者实现. * * @author skywalker */ public abstract class AbstractMPCASConsumer<T> extends AbstractSPCASConsumer<T> implements MultiThreadsConsumer<T> { public AbstractMPCASConsumer(int queueSize, int threads) { super(queueSize, threads); } @Override protected final SQueue<T> newQueue() { return (threads > 1 ? new MpmcBasedQueue<T>(queueSize) : new MpscBasedQueue<T>(queueSize)); } }
[ "xsdwem7@hotmail.com" ]
xsdwem7@hotmail.com
f21a842205175b42cce5c33fb89e98c5471a52b0
8766428c0d1a8a645a25f882976e42378fc5dfba
/coredata-core-parent/coredata-core-model-manager/src/main/java/org/coredata/core/model/service/RestypeListProvider.java
4acec4b336caf628724fd82320522bdfc1e39cb5
[]
no_license
PengLiu/CoreLib
9e016ded7f0cd423053da2c39b07a64d46563395
dbbcb882faead148288520bfb91e14eb1e1cd6f9
refs/heads/master
2020-03-20T03:25:44.588594
2018-06-13T01:20:54
2018-06-13T01:20:54
137,145,867
1
0
null
null
null
null
UTF-8
Java
false
false
2,071
java
package org.coredata.core.model.service; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.coredata.core.model.common.Restype; import org.coredata.core.model.entities.RestypeEntity; import org.coredata.core.model.repositories.RestypeRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import org.springframework.util.CollectionUtils; import com.deta.framework.common.tree.IContentProvider; @Component public class RestypeListProvider implements IContentProvider { @Autowired private RestypeRepository restypeRepository; public static final Map<String, RestypeEntity> cached = new HashMap<>(); private String customerId; public void setCustomerId(String customerId) { this.customerId = customerId; } @Override public List<? extends Object> getChildren(Object curElement, final int level, final int index) { List<Restype> results = new ArrayList<>(); Restype restype = (Restype) curElement; List<RestypeEntity> entitys = restypeRepository .findByParentid(restype.getId(), customerId); List<Restype> childs = new ArrayList<>(); if (!CollectionUtils.isEmpty(entitys)) entitys.forEach(entity -> { childs.add(entity.getRestype()); cached.put(entity.getRestype().getId(), entity); }); if (!CollectionUtils.isEmpty(childs)) {// 如果子不为空,循环判定 for (Restype c : childs) { boolean isAsset = c.getIsAsset(); if (isAsset) results.add(c); else { String isroot = c.getIsroot(); if ("true".equals(isroot)) results.add(c); } } } return results; } @Override public List<? extends Object> getRootElement( List<? extends Object> treeData, int level, int index) { List<Restype> root = new ArrayList<>(); for (Object obj : treeData) { Restype restype = (Restype) obj; root.add(restype); } return root; } @Override public boolean hasChild(Object curElement, final int level, final int index) { return false; } }
[ "liupeng@clouddada.com" ]
liupeng@clouddada.com
b3f00ba7d2146bc039c394dcfcc9f5b62519a4ec
7c9f40c50e5cabcb320195e3116384de139002c6
/Plugin_Parser/src/tinyos/yeti/nesc12/parser/ast/nodes/statement/ExpressionStatement.java
c9e943a498c3030c64bfa1ae08c2bd490f3b0d66
[]
no_license
phsommer/yeti
8e89ad89f1a4053e46693244256d03e71fe830a8
dec8c79e75b99c2a2a43aa5425f608128b883e39
refs/heads/master
2021-01-10T05:33:57.285499
2015-05-21T19:41:02
2015-05-21T19:41:02
36,033,399
3
0
null
null
null
null
UTF-8
Java
false
false
3,094
java
/* * Yeti 2, NesC development in Eclipse. * Copyright (C) 2009 ETH Zurich * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Web: http://tos-ide.ethz.ch * Mail: tos-ide@tik.ee.ethz.ch */ package tinyos.yeti.nesc12.parser.ast.nodes.statement; import tinyos.yeti.nesc12.parser.ast.ASTException; import tinyos.yeti.nesc12.parser.ast.ASTVisitor; import tinyos.yeti.nesc12.parser.ast.AnalyzeStack; import tinyos.yeti.nesc12.parser.ast.elements.Type; import tinyos.yeti.nesc12.parser.ast.nodes.ASTNode; import tinyos.yeti.nesc12.parser.ast.nodes.AbstractFixedASTNode; import tinyos.yeti.nesc12.parser.ast.nodes.expression.Expression; import tinyos.yeti.nesc12.parser.ast.util.ControlFlow; public class ExpressionStatement extends AbstractFixedASTNode implements Statement { public static final String EXPRESSION = "expression"; public ExpressionStatement(){ super( "ExpressionStatement", EXPRESSION ); } public ExpressionStatement( ASTNode expression ){ this(); setField( EXPRESSION, expression ); } public ExpressionStatement( Expression expression ){ this(); setExpression( expression ); } public void setExpression( Expression expression ){ setField( 0, expression ); } public Expression getExpression(){ return (Expression)getField( 0 ); } @Override protected void checkField( int index, ASTNode node ) throws ASTException { if( !( node instanceof Expression ) ) throw new ASTException( node, "Must be an Expression" ); } @Override protected boolean visit( ASTVisitor visitor ) { return visitor.visit( this ); } @Override protected void endVisit( ASTVisitor visitor ) { visitor.endVisit( this ); } @Override public void resolve( AnalyzeStack stack ) { // TODO method not implemented super.resolve( stack ); } public void flow( ControlFlow flow ){ flow.follow( this ); } public Type resolveExpressionType(){ if( isResolved( "type" )) return resolved( "type" ); Expression expr = getExpression(); if( expr == null ) return resolved( "type", null ); return resolved( "type", expr.resolveType() ); } public boolean isFunctionEnd(){ return false; } }
[ "besigg@2a69fd7c-12de-fc47-e5bb-db751a41839b" ]
besigg@2a69fd7c-12de-fc47-e5bb-db751a41839b
ea701eea8e4eef45363759e2469d8dfed0a98263
b8a089904db014e597dea94280494b0687f306c8
/LiveFeeds/src/livefeeds/sift0/stats/turmoil/TurmoilTraffic.java
cb75204e26bbfe8eaefd0209856ac3e6a3041a27
[]
no_license
smduarte/LiveFeeds
f377efdba775990dd7844f09cef69a47668f3991
e6d6f3c4b3effd0d7564dbd134249ce26ec8e45d
refs/heads/master
2023-04-19T01:47:40.774874
2022-11-02T15:37:37
2022-11-02T15:37:37
238,485,634
0
0
null
2023-03-27T22:20:26
2020-02-05T15:39:16
Java
UTF-8
Java
false
false
1,617
java
package livefeeds.sift0.stats.turmoil; import java.util.LinkedList; import simsim.core.Simulation; public class TurmoilTraffic implements Cloneable { LinkedList<TurmoilTraffic> history = new LinkedList<TurmoilTraffic>() ; public TurmoilTraffic() { updateHistory() ; } public double timeStamp = Simulation.currentTime() ; public double turmoil_upload = 0, turmoil_download = 0; public double upload() { return turmoil_upload; } public double download() { return turmoil_download; } public double average_upload_rate() { double elapsed = Simulation.currentTime() - timeStamp ; return upload() / elapsed ; } public double average_download_rate() { double elapsed = Simulation.currentTime() - timeStamp ; return download() / elapsed ; } public double recent_upload_rate() { TurmoilTraffic other = history.getLast() ; double elapsed = Simulation.currentTime() - other.timeStamp ; double total = this.upload() - other.upload() ; return total / elapsed ; } public double recent_download_rate() { TurmoilTraffic other = history.getLast() ; double elapsed = Simulation.currentTime() - other.timeStamp ; double total = this.download() - other.download() ; return total / elapsed ; } public void updateHistory() { history.addFirst( clone() ) ; while( history.size() > 3 ) history.removeLast() ; } public TurmoilTraffic clone() { try { timeStamp = Simulation.currentTime() ; return (TurmoilTraffic)super.clone() ; } catch (CloneNotSupportedException e) { e.printStackTrace() ; return null ; } } }
[ "smd@fct.unl.pt" ]
smd@fct.unl.pt
e14484f3644d95a11e6180e13b1277b7047c155d
502ea93de54a1be3ef42edb0412a2bf4bc9ddbef
/sources/com/google/android/gms/internal/p148e/C4635h.java
8ce9a9433652cbd8025c3a6d1fea828b1af9f976
[]
no_license
dovanduy/MegaBoicotApk
c0852af0773be1b272ec907113e8f088addb0f0c
56890cb9f7afac196bd1fec2d1326f2cddda37a3
refs/heads/master
2020-07-02T04:28:02.199907
2019-08-08T20:44:49
2019-08-08T20:44:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
243
java
package com.google.android.gms.internal.p148e; import com.google.android.gms.internal.p148e.C4578f.C4581b.C4583b; /* renamed from: com.google.android.gms.internal.e.h */ final class C4635h implements C4522cy<C4583b> { C4635h() { } }
[ "pablo.valle.b@gmail.com" ]
pablo.valle.b@gmail.com
6c288c117f9d1fc72b37a3376113edeb291501ff
0883cd89cdb84e0e5ec2a83199371cdcf9b655a7
/basic/day07/demo04/Demo05ArrayListBasic.java
88a181af7c15ccf72bbcfbfa4244f7535d6d1313
[]
no_license
xdiaann/basic_code
48d05935172364a8bc133dae7e681816eb73c295
0ffc1bef25c240d02ca858a975897805474ceb59
refs/heads/master
2022-10-02T04:49:50.308137
2019-09-01T09:27:50
2019-09-01T09:27:50
204,382,946
0
0
null
2022-09-01T23:33:01
2019-08-26T02:48:27
Java
UTF-8
Java
false
false
1,142
java
package day07.demo04; import java.util.ArrayList; /* 如果希望向集合ArrayList当中存储基本类型数据,必须使用基本类型对应的“包装类”。 基本类型 包装类(引用类型,包装类都位于java.lang包下) byte Byte short Short int Integer 【特殊】 long Long float Float double Double char Character 【特殊】 boolean Boolean 从JDK 1.5+开始,支持自动装箱、自动拆箱。 自动装箱:基本类型 --> 包装类型 自动拆箱:包装类型 --> 基本类型 */ public class Demo05ArrayListBasic { public static void main(String[] args) { ArrayList<String> listA = new ArrayList<>(); // 错误写法!泛型只能是引用类型,不能是基本类型 // ArrayList<int> listB = new ArrayList<>(); ArrayList<Integer> listC = new ArrayList<>(); listC.add(100); listC.add(200); System.out.println(listC); // [100, 200] int num = listC.get(1); System.out.println("第1号元素是:" + num); } }
[ "250160399@qq.com" ]
250160399@qq.com
4612b238e2e6c3de53aa712a893c505f875264da
93c7fa8c49fbabaa7c4632a177ab4ebe49a2ada1
/src/main/java/org/springframework/security/boot/biz/property/SecurityRedirectProperties.java
5aefa9b89da433f1458a7788970d12b7f60a9226
[ "Apache-2.0" ]
permissive
liyeli/security-biz-spring-boot-starter
667e7d01baa67184fbb2b892d64250420d1ffc60
e8ea98881d73339aaa3052e3045c1275d15c952e
refs/heads/master
2022-03-29T07:48:32.455306
2020-01-18T11:05:53
2020-01-18T11:05:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,033
java
/* * Copyright (c) 2018, hiwepy (https://github.com/hiwepy). * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package org.springframework.security.boot.biz.property; import lombok.Getter; import lombok.Setter; import lombok.ToString; @Getter @Setter @ToString public class SecurityRedirectProperties { /** * If <tt>true</tt>, causes any redirection URLs to be calculated minus the protocol * and context path (defaults to <tt>false</tt>). */ private boolean contextRelative; }
[ "hnxyhcwdl1003@163.com" ]
hnxyhcwdl1003@163.com
a51a2c559c6378fb1a29d453c4bc2f93597d034d
c768c76b5cfb1d267a1780791da9aeba69592d24
/cypher/src/main/java/org/vertexium/cypher/functions/scalar/LengthFunction.java
772dad4403921fcf4ee47eccc5ad73f23231cf0a
[ "Apache-2.0" ]
permissive
patrickhoeffel/vertexium
3d409ac6b9a1c1399df1c5ec12e1e549df26910d
7e9768af05221e0b43a69f6e683086fe7b11d582
refs/heads/master
2021-05-11T21:54:52.747823
2018-01-04T18:10:58
2018-01-04T18:10:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,530
java
package org.vertexium.cypher.functions.scalar; import org.vertexium.cypher.VertexiumCypherQueryContext; import org.vertexium.cypher.VertexiumCypherScope; import org.vertexium.cypher.ast.model.CypherAstBase; import org.vertexium.cypher.exceptions.VertexiumCypherNotImplemented; import org.vertexium.cypher.exceptions.VertexiumCypherTypeErrorException; import org.vertexium.cypher.executor.ExpressionScope; import org.vertexium.cypher.functions.CypherFunction; import java.util.List; import java.util.stream.Collectors; public class LengthFunction extends CypherFunction { @Override public Object invoke(VertexiumCypherQueryContext ctx, CypherAstBase[] arguments, ExpressionScope scope) { assertArgumentCount(arguments, 1); Object arg0 = ctx.getExpressionExecutor().executeExpression(ctx, arguments[0], scope); if (arg0 instanceof List) { return ((List<?>) arg0).stream() .map(this::getLength) .collect(Collectors.toList()); } return getLength(arg0); } private Object getLength(Object arg0) { if (arg0 == null) { return null; } if (arg0 instanceof VertexiumCypherScope.PathItem) { return ((VertexiumCypherScope.PathItem) arg0).getLength(); } if (arg0 instanceof String) { return ((String) arg0).length(); } throw new VertexiumCypherTypeErrorException(arg0, VertexiumCypherScope.PathItem.class, String.class, null); } }
[ "joe@fernsroth.com" ]
joe@fernsroth.com
337c76d8250a02579104e4c25d0203f39f562acd
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Math/1/org/apache/commons/math3/stat/StatUtils_populationVariance_472.java
393861aede60d28a541126b24e8737109e9e0b02
[]
no_license
hvdthong/NetML
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
9bb103da21327912e5a29cbf9be9ff4d058731a5
refs/heads/master
2021-06-30T15:03:52.618255
2020-10-07T01:58:48
2020-10-07T01:58:48
150,383,588
1
1
null
2018-09-26T07:08:45
2018-09-26T07:08:44
null
UTF-8
Java
false
false
1,682
java
org apach common math3 stat stat util statutil method comput statist base data store arrai version stat util statutil return href http wikibook org wiki statist summari varianc popul varianc entri portion input arrai code doubl nan code design subarrai empti link org apach common math3 stat descript moment varianc detail comput algorithm return singl length sampl throw code math illeg argument except mathillegalargumentexcept code arrai arrai index paramet valid param valu input arrai param begin index arrai element includ param length number element includ popul varianc valu doubl nan length math illeg argument except mathillegalargumentexcept arrai arrai index paramet valid popul varianc populationvari valu begin length math illeg argument except mathillegalargumentexcept varianc evalu valu begin length
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
8826f79ce1fe1abbc2000788d87212e63e181f48
105ba7ce2368a1302e2ee9b9b5d94b5429fe71a8
/MyApplication/app/src/main/java/ro/pub/cs/systems/eim/practicaltest02/Model/StockData.java
cb4ab0ba9493f4c3aa3c8dfb3f9bfba452b1c835
[ "Apache-2.0" ]
permissive
Claudiu94/PracticalTest02
6c0312964db3e784280e7b4bc21664a022f53570
48a7b61b4203bd162d6e47c6ef9a0e9a16b6f985
refs/heads/master
2021-01-21T19:13:45.800562
2017-05-23T06:43:36
2017-05-23T06:43:36
92,131,810
0
0
null
null
null
null
UTF-8
Java
false
false
306
java
package ro.pub.cs.systems.eim.practicaltest02.Model; /** * Created by student on 23.05.2017. */ public class StockData { public String time; String key; public String price; public StockData(String time, String price) { this.time = time; this.price = price; } }
[ "student@cti.pub.ro" ]
student@cti.pub.ro
1c77d2fbe2c091c64dec72fc06db2d664f3f474b
40d844c1c780cf3618979626282cf59be833907f
/src/testcases/CWE190_Integer_Overflow/s06/CWE190_Integer_Overflow__byte_max_postinc_17.java
80534022dac273559744ed7c21789764d26881af
[]
no_license
rubengomez97/juliet
f9566de7be198921113658f904b521b6bca4d262
13debb7a1cc801977b9371b8cc1a313cd1de3a0e
refs/heads/master
2023-06-02T00:37:24.532638
2021-06-23T17:22:22
2021-06-23T17:22:22
379,676,259
1
0
null
null
null
null
UTF-8
Java
false
false
3,105
java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__byte_max_postinc_17.java Label Definition File: CWE190_Integer_Overflow.label.xml Template File: sources-sinks-17.tmpl.java */ /* * @description * CWE: 190 Integer Overflow * BadSource: max Set data to the max value for byte * GoodSource: A hardcoded non-zero, non-min, non-max, even number * Sinks: increment * GoodSink: Ensure there will not be an overflow before incrementing data * BadSink : Increment data, which can cause an overflow * Flow Variant: 17 Control flow: for loops * * */ package testcases.CWE190_Integer_Overflow.s06; import testcasesupport.*; import javax.servlet.http.*; public class CWE190_Integer_Overflow__byte_max_postinc_17 extends AbstractTestCase { public void bad() throws Throwable { byte data; /* We need to have one source outside of a for loop in order * to prevent the Java compiler from generating an error because * data is uninitialized */ /* POTENTIAL FLAW: Use the maximum size of the data type */ data = Byte.MAX_VALUE; for (int j = 0; j < 1; j++) { /* POTENTIAL FLAW: if data == Byte.MAX_VALUE, this will overflow */ data++; byte result = (byte)(data); IO.writeLine("result: " + result); } } /* goodG2B() - use goodsource and badsink */ private void goodG2B() throws Throwable { byte data; /* FIX: Use a hardcoded number that won't cause underflow, overflow, divide by zero, or loss-of-precision issues */ data = 2; for (int j = 0; j < 1; j++) { /* POTENTIAL FLAW: if data == Byte.MAX_VALUE, this will overflow */ data++; byte result = (byte)(data); IO.writeLine("result: " + result); } } /* goodB2G() - use badsource and goodsink*/ private void goodB2G() throws Throwable { byte data; /* POTENTIAL FLAW: Use the maximum size of the data type */ data = Byte.MAX_VALUE; for (int k = 0; k < 1; k++) { /* FIX: Add a check to prevent an overflow from occurring */ if (data < Byte.MAX_VALUE) { data++; byte result = (byte)(data); IO.writeLine("result: " + result); } else { IO.writeLine("data value is too large to increment."); } } } public void good() throws Throwable { goodG2B(); goodB2G(); } /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException { mainFromParent(args); } }
[ "you@example.com" ]
you@example.com
27fba769d250e671d30d0f5421f9fc41a27868cd
81e8fac8f87b81195d7a9b5f2a1c2b5ceab00ac2
/impl/src/main/java/org/jboss/seam/social/oauth/OAuthServiceBase.java
4b982ac903ca6b4a9b86b063f95dc96b14c2f570
[]
no_license
luiz158/social
56303fe0ba361c1a4e59919fc82c60f0804fc1cb
7958971f5e34450155f96d46d9f79e38d1b35fa2
refs/heads/master
2020-12-25T09:27:39.823213
2012-01-08T00:08:48
2012-01-08T00:08:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,930
java
/* * JBoss, Home of Professional Open Source * Copyright 2011, Red Hat Middleware LLC, and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jboss.seam.social.oauth; import static org.jboss.seam.social.SeamSocialExtension.getServicesToQualifier; import java.lang.annotation.Annotation; import java.util.Map; import java.util.Map.Entry; import javax.enterprise.inject.Any; import javax.enterprise.inject.Instance; import javax.enterprise.util.AnnotationLiteral; import javax.inject.Inject; import org.apache.commons.lang3.StringUtils; import org.jboss.seam.social.Current; import org.jboss.seam.social.HasStatus; import org.jboss.seam.social.JsonMapper; import org.jboss.seam.social.SeamSocialException; import org.jboss.seam.social.SeamSocialExtension; import org.jboss.seam.social.UserProfile; import org.jboss.seam.social.rest.RestResponse; import org.jboss.seam.social.rest.RestVerb; import org.jboss.solder.logging.Logger; /** * This Abstract implementation of {@link OAuthService} uses an {@link OAuthProvider} to deal with remote OAuth Services * * * @author Antoine Sabot-Durand */ public abstract class OAuthServiceBase implements OAuthService, HasStatus { private static final long serialVersionUID = -8423894021913341674L; private static final String VERIFIER_PARAM_NAME = "oauth_verifier"; private static Annotation currentLiteral = new AnnotationLiteral<Current>() { private static final long serialVersionUID = -2929657732814790025L; }; @Inject @Any private Instance<OAuthProvider> providers; @Inject protected JsonMapper jsonService; @Inject private Logger log; @Inject @Any protected Instance<OAuthSession> sessionInstances; @Inject protected SeamSocialExtension socialConfig; private String type; private Annotation qualifier; public String getType() { if (StringUtils.isEmpty(type)) type = getServicesToQualifier().get(getQualifier()); return type; } @Override public String getAuthorizationUrl() { return getProvider().getAuthorizationUrl(getRequestToken()); } private OAuthProvider getProvider() { return providers.select(getQualifier()).get(); } protected OAuthToken getRequestToken() { OAuthSession session = getSession(); if (session.getRequestToken() == null) session.setRequestToken(getProvider().getRequestToken()); return session.getRequestToken(); } @Override public void initAccessToken() { OAuthSession session = getSession(); if (session.getAccessToken() == null) session.setAccessToken(getProvider().getAccessToken(getRequestToken(), session.getVerifier())); if (session.getAccessToken() != null) { session.setRequestToken(null); initMyProfile(); // TODO Should we fire an event ? } else { // FIXME Launch an exception !! } } abstract protected void initMyProfile(); @Override public void resetConnection() { OAuthSession session = getSession(); session.setAccessToken(null); session.setVerifier(null); session.setUserProfile(null); } protected RestResponse sendSignedRequest(OAuthRequest request) { getProvider().signRequest(getAccessToken(), request); return request.send(); } @Override public RestResponse sendSignedRequest(RestVerb verb, String uri) { OAuthRequest request = getProvider().requestFactory(verb, uri); return sendSignedRequest(request); } @Override public RestResponse sendSignedRequest(RestVerb verb, String uri, String key, Object value) { OAuthRequest request = getProvider().requestFactory(verb, uri); request.addBodyParameter(key, value.toString()); return sendSignedRequest(request); } @Override public RestResponse sendSignedXmlRequest(RestVerb verb, String uri, String payload) { OAuthRequest request = getProvider().requestFactory(verb, uri); request.addPayload(payload); return sendSignedRequest(request); } @Override public RestResponse sendSignedRequest(RestVerb verb, String uri, Map<String, Object> params) { OAuthRequest request = getProvider().requestFactory(verb, uri); for (Entry<String, Object> ent : params.entrySet()) { request.addBodyParameter(ent.getKey(), ent.getValue().toString()); } return sendSignedRequest(request); } @Override public void setVerifier(String verifierStr) { OAuthSession session = getSession(); session.setVerifier(verifierStr); } @Override public String getVerifier() { OAuthSession session = getSession(); return session.getVerifier(); } @Override public OAuthToken getAccessToken() { OAuthSession session = getSession(); return session.getAccessToken(); } @Override public boolean isConnected() { return getSession().isConnected(); } protected void requireAuthorization() { if (!isConnected()) { throw new SeamSocialException("This action requires an OAuth connexion"); } } @Override public void setAccessToken(String token, String secret) { OAuthSession session = getSession(); session.setAccessToken(getProvider().tokenFactory(token, secret)); } @Override public void setAccessToken(OAuthToken token) { OAuthSession session = getSession(); session.setAccessToken(token); } @Override public String getVerifierParamName() { return VERIFIER_PARAM_NAME; } @Override public UserProfile getMyProfile() { return getSession().getUserProfile(); } // @Override // public Annotation getQualifier() { // if (qualifier == null) { // log.debugf("building the list of direct ancestors (Interface and Class) for bean %s", this.getClass().toString()); // List<Type> allTypes = newArrayList(Arrays.asList(this.getClass().getGenericInterfaces())); // allTypes.add(this.getClass()); // Type superClass = this.getClass().getGenericSuperclass(); // if (superClass != null) // allTypes.add(superClass); // log.debugf("This bean implents or extends %s others type", allTypes.size()); // for (Type type : socialConfig.getClassToQualifier().keySet()) { // log.debugf("Comparing the type of the bean with %s", type); // // if (allTypes.contains(type)) { // log.debugf("Found that bean has type %s", type); // // qualifier = socialConfig.getClassToQualifier().get(type); // break; // } // } // if (qualifier == null) // throw new SeamSocialException("Unable tho find Service Related Qualifier for bean of class " // + this.getClass().toString()); // } // return qualifier; // } public OAuthSession getSession() { OAuthSession session; if (socialConfig.isMultiSession()) session = sessionInstances.select(currentLiteral).get(); else session = sessionInstances.select(getQualifier()).get(); return session; } }
[ "antoine@sabot-durand.net" ]
antoine@sabot-durand.net
2149df1c981bfe9f5365f8c32e1d3949f1956046
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
/benchmark/test/com/alibaba/druid/demo/sql/SchemaStatTest_odps.java
608f5768d2d3d2eaec84e617e82d9abd7e601df3
[]
no_license
STAMP-project/dspot-experiments
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
121487e65cdce6988081b67f21bbc6731354a47f
refs/heads/master
2023-02-07T14:40:12.919811
2019-11-06T07:17:09
2019-11-06T07:17:09
75,710,758
14
19
null
2023-01-26T23:57:41
2016-12-06T08:27:42
null
UTF-8
Java
false
false
2,020
java
package com.alibaba.druid.demo.sql; import TableStat.Relationship; import com.alibaba.druid.sql.SQLUtils; import com.alibaba.druid.sql.ast.SQLStatement; import com.alibaba.druid.sql.parser.SQLParserUtils; import com.alibaba.druid.sql.parser.SQLStatementParser; import com.alibaba.druid.sql.visitor.SchemaStatVisitor; import com.alibaba.druid.stat.TableStat; import com.alibaba.druid.util.JdbcConstants; import java.io.File; import java.util.List; import java.util.Set; import junit.framework.TestCase; import org.apache.commons.io.FileUtils; public class SchemaStatTest_odps extends TestCase { public void test_schemaStat() throws Exception { File file = new File("/Users/wenshao/Downloads/odps_sql_1.txt"); String sql = FileUtils.readFileToString(file); String dbType = JdbcConstants.ODPS; SQLStatementParser parser = SQLParserUtils.createSQLStatementParser(sql, dbType); List<SQLStatement> stmtList = parser.parseStatementList(); System.out.println(("stmtList size : " + (stmtList.size()))); SchemaStatVisitor statVisitor = SQLUtils.createSchemaStatVisitor(dbType); for (SQLStatement stmt : stmtList) { stmt.accept(statVisitor); } Set<TableStat.Relationship> relationships = statVisitor.getRelationships(); for (TableStat.Relationship relationship : relationships) { System.out.println(relationship);// table1.id = table2.id } // System.out.println(statVisitor.getColumns()); // System.out.println(statVisitor.getGroupByColumns()); // group by System.out.println(("relationships : " + (statVisitor.getRelationships())));// group by System.out.println(statVisitor.getConditions()); // assertEquals(3, relationships.size()); // // Assert.assertEquals(21, statVisitor.getColumns().size()); // Assert.assertEquals(20, statVisitor.getConditions().size()); // assertEquals(1, statVisitor.getFunctions().size()); } }
[ "benjamin.danglot@inria.fr" ]
benjamin.danglot@inria.fr
ffa504a2d5b21a50800dd586075a138de8903fdd
71cb2dd0404505e891d8d7882163fbc4e30f8d34
/cqliving-online/src/main/java/com/cqliving/cloud/online/order/domain/OrderPayConfigData.java
f5cd160d53b806e3ec57e08f58a14c8c3d5e5f4f
[]
no_license
cenbow/fuxiaofengfugib
eab19ee68051753b338c3380aa499e2a96aa6ee2
543b909f7ce394c8f482484a7d35fa2871fecd62
refs/heads/master
2020-12-02T21:16:17.346107
2017-02-13T01:26:13
2017-02-13T01:26:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,941
java
package com.cqliving.cloud.online.order.domain; /** * Title:支付需要的配置 * <p>Description:</p> * Copyright (c) CQLIVING 2016 * @author DeweiLi on 2016年12月2日 */ public class OrderPayConfigData { /** 商户生成签名字符串所使用的签名算法类型 RSA */ public final static String SIGN_TYPE_RSA = "RSA"; /** 支付宝服务器主动通知商户服务器里指定的页面http/https路径。建议商户使用https */ public final static String NOTIFYURL = "order/alipayCallback.html"; /** 0—虚拟类商品。 注:虚拟类商品不支持使用花呗渠道*/ public final static String goods_type_0 = "0"; /** 1—实物类商品 */ public final static String goods_type_1 = "1"; /** 私钥 自己帐号的沙箱环境 */ public final static String privateKey = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAKtL3VpZAwz2aQu0h8fsi6LKu/7QRPSHmOJ3tgKS24kK72F75yaknG/KOLwPIz2qIWmgThmex4LO1JPOs3tGdnfRnug1CvNlpXsyKOTz2MTxIJl3nX7d2GzfnVSex0V1d+EAcvAmUFe8g9KcsiCR5ebBjUtzPGLfNCwwcDAs2F2PAgMBAAECgYAUxCC0mD/nbWP0uFERqpqPBLbfwE3ruxiMs+iLzVPx/DJjBgtSwvf4EXLpUYh7LEnarUVqk7YqJHre5Fsb4cHwt8G7dTMjg2F+lU/EY91SlsGB1fwC6XU2p1gN6+AQQlZPFm4IK9w+JRoOzxfwJtrgqf94TgxKUrzM9jZbqFNaQQJBAOCoDI0a936Z3oDcrm2rzsU/7B3brSubZbADN7F1llcrppqbGlQuxTRgXCb2xn1hH9Hp5fgNW12G0JlpPP9zYG8CQQDDMfpExch10ZUP9AhEEPqNDf5ndMfiwozrZgCTCOxsSas++ue1DdIHgPC0FrEmPVNDy+vcR7s0gK0cJ/stryThAkEAkex2Ip2WjxRRE7DEWBZV+4e2zfon9IA+v+KHJWy0l7CRyjDfHDk4/PluQhze9wfETGw6ZTH/27M7Abr61Q7TXwJAbZcStygASz3XHfTZ6zVJJoazzewACa1HJybGrca1znpx/dMq4jkXMYVQHxwaa6jEpezIyI0xauHPz14XJOgPoQJAfjGlLt61qllWCPcQWZ6wQyXrur40vCs9ljbasxO9lSke3nsYxEZ/XKiEmf96bIelYDwiOxlrh4yUoRwfVYulzQ=="; //1、支付宝公共参数 /** 支付宝分配给开发者的应用ID */ private String app_id; /** 商户生成签名字符串所使用的签名算法类型,目前支持RSA */ private String sign_type; /** 商户请求参数的签名串,详见签名 */ private String sign; /** 支付宝服务器主动通知商户服务器里指定的页面http/https路径。建议商户使用https */ private String notify_url; /** 业务请求参数的集合,最大长度不限,除公共参数外所有请求参数都必须放在这个参数中传递,具体参照各产品快速接入文档 */ private String biz_content; public String getApp_id() { return app_id; } public void setApp_id(String app_id) { this.app_id = app_id; } public String getSign_type() { return sign_type; } public void setSign_type(String sign_type) { this.sign_type = sign_type; } public String getSign() { return sign; } public void setSign(String sign) { this.sign = sign; } public String getNotify_url() { return notify_url; } public void setNotify_url(String notify_url) { this.notify_url = notify_url; } public String getBiz_content() { return biz_content; } public void setBiz_content(String biz_content) { this.biz_content = biz_content; } }
[ "fuxiaofeng1107@163.com" ]
fuxiaofeng1107@163.com
0f5ff6ec98a4d9c02a0fc1ca4dac6d86add11b52
4087670b4071bb56b250e8c348ceaa8f4e041315
/app/src/main/java/com/example/lijinduo/mydemo/permission/PermissionAct.java
7d24b981c6aac505e82f68e3d03ba7314a7eb07e
[]
no_license
callmeyellowbin/project
4e5d1e0e3130bbc254ca3480fdf9900f8528f98d
34d25396b8ce5ec76900b73b7f8766fb8285b905
refs/heads/master
2021-09-01T08:52:47.485808
2017-12-26T03:35:40
2017-12-26T03:35:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,111
java
package com.example.lijinduo.mydemo.permission; import android.Manifest; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.ActivityCompat; import android.support.v4.content.ContextCompat; import android.widget.Button; import android.widget.Toast; import com.example.lijinduo.mydemo.BaseActivity; import com.example.lijinduo.mydemo.R; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; /** * 版权:XXX公司 版权所有 * 作者:lijinduo * 版本:2.0 * 创建日期:2017/8/30 * 描述:(重构) * 修订历史: * 参考链接: */ public class PermissionAct extends BaseActivity { @BindView(R.id.call) Button call; private final int REQUEST_CODE_ASK_CALL_PHONE=1234; private Context mContext=PermissionAct.this; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.act_permission); ButterKnife.bind(this); } @OnClick(R.id.call) public void onViewClicked() { onCall(); } private void onCall(){ if (Build.VERSION.SDK_INT >= 23) { int checkCallPhonePermission = ContextCompat.checkSelfPermission(mContext, Manifest.permission.CALL_PHONE); if(checkCallPhonePermission != PackageManager.PERMISSION_GRANTED){ ActivityCompat.requestPermissions((Activity) mContext,new String[]{Manifest.permission.CALL_PHONE},REQUEST_CODE_ASK_CALL_PHONE); return; }else{ //上面已经写好的拨号方法 callDirectly(); } } else { //上面已经写好的拨号方法 callDirectly(); } } /** * 拨打功能 */ private void callDirectly(){ Intent intent = new Intent(); intent.setAction("android.intent.action.CALL"); intent.setData(Uri.parse("tel:" +"15868186914")); startActivity(intent); } /** * @param requestCode 请求code * @param permissions * @param grantResults */ @Override public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) { switch (requestCode) { case REQUEST_CODE_ASK_CALL_PHONE: if (grantResults[0] == PackageManager.PERMISSION_GRANTED) { // Permission Granted callDirectly(); } else { // Permission Denied Toast.makeText(mContext, "权限未确认", Toast.LENGTH_SHORT) .show(); } break; default: super.onRequestPermissionsResult(requestCode, permissions, grantResults); } } }
[ "576412864@qq.com" ]
576412864@qq.com
e059fda92ce4da81740cacc84356c061e902fe33
fa1e87222c63f11e2b1136121faa332502e6b0d9
/app/src/main/java/yahier/exst/model/PrePaydata.java
88634750832940517f55952e2ad1a456324fe764
[]
no_license
yahier/ExSt
845f66f27293d9780419e0181c04a0596b22680f
14b805dd91c67648899830cae6825b87e33cfebb
refs/heads/master
2021-01-19T16:04:02.277800
2017-04-14T08:17:16
2017-04-14T08:17:16
88,238,794
0
0
null
null
null
null
UTF-8
Java
false
false
1,085
java
package yahier.exst.model; import java.io.Serializable; public class PrePaydata implements Serializable { long orderno; int orderstate; // long payno; // 支付号取消? float payfee; String weixinjsonparameters; int paytype; // String msg; long orderpayno; public long getOrderno() { return orderno; } public void setOrderno(long orderno) { this.orderno = orderno; } public int getOrderstate() { return orderstate; } public void setOrderstate(int paystate) { this.orderstate = paystate; } public long getOrderpayno() { return orderpayno; } public void setOrderpayno(long payno) { this.orderpayno = payno; } public float getPayfee() { return payfee; } public void setPayfee(float payfee) { this.payfee = payfee; } public String getWeixinjsonparameters() { return weixinjsonparameters; } public void setWeixinjsonparameters(String weixinjsonparameters) { this.weixinjsonparameters = weixinjsonparameters; } // public String getMsg() { // return msg; // } // // public void setMsg(String msg) { // this.msg = msg; // } }
[ "xuziwang@stbl.cc" ]
xuziwang@stbl.cc
da091e9eff60508618e78e6672d360bdece2d2cc
b7c6132023a115fdebb9b9240ab6296372e78226
/src/test/java/com/ning/http/client/async/netty/NettyRelative302Test.java
d524ea983c33a23867d86ff59bff15284898be76
[ "Apache-2.0" ]
permissive
bwei/async-http-client
0cf36e02a5045916ac485ad72d79ded857cc4aa0
20582e97bc4985653bfdba8cc3c67790b934e710
refs/heads/master
2021-01-17T23:54:01.194025
2011-01-05T18:06:30
2011-01-05T18:06:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,057
java
/* * Copyright 2010 Ning, Inc. * * Ning licenses this file to you under the Apache License, version 2.0 * (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ package com.ning.http.client.async.netty; import com.ning.http.client.AsyncHttpClient; import com.ning.http.client.AsyncHttpClientConfig; import com.ning.http.client.async.ProviderUtil; import com.ning.http.client.async.RC10KTest; public class NettyRelative302Test extends RC10KTest { @Override public AsyncHttpClient getAsyncHttpClient(AsyncHttpClientConfig config) { return ProviderUtil.nettyProvider(config); } }
[ "jfarcand@apache.org" ]
jfarcand@apache.org
e2bdd5a0eb9c307cf05bf2b4688b8264a84fcd9c
5aa4d6e75dff32e54ccaa4b10709e7846721af05
/samples/j2ee/snippets/com.ibm.sbt.automation.test/src/main/java/com/ibm/sbt/test/js/base/CommunityMembersFeedDataHandler.java
7cfc29b71100311d3c7cbc4a2d507b82793cc00c
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
gnuhub/SocialSDK
6bc49880e34c7c02110b7511114deb8abfdee924
02cc3ac4d131b7a094f6983202c1b5e0043b97eb
refs/heads/master
2021-01-16T20:08:07.509051
2014-07-09T08:53:03
2014-07-09T08:53:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,873
java
/* * � Copyright IBM Corp. 2013 * * 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.ibm.sbt.test.js.base; import java.util.List; import org.junit.Assert; import org.junit.Test; import com.ibm.commons.util.io.json.JsonJavaObject; import com.ibm.sbt.automation.core.test.BaseApiTest; import com.ibm.sbt.automation.core.test.FlexibleTest; import com.ibm.sbt.automation.core.test.pageobjects.JavaScriptPreviewPage; /** * @author mwallace * * @date 25 Mar 2013 */ public class CommunityMembersFeedDataHandler extends FlexibleTest { static final String SNIPPET_ID = "Toolkit_Base_CommunityMembersFeedDataHandler"; @Test public void testCommunityFeedDataHandler() { JavaScriptPreviewPage previewPage = executeSnippet(SNIPPET_ID); List jsonList = previewPage.getJsonList(); Assert.assertEquals(5, jsonList.size()); JsonJavaObject json = (JsonJavaObject)jsonList.get(0); Assert.assertEquals("0EE5A7FA-3434-9A59-4825-7A7000278DAA", json.getString("getEntityId")); Assert.assertEquals("0EE5A7FA-3434-9A59-4825-7A7000278DAA", json.getString("userid")); Assert.assertEquals("frankadams@renovations.com", json.getString("email")); Assert.assertEquals("Frank Adams", json.getString("name")); Assert.assertEquals("owner", json.getString("role")); } }
[ "LORENZOB@ie.ibm.com" ]
LORENZOB@ie.ibm.com
90b73e1fa5077db6076e807cbbade5de8b42e4c2
b07e256d58572c514a93497c85f7c6ddc7c82875
/src/main/java/br/com/metalgsm/sample/queue/client/UserFeignClientInterceptor.java
9ee7da07be8828edf705a191ecbe717604c5357f
[]
no_license
metalgsm/metalgsm-sample-queue
a63431b4e65333270bc0ac219b5d9f1354686096
d169873e74ba6bcf7096cfd4cab6980a6c87dc18
refs/heads/master
2021-07-02T23:21:32.113790
2020-01-05T15:06:46
2020-01-05T15:06:46
231,933,628
0
0
null
2021-04-29T21:53:39
2020-01-05T14:59:34
Java
UTF-8
Java
false
false
642
java
package br.com.metalgsm.sample.queue.client; import br.com.metalgsm.sample.queue.security.SecurityUtils; import feign.RequestInterceptor; import feign.RequestTemplate; import org.springframework.stereotype.Component; @Component public class UserFeignClientInterceptor implements RequestInterceptor { private static final String AUTHORIZATION_HEADER = "Authorization"; private static final String BEARER = "Bearer"; @Override public void apply(RequestTemplate template) { SecurityUtils.getCurrentUserJWT() .ifPresent(s -> template.header(AUTHORIZATION_HEADER,String.format("%s %s", BEARER, s))); } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
d78290d9507b1542762b2e76a020d0840bb3160a
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/MOCKITO-3b-4-30-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/mockito/internal/verification/checkers/NumberOfInvocationsChecker_ESTest.java
c49483ba5752f99f0775180e0161ba6d1178a6df
[]
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
601
java
/* * This file was automatically generated by EvoSuite * Sun Apr 05 12:32:47 UTC 2020 */ package org.mockito.internal.verification.checkers; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class NumberOfInvocationsChecker_ESTest extends NumberOfInvocationsChecker_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
671bc68094c7053ba1d1dba5045cae61da756dba
c96c3c52bce61e1be8c31321a0790410eac0ad7b
/src/main/java/com/zhihu/controller/CommentController.java
76bbde5e5274c870e657cd11fe17a5159b3f8d59
[]
no_license
vicotorz/zhangdizhihu
bbcc2182d26d22f755ead82c10bb3bdccb4e5070
cb1759f613dfe32f64677a1ff13bf188f8af9e64
refs/heads/master
2022-06-25T23:16:03.557850
2019-07-22T15:17:07
2019-07-22T15:17:07
91,424,018
4
0
null
2022-06-17T01:49:59
2017-05-16T06:35:29
TSQL
UTF-8
Java
false
false
2,994
java
package com.zhihu.controller; import com.zhihu.Utils.JsonUtil; import com.zhihu.async.EventModel; import com.zhihu.async.EventProducer; import com.zhihu.async.EventType; import com.zhihu.model.*; import com.zhihu.service.CommentService; import com.zhihu.service.QuestionService; import com.zhihu.service.SensetiveService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.util.HtmlUtils; import java.util.ArrayList; import java.util.Date; import java.util.List; import static com.zhihu.Utils.JsonUtil.DEFAULT_USER_ID; /** * Created by victorz on 2017/6/10. */ @Controller public class CommentController { private static final Logger logger = LoggerFactory.getLogger(CommentController.class); @Autowired CommentService commentService; @Autowired QuestionService questionService; @Autowired SensetiveService senService; @Autowired EventProducer eventProducer; @Autowired HostHolder hostholeder;//上下文存入用户 @RequestMapping(value = "/addComment", method = {RequestMethod.POST}) public String addComment(@RequestParam("questionId") int questionId, @RequestParam("content") String content) { try { content = HtmlUtils.htmlEscapeHex(content); content = senService.filter(content); //构建Comment //(content,user_id,entity_id,entity_type,created_date,status) Comment comment = new Comment(); comment.setContent(content); User user = hostholeder.getUser(); if (user == null) { comment.setUserid(DEFAULT_USER_ID); } else { comment.setUserid(user.getId()); } comment.setEntityid(questionId); comment.setEntitytype(1);//1---question,2---comment comment.setCreateddate(new Date()); comment.setStatus(0); commentService.addComment(comment); //增加评论数目 int count=questionService.getCommentCount(questionId); questionService.increaseCommentCount(count+1,questionId); //评论异步队列 EventModel model=new EventModel(EventType.COMMENT); model.setActorId(comment.getUserid()); model.setEntityId(questionId); eventProducer.fireEvent(model); } catch (Exception e) { logger.error("添加评论失败", e.getMessage()); e.printStackTrace(); } //不会写 return "redirect:/question/" + String.valueOf(questionId); } }
[ "victorzsnail@qq.com" ]
victorzsnail@qq.com
4c92b06c8a378920cab1b9a940904f730dc0f751
41b94e50556e03f1939e71eeb924a0f45674551b
/app/src/main/java/com/app/ecosurvey/Controller.java
85abcb2e410a32ee32907ad5c225b8e326747b9e
[]
no_license
imalpasha/ecosurvey
24424a253f588ded0e6a890e17c5bf4b3ecd0bfc
571cca119cc8f9fdcbe6f3d45dcd36b532d241c3
refs/heads/master
2021-05-11T03:31:49.431365
2018-02-20T08:43:44
2018-02-20T08:43:44
117,516,051
0
0
null
null
null
null
UTF-8
Java
false
false
1,152
java
package com.app.ecosurvey; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.util.Log; import com.app.ecosurvey.base.BaseFragment; import cn.pedant.SweetAlert.SweetAlertDialog; /** * Created by Dell on 1/5/2016. */ public class Controller extends BaseFragment { private static SweetAlertDialog pDialog; public static void clickableBannerWithURL(Activity act, String url) { if (!url.startsWith("http://") && !url.startsWith("https://")) { url = "http://" + url; } Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(url)); act.startActivity(i); Log.e("url", url); } public static boolean getRequestStatus(String objStatus,String message, Activity act) { Boolean status = false; if (objStatus.equals("success") || objStatus.equals("Redirect")) { status = true; } else if (objStatus.equals("error") || objStatus.equals("error_validation")) { status = false; setAlertDialog(act, message, "Error"); } return status; } }
[ "imalpasha@gmail.com" ]
imalpasha@gmail.com
ae2caf956e9453f399dbb84f99754aa3f4b0faf9
170d818082d065a28944f07cde89ffa18127b479
/mutabra-ui/src/main/java/com/mutabra/web/components/menu/LocaleMenu.java
d6032aa0e2ca2b91d9b8f0ecfebdf1657b8765c0
[]
no_license
air-hermes/mutabra
10f0bce546034898513e16a7547c205549ed482c
dbae552f898d97d0e3a553ac63d2c16332d03dbe
refs/heads/master
2021-01-18T18:57:52.411255
2013-10-01T14:57:46
2013-10-01T14:57:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,560
java
package com.mutabra.web.components.menu; import com.mutabra.web.internal.CSSConstants; import org.apache.tapestry5.SymbolConstants; import org.apache.tapestry5.annotations.OnEvent; import org.apache.tapestry5.annotations.Property; import org.apache.tapestry5.ioc.annotations.Inject; import org.apache.tapestry5.ioc.annotations.Symbol; import org.apache.tapestry5.services.LocalizationSetter; import java.util.HashMap; import java.util.Locale; import java.util.Map; /** * @author Ivan Khalopik * @since 1.0 */ public class LocaleMenu { private static final Map<String, String> COUNTRY_CODES = new HashMap<String, String>(); static { COUNTRY_CODES.put("ru", "ru"); COUNTRY_CODES.put("en", "us"); } @Inject private Locale currentLocale; @Inject private LocalizationSetter localizationSetter; @Property(write = false) @Inject @Symbol(SymbolConstants.SUPPORTED_LOCALES) private String[] locales; @Property private String locale; public String getMenuItemClass() { final String cssClass = getFlagIconClass(locale); return currentLocale.toString().equals(locale) ? cssClass + " " + CSSConstants.ACTIVE : cssClass; } @OnEvent("changeLocale") void changeLocale(final String newLocale) { localizationSetter.setLocaleFromLocaleName(newLocale); } private String getFlagIconClass(final String locale) { return CSSConstants.ICON_FLAG + COUNTRY_CODES.get(locale) + " " + CSSConstants.INTERACTIVE; } }
[ "ikhalopik@gmail.com" ]
ikhalopik@gmail.com
0a27834798b596ea08f831b3acbc9e2f9fbe8acf
4b4c2dba4366836d528d1f93420d2adec0a5babb
/src/main/java/com/siwoo/application/repository/ItemRepositoryImpl.java
997bf6059d1f917168f38b7d6cdf0fe415e4abe3
[]
no_license
Siwoo-Kim/jpaproject
2f379e4358951bbe9e7a6678203dce414381a92e
f33e1165cebd10d97d7df40a918bca260597ff99
refs/heads/master
2021-04-15T08:54:36.772954
2018-03-24T03:06:47
2018-03-24T03:06:47
126,555,485
0
0
null
null
null
null
UTF-8
Java
false
false
981
java
package com.siwoo.application.repository; import com.siwoo.application.domain.Item; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import java.util.List; @Repository @Transactional(readOnly = true) public class ItemRepositoryImpl implements ItemRepository { @PersistenceContext EntityManager entityManager; @Override public void save(Item item) { if(item.getId() == null) { entityManager.persist(item); } else { entityManager.merge(item); } } private static final String FIND_ALL = "select i from Item i "; @Override public List<Item> findAll() { return entityManager.createQuery(FIND_ALL,Item.class).getResultList(); } @Override public Item findById(Long id) { return entityManager.find(Item.class,id); } }
[ "skim327@myseneca.ca" ]
skim327@myseneca.ca
dc77ec1847c3780abdd5c7ef83816b1f0e5b557d
7ae6e5ffbe3e90256f205637c97af760e2801969
/pico/gems/src/java/org/picocontainer/gems/behaviors/HotSwappable.java
6e454f801fa45ffc58bfd4ff0513c7b67b11446a
[]
no_license
sl4mmy/picocontainer
6e6d7dbf7071850930a7adf2a7ab02410925bd69
e0aafd8b4e293d69d33640a271ebf8226cbcd7c5
refs/heads/master
2021-01-20T11:31:32.391774
2010-02-27T09:02:55
2010-02-27T09:02:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,958
java
/***************************************************************************** * Copyright (C) 2003-2010 PicoContainer Committers. All rights reserved. * * ------------------------------------------------------------------------- * * The software in this package is published under the terms of the BSD * * style license a copy of which has been included with this distribution in * * the LICENSE.txt file. * * * * Original code by * *****************************************************************************/ package org.picocontainer.gems.behaviors; import org.picocontainer.ComponentAdapter; import org.picocontainer.PicoContainer; import org.picocontainer.behaviors.Cached; import java.lang.reflect.Type; /** * This component adapter makes it possible to hide the implementation of a real subject (behind a proxy). If the key of the * component is of type {@link Class} and that class represents an interface, the proxy will only implement the interface * represented by that Class. Otherwise (if the key is something else), the proxy will implement all the interfaces of the * underlying subject. In any case, the proxy will also implement {@link com.thoughtworks.proxy.toys.hotswap.Swappable}, making * it possible to swap out the underlying subject at runtime. <p/> <em> * Note that this class doesn't cache instances. If you want caching, * use a {@link Cached} around this one. * </em> * * @author Paul Hammant */ @SuppressWarnings("serial") public class HotSwappable<T> extends AsmHiddenImplementation<T> { private final Swappable swappable = new Swappable(); private T instance; public HotSwappable(final ComponentAdapter<T> delegate) { super(delegate); } @Override protected Swappable getSwappable() { return swappable; } @SuppressWarnings("unchecked") public T swapRealInstance(final T instance) { return (T) swappable.swap(instance); } @SuppressWarnings("unchecked") public T getRealInstance() { return (T) swappable.getInstance(); } @Override public T getComponentInstance(final PicoContainer container, final Type into) { synchronized (swappable) { if (instance == null) { instance = super.getComponentInstance(container, into); } } return instance; } @Override public String getDescriptor() { return "HotSwappable"; } public static class Swappable { private transient Object delegate; public Object getInstance() { return delegate; } public Object swap(final Object delegate) { Object old = this.delegate; this.delegate = delegate; return old; } } }
[ "paul@hammant.org" ]
paul@hammant.org
112c880dc4559cf56e686992b0290b8bb95c13d4
62e334192393326476756dfa89dce9f0f08570d4
/ztk_code/ztk-paper-parent/paper-common/src/main/java/com/huatu/ztk/paper/dto/PointFocusDto.java
6bdd42c82ebe021b2dd3eebf29a0c3cd4c3057ea
[]
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
561
java
package com.huatu.ztk.paper.dto; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.util.List; /** * 重点关注知识点 * @author shanjigang * @date 2019/3/5 14:54 */ @Data @NoArgsConstructor(force = true) @AllArgsConstructor @Builder public class PointFocusDto { /** * 试题下标 */ private List<QuestionDto> questions; /** * 关注类型值 */ private String typeText; /** * 关注类型 */ private String typeValue; }
[ "jelly_b@126.com" ]
jelly_b@126.com
3bb372c939e17d523b32d969f004cd0d151ddc05
877e94ddca166d7897922493e7fe2bab32bde198
/Mage/src/main/java/mage/game/permanent/token/GodEternalOketraToken.java
eb67ac00775bf824f60728591ada78e8ff988935
[ "MIT" ]
permissive
antoni-g/mage
45c20760830093755178276b9c72ef850c98989b
ea1626079ce2dfdbde3a711610ce783d99e951e3
refs/heads/master
2020-05-14T22:41:40.226011
2019-04-21T02:40:42
2019-04-21T02:40:42
181,983,760
0
0
MIT
2019-04-17T23:37:50
2019-04-17T23:37:49
null
UTF-8
Java
false
false
928
java
package mage.game.permanent.token; import mage.MageInt; import mage.abilities.keyword.VigilanceAbility; import mage.constants.CardType; import mage.constants.SubType; /** * @author TheElk801 */ public final class GodEternalOketraToken extends TokenImpl { public GodEternalOketraToken() { super("Zombie Warrior", "4/4 black Zombie Warrior creature token with vigilance"); setExpansionSetCodeForImage("WAR"); // default cardType.add(CardType.CREATURE); color.setBlack(true); subtype.add(SubType.ZOMBIE); subtype.add(SubType.WARRIOR); power = new MageInt(4); toughness = new MageInt(4); addAbility(VigilanceAbility.getInstance()); } private GodEternalOketraToken(final GodEternalOketraToken token) { super(token); } @Override public GodEternalOketraToken copy() { return new GodEternalOketraToken(this); } }
[ "theelk801@gmail.com" ]
theelk801@gmail.com
da4a9359aa057499693956c5a3dcf8479c592658
d633d377fc70240a6ea72a2b6872489052280d8a
/hadoop-tools/hadoop-sls/src/test/java/org/apache/hadoop/yarn/sls/appmaster/TestAMSimulator.java
1963e96cf4b6db577de1ed37591b6048e8e2e0c7
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause-Views", "CDDL-1.1", "LicenseRef-scancode-protobuf", "CDDL-1.0", "EPL-1.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-proprietary-license", "Apache-2.0", "BSD-2-Clause", "CC-PDDC", "GCC-exception-3.1", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "Classpath-exception-2.0", "CC-BY-2.5", "GPL-2.0-only", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown" ]
permissive
dfiver/hadoop2.10
316c61970d62f9d14a7bd551358d6be4b8017239
9208da26873a3c70569be09b811ddae4eef25aa7
refs/heads/master
2023-01-06T00:35:05.871031
2020-02-12T05:38:18
2020-02-12T05:38:18
239,897,350
0
0
Apache-2.0
2023-01-02T21:55:08
2020-02-12T00:55:51
Java
UTF-8
Java
false
false
5,099
java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.yarn.sls.appmaster; import com.codahale.metrics.MetricRegistry; import org.apache.commons.io.FileUtils; import org.apache.hadoop.yarn.conf.YarnConfiguration; import org.apache.hadoop.yarn.exceptions.YarnException; import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler; import org.apache.hadoop.yarn.sls.conf.SLSConfiguration; import org.apache.hadoop.yarn.sls.scheduler.*; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; @RunWith(Parameterized.class) public class TestAMSimulator { private ResourceManager rm; private YarnConfiguration conf; private Path metricOutputDir; private Class<?> slsScheduler; private Class<?> scheduler; @Parameterized.Parameters public static Collection<Object[]> params() { return Arrays.asList(new Object[][] { {SLSFairScheduler.class, FairScheduler.class}, {SLSCapacityScheduler.class, CapacityScheduler.class} }); } public TestAMSimulator(Class<?> slsScheduler, Class<?> scheduler) { this.slsScheduler = slsScheduler; this.scheduler = scheduler; } @Before public void setup() { createMetricOutputDir(); conf = new YarnConfiguration(); conf.set(SLSConfiguration.METRICS_OUTPUT_DIR, metricOutputDir.toString()); conf.set(YarnConfiguration.RM_SCHEDULER, slsScheduler.getName()); conf.set(SLSConfiguration.RM_SCHEDULER, scheduler.getName()); conf.setBoolean(SLSConfiguration.METRICS_SWITCH, true); rm = new ResourceManager(); rm.init(conf); rm.start(); } class MockAMSimulator extends AMSimulator { @Override protected void processResponseQueue() throws InterruptedException, YarnException, IOException { } @Override protected void sendContainerRequest() throws YarnException, IOException, InterruptedException { } @Override protected void checkStop() { } } private void verifySchedulerMetrics(String appId) { if (scheduler.equals(FairScheduler.class)) { SchedulerMetrics schedulerMetrics = ((SchedulerWrapper) rm.getResourceScheduler()).getSchedulerMetrics(); MetricRegistry metricRegistry = schedulerMetrics.getMetrics(); for (FairSchedulerMetrics.Metric metric : FairSchedulerMetrics.Metric.values()) { String key = "variable.app." + appId + "." + metric.getValue() + ".memory"; Assert.assertTrue(metricRegistry.getGauges().containsKey(key)); Assert.assertNotNull(metricRegistry.getGauges().get(key).getValue()); } } } private void createMetricOutputDir() { Path testDir = Paths.get(System.getProperty("test.build.data", "target/test-dir")); try { metricOutputDir = Files.createTempDirectory(testDir, "output"); } catch (IOException e) { Assert.fail(e.toString()); } } private void deleteMetricOutputDir() { try { FileUtils.deleteDirectory(metricOutputDir.toFile()); } catch (IOException e) { Assert.fail(e.toString()); } } @Test public void testAMSimulator() throws Exception { // Register one app MockAMSimulator app = new MockAMSimulator(); String appId = "app1"; String queue = "default"; List<ContainerSimulator> containers = new ArrayList<>(); app.init(1000, containers, rm, null, 0, 1000000L, "user1", queue, true, appId, null, 0, SLSConfiguration.getAMContainerResource(conf)); app.firstStep(); verifySchedulerMetrics(appId); Assert.assertEquals(1, rm.getRMContext().getRMApps().size()); Assert.assertNotNull(rm.getRMContext().getRMApps().get(app.appId)); // Finish this app app.lastStep(); } @After public void tearDown() { if (rm != null) { rm.stop(); } deleteMetricOutputDir(); } }
[ "dfiver@163.com" ]
dfiver@163.com
82b031ed38146f3ca4522e35612c7ec6c065dcd9
233e63710e871ef841ff3bc44d3660a0c8f8564d
/trunk/gameserver/src/gameserver/network/loginserver/serverpackets/SM_ACCOUNT_LIST.java
d128c19bc770c0be90f73d478797cfdeee6cd87d
[]
no_license
Wankers/Project
733b6a4aa631a18d28a1b5ba914c02eb34a9f4f6
da6db42f127d5970522038971a8bebb76baa595d
refs/heads/master
2016-09-06T10:46:13.768097
2012-08-01T23:19:49
2012-08-01T23:19:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,607
java
/* * This file is part of Aion Extreme Emulator <aion-core.net>. * * Aion Extreme Emulator is a free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Aion Extreme Emulator is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Aion Extreme Emulator. If not, see <http://www.gnu.org/licenses/>. */ package gameserver.network.loginserver.serverpackets; import java.util.Map; import gameserver.network.aion.AionConnection; import gameserver.network.loginserver.LoginServerConnection; import gameserver.network.loginserver.LsServerPacket; /** * GameServer packet that sends list of logged in accounts * * @author SoulKeeper */ public class SM_ACCOUNT_LIST extends LsServerPacket { /** * Map with loaded accounts */ private final Map<Integer, AionConnection> accounts; /** * constructs new server packet with specified opcode. */ public SM_ACCOUNT_LIST(Map<Integer, AionConnection> accounts) { super(0x04); this.accounts = accounts; } @Override protected void writeImpl(LoginServerConnection con) { writeD(accounts.size()); for (AionConnection ac : accounts.values()) { writeS(ac.getAccount().getName()); } } }
[ "sylvanodu14gmail.com" ]
sylvanodu14gmail.com
e055e49345bb0a64eec1a9066452a06c3622ca37
34c24c18d874fa077fef35a1bd23ac948053a87b
/java-web/sample/src/main/java/com/sample/hr/vo/Job.java
0e6ae336fbd5baa545ce8a6513ae6b41c0d6e889
[]
no_license
DonggeonHa/Central_HTA
5f2afc88cd168c828473ac1148beb335495f0c54
f7fe92daa6cd856158732869f6f1028f23b32407
refs/heads/master
2023-06-14T11:05:45.680344
2021-07-06T08:12:06
2021-07-06T08:12:06
353,176,984
0
0
null
null
null
null
UTF-8
Java
false
false
646
java
package com.sample.hr.vo; public class Job { private String id; private String jobTitle; private int minSalary; private int maxSalary; public Job() {} public String getId() { return id; } public void setId(String id) { this.id = id; } public String getJobTitle() { return jobTitle; } public void setJobTitle(String jobTitle) { this.jobTitle = jobTitle; } public int getMinSalary() { return minSalary; } public void setMinSalary(int minSalary) { this.minSalary = minSalary; } public int getMaxSalary() { return maxSalary; } public void setMaxSalary(int maxSalary) { this.maxSalary = maxSalary; } }
[ "Hadonggun@gmail.com" ]
Hadonggun@gmail.com
c0cc3fab9d7ba254934448fb47fda12514390b2c
cb7d6ab4534cd67b251bf712628338413f2cc1ca
/Java8/src/com/infotech/lamda/HandlingUncheckedExceptionInLamda.java
fb11b0d78286f4e276dc0c410588817257627936
[]
no_license
gurunatha/CoreJava
d4d53fef2c0957784eb3f2c670eb4ceff44a7f69
314f278b504774fcc9989787b7f5c39a1e5a98f9
refs/heads/master
2021-09-15T20:20:11.007505
2018-06-10T08:24:56
2018-06-10T08:24:56
112,617,362
0
0
null
null
null
null
UTF-8
Java
false
false
1,783
java
package com.infotech.lamda; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; public class HandlingUncheckedExceptionInLamda { static int i1 = 0; public static void main(String[] args) { List<Integer> integers = new ArrayList<Integer>(); integers.add(10); integers.add(15); integers.add(0); integers.add(5); integers.forEach(consumerWrapper(i -> System.out.println(50/i),Exception.class)); integers.forEach(consumeThrowableWrapper(i -> writeToFile(i),Exception.class)); } private static void writeToFile(Integer i) throws IOException { System.out.println("writeToFile()"); FileWriter f = new FileWriter("abc.txt",true); PrintWriter pw = new PrintWriter(f); pw.println(i); pw.flush(); } private static <T,E extends Exception> Consumer<T> consumeThrowableWrapper(ThrowableConsumer<T, Exception> t,Class<E> clazz) { return i-> { try{ t.accept(i); }catch(Exception e) { System.out.println(clazz.cast(e).getMessage()); } }; } private static <T,E extends Exception> Consumer<T> consumerWrapper(Consumer<T> consumer,Class<E> clazz) { return i -> { try{ consumer.accept(i); }catch(Exception e) { System.out.println("Exception "+e.getMessage()); } }; } private static Consumer<Integer> lamdaWrapper(Consumer<Integer> c) { System.out.println(i1++); System.out.println("=="); return i -> { try{ System.out.println("--"+i); c.accept(i); }catch(Exception e) { System.out.println(e.getMessage()); } }; } }
[ "gurunathreddy326@gmail.com" ]
gurunathreddy326@gmail.com
1a1e96acfc2ce47de89007c814507fc895fd9aa8
cf87f9ece4143014b26b6cc682551ccf795eb9a0
/src/main.java
380718d35bd938a70ef82f7dc7a94387f1d16f87
[]
no_license
LongDo612/Binary-Search
d46849c43b9f6b0216e6547a6c7fe88262f593e9
f70da22d474bbed5986d7af1f7e90250263d139a
refs/heads/master
2021-02-09T10:19:47.857731
2020-03-02T03:23:10
2020-03-02T03:23:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
849
java
import java.util.Scanner; public class main { public static void main(String[] args) { int[] a = {1,3,5,9,11,15,898,1001}; Scanner scanner = new Scanner(System.in); System.out.println("Enter a number: "); int inputNumber = scanner.nextInt(); System.out.println("\n"+recursiveBinarySearch(inputNumber,a)); } public static int recursiveBinarySearch(int number, int[] array) { int first = 0; int last = array.length-1; int mid; while (last>=first){ mid = (first + last)/2; if (number<array[mid]){ last = mid - 1; } else if (number == array[mid]){ return mid; } else { first = mid + 1; } } return -1; } }
[ "=" ]
=
c3c24b0230e7031cef6d89d279c64452982fe4e6
56d1c5242e970ca0d257801d4e627e2ea14c8aeb
/src/com/csms/leetcode/number/n100/n100/Leetcode109.java
2b2bd231e536919210374e9a3c461f7fb8d0a5da
[]
no_license
dai-zi/leetcode
e002b41f51f1dbd5c960e79624e8ce14ac765802
37747c2272f0fb7184b0e83f052c3943c066abb7
refs/heads/master
2022-12-14T11:20:07.816922
2020-07-24T03:37:51
2020-07-24T03:37:51
282,111,073
0
0
null
null
null
null
UTF-8
Java
false
false
169
java
package com.csms.leetcode.number.n100.n100; //有序链表转换二叉搜索树 //中等 public class Leetcode109 { public static void main(String[] args) { } }
[ "liuxiaotongdaizi@sina.com" ]
liuxiaotongdaizi@sina.com
f68bd3390ccc13a83464867274aae21cd52ae756
27a13543c5a21811e696278b5212755ecdebca53
/hsco/src/main/java/hsco/mis/sal/SAL010114/SAL010114Controller.java
bf810f5b197482c9c7edcc502b6a5cfae56c0064
[]
no_license
chaseDeveloper/hsco
9dad73c971500c4bd98adfefa3e91a91d26ca318
7052d6da3ac772cd3b13ec391818139355935916
refs/heads/master
2023-06-15T23:55:10.592683
2021-07-06T07:46:07
2021-07-06T07:46:07
383,377,343
0
0
null
null
null
null
UTF-8
Java
false
false
3,096
java
package hsco.mis.sal.SAL010114; import javax.annotation.Resource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import hsco.cmm.controller.BaseContoller; import hsco.cmm.ria.nexacro.NexacroConstant; import hsco.cmm.ria.nexacro.map.NexacroMapDTO; /** * <pre> * @Project Name : 화성도시공사 경영정보시스템 * @Class Name : SAL010114Controller.java * @Description : 건강보험산출내역관리 * @author : 정 민 * @since : 2017. 12. 08. * @version : 1.0 * @see : * @COPYRIGHT (c) 2017 NANUMICT, Inc. All Right Reserved. * <pre> * ------------------------------------------------------------------ * Modification Information * ------------------------------------------------------------------ * 작성일 작성자 내용 * ------------------------------------------------------------------ * 2017. 12. 08. 정 민 최초생성 * </pre> */ @Controller public class SAL010114Controller extends BaseContoller { protected Logger log = LoggerFactory.getLogger(this.getClass()); @Resource(name = "SAL010114Service") SAL010114ServiceImpl SAL010114Service; /** * 산출내역 목록 조회 * @param xpDto * @param model * @return ModelAndView * @throws Exception */ @RequestMapping("/hsco/mis/sal/SAL010114/selectComputDtlsList.do") public ModelAndView selectComputDtlsList(NexacroMapDTO xpDto, Model model) throws Exception { ModelAndView mav = new ModelAndView("nexacroMapView"); execService(SAL010114Service, "selectComputDtlsList", xpDto, mav); mav.addObject(NexacroConstant.ERROR_CODE, "0"); mav.addObject(NexacroConstant.ERROR_MSG, "success.정상조회"); return mav; } /** * 산출내역 엑셀 업로드 * @param xpDto * @param model * @return ModelAndView * @throws Exception */ @RequestMapping("/hsco/mis/sal/SAL010114/saveComputDtlsList.do") public ModelAndView saveComputDtlsList(NexacroMapDTO xpDto, Model model) throws Exception { ModelAndView mav = new ModelAndView("nexacroMapView"); execService(SAL010114Service, "saveComputDtlsList", xpDto, mav); mav.addObject(NexacroConstant.ERROR_CODE, "0"); mav.addObject(NexacroConstant.ERROR_MSG, "success.처리성공"); return mav; } /** * 산출내역 삭제 * @param xpDto * @param model * @return ModelAndView * @throws Exception */ @RequestMapping("/hsco/mis/sal/SAL010114/computDtlsListD.do") public ModelAndView computDtlsListD(NexacroMapDTO xpDto, Model model) throws Exception { ModelAndView mav = new ModelAndView("nexacroMapView"); execService(SAL010114Service, "computDtlsListD", xpDto, mav); mav.addObject(NexacroConstant.ERROR_CODE, "0"); mav.addObject(NexacroConstant.ERROR_MSG, "success.정상조회"); return mav; } }
[ "kdk@ichase.co.kr" ]
kdk@ichase.co.kr
7048b64b661200157f71e92eea275a7a7a06f8fc
3f3b0a118e8315b26e068a602e37566fa357e036
/src/main/java/com/isa/oca/preparation/section1/lecture8/FinalModifierTest.java
2fb8bd9f20cceb085056ef698605a5949a66933f
[]
no_license
isaolmez/udemy-oca-java
d06adc6fb04831e71486259dade473a3c7a656b1
56d9613cd52724017cfc2e8caf223113bfdd8199
refs/heads/master
2020-04-06T06:52:58.998797
2017-11-26T10:55:52
2017-11-26T10:55:52
33,448,353
0
0
null
null
null
null
UTF-8
Java
false
false
526
java
package com.isa.oca.preparation.section1.lecture8; import com.isa.oca.preparation.common.Student; public class FinalModifierTest { final int creditLimit = 20; final Student student = new Student(); final int courseCount; public FinalModifierTest() { // creditLimit = 25; student.setName("constructor"); // student = new Student(); courseCount = 6; // courseCount = 8; } public void modify() { // creditLimit = 25; // courseCount = 6 student.setName("modify"); } }
[ "isaolmez@gmail.com" ]
isaolmez@gmail.com
c36d3104b040e003d8848a6a29324007b1e52c73
7cab112a472df702c9b616c760b8940d50324550
/aionxemu-master/GameServer/src/gameserver/network/aion/clientpackets/CM_EXCHANGE_REQUEST.java
ab5207ff36515e6605b11cce376cbbc6349e3d9b
[]
no_license
luckychenheng/server_demo
86d31c939fd895c7576156b643ce89354e102209
97bdcb1f6cd614fd360cfed800c479fbdb695cd3
refs/heads/master
2020-05-15T02:59:07.396818
2019-05-09T10:30:47
2019-05-09T10:30:47
182,059,222
2
0
null
null
null
null
UTF-8
Java
false
false
3,618
java
/** * This file is part of Aion X Emu <aionxemu.com> * * This is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser Public License for more details. * * You should have received a copy of the GNU Lesser Public License * along with this software. If not, see <http://www.gnu.org/licenses/>. */ package gameserver.network.aion.clientpackets; import gameserver.model.gameobjects.Creature; import gameserver.model.gameobjects.player.DeniedStatus; import gameserver.model.gameobjects.player.Player; import gameserver.model.gameobjects.player.RequestResponseHandler; import gameserver.network.aion.AionClientPacket; import gameserver.network.aion.SystemMessageId; import gameserver.network.aion.serverpackets.SM_QUESTION_WINDOW; import gameserver.network.aion.serverpackets.SM_SYSTEM_MESSAGE; import gameserver.services.ExchangeService; import gameserver.utils.PacketSendUtility; import gameserver.world.World; /** * @author -Avol- */ public class CM_EXCHANGE_REQUEST extends AionClientPacket { public Integer targetObjectId; public CM_EXCHANGE_REQUEST(int opcode) { super(opcode); } @Override protected void readImpl() { targetObjectId = readD(); } @Override protected void runImpl() { final Player activePlayer = getConnection().getActivePlayer(); final Player targetPlayer = World.getInstance().findPlayer(targetObjectId); /** * check if not trading with yourself. */ if (activePlayer != targetPlayer) { /** * check if trade partner exists or is he/she a player. */ if (targetPlayer != null) { if (targetPlayer.getPlayerSettings().isInDeniedStatus(DeniedStatus.TRADE)) { sendPacket(SM_SYSTEM_MESSAGE.STR_MSG_REJECTED_TRADE(targetPlayer.getName())); return; } sendPacket(SM_SYSTEM_MESSAGE.REQUEST_TRADE(targetPlayer.getName())); RequestResponseHandler responseHandler = new RequestResponseHandler(activePlayer) { @Override public void acceptRequest(Creature requester, Player responder) { ExchangeService.getInstance().registerExchange(activePlayer, targetPlayer); } @Override public void denyRequest(Creature requester, Player responder) { PacketSendUtility.sendPacket(activePlayer, new SM_SYSTEM_MESSAGE(SystemMessageId.EXCHANGE_HE_REJECTED_EXCHANGE, targetPlayer.getName())); } }; boolean requested = targetPlayer.getResponseRequester().putRequest(SM_QUESTION_WINDOW.STR_EXCHANGE_DO_YOU_ACCEPT_EXCHANGE, responseHandler); if (requested) { PacketSendUtility.sendPacket(targetPlayer, new SM_QUESTION_WINDOW(SM_QUESTION_WINDOW.STR_EXCHANGE_DO_YOU_ACCEPT_EXCHANGE, 0, activePlayer.getName())); } } } else { //TODO: send message, cannot trade with yourself. } } }
[ "seemac@seedeMacBook-Pro.local" ]
seemac@seedeMacBook-Pro.local
c3576fe1222ac5bbd7a5336b2e9e41ae533c8886
502ea93de54a1be3ef42edb0412a2bf4bc9ddbef
/sources/org/apache/p199a/C6555l.java
7843fe27d25dfc02b3f8332961505a290d97eeab
[]
no_license
dovanduy/MegaBoicotApk
c0852af0773be1b272ec907113e8f088addb0f0c
56890cb9f7afac196bd1fec2d1326f2cddda37a3
refs/heads/master
2020-07-02T04:28:02.199907
2019-08-08T20:44:49
2019-08-08T20:44:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,853
java
package org.apache.p199a; import java.io.Serializable; import java.util.Locale; import org.apache.p199a.p229k.C6549b; import org.apache.p199a.p229k.C6553f; /* renamed from: org.apache.a.l */ /* compiled from: HttpHost */ public final class C6555l implements Serializable, Cloneable { /* renamed from: a */ protected final String f21272a; /* renamed from: b */ protected final String f21273b; /* renamed from: c */ protected final int f21274c; /* renamed from: d */ protected final String f21275d; public C6555l(String str, int i, String str2) { if (str == null) { throw new IllegalArgumentException("Host name may not be null"); } this.f21272a = str; this.f21273b = str.toLowerCase(Locale.ENGLISH); if (str2 != null) { this.f21275d = str2.toLowerCase(Locale.ENGLISH); } else { this.f21275d = "http"; } this.f21274c = i; } public C6555l(String str, int i) { this(str, i, null); } /* renamed from: a */ public String mo23058a() { return this.f21272a; } /* renamed from: b */ public int mo23059b() { return this.f21274c; } /* renamed from: c */ public String mo23060c() { return this.f21275d; } /* renamed from: d */ public String mo23062d() { C6549b bVar = new C6549b(32); bVar.mo23044a(this.f21275d); bVar.mo23044a("://"); bVar.mo23044a(this.f21272a); if (this.f21274c != -1) { bVar.mo23042a(':'); bVar.mo23044a(Integer.toString(this.f21274c)); } return bVar.toString(); } /* renamed from: e */ public String mo23063e() { if (this.f21274c == -1) { return this.f21272a; } C6549b bVar = new C6549b(this.f21272a.length() + 6); bVar.mo23044a(this.f21272a); bVar.mo23044a(":"); bVar.mo23044a(Integer.toString(this.f21274c)); return bVar.toString(); } public String toString() { return mo23062d(); } public boolean equals(Object obj) { boolean z = false; if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof C6555l)) { return false; } C6555l lVar = (C6555l) obj; if (this.f21273b.equals(lVar.f21273b) && this.f21274c == lVar.f21274c && this.f21275d.equals(lVar.f21275d)) { z = true; } return z; } public int hashCode() { return C6553f.m25966a(C6553f.m25965a(C6553f.m25966a(17, (Object) this.f21273b), this.f21274c), (Object) this.f21275d); } public Object clone() throws CloneNotSupportedException { return super.clone(); } }
[ "pablo.valle.b@gmail.com" ]
pablo.valle.b@gmail.com
32648be70cb5b90c9ce52468c8f2167238d67fb6
2f4c22e8727179c7acd92df2eece77a2aa783a15
/extensions/training/trainingstorefront/web/src/com/epam/training/storefront/security/impl/DefaultCommerceRedirectStrategy.java
8306ddc29bcd467d264577354d87ff1a48aeda3f
[]
no_license
studenthybris/project
e62dac224d861a29e923e29325c871fa50cf39cc
49a5bf3076701f30380c04909c1d55c8b7c69d87
refs/heads/master
2021-09-02T12:07:52.740012
2018-01-02T12:56:35
2018-01-02T12:56:35
114,237,069
0
0
null
null
null
null
UTF-8
Java
false
false
2,009
java
/* * [y] hybris Platform * * Copyright (c) 2017 SAP SE or an SAP affiliate company. All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * license agreement you entered into with SAP. */ package com.epam.training.storefront.security.impl; import de.hybris.platform.acceleratorfacades.flow.CheckoutFlowFacade; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Required; import org.springframework.security.web.DefaultRedirectStrategy; /** * A redirect strategy used in * {@link de.hybris.platform.acceleratorstorefrontcommons.security.StorefrontAuthenticationSuccessHandler} to handle * express checkout case */ public class DefaultCommerceRedirectStrategy extends DefaultRedirectStrategy { private CheckoutFlowFacade checkoutFlowFacade; private String expressTargetUrl; @Override public void sendRedirect(final HttpServletRequest request, final HttpServletResponse response, final String url) throws IOException { String redirectUrl = url; if (checkoutFlowFacade.isExpressCheckoutEnabledForStore() && StringUtils.isNotEmpty(request.getParameter("expressCheckoutEnabled"))) { redirectUrl = getExpressTargetUrl(); } super.sendRedirect(request, response, redirectUrl); } protected String getExpressTargetUrl() { return expressTargetUrl; } @Required public void setExpressTargetUrl(final String expressTargetUrl) { this.expressTargetUrl = expressTargetUrl; } protected CheckoutFlowFacade getCheckoutFlowFacade() { return checkoutFlowFacade; } @Required public void setCheckoutFlowFacade(final CheckoutFlowFacade checkoutFlowFacade) { this.checkoutFlowFacade = checkoutFlowFacade; } }
[ "Oleksandr_Bohdan@epam.com" ]
Oleksandr_Bohdan@epam.com
a58826c6700a1c99343b3b906cef9a1f27d9c105
76e0e6e5991f82290bf3cf0d66e2eb0f650e8e00
/07InterfaceSegregationDIP/src/_002Services/models/OnlineStoreOrder.java
7e79a7a58b1d5484a39b41eacc4d1aea50ecc008
[ "MIT" ]
permissive
lapd87/SoftUniJavaOOPAdvanced
47ba0efba41b4b2619d4b363996e23fe070290cc
e06cf284fffc7259210a94f327d078d228edf76f
refs/heads/master
2020-03-27T21:40:22.120084
2018-09-03T07:26:02
2018-09-03T07:26:02
147,166,690
0
0
null
null
null
null
UTF-8
Java
false
false
591
java
package _002Services.models; import _002Services.contracts.NotificationService; import _002Services.contracts.ProcessingDevice; public class OnlineStoreOrder implements ProcessingDevice { private NotificationService[] notifications; public OnlineStoreOrder(NotificationService... notifications) { this.notifications = notifications; } @Override public void process() { for (NotificationService notification : notifications) { if (notification.isActive()) { notification.sendNotification(); } } } }
[ "mario87lapd@gmail.com" ]
mario87lapd@gmail.com
f6e10ebe9a2bb0410cb44bf743625214a41af272
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
/genny_JavaWithLambdas/applicationModule/src/test/java/applicationModulepackageJava7/Foo887Test.java
20f1d8bd5fce0f67765837ec9ea65e640a1c12fd
[]
no_license
NikitaKozlov/generated-project-for-desugaring
0bc1443ab3ddc84cd289331c726761585766aea7
81506b3711004185070ca4bb9a93482b70011d36
refs/heads/master
2020-03-20T00:35:06.996525
2018-06-12T09:30:37
2018-06-12T09:30:37
137,049,317
0
0
null
null
null
null
UTF-8
Java
false
false
741
java
package applicationModulepackageJava7; import org.junit.Test; public class Foo887Test { @Test public void testFoo0() { new Foo887().foo0(); } @Test public void testFoo1() { new Foo887().foo1(); } @Test public void testFoo2() { new Foo887().foo2(); } @Test public void testFoo3() { new Foo887().foo3(); } @Test public void testFoo4() { new Foo887().foo4(); } @Test public void testFoo5() { new Foo887().foo5(); } @Test public void testFoo6() { new Foo887().foo6(); } @Test public void testFoo7() { new Foo887().foo7(); } @Test public void testFoo8() { new Foo887().foo8(); } @Test public void testFoo9() { new Foo887().foo9(); } }
[ "nikita.e.kozlov@gmail.com" ]
nikita.e.kozlov@gmail.com
f6acbe8e502dec51e9e18a560d94956b24e5402d
c24e883bba5235840239de3bd5640d92e0c8db66
/activite/activite_core/src/main/java/com/smart/website/activite/entity/logger/SLFJLogger.java
0b13feab63cc4e051813b43ca2c0e79408bbf608
[]
no_license
hotHeart48156/mallwebsite
12fe2f7d4e108ceabe89b82eacca75898d479357
ba865c7ea22955009e2de7b688038ddd8bc9febf
refs/heads/master
2022-11-23T23:22:28.967449
2020-01-07T15:27:27
2020-01-07T15:27:27
231,905,626
0
0
null
2022-11-15T23:54:56
2020-01-05T11:14:43
Java
UTF-8
Java
false
false
693
java
package com.smart.website.activite.entity.logger; public class SLFJLogger implements Logger { private org.slf4j.Logger slfjLogger; public SLFJLogger(org.slf4j.Logger slfjLogger) { this.slfjLogger = slfjLogger; } @Override public void debug(String msg) { slfjLogger.debug(msg); } @Override public void info(String msg) { slfjLogger.info(msg); } @Override public void warn(String msg) { slfjLogger.warn(msg); } @Override public void error(String msg) { slfjLogger.error(msg); } @Override public void error(String msg, Throwable t) { slfjLogger.error(msg, t); } }
[ "2680323775@qq.com" ]
2680323775@qq.com
cdabff8a26372be9ef7c707fe513a31a69f9f756
d778ea338888c9282207eb70cefeec30fc623ff8
/src/main/java/io/github/ifris/files/config/LiquibaseConfiguration.java
8dc63e778089acd9158c3e9bf75f89ef387daa5a
[]
no_license
ifris-data/filing-service
4616a502cce9a97b6a8e0ec2a20b1953627603e4
a8889af31f4f49796b0d03f023612d8753589077
refs/heads/master
2020-05-05T10:27:57.235760
2019-04-12T08:39:24
2019-04-12T08:39:24
179,946,749
0
0
null
null
null
null
UTF-8
Java
false
false
2,143
java
package io.github.ifris.files.config; import io.github.jhipster.config.JHipsterConstants; import io.github.jhipster.config.liquibase.AsyncSpringLiquibase; import liquibase.integration.spring.SpringLiquibase; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties; import org.springframework.cache.CacheManager; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.env.Environment; import org.springframework.core.task.TaskExecutor; import javax.sql.DataSource; @Configuration public class LiquibaseConfiguration { private final Logger log = LoggerFactory.getLogger(LiquibaseConfiguration.class); private final Environment env; private final CacheManager cacheManager; public LiquibaseConfiguration(Environment env, CacheManager cacheManager) { this.env = env; this.cacheManager = cacheManager; } @Bean public SpringLiquibase liquibase(@Qualifier("taskExecutor") TaskExecutor taskExecutor, DataSource dataSource, LiquibaseProperties liquibaseProperties) { // Use liquibase.integration.spring.SpringLiquibase if you don't want Liquibase to start asynchronously SpringLiquibase liquibase = new AsyncSpringLiquibase(taskExecutor, env); liquibase.setDataSource(dataSource); liquibase.setChangeLog("classpath:config/liquibase/master.xml"); liquibase.setContexts(liquibaseProperties.getContexts()); liquibase.setDefaultSchema(liquibaseProperties.getDefaultSchema()); liquibase.setDropFirst(liquibaseProperties.isDropFirst()); liquibase.setChangeLogParameters(liquibaseProperties.getParameters()); if (env.acceptsProfiles(JHipsterConstants.SPRING_PROFILE_NO_LIQUIBASE)) { liquibase.setShouldRun(false); } else { liquibase.setShouldRun(liquibaseProperties.isEnabled()); log.debug("Configuring Liquibase"); } return liquibase; } }
[ "mailnjeru@gmail.com" ]
mailnjeru@gmail.com
4f90c77a63cec99da9b2bdb1153902f4a7bccf4e
04e0a881aeffbbac97a91a781828e4b2dabe3cba
/aksw-commons-io-parent/aksw-commons-io-buffers/src/main/java/org/aksw/commons/io/input/SeekableReadableChannelBase.java
3f0922e6375216657f01eac82838ba497f038589
[ "Apache-2.0" ]
permissive
SmartDataAnalytics/aksw-commons
3eb7bf4d64e29f5d7606109e237d0a3f17a98946
41bf1a0b8d79e02404bb6be0ab77e3c2812b68bf
refs/heads/develop
2023-08-31T00:33:10.251977
2023-08-24T11:18:34
2023-08-24T11:18:34
39,384,919
1
1
null
2023-06-14T22:50:15
2015-07-20T13:18:56
Java
UTF-8
Java
false
false
170
java
package org.aksw.commons.io.input; public abstract class SeekableReadableChannelBase<A> extends ReadableChannelBase<A> implements SeekableReadableChannel<A> { }
[ "RavenArkadon@googlemail.com" ]
RavenArkadon@googlemail.com
36b67a407a8fd6849ac8c81b5cb36220d20f7c14
b15fcbea84500825b454a8e0fca67e6c4a8c9cef
/ControlObligaciones/ControlObligacionesWeb/src/main/java/mx/gob/sat/siat/cob/seguimiento/batch/writer/impl/AprobarVigilanciaWriterImpl.java
1e6bfaa54bf414c4af3881ddd4361f07d01e1570
[]
no_license
xtaticzero/COB
0416523d1bbc96d6024df5eca79172cb0927423f
96082d47e4ffb97dd6e61ce42feee65d5fe64e50
refs/heads/master
2021-09-09T22:02:10.153252
2018-03-20T00:18:00
2018-03-20T00:18:00
125,936,388
0
0
null
null
null
null
UTF-8
Java
false
false
1,533
java
package mx.gob.sat.siat.cob.seguimiento.batch.writer.impl; import javax.sql.DataSource; import mx.gob.sat.siat.cob.seguimiento.batch.writer.AprobarVigilanciaWriter; import mx.gob.sat.siat.cob.seguimiento.dao.stdcob.sql.DocumentoAprobarSQL; import mx.gob.sat.siat.cob.seguimiento.util.constante.DataSourceNames; import org.springframework.batch.item.database.BeanPropertyItemSqlParameterSourceProvider; import org.springframework.batch.item.database.JdbcBatchItemWriter; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Service; /** * * @author christian.ventura */ @Service("aprobarVigilanciaWriter") @Scope("step") public class AprobarVigilanciaWriterImpl extends JdbcBatchItemWriter implements AprobarVigilanciaWriter { /** * * @param dataSource */ @Autowired @Qualifier(DataSourceNames.COB) @Override public void setDataSource(DataSource dataSource) { super.setDataSource(dataSource); } /** * * @param sql */ @Value(DocumentoAprobarSQL.INSERTA_FIRMAS_DOCUMENTOS) @Override public void setSql(String sql) { super.setSql(sql); } /** * */ public AprobarVigilanciaWriterImpl() { super.setItemSqlParameterSourceProvider(new BeanPropertyItemSqlParameterSourceProvider()); } }
[ "emmanuel.estrada@stksat.com" ]
emmanuel.estrada@stksat.com
8ec3a3cac1732d8f41686626420d6452520e8df6
066399caf28f33c94bc2d6340c5d0003877babaf
/solon.view.velocity/src/main/java/org/noear/solon/view/velocity/XPluginImp.java
7787c7ea2c2acb01959b2be8b3e910138c4e90db
[ "Apache-2.0" ]
permissive
amtech/solon
e28df1f17c827ff3302a9d249d8ee6fad30fbd2c
007acc10e76262014c3109dc50947cf0298f8622
refs/heads/master
2020-06-20T05:54:49.491570
2019-06-01T05:33:51
2019-06-01T05:33:51
null
0
0
null
null
null
null
UTF-8
Java
false
false
790
java
package org.noear.solon.view.velocity; import org.apache.velocity.runtime.directive.Directive; import org.noear.solon.XApp; import org.noear.solon.core.Aop; import org.noear.solon.core.XPlugin; public class XPluginImp implements XPlugin { @Override public void start(XApp app) { VelocityRenderImp render = new VelocityRenderImp(); Aop.beanOnloaded(() -> { Aop.beanForeach((k, v) -> { if (k.startsWith("vm:")) { if (v.raw() instanceof Directive) { render.loadDirective(v.raw()); } else { render.setSharedVariable(k.split(":")[1], v.raw()); } } }); }); app.renderSet(render); } }
[ "noear@live.cn" ]
noear@live.cn
36fbf941353eaf9c3842929e710453d0692032aa
f62b80bf6a8df55c83f035e79639ef279c677d01
/src/main/java/com/ringcentral/definitions/IVRMenuActionsInfo.java
a5d5ee99d258008bcde697250f61366e66f9d5d1
[]
no_license
ringcentral/ringcentral-java
2776c83b7ec822b2ac01b8abed6a29e9d288d9da
b0fb081ffa48151d1a9b72517d2a5144a41144a5
refs/heads/master
2023-09-01T19:01:31.720178
2023-08-21T20:51:29
2023-08-21T20:51:29
55,440,696
17
27
null
2023-08-21T20:27:22
2016-04-04T20:00:47
Java
UTF-8
Java
false
false
1,146
java
package com.ringcentral.definitions; public class IVRMenuActionsInfo { /** * Key. The following values are supported: numeric: &#039;1&#039; to &#039;9&#039; Star Hash NoInput */ public String input; /** * Internal identifier of an answering rule * Enum: Connect, Voicemail, DialByName, Transfer, Repeat, ReturnToRoot, ReturnToPrevious, Disconnect, ReturnToTopLevelMenu, DoNothing, ConnectToOperator */ public String action; /** * */ public IVRMenuExtensionInfo extension; /** * For &#039;Transfer&#039; action only. PSTN number in E.164 format */ public String phoneNumber; public IVRMenuActionsInfo input(String input) { this.input = input; return this; } public IVRMenuActionsInfo action(String action) { this.action = action; return this; } public IVRMenuActionsInfo extension(IVRMenuExtensionInfo extension) { this.extension = extension; return this; } public IVRMenuActionsInfo phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; return this; } }
[ "tyler4long@gmail.com" ]
tyler4long@gmail.com
4a112d8fe6cc2f87df62369fd9308adfb24dc270
1268e3b09cb26a861effd460339690c72a4222ba
/lesson_04/03_JavaInnerClasses/src/test/java/InnerClassTest.java
370c867f0572f598afd4eccfb1573249249e68fb
[]
no_license
frankhaykku/java
400558dd8eec1b7474ce9e8e5aecb1b4d8e775db
f178e8108f4527c95829480f2eab2d20afdf559b
refs/heads/master
2021-01-15T20:33:29.260866
2015-02-26T22:42:40
2015-02-26T22:42:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
577
java
import org.junit.Test; /** * Тесты на демонстрацию работы с внутренними классами */ public class InnerClassTest { /** * Внутренний интерфейс */ interface MyInterface { void myMethod(); } @Test public void testAnonymClasses() { MyInterface myInterface = new MyInterface() { @Override public void myMethod() { System.out.println("InnerClassTest.myMethod"); } }; myInterface.myMethod(); } }
[ "super.denis@gmail.com" ]
super.denis@gmail.com
5231ba2e4df50f307d66cf77ae4a28649cea6ff6
950d23bacc6592b5364e8100d5dcb17f0c84109b
/modules/tools/src/main/java/org/exolab/jms/tools/migration/MigrationHelper.java
3a54081256a83e1799970959996218d79233c463
[]
no_license
JavaQualitasCorpus/openjms-0.7.7-beta-1
4052eb0d7417aeee4911b752c2e2f73c53711882
12a2cc7a6e96750e756e3c527dbc9fd14bdf9047
refs/heads/master
2023-08-12T09:29:21.727542
2019-03-13T17:46:13
2019-03-13T17:46:13
167,005,020
0
1
null
null
null
null
UTF-8
Java
false
false
3,080
java
/** * Redistribution and use of this software and associated documentation * ("Software"), with or without modification, are permitted provided * that the following conditions are met: * * 1. Redistributions of source code must retain copyright * statements and notices. Redistributions must also contain a * copy of this document. * * 2. Redistributions in binary form must reproduce the * above copyright notice, this list of conditions and the * following disclaimer in the documentation and/or other * materials provided with the distribution. * * 3. The name "Exolab" must not be used to endorse or promote * products derived from this Software without prior written * permission of Exoffice Technologies. For written permission, * please contact info@exolab.org. * * 4. Products derived from this Software may not be called "Exolab" * nor may "Exolab" appear in their names without prior written * permission of Exoffice Technologies. Exolab is a registered * trademark of Exoffice Technologies. * * 5. Due credit should be given to the Exolab Project * (http://www.exolab.org/). * * THIS SOFTWARE IS PROVIDED BY EXOFFICE TECHNOLOGIES AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESSED 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 * EXOFFICE TECHNOLOGIES OR ITS 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. * * Copyright 2005 (C) Exoffice Technologies Inc. All Rights Reserved. * * $Id: MigrationHelper.java,v 1.1 2005/11/12 12:47:37 tanderson Exp $ */ package org.exolab.jms.tools.migration; import org.apache.derby.jdbc.EmbeddedDataSource; import org.exolab.jms.persistence.PersistenceException; import org.exolab.jms.tools.db.Database; import org.exolab.jms.tools.db.SchemaHelper; /** * Utility class. * * @author <a href="mailto:tma@netspace.net.au">Tim Anderson</a> * @version $Revision: 1.1 $ $Date: 2005/11/12 12:47:37 $ */ public class MigrationHelper { /** * The path to the migration database schema, as a resource. */ public static final String SCHEMA = "/org/exolab/jms/tools/migration/schema.xml"; public static EmbeddedDataSource getDataSource(String name) { EmbeddedDataSource result = new EmbeddedDataSource(); result.setDatabaseName(name); result.setCreateDatabase("create"); return result; } public static Database getSchema() throws PersistenceException { return SchemaHelper.getSchemaFromResource(SCHEMA); } }
[ "taibi@sonar-scheduler.rd.tut.fi" ]
taibi@sonar-scheduler.rd.tut.fi