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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
06468911215debec0e80ba557374435bc5f67813
|
5f134139cafe54d9a90a05283478eecd70080acc
|
/src/leetcode_algorithm/q077_Combinations.java
|
e41623941ecba687d5053556d970a2c799385596
|
[] |
no_license
|
dingweiqings/data_structure
|
619fcc80f54df6bd293d73b6295fc370c3db7ff2
|
596761202e9dbaad713d135151c3a6517350c844
|
refs/heads/master
| 2023-03-09T08:45:47.907056
| 2021-02-22T01:42:59
| 2021-02-22T01:42:59
| 325,736,315
| 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 1,183
|
java
|
package leetcode_algorithm;
import java.util.ArrayList;
import java.util.List;
/**
* Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
* <p>
* For example,
* If n = 4 and k = 2, a solution is:
* <p>
* [
* [2,4],
* [3,4],
* [2,3],
* [1,2],
* [1,3],
* [1,4],
* ]
*/
public class q077_Combinations {
public static void main(String[] args) {
System.out.println(new q077_Combinations().combine(4, 2));
}
/**
* 解法1(个人解法)
*
* @param n
* @param k
* @return
*/
public List<List<Integer>> combine(int n, int k) {
List<List<Integer>> result = new ArrayList<>();
combine(result, new ArrayList<>(), n, k, 0);
return result;
}
private void combine(List<List<Integer>> result, List<Integer> list, int n, int k, int index) {
if (list.size() == k) {
result.add(new ArrayList<>(list));
return;
}
for (int i = 1; i <= n; i++) {
if (i <= index) continue;
list.add(i);
combine(result, list, n, k, i);
list.remove(list.size() - 1);
}
}
}
|
[
"doubleview@163.com"
] |
doubleview@163.com
|
3a6520f5d3b2672cf29d4eedc2ce46bd94893e4a
|
789fc45d8d3fd3a61650eda55b1a359ec44612d4
|
/o2o-intf/src/main/java/com/ihomefnt/o2o/intf/domain/programorder/dto/HardRoomSkuInfo.java
|
544213b3d993b3c85c77efb18958fef0d89085f2
|
[] |
no_license
|
huayunlei/myboot-o2o
|
99020673f5ce72d180088ef0d9171e7b267250da
|
73fdca9e39929290f4fc28b9653460cb27f89c19
|
refs/heads/master
| 2023-01-01T08:57:05.021700
| 2020-10-21T14:58:44
| 2020-10-21T14:58:44
| 306,057,891
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 806
|
java
|
package com.ihomefnt.o2o.intf.domain.programorder.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;
/**
*
* @author liguolin
*
*/
@Data
@ApiModel("硬装空间信息")
public class HardRoomSkuInfo extends BaseRoomSkuInfo {
/**
*
*/
private static final long serialVersionUID = -717749914671093472L;
/**
* 空间售卖价
*/
@ApiModelProperty("空间售卖价")
private BigDecimal hardRoomSalePrice;
/**
* 空间毛利
*/
@ApiModelProperty("空间毛利")
private Integer hardRoomProfit;
/**
* 硬装标准描述
*/
@ApiModelProperty("硬装标准描述")
private String hardListDesc;
private List<SoftRoomSkuInfo.SimpleRoomSkuDto> skuInfos;
}
|
[
"836774171@qq.com"
] |
836774171@qq.com
|
04a5b8693ba81aba413ebb197deee7fca1ceac98
|
139960e2d7d55e71c15e6a63acb6609e142a2ace
|
/mobile_app1/module361/src/main/java/module361packageJava0/Foo6.java
|
8008d114c869327ac3814fa348ac7f8c0d52fb7e
|
[
"Apache-2.0"
] |
permissive
|
uber-common/android-build-eval
|
448bfe141b6911ad8a99268378c75217d431766f
|
7723bfd0b9b1056892cef1fef02314b435b086f2
|
refs/heads/master
| 2023-02-18T22:25:15.121902
| 2023-02-06T19:35:34
| 2023-02-06T19:35:34
| 294,831,672
| 83
| 7
|
Apache-2.0
| 2021-09-24T08:55:30
| 2020-09-11T23:27:37
|
Java
|
UTF-8
|
Java
| false
| false
| 370
|
java
|
package module361packageJava0;
import java.lang.Integer;
public class Foo6 {
Integer int0;
public void foo0() {
new module361packageJava0.Foo5().foo5();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
}
|
[
"oliviern@uber.com"
] |
oliviern@uber.com
|
9bb2903885c0876d3c94091b123e719b969dc705
|
21e3d5f861e3bb2b7d64aa9c914f300a542235cb
|
/src/main/java/io/growing/graphql/model/OrderInputDto.java
|
32daa0de00de1677381dc82377b06b54513c6c00
|
[
"MIT"
] |
permissive
|
okpiaoxuefeng98/growingio-graphql-javasdk
|
d274378dad69d971fe14207f74d7a3135959460b
|
97a75faf337446fa16536a42a3b744f7fc992fb4
|
refs/heads/master
| 2023-02-04T15:38:13.627500
| 2020-12-24T07:25:32
| 2020-12-24T07:25:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,418
|
java
|
package io.growing.graphql.model;
import com.kobylynskyi.graphql.codegen.model.graphql.GraphQLRequestSerializer;
import java.util.StringJoiner;
@javax.annotation.Generated(
value = "com.kobylynskyi.graphql.codegen.GraphQLCodegen",
date = "2020-12-22T15:45:57+0800"
)
public class OrderInputDto implements java.io.Serializable {
private String id;
@javax.validation.constraints.NotNull
private Boolean isDim;
private Integer index;
private Integer valueIndex;
@javax.validation.constraints.NotNull
private String orderType;
public OrderInputDto() {
}
public OrderInputDto(String id, Boolean isDim, Integer index, Integer valueIndex, String orderType) {
this.id = id;
this.isDim = isDim;
this.index = index;
this.valueIndex = valueIndex;
this.orderType = orderType;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Boolean getIsDim() {
return isDim;
}
public void setIsDim(Boolean isDim) {
this.isDim = isDim;
}
public Integer getIndex() {
return index;
}
public void setIndex(Integer index) {
this.index = index;
}
public Integer getValueIndex() {
return valueIndex;
}
public void setValueIndex(Integer valueIndex) {
this.valueIndex = valueIndex;
}
public String getOrderType() {
return orderType;
}
public void setOrderType(String orderType) {
this.orderType = orderType;
}
@Override
public String toString() {
StringJoiner joiner = new StringJoiner(", ", "{ ", " }");
if (id != null) {
joiner.add("id: " + GraphQLRequestSerializer.getEntry(id));
}
if (isDim != null) {
joiner.add("isDim: " + GraphQLRequestSerializer.getEntry(isDim));
}
if (index != null) {
joiner.add("index: " + GraphQLRequestSerializer.getEntry(index));
}
if (valueIndex != null) {
joiner.add("valueIndex: " + GraphQLRequestSerializer.getEntry(valueIndex));
}
if (orderType != null) {
joiner.add("orderType: " + GraphQLRequestSerializer.getEntry(orderType));
}
return joiner.toString();
}
public static OrderInputDto.Builder builder() {
return new OrderInputDto.Builder();
}
public static class Builder {
private String id;
private Boolean isDim;
private Integer index;
private Integer valueIndex;
private String orderType;
public Builder() {
}
public Builder setId(String id) {
this.id = id;
return this;
}
public Builder setIsDim(Boolean isDim) {
this.isDim = isDim;
return this;
}
public Builder setIndex(Integer index) {
this.index = index;
return this;
}
public Builder setValueIndex(Integer valueIndex) {
this.valueIndex = valueIndex;
return this;
}
public Builder setOrderType(String orderType) {
this.orderType = orderType;
return this;
}
public OrderInputDto build() {
return new OrderInputDto(id, isDim, index, valueIndex, orderType);
}
}
}
|
[
"dreamylost@outlook.com"
] |
dreamylost@outlook.com
|
e6d5fdc1d4d1f772c0d40905cca514de05ecf324
|
61eb9b5a2b11d08baf6b60e037d870610319fc39
|
/src/main/java/com/infinite/sample/web/rest/vm/ManagedUserVM.java
|
49ae26c5f95d47c9d322be36131d36bfa9bca97e
|
[] |
no_license
|
msenthilkumarsam/SampleCodeGen
|
cd305f7d45ac8daf4ca93aa8a005c97c9ac9f4eb
|
2e467df94bab95a3a936eac849a9302291413753
|
refs/heads/master
| 2021-05-04T20:30:00.643135
| 2018-02-01T10:17:24
| 2018-02-01T10:17:24
| 119,819,259
| 0
| 1
| null | 2020-09-18T10:25:10
| 2018-02-01T10:17:21
|
Java
|
UTF-8
|
Java
| false
| false
| 844
|
java
|
package com.infinite.sample.web.rest.vm;
import com.infinite.sample.service.dto.UserDTO;
import javax.validation.constraints.Size;
/**
* View Model extending the UserDTO, which is meant to be used in the user management UI.
*/
public class ManagedUserVM extends UserDTO {
public static final int PASSWORD_MIN_LENGTH = 4;
public static final int PASSWORD_MAX_LENGTH = 100;
@Size(min = PASSWORD_MIN_LENGTH, max = PASSWORD_MAX_LENGTH)
private String password;
public ManagedUserVM() {
// Empty constructor needed for Jackson.
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
@Override
public String toString() {
return "ManagedUserVM{" +
"} " + super.toString();
}
}
|
[
"jhipster-bot@users.noreply.github.com"
] |
jhipster-bot@users.noreply.github.com
|
08c196b7a31029681659869f1a1e6b80a6db98f1
|
48b016c8eb1e33be1077a5e55482d10ebd023393
|
/src/main/java/io/ffreedom/jctp/MdSpiImpl.java
|
7156ae187f56e9e832b065cae3fbcf135fec051a
|
[
"Apache-2.0",
"ICU"
] |
permissive
|
yellow013/jctp_bak
|
17776f152024cf0afea0a8c476ea873f8dedc9e0
|
c293756c2e16a6cff18614f59e4a405eba9cee89
|
refs/heads/master
| 2021-02-06T16:02:43.465965
| 2020-02-29T08:19:27
| 2020-02-29T08:19:27
| 243,929,609
| 0
| 0
|
Apache-2.0
| 2020-10-13T19:56:55
| 2020-02-29T08:10:02
|
C++
|
UTF-8
|
Java
| false
| false
| 1,919
|
java
|
package io.ffreedom.jctp;
import static io.ffreedom.jctp.base.JctpRspValidator.validateRspInfo;
import org.slf4j.Logger;
import ctp.thostapi.CThostFtdcDepthMarketDataField;
import ctp.thostapi.CThostFtdcMdSpi;
import ctp.thostapi.CThostFtdcRspInfoField;
import ctp.thostapi.CThostFtdcRspUserLoginField;
import ctp.thostapi.CThostFtdcSpecificInstrumentField;
import io.mercury.common.log.CommonLoggerFactory;
public class MdSpiImpl extends CThostFtdcMdSpi {
private Logger logger = CommonLoggerFactory.getLogger(getClass());
private JctpGateway gateway;
MdSpiImpl(JctpGateway gateway) {
this.gateway = gateway;
}
@Override
public void OnFrontConnected() {
logger.info("MdSpiImpl OnFrontConnected");
gateway.onMdFrontConnected();
}
@Override
public void OnFrontDisconnected(int nReason) {
logger.warn("MdSpiImpl OnFrontDisconnected -> Reason==[{}]", nReason);
}
@Override
public void OnRspUserLogin(CThostFtdcRspUserLoginField pRspUserLogin, CThostFtdcRspInfoField pRspInfo,
int nRequestID, boolean bIsLast) {
validateRspInfo("OnRspUserLogin", pRspInfo);
logger.info("MdSpiImpl OnRspUserLogin");
if (pRspUserLogin != null)
gateway.onMdRspUserLogin(pRspUserLogin);
else
logger.info("OnRspUserLogin return null");
}
@Override
public void OnRspSubMarketData(CThostFtdcSpecificInstrumentField pSpecificInstrument,
CThostFtdcRspInfoField pRspInfo, int nRequestID, boolean bIsLast) {
validateRspInfo("OnRspSubMarketData", pRspInfo);
logger.info("MdSpiImpl OnRspSubMarketData");
if (pSpecificInstrument != null)
gateway.onRspSubMarketData(pSpecificInstrument);
else
logger.info("OnRspSubMarketData return null");
}
@Override
public void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField pDepthMarketData) {
if (pDepthMarketData != null)
gateway.onRtnDepthMarketData(pDepthMarketData);
else
logger.info("OnRtnDepthMarketData return null");
}
}
|
[
"wk9988@gmail.com"
] |
wk9988@gmail.com
|
a256967079a3ca48ce85e2949bf165471eb19d65
|
be0e8535222b601c277a9d29f234e7fa44e13258
|
/output/com/ankamagames/dofus/network/types/game/friend/FriendInformations.java
|
4a7c9d9e6b3a1779a40bc05fd4e6038a97f67432
|
[] |
no_license
|
BotanAtomic/ProtocolBuilder
|
df303b741c701a17b0c61ddbf5253d1bb8e11684
|
ebb594e3da3adfad0c3f036e064395a037d6d337
|
refs/heads/master
| 2021-06-21T00:55:40.479271
| 2017-08-14T23:59:09
| 2017-08-14T23:59:24
| 100,318,625
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,201
|
java
|
package com.ankamagames.dofus.network.types.game.friend;
import java.lang.Exception;
import com.ankamagames.jerakine.network.INetworkType;
import com.ankamagames.jerakine.network.ICustomDataOutput;
import com.ankamagames.jerakine.network.ICustomDataInput;
import com.ankamagames.jerakine.network.utils.FuncTree;
public class FriendInformations extends AbstractContactInformations implements INetworkType {
public int playerState = 99;
public int lastConnection = 0;
public int achievementPoints = 0;
public static final int protocolId = 78;
@Override
public void serialize(ICustomDataOutput param1) {
if (this.accountId < 0) {
throw new Exception("Forbidden value (" + this.accountId + ") on element accountId.");
}
param1.writeInt(this.accountId);
param1.writeUTF(this.accountName);
param1.writeByte(this.playerState);
if (this.lastConnection < 0) {
throw new Exception(
"Forbidden value (" + this.lastConnection + ") on element lastConnection.");
}
param1.writeVarShort(this.lastConnection);
param1.writeInt(this.achievementPoints);
}
@Override
public void deserialize(ICustomDataInput param1) {
this.uid = param1.readUTF();
this.figure = param1.readVarUhShort();
if (this.figure < 0) {
throw new Exception(
"Forbidden value (" + this.figure + ") on element of KrosmasterFigure.figure.");
}
this.pedestal = param1.readVarUhShort();
if (this.pedestal < 0) {
throw new Exception(
"Forbidden value (" + this.pedestal + ") on element of KrosmasterFigure.pedestal.");
}
this.bound = param1.readBoolean();
this.playerState = param1.readByte();
if (this.playerState < 0) {
throw new Exception(
"Forbidden value ("
+ this.playerState
+ ") on element of FriendInformations.playerState.");
}
this.lastConnection = param1.readVarUhShort();
if (this.lastConnection < 0) {
throw new Exception(
"Forbidden value ("
+ this.lastConnection
+ ") on element of FriendInformations.lastConnection.");
}
this.achievementPoints = param1.readInt();
}
}
|
[
"ahmed.botan94@gmail.com"
] |
ahmed.botan94@gmail.com
|
1f7d8873eaa2fe02479346f501b14e914f19c960
|
9b2db7e84535c45c3081e6d9ccefde6538f114ec
|
/ph-commons/src/test/java/com/helger/commons/codec/Base64CodecTest.java
|
e60914383e2791c83f0969dd2c84a85b130fe43b
|
[
"Apache-2.0"
] |
permissive
|
zhujiancom/ph-commons
|
a1039023392b88474359eda81335daec76c89776
|
f8ff80afe5ba919019a73d3153380fa9f3cb5071
|
refs/heads/master
| 2021-07-12T06:20:15.159581
| 2017-10-15T19:55:05
| 2017-10-15T19:55:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,553
|
java
|
/**
* Copyright (C) 2014-2017 Philip Helger (www.helger.com)
* philip[at]helger[dot]com
*
* 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.helger.commons.codec;
import static org.junit.Assert.assertEquals;
import java.util.Arrays;
import org.junit.Test;
/**
* Test class for class {@link Base64Codec}
*
* @author Philip Helger
*/
public final class Base64CodecTest
{
@Test
public void testGetEncodedLength ()
{
final Base64Codec aBase64 = new Base64Codec ();
for (int i = 0; i < 256; ++i)
{
final byte [] aBuf = new byte [i];
Arrays.fill (aBuf, (byte) i);
assertEquals (aBase64.getEncoded (aBuf).length, aBase64.getEncodedLength (i));
}
}
@Test
public void testGetDecodedLength ()
{
final Base64Codec aBase64 = new Base64Codec ();
assertEquals (0, aBase64.getDecodedLength (0));
for (int i = 1; i <= 4; ++i)
assertEquals (3, aBase64.getDecodedLength (i));
for (int i = 5; i <= 8; ++i)
assertEquals (6, aBase64.getDecodedLength (i));
}
}
|
[
"philip@helger.com"
] |
philip@helger.com
|
333241ed64ab1598b1c148adcdbadba91c3c675b
|
10df45931db3b40cc39f7f4d890582e1dabcf067
|
/src/main/java/com/starlix/service/id3/DispatchCase.java
|
6013dcd35a313139c68cfb38c519ec0c720f1493
|
[] |
no_license
|
duyvu5/id3global-sample
|
0785ba46a881f14b1a68c58a660e9bba81f4b4f5
|
c12f2a602a9a2028e2ba730e194a042f17122915
|
refs/heads/main
| 2023-07-02T09:18:20.067442
| 2021-07-27T09:10:19
| 2021-07-27T09:10:19
| 389,917,845
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,234
|
java
|
package com.starlix.service.id3;
import jakarta.xml.bind.JAXBElement;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlElementRef;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="OrgID" type="{http://schemas.microsoft.com/2003/10/Serialization/}guid" minOccurs="0"/>
* <element name="CaseID" type="{http://schemas.microsoft.com/2003/10/Serialization/}guid" minOccurs="0"/>
* <element name="Params" type="{http://www.id3global.com/ID3gWS/2013/04}GlobalCaseDispatchParameters" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"orgID",
"caseID",
"params"
})
@XmlRootElement(name = "DispatchCase")
public class DispatchCase {
@XmlElement(name = "OrgID")
protected String orgID;
@XmlElement(name = "CaseID")
protected String caseID;
@XmlElementRef(name = "Params", namespace = "http://www.id3global.com/ID3gWS/2013/04", type = JAXBElement.class, required = false)
protected JAXBElement<GlobalCaseDispatchParameters> params;
/**
* Gets the value of the orgID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrgID() {
return orgID;
}
/**
* Sets the value of the orgID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOrgID(String value) {
this.orgID = value;
}
/**
* Gets the value of the caseID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCaseID() {
return caseID;
}
/**
* Sets the value of the caseID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCaseID(String value) {
this.caseID = value;
}
/**
* Gets the value of the params property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link GlobalCaseDispatchParameters }{@code >}
*
*/
public JAXBElement<GlobalCaseDispatchParameters> getParams() {
return params;
}
/**
* Sets the value of the params property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link GlobalCaseDispatchParameters }{@code >}
*
*/
public void setParams(JAXBElement<GlobalCaseDispatchParameters> value) {
this.params = value;
}
}
|
[
"duy.vu@vacuumlabs.com"
] |
duy.vu@vacuumlabs.com
|
991bcbc1517951483cc15a7fddee7143e3edc513
|
73341cc8c29669034b7c5c03d52b6edb5c8f9e80
|
/JDBC/src/org/omg/DynamicAny/DynValueOperations.java
|
fca3e343f7823ed3605b0b8439c9191262552e62
|
[] |
no_license
|
kannans89/SwabhavTechlabs-Training
|
ddfb7b41a0814f580a5dfb748460d70f40a8d4b8
|
ec1b1a331757f93d3575ff3b36eaf07c5ea7ee4f
|
refs/heads/master
| 2020-04-11T07:40:52.137929
| 2018-09-22T08:58:06
| 2018-09-22T08:58:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,160
|
java
|
package org.omg.DynamicAny;
/**
* org/omg/DynamicAny/DynValueOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/workspace/8-2-build-windows-i586-cygwin/jdk8u151/9699/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
* Tuesday, September 5, 2017 7:32:38 PM PDT
*/
/**
* DynValue objects support the manipulation of IDL non-boxed value types.
* The DynValue interface can represent both null and non-null value types.
* For a DynValue representing a non-null value type, the DynValue's components comprise
* the public and private members of the value type, including those inherited from concrete base value types,
* in the order of definition. A DynValue representing a null value type has no components
* and a current position of -1.
* <P>Warning: Indiscriminantly changing the contents of private value type members can cause the value type
* implementation to break by violating internal constraints. Access to private members is provided to support
* such activities as ORB bridging and debugging and should not be used to arbitrarily violate
* the encapsulation of the value type.
*/
public interface DynValueOperations extends org.omg.DynamicAny.DynValueCommonOperations
{
/**
* Returns the name of the member at the current position.
* This operation may return an empty string since the TypeCode of the value being
* manipulated may not contain the names of members.
*
* @exception TypeMismatch if the DynValue represents a null value type.
* @exception InvalidValue if the current position does not indicate a member
*/
String current_member_name () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
/**
* Returns the TCKind associated with the member at the current position.
*
* @exception TypeMismatch if the DynValue represents a null value type.
* @exception InvalidValue if the current position does not indicate a member
*/
org.omg.CORBA.TCKind current_member_kind () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
/**
* Returns a sequence of NameValuePairs describing the name and the value of each member
* in the value type.
* The sequence contains members in the same order as the declaration order of members
* as indicated by the DynValue's TypeCode. The current position is not affected.
* The member names in the returned sequence will be empty strings if the DynValue's TypeCode
* does not contain member names.
*
* @exception InvalidValue if this object represents a null value type
*/
org.omg.DynamicAny.NameValuePair[] get_members () throws org.omg.DynamicAny.DynAnyPackage.InvalidValue;
/**
* Initializes the value type's members from a sequence of NameValuePairs.
* The operation sets the current position to zero if the passed sequences has non-zero length. Otherwise,
* if an empty sequence is passed, the current position is set to -1.
* A null value type can be initialized to a non-null value type using this method.
* <P>Members must appear in the NameValuePairs in the order in which they appear in the IDL specification
* of the value type as indicated by the DynValue's TypeCode or they must be empty strings.
* The operation makes no attempt to assign member values based on member names.
*
* @exception TypeMismatch if the member names supplied in the passed sequence do not match the
* corresponding member name in the DynValue's TypeCode and they are not empty strings
* @exception InvalidValue if the passed sequence has a number of elements that disagrees
* with the number of members as indicated by the DynValue's TypeCode
*/
void set_members (org.omg.DynamicAny.NameValuePair[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
/**
* Returns a sequence of NameDynAnyPairs describing the name and the value of each member
* in the value type.
* The sequence contains members in the same order as the declaration order of members
* as indicated by the DynValue's TypeCode. The current position is not affected.
* The member names in the returned sequence will be empty strings if the DynValue's TypeCode
* does not contain member names.
*
* @exception InvalidValue if this object represents a null value type
*/
org.omg.DynamicAny.NameDynAnyPair[] get_members_as_dyn_any () throws org.omg.DynamicAny.DynAnyPackage.InvalidValue;
/**
* Initializes the value type's members from a sequence of NameDynAnyPairs.
* The operation sets the current position to zero if the passed sequences has non-zero length. Otherwise,
* if an empty sequence is passed, the current position is set to -1.
* A null value type can be initialized to a non-null value type using this method.
* <P>Members must appear in the NameDynAnyPairs in the order in which they appear in the IDL specification
* of the value type as indicated by the DynValue's TypeCode or they must be empty strings.
* The operation makes no attempt to assign member values based on member names.
*
* @exception TypeMismatch if the member names supplied in the passed sequence do not match the
* corresponding member name in the DynValue's TypeCode and they are not empty strings
* @exception InvalidValue if the passed sequence has a number of elements that disagrees
* with the number of members as indicated by the DynValue's TypeCode
*/
void set_members_as_dyn_any (org.omg.DynamicAny.NameDynAnyPair[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
} // interface DynValueOperations
|
[
"manojb912@gmail.com"
] |
manojb912@gmail.com
|
d5c9f13c133a6227ac0184cdcb543f8404880b01
|
3e9d6316cfab53df656a44fedd019aa84b8403a6
|
/DomeOS/src/main/java/org/domeos/framework/api/service/project/impl/CheckAutoDeploy.java
|
b434734c2542f6aff6236140bd0b7f3f4f9452db
|
[
"Apache-2.0"
] |
permissive
|
xiaolezheng/server
|
405b84e80dc577707176320a961f57b7d514d44f
|
68d49bc222be511b3bc0ba2c1079a6f8d02ee204
|
refs/heads/release-0.4
| 2020-06-23T20:05:16.318515
| 2016-11-17T01:57:40
| 2016-11-17T01:57:40
| 74,638,134
| 0
| 0
| null | 2016-11-24T04:34:49
| 2016-11-24T04:34:48
| null |
UTF-8
|
Java
| false
| false
| 4,681
|
java
|
package org.domeos.framework.api.service.project.impl;
import org.apache.commons.lang.StringUtils;
import org.domeos.basemodel.ResultStat;
import org.domeos.exception.DeploymentEventException;
import org.domeos.exception.DeploymentTerminatedException;
import org.domeos.framework.api.biz.deployment.DeploymentBiz;
import org.domeos.framework.api.biz.deployment.VersionBiz;
import org.domeos.framework.api.consolemodel.deployment.ContainerDraft;
import org.domeos.framework.api.controller.exception.ApiException;
import org.domeos.framework.api.model.ci.related.ImageInformation;
import org.domeos.framework.api.model.deployment.Deployment;
import org.domeos.framework.api.model.deployment.Version;
import org.domeos.framework.api.service.deployment.DeploymentService;
import org.domeos.framework.engine.ClusterRuntimeDriver;
import org.domeos.framework.engine.RuntimeDriver;
import org.domeos.framework.engine.event.AutoDeploy.AutoUpdateInfo;
import org.domeos.framework.engine.exception.DaoException;
import org.domeos.framework.engine.model.CustomObjectMapper;
import org.domeos.util.CommonUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.io.IOException;
import java.util.List;
/**
* Created by feiliu206363 on 2016/11/4.
*/
@Component("checkAutoDeploy")
public class CheckAutoDeploy {
private static Logger logger = LoggerFactory.getLogger(CheckAutoDeploy.class);
@Autowired
VersionBiz versionBiz;
@Autowired
DeploymentBiz deploymentBiz;
@Autowired
CustomObjectMapper objectMapper;
@Autowired
DeploymentService deploymentService;
public void checkDeploy(ImageInformation imageInformation) {
List<Deployment> deployments = deploymentBiz.listRunningDeployment();
if (deployments == null || deployments.isEmpty()) {
return;
}
for (Deployment deployment : deployments) {
RuntimeDriver driver = ClusterRuntimeDriver.getClusterDriver(deployment.getClusterId());
if (driver == null) {
continue;
}
try {
List<Version> versions = driver.getCurrnetVersionsByDeployment(deployment);
if (versions != null && versions.size() == 1) {
Version version = versions.get(0);
List<ContainerDraft> containerDrafts = version.getContainerDrafts();
if (containerDrafts == null || containerDrafts.isEmpty()) {
continue;
}
boolean update = false;
for (ContainerDraft containerDraft : containerDrafts) {
if (containerDraft.isAutoDeploy() && check(containerDraft.getRegistry(), imageInformation.getRegistry())
&& check(containerDraft.getImage(), imageInformation.getImageName())
&& !check(containerDraft.getTag(), imageInformation.getImageTag())) {
update = true;
containerDraft.setTag(imageInformation.getImageTag());
}
}
if (update) {
versionBiz.insertRow(version);
AutoUpdateInfo autoUpdateInfo = new AutoUpdateInfo();
autoUpdateInfo.setDeployId(version.getDeployId());
autoUpdateInfo.setVersionId(version.getVersion());
autoUpdateInfo.setReplicas((int) driver.getTotalReplicasByDeployment(deployment));
logger.info("!!!!!!! send update event, ");
deploymentService.startUpdate(autoUpdateInfo, false);
// DMEventSender.publishEvent(new AutoDeploymentUpdate(autoUpdateInfo));
}
} else if (versions != null) {
logger.warn("more than one version is running, info = " + objectMapper.writeValueAsString(versions));
}
} catch (IOException | DeploymentEventException | DaoException | DeploymentTerminatedException e) {
logger.warn("catch exception when get version information, message is " + e.getMessage());
}
}
}
private boolean check(String str1, String str2) {
if (StringUtils.isBlank(str1) || StringUtils.isBlank(str2)) {
return false;
}
if (CommonUtil.domainUrl(str1).equals(CommonUtil.domainUrl(str2))) {
return true;
}
return false;
}
}
|
[
"feiliu206363@sohu-inc.com"
] |
feiliu206363@sohu-inc.com
|
1215ca6caed6523412f5f6660eb85ab0de21628a
|
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
|
/Code Snippet Repository/Maven/Maven697.java
|
4ac11e51f45e22eebc832d90a0ca9497bb03433a
|
[] |
no_license
|
saber13812002/DeepCRM
|
3336a244d4852a364800af3181e03e868cf6f9f5
|
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
|
refs/heads/master
| 2023-03-16T00:08:06.473699
| 2018-04-18T05:29:50
| 2018-04-18T05:29:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 477
|
java
|
private String getExecutionId( Plugin plugin, String goal )
{
Set<String> existingIds = new HashSet<>();
for ( PluginExecution execution : plugin.getExecutions() )
{
existingIds.add( execution.getId() );
}
String base = "default-" + goal;
String id = base;
for ( int index = 1; existingIds.contains( id ); index++ )
{
id = base + '-' + index;
}
return id;
}
|
[
"Qing.Mi@my.cityu.edu.hk"
] |
Qing.Mi@my.cityu.edu.hk
|
1f913162fb0bf5662dc094404386454603856a9c
|
53d677a55e4ece8883526738f1c9d00fa6560ff7
|
/com/tencent/mm/ui/conversation/c$9.java
|
0c75ba0965f0af07899f32033047e84abbadcdf3
|
[] |
no_license
|
0jinxing/wechat-apk-source
|
544c2d79bfc10261eb36389c1edfdf553d8f312a
|
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
|
refs/heads/master
| 2020-06-07T20:06:03.580028
| 2019-06-21T09:17:26
| 2019-06-21T09:17:26
| 193,069,132
| 9
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 904
|
java
|
package com.tencent.mm.ui.conversation;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.pointers.PBool;
final class c$9
implements DialogInterface.OnClickListener
{
c$9(String paramString, PBool paramPBool, ProgressDialog paramProgressDialog, Runnable paramRunnable)
{
}
public final void onClick(DialogInterface paramDialogInterface, int paramInt)
{
AppMethodBeat.i(34163);
c.a(this.ewn, this.zqU, this.eiD);
if (this.zqW != null)
this.zqW.run();
AppMethodBeat.o(34163);
}
}
/* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes4-dex2jar.jar
* Qualified Name: com.tencent.mm.ui.conversation.c.9
* JD-Core Version: 0.6.2
*/
|
[
"172601673@qq.com"
] |
172601673@qq.com
|
7183bf395fe4e6e45dd9a9aa8ef4ac41183682a0
|
f6b90fae50ea0cd37c457994efadbd5560a5d663
|
/android/nut-dex2jar.src/com/google/android/gms/common/internal/a.java
|
b6f1500f71d3bd78a00c9dc0cf3a1a99aa4faf06
|
[] |
no_license
|
dykdykdyk/decompileTools
|
5925ae91f588fefa7c703925e4629c782174cd68
|
4de5c1a23f931008fa82b85046f733c1439f06cf
|
refs/heads/master
| 2020-01-27T09:56:48.099821
| 2016-09-14T02:47:11
| 2016-09-14T02:47:11
| 66,894,502
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,358
|
java
|
package com.google.android.gms.common.internal;
import android.accounts.Account;
import android.os.Binder;
import android.os.RemoteException;
import android.util.Log;
import com.google.android.gms.common.o;
public final class a extends ay
{
int a;
public static Account a(ax paramax)
{
Account localAccount = null;
long l;
if (paramax != null)
l = Binder.clearCallingIdentity();
try
{
localAccount = paramax.a();
return localAccount;
}
catch (RemoteException paramax)
{
Log.w("AccountAccessor", "Remote account accessor probably died");
return null;
}
finally
{
Binder.restoreCallingIdentity(l);
}
throw paramax;
}
public final Account a()
{
int i = Binder.getCallingUid();
if (i == this.a)
return null;
if (o.zze(null, i))
{
this.a = i;
return null;
}
throw new SecurityException("Caller is not GooglePlayServices");
}
public final boolean equals(Object paramObject)
{
if (this == paramObject)
return true;
if (!(paramObject instanceof a))
return false;
throw new NullPointerException();
}
}
/* Location: C:\crazyd\work\ustone\odm2016031702\baidu\android\nut-dex2jar.jar
* Qualified Name: com.google.android.gms.common.internal.a
* JD-Core Version: 0.6.2
*/
|
[
"819468107@qq.com"
] |
819468107@qq.com
|
1c7f4f4cd8c17c8ca2a247cbcc5c0570d82589e0
|
67c2281b7bf6362fd79ab2ab69b331a34b2178a3
|
/framework.core.vaadin8/framework.core.vaadin8.web/src/main/java/software/simple/solutions/framework/core/util/OnDemandFileDownloader.java
|
71793c831103a56d0aab72cb3fdd02cb7e527ee1
|
[] |
no_license
|
yusufnazir/framework_parent
|
063f814b83d216bda20e9de2dee2cb16a24ecf78
|
9204c78260ad3601726db141ff599cd4c75174b8
|
refs/heads/master
| 2022-07-22T12:01:28.144363
| 2020-05-11T01:07:24
| 2020-05-11T01:07:24
| 183,057,473
| 0
| 1
| null | 2022-06-21T02:33:18
| 2019-04-23T16:45:51
|
Java
|
UTF-8
|
Java
| false
| false
| 1,164
|
java
|
package software.simple.solutions.framework.core.util;
import java.io.IOException;
import com.vaadin.server.FileDownloader;
import com.vaadin.server.StreamResource;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinResponse;
/**
* This specializes {@link FileDownloader} in a way, such that both the file
* name and content can be determined on-demand, i.e. when the user has clicked
* the component.
*/
public class OnDemandFileDownloader extends FileDownloader {
private static final long serialVersionUID = 1L;
private OnDemandStreamResource onDemandStreamResource;
public OnDemandFileDownloader(OnDemandStreamResource onDemandStreamResource) {
super(new StreamResource(onDemandStreamResource, ""));
this.onDemandStreamResource = onDemandStreamResource;
}
@Override
public boolean handleConnectorRequest(VaadinRequest request, VaadinResponse response, String path)
throws IOException {
getResource().setFilename(onDemandStreamResource.getFilename());
return super.handleConnectorRequest(request, response, path);
}
private StreamResource getResource() {
return (StreamResource) this.getResource("dl");
}
}
|
[
"yusuf.nazir@gmail.com"
] |
yusuf.nazir@gmail.com
|
3caf720eb2ba1bfc606a88bfa9ede11541d5e014
|
d5f09c7b0e954cd20dd613af600afd91b039c48a
|
/sources/kotlin/io/ConstantsKt.java
|
185d6e09bc826464d6e8135bd82b55c7e479d8cf
|
[] |
no_license
|
t0HiiBwn/CoolapkRelease
|
af5e00c701bf82c4e90b1033f5c5f9dc8526f4b3
|
a6a2b03e32cde0e5163016e0078391271a8d33ab
|
refs/heads/main
| 2022-07-29T23:28:35.867734
| 2021-03-26T11:41:18
| 2021-03-26T11:41:18
| 345,290,891
| 5
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 691
|
java
|
package kotlin.io;
import kotlin.Metadata;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\n\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\"\u000e\u0010\u0000\u001a\u00020\u0001XT¢\u0006\u0002\n\u0000\"\u000e\u0010\u0002\u001a\u00020\u0001XT¢\u0006\u0002\n\u0000\"\u000e\u0010\u0003\u001a\u00020\u0001XT¢\u0006\u0002\n\u0000¨\u0006\u0004"}, d2 = {"DEFAULT_BLOCK_SIZE", "", "DEFAULT_BUFFER_SIZE", "MINIMUM_BLOCK_SIZE", "kotlin-stdlib"}, k = 2, mv = {1, 4, 1})
/* compiled from: Constants.kt */
public final class ConstantsKt {
public static final int DEFAULT_BLOCK_SIZE = 4096;
public static final int DEFAULT_BUFFER_SIZE = 8192;
public static final int MINIMUM_BLOCK_SIZE = 512;
}
|
[
"test@gmail.com"
] |
test@gmail.com
|
a1b7299b4c2b34cbc1fc8135be4a1b4b0f24c25d
|
5544c3bfbafbdb00457802452411fb4aafe64656
|
/trunk/JAVAEE4ZhongLei/src/cn/artern/tools/nativeSource/NetworkInfo.java
|
450c09d26e06914daf7b777f3bb1b506034a8868
|
[] |
no_license
|
BGCX261/zhonglei-pawnshops-ms-svn-to-git
|
7ca080933e3089867f25f1a490fde4cb532379b0
|
770ebfa98ac570822f16373283698c777de6c6eb
|
refs/heads/master
| 2021-01-01T16:00:05.129203
| 2015-08-25T15:30:03
| 2015-08-25T15:30:03
| 41,585,765
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,799
|
java
|
package cn.artern.tools.nativeSource;
import java.net.*;
import java.io.*;
import java.text.*;
import java.util.*;
import java.util.regex.*;
public abstract class NetworkInfo {
private static final String LOCALHOST = "localhost";
public static final String NSLOOKUP_CMD = "nslookup";
public abstract String parseMacAddress() throws ParseException;
/** Not too sure of the ramifications here, but it just doesn't seem right */
public String parseDomain() throws ParseException {
return parseDomain(LOCALHOST);
}
/** Universal entry for retrieving MAC Address */
public final static String getMacAddress() throws IOException {
try {
NetworkInfo info = getNetworkInfo();
String mac = info.parseMacAddress();
return mac;
} catch (ParseException ex) {
ex.printStackTrace();
throw new IOException(ex.getMessage());
}
}
/** Universal entry for retrieving domain info */
public final static String getNetworkDomain() throws IOException {
try {
NetworkInfo info = getNetworkInfo();
String domain = info.parseDomain();
return domain;
} catch (ParseException ex) {
ex.printStackTrace();
throw new IOException(ex.getMessage());
}
}
protected String parseDomain(String hostname) throws ParseException {
// get the address of the host we are looking for - verification
java.net.InetAddress addy = null;
try {
addy = java.net.InetAddress.getByName(hostname);
} catch (UnknownHostException e) {
e.printStackTrace();
throw new ParseException(e.getMessage(), 0);
}
// back out to the hostname - just validating
hostname = addy.getCanonicalHostName();
String nslookupCommand = NSLOOKUP_CMD + " " + hostname;
// run the lookup command
String nslookupResponse = null;
try {
nslookupResponse = runConsoleCommand(nslookupCommand);
} catch (IOException e) {
e.printStackTrace();
throw new ParseException(e.getMessage(), 0);
}
StringTokenizer tokeit = new StringTokenizer(nslookupResponse, "\n",
false);
while (tokeit.hasMoreTokens()) {
String line = tokeit.nextToken();
if (line.startsWith("Name:")) {
line = line.substring(line.indexOf(":") + 1);
line = line.trim();
if (isDomain(line, hostname)) {
line = line.substring(hostname.length() + 1);
return line;
}
}
}
return "n.a.";
}
private static boolean isDomain(String domainCandidate, String hostname) {
Pattern domainPattern = Pattern
.compile("[\\w-]+\\.[\\w-]+\\.[\\w-]+\\.[\\w-]+");
Matcher m = domainPattern.matcher(domainCandidate);
return m.matches() && domainCandidate.startsWith(hostname);
}
protected String runConsoleCommand(String command) throws IOException {
Process p = Runtime.getRuntime().exec(command);
InputStream stdoutStream = new BufferedInputStream(p.getInputStream());
StringBuffer buffer = new StringBuffer();
for (;;) {
int c = stdoutStream.read();
if (c == -1)
break;
buffer.append((char) c);
}
String outputText = buffer.toString();
stdoutStream.close();
return outputText;
}
/** Sort of like a factory... */
private static NetworkInfo getNetworkInfo() throws IOException {
String os = System.getProperty("os.name");
if (os.startsWith("Windows")) {
return new WindowsNetworkInfo();
} else if (os.startsWith("Linux")) {
return new LinuxNetworkInfo();
} else {
throw new IOException("unknown operating system: " + os);
}
}
protected String getLocalHost() throws ParseException {
try {
return java.net.InetAddress.getLocalHost().getHostAddress();
} catch (java.net.UnknownHostException e) {
e.printStackTrace();
throw new ParseException(e.getMessage(), 0);
}
}
}
|
[
"you@example.com"
] |
you@example.com
|
c20ef77f3db91c0535f7f0c54fc7c4c097f26647
|
373d2d09e0c6db0c61f40b57164603a3df7e3d78
|
/reporters/src/main/java/com/facebook/battery/reporter/devicebattery/DeviceBatteryMetricsReporter.java
|
30b9eccc4e0e0daee3a4e11e99909e91be98197f
|
[
"MIT"
] |
permissive
|
hyh-qz/Battery-Metrics
|
0b10dbe7ec1ea877963955d7cd0a1fc2aeb6ff2b
|
6458186bb3fc870c93bd27e93ada2c96c47576be
|
refs/heads/master
| 2023-06-30T12:14:50.907846
| 2021-05-18T07:12:13
| 2021-05-18T07:13:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,057
|
java
|
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.battery.reporter.devicebattery;
import com.facebook.battery.metrics.devicebattery.DeviceBatteryMetrics;
import com.facebook.battery.reporter.core.SystemMetricsReporter;
import com.facebook.infer.annotation.Nullsafe;
@Nullsafe(Nullsafe.Mode.LOCAL)
public class DeviceBatteryMetricsReporter implements SystemMetricsReporter<DeviceBatteryMetrics> {
public static final String BATTERY_PCT = "battery_pct";
public static final String BATTERY_REALTIME_MS = "battery_realtime_ms";
public static final String CHARGING_REALTIME_MS = "charging_realtime_ms";
@Override
public void reportTo(DeviceBatteryMetrics metrics, SystemMetricsReporter.Event event) {
event.add(BATTERY_PCT, metrics.batteryLevelPct);
event.add(BATTERY_REALTIME_MS, metrics.batteryRealtimeMs);
event.add(CHARGING_REALTIME_MS, metrics.chargingRealtimeMs);
}
}
|
[
"facebook-github-bot@users.noreply.github.com"
] |
facebook-github-bot@users.noreply.github.com
|
5c87975d89c586ac6d3fef6dbe8ff73977119298
|
c3741ba1c65830c358478144e4d7026269098246
|
/Back/notarias-app/notarias-generador-documento/src/test/java/com/palestra/notarias/variables/TokenReplacerTest.java
|
81083ac6b45e3437363d42e608afc527256d744e
|
[] |
no_license
|
rksmw/notarias-respaldo
|
92dec1391f25b90cfc050fed11af883027f79f9c
|
347c8ff941f00b9dc165b86c469967ab8a17ec0e
|
refs/heads/master
| 2022-12-26T06:53:28.747034
| 2019-06-19T15:40:04
| 2019-06-19T15:40:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,113
|
java
|
package com.palestra.notarias.variables;
import java.io.IOException;
import java.io.Reader;
import java.util.HashMap;
import java.util.Map;
import com.palestra.notarias.enums.EnumVariables;
public class TokenReplacerTest {
public static void main(String args[]){
TokenReplacerTest tr = new TokenReplacerTest();
tr.remplazaTokenVariablePorValor();
}
public void remplazaTokenVariablePorValor() {
TokenReplacer tokenReplacer = new TokenReplacer();
Map<String, String> tokens = new HashMap<String, String>();
tokens.put("token1", "Nombre");
tokens.put("token2", "Altavista 83 esquina con José María de Teresa");
tokens.put("tokenNull", null);
String sourceText = "1234567890${token1}abcdefg${token2}XYZ$000 ${tokenNull}";
Reader reader = tokenReplacer.remplazaTokenVariablePorValor(sourceText,
tokens, EnumVariables.VAR_PREFIX.toString(),
EnumVariables.VAR_SUFIX.toString());
int data = 0;
try {
data = reader.read();
while (data != -1) {
System.out.print((char) data);
data = reader.read();
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
|
[
"mefithernandez@MacBook-Pro-de-Mefit.local"
] |
mefithernandez@MacBook-Pro-de-Mefit.local
|
458daa1286a9a2b846ce3d70ba1d803572f03765
|
84408620883e283a61e0724bce23a4c97df6536e
|
/MyTask-master/app/src/main/java/com/renniji/mytask/tab/TabWorksFragment.java
|
312074991f4677159732cc41ead15372313a9e1e
|
[] |
no_license
|
heshicaihao/MyTask
|
b2594a8b60eba7b66b204b2f273955136b74c9dd
|
bbb0f65121c38f223af6ca26dc09971644ed3978
|
refs/heads/master
| 2021-05-14T11:13:48.733310
| 2018-01-05T10:35:55
| 2018-01-05T10:35:55
| 116,373,264
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 765
|
java
|
package com.renniji.mytask.tab;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.renniji.mytask.R;
import com.renniji.mytask.base.BaseFragment;
public class TabWorksFragment extends BaseFragment {
private View mView;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
if (mView == null) {
mView = inflater.inflate(R.layout.fragment_tab_works, null);
}
ViewGroup parent = (ViewGroup) mView.getParent();
if (parent != null) {
parent.removeView(mView);
}
return mView;
}
}
|
[
"heshicaihao@163.com"
] |
heshicaihao@163.com
|
7fe2c63ef12838e2b03c4c03b7052c89122b3237
|
581f588ded1a8ccef7144128dbf0a9d17a1bbac3
|
/jackson/src/test/java/com/baeldung/jacksonannotation/format/JsonFormatTest.java
|
7c342d51e4e3651197f81473ed5a46829d508dfd
|
[] |
no_license
|
Sandeep4odesk/tutorials
|
7de590629ddde6dd901cb378d0f70f2d0cead5fd
|
91d5d8a3ae9a70c8b8fb43a20781dbd3bad69695
|
refs/heads/master
| 2021-01-21T23:54:14.511232
| 2017-02-07T17:56:34
| 2017-02-26T07:02:26
| 66,958,169
| 0
| 0
| null | 2016-08-30T16:26:08
| 2016-08-30T16:26:08
| null |
UTF-8
|
Java
| false
| false
| 1,029
|
java
|
package com.baeldung.jacksonannotation.format;
import java.util.Date;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test;
import static io.restassured.path.json.JsonPath.from;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.data.Percentage.withPercentage;
/**
* @author Jay Sridhar
* @version 1.0
*/
public class JsonFormatTest {
@Test
public void whenSerializedDateFormat_thenCorrect() throws JsonProcessingException {
User user = new User("Jay", "Sridhar");
String result = new ObjectMapper().writeValueAsString(user);
// Expected to match: "2016-12-19@09:34:42.628+0000"
assertThat(from(result).getString("createdDate"))
.matches("\\d{4}\\-\\d{2}\\-\\d{2}@\\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\+\\d{4}");
// Expected to be close to current time
long now = new Date().getTime();
assertThat(from(result).getLong("dateNum"))
.isCloseTo(now, withPercentage(10.0));
}
}
|
[
"gpiwowarek@gmail.com"
] |
gpiwowarek@gmail.com
|
c18ab3cc5225cc520c1a4a3f4f2634782b730bd2
|
e6d716fde932045d076ab18553203e2210c7bc44
|
/bluesky-pentaho-kettle/engine/src/main/java/org/pentaho/di/repository/ExportFeedback.java
|
37fb5b7564dad9dd3212c516bba9936f4e24ad6e
|
[] |
no_license
|
BlueCodeBoy/bluesky
|
d04032e6c0ce87a18bcbc037191ca20d03aa133e
|
6fc672455b6047979527da9ba8e3fc220d5cee37
|
refs/heads/master
| 2020-04-18T10:47:20.434313
| 2019-01-25T03:30:47
| 2019-01-25T03:30:47
| 167,478,568
| 6
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,028
|
java
|
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************/
package org.pentaho.di.repository;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import org.pentaho.di.core.Const;
import org.pentaho.di.imp.rule.ImportValidationFeedback;
import org.pentaho.di.i18n.BaseMessages;
/**
* This class is used to write export feedback. Usually it is transaction or job export result info.
*
* Every time this object is created it gets time created info automatically.
*
* Usually every ExportFeedback instance is related with one transformation or job export result. They are organized as
* a List. In special cases when we want a record not-about job or transformation - we can set {@link #isSimpleString()}
* to true. In this case {@link #getItemName()} will be used as a simple string. Others fields will not be used.
*
* To get a String representation of this item call to {@link #toString()}.
*
*/
public final class ExportFeedback {
private static Class<?> PKG = ExportFeedback.class;
static SimpleDateFormat sdf = new SimpleDateFormat( "yyyy/MM/dd HH:mm:ss" );
private Date time = new Date();
private Type type;
private Status status;
private String itemPath;
private String itemName;
private List<ImportValidationFeedback> result;
private boolean isSimpleString;
public enum Status {
REJECTED( BaseMessages.getString( PKG, "ExportFeedback.Status.Rejected" ) ), EXPORTED( BaseMessages.getString( PKG,
"ExportFeedback.Status.Exported" ) );
private String status;
Status( String status ) {
this.status = status;
}
public String getStatus() {
return this.status;
}
}
public enum Type {
JOB( BaseMessages.getString( PKG, "ExportFeedback.Type.Job" ) ), TRANSFORMATION( BaseMessages.getString( PKG,
"ExportFeedback.Type.Transformation" ) );
private String type;
Type( String type ) {
this.type = type;
}
public String getType() {
return type;
}
}
public Type getType() {
return type;
}
public void setType( Type type ) {
this.type = type;
}
public Date getTime() {
return time;
}
public void setTime( Date time ) {
this.time = time;
}
public Status getStatus() {
return status;
}
public void setStatus( Status status ) {
this.status = status;
}
public String getItemPath() {
return itemPath;
}
public void setItemPath( String itemPath ) {
this.itemPath = itemPath;
}
public String getItemName() {
return itemName;
}
public void setItemName( String itemName ) {
this.itemName = itemName;
}
public List<ImportValidationFeedback> getResult() {
return result;
}
public void setResult( List<ImportValidationFeedback> result ) {
this.result = result;
}
public boolean isSimpleString() {
return isSimpleString;
}
public void setSimpleString( boolean isSimpleString ) {
this.isSimpleString = isSimpleString;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ( ( itemName == null ) ? 0 : itemName.hashCode() );
result = prime * result + ( ( itemPath == null ) ? 0 : itemPath.hashCode() );
return result;
}
@Override
public boolean equals( Object obj ) {
if ( this == obj ) {
return true;
}
if ( obj == null ) {
return false;
}
if ( getClass() != obj.getClass() ) {
return false;
}
ExportFeedback other = (ExportFeedback) obj;
if ( itemName == null ) {
if ( other.itemName != null ) {
return false;
}
} else if ( !itemName.equals( other.itemName ) ) {
return false;
}
if ( itemPath == null ) {
if ( other.itemPath != null ) {
return false;
}
} else if ( !itemPath.equals( other.itemPath ) ) {
return false;
}
return true;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
String message = null;
if ( this.isSimpleString ) {
message =
BaseMessages.getString( PKG, "ExportFeedback.Message.Simple", sdf.format( this.getTime() ), this
.getItemName() );
sb.append( message );
sb.append( Const.CR );
return sb.toString();
}
message =
BaseMessages.getString( PKG, "ExportFeedback.Message.Main", sdf.format( this.getTime() ), this.getStatus()
.getStatus(), this.getItemName(), this.getItemPath() );
sb.append( message );
sb.append( Const.CR );
// write some about rejected rules.
// note - this list contains only errors in current implementation
// so we skip additional checks. If someday this behavior will be changed -
// that the reason why are you read this comments.
if ( getStatus().equals( Status.REJECTED ) ) {
List<ImportValidationFeedback> fList = this.getResult();
for ( ImportValidationFeedback res : fList ) {
message = BaseMessages.getString( PKG, "ExportFeedback.Message.RuleViolated", res.getComment() );
sb.append( message );
sb.append( Const.CR );
}
}
return sb.toString();
}
}
|
[
"pp@gmail.com"
] |
pp@gmail.com
|
e13c0e71e6279b566f3e0c06721ec001581cc690
|
2ceb874289627a8c83f15a379f1e5750b0305200
|
/user-api/src/main/java/com/me2me/user/model/UserFirstLog.java
|
ab9a2ed4af5fa6e6e4a13c320e2565482c06ca70
|
[] |
no_license
|
hushunjian/me2me-app
|
73a691576d29565f5a51eed9025e256df6b5c9ce
|
5da0a720b72193a041150fae1266fceb33ba8518
|
refs/heads/master
| 2023-01-07T15:59:26.013478
| 2021-04-03T09:50:07
| 2021-04-03T09:50:07
| 120,296,809
| 0
| 2
| null | 2022-12-16T07:54:57
| 2018-02-05T11:37:31
|
Java
|
UTF-8
|
Java
| false
| false
| 3,794
|
java
|
package com.me2me.user.model;
import java.util.Date;
import com.me2me.common.web.BaseEntity;
public class UserFirstLog implements BaseEntity {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column user_first_log.id
*
* @mbggenerated Tue Jul 25 10:59:49 CST 2017
*/
private Long id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column user_first_log.uid
*
* @mbggenerated Tue Jul 25 10:59:49 CST 2017
*/
private Long uid;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column user_first_log.action_type
*
* @mbggenerated Tue Jul 25 10:59:49 CST 2017
*/
private Integer actionType;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column user_first_log.create_time
*
* @mbggenerated Tue Jul 25 10:59:49 CST 2017
*/
private Date createTime;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column user_first_log.id
*
* @return the value of user_first_log.id
*
* @mbggenerated Tue Jul 25 10:59:49 CST 2017
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user_first_log.id
*
* @param id the value for user_first_log.id
*
* @mbggenerated Tue Jul 25 10:59:49 CST 2017
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column user_first_log.uid
*
* @return the value of user_first_log.uid
*
* @mbggenerated Tue Jul 25 10:59:49 CST 2017
*/
public Long getUid() {
return uid;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user_first_log.uid
*
* @param uid the value for user_first_log.uid
*
* @mbggenerated Tue Jul 25 10:59:49 CST 2017
*/
public void setUid(Long uid) {
this.uid = uid;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column user_first_log.action_type
*
* @return the value of user_first_log.action_type
*
* @mbggenerated Tue Jul 25 10:59:49 CST 2017
*/
public Integer getActionType() {
return actionType;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user_first_log.action_type
*
* @param actionType the value for user_first_log.action_type
*
* @mbggenerated Tue Jul 25 10:59:49 CST 2017
*/
public void setActionType(Integer actionType) {
this.actionType = actionType;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column user_first_log.create_time
*
* @return the value of user_first_log.create_time
*
* @mbggenerated Tue Jul 25 10:59:49 CST 2017
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user_first_log.create_time
*
* @param createTime the value for user_first_log.create_time
*
* @mbggenerated Tue Jul 25 10:59:49 CST 2017
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}
|
[
"hushunjian950420@163.com"
] |
hushunjian950420@163.com
|
8480268de63f49fc6f98393883f302d18b4cdf7e
|
1ce518b09521578e26e79a1beef350e7485ced8c
|
/source/app/src/main/java/com/facebook/AppEventsLogger$EventSuppression.java
|
88201d0a91cf97c9b46e8f41e9435bd112a46f33
|
[] |
no_license
|
yash2710/AndroidStudioProjects
|
7180eb25e0f83d3f14db2713cd46cd89e927db20
|
e8ba4f5c00664f9084f6154f69f314c374551e51
|
refs/heads/master
| 2021-01-10T01:15:07.615329
| 2016-04-03T09:19:01
| 2016-04-03T09:19:01
| 55,338,306
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 530
|
java
|
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.facebook;
class behavior
{
private tBehavior behavior;
private int timeoutPeriod;
tBehavior getBehavior()
{
return behavior;
}
int getTimeoutPeriod()
{
return timeoutPeriod;
}
tBehavior(int i, tBehavior tbehavior)
{
timeoutPeriod = i;
behavior = tbehavior;
}
}
|
[
"13bce123@nirmauni.ac.in"
] |
13bce123@nirmauni.ac.in
|
9687e4d431fc0982bafd1095a387348d2c5cd228
|
38772e3d16c3c2a15c379969d9a607916a65e7ba
|
/libs/joriki/src/info/joriki/opentype/ChainingContextualSubstitutionSubtable.java
|
27e997acafed52eb417243201438b55911fb9716
|
[
"Apache-2.0"
] |
permissive
|
emistoolbox/emistoolbox
|
2d57aa6189c99f2cbd4f53429c184a4096b3a3ca
|
c973fc5ebe2607402a0c48b8c548dfe3188b27b9
|
refs/heads/master
| 2021-01-19T01:42:40.658255
| 2019-04-27T19:58:36
| 2019-04-27T19:58:36
| 32,792,202
| 1
| 0
|
Apache-2.0
| 2018-11-26T10:43:07
| 2015-03-24T10:39:36
|
Java
|
UTF-8
|
Java
| false
| false
| 741
|
java
|
/*
* Copyright 2004 Felix Pahl. All rights reserved.
* Use is subject to license terms.
*/
package info.joriki.opentype;
import java.io.IOException;
import info.joriki.io.FullySeekableDataInput;
import info.joriki.util.NotImplementedException;
public class ChainingContextualSubstitutionSubtable extends LookupSubtable {
public ChainingContextualSubstitutionSubtable(FullySeekableDataInput in) throws IOException {
super(in);
}
protected OffsetTable readBody (FullySeekableDataInput in) throws IOException {
switch (format) {
case 3: return new CoverageBasedChainingContextSubstitution (in);
default: throw new NotImplementedException ("chaining contextual substitution subtable format " + format);
}
}
}
|
[
"murkhog@googlemail.com"
] |
murkhog@googlemail.com
|
516ad64d529086642b2a2254a8e9452f1645c99e
|
eb5f5353f49ee558e497e5caded1f60f32f536b5
|
/com/sun/xml/internal/ws/policy/AssertionValidationProcessor.java
|
fe717d12c1e2dab5cd801c5b7bee6da193be3611
|
[] |
no_license
|
mohitrajvardhan17/java1.8.0_151
|
6fc53e15354d88b53bd248c260c954807d612118
|
6eeab0c0fd20be34db653f4778f8828068c50c92
|
refs/heads/master
| 2020-03-18T09:44:14.769133
| 2018-05-23T14:28:24
| 2018-05-23T14:28:24
| 134,578,186
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,363
|
java
|
package com.sun.xml.internal.ws.policy;
import com.sun.xml.internal.ws.policy.privateutil.LocalizationMessages;
import com.sun.xml.internal.ws.policy.privateutil.PolicyLogger;
import com.sun.xml.internal.ws.policy.privateutil.PolicyUtils.ServiceProvider;
import com.sun.xml.internal.ws.policy.spi.PolicyAssertionValidator;
import com.sun.xml.internal.ws.policy.spi.PolicyAssertionValidator.Fitness;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
public class AssertionValidationProcessor
{
private static final PolicyLogger LOGGER = PolicyLogger.getLogger(AssertionValidationProcessor.class);
private final Collection<PolicyAssertionValidator> validators = new LinkedList();
private AssertionValidationProcessor()
throws PolicyException
{
this(null);
}
protected AssertionValidationProcessor(Collection<PolicyAssertionValidator> paramCollection)
throws PolicyException
{
for (Object localObject2 : (PolicyAssertionValidator[])PolicyUtils.ServiceProvider.load(PolicyAssertionValidator.class)) {
validators.add(localObject2);
}
if (paramCollection != null)
{
??? = paramCollection.iterator();
while (((Iterator)???).hasNext())
{
PolicyAssertionValidator localPolicyAssertionValidator = (PolicyAssertionValidator)((Iterator)???).next();
validators.add(localPolicyAssertionValidator);
}
}
if (validators.size() == 0) {
throw ((PolicyException)LOGGER.logSevereException(new PolicyException(LocalizationMessages.WSP_0076_NO_SERVICE_PROVIDERS_FOUND(PolicyAssertionValidator.class.getName()))));
}
}
public static AssertionValidationProcessor getInstance()
throws PolicyException
{
return new AssertionValidationProcessor();
}
public PolicyAssertionValidator.Fitness validateClientSide(PolicyAssertion paramPolicyAssertion)
throws PolicyException
{
PolicyAssertionValidator.Fitness localFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
Iterator localIterator = validators.iterator();
while (localIterator.hasNext())
{
PolicyAssertionValidator localPolicyAssertionValidator = (PolicyAssertionValidator)localIterator.next();
localFitness = localFitness.combine(localPolicyAssertionValidator.validateClientSide(paramPolicyAssertion));
if (localFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
break;
}
}
return localFitness;
}
public PolicyAssertionValidator.Fitness validateServerSide(PolicyAssertion paramPolicyAssertion)
throws PolicyException
{
PolicyAssertionValidator.Fitness localFitness = PolicyAssertionValidator.Fitness.UNKNOWN;
Iterator localIterator = validators.iterator();
while (localIterator.hasNext())
{
PolicyAssertionValidator localPolicyAssertionValidator = (PolicyAssertionValidator)localIterator.next();
localFitness = localFitness.combine(localPolicyAssertionValidator.validateServerSide(paramPolicyAssertion));
if (localFitness == PolicyAssertionValidator.Fitness.SUPPORTED) {
break;
}
}
return localFitness;
}
}
/* Location: C:\Program Files (x86)\Java\jre1.8.0_151\lib\rt.jar!\com\sun\xml\internal\ws\policy\AssertionValidationProcessor.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 0.7.1
*/
|
[
"mohit.rajvardhan@ericsson.com"
] |
mohit.rajvardhan@ericsson.com
|
e1656482fc57f906931e10477487b2e8d0ebb4d0
|
7af9a322cbbab1eac9c70ade4b1be266c3392665
|
/src/main/java/enumabstract/OrderState.java
|
259f3a101fb70d94457b3242a25744a0ff4adaa0
|
[] |
no_license
|
henimia/training-solutions
|
3ac8335120f5fa0b8979997bb29933a0683ded12
|
6fdbfd49baac584266b86c9dc35a9f6a7d1826eb
|
refs/heads/master
| 2023-03-25T04:25:14.148219
| 2021-03-16T10:01:15
| 2021-03-16T10:01:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 833
|
java
|
package enumabstract;
public enum OrderState implements Deletable {
NEW {
@Override
public boolean canDelete() {
return true;
}
}, CONFIRMED {
@Override
public boolean canDelete() {
return true;
}
}, PREPARED {
@Override
public boolean canDelete() {
return true;
}
}, ONBOARD {
@Override
public boolean canDelete() {
return false;
}
}, DELIVERED {
@Override
public boolean canDelete() {
return false;
}
}, RETURNED {
@Override
public boolean canDelete() {
return false;
}
}, DELETED {
@Override
public boolean canDelete() {
return false;
}
};
}
|
[
"66733574+manikola@users.noreply.github.com"
] |
66733574+manikola@users.noreply.github.com
|
664e28096e03773d2e34c51cee4b001728ca0e6e
|
db96b76094730056966dd1bb04b2fb4a88271549
|
/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/nfc/NfcPaymentPreference.java
|
284ef0392e36e58ef71331dee43167123f383d3d
|
[] |
no_license
|
dylanbroodryk/Android-system-apps
|
48335f66d3fad6532cda19e192f11af1f69dce00
|
50f6f11f70906260a710cbeb66a92fba72410504
|
refs/heads/master
| 2022-03-14T16:15:33.277628
| 2022-02-12T04:56:41
| 2022-02-12T04:56:41
| 228,542,760
| 0
| 0
| null | 2019-12-17T05:50:11
| 2019-12-17T05:50:10
| null |
UTF-8
|
Java
| false
| false
| 2,272
|
java
|
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.car.developeroptions.nfc;
import android.content.Context;
import android.content.DialogInterface;
import android.util.AttributeSet;
import androidx.appcompat.app.AlertDialog.Builder;
import androidx.preference.PreferenceViewHolder;
import com.android.settingslib.CustomDialogPreferenceCompat;
public class NfcPaymentPreference extends CustomDialogPreferenceCompat {
private Listener mListener;
interface Listener {
void onBindViewHolder(PreferenceViewHolder view);
void onPrepareDialogBuilder(Builder builder,
DialogInterface.OnClickListener listener);
}
public NfcPaymentPreference(Context context, AttributeSet attrs, int defStyleAttr,
int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
}
public NfcPaymentPreference(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
public NfcPaymentPreference(Context context, AttributeSet attrs) {
super(context, attrs);
}
void initialize(Listener listener) {
mListener = listener;
}
@Override
public void onBindViewHolder(PreferenceViewHolder view) {
super.onBindViewHolder(view);
if (mListener != null) {
mListener.onBindViewHolder(view);
}
}
@Override
protected void onPrepareDialogBuilder(Builder builder,
DialogInterface.OnClickListener listener) {
super.onPrepareDialogBuilder(builder, listener);
if (mListener != null) {
mListener.onPrepareDialogBuilder(builder, listener);
}
}
}
|
[
"yuchuangu85@gmail.com"
] |
yuchuangu85@gmail.com
|
21843e98f69d2832add20415c17459518ce5a501
|
bb584cff0de070fcc2cf429ec841d78422dc5db2
|
/app/src/main/java/io/github/emanual/app/utils/ParseUtils.java
|
1799b50817080ccfd0dd8d1798346fa5cd329e87
|
[
"Apache-2.0"
] |
permissive
|
EManual/EManual-Android
|
9a0347a61bb0d6397ddc97395c939255a0255d5d
|
29420ceb3da359ba63f2648309ca930568b17341
|
refs/heads/develop
| 2021-01-17T09:08:43.391321
| 2020-09-01T10:29:10
| 2020-09-01T10:29:10
| 19,139,387
| 35
| 10
| null | 2016-01-01T08:25:01
| 2014-04-25T08:29:49
|
Java
|
UTF-8
|
Java
| false
| false
| 1,657
|
java
|
package io.github.emanual.app.utils;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import android.util.Log;
import io.github.emanual.app.api.RestClient;
public class ParseUtils {
public static int getArticleId(String filename) {
return Integer.parseInt(filename.split("-")[0]);
}
// [(2013-1-1,0010)]title].md
public static String getArticleName(String filename) {
String[] s = filename.replaceAll("\\.[Mm]{1}[Dd]{1}", "").split("-");
//这是日期开头
if (_.isNumber(s[0]) && _.isNumber(s[1]) && _.isNumber(s[2])) {
return s[3];
} else { //这是文章编号
return s[1];
}
}
// http:xxxxx/assets/preview.html?path=/a/b/[(2013-1-1,0010)]title].md
// public static String getArticleNameByUrl(String url) {
// String[] s = url.split("=")[1].split("/");
// return getArticleName(s[s.length - 1]);
// }
// http:xxxxx/a/b/[(2013-1-1,0010)]title].md
public static String getArticleNameByUrl(String url) {
String[] s = url.split("/");
return getArticleName(s[s.length - 1]);
}
public static String encodeArticleURL(String url) {
try {
StringBuilder sb = new StringBuilder(RestClient.URL_Preview
+ "?path=");
for (String s : url.split("=")[1].split("/")) {
sb.append(URLEncoder.encode(s, "UTF-8")).append("/");
}
sb.deleteCharAt(sb.length() - 1);
return sb.toString();
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
return url;
}
}
|
[
"tonjayin@gmail.com"
] |
tonjayin@gmail.com
|
eba5657f3ecfc5bdba5a38ff8461907051c5a9ac
|
595f0d072dbee1611a9e12745358998d12d8a873
|
/FileSupport/src/umich/ms/batmass/filesupport/files/types/xcms/peaks/model/XCMSPeaks.java
|
dd3765dd05ffa98467f25aaeee1bd43b369defe9
|
[
"Apache-2.0"
] |
permissive
|
chhh/batmass
|
b5c7d9e10d8e63629a86b415b6090dac83eb9744
|
5810b9cc07a04f97f36d4ebf8d168baef73afd72
|
refs/heads/master
| 2021-01-17T02:21:20.988905
| 2020-01-24T22:52:02
| 2020-01-24T22:52:02
| 36,451,863
| 37
| 10
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,799
|
java
|
/*
* Copyright 2016 Dmitry Avtonomov.
*
* 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 umich.ms.batmass.filesupport.files.types.xcms.peaks.model;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVRecord;
import org.apache.commons.csv.QuoteMode;
/**
*
* @author Dmitry Avtonomov
*/
public class XCMSPeaks {
protected List<XCMSPeak> peaks;
public XCMSPeaks() {
peaks = new ArrayList<>();
}
public List<XCMSPeak> getPeaks() {
return peaks;
}
public boolean add(XCMSPeak e) {
return peaks.add(e);
}
public void add(int index, XCMSPeak element) {
peaks.add(index, element);
}
public XCMSPeak get(int index) {
return peaks.get(index);
}
public int size() {
return peaks.size();
}
public Iterator<XCMSPeak> iterator() {
return peaks.iterator();
}
/**
* Parse XCMS peaks from the file, which you can create from R after running
* XCMS feature finding. <br/>
* Example:<br/>
* {@code xs <- xcmsSet(files = file_mzml, method = "massifquant", prefilter = c(1, 10000), peakwidth = c(5, 500), ppm = 20, criticalValue = 1.0, consecMissedLimit = 0, withWave = 0, nSlaves=4)} <br/>
* {@code peaks <- ixs@peaks[1:7108,1:9]} <br/>
* {@code write.table(peaks, sep = "\t",file = "D:/projects/XCMS/peaks.xcms.csv")}
* @param path
* @return
*/
public static XCMSPeaks create(Path path) throws IOException {
if (!Files.exists(path))
throw new IllegalArgumentException("File path for XCMS peaks does not exist.");
XCMSPeaks peaks = new XCMSPeaks();
BufferedReader reader = new BufferedReader(new FileReader(path.toFile()));
String[] header = {};
CSVFormat format = CSVFormat.newFormat(',')
.withHeader()
.withIgnoreSurroundingSpaces()
.withAllowMissingColumnNames()
.withQuoteMode(QuoteMode.NON_NUMERIC)
.withQuote('"');
CSVParser parser = new CSVParser(reader, format);
String val;
for (final CSVRecord r : parser) {
XCMSPeak p = new XCMSPeak();
val = r.get(0);
p.setRowNum(Integer.parseInt(val));
val = r.get("mz");
p.setMz(Double.parseDouble(val));
val = r.get("mzmin");
p.setMzMin(Double.parseDouble(val));
val = r.get("mzmax");
p.setMzMax(Double.parseDouble(val));
val = r.get("rt");
p.setRt(Double.parseDouble(val));
val = r.get("rtmin");
p.setRtMin(Double.parseDouble(val));
val = r.get("rtmax");
p.setRtMax(Double.parseDouble(val));
val = r.get("into");
p.setInto(Double.parseDouble(val));
val = r.get("maxo");
p.setMaxo(Double.parseDouble(val));
val = r.get("sample");
p.setSample(val);
// these are optional and are only added by further R package
// called 'CAMERA' processing
try {
val = getRecordValueForColName(r, "isotopes");
p.setIsotopes(val);
} catch (IllegalArgumentException e) {
}
try {
val = r.get("adduct");
p.setAdduct(val);
} catch (IllegalArgumentException e) {
p.setAdduct("");
}
try {
val = r.get("pcgroup");
p.setPcgroup(Integer.parseInt(val));
} catch (IllegalArgumentException e) {
}
peaks.add(p);
}
return peaks;
}
private static String getRecordValueForColName(CSVRecord r, String colName) {
try {
return r.get(colName);
} catch (IllegalArgumentException | IllegalStateException e) {
return null;
}
}
}
|
[
"dmitriy.avtonomov@gmail.com"
] |
dmitriy.avtonomov@gmail.com
|
3a79269715e60451e4504f6babd1fff69b2a9c5c
|
5e224ff6d555ee74e0fda6dfa9a645fb7de60989
|
/database/src/main/java/adila/db/miata5f3g_6014x.java
|
e6ee3e52d29398c9415d5dda79b281f48bc0a3f1
|
[
"MIT"
] |
permissive
|
karim/adila
|
8b0b6ba56d83f3f29f6354a2964377e6197761c4
|
00f262f6d5352b9d535ae54a2023e4a807449faa
|
refs/heads/master
| 2021-01-18T22:52:51.508129
| 2016-11-13T13:08:04
| 2016-11-13T13:08:04
| 45,054,909
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 212
|
java
|
// This file is automatically generated.
package adila.db;
/*
* Alcatel 6014X
*
* DEVICE: Miata_3G
* MODEL: 6014X
*/
final class miata5f3g_6014x {
public static final String DATA = "Alcatel|6014X|";
}
|
[
"keldeeb@gmail.com"
] |
keldeeb@gmail.com
|
5f97351fd33cc07119571b2ff043db1a5d622b52
|
1e425d8861c4016eb3e379c76f741ddb1d60ed8b
|
/mobi/mmdt/ott/view/stickermarket/C2592p.java
|
948c9cb4394ba874ff456919a7aa43e207d432e4
|
[] |
no_license
|
jayarambaratam/Soroush
|
302ebd5b172e511354969120c89f4e82cdb297bf
|
21e6b9a1ab415262db1f97a9a6e02a8827e01184
|
refs/heads/master
| 2021-01-17T22:50:54.415189
| 2016-02-04T10:57:55
| 2016-02-04T10:57:55
| 52,431,208
| 2
| 1
| null | 2016-02-24T09:42:40
| 2016-02-24T09:42:40
| null |
UTF-8
|
Java
| false
| false
| 542
|
java
|
package mobi.mmdt.ott.view.stickermarket;
import android.view.View;
import android.view.View.OnClickListener;
/* renamed from: mobi.mmdt.ott.view.stickermarket.p */
class C2592p implements OnClickListener {
final /* synthetic */ Runnable f8299a;
final /* synthetic */ StickerMarketActivity f8300b;
C2592p(StickerMarketActivity stickerMarketActivity, Runnable runnable) {
this.f8300b = stickerMarketActivity;
this.f8299a = runnable;
}
public void onClick(View view) {
this.f8299a.run();
}
}
|
[
"grayhat@kimo.com"
] |
grayhat@kimo.com
|
ff0a7c9cccbc7613ac8c28eed4182a5ce32e5730
|
faeedc6fd648f84bf09df85a2e845e60a458f483
|
/springboot-ElasticJob/src/main/java/com/wk/web/UserController.java
|
d99ce6826cbce9d301a2211dac2be6e91bb4e3cb
|
[] |
no_license
|
emperwang/springbootDemo
|
7be8fd376a9348730ccd36bca70d9e8b9857e551
|
6f13b4e1c2ca8a584779410c78d56dcc7f2188a4
|
refs/heads/master
| 2022-07-07T11:53:39.200753
| 2021-07-16T14:18:03
| 2021-07-16T14:18:03
| 156,047,245
| 1
| 0
| null | 2022-06-29T18:32:32
| 2018-11-04T03:52:35
|
CSS
|
UTF-8
|
Java
| false
| false
| 745
|
java
|
package com.wk.web;
import com.wk.config.ElasticParameter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class UserController {
@Autowired
private ElasticParameter parameter;
@GetMapping("listuser.do")
public String listUser(){
return "list All user";
}
@GetMapping("testparm.do")
public String testparm(){
parameter.getNamespace();
parameter.getZkList();
parameter.getShardingItemParamrters();
parameter.getStockCron();
parameter.getStockShardingTotalCount();
return "list All user";
}
}
|
[
"544094478@qq.com"
] |
544094478@qq.com
|
9114d76fb05364d38bbc4096961d5271c092fc28
|
9189f38ae91c61db7c3208163e79cba18274707b
|
/dive-in-java8/src/main/java/com/geekerstar/analysis/jdk8/methodreference/StudentComparator.java
|
a24c2d7ffbe1150eae422321ad7089c2da406bc2
|
[] |
no_license
|
geekerstar/java-tutorial-old
|
34c1e796ed35b8beeb7b206c1855fb1d35db7eff
|
1668b74f387136b38322b99a8ca02b05d8cf750a
|
refs/heads/master
| 2022-12-24T21:25:46.126990
| 2019-11-19T13:39:47
| 2019-11-19T13:39:47
| 203,005,941
| 0
| 0
| null | 2022-12-16T04:48:26
| 2019-08-18T13:22:25
|
Java
|
UTF-8
|
Java
| false
| false
| 387
|
java
|
package com.geekerstar.analysis.jdk8.methodreference;
public class StudentComparator {
public int compareStudentByScore(Student student1, Student student2) {
return student1.getScore() - student2.getScore();
}
public int compareStudentByName(Student student1, Student student2) {
return student1.getName().compareToIgnoreCase(student2.getName());
}
}
|
[
"247507792@qq.com"
] |
247507792@qq.com
|
3a17482fc6f39989517fa8717a33a363dfaa84cd
|
dd019ee07c8e907bc066970f927db19a47b902af
|
/app/src/main/java/qtc/project/app/ui/views/fragment/fragment_customer/acticles/news_detail/FragmentNewsDetailCustomerViewCallback.java
|
68657594bd7859602c5eabdb6c79728e85a861e3
|
[] |
no_license
|
dinhdeveloper/qtc_app
|
6b12f9177ecb1f504bd1e3de9c83a7ca7d1ea828
|
3c37a9f8ad51d3540bb9dca1e072a1d79745a483
|
refs/heads/master
| 2023-02-01T01:16:44.895766
| 2020-12-12T05:03:06
| 2020-12-12T05:03:06
| 320,128,082
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 168
|
java
|
package qtc.project.app.ui.views.fragment.fragment_customer.acticles.news_detail;
public interface FragmentNewsDetailCustomerViewCallback {
void onBackHeader();
}
|
[
"dinhtrancntt@gmail.com"
] |
dinhtrancntt@gmail.com
|
fc7db8a9a2500dc33ad0557e4ac140421a65b5a2
|
547f667fc96ff43cad7d6b4372d7cd095ad8cc38
|
/src/main/java/edu/cmu/cs/stage3/alice/authoringtool/datatransfer/TextureMapReferenceTransferable.java
|
15f90ea3c37bc3f29be95ab16441d875722d417a
|
[
"BSD-2-Clause"
] |
permissive
|
ericpauley/Alice
|
ca01da9cd90ebe743d392522e1e283d63bdaa184
|
a0b732c548f051f5c99dd90ec9410866ba902479
|
refs/heads/master
| 2020-06-05T03:15:51.421453
| 2012-03-20T13:50:16
| 2012-03-20T13:50:16
| 2,081,310
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,807
|
java
|
/*
* Copyright (c) 1999-2003, Carnegie Mellon University. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* 3. Products derived from the software may not be called "Alice",
* nor may "Alice" appear in their name, without prior written
* permission of Carnegie Mellon University.
*
* 4. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes software developed by Carnegie Mellon University"
*/
package edu.cmu.cs.stage3.alice.authoringtool.datatransfer;
/**
* @author Jason Pratt
*/
public class TextureMapReferenceTransferable extends ElementReferenceTransferable {
public final static java.awt.datatransfer.DataFlavor textureMapReferenceFlavor = new java.awt.datatransfer.DataFlavor(java.awt.datatransfer.DataFlavor.javaJVMLocalObjectMimeType + "; class=edu.cmu.cs.stage3.alice.core.TextureMap", "textureMapReferenceFlavor");
protected edu.cmu.cs.stage3.alice.core.TextureMap textureMap;
public TextureMapReferenceTransferable(edu.cmu.cs.stage3.alice.core.TextureMap textureMap) {
super(textureMap);
this.textureMap = textureMap;
flavors = new java.awt.datatransfer.DataFlavor[3];
flavors[0] = textureMapReferenceFlavor;
flavors[1] = ElementReferenceTransferable.elementReferenceFlavor;
flavors[2] = java.awt.datatransfer.DataFlavor.stringFlavor;
}
@Override
public Object getTransferData(java.awt.datatransfer.DataFlavor flavor) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException {
if (flavor.equals(textureMapReferenceFlavor)) {
return textureMap;
} else if (flavor.equals(ElementReferenceTransferable.elementReferenceFlavor)) {
return textureMap;
} else if (flavor.equals(java.awt.datatransfer.DataFlavor.stringFlavor)) {
return textureMap.toString();
} else {
throw new java.awt.datatransfer.UnsupportedFlavorException(flavor);
}
}
@Override
public ElementReferenceTransferable createCopy() {
if (element != null) {
edu.cmu.cs.stage3.alice.core.Element copy = element.createCopyNamed(element.name.getStringValue());
return new TextureMapReferenceTransferable((edu.cmu.cs.stage3.alice.core.TextureMap) copy);
} else {
return null;
}
}
}
|
[
"zonedabone@gmail.com"
] |
zonedabone@gmail.com
|
af8b28bf5ea6693ab572e32d250bee1c2dd61ade
|
34434692778a37be3f4507340f123676882388b5
|
/Patterns_SynthesisCommand.tests/src/sa_SynthesisCommand/tests/LinkableElementTest.java
|
aaf29f49706770ee8ef3f9d0b28d1ff57df20522
|
[] |
no_license
|
sahayapurv/MasterThesis---Pattern-Sirius
|
f0e2ecdc7ee6abf356ae16a985da05333d32b939
|
a896ca971b5f44732ffae553d7bdf70eb1373b17
|
refs/heads/master
| 2020-03-23T16:38:16.733959
| 2018-07-21T15:04:17
| 2018-07-21T15:04:17
| 141,821,111
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 777
|
java
|
/**
*/
package sa_SynthesisCommand.tests;
import sa_SynthesisCommand.LinkableElement;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Linkable Element</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
public abstract class LinkableElementTest extends BehaviouralElementTest {
/**
* Constructs a new Linkable Element test case with the given name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public LinkableElementTest(String name) {
super(name);
}
/**
* Returns the fixture for this Linkable Element test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected LinkableElement getFixture() {
return (LinkableElement)fixture;
}
} //LinkableElementTest
|
[
"sahayapurv@gmail.com"
] |
sahayapurv@gmail.com
|
cdc3c68d77ff3841a1e0c0973c8d866c74403672
|
a9939eeccdc6d011edfe7d0238a18c8e7d64fc6e
|
/Thread/src/pandy/test/sort/FastSort.java
|
2cc4c2fc4d59bf9f3416110741ffe7c0545e3ddf
|
[] |
no_license
|
PandyYang/Sort
|
08e88713edb73d931735327c4e5dd605beeb6665
|
7a9ba84e26de17db1f4e9b70185148e089178101
|
refs/heads/master
| 2020-04-22T19:32:09.634588
| 2019-02-14T02:08:17
| 2019-02-14T02:08:17
| 170,610,606
| 0
| 0
| null | null | null | null |
TIS-620
|
Java
| false
| false
| 850
|
java
|
package pandy.test.sort;
import java.util.Arrays;
/*
* ฟ์หูลละ๒
*/
public class FastSort {
public static void sort(int[] a,int low,int high) {
int start = low;
int end = high;
int key = a[low];
while(end>start) {
while(end>start&&a[end]>=key) {
end--;
}
if(a[end]<=key) {
int temp = a[end];
a[end] = a[start];
a[start] = temp;
}
while(end>start&&a[start]<=key) {
start++;
}
if(a[start]>=key) {
int temp = a[start];
a[start] = a[end];
a[end] = temp;
}
if(start>low) sort(a,low,start-1);
if(end<high) sort(a,end+1,high);
}
}
public static void main(String[] args) {
int a[] = {4545,45454,555,656565,5656562,22,2654,56456,4565,6};
FastSort.sort(a, 0, a.length-1);
System.out.println(Arrays.toString(a));
}
}
|
[
"fry227662112@gmail.com"
] |
fry227662112@gmail.com
|
ea901a7d1c08688644d21a4046dd57490b581266
|
5d7e4135a19a3d05a8fd5b7beff19c0f5cb7d738
|
/app/src/main/java/com/qlckh/purifier/http/observer/CommonObserver.java
|
ccd69f37a687158a7514867be098228f3ee12bc8
|
[] |
no_license
|
AndyAls/baojieyuan
|
56765fb2c4b228137303b311fbe228c8218eca37
|
ce5bb72dd0b74a504acc02e982a768f5fa267be7
|
refs/heads/master
| 2020-03-19T05:47:54.289337
| 2019-09-18T06:28:52
| 2019-09-18T06:28:52
| 135,962,800
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,444
|
java
|
package com.qlckh.purifier.http.observer;
import android.app.Dialog;
import com.qlckh.purifier.http.RxHttpUtils;
import com.qlckh.purifier.http.base.BaseObserver;
import com.qlckh.purifier.http.utils.ToastUtils;
import io.reactivex.disposables.Disposable;
/**
* @author Andy
* @date 2018/5/15 18:47
* @link {http://blog.csdn.net/andy_l1}
* Desc: CommonObserver.java
*/
public abstract class CommonObserver<T> extends BaseObserver<T> {
private Dialog mProgressDialog;
public CommonObserver() {
}
public CommonObserver(Dialog progressDialog) {
mProgressDialog = progressDialog;
}
/**
* 失败回调
*
* @param errorMsg
*/
protected abstract void onError(String errorMsg);
/**
* 成功回调
*
* @param t
*/
protected abstract void onSuccess(T t);
@Override
public void doOnSubscribe(Disposable d) {
RxHttpUtils.addDisposable(d);
}
@Override
public void doOnError(String errorMsg) {
if (mProgressDialog != null) {
mProgressDialog.dismiss();
}
if (!isHideToast()) {
ToastUtils.showToast(errorMsg);
}
onError(errorMsg);
}
@Override
public void doOnNext(T t) {
onSuccess(t);
}
@Override
public void doOnCompleted() {
if (mProgressDialog != null) {
mProgressDialog.dismiss();
}
}
}
|
[
"andy_als@163.com"
] |
andy_als@163.com
|
6ba543e0f9a1bda933d275148b723872ca25eb8c
|
fc4e0c9d846bddb5768fde39ee07284a668a1e75
|
/0508_MostFreqSubtreeSum/Solution.java
|
3f75849ae9cb60a4144a4efea5d628a36efb0540
|
[] |
no_license
|
chialin-liu/Leetcode
|
d9f9ce94ac8cc3bdb71145d9fc59d7c2311e4ef7
|
bf5ee75fe266353ce574d8aa38973f325b239079
|
refs/heads/master
| 2020-06-19T09:48:08.036214
| 2020-03-14T09:55:00
| 2020-03-14T09:55:00
| 196,667,938
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,103
|
java
|
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
class Solution {
int max;
Map<Integer, Integer> map;
public int[] findFrequentTreeSum(TreeNode root) {
max = 0;
map = new HashMap<>();
if(root == null) return new int[]{};
helper(root);
List<Integer> list = new ArrayList<>();
for(int key: map.keySet()){
if(map.get(key) == max){
list.add(key);
}
}
int [] res = new int [list.size()];
for(int i = 0; i < list.size(); i++){
res[i] = list.get(i);
}
return res;
}
public int helper(TreeNode root){
if(root == null) return 0;
int left = helper(root.left);
int right = helper(root.right);
int sum = left + right + root.val;
map.put(sum, map.getOrDefault(sum, 0) + 1);
int count = map.get(sum);
max = Math.max(count, max);
return sum;
}
}
|
[
"charles.ee96@g2.nctu.edu.tw"
] |
charles.ee96@g2.nctu.edu.tw
|
02e273947604d00bec4bbfa77fb039352942e6f6
|
ae82d54d66733800d74da273ef1c714f5275d5f5
|
/Assignment1/Oddloop.java
|
8f821a033b98a50714eed99b392c23099185edac
|
[] |
no_license
|
renzoportiz/csc201
|
507425655153f2acb610eb72aa0eca0dbe28bce7
|
023aec6f4c7f25417f38c74cb2dcdc4e2ddf4b85
|
refs/heads/master
| 2021-09-06T21:40:44.320596
| 2018-02-12T01:11:37
| 2018-02-12T01:11:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 242
|
java
|
public class Oddloop{
public static void main(String [] args){
int i=1;// the dividend
int t=2;// the divisor
for(i=1; i<=100; i++){
if (i%t == 0){
System.out.println(" ");
}
else{
System.out.print(i);
}
}
}
}
|
[
"you@example.com"
] |
you@example.com
|
17e5c73468fbf9277f4ba56cb1351065f601baff
|
40240a672f5c2454e6ed354eba9fdb897aa1b101
|
/jy-admin-biz/src/main/java/org/loxf/jyadmin/biz/thread/Task.java
|
6d85d7c87c147575927aeec08a7c70e50597c5b8
|
[] |
no_license
|
loxf/jyadmin
|
805a79120e985cacd01fb52fadea09638f6fffc0
|
cd1533de81666dc42e0d449b1e9f3e7bad3f2550
|
refs/heads/master
| 2018-09-28T01:27:34.620200
| 2018-02-26T14:30:49
| 2018-02-26T14:30:49
| 117,438,370
| 0
| 0
| null | 2018-02-26T14:30:50
| 2018-01-14T14:41:37
|
Java
|
UTF-8
|
Java
| false
| false
| 1,596
|
java
|
package org.loxf.jyadmin.biz.thread;
import org.loxf.jyadmin.base.util.IdGenerator;
import org.loxf.jyadmin.base.util.JedisUtil;
import org.loxf.jyadmin.base.util.SpringApplicationContextUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.TimerTask;
/**
* Created by luohj on 2017/4/28.
*/
public class Task extends TimerTask {
private Logger logger = LoggerFactory.getLogger(Task.class);
private JedisUtil jedisUtil;
private String LOCK;// 锁名
private int expireLockMSecd = 60000;// 锁失效时间
private int lockTimeout;//获取锁等待timeout的时间
private Runnable runnable;// 执行逻辑
private String name;
/**
* @param lock 锁名
* @param expireLockMSecd 锁失效时间
* @param lockTimeout 获取锁等待timeout的时间
* @param runnable 执行逻辑
*/
public Task(String lock, int expireLockMSecd, int lockTimeout, Runnable runnable) {
this.jedisUtil = SpringApplicationContextUtil.getBean(JedisUtil.class);
this.LOCK = lock;
this.expireLockMSecd = expireLockMSecd;
this.lockTimeout = lockTimeout;
this.runnable = runnable;
this.name = IdGenerator.generate("JOB-");
logger.debug(LOCK + "[" + name + "]" + "成功启动---------------------");
}
public void run() {
logger.debug(LOCK + "[" + name + "]" + "运行---------------------");
jedisUtil.lock(LOCK, name, expireLockMSecd, lockTimeout, runnable);
logger.debug(LOCK + "[" + name + "]" + "运行完---------------------");
}
}
|
[
"myself35335@163.com"
] |
myself35335@163.com
|
7d964d1e1382677b901b242f8aa09c09435660d4
|
3442f97ab7168b400a772627cbbf4599b4ffae0c
|
/src/test/java/com/zagniotov/puzzles/strings/IsomorphicStringTake1Test.java
|
ceef7753812a0de0103039f17e4a743a2c80069d
|
[] |
no_license
|
etsangsplk/algorithmic-puzzles
|
ea8b5fa33181fab04c4ea9bd772ed7103b6a6069
|
fee53479b6c4368f16ac5b885a4f8080dbcc752a
|
refs/heads/master
| 2020-04-08T10:09:20.947421
| 2017-06-03T14:36:43
| 2017-11-24T10:54:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 780
|
java
|
package com.zagniotov.puzzles.strings;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class IsomorphicStringTake1Test {
@Test
public void testIsIsomorphic() throws Exception {
IsomorphicStringTake1 isomorphicStringTake1 = new IsomorphicStringTake1();
assertTrue(isomorphicStringTake1.isIsomorphic("egg", "add"));
assertTrue(isomorphicStringTake1.isIsomorphic("paper", "title"));
assertFalse(isomorphicStringTake1.isIsomorphic("foo", "bar"));
assertFalse(isomorphicStringTake1.isIsomorphic("aba", "baa"));
assertFalse(isomorphicStringTake1.isIsomorphic("abba", "abab"));
assertFalse(isomorphicStringTake1.isIsomorphic("ab", "aa"));
}
}
|
[
"azagniotov@gmail.com"
] |
azagniotov@gmail.com
|
d04b8ae6b0315ebd7898332e10fa10a83b8a7e3d
|
377e5e05fb9c6c8ed90ad9980565c00605f2542b
|
/.gitignore/bin/ext-commerce/commerceservices/src/de/hybris/platform/commerceservices/jalo/solrsearch/config/SolrSort.java
|
d49691558fdf57a6d3c7e02576653381ed7248e1
|
[] |
no_license
|
automaticinfotech/HybrisProject
|
c22b13db7863e1e80ccc29774f43e5c32e41e519
|
fc12e2890c569e45b97974d2f20a8cbe92b6d97f
|
refs/heads/master
| 2021-07-20T18:41:04.727081
| 2017-10-30T13:24:11
| 2017-10-30T13:24:11
| 108,957,448
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 552
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 SAP SE or an SAP affiliate company.
* All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with SAP.
*
*
*/
package de.hybris.platform.commerceservices.jalo.solrsearch.config;
public class SolrSort extends GeneratedSolrSort
{
// Deliberately empty class
}
|
[
"santosh.kshirsagar@automaticinfotech.com"
] |
santosh.kshirsagar@automaticinfotech.com
|
5eec01a0703e754a5ee605ffcb84e64c8b183a8d
|
eaa0c56adefc1c9c9d9e810274600a59b1813971
|
/app/src/main/java/in/semicolonindia/schoolcrm/activities/ForgotPasswordActivity.java
|
77cc43797ea01b552d85eb877521ee3db59f9f91
|
[] |
no_license
|
ranjansingh1991/School_Merge_old
|
1cd75bc0f1eb6171504497adaf0cc6c193d63662
|
ab2e1bc9ec87788c0aab7783f62690dc1213a388
|
refs/heads/master
| 2020-03-28T20:32:33.976298
| 2018-09-17T06:46:33
| 2018-09-17T06:46:33
| 149,080,579
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,616
|
java
|
package in.semicolonindia.schoolcrm.activities;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
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 org.json.JSONException;
import org.json.JSONObject;
import java.util.HashMap;
import java.util.Map;
import in.semicolonindia.schoolcrm.R;
import static in.semicolonindia.schoolcrm.rest.BaseUrl.sForgotPasswordURL;
@SuppressWarnings("ALL")
public class ForgotPasswordActivity extends AppCompatActivity
implements View.OnClickListener {
EditText etEmail;
Button btnContinue;
private String email;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.student_activity_forgot_password);
final TextView tvAppName = (TextView) findViewById(R.id.tvAppName);
etEmail = (EditText) findViewById(R.id.etEmail);
btnContinue = (Button) findViewById(R.id.btnContinue);
final TextView tvForgetPwdMsg = (TextView) findViewById(R.id.tvForgetPwdMsg);
Typeface appFontBold = Typeface.createFromAsset(getAssets(), "fonts/montserrat_bold.ttf");
Typeface appFontRegular = Typeface.createFromAsset(getAssets(), "fonts/montserrat_regular.ttf");
Typeface appFontLight = Typeface.createFromAsset(getAssets(), "fonts/montserrat_light.ttf");
tvAppName.setTypeface(appFontBold);
etEmail.setTypeface(appFontRegular);
btnContinue.setTypeface(appFontRegular);
tvForgetPwdMsg.setTypeface(appFontLight);
btnContinue.setOnClickListener(this);
}
private void recoverPassword() {
email = etEmail.getText().toString().trim();
StringRequest stringRequest = new StringRequest(Request.Method.POST, sForgotPasswordURL,
new Response.Listener<String>() {
@Override
public void onResponse(String response) {
try {
JSONObject jsonObject = new JSONObject(response);
if (jsonObject.getString("status").equalsIgnoreCase("true")) {
Toast.makeText(ForgotPasswordActivity.this, "Your new password is sent to your email.", Toast.LENGTH_LONG).show();
finish();
} else {
Toast.makeText(ForgotPasswordActivity.this, "Oops! Something went wrong, please try again.", Toast.LENGTH_LONG).show();
}
} catch (JSONException e) {
e.printStackTrace();
}
}
},
new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
Toast.makeText(ForgotPasswordActivity.this, "Oops! Something went wrong, please try again.", Toast.LENGTH_LONG).show();
}
}) {
@Override
protected Map<String, String> getParams() throws AuthFailureError {
Map<String, String> map = new HashMap<String, String>();
map.put("email", email);
map.put("authenticate", "false");
return map;
}
};
RequestQueue requestQueue = Volley.newRequestQueue(this);
requestQueue.add(stringRequest);
}
@Override
public void onClick(View v) {
if (v == btnContinue) {
if (etEmail.getText().length() < 1) {
Toast.makeText(ForgotPasswordActivity.this, "Email id can not be blank", Toast.LENGTH_SHORT).show();
} else {
recoverPassword();
}
}
}
@Override
protected void onDestroy() {
super.onDestroy();
overridePendingTransition(R.anim.slide_out_bottom, R.anim.slide_in_bottom);
}
@Override
public void onBackPressed() {
Intent intent = new Intent(ForgotPasswordActivity.this, LoginActivity.class);
startActivity(intent);
}
}
|
[
"ranjansingh1991"
] |
ranjansingh1991
|
040cbc83f2b4275eb47a9b6121006450ad2ea14d
|
4d97a8ec832633b154a03049d17f8b58233cbc5d
|
/Closure/107/Closure/evosuite-branch/0/com/google/javascript/jscomp/CommandLineRunnerEvoSuite_branch_Test.java
|
3233482d52272f65855f4859ed944ff0b110d708
|
[] |
no_license
|
4open-science/evosuite-defects4j
|
be2d172a5ce11e0de5f1272a8d00d2e1a2e5f756
|
ca7d316883a38177c9066e0290e6dcaa8b5ebd77
|
refs/heads/master
| 2021-06-16T18:43:29.227993
| 2017-06-07T10:37:26
| 2017-06-07T10:37:26
| 93,623,570
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,073
|
java
|
/*
* This file was automatically generated by EvoSuite
* Thu Dec 11 19:24:34 GMT 2014
*/
package com.google.javascript.jscomp;
import static org.junit.Assert.*;
import org.junit.Test;
import com.google.javascript.jscomp.CheckEventfulObjectDisposal;
import com.google.javascript.jscomp.CommandLineRunner;
import com.google.javascript.jscomp.Compiler;
import com.google.javascript.jscomp.CompilerOptions;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.EvoSuiteFile;
import org.evosuite.runtime.System;
import org.evosuite.runtime.mock.java.io.MockPrintStream;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, resetStaticState = true)
public class CommandLineRunnerEvoSuite_branch_Test extends CommandLineRunnerEvoSuite_branch_Test_scaffolding {
@Test
public void test0() throws Throwable {
String string0 = "-Ses5.js";
String[] stringArray0 = new String[1];
stringArray0[0] = string0;
assertNotNull(stringArray0[0]);
MockPrintStream mockPrintStream0 = new MockPrintStream(stringArray0[0]);
assertNotNull(mockPrintStream0);
CommandLineRunner commandLineRunner0 = new CommandLineRunner(stringArray0, mockPrintStream0, mockPrintStream0);
assertNotNull(commandLineRunner0);
assertEquals(false, commandLineRunner0.shouldRunCompiler());
// Undeclared exception!
try {
commandLineRunner0.run();
fail("Expecting exception: System.SystemExitException");
} catch(System.SystemExitException e) {
//
// no message in exception (getMessage() returned null)
//
}
}
@Test
public void test1() throws Throwable {
String[] stringArray0 = new String[1];
String string0 = "JSC_DEBUGGER_STAT[MENT_PRaS@NT";
stringArray0[0] = string0;
assertNotNull(stringArray0[0]);
CommandLineRunner commandLineRunner0 = new CommandLineRunner(stringArray0);
assertNotNull(commandLineRunner0);
assertEquals(true, commandLineRunner0.shouldRunCompiler());
CompilerOptions compilerOptions0 = commandLineRunner0.createOptions();
assertNotNull(compilerOptions0);
assertEquals(true, commandLineRunner0.shouldRunCompiler());
assertEquals(false, compilerOptions0.shouldColorizeErrorOutput());
assertEquals(false, compilerOptions0.getInstrumentMemoryAllocations());
assertEquals(false, compilerOptions0.assumeClosuresOnlyCaptureReferences());
assertNull(compilerOptions0.getLanguageOut());
assertEquals(false, compilerOptions0.assumeStrictThis());
assertEquals(CompilerOptions.TracerMode.OFF, compilerOptions0.getTracerMode());
assertEquals(CompilerOptions.TweakProcessing.OFF, compilerOptions0.getTweakProcessing());
assertEquals(false, compilerOptions0.isRemoveUnusedClassProperties());
assertEquals(false, compilerOptions0.isExternExportsEnabled());
assertEquals(false, compilerOptions0.getCheckDeterminism());
assertEquals(CheckEventfulObjectDisposal.DisposalCheckingPolicy.OFF, compilerOptions0.getCheckEventfulObjectDisposalPolicy());
assertEquals(false, compilerOptions0.isDisambiguatePrivateProperties());
assertEquals(false, compilerOptions0.getInferTypes());
assertEquals(CompilerOptions.LanguageMode.ECMASCRIPT3, compilerOptions0.getLanguageIn());
assertFalse(compilerOptions0.recordFunctionInformation);
assertTrue(compilerOptions0.labelRenaming);
assertFalse(compilerOptions0.collapseProperties);
assertTrue(compilerOptions0.optimizeArgumentsArray);
assertFalse(compilerOptions0.exportTestFunctions);
assertTrue(compilerOptions0.checkSuspiciousCode);
assertFalse(compilerOptions0.computeFunctionSideEffects);
assertFalse(compilerOptions0.instrumentForCoverage);
assertTrue(compilerOptions0.removeDeadCode);
assertFalse(compilerOptions0.smartNameRemoval);
assertFalse(compilerOptions0.lineBreak);
assertFalse(compilerOptions0.markAsCompiled);
assertFalse(compilerOptions0.gatherCssNames);
assertFalse(compilerOptions0.inlineFunctions);
assertFalse(compilerOptions0.generateExports);
assertFalse(compilerOptions0.aliasAllStrings);
assertTrue(compilerOptions0.removeUnusedLocalVars);
assertFalse(compilerOptions0.inlineGetters);
assertFalse(compilerOptions0.inlineVariables);
assertFalse(compilerOptions0.optimizeCalls);
assertFalse(compilerOptions0.removeUnusedClassProperties);
assertTrue(compilerOptions0.foldConstants);
assertFalse(compilerOptions0.crossModuleCodeMotion);
assertFalse(compilerOptions0.aliasExternals);
assertFalse(compilerOptions0.removeUnusedPrototypePropertiesInExterns);
assertFalse(compilerOptions0.removeTryCatchFinally);
assertFalse(compilerOptions0.ambiguateProperties);
assertFalse(compilerOptions0.devirtualizePrototypeMethods);
assertFalse(compilerOptions0.checkSymbols);
assertFalse(compilerOptions0.removeUnusedVars);
assertTrue(compilerOptions0.coalesceVariableNames);
assertFalse(compilerOptions0.inlineConstantVars);
assertFalse(compilerOptions0.generatePseudoNames);
assertFalse(compilerOptions0.extractPrototypeMemberDeclarations);
assertFalse(compilerOptions0.reserveRawExports);
assertFalse(compilerOptions0.optimizeParameters);
assertTrue(compilerOptions0.inlineLocalFunctions);
assertFalse(compilerOptions0.preferLineBreakAtEndOfFile);
assertTrue(compilerOptions0.flowSensitiveInlineVariables);
assertTrue(compilerOptions0.deadAssignmentElimination);
assertFalse(compilerOptions0.crossModuleMethodMotion);
assertFalse(compilerOptions0.moveFunctionDeclarations);
assertTrue(compilerOptions0.closurePass);
assertFalse(compilerOptions0.disambiguateProperties);
assertFalse(compilerOptions0.optimizeReturns);
assertFalse(compilerOptions0.markNoSideEffectCalls);
assertTrue(compilerOptions0.convertToDottedProperties);
assertFalse(compilerOptions0.removeUnusedPrototypeProperties);
assertFalse(compilerOptions0.checkTypes);
assertTrue(compilerOptions0.collapseVariableDeclarations);
assertFalse(compilerOptions0.printInputDelimiter);
assertFalse(compilerOptions0.prettyPrint);
assertFalse(compilerOptions0.rewriteFunctionExpressions);
assertFalse(compilerOptions0.collapseAnonymousFunctions);
assertFalse(compilerOptions0.jqueryPass);
assertTrue(compilerOptions0.checkControlStructures);
assertFalse(compilerOptions0.aliasKeywords);
assertFalse(compilerOptions0.preserveGoogRequires);
assertFalse(compilerOptions0.ideMode);
}
@Test
public void test2() throws Throwable {
String[] stringArray0 = new String[1];
String string0 = "zaU%}(:5S{ )[Cm4";
stringArray0[0] = string0;
assertNotNull(stringArray0[0]);
CommandLineRunner commandLineRunner0 = new CommandLineRunner(stringArray0);
assertNotNull(commandLineRunner0);
assertEquals(true, commandLineRunner0.shouldRunCompiler());
Compiler compiler0 = commandLineRunner0.createCompiler();
assertNotNull(compiler0);
assertEquals(true, commandLineRunner0.shouldRunCompiler());
assertEquals(0.0, compiler0.getProgress(), 0.01D);
}
@Test
public void test3() throws Throwable {
String[] stringArray0 = new String[1];
String string0 = "6eRb$<L-9~reg-S0s";
stringArray0[0] = string0;
assertNotNull(stringArray0[0]);
CommandLineRunner commandLineRunner0 = new CommandLineRunner(stringArray0);
assertNotNull(commandLineRunner0);
assertEquals(true, commandLineRunner0.shouldRunCompiler());
boolean boolean0 = commandLineRunner0.shouldRunCompiler();
assertTrue(boolean0);
assertEquals(true, commandLineRunner0.shouldRunCompiler());
}
}
|
[
"martin.monperrus@gnieh.org"
] |
martin.monperrus@gnieh.org
|
ac44663462fd3d2225e5acc46a8486427cf64a54
|
cacfd17e66710edafe9d93d70e3415ae2a1d856d
|
/spring-app/src/main/java/victor/training/spring/security/vulnerability/DataExposure.java
|
c7f93ea0d7f15ecd0046b36e588144dedc92a446
|
[] |
permissive
|
victorrentea/spring
|
eac360e766ef95902a6cb661464e37d3d2d653aa
|
eb0f2fb5acdc2d9118f721f8ecf782c02a7db81a
|
refs/heads/master
| 2023-09-04T07:01:05.836393
| 2023-08-28T04:41:22
| 2023-08-28T04:41:22
| 192,672,369
| 25
| 13
|
MIT
| 2022-03-03T14:58:48
| 2019-06-19T06:29:40
|
Java
|
UTF-8
|
Java
| false
| false
| 3,018
|
java
|
package victor.training.spring.security.vulnerability;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import lombok.Value;
import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.event.EventListener;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import javax.persistence.*;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import static java.util.stream.Collectors.toList;
import static javax.persistence.CascadeType.PERSIST;
@RequiredArgsConstructor
@RestController
public class DataExposure {
private final BlogArticleRepo repo;
@Value
public static class BlogListDto {
long id;
String title;
public BlogListDto(BlogArticle entity) {
id = entity.getId();
title = entity.getTitle();
}
}
@GetMapping("api/vulnerability/articles")
public List<BlogListDto> getAllArticles() {
return repo.findAll().stream().map(BlogListDto::new).collect(toList());
}
@GetMapping("api/vulnerability/articles/{id}")
public BlogArticle article(@PathVariable Long id) {
return repo.findById(id).orElseThrow();
}
//<editor-fold desc="Initial Data">
@Transactional
@EventListener(ApplicationStartedEvent.class)
public void insertData() {
for (int i = 0; i < 4; i++) {
repo.save(new BlogArticle()
.setTitle("Article "+i)
.setText("Inspect the JSON response used to fill this page - article #"+i)
.setDate(LocalDate.now().minusDays(2))
.setComments(List.of(
new BlogArticleComment("Lame!",new BlogUser("King Julian", "kj@madagascar.com")),
new BlogArticleComment("Wow",new BlogUser("Julie", "julie.private@gmail.com"))
))
);
}
}
//</editor-fold>
}
@Data
@Entity
class BlogArticle {
@Id
@GeneratedValue
private Long id;
private String title;
private String text;
private LocalDate date;
@OneToMany(cascade = PERSIST)
private List<BlogArticleComment> comments = new ArrayList<>();
}
@Entity
@Data
class BlogArticleComment {
@Id
@GeneratedValue
private Long id;
private String text;
@ManyToOne(cascade = PERSIST)
private BlogUser author;
protected BlogArticleComment() {} // for Hibernate only
public BlogArticleComment(String text, BlogUser author) {
this.text = text;
this.author = author;
}
}
@Data
@Entity
class BlogUser {
@Id
@GeneratedValue
private Long id;
private String name;
private String email;
protected BlogUser() {} // for Hibernate only
public BlogUser(String name, String email) {
this.name = name;
this.email = email;
}
}
interface BlogArticleRepo extends JpaRepository<BlogArticle, Long> {
}
|
[
"victorrentea@gmail.com"
] |
victorrentea@gmail.com
|
b28e8aff4f897e6bbffcda3039caeb22ee404283
|
01941a1c6934940c96292ceb51b5756549725d54
|
/src/test/java/com/radar/RonnyTomApplicationTests.java
|
7a1a6339b07bdcad6f62f3bee3922faa8ba65d6b
|
[] |
no_license
|
tomskradski/ReferralGenie
|
5721d734e44a244315f5f9772006f04cce78a012
|
b96d0d1c943da2f23459681915c256025749b9c8
|
refs/heads/master
| 2022-03-02T23:45:52.716244
| 2019-09-27T13:48:08
| 2019-09-27T13:48:08
| 210,730,766
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 328
|
java
|
package com.radar;
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 RonnyTomApplicationTests {
@Test
public void contextLoads() {
}
}
|
[
"tkskradski@gmail.com"
] |
tkskradski@gmail.com
|
e7c3252b3df858b30adf89e901efd2512f01d4e7
|
b312ba97eec1f108ef8584c5e88ee6bc4675d57f
|
/新建文件夹/copy/src/copy/Copy.java
|
9201f72c094acc4dc18142573afac3cf391ca8aa
|
[] |
no_license
|
Beteasy/JAVA-GRADE2SEMESTER2-
|
5fb873ae311650840aba2e8ef67e8d373fba3697
|
38cdaf6a53c9b866dbc8bd04113fe5624b00bd20
|
refs/heads/master
| 2020-06-20T16:46:21.181792
| 2019-07-16T11:43:49
| 2019-07-16T11:43:49
| 197,182,089
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 578
|
java
|
package copy;
import java.util.Arrays;
public class Copy {
public static void main(String[] argv) {
int intArray[] = new int[] {10,20,30,40,50,60,70,80,90,100};
int intArray2[];
intArray2 = Arrays.copyOf(intArray,5);
System.out.println(Arrays.toString(intArray2));
intArray2 = Arrays.copyOf(intArray,10);
System.out.println(Arrays.toString(intArray2));
intArray2 = Arrays.copyOf(intArray, 15);
System.out.println(Arrays.toString(intArray2));
intArray2 = Arrays.copyOfRange(intArray, 3, 8);
System.out.println(Arrays.toString(intArray2));
}
}
|
[
"1402308343@qq.com"
] |
1402308343@qq.com
|
5e983909e0398b0286547617915d9dca6885ca6a
|
9d32980f5989cd4c55cea498af5d6a413e08b7a2
|
/A5_8_1_0/src/main/java/sun/misc/FpUtils.java
|
290541887ccc5e41aea209f1c09290b92e0156a6
|
[] |
no_license
|
liuhaosource/OppoFramework
|
e7cc3bcd16958f809eec624b9921043cde30c831
|
ebe39acabf5eae49f5f991c5ce677d62b683f1b6
|
refs/heads/master
| 2023-06-03T23:06:17.572407
| 2020-11-30T08:40:07
| 2020-11-30T08:40:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,573
|
java
|
package sun.misc;
public class FpUtils {
/* renamed from: -assertionsDisabled */
static final /* synthetic */ boolean f251-assertionsDisabled = (FpUtils.class.desiredAssertionStatus() ^ 1);
private FpUtils() {
}
@Deprecated
public static int getExponent(double d) {
return Math.getExponent(d);
}
@Deprecated
public static int getExponent(float f) {
return Math.getExponent(f);
}
@Deprecated
public static double rawCopySign(double magnitude, double sign) {
return Math.copySign(magnitude, sign);
}
@Deprecated
public static float rawCopySign(float magnitude, float sign) {
return Math.copySign(magnitude, sign);
}
@Deprecated
public static boolean isFinite(double d) {
return Double.isFinite(d);
}
@Deprecated
public static boolean isFinite(float f) {
return Float.isFinite(f);
}
public static boolean isInfinite(double d) {
return Double.isInfinite(d);
}
public static boolean isInfinite(float f) {
return Float.isInfinite(f);
}
public static boolean isNaN(double d) {
return Double.isNaN(d);
}
public static boolean isNaN(float f) {
return Float.isNaN(f);
}
public static boolean isUnordered(double arg1, double arg2) {
return !isNaN(arg1) ? isNaN(arg2) : true;
}
public static boolean isUnordered(float arg1, float arg2) {
return !isNaN(arg1) ? isNaN(arg2) : true;
}
public static int ilogb(double d) {
int exponent = getExponent(d);
switch (exponent) {
case -1023:
if (d == 0.0d) {
return -268435456;
}
long transducer = Double.doubleToRawLongBits(d) & DoubleConsts.SIGNIF_BIT_MASK;
if (f251-assertionsDisabled || transducer != 0) {
while (transducer < 4503599627370496L) {
transducer *= 2;
exponent--;
}
exponent++;
if (f251-assertionsDisabled || (exponent >= DoubleConsts.MIN_SUB_EXPONENT && exponent < -1022)) {
return exponent;
}
throw new AssertionError();
}
throw new AssertionError();
case 1024:
if (isNaN(d)) {
return 1073741824;
}
return 268435456;
default:
if (f251-assertionsDisabled || (exponent >= -1022 && exponent <= 1023)) {
return exponent;
}
throw new AssertionError();
}
}
public static int ilogb(float f) {
int exponent = getExponent(f);
switch (exponent) {
case -127:
if (f == 0.0f) {
return -268435456;
}
int transducer = Float.floatToRawIntBits(f) & FloatConsts.SIGNIF_BIT_MASK;
if (f251-assertionsDisabled || transducer != 0) {
while (transducer < 8388608) {
transducer *= 2;
exponent--;
}
exponent++;
if (f251-assertionsDisabled || (exponent >= FloatConsts.MIN_SUB_EXPONENT && exponent < -126)) {
return exponent;
}
throw new AssertionError();
}
throw new AssertionError();
case 128:
if (isNaN(f)) {
return 1073741824;
}
return 268435456;
default:
if (f251-assertionsDisabled || (exponent >= -126 && exponent <= 127)) {
return exponent;
}
throw new AssertionError();
}
}
@Deprecated
public static double scalb(double d, int scale_factor) {
return Math.scalb(d, scale_factor);
}
@Deprecated
public static float scalb(float f, int scale_factor) {
return Math.scalb(f, scale_factor);
}
@Deprecated
public static double nextAfter(double start, double direction) {
return Math.nextAfter(start, direction);
}
@Deprecated
public static float nextAfter(float start, double direction) {
return Math.nextAfter(start, direction);
}
@Deprecated
public static double nextUp(double d) {
return Math.nextUp(d);
}
@Deprecated
public static float nextUp(float f) {
return Math.nextUp(f);
}
@Deprecated
public static double nextDown(double d) {
return Math.nextDown(d);
}
@Deprecated
public static double nextDown(float f) {
return (double) Math.nextDown(f);
}
@Deprecated
public static double copySign(double magnitude, double sign) {
return StrictMath.copySign(magnitude, sign);
}
@Deprecated
public static float copySign(float magnitude, float sign) {
return StrictMath.copySign(magnitude, sign);
}
@Deprecated
public static double ulp(double d) {
return Math.ulp(d);
}
@Deprecated
public static float ulp(float f) {
return Math.ulp(f);
}
@Deprecated
public static double signum(double d) {
return Math.signum(d);
}
@Deprecated
public static float signum(float f) {
return Math.signum(f);
}
}
|
[
"dstmath@163.com"
] |
dstmath@163.com
|
a8c7bc911a746a756f273c73328bd4f182ec9e05
|
533c1e3891dfa992213a13e51543aad11580cc91
|
/app/src/main/java/com/artemissoftware/afroditedating/util/Users.java
|
daaaf21a009a10f9f7f5958e6a75ab4cf7ac1bc2
|
[] |
no_license
|
ArtemisSoftware/Afrodite-Dating
|
82787fa01fd628a265fbe06199cb42a3a1efb72c
|
6719aa2e65eba127d9bb27707be9d08510f4a7bf
|
refs/heads/master
| 2022-06-06T16:20:25.549217
| 2020-05-01T19:46:01
| 2020-05-01T19:46:01
| 258,867,606
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,167
|
java
|
package com.artemissoftware.afroditedating.util;
import android.net.Uri;
import com.artemissoftware.afroditedating.R;
import com.artemissoftware.afroditedating.models.User;
public class Users {
public User[] USERS = {
//,
Artemis,
Clotho,
Cerberus,
Achilles,
Minotaur,
Centaur,
Persephone,
Poseidon,
Medusa,
Demeter,
Hermes,
Apolo,
Athena,
Catoblepas,
/*
James, Elizabeth, Robert,
Carol, Jennifer, Susan,
Michael, William, Karen,
Joseph, Nancy, Charles,
Matthew, Sarah, Jessica,
Donald, Mary, Paul,
Patricia, Linda, Steve
*/
};
public static final User Apolo = new User(Uri.parse("android.resource://com.artemissoftware.afroditedating/" + R.drawable.apolo).toString(),
"Apolo", "Male","Female", "Looking");
public static final User Hermes = new User(Uri.parse("android.resource://com.artemissoftware.afroditedating/" + R.drawable.hermes).toString(),
"Hermes", "Male","Male", "Not Looking");
public static final User Poseidon = new User(Uri.parse("android.resource://com.artemissoftware.afroditedating/" + R.drawable.poseidon).toString(),
"Poseidon", "Male","Female", "Looking");
public static final User Achilles = new User(Uri.parse("android.resource://com.artemissoftware.afroditedating/" + R.drawable.achilles).toString(),
"Achilles", "Male","Male / Female", "Looking");
public static final User Athena = new User(Uri.parse("android.resource://com.artemissoftware.afroditedating/" + R.drawable.athena).toString(),
"Athena", "Female","Male", "Looking");
public static final User Demeter = new User(Uri.parse("android.resource://com.artemissoftware.afroditedating/" + R.drawable.demeter).toString(),
"Demeter", "Female","Female", "Looking");
public static final User Persephone = new User(Uri.parse("android.resource://com.artemissoftware.afroditedating/" + R.drawable.persephone).toString(),
"Persephone", "Female","Male", "Looking");
public static final User Artemis = new User(Uri.parse("android.resource://com.artemissoftware.afroditedating/" + R.drawable.artemis).toString(),
"Artemis", "Female","Male", "Looking");
public static final User Clotho = new User(Uri.parse("android.resource://com.artemissoftware.afroditedating/" + R.drawable.clotho).toString(),
"Clotho", "Female","Anyone", "Looking");
public static final User Catoblepas = new User(Uri.parse("android.resource://com.artemissoftware.afroditedating/" + R.drawable.catoblepas).toString(),
"Catoblepas", "Creature","Female", "Looking");
public static final User Medusa = new User(Uri.parse("android.resource://com.artemissoftware.afroditedating/" + R.drawable.medusa).toString(),
"Medusa", "Creature","Anyone", "Looking");
//public static final User Mermaid = new User(Uri.parse("android.resource://com.artemissoftware.afroditedating/" + R.drawable.mermaid).toString(),
//"Mermaid", "Creature","Male", "Looking");
public static final User Centaur = new User(Uri.parse("android.resource://com.artemissoftware.afroditedating/" + R.drawable.centaur).toString(),
"Centaur", "Creature","Female", "Looking");
public static final User Minotaur = new User(Uri.parse("android.resource://com.artemissoftware.afroditedating/" + R.drawable.minotaur).toString(),
"Minotaur", "Creature","Male / Female", "Looking");
public static final User Cerberus = new User(Uri.parse("android.resource://com.artemissoftware.afroditedating/" + R.drawable.cerberus).toString(),
"Cerberus", "Creature","Female", "Looking");
/*
Men
public static final User James = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.james).toString(),
"James", "Male","Female", "Looking");
public static final User Robert = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.robert).toString(),
"Robert", "Male","Female", "Looking");
public static final User Michael = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.michael).toString(),
"Michael", "Male","Female", "Looking");
public static final User William = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.william).toString(),
"William", "Male","Female", "Not Looking");
public static final User Joseph = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.joseph).toString(),
"Joseph", "Male","Female", "Looking");
public static final User Charles = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.charles).toString(),
"Charles", "Male","Female", "Looking");
public static final User Matthew = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.mattew).toString(),
"Matthew", "Male","Female", "Looking");
public static final User Donald = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.donald).toString(),
"Donald", "Male","Female", "Looking");
public static final User Paul = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.paul).toString(),
"Paul", "Male","Female", "Looking");
public static final User Steve = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.steve).toString(),
"Steve", "Male","Female", "Looking");
*/
/*
Females
public static final User Mary = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.mary).toString(),
"Mary", "Female","Male", "Looking");
public static final User Patricia = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.patricia).toString(),
"Patricia", "Female","Male", "Looking");
public static final User Jennifer = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.jennifer).toString(),
"Jennifer", "Female","Male", "Looking");
public static final User Elizabeth = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.elizabeth).toString(),
"Elizabeth", "Female","Male", "Looking");
public static final User Linda = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.linda).toString(),
"Linda", "Female","Male", "Looking");
public static final User Susan = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.susan).toString(),
"Susan", "Female","Male", "Looking");
public static final User Jessica = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.jessica).toString(),
"Jessica", "Female","Male", "Looking");
public static final User Sarah = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.sarah).toString(),
"Sarah", "Female","Male", "Looking");
public static final User Karen = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.karen).toString(),
"Karen", "Female","Male", "Looking");
public static final User Nancy = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.nancy).toString(),
"Nancy", "Female","Male", "Looking");
public static final User Carol = new User(Uri.parse("android.resource://codingwithmitch.com.tabiandating/" + R.drawable.carol).toString(),
"Carol", "Do Not Identify","Anyone", "Looking");
*/
}
|
[
"gustavo.maia@b2b.com.pt"
] |
gustavo.maia@b2b.com.pt
|
f3d918d497c2bf818ff7c4ca5d403accb92773c4
|
f55cb205c155ca50e640bd1b6e078c696bd59d56
|
/dragon3/src/main/java/dragon3/anime/listener/EraseAnime.java
|
e66ec12b283ba36ee5791608f2407642bbc20151
|
[] |
no_license
|
piropiro/dragon
|
bc982af0298f3564be326ea08c4113e2613385df
|
29d05e9a660fb5b6a3d971c332e52c63ce3a2df3
|
refs/heads/master
| 2020-04-06T07:03:58.423129
| 2014-12-16T13:01:16
| 2014-12-16T13:01:16
| 16,068,916
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,951
|
java
|
package dragon3.anime.listener;
import java.awt.image.BufferedImage;
import mine.awt.GraphicsAWT;
import mine.awt.ImageAWT;
import mine.paint.MineGraphics;
import mine.paint.MineImage;
import mine.paint.UnitMap;
import dragon3.anime.AnimeWorks;
import dragon3.common.constant.Page;
public class EraseAnime implements AnimeListener {
private UnitMap map;
private int bodyX;
private int bodyY;
private MineImage offi;
private int count;
/*** Constructer ***********************/
public EraseAnime(UnitMap map, int x, int y) {
this.map = map;
this.bodyX = x;
this.bodyY = y;
offi = createOffi(map, x, y);
}
/*** SourceImage ********************/
private static MineImage createOffi(UnitMap map, int x, int y) {
BufferedImage offi = new BufferedImage(32, 32, BufferedImage.TYPE_INT_ARGB);
MineGraphics offg = new GraphicsAWT(offi.getGraphics());
int img = map.getData(Page.P20, x, y);
int sts = map.getData(Page.P50, x, y);
map.setData(Page.P20, x, y, 0);
map.setData(Page.P30, x, y, 0);
map.setData(Page.P50, x, y, 0);
offg.drawImage(map.getBuffer(x, y), 0, 0);
map.setData(Page.P20, x, y, img);
map.setData(Page.P50, x, y, sts);
return new ImageAWT(offi);
}
/*** Display **********************************/
public void animation(AnimeWorks ac) {
for (count = 1; count <= 4; count++) {
ac.repaint();
ac.sleep(100);
}
map.setData(Page.P20, bodyX, bodyY, 0);
map.setData(Page.P50, bodyX, bodyY, 0);
ac.setVisible(false);
}
/*** Paint *********************************/
public void paint(MineGraphics g) {
for (int x = 0; x < 8; x++) {
int sx = x * 4;
int sy = 0;
int w = count;
int h = 32;
g.drawImage(offi, sx, sy, w, h, sx, sy);
}
for (int y = 0; y < 8; y++) {
int sx = 0;
int sy = y * 4;
int w = 32;
int h = count;
g.drawImage(offi, sx, sy, w, h, sx, sy);
}
}
}
|
[
"mela825@gmail.com"
] |
mela825@gmail.com
|
150ecbce4d085790eeb66d4864bb4b96573a01a4
|
67c20d8b8c8a9e87ff3bd615e2a471da88792630
|
/app/src/main/java/com/cubezytech/pillsreminder/Model/TimeInDay.java
|
c94cdbbbeef5583e7995fa2d0326e99ce17751eb
|
[] |
no_license
|
MeghaPatel2022/Pills-Reminder
|
0f08d907bbe6fa4eff9c146752b0cab581444e7f
|
dca239bf338872f3e0293d5d173a6af53d5224c9
|
refs/heads/master
| 2023-09-03T15:43:57.849837
| 2021-10-18T06:33:17
| 2021-10-18T06:33:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,803
|
java
|
package com.cubezytech.pillsreminder.Model;
public class TimeInDay {
String R_id, Med_Name, Med_Strength, Med_type, Time_In_day, WeekDays, pills = "1", time, date, taken, taken_time;
public String getR_id() {
return R_id;
}
public void setR_id(String r_id) {
R_id = r_id;
}
public String getMed_Name() {
return Med_Name;
}
public void setMed_Name(String medi_Name) {
Med_Name = medi_Name;
}
public String getMed_type() {
return Med_type;
}
public void setMed_type(String med_type) {
Med_type = med_type;
}
public String getMed_Strength() {
return Med_Strength;
}
public void setMed_Strength(String med_Strength) {
Med_Strength = med_Strength;
}
public String getTime_In_day() {
return Time_In_day;
}
public void setTime_In_day(String time_In_day) {
Time_In_day = time_In_day;
}
public String getWeekDays() {
return WeekDays;
}
public void setWeekDays(String weekDays) {
WeekDays = weekDays;
}
public String getPills() {
return pills;
}
public void setPills(String pills) {
this.pills = pills;
}
public String getTime() {
return time;
}
public void setTime(String time) {
this.time = time;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public String getTaken() {
return taken;
}
public void setTaken(String taken) {
this.taken = taken;
}
public String getTaken_time() {
return taken_time;
}
public void setTaken_time(String taken_time) {
this.taken_time = taken_time;
}
}
|
[
"megha.bpatel2022@gmail.com"
] |
megha.bpatel2022@gmail.com
|
6ab37a72688e68bf3078921f29948484e63b64bc
|
c04e06c47f73326a6bcb15d9203a36b389cf05ee
|
/src/main/java/cn/com/zhihetech/online/bean/OrderDetail.java
|
93d0917660d7630fcdbf1e35678572abfb477498
|
[] |
no_license
|
qq524007127/online
|
6994886381c88a29d8d8c78155c11935061bc20d
|
a3b979295e5524b0c4c6536e238b4b32d9cfea88
|
refs/heads/master
| 2021-01-10T04:48:05.451826
| 2016-01-14T02:04:44
| 2016-01-14T02:04:57
| 49,615,412
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,363
|
java
|
package cn.com.zhihetech.online.bean;
import com.alibaba.fastjson.annotation.JSONField;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
/**
* Created by YangDaiChun on 2015/11/12.
*/
@Entity
@Table(name = "t_order_detail")
public class OrderDetail extends SerializableAndCloneable {
private String orderDetailId;
private Order order;
private Goods goods;
private long count;
@Id
@GenericGenerator(name = "systemUUID", strategy = "uuid2")
@GeneratedValue(generator = "systemUUID")
@Column(name = "detial_id", length = 36)
public String getOrderDetailId() {
return orderDetailId;
}
public void setOrderDetailId(String orderDetailId) {
this.orderDetailId = orderDetailId;
}
@JSONField(serialize = false)
@ManyToOne
@JoinColumn(name = "order_id")
public Order getOrder() {
return order;
}
public void setOrder(Order order) {
this.order = order;
}
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "goods_id")
public Goods getGoods() {
return goods;
}
public void setGoods(Goods goods) {
this.goods = goods;
}
@Column(name = "count")
public long getCount() {
return count;
}
public void setCount(long count) {
this.count = count;
}
}
|
[
"524007127"
] |
524007127
|
79841b468068dd73e6895f18318107a91e46af66
|
32117643c745cfb06063951dd2e29c3ad3d11ca9
|
/src/main/java/io/github/angularlogin/config/audit/AuditEventConverter.java
|
a7e71a8b65f144e568a898bab265e49cd36a6a55
|
[] |
no_license
|
Balagangadhar/angularlogin
|
5964df55935ee5091d4fce398dcb057b52758def
|
23ed590fd11ba33d10ff438761823302cb180704
|
refs/heads/master
| 2021-06-27T22:14:51.650368
| 2018-12-13T16:10:22
| 2018-12-13T16:10:22
| 153,274,783
| 1
| 1
| null | 2020-09-18T14:56:55
| 2018-10-16T11:32:55
|
Java
|
UTF-8
|
Java
| false
| false
| 3,207
|
java
|
package io.github.angularlogin.config.audit;
import io.github.angularlogin.domain.PersistentAuditEvent;
import org.springframework.boot.actuate.audit.AuditEvent;
import org.springframework.security.web.authentication.WebAuthenticationDetails;
import org.springframework.stereotype.Component;
import java.util.*;
@Component
public class AuditEventConverter {
/**
* Convert a list of PersistentAuditEvent to a list of AuditEvent
*
* @param persistentAuditEvents the list to convert
* @return the converted list.
*/
public List<AuditEvent> convertToAuditEvent(Iterable<PersistentAuditEvent> persistentAuditEvents) {
if (persistentAuditEvents == null) {
return Collections.emptyList();
}
List<AuditEvent> auditEvents = new ArrayList<>();
for (PersistentAuditEvent persistentAuditEvent : persistentAuditEvents) {
auditEvents.add(convertToAuditEvent(persistentAuditEvent));
}
return auditEvents;
}
/**
* Convert a PersistentAuditEvent to an AuditEvent
*
* @param persistentAuditEvent the event to convert
* @return the converted list.
*/
public AuditEvent convertToAuditEvent(PersistentAuditEvent persistentAuditEvent) {
if (persistentAuditEvent == null) {
return null;
}
return new AuditEvent(persistentAuditEvent.getAuditEventDate(), persistentAuditEvent.getPrincipal(),
persistentAuditEvent.getAuditEventType(), convertDataToObjects(persistentAuditEvent.getData()));
}
/**
* Internal conversion. This is needed to support the current SpringBoot actuator AuditEventRepository interface
*
* @param data the data to convert
* @return a map of String, Object
*/
public Map<String, Object> convertDataToObjects(Map<String, String> data) {
Map<String, Object> results = new HashMap<>();
if (data != null) {
for (Map.Entry<String, String> entry : data.entrySet()) {
results.put(entry.getKey(), entry.getValue());
}
}
return results;
}
/**
* Internal conversion. This method will allow to save additional data.
* By default, it will save the object as string
*
* @param data the data to convert
* @return a map of String, String
*/
public Map<String, String> convertDataToStrings(Map<String, Object> data) {
Map<String, String> results = new HashMap<>();
if (data != null) {
for (Map.Entry<String, Object> entry : data.entrySet()) {
// Extract the data that will be saved.
if (entry.getValue() instanceof WebAuthenticationDetails) {
WebAuthenticationDetails authenticationDetails = (WebAuthenticationDetails) entry.getValue();
results.put("remoteAddress", authenticationDetails.getRemoteAddress());
results.put("sessionId", authenticationDetails.getSessionId());
} else {
results.put(entry.getKey(), Objects.toString(entry.getValue()));
}
}
}
return results;
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
839219af687f2d0995d7650c775b723a54aab021
|
174b07e52759db7acdbb5adfebf9aef4939de946
|
/src/day09_NestedIf_Ternary/Ternary.java
|
62fcdacd6255641b06c8a790d25a9685ae010ed7
|
[] |
no_license
|
Mehraj01/Spring_2020_Java
|
c69da880bce89e2721811c7d346825cf64eb9ee4
|
249b2a973fc23d8613e53a8422bbb0f6a764730a
|
refs/heads/master
| 2023-05-02T11:02:58.459549
| 2021-03-07T03:09:36
| 2021-03-07T03:09:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,139
|
java
|
package day09_NestedIf_Ternary;
public class Ternary {
public static void main(String[] args) {
int num=100;
String result="";
if(num%2==0){
result="even";
}else {
result = "odd";
}
// if statement is only returning value and assigning it to variable then we can use ternary
// in ternary: ? means the if, :else keyword
String result2=(num%2==0)? "Even" : "Odd";
System.out.println(result);
System.out.println(result2);
System.out.println("=====================================================================");
int num1=100;
int num2=200;
int max=0;
if(num1>num2){
max=num1;
}else{
max=num2;
}
int max2=(num1>num2)? num1 :num2;
System.out.println(max);
System.out.println(max2);
String str="";
if(true){
str="hello";
}else{
str="Hola";
}
System.out.println(str);
String str2=(true)?"hello" :"hola";
System.out.println(str2);
}
}
|
[
"sadaaghayeva@gmail.com"
] |
sadaaghayeva@gmail.com
|
3cc76d4ba0252c5c1992be54ebbe19ded4217f7f
|
b44c72403f3eb8bdc9ed842d3b55b2917663554c
|
/src/main/java/zipkin/layout/ZipkinLayoutFactory.java
|
7010a3102b78ab139d7565039e27304def389c99
|
[
"Apache-2.0"
] |
permissive
|
zeagord/zipkin-layout-factory
|
ea9895667484bd5f21b42a326a0be461e3a8fc02
|
2abd8c93faa5cc27ac9d12dafe6b40896eaa10b5
|
refs/heads/master
| 2021-04-15T18:50:57.025586
| 2018-10-31T05:41:23
| 2018-10-31T05:41:23
| 126,190,548
| 0
| 0
| null | 2018-03-21T14:23:04
| 2018-03-21T14:23:03
| null |
UTF-8
|
Java
| false
| false
| 2,596
|
java
|
/**
* Copyright 2015-2018 The OpenZipkin 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 zipkin.layout;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import org.springframework.boot.loader.tools.CustomLoaderLayout;
import org.springframework.boot.loader.tools.Layout;
import org.springframework.boot.loader.tools.LayoutFactory;
import org.springframework.boot.loader.tools.LibraryScope;
import org.springframework.boot.loader.tools.LoaderClassesWriter;
public class ZipkinLayoutFactory implements LayoutFactory, CustomLoaderLayout {
private static final Set<LibraryScope> LIB_DESTINATION_SCOPES = new HashSet<LibraryScope>(
Arrays.asList(
LibraryScope.CUSTOM)
);
// Name of the layout and the same has to be specified at the client side where the layout is used
private String name = "custom";
public ZipkinLayoutFactory() {
}
public ZipkinLayoutFactory(String name) {
this.name = name;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
@Override
public Layout getLayout(File file) {
return new Layout() {
// Since the layout is currently used only for modules, there is no launcher provided at the moment
@Override
public String getLauncherClassName() {
return null;
}
// If the scope of the library is CUSTOM, then the libs will be repackaged to "libs/" directory
@Override
public String getLibraryDestination(String libraryName, LibraryScope scope) {
return "lib/";
}
@Override
public String getClassesLocation() {
return null;
}
// Marking the jar as non executable
@Override
public boolean isExecutable() {
return false;
}
};
}
@Override
public void writeLoadedClasses(LoaderClassesWriter writer) throws IOException {
writer.writeEntry(this.name, new ByteArrayInputStream(new byte[0]));
}
}
|
[
"adriancole@users.noreply.github.com"
] |
adriancole@users.noreply.github.com
|
507e5061e41dfbbbce574b57712d7a5026f5f0af
|
dd861e89e2bac0cb4caf034684abb0190ba27025
|
/app/src/main/java/com/app/roshni/profile.java
|
a31b54598a709b04bd3b30edd49c0bf533431ef7
|
[] |
no_license
|
mukulraw/roshni
|
c146685315f3c53d2124da08d332f15a7d2183d8
|
788ec65b6cd240034a2b867d525e6fd50bd0c333
|
refs/heads/master
| 2021-07-18T19:25:48.144810
| 2020-07-17T12:33:22
| 2020-07-17T12:33:22
| 194,052,713
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,894
|
java
|
package com.app.roshni;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentStatePagerAdapter;
import com.google.android.material.tabs.TabLayout;
public class profile extends Fragment {
TabLayout tabs;
CustomViewPager pager;
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.profile_layout , container , false);
tabs = view.findViewById(R.id.tabLayout2);
pager = view.findViewById(R.id.pager);
tabs.addTab(tabs.newTab().setText("PERSONAL"));
tabs.addTab(tabs.newTab().setText("PROFESSIONAL"));
PagerAdapter adapter = new PagerAdapter(getChildFragmentManager());
pager.setAdapter(adapter);
tabs.setupWithViewPager(pager);
pager.setPagingEnabled(true);
tabs.getTabAt(0).setText("PERSONAL");
tabs.getTabAt(1).setText("PROFESSIONAL");
return view;
}
class PagerAdapter extends FragmentStatePagerAdapter
{
public PagerAdapter(FragmentManager fm) {
super(fm);
}
@Override
public Fragment getItem(int position) {
if (position == 0)
{
personal frag = new personal();
frag.setData(pager);
return frag;
}
else
{
return new professional();
}
}
@Override
public int getCount() {
return 2;
}
}
}
|
[
"mukulraw199517@gmail.com"
] |
mukulraw199517@gmail.com
|
d7d3d24efdc8a560033db4553a3999265aa9a156
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project47/src/main/java/org/gradle/test/performance47_1/Production47_55.java
|
9c37dc175e142146645fa0bbeb9caa2948cad1f4
|
[] |
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
| 302
|
java
|
package org.gradle.test.performance47_1;
public class Production47_55 extends org.gradle.test.performance14_1.Production14_55 {
private final String property;
public Production47_55() {
this.property = "foo";
}
public String getProperty() {
return property;
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
ab207ce898d3627b3d27f380f3e6116aa45eda69
|
82dfa26494e9c153fa8a6fa03bde79b2be7645e7
|
/src/test/java/com/mikeias/erestaurante/web/rest/errors/ExceptionTranslatorIntTest.java
|
cc325aeda1b3ec1c58b9b887545d2b93578e7122
|
[] |
no_license
|
MiqueiasFernandes/erestaurante-1.0
|
4bf37eb141fcd9519091b1b802fc12ec3bc37f26
|
2f801c3536526aa1bd478bde1b552b8753ea2527
|
refs/heads/master
| 2022-12-16T12:32:27.947969
| 2017-12-08T12:54:09
| 2017-12-08T12:54:09
| 109,448,341
| 0
| 1
| null | 2020-09-18T16:27:38
| 2017-11-03T22:30:16
|
HTML
|
UTF-8
|
Java
| false
| false
| 6,517
|
java
|
package com.mikeias.erestaurante.web.rest.errors;
import com.mikeias.erestaurante.ERestauranteApp;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.http.MediaType;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import org.zalando.problem.spring.web.advice.MediaTypes;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
/**
* Test class for the ExceptionTranslator controller advice.
*
* @see ExceptionTranslator
*/
@RunWith(SpringRunner.class)
@SpringBootTest(classes = ERestauranteApp.class)
public class ExceptionTranslatorIntTest {
@Autowired
private ExceptionTranslatorTestController controller;
@Autowired
private ExceptionTranslator exceptionTranslator;
@Autowired
private MappingJackson2HttpMessageConverter jacksonMessageConverter;
private MockMvc mockMvc;
@Before
public void setup() {
mockMvc = MockMvcBuilders.standaloneSetup(controller)
.setControllerAdvice(exceptionTranslator)
.setMessageConverters(jacksonMessageConverter)
.build();
}
@Test
public void testConcurrencyFailure() throws Exception {
mockMvc.perform(get("/test/concurrency-failure"))
.andExpect(status().isConflict())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value(ErrorConstants.ERR_CONCURRENCY_FAILURE));
}
@Test
public void testMethodArgumentNotValid() throws Exception {
mockMvc.perform(post("/test/method-argument").content("{}").contentType(MediaType.APPLICATION_JSON))
.andExpect(status().isBadRequest())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value(ErrorConstants.ERR_VALIDATION))
.andExpect(jsonPath("$.fieldErrors.[0].objectName").value("testDTO"))
.andExpect(jsonPath("$.fieldErrors.[0].field").value("test"))
.andExpect(jsonPath("$.fieldErrors.[0].message").value("NotNull"));
}
@Test
public void testParameterizedError() throws Exception {
mockMvc.perform(get("/test/parameterized-error"))
.andExpect(status().isBadRequest())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("test parameterized error"))
.andExpect(jsonPath("$.params.param0").value("param0_value"))
.andExpect(jsonPath("$.params.param1").value("param1_value"));
}
@Test
public void testParameterizedError2() throws Exception {
mockMvc.perform(get("/test/parameterized-error2"))
.andExpect(status().isBadRequest())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("test parameterized error"))
.andExpect(jsonPath("$.params.foo").value("foo_value"))
.andExpect(jsonPath("$.params.bar").value("bar_value"));
}
@Test
public void testMissingServletRequestPartException() throws Exception {
mockMvc.perform(get("/test/missing-servlet-request-part"))
.andExpect(status().isBadRequest())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("error.http.400"));
}
@Test
public void testMissingServletRequestParameterException() throws Exception {
mockMvc.perform(get("/test/missing-servlet-request-parameter"))
.andExpect(status().isBadRequest())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("error.http.400"));
}
@Test
public void testAccessDenied() throws Exception {
mockMvc.perform(get("/test/access-denied"))
.andExpect(status().isForbidden())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("error.http.403"))
.andExpect(jsonPath("$.detail").value("test access denied!"));
}
@Test
public void testUnauthorized() throws Exception {
mockMvc.perform(get("/test/unauthorized"))
.andExpect(status().isUnauthorized())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("error.http.401"))
.andExpect(jsonPath("$.path").value("/test/unauthorized"))
.andExpect(jsonPath("$.detail").value("test authentication failed!"));
}
@Test
public void testMethodNotSupported() throws Exception {
mockMvc.perform(post("/test/access-denied"))
.andExpect(status().isMethodNotAllowed())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("error.http.405"))
.andExpect(jsonPath("$.detail").value("Request method 'POST' not supported"));
}
@Test
public void testExceptionWithResponseStatus() throws Exception {
mockMvc.perform(get("/test/response-status"))
.andExpect(status().isBadRequest())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("error.http.400"))
.andExpect(jsonPath("$.title").value("test response status"));
}
@Test
public void testInternalServerError() throws Exception {
mockMvc.perform(get("/test/internal-server-error"))
.andExpect(status().isInternalServerError())
.andExpect(content().contentType(MediaTypes.PROBLEM))
.andExpect(jsonPath("$.message").value("error.http.500"))
.andExpect(jsonPath("$.title").value("Internal Server Error"));
}
}
|
[
"mfernandes@localhost.localdomain"
] |
mfernandes@localhost.localdomain
|
7ca803d152420f5a883da15e8a166a401aa253fe
|
97cc85f4685d444fac82e418f8aff7997efc6a9c
|
/src/com/theironyard/Main.java
|
13cbde77d51ae3be4111a7762c2c3e62e9931f25
|
[] |
no_license
|
TIY-Charleston-Back-End-Oct2015/BeerTrackerDatabase
|
fca74d7eeb4b33fff318668c46a2ac59d04c3127
|
af961ebf32b0794107594d4cabaef36daa5aa0ef
|
refs/heads/master
| 2021-01-10T15:04:35.082808
| 2015-11-01T20:47:19
| 2015-11-01T20:48:31
| 45,356,857
| 0
| 13
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,413
|
java
|
package com.theironyard;
import spark.ModelAndView;
import spark.Session;
import spark.Spark;
import spark.template.mustache.MustacheTemplateEngine;
import java.util.ArrayList;
import java.util.HashMap;
public class Main {
public static void main(String[] args) {
ArrayList<Beer> beers = new ArrayList();
Spark.get(
"/",
((request, response) -> {
Session session = request.session();
String username = session.attribute("username");
if (username == null) {
return new ModelAndView(new HashMap(), "not-logged-in.html");
}
HashMap m = new HashMap();
m.put("username", username);
m.put("beers", beers);
return new ModelAndView(m, "logged-in.html");
}),
new MustacheTemplateEngine()
);
Spark.post(
"/login",
((request, response) -> {
String username = request.queryParams("username");
Session session = request.session();
session.attribute("username", username);
response.redirect("/");
return "";
})
);
Spark.post(
"/create-beer",
((request, response) -> {
Beer beer = new Beer();
beer.id = beers.size() + 1;
beer.name = request.queryParams("beername");
beer.type = request.queryParams("beertype");
beers.add(beer);
response.redirect("/");
return "";
})
);
Spark.post(
"/delete-beer",
((request, response) -> {
String id = request.queryParams("beerid");
try {
int idNum = Integer.valueOf(id);
beers.remove(idNum-1);
for (int i = 0; i < beers.size(); i++) {
beers.get(i).id = i + 1;
}
} catch (Exception e) {
}
response.redirect("/");
return "";
})
);
}
}
|
[
"zsoakes@gmail.com"
] |
zsoakes@gmail.com
|
3be0bf470303412ed34604b3bce9b2269c3f7dae
|
6a95484a8989e92db07325c7acd77868cb0ac3bc
|
/modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201403/ContactServiceInterfaceupdateContacts.java
|
15b93862af4876c7ababb275eb0bd4cf868a78d0
|
[
"Apache-2.0"
] |
permissive
|
popovsh6/googleads-java-lib
|
776687dd86db0ce785b9d56555fe83571db9570a
|
d3cabb6fb0621c2920e3725a95622ea934117daf
|
refs/heads/master
| 2020-04-05T23:21:57.987610
| 2015-03-12T19:59:29
| 2015-03-12T19:59:29
| 33,672,406
| 1
| 0
| null | 2015-04-09T14:06:00
| 2015-04-09T14:06:00
| null |
UTF-8
|
Java
| false
| false
| 2,162
|
java
|
package com.google.api.ads.dfp.jaxws.v201403;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
*
* Updates the specified {@link Contact} objects.
*
* @param contacts the contacts to update
* @return the updated contacts
*
*
* <p>Java class for updateContacts element declaration.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <element name="updateContacts">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="contacts" type="{https://www.google.com/apis/ads/publisher/v201403}Contact" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"contacts"
})
@XmlRootElement(name = "updateContacts")
public class ContactServiceInterfaceupdateContacts {
protected List<Contact> contacts;
/**
* Gets the value of the contacts 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 contacts property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContacts().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Contact }
*
*
*/
public List<Contact> getContacts() {
if (contacts == null) {
contacts = new ArrayList<Contact>();
}
return this.contacts;
}
}
|
[
"jradcliff@google.com"
] |
jradcliff@google.com
|
d33da98cc9f673490636ad8bc49e46997accf42b
|
d7dde8bb9305804115d97f77e152099787fc5bcc
|
/ZgldApi/src/com/zgld/api/beans/HishopPurchaseGifts.java
|
5d86075b38562855a1adf14cb6ee4ac564f39643
|
[] |
no_license
|
longliuping/ZgldApi
|
77357f968cab92d6158f488f31443c3611223296
|
b0c6ebace562dfa93c99105b8d680d3e2b386d6b
|
refs/heads/master
| 2021-01-10T08:17:15.351179
| 2016-04-02T00:56:22
| 2016-04-02T00:56:22
| 54,113,608
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 483
|
java
|
package com.zgld.api.beans;
/**
* HishopPurchaseGifts entity. @author MyEclipse Persistence Tools
*/
public class HishopPurchaseGifts extends AbstractHishopPurchaseGifts implements java.io.Serializable {
// Constructors
/** default constructor */
public HishopPurchaseGifts() {
}
/** full constructor */
public HishopPurchaseGifts(HishopPromotions hishopPromotions, Integer buyQuantity, Integer giveQuantity) {
super(hishopPromotions, buyQuantity, giveQuantity);
}
}
|
[
"z819366568"
] |
z819366568
|
8d1bd5ec314d1f527e0cf2bf5200d4e49ec14869
|
24fec8593856302f73cc1463e96532b67c3d6a4d
|
/mcp/temp/src/minecraft/net/minecraft/client/renderer/entity/RenderSkeleton.java
|
0c7aeeb7f77b70c75bb62931c585f9423e49382d
|
[
"BSD-3-Clause"
] |
permissive
|
theorbtwo/visual-sound
|
3cf8fc540728c334e66a39fdf921038c37db2cba
|
af76f171eddf6759097ea3445a55f18cdf4a86af
|
refs/heads/master
| 2021-01-23T11:48:03.750673
| 2013-06-20T17:20:08
| 2013-06-20T17:20:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 982
|
java
|
package net.minecraft.client.renderer.entity;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.model.ModelSkeleton;
import net.minecraft.client.renderer.entity.RenderBiped;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.monster.EntitySkeleton;
import org.lwjgl.opengl.GL11;
@SideOnly(Side.CLIENT)
public class RenderSkeleton extends RenderBiped {
public RenderSkeleton() {
super(new ModelSkeleton(), 0.5F);
}
protected void func_82438_a(EntitySkeleton p_82438_1_, float p_82438_2_) {
if(p_82438_1_.func_82202_m() == 1) {
GL11.glScalef(1.2F, 1.2F, 1.2F);
}
}
protected void func_82422_c() {
GL11.glTranslatef(0.09375F, 0.1875F, 0.0F);
}
// $FF: synthetic method
// $FF: bridge method
protected void func_77041_b(EntityLiving p_77041_1_, float p_77041_2_) {
this.func_82438_a((EntitySkeleton)p_77041_1_, p_77041_2_);
}
}
|
[
"james@mastros.biz"
] |
james@mastros.biz
|
8b610063f2dcd77eb1c71650cd40028f8e111651
|
b9b1109f2e0931d6a8381994da926d532b44f3ac
|
/bitcamp-web-project/src/main/java/com/eomcs/web/ex11/Servlet12.java
|
23689c7b433e5531057b2cfb96f560b258b95c32
|
[] |
no_license
|
eomjinyoung/bitcamp-20200713
|
a1ba5ec8c352cd33d6549d8e31ca44f2e3df4db7
|
d791bd087b073a186facacbc562ddce24970447d
|
refs/heads/master
| 2023-02-08T14:51:58.820397
| 2021-01-01T01:35:21
| 2021-01-01T01:35:21
| 279,742,777
| 2
| 3
| null | 2020-10-28T08:31:29
| 2020-07-15T02:33:14
|
Java
|
UTF-8
|
Java
| false
| false
| 1,239
|
java
|
// 세션(session)의 활용 - 페이지2
package com.eomcs.web.ex11;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
@WebServlet("/ex11/s12")
@SuppressWarnings("serial")
public class Servlet12 extends HttpServlet {
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// 세션을 준비한다.
HttpSession session = request.getSession();
// 클라이언트가 보낸 데이터를 세션에 보관한다.
session.setAttribute("name", request.getParameter("name"));
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
out.println("<html><head><title>페이지2</title></head><body>");
out.println("<form action='s13' method='post'>");
out.println("나이: <input type='text' name='age'><br>");
out.println("<button>다음</button>");
out.println("</form>");
out.println("</body></html>");
}
}
|
[
"jinyoung.eom@gmail.com"
] |
jinyoung.eom@gmail.com
|
947235aa792c8ab725f8568a21219a50e29b51f5
|
efa7935f77f5368e655c072b236d598059badcff
|
/src/com/sammyun/service/gd/DiaryCommentService.java
|
22841c553e42e49a6e056d6ee639c9cd894493dc
|
[] |
no_license
|
ma-xu/Library
|
c1404f4f5e909be3e5b56f9884355e431c40f51b
|
766744898745f8fad31766cafae9fd4db0318534
|
refs/heads/master
| 2022-02-23T13:34:47.439654
| 2016-06-03T11:27:21
| 2016-06-03T11:27:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 261
|
java
|
package com.sammyun.service.gd;
import com.sammyun.entity.gd.DiaryComment;
import com.sammyun.service.BaseService;
/**
* DiaryComment * Service - 成长记评论
*
*/
public interface DiaryCommentService extends BaseService<DiaryComment, Long>
{
}
|
[
"melody@maxudeMacBook-Pro.local"
] |
melody@maxudeMacBook-Pro.local
|
2bc0e35b774998886f947cccd387ddf8bd917736
|
ab70e5ce778a92b7b7b6061b09830f01f9ab7424
|
/nest-ddd/src/main/java/com/zhaofujun/nest/context/event/message/MessageConverterFactory.java
|
3de342edda64379f1187f1bacbd88742814aa409
|
[] |
no_license
|
liangjh123/nest
|
76b97ac69a39a188ff27bb210d37125643f5e2a5
|
a4e4edfbcecc144d0a403e147f188810093c69ef
|
refs/heads/master
| 2022-11-11T06:48:05.064056
| 2020-06-29T07:32:46
| 2020-06-29T07:32:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 559
|
java
|
package com.zhaofujun.nest.context.event.message;
import com.zhaofujun.nest.core.BeanFinder;
public class MessageConverterFactory {
private BeanFinder beanFinder;
public MessageConverterFactory(BeanFinder beanFinder) {
this.beanFinder = beanFinder;
}
public MessageConverter create() {
MessageConverter messageConverter = beanFinder.getInstance(MessageConverter.class);
if (messageConverter == null)
messageConverter = new DefaultMessageConverter(beanFinder);
return messageConverter;
}
}
|
[
"jovezhao@foxmail.com"
] |
jovezhao@foxmail.com
|
e6d89ee1e007cccb1344e2589c39637bbf3e66b3
|
9ac8184133b176912b5489e9fe90046404cff6a3
|
/d-JavaTopic/LeetCode/LT414-第三大的数/src/iqqcode/leetcode/KthLargestNum.java
|
116b2d58a650d020af7f242294a7c32d49944163
|
[] |
no_license
|
IQQcode/Code-Java
|
d5524151b33811d423c6f877418b948f10f10c96
|
96b3157c16674be50e0b8a1ea58867a3de11d930
|
refs/heads/master
| 2022-12-27T12:32:05.824182
| 2022-07-31T09:32:18
| 2022-07-31T09:32:18
| 159,743,511
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,060
|
java
|
package iqqcode.leetcode;
/**
* 按如下步骤在n个元素里面第K大的元素:
*
* 第一步:进行一次快排(将大的元素放在前半段,小的元素放在后半段),得到的中轴p
* 第二步:判断 p - low + 1 == k ,如果成立,直接返回a[p],(前半段有p - low(等于k-1)个大于a[p]元素,则a[p]为第K大的元素)
* 第三步:如果 p - low + 1 > k,则第k大的元 素在前半段,更新high = p - 1,执行第一步
* 第四步:如果 p - low + 1 < k,则第k大的元素在后半段,更新low = p + 1, 且 k = k - (p - low + 1),执行第一步
*
* 常规快排得到整体有序的数组复杂度是O(nlgn),此方法每次可以去掉“一半”的元素,复杂度为O(n)。
*/
public class KthLargestNum {
public static void main(String[] args) {
int[] arr = new int[] {1 , 2, 2, 2, 2, 2, 2};
System.out.println(findKth(arr,arr.length,3));
}
public static int findKth(int[] a, int n, int K) {
return quickSort(a,0,n-1,K);
}
private static int quickSort(int[] arr, int low, int high, int K) {
//中轴p
int p = partion(arr,low,high);
if(K == p-low+1){
return arr[p];
}else if(p-low+1 > K){
//递归左边
return quickSort(arr,low,p-1,K);
}else{
//递归右边
return quickSort(arr,p+1,high,K-(p-low+1));
}
}
private static int partion(int[] arr, int low, int high) {
int tmp = arr[low];
while(low < high){
while(low < high && arr[high] <= tmp) {
high--;
}
if(low == high) {
break;
}else{
arr[low] = arr[high];
}
while(low < high && arr[low] >= tmp) {
low++;
}
if(low == high) {
break;
}else {
arr[high] = arr[low];
}
}
arr[low] = tmp;
return low;
}
}
|
[
"2726109782@qq.com"
] |
2726109782@qq.com
|
99f94a333ce5ac8d9800d5f8045583debf58cf15
|
225011bbc304c541f0170ef5b7ba09b967885e95
|
/com/google/android/gms/internal/ads/zzaty.java
|
2b86adf435cbf86fe7f1897c29a6d417bc1c3c97
|
[] |
no_license
|
sebaudracco/bubble
|
66536da5367f945ca3318fecc4a5f2e68c1df7ee
|
e282cda009dfc9422594b05c63e15f443ef093dc
|
refs/heads/master
| 2023-08-25T09:32:04.599322
| 2018-08-14T15:27:23
| 2018-08-14T15:27:23
| 140,444,001
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 946
|
java
|
package com.google.android.gms.internal.ads;
import android.os.IBinder;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
public final class zzaty extends zzej implements zzatx {
zzaty(IBinder iBinder) {
super(iBinder, "com.google.android.gms.gass.internal.IGassService");
}
public final zzatv zza(zzatt com_google_android_gms_internal_ads_zzatt) throws RemoteException {
Parcel obtainAndWriteInterfaceToken = obtainAndWriteInterfaceToken();
zzel.zza(obtainAndWriteInterfaceToken, (Parcelable) com_google_android_gms_internal_ads_zzatt);
Parcel transactAndReadException = transactAndReadException(1, obtainAndWriteInterfaceToken);
zzatv com_google_android_gms_internal_ads_zzatv = (zzatv) zzel.zza(transactAndReadException, zzatv.CREATOR);
transactAndReadException.recycle();
return com_google_android_gms_internal_ads_zzatv;
}
}
|
[
"sebaudracco@gmail.com"
] |
sebaudracco@gmail.com
|
b87f486b5086dea329dcb617818d4d8ad2342d46
|
e76364e90190ec020feddc730c78192b32fe88c1
|
/neo4j/test/src/test/java/com/buschmais/xo/neo4j/test/relation/qualified/composite/A.java
|
4d6e5aa3628b94f3c917656f6f67241aa9c21d49
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
buschmais/extended-objects
|
2a8411d81469439a034c11116e34ae799eb57e97
|
0b91a5d55c9a76adba28ddccd6caba699eeaa1fc
|
refs/heads/master
| 2023-08-16T13:33:54.936349
| 2023-06-10T13:44:10
| 2023-06-10T13:44:10
| 14,117,014
| 15
| 5
|
Apache-2.0
| 2022-11-02T09:44:17
| 2013-11-04T16:45:59
|
Java
|
UTF-8
|
Java
| false
| false
| 470
|
java
|
package com.buschmais.xo.neo4j.test.relation.qualified.composite;
import static com.buschmais.xo.neo4j.api.annotation.Relation.Outgoing;
import java.util.List;
import com.buschmais.xo.neo4j.api.annotation.Label;
@Label
public interface A {
@Outgoing
@QualifiedOneToOne
B getOneToOne();
void setOneToOne(B b);
@Outgoing
@QualifiedOneToMany
List<B> getOneToMany();
@Outgoing
@QualifiedManyToMany
List<B> getManyToMany();
}
|
[
"dirk.mahler@buschmais.com"
] |
dirk.mahler@buschmais.com
|
9f8f557992b9e1682a57594a611c452eda3fc17d
|
f37f687dbb586aa63ef0c7f8531c3546ae1334cc
|
/fr.javam.gis.graphics2d/src/main/java/fr/gis/viewer2d/renderer/layers/gis/GisDynamicsLayer2D.java
|
7e002dab0d91dff3d11f76acf44b9a7f1a8a7b51
|
[] |
no_license
|
sanke69/javafr.geodesy
|
2819130e8b4f7f7a732a71eaaebcfb0cb7791da8
|
1fe988dd069e3c87581d88ab599bb723c273b57f
|
refs/heads/master
| 2023-06-11T10:06:24.279447
| 2021-07-01T10:13:32
| 2021-07-01T10:13:32
| 377,147,701
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 757
|
java
|
package fr.gis.viewer2d.renderer.layers.gis;
import java.util.Collection;
import fr.gis.api.Gis;
import fr.gis.api.GisLayer;
import fr.gis.graphics.api.render.options.GisRendererOption;
import fr.gis.viewer2d.GisServiceRenderer2D;
import fr.gis.viewer2d.api.GisLayerRenderer2D;
import fr.gis.viewer2d.renderer.objects.gis.GisDynamics2D;
public class GisDynamicsLayer2D implements GisLayerRenderer2D {
GisDynamics2D dynamicsRenderer = new GisDynamics2D();
@Override
public void renderLayer(GisServiceRenderer2D _renderer, GisLayer _layer, GisRendererOption _opts) {
Collection<Gis.Dynamics> dynamics = _layer.getContent().getAllItems(Gis.Dynamics.class);
for(Gis.Dynamics d : dynamics)
dynamicsRenderer.renderObject(_renderer, d, null);
}
}
|
[
"sanke@xps-13"
] |
sanke@xps-13
|
19be8c3d4c9aed081babd6c7ad2d23511979945b
|
720a93365f03ee75b57d55bd34003388147abbdf
|
/src/clusterMaker/algorithms/edgeConverters/NoneConverter.java
|
3ca0d009a220ba48670815f6c52359259f6c2278
|
[] |
no_license
|
nrnb/gsoc2012david
|
d8bf8d2fbc077896dff04ca688005ce7baca64e6
|
59618f38b88f882c5bcda33c7f3c1d70bea65f09
|
refs/heads/master
| 2016-09-10T20:31:07.978046
| 2015-03-17T00:07:08
| 2015-03-17T00:07:08
| 32,360,618
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,508
|
java
|
/* vim: set ts=2: */
/**
* Copyright (c) 2010 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions, and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions, and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
* 3. Redistributions must acknowledge that this software was
* originally developed by the UCSF Computer Graphics Laboratory
* under support by the NIH National Center for Research Resources,
* grant P41-RR01081.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
package clusterMaker.algorithms.edgeConverters;
public class NoneConverter implements EdgeWeightConverter {
/**
* Get the short name of this converter
*
* @return short-hand name for converter
*/
public String getShortName() { return "None";}
public String toString() { return "None";}
/**
* Get the name of this converter
*
* @return name for converter
*/
public String getName() { return "Edge values are not converted"; }
/**
* Convert an edge weight
*
* @param weight the edge weight to convert
* @param minValue the minimum value over all edge weights
* @param maxValue the maximum value over all edge weights
* @return the converted edge weight
*/
public double convert(double weight, double minValue, double maxValue) {
return weight;
}
}
|
[
"apico@gladstone.ucsf.edu"
] |
apico@gladstone.ucsf.edu
|
5d40581ce9528649ce92dbdfdd5b1d81d571b437
|
e62b189dec4294a90f25ca5a333119218480c075
|
/src/main/java/com/liuencier/thymeleaf/repository/UserRepositoryImpl.java
|
c13db5e3b8ad7b1e52d2a95eafe6e9c5039ab160
|
[
"Apache-2.0"
] |
permissive
|
liuenci/thymeleaf-learning
|
427c7732b58e8e295d818f32f022bd5483e7c90e
|
f2352f009ff7ca56350002f07fc31e3622e2769f
|
refs/heads/master
| 2020-05-02T03:06:32.013043
| 2019-03-26T05:20:24
| 2019-03-26T05:20:24
| 177,719,551
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,270
|
java
|
package com.liuencier.thymeleaf.repository;
import com.liuencier.thymeleaf.domain.User;
import org.springframework.stereotype.Repository;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.atomic.AtomicLong;
@Repository
public class UserRepositoryImpl implements UserRepository{
private static AtomicLong counter = new AtomicLong();
private final ConcurrentMap<Long, User> userMap = new ConcurrentHashMap<>();
public UserRepositoryImpl(){
User user = new User();
user.setAge(30);
user.setName("cier");
this.saveOrUpateUser(user);
}
@Override
public User saveOrUpateUser(User user) {
Long id = user.getId();
if (id <= 0) {
id = counter.incrementAndGet();
user.setId(id);
}
this.userMap.put(id, user);
return user;
}
@Override
public void deleteUser(Long id) {
this.userMap.remove(id);
}
@Override
public User getUserById(Long id) {
return this.userMap.get(id);
}
@Override
public List<User> listUser() {
return new ArrayList<User>(this.userMap.values());
}
}
|
[
"154910381@qq.com"
] |
154910381@qq.com
|
acbc4f1471c647c9f0c1f6f6370d9bbfde4a1846
|
1a3252aef9917251ad3b87455d25f1e9529176b8
|
/Mom/src-gen/com/xiaoaitouch/mom/dao/SportInfoModelDao.java
|
0ee42298cd2c1769ad25a4672b561d976bc2565f
|
[] |
no_license
|
notigit/Mom
|
a0a2869729aafd551063965e2fde27364050a52c
|
132e145ec6c900f877f4f2f64793da990d649806
|
refs/heads/master
| 2021-01-20T19:19:18.173365
| 2016-06-20T03:41:00
| 2016-06-20T03:41:00
| 61,514,271
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,269
|
java
|
package com.xiaoaitouch.mom.dao;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteStatement;
import de.greenrobot.dao.AbstractDao;
import de.greenrobot.dao.Property;
import de.greenrobot.dao.internal.DaoConfig;
import com.xiaoaitouch.mom.dao.SportInfoModel;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* DAO for table SPORT_INFO_MODEL.
*/
public class SportInfoModelDao extends AbstractDao<SportInfoModel, Long> {
public static final String TABLENAME = "SPORT_INFO_MODEL";
/**
* Properties of entity SportInfoModel.<br/>
* Can be used for QueryBuilder and for referencing column names.
*/
public static class Properties {
public final static Property Id = new Property(0, Long.class, "id", true, "_id");
public final static Property UserId = new Property(1, Long.class, "userId", false, "USER_ID");
public final static Property Date = new Property(2, String.class, "date", false, "DATE");
public final static Property Time = new Property(3, Float.class, "time", false, "TIME");
public final static Property Steps = new Property(4, Integer.class, "steps", false, "STEPS");
public final static Property Message = new Property(5, String.class, "message", false, "MESSAGE");
};
public SportInfoModelDao(DaoConfig config) {
super(config);
}
public SportInfoModelDao(DaoConfig config, DaoSession daoSession) {
super(config, daoSession);
}
/** Creates the underlying database table. */
public static void createTable(SQLiteDatabase db, boolean ifNotExists) {
String constraint = ifNotExists? "IF NOT EXISTS ": "";
db.execSQL("CREATE TABLE " + constraint + "'SPORT_INFO_MODEL' (" + //
"'_id' INTEGER PRIMARY KEY ," + // 0: id
"'USER_ID' INTEGER," + // 1: userId
"'DATE' TEXT," + // 2: date
"'TIME' REAL," + // 3: time
"'STEPS' INTEGER," + // 4: steps
"'MESSAGE' TEXT);"); // 5: message
}
/** Drops the underlying database table. */
public static void dropTable(SQLiteDatabase db, boolean ifExists) {
String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "'SPORT_INFO_MODEL'";
db.execSQL(sql);
}
/** @inheritdoc */
@Override
protected void bindValues(SQLiteStatement stmt, SportInfoModel entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
Long userId = entity.getUserId();
if (userId != null) {
stmt.bindLong(2, userId);
}
String date = entity.getDate();
if (date != null) {
stmt.bindString(3, date);
}
Float time = entity.getTime();
if (time != null) {
stmt.bindDouble(4, time);
}
Integer steps = entity.getSteps();
if (steps != null) {
stmt.bindLong(5, steps);
}
String message = entity.getMessage();
if (message != null) {
stmt.bindString(6, message);
}
}
/** @inheritdoc */
@Override
public Long readKey(Cursor cursor, int offset) {
return cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0);
}
/** @inheritdoc */
@Override
public SportInfoModel readEntity(Cursor cursor, int offset) {
SportInfoModel entity = new SportInfoModel( //
cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0), // id
cursor.isNull(offset + 1) ? null : cursor.getLong(offset + 1), // userId
cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // date
cursor.isNull(offset + 3) ? null : cursor.getFloat(offset + 3), // time
cursor.isNull(offset + 4) ? null : cursor.getInt(offset + 4), // steps
cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5) // message
);
return entity;
}
/** @inheritdoc */
@Override
public void readEntity(Cursor cursor, SportInfoModel entity, int offset) {
entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0));
entity.setUserId(cursor.isNull(offset + 1) ? null : cursor.getLong(offset + 1));
entity.setDate(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
entity.setTime(cursor.isNull(offset + 3) ? null : cursor.getFloat(offset + 3));
entity.setSteps(cursor.isNull(offset + 4) ? null : cursor.getInt(offset + 4));
entity.setMessage(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
}
/** @inheritdoc */
@Override
protected Long updateKeyAfterInsert(SportInfoModel entity, long rowId) {
entity.setId(rowId);
return rowId;
}
/** @inheritdoc */
@Override
public Long getKey(SportInfoModel entity) {
if(entity != null) {
return entity.getId();
} else {
return null;
}
}
/** @inheritdoc */
@Override
protected boolean isEntityUpdateable() {
return true;
}
}
|
[
"1026452140@qq.com"
] |
1026452140@qq.com
|
9810af2d9d5c34e87b6e3fe87106e89a57d592e6
|
c7cfe234c04cc296a38133acc9ad8fbf579adf3a
|
/src/test/java/org/jabref/gui/externalfiletype/ExternalFileTypeTest.java
|
5ac0251c1470ea75400f7d694d4618b314f6bb05
|
[
"MIT",
"LicenseRef-scancode-free-unknown"
] |
permissive
|
cassianomaia/JabRef-ES2
|
4c02891cf1fa671e82ff64dcaed3eac01c4fcbf6
|
2fb2a62ff5bb57407fc407b1380e717e4ce1ad5e
|
refs/heads/master
| 2020-03-18T06:38:24.854070
| 2018-07-10T13:47:58
| 2018-07-10T13:47:58
| 134,407,216
| 2
| 3
|
MIT
| 2018-07-10T13:47:59
| 2018-05-22T11:46:21
|
Java
|
UTF-8
|
Java
| false
| false
| 852
|
java
|
package org.jabref.gui.externalfiletype;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertNotNull;
public class ExternalFileTypeTest {
@Test
public void getOpenWithApplicationMustNotReturnNull() throws Exception {
ExternalFileType type = new ExternalFileType(null, null, null, null, null, null);
assertNotNull(type.getOpenWithApplication());
}
@Test
public void getExtensionMustNotReturnNull() throws Exception {
ExternalFileType type = new ExternalFileType(null, null, null, null, null, null);
assertNotNull(type.getExtension());
}
@Test
public void getMimeTypeMustNotReturnNull() throws Exception {
ExternalFileType type = new ExternalFileType(null, null, null, null, null, null);
assertNotNull(type.getMimeType());
}
}
|
[
"cassmala@gmail.com"
] |
cassmala@gmail.com
|
a4f7b5c9dc630f36a6e9fdf8d29e36aee53c23bf
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-14554-1-26-MOEAD-WeightedSum:TestLen:CallDiversity/org/xwiki/notifications/internal/email/AbstractMimeMessageIterator_ESTest_scaffolding.java
|
51e8c4149883ebb750e92aa4aa37b6ae11242368
|
[] |
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
| 2,970
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Tue Apr 07 23:17:03 UTC 2020
*/
package org.xwiki.notifications.internal.email;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class AbstractMimeMessageIterator_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.xwiki.notifications.internal.email.AbstractMimeMessageIterator";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(AbstractMimeMessageIterator_ESTest_scaffolding.class.getClassLoader() ,
"org.xwiki.rendering.block.AbstractBlock",
"org.xwiki.mail.MailSenderConfiguration",
"org.xwiki.component.annotation.Component",
"org.xwiki.model.reference.EntityReference",
"org.xwiki.rendering.block.ImageBlock",
"org.xwiki.notifications.internal.email.NotificationUserIterator",
"org.xwiki.bridge.DocumentAccessBridge",
"org.xwiki.rendering.block.Block",
"org.xwiki.mail.MimeMessageFactory",
"org.xwiki.notifications.internal.email.PeriodicMimeMessageIterator",
"org.xwiki.notifications.NotificationManager",
"org.xwiki.component.descriptor.ComponentInstantiationStrategy",
"org.xwiki.model.reference.DocumentReference",
"org.xwiki.notifications.email.NotificationEmailRenderer",
"org.xwiki.component.annotation.InstantiationStrategy",
"org.xwiki.notifications.NotificationException",
"org.xwiki.model.reference.EntityReferenceSerializer",
"org.xwiki.notifications.internal.email.AbstractMimeMessageIterator"
);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
f255677ad3f0a6d19f90300fd0522b61f7aba06c
|
5189b0e82eed58b9e1de64a0c879cdf70552e2b3
|
/app/src/main/java/com/jiaying/workstation/db/DataPreference.java
|
73908615166fe43afc0046773798ff5278aaf557
|
[] |
no_license
|
libo2007/blessedMobileOffice-lb3
|
6af8f91acd387fe37bd6ed8016e04b5ab42cdbea
|
4b3fcae95aa4a969a5095013c105561c1bf48138
|
refs/heads/master
| 2021-01-13T15:12:28.937798
| 2016-12-16T07:54:26
| 2016-12-16T07:54:26
| 76,218,797
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,013
|
java
|
package com.jiaying.workstation.db;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by hipil on 2016/5/17.
*/
public class DataPreference implements IdataPreference {
private Context con;
private SharedPreferences setting;
private SharedPreferences.Editor editor;
public DataPreference(Context context) {
this.con = context;
this.setting = this.con.getSharedPreferences("preference_name", Context.MODE_PRIVATE);
this.editor = setting.edit();
}
// 读接口
@Override
public boolean readBoolean(String key) {
boolean b = this.setting.getBoolean(key, true);
return b;
}
@Override
public double readDouble(String key) {
return this.setting.getFloat(key, -0.1f);
}
@Override
public float readFloat(String key) {
return this.setting.getFloat(key, -0.1f);
}
@Override
public int readInt(String key) {
return this.setting.getInt(key, -1);
}
@Override
public long readLong(String key) {
return this.setting.getLong(key, -1);
}
@Override
public String readStr(String key) {
return this.setting.getString(key, "wrong");
}
// 写接口
@Override
public void writeBoolean(String key, boolean b) {
this.editor.putBoolean(key, b);
}
@Override
public void writeDouble(String key, double d) {
this.editor.putFloat(key, (float) d);
}
@Override
public void writeFloat(String key, float f) {
this.editor.putFloat(key, f);
}
@Override
public void writeInt(String key, int i) {
this.editor.putInt(key, i);
}
@Override
public void writeLong(String key, long l) {
this.editor.putLong(key, l);
}
@Override
public void writeStr(String key, String str) {
this.editor.putString(key, str);
}
@Override
public void commit() {
this.editor.commit();
}
}
|
[
"353510746@qq.com"
] |
353510746@qq.com
|
adc532cf8544df2c4664890f74016f390cc664fb
|
bcf03d43318239f6242e53e0bdd3c4753c08fc79
|
/java/defpackage/rn.java
|
2cf3326316e1d5b0ec4ff80811a099e003bd2ede
|
[] |
no_license
|
morristech/Candid
|
24699d45f9efb08787316154d05ad5e6a7a181a5
|
102dd9504cac407326b67ca7a36df8adf6a8b450
|
refs/heads/master
| 2021-01-22T21:07:12.067146
| 2016-12-22T18:40:30
| 2016-12-22T18:40:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 494
|
java
|
package defpackage;
import com.crashlytics.android.answers.SessionEvent.a;
import java.io.IOException;
/* compiled from: DisabledSessionAnalyticsManagerStrategy */
class rn implements ry {
rn() {
}
public void a(and analyticsSettingsData, String protocolAndHostOverride) {
}
public void a(a builder) {
}
public void a() {
}
public void b() {
}
public boolean c() throws IOException {
return false;
}
public void d() {
}
}
|
[
"admin@timo.de.vc"
] |
admin@timo.de.vc
|
b5b192f58501e5dac0210d644d10081f8c578aa0
|
4b2dbd6b98f20714200f7be6a79ee702dc2152f7
|
/jmetal-core/src/main/java/org/uma/jmetal/problem/impl/AbstractContinuousProblem.java
|
caa3cbd671797f5eee7048e2ea011f53322c2609
|
[] |
no_license
|
jnietogit/jMetal
|
23d32f32853808adf124b9ebad77b1d8678d7d56
|
6ba6b3f6d6aed80fdec531cbd54c86a8d849f61b
|
refs/heads/master
| 2020-12-26T00:24:45.994395
| 2014-11-21T13:22:31
| 2014-11-21T13:22:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 931
|
java
|
package org.uma.jmetal.problem.impl;
import org.uma.jmetal.solution.DoubleSolution;
import org.uma.jmetal.problem.ContinuousProblem;
import org.uma.jmetal.solution.impl.GenericDoubleSolution;
import java.util.List;
public abstract class AbstractContinuousProblem extends AbstractGenericProblem<DoubleSolution>
implements ContinuousProblem {
private List<Double> lowerLimit ;
private List<Double> upperLimit ;
/* Getters */
@Override
public Double getUpperBound(int index) {
return upperLimit.get(index);
}
@Override
public Double getLowerBound(int index) {
return lowerLimit.get(index);
}
/* Setters */
protected void setLowerLimit(List<Double> lowerLimit) {
this.lowerLimit = lowerLimit;
}
protected void setUpperLimit(List<Double> upperLimit) {
this.upperLimit = upperLimit;
}
@Override
public DoubleSolution createSolution() {
return new GenericDoubleSolution(this) ;
}
}
|
[
"ajnebro@outlook.com"
] |
ajnebro@outlook.com
|
5b1bdf2fd67533984e9e65c461472047932ceeb5
|
038a65290dfde603569ddf9a9c79aa2984244871
|
/Base/src/main/java/com/alex/baseJava/proxy/cglib/UserDao.java
|
ab3cdb5a8b50687dd544cc4a9d837cbbe54b2c82
|
[] |
no_license
|
MyAmbitious/java-
|
9e969bf0ad2af810176e3a06895166b85bef05b8
|
13d94a34555d9c05b20e3180311d54da18b41fa1
|
refs/heads/master
| 2021-06-27T22:37:47.853177
| 2019-11-29T10:01:19
| 2019-11-29T10:01:19
| 219,614,320
| 0
| 0
| null | 2021-04-26T19:39:52
| 2019-11-04T23:12:39
|
Java
|
UTF-8
|
Java
| false
| false
| 139
|
java
|
package com.alex.baseJava.proxy.cglib;
public class UserDao{
public void save() {
System.out.println("保存数据");
}
}
|
[
"429384379@qq.com"
] |
429384379@qq.com
|
620e96b65b1de3288ae3d3e9b3fd266bd4816144
|
244055283c1165d6e92809413a3e4b63adda1140
|
/workcraft/MpsatVerificationPlugin/src/org/workcraft/plugins/mpsat_verification/commands/MutexImplementabilityVerificationCommand.java
|
4c4133add380ab78feba0610a4252800f6061346
|
[
"MIT"
] |
permissive
|
anirban59/workcraft
|
b767b039e9cb32ee2202e5169b5ad289a868922a
|
2e5fa4456f0f836261327db814894b1ebf0600dd
|
refs/heads/master
| 2023-03-19T11:17:19.874699
| 2022-08-19T17:33:36
| 2022-08-19T17:33:36
| 229,024,562
| 0
| 0
|
MIT
| 2019-12-19T09:51:38
| 2019-12-19T09:51:37
| null |
UTF-8
|
Java
| false
| false
| 2,968
|
java
|
package org.workcraft.plugins.mpsat_verification.commands;
import org.workcraft.Framework;
import org.workcraft.commands.AbstractVerificationCommand;
import org.workcraft.commands.ScriptableCommand;
import org.workcraft.plugins.mpsat_verification.presets.VerificationParameters;
import org.workcraft.plugins.mpsat_verification.tasks.CombinedChainResultHandlingMonitor;
import org.workcraft.plugins.mpsat_verification.tasks.CombinedChainTask;
import org.workcraft.plugins.mpsat_verification.utils.MpsatUtils;
import org.workcraft.plugins.mpsat_verification.utils.ReachUtils;
import org.workcraft.plugins.stg.Mutex;
import org.workcraft.plugins.stg.Stg;
import org.workcraft.plugins.stg.StgModel;
import org.workcraft.plugins.stg.utils.MutexUtils;
import org.workcraft.tasks.Result;
import org.workcraft.tasks.TaskManager;
import org.workcraft.utils.WorkspaceUtils;
import org.workcraft.workspace.WorkspaceEntry;
import java.util.Collection;
import java.util.List;
public class MutexImplementabilityVerificationCommand extends AbstractVerificationCommand implements ScriptableCommand<Boolean> {
@Override
public String getDisplayName() {
return "Mutex place implementability [MPSat]";
}
@Override
public boolean isApplicableTo(WorkspaceEntry we) {
return WorkspaceUtils.isApplicable(we, StgModel.class);
}
@Override
public int getPriority() {
return 4;
}
@Override
public Position getPosition() {
return Position.TOP;
}
@Override
public void run(WorkspaceEntry we) {
CombinedChainResultHandlingMonitor monitor = new CombinedChainResultHandlingMonitor(we, true);
queueVerification(we, monitor);
}
@Override
public Boolean execute(WorkspaceEntry we) {
CombinedChainResultHandlingMonitor monitor = new CombinedChainResultHandlingMonitor(we, false);
queueVerification(we, monitor);
return monitor.waitForHandledResult();
}
private void queueVerification(WorkspaceEntry we, CombinedChainResultHandlingMonitor monitor) {
if (!isApplicableTo(we)) {
monitor.isFinished(Result.cancel());
return;
}
Stg stg = WorkspaceUtils.getAs(we, Stg.class);
if (!MpsatUtils.mutexStructuralCheck(stg, false)) {
monitor.isFinished(Result.cancel());
return;
}
Framework framework = Framework.getInstance();
TaskManager manager = framework.getTaskManager();
Collection<Mutex> mutexes = MutexUtils.getMutexes(stg);
MutexUtils.logInfoPossiblyImplementableMutex(mutexes);
List<VerificationParameters> verificationParametersList = ReachUtils.getMutexImplementabilityParameters(mutexes);
CombinedChainTask task = new CombinedChainTask(we, verificationParametersList);
String description = MpsatUtils.getToolchainDescription(we.getTitle());
manager.queue(task, description, monitor);
}
}
|
[
"danilovesky@gmail.com"
] |
danilovesky@gmail.com
|
62dd20395956340d75ac0c805e551ae80a6bf429
|
ad665d0a2f4ec26c13ac07c858eca0b5c3235a32
|
/Examples/src/main/java/com/aspose/cells/examples/articles/SetPictureAsBackgroundFillInChart.java
|
549a70a4ae61c6234725cc19ef49a173b509555e
|
[
"MIT"
] |
permissive
|
g29times/Aspose.Cells-for-Java
|
8683bf9cfd9cd011c6a02bf9fc58ee3d246536b4
|
8607aa1db706e5f890e17ae390758da7ff1a3ccc
|
refs/heads/master
| 2021-01-17T22:47:54.779124
| 2016-09-02T05:56:32
| 2016-09-02T05:56:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,156
|
java
|
package com.aspose.cells.examples.articles;
import java.io.FileInputStream;
import com.aspose.cells.Cells;
import com.aspose.cells.Chart;
import com.aspose.cells.ChartType;
import com.aspose.cells.Color;
import com.aspose.cells.Legend;
import com.aspose.cells.LegendPositionType;
import com.aspose.cells.SheetType;
import com.aspose.cells.Workbook;
import com.aspose.cells.Worksheet;
import com.aspose.cells.examples.Utils;
import java.io.*;
public class SetPictureAsBackgroundFillInChart {
public static void main(String[] args) throws Exception {
// ExStart:SetPictureAsBackgroundFillInChart
// The path to the documents directory.
String dataDir = Utils.getDataDir(SetPictureAsBackgroundFillInChart.class);
// Create a new Workbook.
Workbook workbook = new Workbook();
// Get the first worksheet.
Worksheet sheet = workbook.getWorksheets().get(0);
// Set the name of worksheet
sheet.setName("Data");
// Get the cells collection in the sheet.
Cells cells = workbook.getWorksheets().get(0).getCells();
// Put some values into a cells of the Data sheet.
cells.get("A1").putValue("Region");
cells.get("A2").putValue("France");
cells.get("A3").putValue("Germany");
cells.get("A4").putValue("England");
cells.get("A5").putValue("Sweden");
cells.get("A6").putValue("Italy");
cells.get("A7").putValue("Spain");
cells.get("A8").putValue("Portugal");
cells.get("B1").putValue("Sale");
cells.get("B2").putValue(70000);
cells.get("B3").putValue(55000);
cells.get("B4").putValue(30000);
cells.get("B5").putValue(40000);
cells.get("B6").putValue(35000);
cells.get("B7").putValue(32000);
cells.get("B8").putValue(10000);
// Add a chart sheet.
int sheetIndex = workbook.getWorksheets().add(SheetType.CHART);
sheet = workbook.getWorksheets().get(sheetIndex);
// Set the name of worksheet
sheet.setName("Chart");
// Create chart
int chartIndex = 0;
chartIndex = sheet.getCharts().add(ChartType.COLUMN, 1, 1, 25, 10);
Chart chart = sheet.getCharts().get(chartIndex);
// Set some properties of chart plot area. To set a picture as fill format and make the border invisible.
File file = new File(dataDir + "aspose-logo.png");
byte[] data = new byte[(int) file.length()];
FileInputStream fis = new FileInputStream(file);
fis.read(data);
chart.getPlotArea().getArea().getFillFormat().setImageData(data);
chart.getPlotArea().getBorder().setVisible(false);
// Set properties of chart title
chart.getTitle().setText("Sales By Region");
chart.getTitle().getFont().setColor(Color.getBlue());
chart.getTitle().getFont().setBold(true);
chart.getTitle().getFont().setSize(12);
// Set properties of nseries
chart.getNSeries().add("Data!B2:B8", true);
chart.getNSeries().setCategoryData("Data!A2:A8");
chart.getNSeries().setColorVaried(true);
// Set the Legend.
Legend legend = chart.getLegend();
legend.setPosition(LegendPositionType.TOP);
// Save the excel file
workbook.save(dataDir + "column_chart.xls");
// ExEnd:SetPictureAsBackgroundFillInChart
}
}
|
[
"fahadadeel@gmail.com"
] |
fahadadeel@gmail.com
|
41a70d295c7b98d3f7b8c0a648469c453984468e
|
a7b868c8c81984dbcb17c1acc09c0f0ab8e36c59
|
/src/main/java/com/alipay/api/domain/InsLiability.java
|
f79d86ff44fbfac2e43002c5b5a4acd38b51cbb1
|
[
"Apache-2.0"
] |
permissive
|
1755616537/alipay-sdk-java-all
|
a7ebd46213f22b866fa3ab20c738335fc42c4043
|
3ff52e7212c762f030302493aadf859a78e3ebf7
|
refs/heads/master
| 2023-02-26T01:46:16.159565
| 2021-02-02T01:54:36
| 2021-02-02T01:54:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,454
|
java
|
package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 险种责任
*
* @author auto create
* @since 1.0, 2019-12-09 15:22:25
*/
public class InsLiability extends AlipayObject {
private static final long serialVersionUID = 8524129318321111837L;
/**
* 保额
*/
@ApiField("coverage")
private String coverage;
/**
* 是否可以编辑,0-可选; 1-不可选,不支持; 2-必选,目前不打开
*/
@ApiField("disabled")
private String disabled;
/**
* 不计免赔 0,1,2
*/
@ApiField("iop")
private String iop;
/**
* 不计免赔保费
*/
@ApiField("iop_premium")
private String iopPremium;
/**
* 责任描述
*/
@ApiField("liability_desc")
private String liabilityDesc;
/**
* 责任名称
*/
@ApiField("liability_name")
private String liabilityName;
/**
* 责任编码
*/
@ApiField("liability_no")
private String liabilityNo;
/**
* 责任保费
*/
@ApiField("liability_premium")
private String liabilityPremium;
/**
* 责任险种比率
*/
@ApiField("liability_rates")
private String liabilityRates;
/**
* options
*/
@ApiListField("options")
@ApiField("ins_option")
private List<InsOption> options;
/**
* 责任保费
*/
@ApiField("premium")
private String premium;
/**
* 保额
*/
@ApiField("sum_insured")
private InsSumInsured sumInsured;
public String getCoverage() {
return this.coverage;
}
public void setCoverage(String coverage) {
this.coverage = coverage;
}
public String getDisabled() {
return this.disabled;
}
public void setDisabled(String disabled) {
this.disabled = disabled;
}
public String getIop() {
return this.iop;
}
public void setIop(String iop) {
this.iop = iop;
}
public String getIopPremium() {
return this.iopPremium;
}
public void setIopPremium(String iopPremium) {
this.iopPremium = iopPremium;
}
public String getLiabilityDesc() {
return this.liabilityDesc;
}
public void setLiabilityDesc(String liabilityDesc) {
this.liabilityDesc = liabilityDesc;
}
public String getLiabilityName() {
return this.liabilityName;
}
public void setLiabilityName(String liabilityName) {
this.liabilityName = liabilityName;
}
public String getLiabilityNo() {
return this.liabilityNo;
}
public void setLiabilityNo(String liabilityNo) {
this.liabilityNo = liabilityNo;
}
public String getLiabilityPremium() {
return this.liabilityPremium;
}
public void setLiabilityPremium(String liabilityPremium) {
this.liabilityPremium = liabilityPremium;
}
public String getLiabilityRates() {
return this.liabilityRates;
}
public void setLiabilityRates(String liabilityRates) {
this.liabilityRates = liabilityRates;
}
public List<InsOption> getOptions() {
return this.options;
}
public void setOptions(List<InsOption> options) {
this.options = options;
}
public String getPremium() {
return this.premium;
}
public void setPremium(String premium) {
this.premium = premium;
}
public InsSumInsured getSumInsured() {
return this.sumInsured;
}
public void setSumInsured(InsSumInsured sumInsured) {
this.sumInsured = sumInsured;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
a3a05b746a7ed06229af3c0edd7457f43ffac7d7
|
5d49e39b3d6473b01b53b1c50397b2ab3e2c47b3
|
/Enterprise Projects/ips-outward-producer/src/main/java/com/combank/ips/outward/producer/model/pacs_002_001/DiscountAmountType1Choice.java
|
18811d594bed66a0712852c6dae0b1f84b71bda5
|
[] |
no_license
|
ThivankaWijesooriya/Developer-Mock
|
54524e4319457fddc1050bfdb0b13c39c54017aa
|
3acbaa98ff4b64fe226bcef0f3e69d6738bdbf65
|
refs/heads/master
| 2023-03-02T04:14:18.253449
| 2023-01-28T05:54:06
| 2023-01-28T05:54:06
| 177,391,319
| 0
| 0
| null | 2020-01-08T17:26:30
| 2019-03-24T08:56:29
|
CSS
|
UTF-8
|
Java
| false
| false
| 2,445
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2022.08.22 at 12:41:17 AM IST
//
package com.combank.ips.outward.producer.model.pacs_002_001;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for DiscountAmountType1Choice complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="DiscountAmountType1Choice">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice>
* <element name="Cd" type="{urn:iso:std:iso:20022:tech:xsd:pacs.002.001.11}ExternalDiscountAmountType1Code"/>
* <element name="Prtry" type="{urn:iso:std:iso:20022:tech:xsd:pacs.002.001.11}Max35Text"/>
* </choice>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DiscountAmountType1Choice", propOrder = {
"cd",
"prtry"
})
public class DiscountAmountType1Choice {
@XmlElement(name = "Cd")
protected String cd;
@XmlElement(name = "Prtry")
protected String prtry;
/**
* Gets the value of the cd property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCd() {
return cd;
}
/**
* Sets the value of the cd property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCd(String value) {
this.cd = value;
}
/**
* Gets the value of the prtry property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPrtry() {
return prtry;
}
/**
* Sets the value of the prtry property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPrtry(String value) {
this.prtry = value;
}
}
|
[
"thivankawijesooriya@gmail.com"
] |
thivankawijesooriya@gmail.com
|
765c5bc487089a30e6e350b7cb387ee06812270f
|
323c723bdbdc9bdf5053dd27a11b1976603609f5
|
/nssicc/nssicc_web/src/main/java/biz/belcorp/ssicc/web/spusicc/love/form/ProcesoLOVEjecutarProcesosForm.java
|
2d272efd809346813f1199a41fca835c35c542b4
|
[] |
no_license
|
cbazalar/PROYECTOS_PROPIOS
|
adb0d579639fb72ec7871334163d3fef00123a1c
|
3ba232d1f775afd07b13c8246d0a8ac892e93167
|
refs/heads/master
| 2021-01-11T03:38:06.084970
| 2016-10-24T01:33:00
| 2016-10-24T01:33:00
| 71,429,267
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,858
|
java
|
package biz.belcorp.ssicc.web.spusicc.love.form;
import java.io.Serializable;
import java.util.Date;
import biz.belcorp.ssicc.dao.Constants;
import biz.belcorp.ssicc.web.framework.base.form.BaseInterfazForm;
public class ProcesoLOVEjecutarProcesosForm extends BaseInterfazForm implements Serializable{
private static final long serialVersionUID = -5625054494513750043L;
private String codigoMarca;
private String codigoCanal;
private String codigoPeriodo;
private String fechaFacturacion;
private Date fechaFacturacionD;
private String codigoRegion;
private String[] zonaList;
private String indicadorProceso;
public ProcesoLOVEjecutarProcesosForm() {
this.codigoMarca = Constants.CODIGO_MARCA_DEFAULT;
this.codigoCanal = Constants.CODIGO_CANAL_DEFAULT;
}
/**
* @return the codigoMarca
*/
public String getCodigoMarca() {
return codigoMarca;
}
/**
* @param codigoMarca the codigoMarca to set
*/
public void setCodigoMarca(String codigoMarca) {
this.codigoMarca = codigoMarca;
}
/**
* @return the codigoCanal
*/
public String getCodigoCanal() {
return codigoCanal;
}
/**
* @param codigoCanal the codigoCanal to set
*/
public void setCodigoCanal(String codigoCanal) {
this.codigoCanal = codigoCanal;
}
/**
* @return the codigoPeriodo
*/
public String getCodigoPeriodo() {
return codigoPeriodo;
}
/**
* @param codigoPeriodo the codigoPeriodo to set
*/
public void setCodigoPeriodo(String codigoPeriodo) {
this.codigoPeriodo = codigoPeriodo;
}
/**
* @return the fechaFacturacion
*/
public String getFechaFacturacion() {
return fechaFacturacion;
}
/**
* @param fechaFacturacion the fechaFacturacion to set
*/
public void setFechaFacturacion(String fechaFacturacion) {
this.fechaFacturacion = fechaFacturacion;
}
/**
* @return the codigoRegion
*/
public String getCodigoRegion() {
return codigoRegion;
}
/**
* @param codigoRegion the codigoRegion to set
*/
public void setCodigoRegion(String codigoRegion) {
this.codigoRegion = codigoRegion;
}
/**
* @return the zonaList
*/
public String[] getZonaList() {
return zonaList;
}
/**
* @param zonaList the zonaList to set
*/
public void setZonaList(String[] zonaList) {
this.zonaList = zonaList;
}
/**
* @return the indicadorProceso
*/
public String getIndicadorProceso() {
return indicadorProceso;
}
/**
* @param indicadorProceso the indicadorProceso to set
*/
public void setIndicadorProceso(String indicadorProceso) {
this.indicadorProceso = indicadorProceso;
}
/**
* @return the fechaFacturacionD
*/
public Date getFechaFacturacionD() {
return fechaFacturacionD;
}
/**
* @param fechaFacturacionD the fechaFacturacionD to set
*/
public void setFechaFacturacionD(Date fechaFacturacionD) {
this.fechaFacturacionD = fechaFacturacionD;
}
}
|
[
"cbazalarlarosa@gmail.com"
] |
cbazalarlarosa@gmail.com
|
178aa45a0f6df0dd7ea2da337399bf82854c4d7b
|
a23b277bd41edbf569437bdfedad22c2d7733dbe
|
/codility/FrogRiverOne/Solution.java
|
b2b8c567c06083bd64fb5310403454ff7ecbac11
|
[] |
no_license
|
alexandrofernando/java
|
155ed38df33ae8dae641d327be3c6c355b28082a
|
a783407eaba29a88123152dd5b2febe10eb7bf1d
|
refs/heads/master
| 2021-01-17T06:49:57.241130
| 2019-07-19T11:34:44
| 2019-07-19T11:34:44
| 52,783,678
| 1
| 0
| null | 2017-07-03T21:46:00
| 2016-02-29T10:38:28
|
Java
|
UTF-8
|
Java
| false
| false
| 374
|
java
|
package FrogRiverOne;
// http://codility.com/demo/results/demoF3MW9M-XJH/
public class Solution {
public int solution(int X, int[] A) {
boolean[] appears = new boolean[X + 1];
int remain = X;
for (int i = 0; i < A.length; i++) {
if (!appears[A[i]]) {
appears[A[i]] = true;
remain--;
if (remain == 0) {
return i;
}
}
}
return -1;
}
}
|
[
"alexandrofernando@gmail.com"
] |
alexandrofernando@gmail.com
|
0bb8669e0e0b0154e9080199f9c0f2e4bcfd2a0f
|
574b8b00a514869da9662ef09609e5baa966812c
|
/src/main/java/com/google/devtools/build/lib/actions/ActionRegistry.java
|
8755879758e31ebbbf9c7f1390476d988537739c
|
[
"Apache-2.0"
] |
permissive
|
andrefmrocha/bazel
|
f42504be6f25a0c93db20ee7658f9628b0b97f9a
|
0d2e409ec8eeadfde90b1860935af65d76c90966
|
refs/heads/master
| 2022-12-06T01:33:11.556618
| 2015-12-04T22:31:41
| 2015-12-04T22:31:41
| 259,613,267
| 0
| 0
|
Apache-2.0
| 2020-04-28T11:08:20
| 2020-04-28T11:08:20
| null |
UTF-8
|
Java
| false
| false
| 1,393
|
java
|
// Copyright 2014 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.devtools.build.lib.actions;
import com.google.common.annotations.VisibleForTesting;
/**
* An interface for registering actions.
*/
public interface ActionRegistry {
/**
* This method notifies the registry new actions.
*/
void registerAction(Action... actions);
/**
* Get the (Label and BuildConfiguration) of the ConfiguredTarget ultimately responsible for all
* these actions.
*/
ArtifactOwner getOwner();
/**
* An action registry that does exactly nothing.
*/
@VisibleForTesting
public static final ActionRegistry NOP = new ActionRegistry() {
@Override
public void registerAction(Action... actions) {}
@Override
public ArtifactOwner getOwner() {
return ArtifactOwner.NULL_OWNER;
}
};
}
|
[
"hanwen@google.com"
] |
hanwen@google.com
|
fdc8bf1d987a197d7b1b24c5a2a2591c93d900d2
|
316ad76c4497c506732220afc51d2752c05daa54
|
/java-se-training/src/main/java/functional/SortByName.java
|
803362ea04aa6bfb8c7d84fd705ffa54f995fdc5
|
[] |
no_license
|
Training360/java-se-2021-04-19
|
1a0e3c129100cf85cd4acf43e4b8f66240b989cb
|
1f2347eb4a26c29bf3c9a25b5fd47dd5f4ee8c9e
|
refs/heads/master
| 2023-04-21T20:14:48.308754
| 2021-04-26T10:02:53
| 2021-04-26T10:02:53
| 359,448,562
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 233
|
java
|
package functional;
import java.util.Comparator;
public class SortByName implements Comparator<Trainer> {
@Override
public int compare(Trainer o1, Trainer o2) {
return o1.getName().compareTo(o2.getName());
}
}
|
[
"viczian.istvan@gmail.com"
] |
viczian.istvan@gmail.com
|
899176ca0b4e1955fc69d24f37c4fa5ab5c26986
|
b00c54389a95d81a22e361fa9f8bdf5a2edc93e3
|
/external/conscrypt/src/main/java/org/conscrypt/OpenSSLContextImpl.java
|
6cbd19e906b5672986f54d5a10e222c2eac4cfba
|
[] |
no_license
|
mirek190/x86-android-5.0
|
9d1756fa7ff2f423887aa22694bd737eb634ef23
|
eb1029956682072bb7404192a80214189f0dc73b
|
refs/heads/master
| 2020-05-27T01:09:51.830208
| 2015-10-07T22:47:36
| 2015-10-07T22:47:36
| 41,942,802
| 15
| 20
| null | 2020-03-09T00:21:03
| 2015-09-05T00:11:19
| null |
UTF-8
|
Java
| false
| false
| 5,105
|
java
|
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.conscrypt;
import java.io.IOException;
import java.security.GeneralSecurityException;
import java.security.KeyManagementException;
import java.security.SecureRandom;
import javax.net.ssl.KeyManager;
import javax.net.ssl.SSLContextSpi;
import javax.net.ssl.SSLEngine;
import javax.net.ssl.SSLServerSocketFactory;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.TrustManager;
/**
* OpenSSL-backed SSLContext service provider interface.
*/
public class OpenSSLContextImpl extends SSLContextSpi {
/**
* The default SSLContextImpl for use with SSLContext.getInstance("Default").
* Protected by the DefaultSSLContextImpl.class monitor.
*/
private static DefaultSSLContextImpl DEFAULT_SSL_CONTEXT_IMPL;
/** Client session cache. */
private final ClientSessionContext clientSessionContext;
/** Server session cache. */
private final ServerSessionContext serverSessionContext;
protected SSLParametersImpl sslParameters;
public OpenSSLContextImpl() {
clientSessionContext = new ClientSessionContext();
serverSessionContext = new ServerSessionContext();
}
/**
* Constuctor for the DefaultSSLContextImpl.
* @param dummy is null, used to distinguish this case from the
* public OpenSSLContextImpl() constructor.
*/
protected OpenSSLContextImpl(DefaultSSLContextImpl dummy)
throws GeneralSecurityException, IOException {
synchronized (DefaultSSLContextImpl.class) {
if (DEFAULT_SSL_CONTEXT_IMPL == null) {
clientSessionContext = new ClientSessionContext();
serverSessionContext = new ServerSessionContext();
DEFAULT_SSL_CONTEXT_IMPL = (DefaultSSLContextImpl)this;
} else {
clientSessionContext = DEFAULT_SSL_CONTEXT_IMPL.engineGetClientSessionContext();
serverSessionContext = DEFAULT_SSL_CONTEXT_IMPL.engineGetServerSessionContext();
}
sslParameters = new SSLParametersImpl(DEFAULT_SSL_CONTEXT_IMPL.getKeyManagers(),
DEFAULT_SSL_CONTEXT_IMPL.getTrustManagers(),
null,
clientSessionContext,
serverSessionContext);
}
}
/**
* Initializes this {@code SSLContext} instance. All of the arguments are
* optional, and the security providers will be searched for the required
* implementations of the needed algorithms.
*
* @param kms the key sources or {@code null}
* @param tms the trust decision sources or {@code null}
* @param sr the randomness source or {@code null}
* @throws KeyManagementException if initializing this instance fails
*/
@Override
public void engineInit(KeyManager[] kms, TrustManager[] tms,
SecureRandom sr) throws KeyManagementException {
sslParameters = new SSLParametersImpl(kms, tms, sr,
clientSessionContext, serverSessionContext);
}
@Override
public SSLSocketFactory engineGetSocketFactory() {
if (sslParameters == null) {
throw new IllegalStateException("SSLContext is not initialized.");
}
return new OpenSSLSocketFactoryImpl(sslParameters);
}
@Override
public SSLServerSocketFactory engineGetServerSocketFactory() {
if (sslParameters == null) {
throw new IllegalStateException("SSLContext is not initialized.");
}
return new OpenSSLServerSocketFactoryImpl(sslParameters);
}
@Override
public SSLEngine engineCreateSSLEngine(String host, int port) {
if (sslParameters == null) {
throw new IllegalStateException("SSLContext is not initialized.");
}
SSLParametersImpl p = (SSLParametersImpl) sslParameters.clone();
p.setUseClientMode(false);
return new OpenSSLEngineImpl(host, port, p);
}
@Override
public SSLEngine engineCreateSSLEngine() {
if (sslParameters == null) {
throw new IllegalStateException("SSLContext is not initialized.");
}
SSLParametersImpl p = (SSLParametersImpl) sslParameters.clone();
p.setUseClientMode(false);
return new OpenSSLEngineImpl(p);
}
@Override
public ServerSessionContext engineGetServerSessionContext() {
return serverSessionContext;
}
@Override
public ClientSessionContext engineGetClientSessionContext() {
return clientSessionContext;
}
}
|
[
"mirek190@gmail.com"
] |
mirek190@gmail.com
|
91263dbd5ceb5d768f3f85858e1abcd960c7e4e5
|
22d0e9ddbd960a5868482edca8801401e99adb52
|
/rot-admin/src/main/java/com/rot/service/FormatUtil.java
|
b6c3757a1a837f332a0028e40facec3a411314a8
|
[] |
no_license
|
rusteer/ads
|
b2106d787c185820ad2b6842f58140e478710c67
|
b4c7c7a94c02384fb88e6bcacca027b0e35a8b62
|
refs/heads/master
| 2021-01-20T22:25:34.157962
| 2016-08-04T02:46:40
| 2016-08-04T02:46:40
| 64,896,327
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 303
|
java
|
package com.rot.service;
import java.text.SimpleDateFormat;
import java.util.Date;
public class FormatUtil {
public static String format(Date date) {
return dateFormat.format(date);
}
public static final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
}
|
[
"rusteer@outlook.com"
] |
rusteer@outlook.com
|
c4a515e202595b1f1913f27d749dce5c57b0f753
|
3e654e341345f8228731cac480c38212c65bcb16
|
/src/main/java/com/yahoo/sketches/hll/DirectAuxHashMap.java
|
e146eaead40d09af1b0ee63876524c140018317f
|
[
"Apache-2.0"
] |
permissive
|
Eshcar/sketches-core
|
0459289072ca6d39eb0583f1bca1fd9506340ac0
|
6c0ffaa1ac553e390bd6a711f31362a20eb15d3f
|
refs/heads/master
| 2021-01-11T19:47:33.636106
| 2018-04-27T00:53:42
| 2018-04-27T00:53:42
| 79,396,775
| 0
| 0
|
Apache-2.0
| 2019-01-13T12:58:43
| 2017-01-18T23:53:32
|
Java
|
UTF-8
|
Java
| false
| false
| 6,472
|
java
|
/*
* Copyright 2017, Yahoo! Inc. Licensed under the terms of the
* Apache License 2.0. See LICENSE file at the project root for terms.
*/
package com.yahoo.sketches.hll;
import static com.yahoo.memory.UnsafeUtil.unsafe;
import static com.yahoo.sketches.hll.HllUtil.EMPTY;
import static com.yahoo.sketches.hll.HllUtil.RESIZE_DENOM;
import static com.yahoo.sketches.hll.HllUtil.RESIZE_NUMER;
import static com.yahoo.sketches.hll.PreambleUtil.extractAuxCount;
import static com.yahoo.sketches.hll.PreambleUtil.extractLgArr;
import static com.yahoo.sketches.hll.PreambleUtil.insertAuxCount;
import static com.yahoo.sketches.hll.PreambleUtil.insertLgArr;
import com.yahoo.memory.MemoryRequestServer;
import com.yahoo.memory.WritableMemory;
import com.yahoo.sketches.SketchesArgumentException;
import com.yahoo.sketches.SketchesStateException;
/**
* @author Lee Rhodes
*/
class DirectAuxHashMap implements AuxHashMap {
private final DirectHllArray host; //hosts the Updatable Memory
DirectAuxHashMap(final DirectHllArray host, final boolean initialize) {
this.host = host;
final int initLgArrInts = HllUtil.LG_AUX_ARR_INTS[host.lgConfigK];
if (initialize) {
insertLgArr(host.memObj, host.memAdd, initLgArrInts);
host.wmem.clear(host.auxStart, 4 << initLgArrInts);
} else {
assert extractLgArr(host.memObj, host.memAdd) >= initLgArrInts;
}
}
@Override
public DirectAuxHashMap copy() { //a no-op
return null;
}
@Override
public int getAuxCount() {
return extractAuxCount(host.memObj, host.memAdd);
}
@Override
public int[] getAuxIntArr() {
return null;
}
@Override
public int getCompactSizeBytes() {
return getAuxCount() << 2;
}
@Override
public PairIterator getIterator() {
return new IntMemoryPairIterator(host.mem, host.auxStart, 1 << getLgAuxArrInts(),
host.lgConfigK);
}
@Override
public int getLgAuxArrInts() {
return extractLgArr(host.memObj, host.memAdd);
}
@Override
public int getUpdatableSizeBytes() {
return 4 << getLgAuxArrInts();
}
@Override
public boolean isMemory() {
return true;
}
@Override
public boolean isOffHeap() {
return host.isOffHeap();
}
@Override
public void mustAdd(final int slotNo, final int value) {
final int index = find(host, slotNo);
final int pair = HllUtil.pair(slotNo, value);
if (index >= 0) {
final String pairStr = HllUtil.pairString(pair);
throw new SketchesStateException("Found a slotNo that should not be there: " + pairStr);
}
//Found empty entry
unsafe.putInt(host.memObj, host.memAdd + host.auxStart + (~index << 2), pair);
int auxCount = extractAuxCount(host.memObj, host.memAdd);
insertAuxCount(host.memObj, host.memAdd, ++auxCount);
final int lgAuxArrInts = extractLgArr(host.memObj, host.memAdd);
if ((RESIZE_DENOM * auxCount) > (RESIZE_NUMER * (1 << lgAuxArrInts))) {
grow(host, lgAuxArrInts);
}
}
@Override
public int mustFindValueFor(final int slotNo) {
final int index = find(host, slotNo);
if (index >= 0) {
final int pair = unsafe.getInt(host.memObj, host.memAdd + host.auxStart + (index << 2));
return HllUtil.getValue(pair);
}
throw new SketchesStateException("SlotNo not found: " + slotNo);
}
@Override
public void mustReplace(final int slotNo, final int value) {
final int index = find(host, slotNo);
if (index >= 0) {
unsafe.putInt(host.memObj, host.memAdd + host.auxStart + (index << 2), HllUtil.pair(slotNo, value));
return;
}
final String pairStr = HllUtil.pairString(HllUtil.pair(slotNo, value));
throw new SketchesStateException("Pair not found: " + pairStr);
}
//Searches the Aux arr hash table (embedded in Memory) for an empty or a matching slotNo
// depending on the context.
//If entire entry is empty, returns one's complement of index = found empty.
//If entry contains given slotNo, returns its index = found slotNo.
//Continues searching.
//If the probe comes back to original index, throws an exception.
private static final int find(final DirectHllArray host, final int slotNo) {
final int lgAuxArrInts = extractLgArr(host.memObj, host.memAdd);
assert lgAuxArrInts < host.lgConfigK : lgAuxArrInts;
final int auxInts = 1 << lgAuxArrInts;
final int auxArrMask = auxInts - 1;
final int configKmask = (1 << host.lgConfigK) - 1;
int probe = slotNo & auxArrMask;
final int loopIndex = probe;
do {
final int arrVal = unsafe.getInt(host.memObj, host.memAdd + host.auxStart + (probe << 2));
if (arrVal == EMPTY) {
return ~probe; //empty
}
else if (slotNo == (arrVal & configKmask)) { //found given slotNo
return probe; //return aux array index
}
final int stride = (slotNo >>> lgAuxArrInts) | 1;
probe = (probe + stride) & auxArrMask;
} while (probe != loopIndex);
throw new SketchesArgumentException("Key not found and no empty slots!");
}
private static final void grow(final DirectHllArray host, final int oldLgAuxArrInts) {
final int oldAuxArrInts = 1 << oldLgAuxArrInts;
final int[] oldIntArray = new int[oldAuxArrInts]; //buffer old aux data
host.wmem.getIntArray(host.auxStart, oldIntArray, 0, oldAuxArrInts);
insertLgArr(host.memObj, host.memAdd, oldLgAuxArrInts + 1); //update LgArr field
final long newAuxBytes = oldAuxArrInts << 3;
final long requestBytes = host.auxStart + newAuxBytes;
final long oldCapBytes = host.wmem.getCapacity();
if (requestBytes > oldCapBytes) {
final MemoryRequestServer svr = host.wmem.getMemoryRequestServer();
final WritableMemory newWmem = svr.request(requestBytes);
host.wmem.copyTo(0, newWmem, 0, host.auxStart);
newWmem.clear(host.auxStart, newAuxBytes); //clear space for new aux data
svr.requestClose(host.wmem, newWmem); //old host.wmem is now invalid
host.updateMemory(newWmem);
}
//rehash into larger aux array
final int configKmask = (1 << host.lgConfigK) - 1;
for (int i = 0; i < oldAuxArrInts; i++) {
final int fetched = oldIntArray[i];
if (fetched != EMPTY) {
//find empty in new array
final int index = find(host, fetched & configKmask);
unsafe.putInt(host.memObj, host.memAdd + host.auxStart + (~index << 2), fetched);
}
}
}
//static void println(final String s) { System.out.println(s); }
}
|
[
"lrhodes@yahoo-inc.com"
] |
lrhodes@yahoo-inc.com
|
81bf84e714079d906662ac484d4b0237fe7e22c6
|
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
|
/sources/com/voximplant/sdk/internal/proto/M_AcceptReInvite.java
|
6e622521b2c380ac30db95890870bf8b25a79bcf
|
[] |
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
| 529
|
java
|
package com.voximplant.sdk.internal.proto;
import java.util.LinkedHashMap;
import java.util.Map;
import org.webrtc.SessionDescription;
public class M_AcceptReInvite extends WSMessageCall {
public M_AcceptReInvite(String str, Map<String, String> map, SessionDescription sessionDescription, Map<String, Map<String, String>> map2) {
this.params.add(str);
this.params.add(map == null ? new LinkedHashMap<>() : map);
this.params.add(sessionDescription.description);
this.params.add(map2);
}
}
|
[
"auchhunter@gmail.com"
] |
auchhunter@gmail.com
|
e43c5a5d3e4c0b6dd2eb649172d99e366eb373e3
|
146a30bee123722b5b32c0022c280bbe7d9b6850
|
/depsWorkSpace/bc-java-master/core/src/main/java/org/mightyfish/asn1/x509/V2Form.java
|
e89e48c30669c1128ab73161e135d8cdcf3208cb
|
[
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
GLC-Project/java-experiment
|
1d5aa7b9974c8ae572970ce6a8280e6a65417837
|
b03b224b8d5028dd578ca0e7df85d7d09a26688e
|
refs/heads/master
| 2020-12-23T23:47:57.341646
| 2016-02-13T16:20:45
| 2016-02-13T16:20:45
| 237,313,620
| 0
| 1
| null | 2020-01-30T21:56:54
| 2020-01-30T21:56:53
| null |
UTF-8
|
Java
| false
| false
| 4,025
|
java
|
package org.mightyfish.asn1.x509;
import org.mightyfish.asn1.ASN1EncodableVector;
import org.mightyfish.asn1.ASN1Object;
import org.mightyfish.asn1.ASN1Primitive;
import org.mightyfish.asn1.ASN1Sequence;
import org.mightyfish.asn1.ASN1TaggedObject;
import org.mightyfish.asn1.DERSequence;
import org.mightyfish.asn1.DERTaggedObject;
public class V2Form
extends ASN1Object
{
GeneralNames issuerName;
IssuerSerial baseCertificateID;
ObjectDigestInfo objectDigestInfo;
public static V2Form getInstance(
ASN1TaggedObject obj,
boolean explicit)
{
return getInstance(ASN1Sequence.getInstance(obj, explicit));
}
public static V2Form getInstance(
Object obj)
{
if (obj instanceof V2Form)
{
return (V2Form)obj;
}
else if (obj != null)
{
return new V2Form(ASN1Sequence.getInstance(obj));
}
return null;
}
public V2Form(
GeneralNames issuerName)
{
this(issuerName, null, null);
}
public V2Form(
GeneralNames issuerName,
IssuerSerial baseCertificateID)
{
this(issuerName, baseCertificateID, null);
}
public V2Form(
GeneralNames issuerName,
ObjectDigestInfo objectDigestInfo)
{
this(issuerName, null, objectDigestInfo);
}
public V2Form(
GeneralNames issuerName,
IssuerSerial baseCertificateID,
ObjectDigestInfo objectDigestInfo)
{
this.issuerName = issuerName;
this.baseCertificateID = baseCertificateID;
this.objectDigestInfo = objectDigestInfo;
}
/**
* @deprecated use getInstance().
*/
public V2Form(
ASN1Sequence seq)
{
if (seq.size() > 3)
{
throw new IllegalArgumentException("Bad sequence size: " + seq.size());
}
int index = 0;
if (!(seq.getObjectAt(0) instanceof ASN1TaggedObject))
{
index++;
this.issuerName = GeneralNames.getInstance(seq.getObjectAt(0));
}
for (int i = index; i != seq.size(); i++)
{
ASN1TaggedObject o = ASN1TaggedObject.getInstance(seq.getObjectAt(i));
if (o.getTagNo() == 0)
{
baseCertificateID = IssuerSerial.getInstance(o, false);
}
else if (o.getTagNo() == 1)
{
objectDigestInfo = ObjectDigestInfo.getInstance(o, false);
}
else
{
throw new IllegalArgumentException("Bad tag number: "
+ o.getTagNo());
}
}
}
public GeneralNames getIssuerName()
{
return issuerName;
}
public IssuerSerial getBaseCertificateID()
{
return baseCertificateID;
}
public ObjectDigestInfo getObjectDigestInfo()
{
return objectDigestInfo;
}
/**
* Produce an object suitable for an ASN1OutputStream.
* <pre>
* V2Form ::= SEQUENCE {
* issuerName GeneralNames OPTIONAL,
* baseCertificateID [0] IssuerSerial OPTIONAL,
* objectDigestInfo [1] ObjectDigestInfo OPTIONAL
* -- issuerName MUST be present in this profile
* -- baseCertificateID and objectDigestInfo MUST NOT
* -- be present in this profile
* }
* </pre>
*/
public ASN1Primitive toASN1Primitive()
{
ASN1EncodableVector v = new ASN1EncodableVector();
if (issuerName != null)
{
v.add(issuerName);
}
if (baseCertificateID != null)
{
v.add(new DERTaggedObject(false, 0, baseCertificateID));
}
if (objectDigestInfo != null)
{
v.add(new DERTaggedObject(false, 1, objectDigestInfo));
}
return new DERSequence(v);
}
}
|
[
"a.eslampanah@live.com"
] |
a.eslampanah@live.com
|
02a0f73d3eb085811086ae0a62b4646b7c27361b
|
4e660ecd8dfea06ba2f530eb4589bf6bed669c0c
|
/src/org/tempuri/GetZdsResponse.java
|
d8adf735a3db8a35c69c9e71e26ae270f3bedd84
|
[] |
no_license
|
zhangity/SANMEN
|
58820279f6ae2316d972c1c463ede671b1b2b468
|
3f5f7f48709ae8e53d66b30f9123aed3bcc598de
|
refs/heads/master
| 2020-03-07T14:16:23.069709
| 2018-03-31T15:17:50
| 2018-03-31T15:17:50
| 127,522,589
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,839
|
java
|
/**
* GetZdsResponse.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package org.tempuri;
public class GetZdsResponse implements java.io.Serializable {
private org.tempuri.GetZdsResponseGetZdsResult getZdsResult;
public GetZdsResponse() {
}
public GetZdsResponse(
org.tempuri.GetZdsResponseGetZdsResult getZdsResult) {
this.getZdsResult = getZdsResult;
}
/**
* Gets the getZdsResult value for this GetZdsResponse.
*
* @return getZdsResult
*/
public org.tempuri.GetZdsResponseGetZdsResult getGetZdsResult() {
return getZdsResult;
}
/**
* Sets the getZdsResult value for this GetZdsResponse.
*
* @param getZdsResult
*/
public void setGetZdsResult(org.tempuri.GetZdsResponseGetZdsResult getZdsResult) {
this.getZdsResult = getZdsResult;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof GetZdsResponse)) return false;
GetZdsResponse other = (GetZdsResponse) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.getZdsResult==null && other.getGetZdsResult()==null) ||
(this.getZdsResult!=null &&
this.getZdsResult.equals(other.getGetZdsResult())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getGetZdsResult() != null) {
_hashCode += getGetZdsResult().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(GetZdsResponse.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://tempuri.org/", ">GetZdsResponse"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("getZdsResult");
elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "GetZdsResult"));
elemField.setXmlType(new javax.xml.namespace.QName("http://tempuri.org/", ">>GetZdsResponse>GetZdsResult"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
|
[
"dzyuting@163.com"
] |
dzyuting@163.com
|
867f317b84f59b02aaba66d1aa5624955a824d71
|
833849f69d59c8f9612e5598b48a97b86be52f64
|
/code/iaas/model/src/main/java/io/cattle/platform/core/model/AccountLink.java
|
daaa04ef36498783aefc5cfdb9e16d3864321c79
|
[
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] |
permissive
|
Cerfoglg/cattle
|
cc33b5b933ab5a0199176bbc2d9b83e21a77cc04
|
bcde49dd41381a1b4f3577a38596911277870f6b
|
refs/heads/master
| 2021-01-11T18:27:36.993884
| 2017-06-05T13:52:33
| 2017-06-05T13:52:33
| 79,550,138
| 0
| 0
| null | 2017-01-20T10:34:56
| 2017-01-20T10:34:56
| null |
UTF-8
|
Java
| false
| false
| 4,517
|
java
|
/**
* This class is generated by jOOQ
*/
package io.cattle.platform.core.model;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.3.0" },
comments = "This class is generated by jOOQ")
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
@javax.persistence.Entity
@javax.persistence.Table(name = "account_link", schema = "cattle")
public interface AccountLink extends java.io.Serializable {
/**
* Setter for <code>cattle.account_link.id</code>.
*/
public void setId(java.lang.Long value);
/**
* Getter for <code>cattle.account_link.id</code>.
*/
@javax.persistence.Id
@javax.persistence.Column(name = "id", unique = true, nullable = false, precision = 19)
public java.lang.Long getId();
/**
* Setter for <code>cattle.account_link.name</code>.
*/
public void setName(java.lang.String value);
/**
* Getter for <code>cattle.account_link.name</code>.
*/
@javax.persistence.Column(name = "name", length = 255)
public java.lang.String getName();
/**
* Setter for <code>cattle.account_link.account_id</code>.
*/
public void setAccountId(java.lang.Long value);
/**
* Getter for <code>cattle.account_link.account_id</code>.
*/
@javax.persistence.Column(name = "account_id", precision = 19)
public java.lang.Long getAccountId();
/**
* Setter for <code>cattle.account_link.kind</code>.
*/
public void setKind(java.lang.String value);
/**
* Getter for <code>cattle.account_link.kind</code>.
*/
@javax.persistence.Column(name = "kind", nullable = false, length = 255)
public java.lang.String getKind();
/**
* Setter for <code>cattle.account_link.uuid</code>.
*/
public void setUuid(java.lang.String value);
/**
* Getter for <code>cattle.account_link.uuid</code>.
*/
@javax.persistence.Column(name = "uuid", unique = true, nullable = false, length = 128)
public java.lang.String getUuid();
/**
* Setter for <code>cattle.account_link.description</code>.
*/
public void setDescription(java.lang.String value);
/**
* Getter for <code>cattle.account_link.description</code>.
*/
@javax.persistence.Column(name = "description", length = 1024)
public java.lang.String getDescription();
/**
* Setter for <code>cattle.account_link.state</code>.
*/
public void setState(java.lang.String value);
/**
* Getter for <code>cattle.account_link.state</code>.
*/
@javax.persistence.Column(name = "state", nullable = false, length = 128)
public java.lang.String getState();
/**
* Setter for <code>cattle.account_link.created</code>.
*/
public void setCreated(java.util.Date value);
/**
* Getter for <code>cattle.account_link.created</code>.
*/
@javax.persistence.Column(name = "created")
public java.util.Date getCreated();
/**
* Setter for <code>cattle.account_link.removed</code>.
*/
public void setRemoved(java.util.Date value);
/**
* Getter for <code>cattle.account_link.removed</code>.
*/
@javax.persistence.Column(name = "removed")
public java.util.Date getRemoved();
/**
* Setter for <code>cattle.account_link.remove_time</code>.
*/
public void setRemoveTime(java.util.Date value);
/**
* Getter for <code>cattle.account_link.remove_time</code>.
*/
@javax.persistence.Column(name = "remove_time")
public java.util.Date getRemoveTime();
/**
* Setter for <code>cattle.account_link.data</code>.
*/
public void setData(java.util.Map<String,Object> value);
/**
* Getter for <code>cattle.account_link.data</code>.
*/
@javax.persistence.Column(name = "data", length = 65535)
public java.util.Map<String,Object> getData();
/**
* Setter for <code>cattle.account_link.linked_account_id</code>.
*/
public void setLinkedAccountId(java.lang.Long value);
/**
* Getter for <code>cattle.account_link.linked_account_id</code>.
*/
@javax.persistence.Column(name = "linked_account_id", precision = 19)
public java.lang.Long getLinkedAccountId();
// -------------------------------------------------------------------------
// FROM and INTO
// -------------------------------------------------------------------------
/**
* Load data from another generated Record/POJO implementing the common interface AccountLink
*/
public void from(io.cattle.platform.core.model.AccountLink from);
/**
* Copy data into another generated Record/POJO implementing the common interface AccountLink
*/
public <E extends io.cattle.platform.core.model.AccountLink> E into(E into);
}
|
[
"alena@rancher.com"
] |
alena@rancher.com
|
9e465932a2cc98f4fba6a91f93ac3747723d2644
|
ed5ab2ad1d5d2df64ba6f24f7afd1c664f552db8
|
/examples/starter/src/main/java/io/zeebe/spring/example/StarterApplication.java
|
f542735b17fa5bc2527f52b8325256b6b6ba9255
|
[
"Apache-2.0"
] |
permissive
|
pedramha/spring-zeebe
|
f7774e3e9d7f65cb788999e4b18298efbacde70f
|
c3a190e610680ed59dd1efeec769368ca342f033
|
refs/heads/master
| 2020-04-06T11:12:48.581812
| 2018-09-11T19:01:09
| 2018-09-11T19:01:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,989
|
java
|
package io.zeebe.spring.example;
import io.zeebe.client.api.events.WorkflowInstanceEvent;
import io.zeebe.spring.client.EnableZeebeClient;
import io.zeebe.spring.client.ZeebeClientLifecycle;
import io.zeebe.spring.client.annotation.ZeebeDeployment;
import io.zeebe.spring.client.config.CreateDefaultTopic;
import java.util.UUID;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
@SpringBootApplication
@EnableZeebeClient
@EnableScheduling
@ZeebeDeployment(classPathResource = "demoProcess.bpmn")
@Slf4j
public class StarterApplication {
public static void main(final String... args) {
SpringApplication.run(StarterApplication.class, args);
}
@Autowired
private ZeebeClientLifecycle client;
@Value("${zeebe.topic}")
private String topic;
@Bean
public CreateDefaultTopic createDefaultTopic() {
return new CreateDefaultTopic();
}
@Scheduled(fixedDelay = 15000L)
public void startProcesses() {
if (!client.isRunning()) {
return;
}
if (client.newTopicsRequest().send().join().getTopics().stream()
.noneMatch(t -> t.getName().equals(topic))) {
client.newCreateTopicCommand().name(topic).partitions(1).replicationFactor(1).send();
}
final WorkflowInstanceEvent event =
client
.topicClient()
.workflowClient()
.newCreateInstanceCommand()
.bpmnProcessId("demoProcess")
.latestVersion()
.payload("{\"a\": \"" + UUID.randomUUID().toString() + "\"}")
.send()
.join();
log.info("started: {} {}", event.getActivityId(), event.getPayload());
}
}
|
[
"jan.galinski@holisticon.de"
] |
jan.galinski@holisticon.de
|
2d46c479515e09bc1655cc42663adefdaff8cf91
|
312cd6b9fba3ede2202008e47842f16025c33ec7
|
/src/labs_examples/packages/labs/sub_labs_two/SubLabsTwo.java
|
b4080e5cbc21e12944576d9203c125c90b46794e
|
[] |
no_license
|
kuddleman/java-fundamentals-labs
|
abf8c4ec533de92545aaaa97dd2eac70d2e911fe
|
35e3b98749e46ebc8e9d83e6741437c1e0afc688
|
refs/heads/master
| 2022-09-25T18:19:57.751037
| 2020-05-31T22:40:58
| 2020-05-31T22:40:58
| 257,392,318
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 347
|
java
|
package labs_examples.packages.labs.sub_labs_two;
public class SubLabsTwo {
public static void main(String[] args) {
}
public void sayHello() {
System.out.println("Say Hello from TWO");
}
protected void donotSayHello() {
System.out.println("I am soooo protected in TWO!");
}
}
|
[
"edl1155@gmail.com"
] |
edl1155@gmail.com
|
b58f7f648e75e58d54d7f20c3f91be54534b96ce
|
f52d89e3adb2b7f5dc84337362e4f8930b3fe1c2
|
/com.fudanmed.platform.core.web/src/main/java/com/fudanmed/platform/core/web/server/service/project/GroupTaskFinishReportDataValidator.java
|
0899722d3ac9365b3f08cd2bc6a546c2f8f769db
|
[] |
no_license
|
rockguo2015/med
|
a4442d195e04f77c6c82c4b82b9942b6c5272892
|
b3db5a4943e190370a20cc4fac8faf38053ae6ae
|
refs/heads/master
| 2016-09-08T01:30:54.179514
| 2015-05-18T10:23:02
| 2015-05-18T10:23:02
| 34,060,096
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,607
|
java
|
package com.fudanmed.platform.core.web.server.service.project;
import com.fudanmed.platform.core.web.shared.project.GroupTaskFinishReportData;
import com.uniquesoft.gwt.shared.validation.ValidationErrorItem;
import com.uniquesoft.uidl.validation.IValidator;
import com.uniquesoft.uidl.validation.RuleFactory;
import edu.fudan.mylang.pf.IObjectFactory;
import java.util.Collection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component("com.fudanmed.platform.core.web.server.service.project.GroupTaskFinishReportDataValidator")
public class GroupTaskFinishReportDataValidator implements IValidator<GroupTaskFinishReportData> {
@Autowired
private IObjectFactory entities;
@Autowired
private RuleFactory ruleFactory;
public Collection<ValidationErrorItem> validate(final GroupTaskFinishReportData _entity) {
Collection<ValidationErrorItem> errors = com.google.common.collect.Lists.newArrayList();
{
com.uniquesoft.uidl.validation.rules.Required rule
= ruleFactory.Required(_entity.getFinishDate());
if(!rule.checkValid())
errors.add(new ValidationErrorItem("完工上报日期",rule.getMessage(),com.google.common.collect.Lists.newArrayList("finishDate" )));
}
{
com.uniquesoft.uidl.validation.rules.Required rule
= ruleFactory.Required(_entity.getFinishTime());
if(!rule.checkValid())
errors.add(new ValidationErrorItem("完工上报时间",rule.getMessage(),com.google.common.collect.Lists.newArrayList("finishTime" )));
}
return errors;
}
}
|
[
"rock.guo@me.com"
] |
rock.guo@me.com
|
c5f3ea43d264963c13e568bf393da43e22e59ed9
|
f5bb98e34072840470924ace8922dc58644745a2
|
/dms/src/main/java/com/project/dms/entiy/DrugConditionList.java
|
76a16c4a7082007897d58166c610ad2f3da0be45
|
[] |
no_license
|
NTlulujun/qhj
|
7c5519587be2cb92b47f3cd1f63dd66d1c074726
|
9f0e75d0385284702343ab149247e474a8cd0030
|
refs/heads/master
| 2023-02-11T09:03:58.606112
| 2021-01-10T09:50:41
| 2021-01-10T09:50:41
| 328,298,311
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,740
|
java
|
package com.project.dms.entiy;
import java.io.Serializable;
import java.math.BigDecimal;
public class DrugConditionList implements Serializable {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column drug_condition_list.DRUG_SEQ_ID
*
* @mbggenerated
*/
private Integer drugSeqId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column drug_condition_list.CONDITION_TYPE
*
* @mbggenerated
*/
private Integer conditionType;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column drug_condition_list.CONDITION_PART
*
* @mbggenerated
*/
private Integer conditionPart;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column drug_condition_list.DRUG_ID
*
* @mbggenerated
*/
private Integer drugId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column drug_condition_list.DRUG_TYPE
*
* @mbggenerated
*/
private String drugType;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column drug_condition_list.UNIT_QTY
*
* @mbggenerated
*/
private BigDecimal unitQty;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column drug_condition_list.CONDITION_SUB_IDX
*
* @mbggenerated
*/
private Integer conditionSubIdx;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table drug_condition_list
*
* @mbggenerated
*/
private static final long serialVersionUID = 1L;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column drug_condition_list.DRUG_SEQ_ID
*
* @return the value of drug_condition_list.DRUG_SEQ_ID
*
* @mbggenerated
*/
public Integer getDrugSeqId() {
return drugSeqId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column drug_condition_list.DRUG_SEQ_ID
*
* @param drugSeqId the value for drug_condition_list.DRUG_SEQ_ID
*
* @mbggenerated
*/
public void setDrugSeqId(Integer drugSeqId) {
this.drugSeqId = drugSeqId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column drug_condition_list.CONDITION_TYPE
*
* @return the value of drug_condition_list.CONDITION_TYPE
*
* @mbggenerated
*/
public Integer getConditionType() {
return conditionType;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column drug_condition_list.CONDITION_TYPE
*
* @param conditionType the value for drug_condition_list.CONDITION_TYPE
*
* @mbggenerated
*/
public void setConditionType(Integer conditionType) {
this.conditionType = conditionType;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column drug_condition_list.CONDITION_PART
*
* @return the value of drug_condition_list.CONDITION_PART
*
* @mbggenerated
*/
public Integer getConditionPart() {
return conditionPart;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column drug_condition_list.CONDITION_PART
*
* @param conditionPart the value for drug_condition_list.CONDITION_PART
*
* @mbggenerated
*/
public void setConditionPart(Integer conditionPart) {
this.conditionPart = conditionPart;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column drug_condition_list.DRUG_ID
*
* @return the value of drug_condition_list.DRUG_ID
*
* @mbggenerated
*/
public Integer getDrugId() {
return drugId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column drug_condition_list.DRUG_ID
*
* @param drugId the value for drug_condition_list.DRUG_ID
*
* @mbggenerated
*/
public void setDrugId(Integer drugId) {
this.drugId = drugId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column drug_condition_list.DRUG_TYPE
*
* @return the value of drug_condition_list.DRUG_TYPE
*
* @mbggenerated
*/
public String getDrugType() {
return drugType;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column drug_condition_list.DRUG_TYPE
*
* @param drugType the value for drug_condition_list.DRUG_TYPE
*
* @mbggenerated
*/
public void setDrugType(String drugType) {
this.drugType = drugType == null ? null : drugType.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column drug_condition_list.UNIT_QTY
*
* @return the value of drug_condition_list.UNIT_QTY
*
* @mbggenerated
*/
public BigDecimal getUnitQty() {
return unitQty;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column drug_condition_list.UNIT_QTY
*
* @param unitQty the value for drug_condition_list.UNIT_QTY
*
* @mbggenerated
*/
public void setUnitQty(BigDecimal unitQty) {
this.unitQty = unitQty;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column drug_condition_list.CONDITION_SUB_IDX
*
* @return the value of drug_condition_list.CONDITION_SUB_IDX
*
* @mbggenerated
*/
public Integer getConditionSubIdx() {
return conditionSubIdx;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column drug_condition_list.CONDITION_SUB_IDX
*
* @param conditionSubIdx the value for drug_condition_list.CONDITION_SUB_IDX
*
* @mbggenerated
*/
public void setConditionSubIdx(Integer conditionSubIdx) {
this.conditionSubIdx = conditionSubIdx;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table drug_condition_list
*
* @mbggenerated
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", drugSeqId=").append(drugSeqId);
sb.append(", conditionType=").append(conditionType);
sb.append(", conditionPart=").append(conditionPart);
sb.append(", drugId=").append(drugId);
sb.append(", drugType=").append(drugType);
sb.append(", unitQty=").append(unitQty);
sb.append(", conditionSubIdx=").append(conditionSubIdx);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
|
[
"1"
] |
1
|
3424d386c17f127535ef77ea8032d7864df813ba
|
4e4f4e45be2abfe4d7a9abd39fe09bcc269f033f
|
/src/main/java/io/luna/net/msg/MessageWriter.java
|
2d9995817c723ced0ed514cfae6d59711f84c980
|
[
"MIT"
] |
permissive
|
FusionLord/luna
|
5c496520eccc489f1b1c5638a5d483cfb00a28c8
|
65d5c1e75492b4bae60d403d0b227d7c738d12eb
|
refs/heads/master
| 2020-03-25T08:56:00.484977
| 2018-07-27T06:46:37
| 2018-07-27T06:46:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 671
|
java
|
package io.luna.net.msg;
import io.luna.game.model.mob.Player;
import io.luna.net.codec.ByteMessage;
/**
* An abstraction model representing an outbound message handler.
*
* @author lare96 <http://github.org/lare96>
*/
public abstract class MessageWriter {
/**
* Builds a buffer containing the data for this message.
*/
public abstract ByteMessage write(Player player);
/**
* Converts the buffer returned by {@code write(Player)} to a game packet.
*/
public GameMessage handleOutboundMessage(Player player) {
ByteMessage msg = write(player);
return new GameMessage(msg.getOpcode(), msg.getType(), msg);
}
}
|
[
"lare96@live.com"
] |
lare96@live.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.