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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
95e84c9e5acf5b30188b421d99ede50b58b621fa
|
fe0ba1937796409f32f6fd144cfc14fba61a4712
|
/src/main/java/net/darkhax/darkutils/tileentity/TileEntityEnderTether.java
|
97470bc5b14a36a1259899914bbb04d288b6be20
|
[] |
no_license
|
Searge-DP/Dark-Utilities
|
22d00b4885200e4f66287f1a25d0eb9e5411bf38
|
dbc312c7a1ec3cebec2ed4d0df9321283c97d626
|
refs/heads/master
| 2021-01-22T10:24:53.648405
| 2016-03-01T05:30:55
| 2016-03-01T05:30:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 417
|
java
|
package net.darkhax.darkutils.tileentity;
import net.darkhax.bookshelf.lib.util.EntityUtils;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.tileentity.TileEntity;
public class TileEntityEnderTether extends TileEntity {
public boolean isEntityCloseEnough (EntityLivingBase entity) {
return EntityUtils.getDistaceFromPos(entity, this.getPos()) <= 32d;
}
}
|
[
"darklime@live.ca"
] |
darklime@live.ca
|
ba7e49a59449dfe8e66235beb33bc59174685313
|
b37929282e1ce200ffeed494090f8794ef42b878
|
/10 Swing Apps/src/main/java/hr/fer/zemris/java/gui/layouts/Util.java
|
c7101a90b5b47f49ac37ee25d45f618a2a92e5f2
|
[] |
no_license
|
hmatic/fer-java-course
|
b332c4645c30e787918149361ba5a77e75893efd
|
6ce8c7992197b8d6e90787969a0a91a2873de8b7
|
refs/heads/master
| 2020-03-15T22:16:37.101287
| 2018-08-28T12:29:48
| 2018-08-28T12:29:48
| 132,370,110
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,086
|
java
|
package hr.fer.zemris.java.gui.layouts;
import java.util.function.BiFunction;
/**
* Class with utility static methods.
*
* @author Hrvoje Matiฤ
* @version 1.0
*/
public class Util {
/**
* Parses coordinate given as "x,y" where x and y are Integer. Generates new object with parsed value.
* Object typing is determined by method handle to object constructor in second argument.
*
* @param input input string
* @param factory method handle to desired object constructor
* @return new object of desired type containing parsed values
*/
public static <T> T parseCoordinates(String input, BiFunction<Integer, Integer, T> factory) {
String[] inputParts = input.split(",");
if(inputParts.length!=2) {
throw new IllegalArgumentException("Coordinates must have two parts.");
}
int x = 0;
int y = 0;
try {
x = Integer.parseInt(inputParts[0]);
y = Integer.parseInt(inputParts[1]);
} catch(NumberFormatException e) {
throw new IllegalArgumentException("Coordinate numbers must fit into integer values.");
}
return factory.apply(x, y);
}
}
|
[
"hrvoje.matic@fer.hr"
] |
hrvoje.matic@fer.hr
|
e5657dd057577c4f020a8403d9ba9170c446a38c
|
7016cec54fb7140fd93ed805514b74201f721ccd
|
/src/java/com/echothree/model/control/chain/server/transfer/ChainInstanceEntityRoleTransferCache.java
|
5f70028889a3a7bac58bfc5e7aba4399da5864b9
|
[
"MIT",
"Apache-1.1",
"Apache-2.0"
] |
permissive
|
echothreellc/echothree
|
62fa6e88ef6449406d3035de7642ed92ffb2831b
|
bfe6152b1a40075ec65af0880dda135350a50eaf
|
refs/heads/master
| 2023-09-01T08:58:01.429249
| 2023-08-21T11:44:08
| 2023-08-21T11:44:08
| 154,900,256
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,053
|
java
|
// --------------------------------------------------------------------------------
// Copyright 2002-2023 Echo Three, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// --------------------------------------------------------------------------------
package com.echothree.model.control.chain.server.transfer;
import com.echothree.model.control.chain.common.transfer.ChainEntityRoleTypeTransfer;
import com.echothree.model.control.chain.common.transfer.ChainInstanceEntityRoleTransfer;
import com.echothree.model.control.chain.common.transfer.ChainInstanceTransfer;
import com.echothree.model.control.chain.server.control.ChainControl;
import com.echothree.model.control.core.common.transfer.EntityInstanceTransfer;
import com.echothree.model.control.core.server.control.CoreControl;
import com.echothree.model.data.chain.server.entity.ChainInstanceEntityRole;
import com.echothree.model.data.user.server.entity.UserVisit;
import com.echothree.util.server.persistence.Session;
public class ChainInstanceEntityRoleTransferCache
extends BaseChainTransferCache<ChainInstanceEntityRole, ChainInstanceEntityRoleTransfer> {
CoreControl coreControl = Session.getModelController(CoreControl.class);
/** Creates a new instance of ChainInstanceEntityRoleTransferCache */
public ChainInstanceEntityRoleTransferCache(UserVisit userVisit, ChainControl chainControl) {
super(userVisit, chainControl);
}
public ChainInstanceEntityRoleTransfer getChainInstanceEntityRoleTransfer(ChainInstanceEntityRole chainInstanceEntityRole) {
ChainInstanceEntityRoleTransfer chainInstanceEntityRoleTransfer = get(chainInstanceEntityRole);
if(chainInstanceEntityRoleTransfer == null) {
ChainInstanceTransfer chainInstance = chainControl.getChainInstanceTransfer(userVisit, chainInstanceEntityRole.getChainInstance());
ChainEntityRoleTypeTransfer chainEntityRoleType = chainControl.getChainEntityRoleTypeTransfer(userVisit, chainInstanceEntityRole.getChainEntityRoleType());
EntityInstanceTransfer entityInstance = coreControl.getEntityInstanceTransfer(userVisit, chainInstanceEntityRole.getEntityInstance(), false, false, false, false, false, false);
chainInstanceEntityRoleTransfer = new ChainInstanceEntityRoleTransfer(chainInstance, chainEntityRoleType, entityInstance);
put(chainInstanceEntityRole, chainInstanceEntityRoleTransfer);
}
return chainInstanceEntityRoleTransfer;
}
}
|
[
"rich@echothree.com"
] |
rich@echothree.com
|
704fbaf32b6dc91f5e9d966ab25d62d46a62e38d
|
b07968d5519a345c7b53b5fa33720c32d6812a88
|
/heima_day01/src/DataConvert_1.java
|
569b613aabfb473ac4d4c7520cd2dd3e8f91c83e
|
[] |
no_license
|
ni247/jialian_c-2Java
|
d67a24800a53844b352e5ca7febc16d254e28249
|
1b478c10699c45ee0da70f29548029ae338ad0d9
|
refs/heads/master
| 2021-01-02T08:48:47.588902
| 2017-08-05T14:32:29
| 2017-08-05T14:32:29
| 99,066,589
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 282
|
java
|
/*
่ขซ่ฝฌๅ็ๆฐๆฎ็ฑปๅ ๅ้ๅ=(่ขซ่ฝฌๅ็ๆฐๆฎ็ฑปๅ)่ฆ่ฝฌ็ๆฐๆฎ;
ๅc#
*/
public class DataConvert_1 {
public static void main(String[] args) {
double d = 3.14;
int d1 = (int) d;
System.out.println(d1);
System.out.println(System.out);
}
}
|
[
"Administrator@DESKTOP-SLN17N8"
] |
Administrator@DESKTOP-SLN17N8
|
3bb97ae73ea1e46c532a5a0dffb762b4a969ffc6
|
7bbea063b44d212f82eff499d8291aaaca85daa1
|
/Ftm2Html/src/ws/daley/genealogy/gedcom/attribute/GcPhysicalDescriptionAttribute.java
|
03317806ebd67c4550569e0b1cd1ae900f5e14ab
|
[] |
no_license
|
AixNPanes/genealogy
|
d6bfc02c67d04341ea6faed501ffd9474cc4e408
|
111e89209852a8d48b3b6002bc0bbf2c2b7289cb
|
refs/heads/master
| 2022-05-26T20:00:31.342782
| 2021-07-20T21:27:41
| 2021-07-20T21:27:41
| 62,721,459
| 0
| 0
| null | 2022-05-20T20:49:27
| 2016-07-06T13:04:08
|
Java
|
UTF-8
|
Java
| false
| false
| 701
|
java
|
package ws.daley.genealogy.gedcom.attribute;
/**
* PHYSICAL_DESCRIPTION:= {Size=1:248}
*
* An unstructured list of the attributes that describe the physical
* characteristics of a person, place, or object. Commas separate each attribute.
*
* Example:
* 1 DSCR Hair Brown, Eyes Brown, Height 5 ft 8 in
* 2 DATE 23 JUL 1935
*/
public class GcPhysicalDescriptionAttribute extends Gc_Attribute
{
public static AttributeDescriptorMap map = new AttributeDescriptorMap();
static{
map = AttributeDescriptorMap.newFromArray(new AttributeDescriptor[]{
new AttributeDescriptor("PHYSICAL_DESCRIPTION", 1, 248, GcPhysicalDescriptionAttribute.class),
});
}
}
|
[
"tim.daley@cru.org"
] |
tim.daley@cru.org
|
7403eaa430f943bbf134f88828cdf8d98fa65b52
|
ca60502a473aaff1594674cc4ac49db8b5546e51
|
/src/main/java/org/encog/util/arrayutil/NormalizeArray.java
|
ab21671319703342cb88a2a25973aaf4d81a3978
|
[
"BSD-3-Clause",
"Apache-2.0"
] |
permissive
|
pidster/encog-java-core
|
9ce59b82cf07e2c3710f294b0e5b98c67463f7b1
|
50aa01c19d09ffc431d5310e06ea7fc2a230c342
|
refs/heads/master
| 2021-01-24T20:47:28.860579
| 2014-04-13T14:14:34
| 2014-04-13T14:14:34
| 17,671,426
| 0
| 0
|
NOASSERTION
| 2020-10-14T00:27:15
| 2014-03-12T15:16:26
|
Java
|
UTF-8
|
Java
| false
| false
| 3,453
|
java
|
/*
* Encog(tm) Core v3.2 - Java Version
* http://www.heatonresearch.com/encog/
* https://github.com/encog/encog-java-core
* Copyright 2008-2013 Heaton Research, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* For more information on Heaton Research copyrights, licenses
* and trademarks visit:
* http://www.heatonresearch.com/copyright
*/
package org.encog.util.arrayutil;
/**
* Normalization is the process where data is adjusted to be inside a range.
* This range is typically -1 to 1. For more information about normalization,
* refer to the following page.
*
* http://www.heatonresearch.com/content/really-simple-introduction-
* normalization
*
* This class is used to normalize an array. Sometimes you would like to
* normalize an array, rather than an entire CSV file. If you would like to
* normalize an entire CSV file, you should make use of the class NormalizeCSV.
*/
public class NormalizeArray {
/**
* Contains stats about the array normalized.
*/
private NormalizedField stats;
/**
* The high end of the range that the values are normalized into. Typically
* 1.
*/
private double normalizedHigh;
/**
* The low end of the range that the values are normalized into. Typically
* 1.
*/
private double normalizedLow;
/**
* Construct the object, default NormalizedHigh and NormalizedLow to 1 and
* -1.
*/
public NormalizeArray() {
this.normalizedHigh = 1;
this.normalizedLow = -1;
}
/**
* @return The high value to normalize to.
*/
public final double getNormalizedHigh() {
return this.normalizedHigh;
}
/**
* @return The low value to normalize to.
*/
public final double getNormalizedLow() {
return this.normalizedLow;
}
/**
* @return Contains stats about the array normalized.
*/
public final NormalizedField getStats() {
return this.stats;
}
/**
* Normalize the array. Return the new normalized array.
*
* @param inputArray
* The input array.
* @return The normalized array.
*/
public final double[] process(final double[] inputArray) {
this.stats = new NormalizedField();
this.stats.setNormalizedHigh(this.normalizedHigh);
this.stats.setNormalizedLow(this.normalizedLow);
for (final double element : inputArray) {
this.stats.analyze(element);
}
final double[] result = new double[inputArray.length];
for (int i = 0; i < inputArray.length; i++) {
result[i] = this.stats.normalize(inputArray[i]);
}
return result;
}
/**
* Set the high value to normalize to.
* @param theNormalizedHigh The high value to normalize to.
*/
public final void setNormalizedHigh(final double theNormalizedHigh) {
this.normalizedHigh = theNormalizedHigh;
}
/**
* Set the low value to normalize to.
* @param theNormalizedLow The low value to normalize to.
*/
public final void setNormalizedLow(final double theNormalizedLow) {
this.normalizedLow = theNormalizedLow;
}
}
|
[
"jeff@jeffheaton.com"
] |
jeff@jeffheaton.com
|
0f84918c239521022444be67bd919f0035a537cd
|
5a1e8427823a5e21cc88a35599d81f10bdcbd7d0
|
/ch01/src/ch01/VarialbleTest2.java
|
94c65b582998d15a47a32848754a7d83bb139a98
|
[] |
no_license
|
unisung/java01
|
b5e6d71d0c1561f143c9c5549e3789a9503e11f0
|
e1cfb4a81fcebb2af8fd1c4cfe323451da17161f
|
refs/heads/master
| 2022-07-24T07:57:37.281861
| 2020-05-13T08:44:44
| 2020-05-13T08:44:44
| 257,546,913
| 0
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 331
|
java
|
package ch01;
public class VarialbleTest2 {
public static void main(String[] args) {
int value;//์ ์ํ์
๋ณ์ ์ ์ธ
value=20;//์ ์ธ๋ ๋ณ์์ ์ ์ํ์
๋ฆฌํฐ๋ด ๊ฐ 20์ ๋์
int result = value + 10;//value๊ฐ ์ด๊ธฐํ ๋ ํ ์ฝ๊ธฐ ๊ฐ๋ฅ
//int result = 10;
System.out.println("result:"+result);
}
}
|
[
"vctor@naver.com"
] |
vctor@naver.com
|
ebabb0ce4960743f52680b43621bb2e0f87ac5bf
|
293e395565a5689af9781f6f87389a87becadfa5
|
/thevpc-common-md-doc/src/main/java/net/thevpc/commons/md/doc/JDDocElementList.java
|
5aecf00c1c56e0e564730b088d6ea37159a31ba1
|
[] |
no_license
|
thevpc/vpc-common
|
fa0bcc7a40c7ab426d0871ee4620177717517435
|
af29b2340a4beb1d5e6e3f278ec8c99077302144
|
refs/heads/master
| 2023-06-07T17:00:18.820723
| 2023-05-31T12:54:32
| 2023-05-31T12:54:32
| 71,976,446
| 0
| 0
| null | 2022-01-05T21:28:01
| 2016-10-26T07:14:22
|
Java
|
UTF-8
|
Java
| false
| false
| 1,443
|
java
|
/**
* ====================================================================
* Nuts : Network Updatable Things Service
* (universal package manager)
* <br>
* is a new Open Source Package Manager to help install packages
* and libraries for runtime execution. Nuts is the ultimate companion for
* maven (and other build managers) as it helps installing all package
* dependencies at runtime. Nuts is not tied to java and is a good choice
* to share shell scripts and other 'things' . Its based on an extensible
* architecture to help supporting a large range of sub managers / repositories.
* <br>
*
* Copyright [2020] [thevpc]
* 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.
* <br>
* ====================================================================
*/
package net.thevpc.commons.md.doc;
/**
*
* @author thevpc
*/
public interface JDDocElementList extends JDDocElement{
JDDocElement[] values();
}
|
[
"taha.bensalah@gmail.com"
] |
taha.bensalah@gmail.com
|
12f88db0871cc1fdb6297e4f8a2ebea88124d8cb
|
d2eee6e9a3ad0b3fd2899c3d1cf94778615b10cb
|
/PROMISE/archives/synapse/1.2/org/apache/synapse/config/xml/MediatorFactory.java
|
089352a369848adaebfed42f4f6806b6f71b3739
|
[] |
no_license
|
hvdthong/DEFECT_PREDICTION
|
78b8e98c0be3db86ffaed432722b0b8c61523ab2
|
76a61c69be0e2082faa3f19efd76a99f56a32858
|
refs/heads/master
| 2021-01-20T05:19:00.927723
| 2018-07-10T03:38:14
| 2018-07-10T03:38:14
| 89,766,606
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 658
|
java
|
package org.apache.synapse.config.xml;
import org.apache.axiom.om.OMElement;
import org.apache.synapse.Mediator;
import javax.xml.namespace.QName;
/**
* A mediator factory capable of creating an instance of a mediator through a given
* XML should implement this interface
*/
public interface MediatorFactory {
/**
* Creates an instance of the mediator using the OMElement
* @param elem
* @return the created mediator
*/
public Mediator createMediator(OMElement elem);
/**
* The QName of this mediator element in the XML config
* @return QName of the mediator element
*/
public QName getTagQName();
}
|
[
"hvdthong@github.com"
] |
hvdthong@github.com
|
88b990e637653216eed4ca3cffdad511d0ca8409
|
e7ca3a996490d264bbf7e10818558e8249956eda
|
/aliyun-java-sdk-vod/src/main/java/com/aliyuncs/vod/model/v20170321/SubmitAIVideoCoverJobRequest.java
|
0fa5e23139df2f2a4b87d298018e9130df73488c
|
[
"Apache-2.0"
] |
permissive
|
AndyYHL/aliyun-openapi-java-sdk
|
6f0e73f11f040568fa03294de2bf9a1796767996
|
15927689c66962bdcabef0b9fc54a919d4d6c494
|
refs/heads/master
| 2020-03-26T23:18:49.532887
| 2018-08-21T04:12:23
| 2018-08-21T04:12:23
| 145,530,169
| 1
| 0
| null | 2018-08-21T08:14:14
| 2018-08-21T08:14:13
| null |
UTF-8
|
Java
| false
| false
| 3,042
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.vod.model.v20170321;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
* @version
*/
public class SubmitAIVideoCoverJobRequest extends RpcAcsRequest<SubmitAIVideoCoverJobResponse> {
public SubmitAIVideoCoverJobRequest() {
super("vod", "2017-03-21", "SubmitAIVideoCoverJob", "vod");
}
private String userData;
private String resourceOwnerId;
private String resourceOwnerAccount;
private String ownerAccount;
private String ownerId;
private String mediaId;
private String aIVideoCoverConfig;
public String getUserData() {
return this.userData;
}
public void setUserData(String userData) {
this.userData = userData;
if(userData != null){
putQueryParameter("UserData", userData);
}
}
public String getResourceOwnerId() {
return this.resourceOwnerId;
}
public void setResourceOwnerId(String resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
if(resourceOwnerId != null){
putQueryParameter("ResourceOwnerId", resourceOwnerId);
}
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public void setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
if(resourceOwnerAccount != null){
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
}
public String getOwnerAccount() {
return this.ownerAccount;
}
public void setOwnerAccount(String ownerAccount) {
this.ownerAccount = ownerAccount;
if(ownerAccount != null){
putQueryParameter("OwnerAccount", ownerAccount);
}
}
public String getOwnerId() {
return this.ownerId;
}
public void setOwnerId(String ownerId) {
this.ownerId = ownerId;
if(ownerId != null){
putQueryParameter("OwnerId", ownerId);
}
}
public String getMediaId() {
return this.mediaId;
}
public void setMediaId(String mediaId) {
this.mediaId = mediaId;
if(mediaId != null){
putQueryParameter("MediaId", mediaId);
}
}
public String getAIVideoCoverConfig() {
return this.aIVideoCoverConfig;
}
public void setAIVideoCoverConfig(String aIVideoCoverConfig) {
this.aIVideoCoverConfig = aIVideoCoverConfig;
if(aIVideoCoverConfig != null){
putQueryParameter("AIVideoCoverConfig", aIVideoCoverConfig);
}
}
@Override
public Class<SubmitAIVideoCoverJobResponse> getResponseClass() {
return SubmitAIVideoCoverJobResponse.class;
}
}
|
[
"haowei.yao@alibaba-inc.com"
] |
haowei.yao@alibaba-inc.com
|
a5f9245ddf46ad28977a18d3e4702a88311812bc
|
74349863321b0d14e16025a9b6ef3d785e9a7eb0
|
/app/src/main/java/com/zbl/anju/ui/activity/HouseTypeActivity.java
|
28e8f96cd8d9aecbe5529636e3c4a766ff1e8795
|
[
"Apache-2.0"
] |
permissive
|
JamesZBL/JianZu
|
f7f53808ea260b97276192fae8457fff9379d67c
|
58400a312a9ed9731b50653f7b3a4b507a61e51b
|
refs/heads/master
| 2021-07-25T20:28:50.334715
| 2017-11-04T06:08:17
| 2017-11-04T06:08:17
| 109,466,289
| 11
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,028
|
java
|
package com.zbl.anju.ui.activity;
import com.lqr.optionitemview.OptionItemView;
import com.zbl.anju.R;
import com.zbl.anju.ui.base.BaseActivity;
import com.zbl.anju.ui.base.BasePresenter;
import butterknife.Bind;
/**
* ๆฟๅฑ็ฑปๅ้ๆฉ
* Created by James on 17-9-5.
*/
public class HouseTypeActivity extends BaseActivity {
@Bind(R.id.oiv_house_type_zhengzu)
OptionItemView mOivZhengzu;
@Bind(R.id.oiv_house_type_hezu)
OptionItemView mOivHezu;
@Override
protected BasePresenter createPresenter() {
return null;
}
@Override
protected int provideContentViewId() {
return R.layout.activity_release_type;
}
@Override
public void initListener() {
super.initListener();
mOivZhengzu.setOnClickListener(v->{
jumpToActivityAndClearTask(HouseReleaseActivity.class);
finish();
});
mOivHezu.setOnClickListener(v->{
jumpToActivityAndClearTask(HouseReleaseHezuActivity.class);
finish();
});
}
@Override
public void initView() {
super.initView();
setToolbarTitle("ๆฟๆบ็ฑปๅ");
}
}
|
[
"1146556298@qq.com"
] |
1146556298@qq.com
|
4376d5f61eab660b51b3a1d5bb69b8b54af78175
|
308c27d4f0d589dbc6fc658489d6013e022e8199
|
/src/main/java/com/jex/utils/net/SFtpUtils.java
|
fc9d89cfb2fce965612e754397db3fbdeda409b0
|
[] |
no_license
|
BestJex/jex-utils
|
2ed0d27f36a9d1f35ad751056955582bda59db98
|
39e0b3efafd061175c7c2ae05242431b0d90b2ff
|
refs/heads/master
| 2022-12-09T04:15:39.644095
| 2019-09-17T08:38:04
| 2019-09-17T08:38:04
| 206,462,042
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,470
|
java
|
package com.jex.utils.net;
import com.jcraft.jsch.*;
import com.jcraft.jsch.ChannelSftp.LsEntry;
import java.io.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Vector;
public class SFtpUtils {
private static final int TIMEOUT = 6000;
/**
* ็ปๅฝSFTPๆๅกๅจ
*
* @param ipAddress IPๅฐๅ(192.168.112.128)
* @param port ็ซฏๅฃ(21)
* @param username ็จๆทๅ(root)
* @param password ๅฏ็ (123456)
*/
public ChannelSftp login(String ipAddress, int port, String username, String password) {
JSch jsch = new JSch();
try {
Session session = jsch.getSession(username, ipAddress, port);
session.setPassword(password);
session.setConfig("StrictHostKeyChecking", "no");
session.setTimeout(TIMEOUT);
session.connect();
Channel channel = session.openChannel("sftp");
channel.connect();
return (ChannelSftp) channel;
} catch (JSchException e) {
e.printStackTrace();
}
return null;
}
/**
* ็ปๅบSFTPๆๅกๅจ
*/
public void logout(ChannelSftp sftp) {
if (sftp != null) {
sftp.quit();
sftp.disconnect();
}
}
/**
* ่ทๅๆๅฎ่ทฏๅพไธ็ๆไปถๅๅ่กจ
*/
public List<String> getFileNameList(ChannelSftp sftp, String path) {
if (sftp == null || sftp.isClosed()) {
throw new IllegalArgumentException("ChannelSftp has bean closed!");
}
List<String> fileNameList = new ArrayList<String>();
try {
Vector<?> vector = sftp.ls(path);
for (int i = 0; i < vector.size(); i++) {
LsEntry entry = (LsEntry) vector.get(i);
fileNameList.add(entry.getFilename());
}
} catch (SftpException e) {
e.printStackTrace();
}
return fileNameList;
}
/**
* ๅจๆๅฎ็ฎๅฝไธๅๅปบ็ฎๅฝ
*
* @param path ๅจๅชไธช็ฎๅฝไธๅๅปบ
* @param dirName ่ฆๅๅปบ็็ฎๅฝๅ็งฐ
*/
public boolean mkDir(ChannelSftp sftp, String path, String dirName) {
if (sftp == null || sftp.isClosed()) {
throw new IllegalArgumentException("ChannelSftp has bean closed!");
}
try {
sftp.cd(path);
sftp.mkdir(dirName);
return true;
} catch (SftpException e) {
e.printStackTrace();
}
return false;
}
/**
* ๅจๆๅฎ็ฎๅฝไธๅ ้คๆไปถ
*
* @param path ๅจๅชไธช็ฎๅฝไธๅ ้ค
* @param fileName ่ฆๅ ้ค็ๆไปถๅ็งฐ
*/
public boolean deleteFile(ChannelSftp sftp, String path, String fileName) {
if (sftp == null || sftp.isClosed()) {
throw new IllegalArgumentException("ChannelSftp has bean closed!");
}
try {
sftp.cd(path);
sftp.rm(fileName);
return true;
} catch (SftpException e) {
e.printStackTrace();
}
return false;
}
/**
* ๅSFTPๆๅกๅจไธไผ ๆไปถ
*
* @param file ่ฆไธไผ ็ๆไปถ
* @param path ไธไผ ่ทฏๅพ(/var/ftp/pub/)
* @param monitor ่ฟๅบฆๅ่ฐ
*/
public boolean upload(ChannelSftp sftp, File file, String path, SftpProgressMonitor monitor) {
return this.upload(sftp, Arrays.asList(file), path, monitor);
}
/**
* ๅSFTPๆๅกๅจไธไผ ๆไปถ
*
* @param files ่ฆไธไผ ็ๆไปถ
* @param path ไธไผ ่ทฏๅพ(/var/ftp/pub/)
* @param monitor ่ฟๅบฆๅ่ฐ
*/
public boolean upload(ChannelSftp sftp, List<File> files, String path, SftpProgressMonitor monitor) {
if (sftp == null || sftp.isClosed()) {
throw new IllegalArgumentException("ChannelSftp has bean closed!");
}
BufferedInputStream bis = null;
try {
for (File file : files) {
bis = new BufferedInputStream(new FileInputStream(file));
sftp.put(bis, path, monitor);
bis.close();
bis = null;
}
return true;
} catch (SftpException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
if (bis != null) bis.close();
} catch (IOException e) {
e.printStackTrace();
}
}
return false;
}
/**
* ไปSFTPๆๅกๅจไธ่ฝฝๆไปถ
*
* @param fileName ่ฆไธ่ฝฝ็ๆไปถๅ("test_1.txt")
* @param srcPath FTPๆๅกๅจๆไปถ็่ทฏๅพ(/var/ftp/pub/)
* @param destPath ไธ่ฝฝๅไฟๅญ็่ทฏๅพ(E:/workspace/utils/)
* @param monitor ่ฟๅบฆๅ่ฐ
*/
public boolean download(ChannelSftp sftp, String fileName, String srcPath, String destPath, SftpProgressMonitor monitor) {
return this.download(sftp, Arrays.asList(fileName), srcPath, destPath, monitor);
}
/**
* ไปSFTPๆๅกๅจไธ่ฝฝๆไปถ
*
* @param fileNames ่ฆไธ่ฝฝ็ๆไปถๅ(Arrays.asList("test_1.txt", "test_2.txt");)
* @param srcPath FTPๆๅกๅจๆไปถ็่ทฏๅพ(/var/ftp/pub/)
* @param destPath ไธ่ฝฝๅไฟๅญ็่ทฏๅพ(E:/workspace/utils/)
* @param monitor ่ฟๅบฆๅ่ฐ
*/
public boolean download(ChannelSftp sftp, List<String> fileNames, String srcPath, String destPath, SftpProgressMonitor monitor) {
if (sftp == null || sftp.isClosed()) {
throw new IllegalArgumentException("ChannelSftp has bean closed!");
}
BufferedOutputStream bos = null;
try {
for (String fileName : fileNames) {
bos = new BufferedOutputStream(new FileOutputStream(destPath + "/" + fileName));
sftp.get(srcPath + "/" + fileName, bos, monitor);
bos.close();
bos = null;
}
return true;
} catch (SftpException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
if (bos != null) {
bos.close();
}
} catch (IOException e) {
e.printStackTrace();
}
}
return false;
}
}
|
[
"2252930004@qq.com"
] |
2252930004@qq.com
|
385aea436aa8fe05d2c5207b2988bf9933322cbb
|
2739a45621bb8087956ee407e933a0f668136a6c
|
/marathon-runtime-server/src/net/sourceforge/marathon/objectmap/IOMapContainer.java
|
b647643fbf0ae86955082a2f122a6230744df668
|
[] |
no_license
|
jalian-systems/Marathon
|
b8596c5b881a737fc5300944f2125cc08eee9e1c
|
67947d2bc84184c9cb9f2740d1d7bc8293637a29
|
refs/heads/master
| 2021-06-02T07:10:53.583339
| 2019-07-01T10:54:48
| 2019-07-01T10:54:48
| 1,406,345
| 35
| 12
| null | 2020-10-13T09:30:25
| 2011-02-24T11:12:38
|
HTML
|
UTF-8
|
Java
| false
| false
| 357
|
java
|
package net.sourceforge.marathon.objectmap;
import java.util.List;
import net.sourceforge.marathon.objectmap.OMapContainer;
import net.sourceforge.marathon.objectmap.ObjectMap;
public interface IOMapContainer {
public abstract OMapContainer getOMapContainer(ObjectMap objectMap);
public abstract List<String> getUsedRecognitionProperties();
}
|
[
"dakshinamurthy.karra@jaliansystems.com"
] |
dakshinamurthy.karra@jaliansystems.com
|
da9800b8782584c9135b2d33e034a386f44b2df5
|
8b52e6f74d3792421d80a1112ca9cbfebeeafcd8
|
/Common/src/main/java/com/zhenhappy/ems/service/EmailMailService.java
|
d3daca42e2e2cc539e4c3b2365747b7f3e7a60be
|
[] |
no_license
|
wangxdxicec/XICEC-JHX-EMS
|
1ee4ceac3cea216a4a9a6d101504d9cb41d9067b
|
56d07bd461562cde58320bd66aad6ccf8a8c0228
|
refs/heads/master
| 2020-05-21T04:23:26.664099
| 2017-02-04T01:15:07
| 2017-02-04T01:15:07
| 54,453,657
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,331
|
java
|
/*
* Copyright 2014-2015 The Happy Network Corporation
*/
package com.zhenhappy.ems.service;
import com.zhenhappy.ems.entity.Email;
import com.zhenhappy.ems.entity.ExhibitorInvisitorEmail;
import com.zhenhappy.ems.entity.TEmailSendDetail;
import com.zhenhappy.util.Page;
/**
* @project spring-mail
* @author ๅดๅๆ
* @create 2012-3-24 ไธๅ12:26:17
*/
public interface EmailMailService {
/**
* ๅๆญฅๅ้้ฎไปถ
* @param email
* @throws Exception
*/
public abstract void sendMailBySynchronizationMode(Email email) throws Exception;
/**
* ๅผๆญฅๅ้้ฎไปถ
* @param email
*/
public abstract void sendMailByAsynchronousMode(Email email, Integer eid);
public abstract void sendInvisitorMailByAsynchronousMode(ExhibitorInvisitorEmail exhibitorInvisitorEmail) throws Exception;
/**
* ๅผๆญฅๅ้้ฎไปถ
* @param email
*/
public abstract void retrySendMailByAsynchronousMode(Email email, Integer eid);
/**
* ไฝฟ็จ spring 3.0 ็ๅผๆญฅๆณจ่งฃ้ฉฑๅจๅผๆญฅๅ้้ฎไปถ
* @param email
*/
public abstract void sendMailByAsyncAnnotationMode(Email email);
public void loadDetailByEid(Page page, Integer eid);
public TEmailSendDetail loadMailByMid(Integer mid, Integer eid);
public abstract void sendHtmlEmails(String receivers, String subject, String content);
}
|
[
"wangxd@xicec.com"
] |
wangxd@xicec.com
|
0d0ed22e34b54f036bdb0b4a518426a2ca256c9b
|
a2272f1002da68cc554cd57bf9470322a547c605
|
/src/jdk/jdk.internal.opt/jdk/internal/joptsimple/AbstractOptionSpec.java
|
6f108d0342c1549d0252430ad070dbc52bdd3c2d
|
[] |
no_license
|
framework-projects/java
|
50af8953ab46c509432c467c9ad69cc63818fa63
|
2d131cb46f232d3bf909face20502e4ba4b84db0
|
refs/heads/master
| 2023-06-28T05:08:00.482568
| 2021-08-04T08:42:32
| 2021-08-04T08:42:32
| 312,414,414
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,788
|
java
|
/*
* Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
/*
*
*
*
*
*
* The MIT License
*
* Copyright (c) 2004-2015 Paul R. Holser, Jr.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package jdk.internal.joptsimple;
import jdk.internal.joptsimple.internal.Reflection;
import jdk.internal.joptsimple.internal.ReflectionException;
import java.util.ArrayList;
import java.util.List;
import static java.util.Collections.*;
import static jdk.internal.joptsimple.internal.Strings.*;
/**
* @param <V> represents the type of the arguments this option accepts
* @author <a href="mailto:pholser@alumni.rice.edu">Paul Holser</a>
*/
public abstract class AbstractOptionSpec<V> implements OptionSpec<V>, OptionDescriptor {
private final List<String> options = new ArrayList<>();
private final String description;
private boolean forHelp;
AbstractOptionSpec( String option ) {
this( singletonList( option ), EMPTY );
}
AbstractOptionSpec( List<String> options, String description ) {
arrangeOptions( options );
this.description = description;
}
public final List<String> options() {
return unmodifiableList( options );
}
public final List<V> values( OptionSet detectedOptions ) {
return detectedOptions.valuesOf( this );
}
public final V value( OptionSet detectedOptions ) {
return detectedOptions.valueOf( this );
}
public String description() {
return description;
}
public final AbstractOptionSpec<V> forHelp() {
forHelp = true;
return this;
}
public final boolean isForHelp() {
return forHelp;
}
public boolean representsNonOptions() {
return false;
}
protected abstract V convert( String argument );
protected V convertWith( ValueConverter<V> converter, String argument ) {
try {
return Reflection.convertWith( converter, argument );
} catch ( ReflectionException | ValueConversionException ex ) {
throw new OptionArgumentConversionException( this, argument, ex );
}
}
protected String argumentTypeIndicatorFrom( ValueConverter<V> converter ) {
if ( converter == null )
return null;
String pattern = converter.valuePattern();
return pattern == null ? converter.valueType().getName() : pattern;
}
abstract void handleOption( OptionParser parser, ArgumentList arguments, OptionSet detectedOptions,
String detectedArgument );
private void arrangeOptions( List<String> unarranged ) {
if ( unarranged.size() == 1 ) {
options.addAll( unarranged );
return;
}
List<String> shortOptions = new ArrayList<>();
List<String> longOptions = new ArrayList<>();
for ( String each : unarranged ) {
if ( each.length() == 1 )
shortOptions.add( each );
else
longOptions.add( each );
}
sort( shortOptions );
sort( longOptions );
options.addAll( shortOptions );
options.addAll( longOptions );
}
@Override
public boolean equals( Object that ) {
if ( !( that instanceof AbstractOptionSpec<?> ) )
return false;
AbstractOptionSpec<?> other = (AbstractOptionSpec<?>) that;
return options.equals( other.options );
}
@Override
public int hashCode() {
return options.hashCode();
}
@Override
public String toString() {
return options.toString();
}
}
|
[
"chovavea@outlook.com"
] |
chovavea@outlook.com
|
f223dc4dc5149aac445e673f9453d1d2be54d578
|
7fa9c6b0fa1d0726ae1cda0199716c811a1ea01b
|
/Crawler/data/MetricException.java
|
9d1c6c35ebfa74c2386b4dea7eeb3d4d716baff3
|
[] |
no_license
|
NayrozD/DD2476-Project
|
b0ca75799793d8ced8d4d3ba3c43c79bb84a72c0
|
94dfb3c0a470527b069e2e0fd9ee375787ee5532
|
refs/heads/master
| 2023-03-18T04:04:59.111664
| 2021-03-10T15:03:07
| 2021-03-10T15:03:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,160
|
java
|
18
https://raw.githubusercontent.com/WeBankFinTech/Schedulis/master/azkaban-common/src/main/java/azkaban/metric/MetricException.java
/*
* Copyright 2012 LinkedIn Corp.
*
* 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 azkaban.metric;
/**
* Exception for Azkaban's Metric Component
*/
public class MetricException extends Exception {
private static final long serialVersionUID = 1L;
public MetricException(final String message) {
super(message);
}
public MetricException(final Throwable cause) {
super(cause);
}
public MetricException(final String message, final Throwable cause) {
super(message, cause);
}
}
|
[
"veronika.cucorova@gmail.com"
] |
veronika.cucorova@gmail.com
|
a192dfa16d526bbe3b1cff40511aa6ccc5f85a1b
|
3df594535bae499a9a58422c44bec1bfba4670d5
|
/src/com/eams/admin/action/ClassInfoAction.java
|
e68f932dbd287ce2078c3699304a5624614785bb
|
[] |
no_license
|
simonxu14/EAMS
|
5d2fa8be31b2dd41e201130b1d1583e123e82559
|
4860523c0aab1853b2789ecfe73d52dff863e508
|
refs/heads/master
| 2016-09-06T04:40:36.338352
| 2015-05-01T06:49:17
| 2015-05-01T06:49:17
| 34,892,365
| 1
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 3,960
|
java
|
package com.eams.admin.action;
import java.util.List;
import java.util.Map;
import com.eams.admin.service.ClassInfoService;
import com.eams.model.ClassInfo;
import com.eams.model.GradeInfo;
import com.eams.admin.service.GradeInfoService;
import com.opensymphony.xwork2.ActionContext;
public class ClassInfoAction {
private ClassInfoService classInfoService;
private GradeInfoService gradeInfoService;
private GradeInfo gradeInfo;
private ClassInfo classInfo;
private Map<String,Object> request;
private Map<String,Object> request_grade;
public GradeInfoService getGradeInfoService() {
return gradeInfoService;
}
public void setGradeInfoService(GradeInfoService gradeInfoService) {
this.gradeInfoService = gradeInfoService;
}
public GradeInfo getGradeInfo() {
return gradeInfo;
}
public void setGradeInfo(GradeInfo gradeInfo) {
this.gradeInfo = gradeInfo;
}
public Map<String, Object> getRequest_grade() {
return request_grade;
}
public void setRequest_grade(Map<String, Object> request_grade) {
this.request_grade = request_grade;
}
public ClassInfoService getClassInfoService() {
return classInfoService;
}
public void setClassInfoService(ClassInfoService classInfoService) {
this.classInfoService = classInfoService;
}
public ClassInfo getClassInfo() {
return classInfo;
}
public void setClassInfo(ClassInfo classInfo) {
this.classInfo = classInfo;
}
public Map<String, Object> getRequest() {
return request;
}
public void setRequest(Map<String, Object> request) {
this.request = request;
}
public void list(){
List<ClassInfo> list = classInfoService.queryAllClassInfo();
request = (Map)ActionContext.getContext().get("request");
// System.out.println(list.get(0));
// System.out.println(list.get(0).getGradeInfo().getGradeName());
request.put("allClassInfo", list);
}
public void list_grade(){
List<GradeInfo> list_grade = gradeInfoService.queryAllGradeInfo();
request_grade = (Map)ActionContext.getContext().get("request");
request_grade.put("allGradeInfo", list_grade);
}
public void realList(){
List<ClassInfo> list = classInfoService.queryRealAllClassInfo();
request = (Map)ActionContext.getContext().get("request");
request.put("allClassInfo", list);
}
public String showClassInfo(){
list();
return "showclassinfo";
}
public String showRealClassInfo(){
realList();
return "showclassinfo";
}
public String forAddClassInfo(){
list_grade();
return "addclassinfo";
}
//่ฝฌๆขgradeInfo.gradeNameๆๅฎๆดgradeInfo็ฑปๅ
public void exchange(){
System.out.println(classInfo.getGradeInfo().getGradeId());
gradeInfo = gradeInfoService.queryGradeById(classInfo.getGradeInfo().getGradeId());
}
public String addClassInfo(){
exchange();
if(classInfoService.addClassInfo(classInfo)){
list();
return "showclassinfo";
}
else
return "classinfofalse";
}
public String deleteClassInfo(){
if(classInfoService.deleteClassInfo(classInfo.getClassId())){
list();
return "showclassinfo";
}
else
return "classinfofalse";
}
public String delectRealClassInfo(){
if(classInfoService.deleteRealClassInfo(classInfo.getClassId())){
realList();
return "showclassinfo";
}
else
return "classinfofalse";
}
public String updateClassInfo(){
exchange();
if(classInfoService.updateClassInfo(classInfo)){
list();
return "showclassinfo";
}
else
return "classinfofalse";
}
public String forUpdateClassInfo(){
classInfo = classInfoService.forUpdateClassInfo(classInfo.getClassId());
if(classInfo != null){
list_grade();
return "updateclassinfo";
}
else
return "classinfofalse";
}
public String checkClassInfo(){
return null;
}
public String classPage(){
list();
return "classpage";
}
}
|
[
"simonxu14@gmail.com"
] |
simonxu14@gmail.com
|
6d20f873ccf3c6b9c7f775d4a023b9b07bbe6751
|
1a7b15f4494ed48fdbace10fb60d513e490276a6
|
/gto-support-picasso/src/main/java/org/ccci/gto/android/common/picasso/ScaleTransformation.java
|
6dd5467eab124fc6bb4b65191600dd9f0228d8b8
|
[
"MIT"
] |
permissive
|
MarcusManvinder/android-gto-support
|
3d31206fb424d50a7ad0e596013ef9c319a45d7c
|
949667738e2a302705f22d5602ac492df2b7a91e
|
refs/heads/master
| 2020-12-24T14:19:13.301865
| 2016-06-28T02:31:44
| 2016-06-28T02:31:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,912
|
java
|
package org.ccci.gto.android.common.picasso;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.squareup.picasso.Transformation;
public class ScaleTransformation implements Transformation {
private final int mMinWidth;
private final int mMinHeight;
private final boolean mOnlyScaleDown;
@Nullable
private transient String mKey;
public ScaleTransformation(final int minWidth, final int minHeight) {
mMinWidth = minWidth;
mMinHeight = minHeight;
mOnlyScaleDown = true;
}
@NonNull
@Override
public Bitmap transform(@NonNull final Bitmap source) {
final int inWidth = source.getWidth();
final int inHeight = source.getHeight();
if (inWidth <= 0 || inHeight <= 0) {
return source;
}
// calculate target size enforcing minWidth & minHeight
float scale = ((float) mMinWidth) / inWidth;
if (scale * inHeight < mMinHeight) {
scale = ((float) mMinHeight) / inHeight;
}
// only scale if necessary
if (!mOnlyScaleDown || scale < 1) {
Matrix matrix = new Matrix();
matrix.postScale(scale, scale);
final Bitmap target = Bitmap.createBitmap(source, 0, 0, inWidth, inHeight, matrix, false);
// recycle source if we have a different target
if (target != source) {
source.recycle();
}
return target;
}
// return the source if we aren't scaling
return source;
}
@Override
public String key() {
if (mKey == null) {
mKey = "scale(minWidth=" + mMinWidth + ",minHeight=" + mMinHeight + ",onlyScaleDown=" + mOnlyScaleDown +
")";
}
return mKey;
}
}
|
[
"daniel.frett@ccci.org"
] |
daniel.frett@ccci.org
|
9dd1d057a09974bbc48c590fc7726319381951cc
|
b780c6d51def4f6631535d5751fc2b1bc40072c7
|
/bugswarm-sandbox/bugs/SonarSource/sonar-php/81370544/pre_bug/sonar-php-plugin/src/main/java/org/sonar/plugins/php/PHPProfileDefinition.java
|
636987ace7819c35b3b61c7178ff9c58cae222b1
|
[] |
no_license
|
FranciscoRibeiro/bugswarm-case-studies
|
95fad7a9b3d78fcdd2d3941741163ad73e439826
|
b2fb9136c3dcdd218b80db39a8a1365bf0842607
|
refs/heads/master
| 2023-07-08T05:27:27.592054
| 2021-08-19T17:27:54
| 2021-08-19T17:27:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,194
|
java
|
/*
* SonarQube PHP Plugin
* Copyright (C) 2010-2018 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package org.sonar.plugins.php;
import com.google.gson.Gson;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.nio.charset.StandardCharsets;
import java.util.Set;
import org.sonar.api.profiles.ProfileDefinition;
import org.sonar.api.profiles.RulesProfile;
import org.sonar.api.rules.Rule;
import org.sonar.api.rules.RuleFinder;
import org.sonar.api.utils.ValidationMessages;
import org.sonar.php.checks.CheckList;
import org.sonar.plugins.php.api.Php;
/**
* Sonar way profile.
* <p>
* We currently also define two other profiles, see {@link DrupalProfileDefinition} and {@link PSR2ProfileDefinition}.
*
*/
public final class PHPProfileDefinition extends ProfileDefinition {
public static final String SONAR_WAY_PROFILE = "Sonar way";
private final RuleFinder ruleFinder;
public PHPProfileDefinition(RuleFinder ruleFinder) {
this.ruleFinder = ruleFinder;
}
@Override
public RulesProfile createProfile(ValidationMessages validation) {
RulesProfile profile = RulesProfile.create(SONAR_WAY_PROFILE, Php.KEY);
activateCommonRules(profile);
activateRulesFromDefaultProfile(profile);
return profile;
}
private void activateCommonRules(RulesProfile profile) {
Rule duplicatedBlocksRule = ruleFinder.findByKey("common-" + Php.KEY, "DuplicatedBlocks");
// in SonarLint duplicatedBlocksRule == null
if (duplicatedBlocksRule != null) {
profile.activateRule(duplicatedBlocksRule, null);
}
}
private void activateRulesFromDefaultProfile(RulesProfile profile) {
for (String ruleKey : defaultProfileRuleKeys()) {
Rule rule = ruleFinder.findByKey(CheckList.REPOSITORY_KEY, ruleKey);
profile.activateRule(rule, null);
}
}
static Set<String> defaultProfileRuleKeys() {
String location = "/org/sonar/l10n/php/rules/php/Sonar_way_profile.json";
InputStream stream = PHPProfileDefinition.class.getResourceAsStream(location);
try (Reader reader = new InputStreamReader(stream, StandardCharsets.UTF_8)) {
Gson gson = new Gson();
return gson.fromJson(reader, Profile.class).ruleKeys;
} catch (IOException e) {
throw new IllegalStateException("Failed to read: " + location, e);
}
}
private static class Profile {
Set<String> ruleKeys;
}
}
|
[
"kikoribeiro95@gmail.com"
] |
kikoribeiro95@gmail.com
|
2e135c711f1d2e0f31a3c0ef4ac8fec534c81312
|
43ec0b24cd7419639788a0ff82c346a9655c3d1b
|
/app/src/main/java/io/netopen/hotbitmapgg/rxjava2demo/ui/adapter/base/AbsRecyclerViewAdapter.java
|
954bba05d2abf5a2e77b77468999903655da8ea1
|
[] |
no_license
|
HotBitmapGG/RxJava2Demo
|
76e37f1a7582e6b4ea89773cb7fd92e4c2417361
|
c117b58c536f51227183b6eef152c7989d815bc0
|
refs/heads/master
| 2021-01-12T03:42:32.545009
| 2017-03-03T08:24:57
| 2017-03-03T08:24:57
| 78,255,085
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,643
|
java
|
package io.netopen.hotbitmapgg.rxjava2demo.ui.adapter.base;
import java.util.List;
import android.content.Context;
import android.support.annotation.IdRes;
import android.support.v7.widget.RecyclerView;
import android.view.View;
/**
* Created by hcc on 2017/2/13 14:36
* 100332338@qq.com
* RecyclerViewๅบ็ฑป
*
* @HotBitmapGG
*/
public abstract class AbsRecyclerViewAdapter<T>
extends RecyclerView.Adapter<AbsRecyclerViewAdapter.ClickableViewHolder> {
private Context context;
public List<T> mDataSources;
private OnItemClickListener itemClickListener;
private OnItemLongClickListener itemLongClickListener;
public void setOnItemClickListener(OnItemClickListener listener) {
this.itemClickListener = listener;
}
public void setOnItemLongClickListener(OnItemLongClickListener listener) {
this.itemLongClickListener = listener;
}
/**
* ่ฎพ็ฝฎRecyclerViewๆฐๆฎๆบ
*/
public void setDataSources(List<T> dataSources) {
this.mDataSources = dataSources;
}
/**
* ่ฎพ็ฝฎRecyclerView็count
*/
@Override
public int getItemCount() {
return mDataSources == null ? 0 : mDataSources.size();
}
/**
* ่ฎพ็ฝฎContext
*/
public void bindContext(Context context) {
this.context = context;
}
/**
* ่ทๅContext
*/
public Context getContext() {
return this.context;
}
/**
* ้ๅonBindViewHolder่ฎพ็ฝฎitem็็นๅปๅ้ฟๆไบไปถ็็ๅฌ
*/
@Override
public void onBindViewHolder(final ClickableViewHolder holder, final int position) {
holder.getParentView().setOnClickListener(v -> {
if (itemClickListener != null) {
itemClickListener.onItemClick(position, holder);
}
});
holder.getParentView()
.setOnLongClickListener(v -> itemLongClickListener != null &&
itemLongClickListener.onItemLongClick(position, holder));
}
/**
* Item็นๅปไบไปถๆฅๅฃ
*/
public interface OnItemClickListener {
void onItemClick(int position, ClickableViewHolder holder);
}
/**
* Item้ฟๆไบไปถๆฅๅฃ
*/
public interface OnItemLongClickListener {
boolean onItemLongClick(int position, ClickableViewHolder holder);
}
public static class ClickableViewHolder extends RecyclerView.ViewHolder {
private View parentView;
public ClickableViewHolder(View itemView) {
super(itemView);
this.parentView = itemView;
}
public View getParentView() {
return parentView;
}
@SuppressWarnings("unchecked")
public <T extends View> T $(@IdRes int id) {
return (T) parentView.findViewById(id);
}
}
}
|
[
"100332338@qq.com"
] |
100332338@qq.com
|
0d3280ff770db4b78af61f8e3ef3a0bfbf369fe3
|
5074b0ab213819756e5ff8d2d043d951b258ff8b
|
/TianTianQuan/src/main/java/com/mzs/guaji/core/DialogResultListener.java
|
99710967dc893530e1b1c4057366ae0cadc1ffce
|
[] |
no_license
|
285336243/trunk
|
1ea5102cf5f12e8b34704028a6cafc0f4d1de891
|
96c5e68ccef71e6ed3ac9a161595936456cf2360
|
refs/heads/master
| 2021-01-13T00:37:16.942406
| 2016-03-27T09:31:17
| 2016-03-27T09:31:17
| 53,727,287
| 3
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,125
|
java
|
/*
* Copyright 2012 GitHub Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.mzs.guaji.core;
import android.os.Bundle;
/**
* Listener that dialogs results are delivered too
*/
public interface DialogResultListener {
/**
* Callback for a dialog finishing and delivering a result
*
* @param requestCode
* @param resultCode
* result such as {@link android.app.Activity#RESULT_CANCELED} or
* {@link android.app.Activity#RESULT_OK}
* @param arguments
*/
void onDialogResult(int requestCode, int resultCode, Bundle arguments);
}
|
[
"285336243@qq.com"
] |
285336243@qq.com
|
2d999826810b6d793fb6e683d208826d6b6bdc93
|
9282591635f3cf5a640800f2b643cd57048ed29f
|
/app/src/main/java/com/android/p2pflowernet/project/view/fragments/affirm/AffirmIndentActivity.java
|
a78330ad02ffcadc498c6769e2a8d4548d2759e2
|
[] |
no_license
|
AHGZ/B2CFlowerNetProject
|
de5dcbf2cbb67809b00f86639d592309d84b3283
|
b1556c4b633fa7c0c1463af94db9f91285070714
|
refs/heads/master
| 2020-03-09T17:27:14.889919
| 2018-04-10T09:36:33
| 2018-04-10T09:36:33
| 128,908,791
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,885
|
java
|
package com.android.p2pflowernet.project.view.fragments.affirm;
import android.content.Intent;
import android.view.KeyEvent;
import com.android.p2pflowernet.project.entity.OrderDetailBean;
import com.android.p2pflowernet.project.mvp.KActivity;
import com.android.p2pflowernet.project.mvp.KFragment;
import com.umeng.analytics.MobclickAgent;
/**
* Created by caishen on 2017/10/28.
* by--็กฎ่ฎค่ฎขๅ็้กต้ข
*/
public class AffirmIndentActivity extends KActivity {
//
private FragmentBackListener backListener;
private boolean isInterception = false;
@Override
protected KFragment getFirstFragment() {
Intent intent = getIntent();
OrderDetailBean data = (OrderDetailBean) intent.getSerializableExtra("data");
return AffirmIndentFragment.newIntence(data);
}
public void setBackListener(FragmentBackListener backListener) {
this.backListener = backListener;
}
//ๆฏๅฆๆฆๆช
public boolean isInterception() {
return isInterception;
}
public void setInterception(boolean isInterception) {
this.isInterception = isInterception;
}
//่ฟๅ้ฎ็ๅฌๅฎ็ฐ
public interface FragmentBackListener {
void onBackForward();
}
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {
if (isInterception()) {
if (backListener != null) {
backListener.onBackForward();
return false;
}
}
}
return super.onKeyDown(keyCode, event);
}
/***
* ๅ็็ป่ฎก
*/
public void onResume() {
super.onResume();
MobclickAgent.onResume(this); //็ป่ฎกๆถ้ฟ
}
public void onPause() {
super.onPause();
MobclickAgent.onPause(this);
}
}
|
[
"18911005030@163.com"
] |
18911005030@163.com
|
17f9e576682335a320e961b7b3491482b1772a24
|
40cd4da5514eb920e6a6889e82590e48720c3d38
|
/desktop/applis/apps/bean/bean_games/pokemonbean/src/main/java/aiki/beans/help/FightHelpBeanAttackFirst.java
|
48721e66e8a7504d89e9c268356982b779f3bc85
|
[] |
no_license
|
Cardman/projects
|
02704237e81868f8cb614abb37468cebb4ef4b31
|
23a9477dd736795c3af10bccccb3cdfa10c8123c
|
refs/heads/master
| 2023-08-17T11:27:41.999350
| 2023-08-15T07:09:28
| 2023-08-15T07:09:28
| 34,724,613
| 4
| 0
| null | 2020-10-13T08:08:38
| 2015-04-28T10:39:03
|
Java
|
UTF-8
|
Java
| false
| false
| 372
|
java
|
package aiki.beans.help;
import aiki.beans.PokemonBeanStruct;
import code.bean.nat.*;
import code.bean.nat.*;
import code.bean.nat.*;
public class FightHelpBeanAttackFirst implements NatCaller{
@Override
public NaSt re(NaSt _instance, NaSt[] _args){
return NaBoSt.of(( (FightHelpBean) ((PokemonBeanStruct)_instance).getInstance()).attackFirst());
}
}
|
[
"f.desrochettes@gmail.com"
] |
f.desrochettes@gmail.com
|
f6438d9d56edb3d4a1acce71e025d3c169483f91
|
897a40e851a3c1f1b24f2ff57c42b174dbe21f88
|
/core-hillfog/src/org/qifu/hillfog/service/impl/PdcaItemOwnerServiceImpl.java
|
3d6d3bff47195936986ef1987dc046bca877b381
|
[] |
no_license
|
Eazash/hillfog
|
8e7da85ab1ecd74a1008e4c7fda3a63c75619c0d
|
fdd275c7aaa48087a8995d8420f70d46f9fc2c75
|
refs/heads/master
| 2023-08-25T00:57:43.553095
| 2021-10-19T11:19:16
| 2021-10-19T11:19:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,763
|
java
|
/*
* Copyright 2019-2021 qifu of copyright Chen Xin Nien
*
* 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.
*
* -----------------------------------------------------------------------
*
* author: Chen Xin Nien
* contact: chen.xin.nien@gmail.com
*
*/
package org.qifu.hillfog.service.impl;
import org.qifu.base.mapper.IBaseMapper;
import org.qifu.base.service.BaseService;
import org.qifu.hillfog.entity.HfPdcaItemOwner;
import org.qifu.hillfog.mapper.HfPdcaItemOwnerMapper;
import org.qifu.hillfog.service.IPdcaItemOwnerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
@Component
@Service
@Transactional(propagation=Propagation.REQUIRED, timeout=300, readOnly=true)
public class PdcaItemOwnerServiceImpl extends BaseService<HfPdcaItemOwner, String> implements IPdcaItemOwnerService<HfPdcaItemOwner, String> {
@Autowired
HfPdcaItemOwnerMapper hfPdcaItemOwnerMapper;
@Override
protected IBaseMapper<HfPdcaItemOwner, String> getBaseMapper() {
return this.hfPdcaItemOwnerMapper;
}
}
|
[
"chen.xin.nien@gmail.com"
] |
chen.xin.nien@gmail.com
|
27273fe09c57cc22389c6696c8fd097cac2ed36f
|
29345337bf86edc938f3b5652702d551bfc3f11a
|
/core/src/main/java/com/alibaba/alink/operator/batch/timeseries/LSTNetTrainBatchOp.java
|
aafa3e430e66322151f6549a7d3924f589ecd948
|
[
"Apache-2.0"
] |
permissive
|
vacaly/Alink
|
32b71ac4572ae3509d343e3d1ff31a4da2321b6d
|
edb543ee05260a1dd314b11384d918fa1622d9c1
|
refs/heads/master
| 2023-07-21T03:29:07.612507
| 2023-07-12T12:41:31
| 2023-07-12T12:41:31
| 283,079,072
| 0
| 0
|
Apache-2.0
| 2020-07-28T02:46:14
| 2020-07-28T02:46:13
| null |
UTF-8
|
Java
| false
| false
| 7,080
|
java
|
package com.alibaba.alink.operator.batch.timeseries;
import org.apache.flink.api.common.functions.MapPartitionFunction;
import org.apache.flink.api.common.typeinfo.TypeInformation;
import org.apache.flink.api.java.DataSet;
import org.apache.flink.api.java.tuple.Tuple2;
import org.apache.flink.ml.api.misc.param.Params;
import org.apache.flink.types.Row;
import org.apache.flink.util.Collector;
import com.alibaba.alink.common.type.AlinkTypes;
import com.alibaba.alink.common.annotation.InputPorts;
import com.alibaba.alink.common.annotation.Internal;
import com.alibaba.alink.common.annotation.NameCn;
import com.alibaba.alink.common.annotation.NameEn;
import com.alibaba.alink.common.annotation.OutputPorts;
import com.alibaba.alink.common.annotation.ParamCond;
import com.alibaba.alink.common.annotation.ParamCond.CondType;
import com.alibaba.alink.common.annotation.ParamMutexRule;
import com.alibaba.alink.common.annotation.ParamMutexRule.ActionType;
import com.alibaba.alink.common.annotation.ParamSelectColumnSpec;
import com.alibaba.alink.common.annotation.PortSpec;
import com.alibaba.alink.common.annotation.PortType;
import com.alibaba.alink.common.annotation.TypeCollections;
import com.alibaba.alink.common.exceptions.AkPreconditions;
import com.alibaba.alink.common.linalg.tensor.FloatTensor;
import com.alibaba.alink.common.linalg.tensor.Tensor;
import com.alibaba.alink.common.linalg.tensor.TensorUtil;
import com.alibaba.alink.common.utils.JsonConverter;
import com.alibaba.alink.common.utils.TableUtil;
import com.alibaba.alink.operator.batch.BatchOperator;
import com.alibaba.alink.operator.batch.tensorflow.TFTableModelTrainBatchOp;
import com.alibaba.alink.operator.common.dataproc.SortUtils;
import com.alibaba.alink.operator.common.tree.Preprocessing;
import com.alibaba.alink.params.timeseries.LSTNetPreProcessParams;
import com.alibaba.alink.params.timeseries.LSTNetTrainParams;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
@InputPorts(values = @PortSpec(PortType.DATA))
@OutputPorts(values = @PortSpec(PortType.MODEL))
@ParamSelectColumnSpec(name = "timeCol", allowedTypeCollections = TypeCollections.TIMESTAMP_TYPES)
@ParamSelectColumnSpec(name = "selectedCol")
@ParamSelectColumnSpec(name = "vectorCol", allowedTypeCollections = TypeCollections.VECTOR_TYPES)
@ParamMutexRule(
name = "vectorCol", type = ActionType.DISABLE,
cond = @ParamCond(
name = "selectedCol",
type = CondType.WHEN_NOT_NULL
)
)
@ParamMutexRule(
name = "selectedCol", type = ActionType.DISABLE,
cond = @ParamCond(
name = "vectorCol",
type = CondType.WHEN_NOT_NULL
)
)
@NameCn("LSTNet่ฎญ็ป")
@NameEn("LSTNet Training")
public class LSTNetTrainBatchOp extends BatchOperator <LSTNetTrainBatchOp>
implements LSTNetTrainParams <LSTNetTrainBatchOp> {
public LSTNetTrainBatchOp() {
this(new Params());
}
public LSTNetTrainBatchOp(Params params) {
super(params);
}
@Override
public LSTNetTrainBatchOp linkFrom(BatchOperator <?>... inputs) {
BatchOperator <?> input = checkAndGetFirst(inputs);
BatchOperator <?> preprocessed = new LSTNetPreProcessBatchOp(getParams().clone())
.setOutputCols("tensor", "y")
.setMLEnvironmentId(getMLEnvironmentId())
.linkFrom(input);
Map <String, Object> modelConfig = new HashMap <>();
modelConfig.put("window", getWindow());
modelConfig.put("horizon", getHorizon());
Map <String, String> userParams = new HashMap <>();
userParams.put("tensorCol", "tensor");
userParams.put("labelCol", "y");
userParams.put("batch_size", String.valueOf(getBatchSize()));
userParams.put("num_epochs", String.valueOf(getNumEpochs()));
userParams.put("model_config", JsonConverter.toJson(modelConfig));
TFTableModelTrainBatchOp tfTableModelTrainBatchOp = new TFTableModelTrainBatchOp(getParams().clone())
.setSelectedCols("tensor", "y")
.setUserFiles(new String[] {"res:///tf_algos/lstnet_entry.py"})
.setMainScriptFile("res:///tf_algos/lstnet_entry.py")
.setUserParams(JsonConverter.toJson(userParams))
.linkFrom(preprocessed)
.setMLEnvironmentId(getMLEnvironmentId());
setOutputTable(tfTableModelTrainBatchOp.getOutputTable());
return this;
}
@Internal
private static class LSTNetPreProcessBatchOp extends BatchOperator <LSTNetPreProcessBatchOp>
implements LSTNetPreProcessParams <LSTNetPreProcessBatchOp> {
public LSTNetPreProcessBatchOp() {
this(new Params());
}
public LSTNetPreProcessBatchOp(Params params) {
super(params);
}
@Override
public LSTNetPreProcessBatchOp linkFrom(BatchOperator <?>... inputs) {
BatchOperator <?> input = checkAndGetFirst(inputs);
final String colName;
if (getParams().contains(VECTOR_COL)) {
colName = getVectorCol();
} else {
colName = getSelectedCol();
}
AkPreconditions.checkNotNull(colName);
final String timeCol = getTimeCol();
input = Preprocessing.select(input, timeCol, colName);
final int colIndex = TableUtil.findColIndexWithAssertAndHint(input.getColNames(), colName);
final int timeColIndex = TableUtil.findColIndexWithAssertAndHint(input.getColNames(), timeCol);
final int window = getWindow();
final int horizon = getHorizon();
Tuple2 <DataSet <Tuple2 <Integer, Row>>, DataSet <Tuple2 <Integer, Long>>> sorted =
SortUtils.pSort(input.getDataSet(), timeColIndex);
String[] outputColNames = getOutputCols();
AkPreconditions.checkState(outputColNames != null
&& (outputColNames.length == 1 || outputColNames.length == 2));
final boolean genY = outputColNames.length == 2;
TypeInformation <?>[] outputColTypes = genY ?
new TypeInformation <?>[] {AlinkTypes.FLOAT_TENSOR, AlinkTypes.FLOAT_TENSOR} :
new TypeInformation <?>[] {AlinkTypes.FLOAT_TENSOR};
setOutput(
sorted.f0
.partitionByHash(0)
.mapPartition(
new MapPartitionFunction <Tuple2 <Integer, Row>, Row>() {
@Override
public void mapPartition(Iterable <Tuple2 <Integer, Row>> values,
Collector <Row> out) {
final ArrayList <Tuple2 <Integer, FloatTensor>> tensors = new ArrayList <>();
for (Tuple2 <Integer, Row> val : values) {
tensors.add(
Tuple2.of(
val.f0,
FloatTensor.of(TensorUtil.getTensor(val.f1.getField(colIndex)))
)
);
}
tensors.sort(Comparator.comparing(o -> o.f0));
// batchify
int size = tensors.size();
FloatTensor[] floatTensors = new FloatTensor[window];
for (int i = window + horizon - 1; i < size; ++i) {
int end = i - horizon + 1;
int start = end - window;
for (int j1 = start, j2 = 0; j1 < end; ++j1, ++j2) {
floatTensors[j2] = tensors.get(j1).f1;
}
if (genY) {
out.collect(Row.of(Tensor.stack(floatTensors, 0, null), tensors.get(i).f1));
} else {
out.collect(Row.of(Tensor.stack(floatTensors, 0, null)));
}
}
}
}
),
outputColNames,
outputColTypes
);
return this;
}
}
}
|
[
"shaomeng.wang.w@gmail.com"
] |
shaomeng.wang.w@gmail.com
|
2703d58464ffc96b4386b5208eca468404154cb8
|
b933af3eeaf96b0d4874534c30a33ea2268cefca
|
/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/politician/pagemode/AbstractPoliticianRankingPageModContentFactoryImpl.java
|
92f41a19cd5407f68b75b37fb29984143c7cfed1
|
[
"Apache-2.0"
] |
permissive
|
sam65536/cia
|
9d862f80063ad4d016f42fee0a62cb116094a254
|
94ad9a5f6499aee220cc302dc4758339d9d74608
|
refs/heads/master
| 2020-03-21T19:39:26.824532
| 2018-06-27T20:55:34
| 2018-06-27T20:55:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,733
|
java
|
/*
* Copyright 2014 James Pether Sรถrling
*
* 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.
*
* $Id$
* $HeadURL$
*/
package com.hack23.cia.web.impl.ui.application.views.user.politician.pagemode;
import org.springframework.beans.factory.annotation.Autowired;
import com.hack23.cia.web.impl.ui.application.views.common.menufactory.api.PoliticianRankingMenuItemFactory;
import com.hack23.cia.web.impl.ui.application.views.common.pagemode.AbstractPageModContentFactoryImpl;
/**
* The Class AbstractPoliticianRankingPageModContentFactoryImpl.
*/
abstract class AbstractPoliticianRankingPageModContentFactoryImpl extends AbstractPageModContentFactoryImpl {
/** The politician ranking menu item factory. */
@Autowired
private PoliticianRankingMenuItemFactory politicianRankingMenuItemFactory;
/**
* Instantiates a new abstract politician ranking page mod content factory
* impl.
*/
AbstractPoliticianRankingPageModContentFactoryImpl() {
super();
}
/**
* Gets the politician ranking menu item factory.
*
* @return the politician ranking menu item factory
*/
protected final PoliticianRankingMenuItemFactory getPoliticianRankingMenuItemFactory() {
return politicianRankingMenuItemFactory;
}
}
|
[
"pether.sorling@gmail.com"
] |
pether.sorling@gmail.com
|
7358f163fc635cc1a11c3ba11d31c61285463ae5
|
5bc9d8f92f38967cc9ecc03000c0606dbbb38f74
|
/sca4j/modules/tags/sca4j-modules-parent-pom-0.9.1/extension/binding/sca4j-binding-oracle-aq/src/main/java/org/sca4j/binding/oracle/aq/introspection/AQBindingLoader.java
|
09d1947542bfe6bcc84fb795b489e12042faed9d
|
[] |
no_license
|
codehaus/service-conduit
|
795332fad474e12463db22c5e57ddd7cd6e2956e
|
4687d4cfc16f7a863ced69ce9ca81c6db3adb6d2
|
refs/heads/master
| 2023-07-20T00:35:11.240347
| 2011-08-24T22:13:28
| 2011-08-24T22:13:28
| 36,342,601
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,742
|
java
|
/*
* SCA4J
* Copyright (c) 2008-2012 Service Symphony Limited
*
* This proprietary software may be used only in connection with the SCA4J license
* (the ?License?), a copy of which is included in the software or may be obtained
* at: http://www.servicesymphony.com/licenses/license.html.
*
* Software distributed under the License is distributed on an as is basis, without
* warranties or conditions of any kind. See the License for the specific language
* governing permissions and limitations of use of the software. This software is
* distributed in conjunction with other software licensed under different terms.
* See the separate licenses for those programs included in the distribution for the
* permitted and restricted uses of such software.
*
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.sca4j.binding.oracle.aq.introspection;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;
import org.oasisopen.sca.annotation.EagerInit;
import org.oasisopen.sca.annotation.Reference;
import org.sca4j.binding.oracle.aq.common.InitialState;
import org.sca4j.binding.oracle.aq.scdl.AQBindingDefinition;
import org.sca4j.introspection.IntrospectionContext;
import org.sca4j.introspection.xml.LoaderException;
import org.sca4j.introspection.xml.LoaderHelper;
import org.sca4j.introspection.xml.LoaderUtil;
import org.sca4j.introspection.xml.TypeLoader;
import org.w3c.dom.Document;
/**
* Introspect's the XML.
*/
@EagerInit
public class AQBindingLoader implements TypeLoader<AQBindingDefinition> {
@Reference public LoaderHelper loaderHelper;
/**
* Introspect the XML.
*
* @param reader the reader
* @param loaderContext the loader context
*
* @return the AQ binding definition
*
* @throws XMLStreamException the XML stream exception
* @throws LoaderException the loader exception
*/
public AQBindingDefinition load(final XMLStreamReader reader, final IntrospectionContext loaderContext) throws XMLStreamException {
Document documentKey = loaderHelper.loadKey(reader);
AQBindingDefinition bindingDefinition = new AQBindingDefinition(documentKey);
bindingDefinition.destinationName = reader.getAttributeValue(null, "destination");
bindingDefinition.responseDestinationName = reader.getAttributeValue(null, "responseDestination");
bindingDefinition.dataSourceKey = reader.getAttributeValue(null, "dataSourceKey");
bindingDefinition.correlationId = reader.getAttributeValue(null, "correlationId");
String sInitialState = reader.getAttributeValue(null, "initialState");
if (sInitialState != null) {
bindingDefinition.initialState = InitialState.valueOf(sInitialState);
}
String sConsumerCount = reader.getAttributeValue(null, "consumerCount");
if (sConsumerCount != null) {
bindingDefinition.consumerCount = Integer.parseInt(sConsumerCount);
}
String sConsumerDelay = reader.getAttributeValue(null, "consumerDelay");
if (sConsumerDelay != null) {
bindingDefinition.consumerDelay = Long.parseLong(sConsumerCount);
}
String sDelay = reader.getAttributeValue(null, "delay");
if (sDelay != null) {
bindingDefinition.delay = Integer.parseInt(sDelay);
}
String sExceptionTimeout = reader.getAttributeValue(null, "exceptionTimeout");
if (sExceptionTimeout != null) {
bindingDefinition.exceptionTimeout = Long.parseLong(sExceptionTimeout);
}
loaderHelper.loadPolicySetsAndIntents(bindingDefinition, reader, loaderContext);
LoaderUtil.skipToEndElement(reader);
return bindingDefinition;
}
}
|
[
"meerajk@15bcc2b3-4398-4609-aa7c-97eea3cd106e"
] |
meerajk@15bcc2b3-4398-4609-aa7c-97eea3cd106e
|
4d7b9fe655f9601590a6b203a417731cc9bfde83
|
ece153c7951245fd47b1e7e12c33896f557e68db
|
/common-module-service/src/main/java/com/crawlermanage/service/transfer/LoanUnionPoVoTransfer.java
|
d18bb8e43e84811a196bda20029cb89d41d6ef8f
|
[] |
no_license
|
zhonghuayichen/crawler
|
05ed2a66adb1ea13ea7b43ca44ab5345c52c45ab
|
056f388477afa63bed5cf16e45e0ac0e95681d7d
|
refs/heads/master
| 2021-01-13T04:59:39.367625
| 2017-02-07T08:25:25
| 2017-02-07T08:25:25
| 81,163,841
| 0
| 0
| null | 2017-02-07T03:49:51
| 2017-02-07T03:49:51
| null |
UTF-8
|
Java
| false
| false
| 2,235
|
java
|
package com.crawlermanage.service.transfer;
import java.util.Date;
import org.apache.log4j.Logger;
import com.crawler.dailianmeng.domain.json.LoanUnionFeedJson;
import com.module.dao.entity.dailianmeng.LoanUnion;
/**
* @author kingly
* @date 2016ๅนด6ๆ13ๆฅ
* ๅฏน่ฑก่ฝฌๅๅทฅๅ
ท
*/
public class LoanUnionPoVoTransfer {
private static final Logger LOGGER = Logger.getLogger(LoanUnionPoVoTransfer.class);
public static LoanUnion voToPo(LoanUnionFeedJson loanUnionFeedJson) {
LoanUnion loanUnion = new LoanUnion();;
if (loanUnionFeedJson != null) {
loanUnion.setName(loanUnionFeedJson.getName());
loanUnion.setCaseNum(loanUnionFeedJson.getCaseNum());
loanUnion.setAge(loanUnionFeedJson.getAge());
loanUnion.setSex(loanUnionFeedJson.getSex());
loanUnion.setCardID(loanUnionFeedJson.getCardID());
loanUnion.setLegalPerson(loanUnionFeedJson.getLegalPerson());
loanUnion.setExecuteCourt(loanUnionFeedJson.getExecuteCourt());
loanUnion.setProvince(loanUnionFeedJson.getProvince());
loanUnion.setExecuteNum(loanUnionFeedJson.getExecuteNum());
loanUnion.setCaseDate(loanUnionFeedJson.getCaseDate());
loanUnion.setDependCourt(loanUnionFeedJson.getDependCourt());
loanUnion.setEffectNum(loanUnionFeedJson.getEffectNum());
loanUnion.setExecuteSituation(loanUnionFeedJson.getExecuteSituation());
loanUnion.setAlreadyExecute(loanUnionFeedJson.getAlreadyExecute());
loanUnion.setNoExecute(loanUnionFeedJson.getNoExecute());
loanUnion.setBehaviorSituation(loanUnionFeedJson.getBehaviorSituation());
loanUnion.setPubDate(loanUnionFeedJson.getPubDate());
loanUnion.setUpdateDate(loanUnionFeedJson.getUpdateDate());
loanUnion.setDebtMoney(loanUnionFeedJson.getDebtMoney());
loanUnion.setLoanDate(loanUnionFeedJson.getLoanDate());
loanUnion.setLoanTerm(loanUnionFeedJson.getLoanTerm());
loanUnion.setListType(loanUnionFeedJson.getListType());
loanUnion.setLoanState(loanUnionFeedJson.getLoanState());
loanUnion.setDescribe(loanUnionFeedJson.getDescribe());
loanUnion.setBirthday(loanUnionFeedJson.getBirthday());
loanUnion.setIssuePlace(loanUnionFeedJson.getIssuePlace());
}
return loanUnion;
}
}
|
[
"gengjie@upbase.com.cn"
] |
gengjie@upbase.com.cn
|
7c9e2bfc90c36222050b5cc735d50f75251051b4
|
b9e8ba3f2cb7cc3aec9025385129c1fdda6ec080
|
/src/com/click4care/wsdl/_6_5/integrationservices/FaxCoverListFilter.java
|
407862b37a03557c1702c0e30ada8545abd20315
|
[] |
no_license
|
petecummings/AcopyOfAcopy
|
af2c75a7f066515569afff364b0faf11562024f8
|
c83293be0bf5aa51c508df0db0f29654b56a13f9
|
refs/heads/master
| 2020-03-14T18:26:18.217011
| 2018-05-01T12:38:05
| 2018-05-01T12:38:05
| 131,741,148
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,940
|
java
|
package com.click4care.wsdl._6_5.integrationservices;
import java.math.BigInteger;
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;
/**
* <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">
* <choice>
* <element name="legacyId" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}integer" maxOccurs="unbounded"/>
* <sequence>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="typeId" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
* <element name="typeUniversalId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="typeSubtypeDropDownListItemLabel" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <choice minOccurs="0">
* <element name="createdDate" type="{http://click4care.com/wsdl/6.5/integrationServices}dateRange"/>
* <element name="lastActionDate" type="{http://click4care.com/wsdl/6.5/integrationServices}dateRange"/>
* </choice>
* <element name="queryState" type="{http://click4care.com/wsdl/6.5/integrationServices}queryStateType" minOccurs="0"/>
* </sequence>
* </choice>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"legacyId",
"id",
"name",
"typeId",
"typeUniversalId",
"typeSubtypeDropDownListItemLabel",
"createdDate",
"lastActionDate",
"queryState"
})
@XmlRootElement(name = "faxCoverListFilter")
public class FaxCoverListFilter {
protected List<String> legacyId;
protected List<BigInteger> id;
protected String name;
protected BigInteger typeId;
protected String typeUniversalId;
protected String typeSubtypeDropDownListItemLabel;
protected DateRange createdDate;
protected DateRange lastActionDate;
protected BigInteger queryState;
/**
* Gets the value of the legacyId 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 legacyId property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getLegacyId().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getLegacyId() {
if (legacyId == null) {
legacyId = new ArrayList<String>();
}
return this.legacyId;
}
/**
* Gets the value of the id 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 id property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getId().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link BigInteger }
*
*
*/
public List<BigInteger> getId() {
if (id == null) {
id = new ArrayList<BigInteger>();
}
return this.id;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the typeId property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getTypeId() {
return typeId;
}
/**
* Sets the value of the typeId property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setTypeId(BigInteger value) {
this.typeId = value;
}
/**
* Gets the value of the typeUniversalId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTypeUniversalId() {
return typeUniversalId;
}
/**
* Sets the value of the typeUniversalId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTypeUniversalId(String value) {
this.typeUniversalId = value;
}
/**
* Gets the value of the typeSubtypeDropDownListItemLabel property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTypeSubtypeDropDownListItemLabel() {
return typeSubtypeDropDownListItemLabel;
}
/**
* Sets the value of the typeSubtypeDropDownListItemLabel property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTypeSubtypeDropDownListItemLabel(String value) {
this.typeSubtypeDropDownListItemLabel = value;
}
/**
* Gets the value of the createdDate property.
*
* @return
* possible object is
* {@link DateRange }
*
*/
public DateRange getCreatedDate() {
return createdDate;
}
/**
* Sets the value of the createdDate property.
*
* @param value
* allowed object is
* {@link DateRange }
*
*/
public void setCreatedDate(DateRange value) {
this.createdDate = value;
}
/**
* Gets the value of the lastActionDate property.
*
* @return
* possible object is
* {@link DateRange }
*
*/
public DateRange getLastActionDate() {
return lastActionDate;
}
/**
* Sets the value of the lastActionDate property.
*
* @param value
* allowed object is
* {@link DateRange }
*
*/
public void setLastActionDate(DateRange value) {
this.lastActionDate = value;
}
/**
* Gets the value of the queryState property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getQueryState() {
return queryState;
}
/**
* Sets the value of the queryState property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setQueryState(BigInteger value) {
this.queryState = value;
}
}
|
[
"you@example.com"
] |
you@example.com
|
2e019a08237c119f8cc08ad16bbe86e8246b0a61
|
700d10ee31b5e6bd01c2e68a486653c6be153378
|
/tagManager/src/main/java/org/etocrm/tagManager/service/mat/IMatAutomationMarketingService.java
|
6e9fc62c10a22daef9e3df43611a0f9f222a6da5
|
[] |
no_license
|
chensude/tag
|
01dbe5b644f23967cd7680f8c9f8138077eec4b4
|
85364fdaaad626f61074677f5c310922c47b8280
|
refs/heads/master
| 2023-03-19T04:17:34.431545
| 2021-03-02T10:31:13
| 2021-03-02T10:31:13
| 343,733,956
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 731
|
java
|
package org.etocrm.tagManager.service.mat;
import org.etocrm.core.util.ResponseVO;
import org.etocrm.tagManager.model.VO.mat.MatWorkProcessSendRecordVO;
import org.etocrm.tagManager.model.VO.mat.MatWorkProcessVO;
import java.util.List;
import java.util.TreeMap;
public interface IMatAutomationMarketingService {
void calculationTagGroupByProcessRule(MatWorkProcessVO matWorkProcessVO);
void saveMarketingRule(MatWorkProcessVO matWorkProcessVO);
List<TreeMap> eventProcessPropertyScreen(MatWorkProcessVO matWorkProcessVO) ;
void asyncBatchSaveSendRecord(List<MatWorkProcessSendRecordVO> sendRecordVOs);
String getMemberInfo(TreeMap map) throws Exception;
String getMatTokenByOrgId(String orgId);
}
|
[
"1045763864@qq.com"
] |
1045763864@qq.com
|
7bf6e26c2a72318d0a85b7ded39bd0d8057b8c94
|
023f8818650434b4f5745d73c228e6c2fe61187b
|
/src/apt/src/vnmr/wizard/event/WizardEvent.java
|
44cfc4e2961bdb4e603bbb1d86cd026f3070cf6e
|
[
"Apache-2.0",
"GPL-3.0-only"
] |
permissive
|
OpenVnmrJ/OpenVnmrJ
|
da72bcb6dc10b1a7b7a56522e0d1028a06aa9fe6
|
0a35daed7d5ea2f512c5aa6248045979002c5ea1
|
refs/heads/master
| 2023-08-29T03:14:51.582756
| 2023-08-28T20:56:16
| 2023-08-28T20:56:16
| 50,125,031
| 39
| 112
|
Apache-2.0
| 2023-09-08T19:54:30
| 2016-01-21T17:42:10
|
C
|
UTF-8
|
Java
| false
| false
| 557
|
java
|
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
package vnmr.wizard.event;
public class WizardEvent extends java.util.EventObject {
private String m_trigger;
public WizardEvent(Object source, String trigger) {
super(source);
m_trigger = trigger;
}
public String getTrigger() {
return m_trigger;
}
}
|
[
"timburrow@me.com"
] |
timburrow@me.com
|
80bc73ebd03aef2ebf78ee45472e09766b0cfa6e
|
a134cd8c4c76360c00a065540692afff04a8201b
|
/derobot/src/main/java/com/ebrightmoon/derobot/reboot/config/TopActivityConfig.java
|
0e3d04f906c72b4c08d9fb7f142232cc434ce305
|
[] |
no_license
|
jinsedeyuzhou/component
|
8da744fe70ab1ee2f5dc3885b4012bc5ec925e1f
|
65252f55292a70c12587ec6b4306d1aae5f5493d
|
refs/heads/master
| 2023-06-11T15:37:17.625395
| 2023-05-28T14:33:33
| 2023-05-28T14:33:33
| 139,794,760
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 748
|
java
|
package com.ebrightmoon.derobot.reboot.config;
import android.content.Context;
import com.ebrightmoon.derobot.reboot.constant.SharedPrefsKey;
import com.ebrightmoon.derobot.reboot.util.SharedPrefsUtil;
/**
* ้กน็ฎๅ: Android
* ๅ
ๅ com.didichuxing.doraemonkit.config
* ๆไปถๅ: TopActivityConfig
* ๅๅปบๆถ้ด: 2019-04-29 on 12:27
*
* @author ้ฟ้
*/
public class TopActivityConfig {
public static boolean isTopActivityOpen(Context context) {
return SharedPrefsUtil.getBoolean(context, SharedPrefsKey.TOP_ACTIVITY_OPEN, false);
}
public static void setTopActivityOpen(Context context, boolean open) {
SharedPrefsUtil.putBoolean(context, SharedPrefsKey.TOP_ACTIVITY_OPEN, open);
}
}
|
[
"jinsedeyuzhou@gmail.com"
] |
jinsedeyuzhou@gmail.com
|
b549e92e86a6e5f0ae15f58ec2552fea2feead88
|
c4d1992bbfe4552ad16ff35e0355b08c9e4998d6
|
/releases/2.0.0RC/src/scratchpad/src/org/apache/poi/hwpf/sprm/SprmOperation.java
|
3b2fa692d2b369ea5a06704cfb5f5e444d2a2ae4
|
[] |
no_license
|
BGCX261/zkpoi-svn-to-git
|
36f2a50d2618c73e40f24ddc2d3df5aadc8eca30
|
81a63fb1c06a2dccff20cab1291c7284f1687508
|
refs/heads/master
| 2016-08-04T08:42:59.622864
| 2015-08-25T15:19:51
| 2015-08-25T15:19:51
| 41,594,557
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,742
|
java
|
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
package org.apache.poi.hwpf.sprm;
import org.apache.poi.util.BitField;
import org.apache.poi.util.BitFieldFactory;
import org.apache.poi.util.LittleEndian;
/**
* This class is used to represent a sprm operation from a Word 97/2000/XP
* document.
* @author Ryan Ackley
* @version 1.0
*/
public final class SprmOperation
{
final static private BitField OP_BITFIELD = BitFieldFactory.getInstance(0x1ff);
final static private BitField SPECIAL_BITFIELD = BitFieldFactory.getInstance(0x200);
final static private BitField TYPE_BITFIELD = BitFieldFactory.getInstance(0x1c00);
final static private BitField SIZECODE_BITFIELD = BitFieldFactory.getInstance(0xe000);
final static private short LONG_SPRM_TABLE = (short)0xd608;
final static private short LONG_SPRM_PARAGRAPH = (short)0xc615;
final static public int PAP_TYPE = 1;
final static public int TAP_TYPE = 5;
private int _type;
private int _operation;
private int _gOffset;
private byte[] _grpprl;
private int _sizeCode;
private int _size;
public SprmOperation(byte[] grpprl, int offset)
{
_grpprl = grpprl;
short sprmStart = LittleEndian.getShort(grpprl, offset);
_gOffset = offset + 2;
_operation = OP_BITFIELD.getValue(sprmStart);
_type = TYPE_BITFIELD.getValue(sprmStart);
_sizeCode = SIZECODE_BITFIELD.getValue(sprmStart);
_size = initSize(sprmStart);
}
public static int getOperationFromOpcode(short opcode)
{
return OP_BITFIELD.getValue(opcode);
}
public static int getTypeFromOpcode(short opcode)
{
return TYPE_BITFIELD.getValue(opcode);
}
public int getType()
{
return _type;
}
public int getOperation()
{
return _operation;
}
public int getGrpprlOffset()
{
return _gOffset;
}
public int getOperand()
{
switch (_sizeCode)
{
case 0:
case 1:
return _grpprl[_gOffset];
case 2:
case 4:
case 5:
return LittleEndian.getShort(_grpprl, _gOffset);
case 3:
return LittleEndian.getInt(_grpprl, _gOffset);
case 6:
byte operandLength = _grpprl[_gOffset + 1]; //surely shorter than an int...
byte [] codeBytes = new byte[LittleEndian.INT_SIZE]; //initialized to zeros by JVM
for(int i = 0; i < operandLength; i++)
if(_gOffset + i < _grpprl.length)
codeBytes[i] = _grpprl[_gOffset + 1 + i];
return LittleEndian.getInt(codeBytes, 0);
case 7:
byte threeByteInt[] = new byte[4];
threeByteInt[0] = _grpprl[_gOffset];
threeByteInt[1] = _grpprl[_gOffset + 1];
threeByteInt[2] = _grpprl[_gOffset + 2];
threeByteInt[3] = (byte)0;
return LittleEndian.getInt(threeByteInt, 0);
default:
throw new IllegalArgumentException("SPRM contains an invalid size code");
}
}
public int getSizeCode()
{
return _sizeCode;
}
public int size()
{
return _size;
}
public byte[] getGrpprl()
{
return _grpprl;
}
private int initSize(short sprm)
{
switch (_sizeCode)
{
case 0:
case 1:
return 3;
case 2:
case 4:
case 5:
return 4;
case 3:
return 6;
case 6:
if (sprm == LONG_SPRM_TABLE || sprm == LONG_SPRM_PARAGRAPH)
{
int retVal = (0x0000ffff & LittleEndian.getShort(_grpprl, _gOffset)) + 3;
_gOffset += 2;
return retVal;
}
return (0x000000ff & _grpprl[_gOffset++]) + 3;
case 7:
return 5;
default:
throw new IllegalArgumentException("SPRM contains an invalid size code");
}
}
}
|
[
"you@example.com"
] |
you@example.com
|
8262bf855961b495cef839719853bddf4c88f899
|
44167dd83d765514e6f95977acf926945f34936b
|
/common/src/main/java/org/geogebra/common/kernel/implicit/AlgoImplicitPolyTangentLine.java
|
40da86eb140fef894b753c73e2e63bf42cacee6d
|
[] |
no_license
|
westybsa/geogebra
|
3c1f2811c6ae7aea1f8babd1f30ef8242d2c0490
|
5b886613f406f976e7d7120505d0e03fbccdbfc2
|
refs/heads/master
| 2021-05-01T23:57:40.785075
| 2017-01-01T22:25:10
| 2017-01-01T22:25:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,234
|
java
|
package org.geogebra.common.kernel.implicit;
import org.geogebra.common.kernel.Construction;
import org.geogebra.common.kernel.Kernel;
import org.geogebra.common.kernel.algos.AlgoElement;
import org.geogebra.common.kernel.arithmetic.Equation;
import org.geogebra.common.kernel.arithmetic.ExpressionNode;
import org.geogebra.common.kernel.arithmetic.MyDouble;
import org.geogebra.common.kernel.commands.Commands;
import org.geogebra.common.kernel.geos.GeoElement;
import org.geogebra.common.kernel.geos.GeoLine;
import org.geogebra.common.kernel.geos.GeoPoint;
import org.geogebra.common.kernel.kernelND.GeoLineND;
import org.geogebra.common.kernel.kernelND.GeoPointND;
/**
* Algorithm for computation of tangent curve
*
*/
public class AlgoImplicitPolyTangentLine extends AlgoElement implements
AlgoTangentHelper {
private GeoImplicit poly;
private GeoLineND line;
private GeoImplicit tangentPoly;
/**
* @param c
* construction
* @param poly
* polynomial
* @param line
* parallel line
*/
public AlgoImplicitPolyTangentLine(Construction c, GeoImplicit poly,
GeoLineND line) {
super(c, false);
this.poly = poly;
this.line = line;
tangentPoly = (GeoImplicit) poly.copy();
// tangentPoly.preventPathCreation();
setInputOutput();
compute();
tangentPoly.setLabel("tgt");
}
@Override
public void compute() {
/*
* calculate tangent curve: dF/dx * x_p + dF/dy * y_p + u_{n-1} +
* 2*u_{n-2} + ... + n*u_0 where u_i are the terms of poly with total
* degree of i.
*/
if (line.isGeoElement3D()) {
return;
}
GeoLine line2D = (GeoLine) this.line;
tangentPoly.setDefined();
if (poly instanceof GeoImplicitCurve
&& poly.getCoeff() == null) {
GeoImplicitCurve inputCurve = ((GeoImplicitCurve) poly);
// build expression Fx*(x-x0)+Fy*(y-y0)
ExpressionNode y1 = new ExpressionNode(kernel, -line2D.getX());
ExpressionNode x1 = new ExpressionNode(kernel, line2D.getY());
x1 = x1.multiply(inputCurve.getDerivativeX().getExpression());
y1 = y1.multiply(inputCurve.getDerivativeY().getExpression());
tangentPoly.fromEquation(new Equation(kernel, x1.plus(y1),
new MyDouble(kernel, 0)), null);
return;
}
double x = line2D.getY();
double y = -line2D.getX();
double[][] coeff = poly.getCoeff();
double[][] newCoeff = new double[coeff.length][];
for (int i = 0; i < coeff.length; i++) {
newCoeff[i] = new double[coeff[i].length];
for (int j = 0; j < coeff[i].length; j++) {
newCoeff[i][j] = 0;
if (i + 1 < coeff.length && j < coeff[i + 1].length) {
newCoeff[i][j] += x * (i + 1) * coeff[i + 1][j];
}
if (j + 1 < coeff[i].length) {
newCoeff[i][j] += y * (j + 1) * coeff[i][j + 1];
}
// helper = helper.plus(vx.wrap().power(i)
// .multiply(vy.wrap().power(j)).multiply(newCoeff[i][j]));
}
}
tangentPoly.setCoeff(PolynomialUtils.coeffMinDeg(newCoeff));
tangentPoly.setDefined();
}
@Override
protected void setInputOutput() {
input = new GeoElement[] { poly.toGeoElement(), line.toGeoElement() };
setOutputLength(1);
setOutput(0, tangentPoly.toGeoElement());
setDependencies();
}
@Override
public Commands getClassName() {
return Commands.Tangent;
}
/**
* @return resulting tangent curve
*/
public GeoImplicit getTangentCurve() {
return tangentPoly;
}
public GeoElement getVec() {
return line.toGeoElement();
}
public boolean vecDefined() {
return line.isDefined();
}
public void getTangents(GeoPoint[] ip, OutputHandler<GeoLine> tangents) {
int n = 0;
GeoLine line2d = (GeoLine) line;
for (int i = 0; i < ip.length; i++) {
// normal vector does not exist, therefore tangent is not defined
// We need to check if F1 :=dF/dx and F2 :=dF/dy are both zero when
// eval at ip[i]
// The error of F1 is dF1/dx * err(x) + dF1/dy * err(y), where
// err(x) and err(y) satisfies
// | (dF/dx) err(x) + (dF/dy) err(y) | < EPSILON
// So |dF/dx|<= |dF1/dx * err(x) + dF1/dy * err(y)| <= Max(dF1/dx /
// dF/dx, dF1/dy / dF/dy) * EPSILON
// A convenient necessary condition of this is (dF/dx)^2 <= |dF1/dx|
// * EPSILON.
// Not very reasonably, now we use (dF/dx)^2 <= EPSILON only, to
// avoid evaluation of dF1/dx
// TODO: have a more reasonable choice; also we use standard
// precision rather than working precision (might not be a problem)
if (Kernel.isEqual(0,
this.poly.derivativeX(ip[i].inhomX, ip[i].inhomY),
Kernel.STANDARD_PRECISION_SQRT)
&& Kernel.isEqual(0,
this.poly.derivativeX(ip[i].inhomX, ip[i].inhomY),
Kernel.STANDARD_PRECISION_SQRT))
continue;
tangents.adjustOutputSize(n + 1);
tangents.getElement(n).setCoords(
line2d.getX(),
line2d.getY(),
-ip[i].getX() * line2d.getX() - line2d.getY()
* ip[i].getY());
ip[i].addIncidence(tangents.getElement(n), false);
n++;
}
}
public GeoPointND getTangentPoint(GeoElement geo, GeoLine line) {
// TODO Auto-generated method stub
return null;
}
}
|
[
"zbynek@geogebra.org"
] |
zbynek@geogebra.org
|
f9cf034e300d13a3725c5fe7248fdc4c05045470
|
a35b21de1b30f820214ed6a3f42543e0005c295b
|
/AJC/05.SpringEssential/04.Spring_MVC/01.SpringWebApp/src/main/java/com/eshop/config/WebConfig.java
|
bfe92adfb859876d4bcca91b503cd6ca1cb582e6
|
[] |
no_license
|
rosie-s/courses
|
a8baf2c0e0962b8e2429958e54cf1591f7aaaebf
|
379d3b1472e4e79d40ea3b539368bd321174c209
|
refs/heads/master
| 2022-06-23T19:39:50.897293
| 2020-10-23T13:32:26
| 2020-10-23T13:32:26
| 117,899,193
| 2
| 0
| null | 2022-06-21T04:07:50
| 2018-01-17T22:14:54
|
Java
|
UTF-8
|
Java
| false
| false
| 1,194
|
java
|
package com.eshop.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.view.JstlView;
import org.springframework.web.servlet.view.UrlBasedViewResolver;
@Configuration
@EnableWebMvc
public class WebConfig implements WebMvcConfigurer {
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
System.out.println("** Passing through config **");
registry.addResourceHandler("/css/**").addResourceLocations("/css/");
registry.addResourceHandler("/images/**").addResourceLocations("/images/");
}
@Bean
public UrlBasedViewResolver viewResolver() {
UrlBasedViewResolver viewResolver = new UrlBasedViewResolver();
viewResolver.setViewClass(JstlView.class);
viewResolver.setPrefix("/WEB-INF/views/");
viewResolver.setSuffix(".jsp");
return viewResolver;
}
}
|
[
"rosie-s@users.noreply.github.com"
] |
rosie-s@users.noreply.github.com
|
58bdce984bfd38e31d6a1634332252635683025b
|
5b18c2aa61fd21f819520f1b614425fd6bc73c71
|
/src/main/java/com/sinosoft/claim/bl/action/domain/PrpLinterInjuryPersonDtoBase.java
|
96af263092922c0917130f1777bc5820ff110f64
|
[] |
no_license
|
Akira-09/claim
|
471cc215fa77212099ca385e7628f3d69f83d6d8
|
6dd8a4d4eedb47098c09c2bf3f82502aa62220ad
|
refs/heads/master
| 2022-01-07T13:08:27.760474
| 2019-03-24T23:50:09
| 2019-03-24T23:50:09
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 979
|
java
|
package com.sinosoft.claim.bl.action.domain;
import java.io.Serializable;
public class PrpLinterInjuryPersonDtoBase implements Serializable {
private static final long serialVersionUID = 1L;
/** ๅฑๆงไธป้ฎpk */
private String id = "";
/** ๅฑๆงAcciName */
private String acciName = "";
/** ๅฑๆงSex */
private String sex = "";
/** ๅฑๆงIdentifyNumber */
private String identifyNumber = "";
public PrpLinterInjuryPersonDtoBase(){
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getAcciName() {
return acciName;
}
public void setAcciName(String acciName) {
this.acciName = acciName;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public String getIdentifyNumber() {
return identifyNumber;
}
public void setIdentifyNumber(String identifyNumber) {
this.identifyNumber = identifyNumber;
}
}
|
[
"26166405+vincentdk77@users.noreply.github.com"
] |
26166405+vincentdk77@users.noreply.github.com
|
0717b5950474e40c8d722ceaa5478bd1a09f90c5
|
9a55036f497829e11e97fff185af850174411a47
|
/scheduler/schemway-web/src/main/java/schemway/web/utils/Parameters.java
|
1ef1d0576f24a28224a809c6d6ac4826de2f0e93
|
[] |
no_license
|
bordozer/scheduler
|
90afa6906b90dd54e72dd2bd31f7781fc68826ab
|
9fc2f8f2e9390ac43f9397e12b6250dc66a03f86
|
refs/heads/master
| 2021-01-10T14:19:23.314804
| 2016-04-05T15:11:55
| 2016-04-05T15:11:55
| 43,315,134
| 1
| 2
| null | 2016-03-22T07:42:03
| 2015-09-28T17:16:59
|
Java
|
UTF-8
|
Java
| false
| false
| 428
|
java
|
package schemway.web.utils;
public class Parameters {
public static final String LOGIN_PAGE_URL = "/resources/login.html";
public static final String LOGIN_END_POINT = "/authenticate";
public static final String USERNAME = "login";
public static final String PASSWORD = "password";
public static final String REMEMBER_ME_KEY = "myAppKey";
public static final String PORTAL_PAGE_URL = "/scheduler/";
}
|
[
"Borys_Lukianov@epam.com"
] |
Borys_Lukianov@epam.com
|
f2c8de5dc7003a7448d758f2e37464d12ad9566b
|
a2df6764e9f4350e0d9184efadb6c92c40d40212
|
/aliyun-java-sdk-hitsdb/src/main/java/com/aliyuncs/hitsdb/model/v20170601/ModifyHiTSDBInstanceSecurityIpListRequest.java
|
64f42aab2cf52d480ef70ab89731f5c891d8b3d3
|
[
"Apache-2.0"
] |
permissive
|
warriorsZXX/aliyun-openapi-java-sdk
|
567840c4bdd438d43be6bd21edde86585cd6274a
|
f8fd2b81a5f2cd46b1e31974ff6a7afed111a245
|
refs/heads/master
| 2022-12-06T15:45:20.418475
| 2020-08-20T08:37:31
| 2020-08-26T06:17:49
| 290,450,773
| 1
| 0
|
NOASSERTION
| 2020-08-26T09:15:48
| 2020-08-26T09:15:47
| null |
UTF-8
|
Java
| false
| false
| 3,251
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.hitsdb.model.v20170601;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class ModifyHiTSDBInstanceSecurityIpListRequest extends RpcAcsRequest<ModifyHiTSDBInstanceSecurityIpListResponse> {
private Long resourceOwnerId;
private String securityToken;
private String resourceOwnerAccount;
private String ownerAccount;
private Long ownerId;
private String securityIpList;
private String instanceId;
public ModifyHiTSDBInstanceSecurityIpListRequest() {
super("hitsdb", "2017-06-01", "ModifyHiTSDBInstanceSecurityIpList", "hitsdb");
setMethod(MethodType.POST);
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public void setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
if(resourceOwnerId != null){
putQueryParameter("ResourceOwnerId", resourceOwnerId.toString());
}
}
public String getSecurityToken() {
return this.securityToken;
}
public void setSecurityToken(String securityToken) {
this.securityToken = securityToken;
if(securityToken != null){
putQueryParameter("SecurityToken", securityToken);
}
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public void setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
if(resourceOwnerAccount != null){
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
}
public String getOwnerAccount() {
return this.ownerAccount;
}
public void setOwnerAccount(String ownerAccount) {
this.ownerAccount = ownerAccount;
if(ownerAccount != null){
putQueryParameter("OwnerAccount", ownerAccount);
}
}
public Long getOwnerId() {
return this.ownerId;
}
public void setOwnerId(Long ownerId) {
this.ownerId = ownerId;
if(ownerId != null){
putQueryParameter("OwnerId", ownerId.toString());
}
}
public String getSecurityIpList() {
return this.securityIpList;
}
public void setSecurityIpList(String securityIpList) {
this.securityIpList = securityIpList;
if(securityIpList != null){
putQueryParameter("SecurityIpList", securityIpList);
}
}
public String getInstanceId() {
return this.instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
if(instanceId != null){
putQueryParameter("InstanceId", instanceId);
}
}
@Override
public Class<ModifyHiTSDBInstanceSecurityIpListResponse> getResponseClass() {
return ModifyHiTSDBInstanceSecurityIpListResponse.class;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
5fcb05be06151d08cdd8ca16595c179db963d225
|
f2bd083ebc26faa924f563f3db5685e75ef93f71
|
/tddl-rule/src/main/java/com/taobao/tddl/rule/Rule.java
|
bdd44bbb1c0c60244374e91a11922878a62ac7b7
|
[
"Apache-2.0"
] |
permissive
|
hejianzxl/TDDL-1
|
bf942c10d8e42d4a8f3e3eadb0c262fcaa03f299
|
33ab99c37ae8b927f1cd3294d1ec8aa31b71c84b
|
refs/heads/master
| 2022-07-01T08:56:47.798878
| 2015-08-18T02:55:16
| 2015-08-18T02:55:16
| 144,922,536
| 0
| 0
|
Apache-2.0
| 2022-06-21T04:20:21
| 2018-08-16T01:48:15
|
Java
|
UTF-8
|
Java
| false
| false
| 3,001
|
java
|
package com.taobao.tddl.rule;
import java.util.Map;
import java.util.Set;
import com.taobao.tddl.rule.model.sqljep.Comparative;
/**
* <pre>
* ่ฅๅๅบๆไธคๆก่งๅ๏ผ
* ่งๅไธ๏ผcolumnAใcolumnB?๏ผ่ฅcolumnBๆฒกๆ๏ผๅๅcolumnB็ๆๆๅผๅ๏ผ็ฑๆ็นไฟกๆฏ่ทๅพ๏ผๅ
จ่กจๆซๆ
* ่งๅไบ๏ผcolumnAใcolumnCใ
* ่ฅsqlๅชๅ
ๅซcolumnA๏ผๅ่ตฐ่งๅไธ
* ่ฅsqlๅชๅ
ๅซcolumnAใcolumnC๏ผๅ่ตฐ่งๅไบ
*
* ้กบๅบ+ไผๅ
ๆๅคงๅน้
๏ผๅ
ๅน้
ๆๆๅ๏ผๆพไธๅฐๅๆๅป้คๅฏ้ๅไนๅๅน้
* </pre>
*
* @author linxuan
*/
public interface Rule<T> {
public class RuleColumn {
/**
* ๆฏๅฆไธบๅฏ้ๅ๏ผ่ฅoptional==true๏ผๅ้ๆฉruleๆถ๏ผsqlๅฏไปฅไธๅ
ๅซ่ฏฅๅใๅฐๆถๅฏน่ฏฅๅๅผๅๅ้ๅ
*/
public final boolean optional; //
/**
* sqlไธญ็ๅๅ๏ผๅฟ
้กปๆฏๅคงๅ๏ผ่ฟ้ๅจsetterๆพ็คบ็่ฎพ็ฝฎๆๅคงๅไบ
*/
public final String key;
public RuleColumn(String name, boolean optional){
this.key = name.toUpperCase();
this.optional = optional;
}
}
/**
* @return ่งๅ่ฎก็ฎ้่ฆ็ๅ
*/
public Map<String, RuleColumn> getRuleColumns();
/**
* @return ่งๅ่ฎก็ฎ้่ฆ็ๅ
*/
public Set<RuleColumn> getRuleColumnSet();
/**
* ๅๅผๅฏน่ฟ่กrule่กจ่พพๅผๆฑๅผ
*
* @param columnValues ๅๅผๅฏนใไธชๆฐไธgetRuleColumns็ธๅใ
* @param outerContext ๅจๆ็้ขๅคๅๆฐใๆฏๅฆไปThreadLocalไธญไผ ๅ
ฅ็่กจๅๅ็ผ
* @return ๆ นๆฎไธ็ปๅๅผๅฏน่ฎก็ฎ็ปๆ
*/
public T eval(Map<String/* ๅๅ */, Object/* ๅๅผ */> columnValues, Object outerContext);
/**
* ๆฏ่พๆ ๅน้
*
* @param sqlArgs ไปSQLๆๅๅบๆฅ็ๆฏ่พๆ
*
* <pre>
* getRuleColumnsๅ
ๅซ็ๅฟ
้ๅ๏ผoptional=false๏ผๅฟ
้กปๅจsqlArgs้้ขๆใๅฏ้ๅๅฏไปฅๆฒกๆ
* key๏ผ Stringๅๅ
* value: sqlไธญๆ่ฏฅๅๆๅๅบ็ๆฏ่พๆ Comparative๏ผๅทฒ็ป็ปๅฎไบๅๆฐ
* </pre>
* @param ctx ่งๅๆง่ก็ไธไธๆใ็จไบๅ
ณ่่งๅๆง่กๆถ๏ผ่งๅ้ดๅฟ
่ฆไฟกๆฏ็ไผ ้ใๅฏนไบEnumerativeRuleๆฅ่ฏดใๅจๅบ่กจ่งๅๆๅ
ฌๅ
ฑๅๆถ๏ผ
* ไผๅจๆฏไธไธชๅบ่งๅ็ๅผไธ้ข๏ผๆง่ก่กจ่งๅ๏ผๆง่กๆถๅบ่งๅไบง็่ฏฅๅผ็ๆ็นไฟกๆฏๅฐไปฅ่ฏฅๅๆฐไผ ๅ
ฅใ
* @param outerContext ๅจๆ็้ขๅคๅๆฐใๆฏๅฆไปThreadLocalไธญไผ ๅ
ฅ็่กจๅๅ็ผ
* @return ่งๅ่ฎก็ฎ็ปๆ๏ผๅๅพๅฐ่ฟไธช็ปๆ็ๆๆๆฐๆฎใ
*/
public Map<T, ? extends Object> calculate(Map<String/* ๅๅ */, Comparative> sqlArgs, Object ctx, Object outerContext);
/**
* ไธๅๅๆฏไธช็ปๆๅฏนๅบ็ๅพๅฐ่ฏฅ็ปๆ็่พๅ
ฅๅผ๏ผๆ็น๏ผ้ๅ
*/
public Set<T> calculateNoTrace(Map<String/* ๅๅ */, Comparative/* ๆฏ่พๆ */> sqlArgs, Object ctx, Object outerContext);
public T calculateVnodeNoTrace(String key, Object ctx, Object outerContext);
}
|
[
"jianghang115@gmail.com"
] |
jianghang115@gmail.com
|
8745ff53354b6eee4039e22f54959fe7cef3c25b
|
30472cec0dbe044d52b029530051ab404701687f
|
/src/main/java/com/nawforce/platform/Database/GetDeletedResult.java
|
9a9b69ca7f5c691ea35d9c24298d3a5f444f0279
|
[
"BSD-3-Clause"
] |
permissive
|
madmax983/ApexLink
|
f8e9dcf8f697ed4e34ddcac353c13bec707f3670
|
30c989ce2c0098097bfaf586b87b733853913155
|
refs/heads/master
| 2020-05-07T16:03:15.046972
| 2019-04-08T21:08:06
| 2019-04-08T21:08:06
| 180,655,963
| 1
| 0
| null | 2019-04-10T20:08:30
| 2019-04-10T20:08:30
| null |
UTF-8
|
Java
| false
| false
| 2,029
|
java
|
/*
[The "BSD licence"]
Copyright (c) 2019 Kevin Jones
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. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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 com.nawforce.platform.Database;
import com.nawforce.platform.System.Date;
import com.nawforce.platform.System.List;
@SuppressWarnings("unused")
public class GetDeletedResult {
public List<DeletedRecord> DeletedRecords;
public Date EarliestDateAvailable;
public Date LatestDateCovered;
public List<DeletedRecord> getDeletedRecords() {throw new java.lang.UnsupportedOperationException();}
public Date getEarliestDateAvailable() {throw new java.lang.UnsupportedOperationException();}
public Date getLatestDateCovered() {throw new java.lang.UnsupportedOperationException();}
}
|
[
"nawforce@gmail.com"
] |
nawforce@gmail.com
|
647eb33f9ad8e9fa3ef654264733d6d83066569e
|
ab59063ff2ae941b876324070d8f8e8165cef960
|
/chunking_text_file/40authors/emigonza/master/MICRControl12.java
|
d3476226136be405454edaf7180f06a19030ad9f
|
[] |
no_license
|
gpoorvi92/author_class
|
f7c26f46f1ca9608a8c98fb18fc74a544cf99c36
|
b079ef0a477a2868140d77c4b32c317d4492725e
|
refs/heads/master
| 2020-04-01T18:01:54.665333
| 2018-12-10T14:55:11
| 2018-12-10T14:55:11
| 153,466,983
| 1
| 0
| null | 2018-10-17T14:44:56
| 2018-10-17T14:03:04
|
Java
|
UTF-8
|
Java
| false
| false
| 2,934
|
java
|
/////////////////////////////////////////////////////////////////////
//
// This software is provided "AS IS". The JavaPOS working group (including
// each of the Corporate members, contributors and individuals) MAKES NO
// REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE,
// EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
// WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NON-INFRINGEMENT. The JavaPOS working group shall not be liable for
// any damages suffered as a result of using, modifying or distributing this
// software or its derivatives.Permission to use, copy, modify, and distribute
// the software and its documentation for any purpose is hereby granted.
//
// MICRControl12
//
// Interface definining all capabilities, properties and methods
// that are specific to MICR for release 1.2.
//
// Modification history
// ------------------------------------------------------------------
// 98-02-18 JavaPOS Release 1.2 BS
//
/////////////////////////////////////////////////////////////////////
package jpos;
import jpos.events.*;
public interface MICRControl12 extends BaseControl
{
// Capabilities
public boolean getCapValidationDevice() throws JposException;
// Properties
public boolean getAutoDisable() throws JposException;
public void setAutoDisable(boolean autoDisable) throws JposException;
public String getAccountNumber() throws JposException;
public String getAmount() throws JposException;
public String getBankNumber() throws JposException;
public int getCheckType() throws JposException;
public int getCountryCode() throws JposException;
public int getDataCount() throws JposException;
public boolean getDataEventEnabled() throws JposException;
public void setDataEventEnabled(boolean dataEventEnabled)
throws JposException;
public String getEPC() throws JposException;
public String getRawData() throws JposException;
public String getSerialNumber() throws JposException;
public String getTransitNumber() throws JposException;
// Methods
public void beginInsertion(int timeout) throws JposException;
public void beginRemoval(int timeout) throws JposException;
public void clearInput() throws JposException;
public void endInsertion() throws JposException;
public void endRemoval() throws JposException;
// Event listener methods
public void addDataListener(DataListener l);
public void removeDataListener(DataListener l);
public void addDirectIOListener(DirectIOListener l);
public void removeDirectIOListener(DirectIOListener l);
public void addErrorListener(ErrorListener l);
public void removeErrorListener(ErrorListener l);
}
|
[
"gpoorvi92@gmail.com"
] |
gpoorvi92@gmail.com
|
6e1447792909ad125207c84f4aa43147d9971cf5
|
587511b306b326d2b37df23f52f3ee95163473db
|
/spring-boot-aws-s3-sdk-demo/src/main/java/com/barath/app/Application.java
|
a5a73e378a4d2ffc5821ee006ef8f705d075444c
|
[] |
no_license
|
BarathArivazhagan/aws-s3-sdk-sample
|
939b116200e907a82a7a3ad2f8f301b8d7624249
|
0e91cad6a73b993b61efe55b6c7038bc9545a7e4
|
refs/heads/master
| 2021-10-28T10:02:09.132900
| 2019-04-23T09:21:45
| 2019-04-23T09:21:45
| 105,043,163
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 295
|
java
|
package com.barath.app;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
|
[
"barathmacdec91@gmail.com"
] |
barathmacdec91@gmail.com
|
f426ca5db5fdd5a3112d28bc496f1f296f7cc55c
|
104b421e536d1667a70f234ec61864f9278137c4
|
/code/com/google/android/gms/maps/model/PolylineOptionsCreator.java
|
1c5cf5eaf78f6f1f04622dec6279c9084c048a5c
|
[] |
no_license
|
AshwiniVijayaKumar/Chrome-Cars
|
f2e61347c7416d37dae228dfeaa58c3845c66090
|
6a5e824ad5889f0e29d1aa31f7a35b1f6894f089
|
refs/heads/master
| 2021-01-15T11:07:57.050989
| 2016-05-13T05:01:09
| 2016-05-13T05:01:09
| 58,521,050
| 1
| 0
| null | 2016-05-11T06:51:56
| 2016-05-11T06:51:56
| null |
UTF-8
|
Java
| false
| false
| 2,481
|
java
|
package com.google.android.gms.maps.model;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.google.android.gms.common.internal.safeparcel.a;
import com.google.android.gms.common.internal.safeparcel.a.a;
import com.google.android.gms.common.internal.safeparcel.b;
import java.util.ArrayList;
public class PolylineOptionsCreator
implements Parcelable.Creator<PolylineOptions>
{
public static final int CONTENT_DESCRIPTION = 0;
static void a(PolylineOptions paramPolylineOptions, Parcel paramParcel, int paramInt)
{
paramInt = b.p(paramParcel);
b.c(paramParcel, 1, paramPolylineOptions.getVersionCode());
b.b(paramParcel, 2, paramPolylineOptions.getPoints(), false);
b.a(paramParcel, 3, paramPolylineOptions.getWidth());
b.c(paramParcel, 4, paramPolylineOptions.getColor());
b.a(paramParcel, 5, paramPolylineOptions.getZIndex());
b.a(paramParcel, 6, paramPolylineOptions.isVisible());
b.a(paramParcel, 7, paramPolylineOptions.isGeodesic());
b.D(paramParcel, paramInt);
}
public PolylineOptions createFromParcel(Parcel paramParcel)
{
float f1 = 0.0F;
boolean bool1 = false;
int k = a.o(paramParcel);
ArrayList localArrayList = null;
boolean bool2 = false;
int i = 0;
float f2 = 0.0F;
int j = 0;
while (paramParcel.dataPosition() < k)
{
int m = a.n(paramParcel);
switch (a.S(m))
{
default:
a.b(paramParcel, m);
break;
case 1:
j = a.g(paramParcel, m);
break;
case 2:
localArrayList = a.c(paramParcel, m, LatLng.CREATOR);
break;
case 3:
f2 = a.j(paramParcel, m);
break;
case 4:
i = a.g(paramParcel, m);
break;
case 5:
f1 = a.j(paramParcel, m);
break;
case 6:
bool2 = a.c(paramParcel, m);
break;
case 7:
bool1 = a.c(paramParcel, m);
}
}
if (paramParcel.dataPosition() != k) {
throw new a.a("Overread allowed size end=" + k, paramParcel);
}
return new PolylineOptions(j, localArrayList, f2, i, f1, bool2, bool1);
}
public PolylineOptions[] newArray(int paramInt)
{
return new PolylineOptions[paramInt];
}
}
/* Location: C:\Users\ADMIN\Desktop\foss\dex2jar-2.0\classes-dex2jar.jar!\com\google\android\gms\maps\model\PolylineOptionsCreator.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"ASH ABHI"
] |
ASH ABHI
|
855a1d80e96efe2edb13d3553856c1d78e967205
|
30f3db0e3b685fb44b2312b95ad0ee35cdef2018
|
/app/src/main/java/the/one/demo/ui/bean/Thanks.java
|
a6dfcddd3bc8d41be6e0f4d2d35dd020dbede57c
|
[] |
no_license
|
Charles2mx/TheBase
|
4b21fc5c7c7eda6d45432b15fe58a3d81ea567bb
|
afcaa286a16a8286dc24ac8b275a7ef578fcdae5
|
refs/heads/master
| 2020-07-13T16:36:34.814769
| 2019-08-23T02:39:38
| 2019-08-23T02:39:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 206
|
java
|
package the.one.demo.ui.bean;
public class Thanks {
public String name;
public String url;
public Thanks(String name, String url) {
this.name = name;
this.url = url;
}
}
|
[
"625805189@qq.com"
] |
625805189@qq.com
|
c6e534736916131d0fe7b6c78d99b52fa95515f2
|
4dde70a36ec75ce47065c5123a3929ab91e183fe
|
/src/main/abstractgame/world/map/MapObject.java
|
138231ed19eaebe919063663ec16de061802cb16
|
[] |
no_license
|
Brownshome/Abstract
|
db2dd912edeebe8272fced6bfc22d044a6ff1129
|
6944af29bd894a5bea17bc4d215f2b67097f6f6c
|
refs/heads/master
| 2021-01-17T07:03:23.401313
| 2016-12-09T23:47:32
| 2016-12-09T23:47:32
| 46,769,411
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 664
|
java
|
package abstractgame.world.map;
import java.util.Map;
import abstractgame.world.World;
/** Map objects are non-player elements that make up a map */
public interface MapObject {
public static <T> T validate(String type, Class<T> castTo, String name, Map<String, Object> data) {
Object value = data.get(name);
if(value == null) throw new MapFormatException(type, name);
try {
return castTo.cast(value);
} catch(ClassCastException cce) {
throw new MapFormatException(type, name);
}
}
void addToWorld(World world);
/** If this object does not have an ID this method will
* return null */
String getID();
void setID(String ID);
}
|
[
"jamesphone180@gmail.com"
] |
jamesphone180@gmail.com
|
9a367b3704bfebd175cf320c8f4b8d87d8518ddc
|
fbbae32fe7a343dcf51d484b59ff33ca1cb4e631
|
/account-api/src/main/java/cn/fiona/pet/dto/PageSearch.java
|
310176c8d75fb1663cb3fbc54ca0707ced4d1ea7
|
[
"Apache-2.0"
] |
permissive
|
fiona-pet/account-springboot
|
f0e8886f67eb4c58e59e2fe058fade66d73db5ee
|
998a48863d7b2068d5a44bf350b0dbf701084679
|
refs/heads/master
| 2021-01-21T08:54:30.807951
| 2017-11-22T08:34:35
| 2017-11-22T08:34:35
| 91,644,466
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 786
|
java
|
package cn.fiona.pet.dto;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
* Created with IntelliJ IDEA.
* User: mq
* Date: 2017/4/19
* Time: 16:22
* To change this template use File | Settings | File Templates.
*/
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@ApiModel("ๅ้กตไฟกๆฏ")
@Setter
@Getter
@ToString
public class PageSearch extends ListFilter {
@ApiModelProperty("ๆฏ้กต่ฎฐๅฝๆฐ")
private int pageSize = 20;
@ApiModelProperty("้กตๅท ไป 1 ๅผๅง")
private int pageNumber = 1;
}
|
[
"tom@daoshenggroup.com"
] |
tom@daoshenggroup.com
|
f597828262a86915236744762fbf76ed9580ed88
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/12/12_1dac10a618403fc1c973f367877845a44bd80e1d/TransferListenerAdapter/12_1dac10a618403fc1c973f367877845a44bd80e1d_TransferListenerAdapter_t.java
|
03f24d3b4b2ebc3c52f272fc3ccff3fc7be6bbec
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,513
|
java
|
package org.apache.maven.repository.legacy;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.repository.ArtifactTransferEvent;
import org.apache.maven.repository.ArtifactTransferListener;
import org.apache.maven.repository.MavenArtifact;
import org.apache.maven.wagon.events.TransferEvent;
import org.apache.maven.wagon.events.TransferListener;
import org.apache.maven.wagon.resource.Resource;
public class TransferListenerAdapter
implements TransferListener
{
private ArtifactTransferListener listener;
public static TransferListener newAdapter( ArtifactTransferListener listener )
{
if ( listener == null )
{
return null;
}
else
{
return new TransferListenerAdapter( listener );
}
}
private TransferListenerAdapter( ArtifactTransferListener listener )
{
this.listener = listener;
}
public void debug( String message )
{
}
public void transferCompleted( TransferEvent transferEvent )
{
listener.transferCompleted( wrap( transferEvent ) );
}
public void transferError( TransferEvent transferEvent )
{
}
public void transferInitiated( TransferEvent transferEvent )
{
listener.transferInitiated( wrap( transferEvent ) );
}
public void transferProgress( TransferEvent transferEvent, byte[] buffer, int length )
{
listener.transferProgress( wrap( transferEvent ), buffer, length );
}
public void transferStarted( TransferEvent transferEvent )
{
}
private ArtifactTransferEvent wrap( TransferEvent event )
{
if ( event == null )
{
return null;
}
else
{
String wagon = event.getWagon().getRepository().getUrl();
MavenArtifact artifact = wrap( event.getResource() );
ArtifactTransferEvent evt;
if ( event.getException() != null )
{
evt = new ArtifactTransferEvent( wagon, event.getException(), event.getRequestType(), artifact );
}
else
{
evt = new ArtifactTransferEvent( wagon, event.getEventType(), event.getRequestType(), artifact );
}
evt.setLocalFile( event.getLocalFile() );
return evt;
}
}
private MavenArtifact wrap( Resource resource )
{
if ( resource == null )
{
return null;
}
else
{
return new MavenArtifact( resource.getName(), resource.getContentLength() );
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
ed4070b6b198ef650d2fa88ab45594bc3a5c1bc5
|
388f88df1f49b5414c22b97304ec295801f7f0f3
|
/classhidra_example/WebContent/WEB-INF/source/it/classhidra/core/controller/tags/tagSection.java
|
947af6b322d0d8daa9240d6d054a0fdff4648dd6
|
[] |
no_license
|
surban1974/classhidra
|
c3f1dcb9546d7d13a235d431492985555fe7a4ac
|
f0937bed637265e42659c92d863c12c239f55166
|
refs/heads/master
| 2023-08-30T04:44:13.153369
| 2023-08-25T13:50:16
| 2023-08-25T13:50:16
| 5,340,773
| 0
| 0
| null | 2022-12-16T07:12:39
| 2012-08-08T11:25:37
|
Java
|
UTF-8
|
Java
| false
| false
| 5,233
|
java
|
/**
* Creation date: (07/04/2006)
* @author: Svyatoslav Urbanovych svyatoslav.urbanovych@gmail.com
*/
/********************************************************************************
*
* Copyright (C) 2005 Svyatoslav Urbanovych
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*********************************************************************************/
package it.classhidra.core.controller.tags;
import it.classhidra.core.controller.action;
import it.classhidra.core.controller.bsController;
import it.classhidra.core.controller.i_action;
import it.classhidra.core.controller.i_bean;
import it.classhidra.core.controller.redirects;
import it.classhidra.core.controller.info_action;
import it.classhidra.core.controller.info_redirect;
import it.classhidra.core.controller.info_relation;
import it.classhidra.core.controller.info_section;
import it.classhidra.core.init.auth_init;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.IOException;
import java.util.HashMap;
public class tagSection extends TagSupport {
private static final long serialVersionUID = -1L;
protected String bean=null;
protected String name=null;
protected String trace=null;
protected String type=null;
public int doStartTag() throws JspException {
try {
if(trace==null || trace.equalsIgnoreCase("true")) pageContext.getOut().print("<!--START SECTION NAME=\""+name+"\"-->");
} catch (IOException e) {
throw new JspException(e.toString());
}
if (condition())
return (EVAL_BODY_INCLUDE);
else
return (SKIP_BODY);
}
public int doEndTag() throws JspException {
try {
if(trace==null || trace.equalsIgnoreCase("true")) pageContext.getOut().print("<!--FINISH SECTION NAME=\""+name+"\"-->");
} catch (IOException e) {
throw new JspException(e.toString());
}
this.release();
return (EVAL_PAGE);
}
public void release() {
super.release();
bean=null;
name = null;
trace = null;
type = null;
}
private boolean condition() throws JspException{
boolean result=false;
HttpServletRequest request = (HttpServletRequest) this.pageContext.getRequest();
i_action formAction=null;
i_bean formBean=null;
if(bean!=null){
@SuppressWarnings("unchecked")
HashMap<String,i_action> pool = (HashMap<String,i_action>)request.getAttribute(bsController.CONST_BEAN_$INSTANCEACTIONPOOL);
if(pool!=null) formAction = pool.get(bean);
}
if(formAction!=null) bean = null;
else formAction = (i_action)request.getAttribute(bsController.CONST_BEAN_$INSTANCEACTION);
if(formAction==null) formAction = new action();
if(bean==null){
formBean = formAction.get_bean();
if(formBean!=null)
formBean=formBean.asBean();
}
redirects formRedirect = formAction.getCurrent_redirect();
try{
auth_init auth = bsController.checkAuth_init(request);
info_action i_a = (info_action)auth.get_actions_permitted().get(formAction.get_infoaction().getPath());
info_redirect i_r = (info_redirect)i_a.get_auth_redirects().get(formRedirect.get_inforedirect().getAuth_id());
if(name!=null &&
i_r!=null &&
i_r.get_sections()!=null &&
i_r.get_sections().get(name)!=null){
info_section section = (info_section)i_r.get_sections().get(name);
if((type==null || type.equals(info_relation.TYPE_ALLOWED)) && section.isAllowed())
return true;
if((type!=null && type.equals(info_relation.TYPE_FORBIDDEN)) && !section.isAllowed())
return true;
}
info_action i_af = (info_action)auth.get_actions_forbidden().get(formAction.get_infoaction().getPath());
info_redirect i_rf = (info_redirect)i_af.get_auth_redirects().get(formRedirect.get_inforedirect().getAuth_id());
if(name!=null &&
i_rf!=null &&
i_rf.get_sections()!=null &&
i_rf.get_sections().get(name)!=null){
if(type!=null && type.equals(info_relation.TYPE_FORBIDDEN))
return true;
}
}catch(Exception e){
}
return result;
}
public String getName() {
return name;
}
public void setName(String string) {
name = string;
}
public String getTrace() {
return trace;
}
public void setTrace(String string) {
trace = string;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getBean() {
return bean;
}
public void setBean(String bean) {
this.bean = bean;
}
}
|
[
"svyatoslav.urbanovych@gmail.com"
] |
svyatoslav.urbanovych@gmail.com
|
a9a44188ef043b6cae0b9c43417677432ecd7e24
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/19/19_81a1c33e2596005ba22dae7fd2e96c970cb3484b/Hl7TemplateGeneratorTest/19_81a1c33e2596005ba22dae7fd2e96c970cb3484b_Hl7TemplateGeneratorTest_s.java
|
a635b108b029e07a0c6a6f9ba4128864f0e34e6b
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 4,984
|
java
|
/**
* The contents of this file are subject to the OpenMRS Public License
* Version 1.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://license.openmrs.org
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
*
* Copyright (C) OpenMRS, LLC. All Rights Reserved.
*/
package org.openmrs.module.hl7query.api;
import java.io.InputStream;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import junit.framework.Assert;
import org.apache.commons.io.IOUtils;
import org.junit.Before;
import org.junit.Test;
import org.openmrs.Encounter;
import org.openmrs.EncounterType;
import org.openmrs.Location;
import org.openmrs.Patient;
import org.openmrs.PatientIdentifier;
import org.openmrs.PatientIdentifierType;
import org.openmrs.Person;
import org.openmrs.PersonName;
import org.openmrs.module.hl7query.HL7Template;
import org.openmrs.module.hl7query.api.impl.HL7QueryServiceImpl;
import org.openmrs.test.BaseModuleContextSensitiveTest;
/**
* Class to test the hl7 template segments.
*/
public class Hl7TemplateGeneratorTest extends BaseModuleContextSensitiveTest {
HL7QueryServiceImpl service;
@Before
public void beforeEachTest() {
service = new HL7QueryServiceImpl();
}
@Test
public void testPV1SegmentTemplate() throws Exception {
Encounter encounter = new Encounter();
Date date = new Date();
encounter.setEncounterDatetime(date);
EncounterType encounterType = new EncounterType();
encounterType.setName("ENCOUNTER TYPE NAME");
encounter.setEncounterType(encounterType);
Location location = new Location(1);
location.setUuid("LOCATION UUID");
location.setName("LOCATION NAME");
encounter.setLocation(location);
Person provider = new Person(1);
provider.setUuid("PROVIDER UUID");
provider.addName(new PersonName("PROVIDER GIVENNAME", "PROVIDER MIDDLENAME", "PROVIDER FAMILYNAME"));
encounter.setProvider(provider);
InputStream inputStream = getClass().getClassLoader().getResourceAsStream("org/openmrs/module/hl7query/api/templates/PV1.xml");
String xml = IOUtils.toString(inputStream);
HL7Template template = new HL7Template();
template.setLanguage(HL7QueryService.LANGUAGE_GROOVY);
template.setTemplate(xml);
Map<String, Object> bindings = new HashMap<String, Object>();
bindings.put("encounter", encounter);
String evaluated = service.evaluateTemplate(template, bindings);
Assert.assertTrue(evaluated.contains("<PL.1>LOCATION UUID</PL.1>"));
Assert.assertTrue(evaluated.contains("<HD.1>LOCATION NAME</HD.1>"));
Assert.assertTrue(evaluated.contains("<PV1.4>ENCOUNTER TYPE NAME</PV1.4>"));
Assert.assertTrue(evaluated.contains("<XCN.1>PROVIDER UUID</XCN.1>"));
Assert.assertTrue(evaluated.contains("<FN.1>PROVIDER FAMILYNAME</FN.1>"));
Assert.assertTrue(evaluated.contains("<XCN.3>PROVIDER GIVENNAME</XCN.3>"));
}
@Test
public void testPIDSegmentTemplate() throws Exception {
executeDataSet("templatesTestData.xml");
InputStream inputStream = getClass().getClassLoader().getResourceAsStream("templates/PID.xml");
String xml = IOUtils.toString(inputStream);
HL7Template template = new HL7Template();
template.setLanguage(HL7QueryService.LANGUAGE_GROOVY);
template.setTemplate(xml);
Patient patient = new Patient(1);
patient.setUuid("PROVIDER UUID");
PersonName pn = new PersonName("PROVIDER GIVENNAME1", "PROVIDER MIDDLENAME1", "PROVIDER FAMILYNAME1");
pn.setPreferred(true);
patient.addName(pn);
patient.addName(new PersonName("PROVIDER GIVENNAME2", "PROVIDER MIDDLENAME2", "PROVIDER FAMILYNAME2"));
patient.addName(new PersonName("PROVIDER GIVENNAME3", "PROVIDER MIDDLENAME3", "PROVIDER FAMILYNAME3"));
PatientIdentifier pi = new PatientIdentifier("1", new PatientIdentifierType(), new Location());
pi.setPreferred(true);
patient.addIdentifier(pi);
patient.addIdentifier(new PatientIdentifier("2", new PatientIdentifierType(), new Location()));
patient.addIdentifier(new PatientIdentifier("3", new PatientIdentifierType(), new Location()));
Map<String, Object> bindings = new HashMap<String, Object>();
bindings.put("patient", patient);
String evaluated = service.evaluateTemplate(template, bindings);
Assert.assertTrue(evaluated.contains("<PID.1>1</PID.1>"));
Assert.assertTrue(evaluated.contains("PID.3 Template"));
Assert.assertTrue(evaluated.contains("PID.5 Template"));
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
922e9960adfde60cab9c84a08e9e399b82694464
|
88cbf779cfd90fff98ca0ff27e74467c493c8ace
|
/app/src/test/java/com/begentgroup/sampleorientation/ExampleUnitTest.java
|
8fd57ca9a62254e985f0e72466fd7125c6dbddcf
|
[] |
no_license
|
dongja94/SampleOrientation_DD2
|
e66be8b33e1bec4f38d244de611aa8caaa86a93c
|
2e09c5d73a4c5b8f321c73d031e142f7535349ef
|
refs/heads/master
| 2021-01-16T20:58:30.135912
| 2016-08-02T06:18:07
| 2016-08-02T06:18:07
| 64,729,716
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 326
|
java
|
package com.begentgroup.sampleorientation;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
}
|
[
"dongja94@gmail.com"
] |
dongja94@gmail.com
|
db689a1cb0a7f03be48da7cc8719c508bbff0317
|
359871df5ed072edfd9e89681202e605fa18e5a6
|
/aTalk/src/main/java/net/java/sip/communicator/service/protocol/event/CallListener.java
|
1f22ced9401c81ce30a61a14940b2dbf20b184dd
|
[
"Apache-2.0"
] |
permissive
|
ejabbered/atalk-android
|
ca339ebb2f7f3f948e936305430e66d87772bae5
|
939f5ca786292aa4457c8bf191d42e2ee4445507
|
refs/heads/master
| 2022-06-30T23:57:43.478783
| 2020-05-13T01:45:37
| 2020-05-13T01:45:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,538
|
java
|
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.service.protocol.event;
import java.util.EventListener;
/**
* Instances of this class are used for listening for notifications coming out of a telephony
* Provider - such as an incoming Call for example. Whenever a telephony Provider receives an
* invitation to a call from a particular
*
* @author Emil Ivov
* @author Eng Chong Meng
*/
public interface CallListener extends EventListener
{
/**
* This method is called by a protocol provider whenever an incoming call is received.
*
* @param event a CallEvent instance describing the new incoming call
*/
void incomingCallReceived(CallEvent event);
/**
* This method is called by a protocol provider upon initiation of an outgoing call.
*
* @param event a CalldEvent instance describing the new incoming call.
*/
void outgoingCallCreated(CallEvent event);
/**
* Indicates that all peers have left the source call and that it has been ended. The event may
* be considered redundant since there are already events issued upon termination of a single
* call peer but we've decided to keep it for listeners that are only interested in call
* duration and don't want to follow other call details.
*
* @param event the <tt>CallEvent</tt> containing the source call.
*/
void callEnded(CallEvent event);
}
|
[
"cmeng.gm@gmail.com"
] |
cmeng.gm@gmail.com
|
5de597a71ad94dd0a3169b59700f73d023a69cc2
|
e6b3acab0a81fd5ea90a885ee80acc6d5cb6a1bc
|
/m2_idm_project/src/m2/idm/project/generator/GeneratorRCode.java
|
1d859d7b937c8cd287da721d93bb8cb6ca921b97
|
[] |
no_license
|
anaofind/m2_idm_project
|
9dc7127d4661356cf9879097a11e9c47cb817d9d
|
84a84cf215b35a9ede1be8f6dd0a43c6cd9f9dfd
|
refs/heads/main
| 2023-02-22T00:37:27.578181
| 2021-01-24T17:31:24
| 2021-01-24T17:31:24
| 309,968,591
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,271
|
java
|
package m2.idm.project.generator;
import java.util.List;
import m2.idm.project.mLRegression.Algo;
import m2.idm.project.mLRegression.Calculate;
import m2.idm.project.mLRegression.CrossValidation;
import m2.idm.project.mLRegression.Dataset;
import m2.idm.project.mLRegression.Loop;
import m2.idm.project.mLRegression.Partition;
import m2.idm.project.mLRegression.Variables;
/**
* generator r code
* @author anaofind
*/
public class GeneratorRCode extends GeneratorCodeImpl{
/**
* the vars
*/
private String varTrains = "trains", varTests = "tests";
private String varFormula = "formula";
private String varTrainsControl = "trains_control";
private String varModel = "model";
@Override
public String getExtension() {
return "r";
}
@Override
public void generateDatasetCode(Dataset dataset) {
String separator = dataset.getSeparator();
if (separator == null) {
separator = ",";
}
String code = this.varDatas + "=read.csv(file=\"" + dataset.getDataPath() + "\",sep=\"" + separator + "\")";
this.addLineCode(code);
}
@Override
public void generateVarsCode(Variables vars) {
String colsPredictiveCode = "";
String colsTargetCode = "";
if (vars != null) {
List<String> predictCols = vars.getPredictives().getPredVar();
List<String> targetCols = vars.getTargets().getTargetVar();
colsPredictiveCode = this.varColsPred + "=c(\"" + predictCols.get(0) + "\"";
for (int i = 1; i<predictCols.size(); i++) {
colsPredictiveCode += ",\"" +predictCols.get(i) + "\"";
}
colsPredictiveCode += ")";
colsTargetCode = this.varColsTarget + "=c(\"" + targetCols.get(0) + "\"";
for (int i = 1; i<targetCols.size(); i++) {
colsTargetCode += ",\"" +targetCols.get(i) + "\"";
}
colsTargetCode += ")";
} else {
String colsCode = "cols=colnames(" + this.varDatas + ")";
colsPredictiveCode = this.varColsPred + "=cols[-nrow(datas)+1]";
colsTargetCode = this.varColsTarget + "=cols[nrow(datas)-1]";
this.addLineCode(colsCode);
}
this.addLineCode(colsPredictiveCode);
this.addLineCode(colsTargetCode);
}
@Override
public void generateStartLoopCode(Loop loop) {
int i = 1;
if (loop != null) {
i = loop.getI();
}
String codeStartLoop = "for(i in 1:" + i + "){";
this.addLineCode(codeStartLoop);
}
@Override
public void generateEndLoopCode() {
this.addLineCode("}");
}
@Override
public void generatePartitionCode(Partition partition, Algo algo, Calculate calculate) {
double trainPercent = 1-this.getNumberValue(partition.getTest());
String spliterCode = "spliter=initial_split(" + this.varDatas + ",prop=" + trainPercent + ")";
String trainCode = this.varTrains + "=training(spliter)";
String testCode = this.varTests + "=testing(spliter)";
this.addImportCode("library(rsample)");
this.addLineCode(spliterCode);
this.addLineCode(trainCode);
this.addLineCode(testCode);
this.generateCodeFormula();
this.generateCodeAlgo(algo);
String predictCode = this.varPredict + "=predict(" + this.varModel + "," + this.varTests + ")";
this.addLineCode(predictCode);
this.generateCodeCalculate(calculate);
}
@Override
public void generateCrossVCode(CrossValidation crossValidation, Algo algo, Calculate calculate) {
this.addImportCode("library(caret,warn.conflicts=FALSE)");
this.generateCodeFormula();
String codeTrainsControl = this.varTrainsControl + "=trainControl(method=\"cv\",number=" + crossValidation.getK() + ",savePredictions=TRUE)";
this.addLineCode(codeTrainsControl);
this.generateCodeAlgo(algo);
String predictCode = this.varPredict + "=" + this.varModel + "$pred$pred";
this.addLineCode(predictCode);
this.generateCodeCalculate(calculate);
}
@Override
public void generateShowResultCode() {
String codeResult = "print(" + this.varRes + ")";
this.addLineCode(codeResult);
}
private void generateCodeFormula() {
String codePredictFormula = "predict_formula=paste(" + this.varColsPred + ",collapse=\"+\")";
String codeTargetFormula = "target_formula=paste(" + this.varColsTarget + ",collapse=\"+\")";
String codeFormula = this.varFormula + "=as.formula(paste(paste(target_formula,\"~\"),predict_formula))";
this.addLineCode(codePredictFormula);
this.addLineCode(codeTargetFormula);
this.addLineCode(codeFormula);
}
private void generateCodeAlgo(Algo algo) {
String codeModel = "";
String function = "";
switch (algo.getAlgo()) {
case "line_regress" :
function = "lm";
break;
case "decision_tree_regressor" :
this.addImportCode("library(rpart)");
function = "rpart";
break;
case "svr":
if (this.isCrossValidation()) {
function = "svmLinear";
} else {
this.addImportCode("library(e1071)");
function = "svm";
}
break;
}
if (this.isCrossValidation()) {
codeModel = this.varModel + "=train(" + this.varFormula + ",data=" + this.varDatas + ", method=\"" + function + "\",trControl=" + this.varTrainsControl + ")";
} else {
codeModel = this.varModel + "=" + function + "(" + this.varFormula + "," + this.varTrains + ")";
}
this.addLineCode(codeModel);
}
private void generateCodeCalculate(Calculate calculate) {
String function = "";
String codeCalculate = "";
String codeYtrue = "";
String codeYPred = "";
if (this.isCrossValidation()) {
codeYtrue = "as.matrix(" + this.varModel + "$pred$obs)";
codeYPred = "as.matrix(" + this.varPredict +")";
} else {
codeYtrue = "as.matrix(" + this.varTests + "[" + this.varColsTarget + "])";
codeYPred = this.varPredict;
}
switch (calculate.getCalculateType()) {
case "mean_absolute_error" :
this.addImportCode("library(gencve)");
function = "mae";
codeCalculate = this.varRes + "=" + function + "(" + codeYtrue + "," + codeYPred + ")";
break;
case "mean_squared_error" :
this.addImportCode("library(gencve)");
function = "mse";
codeCalculate = this.varRes + "=" + function + "(" + codeYtrue + "," + codeYPred + ")";
break;
case "median_absolute_error" :
this.addImportCode("library(MLmetrics,warn.conflicts=FALSE)");
function = "MedianAE";
codeCalculate = this.varRes + "=" + function + "(" + codeYPred + "," + codeYtrue + ")";
break;
}
this.addLineCode(codeCalculate);
}
}
|
[
"you@example.com"
] |
you@example.com
|
7843db4af1c34898dfbe56a617abeb57b88034f5
|
454eb75d7402c4a0da0e4c30fb91aca4856bbd03
|
/o2o/trunk/android/app/src/main/java/cn/com/dyninfo/o2o/furniture/view/LazyLoadScrollView.java
|
9f637fea68bab969c0e1c3b1b727993a8dcb19b4
|
[] |
no_license
|
fengclondy/guanhongshijia
|
15a43f6007cdf996f57c4d09f61b25143b117d73
|
c710fe725022fe82aefcb552ebe6d86dcb598d75
|
refs/heads/master
| 2020-04-15T16:43:37.291843
| 2016-09-09T05:44:14
| 2016-09-09T05:44:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,202
|
java
|
/*
* Copyright (c) 2009-2016 SHENZHEN Eternal Dynasty Technology Co.,Ltd.
* All rights reserved.
*
* This file contains valuable properties of SHENZHEN Eternal Dynasty
* Technology Co.,Ltd., embodying substantial creative efforts and
* confidential information, ideas and expressions. No part of this
* file may be reproduced or distributed in any form or by any means,
* or stored in a data base or a retrieval system, without the prior
* written permission of SHENZHEN Eternal Dynasty Technology Co.,Ltd.
*
*/
package cn.com.dyninfo.o2o.furniture.view;
import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ScrollView;
/**
* @Description ๆๅ ่ฝฝScrollView
* @author <a href="http://t.cn/RvIApP5">ceychen</a>
* @date 2014-5-22 ไธๅ9:52:00
*/
public class LazyLoadScrollView extends ScrollView {
private Handler handler;
private View view;
public LazyLoadScrollView(Context context) {
super(context);
}
public LazyLoadScrollView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public LazyLoadScrollView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
// ่ทๅพๆป็้ซๅบฆ
public int computeVerticalScrollRange() {
return super.computeHorizontalScrollRange();
}
public int computeVerticalScrollOffset() {
return super.computeVerticalScrollOffset();
}
private void init() {
this.setOnTouchListener(onTouchListener);
handler = new Handler() {
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
switch (msg.what) {
case 1:
if (view.getMeasuredHeight() <= getScrollY() + getHeight()) {
if (onScrollListener != null) {
onScrollListener.onBottom();
}
} else if (getScrollY() == 0) {
if (onScrollListener != null) {
onScrollListener.onTop();
}
} else {
if (onScrollListener != null) {
onScrollListener.onScroll();
}
}
break;
default:
break;
}
}
};
}
OnTouchListener onTouchListener = new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
break;
case MotionEvent.ACTION_UP:
if (view != null && onScrollListener != null) {
handler.sendMessageDelayed(handler.obtainMessage(1), 200);
}
break;
default:
break;
}
return false;
}
};
/**
* ่ทๅพๅ่็View๏ผไธป่ฆๆฏไธบไบ่ทๅพๅฎ็MeasuredHeight๏ผ็ถๅๅๆปๅจๆก็ScrollY+getHeightไฝๆฏ่พใ
*/
public void getView() {
this.view = getChildAt(0);
if (view != null) {
init();
}
}
public interface OnScrollListener {
void onBottom();
void onTop();
void onScroll();
}
private OnScrollListener onScrollListener;
public void setOnScrollListener(OnScrollListener onScrollListener) {
this.onScrollListener = onScrollListener;
}
}
|
[
"leo.cai@9c87f486-7f2d-4350-b948-b2028470fdc6"
] |
leo.cai@9c87f486-7f2d-4350-b948-b2028470fdc6
|
f2c2558d1f2bac860e431d6d182155293b6b7e94
|
6a5e1c7fd25e38251c19b74ab719f659d767c416
|
/archive-transformation-steps/src/test/java/engine/steps/fixedinput/FixedInputMetaTest.java
|
83774b7bb278518424617a51084e1bf9dca48bb5
|
[
"Apache-2.0"
] |
permissive
|
marciojv/hopOLD
|
d734576991460ee9275602a505a4d806c166b1a3
|
461d0608069fd5c66ac3113ca03f94417353a0c4
|
refs/heads/master
| 2022-04-13T23:14:29.027246
| 2020-04-08T17:19:13
| 2020-04-08T17:19:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,905
|
java
|
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2018 by Hitachi Vantara : 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.apache.hop.trans.steps.fixedinput;
import org.apache.hop.core.HopEnvironment;
import org.apache.hop.core.exception.HopException;
import org.apache.hop.core.plugins.PluginRegistry;
import org.apache.hop.junit.rules.RestoreHopEngineEnvironment;
import org.apache.hop.trans.step.StepMetaInterface;
import org.apache.hop.trans.steps.loadsave.LoadSaveTester;
import org.apache.hop.trans.steps.loadsave.initializer.InitializerInterface;
import org.apache.hop.trans.steps.loadsave.validator.ArrayLoadSaveValidator;
import org.apache.hop.trans.steps.loadsave.validator.FieldLoadSaveValidator;
import org.apache.hop.trans.steps.loadsave.validator.IntLoadSaveValidator;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.UUID;
public class FixedInputMetaTest implements InitializerInterface<StepMetaInterface> {
LoadSaveTester loadSaveTester;
Class<FixedInputMeta> testMetaClass = FixedInputMeta.class;
@ClassRule public static RestoreHopEngineEnvironment env = new RestoreHopEngineEnvironment();
@Before
public void setUpLoadSave() throws Exception {
HopEnvironment.init();
PluginRegistry.init( false );
List<String> attributes =
Arrays.asList( "filename", "headerPresent", "lineWidth", "bufferSize", "lazyConversionActive", "lineFeedPresent",
"runningInParallel", "fileType", "addResultFile", "encoding", "fieldDefinition" );
Map<String, String> getterMap = new HashMap<>();
Map<String, String> setterMap = new HashMap<>();
Map<String, FieldLoadSaveValidator<?>> attrValidatorMap = new HashMap<String, FieldLoadSaveValidator<?>>();
attrValidatorMap.put( "fieldDefinition",
new ArrayLoadSaveValidator<FixedFileInputField>( new FixedFileInputFieldLoadSaveValidator(), 5 ) );
attrValidatorMap.put( "fileType", new IntLoadSaveValidator( FixedInputMeta.fileTypeDesc.length ) );
Map<String, FieldLoadSaveValidator<?>> typeValidatorMap = new HashMap<String, FieldLoadSaveValidator<?>>();
loadSaveTester =
new LoadSaveTester( testMetaClass, attributes, new ArrayList<>(),
getterMap, setterMap, attrValidatorMap, typeValidatorMap, this );
}
// Call the allocate method on the LoadSaveTester meta class
@Override
public void modify( StepMetaInterface someMeta ) {
if ( someMeta instanceof FixedInputMeta ) {
( (FixedInputMeta) someMeta ).allocate( 5 );
}
}
@Test
public void testSerialization() throws HopException {
loadSaveTester.testSerialization();
}
public class FixedFileInputFieldLoadSaveValidator implements FieldLoadSaveValidator<FixedFileInputField> {
final Random rand = new Random();
@Override
public FixedFileInputField getTestObject() {
FixedFileInputField rtn = new FixedFileInputField();
rtn.setCurrency( UUID.randomUUID().toString() );
rtn.setDecimal( UUID.randomUUID().toString() );
rtn.setFormat( UUID.randomUUID().toString() );
rtn.setGrouping( UUID.randomUUID().toString() );
rtn.setName( UUID.randomUUID().toString() );
rtn.setTrimType( rand.nextInt( 4 ) );
rtn.setPrecision( rand.nextInt( 9 ) );
rtn.setLength( rand.nextInt( 50 ) );
rtn.setSamples( new String[] { UUID.randomUUID().toString(), UUID.randomUUID().toString(), UUID.randomUUID().toString() } );
rtn.setType( rand.nextInt( 7 ) );
return rtn;
}
@Override
public boolean validateTestObject( FixedFileInputField testObject, Object actual ) {
if ( !( actual instanceof FixedFileInputField ) ) {
return false;
}
FixedFileInputField actualInput = (FixedFileInputField) actual;
return ( testObject.getXML().equals( actualInput.getXML() ) );
}
}
}
|
[
"mattcasters@gmail.com"
] |
mattcasters@gmail.com
|
2b4407d9e3046debe9c1f06f28286ee75d0fac2c
|
6756d0542d29e267644d453f288e94c85508eebf
|
/src/main/java/sonar/logistics/api/tiles/readers/ClientLocalProvider.java
|
055e1e122d41ffc8adcbdfa32c94a2c1a51edca4
|
[
"MIT"
] |
permissive
|
TartaricAcid/Practical-Logistics-2
|
3e165b995131f64d7fbfbe1a25f91b9f59726f96
|
e7b9bd87fe513d291e6ffccf8e7e5a6736a6c1f8
|
refs/heads/1.10.2
| 2020-03-17T01:46:07.351013
| 2018-03-10T10:52:01
| 2018-03-10T10:52:01
| 133,165,404
| 1
| 0
| null | 2018-05-12T16:53:17
| 2018-05-12T16:53:16
| null |
UTF-8
|
Java
| false
| false
| 2,711
|
java
|
package sonar.logistics.api.tiles.readers;
import java.util.ArrayList;
import java.util.List;
import com.google.common.collect.Lists;
import mcmultipart.multipart.IMultipart;
import net.minecraft.nbt.NBTTagCompound;
import sonar.core.api.nbt.INBTSyncable;
import sonar.core.api.utils.BlockCoords;
import sonar.core.helpers.NBTHelper;
import sonar.core.helpers.NBTHelper.SyncType;
import sonar.core.integration.multipart.SonarMultipartHelper;
import sonar.core.network.sync.ISyncPart;
import sonar.core.network.sync.SyncCoords;
import sonar.core.network.sync.SyncTagType;
import sonar.logistics.api.viewers.ILogicListenable;
import sonar.logistics.api.wireless.ClientDataEmitter;
import sonar.logistics.helpers.CableHelper;
/** used when syncing Logic Monitors for display in the Display Screen with the client, since some may not be loaded on client side. */
public class ClientLocalProvider implements INBTSyncable {
public List<ISyncPart> syncParts = new ArrayList<ISyncPart>();
public SyncTagType.INT identity = new SyncTagType.INT(0);
public SyncCoords coords = new SyncCoords(1);
{
syncParts.addAll(Lists.newArrayList(identity, coords));
}
public ClientLocalProvider() {
}
public ClientLocalProvider(ILogicListenable monitor) {
this.identity.setObject(monitor.getIdentity());
this.coords.setCoords(monitor.getCoords());
}
public ClientLocalProvider(int uuid, BlockCoords coords) {
this.identity.setObject(uuid);
this.coords.setCoords(coords);
}
public ClientLocalProvider copy() {
return new ClientLocalProvider(identity.getObject(), coords.getCoords());
}
@Override
public void readData(NBTTagCompound nbt, SyncType type) {
NBTHelper.readSyncParts(nbt, type, syncParts);
}
@Override
public NBTTagCompound writeData(NBTTagCompound nbt, SyncType type) {
NBTHelper.writeSyncParts(nbt, type, syncParts, type.isType(SyncType.SAVE));
return nbt;
}
public ILogicListenable getViewable() {
ILogicListenable viewable = CableHelper.getMonitorFromIdentity(identity.getObject().hashCode(), true);
if (viewable != null) {
IMultipart part = SonarMultipartHelper.getPartFromHash(identity.getObject().hashCode(), coords.getCoords().getWorld(), coords.getCoords().getBlockPos());
if (part != null && part instanceof ILogicListenable) {
ILogicListenable partViewer = (ILogicListenable) part;
viewable = (ILogicListenable) part;
}
}
return viewable;
}
public boolean equals(Object obj) {
if (obj != null && obj instanceof ClientDataEmitter) {
return hashCode() == obj.hashCode() && coords.getCoords().equals(((ClientDataEmitter) obj).coords.getCoords());
}
return false;
}
public int hashCode() {
return identity.getObject();
}
}
|
[
"ollielansdell@hotmail.co.uk"
] |
ollielansdell@hotmail.co.uk
|
63cd277ac4e8e2d01f96b6a2bef7a8e20c544103
|
2bbe864a4828d2b2419645194aa7777b9e770261
|
/src/main/java/com/example/demo/reactor/partten/event/Event.java
|
0af99f535d1877a49b8d52ac05aa8f79e9c82458
|
[] |
no_license
|
chenyixin8854/studys
|
a15e49df8233bcc025f895b4bcc7cc8f94196bbf
|
53f64259b953c65aefc9db2b38c38f92796ebbe2
|
refs/heads/master
| 2022-06-27T00:58:07.099811
| 2021-09-13T06:43:40
| 2021-09-13T06:43:40
| 224,973,451
| 0
| 0
| null | 2022-06-21T02:20:41
| 2019-11-30T07:03:50
|
Java
|
UTF-8
|
Java
| false
| false
| 610
|
java
|
package com.example.demo.reactor.partten.event;
import com.example.demo.reactor.partten.InputSource;
/**
* @Author: feiweiwei
* @Description: reactorๆจกๅผไธญๅ
้จๅค็็event็ฑป
* @Created Date: 11:03 17/10/12.
* @Modify by:
*/
public class Event {
private InputSource source;
private EventType type;
public InputSource getSource() {
return source;
}
public void setSource(InputSource source) {
this.source = source;
}
public EventType getType() {
return type;
}
public void setType(EventType type) {
this.type = type;
}
}
|
[
"chenxin5@01zhuanche.com"
] |
chenxin5@01zhuanche.com
|
ee2d8e970c36b84ace1ac355bd87b0612f361f7a
|
4a627a99cdf202019fa4088ca23316e9cc427e7b
|
/nyd-cash-user/nyd-cash-user-model/src/main/java/com/nyd/user/model/RefundAppModel.java
|
4775c5dac22810868f2309e85ce79d9e7e38c8f0
|
[] |
no_license
|
P79N6A/zlqb
|
4bdcc62db76f8b4fdd4176c06812c9bd8ac2148b
|
66a8781e74216ead7ea4969d89972c16e9d45b54
|
refs/heads/master
| 2020-07-13T14:18:36.941485
| 2019-08-26T12:22:20
| 2019-08-26T12:22:20
| 205,096,175
| 0
| 1
| null | 2019-08-29T06:30:30
| 2019-08-29T06:30:30
| null |
UTF-8
|
Java
| false
| false
| 665
|
java
|
package com.nyd.user.model;
import java.io.Serializable;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
/**
* Created by hwei on 2017/11/2.
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class RefundAppModel implements Serializable{
//app code
private String appCode;
//appๅ็งฐ
private String appName;
//app url
private String appUrl;
//logo
private String appLogo;
//logo
private String appLogoImge;
private String reason;
private List<String> imgeUrlList;
}
|
[
"hhh@d55a9f32-8471-450d-bba4-b89e090b5caa"
] |
hhh@d55a9f32-8471-450d-bba4-b89e090b5caa
|
eac0bd54bf03334676a5b0effa562a9c7b594c03
|
2203f9e82de6157d337aae1fdffcbb11def70a62
|
/test/edu/csus/ecs/pc2/api/QuickTest.java
|
3f8bae773db39178096ddac8300748f127169793
|
[] |
no_license
|
Kamo98/DIPLOM_NEW
|
c55b59ccd0610d4d2867619ca40c9fed0957a786
|
4434a43acedc44fc7b041214f66204a4936ffe6b
|
refs/heads/master
| 2023-04-27T18:22:32.869058
| 2020-05-21T13:21:30
| 2020-05-21T13:21:30
| 265,855,486
| 0
| 0
| null | 2021-05-12T00:29:54
| 2020-05-21T13:27:35
|
Java
|
UTF-8
|
Java
| false
| false
| 2,519
|
java
|
package edu.csus.ecs.pc2.api;
import java.util.Arrays;
import java.util.Date;
import edu.csus.ecs.pc2.core.security.Permission;
import edu.csus.ecs.pc2.core.util.AbstractTestCase;
/**
* API Test - print rows.
*
* @author pc2@ecs.csus.edu
* @version $Id$
*/
// $HeadURL$
public class QuickTest extends AbstractTestCase {
/**
* Show runs
* @param login
* @param password
*/
private void showRuns(String login, String password){
if (password == null){
password = login;
}
// Utilities.setDebugMode(true);
ServerConnection serverConnection = new ServerConnection();
try {
IContest contest = serverConnection.login(login, password);
IRun[] runs = contest.getRuns();
if (runs.length == 0) {
info("No runs to view ");
} else {
info(runs.length+" runs.");
Arrays.sort(runs, new IRunComparator());
info("(If you do not see 'fetched run' - client "+login+" may not have permission "+Permission.Type.ALLOWED_TO_FETCH_RUN+")");
for (IRun run : runs) {
info("Fetching files for run " + run.getNumber()+" deleted="+run.isDeleted());
String[] names = run.getSourceCodeFileNames();
info(" fetched run, submitted names");
byte[][] contents = run.getSourceCodeFileContents();
for (int i = 0; i < names.length; i++) {
String name = names[i];
info(name + " " + contents[i].length);
}
}
}
info("logoff");
serverConnection.logoff();
} catch (Exception e) {
e.printStackTrace();
}
System.exit(4);
}
/**
* Output to System.err an "information string" consisting of the current Date and current Thread Name
*
* @param s a String to be appended to the output string
*/
public void info(String s) {
System.err.println(new Date() + " " +Thread.currentThread().getName() + " " + s);
System.err.flush();
}
/**
* Login as judge2 and print runs.
*
* @param args the arguments passed to the main method
*/
public static void main(String[] args) {
new QuickTest().showRuns("judge2", null);
}
}
|
[
"avanesjan.k@gmail.com"
] |
avanesjan.k@gmail.com
|
e93c5ad0636f6c9661f8d583961a84428cdc17d2
|
a744882fb7cf18944bd6719408e5a9f2f0d6c0dd
|
/sourcecode8/src/sun/text/resources/in/FormatData_in_ID.java
|
79c93560ac1c49234234486a9ee0840ea7c3015c
|
[
"Apache-2.0"
] |
permissive
|
hanekawasann/learn
|
a39b8d17fd50fa8438baaa5b41fdbe8bd299ab33
|
eef678f1b8e14b7aab966e79a8b5a777cfc7ab14
|
refs/heads/master
| 2022-09-13T02:18:07.127489
| 2020-04-26T07:58:35
| 2020-04-26T07:58:35
| 176,686,231
| 0
| 0
|
Apache-2.0
| 2022-09-01T23:21:38
| 2019-03-20T08:16:05
|
Java
|
UTF-8
|
Java
| false
| false
| 3,794
|
java
|
/*
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* COPYRIGHT AND PERMISSION NOTICE
*
* Copyright (C) 1991-2007 Unicode, Inc. All rights reserved.
* Distributed under the Terms of Use in http://www.unicode.org/copyright.html.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of the Unicode data files and any associated documentation (the "Data
* Files") or Unicode software and any associated documentation (the
* "Software") to deal in the Data Files or Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publish, distribute, and/or sell copies of the Data Files or Software, and
* to permit persons to whom the Data Files or Software are furnished to do
* so, provided that (a) the above copyright notice(s) and this permission
* notice appear with all copies of the Data Files or Software, (b) both the
* above copyright notice(s) and this permission notice appear in associated
* documentation, and (c) there is clear notice in each modified Data File or
* in the Software as well as in the documentation associated with the Data
* File(s) or Software that the data or software has been modified.
*
* THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
* KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR
* CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
* USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THE DATA FILES OR SOFTWARE.
*
* Except as contained in this notice, the name of a copyright holder shall not
* be used in advertising or otherwise to promote the sale, use or other
* dealings in these Data Files or Software without prior written
* authorization of the copyright holder.
*/
package sun.text.resources.in;
import sun.util.resources.ParallelListResourceBundle;
public class FormatData_in_ID extends ParallelListResourceBundle {
protected final Object[][] getContents() {
return new Object[][] { { "TimePatterns", new String[] { "H:mm:ss", "H:mm:ss", "H:mm:ss", "H:mm", } },
{ "DatePatterns", new String[] { "EEEE dd MMMM yyyy", "dd MMMM yyyy", "dd MMM yy", "dd/MM/yy", } },
{ "DateTimePatterns", new String[] { "{1} {0}", } }, };
}
}
|
[
"763803382@qq.com"
] |
763803382@qq.com
|
ab05738145153f2dc36f4451a98df8df029161d7
|
9fb0ce2a808d38f5c883acde4ca0b1e34b31afad
|
/src/main/java/org/craft/nbt/NBTIntArrayTag.java
|
d0b469d797d2ffc0bb887d3fdfb8bc5b01cfd61a
|
[
"MIT"
] |
permissive
|
jglrxavpok/OurCraft
|
f1368aafce9049e7bc1486d911ddfa6e44ed627a
|
dfea71c18fc034f954683fad34ad0a5c68c5fde3
|
refs/heads/master
| 2016-09-05T18:23:18.256239
| 2014-10-28T16:27:32
| 2014-10-28T16:27:32
| 24,066,746
| 0
| 0
| null | 2014-10-02T15:39:15
| 2014-09-15T17:51:56
|
Java
|
UTF-8
|
Java
| false
| false
| 1,704
|
java
|
package org.craft.nbt;
import java.io.*;
/**
* Inspired by NBT classes given by Mojang AB <a href="https://mojang.com/2012/02/new-minecraft-map-format-anvil/">here</a>
* <br/>Following the <a href="http://web.archive.org/web/20110723210920/http://www.minecraft.net/docs/NBT.txt">specifications created by Markus 'notch' Personn </a>
* @author Mostly Mojang AB
*/
public class NBTIntArrayTag extends NBTTag
{
private int[] value;
protected NBTIntArrayTag(String name)
{
this(name, null);
}
protected NBTIntArrayTag(String name, int[] data)
{
super(name);
this.value = data;
}
@Override
public void write(DataOutput dos) throws IOException
{
dos.writeInt(value.length);
for(int i = 0; i < value.length; i++ )
dos.writeInt(value[i]);
}
@Override
public void read(DataInput dis) throws IOException
{
value = new int[dis.readInt()];
for(int i = 0; i < value.length; i++ )
value[i] = dis.readInt();
}
@Override
public String toString()
{
return "[" + value.length + " integers]";
}
@Override
public NBTTypes getID()
{
return NBTTypes.INT_ARRAY;
}
@Override
public NBTTag clone()
{
return new NBTIntArrayTag(getName(), value);
}
public int[] getData()
{
return value;
}
@Override
public boolean equals(Object obj)
{
if(super.equals(obj))
{
NBTIntArrayTag o = (NBTIntArrayTag) obj;
return ((value == null && o.value == null) || (value != null && value.equals(o.value)));
}
return false;
}
}
|
[
"jglrxavpok@gmail.com"
] |
jglrxavpok@gmail.com
|
41ddf04294892b0f048b331cd5b6928231f67751
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/single-large-project/src/main/java/org/gradle/test/performancenull_98/Productionnull_9759.java
|
3d91e0f6131c25f3d2a8c0b792647f5b5f7c99c9
|
[] |
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
| 585
|
java
|
package org.gradle.test.performancenull_98;
public class Productionnull_9759 {
private final String property;
public Productionnull_9759(String param) {
this.property = param;
}
public String getProperty() {
return property;
}
private String prop0;
public String getProp0() {
return prop0;
}
public void setProp0(String value) {
prop0 = value;
}
private String prop1;
public String getProp1() {
return prop1;
}
public void setProp1(String value) {
prop1 = value;
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
d72ddbe95e52ad8995dd127ea2fb3639390f1438
|
6bf7fbc0c12b5824d045faf6abba5ac32d92d371
|
/solvers/java/src/main/java/com/analog/lyric/dimple/options/DimpleOptionHolder.java
|
20507e1149c8074f0f475c35c2b94ad4bb1b2ef0
|
[
"BSD-3-Clause",
"Minpack",
"Apache-2.0"
] |
permissive
|
shyamalschandra/dimple
|
e49ab7dff63e578dc9a1c3e7760d87ba6fd37254
|
d682b34c29471a983cd0de364d011bd07cd8a902
|
refs/heads/master
| 2021-04-15T18:02:20.609078
| 2017-07-19T01:38:45
| 2017-07-19T01:38:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,957
|
java
|
/*******************************************************************************
* Copyright 2014 Analog Devices, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
********************************************************************************/
package com.analog.lyric.dimple.options;
import java.util.Arrays;
import org.eclipse.jdt.annotation.Nullable;
import com.analog.lyric.collect.ArrayUtil;
import com.analog.lyric.dimple.environment.DimpleEnvironment;
import com.analog.lyric.dimple.environment.IDimpleEnvironmentHolder;
import com.analog.lyric.dimple.events.EventSourceIterator;
import com.analog.lyric.dimple.events.IDimpleEventListener;
import com.analog.lyric.dimple.events.IDimpleEventSource;
import com.analog.lyric.dimple.model.core.FactorGraph;
import com.analog.lyric.options.IOptionHolder;
import com.analog.lyric.options.IOptionKey;
import com.analog.lyric.options.LocalOptionHolder;
import com.analog.lyric.options.OptionDoubleList;
/**
* Base class for dimple objects that can hold options and generate events.
* <p>
* This extends {@link LocalOptionHolder} in the following ways:
* <ul>
* <li>It also implements the {@link IDimpleEventSource} interface, so that all Dimple objects
* on which you can set options are also event sources.
* <li>It overrides the {@link #getOptionDelegates()} method
* </ul>
*
* @since 0.07
* @author Christopher Barber
*/
public abstract class DimpleOptionHolder
extends LocalOptionHolder
implements IDimpleEventSource, IDimpleEnvironmentHolder
{
/*--------------
* Construction
*/
protected DimpleOptionHolder()
{
}
protected DimpleOptionHolder(DimpleOptionHolder other)
{
super(other);
}
/*-----------------------
* IOptionHolder methods
*/
/**
* Iterates over option holders in the order in which options should be looked up.
* <p>
* Unlike the default implementation, which simply walks up the chain of {@linkplain #getOptionParent option
* parents}, this will visit both the option parent and the corresponding model object. This is described in
* more detail in {@link EventSourceIterator}.
*/
@Override
public EventSourceIterator getOptionDelegates()
{
return EventSourceIterator.create(this);
}
/**
* {@inheritDoc}
* <p>
* By default, the option parent is the same as the {@linkplain #getEventParent event parent}.
*/
@Override
public @Nullable IOptionHolder getOptionParent()
{
return getEventParent();
}
/*-----------------------------
* IDimpleEventSource methods
*/
@Override
public @Nullable IDimpleEventListener getEventListener()
{
return getEnvironment().getEventListener();
}
/*----------------------------------
* IDimpleEnvironmentHolder methods
*/
/**
* {@inheritDoc}
* <p>
* Returns environment for {@linkplain #getContainingGraph() containing graph} if available, otherwise
* {@link DimpleEnvironment#active()}.
*/
@Override
public DimpleEnvironment getEnvironment()
{
FactorGraph graph = getContainingGraph();
return graph != null ? graph.getEnvironment() : DimpleEnvironment.active();
}
/*-------------------
* Protected methods
*/
/**
* Returns list of not all zero doubles from option settings.
* <p>
* <ol>
* <li>Look up the option value for {@code listKey} using {@link #getOption}:
* <ul>
* <li>If non-null and contains at least one non-zero value, it's values will be returned.
* <li>If non-null and is empty or contains all zeros, an empty array will be returned.
* </ul>
* <li>Otherwise, look up the option value for {@code singleKey} using {@link #getOptionOrDefault}:
* <ul>
* <li>If zero, an empty array will be returned.
* <li>If non-zero, an array of length {@code size} containing only this value will be returned.
* </ul>
* </ol>
* <p>
* This can be used in situations in which there is a global parameter, such as damping, that
* may be given specific values for different edges of a node.
* <p>
* @param listKey is the primary lookup key for the list.
* @param singleKey is a secondary lookup key to be used if {@code listKey} not set.
* @param size is the size of list to return when replicating value from {@code singleKey}.
* @param array is the array into which the result should be written. This will only be used
* if it is non-null and of exactly the correct length.
* @since 0.07
*/
protected double[] getReplicatedNonZeroListFromOptions(
IOptionKey<OptionDoubleList> listKey,
IOptionKey<Double> singleKey,
int size,
@Nullable double[] array)
{
OptionDoubleList list = getOption(listKey);
if (list != null)
{
final int listSize = list.size();
boolean hasNonZero = false;
for (int i = 0; i < listSize; ++i)
{
if (list.get(i) != 0.0)
{
hasNonZero = true;
break;
}
}
if (!hasNonZero)
{
return ArrayUtil.EMPTY_DOUBLE_ARRAY;
}
if (array == null || array.length != listSize)
{
array = new double[listSize];
}
for (int i = 0; i < listSize; ++i)
{
array[i] = list.get(i);
}
}
else
{
double d = getOptionOrDefault(singleKey);
if (d == 0.0)
{
return ArrayUtil.EMPTY_DOUBLE_ARRAY;
}
if (array == null || array.length != size)
{
array = new double[size];
}
Arrays.fill(array, d);
}
return array;
}
}
|
[
"Christopher.Barber@analog.com"
] |
Christopher.Barber@analog.com
|
71421cbe6c292e5e6a5cddfa0a2e49e4e9341dc7
|
36073e09d6a12a275cc85901317159e7fffa909e
|
/zanata_zanata-server/modifiedFiles/24/fix/WebTransStyles.java
|
375b1dede2b646995253861b29c7652881f9b1fa
|
[] |
no_license
|
monperrus/bug-fixes-saner16
|
a867810451ddf45e2aaea7734d6d0c25db12904f
|
9ce6e057763db3ed048561e954f7aedec43d4f1a
|
refs/heads/master
| 2020-03-28T16:00:18.017068
| 2018-11-14T13:48:57
| 2018-11-14T13:48:57
| 148,648,848
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 156
|
java
|
package org.zanata.webtrans.client.resources;
import com.google.gwt.resources.client.CssResource;
public interface WebTransStyles extends CssResource
{
}
|
[
"martin.monperrus@gnieh.org"
] |
martin.monperrus@gnieh.org
|
1bd3cbef63ae2ad29a2c1275c94bb6d0b706db01
|
feb81a62199648abc776fdff5234b27999cc6698
|
/src/test/java/com/isoft/gatewayapp/repository/timezone/DateTimeWrapper.java
|
a972c2407c329265168a21b0539bdd7bdd4bc3d7
|
[] |
no_license
|
Ibrahim5560/api-gateway-application
|
b5a1064721dfd688a98c6a2170f008c03629ea95
|
f12e934946392ec50ffee3cd9818c5f92a192fd3
|
refs/heads/master
| 2023-05-13T06:31:28.518522
| 2020-03-05T12:07:42
| 2020-03-05T12:07:42
| 242,480,893
| 0
| 0
| null | 2023-05-08T02:51:15
| 2020-02-23T08:19:26
|
Java
|
UTF-8
|
Java
| false
| false
| 3,162
|
java
|
package com.isoft.gatewayapp.repository.timezone;
import javax.persistence.*;
import java.io.Serializable;
import java.time.*;
import java.util.Objects;
@Entity
@Table(name = "jhi_date_time_wrapper")
public class DateTimeWrapper implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequenceGenerator")
@SequenceGenerator(name = "sequenceGenerator")
private Long id;
@Column(name = "instant")
private Instant instant;
@Column(name = "local_date_time")
private LocalDateTime localDateTime;
@Column(name = "offset_date_time")
private OffsetDateTime offsetDateTime;
@Column(name = "zoned_date_time")
private ZonedDateTime zonedDateTime;
@Column(name = "local_time")
private LocalTime localTime;
@Column(name = "offset_time")
private OffsetTime offsetTime;
@Column(name = "local_date")
private LocalDate localDate;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Instant getInstant() {
return instant;
}
public void setInstant(Instant instant) {
this.instant = instant;
}
public LocalDateTime getLocalDateTime() {
return localDateTime;
}
public void setLocalDateTime(LocalDateTime localDateTime) {
this.localDateTime = localDateTime;
}
public OffsetDateTime getOffsetDateTime() {
return offsetDateTime;
}
public void setOffsetDateTime(OffsetDateTime offsetDateTime) {
this.offsetDateTime = offsetDateTime;
}
public ZonedDateTime getZonedDateTime() {
return zonedDateTime;
}
public void setZonedDateTime(ZonedDateTime zonedDateTime) {
this.zonedDateTime = zonedDateTime;
}
public LocalTime getLocalTime() {
return localTime;
}
public void setLocalTime(LocalTime localTime) {
this.localTime = localTime;
}
public OffsetTime getOffsetTime() {
return offsetTime;
}
public void setOffsetTime(OffsetTime offsetTime) {
this.offsetTime = offsetTime;
}
public LocalDate getLocalDate() {
return localDate;
}
public void setLocalDate(LocalDate localDate) {
this.localDate = localDate;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DateTimeWrapper dateTimeWrapper = (DateTimeWrapper) o;
return !(dateTimeWrapper.getId() == null || getId() == null) && Objects.equals(getId(), dateTimeWrapper.getId());
}
@Override
public int hashCode() {
return Objects.hashCode(getId());
}
@Override
public String toString() {
return "TimeZoneTest{" +
"id=" + id +
", instant=" + instant +
", localDateTime=" + localDateTime +
", offsetDateTime=" + offsetDateTime +
", zonedDateTime=" + zonedDateTime +
'}';
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
7d7159c5fefe3bd35aac06d5c798e32392b092f1
|
d2eee6e9a3ad0b3fd2899c3d1cf94778615b10cb
|
/PROMISE/archives/synapse/1.2/org/apache/synapse/core/SynapseEnvironment.java
|
8624121846ce27bff7c847e326a20725192e4940
|
[] |
no_license
|
hvdthong/DEFECT_PREDICTION
|
78b8e98c0be3db86ffaed432722b0b8c61523ab2
|
76a61c69be0e2082faa3f19efd76a99f56a32858
|
refs/heads/master
| 2021-01-20T05:19:00.927723
| 2018-07-10T03:38:14
| 2018-07-10T03:38:14
| 89,766,606
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,377
|
java
|
package org.apache.synapse.core;
import org.apache.synapse.MessageContext;
import org.apache.synapse.endpoints.utils.EndpointDefinition;
import org.apache.synapse.mediators.base.SequenceMediator;
import org.apache.synapse.statistics.StatisticsCollector;
import org.apache.synapse.util.TemporaryData;
import java.util.concurrent.ExecutorService;
/**
* The SynapseEnvironment allows access into the the host SOAP engine. It allows
* the sending of messages, classloader access etc.
*/
public interface SynapseEnvironment {
/**
* This method injects a new message into the Synapse engine. This is used by
* the underlying SOAP engine to inject messages into Synapse for mediation.
* e.g. The SynapseMessageReceiver used by Axis2 invokes this to inject new messages
*
* @param smc - Synapse MessageContext to be injected
* @return boolean true if the message processing should be continued
* and false if it should be aborted
*/
public boolean injectMessage(MessageContext smc);
/**
* This method injects a new message into the Synapse engine for the mediation
* by the specified sequence. This is used by custom mediation tasks like splitting message
* in EIP mediations. This method will do the mediation asynchronously using a separate
* thread from the environment thread pool
*
* @param smc - Synapse message context to be injected
* @param seq - Sequence to be used for mediation
*/
public void injectAsync(MessageContext smc, SequenceMediator seq);
/**
* This method allows a message to be sent through the underlying SOAP engine. This will
* send request messages on (forward), and send the response messages back to the client
*
* @param endpoint - Endpoint to be used for sending
* @param smc - Synapse MessageContext to be sent
*/
public void send(EndpointDefinition endpoint, MessageContext smc);
/**
* Creates a new Synapse <code>MessageContext</code> instance.
*
* @return a MessageContext
*/
public MessageContext createMessageContext();
/**
* Creates a new <code>TemporaryData</code> instance for the temp storage requirements
*
* @return a TemporaryData created from the parameters provided in the synapse.properties
*/
public TemporaryData createTemporaryData();
/**
* This method returns the StatisticsCollector.
*
* @return Returns the StatisticsCollector
*/
public StatisticsCollector getStatisticsCollector();
/**
* To set the StatisticsCollector to the environment
*
* @param statisticsCollector - StatisticsCollector to be set
*/
public void setStatisticsCollector(StatisticsCollector statisticsCollector);
/**
* This is used by anyone who needs access to a SynapseThreadPool.
* It offers the ability to start work.
*
* @return Returns the ExecutorService
*/
public ExecutorService getExecutorService();
/**
* Has the Synapse Environment properly initialized?
* @return true if the environment is ready for processing
*/
public boolean isInitialized();
/**
* Set the environment as ready for message processing
* @param state true means ready for processing
*/
public void setInitialized(boolean state);
}
|
[
"hvdthong@github.com"
] |
hvdthong@github.com
|
f5e5b3e79417bd1b1d4a9cea65ac151823555622
|
b8d6b7940339d1f2c0eee1ff102f9d8d00a6b51a
|
/08-chapter-03-solution/src/test/java/com/book/web/MessageControllerIT.java
|
5e97d01755d1e17f6262b3fc1cc598f95be85e3d
|
[] |
no_license
|
TomSpencerLondon/Spring-Practice-Exercises
|
8eb485c501010319e38a591b53d633dbc62945c4
|
b21777a8d6514e3b23ace4de29f927e38dce9bc0
|
refs/heads/master
| 2022-12-03T04:01:53.409714
| 2020-08-05T13:53:08
| 2020-08-05T13:53:08
| 285,293,521
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,620
|
java
|
package com.book.web;
import com.book.init.AppSettings;
import com.book.init.Application;
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.IntegrationTest;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.boot.test.TestRestTemplate;
import org.springframework.http.ResponseEntity;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.web.client.RestTemplate;
import java.net.URL;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
/**
* Created by iuliana.cosmina on 9/29/15.
* Description: Integration test for the MessageController class
*/
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = Application.class)
@WebAppConfiguration
@IntegrationTest
public class MessageControllerIT {
@Autowired
AppSettings appSettings;
private URL base;
private RestTemplate template;
@Before
public void setUp() throws Exception {
this.base = new URL("http://localhost:" + appSettings.getPort() +"/" + appSettings.getContext() + "/message");
template = new TestRestTemplate();
}
@Test
public void getMessage() throws Exception {
ResponseEntity<String> response = template.getForEntity(base.toString(), String.class);
assertThat(response.getBody(), equalTo("Testing, is this thing on?"));
}
}
|
[
"thomas.spencer@codurance.com"
] |
thomas.spencer@codurance.com
|
c875b0e9ed7938292781000bdbdb3bc46f902ae9
|
90f17cd659cc96c8fff1d5cfd893cbbe18b1240f
|
/src/main/java/com/google/android/gms/internal/firebase_auth/zzam.java
|
ce999018602a765256b71396ba9c848bff8b9155
|
[] |
no_license
|
redpicasso/fluffy-octo-robot
|
c9b98d2e8745805edc8ddb92e8afc1788ceadd08
|
b2b62d7344da65af7e35068f40d6aae0cd0835a6
|
refs/heads/master
| 2022-11-15T14:43:37.515136
| 2020-07-01T22:19:16
| 2020-07-01T22:19:16
| 276,492,708
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,411
|
java
|
package com.google.android.gms.internal.firebase_auth;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
public final class zzam {
private final int limit;
private final zzae zzgm;
private final boolean zzgn;
private final zzas zzgo;
private zzam(zzas zzas) {
this(zzas, false, zzai.zzgk, Integer.MAX_VALUE);
}
private zzam(zzas zzas, boolean z, zzae zzae, int i) {
this.zzgo = zzas;
this.zzgn = false;
this.zzgm = zzae;
this.limit = Integer.MAX_VALUE;
}
public static zzam zzd(char c) {
zzae zzag = new zzag(c);
zzaj.checkNotNull(zzag);
return new zzam(new zzal(zzag));
}
public static zzam zzbp(String str) {
zzaj.checkArgument(str.length() != 0, "The separator may not be the empty string.");
if (str.length() == 1) {
return zzd(str.charAt(0));
}
return new zzam(new zzan(str));
}
public final List<String> zza(CharSequence charSequence) {
zzaj.checkNotNull(charSequence);
Iterator zza = this.zzgo.zza(this, charSequence);
List arrayList = new ArrayList();
while (zza.hasNext()) {
arrayList.add((String) zza.next());
}
return Collections.unmodifiableList(arrayList);
}
}
|
[
"aaron@goodreturn.org"
] |
aaron@goodreturn.org
|
ef92ee37c44f0e212e687e232b42f6633ecefc0e
|
c88d7d0927cef93b3127295b5cc9a9cf2c90e2b0
|
/src/br/com/caelum/financas/validator/NumeroEAgencia.java
|
e7c012550f665cd51a6a73cb601606e150f82ee5
|
[] |
no_license
|
leandro19br/financas-web
|
c79e174286487d249da6937f649534edd40f50c7
|
5c02f07ab4a90a6d800efe8671715101388b728a
|
refs/heads/master
| 2021-08-23T06:35:59.690680
| 2017-12-03T22:55:12
| 2017-12-03T22:55:12
| 112,971,279
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 603
|
java
|
package br.com.caelum.financas.validator;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = NumeroEAgenciaValidator.class)
public @interface NumeroEAgencia {
String message() default"{br.com.caelum.financas.validator.NumeroEAgencia.message}";
Class<?>[] groups() default{};
Class<? extends Payload>[] payload() default{};
}
|
[
"leandro19br@gmail.com"
] |
leandro19br@gmail.com
|
10703aa2880156720319dd4a2f8b88c253e0e2ff
|
81c48ccdb639908df63cd5f90b4cb49449f30e1d
|
/haox-kerb/kerb-core/src/main/java/org/apache/kerberos/kerb/spec/pa/pkinit/ExternalPrincipalIdentifier.java
|
ab5e1558115b84ad2e560d098c6972d70d51e06e
|
[
"Apache-2.0"
] |
permissive
|
HazelChen/directory-kerberos
|
595e70f652a695278018ac8b4ebee30d37232fdc
|
5e7a14455c8184bf1590fc2865345a2ff98431fe
|
refs/heads/master
| 2020-12-30T14:56:29.674154
| 2015-01-15T08:36:03
| 2015-01-15T08:36:03
| 29,284,549
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,609
|
java
|
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.kerberos.kerb.spec.pa.pkinit;
import org.apache.haox.asn1.type.Asn1FieldInfo;
import org.apache.haox.asn1.type.Asn1OctetString;
import org.apache.kerberos.kerb.spec.KrbSequenceType;
/**
ExternalPrincipalIdentifier ::= SEQUENCE {
subjectName [0] IMPLICIT OCTET STRING OPTIONAL,
issuerAndSerialNumber [1] IMPLICIT OCTET STRING OPTIONAL,
subjectKeyIdentifier [2] IMPLICIT OCTET STRING OPTIONAL
}
*/
public class ExternalPrincipalIdentifier extends KrbSequenceType {
private static int SUBJECT_NAME = 0;
private static int ISSUER_AND_SERIAL_NUMBER = 1;
private static int SUBJECT_KEY_IDENTIFIER = 2;
static Asn1FieldInfo[] fieldInfos = new Asn1FieldInfo[] {
new Asn1FieldInfo(SUBJECT_NAME, Asn1OctetString.class, true),
new Asn1FieldInfo(ISSUER_AND_SERIAL_NUMBER, Asn1OctetString.class, true),
new Asn1FieldInfo(SUBJECT_KEY_IDENTIFIER, Asn1OctetString.class, true)
};
public ExternalPrincipalIdentifier() {
super(fieldInfos);
}
public byte[] getSubjectName() {
return getFieldAsOctets(SUBJECT_NAME);
}
public void setSubjectName(byte[] subjectName) {
setFieldAsOctets(SUBJECT_NAME, subjectName);
}
public byte[] getIssuerSerialNumber() {
return getFieldAsOctets(ISSUER_AND_SERIAL_NUMBER);
}
public void setIssuerSerialNumber(byte[] issuerSerialNumber) {
setFieldAsOctets(ISSUER_AND_SERIAL_NUMBER, issuerSerialNumber);
}
public byte[] getSubjectKeyIdentifier() {
return getFieldAsOctets(SUBJECT_KEY_IDENTIFIER);
}
public void setSubjectKeyIdentifier(byte[] subjectKeyIdentifier) {
setFieldAsOctets(SUBJECT_KEY_IDENTIFIER, subjectKeyIdentifier);
}
}
|
[
"drankye@gmail.com"
] |
drankye@gmail.com
|
a38eff7b39fb43c4bc5a621edf46ab2be1391c5f
|
10874aeaddf39dadbe0b8e7526661c5b8264a2af
|
/colorimetry/src/main/java/org/color4j/colorimetry/matching/ColorDifferenceDin99.java
|
2a51ced86e4207e23a27bbcb252521f1cba2c27b
|
[] |
no_license
|
stickfigure/color4j
|
e33cd22a4787d7e28aef50f92fd9e57795058fcc
|
813d953abf6980e4334d3a843d966f9cc577b7be
|
refs/heads/master
| 2020-12-30T18:02:38.963756
| 2011-10-27T08:04:01
| 2011-10-27T08:04:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,406
|
java
|
/*
* Copyright (c) 2000-2011 Niclas Hedhman.
*
* 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.color4j.colorimetry.matching;
import org.color4j.colorimetry.encodings.Din99Lab;
public class ColorDifferenceDin99 extends ColorDifference<Din99Lab>
{
/**
* the variable end with star mean is using CIELab model,just the difference of
* the the value, without star means is more complex, ex:
* deltaL means deltaLstar/sL, sL : weight adjust for L
* deltaLStar means L_batch - L_target
*/
private double m_dLStar;
private double m_dAStar;
private double m_dBStar;
private double m_dCStar;
private double m_dHStar;
private double m_dE;
private double m_dL99;
private double m_da99;
private double m_db99;
private double m_dC99;
private double m_dH99;
public ColorDifferenceDin99( DifferenceAlgorithm<Din99Lab> algorithm,
double dL99,
double da99,
double db99,
double dC99,
double dH99,
double dE,
double dLs,
double dAs,
double dBs,
double dCs,
double dHs
)
{
super( algorithm );
m_dL99 = dL99;
m_da99 = da99;
m_db99 = db99;
m_dC99 = dC99;
m_dH99 = dH99;
m_dE = dE;
m_dLStar = dLs;
m_dAStar = dAs;
m_dBStar = dBs;
m_dCStar = dCs;
m_dHStar = dHs;
}
public double getDeltaE()
{
return m_dE;
}
public double getDeltaL99()
{
return m_dL99;
}
public double getDeltaa99()
{
return m_da99;
}
public double getDeltab99()
{
return m_db99;
}
public double getDeltaC99()
{
return m_dC99;
}
public double getDeltaH99()
{
return m_dH99;
}
public double getDeltaL()
{
return m_dL99;
}
public double getDeltaC()
{
return m_dC99;
}
public double getDeltaH()
{
return m_dH99;
}
/**
* Returns the Delta a of the two CIELab values.
*/
public double getDeltaaStar()
{
return m_dAStar;
}
/**
* Returns the Delta b of the two CIElab values.
*/
public double getDeltabStar()
{
return m_dBStar;
}
/**
* Returns the Delta a of the two CIELab values.
*/
public double getDeltaLStar()
{
return m_dLStar;
}
public double getDeltaCStar()
{
return m_dCStar;
}
public double getDeltaHStar()
{
return m_dHStar;
}
}
|
[
"niclas@hedhman.org"
] |
niclas@hedhman.org
|
ed0615427fbae00df73e42bbe374b62be24b977d
|
7effb2f1faebc3c5d55afee3d15c859c5b28e67b
|
/core/serde.kryo/src/main/java/mb/pie/serde/kryo/package-info.java
|
8771664fa21144d81780b2f9ff33a27a73209651
|
[
"Apache-2.0"
] |
permissive
|
metaborg/pie
|
ac421ebf4e5265245137908b0c3c061848581db4
|
ecf896f11a4fbc11b8aef8a8fb831663baa0d188
|
refs/heads/develop
| 2022-06-20T03:09:11.729080
| 2022-06-15T09:46:10
| 2022-06-15T09:46:10
| 102,454,792
| 8
| 4
|
Apache-2.0
| 2022-06-15T09:46:11
| 2017-09-05T08:23:07
|
Java
|
UTF-8
|
Java
| false
| false
| 181
|
java
|
@DefaultQualifier(NonNull.class)
package mb.pie.serde.kryo;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.framework.qual.DefaultQualifier;
|
[
"gabrielkonat@gmail.com"
] |
gabrielkonat@gmail.com
|
eaedb84cb90fd0fb6e7883bc3c85baff82b0287a
|
0d99dc277b469b474a238a9bd5c505c86cfdd80e
|
/src/java7/Chapter3/Demo1.java
|
459645753d67813c479f98b355a305710da2fb09
|
[] |
no_license
|
Borislove/Books
|
fa93d05274315b9440ae66c2c5a2109ef55f2a1e
|
248c1b4ca743c860c34c3eed3543d116f0c2a308
|
refs/heads/master
| 2023-01-23T16:03:18.683669
| 2023-01-18T23:42:52
| 2023-01-18T23:42:52
| 254,092,418
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 256
|
java
|
package java7.Chapter3;
//ะะฒัะพะผะฐัะธัะตัะบะพะต ะฟัะตะพะฑัะฐะทะพะฒะฐะฝะธะต ัะธะฟะฐ
public class Demo1 {
public static void main(String[] args) {
int x = 4711;
double y;
y = x;
System.out.println(y);
}
}
|
[
"abirme@yandex.ru"
] |
abirme@yandex.ru
|
096a79ef93048a45e820c8ca8cd02b6160c26e25
|
995f73d30450a6dce6bc7145d89344b4ad6e0622
|
/P9-8.0/src/main/java/android/content/pm/FallbackCategoryProvider.java
|
85545d2c35191d0d6a87b0efd6375103dc82957a
|
[] |
no_license
|
morningblu/HWFramework
|
0ceb02cbe42585d0169d9b6c4964a41b436039f5
|
672bb34094b8780806a10ba9b1d21036fd808b8e
|
refs/heads/master
| 2023-07-29T05:26:14.603817
| 2021-09-03T05:23:34
| 2021-09-03T05:23:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,315
|
java
|
package android.content.pm;
import android.content.res.AssetManager;
import android.content.res.Resources;
import android.os.SystemProperties;
import android.util.ArrayMap;
import android.util.Log;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class FallbackCategoryProvider {
private static final String TAG = "FallbackCategoryProvider";
private static final ArrayMap<String, Integer> sFallbacks = new ArrayMap();
/* JADX WARNING: Removed duplicated region for block: B:39:0x00b3 A:{ExcHandler: java.io.IOException (e java.io.IOException), Splitter: B:37:0x00b2} */
/* JADX WARNING: Removed duplicated region for block: B:23:0x0073 A:{SYNTHETIC, Splitter: B:23:0x0073} */
/* JADX WARNING: Removed duplicated region for block: B:49:0x00c5 A:{Catch:{ IOException -> 0x0079, IOException -> 0x0079 }} */
/* JADX WARNING: Removed duplicated region for block: B:26:0x0078 A:{SYNTHETIC, Splitter: B:26:0x0078} */
/* JADX WARNING: Removed duplicated region for block: B:28:0x0079 A:{ExcHandler: java.io.IOException (e java.io.IOException), Splitter: B:26:0x0078} */
/* JADX WARNING: Missing block: B:28:0x0079, code:
r1 = e;
*/
/* JADX WARNING: Missing block: B:29:0x007a, code:
android.util.Log.w(TAG, "Failed to read fallback categories", r1);
*/
/* JADX WARNING: Missing block: B:39:0x00b3, code:
r1 = e;
*/
/* JADX WARNING: Missing block: B:40:0x00b4, code:
r3 = r4;
*/
/* Code decompiled incorrectly, please refer to instructions dump. */
public static void loadFallbacks() {
Throwable th;
Throwable th2 = null;
sFallbacks.clear();
if (SystemProperties.getBoolean("fw.ignore_fb_categories", false)) {
Log.d(TAG, "Ignoring fallback categories");
return;
}
AssetManager assets = new AssetManager();
assets.addAssetPath("/system/framework/framework-res.apk");
BufferedReader reader = null;
try {
BufferedReader reader2 = new BufferedReader(new InputStreamReader(new Resources(assets, null, null).openRawResource(17825796)));
while (true) {
try {
String line = reader2.readLine();
if (line == null) {
break;
} else if (line.charAt(0) != '#') {
String[] split = line.split(",");
if (split.length == 2) {
sFallbacks.put(split[0], Integer.valueOf(Integer.parseInt(split[1])));
}
}
} catch (Throwable th3) {
th = th3;
reader = reader2;
if (reader != null) {
try {
reader.close();
} catch (Throwable th4) {
if (th2 == null) {
th2 = th4;
} else if (th2 != th4) {
th2.addSuppressed(th4);
}
}
}
if (th2 == null) {
try {
throw th2;
} catch (IOException e) {
}
} else {
throw th;
}
}
}
Log.d(TAG, "Found " + sFallbacks.size() + " fallback categories");
if (reader2 != null) {
try {
reader2.close();
} catch (Throwable th5) {
th2 = th5;
}
}
if (th2 != null) {
try {
throw th2;
} catch (IOException e2) {
}
}
} catch (Throwable th6) {
th = th6;
if (reader != null) {
}
if (th2 == null) {
}
}
}
public static int getFallbackCategory(String packageName) {
return ((Integer) sFallbacks.getOrDefault(packageName, Integer.valueOf(-1))).intValue();
}
}
|
[
"dstmath@163.com"
] |
dstmath@163.com
|
3b22d93d899aee84aa0d7443d50650c1e17c04ef
|
44e899f92df3ace36d8a626a56646d826886c8aa
|
/src/main/java/com/gok/ticketingbatch/service/AmbulanceActivityService.java
|
a5d235eeccb46935e87cb72072956bd16bdb0cef
|
[] |
no_license
|
ArkapravoNath/Ticketing-batch
|
4ce0558c78269b63f6aa18483ac1c56905093ccc
|
fe644f18ee971c0975f7daee212ce787516609e9
|
refs/heads/master
| 2022-12-16T18:31:00.067937
| 2020-09-01T10:26:39
| 2020-09-01T10:26:39
| 291,965,723
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,122
|
java
|
package com.gok.ticketingbatch.service;
import com.gok.ticketingbatch.service.dto.AmbulanceActivityDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.Optional;
/**
* Service Interface for managing {@link com.gok.ticketingbatch.domain.AmbulanceActivity}.
*/
public interface AmbulanceActivityService {
/**
* Save a ambulanceActivity.
*
* @param ambulanceActivityDTO the entity to save.
* @return the persisted entity.
*/
AmbulanceActivityDTO save(AmbulanceActivityDTO ambulanceActivityDTO);
/**
* Get all the ambulanceActivities.
*
* @param pageable the pagination information.
* @return the list of entities.
*/
Page<AmbulanceActivityDTO> findAll(Pageable pageable);
/**
* Get the "id" ambulanceActivity.
*
* @param id the id of the entity.
* @return the entity.
*/
Optional<AmbulanceActivityDTO> findOne(Long id);
/**
* Delete the "id" ambulanceActivity.
*
* @param id the id of the entity.
*/
void delete(Long id);
}
|
[
"nrko96@gmail.com"
] |
nrko96@gmail.com
|
aafaf97aff6f38e0c836c51b54f21511a759abfa
|
b8411ebb061dd56427b5aa0bb99e2e01a0e69023
|
/pinju-biz/src/main/java/com/yuwang/pinju/core/constant/trade/RefundConstant.java
|
c1d0c0ff324c5f7029963797fb15a00e057726b8
|
[] |
no_license
|
sgrass/double11_bugfix_asst_acct
|
afce8261bb275474f792e1cb41d9ff4fabad06b0
|
8eea9a16b43600c0c7574db5353c3d3b86cf4694
|
refs/heads/master
| 2021-01-19T04:48:03.445861
| 2017-04-06T06:34:17
| 2017-04-06T06:34:17
| 87,394,668
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 613
|
java
|
package com.yuwang.pinju.core.constant.trade;
import com.yuwang.pinju.core.constant.system.PinjuConstant;
/**
* <p>Description: ๅนณๅฐ้ๆฌพๅธธ้็ฑป </p>
* @author:[MaYuanChao]
* @version 1.0
* @create:2011-9-15
*/
public class RefundConstant {
/**
* ่ฏทๆฑ็ๆๅคงๆฌกๆฐ
*/
public final static int MAX_REQUEST_NUMBER = 5 ;
/**
* CA่ฏไนฆๅ
*/
public final static String CACERT_NAME = PinjuConstant.TENPAY_CACERT_NAME;
/**
* ไธชไบบ(ๅๆท)่ฏไนฆ
*/
public final static String CERTIFICATE_NAME = PinjuConstant.TENPAY_PAY_PARTNER.concat(".pfx");
}
|
[
"xgrass@foxmail.com"
] |
xgrass@foxmail.com
|
6d9c797bfb03f1b65b14aa6ac60e2e6699bf26db
|
9208ba403c8902b1374444a895ef2438a029ed5c
|
/sources/com/kantv/video/util/PreferenceUtil.java
|
19063ae5f0a3ebe95d6d8ed95bec13cf0a19e8b0
|
[] |
no_license
|
MewX/kantv-decompiled-v3.1.2
|
3e68b7046cebd8810e4f852601b1ee6a60d050a8
|
d70dfaedf66cdde267d99ad22d0089505a355aa1
|
refs/heads/main
| 2023-02-27T05:32:32.517948
| 2021-02-02T13:38:05
| 2021-02-02T13:44:31
| 335,299,807
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,587
|
java
|
package com.kantv.video.util;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import com.kantv.flt_tencent_im.utils.TUIKitConstants.Group;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Map;
public class PreferenceUtil {
public static final String FILE_NAME = "KanTV_data";
private static class SharedPreferencesCompat {
private static final Method sApplyMethod = findApplyMethod();
private SharedPreferencesCompat() {
}
private static Method findApplyMethod() {
try {
return Editor.class.getMethod(Group.MEMBER_APPLY, new Class[0]);
} catch (NoSuchMethodException unused) {
return null;
}
}
public static void apply(Editor editor) {
try {
if (sApplyMethod != null) {
sApplyMethod.invoke(editor, new Object[0]);
return;
}
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException unused) {
}
editor.commit();
}
}
public static void put(Context context, String str, Object obj) {
Editor edit = context.getSharedPreferences("KanTV_data", 0).edit();
if (obj instanceof String) {
edit.putString(str, (String) obj);
} else if (obj instanceof Integer) {
edit.putInt(str, ((Integer) obj).intValue());
} else if (obj instanceof Boolean) {
edit.putBoolean(str, ((Boolean) obj).booleanValue());
} else if (obj instanceof Float) {
edit.putFloat(str, ((Float) obj).floatValue());
} else if (obj instanceof Long) {
edit.putLong(str, ((Long) obj).longValue());
} else {
edit.putString(str, obj.toString());
}
SharedPreferencesCompat.apply(edit);
}
public static Object get(Context context, String str, Object obj) {
SharedPreferences sharedPreferences = context.getSharedPreferences("KanTV_data", 0);
if (obj instanceof String) {
return sharedPreferences.getString(str, (String) obj);
}
if (obj instanceof Integer) {
return Integer.valueOf(sharedPreferences.getInt(str, ((Integer) obj).intValue()));
}
if (obj instanceof Boolean) {
return Boolean.valueOf(sharedPreferences.getBoolean(str, ((Boolean) obj).booleanValue()));
}
if (obj instanceof Float) {
return Float.valueOf(sharedPreferences.getFloat(str, ((Float) obj).floatValue()));
}
if (obj instanceof Long) {
return Long.valueOf(sharedPreferences.getLong(str, ((Long) obj).longValue()));
}
return null;
}
public static void remove(Context context, String str) {
Editor edit = context.getSharedPreferences("KanTV_data", 0).edit();
edit.remove(str);
SharedPreferencesCompat.apply(edit);
}
public static void clear(Context context) {
Editor edit = context.getSharedPreferences("KanTV_data", 0).edit();
edit.clear();
SharedPreferencesCompat.apply(edit);
}
public static boolean contains(Context context, String str) {
return context.getSharedPreferences("KanTV_data", 0).contains(str);
}
public static Map<String, ?> getAll(Context context) {
return context.getSharedPreferences("KanTV_data", 0).getAll();
}
}
|
[
"xiayuanzhong@gmail.com"
] |
xiayuanzhong@gmail.com
|
7572c0017a283fa7c3be260da220e676a3c1574f
|
2b232456448efca86fc053b426350b991c45fbfe
|
/src/Chapter1_2Low/ClassicString.java
|
db4d9ca557a4485b52e8d964adee9c1f36b23309
|
[
"Apache-2.0"
] |
permissive
|
xuanyuan100/Algorithms-Fourth-Edition-Exercises
|
dd4a7d5f48df3c22a626a9cc5ef3903ebb049c0d
|
21e43b5fbe39fa01805d1e9bebd283127e882225
|
refs/heads/master
| 2020-06-03T12:04:56.210977
| 2019-05-26T03:27:32
| 2019-05-26T03:27:32
| 191,561,604
| 1
| 0
|
Apache-2.0
| 2019-06-12T11:54:40
| 2019-06-12T11:54:40
| null |
UTF-8
|
Java
| false
| false
| 1,100
|
java
|
package Chapter1_2Low;
import edu.princeton.cs.algs4.StdIn;
import edu.princeton.cs.algs4.StdOut;
public class ClassicString {
public static boolean isPalindrome(String s){
//ๅคๆญๅญ็ฌฆไธฒๆฏๅฆๆฏไธๆกๅๆ๏ผๆญฃ่ฏปๅ่ฏป้ฝไธๆ ท็ๆๅญ๏ผ
int N=s.length();
for(int i=0;i<N/2;i++)
if(s.charAt(i)!=s.charAt(N-i-1))
return false;
return true;
}
public static void main(String[] args){
//ไปๅฝไปค่กๅๆฐไธญๆๅๆไปถๅๅๆฉๅฑๅ
String s=args[0];
int dot=s.indexOf(".");
String base=s.substring(0,dot);
String extension=s.substring(dot+1,s.length());
//ๆๅฐๅบๆ ๅ่พๅ
ฅไธญๆๆๅซๆ้่ฟๅฝไปค่กๆๅฎ็ๅญ็ฌฆไธฒ็่ก
String query=args[0];
while(!StdIn.isEmpty()){
String s1=StdIn.readLine();
if(s1.contains(query)) StdOut.println(s1);
}
//ไปฅ็ฉบ็ฝๅญ็ฌฆไธบๅ้็ฌฆไปStdInไธญๅๅปบไธไธชๅญ็ฌฆไธฒๆฐ็ป
String input=StdIn.readAll();
String[] words=input.split("\\s+");
}
}
|
[
"375446972@qq.com"
] |
375446972@qq.com
|
d25b4ef49cf2a2d3d106a7df2c8cc74aa4864b30
|
aaba0aee84f85d05cf77d622ea3a9dcb686fff6b
|
/transaction-app/src/main/java/com/cus/jastip/transaction/messaging/TransactionCountSender.java
|
bd756e9d4a804f00177f3c8bd1d5a4b0c7b5f7dd
|
[] |
no_license
|
elvistj10/jastip-custech
|
695f741fe2e90e8a93ccbe0a11f9397e79b37c0c
|
1d76c78350d9d6f683af16568946cd7cc81b49d5
|
refs/heads/master
| 2020-04-08T22:37:48.589932
| 2018-11-30T08:51:48
| 2018-11-30T08:51:48
| 159,794,948
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 849
|
java
|
package com.cus.jastip.transaction.messaging;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Service;
import com.cus.jastip.transaction.messaging.model.TransactionCountModel;
@Service
public class TransactionCountSender {
private static final Logger LOG = LoggerFactory.getLogger(TransactionCountSender.class);
@Autowired
private KafkaTemplate<String, TransactionCountModel> kafkaProfileTemplate;
@Value("${app.topic.foo}")
private String topic;
public void send(TransactionCountModel message) {
LOG.info("sending message='{}' to topic='{}'", message, topic);
kafkaProfileTemplate.send(topic, message);
}
}
|
[
"elvistenthjune@gmil.com"
] |
elvistenthjune@gmil.com
|
a67ff83098796d5eff31e6aa53631155fa8e3552
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Chart/14/org/jfree/chart/plot/PlotRenderingInfo_getPlotArea_111.java
|
70d2eead7e28d4e642c3406ee0a28e8e027a4ddc
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 566
|
java
|
org jfree chart plot
store inform dimens plot subplot
plot render info plotrenderinginfo cloneabl serializ
return plot area java2 java2d space
plot area possibl code code
set plot area setplotarea rectangle2 rectangle2d
rectangle2 rectangle2d plot area getplotarea
plot area plotarea
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
bf61a7fae52cab7d003f6f64dc6d6d748fc720ca
|
07bd89d994da04a94c84db8997a67ae118af7830
|
/LightingSalesSystem/SalesSystemClient/src/rmi/remoteHelper/ListRemoteHelper.java
|
c51bc09810b0e0430a3f671658a8cab903c74254
|
[] |
no_license
|
pilibb0712/myHomework
|
61e48163972b0ca0c42c736636c46b07492c40da
|
5d013e35ee930f730418cad0a9af4cc3bf9ba0a2
|
refs/heads/master
| 2023-08-24T09:41:17.561232
| 2019-11-30T05:18:26
| 2019-11-30T05:18:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,135
|
java
|
package rmi.remoteHelper;
import blService.listBlService.BusinessConditionListBlService;
import blService.listBlService.BusinessProcessListBlService;
import blService.listBlService.SalesDetailsListBlService;
import rmi.linker.listServiceLinker.BusinessConditionListServiceLinker;
import rmi.linker.listServiceLinker.BusinessProcessListServiceLinker;
import rmi.linker.listServiceLinker.SalesDetailsListServiceLinker;
public class ListRemoteHelper {
private static ListRemoteHelper remoteHelper=new ListRemoteHelper();
private ListRemoteHelper(){
}
public static ListRemoteHelper getInstance(){
return remoteHelper;
}
public BusinessConditionListBlService getBusinessConditionListBlService(){
return BusinessConditionListServiceLinker.getInstance().getBusinessConditionListBlService();
}
public BusinessProcessListBlService getBusinessProcessListBlService(){
return BusinessProcessListServiceLinker.getInstance().getBusinessProcessListBlService();
}
public SalesDetailsListBlService getSalesDetailsListBlService(){
return SalesDetailsListServiceLinker.getInstance().getSalesDetailsListBlService();
}
}
|
[
"1292155474@qq.com"
] |
1292155474@qq.com
|
452685a54d14004adc193fe959e34da6d0f9992f
|
df134b422960de6fb179f36ca97ab574b0f1d69f
|
/io/netty/channel/ChannelFuture.java
|
0ee0e105b09af2dafe3ced39f4374fc986d2729b
|
[] |
no_license
|
TheShermanTanker/NMS-1.16.3
|
bbbdb9417009be4987872717e761fb064468bbb2
|
d3e64b4493d3e45970ec5ec66e1b9714a71856cc
|
refs/heads/master
| 2022-12-29T15:32:24.411347
| 2020-10-08T11:56:16
| 2020-10-08T11:56:16
| 302,324,687
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,061
|
java
|
package io.netty.channel;
import io.netty.util.concurrent.Future;
import io.netty.util.concurrent.GenericFutureListener;
public interface ChannelFuture extends Future<Void> {
Channel channel();
ChannelFuture addListener(GenericFutureListener<? extends Future<? super Void>> paramGenericFutureListener);
ChannelFuture addListeners(GenericFutureListener<? extends Future<? super Void>>... paramVarArgs);
ChannelFuture removeListener(GenericFutureListener<? extends Future<? super Void>> paramGenericFutureListener);
ChannelFuture removeListeners(GenericFutureListener<? extends Future<? super Void>>... paramVarArgs);
ChannelFuture sync() throws InterruptedException;
ChannelFuture syncUninterruptibly();
ChannelFuture await() throws InterruptedException;
ChannelFuture awaitUninterruptibly();
boolean isVoid();
}
/* Location: C:\Users\Josep\Downloads\Decompile Minecraft\tuinity-1.16.3.jar!\io\netty\channel\ChannelFuture.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 1.1.3
*/
|
[
"tanksherman27@gmail.com"
] |
tanksherman27@gmail.com
|
a9a475fe891287f9b69cee32b1113093688e8532
|
2a317cd5006075eeb8e9b282de69734aa6e2daf8
|
/com.bodaboda_source_code/sources/com/google/android/gms/internal/zzpp.java
|
bcdc7a39c4150ebde0be6ae60bb3e3ff360820d2
|
[] |
no_license
|
Akuku25/bodaapp
|
ee1ed22b0ad05c11aa8c8d4595f5b50da338fbe0
|
c4f54b5325d035b54d0288a402558aa1592a165f
|
refs/heads/master
| 2020-04-28T03:52:04.729338
| 2019-03-11T08:24:30
| 2019-03-11T08:24:30
| 174,954,616
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,214
|
java
|
package com.google.android.gms.internal;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.google.android.gms.common.internal.safeparcel.zza;
import com.google.android.gms.common.internal.safeparcel.zzb;
import java.util.List;
public class zzpp implements Creator<zzpo> {
static void zza(zzpo zzpo, Parcel parcel, int i) {
int zzK = zzb.zzK(parcel);
zzb.zza(parcel, 1, zzpo.zzZO, false);
zzb.zzc(parcel, 1000, zzpo.zzFG);
zzb.zza(parcel, 2, zzpo.zzanM, false);
zzb.zza(parcel, 3, zzpo.zzanu, false);
zzb.zzc(parcel, 4, zzpo.zzaoi, false);
zzb.zzc(parcel, 5, zzpo.zzaoj);
zzb.zzH(parcel, zzK);
}
public /* synthetic */ Object createFromParcel(Parcel x0) {
return zzdE(x0);
}
public /* synthetic */ Object[] newArray(int x0) {
return zzfG(x0);
}
public zzpo zzdE(Parcel parcel) {
int i = 0;
List list = null;
int zzJ = zza.zzJ(parcel);
List list2 = null;
String str = null;
String str2 = null;
int i2 = 0;
while (parcel.dataPosition() < zzJ) {
int zzI = zza.zzI(parcel);
switch (zza.zzaP(zzI)) {
case 1:
str2 = zza.zzo(parcel, zzI);
break;
case 2:
str = zza.zzo(parcel, zzI);
break;
case 3:
list2 = zza.zzB(parcel, zzI);
break;
case 4:
list = zza.zzc(parcel, zzI, zzpo.zza.CREATOR);
break;
case 5:
i = zza.zzg(parcel, zzI);
break;
case 1000:
i2 = zza.zzg(parcel, zzI);
break;
default:
zza.zzb(parcel, zzI);
break;
}
}
if (parcel.dataPosition() == zzJ) {
return new zzpo(i2, str2, str, list2, list, i);
}
throw new zza.zza("Overread allowed size end=" + zzJ, parcel);
}
public zzpo[] zzfG(int i) {
return new zzpo[i];
}
}
|
[
"wanyama19@gmail.com"
] |
wanyama19@gmail.com
|
da2622794ad31f2a8c670c368a589e54b9afb0b5
|
5ea80ee9f93939c4d72874c35873962f3c5d2dd3
|
/xml/src/main/java/org/openstreetmap/osmosis/xml/v0_6/impl/OsmWriter.java
|
86c87efdc7bc2d3ae6b7f049b0aeb508d3e11607
|
[] |
no_license
|
scrosby/osmosis
|
f53d4ae304f809ea74b1317157054150dbe947f7
|
fbe549d15e9b62004c3bcd7e02ee03bc46042bb0
|
refs/heads/master
| 2021-01-15T23:12:19.718964
| 2011-11-09T00:27:34
| 2011-11-09T00:27:34
| 2,738,314
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,874
|
java
|
// This software is released into the Public Domain. See copying.txt for details.
package org.openstreetmap.osmosis.xml.v0_6.impl;
import java.io.Writer;
import org.openstreetmap.osmosis.core.OsmosisConstants;
import org.openstreetmap.osmosis.core.OsmosisRuntimeException;
import org.openstreetmap.osmosis.core.container.v0_6.BoundContainer;
import org.openstreetmap.osmosis.core.container.v0_6.EntityContainer;
import org.openstreetmap.osmosis.core.container.v0_6.EntityProcessor;
import org.openstreetmap.osmosis.core.container.v0_6.NodeContainer;
import org.openstreetmap.osmosis.core.container.v0_6.RelationContainer;
import org.openstreetmap.osmosis.core.container.v0_6.WayContainer;
import org.openstreetmap.osmosis.xml.common.ElementWriter;
/**
* Renders OSM data types as xml.
*
* @author Brett Henderson
*/
public class OsmWriter extends ElementWriter {
private SubElementWriter subElementWriter;
private boolean renderAttributes;
/**
* Creates a new instance.
*
* @param elementName
* The name of the element to be written.
* @param indentLevel
* The indent level of the element.
* @param renderAttributes
* Specifies whether attributes of the top level element should
* be rendered. This would typically be set to false if this
* element is embedded within a higher level element (eg.
* changesets)
*/
public OsmWriter(String elementName, int indentLevel, boolean renderAttributes) {
super(elementName, indentLevel);
this.renderAttributes = renderAttributes;
// Create the sub-element writer which calls the appropriate element
// writer based on data type.
subElementWriter = new SubElementWriter(indentLevel + 1);
}
/**
* Begins an element.
*/
public void begin() {
beginOpenElement();
if (renderAttributes) {
addAttribute("version", XmlConstants.OSM_VERSION);
addAttribute("generator", "Osmosis " + OsmosisConstants.VERSION);
}
endOpenElement(false);
}
/**
* Ends an element.
*/
public void end() {
closeElement();
}
/**
* Writes the element in the container.
*
* @param entityContainer
* The container holding the entity.
*/
public void process(EntityContainer entityContainer) {
entityContainer.process(subElementWriter);
}
/**
* {@inheritDoc}
*/
@Override
public void setWriter(final Writer writer) {
super.setWriter(writer);
// Tell the sub element writer that a new writer is available. This will
// cause the underlying entity writing classes to be updated.
subElementWriter.updateWriter(writer);
}
/**
* Directs data to the appropriate underlying element writer.
*
* @author Brett Henderson
*/
private static class SubElementWriter implements EntityProcessor {
private NodeWriter nodeWriter;
private WayWriter wayWriter;
private RelationWriter relationWriter;
private BoundWriter boundWriter;
private boolean boundWritten = false; // can't write a Bound twice
private boolean entitiesWritten = false; // can't write a Bound after any Entities
/**
* Creates a new instance.
*
* @param indentLevel
* The indent level of the sub-elements.
*/
public SubElementWriter(int indentLevel) {
nodeWriter = new NodeWriter("node", indentLevel);
wayWriter = new WayWriter("way", indentLevel);
relationWriter = new RelationWriter("relation", indentLevel);
boundWriter = new BoundWriter("bound", indentLevel);
}
/**
* Updates the underlying writer.
*
* @param writer
* The writer to be used for all output xml.
*/
public void updateWriter(final Writer writer) {
nodeWriter.setWriter(writer);
wayWriter.setWriter(writer);
relationWriter.setWriter(writer);
boundWriter.setWriter(writer);
// reset the flags indicating which data has been written
boundWritten = false;
entitiesWritten = false;
}
/**
* {@inheritDoc}
*/
public void process(NodeContainer node) {
nodeWriter.process(node.getEntity());
entitiesWritten = true;
}
/**
* {@inheritDoc}
*/
public void process(WayContainer way) {
wayWriter.process(way.getEntity());
entitiesWritten = true;
}
/**
* {@inheritDoc}
*/
public void process(RelationContainer relation) {
relationWriter.process(relation.getEntity());
entitiesWritten = true;
}
/**
* {@inheritDoc}
*/
public void process(BoundContainer bound) {
if (boundWritten) {
throw new OsmosisRuntimeException("Bound element already written and only one allowed.");
}
if (entitiesWritten) {
throw new OsmosisRuntimeException("Can't write bound element after other entities.");
}
boundWriter.process(bound.getEntity());
boundWritten = true;
}
}
}
|
[
"brett@bretth.com"
] |
brett@bretth.com
|
4e587bd775cba3f4ce2c6b6a79e35e3178b6f468
|
ff1d39fbcef867034a7b28c73647e31a1576c761
|
/hasor-rsf/rsf-framework/src/main/java/net/hasor/rsf/libs/com/hprose/io/unserialize/TimeUnserializer.java
|
3f02b6dbc5a132d7b2ccc21e4db5fa9eb04d6355
|
[
"Apache-2.0"
] |
permissive
|
dalianpa/hasor
|
154a9a346731a53309379247ccb68e4ae3203e15
|
c6b36d711e206927ef67c46a801009c6421b0351
|
refs/heads/master
| 2020-11-28T08:05:33.034136
| 2019-06-02T08:24:43
| 2019-06-02T08:24:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,325
|
java
|
/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| http://www.hprose.org/ |
| |
\**********************************************************/
/**********************************************************\
* *
* TimeUnserializer.java *
* *
* Time unserializer class for Java. *
* *
* LastModified: Aug 3, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
package net.hasor.rsf.libs.com.hprose.io.unserialize;
import java.io.IOException;
import java.lang.reflect.Type;
import java.sql.Time;
import static net.hasor.rsf.libs.com.hprose.io.HproseTags.*;
public final class TimeUnserializer extends BaseUnserializer<Time> {
public final static TimeUnserializer instance = new TimeUnserializer();
@Override
public Time unserialize(Reader reader, int tag, Type type) throws IOException {
switch (tag) {
case TagDate:
return ReferenceReader.readDateTime(reader).toTime();
case TagTime:
return ReferenceReader.readTime(reader).toTime();
case TagEmpty:
return null;
case TagString:
return Time.valueOf(ReferenceReader.readString(reader));
case TagInteger:
case TagLong:
return new Time(ValueReader.readLong(reader));
case TagDouble:
return new Time((long) ValueReader.readDouble(reader));
}
if (tag >= '0' && tag <= '9')
return new Time(tag - '0');
return super.unserialize(reader, tag, type);
}
public Time read(Reader reader) throws IOException {
return read(reader, Time.class);
}
}
|
[
"zyc@hasor.net"
] |
zyc@hasor.net
|
3017be3956feaa2e59638b81e4dee00375efc070
|
6981973939d36b5282f2811ad546c398c0a23a63
|
/chelizi/access/src/main/java/com/lili/net/mina/MinaClientConnection.java
|
870d36118f7e88cec3dfa01477ae274ff2dad909
|
[] |
no_license
|
lucifax301/chelizi
|
8ce36763b2470d1e490d336b493f0dca435a13c8
|
e5f33c44a3419158fa7821fcc536cb2f06da9792
|
refs/heads/master
| 2022-12-25T14:48:08.779035
| 2019-05-30T08:59:55
| 2019-05-30T08:59:55
| 92,494,386
| 1
| 0
| null | 2022-12-16T01:16:34
| 2017-05-26T09:23:10
|
Java
|
UTF-8
|
Java
| false
| false
| 2,816
|
java
|
/**
* Date: May 15, 2013
*
* Copyright (C) 2013-2015 7Road. All rights reserved.
*/
package com.lili.net.mina;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import org.apache.mina.core.session.IoSession;
import com.lili.net.AbstractClientConnection;
import com.lili.net.CommonConst;
import com.lili.net.IClientPacketHandler;
/**
* ๅบไบmina็IClientConnectionๅฎ็ฐใ
*
* @author jiayi.wei
*/
public class MinaClientConnection extends AbstractClientConnection
{
private IoSession session = null;
private boolean isServerClosed = false;
/**
* @param packetHandler
*/
public MinaClientConnection(IClientPacketHandler packetHandler,
IoSession session)
{
super(packetHandler);
this.session = session;
}
/*
* (non-Javadoc)
*
* @see com.road.pitaya.net.IClientConnection#send(java.lang.Object)
*/
@Override
public void send(Object packet)
{
if (session != null && session.isClosing() == false && session.isConnected())
{
session.write(packet);
//System.out.println("write: " + session);
}
}
@Override
public void setEncryptionKey(int[] key)
{
session.setAttribute(CommonConst.ENCRYPTION_KEY, key);
}
@Override
public void setDecryptionKey(int[] key)
{
session.setAttribute(CommonConst.DECRYPTION_KEY, key);
}
/*
* (non-Javadoc)
*
* @see com.road.pitaya.net.IClientConnection#closeConnection()
*/
@Override
public void closeConnection(boolean immediately)
{
if (this.session != null && !session.isClosing())
{
session.close(immediately);
}
}
/*
* (non-Javadoc)
*
* @see com.road.pitaya.net.IClientConnection#getClientIP()
*/
@Override
public String getClientIP()
{
if (session.getRemoteAddress() == null)
{
return "127.0.0.1";
}
InetAddress address = ((InetSocketAddress) session.getRemoteAddress()).getAddress();
if (address == null)
{
return "127.0.0.1";
}
return address.getHostAddress();
}
/*
* @see IClientConnection#getSession()
*/
@Override
public IoSession getSession()
{
return session;
}
/* (non-Javadoc)
* @see com.road.pitaya.net.IClientConnection#isServerClosed()
*/
@Override
public boolean isServerClosed()
{
return this.isServerClosed;
}
/* (non-Javadoc)
* @see com.road.pitaya.net.IClientConnection#setIsServerClosed(boolean)
*/
@Override
public void setIsServerClosed(boolean isServerClosed)
{
this.isServerClosed = isServerClosed;
}
}
|
[
"232120641@qq.com"
] |
232120641@qq.com
|
a902c8a21f0a2f142f2453e93ef4090ddf756216
|
4d840cba0da0253b35058b364e7fa236d6a14d01
|
/view/src/main/java/org/solovyev/android/view/drag/DragButton.java
|
2787246924d3baad95c9abd2009ed377ccdc2285
|
[] |
no_license
|
thorinside/android-common
|
0b038e8a525098e24d79801fd5a456b457a5a83e
|
d0779ef4b4123246201b026e691e3104e93dae4f
|
refs/heads/master
| 2021-01-17T22:54:48.528791
| 2012-11-18T16:27:53
| 2012-11-18T16:27:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,955
|
java
|
/*
* Copyright (c) 2009-2011. Created by serso aka se.solovyev.
* For more information, please, contact se.solovyev@gmail.com
*/
package org.solovyev.android.view.drag;
import android.content.Context;
import android.graphics.Canvas;
import android.os.Handler;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.solovyev.android.view.AndroidViewUtils;
import org.solovyev.common.math.Point2d;
import org.solovyev.common.text.StringUtils;
public class DragButton extends Button {
@Nullable
private Point2d startPoint = null;
@Nullable
private org.solovyev.android.view.drag.OnDragListener onDragListener;
@NotNull
private DragButton.OnTouchListenerImpl onTouchListener;
private boolean showText = true;
@NotNull
private final Handler uiHandler = new Handler();
@Nullable
private CharSequence textBackup;
public DragButton(@NotNull Context context, @NotNull AttributeSet attrs) {
super(context, attrs);
setOnTouchListener(new OnTouchListenerImpl());
}
public DragButton(@NotNull Context context, @NotNull DragButtonDef dragButtonDef) {
super(context);
setOnTouchListener(new OnTouchListenerImpl());
setText(dragButtonDef.getText());
}
public void setOnDragListener(@Nullable org.solovyev.android.view.drag.OnDragListener onDragListener) {
this.onDragListener = onDragListener;
}
@Nullable
public org.solovyev.android.view.drag.OnDragListener getOnDragListener() {
return onDragListener;
}
public void applyDef(@NotNull DragButtonDef buttonDef) {
AndroidViewUtils.applyButtonDef(this, buttonDef);
}
@Override
public void setOnTouchListener(OnTouchListener l) {
if (l instanceof OnTouchListenerImpl) {
this.onTouchListener = (OnTouchListenerImpl) l;
super.setOnTouchListener(l);
} else {
this.onTouchListener.nestedOnTouchListener = l;
}
}
/**
* OnTouchListener implementation that fires onDrag()
*
* @author serso
*/
private final class OnTouchListenerImpl implements OnTouchListener {
@Nullable
private OnTouchListener nestedOnTouchListener;
@Override
public boolean onTouch(@NotNull View v, @NotNull MotionEvent event) {
// processing on touch event
boolean consumed = false;
// in order to avoid possible NPEs
final Point2d localStartPoint = startPoint;
final org.solovyev.android.view.drag.OnDragListener localOnDragListener = onDragListener;
if (localOnDragListener != null) {
// only if onDrag() listener specified
Log.d(String.valueOf(getId()), "onTouch() for: " + getId() + " . Motion event: " + event);
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
// start tracking: set start point
startPoint = new Point2d(event.getX(), event.getY());
break;
case MotionEvent.ACTION_UP:
// stop tracking
if (localStartPoint != null) {
consumed = localOnDragListener.onDrag(DragButton.this, new DragEvent(localStartPoint, event));
if (consumed) {
if (localOnDragListener.isSuppressOnClickEvent()) {
// prevent on click action
v.setPressed(false);
}
}
}
startPoint = null;
break;
}
}
if (nestedOnTouchListener != null && !consumed) {
return nestedOnTouchListener.onTouch(v, event);
} else {
return consumed;
}
}
}
@Override
protected void onDraw(Canvas canvas) {
CharSequence text = getText();
if (!StringUtils.isEmpty(text)) {
super.onDraw(canvas);
} else {
if (!AndroidViewUtils.drawDrawables(canvas, this)) {
super.onDraw(canvas);
}
}
}
public boolean isShowText() {
return showText;
}
public void setShowText(boolean showText) {
if (this.showText != showText) {
if ( showText ) {
setText(textBackup);
textBackup = null;
} else {
textBackup = this.getText();
setText(null);
}
this.showText = showText;
}
}
}
|
[
"se.solovyev@gmail.com"
] |
se.solovyev@gmail.com
|
43981c2cf5d60f9d6f99eebacd511cd10983eaa2
|
3bfb7d79c7bfc30e0c40d38e554e6badfa07e4e5
|
/base-user-info/src/main/java/com/ahsj/baseuserinfo/dao/RolePermissionMapper.java
|
5eb339b6262cb976a87a4843776cd8f57e5e1248
|
[] |
no_license
|
AnHuiShangJue/hisprojecte
|
e4000f103977e99dcbb9d10bd8cad6da4d44eb26
|
f7b9c769d33cf2d9491cc557dc0f6f70ad4f2310
|
refs/heads/master
| 2023-01-24T04:34:02.051134
| 2020-06-03T10:41:52
| 2020-06-03T10:41:52
| 210,382,667
| 1
| 1
| null | 2023-01-04T22:36:32
| 2019-09-23T14:56:20
|
HTML
|
UTF-8
|
Java
| false
| false
| 790
|
java
|
package com.ahsj.baseuserinfo.dao;
import com.ahsj.baseuserinfo.entity.RolePermission;
import org.apache.ibatis.annotations.Mapper;
import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
import java.util.List;
@Mapper
public interface RolePermissionMapper {
int deleteByPrimaryKey(Long id);
int insert(RolePermission record);
int insertSelective(RolePermission record);
RolePermission selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(RolePermission record);
int updateByPrimaryKey(RolePermission record);
void insertBatch(@NotNull List<RolePermission> lstRolePermission);
void deletByRoleId(long roleId);
List<RolePermission> selectPermission(RolePermission rolePermission);
void deleteByRoleId(Long roleId);
}
|
[
"18555338533@163.com"
] |
18555338533@163.com
|
924603d89937d457f93a532d846c3f2de3d8ecd6
|
97fd02f71b45aa235f917e79dd68b61c62b56c1c
|
/src/main/java/com/tencentcloudapi/mrs/v20200910/models/ValueBlock.java
|
643431992e6dabb0056103f81c3061982804a909
|
[
"Apache-2.0"
] |
permissive
|
TencentCloud/tencentcloud-sdk-java
|
7df922f7c5826732e35edeab3320035e0cdfba05
|
09fa672d75e5ca33319a23fcd8b9ca3d2afab1ec
|
refs/heads/master
| 2023-09-04T10:51:57.854153
| 2023-09-01T03:21:09
| 2023-09-01T03:21:09
| 129,837,505
| 537
| 317
|
Apache-2.0
| 2023-09-13T02:42:03
| 2018-04-17T02:58:16
|
Java
|
UTF-8
|
Java
| false
| false
| 4,186
|
java
|
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.mrs.v20200910.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ValueBlock extends AbstractModel{
/**
* ็ญ็บง
ๆณจๆ๏ผๆญคๅญๆฎตๅฏ่ฝ่ฟๅ null๏ผ่กจ็คบๅไธๅฐๆๆๅผใ
*/
@SerializedName("Grade")
@Expose
private String Grade;
/**
* ็พๅๆฏ
ๆณจๆ๏ผๆญคๅญๆฎตๅฏ่ฝ่ฟๅ null๏ผ่กจ็คบๅไธๅฐๆๆๅผใ
*/
@SerializedName("Percent")
@Expose
private Float [] Percent;
/**
* ้ณๆง้ดๆง
ๆณจๆ๏ผๆญคๅญๆฎตๅฏ่ฝ่ฟๅ null๏ผ่กจ็คบๅไธๅฐๆๆๅผใ
*/
@SerializedName("Positive")
@Expose
private String Positive;
/**
* Get ็ญ็บง
ๆณจๆ๏ผๆญคๅญๆฎตๅฏ่ฝ่ฟๅ null๏ผ่กจ็คบๅไธๅฐๆๆๅผใ
* @return Grade ็ญ็บง
ๆณจๆ๏ผๆญคๅญๆฎตๅฏ่ฝ่ฟๅ null๏ผ่กจ็คบๅไธๅฐๆๆๅผใ
*/
public String getGrade() {
return this.Grade;
}
/**
* Set ็ญ็บง
ๆณจๆ๏ผๆญคๅญๆฎตๅฏ่ฝ่ฟๅ null๏ผ่กจ็คบๅไธๅฐๆๆๅผใ
* @param Grade ็ญ็บง
ๆณจๆ๏ผๆญคๅญๆฎตๅฏ่ฝ่ฟๅ null๏ผ่กจ็คบๅไธๅฐๆๆๅผใ
*/
public void setGrade(String Grade) {
this.Grade = Grade;
}
/**
* Get ็พๅๆฏ
ๆณจๆ๏ผๆญคๅญๆฎตๅฏ่ฝ่ฟๅ null๏ผ่กจ็คบๅไธๅฐๆๆๅผใ
* @return Percent ็พๅๆฏ
ๆณจๆ๏ผๆญคๅญๆฎตๅฏ่ฝ่ฟๅ null๏ผ่กจ็คบๅไธๅฐๆๆๅผใ
*/
public Float [] getPercent() {
return this.Percent;
}
/**
* Set ็พๅๆฏ
ๆณจๆ๏ผๆญคๅญๆฎตๅฏ่ฝ่ฟๅ null๏ผ่กจ็คบๅไธๅฐๆๆๅผใ
* @param Percent ็พๅๆฏ
ๆณจๆ๏ผๆญคๅญๆฎตๅฏ่ฝ่ฟๅ null๏ผ่กจ็คบๅไธๅฐๆๆๅผใ
*/
public void setPercent(Float [] Percent) {
this.Percent = Percent;
}
/**
* Get ้ณๆง้ดๆง
ๆณจๆ๏ผๆญคๅญๆฎตๅฏ่ฝ่ฟๅ null๏ผ่กจ็คบๅไธๅฐๆๆๅผใ
* @return Positive ้ณๆง้ดๆง
ๆณจๆ๏ผๆญคๅญๆฎตๅฏ่ฝ่ฟๅ null๏ผ่กจ็คบๅไธๅฐๆๆๅผใ
*/
public String getPositive() {
return this.Positive;
}
/**
* Set ้ณๆง้ดๆง
ๆณจๆ๏ผๆญคๅญๆฎตๅฏ่ฝ่ฟๅ null๏ผ่กจ็คบๅไธๅฐๆๆๅผใ
* @param Positive ้ณๆง้ดๆง
ๆณจๆ๏ผๆญคๅญๆฎตๅฏ่ฝ่ฟๅ null๏ผ่กจ็คบๅไธๅฐๆๆๅผใ
*/
public void setPositive(String Positive) {
this.Positive = Positive;
}
public ValueBlock() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public ValueBlock(ValueBlock source) {
if (source.Grade != null) {
this.Grade = new String(source.Grade);
}
if (source.Percent != null) {
this.Percent = new Float[source.Percent.length];
for (int i = 0; i < source.Percent.length; i++) {
this.Percent[i] = new Float(source.Percent[i]);
}
}
if (source.Positive != null) {
this.Positive = new String(source.Positive);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap<String, String> map, String prefix) {
this.setParamSimple(map, prefix + "Grade", this.Grade);
this.setParamArraySimple(map, prefix + "Percent.", this.Percent);
this.setParamSimple(map, prefix + "Positive", this.Positive);
}
}
|
[
"tencentcloudapi@tencent.com"
] |
tencentcloudapi@tencent.com
|
7ce6d0268feb4de0726544ec41bc1abe7930af6f
|
a129386863ccf46cab82819db1dcffac78dd73a0
|
/target/generated-sources/jooq/org/jooq/sources/routines/GeographyGistDistance.java
|
00f54f58aaef2695feed074765d03a4605167837
|
[] |
no_license
|
alsamancov/jooqzkgis
|
5f01ef8cebfb9c3a9e6e535080987d94fad3290d
|
9082a66c349a1715e5ecdff41671e535eaa45ce4
|
refs/heads/master
| 2021-09-08T12:31:49.647475
| 2018-03-09T16:48:24
| 2018-03-09T16:48:24
| 124,567,389
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| true
| 3,313
|
java
|
/*
* This file is generated by jOOQ.
*/
package org.jooq.sources.routines;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Parameter;
import org.jooq.impl.AbstractRoutine;
import org.jooq.sources.Public;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.10.3"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class GeographyGistDistance extends AbstractRoutine<Double> {
private static final long serialVersionUID = 632091452;
/**
* The parameter <code>public.geography_gist_distance.RETURN_VALUE</code>.
*/
public static final Parameter<Double> RETURN_VALUE = createParameter("RETURN_VALUE", org.jooq.impl.SQLDataType.DOUBLE, false, false);
/**
* @deprecated Unknown data type. Please define an explicit {@link org.jooq.Binding} to specify how this type should be handled. Deprecation can be turned off using <deprecationOnUnknownTypes/> in your code generator configuration.
*/
@java.lang.Deprecated
public static final Parameter<Object> _1 = createParameter("_1", org.jooq.impl.DefaultDataType.getDefaultDataType("internal"), false, true);
/**
* @deprecated Unknown data type. Please define an explicit {@link org.jooq.Binding} to specify how this type should be handled. Deprecation can be turned off using <deprecationOnUnknownTypes/> in your code generator configuration.
*/
@java.lang.Deprecated
public static final Parameter<Object> _2 = createParameter("_2", org.jooq.impl.DefaultDataType.getDefaultDataType("USER-DEFINED"), false, true);
/**
* The parameter <code>public.geography_gist_distance._3</code>.
*/
public static final Parameter<Integer> _3 = createParameter("_3", org.jooq.impl.SQLDataType.INTEGER, false, true);
/**
* Create a new routine call instance
*/
public GeographyGistDistance() {
super("geography_gist_distance", Public.PUBLIC, org.jooq.impl.SQLDataType.DOUBLE);
setReturnParameter(RETURN_VALUE);
addInParameter(_1);
addInParameter(_2);
addInParameter(_3);
}
/**
* Set the <code>_1</code> parameter IN value to the routine
*/
public void set__1(Object value) {
setValue(_1, value);
}
/**
* Set the <code>_1</code> parameter to the function to be used with a {@link org.jooq.Select} statement
*/
public void set__1(Field<Object> field) {
setField(_1, field);
}
/**
* Set the <code>_2</code> parameter IN value to the routine
*/
public void set__2(Object value) {
setValue(_2, value);
}
/**
* Set the <code>_2</code> parameter to the function to be used with a {@link org.jooq.Select} statement
*/
public void set__2(Field<Object> field) {
setField(_2, field);
}
/**
* Set the <code>_3</code> parameter IN value to the routine
*/
public void set__3(Integer value) {
setValue(_3, value);
}
/**
* Set the <code>_3</code> parameter to the function to be used with a {@link org.jooq.Select} statement
*/
public void set__3(Field<Integer> field) {
setField(_3, field);
}
}
|
[
"alsamancov@gmail.com"
] |
alsamancov@gmail.com
|
cf62e6ad4d42ed2f1321e8e4bdb4d8a355319660
|
88b8fe5b9140d17d2c5a110d2c05c5a0574b1fa9
|
/sunyata-game-app-client/src/main/java/client/handlers/Out.java
|
30ed16d198a1ce001687d7a9de1fa2ad6eb9feab
|
[] |
no_license
|
sunyata-projects/vertx-game
|
9c538000e5b1298eb8f178a1cdaac04724a8b68d
|
3f0a0874636b2dc8e681113421496e0cb0837f13
|
refs/heads/master
| 2021-09-26T18:07:59.892671
| 2017-12-14T12:23:26
| 2017-12-14T12:23:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,718
|
java
|
package client.handlers;
import com.googlecode.protobuf.format.JsonFormat;
import org.sunyata.game.server.message.OctopusToUserRawMessage;
import io.netty.channel.ChannelHandlerContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.sunyata.game.contract.Commands;
import org.sunyata.game.contract.majiang.OperationNames;
import org.sunyata.game.contract.protobuf.room.Room;
import java.io.IOException;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.Executors;
/**
* Created by leo on 17/11/24.
*/
@Component(Commands.optOut)
public class Out implements ClientCommandHandler {
Logger logger = LoggerFactory.getLogger(Out.class);
@Override
public void run(OctopusToUserRawMessage request, ChannelHandlerContext response) throws Exception {
Room.OperationCPGH operationFaPai = Room.OperationCPGH.parseFrom(request.getBody());
logger.info("ๆถๅฐๅ็ไฟกๆฏ:{}", JsonFormat.printToString(operationFaPai));
if (request.getCode() == 0) {
if (UserManager.getCurrentLocationIndex() == operationFaPai.getIndex()) {
List<Room.OperationInfo> operationInfoList = operationFaPai.getOperationInfoList();
Room.OperationFaPaiRetReq.Builder builder = Room.OperationFaPaiRetReq.newBuilder();
builder.setPai(operationFaPai.getPai());
if (operationInfoList.size() > 0) {
Room.OperationInfo operationInfo = operationInfoList.get(0);
if (Objects.equals(operationInfo.getOpt(), OperationNames.OPT_AN_GANG)) {
builder.setOpt(OperationNames.OPT_AN_GANG);
Utils.sendMessage(Commands.optFaPaiRet, builder.build(), response);
logger.info("ๅฎขๆท็ซฏๆๆ :{}", JsonFormat.printToString(operationInfo));
} else if (Objects.equals(operationInfo.getOpt(), OperationNames.OPT_XIAO_MING_GANG)) {
builder.setOpt(OperationNames.OPT_XIAO_MING_GANG);
Utils.sendMessage(Commands.optFaPaiRet, builder.build(), response);
logger.info("ๅฎขๆท็ซฏๅฐๆๆ :{}", JsonFormat.printToString(operationInfo));
} else if (Objects.equals(operationInfo.getOpt(), OperationNames.OPT_HU)) {
builder.setOpt(OperationNames.OPT_HU);
Utils.sendMessage(Commands.optFaPaiRet, builder.build(), response);
logger.info("ๅฎขๆท็ซฏ่ก็:{}", JsonFormat.printToString(operationInfo));
} else {
logger.info("ๅฎขๆท็ซฏๆช่ฝ่ฏๅซๆไฝ็ฑปๅ:{}", JsonFormat.printToString(operationInfo));
}
} else {
builder.setOpt(OperationNames.OPT_OUT);
Room.OperationFaPaiRetReq build = builder.build();
Executors.newCachedThreadPool().submit(() -> {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
try {
Utils.sendMessage(Commands.optFaPaiRet, build, response);
} catch (IOException e) {
e.printStackTrace();
}
});
logger.info("ๅฎขๆท็ซฏๆ็:{}", JsonFormat.printToString(build));
}
}
// ByteBuf buffer = Unpooled.buffer();
// Room.JoinGameReq.Builder createRoomReq = Room.JoinGameReq.newBuilder();
// byte[] bytes = createRoomReq.build().toByteArray();
// int length = bytes.length;
// buffer.writeInt(Integer.parseInt(Commands.joinGame)).writeInt(2323232).writeFloat(1.0f)
// .writeInt(-1)
// .writeInt(length)
// .writeBytes
// (bytes);
// WebSocketFrame frame = new BinaryWebSocketFrame(buffer);
// response.writeAndFlush(frame);
// private String userName;
// private String avatar;
// /**
// * 0:ๅฅณ็,1:็ท็,2:ๆช็ฅ
// */
// private int sex;
// private int gold;
// private int score;
// private int locationIndex;
// private int userId;
// private boolean online;
// private String ip;
// String encode = Json.encode(majiangChapterInfo);
}
}
}
|
[
"licl.chevan@ourgame.com"
] |
licl.chevan@ourgame.com
|
ec8d840446c2e6b225d12dfc0a9867410f9872af
|
2689de62f081865574fb81dc45926ea3d07771ad
|
/src/main/java/vdb/mydb/rpc/service/JobExecutorServiceImpl.java
|
12d4f271d30012150a562a211c08bcdf7c3c26d4
|
[
"BSD-2-Clause"
] |
permissive
|
cas-bigdatalab/vdb2020
|
e7efaed6b71b5e5604e9aa7396ce59025e375a83
|
ec08d687ae41bc94f04b6a56c05dfa6db226a8a3
|
refs/heads/master
| 2022-07-21T04:57:47.857759
| 2019-05-27T09:13:00
| 2019-05-27T09:18:50
| 159,260,460
| 0
| 0
|
BSD-2-Clause
| 2022-06-29T19:32:23
| 2018-11-27T01:58:57
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 264
|
java
|
package vdb.mydb.rpc.service;
public class JobExecutorServiceImpl implements JobExecutorService
{
public <T> T execute(RPCCallable<T> job) throws Exception
{
return job.call();
}
public void asyncExecute(RPCRunnable job)
{
new Thread(job).start();
}
}
|
[
"caohaiquan1219@163.com"
] |
caohaiquan1219@163.com
|
400515658da7a1e07856f659070dfade6bd9a1c0
|
4894304adb9cc61d2b14ce7e9683d890d958956e
|
/pinpoint-search-core/src/main/java/com/p/s/pinpoint/thrift/io/NetworkAvailabilityCheckPacket.java
|
c58dc4f359d6d1c5a0428a18498acc8126674646
|
[
"Apache-2.0"
] |
permissive
|
quehanwei/pinpoint-search
|
e5488a04cdb642e40b54a6f472281ae6a871f44f
|
05f332e89f327f169eba907dd9b45f8713aee3c1
|
refs/heads/master
| 2023-03-17T11:57:31.054660
| 2020-07-04T11:46:42
| 2020-07-04T11:46:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,317
|
java
|
/*
* Copyright 2014 NAVER Corp.
*
* 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.p.s.pinpoint.thrift.io;
import org.apache.thrift.TBase;
import org.apache.thrift.TException;
import org.apache.thrift.TFieldIdEnum;
import org.apache.thrift.protocol.TProtocol;
import java.io.UnsupportedEncodingException;
/**
* @author netspider
*/
public class NetworkAvailabilityCheckPacket implements TBase<NetworkAvailabilityCheckPacket, TFieldIdEnum>, java.io.Serializable, Cloneable, Comparable<NetworkAvailabilityCheckPacket> {
private static final long serialVersionUID = -1170704876834222604L;
public transient static final byte[] DATA_OK = getBytes("OK");
private static byte[] getBytes(String str) {
if (str == null) {
throw new NullPointerException("str must not be null");
}
try {
return str.getBytes("UTF8");
} catch (UnsupportedEncodingException e) {
throw new RuntimeException("encoding error. Caused:" + e.getMessage(), e);
}
}
@Override
public void read(TProtocol tProtocol) throws TException {
}
@Override
public void write(TProtocol tProtocol) throws TException {
}
@Override
public TFieldIdEnum fieldForId(int i) {
return null;
}
@Override
public boolean isSet(TFieldIdEnum tFieldIdEnum) {
return false;
}
@Override
public Object getFieldValue(TFieldIdEnum tFieldIdEnum) {
return null;
}
@Override
public void setFieldValue(TFieldIdEnum tFieldIdEnum, Object o) {
}
@Override
public TBase deepCopy() {
return null;
}
@Override
public void clear() {
}
@Override
public int compareTo(NetworkAvailabilityCheckPacket o) {
return 0;
}
}
|
[
"hubo02090209@sina.com"
] |
hubo02090209@sina.com
|
7d843aa2b2a94b2ac2907cd031b88d7c8e992f49
|
5184f0103ca497ee0dfa1ab6763a9b12eb56e00a
|
/UserRestService/src/main/java/com/example/UserRestService/Exception/UserNotFoundException.java
|
cba5851710a163af7a23aaebbb85ad51dbefdad7
|
[] |
no_license
|
mihirdash2017/udemyPractics
|
917fe6e43965426d10c6cb00ede959b2b5d0b06e
|
933413e231fc50d3c37a0b55f8139bdf5cf1ee44
|
refs/heads/master
| 2020-07-29T12:51:01.548906
| 2019-10-06T12:42:07
| 2019-10-06T12:42:07
| 209,810,083
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 345
|
java
|
package com.example.UserRestService.Exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.NOT_FOUND)
public class UserNotFoundException extends RuntimeException {
public UserNotFoundException(String message) {
super(message);
}
}
|
[
"user@user-PC"
] |
user@user-PC
|
138e5486b5d37e5e1f2446c10f461daf85ea518b
|
6baf1fe00541560788e78de5244ae17a7a2b375a
|
/hollywood/com.oculus.alpenglow-EnterpriseServer/sources/com/fasterxml/jackson/datatype/guava/deser/HashMultisetDeserializer.java
|
f8ee943361a2a77123e457f7951550987352bb80
|
[] |
no_license
|
phwd/quest-tracker
|
286e605644fc05f00f4904e51f73d77444a78003
|
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
|
refs/heads/main
| 2023-03-29T20:33:10.959529
| 2021-04-10T22:14:11
| 2021-04-10T22:14:11
| 357,185,040
| 4
| 2
| null | 2021-04-12T12:28:09
| 2021-04-12T12:28:08
| null |
UTF-8
|
Java
| false
| false
| 993
|
java
|
package com.fasterxml.jackson.datatype.guava.deser;
import X.AnonymousClass0o3;
import X.C006606d;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.google.common.collect.HashMultiset;
public final class HashMultisetDeserializer extends GuavaMultisetDeserializer<HashMultiset<Object>> {
@Override // com.fasterxml.jackson.datatype.guava.deser.GuavaCollectionDeserializer
public final GuavaCollectionDeserializer A0P(AnonymousClass0o3 r3, JsonDeserializer jsonDeserializer) {
return new HashMultisetDeserializer(this._containerType, r3, jsonDeserializer);
}
/* Return type fixed from 'X.0tC' to match base method */
@Override // com.fasterxml.jackson.datatype.guava.deser.GuavaMultisetDeserializer
public final HashMultiset<Object> A0R() {
return new HashMultiset();
}
public HashMultisetDeserializer(C006606d r1, AnonymousClass0o3 r2, JsonDeserializer<?> jsonDeserializer) {
super(r1, r2, jsonDeserializer);
}
}
|
[
"cyuubiapps@gmail.com"
] |
cyuubiapps@gmail.com
|
d7608126685ec8fddc4190f4b9a3ba84157f1d92
|
49b9758a4e959f5974c9192b9f0e7834e93c6c7a
|
/Original Files/source/src/cn/com/smartdevices/bracelet/chart/e.java
|
90f78abba7b5dfb898eca0e792ed5e37e42f4bed
|
[
"Apache-2.0"
] |
permissive
|
renanalves/MiBandDecompiled
|
88855d3182d3a66c4c59c6202c8ccc9f5d38c5cf
|
2c12ea0a68e55d776551ad70ed4ef26b0ed87a70
|
refs/heads/master
| 2021-05-02T18:26:40.875129
| 2015-05-04T12:49:22
| 2015-05-04T12:49:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,726
|
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 cn.com.smartdevices.bracelet.chart;
import android.graphics.RectF;
import cn.com.smartdevices.bracelet.Debug;
import cn.com.smartdevices.bracelet.chart.util.ChartUtil;
import java.util.Iterator;
import java.util.List;
// Referenced classes of package cn.com.smartdevices.bracelet.chart:
// c, DynamicDetailChart, b, a
class e extends c
{
final DynamicDetailChart b;
private float c;
private int d;
private e(DynamicDetailChart dynamicdetailchart)
{
b = dynamicdetailchart;
super(dynamicdetailchart, null);
d = 10;
}
e(DynamicDetailChart dynamicdetailchart, a a)
{
this(dynamicdetailchart);
}
protected float itemHeight(RectF rectf, cn.com.smartdevices.bracelet.chart.base.BarChart.BarItem baritem)
{
if (baritem.value >= mMaxItemValue)
{
return rectf.height() - mPaddingTop - mPaddingBottom;
} else
{
return ChartUtil.itemLevelSize(mMaxItemValue, baritem.value, c, d);
}
}
protected float itemOffsetX(RectF rectf, cn.com.smartdevices.bracelet.chart.base.BarChart.BarItem baritem)
{
return ((rectf.width() - mPaddingLeft - mPaddingRight) / (float)(1 + (DynamicDetailChart.b(b) - DynamicDetailChart.a(b)))) * (float)(baritem.index - DynamicDetailChart.a(b)) + mPaddingLeft + ((b)DynamicDetailChart.f(b)).c();
}
protected float itemOffsetY(RectF rectf, cn.com.smartdevices.bracelet.chart.base.BarChart.BarItem baritem)
{
return 0.0F;
}
protected float itemWidth(RectF rectf, cn.com.smartdevices.bracelet.chart.base.BarChart.BarItem baritem)
{
return (rectf.width() - mPaddingLeft - mPaddingRight) / (float)(1 + (DynamicDetailChart.b(b) - DynamicDetailChart.a(b))) - 2.0F * mItemPadding;
}
protected void onItemsChanged(List list)
{
super.onItemsChanged(list);
mMaxItemValue = ChartUtil.updateMaxItemValue(list, 0, 1500);
if (mRect != null)
{
float f = mRect.height() - mPaddingTop - mPaddingBottom;
c = ChartUtil.updateLevelSize(mMaxItemValue, f, d);
}
DynamicDetailChart.a(b, 0x7fffffff);
DynamicDetailChart.b(b, 0);
Iterator iterator = list.iterator();
do
{
if (!iterator.hasNext())
{
break;
}
cn.com.smartdevices.bracelet.chart.base.BarChart.BarItem baritem = (cn.com.smartdevices.bracelet.chart.base.BarChart.BarItem)iterator.next();
Debug.i("Chart.DynamicDetailChart", (new StringBuilder()).append("Step Item : ").append(baritem).toString());
if (baritem.index < DynamicDetailChart.a(b))
{
DynamicDetailChart.a(b, baritem.index);
}
if (baritem.index > DynamicDetailChart.b(b))
{
DynamicDetailChart.b(b, baritem.index);
}
} while (true);
if (list.size() == 0)
{
DynamicDetailChart.a(b, 0);
DynamicDetailChart.b(b, 0);
}
DynamicDetailChart.c(b, 60 * DynamicDetailChart.a(b));
DynamicDetailChart.d(b, 60 * DynamicDetailChart.b(b));
b.justifyStartEndTimeIndex(8);
}
protected void onRectChanged(RectF rectf)
{
super.onRectChanged(rectf);
if (rectf != null)
{
float f = rectf.height() - mPaddingTop - mPaddingBottom;
c = ChartUtil.updateLevelSize(mMaxItemValue, f, d);
}
}
}
|
[
"kvishnudev-office@yahoo.com"
] |
kvishnudev-office@yahoo.com
|
c1027d152068d2f4a9cb1f72cfeaaaf94b1d6bed
|
9b75d8540ff2e55f9ff66918cc5676ae19c3bbe3
|
/bazaar8.apk-decompiled/sources/c/c/a/f/Dc.java
|
0d3d992ccf2cec3d1a5a357084c19eeece5bdad5
|
[] |
no_license
|
BaseMax/PopularAndroidSource
|
a395ccac5c0a7334d90c2594db8273aca39550ed
|
bcae15340907797a91d39f89b9d7266e0292a184
|
refs/heads/master
| 2020-08-05T08:19:34.146858
| 2019-10-06T20:06:31
| 2019-10-06T20:06:31
| 212,433,298
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,731
|
java
|
package c.c.a.f;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.databinding.ViewDataBinding;
import b.l.g;
import c.c.a.n.c.d.m;
import com.farsitel.bazaar.R;
import com.farsitel.bazaar.common.model.page.MovieItem;
import com.farsitel.bazaar.core.widget.AspectRatioRoundImageView;
import com.farsitel.bazaar.widget.AutosizingTextView;
import com.farsitel.bazaar.widget.LocalAwareTextView;
/* compiled from: ItemVitrinSerialBinding */
public abstract class Dc extends ViewDataBinding {
public final LinearLayout A;
public final AspectRatioRoundImageView B;
public final AppCompatTextView C;
public final AutosizingTextView D;
public final LocalAwareTextView E;
public MovieItem.SerialItem F;
public m G;
public Dc(Object obj, View view, int i2, LinearLayout linearLayout, AspectRatioRoundImageView aspectRatioRoundImageView, AppCompatTextView appCompatTextView, AutosizingTextView autosizingTextView, LocalAwareTextView localAwareTextView) {
super(obj, view, i2);
this.A = linearLayout;
this.B = aspectRatioRoundImageView;
this.C = appCompatTextView;
this.D = autosizingTextView;
this.E = localAwareTextView;
}
public static Dc a(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z) {
return a(layoutInflater, viewGroup, z, g.a());
}
@Deprecated
public static Dc a(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z, Object obj) {
return (Dc) ViewDataBinding.a(layoutInflater, (int) R.layout.item_vitrin_serial, viewGroup, z, obj);
}
}
|
[
"MaxBaseCode@gmail.com"
] |
MaxBaseCode@gmail.com
|
2443d7f73486989625002fd2f4e8fba6f22cd957
|
5985089c3126cafed1124a5f5ff2518ef551818f
|
/bitcamp-java-basic/src/main/java/com/eomcs/io2/ex01/Exam0410.java
|
5da3272d10a4adc9dd1cd218b5f46f1a50025f05
|
[] |
no_license
|
seonggwonlee/bitcamp-workspace
|
113d393ca5a898f2e8e824b095e31e331054cc26
|
ed756e09c694ae58ea6d9c32979a8a6921387b2e
|
refs/heads/master
| 2023-01-30T00:34:54.079084
| 2020-12-10T12:01:05
| 2020-12-10T12:01:05
| 281,343,071
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 619
|
java
|
// ํ์ผ ์์ฑ
package io2.ex01;
import java.io.File;
public class Exam0410 {
public static void main(String[] args) throws Exception {
// ์์ฑํ ํ์ผ์ ๊ฒฝ๋ก ์ค์
File file = new File("temp2/a/test.txt");
if (file.createNewFile()) { // ํ์ผ ์์ฑ
System.out.println("test.txt ํ์ผ์ ์์ฑํ์์ต๋๋ค.");
} else {
// ์ด๋ฏธ ํ์ผ์ด ์๋ค๋ฉด ๋ค์ ์์ฑํ ์ ์๋ค.
// ํด๋น ๊ฒฝ๋ก์ ๋๋ ํ ๋ฆฌ๊ฐ ์๋ค๋ฉด ํ์ผ์ ์์ฑํ ์ ์๋ค. ์์ธ ๋ฐ์!
System.out.println("test.txt ํ์ผ์ ์์ฑํ ์ ์์ต๋๋ค.");
}
}
}
|
[
"sysktho@gmail.com"
] |
sysktho@gmail.com
|
92937373f173e13d76ec12e9083f0dd2a69d55eb
|
b1c827fca4c792578056ddef8502bd7c061b1aa6
|
/sample-games/game-hello-world/src/main/java/net/thevpc/gaming/helloworld/HelloWorldScene.java
|
5e4c69378cda4add247247d3dba3c86f883c7c01
|
[] |
no_license
|
thevpc/atom
|
df51b2d8deba535884ce8dccb21091452e6cb9a7
|
536f4efe9aa795bad84396cad7dd5533157ff66d
|
refs/heads/master
| 2022-10-07T22:11:24.331853
| 2022-09-23T15:38:27
| 2022-09-23T15:38:27
| 71,977,120
| 3
| 1
| null | 2020-10-13T04:45:16
| 2016-10-26T07:23:21
|
Java
|
UTF-8
|
Java
| false
| false
| 2,860
|
java
|
package net.thevpc.gaming.helloworld;
import net.thevpc.gaming.atom.annotations.AtomScene;
import net.thevpc.gaming.atom.annotations.AtomSceneEngine;
import net.thevpc.gaming.atom.annotations.Inject;
import net.thevpc.gaming.atom.annotations.OnSceneStarted;
import net.thevpc.gaming.atom.debug.AdjustViewController;
import net.thevpc.gaming.atom.engine.SceneEngine;
import net.thevpc.gaming.atom.engine.SpriteFilter;
import net.thevpc.gaming.atom.model.Orientation;
import net.thevpc.gaming.atom.model.Point;
import net.thevpc.gaming.atom.presentation.*;
import net.thevpc.gaming.atom.presentation.components.SLabel;
import net.thevpc.gaming.atom.presentation.layers.Layers;
import java.awt.*;
/**
* Created by vpc on 9/23/16.
*/
@AtomScene(
id = "hello",
title = "Hello World",
tileWidth = 50,
tileHeight = 50
)
@AtomSceneEngine(
id="hello",
columns = 10,
rows = 10,
fps = 3
)
public class HelloWorldScene {
@Inject
private Scene scene;
@Inject
private SceneEngine sceneEngine;
@OnSceneStarted
private void init() {
scene.addLayer(Layers.fillBoardGradient(Color.GRAY,Color.CYAN, Orientation.NORTH));
scene.addLayer(Layers.debug());
// scene.addLayer(Layers.fillScreen(Color.red));
scene.addController(new SpriteController(SpriteFilter.byName("Ball1")).setArrowKeysLayout());
scene.addController(new SpriteController(SpriteFilter.byName("Ball2")).setESDFLayout());
scene.addController(new AdjustViewController());
scene.addComponent(
new SLabel("Click CTRL-D to switch debug mode, use Arrows to move the ball")
.setLocation(Point.ratio(0.5f,0.5f))
);
// scene.setSpriteView("Ball1", new DefaultSpriteView() {
// @Override
// public void draw(SpriteDrawingContext context) {
// ViewBox sb = context.getSpriteBounds();
// context.getGraphics().setPaint(Color.BLUE);
// context.getGraphics().fillRect(
// sb.getX(),sb.getY(),
// sb.getWidth(),
// sb.getHeight()
// );
// }
// });
// scene.setSpriteView("Ball2", new DefaultSpriteView() {
// @Override
// public void draw(SpriteDrawingContext context) {
// ViewBox sb = context.getSpriteBounds();
// context.getGraphics().setPaint(Color.RED);
// context.getGraphics().fillRect(
// sb.getX(),sb.getY(),
// sb.getWidth(),
// sb.getHeight()
// );
// }
// });
scene.setSpriteView(SpriteFilter.byKind("Ball"), new ImageSpriteView("/ball.png", 8, 4));
}
}
|
[
"taha.bensalah@gmail.com"
] |
taha.bensalah@gmail.com
|
2646c8607f25db80e8a6427c90ef88eb04eedfe3
|
0c359e241cce729ce777db41d3a4feefa48c30c0
|
/src/main/java/com/controllerface/cmdr_j/classes/recipes/techunlocks/Shock_Cannon_Turreted_Small.java
|
335f0394dd5a213b35aedd09f2797e0ae4dc5550
|
[] |
no_license
|
controllerface/CMDR-J
|
760cafe4b89fc86715ee7941d66eaaf7978cf067
|
9fc70e1ae2f2119e3dc93bbc9a26544526beb56a
|
refs/heads/main
| 2022-09-29T02:43:58.308231
| 2022-09-12T02:09:01
| 2022-09-12T02:09:01
| 128,938,494
| 1
| 1
| null | 2021-11-21T01:42:20
| 2018-04-10T13:37:30
|
Java
|
UTF-8
|
Java
| false
| false
| 1,066
|
java
|
package com.controllerface.cmdr_j.classes.recipes.techunlocks;
import com.controllerface.cmdr_j.classes.data.ItemEffects;
import com.controllerface.cmdr_j.classes.data.CostData;
import com.controllerface.cmdr_j.classes.data.ItemEffectData;
import com.controllerface.cmdr_j.classes.recipes.AbstractTechnologyRecipe;
import com.controllerface.cmdr_j.enums.costs.commodities.Commodity;
import com.controllerface.cmdr_j.enums.costs.materials.Material;
import com.controllerface.cmdr_j.enums.equipment.modules.stats.ItemEffect;
public class Shock_Cannon_Turreted_Small extends AbstractTechnologyRecipe
{
public Shock_Cannon_Turreted_Small()
{
super("Small Shock Cannon [Turreted]",
new ItemEffects(
new ItemEffectData(ItemEffect.tech_unlock, 0.0)
),
new CostData(Material.VANADIUM, 8),
new CostData(Material.TUNGSTEN, 12),
new CostData(Material.RHENIUM, 10),
new CostData(Material.TECHNETIUM, 10),
new CostData(Commodity.IONDISTRIBUTOR, 4));
}
}
|
[
"controll.face@gmail.com"
] |
controll.face@gmail.com
|
2d282bebf2b65f27c6309440b71161b014c59b71
|
810873bc64fd3daa082e8636a1b182e46a023638
|
/experimental/drools-testing/src/org/drools/testing/core/model/Fact.java
|
09e458fe694d5b480ef161e41f25ac85c1b3c0fe
|
[
"Apache-2.0"
] |
permissive
|
pymma/drools47jdk8
|
7456d4cd54c20ba87ab7ae4e3ce38be7a7f9a11a
|
b532d45ac47806bef8c3a6cf1ac671c73ed4ea09
|
refs/heads/master
| 2022-07-29T17:25:35.788215
| 2021-11-23T09:39:10
| 2021-11-23T09:39:10
| 426,141,147
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 723
|
java
|
package org.drools.testing.core.model;
import java.util.ArrayList;
import java.util.Collection;
/**
*
* @author Matt
*
* A fact represents any object used in conidtional clauses within
* the set of rules being tested.
*
* (c) Matt Shaw
*/
public class Fact {
private String name;
private String type;
private Collection fields = new ArrayList();
public Fact () {}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public Collection getFields() {
return fields;
}
public void setFields(Collection fields) {
this.fields = fields;
}
}
|
[
"nicolas.heron@pymma-software.cop"
] |
nicolas.heron@pymma-software.cop
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.