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
b3abbcf54bf5d47a5dee11dc6ddb4054103f28b9
af1ab3b6ed945a53742891afb85871f0df4bc0d1
/03.IteratorsAndComparators/HomeworkIteratorAndComparators/src/p05_comparingObjects/Human.java
4e6b9ea7ebe3bb9d3404e09f3db9d4f276413c8f
[]
no_license
vasilgramov/java-oop-advanced
94f5321e89c0d9e446a80e1bff38947c22c5364d
909ef2abfdd225db09f29e5fec578a1edd493006
refs/heads/master
2021-06-13T22:37:19.852587
2017-04-21T16:19:58
2017-04-21T16:19:58
84,982,046
2
0
null
null
null
null
UTF-8
Java
false
false
147
java
package p05_comparingObjects; public interface Human extends Comparable<Human>{ String getName(); int getAge(); String getTown(); }
[ "gramovv@gmail.com" ]
gramovv@gmail.com
3824fbf22c3ec45a2ed6ce2757251f56646efc1b
ca87f2c2e46be07c54f5579b0bec802fa0daba49
/src/main/java/com/demo/api/commons/exception/ErrorExcetpion.java
2ef9068f8b8d57f2a8bfce1617bb4ef251e6cc73
[]
no_license
wanghws/SpringBootMVC
81f338c01f436b59f2b6e8161e1af0c9a84e888d
9e9d6d550f187500114c4b103c446c830c46df53
refs/heads/master
2020-05-20T11:16:48.341745
2019-05-08T07:50:58
2019-05-08T07:50:58
185,546,224
0
0
null
null
null
null
UTF-8
Java
false
false
329
java
package com.demo.api.commons.exception; import lombok.Getter; import lombok.Setter; /** * Created by wanghw on 2019-03-11. */ public class ErrorExcetpion extends RuntimeException { public ErrorExcetpion(String code){ super(code); this.code = code; } @Getter @Setter private String code; }
[ "wanghws@gmail.com" ]
wanghws@gmail.com
a016578b6cf833b9ae623e86007c93a1cd909cdb
c69043826d4239d1f7656cf9934e3b7c189d8476
/src/main/java/io/github/jhipster/sample/repository/EntityWithServiceImplPaginationAndDTORepository.java
298779c44873a09735d455b7133727e6a4de2496
[]
no_license
pascalgrimaud/jh-vuejs-191015
51f2bcb1d68577d80a1722eb39ef9dff18433838
9b740d15d32091f691d94fc744d81ac23a72c23b
refs/heads/master
2022-12-22T20:56:12.136726
2019-10-14T21:21:28
2019-10-14T21:21:39
215,213,636
0
0
null
2022-12-16T04:40:29
2019-10-15T05:25:48
Java
UTF-8
Java
false
false
493
java
package io.github.jhipster.sample.repository; import io.github.jhipster.sample.domain.EntityWithServiceImplPaginationAndDTO; import org.springframework.data.jpa.repository.*; import org.springframework.stereotype.Repository; /** * Spring Data repository for the EntityWithServiceImplPaginationAndDTO entity. */ @SuppressWarnings("unused") @Repository public interface EntityWithServiceImplPaginationAndDTORepository extends JpaRepository<EntityWithServiceImplPaginationAndDTO, Long> { }
[ "pascalgrimaud@gmail.com" ]
pascalgrimaud@gmail.com
3a0eb5d1645aba595e0cd9158185784050d926e0
c46c4bab8f0411876e52eefd4502715924dbaed1
/challenges/src/main/java/com/clozarr/hackerrank/thirtydaysofcode/StacksAndQueues.java
9459ff1d413d0c39de0a676cee3cbb5f2f5b58a3
[]
no_license
clozarr/HackerRankChallenges
e2c5a6388c20d5e34178693e789517edd66c4333
58956c75e9ca20a1432daf64ca7a8036336de5d5
refs/heads/master
2021-05-21T22:39:37.185586
2021-01-08T04:18:42
2021-01-08T04:18:42
252,835,972
0
0
null
2020-10-13T21:20:14
2020-04-03T20:39:48
Java
UTF-8
Java
false
false
680
java
package com.clozarr.hackerrank.thirtydaysofcode; import java.util.LinkedList; import java.util.Queue; import java.util.Stack; /** * <p> * Challenge Day 18: Queues and Stacks * </p> * * @see <a href= "https://www.hackerrank.com/challenges/30-queues-stacks/problem"> * Queues and Stacks</a> * * * @author clozarr **/ class StacksAndQueues { Stack<Character> stack = new Stack<>(); Queue<Character> queue = new LinkedList<Character>(); public void pushCharacter(char ch) { stack.add(ch); } void enqueueCharacter(char ch) { queue.add(ch); } char popCharacter() { return stack.pop(); } char dequeueCharacter() { return queue.remove(); } }
[ "=" ]
=
7412b8e09c76527111db347799477ba21d887663
8c81eeaa4bde7c4f9e402c1647940de5deb146fc
/src/firstReverseTry.java
46a73cd847f6bd7d0b21ba6cf6c2fb8f377f19c1
[]
no_license
Luciwar/Example
f4b51b53eef6189ba18ea7714f5ee38be4287864
15b5d4d48e930d75597555b1c9c128b8501812f4
refs/heads/master
2020-06-04T23:41:07.098593
2018-10-11T15:31:24
2018-10-11T15:31:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
635
java
/* Reversing an array can be a tough task, especially for a novice programmer. Mary just started coding, so she would like to start with something basic at first. Instead of reversing the array entirely, she wants to swap just its first and last elements. Given an array arr, swap its first and last elements and return the resulting array. Example For arr = [1, 2, 3, 4, 5], the output should be firstReverseTry(arr) = [5, 2, 3, 4, 1]. */ int[] firstReverseTry(int[] arr) { if(arr.length==1||arr.length==0) return arr; int temp=arr[0]; arr[0]=arr[arr.length-1]; arr[arr.length-1]=temp; return arr; }
[ "linhhoang13k@gmail.com" ]
linhhoang13k@gmail.com
62d67a5a3cfb869092fc1fc636e430299d8f2566
fed41971c78ff70c701d754cfd023e3ea671ee85
/gd-api-web/src/main/java/com/gudeng/commerce/gd/support/SubsidyCallBack.java
7678ffbe7ce6b5a390086d7fa8314e0ef831821c
[]
no_license
f3226912/gd
204647c822196b52513e5f0f8e475b9d47198d2a
882332a9da91892a38e38443541d93ddd91c7fec
refs/heads/master
2021-01-19T06:47:44.052835
2017-04-07T03:42:12
2017-04-07T03:42:12
87,498,686
0
6
null
null
null
null
UTF-8
Java
false
false
239
java
package com.gudeng.commerce.gd.support; import java.util.List; import com.gudeng.commerce.gd.supplier.dto.ProductDto; public interface SubsidyCallBack { public void appendAuditInfo(List<ProductDto> refusedList) throws Exception; }
[ "253332973@qq.com" ]
253332973@qq.com
b488b1fb0ed066627c5ca20ac567016ba28ce598
dc723ba04d723b077a723bebb02813b8009f6e9e
/system/services/frontend/website/fake-search-service/src/main/java/com/ssrn/frontend/website/fake_search_service/ServiceConfiguration.java
e69b0aba1cd98256b2fff0f8b66c9cecf626ce01
[]
no_license
ngelsevier/preprint
e33247cb589d3de505f219d0242a3738d5455648
0a6a57bc962c29e277f105070977867280381d85
refs/heads/master
2020-03-20T23:42:53.825949
2018-06-19T08:06:36
2018-06-19T08:06:36
137,859,617
0
0
null
null
null
null
UTF-8
Java
false
false
437
java
package com.ssrn.frontend.website.fake_search_service; import ch.qos.logback.classic.Level; import io.dropwizard.logging.DefaultLoggingFactory; public class ServiceConfiguration extends io.dropwizard.Configuration { public ServiceConfiguration() { DefaultLoggingFactory loggingFactory = new DefaultLoggingFactory(); loggingFactory.setLevel(Level.INFO.toString()); setLoggingFactory(loggingFactory); } }
[ "r.ng@elsevier.com" ]
r.ng@elsevier.com
9342ce1a789188f522128638502b203a8ad13ec0
1186c55198844e28204b6044ec358cf571d8ec94
/plugin/src/main/java/com/stratio/cassandra/lucene/schema/mapping/UUIDMapper.java
790ee568c74bd1e80af91c1251dddff566fe6e25
[ "Apache-2.0" ]
permissive
oscarruesga/cassandra-lucene-index
9d71afa7c64124ef2b9265f334b476bcdac69e98
ffd1394b55a2eb1e9d602529199b45c12797e781
refs/heads/branch-2.1.11
2021-01-22T14:19:45.718443
2015-10-30T12:25:48
2015-10-30T12:25:48
45,298,471
1
0
null
2015-10-31T11:02:23
2015-10-31T11:02:23
null
UTF-8
Java
false
false
3,757
java
/* * Licensed to STRATIO (C) under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. The STRATIO (C) licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package com.stratio.cassandra.lucene.schema.mapping; import com.google.common.primitives.Longs; import com.stratio.cassandra.lucene.IndexException; import com.stratio.cassandra.lucene.util.ByteBufferUtils; import org.apache.cassandra.db.marshal.AsciiType; import org.apache.cassandra.db.marshal.TimeUUIDType; import org.apache.cassandra.db.marshal.UTF8Type; import org.apache.cassandra.db.marshal.UUIDType; import java.nio.ByteBuffer; import java.util.UUID; /** * A {@link Mapper} to map a UUID field. * * @author Andres de la Pena {@literal <adelapena@stratio.com>} */ public class UUIDMapper extends KeywordMapper { /** * Builds a new {@link UUIDMapper}. * * @param field The name of the field. * @param column The name of the column to be mapped. * @param indexed If the field supports searching. * @param sorted If the field supports sorting. */ public UUIDMapper(String field, String column, Boolean indexed, Boolean sorted) { super(field, column, indexed, sorted, AsciiType.instance, UTF8Type.instance, UUIDType.instance, TimeUUIDType.instance); } /** {@inheritDoc} */ @Override protected String doBase(String name, Object value) { if (value instanceof UUID) { UUID uuid = (UUID) value; return serialize(uuid); } else if (value instanceof String) { try { String string = (String) value; UUID uuid = UUID.fromString(string); return serialize(uuid); } catch (IllegalArgumentException e) { throw new IndexException(e, "Field '%s' with value '%s' can not be parsed as UUID", name, value); } } throw new IndexException("Field '%s' requires an UUID, but found '%s'", name, value); } /** * Returns the {@link String} representation of the specified {@link UUID}. The returned value has the same * collation as {@link UUIDType}. * * @param uuid The {@link UUID} to be serialized. * @return The {@link String} representation of the specified {@link UUID}. */ public static String serialize(UUID uuid) { StringBuilder sb = new StringBuilder(); // Get UUID type version ByteBuffer bb = UUIDType.instance.decompose(uuid); int version = (bb.get(bb.position() + 6) >> 4) & 0x0f; // Add version at the beginning sb.append(ByteBufferUtils.toHex((byte) version)); // If it's a time based UUID, add the UNIX timestamp if (version == 1) { long timestamp = uuid.timestamp(); String timestampHex = ByteBufferUtils.toHex(Longs.toByteArray(timestamp)); sb.append(timestampHex); } // Add the UUID itself sb.append(ByteBufferUtils.toHex(bb)); return sb.toString(); } }
[ "a.penya.garcia@gmail.com" ]
a.penya.garcia@gmail.com
17f17d9949f5cad560b94bb810cecfee8123c303
d60bd7144cb4428a6f7039387c3aaf7b295ecc77
/ScootAppSource/com/google/android/gms/common/n.java
1dfc25393c2cc30a9c734857985bdaadc8f70839
[]
no_license
vaquarkhan/Scoot-mobile-app
4f58f628e7e2de0480f7c41998cdc38100dfef12
befcfb58c1dccb047548f544dea2b2ee187da728
refs/heads/master
2020-06-10T19:14:25.985858
2016-12-08T04:39:10
2016-12-08T04:39:10
75,902,491
1
0
null
null
null
null
UTF-8
Java
false
false
812
java
package com.google.android.gms.common; import java.lang.ref.WeakReference; abstract class n extends l { private static final WeakReference<byte[]> b = new WeakReference(null); private WeakReference<byte[]> a = b; n(byte[] paramArrayOfByte) { super(paramArrayOfByte); } byte[] c() { try { byte[] arrayOfByte2 = (byte[])this.a.get(); byte[] arrayOfByte1 = arrayOfByte2; if (arrayOfByte2 == null) { arrayOfByte1 = d(); this.a = new WeakReference(arrayOfByte1); } return arrayOfByte1; } finally {} } protected abstract byte[] d(); } /* Location: D:\Android\dex2jar-2.0\classes-dex2jar.jar!\com\google\android\gms\common\n.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "vaquar.khan@gmail.com" ]
vaquar.khan@gmail.com
efea6870e449cc7e93d4fe67078568e71d1876a9
421f0a75a6b62c5af62f89595be61f406328113b
/generated_tests/model_seeding/92_jcvi-javacommon-org.jcvi.jillion.trace.sff.Sff454NameUtil-1.0-1/org/jcvi/jillion/trace/sff/Sff454NameUtil_ESTest.java
a10d97850a6e4edf1fc28968f9d7f1c90f9d0f32
[]
no_license
tigerqiu712/evosuite-model-seeding-empirical-evaluation
c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6
11a920b8213d9855082d3946233731c843baf7bc
refs/heads/master
2020-12-23T21:04:12.152289
2019-10-30T08:02:29
2019-10-30T08:02:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
660
java
/* * This file was automatically generated by EvoSuite * Fri Oct 25 11:36:11 GMT 2019 */ package org.jcvi.jillion.trace.sff; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true) public class Sff454NameUtil_ESTest extends Sff454NameUtil_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pderakhshanfar@bsr01.win.tue.nl" ]
pderakhshanfar@bsr01.win.tue.nl
2a672949a2851d4bec7d6f660031bf3d93bb440d
608cf243607bfa7a2f4c91298463f2f199ae0ec1
/android/versioned-abis/expoview-abi40_0_0/src/main/java/abi40_0_0/expo/modules/location/exceptions/LocationUnavailableException.java
4b77f221558efeeef96603e3fc2ea4f7be4bdbd8
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
kodeco835/symmetrical-happiness
ca79bd6c7cdd3f7258dec06ac306aae89692f62a
4f91cb07abef56118c35f893d9f5cc637b9310ef
refs/heads/master
2023-04-30T04:02:09.478971
2021-03-23T03:19:05
2021-03-23T03:19:05
350,565,410
0
1
MIT
2023-04-12T19:49:48
2021-03-23T03:18:02
Objective-C
UTF-8
Java
false
false
495
java
package abi40_0_0.expo.modules.location.exceptions; import abi40_0_0.org.unimodules.core.interfaces.CodedThrowable; import abi40_0_0.org.unimodules.core.errors.CodedException; public class LocationUnavailableException extends CodedException implements CodedThrowable { public LocationUnavailableException() { super("Location provider is unavailable. Make sure that location services are enabled."); } @Override public String getCode() { return "E_LOCATION_UNAVAILABLE"; } }
[ "81201147+kodeco835@users.noreply.github.com" ]
81201147+kodeco835@users.noreply.github.com
13c326e187ecc918bc13de237499f626373b4aa8
4807c6e453fd2b19a9c02c2cbb96ec2eb301eab6
/src/by/belhard/j20/lessons/lesson12/projectExample/exceptions/NoSuchPupilException.java
ece4db3ceb32d9ebc5af80e6b4fcae338403d81f
[]
no_license
anikalaeu/BH-J20
ef2461cd856a3df306f114393e5435cba095c172
012370a85c3056570c8279f944626134264608bc
refs/heads/master
2021-03-20T22:15:09.423997
2020-03-13T15:34:11
2020-03-13T15:34:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
204
java
package by.belhard.j20.lessons.lesson12.projectExample.exceptions; public class NoSuchPupilException extends RuntimeException { public NoSuchPupilException(String message) { super(message); } }
[ "avangard.npaper@gmail.com" ]
avangard.npaper@gmail.com
e523d0c58ef95caabe40205f286da597b8fc06f8
3027ab86acb71fe19b340ec90eb9be748ead09fb
/src/main/java/com/augurit/awater/bpm/sggc/web/form/GxSggcLogForm.java
0004c7a387a4ee176a9dcf7d682a3c26a509be8e
[]
no_license
vae5340/psxj
fcb9275dc6ba539acfe8ab5f0bd6abc1990d4ca0
da2a77fae82c958143af11375846e2a664a8b5bf
refs/heads/master
2020-04-04T01:04:52.546318
2018-12-18T01:14:26
2018-12-18T01:14:26
155,666,904
0
1
null
null
null
null
UTF-8
Java
false
false
2,909
java
package com.augurit.awater.bpm.sggc.web.form; import com.augurit.agcloud.bsc.domain.BscAttForm; import com.augurit.awater.bpm.xcyh.report.web.form.DetailFilesForm; import java.util.List; public class GxSggcLogForm { // 属性 private Long id; private String lx; private String username; private Long time; private String content; private String sgjd; private String sjid; private String loginname; private String opUser; private String opUserPhone; private String linkName; private String opinion; private String nextOpUser; private String nextOpUserPhone; private String reassignComments; public String getLoginname() { return loginname; } public void setLoginname(String loginname) { this.loginname = loginname; } public String getReassignComments() { return reassignComments; } public void setReassignComments(String reassignComments) { this.reassignComments = reassignComments; } public String getNextOpUser() { return nextOpUser; } public void setNextOpUser(String nextOpUser) { this.nextOpUser = nextOpUser; } public String getNextOpUserPhone() { return nextOpUserPhone; } public void setNextOpUserPhone(String nextOpUserPhone) { this.nextOpUserPhone = nextOpUserPhone; } public String getOpUser() { return opUser; } public void setOpUser(String opUser) { this.opUser = opUser; } public String getOpUserPhone() { return opUserPhone; } public void setOpUserPhone(String opUserPhone) { this.opUserPhone = opUserPhone; } public String getLinkName() { return linkName; } public void setLinkName(String linkName) { this.linkName = linkName; } public String getOpinion() { return opinion; } public void setOpinion(String opinion) { this.opinion = opinion; } private List<BscAttForm> files; private List<DetailFilesForm> attFiles; public List<DetailFilesForm> getAttFiles() { return attFiles; } public void setAttFiles(List<DetailFilesForm> attFiles) { this.attFiles = attFiles; } public List<BscAttForm> getFiles() { return files; } public void setFiles(List<BscAttForm> files) { this.files = files; } public Long getId() { return this.id; } public void setId(Long id) { this.id = id; } public String getLx() { return this.lx; } public void setLx(String lx) { this.lx = lx; } public String getUsername() { return this.username; } public void setUsername(String username) { this.username = username; } public Long getTime() { return this.time; } public void setTime(Long time) { this.time = time; } public String getContent() { return this.content; } public void setContent(String content) { this.content = content; } public String getSgjd() { return this.sgjd; } public void setSgjd(String sgjd) { this.sgjd = sgjd; } public String getSjid() { return this.sjid; } public void setSjid(String sjid) { this.sjid = sjid; } }
[ "1763352208@qq.com" ]
1763352208@qq.com
f82533c03e5520231b770431929735f848a7b726
003901a6b3d30751d1ac76798007e4c6830ffb74
/commons/src/main/java/com/epam/eco/kafkamanager/ConfigValue.java
8930c290524a8903447ad1b8011f8786f9bb8fb9
[ "Apache-2.0" ]
permissive
octodemo/eco-kafka-manager
45dce4ffe98366ba4784c9538709a1d98bc0c395
a4c45edb0b2a7baff2f6ce9ac0a1ec517a1f19f6
refs/heads/master
2023-04-19T06:44:18.436606
2020-05-14T19:42:10
2020-05-14T19:42:10
264,008,635
0
0
Apache-2.0
2021-04-26T20:46:19
2020-05-14T19:39:35
Java
UTF-8
Java
false
false
3,420
java
/* * Copyright 2019 EPAM Systems * * 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.epam.eco.kafkamanager; import java.util.Objects; import org.apache.commons.lang3.Validate; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; /** * @author Andrei_Tytsik */ public class ConfigValue { private final String name; private final String value; private final boolean isDefault; private final boolean isSensitive; private final boolean isReadOnly; public ConfigValue(String name, String value) { this(name, value, false, false, false); } public ConfigValue(String name, Object value) { this(name, value, false, false, false); } public ConfigValue( String name, Object value, boolean isDefault, boolean isSensitive, boolean isReadOnly) { this(name, Objects.toString(value, null), isDefault, isSensitive, isReadOnly); } @JsonCreator public ConfigValue( @JsonProperty("name") String name, @JsonProperty("value") String value, @JsonProperty("default") boolean isDefault, @JsonProperty("sensitive") boolean isSensitive, @JsonProperty("readOnly") boolean isReadOnly) { Validate.notBlank(name, "Name is blank"); this.name = name; this.value = value; this.isDefault = isDefault; this.isSensitive = isSensitive; this.isReadOnly = isReadOnly; } public String getName() { return name; } public String getValue() { return value; } public boolean isDefault() { return isDefault; } public boolean isSensitive() { return isSensitive; } public boolean isReadOnly() { return isReadOnly; } @Override public int hashCode() { return Objects.hash(name, value, isDefault, isSensitive, isReadOnly); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || obj.getClass() != this.getClass()) { return false; } ConfigValue that = (ConfigValue)obj; return Objects.equals(this.name, that.name) && Objects.equals(this.value, that.value) && Objects.equals(this.isDefault, that.isDefault) && Objects.equals(this.isSensitive, that.isSensitive) && Objects.equals(this.isReadOnly, that.isReadOnly); } @Override public String toString() { return "{name: " + name + ", value: " + value + ", isDefault: " + isDefault + ", isSensitive: " + isSensitive + ", isReadOnly: " + isReadOnly + "}"; } }
[ "Andrei_Tytsik@epam.com" ]
Andrei_Tytsik@epam.com
b25030a887ceffdadf6789934c7848a45f83bdcd
b86a2acf7782f14016a503e14c6b6d9b88025739
/src/main/java/com/cxy/redisclient/dto/ContainerKeyInfo.java
8dfc2322fe9a3a2bcccff624c8444e4c69ba94fa
[]
no_license
maximus0/redis-client
e933dbc70d7bbbcc5de17d8bc6561221fb36ed49
8ee744d22682c88a7c59ee05a28f95527ed060fe
refs/heads/master
2020-04-12T23:51:22.733804
2014-07-30T05:58:48
2014-07-30T06:08:09
22,410,950
0
0
null
null
null
null
UTF-8
Java
false
false
1,173
java
package com.cxy.redisclient.dto; import com.cxy.redisclient.domain.ContainerKey; public class ContainerKeyInfo { private int id; private String serverName; private int db; private ContainerKey container; public ContainerKeyInfo() { super(); this.id = -1; this.db = -1; } public int getId() { return id; } public void setId(int id) { this.id = id; } public int getDb() { return db; } public void setDb(int db) { this.db = db; } public ContainerKey getContainer() { return container; } public String getContainerStr() { return container == null?"":container.getContainerKey(); } public String getContainerOnly() { return container == null?"":container.getContainerOnly(); } public void setContainer(ContainerKey container) { this.container = container; } public void setContainer(ContainerKey container, String key) { String con = container == null?"":container.getContainerKey(); this.container = new ContainerKey(con + key); } public String getServerName() { return serverName; } public void setServerName(String serverName) { this.serverName = serverName; } }
[ "chenweichao@news.cn" ]
chenweichao@news.cn
144745e808945b4578bfbe02390df394bde825e2
4dd29489cf8df3277a02b123f6f2b613c5692335
/src/main/java/br/com/guilhermealvessilve/data/AuthorBook.java
0290c21cf8a0014c5d75a4f6b9331243ce53dfdd
[]
no_license
guilherme-alves-silve/quarkus-data
9fc376954a9ebd51a336fd4d821bf70af5c2029e
564109de647a7a864a8b54a38d11357c78cde006
refs/heads/master
2022-10-08T10:25:49.695177
2020-06-11T19:20:48
2020-06-11T19:20:48
271,629,218
0
0
null
null
null
null
UTF-8
Java
false
false
1,407
java
package br.com.guilhermealvessilve.data; import io.quarkus.hibernate.orm.panache.PanacheEntity; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; import javax.json.bind.annotation.JsonbTransient; import javax.persistence.Entity; import javax.persistence.ManyToOne; import java.util.Objects; @Data @Builder @Indexed @NoArgsConstructor @AllArgsConstructor @Entity(name = "author_book") public class AuthorBook extends PanacheEntity { @FullTextField(analyzer = "english") private String title; @ManyToOne @JsonbTransient private Author author; private int pages; @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AuthorBook that = (AuthorBook) o; return pages == that.pages && title.equals(that.title); } @Override public int hashCode() { return Objects.hash(title, pages); } @Override public String toString() { return "AuthorBook{" + "title='" + title + '\'' + ", pages=" + pages + ", id=" + id + '}'; } }
[ "guilherme_alves_silve@hotmail.com" ]
guilherme_alves_silve@hotmail.com
31f2c38719b2c0bfa0d2198624ea61404fa96672
d883f3b07e5a19ff8c6eb9c3a4b03d9f910f27b2
/Tools/OracleJavaGen/src/main/resources/oracle_service_project/OracleDataService/src/main/java/com/sandata/lab/rest/oracle/model/PatientSupervisoryVisitFrequency.java
80a955b74e5589da8153433f1efe2866e8c150f3
[]
no_license
dev0psunleashed/Sandata_SampleDemo
ec2c1f79988e129a21c6ddf376ac572485843b04
a1818601c59b04e505e45e33a36e98a27a69bc39
refs/heads/master
2021-01-25T12:31:30.026326
2017-02-20T11:49:37
2017-02-20T11:49:37
82,551,409
0
0
null
null
null
null
UTF-8
Java
false
false
2,495
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2016.11.27 at 10:53:27 PM EST // package com.sandata.lab.rest.oracle.model; import com.sandata.lab.data.model.*; import com.google.gson.annotations.SerializedName; import com.sandata.lab.data.model.base.BaseObject; import com.sandata.lab.data.model.dl.annotation.Mapping; import com.sandata.lab.data.model.dl.annotation.OracleMetadata; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for Patient_Supervisory_Visit_Frequency. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name="Patient_Supervisory_Visit_Frequency"> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;maxLength value="50"/> * &lt;enumeration value="Every 14 Days"/> * &lt;enumeration value="Every 30 Days"/> * &lt;enumeration value="Every 60 Days"/> * &lt;enumeration value="Every 90 Days"/> * &lt;enumeration value="Every 120 Days"/> * &lt;enumeration value="Every 180 Days"/> * &lt;/restriction> * &lt;/simpleType> * </pre> * */ @XmlType(name = "Patient_Supervisory_Visit_Frequency") @XmlEnum public enum PatientSupervisoryVisitFrequency { @XmlEnumValue("Every 14 Days") EVERY_14_DAYS("Every 14 Days"), @XmlEnumValue("Every 30 Days") EVERY_30_DAYS("Every 30 Days"), @XmlEnumValue("Every 60 Days") EVERY_60_DAYS("Every 60 Days"), @XmlEnumValue("Every 90 Days") EVERY_90_DAYS("Every 90 Days"), @XmlEnumValue("Every 120 Days") EVERY_120_DAYS("Every 120 Days"), @XmlEnumValue("Every 180 Days") EVERY_180_DAYS("Every 180 Days"); private final String value; PatientSupervisoryVisitFrequency(String v) { value = v; } public String value() { return value; } public static PatientSupervisoryVisitFrequency fromValue(String v) { for (PatientSupervisoryVisitFrequency c: PatientSupervisoryVisitFrequency.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } }
[ "pradeep.ganesh@softcrylic.co.in" ]
pradeep.ganesh@softcrylic.co.in
a75c6c1b254c6a1a8d95854687f90bbd8c6a4193
51843342781f18731b4e157364f8dacd087bb225
/bus-base/src/main/java/org/aoju/bus/base/spring/BaseAdvice.java
71874a15eb3b36ce43fc0605d9ee3b4d385a8e1b
[ "MIT" ]
permissive
Wuxiaonai/bus
ad14c32324387af25bf3d7e7e6aae64f130f0a83
e1feaad25833b171769fa9aa0b53a300321a68f9
refs/heads/master
2020-07-05T23:54:53.751431
2019-08-17T01:32:53
2019-08-17T01:32:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,221
java
/* * The MIT License * * Copyright (c) 2017, aoju.org All rights reserved. * * 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 org.aoju.bus.base.spring; import org.aoju.bus.base.consts.Consts; import org.aoju.bus.base.consts.ErrorCode; import org.aoju.bus.core.lang.exception.*; import org.aoju.bus.core.utils.ObjectUtils; import org.aoju.bus.logger.Logger; import org.springframework.http.HttpStatus; import org.springframework.ui.Model; import org.springframework.web.HttpMediaTypeNotSupportedException; import org.springframework.web.HttpRequestMethodNotSupportedException; import org.springframework.web.bind.WebDataBinder; import org.springframework.web.bind.annotation.*; import org.springframework.web.servlet.NoHandlerFoundException; /** * <p> * 异常信息拦截处理 * </p> * * @author Kimi Liu * @version 3.0.9 * @since JDK 1.8 */ @ControllerAdvice @RestControllerAdvice public class BaseAdvice extends Controller { /** * 应用到所有@RequestMapping注解方法,在其执行之前初始化数据绑定器 * * @param binder 绑定器 */ @InitBinder public void initBinder(WebDataBinder binder) { } /** * 把值绑定到Model中, * 使全局@RequestMapping可以获取到该值 * * @param model 对象 */ @ModelAttribute public void addAttributes(Model model) { } /** * 全局异常拦截 * 处理全局异常 * * @param e 异常信息 * @return 异常提示 */ @ResponseBody @ExceptionHandler(value = Exception.class) public String defaultException(Exception e) { Logger.error(getStackTraceMessage(e)); return write(ErrorCode.EM_FAILURE); } /** * 通用异常信息 * * @param e 异常信息 * @return 异常提示 */ @ResponseBody @ExceptionHandler(value = CommonException.class) public String commonException(CommonException e) { Logger.error(getStackTraceMessage(e)); return write(ErrorCode.EM_100506); } /** * 工具异常拦截 * * @param e 异常信息 * @return 异常提示 */ @ResponseBody @ExceptionHandler(value = InstrumentException.class) public String instrumentException(InstrumentException e) { Logger.error(getStackTraceMessage(e)); return write(ErrorCode.EM_100510); } /** * 拦截业务异常 * 事务回滚处理 * * @param e 异常信息 * @return 异常提示 */ @ResponseBody @ExceptionHandler(value = BusinessException.class) public String businessException(BusinessException e) { Logger.error(getStackTraceMessage(e)); return write(ErrorCode.EM_100513); } /** * 定时任务失败 * * @param e 异常信息 * @return 异常提示 */ @ResponseBody @ExceptionHandler(value = CrontabException.class) public String crontabException(CrontabException e) { Logger.error(getStackTraceMessage(e)); return write(ErrorCode.EM_100514); } /** * 参数验证失败 * * @param e 异常信息 * @return 异常提示 */ @ResponseBody @ExceptionHandler(value = ValidateException.class) public String ValidateException(ValidateException e) { Logger.error(getStackTraceMessage(e)); return write(e.getErrcode(), e.getErrmsg()); } /** * 请求方式拦截 * * @param e 异常信息 * @return 异常提示 */ @ResponseBody @ExceptionHandler(value = HttpRequestMethodNotSupportedException.class) public String httpRequestMethodNotSupportedException(HttpRequestMethodNotSupportedException e) { Logger.error(getStackTraceMessage(e)); return write(ErrorCode.EM_100507); } /** * 媒体类型拦截 * * @param e 异常信息 * @return 异常提示 */ @ResponseBody @ExceptionHandler(value = HttpMediaTypeNotSupportedException.class) public String httpMediaTypeNotSupportedException(HttpMediaTypeNotSupportedException e) { Logger.error(getStackTraceMessage(e)); return write(ErrorCode.EM_100508); } /** * 资源未找到 * * @param e 异常信息 * @return 异常提示 */ @ResponseBody @ResponseStatus(HttpStatus.NOT_FOUND) @ExceptionHandler(value = NoHandlerFoundException.class) public String noHandlerFoundException(NoHandlerFoundException e) { Logger.error(getStackTraceMessage(e)); return write(ErrorCode.EM_100509); } /** * 从当前堆栈中获取 * * @param exception 当前堆栈异常对象 * @return String 消息格式[className.methodName:lineNumber : message] */ private String getStackTraceMessage(Exception exception) { if (ObjectUtils.isNull(exception)) { return " exception is null "; } StringBuilder stackMessage = new StringBuilder(128); stackMessage.append(exception.getMessage()).append("\n"); StackTraceElement[] stackTraceElements = exception.getStackTrace(); if (null != stackTraceElements && stackTraceElements.length > 0) { int count = 0; for (StackTraceElement currentStackTrace : stackTraceElements) { if (isStack(currentStackTrace) && count < Consts.CODE_STACK_DEPTH) { String message = String.format(" %s.%s : %s", currentStackTrace.getClassName(), currentStackTrace.getMethodName(), currentStackTrace.getLineNumber()); stackMessage.append(message).append("\n"); } count++; } } return stackMessage.toString(); } /** * @param stackTraceElement 当前堆栈元素 * @return true/false */ private boolean isStack(StackTraceElement stackTraceElement) { return ObjectUtils.isNotNull(stackTraceElement) ? stackTraceElement.getClassName().startsWith(Consts.CLASS_NAME_PREFIX) : Boolean.FALSE; } }
[ "839536@QQ.COM" ]
839536@QQ.COM
b34a67bcc29ec23b3074ac2b3fc798d6755308d6
e45dabef127bf9d7c539a014b36c19c1f9f7e077
/src/com/yayo/warriors/module/props/type/BlinkType.java
09d2d457d61e12d8842f3d76d4703935d332bae0
[]
no_license
zyb2013/Warriors
aaa26c89dde6b5777a8fcd3674d1ee61346ffda7
6ac80f1868d749295c298a36ad4b6425034d358f
refs/heads/master
2021-01-01T19:46:57.730694
2014-01-17T01:41:45
2014-01-17T01:41:45
15,986,861
5
10
null
null
null
null
UTF-8
Java
false
false
254
java
package com.yayo.warriors.module.props.type; /** * 装备闪光效果 * @author liuyuhua */ public enum BlinkType { /** 0 - 没有任何效果*/ NONE, /** 1 - 全部装备7星 闪光*/ SEVEN, /** 2 - 全部装备11星 闪光*/ ELEVEN; }
[ "zhuyuanbiao2013@gmail.com" ]
zhuyuanbiao2013@gmail.com
510f93bcf8deeedb5fb7c82063a76544f5209249
befde1e4446dec36af350e49bacac9cdb84e9d96
/ymir-core/src/main/java/org/seasar/ymir/scope/impl/ComponentScope.java
8b93527fed060247932e63b2089861b2a4db0adf
[]
no_license
seasarorg/test-ymir-component-1
c6c9ae715b090edae3f994e602047d4086363661
cb53d0e4c193b9a2211df16bfabdaf23665f24b7
refs/heads/master
2016-09-09T19:01:46.293634
2013-10-01T17:36:25
2013-10-01T17:36:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,519
java
package org.seasar.ymir.scope.impl; import java.util.ArrayList; import java.util.Iterator; import org.seasar.framework.container.S2Container; import org.seasar.ymir.YmirContext; import org.seasar.ymir.scope.Scope; /** * コンポーネントコンテナのスコープを表すクラスです。 * <p>このスコープを使うことで、コンポーネントコンテナからコンポーネントを取り出すことができます。 * </p> * <p><b>同期化:</b> * このクラスはスレッドセーフです。 * </p> * * @author YOKOTA Takehiko */ public class ComponentScope implements Scope { public Object getAttribute(String name, Class<?> type) { S2Container container = getS2Container(); if (name != null && container.hasComponentDef(name)) { if (type == null || type.isAssignableFrom(container.getComponentDef(name) .getComponentClass())) { return container.getComponent(name); } } if (type != null && container.hasComponentDef(type)) { return container.getComponent(type); } return null; } public Iterator<String> getAttributeNames() { return new ArrayList<String>().iterator(); } public void setAttribute(String name, Object value) { } S2Container getS2Container() { return YmirContext.getYmir().getApplication().getS2Container(); } }
[ "skirnir@ce2cb714-bd0d-0410-8c66-e472ade7ad34" ]
skirnir@ce2cb714-bd0d-0410-8c66-e472ade7ad34
7da04b1c20f03dc2adc26bb881830f053ecc0321
88d421409ad168b4b6dfeb5b2e57f8186fe2dce4
/src/main/java/com/isa/berkeley_starter/dao/EntityDao.java
fe95cac2abc49c39be98cae131a76ccaa3d84388
[]
no_license
isaolmez/berkeley_starter
d557e9d2b76d4d619566322306f11eee12a9a7f2
c7cf88a786ec36a9bc7089d0f0c6641a42f5f680
refs/heads/master
2021-01-09T20:12:18.260402
2016-08-05T11:13:45
2016-08-05T11:13:45
65,012,649
0
0
null
null
null
null
UTF-8
Java
false
false
164
java
package com.isa.berkeley_starter.dao; public interface EntityDao<T, V> { public V get(T key); public void set(T key, V value); public void delete(T key); }
[ "isaolmez@gmail.com" ]
isaolmez@gmail.com
8a8f209fc904b646ce12cb19b9097bf164459a3d
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
/genny_JavaWithoutLambdasApi21_ReducedClassCount/applicationModule/src/main/java/applicationModulepackageJava9/Foo651.java
58d6e459b991746115bfe2398614e1317e072073
[]
no_license
NikitaKozlov/generated-project-for-desugaring
0bc1443ab3ddc84cd289331c726761585766aea7
81506b3711004185070ca4bb9a93482b70011d36
refs/heads/master
2020-03-20T00:35:06.996525
2018-06-12T09:30:37
2018-06-12T09:30:37
137,049,317
0
0
null
null
null
null
UTF-8
Java
false
false
506
java
package applicationModulepackageJava9; public class Foo651 { public void foo0() { new applicationModulepackageJava9.Foo650().foo9(); } public void foo1() { foo0(); } public void foo2() { foo1(); } public void foo3() { foo2(); } public void foo4() { foo3(); } public void foo5() { foo4(); } public void foo6() { foo5(); } public void foo7() { foo6(); } public void foo8() { foo7(); } public void foo9() { foo8(); } }
[ "nikita.e.kozlov@gmail.com" ]
nikita.e.kozlov@gmail.com
76eba805f3278158575e323c99d0174282947c7a
62ba58dc68ed8b764ade469cfb45ce62ca5db8a7
/ThreeConsecutiveOdds.java
b6f31b7e95c86c00601d410a420c3140f630e608
[]
no_license
SkyLoveAngle/LeetCodeTest
77c108527914f785c7e6d321ae1231a05b95c90b
4870bb93d6976cf002b506cd65f4d453b932db11
refs/heads/main
2023-06-02T12:24:24.696717
2021-06-26T01:28:39
2021-06-26T01:28:39
323,542,297
0
0
null
null
null
null
UTF-8
Java
false
false
1,252
java
package leetcode.editor.cn; //给你一个整数数组 arr,请你判断数组中是否存在连续三个元素都是奇数的情况:如果存在,请返回 true ;否则,返回 false 。 // 示例 1: // 输入:arr = [2,6,4,1] //输出:false //解释:不存在连续三个元素都是奇数的情况。 // // 示例 2: // 输入:arr = [1,2,34,3,4,5,7,23,12] //输出:true //解释:存在连续三个元素都是奇数的情况,即 [5,7,23] 。 // // 提示: // 1 <= arr.length <= 1000 // 1 <= arr[i] <= 1000 // Related Topics 数组 // 👍 7 👎 0 public class ThreeConsecutiveOdds{ public static void main(String[] args) { Solution solution = new ThreeConsecutiveOdds().new Solution(); } //leetcode submit region begin(Prohibit modification and deletion) class Solution { public boolean threeConsecutiveOdds(int[] arr) { // 遍历数组, 找到所有可能存在的序列, 并判断就可以了. for (int i = 0; i < arr.length - 2; i++) { if (arr[i] % 2 != 0 && arr[i + 1] % 2 != 0 && arr[i + 2] % 2 != 0) { return true; } } return false; } } //leetcode submit region end(Prohibit modification and deletion) }
[ "1920909528@qq.com" ]
1920909528@qq.com
0cc6ad7f35dc04c773b368b5be6ccaf33af90235
775c85b59e6503ce58bac41a9fb15f2af410164e
/libgdx/src/main/java/com/badlogic/gdx/backends/iosbugvm/IOSDevice.java
09b22f245324aab2c02b70b8e4078aa18791fda2
[ "Apache-2.0" ]
permissive
ocadaruma/bugvm
805c47c1298b5f87eb16726dd23712075ae3f004
cb89c5b7fb2da992e8b2667456eab5054078d30e
refs/heads/master
2020-12-26T00:06:12.548895
2016-04-19T05:55:05
2016-04-19T05:55:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,260
java
package com.badlogic.gdx.backends.iosbugvm; public enum IOSDevice { IPHONE_2G("iPhone1,1", 163), IPHONE_3G("iPhone1,2", 163), IPHONE_3GS("iPhone2,1", 163), IPHONE_4("iPhone3,1", 326), IPHONE_4V("iPhone3,2", 326), IPHONE_4_CDMA("iPhone3,3", 326), IPHONE_4S("iPhone4,1", 326), IPHONE_5("iPhone5,1", 326), IPHONE_5_CDMA_GSM("iPhone5,2", 326), IPHONE_5C("iPhone5,3", 326), IPHONE_5C_CDMA_GSM("iPhone5,4", 326), IPHONE_5S("iPhone6,1", 326), IPHONE_5S_CDMA_GSM("iPhone6,2", 326), IPHONE_6_PLUS("iPhone7,1", 401), IPHONE_6("iPhone7,2", 326), IPHONE_6S("iPhone8,1", 326), IPHONE_6S_PLUS("iPhone8,2", 401), IPOD_TOUCH_1G("iPod1,1", 163), IPOD_TOUCH_2G("iPod2,1", 163), IPOD_TOUCH_3G("iPod3,1", 163), IPOD_TOUCH_4G("iPod4,1", 326), IPOD_TOUCH_5G("iPod5,1", 326), IPOD_TOUCH_6G("iPod7,1", 326), IPAD("iPad1,1", 132), IPAD_3G("iPad1,2", 132), IPAD_2_WIFI("iPad2,1", 132), IPAD_2("iPad2,2", 132), IPAD_2_CDMA("iPad2,3", 132), IPAD_2V("iPad2,4", 132), IPAD_MINI_WIFI("iPad2,5", 164), IPAD_MINI("iPad2,6", 164), IPAD_MINI_WIFI_CDMA("iPad2,7", 164), IPAD_3_WIFI("iPad3,1", 264), IPAD_3_WIFI_CDMA("iPad3,2", 264), IPAD_3("iPad3,3", 264), IPAD_4_WIFI("iPad3,4", 264), IPAD_4("iPad3,5", 264), IPAD_4_GSM_CDMA("iPad3,6", 264), IPAD_AIR_WIFI("iPad4,1", 264), IPAD_AIR_WIFI_GSM("iPad4,2", 264), IPAD_AIR_WIFI_CDMA("iPad4,3", 264), IPAD_MINI_RETINA_WIFI("iPad4,4", 326), IPAD_MINI_RETINA_WIFI_CDMA("iPad4,5", 326), IPAD_MINI_RETINA_WIFI_CELLULAR_CN("iPad4,6", 326), IPAD_MINI_3_WIFI("iPad4,7", 326), IPAD_MINI_3_WIFI_CELLULAR("iPad4,8", 326), IPAD_MINI_3_WIFI_CELLULAR_CN("iPad4,9", 326), IPAD_MINI_4_WIFI("iPad5,1", 326), IPAD_MINI_4_WIFI_CELLULAR("iPad5,2", 326), IPAD_MINI_AIR_2_WIFI("iPad5,3", 264), IPAD_MINI_AIR_2_WIFI_CELLULAR("iPad5,4", 264), IPAD_PRO_WIFI("iPad6,7", 264), IPAD_PRO("iPad6,8", 264), SIMULATOR_32("i386", 264), SIMULATOR_64("x86_64", 264); final String machineString; final int ppi; IOSDevice(String machineString, int ppi) { this.machineString = machineString; this.ppi = ppi; } public static IOSDevice getDevice (String machineString) { for (IOSDevice device : values()) { if (device.machineString.equalsIgnoreCase(machineString)) return device; } return null; } }
[ "github@ibinti.com" ]
github@ibinti.com
538952dd377bff31fbc251b545f2178c9231523c
efde2d069224fa24c31e9024425218019b586731
/src/main/java/org/apache/sysds/hops/NaryOp.java
d7b66ddf91d2395fee939ebe9444bfbfe21c01cc
[ "Apache-2.0" ]
permissive
muehlburger/systemml
062bf8cbee23f02a010338308b2c13ba1402ff47
c6d7a52e2e4259fa62ba8e0b15cdfe1397baac0f
refs/heads/master
2022-11-10T02:17:59.890549
2020-06-23T20:46:05
2020-06-23T21:06:06
255,599,611
0
0
Apache-2.0
2020-04-14T12:12:54
2020-04-14T12:12:53
null
UTF-8
Java
false
false
7,781
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.sysds.hops; import org.apache.sysds.common.Types.DataType; import org.apache.sysds.common.Types.OpOpN; import org.apache.sysds.common.Types.ValueType; import org.apache.sysds.hops.rewrite.HopRewriteUtils; import org.apache.sysds.lops.Lop; import org.apache.sysds.lops.LopProperties.ExecType; import org.apache.sysds.lops.Nary; import org.apache.sysds.runtime.meta.DataCharacteristics; import org.apache.sysds.runtime.meta.MatrixCharacteristics; /** * The NaryOp Hop allows for a variable number of operands. Functionality * such as 'printf' (overloaded into the existing print function) is an example * of an operation that potentially takes a variable number of operands. * */ public class NaryOp extends Hop { protected OpOpN _op = null; protected NaryOp() { } /** * NaryOp constructor. * * @param name * the target name, typically set by the DMLTranslator when * constructing Hops. (For example, 'parsertemp1'.) * @param dataType * the target data type (SCALAR for printf) * @param valueType * the target value type (STRING for printf) * @param op * the operation type (such as PRINTF) * @param inputs * a variable number of input Hops */ public NaryOp(String name, DataType dataType, ValueType valueType, OpOpN op, Hop... inputs) { super(name, dataType, valueType); _op = op; for (int i = 0; i < inputs.length; i++) { getInput().add(i, inputs[i]); inputs[i].getParent().add(this); } refreshSizeInformation(); } /** MultipleOp may have any number of inputs. */ @Override public void checkArity() {} public OpOpN getOp() { return _op; } @Override public String getOpString() { return "m(" + _op.name().toLowerCase() + ")"; } @Override public boolean isGPUEnabled() { return false; } /** * Construct the corresponding Lops for this Hop */ @Override public Lop constructLops() { // reuse existing lop if (getLops() != null) return getLops(); try { Lop[] inLops = new Lop[getInput().size()]; for (int i = 0; i < getInput().size(); i++) inLops[i] = getInput().get(i).constructLops(); ExecType et = optFindExecType(); Nary multipleCPLop = new Nary(_op, getDataType(), getValueType(), inLops, et); setOutputDimensions(multipleCPLop); setLineNumbers(multipleCPLop); setLops(multipleCPLop); } catch (Exception e) { throw new HopsException(this.printErrorLocation() + "error constructing Lops for NaryOp -- \n ", e); } // add reblock/checkpoint lops if necessary constructAndSetLopsDataFlowProperties(); return getLops(); } @Override public boolean allowsAllExecTypes() { return false; } @Override public void computeMemEstimate(MemoTable memo) { //overwrites default hops behavior super.computeMemEstimate(memo); //specific case for function call if( _op == OpOpN.EVAL ) { _memEstimate = OptimizerUtils.INT_SIZE; _outputMemEstimate = OptimizerUtils.INT_SIZE; _processingMemEstimate = 0; } } @Override protected double computeOutputMemEstimate(long dim1, long dim2, long nnz) { double sparsity = OptimizerUtils.getSparsity(dim1, dim2, nnz); return OptimizerUtils.estimateSizeExactSparsity(dim1, dim2, sparsity); } @Override protected ExecType optFindExecType() { checkAndSetForcedPlatform(); ExecType REMOTE = ExecType.SPARK; //forced / memory-based / threshold-based decision if( _etypeForced != null ) { _etype = _etypeForced; } else { if ( OptimizerUtils.isMemoryBasedOptLevel() ) _etype = findExecTypeByMemEstimate(); // Choose CP, if the input dimensions are below threshold or if the input is a vector else if ( areDimsBelowThreshold() ) _etype = ExecType.CP; else _etype = REMOTE; //check for valid CP dimensions and matrix size checkAndSetInvalidCPDimsAndSize(); } //mark for recompile (forever) setRequiresRecompileIfNecessary(); //ensure cp exec type for single-node operations if ( _op == OpOpN.PRINTF || _op == OpOpN.EVAL || _op == OpOpN.LIST //TODO: cbind/rbind of lists only support in CP right now || (_op == OpOpN.CBIND && getInput().get(0).getDataType().isList()) || (_op == OpOpN.RBIND && getInput().get(0).getDataType().isList()) || _op.isCellOp() && getInput().stream().allMatch(h -> h.getDataType().isScalar())) _etype = ExecType.CP; return _etype; } @Override protected double computeIntermediateMemEstimate(long dim1, long dim2, long nnz) { return 0; } @Override @SuppressWarnings("incomplete-switch") protected DataCharacteristics inferOutputCharacteristics(MemoTable memo) { if( !getDataType().isScalar() ) { DataCharacteristics[] dc = memo.getAllInputStats(getInput()); switch( _op ) { case CBIND: return new MatrixCharacteristics( HopRewriteUtils.getMaxInputDim(dc, true), HopRewriteUtils.getSumValidInputDims(dc, false), -1, HopRewriteUtils.getSumValidInputNnz(dc, true)); case RBIND: return new MatrixCharacteristics( HopRewriteUtils.getSumValidInputDims(dc, true), HopRewriteUtils.getMaxInputDim(dc, false), -1, HopRewriteUtils.getSumValidInputNnz(dc, true)); case MIN: case MAX: case PLUS: return new MatrixCharacteristics( HopRewriteUtils.getMaxInputDim(this, true), HopRewriteUtils.getMaxInputDim(this, false), -1, -1); case LIST: return new MatrixCharacteristics(getInput().size(), 1, -1, -1); } } return null; //do nothing } @Override public void refreshSizeInformation() { switch( _op ) { case CBIND: setDim1(HopRewriteUtils.getMaxInputDim(this, true)); setDim2(HopRewriteUtils.getSumValidInputDims(this, false)); setNnz(HopRewriteUtils.getSumValidInputNnz(this)); break; case RBIND: setDim1(HopRewriteUtils.getSumValidInputDims(this, true)); setDim2(HopRewriteUtils.getMaxInputDim(this, false)); setNnz(HopRewriteUtils.getSumValidInputNnz(this)); break; case MIN: case MAX: case PLUS: setDim1(getDataType().isScalar() ? 0 : HopRewriteUtils.getMaxInputDim(this, true)); setDim2(getDataType().isScalar() ? 0 : HopRewriteUtils.getMaxInputDim(this, false)); break; case LIST: setDim1(getInput().size()); setDim2(1); case PRINTF: case EVAL: //do nothing: } } @Override public Object clone() throws CloneNotSupportedException { NaryOp multipleOp = new NaryOp(); // copy generic attributes multipleOp.clone(this, false); // copy specific attributes multipleOp._op = _op; return multipleOp; } @Override public boolean compare(Hop that) { if (!(that instanceof NaryOp) || _op == OpOpN.PRINTF) return false; NaryOp that2 = (NaryOp) that; boolean ret = (_op == that2._op && getInput().size() == that2.getInput().size()); for( int i=0; i<getInput().size() && ret; i++ ) ret &= (getInput().get(i) == that2.getInput().get(i)); return ret; } }
[ "mboehm7@gmail.com" ]
mboehm7@gmail.com
a33dfb536f5b16b5888aa9346dc1fe876ea585c4
b60edef7a15590d579c8e37162e500e15f9cdf2f
/app/src/main/java/com/bowen/tcm/login/presenter/ForgetPasswordPresenter.java
97df86df2ec14a8f64544d40d275297f6dcd3390
[]
no_license
androiddeveloper007/ByOnline
f4c921bd4f1efbf9b82786b729143ab734a3e2fc
f015c8cb355eeaf23cfe7ff442a1b809e13507e8
refs/heads/master
2020-03-31T16:19:24.345222
2018-10-16T13:29:24
2018-10-16T13:29:24
152,370,417
0
0
null
null
null
null
UTF-8
Java
false
false
3,579
java
package com.bowen.tcm.login.presenter; import android.content.Context; import android.text.TextUtils; import com.bowen.commonlib.base.BasePresenter; import com.bowen.commonlib.http.HttpResult; import com.bowen.commonlib.http.HttpTaskCallBack; import com.bowen.commonlib.utils.CheckStringUtl; import com.bowen.commonlib.utils.ToastUtil; import com.bowen.tcm.login.contract.ForgetPasswordContract; import com.bowen.tcm.login.model.ForgetPasswordModel; import com.bowen.tcm.login.model.RegistModel; /** * Created by AwenZeng on 2017/6/2. */ public class ForgetPasswordPresenter extends BasePresenter implements ForgetPasswordContract.Presenter { private ForgetPasswordModel mPasswordModel; private RegistModel mRegistModel; private ForgetPasswordContract.View mView; public ForgetPasswordPresenter(Context mContext, ForgetPasswordContract.View view) { super(mContext); mPasswordModel = new ForgetPasswordModel(mContext); mRegistModel = new RegistModel(mContext); mView = view; } /** * 检测输入的字段 * * @param phoneNum * @return */ public boolean checkContent(String phoneNum, String authCode,String password) { if (TextUtils.isEmpty(phoneNum)) { showToast("请输入手机号码"); return false; } else if (!CheckStringUtl.isMobileNum(phoneNum)) { showToast("请输入11位数字的手机号码"); return false; } if (TextUtils.isEmpty(authCode)) { showToast("请输入验证码"); return false; }else if(CheckStringUtl.isAuthCode(authCode)){ showToast("请输入正确格式的验证码"); return false; } if (TextUtils.isEmpty(password)) { showToast("请输入登录密码"); return false; } else if (!CheckStringUtl.isPassword(password)) { showToast("请输入正确格式的登录密码"); return false; } return true; } private void showToast(String erro) { ToastUtil.getInstance().showToastDialog(erro); } @Override public void findSetPassword(String phone, String authCode, String password) { mPasswordModel.findSetPassword(phone, authCode,password, new HttpTaskCallBack() { @Override public void onSuccess(HttpResult result) { mView.onFindPswSuccess(); } @Override public void onFail(HttpResult result) { showToast(result.getMsg()); } }); } @Override public void getAuthCode(String phone, int codeType, int businessType) { mRegistModel.getAuthCode(phone, codeType, businessType, new HttpTaskCallBack() { @Override public void onSuccess(HttpResult result) { showToast(result.getMsg()); } @Override public void onFail(HttpResult result) { showToast(result.getMsg()); mView.onGetAuthCodeFailed(); } }); } @Override public void checkAccount(String account,String checkType) { mRegistModel.checkAccount(account,checkType, new HttpTaskCallBack<Boolean>() { @Override public void onSuccess(HttpResult<Boolean> result) { mView.onCheckAccountSuccess(result.getData()); } @Override public void onFail(HttpResult<Boolean> result) { } }); } }
[ "zhu852514500@163.com" ]
zhu852514500@163.com
4a0f40680ccf2481ecb87e6b32dc5c5f56ddd8cd
3cee619f9d555e75625bfff889ae5c1394fd057a
/app/src/main/java/org/tensorflow/lite/examples/imagesegmentation/p000a/p013b/p020e/p028g/C0239g.java
6c67262a66c86c1a2646a061a84d0b9406704163
[]
no_license
randauto/imageerrortest
6fe12d92279e315e32409e292c61b5dc418f8c2b
06969c68b9d82ed1c366d8b425c87c61db933f15
refs/heads/master
2022-04-21T18:21:56.836502
2020-04-23T16:18:49
2020-04-23T16:18:49
258,261,084
0
0
null
null
null
null
UTF-8
Java
false
false
618
java
package p000a.p013b.p020e.p028g; import java.util.concurrent.Callable; /* renamed from: a.b.e.g.g */ /* compiled from: ScheduledDirectTask */ public final class C0239g extends C0226a implements Callable<Void> { private static final long serialVersionUID = 1811839108042568751L; public C0239g(Runnable runnable) { super(runnable); } /* renamed from: b */ public Void call() { this.f436b = Thread.currentThread(); try { this.f435a.run(); return null; } finally { lazySet(f433c); this.f436b = null; } } }
[ "tuanlq@funtap.vn" ]
tuanlq@funtap.vn
ee16b0eb3d5fdf75724367ce62df762cd5efaa9f
1ce48fcc3d037f74e4a5941724a47102c3e51c7a
/platform-ui/src/main/java/ua/com/fielden/platform/swing/ei/editors/development/ReadonlyEntityPropertyViewer.java
b075b641efeacd707d5e7e22a371203f7f95dabc
[]
no_license
jhou-pro/tg
825e3f18f3437003c77905468f416c01fc52b1a7
9e73c58fece40be93ddc3bb105fbd5484e1ab393
refs/heads/master
2021-01-18T03:36:12.486334
2016-06-09T03:08:08
2016-06-09T03:08:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,598
java
/** * */ package ua.com.fielden.platform.swing.ei.editors.development; import javax.swing.JLabel; import javax.swing.JPanel; import net.miginfocom.swing.MigLayout; import ua.com.fielden.platform.basic.IValueMatcher; import ua.com.fielden.platform.entity.AbstractEntity; import ua.com.fielden.platform.swing.components.bind.development.BoundedValidationLayer; import ua.com.fielden.platform.swing.components.bind.development.ComponentFactory; import ua.com.fielden.platform.swing.components.bind.development.ComponentFactory.ReadOnlyLabel; import ua.com.fielden.platform.swing.utils.DummyBuilder; import ua.com.fielden.platform.utils.EntityUtils.ShowingStrategy; import ua.com.fielden.platform.utils.Pair; /** * This a {@link IPropertyEditor} wrapper for read only entity properties, which can be used for binding <i>far-bound</i> properties that require a display only functionality. * * @author TG Team */ public class ReadonlyEntityPropertyViewer implements IPropertyEditor { private AbstractEntity<?> entity; private final String propertyName; private final JLabel label; private final BoundedValidationLayer<ReadOnlyLabel> editor; public ReadonlyEntityPropertyViewer(final AbstractEntity<?> entity, final String propertyName) { this.entity = entity; this.propertyName = propertyName; final Pair<String, String> titleAndDesc = LabelAndTooltipExtractor.extract(propertyName, entity.getType()); label = DummyBuilder.label(titleAndDesc.getKey()); label.setToolTipText(titleAndDesc.getValue()); editor = ComponentFactory.createLabel(entity, propertyName, titleAndDesc.getValue(), ShowingStrategy.KEY_ONLY); } @Override public BoundedValidationLayer<ReadOnlyLabel> getEditor() { return editor; } @Override public void bind(final AbstractEntity<?> entity) { this.entity = entity; getEditor().rebindTo(entity); } @Override public AbstractEntity<?> getEntity() { return entity; } @Override public String getPropertyName() { return propertyName; } public JLabel getLabel() { return label; } @Override public JPanel getDefaultLayout() { final JPanel panel = new JPanel(new MigLayout("fill, insets 0", "[]5[]", "[c]")); panel.add(label); panel.add(getEditor(), "growx"); return panel; } @Override public IValueMatcher<?> getValueMatcher() { throw new UnsupportedOperationException("Value matcher are not applicable for readonly editors."); } }
[ "oles.hodych@gmail.com" ]
oles.hodych@gmail.com
66bdac3641408e5c6095a1377be588766dd5ca80
a94d20a6346d219c84cc97c9f7913f1ce6aba0f8
/felles/felles/sikkerhet/sikkerhet/src/main/java/no/nav/vedtak/sikkerhet/ContextPathHolder.java
8083d0699528ec503ffbac64deaef8091787ae8e
[ "MIT" ]
permissive
junnae/spsak
3c8a155a1bf24c30aec1f2a3470289538c9de086
ede4770de33bd896d62225a9617b713878d1efa5
refs/heads/master
2020-09-11T01:56:53.748986
2019-02-06T08:14:42
2019-02-06T08:14:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
846
java
package no.nav.vedtak.sikkerhet; public class ContextPathHolder { private static volatile ContextPathHolder instance = null; private final String contextPath; private ContextPathHolder(String contextPath) { this.contextPath = contextPath; } public static ContextPathHolder instance() { if (instance == null) { throw new IllegalStateException(); } return instance; } public static ContextPathHolder instance(String contextPath) { if (instance == null) { synchronized (ContextPathHolder.class) { if (instance == null) { instance = new ContextPathHolder(contextPath); } } } return instance; } public String getContextPath() { return contextPath; } }
[ "roy.andre.gundersen@nav.no" ]
roy.andre.gundersen@nav.no
0330cf9bc6355d83e8a5fc94e3048990e6e4fb4c
81c48ccdb639908df63cd5f90b4cb49449f30e1d
/haox-kerb/kerb-core-test/src/test/java/org/apache/kerberos/kerb/codec/pac/PacSid.java
ad73d0e3f93d00de464319b9a873a9532342c6f1
[ "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
4,412
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.codec.pac; import java.io.IOException; public class PacSid { private static final String FORMAT = "%1$02x"; private byte revision; private byte subCount; private byte[] authority; private byte[] subs; public PacSid(byte[] bytes) throws IOException { if(bytes.length < 8 || ((bytes.length - 8) % 4) != 0 || ((bytes.length - 8) / 4) != bytes[1]) throw new IOException("pac.sid.malformed.size"); this.revision = bytes[0]; this.subCount = bytes[1]; this.authority = new byte[6]; System.arraycopy(bytes, 2, this.authority, 0, 6); this.subs = new byte[bytes.length - 8]; System.arraycopy(bytes, 8, this.subs, 0, bytes.length - 8); } public PacSid(PacSid sid) { this.revision = sid.revision; this.subCount = sid.subCount; this.authority = new byte[6]; System.arraycopy(sid.authority, 0, this.authority, 0, 6); this.subs = new byte[sid.subs.length]; System.arraycopy(sid.subs, 0, this.subs, 0, sid.subs.length); } public String toString() { StringBuilder builder = new StringBuilder(); builder.append("\\").append(String.format(FORMAT, ((int)revision) & 0xff)); builder.append("\\").append(String.format(FORMAT, ((int)subCount) & 0xff)); for(int i = 0; i < authority.length; i++) { int unsignedByte = ((int)authority[i]) & 0xff; builder.append("\\").append(String.format(FORMAT, unsignedByte)); } for(int i = 0; i < subs.length; i++) { int unsignedByte = ((int)subs[i]) & 0xff; builder.append("\\").append(String.format(FORMAT, unsignedByte)); } return builder.toString(); } public boolean isEmpty() { return subCount == 0; } public boolean isBlank() { boolean blank = true; for(byte sub : subs) blank = blank && (sub == 0); return blank; } public byte[] getBytes() { byte[] bytes = new byte[8 + subCount * 4]; bytes[0] = revision; bytes[1] = subCount; System.arraycopy(authority, 0, bytes, 2, 6); System.arraycopy(subs, 0, bytes, 8, subs.length); return bytes; } public static String toString(byte[] bytes) { StringBuilder builder = new StringBuilder(); for(int i = 0; i < bytes.length; i++) { int unsignedByte = ((int)bytes[i]) & 0xff; builder.append("\\").append(String.format(FORMAT, unsignedByte)); } return builder.toString(); } public static PacSid createFromSubs(byte[] bytes) throws IOException { if((bytes.length % 4) != 0) { Object[] args = new Object[]{bytes.length}; throw new IOException("pac.subauthority.malformed.size"); } byte[] sidBytes = new byte[8 + bytes.length]; sidBytes[0] = 1; sidBytes[1] = (byte)(bytes.length / 4); System.arraycopy(new byte[]{0, 0, 0, 0, 0, 5}, 0, sidBytes, 2, 6); System.arraycopy(bytes, 0, sidBytes, 8, bytes.length); return new PacSid(sidBytes); } public static PacSid append(PacSid sid1, PacSid sid2) { PacSid sid = new PacSid(sid1); sid.subCount += sid2.subCount; sid.subs = new byte[sid.subCount * 4]; System.arraycopy(sid1.subs, 0, sid.subs, 0, sid1.subs.length); System.arraycopy(sid2.subs, 0, sid.subs, sid1.subs.length, sid2.subs.length); return sid; } }
[ "drankye@gmail.com" ]
drankye@gmail.com
7e2c7b98de41506159bf298381fb52a6c8f2c7d1
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/4/4_dbc830651a76a064625d81bc15106c25e8fcedbc/ConfigureSynchronizeScheduleComposite/4_dbc830651a76a064625d81bc15106c25e8fcedbc_ConfigureSynchronizeScheduleComposite_t.java
55e93cf239cad3599c82df1731d46529dfe48971
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
7,618
java
/******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.team.internal.ui.synchronize; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.swt.SWT; import org.eclipse.swt.events.*; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.*; import org.eclipse.team.internal.ui.Policy; import org.eclipse.team.internal.ui.Utils; import org.eclipse.team.ui.synchronize.SubscriberParticipant; /** * A composite that allows editing a subscriber refresh schedule. A validator can be used to allow * containers to show page completiong. * * @since 3.0 */ public class ConfigureSynchronizeScheduleComposite extends Composite { private SubscriberRefreshSchedule schedule; private Button userRefreshOnly; private Button enableBackgroundRefresh; private Text time; private Combo hoursOrSeconds; private String errorMessage; private IPageValidator validator; public ConfigureSynchronizeScheduleComposite(Composite parent, SubscriberRefreshSchedule schedule, IPageValidator validator) { super(parent, SWT.NONE); this.schedule = schedule; this.validator = validator; createMainDialogArea(parent); } private void initializeValues() { boolean enableBackground = schedule.isEnabled(); boolean hours = false; userRefreshOnly.setSelection(! enableBackground); enableBackgroundRefresh.setSelection(enableBackground); long seconds = schedule.getRefreshInterval(); if(seconds <= 60) { seconds = 60; } long minutes = seconds / 60; if(minutes >= 60) { minutes = minutes / 60; hours = true; } hoursOrSeconds.select(hours ? 0 : 1); time.setText(Long.toString(minutes)); } /* (non-Javadoc) * @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite) */ protected void createMainDialogArea(Composite parent) { final GridLayout gridLayout = new GridLayout(); gridLayout.numColumns = 2; setLayout(gridLayout); setLayoutData(new GridData()); Composite area = this; createWrappingLabel(area, Policy.bind("ConfigureRefreshScheduleDialog.1", schedule.getParticipant().getName()), 0, 2); //$NON-NLS-1$ { final Label label = new Label(area, SWT.WRAP); final GridData gridData = new GridData(GridData.FILL_HORIZONTAL); gridData.horizontalSpan = 2; label.setLayoutData(gridData); label.setText(Policy.bind("ConfigureRefreshScheduleDialog.1a", SubscriberRefreshSchedule.refreshEventAsString(schedule.getLastRefreshEvent()))); //$NON-NLS-1$ } { userRefreshOnly = new Button(area, SWT.RADIO); final GridData gridData = new GridData(); gridData.horizontalSpan = 2; userRefreshOnly.setLayoutData(gridData); userRefreshOnly.setText(Policy.bind("ConfigureRefreshScheduleDialog.2")); //$NON-NLS-1$ userRefreshOnly.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { updateEnablements(); } public void widgetDefaultSelected(SelectionEvent e) { } }); } { enableBackgroundRefresh = new Button(area, SWT.RADIO); final GridData gridData = new GridData(); gridData.horizontalSpan = 2; enableBackgroundRefresh.setLayoutData(gridData); enableBackgroundRefresh.setText(Policy.bind("ConfigureRefreshScheduleDialog.3")); //$NON-NLS-1$ enableBackgroundRefresh.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { updateEnablements(); } public void widgetDefaultSelected(SelectionEvent e) { } }); } { final Composite composite = new Composite(area, SWT.NONE); final GridData gridData = new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.VERTICAL_ALIGN_BEGINNING); gridData.horizontalSpan = 2; composite.setLayoutData(gridData); final GridLayout gridLayout_1 = new GridLayout(); gridLayout_1.numColumns = 3; composite.setLayout(gridLayout_1); { final Label label = new Label(composite, SWT.NONE); label.setText(Policy.bind("ConfigureRefreshScheduleDialog.4")); //$NON-NLS-1$ } { time = new Text(composite, SWT.BORDER | SWT.RIGHT); final GridData gridData_1 = new GridData(); gridData_1.widthHint = 35; time.setLayoutData(gridData_1); time.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { updateEnablements(); } }); } { hoursOrSeconds = new Combo(composite, SWT.READ_ONLY); hoursOrSeconds.setItems(new String[] { Policy.bind("ConfigureRefreshScheduleDialog.5"), Policy.bind("ConfigureRefreshScheduleDialog.6") }); //$NON-NLS-1$ //$NON-NLS-2$ hoursOrSeconds.setLayoutData(new GridData()); } } initializeValues(); } /* (non-Javadoc) * @see org.eclipse.jface.dialogs.Dialog#okPressed() */ public void saveValues() { int hours = hoursOrSeconds.getSelectionIndex(); long seconds = Long.parseLong(time.getText()); if(hours == 0) { seconds = seconds * 3600; } else { seconds = seconds * 60; } schedule.setRefreshInterval(seconds); if(schedule.isEnabled() != enableBackgroundRefresh.getSelection()) { schedule.setEnabled(enableBackgroundRefresh.getSelection(), true /* allow to start */); } // update schedule SubscriberParticipant participant = schedule.getParticipant(); if (!participant.isPinned() && schedule.isEnabled()) { participant.setPinned(MessageDialog.openQuestion(getShell(), Policy.bind("ConfigureSynchronizeScheduleComposite.0", Utils.getTypeName(participant)), //$NON-NLS-1$ Policy.bind("ConfigureSynchronizeScheduleComposite.1", Utils.getTypeName(participant)))); //$NON-NLS-1$ } participant.setRefreshSchedule(schedule); } /* (non-Javadoc) * @see org.eclipse.team.internal.ui.dialogs.DetailsDialog#updateEnablements() */ public void updateEnablements() { try { long number = Long.parseLong(time.getText()); if(number <= 0) { validator.setComplete(Policy.bind("ConfigureRefreshScheduleDialog.7")); //$NON-NLS-1$ } else { validator.setComplete(null); } } catch (NumberFormatException e) { validator.setComplete(Policy.bind("ConfigureRefreshScheduleDialog.8")); //$NON-NLS-1$ } time.setEnabled(enableBackgroundRefresh.getSelection()); hoursOrSeconds.setEnabled(enableBackgroundRefresh.getSelection()); } protected void setErrorMessage(String error) { this.errorMessage = error; } public String getErrorMessage() { return errorMessage; } private Label createWrappingLabel(Composite parent, String text, int indent, int horizontalSpan) { Label label = new Label(parent, SWT.LEFT | SWT.WRAP); label.setText(text); GridData data = new GridData(); data.horizontalSpan = horizontalSpan; data.horizontalAlignment = GridData.FILL; data.horizontalIndent = indent; data.grabExcessHorizontalSpace = true; data.widthHint = 400; label.setLayoutData(data); return label; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
4fcae8884891d093d078273719c48027cad93354
16bd29d56e7c722f1f5fca21626b3359a40baf36
/arqoid/arqoid-module/src/main/java/com/hp/hpl/jena/sparql/resultset/OutputFormatter.java
5ac3c4e44b5310be9dc254f3a21a1b33e112c55c
[ "Apache-2.0" ]
permissive
william-vw/android-reasoning
948d6a39372e29e5eff8c4851899d4dfc986ca62
eb1668b88207a8e3a174361562efa066f2c75978
refs/heads/master
2023-02-07T20:50:25.015940
2023-01-24T19:26:37
2023-01-24T19:26:37
138,166,750
1
1
null
null
null
null
UTF-8
Java
false
false
2,345
java
/* * (c) Copyright 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP * All rights reserved. * [See end of file] */ package com.hp.hpl.jena.sparql.resultset; import java.io.OutputStream; import com.hp.hpl.jena.query.ResultSet; /** * Interface for all formatters of result sets. * * @author Andy Seaborne */ public interface OutputFormatter { /** Format a result set - output on the given stream * @param out * @param resultSet */ public void format(OutputStream out, ResultSet resultSet) ; /** Format a boolean result - output on the given stream * @param out * @param booleanResult */ public void format(OutputStream out, boolean booleanResult) ; /** Turn into a string */ public String asString(ResultSet resultSet) ; } /* * (c) Copyright 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP * 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. */
[ "william.van.woensel@gmail.com" ]
william.van.woensel@gmail.com
08cc8d63e7e2894c1ecc1315f95ce19254de225e
a407678d9973a09183ca556b54d9d35cd7a2b765
/src/irc/java/org/darkstorm/darkbot/ircbot/commands/defaults/VersionCommand.java
8547946568e089ef0c8389ad5daf2fd12882b41b
[ "BSD-2-Clause" ]
permissive
dahquan1/DarkBot
d4920b6f196e9b5a8bffe1adcfe150abc7e88d50
09ff65b67060486eaa723a68e3faf4a6296a194c
refs/heads/master
2020-12-25T04:17:12.624939
2014-03-04T21:02:02
2014-03-04T21:02:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,070
java
package org.darkstorm.darkbot.ircbot.commands.defaults; import org.darkstorm.darkbot.DarkBot; import org.darkstorm.darkbot.ircbot.commands.IRCCommand; import org.darkstorm.darkbot.ircbot.handlers.*; import org.darkstorm.darkbot.ircbot.irc.messages.*; public class VersionCommand extends IRCCommand { public VersionCommand(CommandHandler commandHandler) { super(commandHandler); } @Override public void execute(Message message) { if(message instanceof UserMessage) { UserMessage userMessage = (UserMessage) message; String messageText = userMessage.getMessage(); if(userMessage.isCTCP() && messageText.equals("VERSION")) { MessageHandler messageHandler = bot.getMessageHandler(); messageHandler.sendCTCPNotice(userMessage.getSender() .getNickname(), "VERSION DarkBot " + DarkBot.VERSION); } } } @Override public String getName() { return "VERSION"; } @Override public String getDescription() { return "Responds to VERSION commands. Cannot be disabled."; } @Override public boolean isEnabled() { return true; } }
[ "darkstorm@evilminecraft.net" ]
darkstorm@evilminecraft.net
a132735b3d2ada8d48585a647aad0758c5358da0
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Math/4/org/apache/commons/math3/dfp/Dfp_multiply_1504.java
7486602ac0a67399953a1f536f66222a9d6ff54d
[]
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
5,593
java
org apach common math3 dfp decim float point librari java float point built radix decim design goal decim math close settabl precis mix number set portabl code portabl perform accuraci result ulp basic algebra oper compli ieee ieee note trade off memori foot print memori repres number perform digit bigger round greater loss decim digit base digit partial fill number repres form pre sign time mant time radix exp pre sign plusmn mantissa repres fraction number mant signific digit exp rang ieee note differ ieee requir radix radix requir met subclass made make behav radix number opinion behav radix number requir met radix chosen faster oper decim digit time radix behavior realiz ad addit round step ensur number decim digit repres constant ieee standard specif leav intern data encod reason conclud subclass radix system encod radix system ieee specifi exist normal number entiti signific radix digit support gradual underflow rais underflow flag number expon exp min expmin flush expon reach min exp digit smallest number repres min exp digit digit min exp ieee defin impli radix point li signific digit left remain digit implement put impli radix point left digit includ signific signific digit radix point fine detail matter definit side effect render invis subclass dfp field dfpfield version dfp real field element realfieldel dfp multipli param multiplicand product dfp multipli dfp make mix number precis field radix digit getradixdigit field radix digit getradixdigit field set ieee flag bit setieeeflagsbit dfp field dfpfield flag invalid dfp result instanc newinst getzero result nan qnan dotrap dfp field dfpfield flag invalid multipli trap result dfp result instanc newinst getzero handl special case nan finit nan finit isnan isnan nan infinit nan finit mant mant length result instanc newinst result sign sign sign result nan infinit nan finit mant mant length result instanc newinst result sign sign sign result nan infinit nan infinit result instanc newinst result sign sign sign result nan infinit nan finit mant mant length nan infinit nan finit mant mant length field set ieee flag bit setieeeflagsbit dfp field dfpfield flag invalid result instanc newinst getzero result nan qnan result dotrap dfp field dfpfield flag invalid multipli trap result result product mant length big hold largest result mant length act carri mant length mant mant multipli digit product add product digit carri radix product radix product mant length find sig digit mant length result mant length product copi digit result mant length result mant mant length product fixup expon result exp exp exp mant length result sign sign sign result mant mant length result set exp result exp excp mant length excp result round product mant length excp result round effect check statu excp result dotrap excp multipli trap result result
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
09d220f063e545abd69e357553a589e8874c18ed
8dfd77caab244debdf56f66b6465e06732364cd8
/projects/jasn1-compiler/src/test/java-gen/org/openmuc/jasn1/compiler/pkix1explicit88/Validity.java
f397b788e4aee7df9df258f7ea7bf2c35182a52b
[]
no_license
onderson/jasn1
d195c568b2bf62e9ef558d1caea6e228239ad848
6df87b86391360758fa559d55b9aa6fb98c7f507
refs/heads/master
2021-08-18T16:30:05.353553
2017-07-19T18:39:08
2017-07-19T18:39:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,248
java
/** * This class file was automatically generated by jASN1 v1.8.2-SNAPSHOT (http://www.openmuc.org) */ package org.openmuc.jasn1.compiler.pkix1explicit88; import java.io.IOException; import java.io.EOFException; import java.io.InputStream; import java.util.List; import java.util.ArrayList; import java.util.Iterator; import java.io.UnsupportedEncodingException; import java.math.BigInteger; import java.io.Serializable; import org.openmuc.jasn1.ber.*; import org.openmuc.jasn1.ber.types.*; import org.openmuc.jasn1.ber.types.string.*; public class Validity implements Serializable { private static final long serialVersionUID = 1L; public static final BerTag tag = new BerTag(BerTag.UNIVERSAL_CLASS, BerTag.CONSTRUCTED, 16); public byte[] code = null; public Time notBefore = null; public Time notAfter = null; public Validity() { } public Validity(byte[] code) { this.code = code; } public Validity(Time notBefore, Time notAfter) { this.notBefore = notBefore; this.notAfter = notAfter; } public int encode(BerByteArrayOutputStream os) throws IOException { return encode(os, true); } public int encode(BerByteArrayOutputStream os, boolean withTag) throws IOException { if (code != null) { for (int i = code.length - 1; i >= 0; i--) { os.write(code[i]); } if (withTag) { return tag.encode(os) + code.length; } return code.length; } int codeLength = 0; codeLength += notAfter.encode(os); codeLength += notBefore.encode(os); codeLength += BerLength.encodeLength(os, codeLength); if (withTag) { codeLength += tag.encode(os); } return codeLength; } public int decode(InputStream is) throws IOException { return decode(is, true); } public int decode(InputStream is, boolean withTag) throws IOException { int codeLength = 0; int subCodeLength = 0; BerTag berTag = new BerTag(); if (withTag) { codeLength += tag.decodeAndCheck(is); } BerLength length = new BerLength(); codeLength += length.decode(is); int totalLength = length.val; if (totalLength == -1) { subCodeLength += berTag.decode(is); if (berTag.tagNumber == 0 && berTag.tagClass == 0 && berTag.primitive == 0) { int nextByte = is.read(); if (nextByte != 0) { if (nextByte == -1) { throw new EOFException("Unexpected end of input stream."); } throw new IOException("Decoded sequence has wrong end of contents octets"); } codeLength += subCodeLength + 1; return codeLength; } notBefore = new Time(); int choiceDecodeLength = notBefore.decode(is, berTag); if (choiceDecodeLength != 0) { subCodeLength += choiceDecodeLength; subCodeLength += berTag.decode(is); } else { notBefore = null; } if (berTag.tagNumber == 0 && berTag.tagClass == 0 && berTag.primitive == 0) { int nextByte = is.read(); if (nextByte != 0) { if (nextByte == -1) { throw new EOFException("Unexpected end of input stream."); } throw new IOException("Decoded sequence has wrong end of contents octets"); } codeLength += subCodeLength + 1; return codeLength; } notAfter = new Time(); choiceDecodeLength = notAfter.decode(is, berTag); if (choiceDecodeLength != 0) { subCodeLength += choiceDecodeLength; subCodeLength += berTag.decode(is); } else { notAfter = null; } int nextByte = is.read(); if (berTag.tagNumber != 0 || berTag.tagClass != 0 || berTag.primitive != 0 || nextByte != 0) { if (nextByte == -1) { throw new EOFException("Unexpected end of input stream."); } throw new IOException("Decoded sequence has wrong end of contents octets"); } codeLength += subCodeLength + 1; return codeLength; } codeLength += totalLength; subCodeLength += berTag.decode(is); notBefore = new Time(); subCodeLength += notBefore.decode(is, berTag); subCodeLength += berTag.decode(is); notAfter = new Time(); subCodeLength += notAfter.decode(is, berTag); if (subCodeLength == totalLength) { return codeLength; } throw new IOException("Unexpected end of sequence, length tag: " + totalLength + ", actual sequence length: " + subCodeLength); } public void encodeAndSave(int encodingSizeGuess) throws IOException { BerByteArrayOutputStream os = new BerByteArrayOutputStream(encodingSizeGuess); encode(os, false); code = os.getArray(); } public String toString() { StringBuilder sb = new StringBuilder(); appendAsString(sb, 0); return sb.toString(); } public void appendAsString(StringBuilder sb, int indentLevel) { sb.append("{"); sb.append("\n"); for (int i = 0; i < indentLevel + 1; i++) { sb.append("\t"); } if (notBefore != null) { sb.append("notBefore: "); notBefore.appendAsString(sb, indentLevel + 1); } else { sb.append("notBefore: <empty-required-field>"); } sb.append(",\n"); for (int i = 0; i < indentLevel + 1; i++) { sb.append("\t"); } if (notAfter != null) { sb.append("notAfter: "); notAfter.appendAsString(sb, indentLevel + 1); } else { sb.append("notAfter: <empty-required-field>"); } sb.append("\n"); for (int i = 0; i < indentLevel; i++) { sb.append("\t"); } sb.append("}"); } }
[ "stefan.feuerhahn@ise.fraunhofer.de" ]
stefan.feuerhahn@ise.fraunhofer.de
fb73d78d65454163514845c844efb50492fb1f65
827bd3b5a00b2b41ed35cbb0c7d0e3ac849af7a5
/resource/src/main/java/com/example/resource/utils/LogUtils.java
b1f01d49b35070fad4bcf43a25b50fe4bef97388
[]
no_license
eeqg/MyBaseProject2
f185bae0b3230bcf024c64ff9d5714ecd2383efa
fcf9ad5ff3700dde69a84c4daf543aca90d1d6ec
refs/heads/master
2020-03-21T12:41:41.389612
2019-04-03T10:07:28
2019-04-03T10:07:28
138,567,000
0
0
null
null
null
null
UTF-8
Java
false
false
4,224
java
package com.example.resource.utils; import android.app.Activity; import android.content.Context; import android.text.TextUtils; import android.util.Log; import android.widget.Toast; import com.orhanobut.logger.AndroidLogAdapter; import com.orhanobut.logger.FormatStrategy; import com.orhanobut.logger.Logger; import com.orhanobut.logger.PrettyFormatStrategy; /** * 日志工具类 */ public class LogUtils { private static boolean mIsShowToast = true; private static boolean mIsFormat = true; private final static String TAG = "BaseProject"; static { FormatStrategy formatStrategy = PrettyFormatStrategy.newBuilder() .showThreadInfo(false) // (Optional) Whether to show thread info or not. Default true .methodCount(1) // (Optional) How many method line to show. Default 2 .methodOffset(1) // (Optional) Hides internal method calls up to offset. Default 5 // .logStrategy(customLog) // (Optional) Changes the log strategy to print out. Default LogCat .tag(TAG) // (Optional) Global tag for every log. Default PRETTY_LOGGER .build(); Logger.addLogAdapter(new AndroidLogAdapter(formatStrategy)); } public static void d(String tag, String msg) { if (mIsFormat) { Logger.t(tag).d(msg); } else { Log.d(tag, msg); } } public static void d(Object msg) { if (mIsFormat) { Logger.d(msg); } else { Log.d(TAG, msg + ""); } } public static void i(String tag, String msg) { if (mIsFormat) { Logger.t(tag).i(msg); } else { Log.i(tag, msg); } } public static void w(String tag, String msg) { if (mIsFormat) { Logger.t(tag).w(msg); } else { Log.w(tag, msg); } } public static void e(String tag, String msg) { if (TextUtils.isEmpty(msg)) return; if (mIsFormat) { Logger.t(tag).e(msg); } else { Log.e(tag, msg); } } public static void e(String msg, Throwable throwable) { if (mIsFormat) { Logger.e(msg); } else { Log.e(TAG, msg); } } public static void json(String json) { if (mIsFormat) { Logger.json(json); } else { Log.d(TAG, json); } } /** * 带toast的error日志输出 * * @param act act * @param msg 日志 */ public static void errorWithToast(Activity act, String msg) { if (mIsFormat) { Logger.e(msg); } else { Log.e(TAG, msg); } showToast(act, msg); } /** * 带toast的error日志输出 * * @param act act * @param msg 日志 */ public static void errorWithToast(Activity act, String msg, Throwable throwable) { if (mIsFormat) { Logger.e(throwable, msg); } else { Log.e(TAG, msg); } showToast(act, msg); } /** * 带toast的debug日志输出 * * @param act act * @param msg 日志 */ public static void debugWithToast(Activity act, String msg) { if (mIsFormat) { Logger.d(msg); } else { Log.d(TAG, msg); } showToast(act, msg); } /** * 带toast的debug日志输出 */ public static void onClick() { if (mIsFormat) { Logger.d("*** onClick ***"); } else { Log.d(TAG, "*** onClick ***"); } } /** * 带toast的debug日志输出 * * @param msg 日志 */ public static void onClick(String msg) { if (mIsFormat) { Logger.d("*** onClick ***" + msg); } else { Log.d(TAG, "*** onClick ***" + msg); } } /** * 带toast的debug日志输出 * * @param act act * @param msg 日志 */ public static void onClickWithToast(Activity act, String msg) { if (mIsFormat) { Logger.d("*** onClick ***" + msg); } else { Log.d(TAG, "*** onClick ***" + msg); } showToast(act, msg); } /** * toast,带判断isShowToast和isDebugMode * * @param msg 内容 */ private static void showToast(Context context, String msg) { if (mIsShowToast) { Toast.makeText(context, msg, Toast.LENGTH_LONG).show(); } } public static void test(String msg) { if (mIsFormat) { Logger.d("test ==> " + msg); } else { Log.d(TAG, "test ==> " + msg); } } public static void testWithOutFormat(String msg) { Log.i("test", msg); } public static boolean isShowToast() { return mIsShowToast; } public static void setShowToast(boolean mIsShowToast) { LogUtils.mIsShowToast = mIsShowToast; } }
[ "876583632@qq.com" ]
876583632@qq.com
3b4bf82ae00079167e1acaea9c1a83791be0fc9e
160a34361073a54d39ffa14fdae6ce3cbc7d6e6b
/src/main/java/com/alipay/api/domain/AlipayMarketingDataModelQueryModel.java
b67a81493ceffd1886dc880095910de70b92b1c4
[ "Apache-2.0" ]
permissive
appbootup/alipay-sdk-java-all
6a5e55629b9fc77e61ee82ea2c4cdab2091e0272
9ae311632a4053b8e5064b83f97cf1503a00147b
refs/heads/master
2020-05-01T09:45:44.940180
2019-03-15T09:52:14
2019-03-15T09:52:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,482
java
package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 模型数据查询接口 * * @author auto create * @since 1.0, 2017-04-27 14:36:26 */ public class AlipayMarketingDataModelQueryModel extends AlipayObject { private static final long serialVersionUID = 2731683659354299759L; /** * 模型查询输入参数格式。此为参数列表,参数包含外部用户身分信息类型、模型输出字段及模型输出值,根据实际业务需求获取;用于实验试算法模型结果查询 key:条件查询参数。此为外部用户身份信息类型,例如:手机号、身份证 operate:操作计算符数。此为查询条件 value:查询参数值。此为查询值 */ @ApiListField("model_query_param") @ApiField("model_query_param") private List<ModelQueryParam> modelQueryParam; /** * 模型唯一查询标识符。参数值为调用batchquery接口后获取的model_uk参数值;用于标识模型的唯一性 */ @ApiField("model_uk") private String modelUk; public List<ModelQueryParam> getModelQueryParam() { return this.modelQueryParam; } public void setModelQueryParam(List<ModelQueryParam> modelQueryParam) { this.modelQueryParam = modelQueryParam; } public String getModelUk() { return this.modelUk; } public void setModelUk(String modelUk) { this.modelUk = modelUk; } }
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
69e0fa36ba859d4312456b07fdb714a6ab3998c7
9036fc6db1f1074023ba69a7f689de90ac9094f6
/src/com/leiqjl/ConvertSortedListToBinarySearchTree.java
f6bccfc6ede84a62bcf8f04b3ab6af39f0e13038
[]
no_license
leiqjl/leetcode
646e6fc0a7bba120934996203536b6decb62a5a8
1d1faf4c283e694143b9886685a6430521d1860e
refs/heads/master
2023-09-01T06:45:45.353434
2023-08-29T09:27:26
2023-08-29T09:27:26
136,191,772
0
0
null
null
null
null
UTF-8
Java
false
false
694
java
package com.leiqjl; /** * 109. Convert Sorted List to Binary Search Tree - Medium */ public class ConvertSortedListToBinarySearchTree { public TreeNode sortedListToBST(ListNode head) { return convert(head, null); } private TreeNode convert(ListNode head, ListNode tail) { if (head == tail) { return null; } ListNode fast = head, slow = fast; while (fast != tail && fast.next != tail) { fast = fast.next.next; slow = slow.next; } TreeNode root = new TreeNode(slow.val); root.left = convert(head, slow); root.right = convert(slow.next, tail); return root; } }
[ "leiqjl@gmail.com" ]
leiqjl@gmail.com
e9d9de6986661a8d9af0baf55d0dc70f884e36fb
67c0fdc9deaedc7f6937b4cba1c068c69991f4d2
/aura-impl/src/main/java/org/auraframework/impl/css/util/Flavors.java
4c2e1c49e775508358fbb47d7bf24436db3fe98d
[ "Apache-2.0" ]
permissive
SyMdUmair/aura
3cecbd7a0c10fc2ce4fa56d022405f2733128bac
25474961fd88d62d9e955f0649c1ccdd79b1b917
refs/heads/master
2021-01-18T00:58:42.713655
2015-04-04T00:13:01
2015-04-04T00:13:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,801
java
/* * Copyright (C) 2013 salesforce.com, 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 org.auraframework.impl.css.util; import java.util.List; import org.auraframework.css.FlavorRef; import org.auraframework.def.BaseComponentDef; import org.auraframework.def.ComponentDef; import org.auraframework.def.DefDescriptor; import org.auraframework.def.FlavorAssortmentDef; import org.auraframework.def.FlavoredStyleDef; import org.auraframework.impl.css.flavor.FlavorRefImpl; import org.auraframework.impl.system.DefDescriptorImpl; import org.auraframework.util.AuraTextUtil; import com.google.common.base.CaseFormat; import com.google.common.base.Preconditions; /** * Utilities for working with flavors. */ public final class Flavors { private Flavors() {} // do not construct public static FlavorRef buildFlavorRef(DefDescriptor<ComponentDef> flavored, String reference) { Preconditions.checkNotNull(flavored, "the flavored param must must not be null"); Preconditions.checkNotNull(reference, "the reference param must not be null"); List<String> split = AuraTextUtil.splitSimpleAndTrim(reference, ".", 3); if (split.size() == 1) { // standard flavor <ui:blah aura:flavor='primary'/> // split = [flavorName] return new FlavorRefImpl(Flavors.standardFlavorDescriptor(flavored), split.get(0)); } else if (split.size() == 2) { // custom flavor, bundle named implied as flavors <ui:blah aura:flavor='sfdc.primary'/> // split = [namespace, flavorName] return new FlavorRefImpl(Flavors.customFlavorDescriptor(flavored, split.get(0), "flavors"), split.get(1)); } else if (split.size() == 3) { // custom flavor, explicit bundle name <ui:blah aura:flavor='sfdc.flavors.primary'/> // split = [namespace, bundle, flavorName] return new FlavorRefImpl(Flavors.customFlavorDescriptor(flavored, split.get(0), split.get(1)), split.get(2)); } else { throw new IllegalArgumentException("unable to parse flavor reference: " + reference); } } /** * Builds a DefDescriptor for the {@link FlavoredStyleDef} within the same component bundle of the given component. * This is also referred to as a standard flavor. * * @param descriptor The def descriptor of the component bundle, e.g., ui:button. */ public static DefDescriptor<FlavoredStyleDef> standardFlavorDescriptor(DefDescriptor<? extends BaseComponentDef> descriptor) { String fmt = String.format("%s://%s.%s", DefDescriptor.CSS_PREFIX, descriptor.getNamespace(), descriptor.getName()); return DefDescriptorImpl.getInstance(fmt, FlavoredStyleDef.class); } /** * Builds a DefDescriptor for a {@link FlavoredStyleDef} within a bundle distinct and separate from the given * component. This is also referred to as a custom flavor. * * @param flavored The original component being flavored, e.g, ui:button. * @param namespace The namespace containing the bundle of the flavor, e.g., "ui". * @param bundle The name of the flavor's bundle, e.g., "flavors". */ public static DefDescriptor<FlavoredStyleDef> customFlavorDescriptor(DefDescriptor<? extends BaseComponentDef> flavored, String namespace, String bundle) { // find the bundle. Using FlavorAssortment here not because the file is there (although it could be), but // primarily just to get at a specific bundle (e.g., folder) name. String fmt = String.format("markup://%s:%s", namespace, bundle); DefDescriptor<FlavorAssortmentDef> bundleDesc = DefDescriptorImpl.getInstance(fmt, FlavorAssortmentDef.class); // find the flavored style file // using an underscore here so that we can infer the component descriptor in FlavorIncludeDefImpl String file = flavored.getNamespace() + "_" + flavored.getName(); fmt = String.format("%s://%s.%s", DefDescriptor.CUSTOM_FLAVOR_PREFIX, namespace, file); return DefDescriptorImpl.getInstance(fmt, FlavoredStyleDef.class, bundleDesc); } /** * Builds a CSS class name based on the given original class name. Use this for standard flavors. * * @param original The original class name. */ public static String buildFlavorClassName(String original) { return buildFlavorClassName(original, null); } /** * Builds a CSS class name based on the given original class name. * * @param original The original class name. * @param namespace The namespace the flavor lives in. Pass in null for standard flavors. */ public static String buildFlavorClassName(String original, String namespace) { StringBuilder builder = new StringBuilder(); if (namespace != null) { builder.append(namespace); builder.append(AuraTextUtil.initCap(original)); } else { builder.append(original); } builder.append("-f"); return builder.toString(); } /** * Builds the correct CSS class name for a {@link FlavoredStyleDef}, based on the given flavor name. * <p> * Specifically, this converts a flavor name such as ui_button (e.g., from ui_buttonFlavors.css) to the appropriate * CSS class name of the flavored component (e.g., uiButton), as it would be built by * {@link Styles#buildClassName(DefDescriptor)}. This is necessary for custom flavors because the naming convention * separates the namespace from the component name using an underscore instead of camel-casing. See * {@link Flavors#customFlavorDescriptor(DefDescriptor, String, String)} as to why the underscore is used in this * way (basically so that we can infer the flavored component descriptor name from the flavored style descriptor * name). * * @param flavorName The name of the flavored style. * @return The CSS class name. */ public static String flavoredStyleToComponentClass(String flavorName) { if (!flavorName.contains("_")) { return flavorName; } return CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, flavorName); } }
[ "byao@salesforce.com" ]
byao@salesforce.com
c3369bb2015d316b49bf9a34d426a0d877a78da1
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/34/34_ea1be6c83957b15e92bb5e3368a102e814c12e65/NamedPipe/34_ea1be6c83957b15e92bb5e3368a102e814c12e65_NamedPipe_t.java
b4e394ce65a1237c184df0f0a6cfc6a1139e8e7e
[]
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
844
java
/** * */ package server; import java.io.FileNotFoundException; import java.io.IOException; import java.io.RandomAccessFile; import model.NamedPipeStream; /** * @author Derek Carr * */ public class NamedPipe { private RandomAccessFile pipe; public NamedPipe() throws FileNotFoundException { try { Runtime.getRuntime().exec("rm pipe"); Runtime.getRuntime().exec("chmod 666 pipe"); Runtime.getRuntime().exec("mkfifo pipe"); } catch (IOException e) { e.printStackTrace(); } pipe = new RandomAccessFile("./pipe", "rw"); } public NamedPipeStream readPipe() throws IOException { String next = pipe.readLine(); NamedPipeStream stream; if (next != null) { stream = new NamedPipeStream(next); } else { next = null; stream = null; } return stream; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
1bb7eeeda7dbb11fdf547dafeb4ead2b136ef565
3fc503bed9e8ba2f8c49ebf7783bcdaa78951ba8
/TRAVACC_R5/travelrulesengine/src/de/hybris/platform/travelrulesengine/rao/providers/impl/DefaultRoomStayRaoProvider.java
6c8dbc190808041d8d31255af20b345499424954
[]
no_license
RabeS/model-T
3e64b2dfcbcf638bc872ae443e2cdfeef4378e29
bee93c489e3a2034b83ba331e874ccf2c5ff10a9
refs/heads/master
2021-07-01T02:13:15.818439
2020-09-05T08:33:43
2020-09-05T08:33:43
147,307,585
0
0
null
null
null
null
UTF-8
Java
false
false
3,159
java
/* * [y] hybris Platform * * Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * license agreement you entered into with SAP. */ package de.hybris.platform.travelrulesengine.rao.providers.impl; import de.hybris.platform.commercefacades.accommodation.RoomStayData; import de.hybris.platform.ruleengineservices.rao.providers.RAOProvider; import de.hybris.platform.servicelayer.dto.converter.Converter; import de.hybris.platform.travelrulesengine.rao.RoomStayRAO; import java.util.Collection; import java.util.Collections; import java.util.LinkedHashSet; import java.util.Set; import org.springframework.beans.factory.annotation.Required; /** * RAO Provider which creates RoomStayRAO facts to be used in rules evaluation */ public class DefaultRoomStayRaoProvider implements RAOProvider { private Collection<String> defaultOptions; private Converter<RoomStayData, RoomStayRAO> roomStayRAOConverter; @Override public Set expandFactModel(final Object modelFact) { return expandFactModel(modelFact, getDefaultOptions()); } /** * Expand fact model set. * * @param modelFact * the model fact * @param options * the options * * @return the set */ protected Set<Object> expandFactModel(final Object modelFact, final Collection<String> options) { return modelFact instanceof RoomStayData ? expandRAO(createRAO((RoomStayData) modelFact), options) : Collections.emptySet(); } /** * Create rao room stay rao. * * @param source * the source * * @return the room stay rao */ protected RoomStayRAO createRAO(final RoomStayData source) { return getRoomStayRAOConverter().convert(source); } /** * Expand rao set. * * @param rao * the rao * @param options * the options * * @return the set */ protected Set<Object> expandRAO(final RoomStayRAO rao, final Collection<String> options) { final Set<Object> facts = new LinkedHashSet<>(); options.forEach(option -> { if (("INCLUDE_ROOM_STAY").equals(option)) { facts.add(rao); } }); return facts; } /** * Gets default options. * * @return the default options */ protected Collection<String> getDefaultOptions() { return defaultOptions; } /** * Sets default options. * * @param defaultOptions * the default options */ @Required public void setDefaultOptions(final Collection<String> defaultOptions) { this.defaultOptions = defaultOptions; } /** * Gets roomStayRAOConverter. * * @return the roomStayRAOConverter */ protected Converter<RoomStayData, RoomStayRAO> getRoomStayRAOConverter() { return roomStayRAOConverter; } /** * Sets roomStayRAOConverter. * * @param roomStayRAOConverter * the roomStayRAOConverter */ @Required public void setRoomStayRAOConverter( final Converter<RoomStayData, RoomStayRAO> roomStayRAOConverter) { this.roomStayRAOConverter = roomStayRAOConverter; } }
[ "sebastian.rulik@gmail.com" ]
sebastian.rulik@gmail.com
8816a31d857a2eaea9cd05e6e0ce3f0301697858
af7bf9c39b2b246eecbfe7ea97e7e72ada6d3950
/controlsfx/src/main/java/impl/org/controlsfx/spreadsheet/SpreadsheetGridView.java
dc6d037e1e37d039367da97e1600713349bf7dfa
[]
no_license
claudiodegio/controlsfx
a8c5b60b546b773578b53b16eb6e3ffd1c22b4c9
1c2ba0aa97c38497ab239cf7833509574ffeb724
refs/heads/master
2021-05-27T20:50:09.340905
2014-08-25T00:16:33
2014-08-25T00:16:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,307
java
/** * Copyright (c) 2013, 2014 ControlsFX * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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. * * Neither the name of ControlsFX, any associated website, nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL CONTROLSFX 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 impl.org.controlsfx.spreadsheet; import javafx.collections.ObservableList; import javafx.scene.control.TableView; import org.controlsfx.control.spreadsheet.SpreadsheetCell; import org.controlsfx.control.spreadsheet.SpreadsheetView; public class SpreadsheetGridView extends TableView<ObservableList<SpreadsheetCell>> { private final SpreadsheetHandle handle; /** * We want to go to the next row when enter is pressed. * But the tableView wants to go in edition. * So this flag will be set to true when that happens * in order for the TableCell not to go in edition. * SEE RT-34753 */ private boolean editWithEnter = false; /** * We don't want to show the current value in the TextField when we are * editing by typing a key. We want directly to take those typed letters * and put them into the textfield. */ private boolean editWithKey = false; public SpreadsheetGridView(SpreadsheetHandle handle) { this.handle = handle; } @Override protected String getUserAgentStylesheet() { return SpreadsheetView.class.getResource("spreadsheet.css") //$NON-NLS-1$ .toExternalForm(); } @Override protected javafx.scene.control.Skin<?> createDefaultSkin() { return new GridViewSkin(handle); } public GridViewSkin getGridViewSkin() { return handle.getCellsViewSkin(); } public boolean getEditWithEnter(){ return editWithEnter; } public void setEditWithEnter(boolean b){ editWithEnter = b; } public void setEditWithKey(boolean b){ editWithKey = b; } public boolean getEditWithKey(){ return editWithKey; } };
[ "none@none" ]
none@none
0bc0133f740d811089216162782e3d325a9c76b1
418cbb362e8be12004bc19f3853a6b7e834e41f5
/src/L21Regex/Ex05MatchNumbers.java
d5bbc4f7baf078dff6a223950eeb3a6d5b55c835
[ "MIT" ]
permissive
VasAtanasov/SoftUni-Programming-Fundamentals-May-2018
433bd31e531b9ba19d844d6c3ed46deef851396e
911bca8ef9a828acc247fbc2e6a9290f4d3a8406
refs/heads/master
2020-04-14T20:35:23.723721
2019-01-04T11:32:04
2019-01-04T11:32:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,017
java
package L21Regex; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.stream.Collectors; public class Ex05MatchNumbers { private static final String REGEX; private static List<String> matches; private static Pattern pattern; private static BufferedReader reader; static { REGEX = "(^|(?<=\\s))-?[0-9]+(\\.[0-9]+)?($|(?=\\s))"; matches = new ArrayList<>(); pattern = Pattern.compile(REGEX); reader = new BufferedReader(new InputStreamReader(System.in)); } public static void main(String[] args) throws IOException { String input = reader.readLine(); Matcher matcher = pattern.matcher(input); while (matcher.find()) { matches.add(matcher.group()); } System.out.println(matches.stream().collect(Collectors.joining(" "))); } }
[ "vas.atanasov@gmail.com" ]
vas.atanasov@gmail.com
60c597c3ca1e81ca456f944b2b11df4dcb31e800
fcc53a73db3bce85761a716159a74b019bf68d36
/main/test/com/stackroute/pe1/Q3ConsonentOrVowelTest.java
32002a88a9ec7839cdfe85de2d5dc0914b437384
[]
no_license
prerna0001/JavaPractice
1cf1ec45e01d19b2c9bb783498f572cc216c18ee
964d983a8dacc67991c305aaf9f8173c59fbc1f9
refs/heads/master
2020-05-16T23:16:37.108688
2019-05-02T05:35:00
2019-05-02T05:35:00
183,358,833
0
0
null
null
null
null
UTF-8
Java
false
false
831
java
package com.stackroute.pe1; import org.junit.After; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; public class Q3ConsonentOrVowelTest { Q3ConsonentOrVowel q3ConsonentOrVowel; @Before public void setUp() throws Exception { q3ConsonentOrVowel=new Q3ConsonentOrVowel(); } @After public void tearDown() throws Exception { } @Test public void checkVov() { String s=q3ConsonentOrVowel.checkVov( "e"); assertEquals("it is a vowel",s); } @Test public void checkCon() { String s= q3ConsonentOrVowel.checkCon("q"); assertEquals("it is a Consonant",s); } @Test public void checkNoalp() { String s= q3ConsonentOrVowel.checkCon("1"); assertEquals("it is not an alphabet",s); } }
[ "=" ]
=
4fe9a3436bea3f37d218d90264ad303f1fdf1b2e
67310b5d7500649b9d53cf62226ec2d23468413c
/trunk/modules/gui-ripper-sel/src/simple/SimpleSeleniumTest.java
1521d89ffd1b48a9399de38efe48b7d79b7e750e
[]
no_license
csnowleopard/guitar
e09cb77b2fe8b7e38d471be99b79eb7a66a5eb02
1fa5243fcf4de80286d26057db142b5b2357f614
refs/heads/master
2021-01-19T07:53:57.863136
2013-06-06T15:26:25
2013-06-06T15:26:25
10,353,457
1
0
null
null
null
null
UTF-8
Java
false
false
999
java
package simple; import java.net.MalformedURLException; import java.net.URL; import java.util.Iterator; import java.util.List; import java.util.Set; import org.openqa.selenium.By; import org.openqa.selenium.remote.*; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.htmlunit.HtmlUnitDriver; /* * Just a simple WebDriver test file to use when developing. */ public class SimpleSeleniumTest { public static void main(String[] args) throws MalformedURLException { System.setProperty("webdriver.chrome.bin", "/usr/bin/chromium-browser"); WebDriver wd = new FirefoxDriver(); wd.get("file://localhost/home/phand/shared/Documents/School/Spring%202011/CMSC435/hg/test.html"); wd.get("http://www.phand.net"); System.out.println(wd.getCurrentUrl()); wd.get("http://www.phand.net/"); System.out.println(wd.getCurrentUrl()); } }
[ "csnowleopard@gmail.com" ]
csnowleopard@gmail.com
932a834a165d951841adadc787f6aaab628501df
8f3d621379e056284ae0a4c396555803386861ba
/src/main/java/com/liyiming/springcloud/ribbon/controller/HelloController.java
e464e642d89577b8ae96f57e330da125ace0392f
[]
no_license
kiragirl/springcloud_eurekaribbon
1a77a89de4fb660a3d551c366aa172a697a05825
7510d7dfbd9a45d5f3216a517ff59408dc24936d
refs/heads/master
2020-03-11T00:33:30.513048
2018-07-18T08:34:41
2018-07-18T08:34:41
129,666,809
0
0
null
null
null
null
UTF-8
Java
false
false
856
java
/** * HelloController.java * <p>Description: </p> * @author Administrator * @date 2018年4月12日 */ package com.liyiming.springcloud.ribbon.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.liyiming.springcloud.ribbon.service.HelloService; /** * <p>Title: HelloController</p> * <p>Description: </p> * @author liyiming * @date 2018年4月12日 */ @RestController public class HelloController { @Autowired private HelloService helloService; @RequestMapping("/hi") public String home(@RequestParam String name) { return helloService.hiService(name); } }
[ "liyiming0215@sina.com" ]
liyiming0215@sina.com
1f996ebd59017dc522e8849ae8adb9939187f9c1
bf4fa2b21faf33d08d0af0fd66e457eceab97167
/ISmartDeviceConfig/src/main/java/com/miotlink/commom/network/mlcc/parse/ParseMLCCImpl_SmartConnected.java
9a03c7e6afe5a636067eca84c772b7f8443203f9
[]
no_license
Miotlink/ISmartConfigOpenSDK
05be1897fc3aa997bd6ee510fb3fa84f66b438af
d7340006125b8435f2d836ac147fb1184dcde284
refs/heads/master
2023-02-27T21:06:12.884184
2021-01-21T02:50:20
2021-01-21T02:50:20
331,494,797
0
0
null
null
null
null
UTF-8
Java
false
false
1,257
java
package com.miotlink.commom.network.mlcc.parse; import com.miotlink.commom.network.mlcc.utils.MLCCCodeConfig; import com.miotlink.commom.network.mlcc.utils.MLCCReflectUtils; import com.miotlink.common.network.mlcc.pojo.response.RespSmartConnectedAck; import java.util.Map; public class ParseMLCCImpl_SmartConnected implements ParseMLCCInterface<RespSmartConnectedAck> { public static ParseMLCCImpl_SmartConnected parseMLCCImpl_SmartConnected; public static ParseMLCCImpl_SmartConnected getInstance(){ if (parseMLCCImpl_SmartConnected == null) { synchronized (ParseMLCCImpl_SmartConnected.class) { if (parseMLCCImpl_SmartConnected == null) { parseMLCCImpl_SmartConnected = new ParseMLCCImpl_SmartConnected(); } } } return parseMLCCImpl_SmartConnected; } @Override public RespSmartConnectedAck parse(Map<String, String> contentMap) throws Exception { RespSmartConnectedAck respSmartConnectedAck = (RespSmartConnectedAck) MLCCReflectUtils .setBeanUtils(contentMap, RespSmartConnectedAck.class); respSmartConnectedAck.make(contentMap); return respSmartConnectedAck; } @Override public String getMLCCCode() { // TODO Auto-generated method stub return MLCCCodeConfig.MLCCCodeReturn.SMART_CONNECTED; } }
[ "pm@miotlinl.com" ]
pm@miotlinl.com
db35663e199d86130adbc9879964cea2578d62ce
6c782bae57eb780adf62e46391582fc7d6b35af8
/modules/adwords_axis/src/main/java/com/google/api/ads/adwords/axis/v201802/cm/DraftAsyncErrorPage.java
7d2632956776438fe0a50cf3d4d22373225e714a
[ "Apache-2.0" ]
permissive
indranil32/googleads-java-lib
2685c35b8eb9d40fde64b8caafd58fe6ffdb4e9e
8425e81c6b7b8907a8e508e8f7d376fc7fd02eeb
refs/heads/master
2020-03-19T00:17:15.483205
2018-05-30T13:44:39
2018-05-30T13:44:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,685
java
// Copyright 2018 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /** * DraftAsyncErrorPage.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.adwords.axis.v201802.cm; /** * Contains a subset of DraftAsyncErrors resulting from the filtering * and paging of * {@link DraftAsyncErrorService#get} call. */ public class DraftAsyncErrorPage extends com.google.api.ads.adwords.axis.v201802.cm.Page implements java.io.Serializable , Iterable<com.google.api.ads.adwords.axis.v201802.cm.DraftAsyncError>{ private com.google.api.ads.adwords.axis.v201802.cm.DraftAsyncError[] entries; public DraftAsyncErrorPage() { } public DraftAsyncErrorPage( java.lang.Integer totalNumEntries, java.lang.String pageType, com.google.api.ads.adwords.axis.v201802.cm.DraftAsyncError[] entries) { super( totalNumEntries, pageType); this.entries = entries; } @Override public String toString() { return com.google.common.base.MoreObjects.toStringHelper(this.getClass()) .omitNullValues() // Only include length of entries to avoid overly verbose output .add("entries.length", getEntries() == null ? 0 : getEntries().length) .add("pageType", getPageType()) .add("totalNumEntries", getTotalNumEntries()) .toString(); } /** * Gets the entries value for this DraftAsyncErrorPage. * * @return entries */ public com.google.api.ads.adwords.axis.v201802.cm.DraftAsyncError[] getEntries() { return entries; } /** * Sets the entries value for this DraftAsyncErrorPage. * * @param entries */ public void setEntries(com.google.api.ads.adwords.axis.v201802.cm.DraftAsyncError[] entries) { this.entries = entries; } public com.google.api.ads.adwords.axis.v201802.cm.DraftAsyncError getEntries(int i) { return this.entries[i]; } public void setEntries(int i, com.google.api.ads.adwords.axis.v201802.cm.DraftAsyncError _value) { this.entries[i] = _value; } /** * Returns an iterator over this page's {@code entries} that: * <ul> * <li>Will not be {@code null}.</li> * <li>Will not support {@link java.util.Iterator#remove()}.</li> * </ul> * * @return a non-null iterator. */ @Override public java.util.Iterator<com.google.api.ads.adwords.axis.v201802.cm.DraftAsyncError> iterator() { if (entries == null) { return java.util.Collections.<com.google.api.ads.adwords.axis.v201802.cm.DraftAsyncError>emptyIterator(); } return java.util.Arrays.<com.google.api.ads.adwords.axis.v201802.cm.DraftAsyncError>asList(entries).iterator(); } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof DraftAsyncErrorPage)) return false; DraftAsyncErrorPage other = (DraftAsyncErrorPage) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = super.equals(obj) && ((this.entries==null && other.getEntries()==null) || (this.entries!=null && java.util.Arrays.equals(this.entries, other.getEntries()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = super.hashCode(); if (getEntries() != null) { for (int i=0; i<java.lang.reflect.Array.getLength(getEntries()); i++) { java.lang.Object obj = java.lang.reflect.Array.get(getEntries(), i); if (obj != null && !obj.getClass().isArray()) { _hashCode += obj.hashCode(); } } } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(DraftAsyncErrorPage.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201802", "DraftAsyncErrorPage")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("entries"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201802", "entries")); elemField.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201802", "DraftAsyncError")); elemField.setMinOccurs(0); elemField.setNillable(false); elemField.setMaxOccursUnbounded(true); typeDesc.addFieldDesc(elemField); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } /** * Get Custom Serializer */ public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanSerializer( _javaType, _xmlType, typeDesc); } /** * Get Custom Deserializer */ public static org.apache.axis.encoding.Deserializer getDeserializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanDeserializer( _javaType, _xmlType, typeDesc); } }
[ "jradcliff@users.noreply.github.com" ]
jradcliff@users.noreply.github.com
e27dc7aa96159e6aa87128c12f4be90d3bd68427
e5bb4c1c5cb3a385a1a391ca43c9094e746bb171
/Service/trunk/service/api-baseInfo/src/main/java/com/hzfh/api/baseInfo/service/CodeNeed2Service.java
cc35428994b791c52e43723930998ae3a9eb1e72
[]
no_license
FashtimeDotCom/huazhen
397143967ebed9d50073bfa4909c52336a883486
6484bc9948a29f0611855f84e81b0a0b080e2e02
refs/heads/master
2021-01-22T14:25:04.159326
2016-01-11T09:52:40
2016-01-11T09:52:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
647
java
package com.hzfh.api.baseInfo.service; import com.hzfh.api.baseInfo.model.CodeNeed2; import com.hzfh.api.baseInfo.model.query.CodeNeed2Condition; import com.hzframework.data.service.BaseService; /******************************************************************************* * * Copyright 2015 HZFH. All rights reserved. * Author: GuoZhenYu * Create Date: 2015/2/6 * Description: * * Revision History: * Date Author Description * ******************************************************************************/ public interface CodeNeed2Service extends BaseService<CodeNeed2, CodeNeed2Condition> { }
[ "ulei0343@163.com" ]
ulei0343@163.com
91c58b647c546297d8371389600db2b197aa1f1b
4e9c5e37a4380d5a11a27781187918a6aa31f3f9
/dse-db-all-6.7.0/org/apache/cassandra/utils/progress/jmx/JMXNotificationProgressListener.java
e9febaf908a8e51b77f3588eacbf4cf2a66dbdfa
[]
no_license
jiafu1115/dse67
4a49b9a0d7521000e3c1955eaf0911929bc90d54
62c24079dd5148e952a6ff16bc1161952c222f9b
refs/heads/master
2021-10-11T15:38:54.185842
2019-01-28T01:28:06
2019-01-28T01:28:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,402
java
package org.apache.cassandra.utils.progress.jmx; import java.util.Map; import javax.management.Notification; import javax.management.NotificationListener; import org.apache.cassandra.utils.progress.ProgressEvent; import org.apache.cassandra.utils.progress.ProgressEventType; import org.apache.cassandra.utils.progress.ProgressListener; public abstract class JMXNotificationProgressListener implements ProgressListener, NotificationListener { public JMXNotificationProgressListener() { } public abstract boolean isInterestedIn(String var1); public void handleNotificationLost(long timestamp, String message) { } public void handleConnectionClosed(long timestamp, String message) { } public void handleConnectionFailed(long timestamp, String message) { } public void handleNotification(Notification notification, Object handback) { String var3 = notification.getType(); byte var4 = -1; switch(var3.hashCode()) { case -1001078227: if(var3.equals("progress")) { var4 = 0; } break; case -739658258: if(var3.equals("jmx.remote.connection.notifs.lost")) { var4 = 1; } break; case -411860211: if(var3.equals("jmx.remote.connection.closed")) { var4 = 3; } break; case -336316962: if(var3.equals("jmx.remote.connection.failed")) { var4 = 2; } } switch(var4) { case 0: String tag = (String)notification.getSource(); if(this.isInterestedIn(tag)) { Map<String, Integer> progress = (Map)notification.getUserData(); String message = notification.getMessage(); ProgressEvent event = new ProgressEvent(ProgressEventType.values()[((Integer)progress.get("type")).intValue()], ((Integer)progress.get("progressCount")).intValue(), ((Integer)progress.get("total")).intValue(), message); this.progress(tag, event); } break; case 1: this.handleNotificationLost(notification.getTimeStamp(), notification.getMessage()); break; case 2: this.handleConnectionFailed(notification.getTimeStamp(), notification.getMessage()); break; case 3: this.handleConnectionClosed(notification.getTimeStamp(), notification.getMessage()); } } }
[ "superhackerzhang@sina.com" ]
superhackerzhang@sina.com
7232a4cb081cb2e965240197b594ef5f9e5b95bb
dd80a584130ef1a0333429ba76c1cee0eb40df73
/pdk/apps/HelloPDK/src/com/example/android/helloPDK/telephony/DialerActivity.java
3173120ecbaea1177510c8d732436e337fa7e265
[ "MIT" ]
permissive
karunmatharu/Android-4.4-Pay-by-Data
466f4e169ede13c5835424c78e8c30ce58f885c1
fcb778e92d4aad525ef7a995660580f948d40bc9
refs/heads/master
2021-03-24T13:33:01.721868
2017-02-18T17:48:49
2017-02-18T17:48:49
81,847,777
0
2
MIT
2020-03-09T00:02:12
2017-02-13T16:47:00
null
UTF-8
Java
false
false
1,641
java
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.example.android.helloPDK.telephony; import com.example.android.helloPDK.R; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; public class DialerActivity extends Activity { private EditText mText; private Button mButton; @Override protected void onCreate(Bundle savedInstanceState) { setContentView(R.layout.dialer); mText = (EditText)findViewById(R.id.editText_dialer); mButton = (Button)findViewById(R.id.button_dialer); mButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { Uri uri = Uri.parse("tel:" + mText.getText().toString()); Intent intent = new Intent(Intent.ACTION_CALL, uri); startActivity(intent); } }); super.onCreate(savedInstanceState); } }
[ "karun.matharu@gmail.com" ]
karun.matharu@gmail.com
6984b11e4eb5d1d378c6fc7c1461303c3318f5e1
e820097c99fb212c1c819945e82bd0370b4f1cf7
/gwt-sh/src/main/java/com/skynet/spms/manager/customerService/ExchangeService/Other/impl/ComponentFailureSafetyDataImpl.java
d0cddfbe8dff7722e9e65ad1f7fb2cdd4ae08a0b
[]
no_license
jayanttupe/springas-train-example
7b173ca4298ceef543dc9cf8ae5f5ea365431453
adc2e0f60ddd85d287995f606b372c3d686c3be7
refs/heads/master
2021-01-10T10:37:28.615899
2011-12-20T07:47:31
2011-12-20T07:47:31
36,887,613
0
0
null
null
null
null
UTF-8
Java
false
false
286
java
package com.skynet.spms.manager.customerService.ExchangeService.Other.impl; import com.skynet.spms.manager.customerService.ExchangeService.Other.ComponentFailureSafetyDataManager; public class ComponentFailureSafetyDataImpl implements ComponentFailureSafetyDataManager { }
[ "usedtolove@3b6edebd-8678-f8c2-051a-d8e859c3524d" ]
usedtolove@3b6edebd-8678-f8c2-051a-d8e859c3524d
e9f44837edb30fbe46e7ebfb548bf36ed6159138
ea061388a30ab0fdfa79440b3baceb838c13599e
/desenvolvimento/backend/src/test/java/com/ramon/catchup/repository/UsuarioRepositoryTest.java
617fe85b69ad73195d66d4217a49b66a733a7d45
[]
no_license
ramoncgusmao/catchup
dba577ade63609e955a661da2c120ed16e98b157
54bbd83236047d6bf1c519a752ed9c39cad20f24
refs/heads/master
2020-12-02T18:32:17.040628
2020-01-09T02:52:58
2020-01-09T02:52:58
231,079,941
0
0
null
null
null
null
UTF-8
Java
false
false
2,921
java
package com.ramon.catchup.repository; import static org.assertj.core.api.Assertions.assertThat; import java.util.Optional; import javax.persistence.EntityManager; import org.assertj.core.api.Assertions; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase; import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase.Replace; import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest; import org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManager; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.junit4.SpringRunner; import com.ramon.catchup.domain.Filial; import com.ramon.catchup.domain.Perfil; import com.ramon.catchup.domain.Usuario; @RunWith(SpringRunner.class) @DataJpaTest @AutoConfigureTestDatabase(replace = Replace.NONE) @ActiveProfiles("test") public class UsuarioRepositoryTest { @Autowired private UsuarioRepository repository; @Autowired TestEntityManager entityManager; @Test public void deveSalvarUmaUsuario() { Usuario usuario = criarUsuario(); entityManager.persist(usuario.getFilial()); usuario = repository.save(usuario); assertThat(usuario.getId()).isNotNull(); } @Test public void deveBuscarUmaUsuarioPorCpf() { Usuario usuario = criarUsuario(); criarCenarioFilialUsuario(usuario); Optional<Usuario> usuarioopt = repository.findByCpf("12312312325"); assertThat(usuarioopt).isPresent(); assertThat(usuarioopt.get().getNome()).contains("Ramon teste"); } @Test public void naoBuscarUmaUsuarioPorCpf() { Usuario usuario = criarUsuario(); criarCenarioFilialUsuario(usuario); Optional<Usuario> usuarioopt = repository.findByCpf("1211312325"); assertThat(usuarioopt).isEmpty(); } @Test public void naoDeveRetornarPorEmail() { Usuario usuario = criarUsuario(); criarCenarioFilialUsuario(usuario); assertThat(repository.findByEmail("ramong@gmail.com")).isNull(); } @Test public void deveRetornarPorEmail() { Usuario usuario = criarUsuario(); criarCenarioFilialUsuario(usuario); Usuario usuarioBuscar = repository.findByEmail("ramoncgusmao@gmail.com"); assertThat(usuarioBuscar).isNotNull(); assertThat(usuarioBuscar.getCpf()).contains("12312312325"); } private void criarCenarioFilialUsuario(Usuario usuario) { entityManager.persist(usuario.getFilial()); entityManager.persist(usuario); } public static Usuario criarUsuario() { Usuario usuario = new Usuario(); usuario.setNome("Ramon teste"); usuario.setSenha("senha 123"); usuario.setCpf("12312312325"); usuario.setEmail("ramoncgusmao@gmail.com"); usuario.setFilial(FilialRepositoryTest.criarFilial()); usuario.addPerfil(Perfil.ADMIN); return usuario; } }
[ "ramoncgusmao@gmail.com" ]
ramoncgusmao@gmail.com
4378b152090cf7762dc88e7d2a24c712f010b65e
316e7b55e04379c5534f1ec5ade1e7855671051b
/Lindley.DesarrolloxCliente/src/lindley/desarrolloxcliente/ws/bean/ConsultarResumenResponse.java
ef77dc235e2be2a08a8d7c839d1ddffdc9a6166f
[]
no_license
jels1988/msonicdroid
5a4d118703b1b3449086a67f9f412ca5505f90e9
eb36329e537c4963e1f6842d81f3c179fc8670e1
refs/heads/master
2021-01-10T09:02:11.276309
2013-07-18T21:16:08
2013-07-18T21:16:08
44,779,314
0
0
null
null
null
null
UTF-8
Java
false
false
401
java
package lindley.desarrolloxcliente.ws.bean; import java.util.ArrayList; import lindley.desarrolloxcliente.to.ResumenValueTO; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import net.msonic.lib.ResponseBase; public class ConsultarResumenResponse extends ResponseBase { @Expose() @SerializedName("DAT") public ArrayList<ResumenValueTO> datos; }
[ "mzegarra@gmail.com" ]
mzegarra@gmail.com
debf9679e585670a8c0b6de3bc0fff84e8dc8e0f
c474b03758be154e43758220e47b3403eb7fc1fc
/apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/google/android/m4b/maps/av/C4678g.java
6ac28dae777ec63585a2671b769355f0f906daef
[]
no_license
EstebanDalelR/tinderAnalysis
f80fe1f43b3b9dba283b5db1781189a0dd592c24
941e2c634c40e5dbf5585c6876ef33f2a578b65c
refs/heads/master
2020-04-04T09:03:32.659099
2018-11-23T20:41:28
2018-11-23T20:41:28
155,805,042
0
0
null
2018-11-18T16:02:45
2018-11-02T02:44:34
null
UTF-8
Java
false
false
669
java
package com.google.android.m4b.maps.av; import com.google.android.m4b.maps.ar.C4664b; /* renamed from: com.google.android.m4b.maps.av.g */ public final class C4678g { /* renamed from: a */ public static final C4664b f17152a = new C4664b(); /* renamed from: b */ public static final C4664b f17153b = new C4664b(); /* renamed from: c */ private static C4664b f17154c = new C4664b(); /* renamed from: d */ private static C4664b f17155d = new C4664b(); static { f17152a.m20850a(539, 1, f17154c); f17153b.m20850a(539, 1, f17155d); f17154c.m20850a(1043, 1, null); f17155d.m20850a(1059, 1, null); } }
[ "jdguzmans@hotmail.com" ]
jdguzmans@hotmail.com
ec42e9891da1af053807bb496a9b1b04fbda7979
7e0297895eed263dc7d73955f996823bb6724053
/ex-07-circuitbreaker/services/store-api/src/main/java/org/bookstore/store/domain/Author.java
a98da2d2cb31c7f66de840466fa8fe8fd17f40f8
[]
no_license
agoncal/agoncal-formation-microservices
a4fe3072e33f4275c12cd0b02d420e290eb523f1
a710c429044d7f1c50793d279c8b4143b0e07758
refs/heads/master
2020-03-30T03:07:22.217554
2018-10-05T18:43:47
2018-10-05T18:43:47
150,670,188
4
1
null
2018-11-12T11:01:05
2018-09-28T01:46:28
Java
UTF-8
Java
false
false
4,488
java
package org.bookstore.store.domain; import com.fasterxml.jackson.annotation.JsonIgnore; import org.bookstore.store.domain.enumeration.Language; import javax.persistence.*; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; import java.io.Serializable; import java.time.LocalDate; import java.util.HashSet; import java.util.Objects; import java.util.Set; /** * A Author. */ @Entity @Table(name = "str_author") public class Author implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequenceGenerator") @SequenceGenerator(name = "sequenceGenerator") private Long id; @NotNull @Size(min = 2, max = 50) @Column(name = "first_name", length = 50, nullable = false) private String firstName; @NotNull @Size(min = 2, max = 50) @Column(name = "last_name", length = 50, nullable = false) private String lastName; @Size(max = 5000) @Column(name = "bio", length = 5000) private String bio; @Column(name = "date_of_birth") private LocalDate dateOfBirth; @Enumerated(EnumType.STRING) @Column(name = "preferred_language") private Language preferredLanguage; @ManyToMany(mappedBy = "authors") @JsonIgnore private Set<Book> books = new HashSet<>(); // jhipster-needle-entity-add-field - JHipster will add fields here, do not remove public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getFirstName() { return firstName; } public Author firstName(String firstName) { this.firstName = firstName; return this; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public Author lastName(String lastName) { this.lastName = lastName; return this; } public void setLastName(String lastName) { this.lastName = lastName; } public String getBio() { return bio; } public Author bio(String bio) { this.bio = bio; return this; } public void setBio(String bio) { this.bio = bio; } public LocalDate getDateOfBirth() { return dateOfBirth; } public Author dateOfBirth(LocalDate dateOfBirth) { this.dateOfBirth = dateOfBirth; return this; } public void setDateOfBirth(LocalDate dateOfBirth) { this.dateOfBirth = dateOfBirth; } public Language getPreferredLanguage() { return preferredLanguage; } public Author preferredLanguage(Language preferredLanguage) { this.preferredLanguage = preferredLanguage; return this; } public void setPreferredLanguage(Language preferredLanguage) { this.preferredLanguage = preferredLanguage; } public Set<Book> getBooks() { return books; } public Author books(Set<Book> books) { this.books = books; return this; } public Author addBook(Book book) { this.books.add(book); book.getAuthors().add(this); return this; } public Author removeBook(Book book) { this.books.remove(book); book.getAuthors().remove(this); return this; } public void setBooks(Set<Book> books) { this.books = books; } // jhipster-needle-entity-add-getters-setters - JHipster will add getters and setters here, do not remove @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Author author = (Author) o; if (author.getId() == null || getId() == null) { return false; } return Objects.equals(getId(), author.getId()); } @Override public int hashCode() { return Objects.hashCode(getId()); } @Override public String toString() { return "Author{" + "id=" + getId() + ", firstName='" + getFirstName() + "'" + ", lastName='" + getLastName() + "'" + ", bio='" + getBio() + "'" + ", dateOfBirth='" + getDateOfBirth() + "'" + ", preferredLanguage='" + getPreferredLanguage() + "'" + "}"; } }
[ "antonio.goncalves@gmail.com" ]
antonio.goncalves@gmail.com
ddf5aa9a7b3f4260611ee75e64a93182d2b9e2c6
c37c3fa6b28887a979264fd28be33241c6ba9920
/edu.eafit.maestria.activa.tva/src/tva/mpeg21/_2011/DescriptionMetadataType.java
6e6c1b354da282b644787dfde2ef0397fd2b5a27
[]
no_license
wvelezva/tesisgitrepository
6d2e4410d7422015efde9dc40a0aaa3308830605
1296d4c2cabd5497cf83645e112f416fdd27c6db
refs/heads/master
2021-01-01T16:20:24.999410
2012-07-12T23:45:53
2012-07-12T23:45:53
2,657,973
0
0
null
null
null
null
UTF-8
Java
false
false
5,418
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2012.05.23 at 05:28:03 PM COT // package tva.mpeg21._2011; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** * <p>Java class for DescriptionMetadataType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="DescriptionMetadataType"> * &lt;complexContent> * &lt;extension base="{urn:tva:mpeg21:2011}DIABaseType"> * &lt;sequence> * &lt;element name="ClassificationSchemeAlias" maxOccurs="unbounded"> * &lt;complexType> * &lt;complexContent> * &lt;extension base="{urn:tva:mpeg21:2011}DIABaseType"> * &lt;attribute name="alias" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" /> * &lt;attribute name="href" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> * &lt;/extension> * &lt;/complexContent> * &lt;/complexType> * &lt;/element> * &lt;/sequence> * &lt;/extension> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DescriptionMetadataType", propOrder = { "classificationSchemeAlias" }) public class DescriptionMetadataType extends DIABaseType { @XmlElement(name = "ClassificationSchemeAlias", required = true) protected List<DescriptionMetadataType.ClassificationSchemeAlias> classificationSchemeAlias; /** * Gets the value of the classificationSchemeAlias 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 classificationSchemeAlias property. * * <p> * For example, to add a new item, do as follows: * <pre> * getClassificationSchemeAlias().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link DescriptionMetadataType.ClassificationSchemeAlias } * * */ public List<DescriptionMetadataType.ClassificationSchemeAlias> getClassificationSchemeAlias() { if (classificationSchemeAlias == null) { classificationSchemeAlias = new ArrayList<DescriptionMetadataType.ClassificationSchemeAlias>(); } return this.classificationSchemeAlias; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;extension base="{urn:tva:mpeg21:2011}DIABaseType"> * &lt;attribute name="alias" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" /> * &lt;attribute name="href" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> * &lt;/extension> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class ClassificationSchemeAlias extends DIABaseType { @XmlAttribute(name = "alias", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NMTOKEN") protected String alias; @XmlAttribute(name = "href", required = true) @XmlSchemaType(name = "anyURI") protected String href; /** * Gets the value of the alias property. * * @return * possible object is * {@link String } * */ public String getAlias() { return alias; } /** * Sets the value of the alias property. * * @param value * allowed object is * {@link String } * */ public void setAlias(String value) { this.alias = value; } /** * Gets the value of the href property. * * @return * possible object is * {@link String } * */ public String getHref() { return href; } /** * Sets the value of the href property. * * @param value * allowed object is * {@link String } * */ public void setHref(String value) { this.href = value; } } }
[ "wvelezva@gmail.com" ]
wvelezva@gmail.com
198e59f6c186a2d8be1bb2aba4a16199781e60d9
afc3a531b1aa528029e2d5c9834c1a2c0fc51235
/src/main/java/sonar/logistics/info/providers/fluids/AE2ExternalFluidProvider.java
4b36ce514bae2825a89312175cbc1ff308730ad6
[]
no_license
naluisio/Practical-Logistics
fd61800bcc0e1ffd1511e373c5b384386fc9323a
77853c064c9f2c5daf40328f3b7ff80c2d9e119b
refs/heads/master
2021-01-15T16:47:04.807243
2016-02-18T15:40:36
2016-02-18T15:40:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,046
java
package sonar.logistics.info.providers.fluids; import java.util.List; import net.minecraft.tileentity.TileEntity; import net.minecraftforge.common.util.ForgeDirection; import sonar.core.fluid.StoredFluidStack; import sonar.core.inventory.StoredItemStack; import sonar.core.utils.ActionType; import sonar.logistics.api.LogisticsAPI; import sonar.logistics.api.providers.FluidHandler; import sonar.logistics.api.providers.InventoryHandler; import sonar.logistics.integration.AE2Helper; import appeng.api.AEApi; import appeng.api.config.Actionable; import appeng.api.implementations.tiles.ITileStorageMonitorable; import appeng.api.networking.security.BaseActionSource; import appeng.api.networking.security.IActionHost; import appeng.api.networking.security.MachineSource; import appeng.api.storage.IExternalStorageHandler; import appeng.api.storage.IMEInventory; import appeng.api.storage.IMEMonitor; import appeng.api.storage.IStorageMonitorable; import appeng.api.storage.StorageChannel; import appeng.api.storage.data.IAEFluidStack; import appeng.api.storage.data.IAEItemStack; import appeng.api.storage.data.IItemList; import cpw.mods.fml.common.Loader; public class AE2ExternalFluidProvider extends FluidHandler { public static String name = "AE2-External-Inventory"; @Override public String getName() { return name; } @Override public boolean canHandleFluids(TileEntity tile, ForgeDirection dir) { IExternalStorageHandler handler = AEApi.instance().registries().externalStorage().getHandler(tile, dir, StorageChannel.FLUIDS, AE2Helper.sourceHandler); return handler != null; } @Override public boolean getFluids(List<StoredFluidStack> fluids, TileEntity tile, ForgeDirection dir) { IMEInventory inv = AE2Helper.getMEInventory(tile, dir, StorageChannel.FLUIDS); if (inv == null) { return false; } IItemList<IAEFluidStack> items = inv.getAvailableItems(AEApi.instance().storage().createFluidList()); if (items == null) { return false; } for (IAEFluidStack item : items) { LogisticsAPI.getFluidHelper().addFluidToList(fluids, AE2Helper.convertAEFluidStack(item)); } return true; } @Override public StoredFluidStack addStack(StoredFluidStack add, TileEntity tile, ForgeDirection dir, ActionType action) { IMEInventory inv = AE2Helper.getMEInventory(tile, dir, StorageChannel.FLUIDS); if (inv == null) { return add; } return AE2Helper.convertAEFluidStack(inv.injectItems(AE2Helper.convertStoredFluidStack(add), AE2Helper.getActionable(action), AE2Helper.sourceHandler)); } @Override public StoredFluidStack removeStack(StoredFluidStack remove, TileEntity tile, ForgeDirection dir, ActionType action) { IMEInventory inv = AE2Helper.getMEInventory(tile, dir, StorageChannel.FLUIDS); if (inv == null) { return remove; } return AE2Helper.convertAEFluidStack(inv.extractItems(AE2Helper.convertStoredFluidStack(remove), AE2Helper.getActionable(action), AE2Helper.sourceHandler)); } public boolean isLoadable() { return Loader.isModLoaded("appliedenergistics2"); } }
[ "ollielansdell@hotmail.co.uk" ]
ollielansdell@hotmail.co.uk
65359c5e2e554b4dc5b0b2cbbd68f2112668bbca
f1d20d6c7e6ec5ed491274fcc11e74bb010c57d3
/company-central-client/src/main/java/com/ihappy/partner/domain/dto/request/partner/AddInvateRegisterPartnerReqDTO.java
1c78788f8038cc417fcf03538c9ee3321823aaa7
[]
no_license
P79N6A/company-central
79273c8e90732cf73f2f8b08c006654809e08736
f1a83f62a5cf41f8bfcf79c708a54d736fb1a46b
refs/heads/master
2020-04-12T02:41:38.769868
2018-12-18T07:45:31
2018-12-18T07:45:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,311
java
package com.ihappy.partner.domain.dto.request.partner; import com.ihappy.partner.exception.PartnerException; import com.ihappy.company.common.enumtype.CompanyErrorCodeEnum; import com.ihappy.gateway.dto.ICallRequestBaseDTO; import com.ihappy.partner.common.enumtype.PartnerErrorCodeEnum; import java.util.Date; /** * Created by sunjd on 2018/6/12. * 添加邀请注册的 供应商/客户 */ public class AddInvateRegisterPartnerReqDTO extends ICallRequestBaseDTO { private static final long serialVersionUID = -4152529590227121069L; /** * 发起邀请公司di */ private Long compId; /** * 接受邀请注册公司id */ private Long partnerCompId; /** * 0、供应商 1、客户 2、零售会员 */ private Integer partnerType; /** * 被邀请注册公司手机号 */ private String registerCompanyMobile; /** * 伙伴名称 */ private String partnerName; /** * 消息发送用户 */ private Long receiveUserId; /** * 1.已存在(不需要设置密码)2.不存在(密码必传) */ private Integer registType; public Integer getRegistType() { return registType; } public void setRegistType(Integer registType) { this.registType = registType; } public Long getReceiveUserId() { return receiveUserId; } public void setReceiveUserId(Long receiveUserId) { this.receiveUserId = receiveUserId; } public Long getCompId() { return compId; } public void setCompId(Long compId) { this.compId = compId; } public Long getPartnerCompId() { return partnerCompId; } public void setPartnerCompId(Long partnerCompId) { this.partnerCompId = partnerCompId; } public Integer getPartnerType() { return partnerType; } public void setPartnerType(Integer partnerType) { this.partnerType = partnerType; } public String getRegisterCompanyMobile() { return registerCompanyMobile; } public void setRegisterCompanyMobile(String registerCompanyMobile) { this.registerCompanyMobile = registerCompanyMobile; } public String getPartnerName() { return partnerName; } public void setPartnerName(String partnerName) { this.partnerName = partnerName; } @Override public void validation() { if (compId == null) { throw new PartnerException(CompanyErrorCodeEnum. COMPANY_ID_IS_NULL.getErrCode(), CompanyErrorCodeEnum.COMPANY_ID_IS_NULL.getErrMsg()); } if (partnerCompId == null) { throw new PartnerException(PartnerErrorCodeEnum. PARTNER_COMPANY_ID_IS_NULL.getErrCode(), PartnerErrorCodeEnum.PARTNER_COMPANY_ID_IS_NULL.getErrMsg()); } if (partnerType == null){ throw new PartnerException(PartnerErrorCodeEnum. PARTNER_TYPE_IS_NULL.getErrCode(), PartnerErrorCodeEnum.PARTNER_TYPE_IS_NULL.getErrMsg()); } if (registType == null){ registType = 1; } setCreateTime(new Date()); setUpdateTime(new Date()); } }
[ "zhangmengdan@ihappy.net.cn" ]
zhangmengdan@ihappy.net.cn
9a56d1d35212efb190b33e7f41cce800986815e5
421f0a75a6b62c5af62f89595be61f406328113b
/generated_tests/no_seeding/85_shop-umd.cs.shop.JSListOperators-1.0-2/umd/cs/shop/JSListOperators_ESTest_scaffolding.java
5f40e36469e77bc88918b1170b568a4669a42551
[]
no_license
tigerqiu712/evosuite-model-seeding-empirical-evaluation
c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6
11a920b8213d9855082d3946233731c843baf7bc
refs/heads/master
2020-12-23T21:04:12.152289
2019-10-30T08:02:29
2019-10-30T08:02:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
533
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Mon Oct 28 15:00:29 GMT 2019 */ package umd.cs.shop; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; import org.evosuite.runtime.sandbox.Sandbox; import org.evosuite.runtime.sandbox.Sandbox.SandboxMode; @EvoSuiteClassExclude public class JSListOperators_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pderakhshanfar@bsr01.win.tue.nl" ]
pderakhshanfar@bsr01.win.tue.nl
04b1e481a009f53f97f52c181dbe6a800c03fa23
8818d6a1111866a7e4ea525abdd881916c389ade
/src/main/java/com/blastedstudios/scab/ai/bt/actions/Aim.java
6d9d9d891b2117cee80729a953b550f2fe6b3113
[]
no_license
narfman0/scab
5994ce446fce31d023781f74b406aaf60f4d22b2
8210cf6f6321f475fc46d957947e16d1af0496ee
refs/heads/master
2021-01-10T07:00:28.536296
2016-08-20T05:49:10
2016-08-20T05:49:10
51,808,220
0
0
null
null
null
null
UTF-8
Java
false
false
1,850
java
// ******************************************************* // MACHINE GENERATED CODE // DO NOT MODIFY // // Generated on 11/15/2014 22:29:17 // ******************************************************* package com.blastedstudios.scab.ai.bt.actions; /** ModelAction class created from MMPM action Aim. */ public class Aim extends jbt.model.task.leaf.action.ModelAction { /** * Value of the parameter "target" in case its value is specified at * construction time. null otherwise. */ private float[] target; /** * Location, in the context, of the parameter "target" in case its value is * not specified at construction time. null otherwise. */ private java.lang.String targetLoc; /** * Constructor. Constructs an instance of Aim. * * @param target * value of the parameter "target", or null in case it should be * read from the context. If null, <code>targetLoc</code> cannot * be null. * @param targetLoc * in case <code>target</code> is null, this variable represents * the place in the context where the parameter's value will be * retrieved from. */ public Aim(jbt.model.core.ModelTask guard, float[] target, java.lang.String targetLoc) { super(guard); this.target = target; this.targetLoc = targetLoc; } /** * Returns a com.blastedstudios.scab.ai.bt.actions.execution.Aim task that * is able to run this task. */ public jbt.execution.core.ExecutionTask createExecutor( jbt.execution.core.BTExecutor executor, jbt.execution.core.ExecutionTask parent) { return new com.blastedstudios.scab.ai.bt.actions.execution.Aim(this, executor, parent, this.target, this.targetLoc); } }
[ "narfman0@gmail.com" ]
narfman0@gmail.com
b7793459241b15d2340d8dce83fafb397a766925
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.mm/classes.jar/com/tencent/mm/plugin/textstatus/ui/TextStatusEditActivity$$ExternalSyntheticLambda14.java
080329d5052646eb234483eb54ca1014c751f003
[]
no_license
tsuzcx/qq_apk
0d5e792c3c7351ab781957bac465c55c505caf61
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
refs/heads/main
2022-07-02T10:32:11.651957
2022-02-01T12:41:38
2022-02-01T12:41:38
453,860,108
36
9
null
2022-01-31T09:46:26
2022-01-31T02:43:22
Java
UTF-8
Java
false
false
509
java
package com.tencent.mm.plugin.textstatus.ui; import android.view.View; import android.view.View.OnClickListener; public final class TextStatusEditActivity$$ExternalSyntheticLambda14 implements View.OnClickListener { public final void onClick(View arg1) {} } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes5.jar * Qualified Name: com.tencent.mm.plugin.textstatus.ui.TextStatusEditActivity..ExternalSyntheticLambda14 * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
aeb04afd49522e72ffca57ab736218e222ec6f8e
7e43011c818cd95460e02930bec0981b65d032c7
/src/main/java/com/github/badoualy/telegram/tl/api/TLInputGameShortName.java
ad1f836463c0a8792105fd1255c316b78b74b3a8
[ "MIT" ]
permissive
shahrivari/kotlogram
48faef9ff5cf1695c18cf02fb4fb3ed8edcc571e
2281523c2a99692087bdcf6b2034bca6b2dc645c
refs/heads/master
2020-09-07T11:37:15.597377
2019-11-10T12:18:56
2019-11-10T12:18:56
220,767,354
0
2
MIT
2019-11-10T09:20:24
2019-11-10T09:20:23
null
UTF-8
Java
false
false
2,429
java
package com.github.badoualy.telegram.tl.api; import com.github.badoualy.telegram.tl.TLContext; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import static com.github.badoualy.telegram.tl.StreamUtils.readTLObject; import static com.github.badoualy.telegram.tl.StreamUtils.readTLString; import static com.github.badoualy.telegram.tl.StreamUtils.writeString; import static com.github.badoualy.telegram.tl.StreamUtils.writeTLObject; import static com.github.badoualy.telegram.tl.TLObjectUtils.SIZE_CONSTRUCTOR_ID; import static com.github.badoualy.telegram.tl.TLObjectUtils.computeTLStringSerializedSize; /** * @author Yannick Badoual yann.badoual@gmail.com * @see <a href="http://github.com/badoualy/kotlogram">http://github.com/badoualy/kotlogram</a> */ public class TLInputGameShortName extends TLAbsInputGame { public static final int CONSTRUCTOR_ID = 0xc331e80a; protected TLAbsInputUser botId; protected String shortName; private final String _constructor = "inputGameShortName#c331e80a"; public TLInputGameShortName() { } public TLInputGameShortName(TLAbsInputUser botId, String shortName) { this.botId = botId; this.shortName = shortName; } @Override public void serializeBody(OutputStream stream) throws IOException { writeTLObject(botId, stream); writeString(shortName, stream); } @Override @SuppressWarnings({"unchecked", "SimplifiableConditionalExpression"}) public void deserializeBody(InputStream stream, TLContext context) throws IOException { botId = readTLObject(stream, context, TLAbsInputUser.class, -1); shortName = readTLString(stream); } @Override public int computeSerializedSize() { int size = SIZE_CONSTRUCTOR_ID; size += botId.computeSerializedSize(); size += computeTLStringSerializedSize(shortName); return size; } @Override public String toString() { return _constructor; } @Override public int getConstructorId() { return CONSTRUCTOR_ID; } public TLAbsInputUser getBotId() { return botId; } public void setBotId(TLAbsInputUser botId) { this.botId = botId; } public String getShortName() { return shortName; } public void setShortName(String shortName) { this.shortName = shortName; } }
[ "yann.badoual@gmail.com" ]
yann.badoual@gmail.com
db7e6701eeb5f3a9db21ad7bd2842ee5b2d25f0a
e17dd7ee84962730b9f2b7c724b8f9dc4f857ab6
/beautyeye_lnf/src/main/java/org/jb2011/lnf/beautyeye/ch3_button/__Icon9Factory__.java
0b2813e48d711c99c40e99271878e0179fb27bdd
[ "Apache-2.0" ]
permissive
lnwazg/SWING-POM
3ddade53497af03e6b86c06022f1892f40018527
12790a3a18c7d1ead046d1061aaff4a45dba5362
refs/heads/master
2022-12-15T02:49:32.565730
2019-08-29T12:01:04
2019-08-29T12:01:04
149,766,495
1
0
Apache-2.0
2022-12-05T23:54:29
2018-09-21T13:21:14
Java
UTF-8
Java
false
false
4,247
java
/* * Copyright (C) 2015 Jack Jiang(cngeeker.com) The BeautyEye Project. * All rights reserved. * Project URL:https://github.com/JackJiang2011/beautyeye * Version 3.6 * * Jack Jiang PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * __Icon9Factory__.java at 2015-2-1 20:25:40, original version by Jack Jiang. * You can contact author with jb2011@163.com. */ package org.jb2011.lnf.beautyeye.ch3_button; import org.jb2011.lnf.beautyeye.utils.NinePatchHelper; import org.jb2011.lnf.beautyeye.utils.RawCache; import org.jb2011.ninepatch4j.NinePatch; /** * NinePatch图片(*.9.png)工厂类. * * @author Jack Jiang * @version 1.0 */ public class __Icon9Factory__ extends RawCache<NinePatch> { /** 相对路径根(默认是相对于本类的相对物理路径). */ public final static String IMGS_ROOT = "imgs/np"; /** The instance. */ private static __Icon9Factory__ instance = null; /** * Gets the single instance of __Icon9Factory__. * * @return single instance of __Icon9Factory__ */ public static __Icon9Factory__ getInstance() { if (instance == null) instance = new __Icon9Factory__(); return instance; } /* (non-Javadoc) * @see org.jb2011.lnf.beautyeye.utils.RawCache#getResource(java.lang.String, java.lang.Class) */ @Override protected NinePatch getResource(String relativePath, Class baseClass) { return NinePatchHelper.createNinePatch(baseClass.getResource(relativePath), false); } /** * Gets the raw. * * @param relativePath the relative path * @return the raw */ public NinePatch getRaw(String relativePath) { return getRaw(relativePath, this.getClass()); } /** * Gets the button icon_ normal green. * * @return the button icon_ normal green */ public NinePatch getButtonIcon_NormalGreen() { return getRaw(IMGS_ROOT + "/btn_special_default.9.png"); } /** * Gets the button icon_ normal gray. * * @return the button icon_ normal gray */ public NinePatch getButtonIcon_NormalGray() { return getRaw(IMGS_ROOT + "/btn_general_default.9.png"); } /** * Gets the button icon_ disable gray. * * @return the button icon_ disable gray */ public NinePatch getButtonIcon_DisableGray() { return getRaw(IMGS_ROOT + "/btn_special_disabled.9.png"); } /** * Gets the button icon_ pressed orange. * * @return the button icon_ pressed orange */ public NinePatch getButtonIcon_PressedOrange() { return getRaw(IMGS_ROOT + "/btn_general_pressed.9.png"); } /** * Gets the button icon_rover. * * @return the button icon_rover */ public NinePatch getButtonIcon_rover() { return getRaw(IMGS_ROOT + "/btn_general_rover.9.png"); } /** * Gets the button icon_ normal light blue. * * @return the button icon_ normal light blue */ public NinePatch getButtonIcon_NormalLightBlue() { return getRaw(IMGS_ROOT + "/btn_special_lightblue.9.png"); } /** * Gets the button icon_ normal red. * * @return the button icon_ normal red */ public NinePatch getButtonIcon_NormalRed() { return getRaw(IMGS_ROOT + "/btn_special_red.9.png"); } /** * Gets the button icon_ normal blue. * * @return the button icon_ normal blue */ public NinePatch getButtonIcon_NormalBlue() { return getRaw(IMGS_ROOT + "/btn_special_blue.9.png"); } /** * Gets the toggle button icon_ checked green. * * @return the toggle button icon_ checked green */ public NinePatch getToggleButtonIcon_CheckedGreen() { return getRaw(IMGS_ROOT + "/toggle_button_selected.9.png"); } /** * Gets the toggle button icon_ rover green. * * @return the toggle button icon_ rover green */ public NinePatch getToggleButtonIcon_RoverGreen() { return getRaw(IMGS_ROOT + "/toggle_button_rover.9.png"); } }
[ "lnwazg@126.com" ]
lnwazg@126.com
e5b8b815e270a934aa2c806c288a2c094b70635b
a52151cd45a37c24513a72397bbb08bc01678bbd
/src/main/java/com/bosssoft/install/nontax/windows/action/InitConfig.java
37ed4c3f3e4c3a928f6d5756d9379a8460cd25f3
[]
no_license
105032013072/notax_windows_install_new
51e42826a99af01c2ce0f269531c1202e64a3db9
257b4ed5679f43ea7000827000351cc009a6c16a
refs/heads/master
2021-01-01T04:38:40.198160
2017-09-13T11:42:22
2017-09-13T11:42:22
97,217,825
0
0
null
null
null
null
UTF-8
Java
false
false
2,730
java
package com.bosssoft.install.nontax.windows.action; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStreamWriter; import java.io.StringWriter; import java.util.Map; import java.util.Properties; import org.apache.log4j.Logger; import org.apache.velocity.Template; import org.apache.velocity.VelocityContext; import org.apache.velocity.app.Velocity; import org.apache.velocity.app.VelocityEngine; import com.bosssoft.platform.installer.core.IContext; import com.bosssoft.platform.installer.core.InstallException; import com.bosssoft.platform.installer.core.action.IAction; import com.bosssoft.platform.installer.core.util.ExpressionParser; public class InitConfig implements IAction{ transient Logger logger = Logger.getLogger(getClass()); public void execute(IContext context, Map params) throws InstallException { String initFiles=params.get("INIT_FILES").toString(); String[] files=initFiles.split(","); for (String ifile : files) { Properties p=new Properties(); try{ InputStream fis=new FileInputStream(ifile); p.load(fis); fis.close(); String appConfig=p.getProperty("APP_CONFIG"); String conftemp=p.getProperty("CONFIG_TEMPLET"); String tempVars=p.getProperty("TEMPLET_variables"); doinit(appConfig,conftemp,tempVars,context); }catch(Exception e){ e.printStackTrace(); } } } private void doinit(String appConfig, String conftemp, String tempVars,IContext context) { appConfig=ExpressionParser.parseString(appConfig); conftemp=ExpressionParser.parseString(conftemp); File f=new File(conftemp); Properties p = new Properties(); // 初始化默认加载路径为:D:/template p.setProperty(VelocityEngine.FILE_RESOURCE_LOADER_PATH, f.getParent()); p.setProperty(Velocity.ENCODING_DEFAULT, "UTF-8"); p.setProperty(Velocity.OUTPUT_ENCODING, "UTF-8"); // 初始化Velocity引擎,init对引擎VelocityEngine配置了一组默认的参数 Velocity.init(p); Template t = Velocity.getTemplate(f.getName()); VelocityContext vc = new VelocityContext(); String[] vars=tempVars.split(","); for (String v : vars) { vc.put(v, context.getStringValue(v)); } StringWriter writer = new StringWriter(); t.merge(vc, writer); try { BufferedWriter bw = new BufferedWriter (new OutputStreamWriter (new FileOutputStream(appConfig))); bw.write (writer.toString()); bw.close(); } catch (IOException e) { this.logger.error(e); } } public void rollback(IContext context, Map params) throws InstallException { } }
[ "1337893145@qq.com" ]
1337893145@qq.com
491cb25ff3d83a6975c3919ef582edd27c8f90f8
17107bfc937d9d283e4846b87eb725b3fe6a9250
/src/main/java/edu/ucsf/rbvi/scNetViz/internal/api/StringMatrix.java
d02c8ef78bad4da25020e0d420cbfa0fb32713bd
[ "Apache-2.0" ]
permissive
RBVI/scNetViz
6b9713c632afd5f731a2a0df08613262c684cffa
336ac63775f80a9842867f6005a3dc95622ed3fb
refs/heads/master
2022-06-20T16:10:19.128310
2022-05-17T16:47:39
2022-05-17T16:47:39
154,605,796
7
3
Apache-2.0
2021-08-02T17:17:21
2018-10-25T03:37:46
Java
UTF-8
Java
false
false
445
java
package edu.ucsf.rbvi.scNetViz.internal.api; public interface StringMatrix extends Matrix { public String[][] getStringMatrix(); public String[][] getStringMatrix(boolean tranpose); public String[][] getStringMatrix(boolean tranpose, boolean excludeControls); public String getValue(String rowLabel, String colLabel); public String getValue(int rowIndex, int colIndex); public default Class<?> getMatrixClass() { return String.class; } }
[ "scooter@cgl.ucsf.edu" ]
scooter@cgl.ucsf.edu
467666fb7e2991ccb5e6a95fbb8a65bd428e8d18
df58a5796a20f59942d4decb01ee9ee61b584e15
/java/StructuralDP/FacadeDesign/BankAccountFacade.java
f2d0aa83902d703e02effb8436684904e4088654
[]
no_license
daudzaidi/interview
30da34f934902f0e871f485a9a9bd631b38174ed
7beb4c632fbad1d3d73f30d31c2fb2428ec05c5f
refs/heads/master
2021-01-23T00:28:55.941874
2017-01-16T17:54:06
2017-01-16T17:54:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,677
java
package StructuralDP.FacadeDesign; /** * Created by shalvi on 09/04/16. */ public class BankAccountFacade { private int accountNumber; private int securityCode; AccountNumberCheck accountChecker; SecurityCodeCheck codeChecker; FundsCheck fundsChecker; WelcomeToBank welcomeToBank; public BankAccountFacade(int accountNUmber, int securityCode){ this.accountNumber = accountNUmber; this.securityCode = securityCode; welcomeToBank = new WelcomeToBank(); accountChecker = new AccountNumberCheck(); codeChecker = new SecurityCodeCheck(); fundsChecker = new FundsCheck(); } public int getAccountNumber() { return accountNumber; } public int getSecurityCode() { return securityCode; } public void withdrawCash(double cashToGet){ if(accountChecker.accountActive(getAccountNumber()) && codeChecker.isCodeCorrect(getSecurityCode()) && fundsChecker.haveEnoughMoney(cashToGet)){ System.out.println("TRANSACTION COMPLETED"); System.out.println(); } else{ System.out.println("TRANSACTION FAILED"); System.out.println(); } } public void depositCash(double cashToDeposit){ if(accountChecker.accountActive(getAccountNumber()) && codeChecker.isCodeCorrect(getSecurityCode())){ fundsChecker.makeDeposit(cashToDeposit); System.out.println("TRANSACTION COMPLETED"); System.out.println(); } else{ System.out.println("TRANSACTION FAILED"); System.out.println(); } } }
[ "shyamsunderpandita@SHYAMs-MacBook-Pro.local" ]
shyamsunderpandita@SHYAMs-MacBook-Pro.local
11b15cad7d0d3d32bb76c05a7714edef45df5e07
ed5159d056e98d6715357d0d14a9b3f20b764f89
/test/irvine/oeis/a150/A150549Test.java
f517ab7a3b85fa072292cedbe0f378b6c30d504a
[]
no_license
flywind2/joeis
c5753169cf562939b04dd246f8a2958e97f74558
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
refs/heads/master
2020-09-13T18:34:35.080552
2019-11-19T05:40:55
2019-11-19T05:40:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
256
java
package irvine.oeis.a150; import irvine.oeis.AbstractSequenceTest; /** * Tests the corresponding class. * @author Sean A. Irvine */ public class A150549Test extends AbstractSequenceTest { @Override protected int maxTerms() { return 10; } }
[ "sairvin@gmail.com" ]
sairvin@gmail.com
406938af23a42597ab53f5e1493e483ba9f696cb
d9d7bf3d0dca265c853cb58c251ecae8390135e0
/gcld/src/com/reign/gcld/slave/service/ISlaveService.java
cfdf81eef37fe1bfcb642f966f89de1907ba047b
[]
no_license
Crasader/workspace
4da6bd746a3ae991a5f2457afbc44586689aa9d0
28e26c065a66b480e5e3b966be4871b44981b3d8
refs/heads/master
2020-05-04T21:08:49.911571
2018-11-19T08:14:27
2018-11-19T08:14:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
973
java
package com.reign.gcld.slave.service; import com.reign.gcld.player.dto.*; import com.reign.gcld.slave.domain.*; public interface ISlaveService { byte[] getSlaveInfo(final PlayerDto p0); byte[] lash(final PlayerDto p0, final int p1); byte[] makeCell(final PlayerDto p0); byte[] escape(final PlayerDto p0, final int p1); byte[] viewMaster(final PlayerDto p0, final int p1); byte[] freedom(final PlayerDto p0, final int p1); byte[] updateLimbo(final PlayerDto p0); byte[] updateLashLv(final int p0); boolean dealSlave(final String p0); void escapeJob(final String p0); void resetSlaveSystem(final int p0); boolean haveLimboPic(final int p0, final int p1); void addLimboPic(final int p0, final int p1, final int p2); void addPoint(final Slaveholder p0); byte[] useInTaril(final PlayerDto p0); byte[] getTrailGold(final PlayerDto p0); }
[ "359569198@qq.com" ]
359569198@qq.com
d3e01faca0aca382aa2fba00288cb3a4505db602
6b3a781d420c88a3a5129638073be7d71d100106
/AdProxyPersist/src/main/java/com/ocean/persist/api/proxy/helian/HelianAdPuller.java
93d35cfc3b6587f39106198f90b25022da2d0f87
[]
no_license
Arthas-sketch/FrexMonitor
02302e8f7be1a68895b9179fb3b30537a6d663bd
125f61fcc92f20ce948057a9345432a85fe2b15b
refs/heads/master
2021-10-26T15:05:59.996640
2019-04-13T07:52:57
2019-04-13T07:52:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,992
java
package com.ocean.persist.api.proxy.helian; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import com.ocean.core.common.JsonUtils; import com.ocean.core.common.http.Bean2Utils; import com.ocean.core.common.http.HttpClient; import com.ocean.core.common.http.HttpInvokeException; import com.ocean.core.common.system.SystemContext; import com.ocean.core.common.threadpool.Parameter; import com.ocean.persist.api.proxy.AdPullException; import com.ocean.persist.api.proxy.AdPullParams; import com.ocean.persist.api.proxy.AdPullResponse; import com.ocean.persist.api.proxy.AdPuller; import com.ocean.persist.api.proxy.AdPullerBase; import com.ocean.persist.common.ProxyConstants; /** * @author Alex & E-mail:569246607@qq.com @date 2017年6月15日 @version 1.0 */ @Component(value="helianAdPuller") public class HelianAdPuller extends AdPullerBase{ public AdPullResponse api(Parameter params,String ... exts) throws AdPullException { StringBuilder url = new StringBuilder(); url.append(SystemContext.getDynamicPropertyHandler().get(ProxyConstants.HELIAN_URL)); url.append("?").append(Bean2Utils.toHttpParams(params)); logger.info("joinDSP:helian {} request param:{}",exts,url.toString()); HelianAdPullResponse data; try { String result = HttpClient.getInstance().get(url.toString()); if(StringUtils.isEmpty(result)){ return null; } data = JsonUtils.toBean(result, HelianAdPullResponse.class); logger.info("joinDSP:helian {} reply result:{}",exts,result); } catch (HttpInvokeException e) { throw new AdPullException(e.getCode(),"HttpInvokeException,"+e.getMessage()); } if(data == null){ throw new AdPullException("ad request fairled,return empty!"); } return data; } public boolean supports(Parameter params) throws AdPullException { return HelianAdPullParams.class .isAssignableFrom(params.getClass()); } }
[ "569246607@qq.com" ]
569246607@qq.com
30a41331274da687e597130e7de45d5cc8413f0b
8ae5724181c622b509e8456fe243dab3a840552c
/app/src/main/java/indexfragment/WashServiceIntroduce.java
8a541729fd45e31b8caa396b1355e3eae1c16a51
[]
no_license
youareapig/MyProject
b933aee74b91408fb68b0dbcb8f42de12bfbd650
f0800c32b1564eac1060dc1f9027db7290f25642
refs/heads/master
2021-01-12T16:24:41.023858
2017-01-06T01:21:18
2017-01-06T01:21:18
71,990,504
0
0
null
null
null
null
UTF-8
Java
false
false
1,228
java
package indexfragment; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.myproject.R; import myview.WashStep; /** * Created by Administrator on 2016/11/2 0002. */ public class WashServiceIntroduce extends Fragment { private WashStep step1, step2, step3; @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View view = inflater.inflate(R.layout.washservice_introduce, container, false); step1 = (WashStep) view.findViewById(R.id.step1); step2 = (WashStep) view.findViewById(R.id.step2); step3 = (WashStep) view.findViewById(R.id.step3); step1.setTextView("步骤1:洗车洗车洗车洗车洗车"); step1.setImageView(R.mipmap.washstep); step2.setTextView("步骤1:洗车洗车洗车洗车洗车"); step2.setImageView(R.mipmap.washstep); step3.setTextView("步骤1:洗车洗车洗车洗车洗车"); step3.setImageView(R.mipmap.washstep); return view; } }
[ "840855165@qq.com" ]
840855165@qq.com
09a8439764d67cbf994f86b4ab78a6c004fc66e0
6482753b5eb6357e7fe70e3057195e91682db323
/io/netty/util/internal/shaded/org/jctools/queues/BaseLinkedQueuePad0.java
bc533c2cbb671fd3663e908ad1ac133ee2fd2502
[]
no_license
TheShermanTanker/Server-1.16.3
45cf9996afa4cd4d8963f8fd0588ae4ee9dca93c
48cc08cb94c3094ebddb6ccfb4ea25538492bebf
refs/heads/master
2022-12-19T02:20:01.786819
2020-09-18T21:29:40
2020-09-18T21:29:40
296,730,962
0
1
null
null
null
null
UTF-8
Java
false
false
403
java
package io.netty.util.internal.shaded.org.jctools.queues; import java.util.AbstractQueue; abstract class BaseLinkedQueuePad0<E> extends AbstractQueue<E> implements MessagePassingQueue<E> { long p00; long p01; long p02; long p03; long p04; long p05; long p06; long p07; long p10; long p11; long p12; long p13; long p14; long p15; long p16; }
[ "tanksherman27@gmail.com" ]
tanksherman27@gmail.com
2c294ba68d7634ae068175ada8bd00f89efbd689
a9a16c8aff5943bc41759bcb1a14886c21916747
/core/src/main/java/org/vertexium/path/PathFindingAlgorithm.java
57a15412653465cdda5c2a5282c3a54b5a3e914f
[ "Apache-2.0" ]
permissive
amccurry/vertexium
322104e657ab4866fa4ea21575de2a3dc5305b45
d8338c420f8e6cf7f6e1d5577803df977a830aaf
refs/heads/master
2020-12-31T03:41:07.063489
2015-04-22T13:04:33
2015-04-22T13:04:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
279
java
package org.vertexium.path; import org.vertexium.*; import org.vertexium.*; public interface PathFindingAlgorithm { Iterable<Path> findPaths(Graph graph, Vertex sourceVertex, Vertex destVertex, int hops, ProgressCallback progressCallback, Authorizations authorizations); }
[ "joe@fernsroth.com" ]
joe@fernsroth.com
7e1cfcff267b6c148fdb816dacff63e5f21571e5
6c466d86b1e13f640b11b553d7139d3f037deae5
/fstcomp/examples/Modification/BerkeleyDB/project/src/com/sleepycat/bind/je/utilint/NotImplementedYetException.java
45d02ca903154fa46cad3a0bf557aff01b00ca37
[]
no_license
seanhoots/formol-featurehouse
a30af2f517fdff6a95c0f4a6b4fd9902aeb46f96
0cddc85e061398d6d653e4a4607d7e0f4c28fcc4
refs/heads/master
2021-01-17T06:35:11.489248
2012-03-08T13:51:46
2012-03-08T13:51:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
338
java
package com.sleepycat.je.utilint; import de.ovgu.cide.jakutil.*; public class NotImplementedYetException extends RuntimeException { public NotImplementedYetException(){ super(); } public NotImplementedYetException( String message){ super(message); } private Tracer t = new Tracer(); public Tracer getTracer(){return t;} }
[ "boxleitn" ]
boxleitn
c2532a9e465a9894487ac85e9cd853c8c3519e5b
2f0905644ee7282dab0c5a9f2ea11aa1c96d50b1
/app/src/main/java/com/bozhengjianshe/shenghuobang/ui/activity/InspectionDetailActivity.java
763023a6c4ae136dd15e6d49363e05145d8c31c3
[]
no_license
chenzhiwei152/LifeHelp
b9ad701d9ced896ba71da41b1afde8a207ecfb26
4fa8672bd0df2bb8c81c9fa1aeaaf6bb8fbcd653
refs/heads/master
2021-09-15T02:51:02.183118
2018-05-24T12:55:20
2018-05-24T12:55:20
107,953,145
0
0
null
null
null
null
UTF-8
Java
false
false
1,234
java
package com.bozhengjianshe.shenghuobang.ui.activity; import android.support.v7.widget.RecyclerView; import android.view.View; import com.bozhengjianshe.shenghuobang.R; import com.bozhengjianshe.shenghuobang.base.BaseActivity; import com.bozhengjianshe.shenghuobang.base.EventBusCenter; import com.bozhengjianshe.shenghuobang.view.TitleBar; import butterknife.BindView; /** * 巡检详情 * Created by chen.zhiwei on 2018-3-20. */ public class InspectionDetailActivity extends BaseActivity { @BindView(R.id.rv_list) RecyclerView rv_list; @BindView(R.id.title_view) TitleBar title_view; @Override public int getContentViewLayoutId() { return R.layout.activity_inspection_detail; } @Override public void initViewsAndEvents() { initTitle(); } @Override public void loadData() { } @Override public boolean isRegistEventBus() { return false; } @Override public void onMsgEvent(EventBusCenter eventBusCenter) { } @Override protected View isNeedLec() { return null; } private void initTitle() { title_view.setShowDefaultRightValue(); title_view.setTitle("巡检信息详情"); } }
[ "chen.zhiwei@jyall.com" ]
chen.zhiwei@jyall.com
6ea047436506312c0a83269073c50e7521feea84
1ba27fc930ba20782e9ef703e0dc7b69391e191b
/Src/Base/src/main/java/com/compuware/caqs/domain/dataschemas/actionplan/ActionPlanElementBean.java
ed794f8f94ffb2580b76b3c28ac24fceb25b7fee
[]
no_license
LO-RAN/codeQualityPortal
b0d81c76968bdcfce659959d0122e398c647b09f
a7c26209a616d74910f88ce0d60a6dc148dda272
refs/heads/master
2023-07-11T18:39:04.819034
2022-03-31T15:37:56
2022-03-31T15:37:56
37,261,337
0
0
null
null
null
null
UTF-8
Java
false
false
4,582
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.compuware.caqs.domain.dataschemas.actionplan; import com.compuware.toolbox.util.resources.Internationalizable; import java.io.Serializable; import java.util.Locale; /** * * @author cwfr-dzysman */ public abstract class ActionPlanElementBean implements Serializable { /** * id */ protected String id; /** * Criterion mark */ protected double score = 0.0; /** * Flag to indicate if the criterion is included in the action plan */ protected boolean elementCorrected = false; /** * Severity index */ protected int indiceGravite = -1; /** * Getting worse, stable or better */ protected int tendance = -1; /** * Score it should obtain to be declared as corrected */ protected double correctedScore = 0.0; /** * Indicate if the criterion has to be corrected for the next baseline */ protected ActionPlanPriority priority = ActionPlanPriority.SHORT_TERM; /** * Comment */ protected String comment = ""; /** * User who has made the comment */ protected String commentUser; protected Internationalizable internationalizableProperties; public Internationalizable getInternationalizableProperties() { return internationalizableProperties; } /** * the element master's id for this criterion */ private String elementMaster; public String getElementMaster() { return elementMaster; } /** * set element master. * @param elementMaster element master */ public void setElementMaster(String elementMaster) { this.elementMaster = elementMaster; } public String getCommentUser() { return commentUser; } public void setCommentUser(String commentUser) { this.commentUser = commentUser; } public String getComment() { return comment; } public void setComment(String comment) { this.comment = comment; } protected ActionPlanElementBean(Internationalizable i18n, String id) { this.id = id; this.internationalizableProperties = i18n; } public double getScore() { return score; } public void setScore(double note) { this.score = note; } public int getIndiceGravite() { return indiceGravite; } public void setIndiceGravite(int indiceGravite) { this.indiceGravite = indiceGravite; } public int getTendance() { return tendance; } public void setTendance(int tendance) { this.tendance = tendance; } /** * @param o l'element a comparer * @param loc la locale pour la comparaison par libelle * @return -1 si cet element a une severite plus forte que celui donne en parametre, 0 si elle est egale et 1 * si elle moins forte. La comparaison se fait d'abord sur les notes, ensuite sur les agregations, puis la repartition, * enfin sur le libelle traduit. */ public abstract int compareSeverity(ActionPlanElementBean o, Locale loc); public boolean isCorrected() { return elementCorrected; } /** * set the element as included in an action plan if corrected is true, excluded * if corrected is false * @param corrected */ public void setCorrected(boolean corrected) { this.elementCorrected = corrected; } public abstract double getCorrectedScore(); public void setCorrectedScore(double correctedMark) { this.correctedScore = correctedMark; } public ActionPlanPriority getPriority() { return priority; } public void setPriority(ActionPlanPriority priority) { this.priority = priority; } public String getId() { return id; } public void setId(String id) { this.id = id; } @Override public boolean equals(Object o) { boolean retour = false; String oId = null; if(o instanceof ActionPlanElementBean) { oId = ((ActionPlanElementBean)o).getId(); } else if(o instanceof String) { oId = (String)o; } if(oId!=null) { retour = (this.id==null)? oId==null : oId.equals(this.id); } return retour; } @Override public int hashCode() { int hash = 3; hash = 47 * hash + (this.id != null ? this.id.hashCode() : 0); return hash; } }
[ "laurent.izac@gmail.com" ]
laurent.izac@gmail.com
68daded701238d107244325f44039969f9e11fb4
e96172bcad99d9fddaa00c25d00a319716c9ca3a
/java-language-impl/src/main/java/com/intellij/java/language/impl/psi/impl/compiled/ClsProvidesStatementImpl.java
a5ccd409cd10b210a7db6078fb46f6ffc7eb100c
[ "Apache-2.0" ]
permissive
consulo/consulo-java
8c1633d485833651e2a9ecda43e27c3cbfa70a8a
a96757bc015eff692571285c0a10a140c8c721f8
refs/heads/master
2023-09-03T12:33:23.746878
2023-08-29T07:26:25
2023-08-29T07:26:25
13,799,330
5
4
Apache-2.0
2023-01-03T08:32:23
2013-10-23T09:56:39
Java
UTF-8
Java
false
false
2,959
java
/* * Copyright 2000-2017 JetBrains s.r.o. * * 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.intellij.java.language.impl.psi.impl.compiled; import com.intellij.java.language.impl.psi.impl.java.stubs.JavaStubElementTypes; import com.intellij.java.language.impl.psi.impl.java.stubs.PsiProvidesStatementStub; import com.intellij.java.language.impl.psi.impl.source.PsiClassReferenceType; import com.intellij.java.language.impl.psi.impl.source.tree.JavaElementType; import com.intellij.java.language.psi.*; import consulo.language.impl.ast.TreeElement; import consulo.language.impl.psi.SourceTreeToPsiMap; import consulo.language.psi.stub.StubElement; import consulo.util.lang.StringUtil; import javax.annotation.Nonnull; public class ClsProvidesStatementImpl extends ClsRepositoryPsiElement<PsiProvidesStatementStub> implements PsiProvidesStatement { private final ClsJavaCodeReferenceElementImpl myClassReference; public ClsProvidesStatementImpl(PsiProvidesStatementStub stub) { super(stub); myClassReference = new ClsJavaCodeReferenceElementImpl(this, stub.getInterface()); } @Override public PsiJavaCodeReferenceElement getInterfaceReference() { return myClassReference; } @Override public PsiClassType getInterfaceType() { return new PsiClassReferenceType(myClassReference, null, PsiAnnotation.EMPTY_ARRAY); } @Override public PsiReferenceList getImplementationList() { StubElement<PsiReferenceList> stub = getStub().findChildStubByType(JavaStubElementTypes.PROVIDES_WITH_LIST); return stub != null ? stub.getPsi() : null; } @Override public void appendMirrorText(int indentLevel, @Nonnull StringBuilder buffer) { StringUtil.repeatSymbol(buffer, ' ', indentLevel); buffer.append("provides ").append(myClassReference.getCanonicalText()).append(' '); appendText(getImplementationList(), indentLevel, buffer); buffer.append(";\n"); } @Override public void setMirror(@Nonnull TreeElement element) throws InvalidMirrorException { setMirrorCheckingType(element, JavaElementType.PROVIDES_STATEMENT); setMirror(getInterfaceReference(), SourceTreeToPsiMap.<PsiProvidesStatement>treeToPsiNotNull(element).getInterfaceReference()); setMirrorIfPresent(getImplementationList(), SourceTreeToPsiMap.<PsiProvidesStatement>treeToPsiNotNull(element).getImplementationList()); } @Override public String toString() { return "PsiProvidesStatement"; } }
[ "vistall.valeriy@gmail.com" ]
vistall.valeriy@gmail.com
1328f778812f7023810eda80808a8768fd21472f
9706e72ade5702c85a459b6ef6de82f82c5abcb6
/JLC OOPs Lab/Lab340.java
d06e783b7dc66363214ebc42e37feee897fc768a
[]
no_license
saketkumar123/Java_OOPs
81176f739f236035e2f3a44c4343ce2d73b138a0
8294673026f316dacd9e841a453f58d68a3e8aee
refs/heads/master
2021-01-12T05:36:18.063666
2016-12-22T13:26:07
2016-12-22T13:26:07
77,146,486
0
0
null
null
null
null
UTF-8
Java
false
false
698
java
class Lab340 { public static void main(String[] args) { new C(); } } class A { A() { System.out.println("A-> D.C."); } static { System.out.println("A-> S.B."); } { System.out.println("A-> I.B."); } } class B extends A { B() { System.out.println("B-> D.C."); } static { System.out.println("B-> S.B."); } { System.out.println("B-> I.B."); } } class C extends B { C() { System.out.println("C-> D.C."); } static { System.out.println("C-> S.B."); } { System.out.println("C-> I.B."); } } /* Output ====== E:\JLC OOPs Lab>javac Lab340.java E:\JLC OOPs Lab>java Lab340 A-> S.B. B-> S.B. C-> S.B. A-> I.B. A-> D.C. B-> I.B. B-> D.C. C-> I.B. C-> D.C. */
[ "saket.ulsi@gmail.com" ]
saket.ulsi@gmail.com
0ec6461cc02e6494b3cb0e1835b3058d2374f29e
bf141524c8b477a44fd8cb2d79cd2b5ca013c409
/bagri-client/bagri-client-hazelcast/src/main/java/com/bagri/client/hazelcast/task/doc/DocumentsProvider.java
4dbe3fc4ea6a831b1a718e54393ee5841aa34acc
[ "Apache-2.0" ]
permissive
dariagolub/bagri
6f3e39f74c81b786b91c05afb337d2a418239e5f
8718ec91feacbda32817c0b615323f3bae675406
refs/heads/master
2021-01-19T15:04:58.400194
2017-10-26T07:24:33
2017-10-26T07:24:33
100,942,600
0
0
null
2017-08-21T10:46:55
2017-08-21T10:46:55
null
UTF-8
Java
false
false
1,302
java
package com.bagri.client.hazelcast.task.doc; import static com.bagri.client.hazelcast.serialize.TaskSerializationFactory.cli_ProvideDocumentsTask; import java.io.IOException; import java.util.Properties; import java.util.concurrent.Callable; import com.bagri.client.hazelcast.task.ContextAwareTask; import com.bagri.core.api.DocumentAccessor; import com.bagri.core.api.ResultCollection; import com.hazelcast.nio.ObjectDataInput; import com.hazelcast.nio.ObjectDataOutput; public class DocumentsProvider extends ContextAwareTask implements Callable<ResultCollection<DocumentAccessor>> { protected String pattern; public DocumentsProvider() { super(); } public DocumentsProvider(String clientId, long txId, Properties props, String pattern) { super(clientId, txId, props); this.pattern = pattern; } @Override public ResultCollection<DocumentAccessor> call() throws Exception { return null; } @Override public int getId() { return cli_ProvideDocumentsTask; } @Override public void readData(ObjectDataInput in) throws IOException { super.readData(in); pattern = in.readUTF(); } @Override public void writeData(ObjectDataOutput out) throws IOException { super.writeData(out); out.writeUTF(pattern); } }
[ "dsukhoroslov@gmail.com" ]
dsukhoroslov@gmail.com
f4525a1ce6dcc33c4bf82d34bd5d98b3da5b1ccc
cd314d79a2ff704b2b15d579315b21af41fb9ef5
/app/src/main/java/com/yqx/mamajh/bean/ProdectItemEntity.java
ccf56fd59a2d7a0e1b7065ab4ba607782095e504
[]
no_license
likeyizhi/mamajh
8ba363755f9431561126f6e8887aa3234a6fe317
9e92d0f4eec74709943342e44a60819747c2068a
refs/heads/master
2021-01-23T02:39:59.262330
2017-04-13T08:57:42
2017-04-13T08:57:42
86,013,678
0
0
null
null
null
null
UTF-8
Java
false
false
2,642
java
package com.yqx.mamajh.bean; /** * Created by young on 2017/3/7. */ public class ProdectItemEntity { /** * ID : 121 * Name : 完达山wondersun金装元乳婴儿配方奶粉1段(0-6个月)900g * Number : 6902422060010 * Specifications : * OPrice : 0.00 * Price : 0.00 * ScorePrice : 0 * ScoreOffset : 0.00 * ShopCount : 1 * MinPrice : 139.00 * MaxPrice : 139.00 * Img : http://182.92.183.143:8011/webimg/img_product/product/121.jpg */ private String ID; private String Name; private String Number; private String Specifications; private String OPrice; private String Price; private String ScorePrice; private String ScoreOffset; private String ShopCount; private String MinPrice; private String MaxPrice; private String Img; public String getID() { return ID; } public void setID(String ID) { this.ID = ID; } public String getName() { return Name; } public void setName(String Name) { this.Name = Name; } public String getNumber() { return Number; } public void setNumber(String Number) { this.Number = Number; } public String getSpecifications() { return Specifications; } public void setSpecifications(String Specifications) { this.Specifications = Specifications; } public String getOPrice() { return OPrice; } public void setOPrice(String OPrice) { this.OPrice = OPrice; } public String getPrice() { return Price; } public void setPrice(String Price) { this.Price = Price; } public String getScorePrice() { return ScorePrice; } public void setScorePrice(String ScorePrice) { this.ScorePrice = ScorePrice; } public String getScoreOffset() { return ScoreOffset; } public void setScoreOffset(String ScoreOffset) { this.ScoreOffset = ScoreOffset; } public String getShopCount() { return ShopCount; } public void setShopCount(String ShopCount) { this.ShopCount = ShopCount; } public String getMinPrice() { return MinPrice; } public void setMinPrice(String MinPrice) { this.MinPrice = MinPrice; } public String getMaxPrice() { return MaxPrice; } public void setMaxPrice(String MaxPrice) { this.MaxPrice = MaxPrice; } public String getImg() { return Img; } public void setImg(String Img) { this.Img = Img; } }
[ "aaxxzzz@qq.com" ]
aaxxzzz@qq.com
febab4511453b39b08660b6e849abf1de444c506
52c36ce3a9d25073bdbe002757f08a267abb91c6
/src/main/java/com/alipay/api/domain/AlipayPcreditHuabeiPcbenefitcoreBfactivitfacadeQueryModel.java
331c170648eaf7014ce5b9751e02e500ad8f2110
[ "Apache-2.0" ]
permissive
itc7/alipay-sdk-java-all
d2f2f2403f3c9c7122baa9e438ebd2932935afec
c220e02cbcdda5180b76d9da129147e5b38dcf17
refs/heads/master
2022-08-28T08:03:08.497774
2020-05-27T10:16:10
2020-05-27T10:16:10
267,271,062
0
0
Apache-2.0
2020-05-27T09:02:04
2020-05-27T09:02:04
null
UTF-8
Java
false
false
1,796
java
package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 查询花呗营销分期贴息活动信息 * * @author auto create * @since 1.0, 2020-03-27 17:22:57 */ public class AlipayPcreditHuabeiPcbenefitcoreBfactivitfacadeQueryModel extends AlipayObject { private static final long serialVersionUID = 1839719895619281527L; /** * 商户ID */ @ApiField("partner_id") private String partnerId; /** * 活动类型,传空默认查所有 */ @ApiListField("product_ids") @ApiField("string") private List<String> productIds; /** * 来源系统 */ @ApiField("request_from") private String requestFrom; /** * 查询对应状态活动,默认所有状态活动类型 */ @ApiListField("status") @ApiField("string") private List<String> status; /** * 蚂蚁统一会员ID */ @ApiField("user_id") private String userId; public String getPartnerId() { return this.partnerId; } public void setPartnerId(String partnerId) { this.partnerId = partnerId; } public List<String> getProductIds() { return this.productIds; } public void setProductIds(List<String> productIds) { this.productIds = productIds; } public String getRequestFrom() { return this.requestFrom; } public void setRequestFrom(String requestFrom) { this.requestFrom = requestFrom; } public List<String> getStatus() { return this.status; } public void setStatus(List<String> status) { this.status = status; } public String getUserId() { return this.userId; } public void setUserId(String userId) { this.userId = userId; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
276842d3a389d71238510d42872890bd0d95d68c
51fa3cc281eee60058563920c3c9059e8a142e66
/Java/src/testcases/CWE89_SQL_Injection/s01/CWE89_SQL_Injection__connect_tcp_executeUpdate_54a.java
3e03f3becbb2d548a49a64119f0643452a245863
[]
no_license
CU-0xff/CWE-Juliet-TestSuite-Java
0b4846d6b283d91214fed2ab96dd78e0b68c945c
f616822e8cb65e4e5a321529aa28b79451702d30
refs/heads/master
2020-09-14T10:41:33.545462
2019-11-21T07:34:54
2019-11-21T07:34:54
223,105,798
1
4
null
null
null
null
UTF-8
Java
false
false
6,654
java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE89_SQL_Injection__connect_tcp_executeUpdate_54a.java Label Definition File: CWE89_SQL_Injection.label.xml Template File: sources-sinks-54a.tmpl.java */ /* * @description * CWE: 89 SQL Injection * BadSource: connect_tcp Read data using an outbound tcp connection * GoodSource: A hardcoded string * Sinks: executeUpdate * GoodSink: Use prepared statement and executeUpdate (properly) * BadSink : data concatenated into SQL statement used in executeUpdate(), which could result in SQL Injection * Flow Variant: 54 Data flow: data passed as an argument from one method through three others to a fifth; all five functions are in different classes in the same package * * */ package testcases.CWE89_SQL_Injection.s01; import testcasesupport.*; import javax.servlet.http.*; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.net.Socket; import java.util.logging.Level; public class CWE89_SQL_Injection__connect_tcp_executeUpdate_54a extends AbstractTestCase { public void bad() throws Throwable { String data; data = ""; /* Initialize data */ /* Read data using an outbound tcp connection */ { Socket socket = null; BufferedReader readerBuffered = null; InputStreamReader readerInputStream = null; try { /* Read data using an outbound tcp connection */ socket = new Socket("host.example.org", 39544); /* read input from socket */ readerInputStream = new InputStreamReader(socket.getInputStream(), "UTF-8"); readerBuffered = new BufferedReader(readerInputStream); /* POTENTIAL FLAW: Read data using an outbound tcp connection */ data = readerBuffered.readLine(); } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error with stream reading", exceptIO); } finally { /* clean up stream reading objects */ try { if (readerBuffered != null) { readerBuffered.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing BufferedReader", exceptIO); } try { if (readerInputStream != null) { readerInputStream.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing InputStreamReader", exceptIO); } /* clean up socket objects */ try { if (socket != null) { socket.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing Socket", exceptIO); } } } (new CWE89_SQL_Injection__connect_tcp_executeUpdate_54b()).badSink(data ); } public void good() throws Throwable { goodG2B(); goodB2G(); } /* goodG2B() - use goodsource and badsink */ private void goodG2B() throws Throwable { String data; /* FIX: Use a hardcoded string */ data = "foo"; (new CWE89_SQL_Injection__connect_tcp_executeUpdate_54b()).goodG2BSink(data ); } /* goodB2G() - use badsource and goodsink */ private void goodB2G() throws Throwable { String data; data = ""; /* Initialize data */ /* Read data using an outbound tcp connection */ { Socket socket = null; BufferedReader readerBuffered = null; InputStreamReader readerInputStream = null; try { /* Read data using an outbound tcp connection */ socket = new Socket("host.example.org", 39544); /* read input from socket */ readerInputStream = new InputStreamReader(socket.getInputStream(), "UTF-8"); readerBuffered = new BufferedReader(readerInputStream); /* POTENTIAL FLAW: Read data using an outbound tcp connection */ data = readerBuffered.readLine(); } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error with stream reading", exceptIO); } finally { /* clean up stream reading objects */ try { if (readerBuffered != null) { readerBuffered.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing BufferedReader", exceptIO); } try { if (readerInputStream != null) { readerInputStream.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing InputStreamReader", exceptIO); } /* clean up socket objects */ try { if (socket != null) { socket.close(); } } catch (IOException exceptIO) { IO.logger.log(Level.WARNING, "Error closing Socket", exceptIO); } } } (new CWE89_SQL_Injection__connect_tcp_executeUpdate_54b()).goodB2GSink(data ); } /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException { mainFromParent(args); } }
[ "frank@fischer.com.mt" ]
frank@fischer.com.mt
d7ddd5ff83d9eaf5e525c3f4eec391b8cd83ee89
4a76b22fddd1430d994b67508544290922cdb3bc
/cafeteria-manage-api/src/main/java/com/poppo/dallab/cafeteria/domain/Menu.java
09abf80b019d0e471db7e9aa0623013e6b956681
[]
no_license
ccf05017/cafeteria-manage
9e12fbe1bd93b608de51406e8db92304480f7306
310f672482713ac4ae34e4d23c10606e0b7833ff
refs/heads/master
2020-08-03T12:35:15.835268
2020-03-07T08:12:53
2020-03-07T08:12:53
211,233,566
0
0
null
2019-09-27T04:04:45
2019-09-27T04:04:45
null
UTF-8
Java
false
false
402
java
package com.poppo.dallab.cafeteria.domain; import lombok.*; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity @Builder @Getter @NoArgsConstructor @AllArgsConstructor public class Menu { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) Long id; @Setter String name; }
[ "saul@BcTech-Saului-MacBookPro.local" ]
saul@BcTech-Saului-MacBookPro.local
bd6952ebfd7daece0e470184b79a592797600616
1f5c9b19b09f0fad775a5bb07473690ae6b0c814
/salebusirule/src/public/nc/vo/so/custmatrel/entity/CustMatRelBVO.java
57b7148a60838083b682bedc0a15acf567529fd8
[]
no_license
hdulqs/NC65_SCM_SO
8e622a7bb8c2ccd1b48371eedd50591001cd75c0
aaf762285b10e7fef525268c2c90458aa4290bf6
refs/heads/master
2020-05-19T01:23:50.824879
2018-07-04T09:41:39
2018-07-04T09:41:39
null
0
0
null
null
null
null
GB18030
Java
false
false
5,654
java
package nc.vo.so.custmatrel.entity; import nc.vo.pub.IVOMeta; import nc.vo.pub.SuperVO; import nc.vo.pub.lang.UFBoolean; import nc.vo.pub.lang.UFDateTime; import nc.vo.pubapp.pattern.model.meta.entity.vo.VOMetaFactory; public class CustMatRelBVO extends SuperVO { // 优先码 public static final String CPRIORITYCODE = "cprioritycode"; // dr public static final String DR = "dr"; public static final String ENTITYNAME = "so.so_custmatrel_b"; // 不包含 public static final String EXCLUDE = "exclude"; // 客户基本分类 public static final String PK_CUSTBASECLASS = "pk_custbaseclass"; // 客户物料关系主实体_主键 public static final String PK_CUSTMATREL = "pk_custmatrel"; // 子实体主键 public static final String PK_CUSTMATREL_B = "pk_custmatrel_b"; // 客户 public static final String PK_CUSTOMER = "pk_customer"; // 客户销售分类 public static final String PK_CUSTSALECLASS = "pk_custsaleclass"; /** 集团 */ public static final String PK_GROUP = "pk_group"; // 物料最新版本 public static final String PK_MATERIAL = "pk_material"; // 物料编码 public static final String PK_MATERIAL_V = "pk_material_v"; // 物料基本分类 public static final String PK_MATERIALBASECLASS = "pk_materialbaseclass"; // 物料销售分类 public static final String PK_MATERIALSALECLASS = "pk_materialsaleclass"; // 销售组织 public static final String PK_ORG = "pk_org"; // 时间戳 public static final String TS = "ts"; // 行备注 public static final String VNOTE = "vnote"; /** * */ private static final long serialVersionUID = 2382524269827876072L; public String getCprioritycode() { return (String) this.getAttributeValue(CustMatRelBVO.CPRIORITYCODE); } public Integer getDr() { return (Integer) this.getAttributeValue(CustMatRelBVO.DR); } public UFBoolean getExclude() { return (UFBoolean) this.getAttributeValue(CustMatRelBVO.EXCLUDE); } @Override public IVOMeta getMetaData() { IVOMeta meta = VOMetaFactory.getInstance().getVOMeta(CustMatRelBVO.ENTITYNAME); return meta; } public String getPk_custbaseclass() { return (String) this.getAttributeValue(CustMatRelBVO.PK_CUSTBASECLASS); } public String getPk_custmatrel() { return (String) this.getAttributeValue(CustMatRelBVO.PK_CUSTMATREL); } public String getPk_custmatrel_b() { return (String) this.getAttributeValue(CustMatRelBVO.PK_CUSTMATREL_B); } public String getPk_customer() { return (String) this.getAttributeValue(CustMatRelBVO.PK_CUSTOMER); } public String getPk_custsaleclass() { return (String) this.getAttributeValue(CustMatRelBVO.PK_CUSTSALECLASS); } public String getPk_group() { return (String) this.getAttributeValue(CustMatRelBVO.PK_GROUP); } public String getPk_material() { return (String) this.getAttributeValue(CustMatRelBVO.PK_MATERIAL); } public String getPk_material_v() { return (String) this.getAttributeValue(CustMatRelBVO.PK_MATERIAL_V); } public String getPk_materialbaseclass() { return (String) this.getAttributeValue(CustMatRelBVO.PK_MATERIALBASECLASS); } public String getPk_materialsaleclass() { return (String) this.getAttributeValue(CustMatRelBVO.PK_MATERIALSALECLASS); } public String getPk_org() { return (String) this.getAttributeValue(CustMatRelBVO.PK_ORG); } public UFDateTime getTs() { return (UFDateTime) this.getAttributeValue(CustMatRelBVO.TS); } public String getVnote() { return (String) this.getAttributeValue(CustMatRelBVO.VNOTE); } public void setCprioritycode(String cprioritycode) { this.setAttributeValue(CustMatRelBVO.CPRIORITYCODE, cprioritycode); } public void setDr(Integer dr) { this.setAttributeValue(CustMatRelBVO.DR, dr); } public void setExclude(UFBoolean exclude) { this.setAttributeValue(CustMatRelBVO.EXCLUDE, exclude); } public void setPk_custbaseclass(String pk_custbaseclass) { this.setAttributeValue(CustMatRelBVO.PK_CUSTBASECLASS, pk_custbaseclass); } public void setPk_custmatrel(String pk_custmatrel) { this.setAttributeValue(CustMatRelBVO.PK_CUSTMATREL, pk_custmatrel); } public void setPk_custmatrel_b(String pk_custmatrel_b) { this.setAttributeValue(CustMatRelBVO.PK_CUSTMATREL_B, pk_custmatrel_b); } public void setPk_customer(String pk_customer) { this.setAttributeValue(CustMatRelBVO.PK_CUSTOMER, pk_customer); } public void setPk_custsaleclass(String pk_custsaleclass) { this.setAttributeValue(CustMatRelBVO.PK_CUSTSALECLASS, pk_custsaleclass); } public void setPk_group(String pk_group) { this.setAttributeValue(CustMatRelBVO.PK_GROUP, pk_group); } public void setPk_material(String pk_material) { this.setAttributeValue(CustMatRelBVO.PK_MATERIAL, pk_material); } public void setPk_material_v(String pk_material_v) { this.setAttributeValue(CustMatRelBVO.PK_MATERIAL_V, pk_material_v); } public void setPk_materialbaseclass(String pk_materialbaseclass) { this.setAttributeValue(CustMatRelBVO.PK_MATERIALBASECLASS, pk_materialbaseclass); } public void setPk_materialsaleclass(String pk_materialsaleclass) { this.setAttributeValue(CustMatRelBVO.PK_MATERIALSALECLASS, pk_materialsaleclass); } public void setPk_org(String pk_org) { this.setAttributeValue(CustMatRelBVO.PK_ORG, pk_org); } public void setTs(UFDateTime ts) { this.setAttributeValue(CustMatRelBVO.TS, ts); } public void setVnote(String vnote) { this.setAttributeValue(CustMatRelBVO.VNOTE, vnote); } }
[ "944482059@qq.com" ]
944482059@qq.com
565ff2936fcd32f617dae73d218670d2153baed7
3e9ba02fa687d4f9cf1b27f57d8a80c1123b25a7
/src/org/encog/util/normalize/output/zaxis/OutputFieldZAxis.java
63127a7af3a5517c38e29db0bb264db708159030
[]
no_license
marianagmmacedo/CE_GP
e43b28aa5d3999e63fa43694608cb4966d27cf49
ceadcb07a5049d8b5b2ff4ee00ad285cf33d46a4
refs/heads/master
2021-01-19T10:23:14.215122
2017-05-29T20:06:43
2017-05-29T20:06:43
87,858,418
0
0
null
null
null
null
UTF-8
Java
false
false
3,381
java
/* * Encog(tm) Core v3.4 - Java Version * http://www.heatonresearch.com/encog/ * https://github.com/encog/encog-java-core * Copyright 2008-2016 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.normalize.output.zaxis; import org.encog.util.normalize.NormalizationError; import org.encog.util.normalize.input.InputField; import org.encog.util.normalize.output.OutputFieldGroup; import org.encog.util.normalize.output.OutputFieldGrouped; /** * Both the multiplicative and z-axis normalization types allow a group of * outputs to be adjusted so that the "vector length" is 1. Both go about it in * different ways. Certain types of neural networks require a vector length of * 1. * * Z-Axis normalization is usually a better choice than multiplicative. However, * multiplicative can perform better than Z-Axis when all of the values are near * zero most of the time. This can cause the "synthetic value" that z-axis uses * to dominate and skew the answer. * * Z-Axis gets its name from 3D computer graphics, where there is a Z-Axis * extending from the plane created by the X and Y axes. It has nothing to do * with z-scores or the z-transform of signal theory. * * To implement Z-Axis normalization a scaling factor must be created to * multiply each of the inputs against. Additionally, a synthetic field must be * added. It is very important that this synthetic field be added to any z-axis * group that you might use. The synthetic field is represented by the * OutputFieldZAxisSynthetic class. * * @author jheaton */ public class OutputFieldZAxis extends OutputFieldGrouped { /** * Construct a ZAxis output field. * @param group The group this field belongs to. * @param field The input field this is based on. */ public OutputFieldZAxis(final OutputFieldGroup group, final InputField field) { super(group, field); if (!(group instanceof ZAxisGroup)) { throw new NormalizationError( "Must use ZAxisGroup with OutputFieldZAxis."); } } /** * Calculate the current value for this field. * * @param subfield * Ignored, this field type does not have subfields. * @return The current value for this field. */ public double calculate(final int subfield) { return (getSourceField().getCurrentValue() * ((ZAxisGroup) getGroup()) .getMultiplier()); } /** * @return The subfield count, which is one, as this field type does not * have subfields. */ public int getSubfieldCount() { return 1; } /** * Not needed for this sort of output field. */ public void rowInit() { } }
[ "carlos_judo@hotmail.com" ]
carlos_judo@hotmail.com
d80844378bd3e81703dd7a22be024e44916edd68
d8e695d863aea3293e04efd91f01f4298adbc3a0
/apache-ode-1.3.5/ode-bpel-runtime/target/generated/apt/org/apache/ode/bpel/runtime/channels/ParentScopeChannel.java
718b819d6243da2e6f7bec1a3cc01dced99c70e7
[]
no_license
polyu-lsgi-xiaofei/bpelcube
685469261d5ca9b7ee4c7288cf47a950d116b21f
45b371a9353209bcc7c4b868cbae2ce500f54e01
refs/heads/master
2021-01-13T02:31:47.445295
2012-11-01T16:20:11
2012-11-01T16:20:11
35,921,433
0
0
null
null
null
null
UTF-8
Java
false
false
680
java
/* * SOURCE FILE GENERATATED BY JACOB CHANNEL CLASS GENERATOR * * !!! DO NOT EDIT !!!! * * Generated On : Sat Jun 09 23:20:44 EEST 2012 * For Interface : org.apache.ode.bpel.runtime.channels.ParentScope */ package org.apache.ode.bpel.runtime.channels; /** * An auto-generated channel interface for the channel type * {@link org.apache.ode.bpel.runtime.channels.ParentScope}. * @see org.apache.ode.bpel.runtime.channels.ParentScope * @see org.apache.ode.bpel.runtime.channels.ParentScopeChannelListener */ public interface ParentScopeChannel extends org.apache.ode.jacob.Channel, org.apache.ode.bpel.runtime.channels.ParentScope {}
[ "michael.pantazoglou@gmail.com@f004a122-f478-6e0f-c15d-9ccb889b5864" ]
michael.pantazoglou@gmail.com@f004a122-f478-6e0f-c15d-9ccb889b5864
046192b41965e46746c0599520a8d63cd3aae79f
63f751519e64ac067e11189edaf6a34aeb3e5dba
/4.JavaCollections/src/com/javarush/task/task32/task3210/Solution.java
51b67615420ac202b4832fb7ba8535e1833bd7f7
[]
no_license
sharygin-vic/JavaRushTasks
8507b96c2103828be4c8c3de29f6ad446b33b9df
88e383a10a64286a2750bd67ec7f27d1a10a21dd
refs/heads/master
2021-01-21T18:25:20.400669
2017-08-01T22:50:45
2017-08-01T22:50:45
92,046,759
1
0
null
null
null
null
UTF-8
Java
false
false
1,122
java
package com.javarush.task.task32.task3210; import java.io.IOException; import java.io.RandomAccessFile; /* Используем RandomAccessFile */ public class Solution { public static void main(String... args) throws IOException { String fileName = args[0]; long number = Long.parseLong(args[1]); String text = args[2]; RandomAccessFile raf = new RandomAccessFile(fileName, "rw"); byte[] textBytes = text.getBytes(); long fileLength = raf.length(); byte[] bytesFromFile = new byte[textBytes.length]; raf.seek(number); raf.read(bytesFromFile, 0, textBytes.length); String fromFile = convertByteToString(bytesFromFile); raf.seek(fileLength); if (text.equals(fromFile)) { raf.write("true".getBytes()); } else { raf.write("false".getBytes()); } raf.close(); } private static String convertByteToString(byte[] readBytes) { String s = new String(readBytes); String[] substrings = s.split("\r?\n"); return substrings[0]; } }
[ "lasprog@mail.ru" ]
lasprog@mail.ru
58758fc9e69c62c7d8691011b71429d95e531a9f
dc0e271669780a11284b9626919846a51b00d54c
/service/com/hys/exam/service/local/impl/BannerManageImpl.java
6e41924712466cdea3dc96c25a8d480a04abfd20
[ "Apache-2.0" ]
permissive
1224500506/NCME-Admin
4a4b8e62f85b352dee0a96f096748b04fbf1b67e
e4f0969938ed6d9c076a9d647681dd56a1bf2679
refs/heads/master
2021-04-24T19:28:33.899711
2018-01-15T01:54:21
2018-01-15T01:54:21
117,482,274
1
1
null
null
null
null
UTF-8
Java
false
false
2,524
java
package com.hys.exam.service.local.impl; import java.util.List; import org.springframework.beans.factory.BeanFactory; import com.hys.exam.dao.local.BannerManageDAO; import com.hys.exam.model.Advert; import com.hys.exam.model.SystemSite; import com.hys.exam.model.SystemUser; import com.hys.exam.service.local.BannerManage; import com.hys.exam.utils.PageList; import com.hys.framework.service.impl.BaseMangerImpl; public class BannerManageImpl extends BaseMangerImpl implements BannerManage { private BannerManageDAO localBannerManageDAO; @Override public Advert getAdvertById(Long id) { return localBannerManageDAO.getAdvertById(id); } @Override public List<Advert> getAdvertList(Advert advert) { return localBannerManageDAO.getAdvertList(advert); } @Override public boolean addAdvert(Advert advert) { if(localBannerManageDAO.addAdvert(advert)) return true; else return false; } @Override public boolean updateState(Long id, int state) { return localBannerManageDAO.updateState(id, state); } @Override public boolean deleteAdvertById(Long id) { return localBannerManageDAO.deleteAdvertById(id); } @Override public boolean updateAdvert(Advert advert) { localBannerManageDAO.updateAdvert(advert); return true; } @Override public void getAdvertPageList(PageList pl, Advert advert) { //模糊查询banner localBannerManageDAO.getAdvertPageList(pl, advert); //设置banner对于的站点信息 List<Advert> list=pl.getList(); for(Advert adv:list){ adv.setSiteList(getSiteListByBannerId(adv.getId())); } } @Override public int getAdvertByName(String name) { return localBannerManageDAO.getAdvertByName(name); } @Override public List<SystemSite> getSiteListByBannerId(long id) { return localBannerManageDAO.getSiteListByBannerId(id); } public void setLocalBannerManageDAO(BannerManageDAO localBannerManageDAO) { this.localBannerManageDAO = localBannerManageDAO; } public BannerManageDAO getLocalBannerManageDAO() { return localBannerManageDAO; } //排序操作 @Override public boolean resortOrderNum(String orderstr) { boolean flag = false; try{ flag = localBannerManageDAO.resortOrderNum(orderstr); } catch(Exception e){ flag = false; } return flag; } @Override public void updateImageById(Long id, String url) { localBannerManageDAO.updateImageById(id,url); } @Override public int getAdvertByState(Integer state,Integer type) { return localBannerManageDAO.getAdvertByState(state,type); } }
[ "weeho@DESKTOP-71D9DPN" ]
weeho@DESKTOP-71D9DPN
ba0b30fd22356c3419307b086756d7c683ccab18
2cf1b02afc8280c669f2afb5a55908e671cdd147
/src/main/java/com.malaganguo.athmsssm/model/TempAndHumModel.java
79a5c73fa27708f876317e3a48ff05c42979d9cb
[]
no_license
malaganguo/athmsssm
25c8aa7d27a8441d9d765ce0a5a89be26699ebc3
d109c1a8776f755a182bafbaf00a48bdbb1a645d
refs/heads/master
2022-02-10T13:05:57.292650
2019-05-09T03:24:54
2019-05-09T03:24:54
173,528,432
3
0
null
2022-02-07T06:50:16
2019-03-03T03:57:36
JavaScript
UTF-8
Java
false
false
617
java
package com.malaganguo.athmsssm.model; public class TempAndHumModel { private String date ; private String temperature; private String humidity; public String getDate() { return date; } public void setDate(String date) { this.date = date; } public String getTemperature() { return temperature; } public void setTemperature(String temperature) { this.temperature = temperature; } public String getHumidity() { return humidity; } public void setHumidity(String humidity) { this.humidity = humidity; } }
[ "admin@admin.com" ]
admin@admin.com
9c867961c7d6f5e980c8c0dee4939db92bdfb409
1de2721fda45d5ac71547eda0ab912ddb5855b5e
/android-app/src/main/java/org/solovyev/android/calculator/math/edit/CalculatorOperatorsFragment.java
d8672c65daa9a0558b6a28feb46e11780bdb1fad
[]
no_license
GeekyTrash/android-calculatorpp
d0039cb3fd33cb8df3cf916deec34bfdb656ae0f
73bcbde57bbe21121b7baac29ee06667560bd383
refs/heads/master
2020-12-25T03:10:30.856463
2013-04-01T09:08:05
2013-04-01T09:08:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,473
java
package org.solovyev.android.calculator.math.edit; import android.app.Activity; import android.content.Context; import android.text.ClipboardManager; import jscl.math.operator.Operator; import org.jetbrains.annotations.NotNull; import org.solovyev.android.calculator.Locator; import org.solovyev.android.calculator.CalculatorEventType; import org.solovyev.android.calculator.R; import org.solovyev.android.calculator.CalculatorFragmentType; import org.solovyev.android.menu.AMenuItem; import org.solovyev.android.menu.LabeledMenuItem; import org.solovyev.common.text.StringUtils; import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * User: serso * Date: 11/17/11 * Time: 1:53 PM */ public class CalculatorOperatorsFragment extends AbstractMathEntityListFragment<Operator> { public CalculatorOperatorsFragment() { super(CalculatorFragmentType.operators); } @Override protected AMenuItem<Operator> getOnClickAction() { return LongClickMenuItem.use; } @NotNull @Override protected List<LabeledMenuItem<Operator>> getMenuItemsOnLongClick(@NotNull Operator item) { final List<LabeledMenuItem<Operator>> result = new ArrayList<LabeledMenuItem<Operator>>(Arrays.asList(LongClickMenuItem.values())); if ( StringUtils.isEmpty(OperatorDescriptionGetter.instance.getDescription(this.getActivity(), item.getName())) ) { result.remove(LongClickMenuItem.copy_description); } return result; } @NotNull @Override protected MathEntityDescriptionGetter getDescriptionGetter() { return OperatorDescriptionGetter.instance; } @NotNull @Override protected List<Operator> getMathEntities() { final List<Operator> result = new ArrayList<Operator>(); result.addAll(Locator.getInstance().getEngine().getOperatorsRegistry().getEntities()); result.addAll(Locator.getInstance().getEngine().getPostfixFunctionsRegistry().getEntities()); return result; } @Override protected String getMathEntityCategory(@NotNull Operator operator) { String result = Locator.getInstance().getEngine().getOperatorsRegistry().getCategory(operator); if (result == null) { result = Locator.getInstance().getEngine().getPostfixFunctionsRegistry().getCategory(operator); } return result; } private static enum OperatorDescriptionGetter implements MathEntityDescriptionGetter { instance; @Override public String getDescription(@NotNull Context context, @NotNull String mathEntityName) { String result = Locator.getInstance().getEngine().getOperatorsRegistry().getDescription(mathEntityName); if (StringUtils.isEmpty(result)) { result = Locator.getInstance().getEngine().getPostfixFunctionsRegistry().getDescription(mathEntityName); } return result; } } /* ********************************************************************** * * STATIC * ********************************************************************** */ private static enum LongClickMenuItem implements LabeledMenuItem<Operator> { use(R.string.c_use) { @Override public void onClick(@NotNull Operator data, @NotNull Context context) { Locator.getInstance().getCalculator().fireCalculatorEvent(CalculatorEventType.use_operator, data); } }, copy_description(R.string.c_copy_description) { @Override public void onClick(@NotNull Operator data, @NotNull Context context) { final String text = OperatorDescriptionGetter.instance.getDescription(context, data.getName()); if (!StringUtils.isEmpty(text)) { final ClipboardManager clipboard = (ClipboardManager) context.getSystemService(Activity.CLIPBOARD_SERVICE); clipboard.setText(text); } } }; private final int captionId; LongClickMenuItem(int captionId) { this.captionId = captionId; } @NotNull @Override public String getCaption(@NotNull Context context) { return context.getString(captionId); } } }
[ "se.solovyev@gmail.com" ]
se.solovyev@gmail.com
9a7bd90ceaeff510079e777a54bf1f5879223582
f41fa6720c00aa2f2d02ef68bc018ee5eef34abe
/org.marc.shic/src/main/java/org/marc/shic/core/LocationDemographic.java
5ea2c8b74eff6dcd4e0822c7b16d73d230fcb5c2
[ "Apache-2.0" ]
permissive
MohawkMEDIC/SharedHealthIntegrationComponents
e27f85d59cce75b89b3bb698d9c2787d45ba3f84
dd0a3e97b03613be57be9cd9489e095096bee024
refs/heads/master
2020-04-09T20:27:59.837535
2018-12-05T21:42:57
2018-12-05T21:42:57
160,574,146
2
0
null
null
null
null
UTF-8
Java
false
false
1,347
java
/** * Copyright 2013 Mohawk College of Applied Arts and Technology * * 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. * * * Date: October 29, 2013 * */ package org.marc.shic.core; /** * * @author ibrahimm */ public class LocationDemographic extends Demographic { private DomainIdentifier m_id; private String m_name; public LocationDemographic() { super(); } public LocationDemographic(DomainIdentifier id, String name, String phone, PersonAddress address) { super(); this.addIdentifier(id); this.m_id = id; this.m_name = name; this.addPhone(phone); this.addAddress(address); } public String getName() { return m_name; } public void setName(String name) { this.m_name = name; } public DomainIdentifier getId() { return m_id; } public void setId(DomainIdentifier id) { this.m_id = id; } }
[ "nityan.khanna@mohawkcollege.ca" ]
nityan.khanna@mohawkcollege.ca
23c2a5f5ebc49056436575329ec419f9409e5f08
2ba1ebe07175cc08fad982b4c6436bd145362180
/src/main/java/com/warmer/dp/common/AbstractApplePhoneService.java
79a1ce86c2fe4a2c540da876768b9bcef250322d
[]
no_license
MiracleTanC/designPattern
4d47f172517127eeae15909d7a85f77d6fadeb9c
c8007642a6d131337b0f70c7d09cb447f0551753
refs/heads/master
2020-03-27T17:32:13.701218
2018-10-07T07:38:10
2018-10-07T07:38:10
146,857,651
0
0
null
null
null
null
UTF-8
Java
false
false
355
java
package com.warmer.dp.common; import com.warmer.dp.service.AbstractFactoryService; import com.warmer.dp.service.PhoneService; import com.warmer.dp.service.impl.ApplePhoneServiceImpl; public class AbstractApplePhoneService implements AbstractFactoryService{ @Override public PhoneService GetPhoneService() { return new ApplePhoneServiceImpl(); } }
[ "1130196938@qq.com" ]
1130196938@qq.com
72f85faef36d79703b836783a99c8ee9286e24a5
95d20c83d8aff34e314c56a3ecb2b87c9fa9fc86
/Ghidra/Framework/Graph/src/main/java/ghidra/graph/viewer/shape/VisualGraphShapePickSupport.java
317eaefe2996d2ebdf07286ffc63a165da3dd142
[ "GPL-1.0-or-later", "GPL-3.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "LGPL-2.1-only", "LicenseRef-scancode-unknown-license-reference" ]
permissive
NationalSecurityAgency/ghidra
969fe0d2ca25cb8ac72f66f0f90fc7fb2dbfa68d
7cc135eb6bfabd166cbc23f7951dae09a7e03c39
refs/heads/master
2023-08-31T21:20:23.376055
2023-08-29T23:08:54
2023-08-29T23:08:54
173,228,436
45,212
6,204
Apache-2.0
2023-09-14T18:00:39
2019-03-01T03:27:48
Java
UTF-8
Java
false
false
3,404
java
/* ### * IP: GHIDRA * * 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 ghidra.graph.viewer.shape; import java.awt.Point; import java.awt.Shape; import java.awt.geom.*; import java.util.Collection; import edu.uci.ics.jung.algorithms.layout.Layout; import edu.uci.ics.jung.visualization.VisualizationServer; import edu.uci.ics.jung.visualization.picking.ShapePickSupport; import ghidra.graph.viewer.*; public class VisualGraphShapePickSupport<V extends VisualVertex, E extends VisualEdge<V>> extends ShapePickSupport<V, E> { public VisualGraphShapePickSupport(VisualizationServer<V, E> viewer) { super(viewer); } @Override protected Collection<V> getFilteredVertices(Layout<V, E> layout) { return GraphViewerUtils.createCollectionWithZOrderBySelection( super.getFilteredVertices(layout)); } /** * Overridden to handle edge picking with our custom edge placement. The painting and picking * algorithms in Jung are all hard-coded to transform loop edges to above the vertex--there * is no way to plug our own transformation into Jung :( * * @param layout * @param viewSpaceX The x under which to look for an edge (view coordinates) * @param viewSpaceY The y under which to look for an edge (view coordinates) * @return The closest edge to the given point; null if no edge near the point */ @Override public E getEdge(Layout<V, E> layout, double viewSpaceX, double viewSpaceY) { Point2D viewSpacePoint = new Point2D.Double(viewSpaceX, viewSpaceY); Point graphSpacePoint = GraphViewerUtils.translatePointFromViewSpaceToGraphSpace(viewSpacePoint, vv); // create a box around the given point the size of 'pickSize' Rectangle2D pickArea = new Rectangle2D.Float(graphSpacePoint.x - pickSize / 2, graphSpacePoint.y - pickSize / 2, pickSize, pickSize); E closestEdge = null; double smallestDistance = Double.MAX_VALUE; for (E e : getFilteredEdges(layout)) { Shape edgeShape = GraphViewerUtils.getEdgeShapeInGraphSpace(vv, e); if (edgeShape == null) { continue; } // because of the transform, the edgeShape is now a GeneralPath // see if this edge is the closest of any that intersect if (edgeShape.intersects(pickArea)) { float[] coords = new float[6]; GeneralPath path = new GeneralPath(edgeShape); PathIterator iterator = path.getPathIterator(null); if (iterator.isDone()) { // not sure how this can happen--0 length edge? continue; } iterator.next(); iterator.currentSegment(coords); float segmentX = coords[0]; float segmentY = coords[1]; float deltaX = segmentX - graphSpacePoint.x; float deltaY = segmentY - graphSpacePoint.y; float currentDistance = deltaX * deltaX + deltaY * deltaY; if (currentDistance < smallestDistance) { smallestDistance = currentDistance; closestEdge = e; } } } return closestEdge; } }
[ "46821332+nsadeveloper789@users.noreply.github.com" ]
46821332+nsadeveloper789@users.noreply.github.com
209b5c3c01dc1b7b9b5b1a16b4a575af1db4f340
131c50a29ad34eedbc231362f6d845ad04af5150
/azkarra-api/src/test/java/io/streamthoughts/azkarra/api/streams/rocksdb/DefaultRocksDBConfigSetterTest.java
a22c6952d5686f37e4a574278ac5dbd157abe2a0
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
arujit/azkarra-streams
d76474d945d68d20c7076944d623277b4fbfe89f
4fd90efb8d0848b869d989155a38f45c920b390c
refs/heads/master
2022-07-06T15:57:03.377519
2020-05-09T10:38:17
2020-05-09T10:43:48
262,531,268
1
0
Apache-2.0
2020-05-09T09:03:43
2020-05-09T09:03:42
null
UTF-8
Java
false
false
2,211
java
/* * Copyright 2019 StreamThoughts. * * 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 io.streamthoughts.azkarra.api.streams.rocksdb; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.rocksdb.Options; import java.util.HashMap; import java.util.Map; class DefaultRocksDBConfigSetterTest { @Test public void shouldBeConfiguredGivenValidConfiguration() { DefaultRocksDBConfigSetter setter = new DefaultRocksDBConfigSetter(); Map<String, Object> config = new HashMap<>(); config.put(DefaultRocksDBConfigSetter.DefaultRocksDBConfigSetterConfig.ROCKSDB_LOG_DIR_CONFIG, "/log/dir"); config.put(DefaultRocksDBConfigSetter.DefaultRocksDBConfigSetterConfig.ROCKSDB_MAX_LOG_FILE_SIZE_CONFIG, "200"); config.put(DefaultRocksDBConfigSetter.DefaultRocksDBConfigSetterConfig.ROCKSDB_STATS_ENABLECONFIG, true); config.put(DefaultRocksDBConfigSetter.DefaultRocksDBConfigSetterConfig.ROCKSDB_STATS_DUMP_PERIOD_SEC_CONFIG, "100"); setter.setConfig("storeName", new Options(), config); DefaultRocksDBConfigSetter.DefaultRocksDBConfigSetterConfig configured = setter.getConfig(); Assertions.assertEquals(100, configured.dumpPeriodSec()); Assertions.assertEquals(true, configured.isStatisticsEnable()); Assertions.assertEquals("/log/dir", configured.logDir()); Assertions.assertEquals(200, configured.maxLogFileSize()); } }
[ "florian.hussonnois@gmail.com" ]
florian.hussonnois@gmail.com
a7f1ae9e5317952bf3b736fd9aa042717bfc7276
fa1408365e2e3f372aa61e7d1e5ea5afcd652199
/src/testcases/CWE190_Integer_Overflow/s01/CWE190_Integer_Overflow__byte_console_readLine_multiply_68b.java
918094ae7d036a9c881d808ca0989527456bfe0e
[]
no_license
bqcuong/Juliet-Test-Case
31e9c89c27bf54a07b7ba547eddd029287b2e191
e770f1c3969be76fdba5d7760e036f9ba060957d
refs/heads/master
2020-07-17T14:51:49.610703
2019-09-03T16:22:58
2019-09-03T16:22:58
206,039,578
1
2
null
null
null
null
UTF-8
Java
false
false
2,491
java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__byte_console_readLine_multiply_68b.java Label Definition File: CWE190_Integer_Overflow.label.xml Template File: sources-sinks-68b.tmpl.java */ /* * @description * CWE: 190 Integer Overflow * BadSource: console_readLine Read data from the console using readLine * GoodSource: A hardcoded non-zero, non-min, non-max, even number * Sinks: multiply * GoodSink: Ensure there will not be an overflow before multiplying data by 2 * BadSink : If data is positive, multiply by 2, which can cause an overflow * Flow Variant: 68 Data flow: data passed as a member variable in the "a" class, which is used by a method in another class in the same package * * */ package testcases.CWE190_Integer_Overflow.s01; import testcasesupport.*; import javax.servlet.http.*; public class CWE190_Integer_Overflow__byte_console_readLine_multiply_68b { public void badSink() throws Throwable { byte data = CWE190_Integer_Overflow__byte_console_readLine_multiply_68a.data; if(data > 0) /* ensure we won't have an underflow */ { /* POTENTIAL FLAW: if (data*2) > Byte.MAX_VALUE, this will overflow */ byte result = (byte)(data * 2); IO.writeLine("result: " + result); } } /* goodG2B() - use goodsource and badsink */ public void goodG2BSink() throws Throwable { byte data = CWE190_Integer_Overflow__byte_console_readLine_multiply_68a.data; if(data > 0) /* ensure we won't have an underflow */ { /* POTENTIAL FLAW: if (data*2) > Byte.MAX_VALUE, this will overflow */ byte result = (byte)(data * 2); IO.writeLine("result: " + result); } } /* goodB2G() - use badsource and goodsink */ public void goodB2GSink() throws Throwable { byte data = CWE190_Integer_Overflow__byte_console_readLine_multiply_68a.data; if(data > 0) /* ensure we won't have an underflow */ { /* FIX: Add a check to prevent an overflow from occurring */ if (data < (Byte.MAX_VALUE/2)) { byte result = (byte)(data * 2); IO.writeLine("result: " + result); } else { IO.writeLine("data value is too large to perform multiplication."); } } } }
[ "bqcuong2212@gmail.com" ]
bqcuong2212@gmail.com
24d57aa99d5b6308d7ba467b9aadeac5d41e36d0
0e06e096a9f95ab094b8078ea2cd310759af008b
/sources/com/tapjoy/internal/cv.java
6006dddfb3538760a93927abfcfd21f1433efe4f
[]
no_license
Manifold0/adcom_decompile
4bc2907a057c73703cf141dc0749ed4c014ebe55
fce3d59b59480abe91f90ba05b0df4eaadd849f7
refs/heads/master
2020-05-21T02:01:59.787840
2019-05-10T00:36:27
2019-05-10T00:36:27
185,856,424
1
2
null
2019-05-10T00:36:28
2019-05-09T19:04:28
Java
UTF-8
Java
false
false
283
java
package com.tapjoy.internal; import java.util.Collection; public final class cv { /* renamed from: a */ static final cq f7299a = new cq(", "); /* renamed from: a */ public static Collection m7342a(Iterable iterable) { return (Collection) iterable; } }
[ "querky1231@gmail.com" ]
querky1231@gmail.com
a7369f569f1a4961d94f8b9af3d1727c0fe0768e
4c304a7a7aa8671d7d1b9353acf488fdd5008380
/src/main/java/com/alipay/api/domain/AlipayOpenMiniDataVisitQueryModel.java
4e70df809d05cddb714ce8c799ecf804df099167
[ "Apache-2.0" ]
permissive
zhaorongxi/alipay-sdk-java-all
c658983d390e432c3787c76a50f4a8d00591cd5c
6deda10cda38a25dcba3b61498fb9ea839903871
refs/heads/master
2021-02-15T19:39:11.858966
2020-02-16T10:44:38
2020-02-16T10:44:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,249
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 小程序当日访问数据查询 * * @author auto create * @since 1.0, 2019-06-12 12:04:36 */ public class AlipayOpenMiniDataVisitQueryModel extends AlipayObject { private static final long serialVersionUID = 3328637985599433164L; /** * 查询数据范围;APP_SUMMARY代表仅查询小程序的访问数据,AREA_DETAIL代表同时查询区域下该小程序的访问数据 */ @ApiField("data_scope") private String dataScope; /** * 国标六位省份行政区划编码,参考http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/;data_scope传入AREA_DETAIL时该参数有效,传空表示同时查询各省的访问数据,否则同时查询该省份行政区划下的各城市访问数据。 */ @ApiField("province_code") private String provinceCode; public String getDataScope() { return this.dataScope; } public void setDataScope(String dataScope) { this.dataScope = dataScope; } public String getProvinceCode() { return this.provinceCode; } public void setProvinceCode(String provinceCode) { this.provinceCode = provinceCode; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
483fa6101aa784e979da9b8bad8e59f2eab4e681
4417886f50f85f3348a44b417e57c1ecac9930a4
/src/main/java/com/sliu/framework/app/wfw/model/ZsTsfl.java
954d21e91be24c1f5a823b63f07fb53308056be8
[]
no_license
itxiaojian/wechatpf
1fcf2ecc783c36c5c84d8408d78639de22263bde
bdf2b36c9733b1125feabb5d078e84f51034f718
refs/heads/master
2021-01-19T20:55:50.196667
2017-04-19T02:20:35
2017-04-19T02:20:35
88,578,665
0
1
null
null
null
null
UTF-8
Java
false
false
1,260
java
package com.sliu.framework.app.wfw.model; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; /** * 图书分类 * @author duanpeijun * @version 创建时间:2015年6月9日 上午10:37:31 */ @Entity @Table(name = "ZS_TSFL") public class ZsTsfl implements Serializable{ private Long id;//主键 private String zl;//种类 private Integer sl;//数量 private String bz;//备注 @Id @GeneratedValue(strategy=GenerationType.IDENTITY) @Column(name = "id", nullable = false) public Long getId() { return id; } public void setId(Long id) { this.id = id; } @Column(name = "zl", nullable = true) public String getZl() { return zl; } public void setZl(String zl) { this.zl = zl; } @Column(name = "sl", nullable = true) public Integer getSl() { return sl; } public void setSl(Integer sl) { this.sl = sl; } @Column(name = "bz", length = 500, nullable = true) public String getBz() { return bz; } public void setBz(String bz) { this.bz = bz; } }
[ "2629690209@qq.com" ]
2629690209@qq.com
59104744cde7fbbff5377e80d573ef3adeee0263
0f75c551a193c546b3db7f57e70e36bf2c192552
/bigdata-module/bigdata-tx-manager/src/main/java/com/bosssoft/bigdata/manager/redis/RedisServerService.java
d8f5f64611e8e2e46243fb60a8f35f80302fc9b0
[]
no_license
coomia/big-parent
f4ca69a0afdcabdefbf243add9bb26755647010e
ab33f26a47dd363eb99a2053bd7af951346f8ae5
refs/heads/master
2020-05-27T23:18:28.295712
2019-04-25T00:54:52
2019-04-25T00:54:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
649
java
package com.bosssoft.bigdata.manager.redis; import java.util.List; import com.bosssoft.bigdata.manager.netty.model.TxGroup; /** * @author LCN on 2019/11/11 */ public interface RedisServerService { String loadNotifyJson(); void saveTransaction(String key, String json); TxGroup getTxGroupByKey(String key); void saveCompensateMsg(String name, String json); List<String> getKeys(String key); List<String> getValuesByKeys(List<String> keys); String getValueByKey(String key); void deleteKey(String key); void saveLoadBalance(String groupName, String key, String data); String getLoadBalance(String groupName, String key); }
[ "975668939@qq.com" ]
975668939@qq.com
8e148a1dc16f4969b23752f687933c7e47fdb7e2
995fccc3026fa474da6af9cb87237ba4640a25e9
/src/main/java/com/lothrazar/cyclicmagic/module/EnchantModule.java
06a4333306607467f12b5820352aec7e4a884582
[ "MIT" ]
permissive
Aemande123/Cyclic
51c8f9d9068c95783dbb6c426e28e86a26bd58b5
f457d243104ab2495b06f7acca0fda453b401145
refs/heads/master
2021-04-09T16:19:24.329957
2018-03-18T03:24:45
2018-03-18T03:24:45
99,875,313
0
0
null
2017-08-10T03:06:18
2017-08-10T03:06:18
null
UTF-8
Java
false
false
6,544
java
/******************************************************************************* * The MIT License (MIT) * * Copyright (C) 2014-2018 Sam Bassett (aka Lothrazar) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. ******************************************************************************/ package com.lothrazar.cyclicmagic.module; import com.lothrazar.cyclicmagic.config.IHasConfig; import com.lothrazar.cyclicmagic.data.Const; import com.lothrazar.cyclicmagic.enchantment.EnchantAutoSmelt; import com.lothrazar.cyclicmagic.enchantment.EnchantBase; import com.lothrazar.cyclicmagic.enchantment.EnchantBeheading; import com.lothrazar.cyclicmagic.enchantment.EnchantExcavation; import com.lothrazar.cyclicmagic.enchantment.EnchantLaunch; import com.lothrazar.cyclicmagic.enchantment.EnchantLifeLeech; import com.lothrazar.cyclicmagic.enchantment.EnchantMagnet; import com.lothrazar.cyclicmagic.enchantment.EnchantMultishot; import com.lothrazar.cyclicmagic.enchantment.EnchantQuickdraw; import com.lothrazar.cyclicmagic.enchantment.EnchantReach; import com.lothrazar.cyclicmagic.enchantment.EnchantVenom; import com.lothrazar.cyclicmagic.enchantment.EnchantWaterwalking; import com.lothrazar.cyclicmagic.enchantment.EnchantXpBoost; import com.lothrazar.cyclicmagic.registry.EnchantRegistry; import net.minecraftforge.common.config.Configuration; public class EnchantModule extends BaseModule implements IHasConfig { public static EnchantLaunch launch; public static EnchantMagnet magnet; public static EnchantVenom venom; public static EnchantLifeLeech lifeleech; public static EnchantAutoSmelt autosmelt; public static EnchantXpBoost xpboost; public static EnchantReach reach; public static EnchantBeheading beheading; public static EnchantQuickdraw quickdraw; public static EnchantWaterwalking waterwalk; private static EnchantExcavation excavation; private boolean enablexpboost; private boolean enableLaunch; private boolean enableMagnet; private boolean enableVenom; private boolean enableLifeleech; private boolean enableautosmelt; private boolean enablereach; private boolean enablebeheading; private boolean enableQuickdraw; private boolean enablewaterwalk; private boolean enableExcavate; private boolean enableMultishot; private EnchantMultishot multishot; @Override public void onPreInit() { super.onPreInit(); if (enablewaterwalk) { waterwalk = new EnchantWaterwalking(); EnchantRegistry.register(waterwalk); } if (enablereach) { reach = new EnchantReach(); EnchantRegistry.register(reach); } if (enablexpboost) { xpboost = new EnchantXpBoost(); EnchantRegistry.register(xpboost); } if (enableautosmelt) { autosmelt = new EnchantAutoSmelt(); EnchantRegistry.register(autosmelt); } if (enableLaunch) { launch = new EnchantLaunch(); EnchantRegistry.register(launch); } if (enableMagnet) { magnet = new EnchantMagnet(); EnchantRegistry.register(magnet); } if (enableVenom) { venom = new EnchantVenom(); EnchantRegistry.register(venom); } if (enableLifeleech) { lifeleech = new EnchantLifeLeech(); EnchantRegistry.register(lifeleech); } if (enablebeheading) { beheading = new EnchantBeheading(); EnchantRegistry.register(beheading); } if (enableQuickdraw) { quickdraw = new EnchantQuickdraw(); EnchantRegistry.register(quickdraw); } if (enableExcavate) { excavation = new EnchantExcavation(); EnchantRegistry.register(excavation); } if (enableMultishot) { multishot = new EnchantMultishot(); EnchantRegistry.register(multishot); } } @Override public void syncConfig(Configuration c) { enableMultishot = c.getBoolean("EnchantMultishot", Const.ConfigCategory.content, true, Const.ConfigCategory.contentDefaultText); enableExcavate = c.getBoolean("EnchantExcavation", Const.ConfigCategory.content, true, Const.ConfigCategory.contentDefaultText); enablewaterwalk = c.getBoolean("EnchantWaterwalk", Const.ConfigCategory.content, true, Const.ConfigCategory.contentDefaultText); enablereach = c.getBoolean("EnchantReach", Const.ConfigCategory.content, true, Const.ConfigCategory.contentDefaultText); enablexpboost = c.getBoolean("EnchantExpBoost", Const.ConfigCategory.content, true, Const.ConfigCategory.contentDefaultText); enableautosmelt = c.getBoolean("EnchantAutoSmelt", Const.ConfigCategory.content, true, Const.ConfigCategory.contentDefaultText); enableLaunch = c.getBoolean("EnchantLaunch", Const.ConfigCategory.content, true, Const.ConfigCategory.contentDefaultText); enableMagnet = c.getBoolean("EnchantMagnet", Const.ConfigCategory.content, true, Const.ConfigCategory.contentDefaultText); enableVenom = c.getBoolean("EnchantVenom", Const.ConfigCategory.content, true, Const.ConfigCategory.contentDefaultText); enableLifeleech = c.getBoolean("EnchantLifeLeech", Const.ConfigCategory.content, true, Const.ConfigCategory.contentDefaultText); enablebeheading = c.getBoolean("EnchantBeheading", Const.ConfigCategory.content, true, Const.ConfigCategory.contentDefaultText); enableQuickdraw = c.getBoolean("EnchantQuickdraw", Const.ConfigCategory.content, true, Const.ConfigCategory.contentDefaultText); for (EnchantBase b : EnchantRegistry.enchants) { if (b instanceof IHasConfig) { ((IHasConfig) b).syncConfig(c); } } } }
[ "samson.bassett@gmail.com" ]
samson.bassett@gmail.com