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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
99bb1c61bb3ab871b20fae211e927eaf1a25c008
|
ca8a5959c150a239de4a469602aa5689826a0510
|
/src/main/java/com/bytatech/ayoos/consultation/client/activiti/model/ProcessInstanceCreateRequest.java
|
91aa901803e6542407f62360df316ea55fa399f7
|
[
"Apache-2.0"
] |
permissive
|
AyoosByta/CONSULTATION-MICROSERVICE
|
11bfb6fc98c94b61e5e5976e1b7e270eb840d8e6
|
843894551193ac8852a26772e191067e74dea30f
|
refs/heads/master
| 2022-12-23T21:29:19.592372
| 2020-01-29T18:54:21
| 2020-01-29T18:54:21
| 236,138,204
| 0
| 2
|
Apache-2.0
| 2022-12-16T04:43:38
| 2020-01-25T07:13:33
|
Java
|
UTF-8
|
Java
| false
| false
| 7,707
|
java
|
package com.bytatech.ayoos.consultation.client.activiti.model;
import java.util.Objects;
import com.bytatech.ayoos.consultation.client.activiti.model.RestVariable;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.*;
/**
* ProcessInstanceCreateRequest
*/
@Validated
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2020-01-24T11:45:50.209+05:30[Asia/Colombo]")
public class ProcessInstanceCreateRequest {
@JsonProperty("processDefinitionId")
private String processDefinitionId = null;
@JsonProperty("processDefinitionKey")
private String processDefinitionKey = null;
@JsonProperty("message")
private String message = null;
@JsonProperty("businessKey")
private String businessKey = null;
@JsonProperty("variables")
@Valid
private List<RestVariable> variables = null;
@JsonProperty("transientVariables")
@Valid
private List<RestVariable> transientVariables = null;
@JsonProperty("tenantId")
private String tenantId = null;
@JsonProperty("returnVariables")
private Boolean returnVariables = false;
public ProcessInstanceCreateRequest processDefinitionId(String processDefinitionId) {
this.processDefinitionId = processDefinitionId;
return this;
}
/**
* Get processDefinitionId
* @return processDefinitionId
**/
@ApiModelProperty(value = "")
public String getProcessDefinitionId() {
return processDefinitionId;
}
public void setProcessDefinitionId(String processDefinitionId) {
this.processDefinitionId = processDefinitionId;
}
public ProcessInstanceCreateRequest processDefinitionKey(String processDefinitionKey) {
this.processDefinitionKey = processDefinitionKey;
return this;
}
/**
* Get processDefinitionKey
* @return processDefinitionKey
**/
@ApiModelProperty(value = "")
public String getProcessDefinitionKey() {
return processDefinitionKey;
}
public void setProcessDefinitionKey(String processDefinitionKey) {
this.processDefinitionKey = processDefinitionKey;
}
public ProcessInstanceCreateRequest message(String message) {
this.message = message;
return this;
}
/**
* Get message
* @return message
**/
@ApiModelProperty(value = "")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public ProcessInstanceCreateRequest businessKey(String businessKey) {
this.businessKey = businessKey;
return this;
}
/**
* Get businessKey
* @return businessKey
**/
@ApiModelProperty(value = "")
public String getBusinessKey() {
return businessKey;
}
public void setBusinessKey(String businessKey) {
this.businessKey = businessKey;
}
public ProcessInstanceCreateRequest variables(List<RestVariable> variables) {
this.variables = variables;
return this;
}
public ProcessInstanceCreateRequest addVariablesItem(RestVariable variablesItem) {
if (this.variables == null) {
this.variables = new ArrayList<RestVariable>();
}
this.variables.add(variablesItem);
return this;
}
/**
* Get variables
* @return variables
**/
@ApiModelProperty(value = "")
@Valid
public List<RestVariable> getVariables() {
return variables;
}
public void setVariables(List<RestVariable> variables) {
this.variables = variables;
}
public ProcessInstanceCreateRequest transientVariables(List<RestVariable> transientVariables) {
this.transientVariables = transientVariables;
return this;
}
public ProcessInstanceCreateRequest addTransientVariablesItem(RestVariable transientVariablesItem) {
if (this.transientVariables == null) {
this.transientVariables = new ArrayList<RestVariable>();
}
this.transientVariables.add(transientVariablesItem);
return this;
}
/**
* Get transientVariables
* @return transientVariables
**/
@ApiModelProperty(value = "")
@Valid
public List<RestVariable> getTransientVariables() {
return transientVariables;
}
public void setTransientVariables(List<RestVariable> transientVariables) {
this.transientVariables = transientVariables;
}
public ProcessInstanceCreateRequest tenantId(String tenantId) {
this.tenantId = tenantId;
return this;
}
/**
* Get tenantId
* @return tenantId
**/
@ApiModelProperty(value = "")
public String getTenantId() {
return tenantId;
}
public void setTenantId(String tenantId) {
this.tenantId = tenantId;
}
public ProcessInstanceCreateRequest returnVariables(Boolean returnVariables) {
this.returnVariables = returnVariables;
return this;
}
/**
* Get returnVariables
* @return returnVariables
**/
@ApiModelProperty(value = "")
public Boolean isReturnVariables() {
return returnVariables;
}
public void setReturnVariables(Boolean returnVariables) {
this.returnVariables = returnVariables;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ProcessInstanceCreateRequest processInstanceCreateRequest = (ProcessInstanceCreateRequest) o;
return Objects.equals(this.processDefinitionId, processInstanceCreateRequest.processDefinitionId) &&
Objects.equals(this.processDefinitionKey, processInstanceCreateRequest.processDefinitionKey) &&
Objects.equals(this.message, processInstanceCreateRequest.message) &&
Objects.equals(this.businessKey, processInstanceCreateRequest.businessKey) &&
Objects.equals(this.variables, processInstanceCreateRequest.variables) &&
Objects.equals(this.transientVariables, processInstanceCreateRequest.transientVariables) &&
Objects.equals(this.tenantId, processInstanceCreateRequest.tenantId) &&
Objects.equals(this.returnVariables, processInstanceCreateRequest.returnVariables);
}
@Override
public int hashCode() {
return Objects.hash(processDefinitionId, processDefinitionKey, message, businessKey, variables, transientVariables, tenantId, returnVariables);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ProcessInstanceCreateRequest {\n");
sb.append(" processDefinitionId: ").append(toIndentedString(processDefinitionId)).append("\n");
sb.append(" processDefinitionKey: ").append(toIndentedString(processDefinitionKey)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" businessKey: ").append(toIndentedString(businessKey)).append("\n");
sb.append(" variables: ").append(toIndentedString(variables)).append("\n");
sb.append(" transientVariables: ").append(toIndentedString(transientVariables)).append("\n");
sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n");
sb.append(" returnVariables: ").append(toIndentedString(returnVariables)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
|
[
"ajay.e.s@lxisoft.com"
] |
ajay.e.s@lxisoft.com
|
31f36aac70b6e2d5d8b370547ab1103763a2a5b1
|
3b7d2d10b34680b7e17d842e7409b381047d75e7
|
/VasuDeva/src/com/vasu/page/LoginPage.java
|
a69d803df937ca1db02781d07fa43177d110d5c1
|
[] |
no_license
|
SeleniumChetanaya/WebDriver
|
ff8d0def18cea394fb1f2a77927cd96c86428c79
|
34d87ad5150d1ca8cd8721e9f7a26de4b5600ee1
|
refs/heads/master
| 2020-06-20T10:35:38.579538
| 2019-07-19T01:33:11
| 2019-07-19T01:33:11
| 197,096,500
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 483
|
java
|
package com.vasu.page;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class LoginPage
{
@FindBy(id="txtUsername")
WebElement username; //page objects
@FindBy(id="txtPassword")
WebElement password;
@FindBy(id="btnLogin")
WebElement login;
//method
public void login()
{
username.sendKeys("Admin");
password.sendKeys("Qedge123!@#");
login.click();
}
}
|
[
"vasu.584@gmail.com"
] |
vasu.584@gmail.com
|
105f0859263dcd0d3242ca9c7025163e6cbc5f14
|
7fe5eff311262436a7c1df3afb12f45194ffc072
|
/opensaml3/src/main/java/se/litsec/eidas/opensaml/metadata/impl/DistributionPointBuilder.java
|
395a05fe3df37a82422488538671cc0192ff240f
|
[
"Apache-2.0"
] |
permissive
|
litsec/eidas-opensaml
|
bb20a6281abe533bf01f1f3ed7b1fa1f896ed1c0
|
75857a4dd0ea719b13a9216a5bd761ba53dc56c0
|
refs/heads/master
| 2023-04-28T11:17:19.646309
| 2023-01-02T13:13:13
| 2023-01-02T13:13:13
| 61,832,796
| 13
| 2
|
Apache-2.0
| 2023-04-19T08:27:14
| 2016-06-23T19:57:06
|
Java
|
UTF-8
|
Java
| false
| false
| 1,491
|
java
|
/*
* Copyright 2016-2019 Litsec AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package se.litsec.eidas.opensaml.metadata.impl;
import org.opensaml.saml.common.AbstractSAMLObjectBuilder;
import se.litsec.eidas.opensaml.metadata.DistributionPoint;
/**
* Builder for {@link DistributionPoint} objects.
*
* @author Martin Lindström (martin.lindstrom@litsec.se)
*/
public class DistributionPointBuilder extends AbstractSAMLObjectBuilder<DistributionPoint> {
/** {@inheritDoc} */
@Override
public DistributionPoint buildObject() {
return new DistributionPointImpl(DistributionPoint.DEFAULT_ELEMENT_NAME.getNamespaceURI(), DistributionPoint.DEFAULT_ELEMENT_LOCAL_NAME,
DistributionPoint.DEFAULT_ELEMENT_NAME.getPrefix());
}
/** {@inheritDoc} */
@Override
public DistributionPoint buildObject(String namespaceURI, String localName, String namespacePrefix) {
return new DistributionPointImpl(namespaceURI, localName, namespacePrefix);
}
}
|
[
"martin.lindstrom@litsec.se"
] |
martin.lindstrom@litsec.se
|
333f181e89cfcb6d3ccb52aaee9b99110acbcac9
|
4a65774fef1062b5b89c244b18a9474f7b7661b5
|
/RitmeRecipe/src/be/apb/standards/smoa/schema/model/v1/MaxSetPersonType.java
|
dba9d4a348f409cb2c6318d7b31f7b78cea85b86
|
[] |
no_license
|
imec-int/ritme
|
30c3c8eb7488a66f83a69527ee501b4b7889e568
|
a004895d3b33d73156eaf113b7aeb85aa5bcf9d0
|
refs/heads/master
| 2022-01-15T04:58:12.436553
| 2019-07-29T14:12:05
| 2019-07-29T14:12:05
| 80,729,112
| 0
| 1
| null | 2019-07-29T14:12:06
| 2017-02-02T13:49:28
|
Java
|
UTF-8
|
Java
| false
| false
| 5,992
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.10.10 at 05:20:59 PM CEST
//
package be.apb.standards.smoa.schema.model.v1;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.datatype.XMLGregorianCalendar;
import be.apb.standards.smoa.schema.id.v1.AbstractPersonIdType;
import be.apb.standards.smoa.schema.v1.CDSEX;
/**
* <p>Java class for MaxSetPersonType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="MaxSetPersonType">
* <complexContent>
* <extension base="{http://www.apb.be/standards/smoa/schema/model/v1}AbstractPersonType">
* <sequence>
* <element name="personId" type="{http://www.apb.be/standards/smoa/schema/id/v1}Abstract-PersonIdType"/>
* <group ref="{http://www.apb.be/standards/smoa/schema/model/v1}personName"/>
* <element name="sex" type="{http://www.apb.be/standards/smoa/schema/v1}CD-SEX" minOccurs="0"/>
* <element name="birthDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
* <element name="usuallanguage" type="{http://www.w3.org/2001/XMLSchema}language" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MaxSetPersonType", propOrder = {
"personId",
"name",
"familyName",
"sex",
"birthDate",
"usuallanguage"
})
public class MaxSetPersonType
extends AbstractPersonType
implements Serializable
{
private final static long serialVersionUID = 1L;
@XmlElement(required = true)
protected AbstractPersonIdType personId;
@XmlElement(required = true)
protected List<String> name;
@XmlElement(required = true)
protected String familyName;
protected CDSEX sex;
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar birthDate;
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "language")
protected String usuallanguage;
/**
* Gets the value of the personId property.
*
* @return
* possible object is
* {@link AbstractPersonIdType }
*
*/
public AbstractPersonIdType getPersonId() {
return personId;
}
/**
* Sets the value of the personId property.
*
* @param value
* allowed object is
* {@link AbstractPersonIdType }
*
*/
public void setPersonId(AbstractPersonIdType value) {
this.personId = value;
}
/**
* Gets the value of the name property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the name property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getName().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getName() {
if (name == null) {
name = new ArrayList<String>();
}
return this.name;
}
/**
* Gets the value of the familyName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFamilyName() {
return familyName;
}
/**
* Sets the value of the familyName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFamilyName(String value) {
this.familyName = value;
}
/**
* Gets the value of the sex property.
*
* @return
* possible object is
* {@link CDSEX }
*
*/
public CDSEX getSex() {
return sex;
}
/**
* Sets the value of the sex property.
*
* @param value
* allowed object is
* {@link CDSEX }
*
*/
public void setSex(CDSEX value) {
this.sex = value;
}
/**
* Gets the value of the birthDate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getBirthDate() {
return birthDate;
}
/**
* Sets the value of the birthDate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setBirthDate(XMLGregorianCalendar value) {
this.birthDate = value;
}
/**
* Gets the value of the usuallanguage property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUsuallanguage() {
return usuallanguage;
}
/**
* Sets the value of the usuallanguage property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUsuallanguage(String value) {
this.usuallanguage = value;
}
}
|
[
"ritm-e@uzleuven.be"
] |
ritm-e@uzleuven.be
|
f9cdc3f03f22bc23382cdfbae4b7421575b4ee15
|
27f5457d47aaf3491f0d64032247adc08efba867
|
/vertx-gaia/vertx-ams/src/main/java/io/horizon/fn/HFn.java
|
53511e586e9979c6e53f4ea0a603ec80253d5e22
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
silentbalanceyh/vertx-zero
|
e73d22f4213263933683e4ebe87982ba68803878
|
1ede4c3596f491d5251eefaaaedc56947ef784cd
|
refs/heads/master
| 2023-06-11T23:10:29.241769
| 2023-06-08T16:15:33
| 2023-06-08T16:15:33
| 108,104,586
| 348
| 71
|
Apache-2.0
| 2020-04-10T02:15:18
| 2017-10-24T09:21:56
|
HTML
|
UTF-8
|
Java
| false
| false
| 1,175
|
java
|
package io.horizon.fn;
import io.horizon.exception.AbstractException;
import io.horizon.specification.uca.HLogger;
import java.util.function.Supplier;
/**
* HFn采用了Java中的静态原型链结构
*
* @author lang : 2023/4/27
*/
public class HFn extends _Run {
protected HFn() {
}
/**
* 纯执行器版本(支持日志记录器),执行失败时抛出 Exception 异常
*
* @param actuator 执行器
* @param logger 日志记录器
*/
public static void failAt(final ExceptionActuator actuator, final HLogger logger) {
HActuator.failAt(actuator, logger);
}
/**
* 特殊方法(不支持日志记录器),执行失败处理的抽象异常直接以日志方式输出
*
* @param supplier Supplier函数
* @param runCls 抽象异常类
* @param args 抽象异常参数
* @param <T> 返回值类型
*
* @return T
*/
public static <T> T failOr(final Supplier<T> supplier,
final Class<? extends AbstractException> runCls, final Object... args) {
return HSupplier.failOr(supplier, runCls, args);
}
}
|
[
"silentbalanceyh@126.com"
] |
silentbalanceyh@126.com
|
049cc0231b29b8c36865298bccfad07fd7547952
|
700fb98a5c15e8e0319a1c6a86a3f5e504e50714
|
/app/src/main/java/com/electrocraft/nirzo/pluse/controller/application/AppConfig.java
|
607db90f41df8bf343d7c36ba9a28bcf422ad9d6
|
[] |
no_license
|
pulse-service/app
|
7a5e7e7d724b813df569846a0856d97ea8faa7d4
|
9683de08d384bc4c25314d75503e7150d6dbf823
|
refs/heads/master
| 2020-03-13T06:51:55.917418
| 2018-06-18T10:22:59
| 2018-06-18T10:22:59
| 131,013,469
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,239
|
java
|
package com.electrocraft.nirzo.pluse.controller.application;
/**
* Created by nirzo on 3/4/2018.
*/
public class AppConfig {
/**
* Habib's pc server host
*/
// public static final String API_LINK = "http://192.168.1.7/elc_api/public/api/auth/";
/**
* Hemonto Dada pc
*/
public static final String API_LINK = "http://192.168.1.116:8080/elc_api/public/api/";
/************************************************************************************
*-------------------------- LIVE Server ------------------------------------------
***********************************************************************************/
public static final String LIVE_API_LINK = "http://180.148.210.139:8081/pulse_api/api/";
public static final String LIVE_IMAGE_DOCTOR_API_LINK = "http://180.148.210.139:8081/pulse_api/public/Doctor_profile_photo/";
public static final String API_NOT_AVALIBLE = "wtf";
public static final String IMAGE_UPLOAD_API_LINK = "http://192.168.1.110:82/pic_up/upload.php";
/**
* jodi otp sms bondh korte chai taile SMS_OTP_OFF ta true kore dite hobe
* sms deactivate korte chaile
*/
public static final boolean SMS_OTP_OFF = false;
}
|
[
"nirzon192@gmail.com"
] |
nirzon192@gmail.com
|
0c8c74d16101ec35501d0892d5ad880a731fcb29
|
84e41905d2bf955eaae2a82d80eb8f77a59c5f63
|
/thinkwin-yunmeeting-system-common/src/main/java/com/thinkwin/common/model/publish/PlatformProgramTenantMiddle.java
|
47a1527c9802afaeba5cff4fd6ef245a5984b304
|
[] |
no_license
|
moyu3390/wang
|
ac91803f34e04e55dd5f7d883f779ba736e96aa1
|
207c75752590bf6b3d7d58aedd9e6b3ccc9424d4
|
refs/heads/master
| 2022-01-14T22:36:19.096206
| 2018-08-10T09:50:07
| 2018-08-10T09:50:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,163
|
java
|
package com.thinkwin.common.model.publish;
import javax.persistence.*;
import java.io.Serializable;
@Table(name = "`platform_program_tenant_middle`")
public class PlatformProgramTenantMiddle implements Serializable {
@Id
@Column(name = "`id`")
private String id;
@Column(name = "`tenant_id`")
private String tenantId;
@Column(name = "`program_id`")
private String programId;
/**
* @return id
*/
public String getId() {
return id;
}
/**
* @param id
*/
public void setId(String id) {
this.id = id == null ? null : id.trim();
}
/**
* @return tenant_id
*/
public String getTenantId() {
return tenantId;
}
/**
* @param tenantId
*/
public void setTenantId(String tenantId) {
this.tenantId = tenantId == null ? null : tenantId.trim();
}
/**
* @return program_id
*/
public String getProgramId() {
return programId;
}
/**
* @param programId
*/
public void setProgramId(String programId) {
this.programId = programId == null ? null : programId.trim();
}
}
|
[
"173030685@qq.com"
] |
173030685@qq.com
|
6ad0d4c52b76a4775992641af345dc4e9cb57351
|
ed96c0e3fee2db4999baf9f3fa23b6f0fa665f16
|
/src/main/java/com/zhaihuilin/dao/PermissionRepository.java
|
ac68cd94ebaedbbacc1bb108f55f99c060d78f16
|
[] |
no_license
|
zhai926/spring-boot-security
|
b2ea9e4629065966b31c82f1b129c319dfaee43a
|
b299f17ee5484c6dfbe32d75cedb0ad6fd8efb07
|
refs/heads/master
| 2021-09-06T15:46:28.372373
| 2018-02-08T06:26:21
| 2018-02-08T06:26:21
| 119,948,242
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 498
|
java
|
package com.zhaihuilin.dao;
import com.zhaihuilin.entity.Permission;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 权限持久层
* Created by SunHaiyang on 2017/9/23.
*/
@Repository
public interface PermissionRepository extends JpaRepository<Permission,Long> {
/**
* 获取权限上下级
* @return
*/
public List<Permission> findAllByOldIsNull();
}
|
[
"17317900836@163.com"
] |
17317900836@163.com
|
34934c39b9faa29fbd9673bf92c05f9d97c82f92
|
dc5a6bbe1b7278b378dbfeb3eaf59ebf163e789f
|
/src/com/lm/ms/domain/User.java
|
d55ab2bcf6a02dc3fb9b50e4ab4154ab477bb40c
|
[] |
no_license
|
louiema1n/mybaties
|
18fe3d6781295207137d6119906eab97b1a0212e
|
58e2b7a4d8ed62b0f44f42e3e7f6afa169e6d0b9
|
refs/heads/master
| 2021-01-12T06:13:33.416841
| 2016-12-26T15:22:32
| 2016-12-26T15:22:32
| 77,328,581
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 561
|
java
|
package com.lm.ms.domain;
public class User {
private Integer id;
private String username;
private Integer age;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = age;
}
@Override
public String toString() {
return "User [id=" + id + ", username=" + username + ", age=" + age + "]";
}
}
|
[
"louielcxy@live.cn"
] |
louielcxy@live.cn
|
765d9de46aecdea73963108d02dbab6942bf0aed
|
45f20bf4597b5f89e5293c35e223204159310956
|
/quickfixj-core/src/main/java/quickfix/fix50sp1/component/UndlyInstrumentParties.java
|
2da60f88cd3037e629b11c39b7163b0c7acef8ce
|
[
"BSD-2-Clause",
"LicenseRef-scancode-public-domain"
] |
permissive
|
lloydchan/quickfixj
|
9d42924c8e9d4cc0a96821faa4006fcd4b0d21c4
|
e26446c775b3f63d93bb4e8d6f02fde8a22d73fc
|
refs/heads/master
| 2020-07-31T21:20:20.178481
| 2019-09-26T14:40:49
| 2019-09-26T14:40:49
| 210,757,360
| 0
| 0
| null | 2019-09-25T04:46:02
| 2019-09-25T04:46:01
| null |
UTF-8
|
Java
| false
| false
| 5,840
|
java
|
package quickfix.fix50sp1.component;
import quickfix.FieldNotFound;
import quickfix.Group;
public class UndlyInstrumentParties extends quickfix.MessageComponent {
static final long serialVersionUID = 20050617;
public static final String MSGTYPE = "";
private int[] componentFields = { };
protected int[] getFields() { return componentFields; }
private int[] componentGroups = { 1058, };
protected int[] getGroupFields() { return componentGroups; }
public UndlyInstrumentParties() {
super();
}
public void set(quickfix.field.NoUndlyInstrumentParties value) {
setField(value);
}
public quickfix.field.NoUndlyInstrumentParties get(quickfix.field.NoUndlyInstrumentParties value) throws FieldNotFound {
getField(value);
return value;
}
public quickfix.field.NoUndlyInstrumentParties getNoUndlyInstrumentParties() throws FieldNotFound {
return get(new quickfix.field.NoUndlyInstrumentParties());
}
public boolean isSet(quickfix.field.NoUndlyInstrumentParties field) {
return isSetField(field);
}
public boolean isSetNoUndlyInstrumentParties() {
return isSetField(1058);
}
public static class NoUndlyInstrumentParties extends Group {
static final long serialVersionUID = 20050617;
private static final int[] ORDER = {1059, 1060, 1061, 1062, 0};
public NoUndlyInstrumentParties() {
super(1058, 1059, ORDER);
}
public void set(quickfix.field.UndlyInstrumentPartyID value) {
setField(value);
}
public quickfix.field.UndlyInstrumentPartyID get(quickfix.field.UndlyInstrumentPartyID value) throws FieldNotFound {
getField(value);
return value;
}
public quickfix.field.UndlyInstrumentPartyID getUndlyInstrumentPartyID() throws FieldNotFound {
return get(new quickfix.field.UndlyInstrumentPartyID());
}
public boolean isSet(quickfix.field.UndlyInstrumentPartyID field) {
return isSetField(field);
}
public boolean isSetUndlyInstrumentPartyID() {
return isSetField(1059);
}
public void set(quickfix.field.UndlyInstrumentPartyIDSource value) {
setField(value);
}
public quickfix.field.UndlyInstrumentPartyIDSource get(quickfix.field.UndlyInstrumentPartyIDSource value) throws FieldNotFound {
getField(value);
return value;
}
public quickfix.field.UndlyInstrumentPartyIDSource getUndlyInstrumentPartyIDSource() throws FieldNotFound {
return get(new quickfix.field.UndlyInstrumentPartyIDSource());
}
public boolean isSet(quickfix.field.UndlyInstrumentPartyIDSource field) {
return isSetField(field);
}
public boolean isSetUndlyInstrumentPartyIDSource() {
return isSetField(1060);
}
public void set(quickfix.field.UndlyInstrumentPartyRole value) {
setField(value);
}
public quickfix.field.UndlyInstrumentPartyRole get(quickfix.field.UndlyInstrumentPartyRole value) throws FieldNotFound {
getField(value);
return value;
}
public quickfix.field.UndlyInstrumentPartyRole getUndlyInstrumentPartyRole() throws FieldNotFound {
return get(new quickfix.field.UndlyInstrumentPartyRole());
}
public boolean isSet(quickfix.field.UndlyInstrumentPartyRole field) {
return isSetField(field);
}
public boolean isSetUndlyInstrumentPartyRole() {
return isSetField(1061);
}
public void set(quickfix.fix50sp1.component.UndlyInstrumentPtysSubGrp component) {
setComponent(component);
}
public quickfix.fix50sp1.component.UndlyInstrumentPtysSubGrp get(quickfix.fix50sp1.component.UndlyInstrumentPtysSubGrp component) throws FieldNotFound {
getComponent(component);
return component;
}
public quickfix.fix50sp1.component.UndlyInstrumentPtysSubGrp getUndlyInstrumentPtysSubGrp() throws FieldNotFound {
return get(new quickfix.fix50sp1.component.UndlyInstrumentPtysSubGrp());
}
public void set(quickfix.field.NoUndlyInstrumentPartySubIDs value) {
setField(value);
}
public quickfix.field.NoUndlyInstrumentPartySubIDs get(quickfix.field.NoUndlyInstrumentPartySubIDs value) throws FieldNotFound {
getField(value);
return value;
}
public quickfix.field.NoUndlyInstrumentPartySubIDs getNoUndlyInstrumentPartySubIDs() throws FieldNotFound {
return get(new quickfix.field.NoUndlyInstrumentPartySubIDs());
}
public boolean isSet(quickfix.field.NoUndlyInstrumentPartySubIDs field) {
return isSetField(field);
}
public boolean isSetNoUndlyInstrumentPartySubIDs() {
return isSetField(1062);
}
public static class NoUndlyInstrumentPartySubIDs extends Group {
static final long serialVersionUID = 20050617;
private static final int[] ORDER = {1063, 1064, 0};
public NoUndlyInstrumentPartySubIDs() {
super(1062, 1063, ORDER);
}
public void set(quickfix.field.UndlyInstrumentPartySubID value) {
setField(value);
}
public quickfix.field.UndlyInstrumentPartySubID get(quickfix.field.UndlyInstrumentPartySubID value) throws FieldNotFound {
getField(value);
return value;
}
public quickfix.field.UndlyInstrumentPartySubID getUndlyInstrumentPartySubID() throws FieldNotFound {
return get(new quickfix.field.UndlyInstrumentPartySubID());
}
public boolean isSet(quickfix.field.UndlyInstrumentPartySubID field) {
return isSetField(field);
}
public boolean isSetUndlyInstrumentPartySubID() {
return isSetField(1063);
}
public void set(quickfix.field.UndlyInstrumentPartySubIDType value) {
setField(value);
}
public quickfix.field.UndlyInstrumentPartySubIDType get(quickfix.field.UndlyInstrumentPartySubIDType value) throws FieldNotFound {
getField(value);
return value;
}
public quickfix.field.UndlyInstrumentPartySubIDType getUndlyInstrumentPartySubIDType() throws FieldNotFound {
return get(new quickfix.field.UndlyInstrumentPartySubIDType());
}
public boolean isSet(quickfix.field.UndlyInstrumentPartySubIDType field) {
return isSetField(field);
}
public boolean isSetUndlyInstrumentPartySubIDType() {
return isSetField(1064);
}
}
}
}
|
[
"lloyd.khc.chan@gmail.com"
] |
lloyd.khc.chan@gmail.com
|
1aa52dd0c538e1d89ea41b4c11af21cb9d079b56
|
782143b35e423b1831e9129c20c91d576a58e44c
|
/app/src/main/java/com/msg91/sendotp/sample/Popup.java
|
023405ddd2954173768bb1010c4d93b624820188
|
[
"Apache-2.0"
] |
permissive
|
techsays001/CITY-360-USER
|
1bc3982f45c544539e7050108b56bb79c53730fb
|
8318e2954c14306bbd56a1f121bb6f8793ad8e7b
|
refs/heads/master
| 2021-01-08T15:15:39.038860
| 2020-02-21T05:48:21
| 2020-02-21T05:48:21
| 242,064,465
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,826
|
java
|
package com.msg91.sendotp.sample;
import android.app.ActionBar;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.PopupWindow;
import android.widget.TextView;
import android.widget.Toast;
import com.android.volley.AuthFailureError;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import com.squareup.picasso.Picasso;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.HashMap;
import java.util.Map;
public class Popup extends AppCompatActivity {
TextView name,ph,date,exp,details;
ImageView image;
Button apply,review;
Intent j;
String a,b,c;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_popup);
j=getIntent();
name=findViewById(R.id.enam123);
ph=findViewById(R.id.enam1234);
date=findViewById(R.id.empddate);
details=findViewById(R.id.empdet);
exp=findViewById(R.id.empexp);
review=findViewById(R.id.rewbt);
apply=findViewById(R.id.apbt);
image=findViewById(R.id.img123);
Picasso.get().load(j.getStringExtra("img")).into(image);
name.setText(j.getStringExtra("name"));
ph.setText(j.getStringExtra("ph"));
// Toast.makeText(Popup.this,j.getStringExtra("job"), Toast.LENGTH_LONG).show();
apply.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent a= new Intent(getApplicationContext(),Apply.class);
a.putExtra("pho",j.getStringExtra("ph"));
a.putExtra("namee",j.getStringExtra("name"));
a.putExtra("job",j.getStringExtra("job"));
a.putExtra("eimg",j.getStringExtra("img"));
startActivity(a);
}
});
review.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent aa= new Intent(getApplicationContext(),Viewreview.class);
aa.putExtra("pho",j.getStringExtra("ph"));
startActivity(aa);
}
});
StringRequest stringRequest = new StringRequest(Request.Method.POST, "https://androidprojectstechsays.000webhostapp.com/City_360/viewempmore.php",
new Response.Listener<String>() {
@Override
public void onResponse(String response) {
//
try {
JSONArray jsonArray = new JSONArray(response);
for (int i = 0; i < jsonArray.length(); i++) {
JSONObject json_obj = jsonArray.getJSONObject(i);
//ba = json_obj.getString("balance");
a=json_obj.getString("date");
b=json_obj.getString("experiance");
c=json_obj.getString("details");
}
//Toast.makeText(Recharge.this, "your new balnce is "+ba, Toast.LENGTH_LONG).show();
} catch (JSONException e) {
e.printStackTrace();
}
// Toast.makeText(Signin.this, "success", Toast.LENGTH_LONG).show();
if (response.contains("success")) {
date.setText(a);
exp.setText(b);
details.setText(c);
}
}
},
new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
//You can handle error here if you want
}
}) {
@Override
protected Map<String, String> getParams() throws AuthFailureError {
Map<String, String> params = new HashMap<>();
//Adding parameters to request
params.put("ph", j.getStringExtra("ph"));
//returning parameter
return params;
}
};
// m = Integer.parseInt(ba) - Integer.parseInt(result.getContents());
// balance.setText(m+"");
//Adding the string request to the queue
RequestQueue requestQueue = Volley.newRequestQueue(Popup.this);
requestQueue.add(stringRequest);
}
}
|
[
"jibincherian892@gmail.com"
] |
jibincherian892@gmail.com
|
67fba59e81c1faecdfd4c832bd5bc87da55e819d
|
ca9a28522100146e6ff98bf464f48c6fa1e33296
|
/app/src/main/java/roommate/yapp/com/yapp13th_roommate/Kakao/KakaoSignupActivity.java
|
cf1bc17f7757542268c49d4e30d4487641b7d2ae
|
[] |
no_license
|
ravieeeee/Nest
|
3aea8dbcfb96bd889c521b436cde90889c23c339
|
a88f58036b20836e544de122ce199d2f18069d4b
|
refs/heads/master
| 2020-03-27T19:18:05.100044
| 2018-10-06T10:05:14
| 2018-10-06T10:05:14
| 146,979,451
| 0
| 0
| null | 2018-10-07T02:28:05
| 2018-09-01T07:54:13
|
Java
|
UTF-8
|
Java
| false
| false
| 3,981
|
java
|
package roommate.yapp.com.yapp13th_roommate.Kakao;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.SearchEvent;
import com.kakao.auth.ErrorCode;
import com.kakao.network.ErrorResult;
import com.kakao.usermgmt.UserManagement;
import com.kakao.usermgmt.callback.LogoutResponseCallback;
import com.kakao.usermgmt.callback.MeResponseCallback;
import com.kakao.usermgmt.response.model.UserProfile;
import com.kakao.util.helper.log.Logger;
import roommate.yapp.com.yapp13th_roommate.SignUp.SignUp_First_Activity;
/**
* Created by kgh on 2018. 8. 17..
*/
public class KakaoSignupActivity extends Activity {
/**
* Main으로 넘길지 가입 페이지를 그릴지 판단하기 위해 me를 호출한다.
*
* @param savedInstanceState 기존 session 정보가 저장된 객체
*/
Context mcontext;
static String kakaoNickname;
@Override
protected void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestMe();
mcontext = getApplicationContext();
}
/**
* 사용자의 상태를 알아 보기 위해 me API 호출을 한다.
*/
protected void requestMe() {
UserManagement.requestMe(new MeResponseCallback() {
@Override
public void onFailure(ErrorResult errorResult) {
String message = "failed to get user info. msg=" + errorResult;
Logger.d(message);
ErrorCode result = ErrorCode.valueOf(errorResult.getErrorCode());
if (result == ErrorCode.CLIENT_ERROR_CODE) {
finish();
} else {
redirectLoginActivity();
}
}
@Override
public void onSessionClosed(ErrorResult errorResult) {
redirectLoginActivity();
}
@Override
public void onNotSignedUp() {
redirectLoginActivity();
}
@Override
public void onSuccess(UserProfile userProfile) {
String kakaoID = String.valueOf(userProfile.getId()); // userProfile에서 ID값을 가져옴
kakaoNickname = userProfile.getNickname(); // Nickname 값을 가져옴
setKakaoNickname(kakaoNickname);
Logger.d("UserProfile : " + userProfile);
//redirectMainActivity(); // 로그인 성공시 MainActivity로
//redirectFragmentMain();
redirectKeywordActivity();
//redirectMainActivity();
}
});
}
public static String getKakaoNickname() {
return kakaoNickname;
}
public static void setKakaoNickname(String kakaoNickname) {
KakaoSignupActivity.kakaoNickname = kakaoNickname;
}
// private void redirectMainActivity() {
// startActivity(new Intent(this, CulturalEventSearch.class));
// finish();
// }
private void redirectKeywordActivity() {
startActivity(new Intent(this, SignUp_First_Activity.class));
finish();
}
private void redirectFragmentMain() {
startActivity(new Intent(this, MainActivity.class));
finish();
}
protected void redirectLoginActivity() {
final Intent intent = new Intent(this, roommate.yapp.com.yapp13th_roommate.Kakao.KaKaoLoginActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
finish();
}
// protected void onClickLogout() {
// UserManagement.requestLogout(new LogoutResponseCallback() {
// @Override
// public void onCompleteLogout() {
// Log.d("onClick LogOut -> : ", "Test");
// startActivity(new Intent(, KaKaoLoginActivity.class));
// }
// });
// }
}
|
[
"you@example.com"
] |
you@example.com
|
09ecf2f22b43adc22a0ac5d79a1f99813a7e4720
|
02d5be181497c8e64bb2b696b8a1937ab9a12685
|
/app/src/main/java/example/com/douying/activity/SettingActivity.java
|
12bb8ade80f44f187579ec000236bdb2242a696c
|
[] |
no_license
|
xiao349305433/Douying
|
e0a16a89ceb09dcaca74a31f7fa2170ec5b76435
|
3f6e77adca0b5c98b74d5abd505b17d6fcf8cd7e
|
refs/heads/master
| 2020-04-16T01:30:52.616206
| 2019-01-30T08:59:41
| 2019-01-30T08:59:41
| 165,176,577
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 580
|
java
|
package example.com.douying.activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import butterknife.OnClick;
import example.com.douying.BaseActivity;
import example.com.douying.R;
import qiu.niorgai.StatusBarCompat;
public class SettingActivity extends BaseActivity {
@Override
public void afterCreate(Bundle savedInstanceState) {
StatusBarCompat.setStatusBarColor(this,getResources().getColor(R.color.gg));
}
@Override
public int provideContentViewId() {
return R.layout.activity_setting;
}
}
|
[
"xiao349305433@qq.com"
] |
xiao349305433@qq.com
|
3084fea3ed0c0eed44f42083174c9c93af1236d3
|
96d71f73821cfbf3653f148d8a261eceedeac882
|
/external/decompiled/blackberry/bb (1)/decompiled/WhatsApp-12/com/whatsapp/client/ContactDetailScreen$EmailCookie.java
|
116ffc17548026c0d986131aa8d25b60aae38b72
|
[] |
no_license
|
JaapSuter/Niets
|
9a9ec53f448df9b866a8c15162a5690b6bcca818
|
3cc42f8c2cefd9c3193711cbf15b5304566e08cb
|
refs/heads/master
| 2020-04-09T19:09:40.667155
| 2012-09-28T18:11:33
| 2012-09-28T18:11:33
| 5,751,595
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,278
|
java
|
// #######################################################
// Decompiled by : coddec
// Module : WhatsApp-12.cod
// Module version : 2.7.6550
// Class ID : 28
// ########################################################
package com.whatsapp.client;
abstract final class ContactDetailScreen$EmailCookie extends Object
{
// @@@@@@@@@@@@@ Fields
private final String /*java.lang.String*/ field_41556 ; // ofs = 41556 addr = 0)
// @@@@@@@@@@@@@ Static routines
public <init>( com.whatsapp.client.ContactDetailScreen$EmailCookie, java.lang.String ); // address: 0
{
enter_narrow
aload_0
invokespecial_lib java.lang.Object.<init> // pc=1
aload_0
aload_1
putfield .field_0_ // get_name_1: .field_0_ // get_name_2: .field_0_ // get_Name: .field_0_ // getName->1: null // getName->2: null // getName->N: null // ofs = -1 ord = 0 addr = 0
return
}
// @@@@@@@@@@@@@ Non-virtual routines
public final java.lang.String getAddress( com.whatsapp.client.ContactDetailScreen$EmailCookie ); // address: 0
{
areturn_field .field_0_ // get_name_1: .field_0_ // get_name_2: .field_0_ // get_Name: .field_0_ // getName->1: null // getName->2: null // getName->N: null // ofs = -1 ord = 0 addr = 0
}
}
|
[
"git@jaapsuter.com"
] |
git@jaapsuter.com
|
e6292fdcda92be09861e3382c2ca1123c871ae9c
|
a8378b15a6907870056c1696ae463e950a46fbe5
|
/src/jianZhiOffer/sumIsSdeArray/Solution.java
|
7204fcf6a4190a8033c6a16f2bb3f66fcd67b630
|
[] |
no_license
|
CourageDz/LeetCodePro
|
38a90ad713d46911b64c893c7fcae04fb0b20791
|
d0dfeab630357c8172395ff8533e38b5fb9498c5
|
refs/heads/master
| 2020-03-28T14:18:58.656373
| 2020-03-18T05:00:12
| 2020-03-18T05:00:12
| 148,476,780
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,910
|
java
|
package jianZhiOffer.sumIsSdeArray;
import java.util.ArrayList;
import java.util.Collections;
/***
* 题目描述
* 小明很喜欢数学,有一天他在做数学作业时,要求计算出9~16的和,他马上就写出了正确答案是100。但是他并不满足于此,
* 他在想究竟有多少种连续的正数序列的和为100(至少包括两个数)。没多久,他就得到另一组连续正数和为100的序列:18,19,20,21,22。
* 现在把问题交给你,你能不能也很快的找出所有和为S的连续正数序列? Good Luck!
* 输出描述:
* 输出所有和为S的连续正数序列。序列内按照从小至大的顺序,序列间按照开始数字从小到大的顺序
*
*/
public class Solution {
public ArrayList<ArrayList<Integer>> FindContinuousSequence(int sum) {
if (sum < 0) {
return null;
}
ArrayList<ArrayList<Integer>> arrays = new ArrayList<>();
int x = sum / 2 + 1;
for (int i = 1; i <= x; i++) {
double temp = sum * 2 + Math.pow((i - 0.5), 2);
int end = (int) (Math.sqrt(temp) - 0.5);
if (Math.pow(end + 0.5, 2) == temp) {
ArrayList<Integer> list = new ArrayList<>();
for (int j = i; j <= end; j++) {
list.add(j);
}
arrays.add(list);
}
}
Collections.sort(arrays, (a, b) -> b.size() - a.size());
return arrays;
}
public static void main(String[] args) {
Solution sol = new Solution();
ArrayList<ArrayList<Integer>> arrays = sol.FindContinuousSequence(3);
for (int i = 0; i < arrays.size(); i++) {
ArrayList<Integer> list = arrays.get(i);
for (int j = 0; j < list.size(); j++) {
System.out.printf(" " + list.get(j));
}
System.out.println();
}
}
}
|
[
"39013348@qq.com"
] |
39013348@qq.com
|
1037e962a1ed73369b9eb8c6bbf7ee309bf48e6a
|
f009dc33f9624aac592cb66c71a461270f932ffa
|
/src/main/java/com/alipay/api/domain/KoubeiMarketingCampaignDetailInfoQueryModel.java
|
ae470ae7f419c7f01551184d847f4dc9990e4930
|
[
"Apache-2.0"
] |
permissive
|
1093445609/alipay-sdk-java-all
|
d685f635af9ac587bb8288def54d94e399412542
|
6bb77665389ba27f47d71cb7fa747109fe713f04
|
refs/heads/master
| 2021-04-02T16:49:18.593902
| 2020-03-06T03:04:53
| 2020-03-06T03:04:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,032
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 查询活动的详情信息
*
* @author auto create
* @since 1.0, 2018-01-10 14:14:30
*/
public class KoubeiMarketingCampaignDetailInfoQueryModel extends AlipayObject {
private static final long serialVersionUID = 5136678699659421717L;
/**
* 营销活动id,配合《店铺优惠查询alipay.offline.market.shop.discount.query 》接口使用,该接口返回camp_list列表中的biz_id则对应该id。
*/
@ApiField("camp_id")
private String campId;
/**
* 适用门店限制返回数量
*/
@ApiField("shop_limit_count")
private Long shopLimitCount;
public String getCampId() {
return this.campId;
}
public void setCampId(String campId) {
this.campId = campId;
}
public Long getShopLimitCount() {
return this.shopLimitCount;
}
public void setShopLimitCount(Long shopLimitCount) {
this.shopLimitCount = shopLimitCount;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
1e090ccb6283d89999c9427f8e5049abd4daa42d
|
648c5208b812f3001119922130e316b3158120c3
|
/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/handlers/PodHandler.java
|
2825a15d0a025761ca091b2fdd77bef888208644
|
[
"Apache-2.0"
] |
permissive
|
ymruan/kubernetes-client
|
304e7b344fed474c440438d5e35e41165c26be7d
|
f81864fdef00fe7a93362bafbe35b5e399bf944a
|
refs/heads/master
| 2020-12-03T01:46:02.419750
| 2015-11-10T21:05:52
| 2015-11-10T21:09:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,558
|
java
|
/**
* Copyright (C) 2015 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.kubernetes.client.handlers;
import com.squareup.okhttp.OkHttpClient;
import io.fabric8.kubernetes.api.model.Pod;
import io.fabric8.kubernetes.client.Config;
import io.fabric8.kubernetes.client.ResourceHandler;
import io.fabric8.kubernetes.client.dsl.internal.PodOperationsImpl;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Service;
@Component
@Service
public class PodHandler implements ResourceHandler<Pod> {
@Override
public String getKind() {
return Pod.class.getSimpleName();
}
@Override
public Pod create(OkHttpClient client, Config config, String namespace, Pod item) {
return new PodOperationsImpl(client, config, namespace, null, true, item).create();
}
@Override
public Boolean delete(OkHttpClient client, Config config, String namespace, Pod item) {
return new PodOperationsImpl(client, config, namespace, null, true, item).delete(item);
}
}
|
[
"iocanel@gmail.com"
] |
iocanel@gmail.com
|
fc97a77e841b58f4d5e01103c8233d83a0828f54
|
b1eee7989acdad29096ef323a7609b5af2828792
|
/AppDyC/PjMigradorDyC/src/main/java/mx/gob/sat/siat/migradordyc/ManejadorSecuencias.java
|
7ccff7a344c6c1eb6fcb4e6583286e940af1fcd2
|
[] |
no_license
|
xtaticzero/AppDyC
|
2185e5d25840ddbb73d0de6c6c0d61a497a6cdfa
|
1562a358558323ef6adb84fb0e70ba7560200bda
|
refs/heads/master
| 2021-09-09T21:50:41.930101
| 2018-03-19T21:38:45
| 2018-03-19T21:38:45
| 73,757,634
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,139
|
java
|
package mx.gob.sat.siat.migradordyc;
import java.util.List;
import mx.gob.sat.siat.migradordyc.dto.SecuenciaDTO;
import mx.gob.sat.siat.migradordyc.mapper.SecuenciaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
@Service
public class ManejadorSecuencias
{
@Autowired
private JdbcTemplate jdbcTemplateOrigen;
@Autowired
private JdbcTemplate jdbcTemplateDestino;
public void sincronizarSecuencias()
{
String query = "SELECT * FROM ALL_SEQUENCES WHERE SEQUENCE_OWNER = 'SIAT_DYC_ADMIN'";
List<SecuenciaDTO> secuenciasOrigen = jdbcTemplateOrigen.query(query, new SecuenciaMapper());
List<SecuenciaDTO> secuenciasDestino = jdbcTemplateDestino.query(query, new SecuenciaMapper());
System.out.println("numero de secuencias origen ->" + secuenciasOrigen.size() + "<-");
System.out.println("numero de secuencias destino ->" + secuenciasDestino.size() + "<-");
for(SecuenciaDTO secuenciaDestino : secuenciasDestino)
{
SecuenciaDTO secuenciaOrigen = encontrarSecuencia(secuenciasOrigen, secuenciaDestino);
if(secuenciaOrigen != null)
{
if(!estanSincronizadas(secuenciaOrigen, secuenciaDestino))
sincronizarSecuencias(secuenciaOrigen, secuenciaDestino);
else
System.err.println("La secuencia ->" + secuenciaDestino.getSEQUENCE_NAME() + "<- esta Sincronizada en las bases de datos, no se realizará ninguna acción");
}
else
System.err.println("La secuencia ->" + secuenciaDestino.getSEQUENCE_NAME() + "<- NO existe en la base de datos Origen");
}
}
private boolean estanSincronizadas(SecuenciaDTO secuencia1, SecuenciaDTO secuencia2)
{
int numActual1 = secuencia1.getLAST_NUMBER().intValue() - secuencia1.getINCREMENT_BY().intValue();
int numActual2 = secuencia2.getLAST_NUMBER().intValue() - secuencia2.getINCREMENT_BY().intValue();
return numActual1 == numActual2;
}
private SecuenciaDTO encontrarSecuencia(List<SecuenciaDTO> secuencias, SecuenciaDTO secuencia)
{
for(SecuenciaDTO secAux : secuencias){
if(secuencia.getSEQUENCE_NAME().equals(secAux.getSEQUENCE_NAME()))
return secAux;
}
return null;
}
public void sincronizarSecuencias(SecuenciaDTO so, SecuenciaDTO sd)
{
int numActualO = 0;
int numActualD = 0;
int incrementAux = 0;
try
{
numActualO = so.getLAST_NUMBER().intValue() - so.getINCREMENT_BY().intValue();
numActualD = sd.getLAST_NUMBER().intValue() - sd.getINCREMENT_BY().intValue();
incrementAux = numActualO - numActualD;
String sentAlterIncrement = "Alter Sequence " + sd.getSEQUENCE_NAME() + " Increment By " + incrementAux;
jdbcTemplateDestino.update(sentAlterIncrement);
String queryNextValue = "Select " + sd.getSEQUENCE_NAME() +".Nextval From Dual";
jdbcTemplateDestino.queryForObject(queryNextValue, Integer.class);
String sentNormalizarIncrement = "Alter Sequence " + sd.getSEQUENCE_NAME() + " Increment By " + so.getINCREMENT_BY().intValue();
jdbcTemplateDestino.update(sentNormalizarIncrement);
}
catch(Exception e)
{
System.err.println("Ocurrió un error al sincronizarSecuencias ->" + e.getMessage() + "<- ---------------------");
System.err.println("numero actual sentencia Origen ->" + numActualO);
System.err.println("numero actual sentencia Destino ->" + numActualD);
System.err.println("incremento auxiliar ->" + incrementAux);
System.err.println("------------------------------------------------------------------------");
}
}
public void inicializarSecuencias()
{
System.out.println("inicializar secuencias manejador");
String query = "SELECT * FROM ALL_SEQUENCES WHERE SEQUENCE_OWNER = 'SIAT_DYC_ADMIN'";
List<SecuenciaDTO> secuenciasOrigen = jdbcTemplateOrigen.query(query, new SecuenciaMapper());
for(SecuenciaDTO secuencia : secuenciasOrigen){
inicializarSecuencia(secuencia, jdbcTemplateOrigen);
}
}
public void inicializarSecuencia(SecuenciaDTO secuencia, JdbcTemplate jdbcTemplate)
{
int incrementAux = 0;
try
{
int numActual = secuencia.getLAST_NUMBER().intValue() - secuencia.getINCREMENT_BY().intValue();
if(numActual == 0){
System.out.println("La secuencia " + secuencia.getSEQUENCE_NAME() + " esta Inicializada; NO se realizará accion");
}
String x = "alter sequence " + secuencia.getSEQUENCE_NAME() + " MINVALUE 0";
jdbcTemplate.update(x);
incrementAux = numActual * -1;
String sentAlterIncrement = "Alter Sequence " + secuencia.getSEQUENCE_NAME() + " Increment By " + incrementAux;
jdbcTemplate.update(sentAlterIncrement);
String queryNextValue = "Select " + secuencia.getSEQUENCE_NAME() +".Nextval From Dual";
jdbcTemplate.queryForObject(queryNextValue, Integer.class);
String sentNormalizarIncrement = "Alter Sequence " + secuencia.getSEQUENCE_NAME() + " Increment By 1";
jdbcTemplate.update(sentNormalizarIncrement);
}
catch(Exception e)
{
System.err.println("Ocurrió un error al inicializar secuencia ->" + e.getMessage() + "<- ---------------------");
e.printStackTrace();
System.err.println("------------------------------------------------------------------------");
return;
}
System.out.println("se inicializo correctamente la setencia ->" + secuencia.getSEQUENCE_NAME());
}
}
|
[
"emmanuel.estrada@stksat.com"
] |
emmanuel.estrada@stksat.com
|
c66c12168c8faa251f51697fc24afce02fc09eb9
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-12798-131-28-MOEAD-WeightedSum:TestLen:CallDiversity/org/xwiki/wysiwyg/server/filter/ConversionFilter_ESTest.java
|
3ae94b0d6a4c5b6e3529258c1574f7da13f53b40
|
[] |
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
| 570
|
java
|
/*
* This file was automatically generated by EvoSuite
* Thu Apr 09 00:30:00 UTC 2020
*/
package org.xwiki.wysiwyg.server.filter;
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 ConversionFilter_ESTest extends ConversionFilter_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
7b2744a909aad4e4bdea1299a3b3caf6b778a587
|
041b673c9b18f24705fcebcbdc21f4f3c236487a
|
/app/src/main/java/com/homecaravan/android/models/ResuggestDetail.java
|
6cdfd69981da0b095db894dc45775678efe6a0ef
|
[] |
no_license
|
Rainy1193/HCDemo
|
63ed54d42e65cf17ba4873c424a7e5f27bc6519e
|
66498a0892e000f04aa30932b67106344a96ac8c
|
refs/heads/master
| 2021-09-04T20:08:27.932681
| 2018-01-22T01:55:26
| 2018-01-22T01:55:26
| 107,510,248
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,844
|
java
|
package com.homecaravan.android.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
/**
* Created by RAINY on 5/3/2016.
*/
public class ResuggestDetail {
@SerializedName("success")
@Expose
private String success;
@SerializedName("message")
@Expose
private String message;
@SerializedName("code")
@Expose
private String code;
@SerializedName("data")
@Expose
private ResuggestData data;
public class ResuggestData{
@SerializedName("SUGGESTION_ID")
@Expose
private String suggestionId;
@SerializedName("EVENTS")
@Expose
private ArrayList<Event> events;
@SerializedName("LISTING_DETAIL")
@Expose
private ListingDetailData dataListingDetail;
public String getSuggestionId() {
return suggestionId;
}
public void setSuggestionId(String suggestionId) {
this.suggestionId = suggestionId;
}
public ArrayList<Event> getEvents() {
return events;
}
public void setEvents(ArrayList<Event> events) {
this.events = events;
}
public ListingDetailData getDataListingDetail() {
return dataListingDetail;
}
public void setDataListingDetail(ListingDetailData dataListingDetail) {
this.dataListingDetail = dataListingDetail;
}
public class Event{
@SerializedName("ID")
@Expose
private String id;
@SerializedName("START")
@Expose
private String start;
@SerializedName("END")
@Expose
private String end;
@SerializedName("DATE")
@Expose
private String date;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getStart() {
return start;
}
public void setStart(String start) {
this.start = start;
}
public String getEnd() {
return end;
}
public void setEnd(String end) {
this.end = end;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
}
}
public ResuggestData getData() {
return data;
}
public String getCode() {
return code;
}
public String getMessage() {
return message;
}
public String getSuccess() {
return success;
}
}
|
[
"daupraoc@gmail.com"
] |
daupraoc@gmail.com
|
96fb3d058a56416f041a73f1e6307f8b470b6963
|
65bf3106a27724ae97eeb5c8996bc314d776b26a
|
/orienteer-core/src/main/java/ru/ydn/orienteer/components/table/DataTableCommandsToolbar.java
|
1af6b818a1abf999c37f06bbb2931f1a984df8be
|
[
"Apache-2.0"
] |
permissive
|
pombredanne/Orienteer
|
303a7e7e65348955c694b0530e47ed433e992888
|
ce8a38f17874429b9bb117817a50d09a37aed1de
|
refs/heads/master
| 2021-01-24T14:56:25.821648
| 2014-12-29T22:59:06
| 2014-12-29T22:59:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,074
|
java
|
package ru.ydn.orienteer.components.table;
import org.apache.wicket.AttributeModifier;
import org.apache.wicket.Component;
import org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractToolbar;
import org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.repeater.RepeatingView;
import org.apache.wicket.model.Model;
import org.apache.wicket.util.visit.IVisit;
import org.apache.wicket.util.visit.IVisitor;
import ru.ydn.orienteer.components.commands.Command;
public class DataTableCommandsToolbar<T> extends AbstractToolbar
{
/**
*
*/
private static final long serialVersionUID = 1L;
private RepeatingView commands;
public DataTableCommandsToolbar(DataTable<T, ?> table)
{
super(table);
WebMarkupContainer span = new WebMarkupContainer("span");
span.add(new AttributeModifier("colspan", new Model<String>(String.valueOf(table.getColumns().size()))));
commands = new RepeatingView("commands");
span.add(commands);
add(span);
}
public DataTableCommandsToolbar<T> add(Command<T> command)
{
commands.add(command);
return this;
}
public String newChildId()
{
return commands.newChildId();
}
@SuppressWarnings("unchecked")
@Override
public DataTable<T, ?> getTable() {
return (DataTable<T, ?>)super.getTable();
}
@Override
protected void onConfigure() {
super.onConfigure();
Boolean ret = commands.visitChildren(new IVisitor<Component, Boolean>()
{
public void component(Component component, IVisit<Boolean> visit)
{
component.configure();
if(component.determineVisibility())
{
visit.stop(true);
}
else
{
visit.dontGoDeeper();
}
}
});
setVisible(ret!=null?ret:false);
}
}
|
[
"phantom@ydn.ru"
] |
phantom@ydn.ru
|
507063b1ae4b4923e1dc750172d26b307977e91b
|
f91f56c85be271f6e5db7a17caa2395fccd09082
|
/externals/src/main/java/llnl/gnem/core/gui/waveform/plotPrefs/LabelPrefs.java
|
1513d1c10ce974763f756f5de9f4eb5d8ba52005
|
[
"Apache-2.0"
] |
permissive
|
imtseismic/Lgcoda
|
e8c078181169efb82c4b9427971b5d41c8a03927
|
41f251c141d130a87651db480a00586efe40e711
|
refs/heads/master
| 2022-07-17T21:37:03.298416
| 2020-04-03T18:41:56
| 2020-04-03T18:41:56
| 265,893,735
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,278
|
java
|
/*
* Copyright (c) 2018, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory
* CODE-743439.
* All rights reserved.
* This file is part of CCT. For details, see https://github.com/LLNL/coda-calibration-tool.
*
* Licensed under the Apache License, Version 2.0 (the “Licensee”); you may not use this file except in compliance with the License. You may obtain a copy of the License at:
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and limitations under the license.
*
* This work was performed under the auspices of the U.S. Department of Energy
* by Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344.
*/
package llnl.gnem.core.gui.waveform.plotPrefs;
import java.awt.Color;
import java.awt.Font;
import java.io.Serializable;
/**
*
* @author dodge1
*/
public class LabelPrefs implements Serializable {
private String fontName = "Arial";
private Color color = Color.black;
private int fontSize = 12;
private int fontStyle = Font.PLAIN;
private double offset = 6;
static final long serialVersionUID = 7757692269404713358L;
/**
*
* @return the font to set
*/
public Font getFont() {
return new Font(fontName, fontStyle, fontSize);
}
/**
*
* @param font
* to set
*/
public void setFont(Font font) {
fontName = font.getName();
fontSize = font.getSize();
fontStyle = font.getStyle();
}
/**
* @return the color
*/
public Color getFontColor() {
return color;
}
/**
* @param color
* the color to set
*/
public void setFontColor(Color color) {
this.color = color;
}
/**
* @return the offset
*/
public double getOffset() {
return offset;
}
/**
* @param offset
* the offset to set
*/
public void setOffset(double offset) {
this.offset = offset;
}
}
|
[
"barno1@llnl.gov"
] |
barno1@llnl.gov
|
57ca2f637f875fb2fca65b356b7c6f6cc8f0430b
|
389351aa56227d8885b50d1e4bd85527a67a44a6
|
/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/TapeState.java
|
867f5d941840be0992e91e1a66e7c5dab77f0b60
|
[
"Apache-2.0"
] |
permissive
|
berkeleysquare/ds3_java_sdk
|
b4b1bb2a1ad2f5d32a9e2e1301f5cce931b1051f
|
e8fac9d1d16e277b0a5f18b34d5865294b84b24d
|
refs/heads/master
| 2021-01-18T15:19:20.050430
| 2016-08-23T19:18:31
| 2016-08-23T19:18:31
| 43,761,136
| 0
| 0
| null | 2015-10-06T15:56:19
| 2015-10-06T15:56:19
| null |
UTF-8
|
Java
| false
| false
| 1,368
|
java
|
/*
* ******************************************************************************
* Copyright 2014-2015 Spectra Logic Corporation. 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. A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the "license" file accompanying this file.
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
* ****************************************************************************
*/
// This code is auto-generated, do not modify
package com.spectralogic.ds3client.models;
public enum TapeState {
NORMAL,
OFFLINE,
ONLINE_PENDING,
ONLINE_IN_PROGRESS,
PENDING_INSPECTION,
UNKNOWN,
DATA_CHECKPOINT_FAILURE,
DATA_CHECKPOINT_FAILURE_DUE_TO_READ_ONLY,
DATA_CHECKPOINT_MISSING,
LTFS_WITH_FOREIGN_DATA,
FOREIGN,
IMPORT_PENDING,
IMPORT_IN_PROGRESS,
INCOMPATIBLE,
LOST,
BAD,
SERIAL_NUMBER_MISMATCH,
BAR_CODE_MISSING,
FORMAT_PENDING,
FORMAT_IN_PROGRESS,
EJECT_TO_EE_IN_PROGRESS,
EJECT_FROM_EE_PENDING,
EJECTED
}
|
[
"ryan.moore@greyrocksoft.com"
] |
ryan.moore@greyrocksoft.com
|
a783b202c8d0dfad009086bac757f91d2f0389c9
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Chart/25/org/jfree/chart/axis/LogAxis_getMinorTickCount_257.java
|
e6bf568de8c13e8c0b450dae861d467ebf61dde5
|
[] |
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,209
|
java
|
org jfree chart axi
numer axi logarithm scale
altern link logarithm axi logarithmicaxi
log axi logaxi axi valueaxi
return number minor tick mark displai
number minor tick mark displai
set minor tick count setminortickcount
minor tick count getminortickcount
minor tick count minortickcount
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
8a4a20ae1a5391b16662733dbbe92e43dfeefcca
|
ace8b0e7a979a0b20c47a97c179f45fa6a24390d
|
/src/java/com/crm/partner/bean/MerchantEntry.java
|
5810208dec7da8bd82f6e12c60b9c40a45c9141d
|
[] |
no_license
|
hungdt138/report_cp
|
f2eb2e6be7b763fbc84c6b20c377008c15ede3d1
|
4548db992f8701f5212ed566b286cd35b2cbdf69
|
refs/heads/master
| 2016-09-05T19:13:05.682613
| 2014-09-23T15:07:11
| 2014-09-23T15:07:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,635
|
java
|
/**
*
*/
package com.crm.partner.bean;
/**
* @author hungdt
*
*/
public class MerchantEntry {
private long merchantId = 0;
private String alias = "";
private String username = "";
private String password = "";
private String host = "";
private int port = 0;
private String serviceAddress = "";
private int status = 3;
public long getMerchantId() {
return merchantId;
}
public void setMerchantId(long merchantId) {
this.merchantId = merchantId;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getHost() {
return host;
}
public void setHost(String host) {
this.host = host;
}
public int getPort() {
return port;
}
public void setPort(int port) {
this.port = port;
}
public String getAlias() {
return alias;
}
public void setAlias(String alias) {
this.alias = alias;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public String getServiceAddress() {
return serviceAddress;
}
public void setServiceAddress(String serviceAddress) {
this.serviceAddress = serviceAddress;
}
}
|
[
"hungdt138@outlook.com"
] |
hungdt138@outlook.com
|
2a3e5255a480fe16feb1f405b61f296663b1c783
|
78dd7a73c0f84dff4cf9f1ad8d54f40dd3dba31f
|
/app/src/main/java/com/randomappsinc/studentpicker/database/NameListDataManager.java
|
263dca453d2c751c51271a17f1169f1df6aed78f
|
[
"Apache-2.0"
] |
permissive
|
rgboyko/Random-Name-Picker
|
0fdd1a81f5fa449500610629ae1e13cd92d61c54
|
4688cc244840a50600ab7d093ec127bee5c461a5
|
refs/heads/master
| 2020-11-24T05:12:08.053302
| 2019-12-12T18:53:12
| 2019-12-12T18:53:12
| 227,979,667
| 0
| 0
| null | 2019-12-14T06:52:18
| 2019-12-14T06:52:18
| null |
UTF-8
|
Java
| false
| false
| 2,715
|
java
|
package com.randomappsinc.studentpicker.database;
import android.content.Context;
import com.randomappsinc.studentpicker.models.ListInfo;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
public class NameListDataManager {
public interface Listener {
void onNameAdded(String name, int amount, String listName);
void onNameDeleted(String name, int amount, String listName);
void onNameChanged(String oldName, String newName, int amount, String listName);
void onNameListsImported(Map<String, Integer> nameAmounts, String listName);
}
private static NameListDataManager instance;
public static NameListDataManager get() {
if (instance == null) {
instance = getSync();
}
return instance;
}
private static synchronized NameListDataManager getSync() {
if (instance == null) {
instance = new NameListDataManager();
}
return instance;
}
private Set<Listener> listeners = new HashSet<>();
public void registerListener(Listener listener) {
listeners.add(listener);
}
public void unregisterListener(Listener listener) {
listeners.remove(listener);
}
public void addName(Context context, String name, int amount, String listName) {
DataSource dataSource = new DataSource(context);
dataSource.addNames(name, listName, amount);
for (Listener listener : listeners) {
listener.onNameAdded(name, amount, listName);
}
}
public void deleteName(Context context, String name, int amount, String listName) {
DataSource dataSource = new DataSource(context);
dataSource.removeNames(name, listName, amount);
for (Listener listener : listeners) {
listener.onNameDeleted(name, amount, listName);
}
}
public void changeName(Context context, String oldName, String newName, int amount, String listName) {
DataSource dataSource = new DataSource(context);
dataSource.renamePeople(oldName, newName, listName, amount);
for (Listener listener : listeners) {
listener.onNameChanged(oldName, newName, amount, listName);
}
}
public ListInfo importNameLists(Context context, String receivingList, List<String> givingLists) {
DataSource dataSource = new DataSource(context);
Map<String, Integer> change = dataSource.importNamesIntoList(receivingList, givingLists);
for (Listener listener : listeners) {
listener.onNameListsImported(change, receivingList);
}
return dataSource.getListInfo(receivingList);
}
}
|
[
"chessnone@yahoo.com"
] |
chessnone@yahoo.com
|
39553c63a64fa126ab8560d0a2cf626ca5bb3832
|
c16b8990ec3c297ac36aecabb662a6ce124dd940
|
/base/src/org/openXpertya/util/AccumulableTask.java
|
6b0b2f01238d028099cb5e8986668bed71aca38b
|
[] |
no_license
|
Lucas128/libertya
|
6decae77481ba0756a9a14998824f163001f4b7c
|
d2e8877a0342af5796c74809edabf726b9ff50dc
|
refs/heads/master
| 2021-01-10T16:52:41.332435
| 2015-05-26T19:34:39
| 2015-05-26T19:34:39
| 36,461,214
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 687
|
java
|
package org.openXpertya.util;
public interface AccumulableTask {
public final String DB_PSTATEMENT = "PreparedStatement en BBDD";
public final String DB_MODIFICATION = "Modificacion en BBDD";
public final String DB_SELECTION = "Seleccion en BBDD";
public final String NEW_ORDER_LINE = "Instanciar lineas de pedido";
public final String NEW_INVOICE_LINE = "Instanciar lineas de factura";
public final String NEW_INOUT_LINE = "Instanciar lineas de remito";
public final String SAVE_ORDER_LINE = "Persistir lineas de pedido";
public final String SAVE_INVOICE_LINE = "Persistir lineas de factura";
public final String SAVE_INOUT_LINE = "Persistir lineas de remito";
}
|
[
"dev.disytel@gmail.com"
] |
dev.disytel@gmail.com
|
75ea82c67eec00ff38fd1e3ff05566c7009d5612
|
43b3baf795f5780fd8df6e208eea9c1fbde13733
|
/src/main/java/edu/mum/ea/socialnetwork/repository/VerificationTokenRepository.java
|
e328f91bc4ee0e96f3ca8122a0f95701e3019cc3
|
[] |
no_license
|
mjachowdhury/FYPSocialBugs
|
dc1a4bb282ee03fe452f38bd3e06b6b7b5cdcaed
|
e7f48462d90c30d1caf753a3de490221dae96cee
|
refs/heads/master
| 2022-04-25T18:05:53.511787
| 2020-04-18T01:01:37
| 2020-04-18T01:01:37
| 258,905,900
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 406
|
java
|
package edu.mum.ea.socialnetwork.repository;
import edu.mum.ea.socialnetwork.domain.User;
import edu.mum.ea.socialnetwork.domain.VerificationToken;
import org.springframework.data.jpa.repository.JpaRepository;
public interface VerificationTokenRepository extends JpaRepository<VerificationToken, Long> {
VerificationToken findByToken(String token);
VerificationToken findByUser(User user);
}
|
[
"study.computing2016@gmail.com"
] |
study.computing2016@gmail.com
|
21f0f301e2c77f489483497e891f09b13c6f0d5a
|
452e7ffd787957f401e13dc53425a5f4ad752092
|
/e本通 统计管理(改下代码,就可以运行了)/ZBETuch_SM/ZBETuch_SM/src/com/fc/main/views/MainActivity.java
|
4147c3529dd1b25dff52425166d5ea43367772f0
|
[] |
no_license
|
2381447237/gongsiCode
|
5807ee03f314dbc2a58e19a144b83387141dfa7d
|
17bf3fb0127462bccb972e6fac590dc16e0b5aeb
|
refs/heads/master
| 2020-03-12T19:28:44.886880
| 2018-04-24T02:40:28
| 2018-04-24T02:40:28
| 130,785,146
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,946
|
java
|
package com.fc.main.views;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.Window;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.GridView;
import com.fc.main.beans.GridAdapter;
import com.fc.meetingpost.views.MeetingListActivity;
import com.fc.person.views.AttentionActivity;
import com.fc.person.views.PersoninfoActivity;
import com.fc.personpolicy.views.InsertIdCardActivity;
import com.fc.policy.views.MainPolicyActivity;
import com.fc.recritmentmanager.views.NumberCenterActivity;
import com.fc.recruitment.views.RecuritmentListActivity;
import com.fc.reportform.views.ReportFormListActivity;
import com.fc.resources.views.ResourcesMainActivity;
import com.fc.summary.views.WorkSummaryActivity;
import com.fc.work.views.WorkTongZhiActivity;
import com.fc.workstatus.views.WorkStatusActivity;
import com.fc.worktodate.views.WorkToDateListActivity;
import com.fc.baobiao.views.QueryFirstActivity;
import com.fc.baobiao.views.ReportActivity;
import com.fc.company.views.CompanyQueryActivity;
import com.fc.download.views.FileDownloadActivity;
import com.fc.first.beans.LocationInformation;
import com.fc.first.views.FirstPageActivity;
import com.fc.first.views.GetNewsListActivity;
import com.fc.gradeate.views.GradeateListActivity;
import com.fc.invite.views.ZaoPinQueryActivity;
import com.fc.zbetuch_sm.R;
/**
* 九宫格主界面的展示
*
* @author hxl
*
*/
public class MainActivity extends Activity implements OnItemClickListener {
private Activity mContext = this;
private GridView gridview;// 网格view
private GridAdapter adapter;// 网格适配器
private ArrayList<LocationInformation> locationlist;
private int imgIds[] = new int[] { R.drawable.baobiaotongji,
R.drawable.meetingpost, R.drawable.workpost,
R.drawable.reportform_read, R.drawable.workstatus,
R.drawable.shiyetongji, R.drawable.shujuzhongxin,
R.drawable.mainjy, R.drawable.personpolicy };//初始九宫格图片 mainempty(空图片)
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// 设置屏幕无标题
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.activity_main);
Intent it = MainActivity.this.getIntent();
locationlist = (ArrayList<LocationInformation>) it
.getSerializableExtra("locationlist");
gridview = (GridView) findViewById(R.id.gridView1);
adapter = new GridAdapter(imgIds, this);
gridview.setAdapter(adapter);
gridview.setOnItemClickListener(this);
Intent intent = new Intent("com.fc.main.myservice.MainService");
startService(intent);
}
/**
* 点击事件的处理
*/
@Override
public void onItemClick(AdapterView<?> parent, View view, int position,
long id) {
switch (position) {
case 0:
// 报表统计
Intent reportiIntent = new Intent(MainActivity.this,
ReportActivity.class);
startActivity(reportiIntent);
break;
case 1:
// 会议通知
Intent meetingPostIntent = new Intent(mContext,MeetingListActivity.class);
startActivity(meetingPostIntent);
break;
case 2:
//工作通知
Intent intent=new Intent(mContext, WorkTongZhiActivity.class);
startActivity(intent);
break;
case 3:
//报表查阅
Intent reportFormIntent = new Intent(mContext,ReportFormListActivity.class);
startActivity(reportFormIntent);
break;
case 4:
//工作动态
Intent workstatusintent=new Intent(mContext, WorkStatusActivity.class);
startActivity(workstatusintent);
break;
case 5:
// 失业统计
Intent resourceIntent = new Intent(mContext,
ResourcesMainActivity.class);
startActivity(resourceIntent);
break;
case 6:
//数据中心
Intent numberCenterIntent = new Intent(mContext,NumberCenterActivity.class);
startActivity(numberCenterIntent);
break;
case 7:
// 就业政策
Intent intent0 = new Intent(mContext, InsertIdCardActivity.class);
intent0.putExtra("type", "就业");
startActivity(intent0);
break;
case 8:
// 政策服务
Intent zhenceIntent = new Intent(MainActivity.this,
InsertIdCardActivity.class);
zhenceIntent.putExtra("type", "创业");
startActivity(zhenceIntent);
break;
default:
break;
}
}
@Override
protected void onResume() {
super.onResume();
// MainService.closeAllServices(this);
}
/**
* 重写back键监听事件,清除以前所有界面,返回到首页
*/
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK
&& event.getAction() == KeyEvent.ACTION_DOWN) {
Intent intent = new Intent(MainActivity.this,
FirstPageActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
}
return false;
}
}
|
[
"2381447237@qq.com"
] |
2381447237@qq.com
|
65afb4ef40ccf2fa196b26df65e1b4b34b367bd0
|
4abd603f82fdfa5f5503c212605f35979b77c406
|
/html/Programs/hw0/80d48e33535cf885e3574fb3d9ccf95f/Bingo.java
|
02c2074a12dba712846b7a36e183e00175218727
|
[] |
no_license
|
dn070017/1042-PDSA
|
b23070f51946c8ac708d3ab9f447ab8185bd2a34
|
5e7d7b1b2c9d751a93de9725316aa3b8f59652e6
|
refs/heads/master
| 2020-03-20T12:13:43.229042
| 2018-06-15T01:00:48
| 2018-06-15T01:00:48
| 137,424,305
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,310
|
java
|
//package Bingo;
import java.io.FileReader;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.Arrays;
public class Bingo {
public static void main(String[] args) throws IOException {
// read file from args[0] in Java 7 style
FileReader fr = new FileReader(""C:\\Users\\余軒\\Documents\\algs4\\Bingo\\src\\Bingo\\input.txt"");
BufferedReader br = new BufferedReader(fr);
// read a line and split by ','
String[] data= new String[2];
data = br.readLine().split("","");
// store the first integer in variable stringCount (number of announced strings)
int stringCount = Integer.parseInt(data[0]);
// store the second integer in variable num (dimension of matrix: num * num)
int num = Integer.parseInt(data[1]);
// initilization of a String array in Java
String[] announce = new String[stringCount];
String[][] matrix = new String[num][num];
System.out.printf(""number of announced strings: %d\ndimension of matrix: %d x %d\n"", stringCount, num, num);
String[] va = new String[2]; //pointer
va = br.readLine().split("","");
System.out.println(va[0]+"",""+va[1]);
String[] country ;
country= new String[num];
String rd=null;
int ct=0;
while ((rd = br.readLine())!=null)
{
country = rd.split("","");
matrix[ct]=country;
for (int i=0;i<num;i++)
System.out.print(matrix[ct][i]+"",""); //depointer
System.out.println(); //換行
ct++;
}
// System.out.println(matrix[0][1]);
boolean[][] b = new boolean[num][num];
for (int i=0;i<num;i++){
for (int j=0;j<num;j++)
{
if (va[0].equals(matrix[i][j]))
{
b[i][j] = true;
}
else b[i][j] = va[1].equals(matrix[i][j]); //若是為true,不是為false
}
}
// System.out.println(b[2][2]);
int count = 0;
//horizatal
for (int i=0;i<num;i++){
if (b[i][0]==b[i][1]&&b[i][1]==b[i][2]&&b[i][2]==true)
{
count++;
}
}
//vertical
for(int j=0;j<num;j++){
if (b[0][j]==b[1][j]&&b[1][j]==b[2][j]&&b[2][j]==true)
{
count++;
}
}
//diaonal
if (b[0][0]==b[1][1]&&b[1][1]==b[2][2]&&b[2][2]==true)
{
count++;
}
if(!(b[2][0]==b[1][1]&&b[1][1]==b[0][2]&&b[0][2]==true))
{
} else {
count++;
}
System.out.println(count);
// printf in Java (you should comment out or delete this in your final submission)
/* now you can write your own solution to hw0
* you can follow the instruction described below:
*
* 1. read the rest content of the file
* 2. store the announce strings (2nd line of the file) in variable announce
* 3. store the matrix (from the 3rd line to the end of the file) in variable matrix
* 4. compare the matrix and announce strings (this is the tricky part)
* 5. output how many 'straight line' are there in the matrix
*
* [note]
* you can use every data structure in standard Java packages (Java 8 supported)
* the packages in stdlib.jar and algs4.jar are also available for you to use
*
* [hint]
.
* 2. some data structure such as HashSet, HashMap, Arrays, ArrayList, Vector are very
* useful for solving problems.
*/
}
}
|
[
"dn070017@gmail.com"
] |
dn070017@gmail.com
|
31e1b34e1139ad0d21e0d203b7a621a6e95e700c
|
a81c07a5663d967c432a61d0b4a09de5187be87b
|
/chrome/browser/ui/android/widget/junit/src/org/chromium/chrome/browser/ui/widget/CompositeTouchDelegateTest.java
|
29637ecd3bd69fad9141c3f6d95e81233fd099d7
|
[
"BSD-3-Clause"
] |
permissive
|
junxuezheng/chromium
|
c401dec07f19878501801c9e9205a703e8643031
|
381ce9d478b684e0df5d149f59350e3bc634dad3
|
refs/heads/master
| 2023-02-28T17:07:31.342118
| 2019-09-03T01:42:42
| 2019-09-03T01:42:42
| 205,967,014
| 2
| 0
|
BSD-3-Clause
| 2019-09-03T01:48:23
| 2019-09-03T01:48:23
| null |
UTF-8
|
Java
| false
| false
| 2,645
|
java
|
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.ui.widget;
import android.view.MotionEvent;
import android.view.TouchDelegate;
import android.view.View;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import org.robolectric.annotation.Config;
import org.chromium.base.test.BaseRobolectricTestRunner;
/**
* Tests for CompositeTouchDelegate.
*/
@RunWith(BaseRobolectricTestRunner.class)
@Config(manifest = Config.NONE)
public final class CompositeTouchDelegateTest {
CompositeTouchDelegate mCompositeTouchDelegate;
@Mock
View mMockAncestorView;
@Mock
TouchDelegate mMockTouchDelegate;
@Mock
TouchDelegate mMockOtherTouchDelegate;
@Mock
MotionEvent mMockMotionEvent;
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
mCompositeTouchDelegate = new CompositeTouchDelegate(mMockAncestorView);
mCompositeTouchDelegate.addDelegateForDescendantView(mMockTouchDelegate);
mCompositeTouchDelegate.addDelegateForDescendantView(mMockOtherTouchDelegate);
}
@Test
public void addDelegateForDescendantView_onTouchEventCallsDelegates() {
mCompositeTouchDelegate.onTouchEvent(mMockMotionEvent);
Mockito.verify(mMockTouchDelegate).onTouchEvent(mMockMotionEvent);
Mockito.verify(mMockOtherTouchDelegate).onTouchEvent(mMockMotionEvent);
}
@Test
public void addDelegateForDescendantView_onTouchEventIsHandledByFirst() {
// Signal that the event is handled.
Mockito.when(mMockTouchDelegate.onTouchEvent(mMockMotionEvent)).thenReturn(true);
Assert.assertTrue(mCompositeTouchDelegate.onTouchEvent(mMockMotionEvent));
Mockito.verify(mMockTouchDelegate).onTouchEvent(mMockMotionEvent);
// Event was handled already, so the event won't make it here.
Mockito.verify(mMockOtherTouchDelegate, Mockito.never()).onTouchEvent(mMockMotionEvent);
}
@Test
public void removeDelegateForDescendantView_onTouchEventCallsDelegates() {
mCompositeTouchDelegate.removeDelegateForDescendantView(mMockOtherTouchDelegate);
mCompositeTouchDelegate.onTouchEvent(mMockMotionEvent);
Mockito.verify(mMockTouchDelegate).onTouchEvent(mMockMotionEvent);
Mockito.verify(mMockOtherTouchDelegate, Mockito.never()).onTouchEvent(mMockMotionEvent);
}
}
|
[
"commit-bot@chromium.org"
] |
commit-bot@chromium.org
|
b8d768480d7a569e26095e46cbe37fb8d17357e3
|
856924ea94e1ad1d8be2213bef3df68c4ca4c81c
|
/hasor-core/src/main/java/net/hasor/core/environment/StandardEnvironment.java
|
17e2a18e76fff5cb75a1f26522b98f4c53e1da96
|
[
"Apache-2.0"
] |
permissive
|
forever0523/hasor
|
082c2ffc4e9277ad6bfd8ed2312ca7b7eee505d4
|
59f673e6edaa06c43494a301ed5389f3e618bb22
|
refs/heads/master
| 2022-11-24T03:53:45.346684
| 2020-07-30T05:05:04
| 2020-07-30T05:05:04
| 283,675,596
| 1
| 0
|
Apache-2.0
| 2020-07-30T05:12:32
| 2020-07-30T05:12:31
| null |
UTF-8
|
Java
| false
| false
| 4,429
|
java
|
/*
* Copyright 2008-2009 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 net.hasor.core.environment;
import net.hasor.core.Environment;
import net.hasor.core.aop.AopClassLoader;
import net.hasor.core.setting.AbstractSettings;
import net.hasor.core.setting.StandardContextSettings;
import net.hasor.utils.ResourcesUtils;
import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.net.URL;
import java.util.Map;
/**
* {@link Environment}接口实现类,继承自{@link AbstractEnvironment}。
* @version : 2013-9-11
* @author 赵永春 (zyc@hasor.net)
*/
public class StandardEnvironment extends AbstractEnvironment {
public StandardEnvironment() throws IOException {
this(null, (String) null, null, null);
}
public StandardEnvironment(Object context) throws IOException {
this(context, (String) null, null, null);
}
public StandardEnvironment(Object context, File mainSettings) throws IOException {
this(context, mainSettings, null, null);
}
public StandardEnvironment(Object context, URL mainSettings) throws IOException {
this(context, mainSettings, null, null);
}
public StandardEnvironment(Object context, String mainSettings) throws IOException {
this(context, mainSettings, null, null);
}
public StandardEnvironment(Object context, URI mainSettings) throws IOException {
this(context, mainSettings, null, null);
}
public StandardEnvironment(Object context, File mainSettings, Map<String, String> frameworkEnvConfig, ClassLoader loader) throws IOException {
this(context, toURI(mainSettings), frameworkEnvConfig, loader);
}
public StandardEnvironment(Object context, URL mainSettings, Map<String, String> frameworkEnvConfig, ClassLoader loader) throws IOException {
this(context, toURI(mainSettings), frameworkEnvConfig, loader);
}
public StandardEnvironment(Object context, String mainSettings, Map<String, String> frameworkEnvConfig, ClassLoader loader) throws IOException {
this(context, toURI(mainSettings), frameworkEnvConfig, loader);
}
public StandardEnvironment(Object context, URI mainSettings, Map<String, String> frameworkEnvConfig, ClassLoader loader) throws IOException {
this(context, new StandardContextSettings(mainSettings), frameworkEnvConfig, loader);
}
public StandardEnvironment(Object context, AbstractSettings mainSettings, Map<String, String> frameworkEnvConfig, ClassLoader loader) throws IOException {
super(context, mainSettings);
logger.debug("create Environment, type = StandardEnvironment, mainSettings = {}", mainSettings);
if (loader == null) {
loader = Thread.currentThread().getContextClassLoader();
}
if (!(loader instanceof AopClassLoader)) {
loader = new AopClassLoader(loader);
}
this.setRootLosder(loader);
this.initEnvironment(frameworkEnvConfig);
}
public static URI toURI(Object source) {
if (source == null) {
return null;
}
//
try {
if (source instanceof URI) {
return (URI) source;
}
if (source instanceof URL) {
return ((URL) source).toURI();
}
if (source instanceof File) {
return ((File) source).toURI();
}
if (source instanceof String) {
URL resource = ResourcesUtils.getResource(source.toString());
return resource != null ? resource.toURI() : null;
}
} catch (Exception e) {
logger.error(e.getMessage(), e);
throw new ClassCastException(e.getMessage());
}
//
throw new ClassCastException(source.getClass() + " not convert to URI.");
}
}
|
[
"68978002+zycglt@users.noreply.github.com"
] |
68978002+zycglt@users.noreply.github.com
|
d2580f13aff894251d5882760d0f1c9b5e2c5e9f
|
fa444cda81bf78a21b634718d1b30f078b7087e1
|
/src/main/java/com/learn/patterns/freemanAndFreeman/headfirst/command/custom/macro/simplecommand/BusinessLunchButtonCommand.java
|
dac0986d584807980c6df5c6b68b00cb5e4117dd
|
[] |
no_license
|
dmitrybilyk/interviews
|
8fb4356a77ef63d74db613295bbbb296e3e652b7
|
f48d00bd348bab871304578c0c6c423c24db175e
|
refs/heads/master
| 2022-12-22T08:11:35.366586
| 2022-04-29T17:36:20
| 2022-04-29T17:36:20
| 23,141,851
| 4
| 0
| null | 2022-12-16T03:39:20
| 2014-08-20T08:42:27
|
Java
|
UTF-8
|
Java
| false
| false
| 596
|
java
|
package com.learn.patterns.freemanAndFreeman.headfirst.command.custom.macro.simplecommand;
import java.util.List;
/**
* Created by bid on 8/4/14.
*/
public class BusinessLunchButtonCommand implements Command
{
private List<Command> listOfCommands;
public BusinessLunchButtonCommand(
final List<Command> listOfCommands)
{
this.listOfCommands = listOfCommands;
}
@Override
public void execute()
{
System.out.println("Preparing the business lunch!!!");
for (Command command : listOfCommands)
{
command.execute();
}
}
}
|
[
"dmitry.bilyk@symmetrics.de"
] |
dmitry.bilyk@symmetrics.de
|
3938439d9ffd3b0fb6ceead09589366a1a401e35
|
612d6b6b980bc43c712b7403adba3f27a976f66f
|
/src/osv45/src/de/ivu/util/misc/StreamCopy.java
|
96df7fd97d031c0eaf00eb995d762c8d3afb68f8
|
[] |
no_license
|
ties/kiesraad-ondersteunende_software_verkiezingen
|
2dd328c940f5110b3d1cbb750eb02e6d875b3428
|
8ef3cbafdfd8d6fa9eb81fb75e33ec4433992453
|
refs/heads/master
| 2020-05-26T06:03:52.351505
| 2019-05-20T10:23:16
| 2019-05-20T10:23:16
| 84,993,057
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,331
|
java
|
/*
* --------------------------------------------------------------
* Company : IVU Traffic Technologies AG
* --------------------------------------------------------------
*/
package de.ivu.util.misc;
import java.io.InputStream;
import java.io.OutputStream;
import org.apache.log4j.Logger;
/**
* Copies data from an {@link InputStream} to an {@link OutputStream} .
*
* @author kie
* @created 2001-06-27
* @version $Id $
*/
public final class StreamCopy {
private static final Logger LOGGER = Logger.getLogger(StreamCopy.class);
final static int BUFFER_SIZE = 100000;
final static byte[] buffer = new byte[BUFFER_SIZE];
/** Constructor for the StreamCopy object */
private StreamCopy() {
// forbidding instantiation
}
/**
* copies data from <tt>InputStream</tt> to <tt>OutputStream</tt> , doesn't close the streams.
*
* @param in input stream
* @param out output stream
*/
public static void copy(InputStream in, OutputStream out) {
try {
while (true) {
synchronized (buffer) {
int amountRead = in.read(buffer);
if (amountRead == -1) {
break;
}
out.write(buffer, 0, amountRead);
}
}
} catch (Exception ex) {
LOGGER.error("Copy not successful: " + ex); //$NON-NLS-1$
}
}
}
|
[
"ties@tiesdekock.nl"
] |
ties@tiesdekock.nl
|
201d3e4d86fb47bac77d7dc2908fbf9822f291ac
|
d72cdc4a0158ee3ecae5e1b2d9cdb9bb7e241763
|
/tools/base/perflib/src/main/java/com/android/tools/perflib/heap/RootObj.java
|
b8ff9fd4f2e5aa6fe7a0e810f13110b87ca3313c
|
[] |
no_license
|
yanex/uast-lint-common
|
700fc4ca41a3ed7d76cb33cab280626a0c9d717b
|
34f5953acd5e8c0104bcc2548b2f2e3f5ab8c675
|
refs/heads/master
| 2021-01-20T18:08:31.404596
| 2016-06-08T19:58:58
| 2016-06-08T19:58:58
| 60,629,527
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,387
|
java
|
/*
* Copyright (C) 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.tools.perflib.heap;
import com.android.annotations.NonNull;
import com.android.annotations.Nullable;
public class RootObj extends Instance {
public static final String UNDEFINED_CLASS_NAME = "no class defined!!";
RootType mType = RootType.UNKNOWN;
int mIndex;
int mThread;
public RootObj(RootType type) {
this(type, 0, 0, null);
}
public RootObj(RootType type, long id) {
this(type, id, 0, null);
}
public RootObj(RootType type, long id, int thread, StackTrace stack) {
super(id, stack);
mType = type;
mThread = thread;
}
public final String getClassName(@NonNull Snapshot snapshot) {
ClassObj theClass;
if (mType == RootType.SYSTEM_CLASS) {
theClass = snapshot.findClass(mId);
} else {
theClass = snapshot.findInstance(mId).getClassObj();
}
if (theClass == null) {
return UNDEFINED_CLASS_NAME;
}
return theClass.mClassName;
}
@Override
public void resolveReferences() {
// Do nothing.
}
@Override
public final void accept(Visitor visitor) {
visitor.visitRootObj(this);
Instance instance = getReferredInstance();
if (instance != null) {
visitor.visitLater(null, instance);
}
}
public final String toString() {
return String.format("%s@0x%08x", mType.getName(), mId);
}
@Nullable
public Instance getReferredInstance() {
if (mType == RootType.SYSTEM_CLASS) {
return mHeap.mSnapshot.findClass(mId);
} else {
return mHeap.mSnapshot.findInstance(mId);
}
}
public RootType getRootType() {
return mType;
}
}
|
[
"yan.zhulanow@jetbrains.com"
] |
yan.zhulanow@jetbrains.com
|
ae0fcbdb0eaa43e95717dd11160639136f952459
|
1084fe97ca4f7ffba6584cdae0f29af7fd882bfe
|
/schema/core/src/main/java/net/meerkat/money/MoneyFormat.java
|
d372d710d5f461b5f62f09c61ac70a3385f2f968
|
[] |
no_license
|
ollierob/meerkat
|
668a59d839adf01dcb04dcd35e3185ffe55888a8
|
5c88d567355eb4cb4fee62613b3f6be290dcc19d
|
refs/heads/master
| 2022-11-13T21:14:52.829245
| 2022-10-18T19:53:49
| 2022-10-18T19:53:49
| 54,719,015
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 633
|
java
|
package net.meerkat.money;
import javax.annotation.Nonnull;
/**
*
*/
public interface MoneyFormat {
@Nonnull
String toString(@Nonnull Money<?> money);
MoneyFormat PER_CURRENCY = money -> money.currencyId().format().toString(money);
MoneyFormat UNIQUE_SYMBOL_AMOUNT = money -> money.currencyId().uniqueSymbol() + ' ' + money.value();
MoneyFormat AMOUNT_UNIQUE_SYMBOL = money -> money.value() + " " + money.currencyId().uniqueSymbol();
MoneyFormat CURRENCY_AMOUNT = money -> money.currencyId() + " " + money.value();
MoneyFormat AMOUNT_CURRENCY = money -> money.value() + " " + money.currencyId();
}
|
[
"ollie.robertshaw@gmail.com"
] |
ollie.robertshaw@gmail.com
|
7a371197f32422d9a9fb690a9e06e53a66219de0
|
8ee2f29a9c71f1e86c104c2d7f99e203562d77f3
|
/tests/tests-lib/src/main/java/lib/multi/RunnerConfiguration.java
|
dd0199f4ed4878867e413bc8052c14e07ca01e31
|
[
"Apache-2.0"
] |
permissive
|
sdeleuze/spring-init
|
f7b26a53906a6a2f616b74bb8b00ea965986e922
|
557ff02eb2315f3cec3d5befacd9dd0ea6440222
|
refs/heads/master
| 2022-11-17T10:11:23.611936
| 2020-06-26T13:56:24
| 2020-06-26T13:56:24
| 275,185,683
| 0
| 0
|
Apache-2.0
| 2020-06-26T15:16:41
| 2020-06-26T15:16:41
| null |
UTF-8
|
Java
| false
| false
| 557
|
java
|
package lib.multi;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class RunnerConfiguration {
@Value("${app.value}")
private String message;
@Bean
public CommandLineRunner runner(Bar bar) {
return args -> {
System.out.println("Message: " + message);
System.out.println("Bar: " + bar);
System.out.println("Foo: " + bar.getFoo());
};
}
}
|
[
"dsyer@pivotal.io"
] |
dsyer@pivotal.io
|
4e7c33e8ab5f398acebd2efe50f8371f74671713
|
52b02659f38fed112c0c6faa7a9d5bcf0209a71b
|
/spf4j-experimental/src/main/java/org/spf4j/trace/TracePart.java
|
7c39ee79e0cb46a74051fb3b72babb7f728793b9
|
[] |
no_license
|
andyglick/spf4j
|
4b938f3cc5b2a2431d0e783cd590b96ef3fea6b7
|
e132e8fa8c3efabe7f78a795011a3b9cdd8b3987
|
refs/heads/master
| 2023-07-08T13:48:26.898998
| 2017-01-23T14:57:06
| 2017-01-23T14:57:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 166
|
java
|
package org.spf4j.trace;
/**
*
* @author zoly
*/
public interface TracePart {
CharSequence getTraceId();
CharSequence getNodeId();
boolean isLast();
}
|
[
"zolyfarkas@yahoo.com"
] |
zolyfarkas@yahoo.com
|
2217c0704fb1978439e1cb32d66efa0ae4c5aa2b
|
5e2c20208f1ed4359c97e448741a0d9a2a1a3d9d
|
/edx/src/week3/AntiQuicksort.java
|
c25bdc8ce5f557e14c19c074ef2d974b7ec7a833
|
[] |
no_license
|
yuan-fei/CP-workspace
|
642f13843124e3d077572be66ad5d25aa884fa6c
|
492f8644f1f147d6f7361f23a3dd5fd7d1cb6758
|
refs/heads/master
| 2022-11-01T12:20:55.484167
| 2022-10-06T16:45:12
| 2022-10-06T16:45:12
| 201,081,451
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,775
|
java
|
package week3;
import java.io.BufferedReader;
import java.io.Closeable;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.StringTokenizer;
import java.util.stream.IntStream;
import mooc.EdxIO;
public class AntiQuicksort {
public static void main(String[] args) throws Exception {
// generateLookup();
solve();
}
private static void solve() throws IOException, FileNotFoundException {
// try (FastScanner in = new FastScanner(new File("input.txt"));
// PrintWriter out
// = new PrintWriter("output.txt")) {
// solve(in, out);
// }
try (EdxIO io = EdxIO.create()) {
solve(io, io);
}
}
private static void solve(EdxIO in, EdxIO out) {
int n = in.nextInt();
int[] arr = IntStream.range(0, n).toArray();
for (int i = 1; i < arr.length; i++) {
swap(arr, i - 1, (i + 1) / 2 - 1);
}
StringBuilder sb = new StringBuilder();
for (int i = 0; i < arr.length; i++) {
sb.append((arr[i] + 1) + " ");
}
out.println(sb.toString());
}
private static void swap(int[] nums, int i, int j) {
int tmp = nums[i];
nums[i] = nums[j];
nums[j] = tmp;
}
static class FastScanner implements Closeable {
BufferedReader br;
StringTokenizer st;
FastScanner(File f) {
try {
br = new BufferedReader(new FileReader(f));
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
String next() {
while (st == null || !st.hasMoreTokens()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
@Override
public void close() throws IOException {
br.close();
}
}
}
|
[
"yuanfei_1984@hotmail.com"
] |
yuanfei_1984@hotmail.com
|
178363c4f41cb5a6aee7b1d7be3c49b87d34326c
|
862269ebf259ec22142ab03d36007d0a1d452fab
|
/src/WEBANK/wn3.java
|
71019bed990e56393d1d8be6403d3582098eda42
|
[] |
no_license
|
Dcwjh/Algorithm
|
03d9a475d73754c53cb4cf997573dcd2c5e9510e
|
127d37f71ee3153ca6868473c91e802068d34558
|
refs/heads/master
| 2022-04-29T21:13:59.657279
| 2022-03-04T06:44:54
| 2022-03-04T06:44:54
| 219,679,269
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 714
|
java
|
package WEBANK;
import java.util.Arrays;
import java.util.Scanner;
/**
* @Description TODO
* @Author Jianhai Wang
* @ClassName wn3
* @Date 2021/8/27 20:40
* @Version 1.0
*/
public class wn3 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int[] nums = new int[n];
for(int i = 0; i < n; i++){
nums[i] = in.nextInt();
}
Arrays.sort(nums);
int date = 1; //第i天的食量就是i
int index = 0;
while(index < n){
if(date <= nums[index]){
date ++;
}
index ++;
}
System.out.println(date);
}
}
|
[
"503396265@qq.com"
] |
503396265@qq.com
|
21cace1a8c8415ac3db0a65cecc64c540ca86cc8
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/single-large-project/src/test/java/org/gradle/test/performancenull_351/Testnull_35079.java
|
78c063a6a428d64c1a31f63e515cac3d4a8bed7f
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 308
|
java
|
package org.gradle.test.performancenull_351;
import static org.junit.Assert.*;
public class Testnull_35079 {
private final Productionnull_35079 production = new Productionnull_35079("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
83ece8c3d6301f9290febef9c503d56268af1c8a
|
5cc4c37cf5b355bb3dde430fd4ff2e5c407c218a
|
/src/main/java/com/carmall2015/carmall/controller/CartController.java
|
37aaa7169a9dc7937e7118bedce2a169b103310c
|
[] |
no_license
|
hani9859/carmall
|
1915f06fba46907ea42ae2d68f212a4c56d73a67
|
efc4076e0323757883743cb6e32d7c5267d3c555
|
refs/heads/master
| 2021-01-22T05:10:40.192104
| 2015-08-24T06:31:22
| 2015-08-24T06:31:22
| 41,090,957
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 295
|
java
|
package com.carmall2015.carmall.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class CartController {
@RequestMapping("/cart")
public String cart(){
return "/cart/cart";
}
}
|
[
"bit@bit-PC"
] |
bit@bit-PC
|
f52dd58a527d2567ab4b0d36e49d599f1e845bff
|
4c151980ad335b90398454988f2cdee9d46ab30f
|
/src/com/bracketbird/client/rtc/event/REventManager.java
|
b59fd58c0cb702817a09679548be2890e1b752d0
|
[] |
no_license
|
MartinKierkegaard/Bracketbird
|
42d1a4a48656a30c4b98712778f52217f3ac397d
|
81c9c9748c09c767c8b888dc51942b59836f0759
|
refs/heads/master
| 2021-01-15T08:05:28.405809
| 2015-01-04T20:15:01
| 2015-01-04T20:15:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 951
|
java
|
package com.bracketbird.client.rtc.event;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
public class REventManager {
private class Listener {
private REvent<?, ?> type;
private REventListener eventListener;
private Listener(REventListener eventListener, REvent<?, ?> type) {
this.type = type;
this.eventListener = eventListener;
}
}
private List<Listener> listeners = new ArrayList<Listener>();
public void addListener(REventListener rl, REvent<?, ?> ... type) {
for (REvent<?, ?> t : type) {
listeners.add(new Listener(rl, t));
}
}
public void fireEvents(REvent<?, ?> event) {
List<Listener> ls = new ArrayList<Listener>(listeners);
for (Listener l : ls) {
if (l.type.getHandler() == event.getHandler()) {
l.eventListener.onChange(event);
}
}
}
}
|
[
"jonasgreen12345@gmail.com"
] |
jonasgreen12345@gmail.com
|
0d2f5c7a14cf418308fbd1ee1b468821457cafe6
|
ee3db8c34dc91d6e8add03d603b3de412de96f5a
|
/viz/gov.noaa.nws.ncep.viz.rsc.ncgrid/src/gov/noaa/nws/ncep/viz/rsc/ncgrid/dgdriv/NcgridDataCache.java
|
a7004379ab83d08b430ad0db2faa4ea20fce1d2c
|
[] |
no_license
|
Unidata/awips2-ncep
|
a9aa3a26d83e901cbfaac75416ce586fc56b77d7
|
0abdb2cf11fcc3b9daf482f282c0491484ea312c
|
refs/heads/unidata_18.2.1
| 2023-07-24T03:53:47.775210
| 2022-07-12T14:56:56
| 2022-07-12T14:56:56
| 34,419,331
| 2
| 5
| null | 2023-03-06T22:22:27
| 2015-04-22T22:26:52
|
Java
|
UTF-8
|
Java
| false
| false
| 2,295
|
java
|
package gov.noaa.nws.ncep.viz.rsc.ncgrid.dgdriv;
import java.util.HashMap;
import java.util.Map.Entry;
/**
* This is the grid data cache for diagnostic.
*
* <pre>
* SOFTWARE HISTORY
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* May 25, 2012 xguo Initial creation *
* Apr 26, 2013 B. Yin Fixed the unit bug
*
* </pre>
*
* @author xguo
*
*/
public class NcgridDataCache {
/*
* Cache retrieved Data URI
*/
HashMap <String, String> dataURI; // key is the requested constraint
/*
* grid data structure
*/
public class NcgridData {
int nx;
int ny;
float[] data;
public float [] getData () {
return data;
}
public void setData (float [] d ) {
data = new float [d.length];
System.arraycopy(d, 0, data, 0, d.length);
}
public int getNx () {
return nx;
}
public void setNx ( int x ) {
nx = x;
}
public int getNy () {
return ny;
}
public void setNy ( int y) {
ny = y ;
}
}
/*
* Cache retrieved grid data
*/
HashMap<String, NcgridData> gridData; // key is the data URI
/*
* Initialize all HashMap
*/
public NcgridDataCache () {
dataURI = new HashMap <String, String>();
gridData = new HashMap<String, NcgridData>();
}
/*
* Get Data URI
*/
public String getDataURI ( String key) {
return (dataURI.get(key));
}
/*
* Add Data URI
*/
public void addDataURI (String key, String dataUri ) {
dataURI.put(key, dataUri);
}
/*
* get gempak parameter from dataURI
*/
public String getGempakParam ( String dataUriStr ) {
String parm = null;
for ( Entry<String, String> e : dataURI.entrySet() ) {
if ( e.getValue().equals(dataUriStr)){
String[] parmList = e.getKey().split("\\|");
parm = parmList[2];
break;
}
}
return parm;
}
/*
* Get grid data
*/
public NcgridData getGridData ( String dataUri ) {
return gridData.get(dataUri);
}
/*
* Add grid data
*/
public void addGridData (String dataUri, int nx, int ny, float [] data) {
NcgridData nd = new NcgridData ();
nd.setNx(nx);
nd.setNy(ny);
nd.setData(data);
gridData.put(dataUri, nd);
}
public void clear () {
dataURI.clear();
gridData.clear();
}
}
|
[
"Shawn.Hooper@noaa.gov"
] |
Shawn.Hooper@noaa.gov
|
598462a2a8d9e501d99489a4a5f4071aac39e271
|
28b3a4074c919eb5fa0bc53665a977079d2d8f89
|
/ectaxi/src/main/java/com/spring/jersy/hibernate/model/service/impl/AverageDailyDriveStatisDayServiceImpl.java
|
d34023eb1bd83e1cbf8e012c3e82d0fec06882d4
|
[] |
no_license
|
vrqin/taxi
|
43e7b65c420ace1280d3621662db6db02aa268d9
|
c3c1bd4739425393b2de888b716d7343af8097a4
|
refs/heads/master
| 2020-05-31T15:30:49.540392
| 2018-12-07T12:23:34
| 2018-12-07T12:23:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,339
|
java
|
package com.spring.jersy.hibernate.model.service.impl;
import com.spring.jersy.hibernate.model.dao.AverageDailyDriveStatisDayDao;
import com.spring.jersy.hibernate.model.entity.AverageDailyDriveStatisDay;
import com.spring.jersy.hibernate.model.service.AverageDailyDriveStatisDayService;
import com.spring.jersy.hibernate.publics.util.PageList;
import com.spring.jersy.hibernate.publics.util.S;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class AverageDailyDriveStatisDayServiceImpl implements AverageDailyDriveStatisDayService {
@Autowired
private AverageDailyDriveStatisDayDao averageDailyDriveStatisDayDao;
@Override
public PageList findList(int page, int rows, String sort, String order, String key, String begintime, String endtime, int type) throws Exception {
DetachedCriteria dc = DetachedCriteria.forClass(AverageDailyDriveStatisDay.class);
if (!S.isNull(key)) {
dc.add(Restrictions.sqlRestriction("(companyname like '%" + key + "%' )"));
}
if (!S.isNull(begintime)) {
dc.add(Restrictions.ge("date", begintime));
}
if (!S.isNull(endtime)) {
dc.add(Restrictions.le("date", endtime));
}
if ("desc".equals(order)) {
dc.addOrder(Order.desc(sort));
} else {
dc.addOrder(Order.asc(sort));
}
PageList pageList = new PageList(page, rows);
pageList = averageDailyDriveStatisDayDao.findPageList(pageList, dc);
return pageList;
}
@Override
public AverageDailyDriveStatisDay findByid(Integer id) {
return averageDailyDriveStatisDayDao.get(id);
}
@Override
public void delete(Integer id) {
averageDailyDriveStatisDayDao.delete(id);
}
@Override
public void save(AverageDailyDriveStatisDay averageDailyDriveStatisDay) {
averageDailyDriveStatisDayDao.save(averageDailyDriveStatisDay);
}
@Override
public void saveOrUpd(AverageDailyDriveStatisDay averageDailyDriveStatisDay) {
averageDailyDriveStatisDayDao.saveOrUpdate(averageDailyDriveStatisDay);
}
}
|
[
"heavenlystate@163.com"
] |
heavenlystate@163.com
|
9909dc2c4c7536730fca78d1e0996da6374123f7
|
7016cec54fb7140fd93ed805514b74201f721ccd
|
/src/java/com/echothree/model/control/geo/common/choice/GeoCodeAliasTypeChoicesBean.java
|
551c7a83b15cd6fae1fb24e81fa039f55d6f1a1b
|
[
"MIT",
"Apache-1.1",
"Apache-2.0"
] |
permissive
|
echothreellc/echothree
|
62fa6e88ef6449406d3035de7642ed92ffb2831b
|
bfe6152b1a40075ec65af0880dda135350a50eaf
|
refs/heads/master
| 2023-09-01T08:58:01.429249
| 2023-08-21T11:44:08
| 2023-08-21T11:44:08
| 154,900,256
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,203
|
java
|
// --------------------------------------------------------------------------------
// Copyright 2002-2023 Echo Three, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// --------------------------------------------------------------------------------
package com.echothree.model.control.geo.common.choice;
import com.echothree.view.common.BaseChoicesBean;
import java.util.List;
public class GeoCodeAliasTypeChoicesBean
extends BaseChoicesBean {
/** Creates a new instance of GeoCodeAliasTypeChoicesBean */
public GeoCodeAliasTypeChoicesBean(List<String> labels, List<String> values, String defaultValue) {
super(labels, values, defaultValue);
}
}
|
[
"rich@echothree.com"
] |
rich@echothree.com
|
bc477b827602a1fb951f7e4ffe20660ccb0bfda2
|
7f20b1bddf9f48108a43a9922433b141fac66a6d
|
/csplugins/trunk/toronto/yuedong/multi_renderer/impl/swing-application-impl/src/main/java/org/cytoscape/internal/actions/WelcomeScreenAction.java
|
c1846d28f6a7980abe8098ff6c2b34849e23c4fb
|
[] |
no_license
|
ahdahddl/cytoscape
|
bf783d44cddda313a5b3563ea746b07f38173022
|
a3df8f63dba4ec49942027c91ecac6efa920c195
|
refs/heads/master
| 2020-06-26T16:48:19.791722
| 2013-08-28T04:08:31
| 2013-08-28T04:08:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,316
|
java
|
package org.cytoscape.internal.actions;
import java.awt.event.ActionEvent;
import java.util.Properties;
import javax.swing.JDialog;
import org.cytoscape.application.CyApplicationConfiguration;
import org.cytoscape.application.events.CyStartEvent;
import org.cytoscape.application.events.CyStartListener;
import org.cytoscape.application.swing.AbstractCyAction;
import org.cytoscape.application.swing.CyAction;
import org.cytoscape.application.swing.CySwingApplication;
import org.cytoscape.datasource.DataSourceManager;
import org.cytoscape.internal.actions.welcomescreen.WelcomeScreenDialog;
import org.cytoscape.io.util.RecentlyOpenedTracker;
import org.cytoscape.property.CyProperty;
import org.cytoscape.task.NetworkTaskFactory;
import org.cytoscape.task.creation.ImportNetworksTaskFactory;
import org.cytoscape.util.swing.OpenBrowser;
import org.cytoscape.work.TaskFactory;
import org.cytoscape.work.TaskManager;
import org.osgi.framework.BundleContext;
public class WelcomeScreenAction extends AbstractCyAction implements CyStartListener {
private static final long serialVersionUID = 2584201062371825221L;
private static final String MENU_NAME = "Welcome Screen...";
private static final String PARENT_NAME = "Help";
private final OpenBrowser openBrowser;
private final RecentlyOpenedTracker fileTracker;
private final TaskManager guiTaskManager;
private final ImportNetworksTaskFactory importNetworksTaskFactory;
private final CyApplicationConfiguration config;
private final DataSourceManager dsManager;
private final NetworkTaskFactory networkTaskFactory;
private final TaskFactory openSessionTaskFactory;
private final TaskFactory importNetworkFileTF;
private final CySwingApplication app;
private final CyProperty<Properties> cyProps;
private final BundleContext bc;
public WelcomeScreenAction(final BundleContext bc, final CySwingApplication app,
OpenBrowser openBrowserServiceRef, RecentlyOpenedTracker fileTracker, final TaskFactory openSessionTaskFactory, TaskManager guiTaskManager,
final TaskFactory importNetworkFileTF, final ImportNetworksTaskFactory importNetworksTaskFactory, final NetworkTaskFactory networkTaskFactory,
final CyApplicationConfiguration config, final DataSourceManager dsManager, final CyProperty<Properties> cyProps) {
super(MENU_NAME);
setPreferredMenu(PARENT_NAME);
this.openBrowser = openBrowserServiceRef;
this.fileTracker = fileTracker;
this.guiTaskManager = guiTaskManager;
this.importNetworksTaskFactory = importNetworksTaskFactory;
this.networkTaskFactory = networkTaskFactory;
this.config = config;
this.dsManager = dsManager;
this.app = app;
this.cyProps = cyProps;
this.openSessionTaskFactory = openSessionTaskFactory;
this.importNetworkFileTF = importNetworkFileTF;
this.bc = bc;
}
@Override
public void actionPerformed(ActionEvent ae) {
final JDialog welcomeScreen = new WelcomeScreenDialog(bc,openBrowser, fileTracker, openSessionTaskFactory, guiTaskManager, config,
importNetworkFileTF, importNetworksTaskFactory, networkTaskFactory, dsManager, cyProps);
welcomeScreen.setLocationRelativeTo(app.getJFrame());
welcomeScreen.setVisible(true);
}
@Override
public void handleEvent(CyStartEvent e) {
// Simply displays the dialog after startup.
actionPerformed(null);
}
}
|
[
"jm@0ecc0d97-ab19-0410-9704-bfe1a75892f5"
] |
jm@0ecc0d97-ab19-0410-9704-bfe1a75892f5
|
320e9cdab31c0b1be2243706ad5d78873eae7145
|
f6e2cf5e64e1047d3f2f6f583845c63f31781959
|
/springcloud/eureka-client/src/test/java/com/eurekaclient/demo/EurekaClientApplicationTests.java
|
cf745e57f0f495c75425fc69a55cf8b38f471bd6
|
[] |
no_license
|
shanyao19940801/SpringCloudDemo
|
b0746d78cc5982070f896f30b821fdef0d9e03a7
|
a21fdf3b10b68fb14fa6d5ee38e41fea268bb6c0
|
refs/heads/master
| 2020-03-24T21:20:20.269867
| 2018-08-12T15:08:47
| 2018-08-12T15:08:47
| 143,026,532
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 353
|
java
|
package com.eurekaclient.demo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class EurekaClientApplicationTests {
@Test
public void contextLoads() {
}
}
|
[
"sqshanyao@163.com"
] |
sqshanyao@163.com
|
6825b5924bbc1336a70082b0953afdf69ed56a4e
|
8160730dbfc837ba0f5882743c84e5ec22756879
|
/cloudnet-modules/cloudnet-bridge/src/main/java/de/dytanic/cloudnet/ext/bridge/bungee/event/BungeeCloudNetTickEvent.java
|
4379dfa612a3dcd896d44f8699869c848fc04ee6
|
[] |
no_license
|
derrop/CloudNet-v3
|
60198fdbade1e6a532650811f61e3e939f326163
|
754a196b07efb2a4b8574001b996d9e0a133f30c
|
refs/heads/master
| 2020-07-25T23:00:44.559269
| 2019-06-21T12:28:55
| 2019-06-21T12:29:54
| 208,450,593
| 0
| 0
| null | 2019-12-22T12:40:04
| 2019-09-14T14:17:37
| null |
UTF-8
|
Java
| false
| false
| 182
|
java
|
package de.dytanic.cloudnet.ext.bridge.bungee.event;
import lombok.NoArgsConstructor;
@NoArgsConstructor
public final class BungeeCloudNetTickEvent extends BungeeCloudNetEvent {
}
|
[
"tarekhosni1410@hotmail.com"
] |
tarekhosni1410@hotmail.com
|
2b72f1f86212575d98a47d32aae9ad45cccd4e91
|
1dea89ed78cf1aebc0340cd42c201054900a31dc
|
/jgnash-swing/src/main/java/jgnash/ui/report/compiled/NetWorthReport.java
|
169cbddbdaa8c9d8ae63f1072e231200904a716d
|
[] |
no_license
|
RulongWang/jgnash
|
1cfd430e22089812761d5c384a32fb7b25acedf1
|
25a5ad1f9349cf9f2849509c09a24f8b1fa3cbf5
|
refs/heads/master
| 2021-01-20T01:45:41.365424
| 2012-07-19T10:03:16
| 2012-07-19T10:03:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,762
|
java
|
/*
* jGnash, a personal finance application
* Copyright (C) 2001-2012 Craig Cavanaugh
*
* 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/>.
*/
package jgnash.ui.report.compiled;
import java.util.ArrayList;
import java.util.List;
import jgnash.engine.AccountGroup;
/**
* Net Worth Report
*
* @author Craig Cavanaugh
*
*/
public class NetWorthReport extends AbstractSumByTypeReport {
@Override
protected List<AccountGroup> getAccountGroups() {
List<AccountGroup> groups = new ArrayList<>();
groups.add(AccountGroup.ASSET);
groups.add(AccountGroup.INVEST);
groups.add(AccountGroup.LIABILITY);
return groups;
}
/*
* Returns the name of the report
*
* @return report name
*/
@Override
public String getReportName() {
return rb.getString("Word.NetWorth");
}
/**
* Returns the legend for the grand total
*
* @return report name
*/
@Override
public String getGrandTotalLegend() {
return getReportName();
}
@Override
public String getGroupFooterLabel() {
return rb.getString("Word.Subtotal");
}
}
|
[
"jgnash.devel@gmail.com"
] |
jgnash.devel@gmail.com
|
99ea9ca43aef195ada597a2ce0972dcd9b773e70
|
2d2ea594adee21154e0d5ce60302c2e2c6cc21ad
|
/dataworks-public-20200518/src/main/java/com/aliyun/dataworks_public20200518/models/CreateProjectMemberRequest.java
|
42df4145f4868994c307c98fbfe6111a92ab94d1
|
[
"Apache-2.0"
] |
permissive
|
yndu13/alibabacloud-java-sdk
|
b67816695b8999b7e9be929929af43b9e289dbcc
|
39b0fd9d6f0ef4f924f92fb6cd4e50694079745b
|
refs/heads/master
| 2023-07-15T07:07:47.705726
| 2021-08-12T08:55:26
| 2021-08-12T08:55:26
| 395,252,858
| 0
| 0
| null | 2021-08-12T08:43:07
| 2021-08-12T08:43:06
| null |
UTF-8
|
Java
| false
| false
| 1,524
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dataworks_public20200518.models;
import com.aliyun.tea.*;
public class CreateProjectMemberRequest extends TeaModel {
@NameInMap("ProjectId")
@Validation(required = true)
public Long projectId;
@NameInMap("UserId")
@Validation(required = true)
public String userId;
@NameInMap("ClientToken")
public String clientToken;
@NameInMap("RoleCode")
public String roleCode;
public static CreateProjectMemberRequest build(java.util.Map<String, ?> map) throws Exception {
CreateProjectMemberRequest self = new CreateProjectMemberRequest();
return TeaModel.build(map, self);
}
public CreateProjectMemberRequest setProjectId(Long projectId) {
this.projectId = projectId;
return this;
}
public Long getProjectId() {
return this.projectId;
}
public CreateProjectMemberRequest setUserId(String userId) {
this.userId = userId;
return this;
}
public String getUserId() {
return this.userId;
}
public CreateProjectMemberRequest setClientToken(String clientToken) {
this.clientToken = clientToken;
return this;
}
public String getClientToken() {
return this.clientToken;
}
public CreateProjectMemberRequest setRoleCode(String roleCode) {
this.roleCode = roleCode;
return this;
}
public String getRoleCode() {
return this.roleCode;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
8834046a29ab00326ac367f5accbfad4c32614e1
|
5367ed5b733d50df6a1d889bffe444adea8fd338
|
/src/main/java/com/cjburkey/factorius/math/MathUtils.java
|
f47be254863406bb78b288562297c17e8b516cc6
|
[
"MIT"
] |
permissive
|
cjburkey01/Factorius-Defunct-
|
122b829670a3afb5a9477fca5ec040ab0e7ee065
|
bb61274ce323393abc3e0093c23d630565c10476
|
refs/heads/master
| 2021-06-18T14:45:16.593904
| 2017-06-29T20:20:45
| 2017-06-29T20:20:45
| 95,476,372
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,058
|
java
|
package com.cjburkey.factorius.math;
/**
* Quick maths utilities
* @author cjburkey
*/
public final class MathUtils {
/**
* Clamps the value to the min and max.
* If the value is less than the minimum, it is set to the minimum.
* If the value is greater than the maximum, it is set to the maximum.
* (32bit integer function)
* @param val The value to clamp.
* @param min The minimum value.
* @param max The maximum value.
* @return Clamped value.
*/
public static int clamp(int val, int min, int max) {
return (int) clamp(val, min, max);
}
/**
* Clamps the value to the min and max.
* If the value is less than the minimum, it is set to the minimum.
* If the value is greater than the maximum, it is set to the maximum.
* (64bit float function)
* @param val The value to clamp.
* @param min The minimum value.
* @param max The maximum value.
* @return Clamped value.
*/
public static float clamp(float val, float min, float max) {
if(val < min) return min;
if(val > max) return max;
return val;
}
}
|
[
"cjburkey01@gmail.com"
] |
cjburkey01@gmail.com
|
37dc3131fe08e73515349f50b470df6940ed72bc
|
8b0ae134884d6f84217587194a2a0f775866ef55
|
/Vivo_y93/src/main/java/com/vivo/services/cust/IPhoneListListener.java
|
197b491fa8bfecd22fd49b815a91dc5534364649
|
[] |
no_license
|
wanbing/VivoFramework
|
69032750f376178d27d0d1ac170cf89bba907cc7
|
8d31381ecc788afb023960535bafbfa3b7df7d9b
|
refs/heads/master
| 2023-05-11T16:57:04.582985
| 2019-02-27T04:43:44
| 2019-02-27T04:43:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,345
|
java
|
package com.vivo.services.cust;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
public interface IPhoneListListener extends IInterface {
public static abstract class Stub extends Binder implements IPhoneListListener {
private static final String DESCRIPTOR = "com.vivo.services.cust.IPhoneListListener";
static final int TRANSACTION_updateBlackList = 1;
static final int TRANSACTION_updateWhiteList = 2;
private static class Proxy implements IPhoneListListener {
private IBinder mRemote;
Proxy(IBinder remote) {
this.mRemote = remote;
}
public IBinder asBinder() {
return this.mRemote;
}
public String getInterfaceDescriptor() {
return Stub.DESCRIPTOR;
}
public void updateBlackList() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(1, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
public void updateWhiteList() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(2, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
}
public Stub() {
attachInterface(this, DESCRIPTOR);
}
public static IPhoneListListener asInterface(IBinder obj) {
if (obj == null) {
return null;
}
IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (iin == null || !(iin instanceof IPhoneListListener)) {
return new Proxy(obj);
}
return (IPhoneListListener) iin;
}
public IBinder asBinder() {
return this;
}
public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {
switch (code) {
case 1:
data.enforceInterface(DESCRIPTOR);
updateBlackList();
reply.writeNoException();
return true;
case 2:
data.enforceInterface(DESCRIPTOR);
updateWhiteList();
reply.writeNoException();
return true;
case 1598968902:
reply.writeString(DESCRIPTOR);
return true;
default:
return super.onTransact(code, data, reply, flags);
}
}
}
void updateBlackList() throws RemoteException;
void updateWhiteList() throws RemoteException;
}
|
[
"lygforbs0@gmail.com"
] |
lygforbs0@gmail.com
|
ba245067dad055c37f2547bd3ad8a765cc75e43c
|
2fd9d77d529e9b90fd077d0aa5ed2889525129e3
|
/DecompiledViberSrc/app/src/main/java/com/google/android/gms/auth/api/zza.java
|
ccfd9da11738b60bc29b5c44e4f1f870a2158e70
|
[] |
no_license
|
cga2351/code
|
703f5d49dc3be45eafc4521e931f8d9d270e8a92
|
4e35fb567d359c252c2feca1e21b3a2a386f2bdb
|
refs/heads/master
| 2021-07-08T15:11:06.299852
| 2021-05-06T13:22:21
| 2021-05-06T13:22:21
| 60,314,071
| 1
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 437
|
java
|
package com.google.android.gms.auth.api;
import com.google.android.gms.common.api.Api.AbstractClientBuilder;
import com.google.android.gms.internal.auth.zzak;
final class zza extends Api.AbstractClientBuilder<zzak, AuthProxyOptions>
{
}
/* Location: E:\Study\Tools\apktool2_2\dex2jar-0.0.9.15\classes_viber_2_dex2jar.jar
* Qualified Name: com.google.android.gms.auth.api.zza
* JD-Core Version: 0.6.2
*/
|
[
"yu.liang@navercorp.com"
] |
yu.liang@navercorp.com
|
7b3dd7b7bdf7752a28c4b6c7c08cbfa457ee6aee
|
a0dea239e224b8491fe8571de116b99a530b9b22
|
/source/src/com/inmobi/commons/thinICE/icedatacollector/ThinICEConfigSettings.java
|
e60556e42a4cba25b827fb3f59a240c71f7c27c0
|
[] |
no_license
|
parth12/ProgrammingClubDAIICT
|
c413efecdce57839abc75602aa727730197c7a90
|
979b97222efcdf28607146df422772d83d3d5570
|
refs/heads/master
| 2021-01-10T05:22:28.079352
| 2015-12-22T18:40:28
| 2015-12-22T18:40:28
| 48,445,901
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,814
|
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.inmobi.commons.thinICE.icedatacollector;
public class ThinICEConfigSettings
{
public static final int CELL_OP_FLAG_DISABLE_CURRENT_DETAILS = 2;
public static final int CELL_OP_FLAG_DISABLE_SIM_DETAILS = 1;
public static final int WIFI_FLAG_DISABLE_NOMAP_EXCLUSION = 2;
public static final int WIFI_FLAG_DISABLE_SSID_COLLECTION = 1;
private boolean a;
private boolean b;
private boolean c;
private boolean d;
private boolean e;
private boolean f;
private boolean g;
private long h;
private long i;
private int j;
private int k;
private int l;
public ThinICEConfigSettings()
{
a = true;
b = true;
c = true;
d = true;
e = true;
f = true;
g = true;
h = 60000L;
i = 3000L;
j = 50;
k = 0;
l = 0;
}
public ThinICEConfigSettings(ThinICEConfigSettings thiniceconfigsettings)
{
a = true;
b = true;
c = true;
d = true;
e = true;
f = true;
g = true;
h = 60000L;
i = 3000L;
j = 50;
k = 0;
l = 0;
a = thiniceconfigsettings.a;
b = thiniceconfigsettings.b;
c = thiniceconfigsettings.c;
d = thiniceconfigsettings.d;
e = thiniceconfigsettings.e;
f = thiniceconfigsettings.f;
g = thiniceconfigsettings.g;
h = thiniceconfigsettings.h;
i = thiniceconfigsettings.i;
j = thiniceconfigsettings.j;
k = thiniceconfigsettings.k;
l = thiniceconfigsettings.l;
}
public static boolean bitTest(int i1, int j1)
{
return (i1 & j1) == j1;
}
public int getCellOpFlags()
{
return l;
}
public int getSampleHistorySize()
{
return j;
}
public long getSampleInterval()
{
return h;
}
public long getStopRequestTimeout()
{
return i;
}
public int getWifiFlags()
{
return k;
}
public boolean isEnabled()
{
return a;
}
public boolean isSampleCellEnabled()
{
return c;
}
public boolean isSampleCellOperatorEnabled()
{
return b;
}
public boolean isSampleConnectedWifiEnabled()
{
return d;
}
public boolean isSampleLocationEnabled()
{
return e;
}
public boolean isSampleVisibleCellTowerEnabled()
{
return g;
}
public boolean isSampleVisibleWifiEnabled()
{
return f;
}
public ThinICEConfigSettings setCellOpFlags(int i1)
{
l = i1;
return this;
}
public ThinICEConfigSettings setEnabled(boolean flag)
{
a = flag;
return this;
}
public ThinICEConfigSettings setSampleCellEnabled(boolean flag)
{
c = flag;
return this;
}
public ThinICEConfigSettings setSampleCellOperatorEnabled(boolean flag)
{
b = flag;
return this;
}
public ThinICEConfigSettings setSampleConnectedWifiEnabled(boolean flag)
{
d = flag;
return this;
}
public ThinICEConfigSettings setSampleHistorySize(int i1)
{
if (i1 <= 0)
{
throw new IllegalArgumentException("Sample history size must be greater than 0");
} else
{
j = i1;
return this;
}
}
public ThinICEConfigSettings setSampleInterval(long l1)
{
if (l1 <= 0L)
{
throw new IllegalArgumentException("Sample interval must be greater than 0");
} else
{
h = l1;
return this;
}
}
public ThinICEConfigSettings setSampleLocationEnabled(boolean flag)
{
e = flag;
return this;
}
public ThinICEConfigSettings setSampleVisibleCellTowerEnabled(boolean flag)
{
g = flag;
return this;
}
public ThinICEConfigSettings setSampleVisibleWifiEnabled(boolean flag)
{
f = flag;
return this;
}
public ThinICEConfigSettings setStopRequestTimeout(long l1)
{
if (l1 <= 0L)
{
throw new IllegalArgumentException("Stop request timeout must be greater than 0");
} else
{
i = l1;
return this;
}
}
public ThinICEConfigSettings setWifiFlags(int i1)
{
k = i1;
return this;
}
public String toString()
{
StringBuilder stringbuilder = new StringBuilder();
stringbuilder.append(getClass().getSimpleName()).append("[");
stringbuilder.append("mEnabled=").append(a).append(", ");
stringbuilder.append("mSampleCellOperatorEnabled=").append(b).append(", ");
stringbuilder.append("mSampleCellEnabled=").append(c).append(", ");
stringbuilder.append("mSampleConnectedWifiEnabled=").append(d).append(", ");
stringbuilder.append("mSampleLocationEnabled=").append(e).append(", ");
stringbuilder.append("mSampleVisibleWifiEnabled=").append(f).append(", ");
stringbuilder.append("mSampleVisibleCellTowerEnabled=").append(g).append(", ");
stringbuilder.append("mSampleInterval=").append(h).append(", ");
stringbuilder.append("mStopRequestTimeout=").append(i).append(", ");
stringbuilder.append("mWifiFlags=").append(Integer.toBinaryString(k)).append(", ");
stringbuilder.append("mCellOpFlags=").append(Integer.toBinaryString(l));
stringbuilder.append("]");
return stringbuilder.toString();
}
}
|
[
"parthpanchal12196@gmail.com"
] |
parthpanchal12196@gmail.com
|
adeed0e1e90308f9a4e65c6e0b6fc36d479897df
|
fba2092bf9c8df1fb6c053792c4932b6de017ceb
|
/wms/WEB-INF/busitune/source/original/jp/co/daifuku/wms/asrs/dasch/AsInventoryCheckListDASCH.java
|
69981529d1e64df6da676da7cb108bf654253faa
|
[] |
no_license
|
FlashChenZhi/exercise
|
419c55c40b2a353e098ce5695377158bd98975d3
|
51c5f76928e79a4b3e1f0d68fae66ba584681900
|
refs/heads/master
| 2020-04-04T03:23:44.912803
| 2018-11-01T12:36:21
| 2018-11-01T12:36:21
| 155,712,318
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,897
|
java
|
// $Id: AsInventoryCheckListDASCH.java 5290 2009-10-28 04:29:37Z kishimoto $
package jp.co.daifuku.wms.asrs.dasch;
/*
* Copyright(c) 2000-2007 DAIFUKU Co.,Ltd. All Rights Reserved.
*
* This software is the proprietary information of DAIFUKU Co.,Ltd.
* Use is subject to license terms.
*/
import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import jp.co.daifuku.authentication.DfkUserInfo;
import jp.co.daifuku.common.CommonException;
import jp.co.daifuku.common.ScheduleException;
import jp.co.daifuku.foundation.common.Params;
import jp.co.daifuku.wms.asrs.dasch.AsInventoryCheckListDASCHParams;
import jp.co.daifuku.wms.base.report.AbstractWmsDASCH;
import jp.co.daifuku.wms.handler.db.AbstractDBFinder;
import jp.co.daifuku.wms.handler.SearchKey;
/**
* BusiTuneで生成されたDASCHクラスです。
* ここに具体的なクラスの説明を記述して下さい。
*
* @version $Revision: 5290 $, $Date:: 2009-10-28 13:29:37 +0900#$
* @author BusiTune 1.0 Generator.
* @author Last commit: $Author: kishimoto $
*/
public class AsInventoryCheckListDASCH
extends AbstractWmsDASCH
{
//------------------------------------------------------------
// fields (upper case only)
//------------------------------------------------------------
//------------------------------------------------------------
// class variables (prefix '$')
//------------------------------------------------------------
//------------------------------------------------------------
// instance variables (prefix '_')
//------------------------------------------------------------
/**
* DB Finder
*/
private AbstractDBFinder _finder = null;
/**
* 現在点
*/
private int _current = -1;
/**
* レコード総数
*/
private int _total = -1;
//------------------------------------------------------------
// constructors
//------------------------------------------------------------
/**
* 指定されたパラメータでDASCHを作成します。
* @param conn Database DBコネクション
* @param parent Caller 呼び出し元クラスクラス情報
* @param locale ロケール
* @param ui ユーザ情報
*/
public AsInventoryCheckListDASCH(Connection conn, Class parent, Locale locale, DfkUserInfo ui)
{
super(conn, parent, locale, ui);
}
//------------------------------------------------------------
// public methods
//------------------------------------------------------------
/**
* DBの検索を行います。
* 帳票出力、一覧表示で使用します。
*
* @param p 検索条件パラメータ
* @throws CommonException 全てのユーザ定義例外を報告します。
*/
public void search(Params p)
throws CommonException
{
// TODO : Implement for export
// Create Finder Object
_finder = new xxxFinder(getConnection());
// Initialize record counts
_finder.open(isForwardOnly());
// Create Search Key and search for Records
_finder.search(createSearchKey(p, true));
_current = -1;
}
/**
* 次のデータが存在するかどうかを判定します。<BR>
* 帳票出力で使用します。
* @return データが存在する場合はtrueを返します。
* @throws CommonException 全てのユーザ定義例外を報告します。
*/
public boolean next()
throws CommonException
{
_current++;
return _total > _current;
}
/**
* データを1件返します。<BR>
* 帳票出力で使用します。
* @return 取得データ
* @throws CommonException 全てのユーザ定義例外を報告します。
*/
public Params get()
throws CommonException
{
// TODO : Implement for export
//throw new ScheduleException("This method is not implemented.");
// get Next entity from finder class
eneityName[] ents = (eneityName[])_finder.getEntities(1);
Params p = new Params();
// conver Entity to Param object
for (eneityName ent : ents)
{
p.set(DFK_DS_NO, getDsNumber());
p.set(DFK_USER_ID, getUserId());
p.set(DFK_USER_NAME, getUserName());
p.set(SYS_DAY, getPrintDate());
p.set(SYS_TIME, getPrintDate());
p.set(PLAN_DATE, WmsFormatter.toDate(ent.getPlanDay()));
p.set(ITEM_CODE, ent.getItemCode());
p.set(ITEM_NAME, ent.getValue(Item.ITEM_NAME));
p.set(AREA_NO, ent.getPlanAreaNo());
p.set(PLAN_LOCATION_NO, ent.getPlanLocationNo());
p.set(PLAN_CASE_QTY,
DisplayUtil.getCaseQty(ent.getPlanQty(), ent.getBigDecimal(Item.ENTERING_QTY).intValue()));
p.set(PLAN_PIECE_QTY, DisplayUtil.getPieceQty(ent.getPlanQty(),
ent.getBigDecimal(Item.ENTERING_QTY).intValue()));
p.set(WORK_STATUS, DisplayResource.getWorkingStatus(ent.getStatusFlag()));
break;
}
// return Pram objstc
return p;
}
/**
*
* finder,Connection close
*/
public void close()
{
if (_finder != null)
{
_finder.close();
}
super.close();
}
//------------------------------------------------------------
// accessor methods
//------------------------------------------------------------
//------------------------------------------------------------
// package methods
//------------------------------------------------------------
//------------------------------------------------------------
// protected methods
//------------------------------------------------------------
/**
* データ件数を返します。
* 帳票発行、一覧表示で使用します。
*
* @param p 検索条件パラメータ
* @return データ件数
* @throws CommonException 全てのユーザ定義例外を報告します。
*/
protected int actualCount(Params p)
throws CommonException
{
// TODO : Implement for export or listcell
xxxHandler handler = new xxxHandler(getConnection());
// find count
_total = handler.count(createSearchKey(p, false));
return _total;
}
/**
* 検索したデータのうち、start番目からcntで指定された件数のデータを返します。
* 一覧表示で使用します。
*
* @param start 開始インデックス
* @param cnt 件数
* @return 対象データのリスト
* @throws CommonException 全てのユーザ定義例外を報告します。
*/
protected List<Params> rangeGet(int start, int cnt)
throws CommonException
{
// TODO : Implement for listcell
//throw new RuntimeException("This method is not implemented.");
List<Params> params = new ArrayList<Params>();
eneityName[] ents = (eneityName[])_finder.getEntities(start, start + cnt);
for (eneityName ent : ents)
{
Params p = new Params();
p.set(BATCH, ent.getBatchNo());
p.set(ORDER, ent.getOrderNo());
p.set(CUSTOMER_CODE, ent.getCustomerCode());
p.set(CUSTOMER_NAME, ent.getValue(Customer.CUSTOMER_NAME));
params.add(p);
}
return params;
}
//------------------------------------------------------------
// private methods
//------------------------------------------------------------
/**
* 検索条件のセットを行います。<BR>
* @param param 検索条件を含むパラメータ
* @param isSet 件数確認の場合はfalse、出力用データ取得の場合はtrueをセットします
* @return SearchKey 検索キー
* @throws CommonException 全てのユーザ定義例外を報告します。
*/
private SearchKey createSearchKey(Params param, boolean isSet)
throws CommonException
{
xxxSearchKey key = new xxxSearchKey();
// 検索条件、集約条件をセットする
// where, group by
if (isSet)
{
// OrderByや、collect項目を記載する
}
return key;
}
//------------------------------------------------------------
// utility methods
//------------------------------------------------------------
/**
* このクラスのバージョン情報を返します。
* @return version
*/
public static String getVersion()
{
return "";
}
}
//end of class
|
[
"zhangming@worgsoft.com"
] |
zhangming@worgsoft.com
|
1e84a009deab91779a44812d79aa513fd66c2d7d
|
3dd35c0681b374ce31dbb255b87df077387405ff
|
/generated/com/guidewire/_generated/productmodel/GL7PesticideOrHerbicideApplicatorCovInternalAccess.java
|
ee259b12463868f7e803873582e6edab1e21a9e4
|
[] |
no_license
|
walisashwini/SBTBackup
|
58b635a358e8992339db8f2cc06978326fed1b99
|
4d4de43576ec483bc031f3213389f02a92ad7528
|
refs/heads/master
| 2023-01-11T09:09:10.205139
| 2020-11-18T12:11:45
| 2020-11-18T12:11:45
| 311,884,817
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 862
|
java
|
package com.guidewire._generated.productmodel;
@javax.annotation.Generated(comments = "config/resources/productmodel/policylinepatterns/GL7Line/coveragepatterns/GL7PesticideOrHerbicideApplicatorCov.xml", date = "", value = "com.guidewire.pc.productmodel.codegen.ProductModelCodegen")
public class GL7PesticideOrHerbicideApplicatorCovInternalAccess {
public static final com.guidewire.pl.system.internal.FriendAccessor<com.guidewire.pc.domain.productmodel.ProductModelFriendAccess<productmodel.GL7PesticideOrHerbicideApplicatorCov>> FRIEND_ACCESSOR = new com.guidewire.pl.system.internal.FriendAccessor<com.guidewire.pc.domain.productmodel.ProductModelFriendAccess<productmodel.GL7PesticideOrHerbicideApplicatorCov>>(productmodel.GL7PesticideOrHerbicideApplicatorCov.class);
private GL7PesticideOrHerbicideApplicatorCovInternalAccess() {
}
}
|
[
"ashwini@cruxxtechnologies.com"
] |
ashwini@cruxxtechnologies.com
|
53c15594de9f3560d4e2c3c89f2cdc1d7ac1a1db
|
90c093f59ba5e001f778ecf7beaacd6185c464d0
|
/src/com/eviware/soapui/impl/actions/ImportRemoteWsdlProjectAction.java
|
bfc8b859a85ca6bc696e86743344cf9717f48cd9
|
[
"MIT"
] |
permissive
|
juozasg/suis4j
|
b8c74811843cc9dfb16b3ee07fccfd7c1230f091
|
1c9f24bfc5ca98fd32882feb76c6e90440e1bcf0
|
refs/heads/master
| 2020-03-08T05:39:16.180735
| 2018-04-10T21:57:32
| 2018-04-10T21:57:32
| 127,952,899
| 0
| 0
|
MIT
| 2018-04-03T18:40:49
| 2018-04-03T18:40:49
| null |
UTF-8
|
Java
| false
| false
| 2,306
|
java
|
/*
* SoapUI, Copyright (C) 2004-2016 SmartBear Software
*
* Licensed under the EUPL, Version 1.1 or - as soon as they will be approved by the European Commission - subsequen
* versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* http://ec.europa.eu/idabc/eupl
*
* Unless required by applicable law or agreed to in writing, software distributed under the Licence is
* distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the Licence for the specific language governing permissions and limitations
* under the Licence.
*/
package com.eviware.soapui.impl.actions;
import com.eviware.soapui.SoapUIExtensionClassLoader;
import com.eviware.soapui.SoapUIExtensionClassLoader.SoapUIClassLoaderState;
import com.eviware.soapui.impl.WorkspaceImpl;
import com.eviware.soapui.impl.wsdl.WsdlProject;
import com.eviware.soapui.support.MessageSupport;
import com.eviware.soapui.support.UISupport;
import com.eviware.soapui.support.action.support.AbstractSoapUIAction;
/**
* Actions for importing an existing remote SoapUI project file into the curren
* workspace
*
* @author Ole.Matzura
*/
public class ImportRemoteWsdlProjectAction extends AbstractSoapUIAction<WorkspaceImpl> {
public static final String SOAPUI_ACTION_ID = "ImportRemoteWsdlProjectAction";
public static final MessageSupport messages = MessageSupport.getMessages(ImportRemoteWsdlProjectAction.class);
public ImportRemoteWsdlProjectAction() {
super(messages.get("title"), messages.get("description"));
}
public void perform(WorkspaceImpl workspace, Object param) {
SoapUIClassLoaderState state = SoapUIExtensionClassLoader.ensure();
try {
String url = UISupport.prompt(messages.get("prompt.text"), messages.get("prompt.title"), "");
if (url != null) {
WsdlProject project = (WsdlProject) workspace.importRemoteProject(url);
if (project != null) {
UISupport.select(project);
}
}
} catch (Exception ex) {
UISupport.showErrorMessage(ex);
} finally {
state.restore();
}
}
}
|
[
"juozasgaigalas@gmail.com"
] |
juozasgaigalas@gmail.com
|
fdfcde22157e0a4738f1e0e0cf62aad69c694ddb
|
813ef0df0c04f5d493f626d5b1f6e342cfdf96f1
|
/news-parent/news-common/src/main/java/com/bjhy/news/common/proxy/RemoteProxy.java
|
deada97896e256b3397430263a27ba89ed7ace69
|
[] |
no_license
|
wulin-challenge/news_rpc_repository
|
5f564840c6de8140960ae4fc59914b5f586827bc
|
71aa53dfc8cf61724bf4bca940cfd1dede7de458
|
refs/heads/master
| 2023-04-28T09:58:01.511015
| 2022-09-06T07:43:45
| 2022-09-06T07:43:45
| 133,751,111
| 0
| 0
| null | 2023-04-17T18:56:30
| 2018-05-17T03:01:47
|
Java
|
UTF-8
|
Java
| false
| false
| 425
|
java
|
package com.bjhy.news.common.proxy;
import com.bjhy.news.common.domain.DiscoveryServiceInfo;
import cn.wulin.ioc.URL;
import cn.wulin.ioc.extension.Adaptive;
import cn.wulin.ioc.extension.SPI;
@SPI
public interface RemoteProxy {
/**
* @param url
* @param discoveryServiceInfo 发现服务信息
*/
@Adaptive("invokeType")
<T> T remoteInvoke(URL url,DiscoveryServiceInfo discoveryServiceInfo,Class<T> clazz);
}
|
[
"1178649872@qq.com"
] |
1178649872@qq.com
|
297e978190f4cc0dbb8d37f828c13b576a1c9168
|
e455b112a11a44e17914f5177328b62c952a8fe3
|
/flood-job/flood-xxl-job/flood-xxl-job-admin/src/main/java/cn/flood/job/admin/controller/JobGroupController.java
|
638290c2a210eb125846390fae67be9259608df1
|
[
"Apache-2.0"
] |
permissive
|
mmdai/flood-dependencies
|
97035978179228efe740dc8712996a8b5188b51a
|
586fa0db96dcfdd7bbdec064922f213df3250d21
|
refs/heads/master
| 2023-09-02T00:47:29.496481
| 2023-08-01T03:26:23
| 2023-08-01T03:26:23
| 203,513,950
| 5
| 3
|
Apache-2.0
| 2023-03-01T09:04:21
| 2019-08-21T05:39:54
|
Java
|
UTF-8
|
Java
| false
| false
| 7,331
|
java
|
package cn.flood.job.admin.controller;
import cn.flood.job.admin.core.model.XxlJobGroup;
import cn.flood.job.admin.core.model.XxlJobRegistry;
import cn.flood.job.admin.core.util.I18nUtil;
import cn.flood.job.admin.dao.XxlJobGroupDao;
import cn.flood.job.admin.dao.XxlJobInfoDao;
import cn.flood.job.admin.dao.XxlJobRegistryDao;
import cn.flood.job.core.biz.model.ReturnT;
import cn.flood.job.core.enums.RegistryConfig;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.*;
/**
* job group controller
* @author xuxueli 2016-10-02 20:52:56
*/
@Controller
@RequestMapping("/jobgroup")
public class JobGroupController {
@Resource
public XxlJobInfoDao xxlJobInfoDao;
@Resource
public XxlJobGroupDao xxlJobGroupDao;
@Resource
private XxlJobRegistryDao xxlJobRegistryDao;
@RequestMapping
public String index(Model model) {
return "jobgroup/jobgroup.index";
}
@RequestMapping("/pageList")
@ResponseBody
public Map<String, Object> pageList(HttpServletRequest request,
@RequestParam(required = false, defaultValue = "0") int start,
@RequestParam(required = false, defaultValue = "10") int length,
String appname, String title) {
// page query
List<XxlJobGroup> list = xxlJobGroupDao.pageList(start, length, appname, title);
int list_count = xxlJobGroupDao.pageListCount(start, length, appname, title);
// package result
Map<String, Object> maps = new HashMap<String, Object>();
maps.put("recordsTotal", list_count); // 总记录数
maps.put("recordsFiltered", list_count); // 过滤后的总记录数
maps.put("data", list); // 分页列表
return maps;
}
@RequestMapping("/save")
@ResponseBody
public ReturnT<String> save(XxlJobGroup xxlJobGroup){
// valid
if (xxlJobGroup.getAppname()==null || xxlJobGroup.getAppname().trim().length()==0) {
return new ReturnT<String>(500, (I18nUtil.getString("system_please_input")+"AppName") );
}
if (xxlJobGroup.getAppname().length()<4 || xxlJobGroup.getAppname().length()>64) {
return new ReturnT<String>(500, I18nUtil.getString("jobgroup_field_appname_length") );
}
if (xxlJobGroup.getAppname().contains(">") || xxlJobGroup.getAppname().contains("<")) {
return new ReturnT<String>(500, "AppName"+I18nUtil.getString("system_unvalid") );
}
if (xxlJobGroup.getTitle()==null || xxlJobGroup.getTitle().trim().length()==0) {
return new ReturnT<String>(500, (I18nUtil.getString("system_please_input") + I18nUtil.getString("jobgroup_field_title")) );
}
if (xxlJobGroup.getTitle().contains(">") || xxlJobGroup.getTitle().contains("<")) {
return new ReturnT<String>(500, I18nUtil.getString("jobgroup_field_title")+I18nUtil.getString("system_unvalid") );
}
if (xxlJobGroup.getAddressType()!=0) {
if (xxlJobGroup.getAddressList()==null || xxlJobGroup.getAddressList().trim().length()==0) {
return new ReturnT<String>(500, I18nUtil.getString("jobgroup_field_addressType_limit") );
}
if (xxlJobGroup.getAddressList().contains(">") || xxlJobGroup.getAddressList().contains("<")) {
return new ReturnT<String>(500, I18nUtil.getString("jobgroup_field_registryList")+I18nUtil.getString("system_unvalid") );
}
String[] addresss = xxlJobGroup.getAddressList().split(",");
for (String item: addresss) {
if (item==null || item.trim().length()==0) {
return new ReturnT<String>(500, I18nUtil.getString("jobgroup_field_registryList_unvalid") );
}
}
}
// process
xxlJobGroup.setUpdateTime(new Date());
int ret = xxlJobGroupDao.save(xxlJobGroup);
return (ret>0)?ReturnT.SUCCESS:ReturnT.FAIL;
}
@RequestMapping("/update")
@ResponseBody
public ReturnT<String> update(XxlJobGroup xxlJobGroup){
// valid
if (xxlJobGroup.getAppname()==null || xxlJobGroup.getAppname().trim().length()==0) {
return new ReturnT<String>(500, (I18nUtil.getString("system_please_input")+"AppName") );
}
if (xxlJobGroup.getAppname().length()<4 || xxlJobGroup.getAppname().length()>64) {
return new ReturnT<String>(500, I18nUtil.getString("jobgroup_field_appname_length") );
}
if (xxlJobGroup.getTitle()==null || xxlJobGroup.getTitle().trim().length()==0) {
return new ReturnT<String>(500, (I18nUtil.getString("system_please_input") + I18nUtil.getString("jobgroup_field_title")) );
}
if (xxlJobGroup.getAddressType() == 0) {
// 0=自动注册
List<String> registryList = findRegistryByAppName(xxlJobGroup.getAppname());
String addressListStr = null;
if (registryList!=null && !registryList.isEmpty()) {
Collections.sort(registryList);
addressListStr = "";
for (String item:registryList) {
addressListStr += item + ",";
}
addressListStr = addressListStr.substring(0, addressListStr.length()-1);
}
xxlJobGroup.setAddressList(addressListStr);
} else {
// 1=手动录入
if (xxlJobGroup.getAddressList()==null || xxlJobGroup.getAddressList().trim().length()==0) {
return new ReturnT<String>(500, I18nUtil.getString("jobgroup_field_addressType_limit") );
}
String[] addresss = xxlJobGroup.getAddressList().split(",");
for (String item: addresss) {
if (item==null || item.trim().length()==0) {
return new ReturnT<String>(500, I18nUtil.getString("jobgroup_field_registryList_unvalid") );
}
}
}
// process
xxlJobGroup.setUpdateTime(new Date());
int ret = xxlJobGroupDao.update(xxlJobGroup);
return (ret>0)?ReturnT.SUCCESS:ReturnT.FAIL;
}
private List<String> findRegistryByAppName(String appnameParam){
HashMap<String, List<String>> appAddressMap = new HashMap<String, List<String>>();
List<XxlJobRegistry> list = xxlJobRegistryDao.findAll(RegistryConfig.DEAD_TIMEOUT, new Date());
if (list != null) {
for (XxlJobRegistry item: list) {
if (RegistryConfig.RegistType.EXECUTOR.name().equals(item.getRegistryGroup())) {
String appname = item.getRegistryKey();
List<String> registryList = appAddressMap.get(appname);
if (registryList == null) {
registryList = new ArrayList<String>();
}
if (!registryList.contains(item.getRegistryValue())) {
registryList.add(item.getRegistryValue());
}
appAddressMap.put(appname, registryList);
}
}
}
return appAddressMap.get(appnameParam);
}
@RequestMapping("/remove")
@ResponseBody
public ReturnT<String> remove(int id){
// valid
int count = xxlJobInfoDao.pageListCount(0, 10, id, -1, null, null, null);
if (count > 0) {
return new ReturnT<String>(500, I18nUtil.getString("jobgroup_del_limit_0") );
}
List<XxlJobGroup> allList = xxlJobGroupDao.findAll();
if (allList.size() == 1) {
return new ReturnT<String>(500, I18nUtil.getString("jobgroup_del_limit_1") );
}
int ret = xxlJobGroupDao.remove(id);
return (ret>0)?ReturnT.SUCCESS:ReturnT.FAIL;
}
@RequestMapping("/loadById")
@ResponseBody
public ReturnT<XxlJobGroup> loadById(int id){
XxlJobGroup jobGroup = xxlJobGroupDao.load(id);
return jobGroup!=null?new ReturnT<XxlJobGroup>(jobGroup):new ReturnT<XxlJobGroup>(ReturnT.FAIL_CODE, null);
}
}
|
[
"daiming123.happy@163.com"
] |
daiming123.happy@163.com
|
2fc79e43702cf61bae34634f5bc1fb9c09da0e64
|
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
|
/google/cloud/websecurityscanner/v1beta/google-cloud-websecurityscanner-v1beta-java/proto-google-cloud-websecurityscanner-v1beta-java/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java
|
abfe6d8c877f5b11a8b2448e74d1ecba156c0c9a
|
[
"Apache-2.0"
] |
permissive
|
oltoco/googleapis-gen
|
bf40cfad61b4217aca07068bd4922a86e3bbd2d5
|
00ca50bdde80906d6f62314ef4f7630b8cdb6e15
|
refs/heads/master
| 2023-07-17T22:11:47.848185
| 2021-08-29T20:39:47
| 2021-08-29T20:39:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| true
| 2,590
|
java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto
package com.google.cloud.websecurityscanner.v1beta;
public interface ScanRunErrorTraceOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Indicates the error reason code.
* </pre>
*
* <code>.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1;</code>
* @return The enum numeric value on the wire for code.
*/
int getCodeValue();
/**
* <pre>
* Indicates the error reason code.
* </pre>
*
* <code>.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1;</code>
* @return The code.
*/
com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode();
/**
* <pre>
* If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
* message encountered during scan configuration validation that is performed
* before each scan run.
* </pre>
*
* <code>.google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;</code>
* @return Whether the scanConfigError field is set.
*/
boolean hasScanConfigError();
/**
* <pre>
* If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
* message encountered during scan configuration validation that is performed
* before each scan run.
* </pre>
*
* <code>.google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;</code>
* @return The scanConfigError.
*/
com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigError();
/**
* <pre>
* If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
* message encountered during scan configuration validation that is performed
* before each scan run.
* </pre>
*
* <code>.google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;</code>
*/
com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder();
/**
* <pre>
* If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
* common HTTP error code, if such is available. For example, if this code is
* 404, the scan has encountered too many NOT_FOUND responses.
* </pre>
*
* <code>int32 most_common_http_error_code = 3;</code>
* @return The mostCommonHttpErrorCode.
*/
int getMostCommonHttpErrorCode();
}
|
[
"bazel-bot-development[bot]@users.noreply.github.com"
] |
bazel-bot-development[bot]@users.noreply.github.com
|
8cfb065e7130fd6eaf0ede0bc92c05aa4b06740d
|
be03c0828dcb96be70aaf44fdb09e4fd2f3678dc
|
/src/java/redsocial/dao/Conexion.java
|
326a6a288bf9a4bd65f13e82a2c30ae540b1bfdc
|
[] |
no_license
|
crisspidey/red_social_1
|
2e1400a4c4b5c04134ae95619fee8433903fc9c8
|
4eeb614aba5ec620f12b113c03b3ecff29637bb5
|
refs/heads/master
| 2020-12-31T01:11:09.626623
| 2016-06-03T11:46:30
| 2016-06-03T11:46:30
| 59,310,827
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,473
|
java
|
package redsocial.dao;
import java.sql.*;
public class Conexion {
private static Connection CONEXION = null;
public static Connection getConnection() {
if (CONEXION == null) {
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
} catch (ClassNotFoundException e) {
System.out.println("Where is your MySQL JDBC Driver?");
e.printStackTrace();
} catch (InstantiationException e) {
System.out.println("Where is your MySQL JDBC Driver?");
e.printStackTrace();
} catch (IllegalAccessException e) {
System.out.println("Where is your MySQL JDBC Driver?");
e.printStackTrace();
}
try {
CONEXION = DriverManager.getConnection("jdbc:mysql://localhost:3306/redSocial", "root", "");
} catch (SQLException e) {
System.out.println("Connection Failed! Check output console");
e.printStackTrace();
}
}
return CONEXION;
}
public static void closeConnection() {
try {
if (CONEXION != null) {
CONEXION.close();
CONEXION = null;
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
|
[
"HP@HP-PC"
] |
HP@HP-PC
|
14cb46094955a8a90a915b47fba12d064aa19896
|
e9dc4e9b5046322b02c54e6a035f6620f0abbc89
|
/lian_hjy_project/src/main/java/com/zhanghp/mapper/ZhRentShareMapper.java
|
ccb372c73afcd1b334bfbef2aeb1ee05f84c0393
|
[] |
no_license
|
zhp1221/hjy
|
333003784ca8c97b0ef2e5af6d7b8843c2c6eeb7
|
88db8f0aca84e0b837de6dc8ebb43de3f0cf8e85
|
refs/heads/master
| 2023-08-28T04:02:54.552694
| 2021-10-31T11:24:21
| 2021-10-31T11:24:21
| 406,342,462
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 313
|
java
|
package com.zhanghp.mapper;
import com.zhanghp.bean.ZhRentShare;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 租赁分租信息 Mapper 接口
* </p>
*
* @author zhanghp
* @since 2021-09-12
*/
public interface ZhRentShareMapper extends BaseMapper<ZhRentShare> {
}
|
[
"zhanghp1221@126.com"
] |
zhanghp1221@126.com
|
b28daf081fc2dc5f8ffa86780ffca3aa1e68ae79
|
c3592435a60e02011373a84c5ccba19a2a86f607
|
/branches/applets/decompiler/src/com/ap2cu/applets/decompiler/jvminstructions/commandholders/LADD.java
|
0524dd4d60ae463ffc6937ad62349d93c247f2b2
|
[] |
no_license
|
AntoinePineau/ap2cu
|
b6cf141de002a04697f7a2e79ab584e55b820a2e
|
e5d028cfa4b043180492551bc643ce59b1d1b1c1
|
refs/heads/master
| 2021-01-02T08:51:36.555621
| 2011-03-25T16:21:49
| 2011-03-25T16:21:49
| 32,851,827
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 384
|
java
|
package com.ap2cu.applets.decompiler.jvminstructions.commandholders;
import com.ap2cu.applets.decompiler.jvminstructions.commands.LaddCommand;
import com.ap2cu.applets.decompiler.util.ExecutionState;
public class LADD extends AbstractInstructionCommandHolder {
protected void registerCommand() {
setCommand(new LaddCommand(ExecutionState.getMethodContext()));
}
}
|
[
"antoine.pineau@4ca988e6-4b8f-5483-1205-b26185594ba0"
] |
antoine.pineau@4ca988e6-4b8f-5483-1205-b26185594ba0
|
8556029c1550d607e1fcf1523870efc5bfc3dd05
|
080589f0f4a85e383c2384175e0221b27cae68ad
|
/src/com/osrs/io/jaggrab/JagGrabConstants.java
|
a68ed51ba7de8dfa6cc96e85ad410f33d0105669
|
[] |
no_license
|
KillTheKingBeTheKing/Regicide-Client
|
d77b59bb3eaaf1aea7c74b1e5727abb51e42b4d7
|
90986ca4047d5834c2c616703f2d03bea07f695c
|
refs/heads/master
| 2020-04-11T09:58:50.779031
| 2018-12-29T13:05:19
| 2018-12-29T13:05:19
| 161,698,615
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,128
|
java
|
package com.osrs.io.jaggrab;
import java.nio.charset.Charset;
public class JagGrabConstants {
//Files that will always be updated & downloaded from the update-server
//NOTE: These exact files must be defined in the update-server's PRELOAD_FILES
//array aswell to prevent CRC-checking issues.
public static final String[] PRELOAD_FILES = { // TODO
"main_file_sprites.dat",
"obj.idx", "obj.dat"
};
/**
* The port for the file-server service.
*/
public static final int FILE_SERVER_PORT = 43596;
/**
* The opcode for a JagGrab request.
*/
public static final byte JAGGRAB_REQUEST_OPCODE = 1;
/**
* The opcode for an OnDemand request.
*/
public static final byte ONDEMAND_REQUEST_OPCODE = 2;
/**
* The character set used in a JagGrab request.
*/
public static final Charset JAGGRAB_CHARSET = Charset.forName("US-ASCII");
/**
* The maximum length of an ondemand file chunk, in bytes.
*/
public static final int MAX_ONDEMAND_CHUNK_LENGTH_BYTES = 500;
}
|
[
"KillTheKingBeTheKing@hotmail.com"
] |
KillTheKingBeTheKing@hotmail.com
|
f45dde8d3dce9bb13f87e489097ac0ccc8d36deb
|
f789c7e9ba00918cdc3769213936755064e74ad2
|
/src/main/java/org/sfm/reflect/meta/DirectClassMeta.java
|
a6b7c72dda733bbcf9c41695f5805fc3d6cde8a8
|
[
"MIT"
] |
permissive
|
ranjeet-floyd/SimpleFlatMapper
|
3d114d55c33ee1b9e496e0e42c49ae4fead4b893
|
7077d8c0c6735a8e5486061c5be8b9f551f6eb1a
|
refs/heads/master
| 2021-01-15T14:36:41.344988
| 2015-04-12T20:12:47
| 2015-04-12T20:22:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,917
|
java
|
package org.sfm.reflect.meta;
import org.sfm.map.MapperBuildingException;
import org.sfm.reflect.InstantiatorDefinition;
import org.sfm.reflect.Getter;
import org.sfm.reflect.ReflectionService;
import org.sfm.reflect.Setter;
import org.sfm.reflect.impl.NullSetter;
import java.lang.reflect.Type;
import java.util.Collections;
import java.util.List;
public final class DirectClassMeta<T> implements ClassMeta<T> {
public static final String[] HEADERS = new String[]{""};
private final ReflectionService reflectService;
private final Type target;
public DirectClassMeta(Type target, ReflectionService reflectService) throws MapperBuildingException {
this.target = target;
this.reflectService = reflectService;
}
@Override
public ReflectionService getReflectionService() {
return reflectService;
}
@Override
public PropertyFinder<T> newPropertyFinder() {
return new DirectPropertyFinder();
}
@Override
public Type getType() {
return target;
}
@Override
public String[] generateHeaders() {
return HEADERS;
}
@Override
public boolean isLeaf() {
return true;
}
@Override
public List<InstantiatorDefinition> getInstantiatorDefinitions() {
return Collections.emptyList();
}
public class DirectPropertyFinder implements PropertyFinder<T> {
@Override
public <E> PropertyMeta<T, E> findProperty(PropertyNameMatcher propertyNameMatcher) {
return new DirectPropertyMeta<E>("direct", reflectService, target);
}
@Override
public List<InstantiatorDefinition> getEligibleInstantiatorDefinitions() {
return null;
}
@Override
public <E> ConstructorPropertyMeta<T, E> findConstructor(InstantiatorDefinition instantiatorDefinition) {
return null;
}
}
public class DirectPropertyMeta<E> extends PropertyMeta<T, E> {
private final Type type;
public DirectPropertyMeta(String name, ReflectionService reflectService, Type type) {
super(name, reflectService);
this.type = type;
}
@Override
protected Setter<T, E> newSetter() {
return NullSetter.setter();
}
@Override
protected Getter<T, E> newGetter() {
throw new UnsupportedOperationException();
}
@Override
public Type getType() {
return type;
}
@Override
public String getPath() {
return ".";
}
@Override
public String toString() {
return "DirectPropertyMeta{" +
"type=" + type +
'}';
}
}
@Override
public String toString() {
return "DirectClassMeta{" +
"target=" + target +
'}';
}
}
|
[
"arnaud.roger@gmail.com"
] |
arnaud.roger@gmail.com
|
8f55ec05fc92ba0c104ab4462d2d5983aeb7167e
|
41fa6fe2f4afa3d0e872571585d0dbd3ccdee9ab
|
/server/src/main/java/cn/kl/framework/util/mapperutil/java/GenerateFile.java
|
0e9f53c87cbfe067c9778fd6207fc68a56e9cfd7
|
[] |
no_license
|
kemuchen/blog
|
c0988cd812ed3e10b9aa706bb8add3d74ccc7558
|
279b5b5ab660230dc154a59f6d606550c4f9599b
|
refs/heads/master
| 2022-10-14T05:56:19.097957
| 2020-05-12T10:20:33
| 2020-05-12T10:20:33
| 136,882,869
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 205
|
java
|
package cn.kl.framework.util.mapperutil.java;
public class GenerateFile {
public static void main(String[] args) throws Exception {
MapperUtil.generateFile("framework", "sys_user");
}
}
|
[
"2584073978@qq.com"
] |
2584073978@qq.com
|
bf4ae1420345c1030062a4c96fbd2e7d419e8ef0
|
ba2eef5e3c914673103afb944dd125a9e846b2f6
|
/AL-Game/data/scripts/system/handlers/quest/gelkmaros/_21105CoweringRefugee.java
|
5e0d320bd88c5284c20fd89bec69a5bad7c99007
|
[] |
no_license
|
makifgokce/Aion-Server-4.6
|
519d1d113f483b3e6532d86659932a266d4da2f8
|
0a6716a7aac1f8fe88780aeed68a676b9524ff15
|
refs/heads/master
| 2022-10-07T11:32:43.716259
| 2020-06-10T20:14:47
| 2020-06-10T20:14:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,345
|
java
|
/**
* This file is part of Aion-Lightning <aion-lightning.org>.
*
* Aion-Lightning 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.
*
* Aion-Lightning 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-Lightning.
* If not, see <http://www.gnu.org/licenses/>.
*/
package quest.gelkmaros;
import com.aionemu.commons.utils.Rnd;
import com.aionemu.gameserver.model.gameobjects.Npc;
import com.aionemu.gameserver.model.gameobjects.player.Player;
import com.aionemu.gameserver.questEngine.handlers.QuestHandler;
import com.aionemu.gameserver.model.DialogAction;
import com.aionemu.gameserver.questEngine.model.QuestEnv;
import com.aionemu.gameserver.questEngine.model.QuestState;
import com.aionemu.gameserver.questEngine.model.QuestStatus;
import com.aionemu.gameserver.services.QuestService;
/**
* @author Cheatkiller
*
*/
public class _21105CoweringRefugee extends QuestHandler {
private final static int questId = 21105;
public _21105CoweringRefugee() {
super(questId);
}
@Override
public void register() {
qe.registerQuestNpc(799276).addOnQuestStart(questId);
qe.registerQuestNpc(799276).addOnTalkEvent(questId);
qe.registerQuestNpc(700812).addOnTalkEvent(questId);
qe.registerQuestNpc(799366).addOnTalkEvent(questId);
}
@Override
public boolean onDialogEvent(QuestEnv env) {
Player player = env.getPlayer();
QuestState qs = player.getQuestStateList().getQuestState(questId);
DialogAction dialog = env.getDialog();
int targetId = env.getTargetId();
if (qs == null || qs.getStatus() == QuestStatus.NONE || qs.canRepeat()) {
if (targetId == 799276) {
if (dialog == DialogAction.QUEST_SELECT) {
return sendQuestDialog(env, 4762);
} else {
return sendQuestStartDialog(env, 182207857, 1);
}
}
} else if (qs.getStatus() == QuestStatus.START) {
if (targetId == 799366) {
if (dialog == DialogAction.QUEST_SELECT) {
return sendQuestDialog(env, 1011);
} else if (dialog == DialogAction.SET_SUCCEED) {
Npc npc = (Npc) env.getVisibleObject();
npc.getController().onDelete();
removeQuestItem(env, 182207857, 1);
return defaultCloseDialog(env, 0, 1, true, false);
}
} else if (targetId == 700812) {
Npc npc = (Npc) env.getVisibleObject();
int npcId[] = { 799366, 216086 };
QuestService.addNewSpawn(npc.getWorldId(), npc.getInstanceId(), npcId[Rnd.get(0, npcId.length - 1)], npc.getX(), npc.getY(), npc.getZ(),
(byte) 0);
npc.getController().scheduleRespawn();
npc.getController().onDelete();
return true;
}
} else if (qs.getStatus() == QuestStatus.REWARD) {
if (targetId == 799276) {
if (dialog == DialogAction.USE_OBJECT) {
return sendQuestDialog(env, 10002);
}
return sendQuestEndDialog(env);
}
}
return false;
}
}
|
[
"Falke_34@080676fd-0f56-412f-822c-f8f0d7cea3b7"
] |
Falke_34@080676fd-0f56-412f-822c-f8f0d7cea3b7
|
1e7a658b27333dee9fedb537b7ce8cf8c14a79d2
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-new-fitness/results/XWIKI-14612-1-4-Single_Objective_GGA-IntegrationSingleObjective-/org/xwiki/rendering/internal/parser/DefaultContentParser_ESTest.java
|
6bcd470584422f75cad2b52a2688eee00045574f
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,075
|
java
|
/*
* This file was automatically generated by EvoSuite
* Sat May 16 16:12:05 UTC 2020
*/
package org.xwiki.rendering.internal.parser;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
import javax.inject.Provider;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.ViolatedAssumptionAnswer;
import org.evosuite.runtime.javaee.injection.Injector;
import org.junit.runner.RunWith;
import org.xwiki.model.reference.EntityReferenceSerializer;
import org.xwiki.rendering.internal.parser.DefaultContentParser;
import org.xwiki.rendering.internal.parser.confluence.ConfluenceParser;
import org.xwiki.rendering.internal.parser.docbook.DocBookParser;
import org.xwiki.rendering.syntax.Syntax;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class DefaultContentParser_ESTest extends DefaultContentParser_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
DefaultContentParser defaultContentParser0 = new DefaultContentParser();
Provider<ConfluenceParser> provider0 = (Provider<ConfluenceParser>) mock(Provider.class, new ViolatedAssumptionAnswer());
doReturn((Object) null).when(provider0).get();
Injector.inject(defaultContentParser0, (Class<?>) DefaultContentParser.class, "componentManagerProvider", (Object) provider0);
EntityReferenceSerializer<DocBookParser> entityReferenceSerializer0 = (EntityReferenceSerializer<DocBookParser>) mock(EntityReferenceSerializer.class, new ViolatedAssumptionAnswer());
Injector.inject(defaultContentParser0, (Class<?>) DefaultContentParser.class, "serializer", (Object) entityReferenceSerializer0);
Injector.validateBean(defaultContentParser0, (Class<?>) DefaultContentParser.class);
String string0 = "";
Syntax syntax0 = Syntax.MEDIAWIKI_1_0;
// Undeclared exception!
defaultContentParser0.parse("", syntax0);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
6183181219bcc90b5531805e7db2b9c03daaeca2
|
dbc00a8bcf2b54eb4edb03d113a3e70b44aabfbd
|
/lucene_solr_websolr/src/cn/qlq/jd/controller/JdController.java
|
aa9bb469726beb34f4acd60a53e4ba97ddec1a9d
|
[] |
no_license
|
qiao-zhi/AllProject
|
daad9829a6064e1448275677b2cf20f31604b682
|
9e7da0ed7b351cddfb62080873952ea34ed90ea1
|
refs/heads/master
| 2020-03-12T04:02:15.640076
| 2018-04-21T03:33:02
| 2018-04-21T03:33:02
| 130,436,459
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,103
|
java
|
package cn.qlq.jd.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import cn.qlq.jd.pojo.ProductModel;
import cn.qlq.jd.service.JdService;
/**
* 查询商品列表
*
*/
@Controller
public class JdController {
@Autowired
private JdService jdService;
// 商品列表
@RequestMapping(value = "/list.action")
public String list(String queryString, String catalog_name, String price, String sort, Model model)
throws Exception {
// 通过上面四个条件查询对象商品结果集
List<ProductModel> productModels = jdService.selectProductModelListByQuery(queryString, catalog_name, price,
sort);
model.addAttribute("productModels", productModels);
// 查询条件回显
model.addAttribute("queryString", queryString);
model.addAttribute("catalog_name", catalog_name);
model.addAttribute("price", price);
model.addAttribute("sort", sort);
return "product_list";
}
}
|
[
"qiao_liqiang@163.com"
] |
qiao_liqiang@163.com
|
ffde80be3a0c54e6c44ea9f044c0dbe0e9a5c334
|
3efa417c5668b2e7d1c377c41d976ed31fd26fdc
|
/src/br/com/mind5/file/fileImage/model/decisionTree/FimgRootInsert.java
|
2f6d4b7246371a23d074f88e64050ab1868de061
|
[] |
no_license
|
grazianiborcai/Agenda_WS
|
4b2656716cc49a413636933665d6ad8b821394ef
|
e8815a951f76d498eb3379394a54d2aa1655f779
|
refs/heads/master
| 2023-05-24T19:39:22.215816
| 2023-05-15T15:15:15
| 2023-05-15T15:15:15
| 109,902,084
| 0
| 0
| null | 2022-06-29T19:44:56
| 2017-11-07T23:14:21
|
Java
|
UTF-8
|
Java
| false
| false
| 3,253
|
java
|
package br.com.mind5.file.fileImage.model.decisionTree;
import java.util.ArrayList;
import java.util.List;
import br.com.mind5.file.fileImage.info.FimgInfo;
import br.com.mind5.file.fileImage.model.action.FimgVisiRootSelect;
import br.com.mind5.file.fileImage.model.action.FimgVisiWriteOnDisk;
import br.com.mind5.file.fileImage.model.checker.FimgCheckInsert;
import br.com.mind5.file.fileImage.model.checker.FimgCheckLangu;
import br.com.mind5.file.fileImage.model.checker.FimgCheckOwner;
import br.com.mind5.file.fileImage.model.checker.FimgCheckReference;
import br.com.mind5.model.action.ActionLazy;
import br.com.mind5.model.action.ActionStd;
import br.com.mind5.model.action.commom.ActionLazyCommom;
import br.com.mind5.model.checker.ModelChecker;
import br.com.mind5.model.checker.ModelCheckerHelperQueue;
import br.com.mind5.model.checker.ModelCheckerOption;
import br.com.mind5.model.decisionTree.DeciTreeOption;
import br.com.mind5.model.decisionTree.DeciTreeTemplateWrite;
public final class FimgRootInsert extends DeciTreeTemplateWrite<FimgInfo> {
public FimgRootInsert(DeciTreeOption<FimgInfo> option) {
super(option);
}
@Override protected ModelChecker<FimgInfo> buildCheckerHook(DeciTreeOption<FimgInfo> option) {
List<ModelChecker<FimgInfo>> queue = new ArrayList<>();
ModelChecker<FimgInfo> checker;
ModelCheckerOption checkerOption;
checkerOption = new ModelCheckerOption();
checkerOption.conn = option.conn;
checkerOption.schemaName = option.schemaName;
checkerOption.expectedResult = ModelCheckerOption.SUCCESS;
checker = new FimgCheckInsert(checkerOption);
queue.add(checker);
checkerOption = new ModelCheckerOption();
checkerOption.conn = option.conn;
checkerOption.schemaName = option.schemaName;
checkerOption.expectedResult = ModelCheckerOption.SUCCESS;
checker = new FimgCheckReference(checkerOption);
queue.add(checker);
checkerOption = new ModelCheckerOption();
checkerOption.conn = option.conn;
checkerOption.schemaName = option.schemaName;
checkerOption.expectedResult = ModelCheckerOption.EXIST_ON_DB;
checker = new FimgCheckOwner(checkerOption);
queue.add(checker);
checkerOption = new ModelCheckerOption();
checkerOption.conn = option.conn;
checkerOption.schemaName = option.schemaName;
checkerOption.expectedResult = ModelCheckerOption.EXIST_ON_DB;
checker = new FimgCheckLangu(checkerOption);
queue.add(checker);
return new ModelCheckerHelperQueue<>(queue);
}
@Override protected List<ActionStd<FimgInfo>> buildActionsOnPassedHook(DeciTreeOption<FimgInfo> option) {
List<ActionStd<FimgInfo>> actions = new ArrayList<>();
ActionStd<FimgInfo> coverOff = new FimgNodeCoverOffL1(option).toAction();
ActionStd<FimgInfo> insert = new FimgNodeInsert(option).toAction();
ActionLazy<FimgInfo> writeOnDisk = new ActionLazyCommom<FimgInfo>(option, FimgVisiWriteOnDisk.class);
ActionLazy<FimgInfo> select = new ActionLazyCommom<FimgInfo>(option, FimgVisiRootSelect.class);
insert.addPostAction(writeOnDisk);
writeOnDisk.addPostAction(select);
actions.add(coverOff);
actions.add(insert);
return actions;
}
}
|
[
"mmaciel@mind5.com"
] |
mmaciel@mind5.com
|
a55a1cb5b8954d30d3892d954e9b66d8154949e6
|
e3a37aaf17ec41ddc7051f04b36672db62a7863d
|
/common-service/device-service-project/device-service-interface/src/main/java/com/iot/device/vo/req/ota/VersionPercentReq.java
|
22746983a363c68f912207aa2d3a887cd0404da0
|
[] |
no_license
|
github4n/cloud
|
68477a7ecf81d1526b1b08876ca12cfe575f7788
|
7974042dca1ee25b433177e2fe6bda1de28d909a
|
refs/heads/master
| 2020-04-18T02:04:33.509889
| 2019-01-13T02:19:32
| 2019-01-13T02:19:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 997
|
java
|
package com.iot.device.vo.req.ota;
import java.util.List;
/**
* 项目名称:IOT云平台
* 模块名称:
* 功能描述:
* 创建人: nongchongwei
* 创建时间:2018年09月05日 14:27
* 修改人: nongchongwei
* 修改时间:2018年09月05日 14:27
*/
public class VersionPercentReq {
/**
* 产品Id
*/
private Long productId;
/**
* 租户Id
*/
private Long tenantId;
/**
* 版本列表
*/
private List<String> versionList;
public Long getProductId() {
return productId;
}
public void setProductId(Long productId) {
this.productId = productId;
}
public Long getTenantId() {
return tenantId;
}
public void setTenantId(Long tenantId) {
this.tenantId = tenantId;
}
public List<String> getVersionList() {
return versionList;
}
public void setVersionList(List<String> versionList) {
this.versionList = versionList;
}
}
|
[
"qizhiyong@LDS-Z-C5497.LEEDARSON.LOCAL"
] |
qizhiyong@LDS-Z-C5497.LEEDARSON.LOCAL
|
08053c46a64815672575ee34b2dfa48c548080f1
|
41ae950b46036a9ebe6a221fcc0a23601bfbf190
|
/AtCoder/src/panasonic_2020/E.java
|
d466f357ad99c3e804b44de348e12ee1e5d5b642
|
[] |
no_license
|
yuruiyin/AlgorithmLearn
|
f7a88a499d050fa9c5d666514a74de0f0a56d001
|
4224b664e6d05f233512f77088f6d1437a87cd97
|
refs/heads/master
| 2023-07-08T09:19:41.101604
| 2023-07-03T01:48:08
| 2023-07-03T01:48:08
| 143,147,502
| 4
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,513
|
java
|
package panasonic_2020;
import java.io.*;
import java.util.StringTokenizer;
public class E {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
Task task = new Task();
task.solve(1, in, out);
out.close();
}
static class Task {
public void solve(int testNumber, InputReader in, PrintWriter out) {
// TODO
}
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
public long nextLong() {
return Long.parseLong(next());
}
public double nextDouble() {
return Double.parseDouble(next());
}
}
}
|
[
"yuruiyin@cyou-inc.com"
] |
yuruiyin@cyou-inc.com
|
93fa1d200a7d260cc8be3e3a14fa5ba5d9734aa2
|
a715e8312a90d099b72c24e5b7da1372c9fe67fb
|
/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/highlighting/AmbiguityReturnValueResolution3.java
|
e7570ba72b23536ef9efe15be9212a958b7c7ce8
|
[
"Apache-2.0"
] |
permissive
|
wiltonlazary/bugvm-studio
|
ff98c1beca1f890013aa05ecd67f137a14a70c32
|
5861389424a51181c58178576c78cf35c0ceb1b5
|
refs/heads/master
| 2021-01-24T20:58:41.730805
| 2015-12-18T19:34:14
| 2015-12-18T19:34:14
| 56,322,614
| 2
| 1
| null | 2016-04-15T13:34:56
| 2016-04-15T13:34:56
| null |
UTF-8
|
Java
| false
| false
| 1,029
|
java
|
class Test {
static class Inner {
int foo() { return 0; }
Integer fooBoxed() { return 0; }
}
void test(Stream<Inner> sp) {
IntStream mi = sp.map(Inner::foo);
Stream<Integer> mI = sp.map(Inner::fooBoxed);
IntStream li = sp.<error descr="Cannot resolve method 'map(<lambda expression>)'">map</error>(inner->inner.<error descr="Cannot resolve method 'foo()'">foo</error>());
Stream<Integer> lI = sp.<error descr="Ambiguous method call: both 'Stream.map(Function<? super Inner, ? extends Integer>)' and 'Stream.map(IntFunction<? super Inner>)' match">map</error>(inner -> inner.<error descr="Cannot resolve method 'fooBoxed()'">fooBoxed</error>());
}
interface Stream<T> {
<R> Stream<R> map(Function<? super T, ? extends R> mapper);
IntStream map(IntFunction<? super T> mapper);
}
interface Function<T, R> {
public R _(T t);
}
interface IntFunction<T> {
public int _(T t);
}
interface IntStream {}
}
|
[
"github@ibinti.com"
] |
github@ibinti.com
|
ef58a06852b9ad992480f454c1a699a87b025035
|
ec6c71cf56b46486c62a61f15dd4a708e66740e5
|
/src/main/java/com/jitterted/ebp/blackjack/Card.java
|
4dbaa2d311eab75f54fc50e4756c875e348c7dbc
|
[] |
no_license
|
Oritsebawo/blackjack-mycmt-ebp-kr
|
8103ed0b60e714d4d25565c240252226a930208c
|
ededb523060c0cefa8806b5a145b2ad002dd705a
|
refs/heads/master
| 2023-04-21T01:18:45.015569
| 2021-04-30T19:14:50
| 2021-04-30T19:14:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,672
|
java
|
package com.jitterted.ebp.blackjack;
import org.fusesource.jansi.Ansi;
import static org.fusesource.jansi.Ansi.ansi;
public class Card {
private final Suit suit;
private final Rank rank;
public Card(Suit suit, String rank) {
this.suit = suit;
this.rank = Rank.of(rank);
}
public int rankValue() {
return rank.rankValue();
}
public String display() {
String[] lines = new String[7];
lines[0] = "┌─────────┐";
lines[1] = String.format("│%s%s │", rank.display(), rank.display().equals("10") ? "" : " ");
lines[2] = "│ │";
lines[3] = String.format("│ %s │", suit.symbol());
lines[4] = "│ │";
lines[5] = String.format("│ %s%s│", rank.display().equals("10") ? "" : " ", rank.display());
lines[6] = "└─────────┘";
Ansi.Color cardColor = suit.isRed() ? Ansi.Color.RED : Ansi.Color.BLACK;
return ansi()
.fg(cardColor).toString()
+ String.join(ansi().cursorDown(1)
.cursorLeft(11)
.toString(), lines);
}
@Override
public String toString() {
return "Card {" +
"suit=" + suit +
", rank=" + rank +
'}';
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Card card = (Card) o;
if (!suit.equals(card.suit)) return false;
return rank.equals(card.rank);
}
@Override
public int hashCode() {
int result = suit.hashCode();
result = 31 * result + rank.hashCode();
return result;
}
}
|
[
"tedyoung@gmail.com"
] |
tedyoung@gmail.com
|
2ae3529bcb573f8b3e6dd0e35dc70a15750e298f
|
ab190fe23dc5b67f069b049d32b512f192418615
|
/xmodel/src/main/java/pt/ipg/mcm/xmodel/encomendas/AddEncomendasIn.java
|
107af35dfd6b3800262422238350b5bfff016529
|
[] |
no_license
|
fabm/MestradoCM
|
55219c24c0db7a1f4e3d7c14424c9476a62f151c
|
00d61951af9c3f5f3c5cc6450e839e968d62c0ee
|
refs/heads/master
| 2021-01-20T21:56:38.163632
| 2015-09-10T20:43:27
| 2015-09-10T20:43:27
| 27,792,409
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,156
|
java
|
package pt.ipg.mcm.xmodel.encomendas;
import pt.ipg.mcm.calls.client.model.encomendas.AddEncomendasInRest;
import pt.ipg.mcm.calls.client.model.encomendas.EncomendaInRest;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import java.util.ArrayList;
import java.util.List;
@XmlAccessorType(XmlAccessType.FIELD)
public class AddEncomendasIn {
@XmlElementWrapper(name = "encomendas")
@XmlElement(name = "encomenda")
private List<EncomendaIn> encomendaInList;
public List<EncomendaIn> getEncomendaInList() {
return encomendaInList;
}
public void setEncomendaInList(List<EncomendaIn> encomendaIns) {
this.encomendaInList = encomendaIns;
}
public void convert(AddEncomendasInRest addEncomendasInRest) {
encomendaInList = new ArrayList<EncomendaIn>();
for(EncomendaInRest encomendaInRest:addEncomendasInRest.getEncomendaInList()){
EncomendaIn encomendaIn = new EncomendaIn();
encomendaIn.convert(encomendaInRest);
encomendaInList.add(encomendaIn);
}
}
}
|
[
"francisco.ab.monteiro@gmail.com"
] |
francisco.ab.monteiro@gmail.com
|
542651dd1554e36b235230047c976f3b57ec8de3
|
aa8085ea3aaf4cbbb938fac0ad95477d79c12e64
|
/subprojects/griffon-javafx/src/test/groovy/griffon/javafx/beans/property/ResetableDoublePropertyTest.java
|
44b0206afec72eadaf108a4866c05176926a30d3
|
[
"Apache-2.0"
] |
permissive
|
griffon/griffon
|
3197c9ee3a5ee3bcb26418729f5c611f6f49c2d9
|
de3a5a7807478e750bfa7684f796ced42322f1aa
|
refs/heads/development
| 2023-09-04T16:34:08.308818
| 2021-11-06T23:19:37
| 2021-11-06T23:19:37
| 1,889,544
| 288
| 96
|
Apache-2.0
| 2020-04-30T19:14:02
| 2011-06-13T15:58:14
|
Java
|
UTF-8
|
Java
| false
| false
| 1,072
|
java
|
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2008-2021 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 griffon.javafx.beans.property;
import griffon.annotations.core.Nonnull;
public class ResetableDoublePropertyTest extends AbstractResetablePropertyTestCase<Number> {
@Override
@Nonnull
protected ResetableProperty<Number> resolveProperty() {
return new ResetableDoubleProperty(42d);
}
@Override
@Nonnull
protected Number getNewValue() {
return 21d;
}
}
|
[
"aalmiray@gmail.com"
] |
aalmiray@gmail.com
|
aa55518f40bb29c8304f3f2832564152d83f0565
|
5d077727e31892498fd5b1838cd0e433f76c2f27
|
/src/com/igeek/bams/server/RankPanel.java
|
1d365b5f9ded71bf08ed8dcd14ac45aea2435de7
|
[] |
no_license
|
Team89s/BAMS
|
658e668f2dbe2b8bfb5fcc34173b34b3ed0f173b
|
c88fbf2b0a8561025ddbe740a8b08ea0613313ea
|
refs/heads/master
| 2023-04-08T03:44:53.676797
| 2021-04-24T16:26:41
| 2021-04-24T16:26:41
| 361,208,340
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,793
|
java
|
/*
* Created by JFormDesigner on Thu Nov 19 20:48:38 CST 2020
*/
package com.igeek.bams.server;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/**
* @author 11
*/
public class RankPanel extends JPanel {
public RankPanel() {
initComponents();
}
//点击返回按钮,跳转至ServerPanel
private void backButtonActionPerformed(ActionEvent e) {
CardLayout card = (CardLayout)this.getParent().getLayout();
card.show(getParent(),"server");
}
private void initComponents() {
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
totalBalanceButton = new JButton();
totalCeilingButton = new JButton();
totalLoanButton = new JButton();
rankButton = new JButton();
backButton = new JButton();
scrollPane = new JScrollPane();
label = new JLabel();
//======== this ========
setLayout(null);
//---- totalBalanceButton ----
totalBalanceButton.setText("\u67e5\u770b\u603b\u4f59\u989d");
add(totalBalanceButton);
totalBalanceButton.setBounds(20, 50, 105, 30);
//---- totalCeilingButton ----
totalCeilingButton.setText("\u67e5\u770b\u900f\u652f\u603b\u989d");
add(totalCeilingButton);
totalCeilingButton.setBounds(20, 120, 105, 30);
//---- totalLoanButton ----
totalLoanButton.setText("\u67e5\u770b\u8d37\u6b3e\u603b\u989d");
add(totalLoanButton);
totalLoanButton.setBounds(20, 190, 105, 30);
//---- rankButton ----
rankButton.setText("\u67e5\u770b\u603b\u8d44\u4ea7\u6392\u540d");
add(rankButton);
rankButton.setBounds(20, 255, 105, 30);
//---- backButton ----
backButton.setText("\u8fd4\u56de");
backButton.addActionListener(e -> backButtonActionPerformed(e));
add(backButton);
backButton.setBounds(20, 325, 105, 30);
//======== scrollPane ========
{
//---- label ----
label.setHorizontalAlignment(SwingConstants.CENTER);
scrollPane.setViewportView(label);
}
add(scrollPane);
scrollPane.setBounds(155, 50, 230, 300);
setPreferredSize(new Dimension(400, 425));
// JFormDesigner - End of component initialization //GEN-END:initComponents
}
// JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables
private JButton totalBalanceButton;
private JButton totalCeilingButton;
private JButton totalLoanButton;
private JButton rankButton;
private JButton backButton;
private JScrollPane scrollPane;
private JLabel label;
// JFormDesigner - End of variables declaration //GEN-END:variables
}
|
[
"270144864@qq.com"
] |
270144864@qq.com
|
d24a641d6513581447f041a57fec6dc7016b985a
|
f72971fbab14458776400d240216442d8a46cbe1
|
/modules/common/src/main/java/wsimport/lib/amadeus/wshotelavail/RequiredPayment.java
|
da99adaf572519fcda49771fa4d5bfc8f1e00037
|
[] |
no_license
|
hamzzy/Amadeus-Sabre-Java-Multi-GDS-SDK
|
cea5ee9f3be520bfbf509d5207adcc7c0f4ec4b8
|
a21e706c17b85d99e1ef573f66c88efa9e2918fe
|
refs/heads/master
| 2022-11-05T16:49:24.067050
| 2020-06-28T03:59:13
| 2020-06-28T03:59:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,798
|
java
|
package wsimport.lib.amadeus.wshotelavail;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for RequiredPayment complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="RequiredPayment">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="AcceptedPayments" type="{http://traveltalk.com/wsHotelAvail}ArrayOfAcceptedPayment" minOccurs="0"/>
* <element name="AmountPercent" type="{http://traveltalk.com/wsHotelAvail}AmountPercent" minOccurs="0"/>
* <element name="Deadline" type="{http://traveltalk.com/wsHotelAvail}Deadline" minOccurs="0"/>
* <element name="PaymentDescription" type="{http://traveltalk.com/wsHotelAvail}PaymentDescription" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="RetributionType" type="{http://traveltalk.com/wsHotelAvail}RequiredPaymentRetributionType" />
* <attribute name="PaymentCode" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RequiredPayment", propOrder = {
"acceptedPayments",
"amountPercent",
"deadline",
"paymentDescription"
})
public class RequiredPayment {
@XmlElement(name = "AcceptedPayments")
protected ArrayOfAcceptedPayment acceptedPayments;
@XmlElement(name = "AmountPercent")
protected AmountPercent amountPercent;
@XmlElement(name = "Deadline")
protected Deadline deadline;
@XmlElement(name = "PaymentDescription")
protected List<PaymentDescription> paymentDescription;
@XmlAttribute(name = "RetributionType")
protected RequiredPaymentRetributionType retributionType;
@XmlAttribute(name = "PaymentCode")
protected String paymentCode;
/**
* Gets the value of the acceptedPayments property.
*
* @return
* possible object is
* {@link ArrayOfAcceptedPayment }
*
*/
public ArrayOfAcceptedPayment getAcceptedPayments() {
return acceptedPayments;
}
/**
* Sets the value of the acceptedPayments property.
*
* @param value
* allowed object is
* {@link ArrayOfAcceptedPayment }
*
*/
public void setAcceptedPayments(ArrayOfAcceptedPayment value) {
this.acceptedPayments = value;
}
/**
* Gets the value of the amountPercent property.
*
* @return
* possible object is
* {@link AmountPercent }
*
*/
public AmountPercent getAmountPercent() {
return amountPercent;
}
/**
* Sets the value of the amountPercent property.
*
* @param value
* allowed object is
* {@link AmountPercent }
*
*/
public void setAmountPercent(AmountPercent value) {
this.amountPercent = value;
}
/**
* Gets the value of the deadline property.
*
* @return
* possible object is
* {@link Deadline }
*
*/
public Deadline getDeadline() {
return deadline;
}
/**
* Sets the value of the deadline property.
*
* @param value
* allowed object is
* {@link Deadline }
*
*/
public void setDeadline(Deadline value) {
this.deadline = value;
}
/**
* Gets the value of the paymentDescription property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the paymentDescription property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getPaymentDescription().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link PaymentDescription }
*
*
*/
public List<PaymentDescription> getPaymentDescription() {
if (paymentDescription == null) {
paymentDescription = new ArrayList<PaymentDescription>();
}
return this.paymentDescription;
}
/**
* Gets the value of the retributionType property.
*
* @return
* possible object is
* {@link RequiredPaymentRetributionType }
*
*/
public RequiredPaymentRetributionType getRetributionType() {
return retributionType;
}
/**
* Sets the value of the retributionType property.
*
* @param value
* allowed object is
* {@link RequiredPaymentRetributionType }
*
*/
public void setRetributionType(RequiredPaymentRetributionType value) {
this.retributionType = value;
}
/**
* Gets the value of the paymentCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPaymentCode() {
return paymentCode;
}
/**
* Sets the value of the paymentCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPaymentCode(String value) {
this.paymentCode = value;
}
}
|
[
"info@brakket.tech"
] |
info@brakket.tech
|
b5f8558dd60b940d4567d123d68012a2da6e5d6c
|
20f5bfc6f027d796fdfa7918e370abec89abe8d8
|
/PettyTest2017/ARouterTest/app/src/main/java/com/ethanco/aroutertest/SchameFilterActivity.java
|
95f35f19e8b628032251cdaa40e55689186789d9
|
[] |
no_license
|
calm-sjf/PettyModules
|
19115ab575cb878b184e93a7c2dce0cc425b91f9
|
0baae1c846efac3423f7792f378856b75e6a8450
|
refs/heads/master
| 2023-08-13T09:08:28.963076
| 2021-10-14T08:25:29
| 2021-10-14T08:25:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 408
|
java
|
package com.ethanco.aroutertest;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
/**
* TODO
*
* @author EthanCo
* @since 2017/2/20
*/
public class SchameFilterActivity extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
}
|
[
"fenghenyu@163.com"
] |
fenghenyu@163.com
|
800e2e468874742e0ee3ed2b80b209cc382ac655
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/5/5_4eb3ee1ad1b8611ba902acf07aa56daa0c07abb5/ThresholdBasedRelationshipCountCompactor/5_4eb3ee1ad1b8611ba902acf07aa56daa0c07abb5_ThresholdBasedRelationshipCountCompactor_s.java
|
52d32df97f99f5a8c39b7efc6ffa749cdc8e2388
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,750
|
java
|
/*
* Copyright (c) 2013 GraphAware
*
* This file is part of GraphAware.
*
* GraphAware is free software: you can redistribute it and/or modify it under the terms of
* the GNU General Public License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of
* the GNU General Public License along with this program. If not, see
* <http://www.gnu.org/licenses/>.
*/
package com.graphaware.neo4j.relcount.logic;
import com.graphaware.neo4j.relcount.representation.ComparableRelationship;
import org.neo4j.graphdb.Node;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* Default production implementation of {@link RelationshipCountCompactor} which compacts relationship counts based
* on a threshold.
* <p/>
* More specifically, if there is a single more general relationship representation (see {@link com.graphaware.neo4j.relcount.representation.PartiallyComparableByGenerality} for more info)
* that would cover more than {@link #DEFAULT_COMPACTION_THRESHOLD} cached relationship counts, these relationship counts are compacted into the
* general form.
*/
public class ThresholdBasedRelationshipCountCompactor implements RelationshipCountCompactor {
private static final int DEFAULT_COMPACTION_THRESHOLD = 10;
private final int compactionThreshold;
private final RelationshipCountManager countManager;
/**
* Construct a new compactor with default compaction threshold.
*
* @param countManager manager.
*/
public ThresholdBasedRelationshipCountCompactor(RelationshipCountManager countManager) {
this(DEFAULT_COMPACTION_THRESHOLD, countManager);
}
/**
* Construct a new compactor.
*
* @param compactionThreshold compaction threshold, see class javadoc.
* @param countManager manager.
*/
public ThresholdBasedRelationshipCountCompactor(int compactionThreshold, RelationshipCountManager countManager) {
this.compactionThreshold = compactionThreshold;
this.countManager = countManager;
}
/**
* {@inheritDoc}
*/
@Override
public void compactRelationshipCounts(ComparableRelationship trigger, Node node) {
Set<Map.Entry<ComparableRelationship, Integer>> cachedCounts = countManager.getRelationshipCounts(node).entrySet();
for (ComparableRelationship generalization : trigger.generateOneMoreGeneral()) {
Map<ComparableRelationship, Integer> compactionCandidates = new HashMap<ComparableRelationship, Integer>();
for (Map.Entry<ComparableRelationship, Integer> compactionCandidate : cachedCounts) {
if (generalization.isStrictlyMoreGeneralThan(compactionCandidate.getKey())) {
compactionCandidates.put(compactionCandidate.getKey(), compactionCandidate.getValue());
}
}
if (compactionCandidates.size() > compactionThreshold) {
for (Map.Entry<ComparableRelationship, Integer> soonToBeGone : compactionCandidates.entrySet()) {
countManager.incrementCount(generalization, node, soonToBeGone.getValue());
countManager.deleteCount(soonToBeGone.getKey(), node);
}
compactRelationshipCounts(generalization, node);
}
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
e986036d3c0c7eef705336f41f9c642b76d53fba
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/deeplearning4j--deeplearning4j/9c36bc79813b1d758603594703e459a20ce60afc/before/RmsPropUpdater.java
|
f9cccde75fa2919d4258ae7d4ec8f64b831443dd
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003
| 2018-11-30T13:00:57
| 2018-11-30T13:00:57
| 87,353,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 743
|
java
|
package org.deeplearning4j.nn.updater;
import org.deeplearning4j.nn.api.Layer;
import org.nd4j.linalg.learning.GradientUpdater;
/**
* @author Adam Gibson
*/
@Deprecated
public class RmsPropUpdater extends BaseUpdater {
@Override
public void init() {
}
@Override
public GradientUpdater init(String variable, Layer layer) {
org.nd4j.linalg.learning.RmsProp rmsprop = (org.nd4j.linalg.learning.RmsProp) updaterForVariable.get(variable);
if(rmsprop == null) {
rmsprop = new org.nd4j.linalg.learning.RmsProp(layer.conf().getLearningRateByParam(variable), layer.conf().getLayer().getRmsDecay());
updaterForVariable.put(variable,rmsprop);
}
return rmsprop;
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
de24ed31195c5d3f9a7c4562053d792b89502a9e
|
be47d9733947b3e1517e1bc607f8e02955a40060
|
/app/src/main/java/com/aserbao/aserbaosandroid/designMode/singleMode/SingleModeActivity.java
|
d6429422aa97ce027db8130b9eb68694ef1e5b52
|
[] |
no_license
|
DAVYSEN/AserbaosAndroid
|
abc803dc7e18816f4d38f6e50daffe9adfac82ff
|
45c2942d22b8e94808bfa9d06fbf1fcaf3ffca99
|
refs/heads/master
| 2020-07-05T02:04:45.445541
| 2019-08-14T08:22:25
| 2019-08-14T08:22:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,364
|
java
|
package com.aserbao.aserbaosandroid.designMode.singleMode;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import com.aserbao.aserbaosandroid.base.BaseRecyclerViewActivity;
import com.aserbao.aserbaosandroid.base.beans.BaseRecyclerBean;
public class SingleModeActivity extends BaseRecyclerViewActivity {
@Override
public void initGetData() {
mBaseRecyclerBeen.add(new BaseRecyclerBean("懒汉式,线程不安全",1));
mBaseRecyclerBeen.add(new BaseRecyclerBean("懒汉式,线程安全",2));
mBaseRecyclerBeen.add(new BaseRecyclerBean("饿汉式",3));
mBaseRecyclerBeen.add(new BaseRecyclerBean("双检锁/双重校验锁",4));
mBaseRecyclerBeen.add(new BaseRecyclerBean("静态内部类",5));
}
@Override
public void itemClickBack(View view, int position) {
switch (position){
case 1:
Car1.getInstance().drive();
break;
case 2:
Car2.getInstance().drive();
break;
case 3:
Car3.getInstance().drive();
break;
case 4:
Car4.getSingleton().drive();
break;
case 5:
Car5.getInstance().drive();
break;
}
}
}
|
[
"aserbao@163.com"
] |
aserbao@163.com
|
0c3fa3f233c015213efc4f8631754fc59fbd333f
|
9d9c0d9aba0c3102787a0215621b24dbe7f64b59
|
/jeecms-admin/src/main/java/com/jeecms/admin/controller/wechat/WechatFansTagController.java
|
e3d33d8277a7319528a65b7c536b70a7fd53d962
|
[] |
no_license
|
hd19901110/jeecms1.4.1test
|
b354019c57a06384524d53aa667614c1f4e5a743
|
4e3e0cb31513e53004aa20c108f79741203becb0
|
refs/heads/master
| 2022-12-08T06:10:06.868825
| 2020-08-31T09:59:19
| 2020-08-31T09:59:19
| 285,445,431
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,645
|
java
|
/**
* @Copyright: 江西金磊科技发展有限公司 All rights reserved.Notice 仅限于授权后使用,禁止非授权传阅以及私自用于商业目的。
*/
package com.jeecms.admin.controller.wechat;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.jeecms.common.base.controller.BaseController;
import com.jeecms.common.exception.GlobalException;
import com.jeecms.common.jsonfilter.annotation.MoreSerializeField;
import com.jeecms.common.jsonfilter.annotation.SerializeField;
import com.jeecms.common.response.ResponseInfo;
import com.jeecms.util.SystemContextUtils;
import com.jeecms.wechat.domain.AbstractWeChatInfo;
import com.jeecms.wechat.domain.WechatFansTag;
import com.jeecms.wechat.domain.dto.WechatTagDto;
import com.jeecms.wechat.service.AbstractWeChatInfoService;
import com.jeecms.wechat.service.WechatFansTagService;
/**
* 微信粉丝标签控制器
* @author: ljw
* @date: 2019年5月28日 上午11:51:04
*/
@RequestMapping(value = "/wechattags")
@RestController
public class WechatFansTagController extends BaseController<WechatFansTag, Integer> {
@Autowired
private WechatFansTagService wechatFansTagService;
@Autowired
private AbstractWeChatInfoService abstractWeChatInfoService;
/**
* 新建标签
* @Title: addTags
* @param request 请求
* @param dto 标签传输
* @return ResponseInfo 返回
* @throws GlobalException 异常
*/
@PostMapping()
public ResponseInfo addTags(HttpServletRequest request, @RequestBody WechatTagDto dto)
throws GlobalException {
Integer userId = SystemContextUtils.getUserId(request);
//检查权限
abstractWeChatInfoService.checkWeChatAuth(userId, null, dto.getAppId());
return wechatFansTagService.addTags(dto);
}
/**
* 删除标签
* @Title: deleteTags
* @param request 请求
* @param dto 标签传输
* @return ResponseInfo 响应
* @throws GlobalException 异常
*/
@DeleteMapping()
public ResponseInfo deleteTags(HttpServletRequest request, @RequestBody WechatTagDto dto)
throws GlobalException {
AbstractWeChatInfo info = abstractWeChatInfoService.findAppId(dto.getAppId());
Integer userId = SystemContextUtils.getUserId(request);
//检查权限
abstractWeChatInfoService.checkWeChatAuth(userId, info.getId(), null);
return wechatFansTagService.deleteTags(dto.getAppId(), dto.getTagid());
}
/**
* 编辑标签
* @Title: updateTags
* @param request 请求
* @param dto 标签传输
* @return ResponseInfo 返回
* @throws GlobalException 异常
*/
@PutMapping()
public ResponseInfo updateTags(HttpServletRequest request, @RequestBody WechatTagDto dto)
throws GlobalException {
Integer userId = SystemContextUtils.getUserId(request);
//检查权限
abstractWeChatInfoService.checkWeChatAuth(userId, null, dto.getAppId());
return wechatFansTagService.updateTags(dto);
}
/**
* 查询便签名是否存在
* @Title: check
* @param request 请求
* @param tagName 标签名称
* @return ResponseInfo 返回
* @throws GlobalException 异常
*/
@GetMapping(value = "/check")
public ResponseInfo check(HttpServletRequest request, String appId, String tagName) throws GlobalException {
Boolean flag = wechatFansTagService.check(appId,tagName);
if (!flag) {
return new ResponseInfo(false);
} else {
return new ResponseInfo(true);
}
}
/**
* 设置标签
* @Title: setTags
* @param request 请求
* @param dto 传输Dto
* @return ResponseInfo 返回
* @throws GlobalException 异常
*/
@PostMapping(value = "/set")
public ResponseInfo setTags(HttpServletRequest request, @RequestBody WechatTagDto dto)
throws GlobalException {
Integer userId = SystemContextUtils.getUserId(request);
//检查权限
abstractWeChatInfoService.checkWeChatAuth(userId, null, dto.getAppId());
return wechatFansTagService.setTags(dto);
}
/**
* 同步标签
* @Title: syncTags
* @param request 请求
* @param response 响应
* @return ResponseInfo 返回
* @throws GlobalException 异常
*/
@GetMapping(value = "/syncTags")
public ResponseInfo syncTags(HttpServletRequest request, HttpServletResponse response) throws GlobalException {
String appId = request.getParameter("appId");
Integer userId = SystemContextUtils.getUserId(request);
//检查权限
abstractWeChatInfoService.checkWeChatAuth(userId, null, appId);
return wechatFansTagService.syncTags(appId);
}
/**
* 获取该公众号下的全部标签
* @Title: app
* @param request 请求
* @param response 响应
* @return ResponseInfo 返回
* @throws GlobalException 异常
*/
@GetMapping(value = "/app")
@MoreSerializeField({
@SerializeField(clazz = WechatFansTag.class, includes = { "id", "tagName", "userCount" }), })
public ResponseInfo app(HttpServletRequest request, HttpServletResponse response) throws GlobalException {
String appId = request.getParameter("appId");
return wechatFansTagService.tags(appId);
}
}
|
[
"2638177992@qq.com"
] |
2638177992@qq.com
|
acb0bd20ff4a0c9367b4baa7886073b6411e6122
|
4a2f34732fc6d66732db344375adbab21e94c056
|
/src/com/ijustyce/launcher/LoadApp.java
|
0a2d10b74e483610a47354e4d57337891965979c
|
[] |
no_license
|
ijustyce/safe
|
96de0074d336a00386a241fa616ebb856bfa7737
|
5d3b30483518523727d1edf77d12edcd5c769ecb
|
refs/heads/master
| 2016-09-06T05:55:36.569738
| 2014-04-20T04:58:26
| 2014-04-20T04:58:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,583
|
java
|
package com.ijustyce.launcher;
import java.util.List;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
public class LoadApp {
private static String[] pkg = new String[2];
private static String[] apkName = new String[2];
private static String[] className = new String[2];
public static void getAppList(MainActivity activity){
int times = 0;
Intent intent = new Intent(Intent.ACTION_MAIN, null);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
List<ResolveInfo> list = activity.getBaseContext().
getPackageManager().queryIntentActivities(intent,
PackageManager.GET_ACTIVITIES);
for (ResolveInfo resolveInfo : list) {
if (times == 2) {
times = 0;
}
analyseInfo(resolveInfo, activity , times);
times++;
}
}
private static void analyseInfo(ResolveInfo resolveInfo , MainActivity activity, int times){
if(resolveInfo.activityInfo.name.contains(".")){
className[times] = resolveInfo.activityInfo.name;
pkg[times] = resolveInfo.activityInfo.packageName;
apkName[times] = resolveInfo.activityInfo.loadLabel
(activity.getBaseContext().getPackageManager()).toString();
}else {
className[times] = resolveInfo.activityInfo.packageName + "."
+ resolveInfo.activityInfo.name;
pkg[times] = resolveInfo.activityInfo.packageName;
apkName[times] = resolveInfo.activityInfo.loadLabel
(activity.getBaseContext().getPackageManager()).toString();
}if (times == 1) {
activity.showApp(pkg, className, apkName);
}
}
}
|
[
"="
] |
=
|
e2d57b0fc8b20d87fc61bfaf5cc5464402d84c0b
|
485913af70aecff32e004eaedf516061e542c4f3
|
/src/test/java/com/simiacryptus/probabilityModel/benchmark/impl/TreeModeler.java
|
d0a06175d829a082eb86b63f41925347e85c9a27
|
[] |
no_license
|
acharneski/volumetry
|
1a12929222ef9e6ea35446513ee0d6dcd11a98b4
|
243c41ca5c563765adca7d91017d6b55bd17b55a
|
refs/heads/master
| 2021-01-16T19:02:53.420664
| 2015-06-21T18:53:05
| 2015-06-21T18:53:05
| 35,596,000
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,202
|
java
|
package com.simiacryptus.probabilityModel.benchmark.impl;
import java.util.Arrays;
import java.util.Collection;
import java.util.Random;
import com.simiacryptus.probabilityModel.ModelSampler;
import com.simiacryptus.probabilityModel.benchmark.base.DataDistribution;
import com.simiacryptus.probabilityModel.benchmark.base.DataLearner;
import com.simiacryptus.probabilityModel.benchmark.base.DataSampler;
import com.simiacryptus.probabilityModel.benchmark.base.TestObject;
import com.simiacryptus.probabilityModel.model.PointModel;
import com.simiacryptus.probabilityModel.visitors.ModelPartitioner;
import com.simiacryptus.probabilityModel.volume.DoubleVolume;
public final class TreeModeler extends TestObject implements DataDistribution, DataSampler, DataLearner
{
private final ModelPartitioner partitioner;
private PointModel model;
private final Random random = new Random();
private final DoubleVolume volume;
public TreeModeler(DoubleVolume volume, ModelPartitioner partitioner)
{
this.volume = volume;
this.partitioner = partitioner;
this.model = new PointModel(volume);
}
@Override
public void train()
{
partitioner.visit(model, Integer.MAX_VALUE);
}
@Override
public double getDensity(double[] p)
{
return model.getDensity(p);
}
@Override
public void addPoints(Collection<double[]> points)
{
for(double[] point : points)
{
model.addDataPoint(point);
}
}
@Override
public String getName()
{
return this.toString();
}
@Override
public String toString()
{
StringBuilder builder = new StringBuilder();
builder.append(getClass().getSimpleName());
builder.append("[");
builder.append(this.partitioner);
builder.append("]");
return builder.toString();
}
@Override
public Collection<double[]> getPoints(int count)
{
return Arrays.asList(new ModelSampler(model).sample(count, random));
}
@Override
public void reset()
{
model = new PointModel(model.getRegion().getBounds());
}
@Override
public DoubleVolume getVolume()
{
return volume;
}
}
|
[
"acharneski@gmail.com"
] |
acharneski@gmail.com
|
2a45292bcfbe2de0a56d5ccaac1b5e98fa005d44
|
78cf4b26879ad7fdfaec22ae915c1516a7b12d94
|
/src/main/java/com/thandb/bugtracker/config/LoggingConfiguration.java
|
93c268716a5bd530aac63e0f32d587ae4782e1ff
|
[] |
no_license
|
ThanDB/BugTrackerJHipster
|
2f302b89098845772ccf38250e99516d91a7aff4
|
de58ac7c494f748b0203854a7225bf84b8b504d1
|
refs/heads/master
| 2022-12-30T22:45:11.301780
| 2019-11-08T03:22:24
| 2019-11-08T03:22:24
| 220,378,279
| 0
| 0
| null | 2022-12-16T04:40:57
| 2019-11-08T03:21:37
|
Java
|
UTF-8
|
Java
| false
| false
| 2,127
|
java
|
package com.thandb.bugtracker.config;
import ch.qos.logback.classic.LoggerContext;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.github.jhipster.config.JHipsterProperties;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import java.util.HashMap;
import java.util.Map;
import static io.github.jhipster.config.logging.LoggingUtils.*;
/*
* Configures the console and Logstash log appenders from the app properties
*/
@Configuration
@RefreshScope
public class LoggingConfiguration {
public LoggingConfiguration(@Value("${spring.application.name}") String appName,
@Value("${server.port}") String serverPort,
JHipsterProperties jHipsterProperties,
ObjectMapper mapper) throws JsonProcessingException {
LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
Map<String, String> map = new HashMap<>();
map.put("app_name", appName);
map.put("app_port", serverPort);
String customFields = mapper.writeValueAsString(map);
JHipsterProperties.Logging loggingProperties = jHipsterProperties.getLogging();
JHipsterProperties.Logging.Logstash logstashProperties = loggingProperties.getLogstash();
if (loggingProperties.isUseJsonFormat()) {
addJsonConsoleAppender(context, customFields);
}
if (logstashProperties.isEnabled()) {
addLogstashTcpSocketAppender(context, customFields, logstashProperties);
}
if (loggingProperties.isUseJsonFormat() || logstashProperties.isEnabled()) {
addContextListener(context, customFields, loggingProperties);
}
if (jHipsterProperties.getMetrics().getLogs().isEnabled()) {
setMetricsMarkerLogbackFilter(context, loggingProperties.isUseJsonFormat());
}
}
}
|
[
"johndoe@example.com"
] |
johndoe@example.com
|
7e3fc79a06c19883b1de551ae9ad44374f397994
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/paielasticdatasetaccelerator-20220801/src/main/java/com/aliyun/paielasticdatasetaccelerator20220801/models/ListComponentsResponse.java
|
6d31902b67b4a25ef97836ca849f88a1cced9eaf
|
[
"Apache-2.0"
] |
permissive
|
aliyun/alibabacloud-java-sdk
|
83a6036a33c7278bca6f1bafccb0180940d58b0b
|
008923f156adf2e4f4785a0419f60640273854ec
|
refs/heads/master
| 2023-09-01T04:10:33.640756
| 2023-09-01T02:40:45
| 2023-09-01T02:40:45
| 288,968,318
| 40
| 45
| null | 2023-06-13T02:47:13
| 2020-08-20T09:51:08
|
Java
|
UTF-8
|
Java
| false
| false
| 1,382
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.paielasticdatasetaccelerator20220801.models;
import com.aliyun.tea.*;
public class ListComponentsResponse extends TeaModel {
@NameInMap("headers")
@Validation(required = true)
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
@Validation(required = true)
public Integer statusCode;
@NameInMap("body")
@Validation(required = true)
public ListComponentsResponseBody body;
public static ListComponentsResponse build(java.util.Map<String, ?> map) throws Exception {
ListComponentsResponse self = new ListComponentsResponse();
return TeaModel.build(map, self);
}
public ListComponentsResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public ListComponentsResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public ListComponentsResponse setBody(ListComponentsResponseBody body) {
this.body = body;
return this;
}
public ListComponentsResponseBody getBody() {
return this.body;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
e893b791108f259cdd5bb66f754ddf4b25a10b95
|
dc82fa0b6bca8c019412b617a470fa3a4daf0e7f
|
/src/com/class23/Developer.java
|
7460004a13c1924637f06bf338225425ba7d410d
|
[] |
no_license
|
frankbahar/Java-Automation
|
e64760d785e1ecf42e778f67af8d0d62f01f94a4
|
ebfc4050c8c0dfab75de00537577ec5d50a41052
|
refs/heads/master
| 2020-05-03T00:08:48.639268
| 2019-05-30T03:04:25
| 2019-05-30T03:04:25
| 178,301,931
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 137
|
java
|
package com.class23;
public class Developer extends ScrumTeam {
public void code() {
System.out.println("Developer can code");
}
}
|
[
"frankbahar07@gmail.com"
] |
frankbahar07@gmail.com
|
f3aaf5dbc47e467ab0efed260e1f692f33424cbd
|
c94c3baff42f59a983c3b2bea6a6ef900ab516be
|
/rest/src/main/java/io/khasang/ba/config/application/WebConfig.java
|
ac7c2193678bb149e81268a23ee66b62a39becf3
|
[
"MIT"
] |
permissive
|
svepppp/practice
|
96db72a08b39841b6122c18cc3982797b3b96cf8
|
3ab466bcc8fd2550aba156dbb8bfd1bd723a161f
|
refs/heads/master
| 2022-12-22T19:49:18.324896
| 2019-08-02T11:53:53
| 2019-08-02T11:53:53
| 163,073,854
| 1
| 0
|
MIT
| 2022-12-16T09:45:29
| 2018-12-25T10:43:38
|
Java
|
UTF-8
|
Java
| false
| false
| 1,276
|
java
|
package io.khasang.ba.config.application;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.web.servlet.view.InternalResourceViewResolver;
@Configuration
@ComponentScan({"io.khasang.ba"})
@EnableWebMvc
public class WebConfig extends WebMvcConfigurerAdapter {
@Bean
public InternalResourceViewResolver viewResolver() {
InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
viewResolver.setPrefix("/WEB-INF/views/");
viewResolver.setSuffix(".jsp");
viewResolver.setContentType("text/html;charset=utf-8");
return viewResolver;
}
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/css/**").addResourceLocations("/WEB-INF/views/css/");
registry.addResourceHandler("/image/**").addResourceLocations("/WEB-INF/views/image/");
}
}
|
[
"azon.sk@gmail.com"
] |
azon.sk@gmail.com
|
d8afc6c4b71d649d5f1752785fd4cc88d62462ac
|
47d15e60577c1fe5da8cc1c8c5f44c3fc754085d
|
/Project_Finals/Program/Numericals/src/Pair.java
|
d63b31a137b68bf5396b6d0ee7c873c94e446df7
|
[] |
no_license
|
PatrickCunanan/GE-ELEC-Codes-UST-4th-Year-2nd-Semester
|
7e52874bc6ac563493466b9868f3e559da433864
|
6f2ca5e87542628aad6e6148a2767a9368d225a6
|
refs/heads/master
| 2020-04-16T07:34:18.809140
| 2019-01-12T13:39:26
| 2019-01-12T13:39:26
| 165,391,971
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 416
|
java
|
public class Pair {
private double x = 0;
private double y = 0;
public Pair(double x, double y) {
this.setX(x);
this.setY(y);
}
public double getX() {
return x;
}
public void setX(double x) {
this.x = x;
}
public double getY() {
return y;
}
public void setY(double y) {
this.y = y;
}
public boolean same(Pair p2) {
return this.getX() == p2.getX() && this.getY() == p2.getY();
}
}
|
[
"="
] |
=
|
6cd45bf6ff7e787ff664d7b19caa7d91a68d4d1f
|
55ead98be9861c16d557d80c9fb9be7c06b78857
|
/client-android/activiti-android-client/src/main/java/com/activiti/android/sdk/services/TaskService.java
|
1dfde1a884d98b5ffcb4749a0bae62b3c54e59fe
|
[
"Apache-2.0"
] |
permissive
|
sshyran/activiti-client-sdk
|
a8ff8687981d251b3783d4a5d93eb17c0a5c32f9
|
a9d4b7c1f89963c1620df6eb95ccd6fc4fe4436e
|
refs/heads/master
| 2023-04-09T19:15:54.144498
| 2019-01-04T14:49:50
| 2019-01-04T14:49:50
| 203,570,654
| 0
| 0
| null | 2019-08-21T11:31:48
| 2019-08-21T11:31:47
| null |
UTF-8
|
Java
| false
| false
| 8,173
|
java
|
/*
* Copyright (C) 2005-2016 Alfresco Software Limited.
*
* This file is part of Alfresco Activiti Client.
*
* 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.activiti.android.sdk.services;
import java.util.List;
import okhttp3.RequestBody;
import retrofit2.Callback;
import com.activiti.client.api.ContentAPI;
import com.activiti.client.api.TaskAPI;
import com.activiti.client.api.model.common.ResultList;
import com.activiti.client.api.model.editor.form.FormDefinitionRepresentation;
import com.activiti.client.api.model.editor.form.OptionRepresentation;
import com.activiti.client.api.model.editor.form.request.CompleteFormRepresentation;
import com.activiti.client.api.model.runtime.ChecklistOrderRepresentation;
import com.activiti.client.api.model.runtime.CommentRepresentation;
import com.activiti.client.api.model.runtime.RelatedContentRepresentation;
import com.activiti.client.api.model.runtime.SaveFormRepresentation;
import com.activiti.client.api.model.runtime.TaskRepresentation;
import com.activiti.client.api.model.runtime.request.AddContentRelatedRepresentation;
import com.activiti.client.api.model.runtime.request.AssignTaskRepresentation;
import com.activiti.client.api.model.runtime.request.AttachFormTaskRepresentation;
import com.activiti.client.api.model.runtime.request.InvolveTaskRepresentation;
import com.activiti.client.api.model.runtime.request.QueryTasksRepresentation;
import com.activiti.client.api.model.runtime.request.UpdateTaskRepresentation;
import com.alfresco.client.RestClient;
/**
* Created by jpascal on 11/12/2014.
*/
public class TaskService extends ActivitiService
{
protected TaskAPI api;
protected ContentAPI contentApi;
TaskService(RestClient client)
{
super(client);
api = client.retrofit.create(TaskAPI.class);
contentApi = client.retrofit.create(ContentAPI.class);
}
public TaskAPI getTaskAPI()
{
return api;
}
public String getShareUrl(String taskId)
{
return String.format(restClient.endpoint.concat("/workflow/#/task/%s"), taskId);
}
// ///////////////////////////////////////////////////////////////////
// LISTING
// ///////////////////////////////////////////////////////////////////
public void list(QueryTasksRepresentation filter, Callback<ResultList<TaskRepresentation>> callback)
{
api.listTasks(filter).enqueue(callback);
}
public ResultList<TaskRepresentation> list(QueryTasksRepresentation filter)
{
try
{
return api.listTasks(filter).execute().body();
}
catch (Exception e)
{
return null;
}
}
// ///////////////////////////////////////////////////////////////////
// LIFECYCLE
// ///////////////////////////////////////////////////////////////////
public void getById(String taskId, Callback<TaskRepresentation> callback)
{
api.getTask(taskId).enqueue(callback);
}
public void create(TaskRepresentation task, Callback<TaskRepresentation> callback)
{
api.createNewTask(task).enqueue(callback);
}
public void edit(String taskId, UpdateTaskRepresentation request, Callback<TaskRepresentation> callback)
{
api.updateTask(taskId, request).enqueue(callback);
}
public void complete(String taskId, Callback<Void> callback)
{
api.completeTask(taskId).enqueue(callback);
}
// ///////////////////////////////////////////////////////////////////
// CONTENT
// ///////////////////////////////////////////////////////////////////
public void getAttachments(String taskId, Callback<ResultList<RelatedContentRepresentation>> callback)
{
api.getRelatedContentForTask(taskId).enqueue(callback);
}
public void addAttachment(String taskId, RequestBody resource, Callback<RelatedContentRepresentation> callback)
{
api.createRelatedContentOnTask(taskId, resource).enqueue(callback);
}
public void deleteAttachment(Long contentId, Callback<Void> callback)
{
contentApi.deleteContent(Long.toString(contentId)).enqueue(callback);
}
public void linkAttachment(String taskId, AddContentRelatedRepresentation representation,
Callback<RelatedContentRepresentation> callback)
{
api.linkRelatedContentOnTask(taskId, representation).enqueue(callback);
}
// ///////////////////////////////////////////////////////////////////
// COMMENT
// ///////////////////////////////////////////////////////////////////
public void getComments(String taskId, Callback<ResultList<CommentRepresentation>> callback)
{
api.getTaskComments(taskId).enqueue(callback);
}
public void addComment(String taskId, CommentRepresentation request, Callback<CommentRepresentation> callback)
{
api.addTaskComment(taskId, request).enqueue(callback);
}
// ///////////////////////////////////////////////////////////////////
// ACTIONS
// ///////////////////////////////////////////////////////////////////
public void assign(String taskId, AssignTaskRepresentation request, Callback<TaskRepresentation> callback)
{
api.assignTask(taskId, request).enqueue(callback);
}
public void involve(String taskId, InvolveTaskRepresentation request, Callback<Void> callback)
{
api.involveUser(taskId, request).enqueue(callback);
}
public void removeInvolved(String taskId, InvolveTaskRepresentation request, Callback<Void> callback)
{
api.removeInvolvedUser(taskId, request).enqueue(callback);
}
public void claimTask(String taskId, Callback<Void> callback)
{
api.claimTask(taskId).enqueue(callback);
}
public void attachForm(String taskId, AttachFormTaskRepresentation request, Callback<Void> callback)
{
api.attachForm(taskId, request).enqueue(callback);
}
public void removeForm(String taskId, Callback<Void> callback)
{
api.removeForm(taskId).enqueue(callback);
}
// ///////////////////////////////////////////////////////////////////
// FORMS
// ///////////////////////////////////////////////////////////////////
public void getTaskForm(String taskId, Callback<FormDefinitionRepresentation> callback)
{
api.getTaskForm(taskId).enqueue(callback);
}
public void getFormFieldValues(String taskId, String fieldId, Callback<List<OptionRepresentation>> callback)
{
api.getFormFieldValues(taskId, fieldId).enqueue(callback);
}
public void completeTaskForm(String taskId, CompleteFormRepresentation request, Callback<Void> callback)
{
api.completeTaskForm(taskId, request).enqueue(callback);
}
public void saveTaskForm(String taskId, SaveFormRepresentation request, Callback<Void> callback)
{
api.saveTaskForm(taskId, request).enqueue(callback);
}
// ///////////////////////////////////////////////////////////////////
// CHECKLIST
// ///////////////////////////////////////////////////////////////////
public void getChecklist(String taskId, Callback<ResultList<TaskRepresentation>> callback)
{
api.getChecklist(taskId).enqueue(callback);
}
public void addSubtask(String taskId, TaskRepresentation request, Callback<TaskRepresentation> callback)
{
api.addSubtask(taskId, request).enqueue(callback);
}
public void orderChecklist(String taskId, ChecklistOrderRepresentation request, Callback<Void> callback)
{
api.orderChecklist(taskId, request).enqueue(callback);
}
}
|
[
"jeanmarie.pascal@alfresco.com"
] |
jeanmarie.pascal@alfresco.com
|
132c470464f65f6c8fa1a0529f7b8f7debef2660
|
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
|
/methods/Method_50905.java
|
5abae48988c8bc1113457fe881265c33805efafe
|
[] |
no_license
|
P79N6A/icse_20_user_study
|
5b9c42c6384502fdc9588430899f257761f1f506
|
8a3676bc96059ea2c4f6d209016f5088a5628f3c
|
refs/heads/master
| 2020-06-24T08:25:22.606717
| 2019-07-25T15:31:16
| 2019-07-25T15:31:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 513
|
java
|
private JPanel makeProgressPanel(){
JPanel progressPanel=new JPanel();
final double[] weights={0.0,0.8,0.4,0.2};
GridBagHelper helper=new GridBagHelper(progressPanel,weights);
helper.addLabel("Tokenizing files:");
helper.add(tokenizingFilesBar,3);
helper.nextRow();
helper.addLabel("Phase:");
helper.add(phaseLabel);
helper.addLabel("Time elapsed:");
helper.add(timeField);
helper.nextRow();
progressPanel.setBorder(BorderFactory.createTitledBorder("Progress"));
return progressPanel;
}
|
[
"sonnguyen@utdallas.edu"
] |
sonnguyen@utdallas.edu
|
2156e541893e872bbbea5e46833e413a7edb7261
|
930c207e245c320b108e9699bbbb036260a36d6a
|
/BRICK-RDF4J/generatedCode/src/main/java/brickschema/org/schema/_1_0_2/Brick/Medium_Temperature_Hot_Water_Discharge_Temperature_Low_Reset_Setpoint.java
|
762de3aeab58bf14da72cda5e91e3259f122074e
|
[] |
no_license
|
InnovationSE/BRICK-Generated-By-OLGA
|
24d278f543471e1ce622f5f45d9e305790181fff
|
7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2
|
refs/heads/master
| 2021-07-01T14:13:11.302860
| 2017-09-21T12:44:17
| 2017-09-21T12:44:17
| 104,251,784
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,189
|
java
|
/**
* This file is automatically generated by OLGA
* @author OLGA
* @version 1.0
*/
package brickschema.org.schema._1_0_2.Brick;
import brick.global.util.GLOBAL;
import org.eclipse.rdf4j.model.IRI;
import org.eclipse.rdf4j.model.vocabulary.RDF;
import java.math.BigDecimal;
import javax.xml.datatype.XMLGregorianCalendar;
import java.util.Date;
import brickschema.org.schema._1_0_2.Brick.Hot_Water_Supply_Temperature_Low_Reset_Setpoint;
import brickschema.org.schema._1_0_2.Brick.Temperature_Low_Reset_Setpoint;
import brickschema.org.schema._1_0_2.Brick.Reset_Setpoint;
import brickschema.org.schema._1_0_2.Brick.Setpoint;
import brickschema.org.schema._1_0_2.Brick.Point;
import brickschema.org.schema._1_0_2.BrickFrame.TagSet;
import brickschema.org.schema._1_0_2.Brick.Medium_Temperature_Hot_Water;
import brickschema.org.schema._1_0_2.Brick.Hot_Water;
import brickschema.org.schema._1_0_2.Brick.Water;
import brickschema.org.schema._1_0_2.Brick.Resource;
import brickschema.org.schema._1_0_2.Brick.Point;
import brickschema.org.schema._1_0_2.BrickFrame.TagSet;
import brickschema.org.schema._1_0_2.Brick.UndefinedMeasurement;
import brickschema.org.schema._1_0_2.Brick.MeasurementProperty;
import brickschema.org.schema._1_0_2.BrickFrame.TagSet;
import brickschema.org.schema._1_0_2.Brick.Discharge_Water_Temperature_Setpoint;
import brickschema.org.schema._1_0_2.Brick.Temperature_Setpoint;
import brickschema.org.schema._1_0_2.Brick.Setpoint;
import brickschema.org.schema._1_0_2.Brick.Point;
import brickschema.org.schema._1_0_2.BrickFrame.TagSet;
public class Medium_Temperature_Hot_Water_Discharge_Temperature_Low_Reset_Setpoint implements IMedium_Temperature_Hot_Water_Discharge_Temperature_Low_Reset_Setpoint {
IRI newInstance;
public Medium_Temperature_Hot_Water_Discharge_Temperature_Low_Reset_Setpoint(String namespace, String instanceId) {
super();
newInstance = GLOBAL.factory.createIRI(namespace, instanceId);
GLOBAL.model.add(newInstance, RDF.TYPE, GLOBAL.factory.createIRI("https://brickschema.org/schema/1.0.2/Brick#Medium_Temperature_Hot_Water_Discharge_Temperature_Low_Reset_Setpoint"));
}
public IRI iri()
{
return newInstance;
}
}
|
[
"Andre.Ponnouradjane@non.schneider-electric.com"
] |
Andre.Ponnouradjane@non.schneider-electric.com
|
a85b1f3e34df4be7ac772a8a3ee68bf6dbcd7954
|
b34ceede16224143d0cbe08a158691c335d03ae3
|
/blade.migrate.provider/src/blade/migrate/provider/templates/BladeTemplate.java
|
248e58d2d7a556f54d9154aae2f5d32bf93aa000
|
[
"Apache-2.0"
] |
permissive
|
antonio-ortega/blade.tools
|
a01637ecf62467dbdf5fc18b3a20716aa5529e7a
|
2daeb71cd6a35af940672be10ac7a3d751c1dbe7
|
refs/heads/master
| 2020-03-31T04:32:15.470530
| 2015-11-06T16:23:07
| 2015-11-06T16:23:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 395
|
java
|
package blade.migrate.provider.templates;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
public class BladeTemplate {
private InputStream _resource;
public BladeTemplate(InputStream resource) {
_resource = resource;
}
public Reader getReader() {
return new BufferedReader(new InputStreamReader(_resource));
}
}
|
[
"gregory.amerson@liferay.com"
] |
gregory.amerson@liferay.com
|
91388735ec2cbe8b2b8730a29af1b4db2cad6df6
|
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
|
/sources/xwKerWrNChj/xwKerWrNChj/xwKerWrNChj/xwKerWrNChj/Qnf0Cfjkr0jPeIjQbdNVc33uFHO6g/MCPThihgp27.java
|
cab4a5b17d2aadc3bac54d80e6243e6a1cf6015a
|
[] |
no_license
|
Auch-Auch/avito_source
|
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
|
76fdcc5b7e036c57ecc193e790b0582481768cdc
|
refs/heads/master
| 2023-05-06T01:32:43.014668
| 2021-05-25T10:19:22
| 2021-05-25T10:19:22
| 370,650,685
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 734
|
java
|
package xwKerWrNChj.xwKerWrNChj.xwKerWrNChj.xwKerWrNChj.Qnf0Cfjkr0jPeIjQbdNVc33uFHO6g;
import java.util.TimerTask;
import xwKerWrNChj.xwKerWrNChj.xwKerWrNChj.xwKerWrNChj.Qnf0Cfjkr0jPeIjQbdNVc33uFHO6g.tjrpI83q5sk1iMEXPz1hKo;
public final class MCPThihgp27 extends TimerTask {
public final /* synthetic */ tjrpI83q5sk1iMEXPz1hKo Cwa7EHp4RmMFhwpOCPWojiqbo;
public MCPThihgp27(tjrpI83q5sk1iMEXPz1hKo tjrpi83q5sk1imexpz1hko) {
this.Cwa7EHp4RmMFhwpOCPWojiqbo = tjrpi83q5sk1imexpz1hko;
}
@Override // java.util.TimerTask, java.lang.Runnable
public void run() {
this.Cwa7EHp4RmMFhwpOCPWojiqbo.M6kaoQeazePMH0Sq8.postValue(tjrpI83q5sk1iMEXPz1hKo.alNh9hLeM39.BYfFGQyI88.Cwa7EHp4RmMFhwpOCPWojiqbo);
}
}
|
[
"auchhunter@gmail.com"
] |
auchhunter@gmail.com
|
d8585f932143cc9eced243fca123324b83cdb5b2
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/33/33_57d5e87a6dadf3d86b6be7c4720fd14f8618cda1/DataParser/33_57d5e87a6dadf3d86b6be7c4720fd14f8618cda1_DataParser_t.java
|
0742aa130815ddf04ceaaca1756c1db3bfb12480
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 7,300
|
java
|
package ch.ethz.inf.vs.californium.network.serializer;
import static ch.ethz.inf.vs.californium.coap.CoAP.MessageFormat.CODE_BITS;
import static ch.ethz.inf.vs.californium.coap.CoAP.MessageFormat.EMPTY_CODE;
import static ch.ethz.inf.vs.californium.coap.CoAP.MessageFormat.MESSAGE_ID_BITS;
import static ch.ethz.inf.vs.californium.coap.CoAP.MessageFormat.PAYLOAD_MARKER;
import static ch.ethz.inf.vs.californium.coap.CoAP.MessageFormat.REQUEST_CODE_LOWER_BOUND;
import static ch.ethz.inf.vs.californium.coap.CoAP.MessageFormat.REQUEST_CODE_UPPER_BOUNT;
import static ch.ethz.inf.vs.californium.coap.CoAP.MessageFormat.RESPONSE_CODE_LOWER_BOUND;
import static ch.ethz.inf.vs.californium.coap.CoAP.MessageFormat.RESPONSE_CODE_UPPER_BOUND;
import static ch.ethz.inf.vs.californium.coap.CoAP.MessageFormat.TOKEN_LENGTH_BITS;
import static ch.ethz.inf.vs.californium.coap.CoAP.MessageFormat.TYPE_BITS;
import static ch.ethz.inf.vs.californium.coap.CoAP.MessageFormat.VERSION_BITS;
import ch.ethz.inf.vs.californium.coap.CoAP;
import ch.ethz.inf.vs.californium.coap.CoAP.Code;
import ch.ethz.inf.vs.californium.coap.CoAP.ResponseCode;
import ch.ethz.inf.vs.californium.coap.CoAP.Type;
import ch.ethz.inf.vs.californium.coap.EmptyMessage;
import ch.ethz.inf.vs.californium.coap.Message;
import ch.ethz.inf.vs.californium.coap.Option;
import ch.ethz.inf.vs.californium.coap.OptionSet;
import ch.ethz.inf.vs.californium.coap.Request;
import ch.ethz.inf.vs.californium.coap.Response;
/**
* The DataParser parses incoming byte arrays to messages.
*/
public class DataParser {
private DatagramReader reader;
private int version;
private int type;
private int tokenlength;
private int code;
private int mid;
public DataParser(byte[] bytes) {
setBytes(bytes);
}
public void setBytes(byte[] bytes) {
this.reader = new DatagramReader(bytes);
this.version = reader.read(VERSION_BITS);
this.type = reader.read(TYPE_BITS);
this.tokenlength = reader.read(TOKEN_LENGTH_BITS);
this.code = reader.read(CODE_BITS);
this.mid = reader.read(MESSAGE_ID_BITS);
}
public int getVersion() {
return version;
}
public int getMID() {
return mid;
}
public boolean isReply() {
return type > CoAP.Type.NON.value;
}
public boolean isRequest() {
return code >= REQUEST_CODE_LOWER_BOUND &&
code <= REQUEST_CODE_UPPER_BOUNT;
}
public boolean isResponse() {
return code >= RESPONSE_CODE_LOWER_BOUND &&
code <= RESPONSE_CODE_UPPER_BOUND;
}
public boolean isEmpty() {
return code == EMPTY_CODE;
}
public Request parseRequest() {
assert(isRequest());
Request request = new Request(Code.valueOf(code));
parseMessage(request);
return request;
}
public Response parseResponse() {
assert(isResponse());
Response response = new Response(ResponseCode.valueOf(code));
parseMessage(response);
return response;
}
public EmptyMessage parseEmptyMessage() {
assert(!isRequest() && !isResponse());
EmptyMessage message = new EmptyMessage(Type.valueOf(type));
parseMessage(message);
return message;
}
private void parseMessage(Message message) {
message.setType(Type.valueOf(type));
message.setMID(mid);
if (tokenlength>0) {
message.setToken(reader.readBytes(tokenlength));
} else {
message.setToken(new byte[0]);
}
int currentOption = 0;
byte nextByte = 0;
while(reader.bytesAvailable()) {
nextByte = reader.readNextByte();
if (nextByte != PAYLOAD_MARKER) {
// the first 4 bits of the byte represent the option delta
int optionDeltaNibble = (0xF0 & nextByte) >> 4;
currentOption += readOptionValueFromNibble(optionDeltaNibble);
// the second 4 bits represent the option length
int optionLengthNibble = (0x0F & nextByte);
int optionLength = readOptionValueFromNibble(optionLengthNibble);
// read option
Option option = new Option(currentOption);
option.setValue(reader.readBytes(optionLength));
// add option to message
addOptionToSet(option, message.getOptions());
} else break;
}
if (nextByte == PAYLOAD_MARKER) {
// the presence of a marker followed by a zero-length payload must be processed as a message format error
if (!reader.bytesAvailable())
throw new IllegalStateException();
// get payload
message.setPayload(reader.readBytesLeft());
} else {
message.setPayload(new byte[0]); // or null?
}
}
// TODO: Can we optimize this a little by not creating new option objects for known options
private void addOptionToSet(Option option, OptionSet optionSet) {
switch (option.getNumber()) {
case CoAP.OptionRegistry.IF_MATCH: optionSet.addIfMatch(option.getValue()); break;
case CoAP.OptionRegistry.URI_HOST: optionSet.setURIHost(option.getStringValue()); break;
case CoAP.OptionRegistry.ETAG: optionSet.addETag(option.getValue()); break;
case CoAP.OptionRegistry.IF_NONE_MATCH: optionSet.setIfNoneMatch(true); break;
case CoAP.OptionRegistry.URI_PORT: optionSet.setURIPort(option.getIntegerValue()); break;
case CoAP.OptionRegistry.LOCATION_PATH: optionSet.addLocationPath(option.getStringValue()); break;
case CoAP.OptionRegistry.URI_PATH: optionSet.addURIPath(option.getStringValue()); break;
case CoAP.OptionRegistry.CONTENT_FORMAT: optionSet.setContentFormat(option.getIntegerValue()); break;
case CoAP.OptionRegistry.MAX_AGE: optionSet.setMaxAge(option.getLongValue()); break;
case CoAP.OptionRegistry.URI_QUERY: optionSet.addURIQuery(option.getStringValue()); break;
case CoAP.OptionRegistry.ACCEPT: optionSet.setAccept(option.getIntegerValue()); break;
case CoAP.OptionRegistry.LOCATION_QUERY: optionSet.addLocationQuery(option.getStringValue()); break;
case CoAP.OptionRegistry.PROXY_URI: optionSet.setProxyURI(option.getStringValue()); break;
case CoAP.OptionRegistry.PROXY_SCHEME: optionSet.setProxyScheme(option.getStringValue()); break;
case CoAP.OptionRegistry.BLOCK1: optionSet.setBlock1(option.getValue()); break;
case CoAP.OptionRegistry.BLOCK2: optionSet.setBlock2(option.getValue()); break;
case CoAP.OptionRegistry.OBSERVE: optionSet.setObserve(option.getIntegerValue()); break;
default: optionSet.addOption(option);
}
}
/**
* Calculates the value used in the extended option fields as specified in
* draft-ietf-core-coap-14, section 3.1
*
* @param nibble
* the 4-bit option header value.
* @param datagram
* the datagram.
* @return the value calculated from the nibble and the extended option
* value.
*/
private int readOptionValueFromNibble(int nibble) {
if (nibble <= 12) {
return nibble;
} else if (nibble == 13) {
return reader.read(8) + 13;
} else if (nibble == 14) {
return reader.read(16) + 269;
} else {
throw new IllegalArgumentException("Unsupported option delta "+nibble);
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
281dfa6929babeae94fb71bb67e9b6de786d402f
|
6d60a8adbfdc498a28f3e3fef70366581aa0c5fd
|
/codebase/dataset/x/488_frag1.java
|
fe0587b07e2baf905c8357ffd88e77bbc656c9fa
|
[] |
no_license
|
rayhan-ferdous/code2vec
|
14268adaf9022d140a47a88129634398cd23cf8f
|
c8ca68a7a1053d0d09087b14d4c79a189ac0cf00
|
refs/heads/master
| 2022-03-09T08:40:18.035781
| 2022-02-27T23:57:44
| 2022-02-27T23:57:44
| 140,347,552
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 436
|
java
|
public void actionPerformed(ActionEvent ae) {
try {
dataPanelManager.createDataPanel(extension);
} catch (Exception e) {
log.error("Unable to open data panel provided by extension " + extension.getName() + " (" + extension.getID() + ").");
e.printStackTrace();
}
}
|
[
"aaponcseku@gmail.com"
] |
aaponcseku@gmail.com
|
4186fa36041f915f7744a70e426bf786584809e5
|
ca030864a3a1c24be6b9d1802c2353da4ca0d441
|
/classes8.dex_source_from_JADX/com/facebook/graphql/connection/SingletonConnectionFetcherProvider.java
|
faca4fc76f9205a66e922c49f44d35cc32ad774a
|
[] |
no_license
|
pxson001/facebook-app
|
87aa51e29195eeaae69adeb30219547f83a5b7b1
|
640630f078980f9818049625ebc42569c67c69f7
|
refs/heads/master
| 2020-04-07T20:36:45.758523
| 2018-03-07T09:04:57
| 2018-03-07T09:04:57
| 124,208,458
| 4
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 242
|
java
|
package com.facebook.graphql.connection;
import com.facebook.inject.AbstractAssistedProvider;
/* compiled from: windowColor */
public class SingletonConnectionFetcherProvider extends AbstractAssistedProvider<SingletonConnectionFetcher> {
}
|
[
"son.pham@jmango360.com"
] |
son.pham@jmango360.com
|
4413bf426900019b899f09bee408c5396b5a0ce0
|
a5dbeadebfd268a529d6a012fb23dc0b635f9b8c
|
/core/src/main/java/ru/mipt/cybersecurity/crypto/paddings/BlockCipherPadding.java
|
0e9a85f5118d07190ac286540b042d6898ec5222
|
[
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] |
permissive
|
skhvostyuk/CyberSecurity
|
22f6a272e38b56bfb054aae0dd7aa03bc96b6d06
|
33ea483df41973984d0edbe47a20201b204150aa
|
refs/heads/master
| 2021-08-29T04:44:31.041415
| 2017-12-13T12:15:29
| 2017-12-13T12:15:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,499
|
java
|
package ru.mipt.cybersecurity.crypto.paddings;
import java.security.SecureRandom;
import ru.mipt.cybersecurity.crypto.InvalidCipherTextException;
/**
* Block cipher padders are expected to conform to this interface
*/
public interface BlockCipherPadding
{
/**
* Initialise the padder.
*
* @param random the source of randomness for the padding, if required.
*/
public void init(SecureRandom random)
throws IllegalArgumentException;
/**
* Return the name of the algorithm the cipher implements.
*
* @return the name of the algorithm the cipher implements.
*/
public String getPaddingName();
/**
* add the pad bytes to the passed in block, returning the
* number of bytes added.
* <p>
* Note: this assumes that the last block of plain text is always
* passed to it inside in. i.e. if inOff is zero, indicating the
* entire block is to be overwritten with padding the value of in
* should be the same as the last block of plain text. The reason
* for this is that some modes such as "trailing bit compliment"
* base the padding on the last byte of plain text.
* </p>
*/
public int addPadding(byte[] in, int inOff);
/**
* return the number of pad bytes present in the block.
* @exception InvalidCipherTextException if the padding is badly formed
* or invalid.
*/
public int padCount(byte[] in)
throws InvalidCipherTextException;
}
|
[
"hvostuksergey@gmail.com"
] |
hvostuksergey@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.