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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15b136637ef901bc644bf74e66840c8563d920aa
|
307eb242838781f17a5e9d2f4922ec3786ff408d
|
/brain/src/main/java/net/fortytwo/smsn/brain/model/pg/PGEntity.java
|
140197afa0950a487ca76517712cf4678f06776a
|
[
"MIT"
] |
permissive
|
hoijui/smsn
|
29802f4c19fbbea5563df08d3cb3b09ba603e9cb
|
859c19fe4dbc5a10eedf59749417a0fe0f85636c
|
refs/heads/master
| 2020-04-24T08:55:12.495363
| 2019-02-21T09:54:41
| 2019-02-21T09:54:41
| 171,845,970
| 0
| 0
| null | 2019-02-21T09:55:36
| 2019-02-21T09:55:36
| null |
UTF-8
|
Java
| false
| false
| 6,898
|
java
|
package net.fortytwo.smsn.brain.model.pg;
import com.google.common.base.Preconditions;
import net.fortytwo.smsn.SemanticSynchrony;
import net.fortytwo.smsn.brain.error.InvalidGraphException;
import org.apache.tinkerpop.gremlin.structure.Direction;
import org.apache.tinkerpop.gremlin.structure.Edge;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.apache.tinkerpop.gremlin.structure.VertexProperty;
import java.util.Iterator;
import java.util.function.Consumer;
import java.util.function.Function;
abstract class PGEntity {
private final Vertex vertex;
protected PGEntity(final Vertex vertex) {
this.vertex = vertex;
}
@Override
public boolean equals(Object other) {
return other instanceof PGEntity && ((PGEntity) other).vertex.id().equals(vertex.id());
}
@Override
public int hashCode() {
return vertex.id().hashCode();
}
public void remove() {
vertex.remove();
}
protected abstract PGTopicGraph getGraph();
protected String getId() {
VertexProperty<String> property = vertex.property(SemanticSynchrony.PropertyKeys.ID_V);
if (!property.isPresent()) {
throw new IllegalStateException("missing id");
}
return property.value();
}
public Vertex asVertex() {
return vertex;
}
protected void addOutEdge(final Vertex inVertex, final String label) {
asVertex().addEdge(label, inVertex);
}
protected <T> T getOptionalProperty(String name) {
VertexProperty<T> property = vertex.property(name);
return property.isPresent() ? property.value() : null;
}
protected <T> T getOptionalProperty(String name, T defaultValue) {
T value = getOptionalProperty(name);
return null == value ? defaultValue : value;
}
protected <T> T getRequiredProperty(String name) {
T value = getOptionalProperty(name);
if (null == value) {
throw new InvalidGraphException("missing property '" + name + "' for vertex " + getId());
}
return value;
}
private <T> boolean setProperty(String name, T value) {
Object previousValue = vertex.property(name);
if (null == value) {
if (null == previousValue) {
return false;
} else {
vertex.property(name).remove();
return true;
}
} else {
if (null == previousValue || !value.equals(previousValue)) {
vertex.property(name, value);
return true;
} else {
return false;
}
}
}
protected boolean setOptionalProperty(String name, Object value) {
return setProperty(name, value);
}
protected boolean setRequiredProperty(String name, Object value) {
if (null == value) {
throw new IllegalArgumentException("can't clear required property '" + name
+ "' on atom vertex " + getId());
}
return setProperty(name, value);
}
protected boolean setRequiredEntity(final String label, final Object other) {
return setEntity(label, other, true);
}
protected boolean setOptionalEntity(final String label, final Object other) {
return setEntity(label, other, false);
}
private boolean setEntity(final String label, final Object other, final boolean required) {
Preconditions.checkArgument(!required || null != other);
boolean changed = removeEdge(label, Direction.OUT);
if (null != other) {
addOutEdge(((PGEntity) other).asVertex(), label);
changed = true;
}
return changed;
}
protected void forAllVertices(final String label, final Direction direction, final Consumer<Vertex> consumer) {
vertex.vertices(direction, label).forEachRemaining(consumer);
}
private Vertex getAtMostOneVertex(final String label, final Direction direction) {
Edge edge = getAtMostOneEdge(label, direction);
return null == edge ? null : getVertex(edge, direction.opposite());
}
private Vertex getExactlyOneVertex(final String label, final Direction direction) {
return getVertex(getExactlyOneEdge(label, direction), direction.opposite());
}
protected <T> T getExactlyOneEntity(
final String label, final Direction direction, final Function<Vertex, T> constructor) {
return constructor.apply(getExactlyOneVertex(label, direction));
}
protected <T> T getAtMostOneEntity(
final String label, final Direction direction, final Function<Vertex, T> constructor) {
Vertex vertex = getAtMostOneVertex(label, direction);
return null == vertex ? null : constructor.apply(vertex);
}
private Edge getAtMostOneEdge(final String label, final Direction direction) {
Iterator<Edge> iter = vertex.edges(direction, label);
if (!iter.hasNext()) {
return null;
}
Edge result = iter.next();
if (iter.hasNext()) {
throw new InvalidGraphException("vertex " + getId()
+ " has more than one '" + label + "' " + direction + " edge");
}
return result;
}
private Edge getExactlyOneEdge(final String label, final Direction direction) {
Edge other = getAtMostOneEdge(label, direction);
if (null == other) {
throw new InvalidGraphException("vertex " + getId()
+ " is missing '" + label + "' " + direction + " edge");
}
return other;
}
protected void forEachAdjacentVertex(final String label, Direction direction, Consumer<Vertex> consumer) {
vertex.vertices(direction, label).forEachRemaining(consumer);
}
protected boolean hasAdjacentVertex(final String label, Direction direction) {
return vertex.vertices(direction, label).hasNext();
}
protected boolean removeEdge(final String label, Direction direction) {
final Mutable<Boolean> changed = new Mutable<>(false);
asVertex().edges(direction, label).forEachRemaining(
edge -> {
edge.remove();
changed.value = true;
});
return changed.value;
}
protected void destroyInternal() {
vertex.remove();
}
private static class Mutable<T> {
public T value;
public Mutable(T value) {
this.value = value;
}
}
private Vertex getVertex(final Edge edge, final Direction direction) {
switch (direction) {
case OUT:
return edge.outVertex();
case IN:
return edge.inVertex();
default:
throw new IllegalStateException();
}
}
}
|
[
"josh@fortytwo.net"
] |
josh@fortytwo.net
|
d0754c87ec1e4f21399d69576593572741f17865
|
2da87d8ef7afa718de7efa72e16848799c73029f
|
/ikep4-lightpack/src/main/java/com/lgcns/ikep4/lightpack/board/search/BoardItemReaderSearchCondition.java
|
a5ea3d6b1a94ed79487dfcc5fd10ccca078483e5
|
[] |
no_license
|
haifeiforwork/ehr-moo
|
d3ee29e2cae688f343164384958f3560255e52b2
|
921ff597b316a9a0111ed4db1d5b63b88838d331
|
refs/heads/master
| 2020-05-03T02:34:00.078388
| 2018-04-05T00:54:04
| 2018-04-05T00:54:04
| 178,373,434
| 0
| 1
| null | 2019-03-29T09:21:01
| 2019-03-29T09:21:01
| null |
UTF-8
|
Java
| false
| false
| 2,089
|
java
|
/*
* Copyright (C) 2011 LG CNS Inc.
* All rights reserved.
*
* 모든 권한은 LG CNS(http://www.lgcns.com)에 있으며,
* LG CNS의 허락없이 소스 및 이진형식으로 재배포, 사용하는 행위를 금지합니다.
*/
package com.lgcns.ikep4.lightpack.board.search;
import com.lgcns.ikep4.framework.web.SearchCondition;
// TODO: Auto-generated Javadoc
/**
* 독서자 검색조건 모델 클래스.
*/
public class BoardItemReaderSearchCondition extends SearchCondition {
static final long serialVersionUID = -8694590878522938222L;
/** 게시글 ID. */
private String boardItemId;
/** 검색 컬럼. */
private String searchColumn;
/** 검색어. */
private String searchWord;
/** 관리자 여부. */
private Boolean admin;
/** 로그인 한 사용자 ID. */
private String userId;
public String getBoardItemId() {
return boardItemId;
}
public void setBoardItemId(String boardItemId) {
this.boardItemId = boardItemId;
}
/**
* Gets the search column.
*
* @return the search column
*/
public String getSearchColumn() {
return this.searchColumn;
}
/**
* Sets the search column.
*
* @param searchColumn the new search column
*/
public void setSearchColumn(String searchColumn) {
this.searchColumn = searchColumn;
}
/**
* Gets the search word.
*
* @return the search word
*/
public String getSearchWord() {
return this.searchWord;
}
/**
* Sets the search word.
*
* @param searchWord the new search word
*/
public void setSearchWord(String searchWord) {
this.searchWord = searchWord;
}
/**
* Gets the admin.
*
* @return the admin
*/
public Boolean getAdmin() {
return this.admin;
}
/**
* Sets the admin.
*
* @param admin the new admin
*/
public void setAdmin(Boolean admin) {
this.admin = admin;
}
/**
* Gets the user id.
*
* @return the user id
*/
public String getUserId() {
return this.userId;
}
/**
* Sets the user id.
*
* @param userId the new user id
*/
public void setUserId(String userId) {
this.userId = userId;
}
}
|
[
"haneul9@gmail.com"
] |
haneul9@gmail.com
|
2006b6a49c43dcb3586709f8c23f0e96eed6ccd6
|
6ee1d99222e4b6354f44f4840d808995077fd9cd
|
/SSO-Client-01/src/main/java/cn/quguai/ssoclient01/SsoClient01Application.java
|
bcd66164b95e41124f3e399dab729b12682ed429
|
[] |
no_license
|
LiYangSir/SSO
|
530454ec32b7f0d1c1f9d2e62359fe556fdd76b3
|
bc03e3dd29d11ff075c8bdf2b2687d70ec3b7542
|
refs/heads/master
| 2023-03-10T15:58:43.735506
| 2021-02-23T04:56:58
| 2021-02-23T04:56:58
| 341,425,168
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 507
|
java
|
package cn.quguai.ssoclient01;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;
@SpringBootApplication
public class SsoClient01Application {
public static void main(String[] args) {
SpringApplication.run(SsoClient01Application.class, args);
}
}
|
[
"7983072+LiYangSir@user.noreply.gitee.com"
] |
7983072+LiYangSir@user.noreply.gitee.com
|
c5bef336a41a910dbebd44d6debfb8079e21e97a
|
e07778beae51bc995308ca0e42e3346549d7f17f
|
/src/main/java/com/yandex/money/api/utils/Strings.java
|
1b92a67d5e8f3126dce163503336bdccdd603f2d
|
[
"MIT"
] |
permissive
|
axidms/yandex-money-sdk-java
|
3df6e8285a296ee0fda5eb56b9b094f29e9acbb5
|
a969d5d847b592841780d5de3e048aa63eb010c6
|
refs/heads/master
| 2021-01-12T22:34:36.666069
| 2014-08-27T16:04:32
| 2014-08-27T16:04:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,432
|
java
|
package com.yandex.money.api.utils;
/**
* Common strings operations.
*
* @author Slava Yasevich (vyasevich@yamoney.ru)
*/
public final class Strings {
private Strings() {
}
/**
* Checks if value is null or empty.
*
* @param value value
* @return {@code true} if null or empty
*/
public static boolean isNullOrEmpty(String value) {
return value == null || value.isEmpty();
}
/**
* Checks if string value contains digits only.
*
* @param value value
* @return {@code true} if digits only
*/
public static boolean containsDigitsOnly(String value) {
if (value == null) {
throw new NullPointerException("value is null");
}
return value.matches("\\d*");
}
/**
* Concatenates {@code array} of strings to one string using {@code splitter} as a separator.
*
* @param array array of strings
* @param splitter separator
* @return concatenated string
*/
public static String concatenate(String[] array, String splitter) {
if (array == null) {
throw new NullPointerException("array is null");
}
if (splitter == null) {
throw new NullPointerException("splitter is null");
}
if (array.length == 0) {
return "";
}
StringBuilder sb = new StringBuilder(array[0]);
for (int i = 1; i < array.length; ++i) {
sb.append(splitter).append(array[i]);
}
return sb.toString();
}
/**
* Splits {@code str} to array of strings where the max length of each string is equals or less
* than {@code n}.
*
* @param str source string
* @param n max length
* @return array of strings
*/
public static String[] split(String str, int n) {
if (str == null) {
throw new NullPointerException("str is null");
}
if (n <= 0) {
throw new IllegalArgumentException("n should be greater than 0");
}
final int length = str.length();
String[] result = new String[length / n + (length % n == 0 ? 0 : 1)];
for (int i = 0; i < result.length; ++i) {
int beginIndex = i * n;
int endIndex = (i + 1) * n;
result[i] = str.substring(beginIndex, endIndex < length ? endIndex : length);
}
return result;
}
}
|
[
"vyasevich@yamoney.ru"
] |
vyasevich@yamoney.ru
|
6d0eb736d62ffee230718aea18fa8ef497346145
|
f2893b3141066418b72f1348da6d6285de2512c6
|
/modelViewPresenter/presentationModel/withComposite/src/test/java/usantatecla/utils/views/ColorCodeTest.java
|
cd92abfc74211c1645c0eaceabc306def984d78e
|
[] |
no_license
|
x-USantaTecla-game-connect4/java.swing.socket.sql
|
26f8028451aab3c8e5c26db1b1509e6e84108b0d
|
28dcc3879d782ace1752c2970d314498ee50b243
|
refs/heads/master
| 2023-09-01T11:43:43.053572
| 2021-10-16T16:19:50
| 2021-10-16T16:19:50
| 417,161,784
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,587
|
java
|
package usantatecla.utils.views;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.MockedStatic;
import org.mockito.junit.jupiter.MockitoExtension;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.mockito.Mockito.*;
@ExtendWith(MockitoExtension.class)
public class ColorCodeTest {
@Mock
private Console console;
private ColorCode colorCode;
@BeforeEach
public void beforeEach() {
this.colorCode = ColorCode.BLUE;
}
@Test
public void testGivenColorCodeWhenCallGetColorThenReturnCorrectStringColor() {
assertThat(this.colorCode.get(), is("\u001B[34m"));
}
@Test
public void testGivenNullColorCodeWhenCallGetColorThenAssertError() {
Assertions.assertThrows(AssertionError.class, () -> ColorCode.NULL.get());
}
@Test
public void testGivenIndexWhenCallGetColorByIndexThenReturnCorrectStringColor() {
assertThat(ColorCode.get(0), is("\u001B[30m"));
}
@Test
public void testGivenOutOfBoundsIndexWhenCallGetColorByIndexThenAssertionError() {
Assertions.assertThrows(AssertionError.class, () -> ColorCode.get(-1));
Assertions.assertThrows(AssertionError.class, () -> ColorCode.get(ColorCode.NULL.ordinal()));
}
@Test
public void testGivenColorCodeWhenGetInitialThenReturn() {
assertThat(this.colorCode.getInitial(), is('b'));
}
@Test
public void testGivenNotNullColorCodeWhenIsNullThenFalse() {
assertThat(this.colorCode.isNull(), is(false));
}
@Test
public void testGivenNullColorCodeWhenIsNullThenTrue() {
assertThat(ColorCode.NULL.isNull(), is(true));
}
@Test
public void testGivenColorCodeWhenWriteThenPrint() {
try (MockedStatic<Console> console = mockStatic(Console.class)) {
console.when(Console::getInstance).thenReturn(this.console);
this.colorCode.write();
verify(this.console).write(this.colorCode.get() + this.colorCode.getInitial() + ColorCode.RESET_COLOR.get());
}
}
@Test
public void testGivenNullColorCodeWhenWriteThenZeroInteractions() {
try (MockedStatic<Console> console = mockStatic(Console.class)) {
console.when(Console::getInstance).thenReturn(this.console);
ColorCode.NULL.write();
verifyNoInteractions(this.console);
}
}
}
|
[
"setillofm@gmail.com"
] |
setillofm@gmail.com
|
dd855a308de01e3a8c861ed6f135f3380d16e9ff
|
a4b88840d3d30b07aa00e69259a7b1c035441a85
|
/espd-edm/src/main/java/oasis/names/specification/ubl/schema/xsd/commonbasiccomponents_2/BusinessClassificationEvidenceIDType.java
|
aea802a2dc2d6137a728f80f86054c3d8cd0c37b
|
[] |
no_license
|
AgID/espd-builder
|
e342712abc87824d402a90ad87f312a243165970
|
3614d526d574ad979aafa6da429e409debc73dd8
|
refs/heads/master
| 2022-12-23T20:36:03.500212
| 2020-01-30T16:48:37
| 2020-01-30T16:48:37
| 225,416,148
| 3
| 0
| null | 2022-12-16T09:49:58
| 2019-12-02T16:08:38
|
Java
|
UTF-8
|
Java
| false
| false
| 3,694
|
java
|
//
// Questo file è stato generato dall'architettura JavaTM per XML Binding (JAXB) Reference Implementation, v2.2.11
// Vedere <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2019.02.25 alle 12:32:23 PM CET
//
package oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import oasis.names.specification.ubl.schema.xsd.unqualifieddatatypes_2.IdentifierType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
/**
* <p>Classe Java per BusinessClassificationEvidenceIDType complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* <complexType name="BusinessClassificationEvidenceIDType">
* <simpleContent>
* <restriction base="<urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-2>IdentifierType">
* </restriction>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BusinessClassificationEvidenceIDType")
public class BusinessClassificationEvidenceIDType
extends IdentifierType
implements Serializable, Equals2, HashCode2, ToString2
{
private final static long serialVersionUID = 100L;
public String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
super.appendFields(locator, buffer, strategy);
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
if (!super.equals(thisLocator, thatLocator, object, strategy)) {
return false;
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = super.hashCode(locator, strategy);
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}
|
[
"mpetruzzi@pccube.com"
] |
mpetruzzi@pccube.com
|
43030ad070559bd9d04ef6cf6064029436f14e4e
|
59596a878a6e4a75d518cf3648246abcbe291087
|
/src/project/ProjectFactory.java
|
9e52c89e1ee8a30971eae5c3e914c6ab6a6c1558
|
[] |
no_license
|
ganiushina/ArhitectorProject
|
7127c446d1a77e563225f8a265d846119712ea27
|
a43276f09c8081988e53146bc8c292c567fe2a7e
|
refs/heads/master
| 2022-06-28T09:16:44.414910
| 2020-04-29T15:36:02
| 2020-04-29T15:36:02
| 257,587,655
| 0
| 1
| null | 2020-05-07T14:47:33
| 2020-04-21T12:24:54
|
Java
|
UTF-8
|
Java
| false
| false
| 197
|
java
|
package project;
public interface ProjectFactory {
ProjectRecruitment getRecruiting(double price);
ProjectResearch getResearch();
ProjectSalarySurvey getSalarySurvey();
}
|
[
"32090008+ganiushina@users.noreply.github.com"
] |
32090008+ganiushina@users.noreply.github.com
|
2049b9679af4b3d8cddfa2ede49542362fedfa8b
|
c23d6151902d90c01241459c9823772ff58777bb
|
/loadui-project/loadui-api/src/main/java/com/eviware/loadui/api/chart/Point.java
|
3d6127d85855f457787f11ea0d95705351fe2ade
|
[] |
no_license
|
nagyist/loadui
|
ba0969a89241eed6fa2fb7e11fa663178a12a7b4
|
68e6bc7d444a754ea4dbd45d17e36e2c8cc57484
|
refs/heads/master
| 2021-01-17T22:34:23.441939
| 2014-04-25T15:38:23
| 2014-04-25T15:38:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,013
|
java
|
/*
* Copyright 2013 SmartBear Software
*
* Licensed under the EUPL, Version 1.1 or - as soon they will be approved by the European Commission - subsequent
* versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* http://ec.europa.eu/idabc/eupl
*
* Unless required by applicable law or agreed to in writing, software distributed under the Licence is
* distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the Licence for the specific language governing permissions and limitations
* under the Licence.
*/
package com.eviware.loadui.api.chart;
import javax.annotation.concurrent.Immutable;
@Deprecated
@Immutable
public class Point
{
private final double x;
private final double y;
public Point( double x, double y )
{
this.x = x;
this.y = y;
}
public double getX()
{
return x;
}
public double getY()
{
return y;
}
}
|
[
"maximilian.skog@smartbear.com"
] |
maximilian.skog@smartbear.com
|
e2e98f1da2e24c77bfbde1a5912f73582127ccc3
|
2669420655de64d9c97995e3ed03a80b3b82c9ea
|
/app/src/main/java/com/example/aladhari/gertunmobpact/model/Album.java
|
4ec3abef47d6d1d560b39960019f53fd543df4fd
|
[] |
no_license
|
aymenlaadhari/GerTunMobPactMaterial
|
6fd90910525160f169903c1f660b452ba7a5f0f5
|
b0df92535cc778b915d3241f88d7f7b55b149085
|
refs/heads/master
| 2021-01-20T17:32:56.167216
| 2016-07-22T09:38:41
| 2016-07-22T09:38:41
| 63,941,951
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 841
|
java
|
package com.example.aladhari.gertunmobpact.model;
/**
* Created by aladhari on 06.07.2016.
*/
public class Album {
private String name;
private int numOfSongs;
private int thumbnail;
public Album() {
}
public Album(String name, int numOfSongs, int thumbnail) {
this.name = name;
this.numOfSongs = numOfSongs;
this.thumbnail = thumbnail;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getNumOfSongs() {
return numOfSongs;
}
public void setNumOfSongs(int numOfSongs) {
this.numOfSongs = numOfSongs;
}
public int getThumbnail() {
return thumbnail;
}
public void setThumbnail(int thumbnail) {
this.thumbnail = thumbnail;
}
}
|
[
"aymenlaadhari@gmail.com"
] |
aymenlaadhari@gmail.com
|
b475d35b35f263541a90fb84255ead072e3f00ec
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/28/28_14acc0ae727b026f2babd8045579e61026a407ed/GameScreen/28_14acc0ae727b026f2babd8045579e61026a407ed_GameScreen_s.java
|
63c58bdf7c7ee3c75775722ab9dcfbbfb0a74614
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 4,603
|
java
|
package org.racenet.racesow;
import java.util.List;
import javax.microedition.khronos.opengles.GL10;
import org.racenet.framework.Camera2;
import org.racenet.framework.CameraText;
import org.racenet.framework.GLGame;
import org.racenet.framework.GLGraphics;
import org.racenet.framework.GLTexture;
import org.racenet.framework.Vector2;
import org.racenet.framework.interfaces.Game;
import org.racenet.framework.interfaces.Screen;
import org.racenet.framework.interfaces.Input.TouchEvent;
import android.util.Log;
class GameScreen extends Screen {
public Player player;
CameraText ups, fps, timer;
public Map map;
Vector2 gravity = new Vector2(0, -30);
Camera2 camera;
GLGraphics glGraphics;
boolean jumpPressed = false;
float jumpPressedTime = 0;
boolean shootPressed = false;
float shootPressedTime = 0;
int fpsInterval = 5;
int frames = 10;
float sumDelta = 0;
public GameScreen(Game game, String mapName) {
super(game);
glGraphics = ((GLGame)game).getGLGraphics();
GLTexture.APP_FOLDER = "racesow";
float camWidth = (float)game.getScreenWidth() / 10;
float camHeight = (float)game.getScreenHeight() / 10;
ups = new CameraText(glGraphics.getGL(), new Vector2(camWidth / 2 - 15, camHeight / 2 - 3));
ups.setupVertices(glGraphics);
ups.setupText((GLGame)game, "ups");
fps = new CameraText(glGraphics.getGL(), new Vector2(camWidth / 2 - 25, camHeight / 2 - 3));
fps.setupVertices(glGraphics);
fps.setupText((GLGame)game, "fps");
timer = new CameraText(glGraphics.getGL(), new Vector2(camWidth / 2 - 35, camHeight / 2 - 3));
timer.setupVertices(glGraphics);
timer.setupText((GLGame)game, "t 0.00");
camera = new Camera2(glGraphics, camWidth, camHeight);
camera.addHud(ups);
camera.addHud(fps);
camera.addHud(timer);
map = new Map(glGraphics.getGL(), camWidth, camHeight);
map.load((GLGame)game, mapName);
player = new Player((GLGame)game, map, camera, map.playerX, map.playerY);
}
public void update(float deltaTime) {
List<TouchEvent> touchEvents = game.getInput().getTouchEvents();
int len = touchEvents.size();
for (int i = 0; i < len; i++) {
TouchEvent e = touchEvents.get(i);
if (e.type == TouchEvent.TOUCH_DOWN) {
if (e.x / camera.frustumWidth > 5) {
if (!this.jumpPressed) {
this.jumpPressed = true;
this.jumpPressedTime = 0;
}
} else {
if (!this.shootPressed) {
this.shootPressed = true;
this.shootPressedTime = 0;
}
}
} else if (e.type == TouchEvent.TOUCH_UP) {
if (e.x / camera.frustumWidth > 5) {
this.jumpPressed = false;
this.jumpPressedTime = 0;
} else {
this.shootPressed = false;
this.shootPressedTime = 0;
}
}
}
if (this.jumpPressed) {
player.jump(this.jumpPressedTime);
jumpPressedTime += deltaTime;
}
if (this.shootPressed) {
player.shoot(this.shootPressedTime);
shootPressedTime += deltaTime;
}
player.move(gravity, deltaTime, jumpPressed);
camera.setPosition(player.getPosition().x + 20, camera.position.y);
map.update(camera.position);
ups.setupText((GLGame)game, "ups " + String.valueOf(new Integer((int)player.virtualSpeed)));
frames--;
sumDelta += deltaTime;
if (frames == 0) {
fps.setupText((GLGame)game, "fps " + String.valueOf(new Integer((int)(fpsInterval / sumDelta))));
frames = fpsInterval;
sumDelta = 0;
}
timer.setupText((GLGame)game, "t " + String.format("%.2f", map.getCurrentTime()));
}
public void present(float deltaTime) {
GL10 gl = glGraphics.getGL();
gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
gl.glFrontFace(GL10.GL_CCW);
gl.glEnable(GL10.GL_CULL_FACE);
gl.glCullFace(GL10.GL_BACK);
camera.setViewportAndMatrices();
gl.glEnable(GL10.GL_TEXTURE_2D);
gl.glEnable(GL10.GL_BLEND);
gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
map.draw();
player.draw();
camera.drawHud();
}
public void pause() {
}
public void resume() {
this.map.reloadTextures();
this.player.reloadTextures();
}
public void dispose() {
this.map.dispose();
this.player.dispose();
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
38f0f2f7bd4b5700874f28b44c08d5f0eca0d8b9
|
1005d4b5e1baaccae8d6e18873b724c7151507ba
|
/Riders Opinion/app/src/main/java/com/nutsuser/ridersdomain/web/pojos/Notification.java
|
6b679de56349b924a257ad106ff41a3c1cd73b37
|
[] |
no_license
|
amit-ucreate/RiderOpinion-Android
|
b4c6c664c927c71d0641527a1beb4e0d734d5599
|
90dee7f46982eb21d6cb66a36def9cc2b4653ae4
|
refs/heads/master
| 2021-01-17T14:27:00.064239
| 2016-07-28T08:49:31
| 2016-07-28T08:49:31
| 47,685,400
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,226
|
java
|
package com.nutsuser.ridersdomain.web.pojos;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Notification {
@SerializedName("success")
@Expose
private Integer success;
@SerializedName("data")
@Expose
private NotificationData data;
@SerializedName("message")
@Expose
private String message;
/**
*
* @return
* The success
*/
public Integer getSuccess() {
return success;
}
/**
*
* @param success
* The success
*/
public void setSuccess(Integer success) {
this.success = success;
}
/**
*
* @return
* The data
*/
public NotificationData getData() {
return data;
}
/**
*
* @param data
* The data
*/
public void setData(NotificationData data) {
this.data = data;
}
/**
*
* @return
* The message
*/
public String getMessage() {
return message;
}
/**
*
* @param message
* The message
*/
public void setMessage(String message) {
this.message = message;
}
}
|
[
"amit@ucreate.co.in"
] |
amit@ucreate.co.in
|
87ce1c11d6aa9c25503c17915ccf0c5259349ee8
|
a1e706db07dd67771234d08fcb705e1b9d407c76
|
/LanguageWorkbench/ecnu.models2019.shml.k3dsa/xtend-gen/ecnu/models2019/shml/k3dsa/shml/aspects/ODEAspect.java
|
922540edc7bf66c41714f152fccdb6d307b58367
|
[] |
no_license
|
ECNUCPS/SHML
|
3e83813cb5c8698b051c669a5529b1c0e07c8710
|
82b0f3fc785c6f632efba43cee718535f3fcca5f
|
refs/heads/master
| 2020-06-26T06:26:45.647770
| 2019-04-24T02:26:11
| 2019-04-24T02:26:11
| 199,559,417
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 209
|
java
|
package ecnu.models2019.shml.k3dsa.shml.aspects;
import fr.inria.diverse.k3.al.annotationprocessor.Aspect;
import shml.ODE;
@Aspect(className = ODE.class)
@SuppressWarnings("all")
public class ODEAspect {
}
|
[
"wangyao2221@163.com"
] |
wangyao2221@163.com
|
4960b76f927517a37d2b3c0429816e037cbf4f2b
|
cd892d377017f1ce50e6a92aa19c4bf64cdc31af
|
/src/main/java/com/gdufe/exercise_app/entity/ContentComment.java
|
7e96bf7d9b265c8c9daadbcae38bdbd783c81132
|
[] |
no_license
|
gdufexzq/exercise_app
|
bc90c2a2f810d8f1713527007cebdb40acdafca0
|
a2a235600726671bea7601b2fa0a9c1316f38bf2
|
refs/heads/master
| 2021-11-03T18:12:28.440708
| 2019-04-26T09:42:09
| 2019-04-26T09:42:09
| 182,353,422
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,320
|
java
|
package com.gdufe.exercise_app.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
*
* </p>
*
* @author xuzhiquan
* @since 2019-03-26
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ContentComment implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 评论表主键id
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* user_content表的id
*/
private Long contentId;
/**
* 评论人的openId
*/
private String userId;
/**
* 评论用户的用户头像
*/
private String userImage;
/**
* 评论用户的昵称
*/
private String userName;
/**
* 评论内容
*/
private String commentContent;
/**
* 创建时间
*/
private Long createTime;
/**
* 修改时间
*/
private Long modifyTime;
/**
* 扩展字段1
*/
private String ext1;
/**
* 扩展字段2
*/
private String ext2;
/**
* 扩展字段3
*/
private String ext3;
}
|
[
"goodMorning_glb@atguigu.com"
] |
goodMorning_glb@atguigu.com
|
6c1296a8956066bbf5a6241288660bf37988b94c
|
a7c85a1e89063038e17ed2fa0174edf14dc9ed56
|
/spring-aop-perf-tests/src/main/java/coas/perf/TargetClass500/Advice259.java
|
b947382d8028e1507a7fc26567542143010bf990
|
[] |
no_license
|
pmaslankowski/java-contracts
|
28b1a3878f68fdd759d88b341c8831716533d682
|
46518bb9a83050956e631faa55fcdf426589830f
|
refs/heads/master
| 2021-03-07T13:15:28.120769
| 2020-09-07T20:06:31
| 2020-09-07T20:06:31
| 246,267,189
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 738
|
java
|
package coas.perf.TargetClass500;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;
import coas.perf.TargetClass500.Subject500;
@Aspect
@Component("Advice_500_259")
public class Advice259 {
private int counter = 0;
@Around("execution(* Subject500.*(..))")
public Object onTarget(ProceedingJoinPoint joinPoint) throws Throwable {
int res = (int) joinPoint.proceed();
for (int i=0; i < 1000; i++) {
if (res % 2 == 0) {
res /= 2;
} else {
res = 2 * res + 1;
}
}
return res;
}
}
|
[
"pmaslankowski@gmail.com"
] |
pmaslankowski@gmail.com
|
a1d626ce662c10662f532322e54f25b69a696658
|
5b26b0910b1cf393cf3abde48bebd884d973bb49
|
/src/main/java/cn/cqs/http/loading/LoadingDialog.java
|
de1e13d67b68bc5f44c249feb4bb38ad6e282781
|
[] |
no_license
|
bingoloves/xhttp
|
0e7d1f48862c4c77015420d9352c2ec292454457
|
775eab9441660d391c0ee3782f40596b0ba97d5a
|
refs/heads/main
| 2023-02-26T07:36:57.479603
| 2021-02-04T07:49:48
| 2021-02-04T07:49:48
| 335,490,547
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,254
|
java
|
package cn.cqs.http.loading;
import android.app.Dialog;
import android.content.Context;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;
import cn.cqs.http.R;
/**
* Created by bingo on 2021/2/3.
*
* @Author: bingo
* @Email: 657952166@qq.com
* @Description: 类作用描述
* @UpdateUser: 更新者
* @UpdateDate: 2021/2/3
*/
public class LoadingDialog extends Dialog {
public LoadingDialog(@NonNull Context context,String message,boolean isCancelable) {
super(context);
init(context,message,isCancelable);
}
protected void init(Context context, String message, boolean isCancelable) {
View loadingView = LayoutInflater.from(context).inflate(R.layout.progress_loading,null);
ChrysanthemumView chrysanthemumView = loadingView.findViewById(R.id.loading_view);
TextView messageTv = loadingView.findViewById(R.id.loading_message);
chrysanthemumView.startAnimation(1000);
if (!TextUtils.isEmpty(message)){
messageTv.setText(message);
messageTv.setVisibility(View.VISIBLE);
} else {
messageTv.setVisibility(View.GONE);
}
setContentView(loadingView);
Window dialogWindow = getWindow();
// if (dialogWindow != null) {
// WindowManager.LayoutParams layoutParams = dialogWindow.getAttributes();
// layoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL;
// layoutParams.width = WindowManager.LayoutParams.MATCH_PARENT;
// layoutParams.height = WindowManager.LayoutParams.MATCH_PARENT;
// layoutParams.dimAmount = 0f;
// dialogWindow.setAttributes(layoutParams);
// dialogWindow.setBackgroundDrawableResource(android.R.color.transparent);
// //核心代码 解决了无法去除遮罩问题
dialogWindow.setBackgroundDrawableResource(android.R.color.transparent);
dialogWindow.setDimAmount(0f);
// }
setCancelable(isCancelable);
setCanceledOnTouchOutside(isCancelable);
}
}
|
[
"657952166@qq.com"
] |
657952166@qq.com
|
3eeec3c8a47a35ec34b1729e17156aedbc95c914
|
84720df5d6fd8f8c9cbf80706ad8d39b2ccb6206
|
/refactoring-tecniques/src/main/java/com/refactoring/tecniques/movierental/replaceconditional/withpolimorfizm/after/Rental.java
|
69793b5a8d6c89ad15261c35c8523aefd18fd9b6
|
[] |
no_license
|
hippalus/refactoring
|
52a24ff41aec9e25b11188f2a88862304b78983d
|
e128600b46d06b43753f154eca9571f1172ca397
|
refs/heads/master
| 2020-06-20T09:23:23.009769
| 2019-08-22T13:48:16
| 2019-08-22T13:48:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 754
|
java
|
package com.refactoring.tecniques.movierental.replaceconditional.withpolimorfizm.after;
public class Rental {
private int daysRented;
Movie movie;
public Rental(Movie movie, int daysRented) {
this.movie = movie;
this.daysRented = daysRented;
}
public int getDaysRented() {
return daysRented;
}
public void setDaysRented(int daysRented) {
this.daysRented = daysRented;
}
public Movie getMovie() {
return movie;
}
public void setMovie(Movie movie) {
this.movie = movie;
}
double determineAmount()
{
return movie.determineAmount(this.getDaysRented());
}
int determineFrequentRenterPoints(){
return movie.determineFrequentRenterPoints(this.getDaysRented());
}
}
|
[
"habiphakan.isler@gmail.com"
] |
habiphakan.isler@gmail.com
|
c236ea1a1e4950e1db1a1b04249fba1e0b8a37ce
|
46286e57fe92af6cd592c20e974616b6a106b625
|
/mall-web/src/main/java/cn/druglots/mall/core/exception/GlobalExceptionHandler.java
|
3c7e4bd7c1868437d5d147ac7c35e27e35d4fba9
|
[] |
no_license
|
King-Pan/cloud-mall
|
fbf33f605f7e6bac3b828839b810628f28e23e87
|
3c1b0c636d245f1bb552b750855ee7ea7b7b5b37
|
refs/heads/master
| 2022-08-22T13:17:39.260932
| 2020-05-09T08:50:51
| 2020-05-09T08:50:51
| 204,629,736
| 0
| 0
| null | 2022-07-06T20:41:48
| 2019-08-27T05:54:35
|
Java
|
UTF-8
|
Java
| false
| false
| 6,328
|
java
|
package cn.druglots.mall.core.exception;
import cn.druglots.mall.common.result.ResultCode;
import cn.druglots.mall.common.result.ResultGenerator;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.authz.AuthorizationException;
import org.apache.shiro.authz.UnauthorizedException;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;
/**
*
* @author King-Pan
*/
@Slf4j
@RestControllerAdvice
public class GlobalExceptionHandler {
private static final String JSON_TYPE = "application/json";
private static final String XML_REQUEST = "XMLHttpRequest";
public ModelAndView resolveException(HttpServletRequest request,
HttpServletResponse response, Object handler, Exception ex) {
// TODO Auto-generated method stub
log.error("==============异常开始=============");
//如果是shiro无权操作,因为shiro 在操作auno等一部分不进行转发至无权限url
if (ex instanceof UnauthorizedException) {
return new ModelAndView("unauthorized");
}
ex.printStackTrace();
log.error("GlobalExceptionHandler异常处理", ex);
log.error("==============异常结束=============");
ModelAndView mv = new ModelAndView("error");
mv.addObject("exception", ex.toString().replaceAll("\n", "<br/>"));
return mv;
}
/**
* json格式异常处理
*
* @param e
* @param request
* @return
*/
@ExceptionHandler(value = Exception.class)
public Object jsonErrorHandler(Exception e, HttpServletRequest request) {
//使用HttpServletRequest中的header检测请求是否为ajax, 如果是ajax则返回json, 如果为非ajax则返回view(即ModelAndView)
String contentTypeHeader = request.getHeader("Content-Type");
String acceptHeader = request.getHeader("Accept");
String xRequestedWith = request.getHeader("X-Requested-With");
boolean containsFlag = false;
if (StringUtils.isNotBlank(contentTypeHeader)) {
containsFlag = contentTypeHeader.contains(JSON_TYPE);
}
if (acceptHeader != null && containsFlag) {
return getErrorResult(request, e);
}
if (containsFlag) {
return getErrorResult(request, e);
}
boolean xmlRequestFlag = XML_REQUEST.equalsIgnoreCase(xRequestedWith);
if (xmlRequestFlag) {
return getErrorResult(request, e);
}
ModelAndView view = new ModelAndView("global_error");
view.addObject("code", 500);
view.addObject("msg", e.getMessage());
view.addObject("url", request.getRequestURL());
view.addObject("stackTrace", e.getStackTrace());
return view;
}
/**
* 异常处理
*
* @param e
* @param request
* @return
*/
@ResponseBody
@ExceptionHandler(value = BusinessException.class)
public Object viewErrorHandler(HttpServletRequest request, BusinessException e) {
//使用HttpServletRequest中的header检测请求是否为ajax, 如果是ajax则返回json, 如果为非ajax则返回view(即ModelAndView)
String contentTypeHeader = request.getHeader("Content-Type");
String acceptHeader = request.getHeader("Accept");
String xRequestedWith = request.getHeader("X-Requested-With");
boolean containsFlag = false;
if (StringUtils.isNotBlank(contentTypeHeader)) {
containsFlag = contentTypeHeader.contains(JSON_TYPE);
}
if (containsFlag) {
return getErrorResult(request, e);
}
if (acceptHeader != null && containsFlag) {
return getErrorResult(request, e);
}
boolean xmlRequestFlag = XML_REQUEST.equalsIgnoreCase(xRequestedWith);
if (xmlRequestFlag) {
return getErrorResult(request, e);
}
ModelAndView view = new ModelAndView("global_error");
view.addObject("code", e.getResultCode().code());
view.addObject("msg", e.getResultCode().msg());
view.addObject("url", request.getRequestURL());
view.addObject("stackTrace", e.getStackTrace());
return view;
}
private Object getErrorResult(HttpServletRequest request, BusinessException e) {
Map<String, Object> result = new HashMap<>(3);
result.put("code", e.getResultCode().code());
result.put("msg", e.getMsg());
result.put("url", request.getRequestURL());
return ResultGenerator.failResult(e.getResultCode()).setData(result);
}
private Object getErrorResult(HttpServletRequest request, Exception e) {
Map<String, Object> result = new HashMap<>(3);
result.put("code", 500);
result.put("msg", e.getMessage());
result.put("url", request.getRequestURL());
return ResultGenerator.failResult(e.getMessage()).setData(result);
}
/**
* 判断请求是否是ajax请求
*
* @param httpRequest 请求
* @return
*/
public static boolean isAjax(HttpServletRequest httpRequest) {
return (httpRequest.getHeader("X-Requested-With") != null
&& "XMLHttpRequest"
.equals(httpRequest.getHeader("X-Requested-With").toString()));
}
/**
* 未授权错误处理
*
* @param ex
* @return
*/
@ResponseBody
@ExceptionHandler(UnauthorizedException.class)
public Object handleShiroException(Exception ex) {
return ResultGenerator.failResult(HttpStatus.UNAUTHORIZED);
}
/**
* 授权失败处理
*
* @param ex
* @return
*/
@ResponseBody
@ExceptionHandler(AuthorizationException.class)
public Object AuthorizationException(Exception ex) {
return ResultGenerator.failResult(ResultCode.AUTHORIZED_FAIL).setMessage(ex.getMessage());
}
}
|
[
"pwpw1218@gmail.com"
] |
pwpw1218@gmail.com
|
faaa6f3d661ef9ad32cb214d0f8db96627e8cfe3
|
6b920db0c198276824ada1edcfe200cb2a63eb7e
|
/src/main/java/com/rmi/server/entity/FlowImage.java
|
cbfb63a924374dd58003c478bb882c8308fcb6c6
|
[] |
no_license
|
lz-yy/manager
|
9dd3ccae026375ffe9d36928bc502c27f9f9e3bb
|
b2bc1c8ae907cfc1751d44741c9ce6e875dcbd75
|
refs/heads/master
| 2020-05-17T05:33:17.865344
| 2019-07-26T07:19:09
| 2019-07-26T07:19:09
| 172,419,728
| 1
| 1
| null | 2019-02-25T02:25:20
| 2019-02-25T02:25:20
| null |
UTF-8
|
Java
| false
| false
| 401
|
java
|
package com.rmi.server.entity;
import java.io.InputStream;
import java.io.Serializable;
public class FlowImage implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private InputStream imageStream;
public InputStream getImageStream() {
return imageStream;
}
public void setImageStream(InputStream imageStream) {
this.imageStream = imageStream;
}
}
|
[
"2768911783@qq.com"
] |
2768911783@qq.com
|
4c77d505145e6324a7698ec312baf36df572a911
|
cb4e96db361aa27ebf2573642cbbf9f7e2c47a96
|
/wingtool-parent/wingtoolparent/wingtool-core/src/main/java/com/orangehaswing/core/convert/impl/EnumConverter.java
|
3a82ab5a9518c725e16322a56224ecce99b6e6e1
|
[] |
no_license
|
orangehaswing/wingtool
|
5242fb3929185b2c8c8c8f81ffd2a53959104829
|
a8851360e40a4b1c9b24345f0aeb332e50ed8c5a
|
refs/heads/master
| 2020-05-03T12:49:44.276966
| 2019-04-16T13:16:41
| 2019-04-16T13:16:41
| 178,637,437
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 666
|
java
|
package com.orangehaswing.core.convert.impl;
import com.orangehaswing.core.convert.AbstractConverter;
/**
* 无泛型检查的枚举转换器
*
* @author Looly
* @since 4.0.2
*/
@SuppressWarnings({ "unchecked", "rawtypes" })
public class EnumConverter extends AbstractConverter<Object> {
private Class enumClass;
/**
* 构造
*
* @param enumClass 转换成的目标Enum类
*/
public EnumConverter(Class enumClass) {
this.enumClass = enumClass;
}
@Override
protected Object convertInternal(Object value) {
return Enum.valueOf(enumClass, convertToStr(value));
}
@Override
public Class getTargetType() {
return this.enumClass;
}
}
|
[
"673556024@qq.com"
] |
673556024@qq.com
|
07b8ea96441507c57a5dd394ffefc2b6fa511efe
|
7bde04daaf5233f88ee8290b28ca880c299100ff
|
/spring-core/src/main/java/egov/mybatis/UserMapperDao.java
|
a54e93c1513ac901b804100f85ff4d9942ae5a33
|
[] |
no_license
|
somyungsub/lecture-spring-basic
|
dbc90e21d3c303c20e11713804561453eb445e4a
|
19b22aa8e4e98fccd0c36a54a5c550f080a6787c
|
refs/heads/master
| 2022-06-18T02:11:41.512766
| 2020-12-06T05:49:04
| 2020-12-06T05:49:04
| 249,073,339
| 0
| 0
| null | 2022-05-25T07:19:54
| 2020-03-21T22:40:18
|
Java
|
UTF-8
|
Java
| false
| false
| 523
|
java
|
package egov.mybatis;
import java.util.List;
public class UserMapperDao implements UserMapper {
@Override
public UserVO selectOne(String id) {
System.out.println("id = " + id);
return null;
}
@Override
public UserVO selectOneTest(String id) {
System.out.println("id test = " + id);
return null;
}
@Override
public List<UserVO> selectList() {
System.out.println("list");
return null;
}
@Override
public void deleteAllUserVO() {
System.out.println("deleteAll");
}
}
|
[
"gkdldy5@naver.com"
] |
gkdldy5@naver.com
|
4d583ace31dce8e4cc53feee218fbd4b01f9d4d2
|
84875513efcf4846a3e3add9aa6aa320082e3762
|
/app/src/main/java/nerdvana/com/pointofsales/api_responses/RoomRateMain.java
|
cc253edcaa500fbc06595e95857ed942615904c0
|
[] |
no_license
|
dionedavellorera/PointOfSales
|
7f3836293c13a6f00eaa9944a4c88a729ebba903
|
a412714a14e20b72df3769d8d96bab87f285e9cb
|
refs/heads/master
| 2021-07-09T09:14:07.252082
| 2020-07-28T11:21:54
| 2020-07-28T11:21:54
| 164,046,007
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,660
|
java
|
package nerdvana.com.pointofsales.api_responses;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class RoomRateMain {
@SerializedName("id")
@Expose
private Integer id;
@SerializedName("room_rate_price_id")
@Expose
private Integer roomRatePriceId;
@SerializedName("room_type_id")
@Expose
private Integer roomTypeId;
@SerializedName("created_by")
@Expose
private Integer createdBy;
@SerializedName("created_at")
@Expose
private String createdAt;
@SerializedName("updated_at")
@Expose
private String updatedAt;
@SerializedName("deleted_at")
@Expose
private Object deletedAt;
@SerializedName("rate_price")
@Expose
private RatePrice ratePrice;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getRoomRatePriceId() {
return roomRatePriceId;
}
public void setRoomRatePriceId(Integer roomRatePriceId) {
this.roomRatePriceId = roomRatePriceId;
}
public Integer getRoomTypeId() {
return roomTypeId;
}
public void setRoomTypeId(Integer roomTypeId) {
this.roomTypeId = roomTypeId;
}
public Integer getCreatedBy() {
return createdBy;
}
public void setCreatedBy(Integer createdBy) {
this.createdBy = createdBy;
}
public String getCreatedAt() {
return createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
public String getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(String updatedAt) {
this.updatedAt = updatedAt;
}
public Object getDeletedAt() {
return deletedAt;
}
public void setDeletedAt(Object deletedAt) {
this.deletedAt = deletedAt;
}
public RatePrice getRatePrice() {
return ratePrice;
}
public void setRatePrice(RatePrice ratePrice) {
this.ratePrice = ratePrice;
}
public RoomRateMain() {}
public RoomRateMain(Integer id, Integer roomRatePriceId,
Integer roomTypeId, Integer createdBy,
String createdAt, String updatedAt,
Object deletedAt, RatePrice ratePrice) {
this.id = id;
this.roomRatePriceId = roomRatePriceId;
this.roomTypeId = roomTypeId;
this.createdBy = createdBy;
this.createdAt = createdAt;
this.updatedAt = updatedAt;
this.deletedAt = deletedAt;
this.ratePrice = ratePrice;
}
}
|
[
"dionedavellorera@gmail.com"
] |
dionedavellorera@gmail.com
|
c02e910746945cf20316c73edbbe7bbf42164bdd
|
6538de683b78fe1abe746b9b7a6648822274f0de
|
/src/main/java/org/isotc211/_2005/gmd/AbstractMDSpatialRepresentationType.java
|
946f8f36168c468cfd316dbedc1fcccd765e2c57
|
[] |
no_license
|
CleanSpark/cs-te-ven
|
9355f8340c249290fc47eb831adfb2c862c26b35
|
88c81bc26747deba073ea2d5010178d00becb4a9
|
refs/heads/master
| 2016-08-13T02:05:44.142696
| 2016-02-24T23:07:53
| 2016-02-24T23:07:53
| 52,289,995
| 1
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,466
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.02.05 at 11:06:51 AM PST
//
package org.isotc211._2005.gmd;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import org.isotc211._2005.gco.AbstractObjectType;
/**
* Digital mechanism used to represent spatial information
*
* <p>Java class for AbstractMD_SpatialRepresentation_Type complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="AbstractMD_SpatialRepresentation_Type">
* <complexContent>
* <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
* <sequence>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AbstractMD_SpatialRepresentation_Type")
@XmlSeeAlso({
MDVectorSpatialRepresentationType.class,
MDGridSpatialRepresentationType.class
})
public abstract class AbstractMDSpatialRepresentationType
extends AbstractObjectType
{
}
|
[
"shane.yamamoto@yahoo.com"
] |
shane.yamamoto@yahoo.com
|
7858de09a449c79e4c0117219628d9b4f27e72f5
|
aabfb8f93ab8da04827904f87cc47af3c78a1d36
|
/src/main/java/com/ait/lienzo/client/core/animation/AnimationTweener.java
|
ac4aa3637e1d384d1b1cf10cc890b3c7202d9aad
|
[
"Apache-2.0"
] |
permissive
|
MHarris021/lienzo-core
|
023720961b2f19a7142738a17e0d750f8436f137
|
6eb2167ca6b35888ba1d8a0f6106808cb47e7af0
|
refs/heads/master
| 2021-01-17T09:11:02.324139
| 2015-09-23T23:53:27
| 2015-09-23T23:53:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,996
|
java
|
/*
Copyright (c) 2014,2015 Ahome' Innovation Technologies. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package com.ait.lienzo.client.core.animation;
import com.ait.lienzo.shared.core.types.DoublePowerFunction;
public interface AnimationTweener extends DoublePowerFunction
{
public static final AnimationTweener LINEAR = TweenerBuilder.MAKE_LINEAR();
public static final AnimationTweener EASE_IN = TweenerBuilder.MAKE_EASE_IN(3.0);
public static final AnimationTweener EASE_OUT = TweenerBuilder.MAKE_EASE_OUT(3.0);
public static final AnimationTweener EASE_IN_OUT = TweenerBuilder.MAKE_EASE_IN_OUT();
public static final AnimationTweener ELASTIC = TweenerBuilder.MAKE_ELASTIC(3);
public static final AnimationTweener BOUNCE = TweenerBuilder.MAKE_BOUNCE(3);
public static final class TweenerBuilder
{
public static final AnimationTweener MAKE_EASE_IN(double strength)
{
return MAKE_EASE_IN_P(Math.min(6.0, Math.max(1.0, strength)));
}
public static final AnimationTweener MAKE_EASE_OUT(double strength)
{
return MAKE_EASE_OUT_P(Math.min(6.0, Math.max(1.0, strength)));
}
private static final AnimationTweener MAKE_LINEAR()
{
return new AnimationTweener()
{
@Override
public double apply(double percent)
{
return percent;
}
};
}
private static final AnimationTweener MAKE_EASE_IN_P(final double strength)
{
return new AnimationTweener()
{
@Override
public double apply(double percent)
{
return Math.pow(percent, strength * 2.0);
}
};
}
private static final AnimationTweener MAKE_EASE_OUT_P(final double strength)
{
return new AnimationTweener()
{
@Override
public double apply(double percent)
{
return (1.0 - Math.pow(1.0 - percent, strength * 2.0));
}
};
}
private static final AnimationTweener MAKE_EASE_IN_OUT()
{
return new AnimationTweener()
{
@Override
public double apply(double percent)
{
return (percent - Math.sin(percent * 2.0 * Math.PI) / (2.0 * Math.PI));
}
};
}
public static final AnimationTweener MAKE_ELASTIC(final int passes)
{
return new AnimationTweener()
{
@Override
public double apply(double percent)
{
return (((1.0 - Math.cos(percent * Math.PI * passes)) * (1.0 - percent)) + percent);
}
};
}
public static final AnimationTweener MAKE_BOUNCE(int bounces)
{
final AnimationTweener elastic = MAKE_ELASTIC(bounces);
return new AnimationTweener()
{
@Override
public double apply(double percent)
{
percent = elastic.apply(percent);
return ((percent <= 1.0) ? (percent) : (2.0 - percent));
}
};
}
}
}
|
[
"deanjones@gmail.com"
] |
deanjones@gmail.com
|
f4921345ef58c952720a931503a989ad1b91a186
|
80b292849056cb4bf3f8f76f127b06aa376fdaaa
|
/java/game/tera/gameserver/parser/StatFuncParser.java
|
525344a394ef7f603938a0510c6c46651901b37a
|
[] |
no_license
|
unnamed44/tera_2805
|
70f099c4b29a8e8e19638d9b80015d0f3560b66d
|
6c5be9fc79157b44058c816dd8f566b7cf7eea0d
|
refs/heads/master
| 2020-04-28T04:06:36.652737
| 2019-03-11T01:26:47
| 2019-03-11T01:26:47
| 174,964,999
| 2
| 0
| null | 2019-03-11T09:15:36
| 2019-03-11T09:15:35
| null |
UTF-8
|
Java
| false
| false
| 5,380
|
java
|
package tera.gameserver.parser;
import java.io.File;
import org.w3c.dom.Node;
import rlib.util.VarTable;
import rlib.util.array.Arrays;
import rlib.util.table.Table;
import tera.gameserver.model.skillengine.Condition;
import tera.gameserver.model.skillengine.StatType;
import tera.gameserver.model.skillengine.funcs.Func;
import tera.gameserver.model.skillengine.funcs.stat.FuncFactory;
/**
* Парсер функций статов.
*
* @author Ronn
*/
public final class StatFuncParser
{
private static final String[] STAT_FUNC_NAMES =
{
"add",
"sub",
"mul",
"set",
"div",
};
private static StatFuncParser instance;
public static StatFuncParser getInstance()
{
if(instance == null)
instance = new StatFuncParser();
return instance;
}
/**
* Определяет, является ли данная функция, функцией статов.
*
* @param name название функции.
* @return является ли финкцией статов.
*/
public static boolean isStatFunc(String name)
{
return Arrays.contains(STAT_FUNC_NAMES, name);
}
/**
* Получаем значние параметра.
*
* @param order номер в таблице.
* @param table таблица значений.
* @param value значение параметра.
* @param skill скил, для которого получаем значение.
* @param file фаил, в котором находится скил.
* @return значение параметра.
*/
private String getValue(int order, Table<String, String[]> table, String value, int skill, File file)
{
// итоговое значение
String val = null;
// если это не таблица, его же и принимаем
if(!value.startsWith("#"))
val = value;
else
{
// иначе извлекаем массив из таблицы
String[] array = table.get(value);
// берем нужное значение
value = array[Math.min(array.length -1, order)];
}
// возвращаем результат
return val;
}
/**
* Парс функции стата с хмл.
*
* @param order номер в таблице.
* @param table таблица значений.
* @param node данные с хмл.
* @param skill скилл, для которого парсится функция.
* @param file фаил, в котором находится скилл.
* @return новая функция.
*/
public Func parseFunc(int order, Table<String, String[]> table, Node node, int skill, File file)
{
// получаем атрибуты функции
VarTable vars = VarTable.newInstance(node);
// определяем стат
StatType stat = StatType.valueOfXml(vars.getString("stat"));
// определяем порядок
int ordinal = Integer.decode(vars.getString("order"));
// получаем значение функции
String value = getValue(order, table, vars.getString("val"), skill, file);
// подготавливаем условие
Condition cond = null;
// получаем парсер условий
ConditionParser parser = ConditionParser.getInstance();
// перебираем возможные условия
for(Node child = node.getFirstChild(); child != null; child = child.getNextSibling())
{
// проопускаем ненужные элементы
if(child.getNodeType() != Node.ELEMENT_NODE)
continue;
// парсим условие
cond = parser.parseCondition(child, skill, file);
// если кондишен был отпарсен, выходим из цикла
if(cond != null)
break;
}
// получаем фабрику функций статов
FuncFactory funcFactory = FuncFactory.getInstance();
// создаем новую функцию
return funcFactory.createFunc(node.getNodeName(), stat, ordinal, cond, value);
}
/**
* Парс функции стата с хмл.
*
* @param node данные с хмл.
* @return новая функция.
*/
public Func parseFunc(Node node, File file)
{
// парсим атрибуты
VarTable vars = VarTable.newInstance(node);
// определяем стат
StatType stat = StatType.valueOfXml(vars.getString("stat"));
// определяем ордер
int ordinal = Integer.decode(vars.getString("order"));
// подготавливаем условие
Condition cond = null;
// получаем парсер условий
ConditionParser parser = ConditionParser.getInstance();
// перебираем возможные условия
for(Node child = node.getFirstChild(); child != null; child = child.getNextSibling())
{
// проопускаем ненужные элементы
if(child.getNodeType() != Node.ELEMENT_NODE)
continue;
// парсим условие
cond = parser.parseCondition(child, 0, file);
// если кондишен был отпарсен, выходим из цикла
if(cond != null)
break;
}
// получаем фабрику функций статов
FuncFactory funcFactory = FuncFactory.getInstance();
// создаем новую функцию
return funcFactory.createFunc(node.getNodeName(), stat, ordinal, cond, vars.getString("val"));
}
}
|
[
"171296@supinfo.com"
] |
171296@supinfo.com
|
f1c102ee1e2de6a432eedd349ddd24fc0b9370ac
|
5ccecdc901272a61670415b65f3321987541c0ab
|
/javaslang-encodings/src/main/java/org/immutables/javaslang/encodings/JavaslangHashSetEncoding.java
|
2f848bee8476c6f0b2252a4ed8bf3aa528aed4be
|
[
"Apache-2.0"
] |
permissive
|
odd/immutables-javaslang
|
347b4c4e9266f5d85179d6775efe2cce45ae5d52
|
c376982fc6c3c33e0c341c5d8c8eb2006497cd57
|
refs/heads/master
| 2021-01-22T10:47:30.005587
| 2017-01-09T10:25:30
| 2017-01-09T10:25:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,751
|
java
|
/*
* Copyright 2013-2016 Immutables Authors and Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.immutables.javaslang.encodings;
import javaslang.collection.HashSet;
import org.immutables.encode.Encoding;
@Encoding
class JavaslangHashSetEncoding<T>
{
@Encoding.Impl
private HashSet<T> field;
JavaslangHashSetEncoding()
{
}
@Encoding.Builder
static final class Builder<T>
{
private HashSet<T> set = HashSet.empty();
Builder()
{
}
@Encoding.Naming(standard = Encoding.StandardNaming.ADD)
@Encoding.Init
void add(
final T element)
{
this.set = this.set.add(element);
}
@Encoding.Naming(standard = Encoding.StandardNaming.ADD_ALL)
@Encoding.Init
void addAll(
final Iterable<T> element)
{
this.set = this.set.addAll(element);
}
@Encoding.Init
@Encoding.Copy
void set(
final HashSet<T> elements)
{
this.set = elements;
}
@Encoding.Naming(value = "setIterable*")
@Encoding.Init
void setIterable(
final Iterable<T> elements)
{
this.set = HashSet.ofAll(elements);
}
@Encoding.Build
HashSet<T> build()
{
return this.set;
}
}
}
|
[
"code@io7m.com"
] |
code@io7m.com
|
2c5a4998258df74300c41fbe84f9842ccbfe38ac
|
b433b7f88f114cbd6d60063ab1b69a65bcaf5ee1
|
/oppf2-mobile/trunk/oppf2-mobile/src/main/java/kr/co/koscom/oppfm/notice/model/NoticeReq.java
|
8a0f3d6d023376b58d9be066e64c5d0705f18fd0
|
[] |
no_license
|
videocalls/videocall-1
|
ca972aa3832e86f33960b2ccb18c820a6e0a1af0
|
e305309da0be80b14673a97a080b9b11e28f0a2e
|
refs/heads/master
| 2020-03-29T11:53:04.746403
| 2018-09-27T07:50:46
| 2018-09-27T07:50:46
| 149,875,389
| 0
| 1
| null | 2018-09-22T12:37:05
| 2018-09-22T12:37:04
| null |
UTF-8
|
Java
| false
| false
| 716
|
java
|
package kr.co.koscom.oppfm.notice.model;
import kr.co.koscom.oppfm.cmm.model.CommonSearchReq;
import lombok.Data;
/**
* NoticeReq
* <p>
* Created by Yoojin Han on 2017-04-20.
*/
@Data
public class NoticeReq extends CommonSearchReq{
private static final long serialVersionUID = -3098496399867839957L;
private String searchKeyword; // 검색어
private String searchType; // 검색조건 ('G040' + '001~3')
private String noticeFixYn; // 공지사항 고정 여부 ( 'Y' / 'N' )
private String noticePopYn; // 팝업 여부
private String noticeSeq; // 공지사항 시퀀스
}
|
[
"dongbeom.kim@gmail.com"
] |
dongbeom.kim@gmail.com
|
44311204f107481949d92cf83ba9b111b2eba652
|
af0048b7c1fddba3059ae44cd2f21c22ce185b27
|
/sofa/src/test/java/com/alipay/sofa/rpc/protobuf/ProtoServiceOuterClass.java
|
da37233d9c7e0e3defc65291fb59e03eb47ea535
|
[] |
no_license
|
P79N6A/whatever
|
4b51658fc536887c870d21b0c198738ed0d1b980
|
6a5356148e5252bdeb940b45d5bbeb003af2f572
|
refs/heads/master
| 2020-07-02T19:58:14.366752
| 2019-08-10T14:45:17
| 2019-08-10T14:45:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,068
|
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.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ProtoService.proto
package com.alipay.sofa.rpc.protobuf;
public final class ProtoServiceOuterClass {
private ProtoServiceOuterClass() {
}
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor internal_static_com_alipay_sofa_rpc_protobuf_EchoRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_alipay_sofa_rpc_protobuf_EchoRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor internal_static_com_alipay_sofa_rpc_protobuf_EchoResponse_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_alipay_sofa_rpc_protobuf_EchoResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
static {
java.lang.String[] descriptorData = {"\n\022ProtoService.proto\022\034com.alipay.sofa.rp" + "c.protobuf\"O\n\013EchoRequest\022\014\n\004name\030\001 \001(\t\022" + "2\n\005group\030\002 \001(\0162#.com.alipay.sofa.rpc.pro" + "tobuf.Group\"-\n\014EchoResponse\022\014\n\004code\030\001 \001(" + "\005\022\017\n\007message\030\002 \001(\t*\025\n\005Group\022\005\n\001A\020\000\022\005\n\001B\020" + "\0012r\n\014ProtoService\022b\n\007echoObj\022).com.alipa" + "y.sofa.rpc.protobuf.EchoRequest\032*.com.al" + "ipay.sofa.rpc.protobuf.EchoResponse\"\000B\002P" + "\001b\006proto3"};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[]{}, assigner);
internal_static_com_alipay_sofa_rpc_protobuf_EchoRequest_descriptor = getDescriptor().getMessageTypes().get(0);
internal_static_com_alipay_sofa_rpc_protobuf_EchoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_com_alipay_sofa_rpc_protobuf_EchoRequest_descriptor, new java.lang.String[]{"Name", "Group",});
internal_static_com_alipay_sofa_rpc_protobuf_EchoResponse_descriptor = getDescriptor().getMessageTypes().get(1);
internal_static_com_alipay_sofa_rpc_protobuf_EchoResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_com_alipay_sofa_rpc_protobuf_EchoResponse_descriptor, new java.lang.String[]{"Code", "Message",});
}
// @@protoc_insertion_point(outer_class_scope)
}
|
[
"heavenlystate@163.com"
] |
heavenlystate@163.com
|
3bf3601cfd6fa8925306255d4c4223909ae6d1be
|
68a19507f18acff18aa4fa67d6611f5b8ac8913c
|
/plfx/plfx-jd/plfx-jd-ylclient/src/main/java/elong/BaseRule.java
|
08849ba3050906f618f454662d277f04e05c58f8
|
[] |
no_license
|
ksksks2222/pl-workspace
|
cf0d0be2dfeaa62c0d4d5437f85401f60be0eadd
|
6146e3e3c2384c91cac459d25b27ffeb4f970dcd
|
refs/heads/master
| 2021-09-13T08:59:17.177105
| 2018-04-27T09:46:42
| 2018-04-27T09:46:42
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,133
|
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: 2014.10.30 at 10:29:41 AM CST
//
package elong;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import com.alibaba.fastjson.annotation.JSONField;
/**
* <p>Java class for BaseRule complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="BaseRule">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BaseRule", propOrder = {
"description"
})
@XmlSeeAlso({
BaseValueAddRule.class,
BaseBookingRule.class,
BaseGuaranteeRule.class,
BaseGiftRule.class,
BasePrepayRule.class,
BaseDrrRule.class
})
public class BaseRule implements Serializable{
@JSONField(name = "Description")
protected String description;
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
}
|
[
"cangsong6908@gmail.com"
] |
cangsong6908@gmail.com
|
4a30615f2e45abb8ca658823d728ddd79d446b17
|
73fd919211583d7adeeb8db0071a18b1a92a179d
|
/gmall-order/src/main/java/com/atguigu/gmall/order/vo/OrderItemVO.java
|
956bb40c7018cb73bd1d8e329e108472bd31ce39
|
[
"Apache-2.0"
] |
permissive
|
ksabu00/gmall
|
2dffae1d13b10050e8b1046590e53397556145db
|
ef98a49709adaebd4c7b610c38b48dc2cbc3d801
|
refs/heads/master
| 2022-12-20T10:32:47.505796
| 2019-11-16T16:08:30
| 2019-11-16T16:08:30
| 218,021,317
| 0
| 0
|
Apache-2.0
| 2022-12-16T14:50:33
| 2019-10-28T10:27:22
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 653
|
java
|
package com.atguigu.gmall.order.vo;
import com.atguigu.gmall.pms.entity.SkuSaleAttrValueEntity;
import com.atguigu.gmall.sms.vo.ItemSaleVO;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;
@Data
public class OrderItemVO {
private Long skuId;// 商品id
private String title;//标题
private String defaultImage;// 默认图片
private BigDecimal price;// 价格
private Integer count;// 数量
private Boolean store;// 库存
private List<SkuSaleAttrValueEntity> skuAttrValue;// 商品规格参数
private List<ItemSaleVO> sales;//营销信息
private BigDecimal weight;// 重量
}
|
[
"18229712137@189.cn"
] |
18229712137@189.cn
|
0ce86423afc961e5919e201c6c06034687bf970b
|
c156bf50086becbca180f9c1c9fbfcef7f5dc42c
|
/src/main/java/com/waterelephant/credit/controller/CreditLimitController.java
|
85411a1f223e39d30a0d39d4c46b430ee6659d66
|
[] |
no_license
|
zhanght86/beadwalletloanapp
|
9e3def26370efd327dade99694006a6e8b18a48f
|
66d0ae7b0861f40a75b8228e3a3b67009a1cf7b8
|
refs/heads/master
| 2020-12-02T15:01:55.982023
| 2019-11-20T09:27:24
| 2019-11-20T09:27:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,163
|
java
|
package com.waterelephant.credit.controller;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSONObject;
import com.waterelephant.credit.service.CreditService;
import com.waterelephant.utils.AppResponseResult;
import com.waterelephant.utils.IdcardValidator;
@RestController
@RequestMapping("/credit")
public class CreditLimitController {
private Logger logger = LoggerFactory.getLogger(CreditLimitController.class);
@Autowired
private CreditService creditService;
//查询已使用信用额度
@RequestMapping("/query/used_limit.do")
public AppResponseResult queryUsedLimit(@RequestBody JSONObject params) {
long star = System.currentTimeMillis();
AppResponseResult responseResult = new AppResponseResult();
String idcard = params.getString("idcard");
try {
Assert.hasText(idcard, "缺少参数[idcard]字段不能为空~");
Assert.isTrue(IdcardValidator.isValidatedAllIdcard(idcard), "[idcard]字段值不合法~");
Double usedLimit = this.creditService.calculateUseCreditMoney(idcard);
Map<String,Object> resultMap = new HashMap<>();
resultMap.put("used_limit", usedLimit);
responseResult.setCode("0000");
responseResult.setMsg("请求接口成功");
responseResult.setResult(resultMap);
} catch (IllegalArgumentException e) {
responseResult.setCode("600");
responseResult.setMsg(e.getMessage());
} catch (Exception e) {
responseResult.setCode("9999");
responseResult.setMsg("请求接口失败,请稍后再试~");
logger.error("----查询用户idcard:{}信用额度失败,异常信息:{}----",idcard,e.getMessage());
e.printStackTrace();
} finally {
logger.info("----查询用户idcard:{}信用额度方法耗时:{}ms----",idcard,(System.currentTimeMillis() - star));
}
return responseResult;
}
}
|
[
"wurenbiao@beadwallet.com"
] |
wurenbiao@beadwallet.com
|
c6963f3f9ca1738a7977c878e6ebff37f725221f
|
4aa90348abcb2119011728dc067afd501f275374
|
/app/src/main/java/com/tencent/mm/plugin/qqmail/ui/ComposeUI$3.java
|
759be495d066dc67722e9e15493106e04f12ff2b
|
[] |
no_license
|
jambestwick/HackWechat
|
0d4ceb2d79ccddb45004ca667e9a6a984a80f0f6
|
6a34899c8bfd50d19e5a5ec36a58218598172a6b
|
refs/heads/master
| 2022-01-27T12:48:43.446804
| 2021-12-29T10:36:30
| 2021-12-29T10:36:30
| 249,366,791
| 0
| 0
| null | 2020-03-23T07:48:32
| 2020-03-23T07:48:32
| null |
UTF-8
|
Java
| false
| false
| 422
|
java
|
package com.tencent.mm.plugin.qqmail.ui;
import android.view.View;
import android.view.View.OnClickListener;
class ComposeUI$3 implements OnClickListener {
final /* synthetic */ ComposeUI prr;
ComposeUI$3(ComposeUI composeUI) {
this.prr = composeUI;
}
public final void onClick(View view) {
ComposeUI.j(this.prr).getText().clear();
ComposeUI.j(this.prr).requestFocus();
}
}
|
[
"malin.myemail@163.com"
] |
malin.myemail@163.com
|
f53e1aedc9b306edbb75b3c2f1c1a6f4fc8bbf0d
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/api-vs-impl-small/utils/src/main/java/org/gradle/testutils/performancenull_15/Productionnull_1490.java
|
7467a510ffe4a9bef2a6522d1cd4605539451f5a
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 590
|
java
|
package org.gradle.testutils.performancenull_15;
public class Productionnull_1490 {
private final String property;
public Productionnull_1490(String param) {
this.property = param;
}
public String getProperty() {
return property;
}
private String prop0;
public String getProp0() {
return prop0;
}
public void setProp0(String value) {
prop0 = value;
}
private String prop1;
public String getProp1() {
return prop1;
}
public void setProp1(String value) {
prop1 = value;
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
5d939745cd03e7a15598f9d3bda866f809dc7357
|
42e94aa09fe8d979f77449e08c67fa7175a3e6eb
|
/src/net/minecraft/world/chunk/Chunk$EnumCreateEntityType.java
|
27cf731b7826c5a37f0be2f8c515e026a9b3af2f
|
[
"Unlicense"
] |
permissive
|
HausemasterIssue/novoline
|
6fa90b89d5ebf6b7ae8f1d1404a80a057593ea91
|
9146c4add3aa518d9aa40560158e50be1b076cf0
|
refs/heads/main
| 2023-09-05T00:20:17.943347
| 2021-11-26T02:35:25
| 2021-11-26T02:35:25
| 432,312,803
| 1
| 0
|
Unlicense
| 2021-11-26T22:12:46
| 2021-11-26T22:12:45
| null |
UTF-8
|
Java
| false
| false
| 238
|
java
|
package net.minecraft.world.chunk;
public enum Chunk$EnumCreateEntityType {
IMMEDIATE,
QUEUED,
CHECK;
private static final Chunk$EnumCreateEntityType[] $VALUES = new Chunk$EnumCreateEntityType[]{IMMEDIATE, QUEUED, CHECK};
}
|
[
"91408199+jeremypelletier@users.noreply.github.com"
] |
91408199+jeremypelletier@users.noreply.github.com
|
c3fe44069476d9d16e648d9b2a3e26472d837047
|
6f0f7b7159af5c336ee7f4687c06a37f1cce8734
|
/src/main/java/com/zijin/httpclient/FileUploadBootstrap.java
|
f93b1ec118fc4f51cf47e2800294b44a74518668
|
[] |
no_license
|
fu-cheng1/http-client
|
d1b798a71a2bc4da0a0f80ab834862e6c7425ff7
|
e6ca62cf779d0702f17f64a44c04fb3dacb172c0
|
refs/heads/master
| 2023-01-07T08:24:01.149643
| 2020-11-15T13:01:57
| 2020-11-15T13:01:57
| 313,006,866
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,169
|
java
|
package com.zijin.httpclient;
import com.zijin.httpclient.domain.Payload;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ForkJoinPool;
import java.util.function.Consumer;
/**
* 管理批量上传的文件,本身不做任何有关上传文件的操作
* 负责创建上传文件的批次、配置处理返回值调用客户接口
*
* @author 陈尚宇
* @since 2020/11/14 22:26
*/
public class FileUploadBootstrap {
static ForkJoinPool forkJoinPool = new ForkJoinPool();
private static final Logger log = LoggerFactory.getLogger(FileUploadBootstrap.class);
private final FilePathDatasource filePathDatasource;
private final UploadConfig uploadConfig;
public FileUploadBootstrap(FilePathDatasource filePathDatasource, UploadConfig uploadConfig) {
this.filePathDatasource = filePathDatasource;
this.uploadConfig = uploadConfig;
}
public void start(Consumer<List<Payload>> consumer) throws ExecutionException, InterruptedException {
int begin = 0;
List<Payload> filePath;
while ((filePath = filePathDatasource.getFilePath(begin)) != null && filePath.size() > 0) {
int size = filePath.size();
begin += size;
log.info("共加载数据 size 为: [{}], 下一批起始位置为: [{}]", size, begin);
log.info("开始上传这批文件");
long start = System.currentTimeMillis();
FileBatchFileUpload fileBatchFileUpload = new FileBatchFileUpload(filePath, uploadConfig);
List<Payload> payloads = forkJoinPool.submit(fileBatchFileUpload).get();
long end = System.currentTimeMillis();
log.info("上传完成共耗时: [{}], 实际上传成功的文件数为: [{}]", (end - start), payloads.size());
try {
consumer.accept(payloads);
} catch (Exception e) {
log.error("客户端处理出现异常------------", e);
}
}
log.info("[{}] 上传完成", Thread.currentThread().getName());
}
}
|
[
"you@example.com"
] |
you@example.com
|
2114d162305cf5b21bcaa9f84ff1da8548c21321
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/4/4_7c77844047a5bd66eaa6e8f2d409bfa0fd116b92/ContainerAutoJukebox/4_7c77844047a5bd66eaa6e8f2d409bfa0fd116b92_ContainerAutoJukebox_s.java
|
bc99bd8e40c4027bbd51d863ecaa116cfd1d93ed
|
[] |
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
| 2,418
|
java
|
package powercrystals.minefactoryreloaded.gui.container;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.ICrafting;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import powercrystals.minefactoryreloaded.gui.slot.SlotAcceptBlankRecord;
import powercrystals.minefactoryreloaded.gui.slot.SlotAcceptRecord;
import powercrystals.minefactoryreloaded.tile.machine.TileEntityAutoJukebox;
public class ContainerAutoJukebox extends ContainerFactoryInventory
{
private TileEntityAutoJukebox _jukebox;
public ContainerAutoJukebox(TileEntityAutoJukebox tileentity, InventoryPlayer inv)
{
super(tileentity, inv);
}
@Override
protected void addSlots()
{
addSlotToContainer(new SlotAcceptRecord(_jukebox, 0, 8, 24));
addSlotToContainer(new SlotAcceptBlankRecord(_jukebox, 1, 8, 54));
}
@Override
public void detectAndSendChanges()
{
super.detectAndSendChanges();
for(int i = 0; i < crafters.size(); i++)
{
((ICrafting)crafters.get(i)).sendProgressBarUpdate(this, 100, (_jukebox.getCanCopy() ? 1 : 0) | (_jukebox.getCanPlay() ? 2 : 0));
}
}
@Override
public void updateProgressBar(int var, int value)
{
super.updateProgressBar(var, value);
if(var == 100)
{
_jukebox.setCanCopy((value & 1) != 0 ? true : false);
_jukebox.setCanPlay((value & 2) != 0 ? true : false);
}
}
@Override
public ItemStack transferStackInSlot(EntityPlayer player, int slot)
{
ItemStack stack = null;
Slot slotObject = (Slot) inventorySlots.get(slot);
int machInvSize = ((TileEntityAutoJukebox)_jukebox).getSizeInventory();
if(slotObject != null && slotObject.getHasStack())
{
ItemStack stackInSlot = slotObject.getStack();
stack = stackInSlot.copy();
if(slot < machInvSize)
{
if(!mergeItemStack(stackInSlot, machInvSize, inventorySlots.size(), true))
{
return null;
}
}
else if(!mergeItemStack(stackInSlot, 0, machInvSize, false))
{
return null;
}
if(stackInSlot.stackSize == 0)
{
slotObject.putStack(null);
}
else
{
slotObject.onSlotChanged();
}
if(stackInSlot.stackSize == stack.stackSize)
{
return null;
}
slotObject.onPickupFromSlot(player, stackInSlot);
}
return stack;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
023eb8a054f209673ce3c2000ec489ee81ce3e68
|
9752d986d436dc7e0a7b84b0b89ae6500b4fa864
|
/engine-rest/src/main/java/org/camunda/bpm/engine/rest/impl/history/HistoricProcessInstanceRestServiceImpl.java
|
cee9608ebd9050001c96d5dc544e8185968ccf3d
|
[
"Apache-2.0"
] |
permissive
|
cijujoseph/camunda-bpm-platform
|
e00fae58550645ed86e6bc1fa45699f84fc1ef2c
|
06cab3220b2793429974c9004208012859bd33b1
|
refs/heads/master
| 2021-01-15T14:03:13.390402
| 2013-12-05T15:01:35
| 2013-12-05T15:01:35
| 14,970,128
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,768
|
java
|
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.camunda.bpm.engine.rest.impl.history;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.core.UriInfo;
import org.camunda.bpm.engine.ProcessEngine;
import org.camunda.bpm.engine.history.HistoricProcessInstance;
import org.camunda.bpm.engine.history.HistoricProcessInstanceQuery;
import org.camunda.bpm.engine.rest.dto.CountResultDto;
import org.camunda.bpm.engine.rest.dto.history.HistoricProcessInstanceDto;
import org.camunda.bpm.engine.rest.dto.history.HistoricProcessInstanceQueryDto;
import org.camunda.bpm.engine.rest.history.HistoricProcessInstanceRestService;
public class HistoricProcessInstanceRestServiceImpl implements HistoricProcessInstanceRestService {
protected ProcessEngine processEngine;
public HistoricProcessInstanceRestServiceImpl(ProcessEngine processEngine) {
this.processEngine = processEngine;
}
@Override
public List<HistoricProcessInstanceDto> getHistoricProcessInstances(UriInfo uriInfo, Integer firstResult, Integer maxResults) {
HistoricProcessInstanceQueryDto queryHistoriProcessInstanceDto = new HistoricProcessInstanceQueryDto(uriInfo.getQueryParameters());
return queryHistoricProcessInstances(queryHistoriProcessInstanceDto, firstResult, maxResults);
}
@Override
public List<HistoricProcessInstanceDto> queryHistoricProcessInstances(HistoricProcessInstanceQueryDto queryDto, Integer firstResult, Integer maxResults) {
HistoricProcessInstanceQuery query = queryDto.toQuery(processEngine);
List<HistoricProcessInstance> matchingHistoricProcessInstances;
if (firstResult != null || maxResults != null) {
matchingHistoricProcessInstances = executePaginatedQuery(query, firstResult, maxResults);
} else {
matchingHistoricProcessInstances = query.list();
}
List<HistoricProcessInstanceDto> historicProcessInstanceDtoResults = new ArrayList<HistoricProcessInstanceDto>();
for (HistoricProcessInstance historicProcessInstance : matchingHistoricProcessInstances) {
HistoricProcessInstanceDto resultHistoricProcessInstanceDto = HistoricProcessInstanceDto.fromHistoricProcessInstance(historicProcessInstance);
historicProcessInstanceDtoResults.add(resultHistoricProcessInstanceDto);
}
return historicProcessInstanceDtoResults;
}
private List<HistoricProcessInstance> executePaginatedQuery(HistoricProcessInstanceQuery query, Integer firstResult, Integer maxResults) {
if (firstResult == null) {
firstResult = 0;
}
if (maxResults == null) {
maxResults = Integer.MAX_VALUE;
}
return query.listPage(firstResult, maxResults);
}
@Override
public CountResultDto getHistoricProcessInstancesCount(UriInfo uriInfo) {
HistoricProcessInstanceQueryDto queryDto = new HistoricProcessInstanceQueryDto(uriInfo.getQueryParameters());
return queryHistoricProcessInstancesCount(queryDto);
}
@Override
public CountResultDto queryHistoricProcessInstancesCount(HistoricProcessInstanceQueryDto queryDto) {
HistoricProcessInstanceQuery query = queryDto.toQuery(processEngine);
long count = query.count();
CountResultDto result = new CountResultDto();
result.setCount(count);
return result;
}
}
|
[
"roman.smirnov@camunda.com"
] |
roman.smirnov@camunda.com
|
b3aa44b5c8d3aa37feca8324d73cdf91cf4aaa87
|
80512a9dfff93d5b12f2b0025770d674b84b6e53
|
/app/src/main/java/com/aijava/android_workspace/model/WeatherP.java
|
e5f8880d57b534ce29f40fe72485e7dd3f960c2b
|
[] |
no_license
|
sungwooman91/Android_work
|
f4bf8c26b5f8b47a0099218fd7bcc0cf6d2eb038
|
4ce8983663a79c192612cbc4fe20589b1b6f8400
|
refs/heads/master
| 2020-03-10T11:59:23.550658
| 2018-04-16T07:51:02
| 2018-04-16T07:51:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 885
|
java
|
package com.aijava.android_workspace.model;
public class WeatherP {
@SerializedName("id")
@Expose
private int id;
@SerializedName("main")
@Expose
private String main;
@SerializedName("description")
@Expose
private String description;
@SerializedName("icon")
@Expose
private String icon;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getMain() {
return main;
}
public void setMain(String main) {
this.main = main;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getIcon() {
return icon;
}
public void setIcon(String icon) {
this.icon = icon;
}
}
|
[
"you@example.com"
] |
you@example.com
|
397577192e709a4d4521af01ee044d5c41672653
|
37abbb3bc912370c88a6aec26b433421437a6e65
|
/fucai/module_xmlparser/src/main/java/com/cqfc/xmlparser/TransactionMsgLoader734.java
|
81374d7fd60bf00ef7c579518eb0c6111e9a3c20
|
[] |
no_license
|
ca814495571/javawork
|
cb931d2c4ff5a38cdc3e3023159a276b347b7291
|
bdfd0243b7957263ab7ef95a2a8f33fa040df721
|
refs/heads/master
| 2021-01-22T08:29:17.760092
| 2017-06-08T16:52:42
| 2017-06-08T16:52:42
| 92,620,274
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,359
|
java
|
package com.cqfc.xmlparser;
import java.io.StringReader;
import java.io.StringWriter;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import com.cqfc.xmlparser.transactionmsg734.Msg;
public class TransactionMsgLoader734 {
private static final JAXBContext jaxbContext = initContext();
private static JAXBContext initContext() {
try {
return JAXBContext.newInstance("com.cqfc.xmlparser.transactionmsg734");
} catch (JAXBException e) {
e.printStackTrace();
}
return null;
}
public static Msg xmlToMsg(String xmlstr) {
try {
Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
return (Msg) unmarshaller.unmarshal(new StringReader(xmlstr));
} catch (JAXBException e) {
e.printStackTrace();
}
return null;
}
public static String msgToXml(Msg Msg) {
try {
Marshaller marshaller = jaxbContext.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
StringWriter sw = new StringWriter();
marshaller.marshal(Msg, sw);
return sw.toString();
} catch (JAXBException e) {
e.printStackTrace();
}
return null;
}
}
|
[
"an__chen@163.com"
] |
an__chen@163.com
|
e163b46fe11a85fec396bf9c6a7d8669f2cd5957
|
2316be1445da0c2c5a8d1aa397daaad9a39c9e89
|
/src/test/java/nazar/pyvovar/controller/CaesarControllerTest.java
|
23d4c46a46be0b356814a90dc572f372b5cceb5e
|
[] |
no_license
|
Nazar910/CryptProject
|
9b72bd20d6f9701a9d5a038a7e34e378e977c4b3
|
a90e42e3b42f371cc38d683946ea415c868d8b9e
|
refs/heads/master
| 2021-01-19T10:45:58.814667
| 2017-02-22T21:37:59
| 2017-02-22T21:37:59
| 82,222,716
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,974
|
java
|
package nazar.pyvovar.controller;
import nazar.pyvovar.Application;
import nazar.pyvovar.config.AppConfig;
import nazar.pyvovar.config.WebConfig;
import nazar.pyvovar.crypt.algorithm.caesar.CaesarImpl;
import nazar.pyvovar.crypt.algorithm.caesar.CryptAlgorithm;
import nazar.pyvovar.dto.MessageDTO;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.http.MediaType;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.mock.http.MockHttpOutputMessage;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.web.context.WebApplicationContext;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertNotNull;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import static org.springframework.test.web.servlet.setup.MockMvcBuilders.webAppContextSetup;
/**
* Created by pyvov on 22.02.2017.
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {Application.class, AppConfig.class, WebConfig.class})
public class CaesarControllerTest {
private MediaType contentType = new MediaType(MediaType.APPLICATION_JSON.getType(),
MediaType.APPLICATION_JSON.getSubtype(),
Charset.forName("utf8"));
private MockMvc mockMvc;
private String userName = "test_user";
private HttpMessageConverter mappingJackson2HttpMessageConverter;
@Autowired
private CryptAlgorithm cryptAlgorithm;
@Autowired
private WebApplicationContext webApplicationContext;
@Autowired
void setConverters(HttpMessageConverter<?>[] converters) {
this.mappingJackson2HttpMessageConverter = Arrays.asList(converters).stream()
.filter(hmc -> hmc instanceof MappingJackson2HttpMessageConverter)
.findAny()
.orElse(null);
assertNotNull("the JSON message converter must not be null",
this.mappingJackson2HttpMessageConverter);
}
@Before
public void setup() throws Exception {
this.mockMvc = webAppContextSetup(webApplicationContext).build();
}
@Test
public void encryptHelloWithKey1() throws Exception {
mockMvc.perform(post("/api/crypt/caesar/encrypt")
.content(this.json(new MessageDTO("Hello", 1)))
.contentType(this.contentType))
.andExpect(status().isOk())
.andExpect(content().contentType(this.contentType))
.andExpect(jsonPath("$", hasSize(1)))
.andExpect(jsonPath("$[0].message", is("Ifmmp")));
}
private String json(Object o) throws IOException {
MockHttpOutputMessage mockHttpOutputMessage = new MockHttpOutputMessage();
this.mappingJackson2HttpMessageConverter.write(
o, MediaType.APPLICATION_JSON, mockHttpOutputMessage);
return mockHttpOutputMessage.getBodyAsString();
}
}
|
[
"pyvovarnazar@gmail.com"
] |
pyvovarnazar@gmail.com
|
0f170a94096aa6caf390f7f691528aa6b937d112
|
be146ca6aef15dd592652a72a09f9b393103c19b
|
/Scraper-Webserver/src/main/java/com/search/WebServer.java
|
244a1b31fecbecd7903d164678ad51fae0371ee0
|
[] |
no_license
|
sx4-discord-bot/Search-Webserver
|
a3082a7e095e9288e8a7c5e9379f224c187c0f35
|
bfdf0b75730ff372a52b9977e93614f51c87e2bf
|
refs/heads/master
| 2023-04-06T09:57:15.726292
| 2021-03-31T13:29:20
| 2021-03-31T13:29:20
| 344,136,547
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 579
|
java
|
package com.search;
import okhttp3.OkHttpClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;
@SpringBootApplication
public class WebServer {
private final static OkHttpClient CLIENT = new OkHttpClient();
public static void main(String[] args) {
SpringApplication.run(WebServer.class, args);
}
public static OkHttpClient getClient() {
return WebServer.CLIENT;
}
}
|
[
"sc4gaming@gmail.com"
] |
sc4gaming@gmail.com
|
b9694335c758ab9c2e7fa6ec9c3e65068aebef50
|
6bda0fd3ae60c9a01ff14b85352a2b8b4ab19299
|
/app/src/main/java/com/example/myapplication/activity/MainActivity.java
|
5195e273999e65f945ee0c565f70211c3fe13941
|
[] |
no_license
|
mosayeb-masoumi/FontLanguage_Panelist
|
8d5f2c86939bc1ad932796e0d26705c2d3c409a6
|
3cfe0a531ffe2029dd0fc279f4ba0029eea96640
|
refs/heads/master
| 2020-09-05T11:48:45.764325
| 2019-11-06T21:38:13
| 2019-11-06T21:38:13
| 220,094,532
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,191
|
java
|
package com.example.myapplication.activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.example.myapplication.R;
public class MainActivity extends CustomBaseActivity {
Button btnFa, btnEn, btnNext;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
btnFa = findViewById(R.id.btnFa);
btnEn = findViewById(R.id.btnEn);
btnNext = findViewById(R.id.btnNext);
btnEn.setOnClickListener(view -> {
LocaleManager.setNewLocale(MainActivity.this, "en");
startActivity(new Intent(MainActivity.this,SecondActivity.class));
});
btnFa.setOnClickListener(view -> {
LocaleManager.setNewLocale(MainActivity.this, "fa");
startActivity(new Intent(MainActivity.this,SecondActivity.class));
});
btnNext.setOnClickListener(view -> startActivity(new Intent(MainActivity.this,SecondActivity.class)));
}
}
|
[
"mosayeb.masoumi.co@gmail.com"
] |
mosayeb.masoumi.co@gmail.com
|
77b4e8c7e163cb6dcd93f91006e02c52187b71ac
|
f5049214ff99cdd7c37da74619b60ac4a26fc6ba
|
/orchestrator/common/crypto-common/eu.agno3.orchestrator.realms/src/main/java/eu/agno3/orchestrator/config/realms/RealmsConfigObjectTypeDescriptor.java
|
8bef105e40f2a6a91b04d0b02b26124eb441e1e2
|
[
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
AgNO3/code
|
d17313709ee5db1eac38e5811244cecfdfc23f93
|
b40a4559a10b3e84840994c3fd15d5f53b89168f
|
refs/heads/main
| 2023-07-28T17:27:53.045940
| 2021-09-17T14:25:01
| 2021-09-17T14:31:41
| 407,567,058
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,012
|
java
|
/**
* © 2015 AgNO3 Gmbh & Co. KG
* All right reserved.
*
* Created: 08.04.2015 by mbechler
*/
package eu.agno3.orchestrator.config.realms;
import org.osgi.service.component.annotations.Component;
import eu.agno3.orchestrator.config.model.descriptors.AbstractObjectTypeDescriptor;
import eu.agno3.orchestrator.config.model.descriptors.ObjectTypeDescriptor;
import eu.agno3.orchestrator.config.realms.i18n.RealmsConfigMessages;
/**
* @author mbechler
*
*/
@Component ( service = ObjectTypeDescriptor.class )
public class RealmsConfigObjectTypeDescriptor extends AbstractObjectTypeDescriptor<RealmsConfig, RealmsConfigImpl> {
/**
*
*/
public RealmsConfigObjectTypeDescriptor () {
super(RealmsConfig.class, RealmsConfigImpl.class, RealmsConfigMessages.BASE, "urn:agno3:objects:1.0:hostconfig"); //$NON-NLS-1$
}
/**
* @return a new empty instance
*/
public static RealmsConfigMutable emptyInstance () {
return new RealmsConfigImpl();
}
}
|
[
"bechler@agno3.eu"
] |
bechler@agno3.eu
|
0a14d10d6d6061713c4d4783da0b4483d764e9ba
|
db2cd2a4803e546d35d5df2a75b7deb09ffadc01
|
/nemo-novacroft-common/src/main/java/com/novacroft/nemo/common/data_service/SelectListDataServiceImpl.java
|
265c6ff1ddbe701580157e28a294270c1dcec798
|
[] |
no_license
|
balamurugan678/nemo
|
66d0d6f7062e340ca8c559346e163565c2628814
|
1319daafa5dc25409ae1a1872b1ba9b14e5a297e
|
refs/heads/master
| 2021-01-19T17:47:22.002884
| 2015-06-18T12:03:43
| 2015-06-18T12:03:43
| 37,656,983
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,031
|
java
|
package com.novacroft.nemo.common.data_service;
import com.novacroft.nemo.common.constant.CommonPrivateError;
import com.novacroft.nemo.common.converter.impl.SelectListConverterImpl;
import com.novacroft.nemo.common.data_access.SelectListDAO;
import com.novacroft.nemo.common.domain.SelectList;
import com.novacroft.nemo.common.exception.DataServiceException;
import com.novacroft.nemo.common.transfer.SelectListDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* Select list (list of values) data service implementation
*/
@Service(value = "selectListDataService")
public class SelectListDataServiceImpl extends BaseDataServiceImpl<SelectList, SelectListDTO> implements SelectListDataService {
static final Logger logger = LoggerFactory.getLogger(SelectListDataService.class);
@Override
@Transactional(readOnly = true)
public SelectListDTO findByName(String name) {
SelectList exampleSelectList = new SelectList();
exampleSelectList.setName(name);
List<SelectList> results = dao.findByExample(exampleSelectList);
if (results.size() > 1) {
String msg = String.format(CommonPrivateError.MORE_THAN_ONE_RECORD_FOR_NAME.message(), name);
logger.error(msg);
throw new DataServiceException(msg);
}
if (results.iterator().hasNext()) {
return this.converter.convertEntityToDto(results.iterator().next());
}
return null;
}
@Autowired
public void setConverter(SelectListConverterImpl converter) {
this.converter = converter;
}
@Autowired
public void setDao(SelectListDAO dao) {
this.dao = dao;
}
@Override
public SelectList getNewEntity() {
return new SelectList();
}
}
|
[
"balamurugan678@yahoo.co.in"
] |
balamurugan678@yahoo.co.in
|
b73335acf10901b28d192d07394344ca7e18a319
|
360d9baef2784cbf4d88ddd019a1da496d61b8b9
|
/day1226/Age.java
|
98f4bf410c50e19534ecef75d5f43ca7388d7e75
|
[] |
no_license
|
hminah0215/java_study
|
6437763021ddcea4c6cd456834a6ceb13bbdfc2e
|
ca4a7f5117a8d9611ceb397594a2570bb97bdffa
|
refs/heads/master
| 2022-06-06T19:09:13.074538
| 2020-04-30T12:02:48
| 2020-04-30T12:02:48
| 260,198,823
| 0
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 630
|
java
|
/*
사용자한테 또!!!! 주민번호를 입력받아 나이를 계산하여 출력합니다.
*/
import java.util.Scanner;
class Age
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
String jumin="";
System.out.print("주민번호를 입력하세요==>");
jumin = sc.next();
int n = Integer.parseInt( jumin.substring(0,2)); //91년생
int x = Integer.parseInt( jumin.substring(0,1)); //2000년대생은 앞자리가 0인지만 판별하면 됨
int z = 2019 - (n+1900) +1;
if( x == 0 ){
z = 2019 - (n+2000) +1;
}
System.out.print(z + "살 입니다.");
}
}
|
[
"hyeonminah@gmail.com"
] |
hyeonminah@gmail.com
|
ab00cac55edff8a461da4d653fff110f5ff552f6
|
7d01e4dda97de5329d51932a2ac2d3361dcb5cc1
|
/chapter_011/security/src/main/java/ru/sdroman/carstore/config/UserDetailServiceImpl.java
|
f2c6da112183718e681403ca698c6a7b90744e2b
|
[
"Apache-2.0"
] |
permissive
|
roman-sd/java-a-to-z
|
ad39a007d4c2da8404b77dd75968315930813781
|
5f59ece8793e0a3df099ff079954aaa7d900a918
|
refs/heads/master
| 2021-07-13T00:14:12.411847
| 2018-09-27T09:12:42
| 2018-09-27T09:12:42
| 72,674,404
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,871
|
java
|
package ru.sdroman.carstore.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.security.crypto.factory.PasswordEncoderFactories;
import org.springframework.stereotype.Service;
import ru.sdroman.carstore.models.User;
import ru.sdroman.carstore.services.UserService;
/**
* @author sdroman
* @since 08.2018
*/
@Service
public class UserDetailServiceImpl implements UserDetailsService {
/**
* User service.
*/
private UserService userService;
/**
* Constructor.
*
* @param userService UserService
*/
@Autowired
public UserDetailServiceImpl(UserService userService) {
this.userService = userService;
}
/**
* Locates the user based on the username.
*
* @param username the username identifying the user whose data is required.
* @return populated user record
* @throws UsernameNotFoundException if the user could not be found
*/
@Override
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
User user = userService.getUserByName(username);
org.springframework.security.core.userdetails.User.UserBuilder builder;
if (user != null) {
builder = org.springframework.security.core.userdetails.User.withUsername(username);
builder.password(PasswordEncoderFactories.createDelegatingPasswordEncoder().encode(user.getPassword()));
builder.roles(user.getRole().getName());
} else {
throw new UsernameNotFoundException("User not found.");
}
return builder.build();
}
}
|
[
"sedykhroman@gmail.com"
] |
sedykhroman@gmail.com
|
53ad9fd68691b652b697d4eec98ad3d858c5f2ab
|
5dfbd0ed041b4ebc025e0f5fddb24c9282eeda21
|
/app/src/main/java/com/example/testreflex/NDKReflex.java
|
02aa98858f2d3dc4d22f9f376aaf31edf26f6205
|
[] |
no_license
|
freedomangelly/TestReflex
|
b4481b1a6ccdcec0dcfd7595781f8042382f5dd2
|
d278e7d53068bfa86b5fa367f389ceaa2b7925a8
|
refs/heads/master
| 2020-08-01T02:46:26.252117
| 2019-10-03T08:55:43
| 2019-10-03T08:55:43
| 210,833,799
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 324
|
java
|
package com.example.testreflex;
/**
* description:
* author: freed on 2019/10/2
* email: 674919909@qq.com
* version: 1.0
*/
public class NDKReflex {
static {
System.loadLibrary("reflex-lib");
}
public native void reflex1();
public native void reflex2();
public native void reflex3();
}
|
[
"674919909@qq.com"
] |
674919909@qq.com
|
bce929d6ee2ba5e30f1195ddf819822d55262ca0
|
65f1313dc5ee176307e2c4594f9600f08f445c9c
|
/presto-parser/src/main/java/com/facebook/presto/type/TypeCalculationBaseVisitor.java
|
94e010fef1e4cc44bd4da823788381f8fe354fe1
|
[
"Apache-2.0"
] |
permissive
|
zhyzhyzhy/presto-0.187
|
5254fcd953526595de50b235fc2fd9d6343216f5
|
84ca7d57b1e9ca0a2e1ad72d1d2aaed669d9faf4
|
refs/heads/master
| 2022-09-18T09:32:43.863865
| 2020-01-30T06:55:28
| 2020-01-30T06:55:28
| 237,153,678
| 0
| 0
|
Apache-2.0
| 2022-06-27T16:15:25
| 2020-01-30T06:33:10
|
Java
|
UTF-8
|
Java
| false
| false
| 2,988
|
java
|
// Generated from com/facebook/presto/type/TypeCalculation.g4 by ANTLR 4.6
package com.facebook.presto.type;
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
/**
* This class provides an empty implementation of {@link TypeCalculationVisitor},
* which can be extended to create a visitor which only needs to handle a subset
* of the available methods.
*
* @param <T> The return type of the visit operation. Use {@link Void} for
* operations with no return type.
*/
public class TypeCalculationBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements TypeCalculationVisitor<T> {
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitTypeCalculation(TypeCalculationParser.TypeCalculationContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitBinaryFunction(TypeCalculationParser.BinaryFunctionContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitIdentifier(TypeCalculationParser.IdentifierContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitNullLiteral(TypeCalculationParser.NullLiteralContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitParenthesizedExpression(TypeCalculationParser.ParenthesizedExpressionContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitArithmeticBinary(TypeCalculationParser.ArithmeticBinaryContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitNumericLiteral(TypeCalculationParser.NumericLiteralContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitArithmeticUnary(TypeCalculationParser.ArithmeticUnaryContext ctx) { return visitChildren(ctx); }
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitBinaryFunctionName(TypeCalculationParser.BinaryFunctionNameContext ctx) { return visitChildren(ctx); }
}
|
[
"1012146386@qq.com"
] |
1012146386@qq.com
|
3f961197d4e4de951fabf67e229253ed79b5b07a
|
06ce5312f02ad016d3e7a374cb1bdd505e035b80
|
/wish-dao-mybatis/src/main/java/com/foundation/dao/modules/read/clinic/InspectListDaoR.java
|
4e3efa1f223767fe5b0086e3efcba874669f9207
|
[] |
no_license
|
caicai5555/wish
|
95ef6ffa474f8b64f34e250bb2ffbc3579da7fff
|
33b97ab0f3bf3a09e779cd4a61acfcc57c06e862
|
refs/heads/master
| 2021-05-08T16:40:35.053743
| 2018-02-04T07:58:23
| 2018-02-04T07:58:23
| 120,165,462
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 851
|
java
|
package com.foundation.dao.modules.read.clinic;
import com.foundation.common.persistence.Page;
import com.foundation.common.persistence.annotation.MyBatisRepository;
import com.foundation.dao.entity.clinic.InspectList;
import com.foundation.dao.modules.MybatisBaseDao;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
@MyBatisRepository
public interface InspectListDaoR extends MybatisBaseDao<String, InspectList> {
/**
* @Title: queryList
* @Description: 根据参数获取列表数据
* @author cuiyaohua
* @date 2016年10月12日 上午10:11:38
* @param params
* @param page 设定参数
* @return List<T> 实体列表
* @throws
*/
List<InspectList> queryPageList(@Param("map")Map<String, Object> params, @Param("page")Page<InspectList> page);
}
|
[
"caiguanglong@bjtuling.com"
] |
caiguanglong@bjtuling.com
|
f5e235409a8710864fbdde9c6a057dda1634d326
|
e9d1b2db15b3ae752d61ea120185093d57381f73
|
/mytcuml-src/src/java/main/com/topcoder/umltool/deploy/actions/ExtensionFileFilter.java
|
132e2ce3cbb1fc2f5fdf04430cfb3465fb5db51c
|
[] |
no_license
|
kinfkong/mytcuml
|
9c65804d511ad997e0c4ba3004e7b831bf590757
|
0786c55945510e0004ff886ff01f7d714d7853ab
|
refs/heads/master
| 2020-06-04T21:34:05.260363
| 2014-10-21T02:31:16
| 2014-10-21T02:31:16
| 25,495,964
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,124
|
java
|
/*
* Copyright (C) 2007 TopCoder Inc., All Rights Reserved.
*/
package com.topcoder.umltool.deploy.actions;
import java.io.File;
import javax.swing.filechooser.FileFilter;
/**
* <p>
* Extended file filter.
* </p>
* @author ly, FireIce, ylouis
* @version 1.0
*/
public class ExtensionFileFilter extends FileFilter {
/**
* <p>
* Description string.
* <p>
*/
private final String description;
/**
* <p>
* Extension string.
* <p>
*/
private final String extension;
/**
* <p>
* Constructs an instance of ExtensionFileFilter.
* </p>
* @param description
* description string
* @param extension
* extension string
*/
public ExtensionFileFilter(String description, String extension) {
this.description = description;
this.extension = extension.toLowerCase();
}
/**
* <p>
* Gets the description string.
* <p>
* @return description string
*/
public String getDescription() {
return description + "(*." + extension + ")";
}
/**
* <p>
* Check if the given file is acceptable.
* <p>
* @param f
* file to check
* @return true if the extension is acceptable, otherwise false
*/
public boolean accept(File f) {
if (f != null) {
if (f.isDirectory()) {
return true;
}
String ext = getExtension(f);
if (extension != null && extension.equals(ext)) {
return true;
}
}
return false;
}
/**
* <p>
* Gets the extension.
* <p>
* @param f
* file to get extention
* @return extension string
*/
public String getExtension(File f) {
if (f != null) {
String filename = f.getName();
int i = filename.lastIndexOf('.');
if (i > 0 && i < filename.length() - 1) {
return filename.substring(i + 1).toLowerCase();
}
}
return null;
}
}
|
[
"kinfkong@126.com"
] |
kinfkong@126.com
|
580888491c49469f1ec63a1d05aef5bdc0a3a7b6
|
f766baf255197dd4c1561ae6858a67ad23dcda68
|
/app/src/main/java/com/tencent/mm/boot/svg/a/a/ahc.java
|
c74dbbd6fc3af8085f16f766a5b505cdf77fae1f
|
[] |
no_license
|
jianghan200/wxsrc6.6.7
|
d83f3fbbb77235c7f2c8bc945fa3f09d9bac3849
|
eb6c56587cfca596f8c7095b0854cbbc78254178
|
refs/heads/master
| 2020-03-19T23:40:49.532494
| 2018-06-12T06:00:50
| 2018-06-12T06:00:50
| 137,015,278
| 4
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,557
|
java
|
package com.tencent.mm.boot.svg.a.a;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Paint.Cap;
import android.graphics.Paint.Join;
import android.graphics.Paint.Style;
import android.graphics.Path;
import android.os.Looper;
import com.tencent.mm.svg.WeChatSVGRenderC2Java;
import com.tencent.mm.svg.c;
public final class ahc
extends c
{
private final int height = 96;
private final int width = 96;
protected final int b(int paramInt, Object... paramVarArgs)
{
switch (paramInt)
{
}
for (;;)
{
return 0;
return 96;
return 96;
Canvas localCanvas = (Canvas)paramVarArgs[0];
paramVarArgs = (Looper)paramVarArgs[1];
Object localObject = c.f(paramVarArgs);
float[] arrayOfFloat = c.e(paramVarArgs);
Paint localPaint1 = c.i(paramVarArgs);
localPaint1.setFlags(385);
localPaint1.setStyle(Paint.Style.FILL);
Paint localPaint2 = c.i(paramVarArgs);
localPaint2.setFlags(385);
localPaint2.setStyle(Paint.Style.STROKE);
localPaint1.setColor(-16777216);
localPaint2.setStrokeWidth(1.0F);
localPaint2.setStrokeCap(Paint.Cap.BUTT);
localPaint2.setStrokeJoin(Paint.Join.MITER);
localPaint2.setStrokeMiter(4.0F);
localPaint2.setPathEffect(null);
c.a(localPaint2, paramVarArgs).setStrokeWidth(1.0F);
localCanvas.save();
localPaint1 = c.a(localPaint1, paramVarArgs);
localPaint1.setColor(-6250336);
arrayOfFloat = c.a(arrayOfFloat, 0.70710677F, -0.70710677F, 48.0F, 0.70710677F, 0.70710677F, -19.882248F);
((Matrix)localObject).reset();
((Matrix)localObject).setValues(arrayOfFloat);
localCanvas.concat((Matrix)localObject);
localObject = c.j(paramVarArgs);
((Path)localObject).moveTo(62.0F, 28.517904F);
((Path)localObject).lineTo(62.0F, 66.0F);
((Path)localObject).lineTo(67.0F, 66.0F);
((Path)localObject).lineTo(67.0F, 28.517904F);
((Path)localObject).cubicTo(66.99998F, 28.51194F, 67.0F, 28.505972F, 67.0F, 28.5F);
((Path)localObject).cubicTo(67.0F, 27.119287F, 65.880714F, 26.0F, 64.5F, 26.0F);
((Path)localObject).cubicTo(63.11929F, 26.0F, 62.0F, 27.119287F, 62.0F, 28.5F);
((Path)localObject).cubicTo(62.0F, 28.505972F, 62.00002F, 28.51194F, 62.00006F, 28.517904F);
((Path)localObject).close();
((Path)localObject).moveTo(40.0F, 39.482143F);
((Path)localObject).lineTo(40.0F, 66.0F);
((Path)localObject).lineTo(45.0F, 66.0F);
((Path)localObject).lineTo(45.0F, 39.482143F);
((Path)localObject).cubicTo(44.990337F, 38.10965F, 43.874756F, 37.0F, 42.5F, 37.0F);
((Path)localObject).cubicTo(41.125244F, 37.0F, 40.009663F, 38.10965F, 40.00006F, 39.482143F);
((Path)localObject).lineTo(40.0F, 39.482143F);
((Path)localObject).close();
((Path)localObject).moveTo(55.99748F, 24.0F);
((Path)localObject).cubicTo(55.857F, 16.7968F, 49.867767F, 11.0F, 42.5F, 11.0F);
((Path)localObject).cubicTo(35.132233F, 11.0F, 29.143F, 16.7968F, 29.002523F, 24.0F);
((Path)localObject).lineTo(34.01446F, 24.0F);
((Path)localObject).cubicTo(34.27327F, 19.538311F, 37.973427F, 16.0F, 42.5F, 16.0F);
((Path)localObject).cubicTo(47.026573F, 16.0F, 50.72673F, 19.538311F, 50.98554F, 24.0F);
((Path)localObject).lineTo(55.99748F, 24.0F);
((Path)localObject).close();
((Path)localObject).moveTo(67.0F, 66.0F);
((Path)localObject).cubicTo(67.0F, 76.49341F, 58.493412F, 85.0F, 48.0F, 85.0F);
((Path)localObject).cubicTo(37.506588F, 85.0F, 29.0F, 76.49341F, 29.0F, 66.0F);
((Path)localObject).lineTo(34.0F, 66.0F);
((Path)localObject).cubicTo(34.0F, 73.73199F, 40.268013F, 80.0F, 48.0F, 80.0F);
((Path)localObject).cubicTo(55.731987F, 80.0F, 62.0F, 73.73199F, 62.0F, 66.0F);
((Path)localObject).lineTo(67.0F, 66.0F);
((Path)localObject).lineTo(67.0F, 66.0F);
((Path)localObject).close();
((Path)localObject).moveTo(56.0F, 66.0F);
((Path)localObject).cubicTo(56.0F, 70.41828F, 52.418278F, 74.0F, 48.0F, 74.0F);
((Path)localObject).cubicTo(43.581722F, 74.0F, 40.0F, 70.41828F, 40.0F, 66.0F);
((Path)localObject).lineTo(45.0F, 66.0F);
((Path)localObject).cubicTo(45.0F, 67.65685F, 46.343147F, 69.0F, 48.0F, 69.0F);
((Path)localObject).cubicTo(49.656853F, 69.0F, 51.0F, 67.65685F, 51.0F, 66.0F);
((Path)localObject).lineTo(56.0F, 66.0F);
((Path)localObject).lineTo(56.0F, 66.0F);
((Path)localObject).close();
((Path)localObject).moveTo(29.0F, 24.0F);
((Path)localObject).lineTo(34.0F, 24.0F);
((Path)localObject).lineTo(34.0F, 66.0F);
((Path)localObject).lineTo(29.0F, 66.0F);
((Path)localObject).lineTo(29.0F, 24.0F);
((Path)localObject).close();
((Path)localObject).moveTo(51.0F, 24.0F);
((Path)localObject).lineTo(56.0F, 24.0F);
((Path)localObject).lineTo(56.0F, 66.0F);
((Path)localObject).lineTo(51.0F, 66.0F);
((Path)localObject).lineTo(51.0F, 24.0F);
((Path)localObject).close();
WeChatSVGRenderC2Java.setFillType((Path)localObject, 2);
localCanvas.drawPath((Path)localObject, localPaint1);
localCanvas.restore();
c.h(paramVarArgs);
}
}
}
/* Location: /Users/Han/Desktop/wxall/微信反编译/反编译 6.6.7/dex2jar-2.0/classes2-dex2jar.jar!/com/tencent/mm/boot/svg/a/a/ahc.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"526687570@qq.com"
] |
526687570@qq.com
|
562d5a4dc0f61fdfc090a88de0fa1a7d7b9b19ac
|
ec420cfbd3c5e0be7edf5156d6715f86053a52cc
|
/examples/com/jgraph/layout/JGraphModelLayoutExample.java
|
429c46bcb78d5e854ec8ad7a78583e3802f79f01
|
[
"BSD-3-Clause"
] |
permissive
|
JavaQualitasCorpus/jgraph-5.13.0.0
|
f9f7916f781f78a2c73dbe4f79f9a6523953cf13
|
bce4e5747e4d96a006c3d4f82207f10588c82c85
|
refs/heads/master
| 2023-08-12T08:40:21.552944
| 2020-05-29T12:59:08
| 2020-05-29T12:59:08
| 167,004,867
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,885
|
java
|
/*
* $Id: JGraphModelLayoutExample.java,v 1.1 2009/09/25 15:17:49 david Exp $
* Copyright (c) 2005, David Benson
*
* All rights reserved.
*
* This file is licensed under the JGraph software license, a copy of which
* will have been provided to you in the file LICENSE at the root of your
* installation directory. If you are unable to locate this file please
* contact JGraph sales for another copy.
*/
package com.jgraph.layout;
import java.awt.ScrollPane;
import java.util.Map;
import javax.swing.JFrame;
import org.jgraph.graph.AttributeMap;
import org.jgraph.graph.GraphModel;
import com.jgraph.example.JGraphGraphFactory;
import com.jgraph.example.fastgraph.FastGraphModel;
import com.jgraph.layout.tree.JGraphTreeLayout;
public class JGraphModelLayoutExample {
public static GraphModel persistModel;
public static void main(String[] args) {
// Switch off D3D because of Sun XOR painting bug
// See http://www.jgraph.com/forum/viewtopic.php?t=4066
System.setProperty("sun.java2d.d3d", "false");
// Construct Model and GraphLayoutCache
GraphModel model = new FastGraphModel();
persistModel = model;
// Create a new tree and insert it directly into the model
JGraphGraphFactory graphFactory = new JGraphGraphFactory();
graphFactory.setNumNodes(7500);
graphFactory.setNumEdges(7499);
long startTime = System.currentTimeMillis();
Object treeRoot = graphFactory.insertTreeSampleData(model,
new AttributeMap(), new AttributeMap());
System.out.println("After insert cells, elapsed msec = " + (System.currentTimeMillis()-startTime));
// Create the layout facade. When creating a facade for the tree
// layouts, pass in any cells that are intended to be the tree roots
// in the layout
JGraphFacade facade = new JGraphModelFacade(model, new Object[]{treeRoot}, true, false, false, true);
// Create the layout to be applied
JGraphLayout layout = new JGraphTreeLayout();
// Run the layout, the facade holds the results
layout.run(facade);
System.out.println("After layout, elapsed msec = " + (System.currentTimeMillis()-startTime));
// Obtain the output of the layout from the facade. The second
// parameter defines whether or not to flush the output to the
// origin of the graph
Map nested = facade.createNestedMap(true, true);
// Apply the result to the graph
model.edit(nested, null, null, null);
System.out.println("After layout applied, elapsed msec = " + (System.currentTimeMillis()-startTime));
// Construct Frame
JFrame frame = new JFrame("Model only");
// Set Close Operation to Exit
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Add an Editor Panel
ScrollPane scrollPane = new ScrollPane();
// scrollPane.add(new JGraph(model));
frame.getContentPane().add(scrollPane);
// Set Default Size
frame.setSize(520, 390);
// Show Frame
frame.setVisible(true);
}
}
|
[
"taibi@sonar-scheduler.rd.tut.fi"
] |
taibi@sonar-scheduler.rd.tut.fi
|
3e3fd97ecd2e1be5cb786013ad32922128058d45
|
f9c637ab9501b0a68fa0d18a061cbd555abf1f79
|
/test/import-data/ImportDataRedis/src/com/adr/bigdata/indexingrd/vos/ProductItemWarehouseProductItemMappingVO.java
|
689e4b00535e73fa291f92fa8ac41ded9cc29aaa
|
[] |
no_license
|
minha361/leanHTMl
|
c05000a6447b31f7869b75c532695ca2b0cd6968
|
dc760e7d149480c0b36f3c7064b97d0f3d4b3872
|
refs/heads/master
| 2022-06-01T02:54:46.048064
| 2020-08-11T03:20:34
| 2020-08-11T03:20:34
| 48,735,593
| 0
| 0
| null | 2022-05-20T20:49:57
| 2015-12-29T07:55:48
|
Java
|
UTF-8
|
Java
| false
| false
| 4,822
|
java
|
package com.adr.bigdata.indexingrd.vos;
public class ProductItemWarehouseProductItemMappingVO {
private int warehouseProductItemMappingId;
private int merchantId;
private int warehouseId;
private String merchantName;
private String merchantSKU;
private double originalPrice;
private double sellPrice;
private int quantity;
private int safetyStock;
private int merchantProductItemStatus;
private int merchantStatus;
private int warehouseStatus;
private int provinceId;
private int isVisible;
private long updateTime;
private int priceStatus;
private int vatStatus;
// add 21_09_2015
private int isNotApplyCommision;
private double commisionFee;
public ProductItemWarehouseProductItemMappingVO(int warehouseProductItemMappingId, int merchantId, int warehouseId,
String merchantName, String merchantSKU, double originalPrice, double sellPrice, int quantity,
int safetyStock, int merchantProductItemStatus, int merchantStatus, int warehouseStatus, int provinceId,
int isVisible, long updateTime, Integer priceStatus, Integer vatStatus, int isNotApplyCommision,
double commisionFee) {
super();
this.warehouseProductItemMappingId = warehouseProductItemMappingId;
this.merchantId = merchantId;
this.warehouseId = warehouseId;
this.merchantName = merchantName;
this.merchantSKU = merchantSKU;
this.originalPrice = originalPrice;
this.sellPrice = sellPrice;
this.quantity = quantity;
this.safetyStock = safetyStock;
this.merchantProductItemStatus = merchantProductItemStatus;
this.merchantStatus = merchantStatus;
this.warehouseStatus = warehouseStatus;
this.provinceId = provinceId;
this.isVisible = isVisible;
this.updateTime = updateTime;
this.priceStatus = priceStatus;
this.vatStatus = vatStatus;
this.isNotApplyCommision = isNotApplyCommision;
this.commisionFee = commisionFee;
}
public int getIsNotApplyCommision() {
return isNotApplyCommision;
}
public void setIsNotApplyCommision(int isNotApplyCommision) {
this.isNotApplyCommision = isNotApplyCommision;
}
public double getCommisionFee() {
return commisionFee;
}
public void setCommisionFee(double commisionFee) {
this.commisionFee = commisionFee;
}
public int getWarehouseProductItemMappingId() {
return warehouseProductItemMappingId;
}
public void setWarehouseProductItemMappingId(int warehouseProductItemMappingId) {
this.warehouseProductItemMappingId = warehouseProductItemMappingId;
}
public int getMerchantId() {
return merchantId;
}
public void setMerchantId(int merchantId) {
this.merchantId = merchantId;
}
public int getWarehouseId() {
return warehouseId;
}
public void setWarehouseId(int warehouseId) {
this.warehouseId = warehouseId;
}
public String getMerchantName() {
return merchantName;
}
public void setMerchantName(String merchantName) {
this.merchantName = merchantName;
}
public String getMerchantSKU() {
return merchantSKU;
}
public void setMerchantSKU(String merchantSKU) {
this.merchantSKU = merchantSKU;
}
public double getOriginalPrice() {
return originalPrice;
}
public void setOriginalPrice(double originalPrice) {
this.originalPrice = originalPrice;
}
public double getSellPrice() {
return sellPrice;
}
public void setSellPrice(double sellPrice) {
this.sellPrice = sellPrice;
}
public int getQuantity() {
return quantity;
}
public void setQuantity(int quantity) {
this.quantity = quantity;
}
public int getSafetyStock() {
return safetyStock;
}
public void setSafetyStock(int safetyStock) {
this.safetyStock = safetyStock;
}
public int getMerchantProductItemStatus() {
return merchantProductItemStatus;
}
public void setMerchantProductItemStatus(int merchantProductItemStatus) {
this.merchantProductItemStatus = merchantProductItemStatus;
}
public int getMerchantStatus() {
return merchantStatus;
}
public void setMerchantStatus(int merchantStatus) {
this.merchantStatus = merchantStatus;
}
public int getWarehouseStatus() {
return warehouseStatus;
}
public void setWarehouseStatus(int warehouseStatus) {
this.warehouseStatus = warehouseStatus;
}
public int getProvinceId() {
return provinceId;
}
public void setProvinceId(int provinceId) {
this.provinceId = provinceId;
}
public int getIsVisible() {
return isVisible;
}
public void setIsVisible(int isVisible) {
this.isVisible = isVisible;
}
public long getUpdateTime() {
return updateTime;
}
public void setUpdateTime(long updateTime) {
this.updateTime = updateTime;
}
public int getPriceStatus() {
return priceStatus;
}
public void setPriceStatus(int priceStatus) {
this.priceStatus = priceStatus;
}
public int getVatStatus() {
return vatStatus;
}
public void setVatStatus(int vatStatus) {
this.vatStatus = vatStatus;
}
}
|
[
"v.minhlq2@adayroi.com"
] |
v.minhlq2@adayroi.com
|
49a50cfacb876fe683abb05a3af56125c396bfb7
|
a0cd546101594e679544d24f92ae8fcc17013142
|
/refactorit-core/src/test/misc/jacks/jls/conversions-and-promotions/kinds-of-conversion/widening-primitive-conversions/T512itf7.java
|
14995c2a00525452069bbd16bad8d1f5f2b5c4f0
|
[] |
no_license
|
svn2github/RefactorIT
|
f65198bb64f6c11e20d35ace5f9563d781b7fe5c
|
4b1fc1ebd06c8e192af9ccd94eb5c2d96f79f94c
|
refs/heads/master
| 2021-01-10T03:09:28.310366
| 2008-09-18T10:17:56
| 2008-09-18T10:17:56
| 47,540,746
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 222
|
java
|
class T512itf7 {
void foo(int i) {
switch (i) {
case 0:
case (((float)0 == 0f) ? 1 : 0):
case ((1/(float)0 == Float.POSITIVE_INFINITY) ? 2 : 0):
}
}
}
|
[
"l950637@285b47d1-db48-0410-a9c5-fb61d244d46c"
] |
l950637@285b47d1-db48-0410-a9c5-fb61d244d46c
|
48326da09e40c3f38a743f22b3ffcb9a025783a7
|
1448f519f5beeb597449613ca319a36ee691d6e6
|
/openTCS-ModelEditor/src/main/java/org/opentcs/thirdparty/jhotdraw/application/action/draw/EditorColorChooserAction.java
|
142c62b54b3ce23d1658fc937603bb706b8b0fb8
|
[
"CC-BY-4.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
bluseking/opentcs
|
2acc808042a1fe9973c33dda6f2a19366dd7e139
|
0edd4f5a882787b83e5132097cf3cf9fc6ac4cc2
|
refs/heads/master
| 2023-09-06T06:44:10.473728
| 2021-11-25T15:43:14
| 2021-11-25T15:43:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,210
|
java
|
/**
* (c): IML, JHotDraw.
*
* Changed by IML to allow access to ResourceBundle.
*
*
* @(#)EditorColorChooserAction.java
*
* Copyright (c) 1996-2010 by the original authors of JHotDraw and all its
* contributors. All rights reserved.
*
* You may not use, copy or modify this file, except in compliance with the
* license agreement you entered into with the copyright holders. For details
* see accompanying license terms.
*/
package org.opentcs.thirdparty.jhotdraw.application.action.draw;
import java.awt.Color;
import java.awt.Component;
import java.util.HashMap;
import java.util.Map;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.Icon;
import javax.swing.JColorChooser;
import org.jhotdraw.draw.AttributeKey;
import org.jhotdraw.draw.DrawingEditor;
import org.jhotdraw.draw.action.EditorColorIcon;
import org.jhotdraw.draw.event.FigureSelectionEvent;
import org.opentcs.guing.util.I18nPlantOverviewModeling;
import org.opentcs.thirdparty.jhotdraw.util.ResourceBundleUtil;
/**
* EditorColorChooserAction.
* <p>
* The behavior for choosing the initial color of
* the JColorChooser matches with
* {@link EditorColorIcon }.
*
* @author Werner Randelshofer
*/
public class EditorColorChooserAction
extends AttributeAction {
protected AttributeKey<Color> key;
/**
* Creates a new instance.
*
* @param editor The drawing editor
* @param key The attribute key
* @param name The name
* @param icon The icon
* @param fixedAttributes The fixed attributes
*/
public EditorColorChooserAction(DrawingEditor editor,
AttributeKey<Color> key,
String name,
Icon icon,
Map<AttributeKey, Object> fixedAttributes) {
super(editor, fixedAttributes, name, icon);
this.key = key;
putValue(AbstractAction.NAME, name);
putValue(Action.SHORT_DESCRIPTION, ResourceBundleUtil.getBundle(I18nPlantOverviewModeling.TOOLBAR_PATH)
.getString("editorColorChooserAction.shortDescription"));
putValue(AbstractAction.SMALL_ICON, icon);
updateEnabledState();
}
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
Color initialColor = getInitialColor();
ResourceBundleUtil labels = ResourceBundleUtil.getBundle(I18nPlantOverviewModeling.TOOLBAR_PATH);
Color chosenColor = JColorChooser.showDialog((Component) e.getSource(),
labels.getString("editorColorChooserAction.dialog_colorSelection.title"),
initialColor);
if (chosenColor != null) {
HashMap<AttributeKey, Object> attr = new HashMap<>(attributes);
attr.put(key, chosenColor);
applyAttributesTo(attr, getView().getSelectedFigures());
}
}
public void selectionChanged(FigureSelectionEvent evt) {
//setEnabled(getView().getSelectionCount() > 0);
}
protected Color getInitialColor() {
Color initialColor = getEditor().getDefaultAttribute(key);
if (initialColor == null) {
initialColor = Color.red;
}
return initialColor;
}
}
|
[
"stefan.walter@iml.fraunhofer.de"
] |
stefan.walter@iml.fraunhofer.de
|
5c8deb8969bc6f37a31df44f92c5765e4200795e
|
e4a99454702a467434bd4cc9a71cd56ea18c6b38
|
/src/main/java/com/std/sms/api/impl/XN804062.java
|
cc61385cb18438aa7189ca41cda7693472b9e497
|
[] |
no_license
|
yiwocao2017/dztstdsms
|
c63181f1cd691611285c32379287fb55d7399faf
|
1945173d5486c182cf6c01ee457df2ca978f86e3
|
refs/heads/master
| 2022-06-28T12:58:41.082618
| 2019-07-01T06:37:01
| 2019-07-01T06:37:01
| 194,614,044
| 0
| 0
| null | 2022-06-17T02:17:58
| 2019-07-01T06:37:00
|
Java
|
UTF-8
|
Java
| false
| false
| 1,173
|
java
|
package com.std.sms.api.impl;
import com.std.sms.ao.ISystemTemplateAO;
import com.std.sms.api.AProcessor;
import com.std.sms.common.JsonUtil;
import com.std.sms.domain.SystemTemplate;
import com.std.sms.dto.req.XN804062Req;
import com.std.sms.exception.BizException;
import com.std.sms.exception.ParaException;
import com.std.sms.spring.SpringContextHolder;
/**
* 列表查询模板
* @author: xieyj
* @since: 2016年11月28日 下午4:16:38
* @history:
*/
public class XN804062 extends AProcessor {
private ISystemTemplateAO systemTemplateAO = SpringContextHolder
.getBean(ISystemTemplateAO.class);
private XN804062Req req = null;
@Override
public Object doBusiness() throws BizException {
SystemTemplate condition = new SystemTemplate();
condition.setSystemCode(req.getSystemCode());
condition.setChannelType(req.getChannelType());
condition.setPushType(req.getPushType());
return systemTemplateAO.querySystemTemplateList(condition);
}
@Override
public void doCheck(String inputparams) throws ParaException {
req = JsonUtil.json2Bean(inputparams, XN804062Req.class);
}
}
|
[
"admin@yiwocao.com"
] |
admin@yiwocao.com
|
69c4bd45029d08ee787bfb94b6d51848e7b1d440
|
3ef55e152decb43bdd90e3de821ffea1a2ec8f75
|
/large/module0783/src/java/module0783/a/IFoo2.java
|
aa300c2831cadcff19ff9fb7c09823a945b78121
|
[
"BSD-3-Clause"
] |
permissive
|
salesforce/bazel-ls-demo-project
|
5cc6ef749d65d6626080f3a94239b6a509ef145a
|
948ed278f87338edd7e40af68b8690ae4f73ebf0
|
refs/heads/master
| 2023-06-24T08:06:06.084651
| 2023-03-14T11:54:29
| 2023-03-14T11:54:29
| 241,489,944
| 0
| 5
|
BSD-3-Clause
| 2023-03-27T11:28:14
| 2020-02-18T23:30:47
|
Java
|
UTF-8
|
Java
| false
| false
| 851
|
java
|
package module0783.a;
import java.nio.file.*;
import java.sql.*;
import java.util.logging.*;
/**
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
* labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
* Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
*
* @see javax.annotation.processing.Completion
* @see javax.lang.model.AnnotatedConstruct
* @see javax.management.Attribute
*/
@SuppressWarnings("all")
public interface IFoo2<Q> extends module0783.a.IFoo0<Q> {
javax.naming.directory.DirContext f0 = null;
javax.net.ssl.ExtendedSSLSession f1 = null;
javax.rmi.ssl.SslRMIClientSocketFactory f2 = null;
String getName();
void setName(String s);
Q get();
void set(Q e);
}
|
[
"gwagenknecht@salesforce.com"
] |
gwagenknecht@salesforce.com
|
e217acf421648f033c4261b516b87cee9bf32985
|
cc0962291cec1467f974a952640cb310dc93eefb
|
/src/com/guoantvbox/cs/tvdispatch/Factory.java
|
69bb2fc9129d180647d10164971dcbc2a62ee032
|
[] |
no_license
|
kunkun39/HuBei_GuoAn
|
6df365e7d59ceeeec11a5647d9212980cbe1bbd1
|
e7227e586af903d5b4eac57fcaf3e26ac287a61e
|
refs/heads/master
| 2021-01-01T05:04:31.647747
| 2016-05-30T03:47:08
| 2016-05-30T03:47:08
| 59,175,381
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,816
|
java
|
package com.guoantvbox.cs.tvdispatch;
import java.io.File;
import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.Toast;
public class Factory extends Activity implements OnClickListener{
private Button clearDateButton;
private Button clearChannelsButton;
SysApplication objApplication;
private static final String prefName="user";
private static final String keyLastChanId = "lastChannelId";
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.factory);
objApplication=SysApplication.getInstance();
clearDateButton=(Button)findViewById(R.id.cleardata);
clearChannelsButton=(Button)findViewById(R.id.clearchannels);
clearChannelsButton.setOnClickListener(this);
clearDateButton.setOnClickListener(this);
}
private void clearData()
{
File hisFile = new File("/data/changhong/dvb/main-play-channel");
if(hisFile.exists())
{
hisFile.delete();
}
}
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
switch (arg0.getId()) {
case R.id.cleardata:
clearData();
Toast.makeText(Factory.this, R.string.str_factory_clear_data,
Toast.LENGTH_SHORT).show();
break;
case R.id.clearchannels:
objApplication.clearChannel();
Toast.makeText(Factory.this, R.string.str_factory_clear_channelist,
Toast.LENGTH_SHORT).show();
break;
}
}
}
|
[
"34445282@qq.com"
] |
34445282@qq.com
|
9545d86baf0da9ebe57be717fc20a1a0704234bf
|
f0ae4f5cfbd927c3196cce91492c2463cc176a2c
|
/10816/src/Main.java
|
9562d3b28072212927c8e0b5adee0996d141789d
|
[] |
no_license
|
soso1525/Algorithm
|
7de629eb3afeb8fcc33f9fda7377db27224a311d
|
3f426efb9edfbf77694319d052c389ee0cef04f4
|
refs/heads/master
| 2021-07-12T02:13:24.853965
| 2017-10-15T16:13:35
| 2017-10-15T16:13:35
| 105,617,732
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 877
|
java
|
/*
10
6 3 2 10 10 10 -10 -10 7 3
8
10 9 -5 2 3 4 5 -10
output>> 3 0 0 1 2 0 0 2
*/
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Scanner;
import java.util.TreeMap;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
TreeMap<Integer, Integer> nc = new TreeMap<Integer, Integer>();
while (n-- > 0) {
int tmp = sc.nextInt();
if (!(nc.containsKey(tmp))) {
nc.put(tmp, 1);
} else {
nc.put(tmp, nc.get(tmp) + 1);
}
}
int m = sc.nextInt();
LinkedList<Integer> mc = new LinkedList<Integer>();
while (m-- > 0)
mc.add(sc.nextInt());
Iterator it = mc.iterator();
while (it.hasNext()) {
int cur = (int) it.next();
if (nc.containsKey(cur))
System.out.print(nc.get(cur) + " ");
else
System.out.print("0 ");
}
}
}
|
[
"sandy1525@naver.com"
] |
sandy1525@naver.com
|
b37da349809a74c5e882defc1a6a09f647163f82
|
f9c22d4ee9824377e9de0cdcf70e4bd41b075080
|
/dcm4chee/src/org/dcm4chex/archive/dcm/stymgt/StudyMgtOrder.java
|
079c7ff135d64258ffedf4902320fa599d82c8ba
|
[] |
no_license
|
zhaojian770627/dcm4chee
|
cfc50266ad37eba933d98e8bc540090ec96997f5
|
8cabdcdb32a1e4887d49b985917a51e740368700
|
refs/heads/master
| 2021-01-10T01:45:49.224783
| 2015-10-27T13:46:51
| 2015-10-27T13:46:51
| 45,041,337
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,400
|
java
|
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is part of dcm4che, an implementation of DICOM(TM) in
* Java(TM), available at http://sourceforge.net/projects/dcm4che.
*
* The Initial Developer of the Original Code is
* TIANI Medgraph AG.
* Portions created by the Initial Developer are Copyright (C) 2003-2005
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Gunter Zeilinger <gunter.zeilinger@tiani.com>
* Franz Willer <franz.willer@gwi-ag.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
package org.dcm4chex.archive.dcm.stymgt;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.dcm4che.data.Command;
import org.dcm4che.data.Dataset;
import org.dcm4che.data.DcmElement;
import org.dcm4che.dict.Tags;
import org.dcm4chex.archive.common.BaseJmsOrder;
import org.dcm4chex.archive.common.JmsOrderProperties;
public class StudyMgtOrder extends BaseJmsOrder implements Serializable {
private static final long serialVersionUID = 3258417226779603505L;
private final String callingAET;
private final String calledAET;
private final int cmdField;
private final int actionTypeID;
private final String iuid;
private final Dataset ds;
public StudyMgtOrder(String callingAET, String calledAET,
int cmdField, int actionID, String iuid, Dataset dataset){
this.callingAET = callingAET;
this.calledAET = calledAET;
this.cmdField = cmdField;
this.actionTypeID = actionID;
this.iuid = iuid;
this.ds = dataset;
}
public final String getCalledAET() {
return calledAET;
}
public final String getCallingAET() {
return callingAET;
}
public final int getActionTypeID() {
return actionTypeID;
}
public final int getCommandField() {
return cmdField;
}
public final String getSOPInstanceUID() {
return iuid;
}
public final Dataset getDataset() {
return ds;
}
public String getOrderDetails() {
return cmdFieldAsString()
+ ", iuid=" + iuid;
}
private String cmdFieldAsString() {
return commandAsString(cmdField, actionTypeID);
}
public static String commandAsString(int cmdField, int actionTypeID) {
switch (cmdField) {
case Command.N_SET_RQ:
return "N_SET_RQ";
case Command.N_ACTION_RQ:
return "N_ACTION_RQ(" + actionTypeID + ")";
case Command.N_CREATE_RQ:
return "N_CREATE_RQ";
case Command.N_DELETE_RQ:
return "N_DELETE_RQ";
}
return Integer.toHexString(cmdField).toUpperCase();
}
/**
* Processes order attributes based on the values set in the {@code ctor}.
* @see BaseJmsOrder#processOrderProperties(Object...)
*/
@Override
public void processOrderProperties(Object... properties) {
this.setOrderProperty(JmsOrderProperties.CALLED_AE_TITLE, this.callingAET);
this.setOrderProperty(JmsOrderProperties.CALLING_AE_TITLE, this.calledAET);
if (ds != null) {
this.setOrderProperty(JmsOrderProperties.STUDY_INSTANCE_UID, ds.getString(Tags.StudyInstanceUID));
this.setOrderProperty(JmsOrderProperties.ISSUER_OF_PATIENT_ID, ds.getString(Tags.IssuerOfPatientID));
this.setOrderProperty(JmsOrderProperties.PATIENT_ID, ds.getString(Tags.PatientID));
List<String> seriesUIDList = new ArrayList<String>();
DcmElement refSeriesSeq = ds.get(Tags.RefSeriesSeq);
if ( refSeriesSeq != null ) {
for ( int j = 0; j < refSeriesSeq.countItems(); j++ ) {
Dataset refSeriesDS = refSeriesSeq.getItem(j);
seriesUIDList.add(refSeriesDS.getString(Tags.SeriesInstanceUID));
}
}
this.setOrderMultiProperty(JmsOrderProperties.SERIES_INSTANCE_UID, seriesUIDList.toArray(new String[0]));
} else {
setOrderProperty(JmsOrderProperties.SOP_INSTANCE_UID, iuid);
}
}
}
|
[
"zhaojian770627@163.com"
] |
zhaojian770627@163.com
|
7900a428ec25e5049bd333bf578a67a90584b70c
|
369270a14e669687b5b506b35895ef385dad11ab
|
/jdk.internal.vm.compiler/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/memory/AbstractWriteNode.java
|
9b24ddb7a971ad1bd26be75b60f2f996c3d2bf74
|
[] |
no_license
|
zcc888/Java9Source
|
39254262bd6751203c2002d9fc020da533f78731
|
7776908d8053678b0b987101a50d68995c65b431
|
refs/heads/master
| 2021-09-10T05:49:56.469417
| 2018-03-20T06:26:03
| 2018-03-20T06:26:03
| 125,970,208
| 3
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,805
|
java
|
/*
* Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.graalvm.compiler.nodes.memory;
import static org.graalvm.compiler.nodeinfo.NodeCycles.CYCLES_3;
import static org.graalvm.compiler.nodeinfo.NodeSize.SIZE_1;
import org.graalvm.compiler.core.common.LocationIdentity;
import org.graalvm.compiler.core.common.type.StampFactory;
import org.graalvm.compiler.graph.Node;
import org.graalvm.compiler.graph.NodeClass;
import org.graalvm.compiler.nodeinfo.InputType;
import org.graalvm.compiler.nodeinfo.NodeInfo;
import org.graalvm.compiler.nodes.FrameState;
import org.graalvm.compiler.nodes.StateSplit;
import org.graalvm.compiler.nodes.ValueNode;
import org.graalvm.compiler.nodes.ValueNodeUtil;
import org.graalvm.compiler.nodes.extended.GuardingNode;
import org.graalvm.compiler.nodes.memory.address.AddressNode;
@NodeInfo(allowedUsageTypes = {InputType.Memory, InputType.Guard}, cycles = CYCLES_3, size = SIZE_1)
public abstract class AbstractWriteNode extends FixedAccessNode implements StateSplit, MemoryCheckpoint.Single, MemoryAccess, GuardingNode {
public static final NodeClass<AbstractWriteNode> TYPE = NodeClass.create(AbstractWriteNode.class);
@Input ValueNode value;
@OptionalInput(InputType.State) FrameState stateAfter;
@OptionalInput(InputType.Memory) Node lastLocationAccess;
protected final boolean initialization;
@Override
public FrameState stateAfter() {
return stateAfter;
}
@Override
public void setStateAfter(FrameState x) {
assert x == null || x.isAlive() : "frame state must be in a graph";
updateUsages(stateAfter, x);
stateAfter = x;
}
@Override
public boolean hasSideEffect() {
return true;
}
public ValueNode value() {
return value;
}
/**
* Returns whether this write is the initialization of the written location. If it is true, the
* old value of the memory location is either uninitialized or zero. If it is false, the memory
* location is guaranteed to contain a valid value or zero.
*/
public boolean isInitialization() {
return initialization;
}
protected AbstractWriteNode(NodeClass<? extends AbstractWriteNode> c, AddressNode address, LocationIdentity location, ValueNode value, BarrierType barrierType) {
this(c, address, location, value, barrierType, false);
}
protected AbstractWriteNode(NodeClass<? extends AbstractWriteNode> c, AddressNode address, LocationIdentity location, ValueNode value, BarrierType barrierType, boolean initialization) {
super(c, address, location, StampFactory.forVoid(), barrierType);
this.value = value;
this.initialization = initialization;
}
protected AbstractWriteNode(NodeClass<? extends AbstractWriteNode> c, AddressNode address, LocationIdentity location, ValueNode value, BarrierType barrierType, GuardingNode guard,
boolean initialization) {
super(c, address, location, StampFactory.forVoid(), guard, barrierType, false, null);
this.value = value;
this.initialization = initialization;
}
@Override
public boolean isAllowedUsageType(InputType type) {
return (type == InputType.Guard && getNullCheck()) ? true : super.isAllowedUsageType(type);
}
@Override
public MemoryNode getLastLocationAccess() {
return (MemoryNode) lastLocationAccess;
}
@Override
public void setLastLocationAccess(MemoryNode lla) {
Node newLla = ValueNodeUtil.asNode(lla);
updateUsages(lastLocationAccess, newLla);
lastLocationAccess = newLla;
}
}
|
[
"841617433@qq.com"
] |
841617433@qq.com
|
b61cf8b050877652ca2f8364e0cd93d2c7f810cb
|
3b91ed788572b6d5ac4db1bee814a74560603578
|
/com/tencent/mm/plugin/card/d/d$3.java
|
5179220f465745d53264b2cb8eaedc2f94cb16c2
|
[] |
no_license
|
linsir6/WeChat_java
|
a1deee3035b555fb35a423f367eb5e3e58a17cb0
|
32e52b88c012051100315af6751111bfb6697a29
|
refs/heads/master
| 2020-05-31T05:40:17.161282
| 2018-08-28T02:07:02
| 2018-08-28T02:07:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 309
|
java
|
package com.tencent.mm.plugin.card.d;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
class d$3 implements OnClickListener {
d$3() {
}
public final void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
}
}
|
[
"707194831@qq.com"
] |
707194831@qq.com
|
1427595a0019f0e50df6223b310294d16c22aacb
|
83d6f8d1ea6e78e59ae30e979dd26ccbbdf11215
|
/app/src/main/java/com/juxin/predestinate/ui/user/check/self/album/AlbumAdapter.java
|
a1e48aa1a0da82e390f219794c358c4389dbb799
|
[] |
no_license
|
muyouwoshi/JFHHGL
|
b6c232e4fc781184019501d3add2f3c353ebbfd3
|
c1a5aa19772ccb698f20982aed08c41a0a7f2ec9
|
refs/heads/master
| 2021-05-11T22:54:27.083425
| 2018-01-15T05:42:45
| 2018-01-15T05:42:45
| 117,501,517
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,783
|
java
|
package com.juxin.predestinate.ui.user.check.self.album;
import android.content.Context;
import android.content.res.Resources;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.juxin.library.image.ImageLoader;
import com.juxin.predestinate.R;
import com.juxin.predestinate.bean.center.user.detail.UserPhoto;
import java.util.List;
/**
* 我的相册
*/
public class AlbumAdapter extends BaseAdapter {
public static final int PHOTO_STATUS_CHECKING = 0;
public static final int PHOTO_STATUS_NORMAL = 1;
public static final int PHOTO_STATUS_NOTPASS = 2;
private final Context context;
private Resources resources;
private LayoutInflater inflater;
private List<UserPhoto> userPhotoList;
private int itemWidth;
public AlbumAdapter(Context context, List<UserPhoto> userPhotoList, int itemWidth) {
this.context = context;
this.resources = context.getResources();
this.inflater = LayoutInflater.from(context);
this.userPhotoList = userPhotoList;
this.itemWidth = itemWidth;
}
@Override
public int getCount() {
return userPhotoList.size();
}
@Override
public Object getItem(int position) {
return userPhotoList.get(position);
}
@Override
public long getItemId(int position) {
return position;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder mHolder;
if (convertView == null) {
mHolder = new ViewHolder();
convertView = inflater.inflate(R.layout.f1_user_info_album_item, null);
mHolder.img_info_grid_item_pic = (ImageView) convertView.findViewById(R.id.img_info_grid_item_pic);
mHolder.txt_info_grid_item_status = (TextView) convertView.findViewById(R.id.txt_info_grid_item_status);
RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(itemWidth, itemWidth);
mHolder.img_info_grid_item_pic.setLayoutParams(lp);
convertView.setTag(mHolder);
} else {
mHolder = (ViewHolder) convertView.getTag();
}
UserPhoto userPhoto = userPhotoList.get(position);
String path = userPhoto.getPic();
if (path != null && !"".equals(path)) {
String url = ImageLoader.checkOssImageUrl(path);
ImageLoader.loadCenterCrop(context, url, mHolder.img_info_grid_item_pic);
} else {
mHolder.img_info_grid_item_pic.setImageResource(R.drawable.f1_upload_photo_btn);
}
int state = userPhoto.getStatus();
switch (state) {
case PHOTO_STATUS_CHECKING:
mHolder.txt_info_grid_item_status.setVisibility(View.VISIBLE);
mHolder.txt_info_grid_item_status.setText("审核中");
mHolder.txt_info_grid_item_status.setBackgroundColor(resources.getColor(R.color.color_6ba2fd));
break;
case PHOTO_STATUS_NORMAL:
mHolder.txt_info_grid_item_status.setVisibility(View.GONE);
break;
case PHOTO_STATUS_NOTPASS:
mHolder.txt_info_grid_item_status.setVisibility(View.VISIBLE);
mHolder.txt_info_grid_item_status.setText("未通过");
mHolder.txt_info_grid_item_status.setBackgroundColor(resources.getColor(R.color.color_ee3434));
break;
}
return convertView;
}
private class ViewHolder {
public ImageView img_info_grid_item_pic;
public TextView txt_info_grid_item_status;
}
}
|
[
"zhoujie@megvii.com"
] |
zhoujie@megvii.com
|
ff1787a459d307ef367975df9e057fe26aff4111
|
e0010c922ffa3c62e4981ac71946a104560d627f
|
/src/twg2/io/json/JsonTreeExtractor.java
|
0ac144f2fce827d7d9a1310db57dc23e4e9c1856
|
[
"MIT"
] |
permissive
|
TeamworkGuy2/JsonIo
|
7ebc127c7cf7941c11fbbf923dd9dc497bb80d79
|
d293f99a52f13d480d006eb8bdeef2f38d48943e
|
refs/heads/master
| 2021-01-17T14:21:23.449373
| 2016-09-12T02:23:13
| 2016-09-12T02:23:13
| 43,664,330
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,242
|
java
|
package twg2.io.json;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.JsonNodeType;
/** Utilities for reading specific node types from a {@link JsonNode} tree.
* TODO this is not currently used, it was written for another project where it did not end up getting used, but it might be useful in future
* @author TeamworkGuy2
* @since 2016-1-27
*/
public class JsonTreeExtractor {
/** Return a textual JsonNode's text, if not a text node, throw an error.
* @param node
* @return
*/
private static final String toString(JsonNode node) {
if(!node.isTextual()) {
throw new IllegalStateException("node is not text, expected text node");
}
return node.asText();
}
/** Return an array JsonNode's string array.
* If null, return null.
* If not an array, throw an error.
* If an element of the array is not textual, throw an error.
* @param node
* @return
*/
private static final List<String> toStringList(JsonNode node) {
if(node != null) {
if(node.getNodeType() != JsonNodeType.ARRAY) {
throw new IllegalArgumentException("expected array node, received " + node.getNodeType());
}
List<String> list = new ArrayList<>();
Iterator<JsonNode> fields = node.elements();
while(fields.hasNext()) {
JsonNode field = fields.next();
if(!field.isTextual()) {
throw new IllegalArgumentException("array element is not text, expected array of text values");
}
list.add(field.asText());
}
return list;
}
return null;
}
/** Return an object JsonNode's string map.
* If null, return null.
* If not an object, throw an error.
* If a field of the object is not textual, throw an error.
* @param node
* @return
*/
private static final Map<String, String> toStringMap(JsonNode node) {
if(node != null) {
if(node.getNodeType() != JsonNodeType.OBJECT) {
throw new IllegalArgumentException("expected object node, received " + node.getNodeType());
}
Map<String, String> map = new HashMap<>();
Iterator<Entry<String, JsonNode>> fields = node.fields();
while(fields.hasNext()) {
Entry<String, JsonNode> field = fields.next();
if(!field.getValue().isTextual()) {
throw new IllegalStateException("field '" + field.getKey() + "' is not text, expected map of text values");
}
map.put(field.getKey(), field.getValue().asText());
}
return map;
}
return null;
}
/** Return an object JsonNode's map.
* If null, return null.
* If not an object, throw an error.
* @param node
* @return
*/
private static final Map<String, JsonNode> toMap(JsonNode node) {
if(node != null) {
if(node.getNodeType() != JsonNodeType.OBJECT) {
throw new IllegalArgumentException("expected object node, received " + node.getNodeType());
}
Map<String, JsonNode> map = new HashMap<>();
Iterator<Entry<String, JsonNode>> fields = node.fields();
while(fields.hasNext()) {
Entry<String, JsonNode> field = fields.next();
map.put(field.getKey(), field.getValue());
}
return map;
}
return null;
}
}
|
[
"straitfrommars@rocketmail.com"
] |
straitfrommars@rocketmail.com
|
d8271685c954e5093df33f9ca98687ee7e683348
|
61c6164c22142c4369d525a0997b695875865e29
|
/middleware/src/main/java/com/spirit/sri/at/Anulados.java
|
f06c22492565fbe21a4616151a767d2da41e6295
|
[] |
no_license
|
xruiz81/spirit-creacional
|
e5a6398df65ac8afa42be65886b283007d190eae
|
382ee7b1a6f63924b8eb895d4781576627dbb3e5
|
refs/heads/master
| 2016-09-05T14:19:24.440871
| 2014-11-10T17:12:34
| 2014-11-10T17:12:34
| 26,328,756
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,954
|
java
|
/*
* This class was automatically generated with
* <a href="http://www.castor.org">Castor 1.0.1</a>, using an XML
* Schema.
* $Id: Anulados.java,v 1.1 2014/03/28 18:06:35 xrf Exp $
*/
package com.spirit.sri.at;
//---------------------------------/
//- Imported classes and packages -/
//---------------------------------/
import java.io.IOException;
import java.io.Reader;
import java.io.Serializable;
import java.io.Writer;
import org.exolab.castor.xml.MarshalException;
import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;
import org.exolab.castor.xml.ValidationException;
import org.xml.sax.ContentHandler;
/**
* Class Anulados.
*
* @version $Revision: 1.1 $ $Date: 2014/03/28 18:06:35 $
*/
public class Anulados extends AnuladosType
implements java.io.Serializable
{
//----------------/
//- Constructors -/
//----------------/
public Anulados()
{
super();
} //-- com.spirit.sri.at.Anulados()
//-----------/
//- Methods -/
//-----------/
/**
* Method isValid
*
*
*
* @return boolean
*/
public boolean isValid()
{
try {
validate();
}
catch (org.exolab.castor.xml.ValidationException vex) {
return false;
}
return true;
} //-- boolean isValid()
/**
* Method marshal
*
*
*
* @param out
*/
public void marshal(java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
{
Marshaller.marshal(this, out);
} //-- void marshal(java.io.Writer)
/**
* Method marshal
*
*
*
* @param handler
*/
public void marshal(org.xml.sax.ContentHandler handler)
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
{
Marshaller.marshal(this, handler);
} //-- void marshal(org.xml.sax.ContentHandler)
/**
* Method unmarshal
*
*
*
* @param reader
* @return AnuladosType
*/
public static com.spirit.sri.at.AnuladosType unmarshal(java.io.Reader reader)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
{
return (com.spirit.sri.at.AnuladosType) Unmarshaller.unmarshal(com.spirit.sri.at.Anulados.class, reader);
} //-- com.spirit.sri.at.AnuladosType unmarshal(java.io.Reader)
/**
* Method validate
*
*/
public void validate()
throws org.exolab.castor.xml.ValidationException
{
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
validator.validate(this);
} //-- void validate()
}
|
[
"xruiz@creacional.com"
] |
xruiz@creacional.com
|
27913f644fc9aa731d0c2219c734d31921e671e0
|
5fb9d5cd069f9df099aed99516092346ee3cf91a
|
/simba/src/main/java/com/simba/sqlengine/executor/etree/relation/join/ISlaveJoinUnit.java
|
fdc557297f2ea5c2981f3e2afbc9f0a43b8116e3
|
[] |
no_license
|
kylinsoong/teiid-test
|
862e238e055481dfb14fb84694b316ae74174467
|
ea5250fa372c7153ad6e9a0c344fdcfcf10800cc
|
refs/heads/master
| 2021-04-19T00:31:41.173819
| 2017-10-09T06:41:00
| 2017-10-09T06:41:00
| 35,716,627
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 752
|
java
|
package com.simba.sqlengine.executor.etree.relation.join;
import com.simba.sqlengine.executor.etree.temptable.IRowView;
import com.simba.support.exceptions.ErrorException;
public abstract interface ISlaveJoinUnit
extends IJoinUnit
{
public abstract void seek(IRowView paramIRowView);
public abstract boolean moveToNextRow()
throws ErrorException;
public abstract boolean moveOuter();
public abstract void setOutputOuter();
public abstract boolean hasOuterRows();
public abstract void match();
}
/* Location: /home/kylin/work/couchbase/Driver/CouchbaseJDBC4.jar!/com/simba/sqlengine/executor/etree/relation/join/ISlaveJoinUnit.class
* Java compiler version: 5 (49.0)
* JD-Core Version: 0.7.1
*/
|
[
"kylinsoong.1214@gmail.com"
] |
kylinsoong.1214@gmail.com
|
04c144cfe9c9bad386e3f43d2a29c25b79948e0b
|
9e8b8d5949a35c55cfac8ebe4c7b6fed043dc267
|
/cluster-manager/src/main/java/com/codeabovelab/dm/cluman/cluster/registry/DockerHubRegistry.java
|
6356d5da7987fad3752dbe741e112eab9ad9fe9f
|
[] |
no_license
|
awsautomation/Docker-Orchestration-master
|
5fac7dc060a6021371c95e4a5e52fb4c42d605f3
|
0c1544f4d2f6ceb869661b2f75e9216f990025ae
|
refs/heads/master
| 2021-08-28T11:40:05.834148
| 2020-02-06T15:45:19
| 2020-02-06T15:45:19
| 238,753,850
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 349
|
java
|
package com.codeabovelab.dm.cluman.cluster.registry;
/**
* Docker registry read-only API
*/
public interface DockerHubRegistry extends RegistryService {
/**
* Name of default docker hub registry. If we change it from '', then we need add some workarounds for
* correct handling this case.
*/
String DEFAULT_NAME = "";
}
|
[
"tech_fur@outlook.com"
] |
tech_fur@outlook.com
|
d552d8aada716b5c840c0d0a5123f8f7c6270938
|
0397369ae56901759b24277d22e6ee17963a7635
|
/src/com/lw/cms/bnarticlediggs/entity/BnArticleDiggs.java
|
7f01376e9fec22c4df71224779377a7dccd4aeb2
|
[] |
no_license
|
DreamFlyC/yimi
|
df5cdafad79e681629362eb35d3f093e22eafdda
|
88eec8c3fad8542d4db05dd5d99879bd68eab068
|
refs/heads/master
| 2020-04-09T11:40:52.705250
| 2018-12-14T09:34:10
| 2018-12-14T09:34:10
| 160,319,759
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 608
|
java
|
/**
*
*/
package com.lw.cms.bnarticlediggs.entity;
import java.io.Serializable;
/**
* @Desc
* @author CZP
* @Date 2018年10月23日 下午2:59:41
*/
public class BnArticleDiggs implements Serializable{
private int id;
private int digggood;
private int diggbad;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getDigggood() {
return digggood;
}
public void setDigggood(int digggood) {
this.digggood = digggood;
}
public int getDiggbad() {
return diggbad;
}
public void setDiggbad(int diggbad) {
this.diggbad = diggbad;
}
}
|
[
"742003942@qq.com"
] |
742003942@qq.com
|
83a7cdd433cbc35d018bf44cbc5fa7e9373c46d1
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-14263-85-5-FEMO-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/internal/template/InternalTemplateManager_ESTest.java
|
93039ed49b640810964e2f68d2e3748dcf7c3dbf
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 584
|
java
|
/*
* This file was automatically generated by EvoSuite
* Sun Apr 05 01:21:38 UTC 2020
*/
package com.xpn.xwiki.internal.template;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class InternalTemplateManager_ESTest extends InternalTemplateManager_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
5d6a8d956d6af8bf7a73c634710351796c59e7ea
|
4c7f91c81fc39969441d829826dcc5b9a14d2c4f
|
/src/com/wootag/facebook/NonCachingTokenCachingStrategy.java
|
94c48f2003174d49abb22262768fa5bc704f3c3b
|
[] |
no_license
|
sarvex/TagFuA
|
785a0387cdd6ab4a3fe3ab9234c580dcb988ac67
|
044caf536415eba650f026c9531c66647ff2a6b7
|
refs/heads/master
| 2023-05-28T10:47:43.603088
| 2023-05-03T03:18:00
| 2023-05-03T03:18:00
| 26,382,518
| 0
| 0
| null | 2023-05-03T03:18:01
| 2014-11-09T02:48:11
|
C
|
UTF-8
|
Java
| false
| false
| 1,177
|
java
|
/**
* Copyright 2010-present Facebook.
*
* 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.TagFu.facebook;
import android.os.Bundle;
/**
* Implements a trivial {@link TokenCachingStrategy} that does not actually cache any tokens.
* It is intended for use when an access token may be used on a temporary basis but should not be
* cached for future use (for instance, when handling a deep link).
*/
public class NonCachingTokenCachingStrategy extends TokenCachingStrategy {
@Override
public Bundle load() {
return null;
}
@Override
public void save(Bundle bundle) {
}
@Override
public void clear() {
}
}
|
[
"sarvex.jatasra@gmail.com"
] |
sarvex.jatasra@gmail.com
|
29c9d7688bc137c57a5a0020295745a1913fa8df
|
12b14b30fcaf3da3f6e9dc3cb3e717346a35870a
|
/examples/commons-math3/mutations/mutants-BetaDistribution/7/org/apache/commons/math3/distribution/BetaDistribution.java
|
586ca888c400621971313e80cd7bd39bd9250001
|
[
"BSD-3-Clause",
"Minpack",
"Apache-2.0"
] |
permissive
|
SmartTests/smartTest
|
b1de326998857e715dcd5075ee322482e4b34fb6
|
b30e8ec7d571e83e9f38cd003476a6842c06ef39
|
refs/heads/main
| 2023-01-03T01:27:05.262904
| 2020-10-27T20:24:48
| 2020-10-27T20:24:48
| 305,502,060
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,771
|
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.commons.math3.distribution;
import org.apache.commons.math3.exception.NumberIsTooSmallException;
import org.apache.commons.math3.exception.util.LocalizedFormats;
import org.apache.commons.math3.special.Gamma;
import org.apache.commons.math3.special.Beta;
import org.apache.commons.math3.util.FastMath;
import org.apache.commons.math3.random.RandomGenerator;
import org.apache.commons.math3.random.Well19937c;
/**
* Implements the Beta distribution.
*
* @see <a href="http://en.wikipedia.org/wiki/Beta_distribution">Beta distribution</a>
* @version $Id$
* @since 2.0 (changed to concrete class in 3.0)
*/
public class BetaDistribution extends AbstractRealDistribution {
/**
* Default inverse cumulative probability accuracy.
* @since 2.1
*/
public static final double DEFAULT_INVERSE_ABSOLUTE_ACCURACY = 1e-9;
/** Serializable version identifier. */
private static final long serialVersionUID = -1221965979403477668L;
/** First shape parameter. */
private final double alpha;
/** Second shape parameter. */
private final double beta;
/** Normalizing factor used in density computations.
* updated whenever alpha or beta are changed.
*/
private double z;
/** Inverse cumulative probability accuracy. */
private final double solverAbsoluteAccuracy;
/**
* Build a new instance.
*
* @param alpha First shape parameter (must be positive).
* @param beta Second shape parameter (must be positive).
*/
public BetaDistribution(double alpha, double beta) {
this(alpha, beta, DEFAULT_INVERSE_ABSOLUTE_ACCURACY);
}
/**
* Build a new instance.
*
* @param alpha First shape parameter (must be positive).
* @param beta Second shape parameter (must be positive).
* @param inverseCumAccuracy Maximum absolute error in inverse
* cumulative probability estimates (defaults to
* {@link #DEFAULT_INVERSE_ABSOLUTE_ACCURACY}).
* @since 2.1
*/
public BetaDistribution(double alpha, double beta, double inverseCumAccuracy) {
this(new Well19937c(), alpha, beta, inverseCumAccuracy);
}
/**
* Creates a β distribution.
*
* @param rng Random number generator.
* @param alpha First shape parameter (must be positive).
* @param beta Second shape parameter (must be positive).
* @since 3.3
*/
public BetaDistribution(RandomGenerator rng, double alpha, double beta) {
this(rng, alpha, beta, DEFAULT_INVERSE_ABSOLUTE_ACCURACY);
}
/**
* Creates a β distribution.
*
* @param rng Random number generator.
* @param alpha First shape parameter (must be positive).
* @param beta Second shape parameter (must be positive).
* @param inverseCumAccuracy Maximum absolute error in inverse
* cumulative probability estimates (defaults to
* {@link #DEFAULT_INVERSE_ABSOLUTE_ACCURACY}).
* @since 3.1
*/
public BetaDistribution(RandomGenerator rng,
double alpha,
double beta,
double inverseCumAccuracy) {
super(rng);
this.alpha = alpha;
this.beta = beta;
z = Double.NaN;
solverAbsoluteAccuracy = inverseCumAccuracy;
}
/**
* Access the first shape parameter, {@code alpha}.
*
* @return the first shape parameter.
*/
public double getAlpha() {
return alpha;
}
/**
* Access the second shape parameter, {@code beta}.
*
* @return the second shape parameter.
*/
public double getBeta() {
return beta;
}
/** Recompute the normalization factor. */
private void recomputeZ() {
if (false) {
z = Gamma.logGamma(alpha) + Gamma.logGamma(beta) - Gamma.logGamma(alpha + beta);
}
}
/** {@inheritDoc} */
public double density(double x) {
recomputeZ();
if (x < 0 || x > 1) {
return 0;
} else if (x == 0) {
if (alpha < 1) {
throw new NumberIsTooSmallException(LocalizedFormats.CANNOT_COMPUTE_BETA_DENSITY_AT_0_FOR_SOME_ALPHA, alpha, 1, false);
}
return 0;
} else if (x == 1) {
if (beta < 1) {
throw new NumberIsTooSmallException(LocalizedFormats.CANNOT_COMPUTE_BETA_DENSITY_AT_1_FOR_SOME_BETA, beta, 1, false);
}
return 0;
} else {
double logX = FastMath.log(x);
double log1mX = FastMath.log1p(-x);
return FastMath.exp((alpha - 1) * logX + (beta - 1) * log1mX - z);
}
}
/** {@inheritDoc} */
public double cumulativeProbability(double x) {
if (x <= 0) {
return 0;
} else if (x >= 1) {
return 1;
} else {
return Beta.regularizedBeta(x, alpha, beta);
}
}
/**
* Return the absolute accuracy setting of the solver used to estimate
* inverse cumulative probabilities.
*
* @return the solver absolute accuracy.
* @since 2.1
*/
@Override
protected double getSolverAbsoluteAccuracy() {
return solverAbsoluteAccuracy;
}
/**
* {@inheritDoc}
*
* For first shape parameter {@code alpha} and second shape parameter
* {@code beta}, the mean is {@code alpha / (alpha + beta)}.
*/
public double getNumericalMean() {
final double a = getAlpha();
return a / (a + getBeta());
}
/**
* {@inheritDoc}
*
* For first shape parameter {@code alpha} and second shape parameter
* {@code beta}, the variance is
* {@code (alpha * beta) / [(alpha + beta)^2 * (alpha + beta + 1)]}.
*/
public double getNumericalVariance() {
final double a = getAlpha();
final double b = getBeta();
final double alphabetasum = a + b;
return (a * b) / ((alphabetasum * alphabetasum) * (alphabetasum + 1));
}
/**
* {@inheritDoc}
*
* The lower bound of the support is always 0 no matter the parameters.
*
* @return lower bound of the support (always 0)
*/
public double getSupportLowerBound() {
return 0;
}
/**
* {@inheritDoc}
*
* The upper bound of the support is always 1 no matter the parameters.
*
* @return upper bound of the support (always 1)
*/
public double getSupportUpperBound() {
return 1;
}
/** {@inheritDoc} */
public boolean isSupportLowerBoundInclusive() {
return false;
}
/** {@inheritDoc} */
public boolean isSupportUpperBoundInclusive() {
return false;
}
/**
* {@inheritDoc}
*
* The support of this distribution is connected.
*
* @return {@code true}
*/
public boolean isSupportConnected() {
return true;
}
}
|
[
"kesina@Kesinas-MBP.lan"
] |
kesina@Kesinas-MBP.lan
|
e548a7a8e930f6e6acae291b2f58f929b647989a
|
af66630bdef2969ea0df431aa86ae1689e03b67f
|
/app/src/main/java/com/mmy/maimaiyun/model/personal/component/AuthComponent.java
|
e7e52ed91a9c9f06e9e774bd0e34f36a397130d1
|
[] |
no_license
|
IkeFan/mymyyun
|
f58650d9aeab2bab2102eec5137d2081fc3e1bf3
|
2d76528c51e18d8b36a0e109bd0dbc5275557f52
|
refs/heads/master
| 2020-03-29T11:43:23.943929
| 2018-09-28T03:40:42
| 2018-09-28T03:40:42
| 149,867,311
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 548
|
java
|
package com.mmy.maimaiyun.model.personal.component;
import com.mmy.maimaiyun.AppComponent;
import com.mmy.maimaiyun.base.scoped.ActivityScoped;
import com.mmy.maimaiyun.model.personal.module.AuthModule;
import com.mmy.maimaiyun.model.personal.ui.activity.AuthActivity;
import dagger.Component;
/**
* @创建者 lucas
* @创建时间 2017/12/11 0011 14:32
* @描述 TODO
*/
@ActivityScoped
@Component(modules = AuthModule.class,dependencies = AppComponent.class)
public interface AuthComponent {
void inject(AuthActivity authActivity);
}
|
[
"652918554@qq.com"
] |
652918554@qq.com
|
f8dcad34e10150327dab08018b065688178d793f
|
574ca6a57daadc9dfe623aa5d1a3e54f662db284
|
/SpringBootFreemaker/src/main/java/com/mengke/web/UserController.java
|
c6905c365b083a237262172173d1627d45afc7cc
|
[] |
no_license
|
kekesam/kekespringboot
|
7258c2dec423081c82b0f1e09ae489c6c7690c83
|
d293c92b2fa5f7e4e347eb56d0af5af0fa64d169
|
refs/heads/master
| 2021-08-30T20:20:46.801518
| 2017-12-19T09:22:54
| 2017-12-19T09:22:54
| 110,570,109
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,322
|
java
|
package com.mengke.web;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.mengke.bean.TmParams;
import com.mengke.bean.User;
import com.mengke.mapper.IUserMapper;
@Controller
@RequestMapping("/user")
public class UserController {
@Autowired
private IUserMapper userMapper;
@RequestMapping("/list")
public String list(Model model,TmParams params){
int itemCount = userMapper.countUsers(params);
model.addAttribute("itemCount", itemCount);
return "user/list";
}
@ResponseBody
@RequestMapping("/delete/{id}")
public String list(@PathVariable("id")String id){
userMapper.deluser(id);
return "success";
}
@RequestMapping(value="/template")
public String template(Model model,TmParams params){
List<User> users = userMapper.findUsers(params);
int itemCount = userMapper.countUsers(params);
model.addAttribute("itemCount", itemCount);
model.addAttribute("users", users);
return "user/template";
}
}
|
[
"xuchengfeifei@163.com"
] |
xuchengfeifei@163.com
|
627d7f8f4637791e273738f1b61daea596b3b5cc
|
aca82a9b8ad16a58ded2a85c955f32ff204f777c
|
/src/main/java/ReadNCharactersGivenRead4II.java
|
3eef98f1f774a0f41f813fe11566b24da6e079a5
|
[] |
no_license
|
jmnarloch/leetcode
|
25a4e662b0bbbb82ff4dc335d2f4827a6297cfd4
|
d3043a1f929477a71cfa519cffb4d0d3df85eaf4
|
refs/heads/master
| 2021-01-10T21:24:03.936257
| 2015-07-16T18:41:43
| 2015-07-16T18:41:43
| 34,535,829
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 960
|
java
|
/**
* Created by jakubnarloch on 08.04.15.
*/
public class ReadNCharactersGivenRead4II {
private char[] buffer = new char[4];
int offset = 0, bufsize = 0;
/**
* @param buf Destination buffer
* @param n Maximum number of characters to read
* @return The number of characters read
*/
public int read(char[] buf, int n) {
int readBytes = 0;
boolean eof = false;
// while (!eof && readBytes < n) {
// if (bufsize == 0) {
// bufsize = read4(buffer);
// eof = bufsize < 4;
// }
// int bytes = Math.min(n - readBytes, bufsize);
// System.arraycopy(buffer /* src */, offset /* srcPos */,
// buf /* dest */, readBytes /* destPos */, bytes /* length */);
// offset = (offset + bytes) % 4;
// bufsize -= bytes;
// readBytes += bytes;
// }
return readBytes;
}
}
|
[
"jmnarloch@gmail.com"
] |
jmnarloch@gmail.com
|
b2b8040412e95e228af2a531adec4b798e8f33ca
|
1cc6988da857595099e52dd9dd2e6c752d69f903
|
/ZimbraServer/src/java/com/zimbra/cs/redolog/RedoLogOutput.java
|
bcf2624a2083997a7ce11be6ffba939ba26baeb3
|
[] |
no_license
|
mmariani/zimbra-5682-slapos
|
e250d6a8d5ad4ddd9670ac381211ba4b5075de61
|
d23f0f8ab394d3b3e8a294e10f56eaef730d2616
|
refs/heads/master
| 2021-01-19T06:58:19.601688
| 2013-03-26T16:30:38
| 2013-03-26T16:30:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,910
|
java
|
/*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 VMware, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.zimbra.com/license.
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
* ***** END LICENSE BLOCK *****
*/
package com.zimbra.cs.redolog;
import java.io.DataOutput;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.RandomAccessFile;
import com.zimbra.common.util.ByteUtil;
/**
* This class is equivalent to java.io.DataOutputStream except that writeUTF()
* method doesn't have 64KB limit thanks to using a different serialization
* format. (thus incompatible with DataOutputStream) This class is not derived
* from DataOutputStream and does not implement DataOutput interface, to prevent
* using either of those in redo log operation classes.
*
* @author jhahm
*/
public class RedoLogOutput {
private DataOutput mOUT;
public RedoLogOutput(OutputStream os) {
mOUT = new DataOutputStream(os);
}
public RedoLogOutput(RandomAccessFile raf) {
mOUT = raf;
}
public void write(byte[] b) throws IOException { mOUT.write(b); }
public void writeBoolean(boolean v) throws IOException { mOUT.writeBoolean(v); }
public void writeByte(byte v) throws IOException { mOUT.writeByte(v); }
public void writeShort(short v) throws IOException { mOUT.writeShort(v); }
public void writeInt(int v) throws IOException { mOUT.writeInt(v); }
public void writeLong(long v) throws IOException { mOUT.writeLong(v); }
public void writeDouble(double v) throws IOException { mOUT.writeDouble(v); }
public void writeUTF(String v) throws IOException {
ByteUtil.writeUTF8(mOUT, v);
}
public void writeUTFArray(String[] v) throws IOException {
if (v == null) {
writeInt(-1);
} else {
writeInt(v.length);
for (String s : v) {
writeUTF(s);
}
}
}
// methods of DataOutput that shouldn't be used in redo logging
// not implemented on purpose
//public void write(byte[] b, int off, int len) throws IOException { mOUT.write(b, off, len); }
//public void write(int b) throws IOException { mOUT.write(b); }
//public void writeBytes(String v) throws IOException { mOUT.writeBytes(v); }
//public void writeChar(int v) throws IOException { mOUT.writeChar(v); }
//public void writeChars(String v) throws IOException { mOUT.writeChars(v); }
//public void writeFloat(float v) throws IOException { mOUT.writeFloat(v); }
}
|
[
"marco.mariani@nexedi.com"
] |
marco.mariani@nexedi.com
|
46d10012ae7c2a15f41806527e4d285ecdeb3431
|
3220ededaa761760588966d6aab2b1cd1a94f1a7
|
/SfQ/src/main/java/org/apache/camel/salesforce/dto/CategoryNode.java
|
c70b1fa94cfff235216a3227ec83e286d01685e4
|
[] |
no_license
|
cnduffield/OCPFuseSF
|
25ba4383d19eaa99a2a61a9e514574c63f608bd2
|
4638cd1f4a02b0843a7560cf0171298b12b6330d
|
refs/heads/master
| 2021-01-13T04:09:37.559426
| 2017-02-02T17:37:10
| 2017-02-02T17:37:10
| 78,051,686
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,799
|
java
|
/*
* Salesforce DTO generated by camel-salesforce-maven-plugin
* Generated on: Fri Nov 11 19:02:42 ART 2016
*/
package org.apache.camel.salesforce.dto;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamConverter;
import org.apache.camel.component.salesforce.api.PicklistEnumConverter;
import org.apache.camel.component.salesforce.api.dto.AbstractSObjectBase;
import org.codehaus.jackson.annotate.JsonProperty;
/**
* Salesforce DTO for SObject CategoryNode
*/
@XStreamAlias("CategoryNode")
public class CategoryNode extends AbstractSObjectBase {
// ParentId
private String ParentId;
@JsonProperty("ParentId")
public String getParentId() {
return this.ParentId;
}
@JsonProperty("ParentId")
public void setParentId(String ParentId) {
this.ParentId = ParentId;
}
// MasterLabel
private String MasterLabel;
@JsonProperty("MasterLabel")
public String getMasterLabel() {
return this.MasterLabel;
}
@JsonProperty("MasterLabel")
public void setMasterLabel(String MasterLabel) {
this.MasterLabel = MasterLabel;
}
// SortOrder
private Integer SortOrder;
@JsonProperty("SortOrder")
public Integer getSortOrder() {
return this.SortOrder;
}
@JsonProperty("SortOrder")
public void setSortOrder(Integer SortOrder) {
this.SortOrder = SortOrder;
}
// SortStyle
@XStreamConverter(PicklistEnumConverter.class)
private SortStyleEnum SortStyle;
@JsonProperty("SortStyle")
public SortStyleEnum getSortStyle() {
return this.SortStyle;
}
@JsonProperty("SortStyle")
public void setSortStyle(SortStyleEnum SortStyle) {
this.SortStyle = SortStyle;
}
}
|
[
"cnduffield@hotmail.com"
] |
cnduffield@hotmail.com
|
1e501e1ef434ecf00c11043c5c85fd1605cbbec7
|
038ee6b20cae51169a2ed4ed64a7b8e99b5cbaad
|
/schemaOrgDoma/src/org/kyojo/schemaorg/m3n4/pending/impl/MEASUREMENT_TECHNIQUE.java
|
641a018976430cf8bd2c9323d7305f8598d91136
|
[
"Apache-2.0"
] |
permissive
|
nagaikenshin/schemaOrg
|
3dec1626781913930da5585884e3484e0b525aea
|
4c9d6d098a2741c2dc2a814f1c708ee55c36e9a8
|
refs/heads/master
| 2021-06-25T04:52:49.995840
| 2019-05-12T06:22:37
| 2019-05-12T06:22:37
| 134,319,974
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,607
|
java
|
package org.kyojo.schemaorg.m3n4.pending.impl;
import java.util.ArrayList;
import java.util.List;
import org.kyojo.schemaorg.SimpleJsonBuilder;
import org.kyojo.schemaorg.m3n4.core.Clazz.URL;
import org.kyojo.schemaorg.m3n4.core.DataType.Text;
import org.kyojo.schemaorg.m3n4.core.impl.TEXT;
import org.kyojo.schemaorg.m3n4.pending.Container;
import org.seasar.doma.Transient;
public class MEASUREMENT_TECHNIQUE implements Container.MeasurementTechnique {
private static final long serialVersionUID = 1L;
@Transient
public List<Text> textList;
@Transient
public List<URL> urlList;
public MEASUREMENT_TECHNIQUE() {
}
public MEASUREMENT_TECHNIQUE(String string) {
this(new TEXT(string));
}
public MEASUREMENT_TECHNIQUE(Text text) {
textList = new ArrayList<Text>();
textList.add(text);
}
@Override
public Text getText() {
if(textList != null && textList.size() > 0) {
return textList.get(0);
} else {
return null;
}
}
@Override
public void setText(Text text) {
if(textList == null) {
textList = new ArrayList<>();
}
if(textList.size() == 0) {
textList.add(text);
} else {
textList.set(0, text);
}
}
@Override
public List<Text> getTextList() {
return textList;
}
@Override
public void setTextList(List<Text> textList) {
this.textList = textList;
}
@Override
public boolean hasText() {
return textList != null && textList.size() > 0 && textList.get(0) != null;
}
public MEASUREMENT_TECHNIQUE(URL url) {
urlList = new ArrayList<URL>();
urlList.add(url);
}
@Override
public URL getURL() {
if(urlList != null && urlList.size() > 0) {
return urlList.get(0);
} else {
return null;
}
}
@Override
public void setURL(URL url) {
if(urlList == null) {
urlList = new ArrayList<>();
}
if(urlList.size() == 0) {
urlList.add(url);
} else {
urlList.set(0, url);
}
}
@Override
public List<URL> getURLList() {
return urlList;
}
@Override
public void setURLList(List<URL> urlList) {
this.urlList = urlList;
}
@Override
public boolean hasURL() {
return urlList != null && urlList.size() > 0 && urlList.get(0) != null;
}
public MEASUREMENT_TECHNIQUE(List<Text> textList,
List<URL> urlList) {
setTextList(textList);
setURLList(urlList);
}
public void copy(Container.MeasurementTechnique org) {
setTextList(org.getTextList());
setURLList(org.getURLList());
}
@Override
public String getNativeValue() {
if(getText() == null) return null;
return getText().getNativeValue();
}
@Override
public String toString() {
return SimpleJsonBuilder.toJson(this);
}
}
|
[
"nagai@nagaikenshin.com"
] |
nagai@nagaikenshin.com
|
2a8d0b2751b49cd0a28a777df467082651a32c84
|
0db1932a43ea764599faf7d1555d057c0ca76728
|
/src/main/java/it/unimi/dsi/fastutil/bytes/Byte2CharSortedMap.java
|
e0081be3e46c97ee206f6fcf26be649b11fbec48
|
[
"Apache-2.0"
] |
permissive
|
tommyettinger/fastutil-tinkering
|
8f5f996400ab60f6d16627d8537a0cf99f0da8b5
|
1734f79b8c3b2e4eb5d050226cb46133a88b6ec4
|
refs/heads/master
| 2021-07-20T05:46:34.012997
| 2020-10-13T20:27:46
| 2020-10-13T20:27:46
| 222,835,054
| 0
| 0
|
Apache-2.0
| 2020-10-13T20:27:47
| 2019-11-20T02:38:29
|
Java
|
UTF-8
|
Java
| false
| false
| 6,558
|
java
|
/*
* Copyright (C) 2002-2017 Sebastiano Vigna
*
* 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 it.unimi.dsi.fastutil.bytes;
import it.unimi.dsi.fastutil.chars.CharCollection;
import it.unimi.dsi.fastutil.objects.ObjectSortedSet;
import it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator;
import java.util.Map;
import java.util.SortedMap;
/** A type-specific {@link SortedMap}; provides some additional methods that use polymorphism to avoid (un)boxing.
*
* <P>Additionally, this interface strengthens {@link #entrySet()},
* {@link #keySet()}, {@link #values()},
* {@link #comparator()}, {@link SortedMap#subMap(Object,Object)}, {@link SortedMap#headMap(Object)} and {@link SortedMap#tailMap(Object)}.
*
* @see SortedMap
*/
public interface Byte2CharSortedMap extends Byte2CharMap , SortedMap<Byte, Character> {
/** Returns a view of the portion of this sorted map whose keys range from <code>fromKey</code>, inclusive, to <code>toKey</code>, exclusive.
*
* <P>Note that this specification strengthens the one given in {@link SortedMap#subMap(Object,Object)}.
*
* @see SortedMap#subMap(Object,Object)
*/
Byte2CharSortedMap subMap(byte fromKey, byte toKey);
/** Returns a view of the portion of this sorted map whose keys are strictly less than <code>toKey</code>.
*
* <P>Note that this specification strengthens the one given in {@link SortedMap#headMap(Object)}.
*
* @see SortedMap#headMap(Object)
*/
Byte2CharSortedMap headMap(byte toKey);
/** Returns a view of the portion of this sorted map whose keys are greater than or equal to <code>fromKey</code>.
*
* <P>Note that this specification strengthens the one given in {@link SortedMap#tailMap(Object)}.
*
* @see SortedMap#tailMap(Object)
*/
Byte2CharSortedMap tailMap(byte fromKey);
/** Returns the first (lowest) key currently in this map.
* @see SortedMap#firstKey()
*/
byte firstByteKey();
/** Returns the last (highest) key currently in this map.
* @see SortedMap#lastKey()
*/
byte lastByteKey();
/** {@inheritDoc}
* <P>Note that this specification strengthens the one given in {@link SortedMap#subMap(Object,Object)}.
* @deprecated Please use the corresponding type-specific method instead.
*/
@Deprecated
@Override
Byte2CharSortedMap subMap(Byte fromKey, Byte toKey);
/** {@inheritDoc}
* <P>Note that this specification strengthens the one given in {@link SortedMap#headMap(Object)}.
* @deprecated Please use the corresponding type-specific method instead.
*/
@Deprecated
@Override
Byte2CharSortedMap headMap(Byte toKey);
/** {@inheritDoc}
* <P>Note that this specification strengthens the one given in {@link SortedMap#tailMap(Object)}.
* @deprecated Please use the corresponding type-specific method instead.
*/
@Deprecated
@Override
Byte2CharSortedMap tailMap(Byte fromKey);
/** {@inheritDoc}
* @deprecated Please use the corresponding type-specific method instead.
*/
@Deprecated
@Override
Byte firstKey();
/** {@inheritDoc}
* @deprecated Please use the corresponding type-specific method instead.
*/
@Deprecated
@Override
Byte lastKey();
/** A sorted entry set providing fast iteration.
*
* <p>In some cases (e.g., hash-based classes) iteration over an entry set requires the creation
* of a large number of entry objects. Some <code>fastutil</code>
* maps might return {@linkplain #entrySet() entry set} objects of type <code>FastSortedEntrySet</code>: in this case, {@link #fastIterator() fastIterator()}
* will return an iterator that is guaranteed not to create a large number of objects, <em>possibly
* by returning always the same entry</em> (of course, mutated).
*/
public interface FastSortedEntrySet extends ObjectSortedSet<Byte2CharMap.Entry >, FastEntrySet {
/** Returns a fast iterator over this sorted entry set; the iterator might return always the same entry object, suitably mutated.
*
* @return a fast iterator over this sorted entry set; the iterator might return always the same entry object, suitably mutated.
*/
public ObjectBidirectionalIterator<Byte2CharMap.Entry > fastIterator(Byte2CharMap.Entry from);
}
/** Returns a sorted-set view of the mappings contained in this map.
* <p>Note that this specification strengthens the one given in the
* corresponding type-specific unsorted map.
*
* @return a sorted-set view of the mappings contained in this map.
* @see SortedMap#entrySet()
* @deprecated Please use the corresponding type-specific method instead.
*/
@Deprecated
@Override
ObjectSortedSet<Map.Entry<Byte, Character>> entrySet();
/** Returns a type-specific sorted-set view of the mappings contained in this map.
* <p>Note that this specification strengthens the one given in the
* corresponding type-specific unsorted map.
*
* @return a type-specific sorted-set view of the mappings contained in this map.
* @see #entrySet()
*/
ObjectSortedSet<Byte2CharMap.Entry > byte2CharEntrySet();
/** Returns a type-specific sorted-set view of the keys contained in this map.
* <p>Note that this specification strengthens the one given in the
* corresponding type-specific unsorted map.
*
* @return a sorted-set view of the keys contained in this map.
* @see SortedMap#keySet()
*/
@Override
ByteSortedSet keySet();
/** Returns a type-specific set view of the values contained in this map.
* <P>Note that this specification strengthens the one given in {@link Map#values()},
* which was already strengthened in the corresponding type-specific class,
* but was weakened by the fact that this interface extends {@link SortedMap}.
*
* @return a set view of the values contained in this map.
* @see SortedMap#values()
*/
@Override
CharCollection values();
/** Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
*
* <P>Note that this specification strengthens the one given in {@link SortedMap#comparator()}.
*
* @see SortedMap#comparator()
*/
@Override
ByteComparator comparator();
}
|
[
"tommy.ettinger@gmail.com"
] |
tommy.ettinger@gmail.com
|
c1745f33ae6373b4d5780b5f9507201686d16c42
|
f86938ea6307bf6d1d89a07b5b5f9e360673d9b8
|
/CodeComment_Data/Code_Jam/train/Counting_Sheep/S/HelloWorld(2).java
|
fcdc8c714c9495b5fc4b369f75347b6f6967d71b
|
[] |
no_license
|
yxh-y/code_comment_generation
|
8367b355195a8828a27aac92b3c738564587d36f
|
2c7bec36dd0c397eb51ee5bd77c94fa9689575fa
|
refs/heads/master
| 2021-09-28T18:52:40.660282
| 2018-11-19T14:54:56
| 2018-11-19T14:54:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,156
|
java
|
package methodEmbedding.Counting_Sheep.S.LYD231;
import java.io.*;
import java.util.*;
public class HelloWorld{
public static void main(String []args)throws IOException{
ArrayList<Integer> counter = new ArrayList<>();
Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
int t = in.nextInt();
if(t>=1 && t<=100){
int cases[] = new int[t];
for(int i=0;i<t;i++){
int n = in.nextInt();
if(n<0 || n>1000000){
System.exit(0);
}else{
cases[i] = n;
}
}
for(int i=0;i<t;i++){
int num = cases[i];
if(num==0)
System.out.println("Case #"+(i+1)+": INSOMNIA");
else{
counter.clear();
int c =0;
int cp;
int tcp=0;
//System.out.println("Starting with " + num);
while(counter.size()!=10){
c++;
cp = num*c;
//System.out.println(cp);
tcp = cp;
while(cp>0){
int dig = cp%10;
if(!counter.contains(dig)){
counter.add(dig);
//System.out.println("Added "+dig);
}
cp = cp/10;
}
if(c>100){
System.out.println("Case #"+(i+1)+": INSOMNIA");
counter.clear();
break;
}
}
if(counter.size()==10){
System.out.println("Case #"+(i+1)+": "+tcp);
}
}
}
}
}
}
|
[
"liangyuding@sjtu.edu.cn"
] |
liangyuding@sjtu.edu.cn
|
d60d85a7f4155a90340302959a92660e66b65253
|
ccd9fcbdc938b82fd0363722da483460a79358db
|
/server/ikenga-web/src/main/java/me/ikenga/user/login/ui/LoginPage.java
|
f9bedf2405ce642fce31d58585450328991a789e
|
[] |
no_license
|
ikenga/ikenga
|
34aba435d16540b5a18ea6d190b38d3e2c83dd4f
|
240a487f24e09dd513c62963bd32f83f715a92c1
|
refs/heads/master
| 2020-05-30T23:57:08.010751
| 2014-07-18T10:27:02
| 2014-07-18T10:27:02
| 19,947,734
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,372
|
java
|
package me.ikenga.user.login.ui;
import me.ikenga.IkengaSession;
import me.ikenga.base.ui.BasePage;
import me.ikenga.base.ui.components.forms.PasswordFieldPanel;
import me.ikenga.base.ui.components.forms.TextFieldPanel;
import me.ikenga.user.login.InvalidLoginCredentialsException;
import me.ikenga.user.login.LoginCredentials;
import me.ikenga.user.login.LoginData;
import me.ikenga.user.login.LoginService;
import org.apache.wicket.ajax.AjaxEventBehavior;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.behavior.AttributeAppender;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.FormComponent;
import org.apache.wicket.model.Model;
import org.apache.wicket.spring.injection.annot.SpringBean;
import static org.wicketstuff.lazymodel.LazyModel.from;
import static org.wicketstuff.lazymodel.LazyModel.model;
public class LoginPage extends BasePage {
@SpringBean
private LoginService loginService;
public LoginPage() {
add(new LoginForm("loginForm"));
add(new AjaxEventBehavior("onload") {
@Override
protected void onEvent(AjaxRequestTarget target) {
target.appendJavaScript("$('body').attr('class','bg-black');");
target.appendJavaScript("$('html').attr('class','bg-black');");
}
});
}
}
|
[
"tom.hombergs@gmail.com"
] |
tom.hombergs@gmail.com
|
ac922385925541aa677a525ffebfb3bcf689d147
|
cfafe0dc3d67eb22e658ccb43e8d8744cade353c
|
/src/com/dsa/datastructures/graph/shortestpath/Dijkstra.java
|
830824f95d24e781835470a39aba0267e328af5c
|
[] |
no_license
|
drexdelta/Competitive-Programming
|
d07031a3291fcebd95ee536151dd96e31670c9af
|
927bb31cde62678fd2bbf2de30401bdcb3bcc9a9
|
refs/heads/master
| 2021-01-12T12:10:13.986881
| 2016-10-20T20:52:27
| 2016-10-20T20:52:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,273
|
java
|
package com.dsa.datastructures.graph.shortestpath;
import java.io.IOException;
import java.io.InputStream;
import java.util.*;
/**
* An implementation of Dijkstra's Algorithm.
* <br />
* <p>
* Hackerrank question <a href="https://www.hackerrank.com/challenges/dijkstrashortreach">link</a>
*/
public class Dijkstra
{
static final int INFINITY = Integer.MAX_VALUE;
static int t, nodes, edges;
static int[] distance;
static List<Edge>[] adj;
static InputReader in;
public static void main(String[] args)
{
/* System.out.print("Enter the number of nodes you want in the graph : ");
nodes = in.nextInt();
System.out.print("\nEnter the number of edges : ");
edges = in.nextInt();
createGraph();
findShortestPaths(0);
System.out.println("The shortest path to all nodes from node 0 is : ");
for (int i = 0; i < nodes; i++)
System.out.println(i + " : " + distance[i]);*/
in = new InputReader(System.in);
t = in.nextInt();
while (t-- > 0)
{
nodes = in.nextInt();
edges = in.nextInt();
createGraph();
int start = in.nextInt() - 1;
findShortestPaths(start);
for (int i = 0; i < nodes; i++)
{
if (i == start)
continue;
if (distance[i] != INFINITY)
System.out.print(distance[i] + " ");
else
System.out.print(-1 + " ");
}
System.out.println();
}
}
static void createGraph()
{
adj = new ArrayList[nodes];
for (int i = 0; i < nodes; i++)
adj[i] = new ArrayList<>();
for (int i = 0; i < edges; i++)
{
int from, to, weight;
from = in.nextInt() - 1;
to = in.nextInt() - 1;
weight = in.nextInt();
adj[from].add(new Edge(to, weight));
adj[to].add(new Edge(from, weight));
}
}
static void findShortestPaths(int start)
{
distance = new int[nodes];
for (int i = 0; i < nodes; i++)
distance[i] = INFINITY;
TreeSet<Node> set = new TreeSet<>();
distance[start] = 0;
set.add(new Node(start, 0, -1));
while (set.size() > 0)
{
Node curr = set.pollFirst();
for (Edge edge : adj[curr.node])
{
if (distance[curr.node] + edge.weight < distance[edge.to])
{
set.remove(new Node(edge.to, distance[edge.to], -1));
distance[edge.to] = distance[curr.node] + edge.weight;
set.add(new Node(edge.to, distance[edge.to], curr.node));
}
}
}
}
static class Edge
{
int to, weight;
public Edge(int to, int weight)
{
this.to = to;
this.weight = weight;
}
}
static class Node implements Comparable<Node>
{
int node, dist, parent;
public Node(int node, int dist, int parent)
{
this.node = node;
this.dist = dist;
this.parent = parent;
}
@Override public int compareTo(Node o)
{
if (dist == o.dist)
return Integer.compare(node, o.node);
return Integer.compare(dist, o.dist);
}
}
static class InputReader
{
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
public InputReader(InputStream stream)
{
this.stream = stream;
}
public int read()
{
if (numChars == -1)
throw new InputMismatchException();
if (curChar >= numChars)
{
curChar = 0;
try
{
numChars = stream.read(buf);
}
catch (IOException e)
{
throw new InputMismatchException();
}
if (numChars <= 0)
return -1;
}
return buf[curChar++];
}
public int nextInt()
{
int c = read();
while (isSpaceChar(c))
c = read();
int sgn = 1;
if (c == '-')
{
sgn = -1;
c = read();
}
int res = 0;
do
{
if (c < '0' || c > '9')
throw new InputMismatchException();
res *= 10;
res += c & 15;
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public int[] nextIntArray(int arraySize)
{
int array[] = new int[arraySize];
for (int i = 0; i < arraySize; i++)
array[i] = nextInt();
return array;
}
public long nextLong()
{
int c = read();
while (isSpaceChar(c))
c = read();
int sign = 1;
if (c == '-')
{
sign = -1;
c = read();
}
long result = 0;
do
{
if (c < '0' || c > '9')
throw new InputMismatchException();
result *= 10;
result += c & 15;
c = read();
} while (!isSpaceChar(c));
return result * sign;
}
public long[] nextLongArray(int arraySize)
{
long array[] = new long[arraySize];
for (int i = 0; i < arraySize; i++)
array[i] = nextLong();
return array;
}
public float nextFloat() // problematic
{
float result, div;
byte c;
result = 0;
div = 1;
c = (byte) read();
while (c <= ' ')
c = (byte) read();
boolean isNegative = (c == '-');
if (isNegative)
c = (byte) read();
do
{
result = result * 10 + c - '0';
} while ((c = (byte) read()) >= '0' && c <= '9');
if (c == '.')
while ((c = (byte) read()) >= '0' && c <= '9')
result += (c - '0') / (div *= 10);
if (isNegative)
return -result;
return result;
}
public double nextDouble() // not completely accurate
{
double ret = 0, div = 1;
byte c = (byte) read();
while (c <= ' ')
c = (byte) read();
boolean neg = (c == '-');
if (neg)
c = (byte) read();
do
{
ret = ret * 10 + c - '0';
} while ((c = (byte) read()) >= '0' && c <= '9');
if (c == '.')
while ((c = (byte) read()) >= '0' && c <= '9')
ret += (c - '0') / (div *= 10);
if (neg)
return -ret;
return ret;
}
public String next()
{
int c = read();
while (isSpaceChar(c))
c = read();
StringBuilder res = new StringBuilder();
do
{
res.appendCodePoint(c);
c = read();
} while (!isSpaceChar(c));
return res.toString();
}
public boolean isSpaceChar(int c)
{
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public String nextLine()
{
int c = read();
StringBuilder result = new StringBuilder();
do
{
result.appendCodePoint(c);
c = read();
} while (!isNewLine(c));
return result.toString();
}
public boolean isNewLine(int c)
{
return c == '\n';
}
public void close()
{
try
{
stream.close();
}
catch (IOException e)
{
e.printStackTrace();
}
}
}
}
|
[
"rahulkhairwar@gmail.com"
] |
rahulkhairwar@gmail.com
|
890d4a364f833f9d670b6d8098707410b97ae2e0
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithoutLambdasApi21/applicationModule/src/main/java/applicationModulepackageJava16/Foo619.java
|
f86f1c201f1e3cb5013546d94da253d2afa27316
|
[] |
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
| 348
|
java
|
package applicationModulepackageJava16;
public class Foo619 {
public void foo0() {
new applicationModulepackageJava16.Foo618().foo5();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
d7715aef276abd9f2162d6bba9b1df96375318fc
|
5636e23ca013f1c6d1b88e1715ec038035013f12
|
/org.osgi.impl.service.jndi/src/org/osgi/impl/service/jndi/OSGiURLContextFactoryServiceFactory.java
|
bf2747ae6055b20f61e9cbaa4e267b20b954f578
|
[
"EPL-1.0",
"Apache-2.0",
"EPL-2.0",
"CPL-1.0"
] |
permissive
|
osgi/osgi
|
b897163557738fb40d03c368a3259b5e670a7d5a
|
0ec08abcda0a75a8efc99b5f4a178497f73f143c
|
refs/heads/main
| 2023-08-31T11:29:00.133907
| 2023-08-02T15:55:38
| 2023-08-02T15:55:38
| 255,701,604
| 76
| 36
|
Apache-2.0
| 2023-09-06T23:45:13
| 2020-04-14T19:09:53
|
Java
|
UTF-8
|
Java
| false
| false
| 1,440
|
java
|
/*******************************************************************************
* Copyright (c) Contributors to the Eclipse Foundation
*
* 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.
*
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
package org.osgi.impl.service.jndi;
import javax.naming.spi.ObjectFactory;
import org.osgi.framework.Bundle;
import org.osgi.framework.ServiceFactory;
import org.osgi.framework.ServiceRegistration;
class OSGiURLContextFactoryServiceFactory
implements ServiceFactory<ObjectFactory> {
@Override
public ObjectFactory getService(Bundle bundle,
ServiceRegistration<ObjectFactory> registration) {
return new OSGiURLContextFactory(bundle.getBundleContext());
}
@Override
public void ungetService(Bundle bundle,
ServiceRegistration<ObjectFactory> registration,
ObjectFactory service) {
// empty
}
}
|
[
"hargrave@us.ibm.com"
] |
hargrave@us.ibm.com
|
007063780035b57efe4f7b653ede3a63c76a78fd
|
ed5159d056e98d6715357d0d14a9b3f20b764f89
|
/test/irvine/oeis/a148/A148359Test.java
|
e694b27c554f855b6b447b9d0374de060d42addd
|
[] |
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.a148;
import irvine.oeis.AbstractSequenceTest;
/**
* Tests the corresponding class.
* @author Sean A. Irvine
*/
public class A148359Test extends AbstractSequenceTest {
@Override
protected int maxTerms() {
return 10;
}
}
|
[
"sairvin@gmail.com"
] |
sairvin@gmail.com
|
4958ba6c70188417a4a0055dd17c81d52a62073c
|
99e9061c52e1550c6b01eb318f2f52228196d041
|
/src/main/java/org/example/designPattern/T_05_adapter/interfaceAdapter/objectAdapter/Client.java
|
e495c1cde7165f92e8f98f903a23fe9f84081b48
|
[] |
no_license
|
Derek-yzh/dataStructure
|
3a98e83648a29363ae8ac48383932fd2981746d2
|
af9c4b8c8eb8c8fab2bb0602301e31f5d574c5e9
|
refs/heads/master
| 2023-04-03T11:18:55.633461
| 2021-01-20T09:17:04
| 2021-01-20T09:17:04
| 291,861,254
| 1
| 0
| null | 2021-01-20T09:12:20
| 2020-09-01T01:08:11
|
Java
|
UTF-8
|
Java
| false
| false
| 251
|
java
|
package org.example.designPattern.T_05_adapter.interfaceAdapter.objectAdapter;
public class Client {
public static void main(String[] args) {
Phone phone = new Phone();
phone.charge(new VoltageAdapter(new Voltage220V()));
}
}
|
[
"288153@supinfo.com"
] |
288153@supinfo.com
|
5c7de7d17e08208e24f49e64f6c2d9a1691e9aff
|
6253283b67c01a0d7395e38aeeea65e06f62504b
|
/decompile/app/Gallery2/src/main/java/com/amap/api/services/core/bt.java
|
b23874070d5eef476423d8fc3e8f842f6a23c458
|
[] |
no_license
|
sufadi/decompile-hw
|
2e0457a0a7ade103908a6a41757923a791248215
|
4c3efd95f3e997b44dd4ceec506de6164192eca3
|
refs/heads/master
| 2023-03-15T15:56:03.968086
| 2017-11-08T03:29:10
| 2017-11-08T03:29:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 663
|
java
|
package com.amap.api.services.core;
import java.util.Map;
import org.apache.http.HttpEntity;
import org.apache.http.HttpHost;
/* compiled from: Request */
public abstract class bt {
int e = 20000;
int f = 20000;
HttpHost g = null;
public abstract String b();
public abstract Map<String, String> c_();
public abstract Map<String, String> d_();
public abstract HttpEntity e();
public final void c(int i) {
this.e = i;
}
public final void d(int i) {
this.f = i;
}
public byte[] e_() {
return null;
}
public final void a(HttpHost httpHost) {
this.g = httpHost;
}
}
|
[
"liming@droi.com"
] |
liming@droi.com
|
5c5c1aea409c25579830845b63d4238510c84b72
|
2cd64269df4137e0a39e8e67063ff3bd44d72f1b
|
/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/CustomerTitleSetMessagePayload.java
|
4ca623c685bfcd8f127b6ab283c5ee3d8113c25c
|
[
"Apache-2.0",
"GPL-2.0-only",
"EPL-2.0",
"CDDL-1.0",
"MIT",
"BSD-3-Clause",
"Classpath-exception-2.0"
] |
permissive
|
commercetools/commercetools-sdk-java-v2
|
a8703f5f8c5dde6cc3ebe4619c892cccfcf71cb8
|
76d5065566ff37d365c28829b8137cbc48f14df1
|
refs/heads/main
| 2023-08-14T16:16:38.709763
| 2023-08-14T11:58:19
| 2023-08-14T11:58:19
| 206,558,937
| 29
| 13
|
Apache-2.0
| 2023-09-14T12:30:00
| 2019-09-05T12:30:27
|
Java
|
UTF-8
|
Java
| false
| false
| 4,025
|
java
|
package com.commercetools.api.models.message;
import java.time.*;
import java.util.*;
import java.util.function.Function;
import javax.annotation.Nullable;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import io.vrap.rmf.base.client.utils.Generated;
/**
* <p>Generated after a successful Set Title update action.</p>
*
* <hr>
* Example to create an instance using the builder pattern
* <div class=code-example>
* <pre><code class='java'>
* CustomerTitleSetMessagePayload customerTitleSetMessagePayload = CustomerTitleSetMessagePayload.builder()
* .build()
* </code></pre>
* </div>
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
@JsonDeserialize(as = CustomerTitleSetMessagePayloadImpl.class)
public interface CustomerTitleSetMessagePayload extends MessagePayload {
/**
* discriminator value for CustomerTitleSetMessagePayload
*/
String CUSTOMER_TITLE_SET = "CustomerTitleSet";
/**
* <p>The <code>title</code> that was set during the Set Title update action.</p>
* @return title
*/
@JsonProperty("title")
public String getTitle();
/**
* <p>The <code>title</code> that was set during the Set Title update action.</p>
* @param title value to be set
*/
public void setTitle(final String title);
/**
* factory method
* @return instance of CustomerTitleSetMessagePayload
*/
public static CustomerTitleSetMessagePayload of() {
return new CustomerTitleSetMessagePayloadImpl();
}
/**
* factory method to create a shallow copy CustomerTitleSetMessagePayload
* @param template instance to be copied
* @return copy instance
*/
public static CustomerTitleSetMessagePayload of(final CustomerTitleSetMessagePayload template) {
CustomerTitleSetMessagePayloadImpl instance = new CustomerTitleSetMessagePayloadImpl();
instance.setTitle(template.getTitle());
return instance;
}
/**
* factory method to create a deep copy of CustomerTitleSetMessagePayload
* @param template instance to be copied
* @return copy instance
*/
@Nullable
public static CustomerTitleSetMessagePayload deepCopy(@Nullable final CustomerTitleSetMessagePayload template) {
if (template == null) {
return null;
}
CustomerTitleSetMessagePayloadImpl instance = new CustomerTitleSetMessagePayloadImpl();
instance.setTitle(template.getTitle());
return instance;
}
/**
* builder factory method for CustomerTitleSetMessagePayload
* @return builder
*/
public static CustomerTitleSetMessagePayloadBuilder builder() {
return CustomerTitleSetMessagePayloadBuilder.of();
}
/**
* create builder for CustomerTitleSetMessagePayload instance
* @param template instance with prefilled values for the builder
* @return builder
*/
public static CustomerTitleSetMessagePayloadBuilder builder(final CustomerTitleSetMessagePayload template) {
return CustomerTitleSetMessagePayloadBuilder.of(template);
}
/**
* accessor map function
* @param <T> mapped type
* @param helper function to map the object
* @return mapped value
*/
default <T> T withCustomerTitleSetMessagePayload(Function<CustomerTitleSetMessagePayload, T> helper) {
return helper.apply(this);
}
/**
* gives a TypeReference for usage with Jackson DataBind
* @return TypeReference
*/
public static com.fasterxml.jackson.core.type.TypeReference<CustomerTitleSetMessagePayload> typeReference() {
return new com.fasterxml.jackson.core.type.TypeReference<CustomerTitleSetMessagePayload>() {
@Override
public String toString() {
return "TypeReference<CustomerTitleSetMessagePayload>";
}
};
}
}
|
[
"automation@commercetools.com"
] |
automation@commercetools.com
|
561598eb27028a16c80f7561409836d13a1c8fa3
|
4a8bf6cc24934d986084fac73ada9d632ccedc96
|
/src/main/java/com/cdiscount/www/impl/ProductListMessageDocumentImpl.java
|
7c5e7ea23b094ca497dffdeeb7d7eac960c47f14
|
[] |
no_license
|
myccnice/cdiscount-java-sdk
|
c96a13248e22d883db857dff922a59f0c6811eac
|
7ecba352924077cf9f923750bb6969be6d356dd4
|
refs/heads/master
| 2020-03-25T22:48:38.285488
| 2018-08-22T12:44:29
| 2018-08-22T12:44:29
| 144,243,504
| 0
| 0
| null | 2018-08-10T06:03:10
| 2018-08-10T06:03:09
| null |
UTF-8
|
Java
| false
| false
| 3,251
|
java
|
/*
* An XML document type.
* Localname: ProductListMessage
* Namespace: http://www.cdiscount.com
* Java type: com.cdiscount.www.ProductListMessageDocument
*
* Automatically generated - do not modify.
*/
package com.cdiscount.www.impl;
/**
* A document containing one ProductListMessage(@http://www.cdiscount.com) element.
*
* This is a complex type.
*/
public class ProductListMessageDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.cdiscount.www.ProductListMessageDocument
{
private static final long serialVersionUID = 1L;
public ProductListMessageDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName PRODUCTLISTMESSAGE$0 =
new javax.xml.namespace.QName("http://www.cdiscount.com", "ProductListMessage");
/**
* Gets the "ProductListMessage" element
*/
public com.cdiscount.www.ProductListMessage getProductListMessage()
{
synchronized (monitor())
{
check_orphaned();
com.cdiscount.www.ProductListMessage target = null;
target = (com.cdiscount.www.ProductListMessage)get_store().find_element_user(PRODUCTLISTMESSAGE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Tests for nil "ProductListMessage" element
*/
public boolean isNilProductListMessage()
{
synchronized (monitor())
{
check_orphaned();
com.cdiscount.www.ProductListMessage target = null;
target = (com.cdiscount.www.ProductListMessage)get_store().find_element_user(PRODUCTLISTMESSAGE$0, 0);
if (target == null) return false;
return target.isNil();
}
}
/**
* Sets the "ProductListMessage" element
*/
public void setProductListMessage(com.cdiscount.www.ProductListMessage productListMessage)
{
generatedSetterHelperImpl(productListMessage, PRODUCTLISTMESSAGE$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "ProductListMessage" element
*/
public com.cdiscount.www.ProductListMessage addNewProductListMessage()
{
synchronized (monitor())
{
check_orphaned();
com.cdiscount.www.ProductListMessage target = null;
target = (com.cdiscount.www.ProductListMessage)get_store().add_element_user(PRODUCTLISTMESSAGE$0);
return target;
}
}
/**
* Nils the "ProductListMessage" element
*/
public void setNilProductListMessage()
{
synchronized (monitor())
{
check_orphaned();
com.cdiscount.www.ProductListMessage target = null;
target = (com.cdiscount.www.ProductListMessage)get_store().find_element_user(PRODUCTLISTMESSAGE$0, 0);
if (target == null)
{
target = (com.cdiscount.www.ProductListMessage)get_store().add_element_user(PRODUCTLISTMESSAGE$0);
}
target.setNil();
}
}
}
|
[
"develop.api@qq.com"
] |
develop.api@qq.com
|
da5f48cdf8bd26f697338f69f1e1d6801a809b07
|
60384d7047a01fb2794d4c9bf14072f2e57cad84
|
/app/src/main/java/com/btetop/widget/viewpagercards/CardPagerAdapter.java
|
77a799bfb910fc987c65a0ee7d4f1134f9c813a5
|
[
"MIT"
] |
permissive
|
sophiemarceau/bte_Android
|
d88703209aa2a2d9f473938d9c6aadcad590a0f6
|
e950ca0bc5a7f6b6386af1e7614a5bf8d70cf66e
|
refs/heads/master
| 2020-08-27T11:03:35.250973
| 2019-10-25T02:05:14
| 2019-10-25T02:05:14
| 217,342,335
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,237
|
java
|
package com.btetop.widget.viewpagercards;
import android.support.v4.view.PagerAdapter;
import android.support.v7.widget.CardView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.btetop.R;
import java.util.ArrayList;
import java.util.List;
public class CardPagerAdapter extends PagerAdapter implements CardAdapter {
private List<CardView> mViews;
private List<CardItem> mData;
private float mBaseElevation;
public CardPagerAdapter() {
mData = new ArrayList<>();
mViews = new ArrayList<>();
}
public void addCardItem(CardItem item) {
mViews.add(null);
mData.add(item);
}
public float getBaseElevation() {
return mBaseElevation;
}
@Override
public CardView getCardViewAt(int position) {
return mViews.get(position);
}
@Override
public int getCount() {
return mData.size();
}
@Override
public boolean isViewFromObject(View view, Object object) {
return view == object;
}
@Override
public Object instantiateItem(ViewGroup container, int position) {
View view = LayoutInflater.from(container.getContext())
.inflate(R.layout.item_card_pager, container, false);
container.addView(view);
bind(mData.get(position), view);
CardView cardView = (CardView) view.findViewById(R.id.cardView);
if (mBaseElevation == 0) {
mBaseElevation = cardView.getCardElevation();
}
cardView.setMaxCardElevation(mBaseElevation * MAX_ELEVATION_FACTOR);
mViews.set(position, cardView);
return view;
}
@Override
public void destroyItem(ViewGroup container, int position, Object object) {
container.removeView((View) object);
mViews.set(position, null);
}
private void bind(CardItem item, View view) {
TextView titleTextView = (TextView) view.findViewById(R.id.titleTextView);
TextView contentTextView = (TextView) view.findViewById(R.id.contentTextView);
titleTextView.setText(item.getTitle() + "");
contentTextView.setText(item.getText() + "");
}
}
|
[
"sophiemarceauqu@gmail.com"
] |
sophiemarceauqu@gmail.com
|
f56fe5e171e76e08a937c169a341f5958e30aec5
|
ea7f3017e537d7f8c06d8308e13a53f1d67a488d
|
/nanoverse/compiler/pipeline/instantiate/loader/geometry/shape/LineLoader.java
|
54ec0e0836dcbfbdfa5110ab4aa9cfecb496ecd8
|
[] |
no_license
|
avaneeshnarla/Nanoverse-Source
|
fc87600af07b586e382fff4703c20378abbd7171
|
2f8585256bb2e09396a2baf3ec933cb7338a933f
|
refs/heads/master
| 2020-05-25T23:25:42.321611
| 2017-02-16T18:16:31
| 2017-02-16T18:16:31
| 61,486,158
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,090
|
java
|
/*
* Nanoverse: a declarative agent-based modeling language for natural and
* social science.
*
* Copyright (c) 2015 David Bruce Borenstein and Nanoverse, LLC.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*/
package nanoverse.compiler.pipeline.instantiate.loader.geometry.shape;
import nanoverse.compiler.pipeline.instantiate.factory.geometry.shape.LineFactory;
import nanoverse.compiler.pipeline.translate.nodes.MapObjectNode;
import nanoverse.runtime.control.GeneralParameters;
import nanoverse.runtime.geometry.lattice.Lattice;
import nanoverse.runtime.geometry.shape.*;
/**
* Created by dbborens on 8/4/2015.
*/
public class LineLoader extends ShapeLoader<Line> {
private final LineFactory factory;
private final LineInterpolator interpolator;
public LineLoader() {
factory = new LineFactory();
interpolator = new LineInterpolator();
}
public LineLoader(LineFactory factory,
LineInterpolator interpolator) {
this.factory = factory;
this.interpolator = interpolator;
}
public Shape instantiate(Lattice lattice, GeneralParameters p) {
return instantiate(null, lattice, p);
}
@Override
public Shape instantiate(MapObjectNode node, Lattice lattice, GeneralParameters p) {
factory.setLattice(lattice);
int length = interpolator.length(node, p.getRandom());
factory.setLength(length);
return factory.build();
}
}
|
[
"avaneesh.narla@gmail.com"
] |
avaneesh.narla@gmail.com
|
fe47c27042659f34217dd44905762ab6e666a721
|
43ae0d65a9acbfbfe8c36e158e1a590f6db02ad5
|
/samples/WiEngineDemos_native/src/com/wiyun/engine/tests/ease/EaseElasticInOutTest.java
|
8b5c61dea3b1d3b1a83f5d0d8ad4a6bc8439f228
|
[
"MIT"
] |
permissive
|
identy/WiEngine
|
bfd0f5b95f0be72274e1dfb341d732d4a571993c
|
2fb4276f558a5b1660d940b982c591cb7c73aec8
|
refs/heads/master
| 2020-12-25T01:27:01.452216
| 2013-04-22T03:22:24
| 2013-04-22T03:22:24
| 9,659,254
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,900
|
java
|
/*
* Copyright (c) 2010 WiYun Inc.
* 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.
*/
/*
* Copyright (c) 2010 WiYun Inc.
* Author: luma(stubma@gmail.com)
*
* For all entities this program is free software; you can redistribute
* it and/or modify it under the terms of the 'WiEngine' license with
* the additional provision that 'WiEngine' must be credited in a manner
* that can be be observed by end users, for example, in the credits or during
* start up. (please find WiEngine logo in sdk's logo folder)
*
* 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.wiyun.engine.tests.ease;
import com.wiyun.engine.WiEngineTestActivity;
public class EaseElasticInOutTest extends WiEngineTestActivity {
private native void nativeStart();
@Override
protected void runDemo() {
nativeStart();
}
}
|
[
"stubma@gmail.com"
] |
stubma@gmail.com
|
10e65b11907514d181290eee410c5ba54ec65ef9
|
cf1e83c682d1e2af797bf3aa55a597087a2475ce
|
/src/com/zc/pivas/printlabel/controller/PrintReciverLabelController.java
|
cc3f30fab09e9d881789b12f480de5e5d4616e66
|
[] |
no_license
|
javasrd/pivasBase
|
b5c8b870df94e2eacf41bffe2aa6507a40f455e9
|
2fc4f2281744aa276cd5b6dbc4d1d11fc76867d5
|
refs/heads/master
| 2020-03-17T16:26:05.193578
| 2018-05-24T07:51:47
| 2018-05-24T07:51:47
| 133,748,520
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,674
|
java
|
package com.zc.pivas.printlabel.controller;
import com.zc.base.common.constant.SdConstant;
import com.zc.base.common.controller.SdDownloadController;
import com.zc.base.sc.modules.batch.entity.Batch;
import com.zc.base.sc.modules.batch.service.BatchService;
import com.zc.base.sys.modules.user.entity.User;
import com.zc.pivas.inpatientarea.bean.InpatientAreaBean;
import com.zc.pivas.inpatientarea.dao.InpatientAreaDAO;
import com.zc.pivas.medicamentscategory.repository.MedicCategoryDao;
import com.zc.pivas.printlabel.entity.BottleLabel;
import com.zc.pivas.printlabel.service.PrintLabelService;
import com.zc.pivas.printlabel.service.impl.PrintLabelServiceImpl;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.List;
/**
* 瓶签下载控制类
*
* @author kunkka
* @version 1.0
*/
@Controller()
@RequestMapping(value = "/print")
public class PrintReciverLabelController extends SdDownloadController {
/**
* 初始换病区
*/
private static List<InpatientAreaBean> inpatientAreaList = new ArrayList<InpatientAreaBean>();
@Resource
private PrintLabelService printLabelService;
@Resource
private BatchService batchService;
@Resource
private InpatientAreaDAO inpatientAreaDAO;
@Resource
private MedicCategoryDao medicCategoryDao;
@RequestMapping("/initReceived")
public String init(Model model, HttpServletRequest request) {
List<Batch> batchList = batchService.queryByPaging(null, null);
model.addAttribute("batchList", batchList);
InpatientAreaBean bean = new InpatientAreaBean();
bean.setEnabled("1");
inpatientAreaList = inpatientAreaDAO.getInpatientAreaList(bean, null);
String inpatientString = request.getParameter("inpatientString");
model.addAttribute("inpatientString", inpatientString);
return "pivas/bottleLabel/printReciverLabel";
}
/**
* 根据条件查询接收单信息
*
* @return
*/
@RequestMapping("/qryReciverLabel")
@ResponseBody
public String queryReciverLabel(BottleLabel bottleLabel) {
String returnStr = null;
String warCodes = bottleLabel.getWardCode();
if (!StringUtils.isNotEmpty(warCodes)) {
if (inpatientAreaList == null || inpatientAreaList.size() == 0) {
InpatientAreaBean bean = new InpatientAreaBean();
bean.setEnabled("1");
inpatientAreaList = inpatientAreaDAO.getInpatientAreaList(bean, null);
}
for (InpatientAreaBean bean : inpatientAreaList) {
warCodes = warCodes + bean.getDeptCode() + ",";
}
warCodes = warCodes.substring(0, warCodes.lastIndexOf(","));
bottleLabel.setWardCode(warCodes);
}
try {
String specialBtach = bottleLabel.getSpecialBtach();
boolean isDetail = bottleLabel.getIsDetail();
if (StringUtils.isNotBlank(specialBtach) && !isDetail) {
returnStr = printLabelService.queryYDReciverListFour(bottleLabel, getCurrentUser(), bottleLabel.getIsPrint());
} else {
returnStr = printLabelService.queryYDReciverList(bottleLabel, getCurrentUser(), bottleLabel.getIsPrint());
}
} catch (Exception e) {
return getMessage("report.archEnergyConsCtatistics.noData");
}
if (StringUtils.isEmpty(returnStr)) {
if (bottleLabel.getIsPrint()) {
return buildFailJsonMsg("report.archEnergyConsCtatistics.noData");
} else {
return getMessage("report.archEnergyConsCtatistics.noData");
}
}
if (bottleLabel.getIsPrint()) {
return buildSuccessJsonMsg("ydReciver.pdf");
} else {
return returnStr.toString();
}
}
/**
* 下载的PDF保存路径,因为客户想直接用浏览器来打开PDF文件,所以将文件保存在根目录中
*
* @param currUser
* @return
*/
private String downloadPDFSavePath(User currUser) {
return SdConstant.WEB_ROOT_PATH + File.separator + "printLabelDownLoad" + File.separator
+ currUser.getAccount() + File.separator;
}
/**
* 生成PDF
*
* @param bottleLabel
* @throws Exception
*/
@RequestMapping("/printLabel")
@ResponseBody
public String printLabel(BottleLabel bottleLabel)
throws Exception {
return buildSuccessJsonMsg("");
}
/**
* 下载
*
* @param fileName
* @param response
* @throws Exception
*/
@RequestMapping("/downloadPdf")
@ResponseBody
public void downloadPdf(String fileName, HttpServletResponse response)
throws Exception {
fileName = URLDecoder.decode(fileName, "utf-8");
String pdfDir = PrintLabelServiceImpl.getPdfSaveDirPath(getCurrentUser().getAccount());
super.doDownloadFile(new File(pdfDir + fileName), fileName, FileType.PDF_TYPE, false);
}
}
|
[
"870306552@qq.com"
] |
870306552@qq.com
|
813d77fd6e62dd05c4683ba2951323269e055f82
|
0e06e096a9f95ab094b8078ea2cd310759af008b
|
/sources/com/moat/analytics/mobile/tjy/base/asserts/C2746a.java
|
e22f3b9ade1dd0d01978eedd3dba5a70225f8621
|
[] |
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
| 224
|
java
|
package com.moat.analytics.mobile.tjy.base.asserts;
/* renamed from: com.moat.analytics.mobile.tjy.base.asserts.a */
public final class C2746a {
/* renamed from: a */
public static void m6881a(Object obj) {
}
}
|
[
"querky1231@gmail.com"
] |
querky1231@gmail.com
|
d42472139aa4cba1bf742327387fccba4d5d5338
|
8edc4181853e2a01fed3d961d8891e8843991287
|
/ble-characteristic/characteristic-cs/src/androidTest/java/org/im97mori/rbt/ble/characteristic/cs/AccelerationLoggerStatusTest.java
|
afbc5172c3de1e426930cdf510e92e7e362fd933
|
[
"MIT"
] |
permissive
|
im97mori-github/AndroidRbtUtil
|
a6f89f78d4c1c7686eaec52ab0ffe9d12008de77
|
ea811ca4860fba4fe384a2aa644138dfe7f84201
|
refs/heads/master
| 2020-06-19T02:29:46.369307
| 2019-11-13T07:51:24
| 2019-11-13T07:51:24
| 196,531,968
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,248
|
java
|
package org.im97mori.rbt.ble.characteristic.cs;
import android.bluetooth.BluetoothGattCharacteristic;
import android.os.Parcel;
import org.junit.Test;
import static org.im97mori.ble.BLEConstants.BASE_UUID;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
public class AccelerationLoggerStatusTest {
@Test
public void test001() {
//@formatter:off
byte[] data = new byte[3];
data[ 0] = (byte) ((AccelerationLoggerStatus.LOGGER_STATUS_WAITING) & 0xff);
data[ 1] = (byte) ((0x01) & 0xff);
data[ 2] = (byte) ((0x00) & 0xff);
//@formatter:on
BluetoothGattCharacteristic bluetoothGattCharacteristic = new BluetoothGattCharacteristic(BASE_UUID, 0, 0);
bluetoothGattCharacteristic.setValue(data);
AccelerationLoggerStatus accelerationLoggerStatus = new AccelerationLoggerStatus(bluetoothGattCharacteristic);
assertEquals(AccelerationLoggerStatus.LOGGER_STATUS_WAITING, accelerationLoggerStatus.getLoggerStatus());
assertEquals(1, accelerationLoggerStatus.getRunningPage());
}
@Test
public void test002() {
//@formatter:off
byte[] data = new byte[3];
data[ 0] = (byte) ((AccelerationLoggerStatus.LOGGER_STATUS_RUNNING) & 0xff);
data[ 1] = (byte) ((0x00) & 0xff);
data[ 2] = (byte) ((0x28) & 0xff);
//@formatter:on
BluetoothGattCharacteristic bluetoothGattCharacteristic = new BluetoothGattCharacteristic(BASE_UUID, 0, 0);
bluetoothGattCharacteristic.setValue(data);
AccelerationLoggerStatus accelerationLoggerStatus = new AccelerationLoggerStatus(bluetoothGattCharacteristic);
assertEquals(AccelerationLoggerStatus.LOGGER_STATUS_RUNNING, accelerationLoggerStatus.getLoggerStatus());
assertEquals(10240, accelerationLoggerStatus.getRunningPage());
}
@Test
public void test003() {
//@formatter:off
byte[] data = new byte[3];
data[ 0] = (byte) ((AccelerationLoggerStatus.LOGGER_STATUS_RUNNING) & 0xff);
data[ 1] = (byte) ((0x00) & 0xff);
data[ 2] = (byte) ((0x28) & 0xff);
//@formatter:on
BluetoothGattCharacteristic bluetoothGattCharacteristic = new BluetoothGattCharacteristic(BASE_UUID, 0, 0);
bluetoothGattCharacteristic.setValue(data);
AccelerationLoggerStatus result1 = new AccelerationLoggerStatus(bluetoothGattCharacteristic);
Parcel parcel = Parcel.obtain();
result1.writeToParcel(parcel, 0);
parcel.setDataPosition(0);
AccelerationLoggerStatus result2 = AccelerationLoggerStatus.CREATOR.createFromParcel(parcel);
assertEquals(result1.getLoggerStatus(), result2.getLoggerStatus());
assertEquals(result1.getRunningPage(), result2.getRunningPage());
}
@Test
public void test004() {
//@formatter:off
byte[] data = new byte[3];
data[ 0] = (byte) ((AccelerationLoggerStatus.LOGGER_STATUS_RUNNING) & 0xff);
data[ 1] = (byte) ((0x00) & 0xff);
data[ 2] = (byte) ((0x28) & 0xff);
//@formatter:on
BluetoothGattCharacteristic bluetoothGattCharacteristic = new BluetoothGattCharacteristic(BASE_UUID, 0, 0);
bluetoothGattCharacteristic.setValue(data);
AccelerationLoggerStatus result1 = new AccelerationLoggerStatus(bluetoothGattCharacteristic);
byte[] resultData = result1.getBytes();
assertArrayEquals(data, resultData);
}
@Test
public void test005() {
//@formatter:off
byte[] data = new byte[3];
data[ 0] = (byte) ((AccelerationLoggerStatus.LOGGER_STATUS_RUNNING) & 0xff);
data[ 1] = (byte) ((0x00) & 0xff);
data[ 2] = (byte) ((0x28) & 0xff);
//@formatter:on
BluetoothGattCharacteristic bluetoothGattCharacteristic = new BluetoothGattCharacteristic(BASE_UUID, 0, 0);
bluetoothGattCharacteristic.setValue(data);
AccelerationLoggerStatus result1 = new AccelerationLoggerStatus(bluetoothGattCharacteristic);
AccelerationLoggerStatus result2 = AccelerationLoggerStatus.CREATOR.createFromByteArray(data);
assertArrayEquals(result1.getBytes(), result2.getBytes());
}
}
|
[
"github@im97mori.org"
] |
github@im97mori.org
|
3597985a797e331c5afacb33c2a351a5af217227
|
38f63da908e287b64637b8d43d3823cd91bda025
|
/easy-commons/src/test/java/cn/com/easy/utils/HttpClientUtilsTest.java
|
ec2addeff33099b7d25875cd6e065b465e7eb4aa
|
[
"Apache-2.0"
] |
permissive
|
double-qiu/studyDemo
|
d67fcc2bbdb4ddba0dcfd424ed2f1ef491aba9e2
|
95feeb3c878f03631f3b6df489314b76825544e0
|
refs/heads/master
| 2020-06-29T07:06:00.254763
| 2016-12-20T02:03:23
| 2016-12-20T02:03:23
| 74,442,275
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 902
|
java
|
package cn.com.easy.utils;
public class HttpClientUtilsTest {
public static void main(String[] args) throws Exception {
UserDto userDto = new UserDto();
userDto.setAge(10);
userDto.setFav("上网,读书");
userDto.setName("billy");
// userDto.setUserDto(new UserDto());
System.out.println(FastJSONUtils.toJsonString(HttpClientUtils.reflectObjectFieldsToMap(userDto)));
}
// public static void main(String[] args) throws Exception {
// System.out.println((char)65);
// System.out.println(isWrapClass(Long.class));
// System.out.println(isWrapClass(Integer.class));
// System.out.println(isWrapClass(String.class));
// System.out.println(isWrapClass(HttpClientUtilsTest.class));
// }
//
// public static boolean isWrapClass(Class clz) {
// try {
// return ((Class) clz.getField("TYPE").get(null)).isPrimitive();
// } catch (Exception e) {
// return false;
// }
// }
}
|
[
"934590736@qq.com"
] |
934590736@qq.com
|
bf327f2ba7afd1ff1937010353a68243059c9b7d
|
7f20b1bddf9f48108a43a9922433b141fac66a6d
|
/core3/api/tags/api-parent-3.0.0-beta2/equations-api/src/main/java/org/cytoscape/equations/IdentDescriptor.java
|
feeb343b8d23112b34fea5d7f4d3c8b98abd8157
|
[] |
no_license
|
ahdahddl/cytoscape
|
bf783d44cddda313a5b3563ea746b07f38173022
|
a3df8f63dba4ec49942027c91ecac6efa920c195
|
refs/heads/master
| 2020-06-26T16:48:19.791722
| 2013-08-28T04:08:31
| 2013-08-28T04:08:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,164
|
java
|
/*
File: IdentDescriptor.java
Copyright (c) 2010, The Cytoscape Consortium (www.cytoscape.org)
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation; either version 2.1 of the License, or
any later version.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
documentation provided hereunder is on an "as is" basis, and the
Institute for Systems Biology and the Whitehead Institute
have no obligations to provide maintenance, support,
updates, enhancements or modifications. In no event shall the
Institute for Systems Biology and the Whitehead Institute
be liable to any party for direct, indirect, special,
incidental or consequential damages, including lost profits, arising
out of the use of this software and its documentation, even if the
Institute for Systems Biology and the Whitehead Institute
have been advised of the possibility of such damage. See
the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
package org.cytoscape.equations;
import java.util.List;
/** Used to hold a current value for an equation's variable reference.
* @CyAPI.Final.Class
*/
public final class IdentDescriptor {
private final Class type;
private final Object value;
/** Initializes a new <code>IdentDescriptor</code> and provides minimal type translation
* (from <code>Integer</code> to <code>Long</code>).
* @param o an object that represents a value for a variable reference
* @throws NullPointerException if "o" is null
* @throws IllegalArgumentException if "o" is not a <code>Long</code>, <code>Integer</code>,
* <code>Double</code>, <code>Boolean</code> nor a <code>String</code>
*/
public IdentDescriptor(final Object o) {
if (o == null)
throw new NullPointerException("argument must not be null.");
if (o.getClass() == Integer.class) { // Need to map Integer to Long!
final Integer i = (Integer)o;
this.type = Long.class;
this.value = new Long(i);
return;
}
else if (o instanceof List)
this.type = List.class;
else if (o.getClass() != Long.class && o.getClass() != Double.class && o.getClass() != Boolean.class
&& o.getClass() != String.class)
throw new IllegalArgumentException("argument is of an unsupported type (" + o.getClass() + ").");
else
this.type = o.getClass();
this.value = o;
}
/** Returns the, possibly adjusted, type of the descriptor as one of the types internally supported by equations.
* @return the (translated) type of the descriptor
*/
public Class getType() { return type; }
/** Returns the value of the descriptor.
* @return the (translated) value of the descriptor
*/
public Object getValue() { return value; }
}
|
[
"kono@0ecc0d97-ab19-0410-9704-bfe1a75892f5"
] |
kono@0ecc0d97-ab19-0410-9704-bfe1a75892f5
|
cff5add41909cb0199d8c9ffcc7ae6c7d0485255
|
194b3c0076898c161d476c5c0a83752669d055e3
|
/HingeTo/src/com/hingeto/api/ProductMessage.java
|
0e025a55f87b2e791b5d0fb7ed64e896da800bf3
|
[] |
no_license
|
jong765/Jong-pacsun-java
|
e1a55710520e5c10b993e8d136d93727130c8700
|
99cb32303848c172800ea99b3ab089aaf4849f4b
|
refs/heads/master
| 2020-07-13T04:13:53.379199
| 2019-09-03T23:00:23
| 2019-09-03T23:00:23
| 204,986,733
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,577
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.08.30 at 06:38:40 PM PDT
//
package com.hingeto.api;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ProductMessage complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ProductMessage">
* <complexContent>
* <extension base="{https://www.hingeto.com/xml/V0.1}Message">
* <attribute name="SKU" use="required" type="{https://www.hingeto.com/xml/V0.1}ProductSKU" />
* <attribute name="StorefrontProductID" type="{https://www.hingeto.com/xml/V0.1}StorefrontProductIDType" />
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ProductMessage")
@XmlSeeAlso({
ContentMessage.class,
ImageURLMessage.class,
CategoryAssignmentMessage.class
})
public class ProductMessage
extends Message
{
@XmlAttribute(name = "SKU", required = true)
protected String sku;
@XmlAttribute(name = "StorefrontProductID")
protected String storefrontProductID;
/**
* Gets the value of the sku property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSKU() {
return sku;
}
/**
* Sets the value of the sku property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSKU(String value) {
this.sku = value;
}
/**
* Gets the value of the storefrontProductID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStorefrontProductID() {
return storefrontProductID;
}
/**
* Sets the value of the storefrontProductID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStorefrontProductID(String value) {
this.storefrontProductID = value;
}
}
|
[
"jkim@pacsun.com"
] |
jkim@pacsun.com
|
8937ce6ef9f5fa903ed2477cc8774a8c778c1ef8
|
12de31ac59bf3f1bfe8c6863ea7b3d2fd56289fb
|
/OlisMappingDemo/src/org/hl7/cts/types/CodeSystem.java
|
5a7b06567f3e74a28d2506103b707310f17373e3
|
[] |
no_license
|
francis-uhn/cgta-input-tester
|
4d46a8725a5640d4589caac395504f48c79afb47
|
45acfa8701e8a1968e473e1fa2d62220aa42c1d3
|
refs/heads/master
| 2021-01-10T11:45:19.788509
| 2015-08-13T16:05:20
| 2015-08-13T16:05:20
| 44,772,626
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,383
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833
// 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.11.13 at 04:02:04 PM EST
//
package org.hl7.cts.types;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for CodeSystem complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="CodeSystem">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="version" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CodeSystem", propOrder = {
"id",
"name",
"version"
})
public class CodeSystem
implements Serializable
{
private final static long serialVersionUID = 12343L;
@XmlElement(required = true)
protected String id;
@XmlElement(required = true)
protected String name;
protected String version;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
public boolean isSetId() {
return (this.id!= null);
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
public boolean isSetName() {
return (this.name!= null);
}
/**
* Gets the value of the version property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVersion() {
return version;
}
/**
* Sets the value of the version property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVersion(String value) {
this.version = value;
}
public boolean isSetVersion() {
return (this.version!= null);
}
}
|
[
"jamesagnew@gmail.com"
] |
jamesagnew@gmail.com
|
b7cbdaed541b16801af34dc89fc5211f70207d5c
|
91e72ef337a34eb7e547fa96d99fca5a4a6dc89e
|
/subjects/jcodemodel/results/evosuite/1564436324/0128/evosuite-tests/com/helger/jcodemodel/util/JCHashCodeGenerator_ESTest.java
|
f2af0bba86276b489299573a13c5e789b966680e
|
[] |
no_license
|
STAMP-project/descartes-amplification-experiments
|
deda5e2f1a122b9d365f7c76b74fb2d99634aad4
|
a5709fd78bbe8b4a4ae590ec50704dbf7881e882
|
refs/heads/master
| 2021-06-27T04:13:17.035471
| 2020-10-14T08:17:05
| 2020-10-14T08:17:05
| 169,711,716
| 0
| 0
| null | 2020-10-14T08:17:07
| 2019-02-08T09:32:43
|
Java
|
UTF-8
|
Java
| false
| false
| 1,512
|
java
|
/*
* This file was automatically generated by EvoSuite
* Tue Jul 30 00:05:27 GMT 2019
*/
package com.helger.jcodemodel.util;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import com.helger.jcodemodel.util.JCHashCodeGenerator;
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, useJEE = true)
public class JCHashCodeGenerator_ESTest extends JCHashCodeGenerator_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
Class<Object> class0 = Object.class;
JCHashCodeGenerator jCHashCodeGenerator0 = new JCHashCodeGenerator(class0);
assertEquals(17, JCHashCodeGenerator.INITIAL_HASHCODE);
}
@Test(timeout = 4000)
public void test1() throws Throwable {
Class<Object> class0 = Object.class;
JCHashCodeGenerator jCHashCodeGenerator0 = new JCHashCodeGenerator((Object) class0);
// Undeclared exception!
try {
jCHashCodeGenerator0.append((Object) class0);
// fail("Expecting exception: IllegalStateException");
// Unstable assertion
} catch(IllegalStateException e) {
//
// Hash code cannot be changed anymore!
//
verifyException("com.helger.jcodemodel.util.JCHashCodeGenerator", e);
}
}
}
|
[
"oscarlvp@gmail.com"
] |
oscarlvp@gmail.com
|
a9894e5f473a990c4fb6365d8bc2f31eb04d8cb3
|
776031c494e397f39c055bcf56bc266d078a4ba4
|
/desktop/src/main/java/org/freehep/util/io/DummyOutputStream.java
|
6cbf890c2e454556dd31c05ecdbff72eab62ac59
|
[] |
no_license
|
geogebra/geogebra
|
85f648e733454c5b471bf7b13b54607979bb1830
|
210ee8862951f91cecfb3a76a9c4114019c883b8
|
refs/heads/master
| 2023-09-05T11:09:42.662430
| 2023-09-05T08:10:05
| 2023-09-05T08:10:05
| 2,543,687
| 1,319
| 389
| null | 2023-07-20T11:49:58
| 2011-10-09T17:57:35
|
Java
|
UTF-8
|
Java
| false
| false
| 577
|
java
|
package org.freehep.util.io;
import java.io.IOException;
import java.io.OutputStream;
/**
* Equivalent to writing to /dev/nul
*
* @author tonyj
* @version $Id: DummyOutputStream.java,v 1.3 2008-05-04 12:21:00 murkle Exp $
*/
public class DummyOutputStream extends OutputStream {
/**
* Creates a Dummy output steram.
*/
public DummyOutputStream() {
}
@Override
public void write(int b) throws IOException {
}
@Override
public void write(byte[] b) throws IOException {
}
@Override
public void write(byte[] b, int off, int len) throws IOException {
}
}
|
[
"michael@geogebra.org"
] |
michael@geogebra.org
|
61d22aeeba99f3cdd04253b5e2782502ec781a65
|
562a559d75c2c3df6871c4e94832fafa14164dfb
|
/core/src/main/java/io/questdb/cutlass/pgwire/PGAuthenticator.java
|
e25ece5c3f61f59f5071d5d25cd3be23d50de324
|
[
"Apache-2.0"
] |
permissive
|
shivagowda/questdb
|
e4fccacbcebae78462dc57bac05c9d4f9e77e2dd
|
c67847c825e1c217bc4d1c8d7cef42f70e3e6119
|
refs/heads/master
| 2023-07-07T04:20:43.970311
| 2021-07-27T17:22:45
| 2021-07-27T17:22:45
| 376,962,639
| 1
| 1
|
Apache-2.0
| 2021-08-06T17:40:58
| 2021-06-14T21:39:13
|
Java
|
UTF-8
|
Java
| false
| false
| 1,335
|
java
|
/*******************************************************************************
* ___ _ ____ ____
* / _ \ _ _ ___ ___| |_| _ \| __ )
* | | | | | | |/ _ \/ __| __| | | | _ \
* | |_| | |_| | __/\__ \ |_| |_| | |_) |
* \__\_\\__,_|\___||___/\__|____/|____/
*
* Copyright (c) 2014-2019 Appsicle
* Copyright (c) 2019-2020 QuestDB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************/
package io.questdb.cutlass.pgwire;
import io.questdb.cairo.CairoSecurityContext;
import io.questdb.griffin.SqlException;
@FunctionalInterface
public interface PGAuthenticator {
CairoSecurityContext authenticate(CharSequence username, long msg, long msgLimit) throws BadProtocolException, SqlException;
}
|
[
"bluestreak@gmail.com"
] |
bluestreak@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.