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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e51066b7bc85e7e8f072affed3e5df84680a2cfc
|
ca9371238f2f8fbec5f277b86c28472f0238b2fe
|
/src/mx/com/kubo/services/MotiveService.java
|
e5e1d1ad0608ea4af6c6edc74c60095ce7e7ee38
|
[] |
no_license
|
ocg1/kubo.portal
|
64cb245c8736a1f8ec4010613e14a458a0d94881
|
ab022457d55a72df73455124d65b625b002c8ac2
|
refs/heads/master
| 2021-05-15T17:23:48.952576
| 2017-05-08T17:18:09
| 2017-05-08T17:18:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 350
|
java
|
package mx.com.kubo.services;
import java.util.List;
import mx.com.kubo.model.Motive;
import mx.com.kubo.model.MotivePK;
public interface MotiveService {
public List<Motive> getMotiveStatusListByStatus(Integer status_id);
public List<Motive> getMotiveStatusListByNoteType(Integer note_type_id);
public Motive getMotiveByPK( MotivePK pk );
}
|
[
"damian.tapia.nava@gmail.com"
] |
damian.tapia.nava@gmail.com
|
822169ac40239c0e982afe5e0db36565473aac26
|
124df74bce796598d224c4380c60c8e95756f761
|
/com.raytheon.uf.common.dataplugin.gfe/src/com/raytheon/uf/common/dataplugin/gfe/request/ProcessReceivedDigitalDataRequest.java
|
59c60a87fc4f554f03a51f3d644799581e9fddde
|
[] |
no_license
|
Mapoet/AWIPS-Test
|
19059bbd401573950995c8cc442ddd45588e6c9f
|
43c5a7cc360b3cbec2ae94cb58594fe247253621
|
refs/heads/master
| 2020-04-17T03:35:57.762513
| 2017-02-06T17:17:58
| 2017-02-06T17:17:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,983
|
java
|
/**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
* to non-U.S. persons whether in the United States or abroad requires
* an export license or other authorization.
*
* Contractor Name: Raytheon Company
* Contractor Address: 6825 Pine Street, Suite 340
* Mail Stop B8
* Omaha, NE 68106
* 402.291.0100
*
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
* further licensing information.
**/
package com.raytheon.uf.common.dataplugin.gfe.request;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
/**
* TODO Add Description
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* Aug 4, 2011 bphillip Initial creation
*
* </pre>
*
* @author bphillip
* @version 1.0
*/
@DynamicSerialize
public class ProcessReceivedDigitalDataRequest extends AbstractGfeRequest {
@DynamicSerializeElement
private String receivedDataFile;
public ProcessReceivedDigitalDataRequest() {
}
public ProcessReceivedDigitalDataRequest(String receivedDataFile) {
this.receivedDataFile = receivedDataFile;
}
/**
* @return the receivedConfFile
*/
public String getReceivedDataFile() {
return receivedDataFile;
}
/**
* @param receivedConfFile
* the receivedConfFile to set
*/
public void setReceivedDataFile(String receivedDataFile) {
this.receivedDataFile = receivedDataFile;
}
}
|
[
"joshua.t.love@saic.com"
] |
joshua.t.love@saic.com
|
3f752a2826f815d58cd3f64b69021e92223bfb6f
|
9d09a5a1d5327aafcf7965519e933866894b5e08
|
/src/test/java/com/rakshitlabs/springbootangulartodo/service/UserServiceIntTest.java
|
c63fe06f8a276ccce3814f623abcccbf009cf0e2
|
[] |
no_license
|
00anupam00/todoSampleApp
|
c55e2e84485a53a2073aaeddd041b5abba091eca
|
f472e9556725016b23e15b5ac42e6aa7ff0166a4
|
refs/heads/master
| 2021-04-29T11:43:37.815300
| 2018-02-20T04:14:05
| 2018-02-20T04:14:05
| 121,713,747
| 0
| 0
| null | 2020-05-02T19:00:15
| 2018-02-16T04:11:40
|
Java
|
UTF-8
|
Java
| false
| false
| 7,876
|
java
|
package com.rakshitlabs.springbootangulartodo.service;
import com.rakshitlabs.springbootangulartodo.TodoSampleApp;
import com.rakshitlabs.springbootangulartodo.config.Constants;
import com.rakshitlabs.springbootangulartodo.domain.PersistentToken;
import com.rakshitlabs.springbootangulartodo.domain.User;
import com.rakshitlabs.springbootangulartodo.repository.PersistentTokenRepository;
import com.rakshitlabs.springbootangulartodo.repository.UserRepository;
import com.rakshitlabs.springbootangulartodo.service.dto.UserDTO;
import com.rakshitlabs.springbootangulartodo.service.util.RandomUtil;
import org.apache.commons.lang3.RandomStringUtils;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.transaction.annotation.Transactional;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.time.LocalDate;
import java.util.List;
import java.util.Optional;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Test class for the UserResource REST controller.
*
* @see UserService
*/
@RunWith(SpringRunner.class)
@SpringBootTest(classes = TodoSampleApp.class)
@Transactional
public class UserServiceIntTest {
@Autowired
private PersistentTokenRepository persistentTokenRepository;
@Autowired
private UserRepository userRepository;
@Autowired
private UserService userService;
private User user;
@Before
public void init() {
persistentTokenRepository.deleteAll();
user = new User();
user.setLogin("johndoe");
user.setPassword(RandomStringUtils.random(60));
user.setActivated(true);
user.setEmail("johndoe@localhost");
user.setFirstName("john");
user.setLastName("doe");
user.setImageUrl("http://placehold.it/50x50");
user.setLangKey("en");
}
@Test
@Transactional
public void testRemoveOldPersistentTokens() {
userRepository.saveAndFlush(user);
int existingCount = persistentTokenRepository.findByUser(user).size();
LocalDate today = LocalDate.now();
generateUserToken(user, "1111-1111", today);
generateUserToken(user, "2222-2222", today.minusDays(32));
assertThat(persistentTokenRepository.findByUser(user)).hasSize(existingCount + 2);
userService.removeOldPersistentTokens();
assertThat(persistentTokenRepository.findByUser(user)).hasSize(existingCount + 1);
}
@Test
@Transactional
public void assertThatUserMustExistToResetPassword() {
userRepository.saveAndFlush(user);
Optional<User> maybeUser = userService.requestPasswordReset("invalid.login@localhost");
assertThat(maybeUser).isNotPresent();
maybeUser = userService.requestPasswordReset(user.getEmail());
assertThat(maybeUser).isPresent();
assertThat(maybeUser.orElse(null).getEmail()).isEqualTo(user.getEmail());
assertThat(maybeUser.orElse(null).getResetDate()).isNotNull();
assertThat(maybeUser.orElse(null).getResetKey()).isNotNull();
}
@Test
@Transactional
public void assertThatOnlyActivatedUserCanRequestPasswordReset() {
user.setActivated(false);
userRepository.saveAndFlush(user);
Optional<User> maybeUser = userService.requestPasswordReset(user.getLogin());
assertThat(maybeUser).isNotPresent();
userRepository.delete(user);
}
@Test
@Transactional
public void assertThatResetKeyMustNotBeOlderThan24Hours() {
Instant daysAgo = Instant.now().minus(25, ChronoUnit.HOURS);
String resetKey = RandomUtil.generateResetKey();
user.setActivated(true);
user.setResetDate(daysAgo);
user.setResetKey(resetKey);
userRepository.saveAndFlush(user);
Optional<User> maybeUser = userService.completePasswordReset("johndoe2", user.getResetKey());
assertThat(maybeUser).isNotPresent();
userRepository.delete(user);
}
@Test
@Transactional
public void assertThatResetKeyMustBeValid() {
Instant daysAgo = Instant.now().minus(25, ChronoUnit.HOURS);
user.setActivated(true);
user.setResetDate(daysAgo);
user.setResetKey("1234");
userRepository.saveAndFlush(user);
Optional<User> maybeUser = userService.completePasswordReset("johndoe2", user.getResetKey());
assertThat(maybeUser).isNotPresent();
userRepository.delete(user);
}
@Test
@Transactional
public void assertThatUserCanResetPassword() {
String oldPassword = user.getPassword();
Instant daysAgo = Instant.now().minus(2, ChronoUnit.HOURS);
String resetKey = RandomUtil.generateResetKey();
user.setActivated(true);
user.setResetDate(daysAgo);
user.setResetKey(resetKey);
userRepository.saveAndFlush(user);
Optional<User> maybeUser = userService.completePasswordReset("johndoe2", user.getResetKey());
assertThat(maybeUser).isPresent();
assertThat(maybeUser.orElse(null).getResetDate()).isNull();
assertThat(maybeUser.orElse(null).getResetKey()).isNull();
assertThat(maybeUser.orElse(null).getPassword()).isNotEqualTo(oldPassword);
userRepository.delete(user);
}
@Test
@Transactional
public void testFindNotActivatedUsersByCreationDateBefore() {
Instant now = Instant.now();
user.setActivated(false);
User dbUser = userRepository.saveAndFlush(user);
dbUser.setCreatedDate(now.minus(4, ChronoUnit.DAYS));
userRepository.saveAndFlush(user);
List<User> users = userRepository.findAllByActivatedIsFalseAndCreatedDateBefore(now.minus(3, ChronoUnit.DAYS));
assertThat(users).isNotEmpty();
userService.removeNotActivatedUsers();
users = userRepository.findAllByActivatedIsFalseAndCreatedDateBefore(now.minus(3, ChronoUnit.DAYS));
assertThat(users).isEmpty();
}
private void generateUserToken(User user, String tokenSeries, LocalDate localDate) {
PersistentToken token = new PersistentToken();
token.setSeries(tokenSeries);
token.setUser(user);
token.setTokenValue(tokenSeries + "-data");
token.setTokenDate(localDate);
token.setIpAddress("127.0.0.1");
token.setUserAgent("Test agent");
persistentTokenRepository.saveAndFlush(token);
}
@Test
@Transactional
public void assertThatAnonymousUserIsNotGet() {
user.setLogin(Constants.ANONYMOUS_USER);
if (!userRepository.findOneByLogin(Constants.ANONYMOUS_USER).isPresent()) {
userRepository.saveAndFlush(user);
}
final PageRequest pageable = new PageRequest(0, (int) userRepository.count());
final Page<UserDTO> allManagedUsers = userService.getAllManagedUsers(pageable);
assertThat(allManagedUsers.getContent().stream()
.noneMatch(user -> Constants.ANONYMOUS_USER.equals(user.getLogin())))
.isTrue();
}
@Test
@Transactional
public void testRemoveNotActivatedUsers() {
user.setActivated(false);
userRepository.saveAndFlush(user);
// Let the audit first set the creation date but then update it
user.setCreatedDate(Instant.now().minus(30, ChronoUnit.DAYS));
userRepository.saveAndFlush(user);
assertThat(userRepository.findOneByLogin("johndoe")).isPresent();
userService.removeNotActivatedUsers();
assertThat(userRepository.findOneByLogin("johndoe")).isNotPresent();
}
}
|
[
"jhipster-bot@users.noreply.github.com"
] |
jhipster-bot@users.noreply.github.com
|
b1b535b79ed0f4152304a672c73d0b7991045f23
|
d71e879b3517cf4fccde29f7bf82cff69856cfcd
|
/ExtractedJars/RT_News_com.rt.mobile.english/javafiles/com/google/android/gms/internal/ads/zzalu.java
|
3cc53a473577a98fcc4300e5d0f2d684a8120ae6
|
[
"MIT"
] |
permissive
|
Andreas237/AndroidPolicyAutomation
|
b8e949e072d08cf6c6166c3f15c9c63379b8f6ce
|
c1ed10a2c6d4cf3dfda8b8e6291dee2c2a15ee8a
|
refs/heads/master
| 2020-04-10T02:14:08.789751
| 2019-05-16T19:29:11
| 2019-05-16T19:29:11
| 160,739,088
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 788
|
java
|
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.google.android.gms.internal.ads;
import java.io.InputStream;
// Referenced classes of package com.google.android.gms.internal.ads:
// zzalz
final class zzalu
implements zzalz
{
zzalu()
{
// 0 0:aload_0
// 1 1:invokespecial #11 <Method void Object()>
// 2 4:return
}
public final volatile Object zze(InputStream inputstream)
{
return ((Object) (null));
// 0 0:aconst_null
// 1 1:areturn
}
public final volatile Object zzny()
{
return ((Object) (null));
// 0 0:aconst_null
// 1 1:areturn
}
}
|
[
"silenta237@gmail.com"
] |
silenta237@gmail.com
|
2e4fb1b7f85462c464cc7a6ad7268a17e90a7a90
|
c3a8140bf73f5cb3458594a9642e059c79b2e143
|
/src/main/java/com/healthmarketscience/jackcess/complex/ComplexColumnInfo.java
|
cc89156078fbbc91bd33ffe64ada538b0846b647
|
[
"Apache-2.0"
] |
permissive
|
jahlborn/jackcess
|
3dfd7d120a8ecfa72ca5fbe14eb21e4f15336d6f
|
000d6ad6cf94bf004c4c6089788ecc48b69addf1
|
refs/heads/master
| 2023-09-04T19:41:45.350206
| 2023-01-27T00:49:38
| 2023-01-27T00:49:38
| 43,790,757
| 124
| 38
|
Apache-2.0
| 2022-08-26T21:20:47
| 2015-10-07T02:28:07
|
Java
|
UTF-8
|
Java
| false
| false
| 2,164
|
java
|
/*
Copyright (c) 2013 James Ahlborn
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.healthmarketscience.jackcess.complex;
import java.io.IOException;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import com.healthmarketscience.jackcess.Row;
/**
* Base class for the additional information tracked for complex columns.
*
* @author James Ahlborn
*/
public interface ComplexColumnInfo<V extends ComplexValue>
{
public ComplexDataType getType();
public int countValues(int complexValueFk) throws IOException;
public List<Row> getRawValues(int complexValueFk)
throws IOException;
public List<Row> getRawValues(int complexValueFk,
Collection<String> columnNames)
throws IOException;
public List<V> getValues(ComplexValueForeignKey complexValueFk)
throws IOException;
public ComplexValue.Id addRawValue(Map<String,?> rawValue)
throws IOException;
public ComplexValue.Id addValue(V value) throws IOException;
public void addValues(Collection<? extends V> values) throws IOException;
public ComplexValue.Id updateRawValue(Row rawValue) throws IOException;
public ComplexValue.Id updateValue(V value) throws IOException;
public void updateValues(Collection<? extends V> values) throws IOException;
public void deleteRawValue(Row rawValue) throws IOException;
public void deleteValue(V value) throws IOException;
public void deleteValues(Collection<? extends V> values) throws IOException;
public void deleteAllValues(int complexValueFk) throws IOException;
public void deleteAllValues(ComplexValueForeignKey complexValueFk)
throws IOException;
}
|
[
"jtahlborn@yahoo.com"
] |
jtahlborn@yahoo.com
|
1eda5fd3acc1617e2fe9c069eee0c1b46eaac625
|
6bd76c149764934f457fc778b914b99ea9a77439
|
/library/src/main/java/com/novoda/downloadmanager/InternalBatchBuilder.java
|
66d7d0980e3363b4c7c6fba3ec856bd29319ef3a
|
[
"Apache-2.0"
] |
permissive
|
novoda/download-manager
|
c00c9a3771a63a1406507dc82c3577616e54eb48
|
247a952f865734501654337c13318c7f6f6e6268
|
refs/heads/release
| 2023-08-28T16:04:49.786717
| 2019-08-23T09:03:57
| 2019-08-23T09:03:57
| 35,211,795
| 501
| 79
|
Apache-2.0
| 2022-12-16T16:47:50
| 2015-05-07T09:41:52
|
Java
|
UTF-8
|
Java
| false
| false
| 133
|
java
|
package com.novoda.downloadmanager;
interface InternalBatchBuilder extends BatchBuilder {
void withFile(BatchFile batchFile);
}
|
[
"ryan.feline@novoda.com"
] |
ryan.feline@novoda.com
|
7eacc069a2df9298e63aa99a070eacba4dfce913
|
e75be673baeeddee986ece49ef6e1c718a8e7a5d
|
/submissions/blizzard/Corpus/eclipse.jdt.ui/5462.java
|
22264e92adb0ba9a4b42ef096e81227bb6da4879
|
[
"MIT"
] |
permissive
|
zhendong2050/fse18
|
edbea132be9122b57e272a20c20fae2bb949e63e
|
f0f016140489961c9e3c2e837577f698c2d4cf44
|
refs/heads/master
| 2020-12-21T11:31:53.800358
| 2018-07-23T10:10:57
| 2018-07-23T10:10:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 165
|
java
|
//5, 23, 5, 33
package p;
class A {
{
do // LINE 2
{
boolean x = this != null;
} while (this != null);
}
}
|
[
"tim.menzies@gmail.com"
] |
tim.menzies@gmail.com
|
a520febe93170f29f56e9460f926ea6bd04f9461
|
36bbde826ff3e123716dce821020cf2a931abf6e
|
/plugin/core/src/main/java/com/perl5/lang/pod/idea/structureView/PodStructureViewElement.java
|
4092b8126fb8d55cd5d979b4b34e144173bc4823
|
[
"Apache-2.0"
] |
permissive
|
Camelcade/Perl5-IDEA
|
0332dd4794aab5ed91126a2c1ecd608f9c801447
|
deecc3c4fcdf93b4ff35dd31b4c7045dd7285407
|
refs/heads/master
| 2023-08-08T07:47:31.489233
| 2023-07-27T05:18:40
| 2023-07-27T06:17:04
| 33,823,684
| 323
| 79
|
NOASSERTION
| 2023-09-13T04:36:15
| 2015-04-12T16:09:15
|
Java
|
UTF-8
|
Java
| false
| false
| 3,473
|
java
|
/*
* Copyright 2015-2020 Alexandr Evstigneev
*
* 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.perl5.lang.pod.idea.structureView;
import com.intellij.ide.structureView.StructureViewTreeElement;
import com.intellij.ide.structureView.impl.common.PsiTreeElementBase;
import com.intellij.navigation.ItemPresentation;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import com.perl5.PerlBundle;
import com.perl5.PerlIcons;
import com.perl5.lang.pod.parser.psi.PodFile;
import com.perl5.lang.pod.parser.psi.PodSection;
import com.perl5.lang.pod.parser.psi.PodStructureElement;
import com.perl5.lang.pod.parser.psi.mixin.PodSectionOver;
import com.perl5.lang.pod.psi.PsiCutSection;
import com.perl5.lang.pod.psi.PsiPodSection;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
public class PodStructureViewElement extends PsiTreeElementBase<PsiElement> {
public PodStructureViewElement(PsiElement element) {
super(element);
}
@Override
public @Nullable String getPresentableText() {
PsiElement element = getElement();
if (element == null) {
return null;
}
if (element instanceof PodFile) {
return PerlBundle.message("pod.structure.view.file.title");
}
else if (element instanceof ItemPresentation) {
return ((ItemPresentation)element).getPresentableText();
}
return null;
}
@Override
public @Nullable String getLocationString() {
return null;
}
@Override
public @Nullable Icon getIcon(boolean unused) {
PsiElement element = getElement();
if (element == null) {
return null;
}
return element instanceof PsiFile ? PerlIcons.POD_FILE : element.getIcon(0);
}
@Override
public @NotNull Collection<StructureViewTreeElement> getChildrenBase() {
PsiElement psiElement = getElement();
if (psiElement == null) {
return Collections.emptyList();
}
List<StructureViewTreeElement> result = new ArrayList<>();
PsiElement container = null;
if (psiElement instanceof PodSection) {
container = ((PodSection)psiElement).getContentBlock();
}
if (container == null) {
container = psiElement;
}
for (PsiElement element : container.getChildren()) {
if (element instanceof PodStructureElement) {
if (!(element instanceof PsiCutSection || element instanceof PsiPodSection)) {
result.add(new PodStructureViewElement(element));
}
}
}
if (result.size() == 1 && result.get(0).getValue() instanceof PodSectionOver) {
// expanding over
StructureViewTreeElement childElement = result.get(0);
if (childElement instanceof PodStructureViewElement) {
return ((PodStructureViewElement)childElement).getChildrenBase();
}
}
return result;
}
}
|
[
"hurricup@gmail.com"
] |
hurricup@gmail.com
|
25f9eda4727ad744337f1ef52ba5a8e594846c0b
|
066d2895499c50b6d7cce0d44ee00be4aa356d28
|
/Registry/ChromaPackets.java
|
ce59bc5896ccd11cc3b86c6cb3ffa986ea60ebd7
|
[] |
no_license
|
lesyriad/ChromatiCraft
|
f8ac6533050fc4242bd66f6c36b30f185513a5f4
|
0016fb54f2bc7217cbb42980990d1e0c5b3d3b4c
|
refs/heads/master
| 2021-01-20T06:49:48.324868
| 2017-08-19T05:30:33
| 2017-08-19T05:30:33
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,600
|
java
|
/*******************************************************************************
* @author Reika Kalseki
*
* Copyright 2017
*
* All rights reserved.
* Distribution of the software in any form is only allowed with
* explicit, prior permission from the owner.
******************************************************************************/
package Reika.ChromatiCraft.Registry;
import Reika.DragonAPI.Auxiliary.PacketTypes;
public enum ChromaPackets {
ENCHANTER(2),
ENCHANTERRESET(),
SPAWNERPROGRAM(1),
SPAWNERDATA(6),
CRYSTALEFFECT(),
PLANTUPDATE(),
ABILITY(2),
ABILITYSEND(3),
PYLONATTACK(6),
PYLONATTACKRECEIVE(1),
ABILITYCHOOSE(1),
BUFFERSET(2),
//BUFFERINC(1),
TELEPUMP(1),
//TRANSMIT(3),
ASPECT(),
LAMPCHANNEL(1),
LAMPCONTROL(2),
LAMPINVERT(),
TNT(4),
BOOKINVSCROLL(1),
TICKER(1),
SHARDBOOST(1),
GIVERESEARCH(1),
LEAFBREAK(1),
GIVEPROGRESS(2),
HEALTHSYNC(1),
INVCYCLE(1),
RELAYCONNECT(),
RERESEARCH(1),
BIOMEPAINT(3),
LIGHTNINGDIE(1),
CLOUDDIE(1),
CLOUDATTACK(1),
GLUON(2),
AURAPOUCH(2),
FARMERHARVEST(3),
PYLONCACHE(-1),
PYLONCACHECLEAR(1),
TRANSITIONWAND(1),
TELEPORT(),
MAPTELEPORT(4),
NEWTELEPORT(),
DELTELEPORT(),
SENDTELEPORT(4),
GROWTH(3),
PROGRESSNOTE(1),
PORTALRECIPE(1),
PYLONTURBORECIPE(1),
REPEATERTURBORECIPE(1),
HEATLAMP(1),
WANDCHARGE(16),
BULKITEM(2),
BULKNUMBER(1),
CASTAUTOUPDATE(7),
AUTORECIPE(2),
AUTOCANCEL(),
CHAINGUNHURT(1),
CHAINGUNEND(1),
METRANSFER(2),
MEDISTRIBTHRESH(2),
MEDISTRIBFUZZY(1),
HOVERWAND(1),
AURATTACK(1),
AURAHEAL(1),
AURAGROW(3),
DESTROYNODE(),
HURTNODE(),
CHARGINGNODE(),
NEWASPECTNODE(17),
HEALNODE(),
SPLASHGUNEND(1),
VACUUMGUNEND(1),
RFSEND(4),
DIMPING(3),
STRUCTUREENTRY(1),
CRYSTALMUS(4),
CRYSTALMUSERROR(),
MUSICNOTE(4),
FIXEDMUSICNOTE(5),
MUSICCLEAR(),
MUSICCLEARCHANNEL(1),
MUSICDEMO(),
//MUSICDISC(),
PYLONTURBOSTART(),
PYLONTURBOEVENT(2),
PYLONTURBOCOMPLETE(),
PYLONTURBOFAIL(1),
MUSICPLAY(1),
TURRETATTACK(1),
MONUMENTEVENT(6),
MONUMENTCOMPLETE(3),
RESETMONUMENT(3),
MONUMENTEND(),
DASH(1),
FENCETRIGGER(2),
//MAZEDISTREQ(),
//MAZEDISTINFO(1);
MINERJAM(),
REPEATERCONN(),
CHARGERTOGGLE(1),
BOOKNOTESRESET(),
BOOKNOTE(),
REPEATERSURGE(1),
FIREDUMP(1),
FIRECONSUMEITEM(1),
ESSENTIAPARTICLE(7),
INSERTERMODE(1),
INSERTERCLEAR(1),
INSERTERCONNECTION(2),
INSERTERACTION(5),
COBBLEGENEND(2),
LIGHTERACT(3),
LIGHTERDELTAY(1),
LIGHTEREND(),
POWERCRYSDESTROY(),
PARTICLESPAWNER(),
//PYLONJAR(),
PYLONCRYSTALBREAK(),
WIRELESS(5),
METEORIMPACT(1),
ORECREATE(2),
THROWNGEM(2),
FLAREMSG(),
FLAREATTACK(1),
ASPECTMODE(),
FLUIDSEND(5),
COLLECTORRANGE(1),
LEAVEDIM(),
DIMSOUND(),
SKYRIVER_SYNC(),
SKYRIVER_STATE(1),
ACTIVEGATE(),
GATECACHE(),
TRIGGERTELEPORT(8),
TELEPORTCONFIRM(1),
BIOMELOCS(),
RELAYPRESSURE(1),
RELAYFLUID(1),
RELAYFILTER(2),
ROUTERFILTERFLAG(1),
ROUTERLINK(3),
STRUCTFIND(2),
DATASCAN(),
LORENOTE(1),
LOREPUZZLECOMPLETE(),
INSCRIBE(1),
DIGARTEFACT(3),
ARTEFACTCONFIRM(3),
ARTEFACTCLICK(),
FERTILITYSEED(),
NUKERLOC(4),
BURNERINV(1),
;
public final int numInts;
public final PacketTypes type;
private ChromaPackets() {
this(0);
}
private ChromaPackets(int size) {
this(size, PacketTypes.DATA);
}
private ChromaPackets(int size, PacketTypes t) {
numInts = size;
type = t;
}
public static final ChromaPackets getPacket(int id) {
ChromaPackets[] list = values();
id = Math.max(0, Math.min(id, list.length-1));
return list[id];
}
public boolean hasData() {
return numInts != 0;
}
public boolean variableData() {
return numInts < 0;
}
}
|
[
"reikasminecraft@gmail.com"
] |
reikasminecraft@gmail.com
|
0841179e75d95ed80caf5c5f44dd65ff98d78443
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/22/22_32867dba7a38fc5dfb0fa6b39233efbd71f8821b/TestPatientFollowUpPage/22_32867dba7a38fc5dfb0fa6b39233efbd71f8821b_TestPatientFollowUpPage_s.java
|
c6f0dd8b4dde04ed056dfca37938be5a345281fc
|
[] |
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,078
|
java
|
package com.solidstategroup.radar.test.web;
import com.solidstategroup.radar.model.Demographics;
import com.solidstategroup.radar.web.pages.PatientPage;
import org.apache.wicket.Component;
import org.junit.Test;
/**
* Simple test using the WicketTester
*/
public class TestPatientFollowUpPage extends BasePageTest {
@Test
public void renderFollowUpPage() {
// Start and render the test page
Demographics demographics = new Demographics();
demographics.setId(new Long(238));
tester.startPage(PatientPage.class, PatientPage.getParameters(demographics));
// Assert rendered page class
tester.assertRenderedPage(PatientPage.class);
// Try Ajax refresh
Component followUpLink = tester.getLastRenderedPage().get("linksContainer").get("followUpLink");
tester.clickLink(followUpLink.getPageRelativePath());
// View the lab results tab
Component labResultsLink = tester.getLastRenderedPage().get("followUpPanel").get("laboratoryResultsLink");
tester.clickLink(labResultsLink.getPageRelativePath());
Component labResultsPanel = tester.getLastRenderedPage().get("followUpPanel").get("laboratoryResultsPanel");
tester.assertVisible(labResultsPanel.getPageRelativePath());
// View the treatment tab
Component treatmentLink = tester.getLastRenderedPage().get("followUpPanel").get("treatmentLink");
tester.clickLink(treatmentLink.getPageRelativePath());
Component treatmentPanel = tester.getLastRenderedPage().get("followUpPanel").get("treatmentPanel");
tester.assertVisible(treatmentPanel.getPageRelativePath());
// View the RRT panel
Component rrtLink = tester.getLastRenderedPage().get("followUpPanel").get("rrtTherapyLink");
tester.clickLink(rrtLink.getPageRelativePath());
Component rrtPanel = tester.getLastRenderedPage().get("followUpPanel").get("rrtTherapyPanel");
tester.assertVisible(rrtPanel.getPageRelativePath());
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
d286f2195ce3ca4f5f9528f9b36752e271c721da
|
ec34a60917b281aaab1ebc9fed74740cc5509d85
|
/concurrent/src/main/java/org/zzy/concurrent/chapter1/SimplePriorities.java
|
93670b3f3497efcc687f456937c8fd317fdaed04
|
[
"Apache-2.0"
] |
permissive
|
zhangzhaoyu/black-hole
|
3f92176239ec6d9a3bbcee91527ee0ae2451fa74
|
d4d370e87f3e18ece36bdb5bc81cb2f8ed5ff6a9
|
refs/heads/master
| 2020-07-07T06:21:47.053324
| 2016-09-28T09:34:28
| 2016-09-28T09:34:28
| 66,376,811
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,312
|
java
|
package org.zzy.concurrent.chapter1;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* Created by zhaoyu on 16-9-1.
*/
public class SimplePriorities implements Runnable {
private int countDown = 5;
private volatile double d;
private int priority;
public SimplePriorities(int priority) {
this.priority = priority;
}
@Override
public void run() {
Thread.currentThread().setPriority(priority);
while (true) {
for (int i=1; i<10000000; i++) {
d += (Math.PI + Math.E) / (double) i;
if (i % 1000 == 0) {
Thread.yield();
}
}
System.out.println(this);
if (--countDown == 0) {
return;
}
}
}
@Override
public String toString() {
return Thread.currentThread() + " : " +countDown;
}
public static void main(String[] args) {
ExecutorService executorService = Executors.newCachedThreadPool();
executorService.execute(new SimplePriorities(Thread.MAX_PRIORITY));
for (int i=0; i<5; i++) {
executorService.execute(new SimplePriorities(Thread.MIN_PRIORITY));
}
executorService.shutdown();
}
}
|
[
"zhangzhaoyu0524@163.com"
] |
zhangzhaoyu0524@163.com
|
84442ef1678ce27319e53d4fe11b9130e9de439c
|
6c66c66b8c579a659470f78e7a0f6083d117f545
|
/VechileSales/src/testpractise/domain/common/GeneratorUtils.java
|
8b89419f1dda11105942f80d8c274ce21cc5d4a9
|
[] |
no_license
|
Mallikarjun0535/Projects
|
efa104e2c9edf645d9abe802ebc884582151cd25
|
31235c1d8c8705e4816b5c839f50daa744e2cf4d
|
refs/heads/master
| 2022-12-22T15:06:27.246082
| 2019-06-20T19:02:39
| 2019-06-20T19:02:39
| 191,793,219
| 0
| 0
| null | 2022-12-16T07:46:12
| 2019-06-13T15:57:18
|
Java
|
UTF-8
|
Java
| false
| false
| 500
|
java
|
package com.dizzion.portal.domain.common;
import lombok.experimental.UtilityClass;
import org.apache.commons.text.RandomStringGenerator;
@UtilityClass
public class GeneratorUtils {
private static final RandomStringGenerator GENERATOR = new RandomStringGenerator.Builder()
.withinRange('0', '9')
.build();
private static final int DEFAULT_LENGTH = 6;
public static int generateInt() {
return Integer.parseInt(GENERATOR.generate(DEFAULT_LENGTH));
}
}
|
[
"mallik.mitta@outlook.com"
] |
mallik.mitta@outlook.com
|
68475f633719a48878d87f65ea2b15daabe41efb
|
421f0a75a6b62c5af62f89595be61f406328113b
|
/generated_tests/model_seeding/27_gangup-module.Logger-0.5-6/module/Logger_ESTest.java
|
3179b26aba65e82bd9788cd05c0ac4cf276395db
|
[] |
no_license
|
tigerqiu712/evosuite-model-seeding-empirical-evaluation
|
c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6
|
11a920b8213d9855082d3946233731c843baf7bc
|
refs/heads/master
| 2020-12-23T21:04:12.152289
| 2019-10-30T08:02:29
| 2019-10-30T08:02:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 624
|
java
|
/*
* This file was automatically generated by EvoSuite
* Tue Oct 29 14:00:56 GMT 2019
*/
package module;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true)
public class Logger_ESTest extends Logger_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pderakhshanfar@bsr01.win.tue.nl"
] |
pderakhshanfar@bsr01.win.tue.nl
|
ca138d5c4a2705b51765fd2267796157ac22a095
|
7dfda9db0b5eca9091c84e3cf4a0497858cac1cb
|
/src/contrib/failmon/src/java/org/apache/hadoop/contrib/failmon/ShellParser.java
|
f3e2fa6b7a9dca7483e157207e972a1dbf330398
|
[
"LicenseRef-scancode-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
smiley0907/purnacache
|
bc7364a9fa292f7606671cb494c3896d74156c13
|
0370c725d061a7fb460f7088b3cf4c8c47916d3b
|
refs/heads/master
| 2020-03-25T19:31:13.053441
| 2020-02-07T00:56:27
| 2020-02-07T00:56:27
| 144,087,062
| 0
| 0
|
Apache-2.0
| 2018-08-09T01:40:37
| 2018-08-09T01:40:37
| null |
UTF-8
|
Java
| false
| false
| 3,423
|
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.hadoop.contrib.failmon;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**********************************************************
* Objects of this class parse the output of system command-line utilities that
* can give information about the state of various hardware components in the
* system. Typically, each such object either invokes a command and reads its
* output or reads the output of one such command from a file on the disk.
* Currently supported utilities include ifconfig, smartmontools, lm-sensors,
* /proc/cpuinfo.
*
**********************************************************/
public abstract class ShellParser implements Monitored {
/**
* Find the first occurence ofa pattern in a piece of text and return a
* specific group.
*
* @param strPattern
* the regular expression to match
* @param text
* the text to search
* @param grp
* the number of the matching group to return
*
* @return a String containing the matched group of the regular expression
*/
protected String findPattern(String strPattern, String text, int grp) {
Pattern pattern = Pattern.compile(strPattern, Pattern.MULTILINE);
Matcher matcher = pattern.matcher(text);
if (matcher.find(0))
return matcher.group(grp);
return null;
}
/**
* Finds all occurences of a pattern in a piece of text and returns the
* matching groups.
*
* @param strPattern
* the regular expression to match
* @param text
* the text to search
* @param grp
* the number of the matching group to return
* @param separator
* the string that separates occurences in the returned value
*
* @return a String that contains all occurences of strPattern in text,
* separated by separator
*/
protected String findAll(String strPattern, String text, int grp,
String separator) {
String retval = "";
boolean firstTime = true;
Pattern pattern = Pattern.compile(strPattern);
Matcher matcher = pattern.matcher(text);
while (matcher.find()) {
retval += (firstTime ? "" : separator) + matcher.group(grp);
firstTime = false;
}
return retval;
}
/**
* Insert all EventRecords that can be extracted for the represented
* hardware component into a LocalStore.
*
* @param ls
* the LocalStore into which the EventRecords are to be stored.
*/
public void monitor(LocalStore ls) {
ls.insert(monitor());
}
abstract public EventRecord[] monitor();
abstract public EventRecord query(String s) throws Exception;
}
|
[
"raghavendra.pra.yelisetty@hpe.com"
] |
raghavendra.pra.yelisetty@hpe.com
|
f56b69832c74354c0132bfff38508f0cce775bd9
|
5148293c98b0a27aa223ea157441ac7fa9b5e7a3
|
/Method_Scraping/xml_scraping/NicadOutputFile_t1_flink_new2/Nicad_t1_flink_new25148.java
|
4e7afbf2b39577c1c90917477d381beab40168d4
|
[] |
no_license
|
ryosuke-ku/TestCodeSeacherPlus
|
cfd03a2858b67a05ecf17194213b7c02c5f2caff
|
d002a52251f5461598c7af73925b85a05cea85c6
|
refs/heads/master
| 2020-05-24T01:25:27.000821
| 2019-08-17T06:23:42
| 2019-08-17T06:23:42
| 187,005,399
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 569
|
java
|
// clone pairs:22686:90%
// 33581:flink/flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/checkpoints/CheckpointingStatistics.java
public class Nicad_t1_flink_new25148
{
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Summary summary = (Summary) o;
return Objects.equals(stateSize, summary.stateSize) &&
Objects.equals(duration, summary.duration) &&
Objects.equals(alignmentBuffered, summary.alignmentBuffered);
}
}
|
[
"naist1020@gmail.com"
] |
naist1020@gmail.com
|
d57a95d92beb1402ba07b9337c88e9f393b258cc
|
3e554a98382a09af4de6304975d7abb0784cd077
|
/DaoTest/src/de/greenrobot/daotest/performance/PerformanceTestNotNull.java
|
0767e1c3c36180e14dbf46c0b60a498ef7f97d1b
|
[] |
no_license
|
Anatolik/greenDAO
|
6aa6708d4101c8c7b176b975ec4c7692783a6d17
|
a21c0be6818b0e7812faebb63d4963154c91f3b0
|
refs/heads/master
| 2020-12-25T17:44:30.484001
| 2012-05-23T11:49:18
| 2012-05-23T11:49:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,521
|
java
|
/*
* Copyright (C) 2011 Markus Junginger, greenrobot (http://greenrobot.de)
*
* This file is part of greenDAO Generator.
*
* greenDAO Generator is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* greenDAO Generator is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with greenDAO Generator. If not, see <http://www.gnu.org/licenses/>.
*/
package de.greenrobot.daotest.performance;
import de.greenrobot.daotest.SimpleEntityNotNull;
import de.greenrobot.daotest.SimpleEntityNotNullDao;
import de.greenrobot.daotest.entity.SimpleEntityNotNullHelper;
public class PerformanceTestNotNull extends PerformanceTest<SimpleEntityNotNullDao, SimpleEntityNotNull, Long> {
static long sequence;
public PerformanceTestNotNull() {
super(SimpleEntityNotNullDao.class);
// setIdentityScopeBeforeSetUp(new de.greenrobot.dao.IdentityScope<Long, SimpleEntityNotNull>());
}
@Override
protected SimpleEntityNotNull createEntity() {
return SimpleEntityNotNullHelper.createEntity(sequence++);
}
}
|
[
"markus@greenrobot"
] |
markus@greenrobot
|
11f05bd21bc6cc4ec176ef85745c81bd58a6c47e
|
52cc43f8e2a9724e37eb0d57e5208fe679d8785c
|
/modules/trainer/backend/src/main/java/org/rapidpm/vaadin/trainer/backend/report/ReportServiceInMemory.java
|
857b3bb7434d0db5673df079f5ae0ff407eb428c
|
[
"Apache-2.0"
] |
permissive
|
Java-Publications/vaadin-024-helloworld-22
|
4c389feb69fd231c29ced1816868b5c5c410e1cb
|
70780088b90a4d15e4d9ea622e11613d256548b6
|
refs/heads/master
| 2021-08-22T14:35:50.032694
| 2017-11-30T12:00:13
| 2017-11-30T12:00:13
| 111,547,442
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 578
|
java
|
package org.rapidpm.vaadin.trainer.backend.report;
import org.rapidpm.vaadin.trainer.api.report.ReportService;
import org.rapidpm.vaadin.trainer.api.report.Statistics;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
/**
*
*/
public class ReportServiceInMemory implements ReportService {
@Override
public List<Statistics> loadData() {
return Arrays
.asList(
new Statistics(1L, "Sven", "Ruppert", LocalDateTime.now()),
new Statistics(1L, "Max", "Rimkus", LocalDateTime.now())
);
}
}
|
[
"sven.ruppert@gmail.com"
] |
sven.ruppert@gmail.com
|
8ffe438fb9c3b1b3332ab6e0d1b29de35fa05626
|
1ce518b09521578e26e79a1beef350e7485ced8c
|
/source/app/src/main/java/com/google/android/gms/cast/Cast$CastApi$a$3.java
|
ed131266a4e5cb2b3b5d355515aa97bfd8211442
|
[] |
no_license
|
yash2710/AndroidStudioProjects
|
7180eb25e0f83d3f14db2713cd46cd89e927db20
|
e8ba4f5c00664f9084f6154f69f314c374551e51
|
refs/heads/master
| 2021-01-10T01:15:07.615329
| 2016-04-03T09:19:01
| 2016-04-03T09:19:01
| 55,338,306
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 903
|
java
|
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.google.android.gms.cast;
import com.google.android.gms.internal.gh;
// Referenced classes of package com.google.android.gms.cast:
// LaunchOptions
class zY extends zY
{
final N zW;
final String zX;
final LaunchOptions zY;
protected volatile void a(com.google.android.gms.common.api. )
{
a((gh));
}
protected void a(gh gh1)
{
try
{
gh1.a(zX, zY, this);
return;
}
catch (IllegalStateException illegalstateexception)
{
N(2001);
}
}
( , String s, LaunchOptions launchoptions)
{
zW = ;
zX = s;
zY = launchoptions;
super(null);
}
}
|
[
"13bce123@nirmauni.ac.in"
] |
13bce123@nirmauni.ac.in
|
6ec253e4de6f36feb4406faacfcee44a46d2f55a
|
0a6336496abdb49a8fbcbbbcad581c850356f018
|
/src/test/java/org/openapitools/client/model/NewConfirmedCoinsTransactionsForSpecificAmount401ResponseTest.java
|
929f0ed4714e025cef2655ac4271729d8efb6679
|
[] |
no_license
|
Crypto-APIs/Crypto_APIs_2.0_SDK_Java
|
8afba51f53a7a617d66ef6596010cc034a48c17d
|
29bac849e4590c4decfa80458fce94a914801019
|
refs/heads/main
| 2022-09-24T04:43:37.066099
| 2022-09-12T17:38:13
| 2022-09-12T17:38:13
| 360,245,136
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,396
|
java
|
/*
* CryptoAPIs
* Crypto APIs is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of their blockchain applications. Crypto APIs provides unified endpoints and data, raw data, automatic tokens and coins forwardings, callback functionalities, and much more.
*
* The version of the OpenAPI document: 2021-03-20
* Contact: developers@cryptoapis.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.openapitools.client.model;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import org.openapitools.client.model.NewConfirmedCoinsTransactionsForSpecificAmountE401;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
* Model tests for NewConfirmedCoinsTransactionsForSpecificAmount401Response
*/
public class NewConfirmedCoinsTransactionsForSpecificAmount401ResponseTest {
private final NewConfirmedCoinsTransactionsForSpecificAmount401Response model = new NewConfirmedCoinsTransactionsForSpecificAmount401Response();
/**
* Model tests for NewConfirmedCoinsTransactionsForSpecificAmount401Response
*/
@Test
public void testNewConfirmedCoinsTransactionsForSpecificAmount401Response() {
// TODO: test NewConfirmedCoinsTransactionsForSpecificAmount401Response
}
/**
* Test the property 'apiVersion'
*/
@Test
public void apiVersionTest() {
// TODO: test apiVersion
}
/**
* Test the property 'requestId'
*/
@Test
public void requestIdTest() {
// TODO: test requestId
}
/**
* Test the property 'context'
*/
@Test
public void contextTest() {
// TODO: test context
}
/**
* Test the property 'error'
*/
@Test
public void errorTest() {
// TODO: test error
}
}
|
[
"kristiyan.ivanov@menasoftware.com"
] |
kristiyan.ivanov@menasoftware.com
|
f84d89e33532c3c4fb9e1df554121e833c34dfb2
|
41454413064878e0d2216fcc96a5a9e8e85943ed
|
/src/main/java/example/controller/IndexController.java
|
36cb646c7ae621aaa40f4dd4e93a00f063c9dc0a
|
[] |
no_license
|
523570822/SpringMV
|
b98353423951c3b078610764ee24042b88b5d6b9
|
957474faff680c726801d35cbdfa5503270383c9
|
refs/heads/master
| 2020-03-27T08:24:03.703505
| 2018-08-27T05:34:07
| 2018-08-27T05:34:07
| 146,250,599
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 436
|
java
|
package example.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
@RequestMapping("/home")
public class IndexController {
@RequestMapping("/index")
public ModelAndView index() {
ModelAndView mv = new ModelAndView();
mv.setViewName("index");
return mv;
}
}
|
[
"523570822@qq.com"
] |
523570822@qq.com
|
9b0d0c6960234dde18ad1975df1ac74598b9f771
|
62a1719c9c932db99334dc937e71365fb732b363
|
/com/fasterxml/jackson/databind/deser/impl/JavaUtilCollectionsDeserializers.java
|
c9a37d10f60425117c10b0dc06552f103b795eb4
|
[] |
no_license
|
GamerHun1238/liambuddy
|
37fd77c6ff81752e87e693728e12a27c368b9f25
|
a1a9a319dc401c527414c850f11732b431e75208
|
refs/heads/main
| 2023-06-12T10:12:15.787917
| 2021-07-06T17:14:56
| 2021-07-06T17:14:56
| 383,539,574
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,830
|
java
|
package com.fasterxml.jackson.databind.deser.impl;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.deser.std.StdDelegatingDeserializer;
import com.fasterxml.jackson.databind.type.TypeFactory;
import com.fasterxml.jackson.databind.util.Converter;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
public abstract class JavaUtilCollectionsDeserializers
{
private static final int TYPE_SINGLETON_SET = 1;
private static final int TYPE_SINGLETON_LIST = 2;
private static final int TYPE_SINGLETON_MAP = 3;
private static final int TYPE_UNMODIFIABLE_SET = 4;
private static final int TYPE_UNMODIFIABLE_LIST = 5;
private static final int TYPE_UNMODIFIABLE_MAP = 6;
public static final int TYPE_AS_LIST = 7;
private static final Class<?> CLASS_AS_ARRAYS_LIST = Arrays.asList(new Object[] { null, null }).getClass();
private static final Class<?> CLASS_SINGLETON_SET;
private static final Class<?> CLASS_SINGLETON_LIST;
private static final Class<?> CLASS_SINGLETON_MAP;
private static final Class<?> CLASS_UNMODIFIABLE_SET;
private static final Class<?> CLASS_UNMODIFIABLE_LIST;
private static final Class<?> CLASS_UNMODIFIABLE_LIST_ALIAS;
private static final Class<?> CLASS_UNMODIFIABLE_MAP;
static
{
Set<?> set = Collections.singleton(Boolean.TRUE);
CLASS_SINGLETON_SET = set.getClass();
CLASS_UNMODIFIABLE_SET = Collections.unmodifiableSet(set).getClass();
List<?> list = Collections.singletonList(Boolean.TRUE);
CLASS_SINGLETON_LIST = list.getClass();
CLASS_UNMODIFIABLE_LIST = Collections.unmodifiableList(list).getClass();
CLASS_UNMODIFIABLE_LIST_ALIAS = Collections.unmodifiableList(new LinkedList()).getClass();
Map<?, ?> map = Collections.singletonMap("a", "b");
CLASS_SINGLETON_MAP = map.getClass();
CLASS_UNMODIFIABLE_MAP = Collections.unmodifiableMap(map).getClass();
}
public static JsonDeserializer<?> findForCollection(DeserializationContext ctxt, JavaType type)
throws JsonMappingException
{
JavaUtilCollectionsConverter conv;
if (type.hasRawClass(CLASS_AS_ARRAYS_LIST)) {
conv = converter(7, type, List.class); } else { JavaUtilCollectionsConverter conv;
if (type.hasRawClass(CLASS_SINGLETON_LIST)) {
conv = converter(2, type, List.class); } else { JavaUtilCollectionsConverter conv;
if (type.hasRawClass(CLASS_SINGLETON_SET)) {
conv = converter(1, type, Set.class);
} else { JavaUtilCollectionsConverter conv;
if ((type.hasRawClass(CLASS_UNMODIFIABLE_LIST)) || (type.hasRawClass(CLASS_UNMODIFIABLE_LIST_ALIAS))) {
conv = converter(5, type, List.class); } else { JavaUtilCollectionsConverter conv;
if (type.hasRawClass(CLASS_UNMODIFIABLE_SET)) {
conv = converter(4, type, Set.class);
} else
return null; } } } }
JavaUtilCollectionsConverter conv;
return new StdDelegatingDeserializer(conv);
}
public static JsonDeserializer<?> findForMap(DeserializationContext ctxt, JavaType type)
throws JsonMappingException
{
JavaUtilCollectionsConverter conv;
if (type.hasRawClass(CLASS_SINGLETON_MAP)) {
conv = converter(3, type, Map.class); } else { JavaUtilCollectionsConverter conv;
if (type.hasRawClass(CLASS_UNMODIFIABLE_MAP)) {
conv = converter(6, type, Map.class);
} else
return null; }
JavaUtilCollectionsConverter conv;
return new StdDelegatingDeserializer(conv);
}
static JavaUtilCollectionsConverter converter(int kind, JavaType concreteType, Class<?> rawSuper)
{
return new JavaUtilCollectionsConverter(kind, concreteType.findSuperType(rawSuper), null);
}
public JavaUtilCollectionsDeserializers() {}
private static class JavaUtilCollectionsConverter
implements Converter<Object, Object>
{
private final JavaType _inputType;
private final int _kind;
private JavaUtilCollectionsConverter(int kind, JavaType inputType)
{
_inputType = inputType;
_kind = kind;
}
public Object convert(Object value)
{
if (value == null) {
return null;
}
switch (_kind)
{
case 1:
Set<?> set = (Set)value;
_checkSingleton(set.size());
return Collections.singleton(set.iterator().next());
case 2:
List<?> list = (List)value;
_checkSingleton(list.size());
return Collections.singletonList(list.get(0));
case 3:
Map<?, ?> map = (Map)value;
_checkSingleton(map.size());
Map.Entry<?, ?> entry = (Map.Entry)map.entrySet().iterator().next();
return Collections.singletonMap(entry.getKey(), entry.getValue());
case 4:
return Collections.unmodifiableSet((Set)value);
case 5:
return Collections.unmodifiableList((List)value);
case 6:
return Collections.unmodifiableMap((Map)value);
}
return value;
}
public JavaType getInputType(TypeFactory typeFactory)
{
return _inputType;
}
public JavaType getOutputType(TypeFactory typeFactory)
{
return _inputType;
}
private void _checkSingleton(int size) {
if (size != 1)
{
throw new IllegalArgumentException("Can not deserialize Singleton container from " + size + " entries");
}
}
}
}
|
[
"gamerhun1253@gmail.com"
] |
gamerhun1253@gmail.com
|
ed23d077e81b14ee2699d6c2e109ed23115ca7f0
|
de3cc32c392bda4cbc33903259f99194c78bf4d7
|
/src/main/java/io/github/jhipster/application/service/MetaListService.java
|
529984e2fd70fe5ad9aa033800b7d04035884599
|
[] |
no_license
|
Orvas/jhipster-sample-application
|
526d4a05098dd508ee66d478b2e419f9b65af96d
|
86da109ed1f76fc89370d9d3428d5cbc09ace482
|
refs/heads/master
| 2022-12-22T21:07:49.001252
| 2019-05-31T14:25:34
| 2019-05-31T14:25:34
| 189,054,767
| 1
| 0
| null | 2022-12-16T04:52:31
| 2019-05-28T15:24:59
|
Java
|
UTF-8
|
Java
| false
| false
| 2,521
|
java
|
package io.github.jhipster.application.service;
import io.github.jhipster.application.domain.MetaList;
import io.github.jhipster.application.repository.MetaListRepository;
import io.github.jhipster.application.service.dto.MetaListDTO;
import io.github.jhipster.application.service.mapper.MetaListMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Optional;
/**
* Service Implementation for managing {@link MetaList}.
*/
@Service
@Transactional
public class MetaListService {
private final Logger log = LoggerFactory.getLogger(MetaListService.class);
private final MetaListRepository metaListRepository;
private final MetaListMapper metaListMapper;
public MetaListService(MetaListRepository metaListRepository, MetaListMapper metaListMapper) {
this.metaListRepository = metaListRepository;
this.metaListMapper = metaListMapper;
}
/**
* Save a metaList.
*
* @param metaListDTO the entity to save.
* @return the persisted entity.
*/
public MetaListDTO save(MetaListDTO metaListDTO) {
log.debug("Request to save MetaList : {}", metaListDTO);
MetaList metaList = metaListMapper.toEntity(metaListDTO);
metaList = metaListRepository.save(metaList);
return metaListMapper.toDto(metaList);
}
/**
* Get all the metaLists.
*
* @param pageable the pagination information.
* @return the list of entities.
*/
@Transactional(readOnly = true)
public Page<MetaListDTO> findAll(Pageable pageable) {
log.debug("Request to get all MetaLists");
return metaListRepository.findAll(pageable)
.map(metaListMapper::toDto);
}
/**
* Get one metaList by id.
*
* @param id the id of the entity.
* @return the entity.
*/
@Transactional(readOnly = true)
public Optional<MetaListDTO> findOne(Long id) {
log.debug("Request to get MetaList : {}", id);
return metaListRepository.findById(id)
.map(metaListMapper::toDto);
}
/**
* Delete the metaList by id.
*
* @param id the id of the entity.
*/
public void delete(Long id) {
log.debug("Request to delete MetaList : {}", id);
metaListRepository.deleteById(id);
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
1007d717eebc3475980c0fca41fa044180e88c81
|
9d6089379238e00c0a5fb2949c1a6e7c19b50958
|
/bin/ext-accelerator/acceleratorcms/src/de/hybris/platform/acceleratorcms/component/container/impl/DefaultCMSComponentContainerStrategyRegistry.java
|
c8750665f222311a085b7331a0d10c85a8635b1b
|
[] |
no_license
|
ChintalaVenkat/learning_hybris
|
55ce582b4796a843511d0ea83f4859afea52bd88
|
6d29f59578512f9fa44a3954dc67d0f0a5216f9b
|
refs/heads/master
| 2021-06-18T17:47:12.173132
| 2021-03-26T11:00:09
| 2021-03-26T11:00:09
| 193,689,090
| 0
| 0
| null | 2019-06-25T10:46:40
| 2019-06-25T10:46:39
| null |
UTF-8
|
Java
| false
| false
| 2,494
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2014 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with hybris.
*
*
*/
package de.hybris.platform.acceleratorcms.component.container.impl;
import de.hybris.platform.acceleratorcms.component.container.CMSComponentContainerStrategy;
import de.hybris.platform.cms2.model.contents.components.AbstractCMSComponentModel;
import de.hybris.platform.cms2.model.contents.containers.AbstractCMSComponentContainerModel;
import de.hybris.platform.servicelayer.type.TypeService;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Required;
/**
*/
public class DefaultCMSComponentContainerStrategyRegistry implements CMSComponentContainerStrategy
{
private TypeService typeService;
private Map<String, CMSComponentContainerStrategy> strategies;
private CMSComponentContainerStrategy defaultCMSComponentContainerStrategy;
protected TypeService getTypeService()
{
return typeService;
}
@Required
public void setTypeService(final TypeService typeService)
{
this.typeService = typeService;
}
protected Map<String, CMSComponentContainerStrategy> getStrategies()
{
return strategies;
}
@Required
public void setStrategies(final Map<String, CMSComponentContainerStrategy> strategies)
{
this.strategies = strategies;
}
protected CMSComponentContainerStrategy getDefaultCMSComponentContainerStrategy()
{
return defaultCMSComponentContainerStrategy;
}
@Required
public void setDefaultCMSComponentContainerStrategy(final CMSComponentContainerStrategy defaultCMSComponentContainerStrategy)
{
this.defaultCMSComponentContainerStrategy = defaultCMSComponentContainerStrategy;
}
@Override
public List<AbstractCMSComponentModel> getDisplayComponentsForContainer(final AbstractCMSComponentContainerModel container)
{
final String typeCode = getTypeService().getComposedTypeForClass(container.getClass()).getCode();
final Map<String, CMSComponentContainerStrategy> map = getStrategies();
if (map != null && map.containsKey(typeCode))
{
return map.get(typeCode).getDisplayComponentsForContainer(container);
}
return getDefaultCMSComponentContainerStrategy().getDisplayComponentsForContainer(container);
}
}
|
[
"a.basov@aimprosoft.com"
] |
a.basov@aimprosoft.com
|
51bf8d55aa80995161ae41fede49e248daef9d88
|
063f3b313356c366f7c12dd73eb988a73130f9c9
|
/erp_ejb/src_nomina/com/bydan/erp/nomina/business/entity/EvaluacionNomiAdditional.java
|
49ddcbe6fa04d817b71d15f26a96188e3d71c8fc
|
[
"Apache-2.0"
] |
permissive
|
bydan/pre
|
0c6cdfe987b964e6744ae546360785e44508045f
|
54674f4dcffcac5dbf458cdf57a4c69fde5c55ff
|
refs/heads/master
| 2020-12-25T14:58:12.316759
| 2016-09-01T03:29:06
| 2016-09-01T03:29:06
| 67,094,354
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,126
|
java
|
/*
*ADVERTENCIA : Este programa esta protegido por la ley de derechos de autor.
*La reproducci?n o distribuci?n il?cita de este programa o de cualquiera de
*sus partes esta penado por la ley con severas sanciones civiles y penales,
*y ser?n objeto de todas las sanciones legales que correspondan.
*/
/*Empresa: com.bydan
*Programador: ByDan
*Descripcion: Clase que contiene todos los Accesos a BDD de tabla EvaluacionNomi
* Fecha Creacion: jueves, 10 de octubre de 2013
**CAMBIOS*****
* Motivo Cambio:
* Nombre Programador:
* Fecha Cambio:
**************
*/
package com.bydan.erp.nomina.business.entity;
import java.util.ArrayList;
import javax.persistence.MappedSuperclass;
import com.bydan.framework.erp.business.entity.DatoGeneral;
import com.bydan.framework.erp.business.entity.*;//GeneralEntity;
@SuppressWarnings("unused")
@MappedSuperclass
public class EvaluacionNomiAdditional extends GeneralEntity {
//CONTROL_INICIO
public EvaluacionNomiAdditional() throws Exception {
super();
try {
} catch(Exception e) {
throw e;
}
}
//CONTROL_FUNCION1
}
|
[
"byrondanilo10@hotmail.com"
] |
byrondanilo10@hotmail.com
|
108885786a369b4906468ad48226812fdd3d4d31
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_ae13325130289ef2f9633d2218cbe9e4617af765/SearchSuggestionsProvider/2_ae13325130289ef2f9633d2218cbe9e4617af765_SearchSuggestionsProvider_s.java
|
c465b740f3214ca102a6d9acb58c59c279402ed0
|
[] |
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,605
|
java
|
package com.dedaulus.cinematty.framework;
import android.app.Application;
import android.app.SearchManager;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.MatrixCursor;
import android.net.Uri;
import android.provider.BaseColumns;
import com.dedaulus.cinematty.CinemattyApplication;
import com.dedaulus.cinematty.R;
import com.dedaulus.cinematty.framework.tools.Constants;
import com.dedaulus.cinematty.framework.tools.DataConverter;
import java.util.Map;
/**
* User: Dedaulus
* Date: 27.02.12
* Time: 19:53
*/
public class SearchSuggestionsProvider extends ContentProvider {
private static final UriMatcher uriMatcher;
public static final String AUTHORITY = "com.dedaulus.cinematty.provider";
private static final String TABLE_NAME = "search_suggestions";
private static final int SS = 1;
private CinemattyApplication app;
static {
uriMatcher = new UriMatcher(UriMatcher.NO_MATCH);
uriMatcher.addURI(AUTHORITY, TABLE_NAME, SS);
}
@Override
public boolean onCreate() {
Application app = (Application)getContext();
if (app == null) return false;
this.app = (CinemattyApplication)app;
return true;
}
@Override
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
MatrixCursor cursor = new MatrixCursor(new String[] {
BaseColumns._ID,
SearchManager.SUGGEST_COLUMN_INTENT_DATA,
SearchManager.SUGGEST_COLUMN_INTENT_EXTRA_DATA,
SearchManager.SUGGEST_COLUMN_TEXT_1,
SearchManager.SUGGEST_COLUMN_TEXT_2,
SearchManager.SUGGEST_COLUMN_ICON_1
});
if (selectionArgs[0].length() > 1) {
String searchString = selectionArgs[0];
String pattern = new StringBuilder().append("(?i).* [\"«„”‘]*").append(searchString).append(".*|(?i)^[\"«„”‘]*").append(searchString).append(".*").toString();
int i = 0;
Map<String, Cinema> cinemas = app.getSettings().getCinemas();
for (String caption : cinemas.keySet()) {
if (caption.matches(pattern)) {
MatrixCursor.RowBuilder row = cursor.newRow();
row.add(i);
row.add(caption);
row.add(Constants.CINEMA_TYPE_ID);
row.add(caption);
row.add(cinemas.get(caption).getAddress());
row.add(R.drawable.ic_search_cinema);
++i;
}
}
Map<String, Movie> movies = app.getSettings().getMovies();
for (String caption : movies.keySet()) {
if (caption.matches(pattern)) {
MatrixCursor.RowBuilder row = cursor.newRow();
row.add(i);
row.add(caption);
row.add(Constants.MOVIE_TYPE_ID);
row.add(caption);
row.add(DataConverter.genresToString(movies.get(caption).getGenres().values()));
row.add(R.drawable.ic_search_movie);
++i;
}
}
Map<String, MovieActor> actors = app.getSettings().getActors();
for (String caption : actors.keySet()) {
if (caption.matches(pattern)) {
MatrixCursor.RowBuilder row = cursor.newRow();
row.add(i);
row.add(caption);
row.add(Constants.ACTOR_TYPE_ID);
row.add(caption);
row.add(null);
row.add(R.drawable.ic_search_actor);
++i;
}
}
}
return cursor;
}
@Override
public String getType(Uri uri) {
return null;
}
@Override
public Uri insert(Uri uri, ContentValues contentValues) {
return null;
}
@Override
public int delete(Uri uri, String s, String[] strings) {
return 0;
}
@Override
public int update(Uri uri, ContentValues contentValues, String s, String[] strings) {
return 0;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
048031c0f98e60ab16b30ead2d56bdfc14e6e9da
|
75d7961eec1c17c4dc4f172d673c21e00e72fa54
|
/src/main/java/com/bogus/carrental/model/dtos/CarReturnDto.java
|
15d4816d2b2359fcc152d5f7ca5bf1ec810680c4
|
[] |
no_license
|
jablonskiboguslaw1/carrental
|
bacdc0ace58596c341225ecc4dd59624b38f1b30
|
1601eaf4bfddee3ef310ad18e2e59127b0373c71
|
refs/heads/master
| 2023-01-04T00:35:11.263533
| 2020-10-19T20:54:15
| 2020-10-19T20:54:15
| 292,578,650
| 0
| 0
| null | 2020-10-19T20:54:16
| 2020-09-03T13:30:00
|
Java
|
UTF-8
|
Java
| false
| false
| 407
|
java
|
package com.bogus.carrental.model.dtos;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import java.math.BigDecimal;
import java.time.LocalDate;
@Getter
@Setter
@Builder
public class CarReturnDto {
private Long id;
private Long employeeId;
private LocalDate dateOfReturn;
private String comments;
private BigDecimal additionalPayments;
}
|
[
"jablonski.boguslaw@gmail.com"
] |
jablonski.boguslaw@gmail.com
|
5b7fba60f9bbacbee55fd6c9f42bb5eb40adb509
|
8e3def5bd41892c3ec43ba50f88f7985eac10389
|
/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/thrift/TestSentryWebServerWithoutSecurity.java
|
27e518ba0072357cbfe6317facea52bbece092c2
|
[
"Apache-2.0",
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] |
permissive
|
cschenyuan/sentry-hack
|
47290517f26a09fd8f06ae1dae4e9296b2c0196f
|
653af768ce1b714f4147dbde3010ed5feb9ebcba
|
refs/heads/master
| 2022-11-04T20:40:00.225537
| 2022-06-30T01:51:35
| 2022-06-30T01:51:35
| 47,813,406
| 0
| 1
|
Apache-2.0
| 2022-10-12T20:06:27
| 2015-12-11T08:05:08
|
Java
|
UTF-8
|
Java
| false
| false
| 1,997
|
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.sentry.provider.db.service.thrift;
import java.net.HttpURLConnection;
import java.net.URL;
import org.apache.commons.io.IOUtils;
import org.apache.sentry.SentryUserException;
import org.apache.sentry.service.thrift.SentryServiceIntegrationBase;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
public class TestSentryWebServerWithoutSecurity extends SentryServiceIntegrationBase {
@BeforeClass
public static void setup() throws Exception {
webServerEnabled = true;
webSecurity = false;
SentryServiceIntegrationBase.setup();
}
@Override
@Before
public void before() throws Exception {
}
@Override
@After
public void after() throws SentryUserException {
}
@Test
public void testPing() throws Exception {
final URL url = new URL("http://"+ SERVER_HOST + ":" + webServerPort + "/ping");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
Assert.assertEquals(HttpURLConnection.HTTP_OK, conn.getResponseCode());
String response = IOUtils.toString(conn.getInputStream());
Assert.assertEquals("pong\n", response);
}
}
|
[
"chenyuan_cs@163.com"
] |
chenyuan_cs@163.com
|
9f3a09282be1f53286d56f14e9c62e92f076e977
|
3a24dd7e353fcb168ab8e9667833b788d867a8bb
|
/snail/src/main/java/com/acgist/snail/context/EntityContext.java
|
858ea89c71ec972bb1975ee18ad51afbffcf9180
|
[
"Apache-2.0"
] |
permissive
|
acgist/snail
|
0bcb1d59d8094ac46b4bf19775068b8748dac3bb
|
8adfb3f10a5ae001beaa1ddd9457cffd01574e38
|
refs/heads/master
| 2023-08-31T04:42:42.641460
| 2023-08-26T03:03:43
| 2023-08-26T03:03:43
| 195,489,548
| 322
| 63
|
Apache-2.0
| 2023-04-08T07:17:05
| 2019-07-06T02:42:11
|
Java
|
UTF-8
|
Java
| false
| false
| 5,754
|
java
|
package com.acgist.snail.context;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import java.util.UUID;
import com.acgist.snail.config.DownloadConfig;
import com.acgist.snail.context.entity.Entity;
import com.acgist.snail.context.entity.TaskEntity;
import com.acgist.snail.gui.recycle.RecycleContext;
import com.acgist.snail.logger.Logger;
import com.acgist.snail.logger.LoggerFactory;
import com.acgist.snail.utils.FileUtils;
/**
* 实体上下文
*
* @author acgist
*/
public final class EntityContext implements IContext {
private static final Logger LOGGER = LoggerFactory.getLogger(EntityContext.class);
/**
* 实体文件
*/
private static final String ENTITY_FILE_PATH = "./config/snail.entities";
/**
* 实体列表
*/
private final List<Entity> allEntities;
private static final EntityContext INSTANCE = new EntityContext();
public static final EntityContext getInstance() {
return INSTANCE;
}
private EntityContext() {
this.allEntities = new ArrayList<>();
}
/**
* 保存实体
*
* @param entity 实体
*/
public void save(Entity entity) {
EntityException.requireNotNull(entity);
EntityException.requireNull(entity.getId());
entity.setId(UUID.randomUUID().toString());
entity.setCreateDate(new Date());
entity.setModifyDate(new Date());
LOGGER.debug("保存实体:{}", entity);
synchronized (this) {
this.allEntities.add(entity);
}
this.persistent();
}
/**
* 更新实体
*
* @param entity 实体
*/
public void update(Entity entity) {
EntityException.requireNotNull(entity);
EntityException.requireNotNull(entity.getId());
entity.setModifyDate(new Date());
LOGGER.debug("更新实体:{}", entity);
this.persistent();
}
/**
* 删除实体
*
* @param id 实体ID
*
* @return 是否删除成功
*/
public boolean delete(String id) {
LOGGER.debug("删除实体:{}", id);
boolean success = false;
synchronized (this) {
success = this.allEntities.removeIf(entity -> entity.getId().equals(id));
}
if(success) {
// 删除成功保存实体
this.persistent();
} else {
LOGGER.warn("删除实体无效:{}", id);
}
return success;
}
/**
* 加载实体
*/
public void load() {
final File file = new File(ENTITY_FILE_PATH);
if(!file.exists()) {
LOGGER.debug("加载实体文件无效:{}", file);
return;
}
try (
final ObjectInput input = new ObjectInputStream(new FileInputStream(file));
) {
final List<?> list = (List<?>) input.readObject();
synchronized (this) {
this.allEntities.clear();
list.forEach(object -> {
if(object instanceof Entity entity) {
this.allEntities.add(entity);
} else {
LOGGER.warn("未知实体类型:{}", object);
}
});
if(LOGGER.isDebugEnabled()) {
LOGGER.debug("加载实体数量:{}", this.allEntities.size());
}
}
} catch (IOException | ClassNotFoundException e) {
LOGGER.error("加载实体异常", e);
}
}
/**
* 保存实体
*/
public void persistent() {
final List<Entity> list = new ArrayList<>();
synchronized (this) {
list.addAll(this.allEntities);
}
if(LOGGER.isDebugEnabled()) {
LOGGER.debug("保存实体数量:{}", list.size());
}
final File file = new File(ENTITY_FILE_PATH);
FileUtils.buildParentFolder(file);
try (
final ObjectOutput output = new ObjectOutputStream(new FileOutputStream(file));
) {
output.writeObject(list);
} catch (IOException e) {
LOGGER.error("保存实体异常", e);
}
}
/**
* @return 所有任务实体列表
*/
public List<TaskEntity> allTask() {
synchronized (this) {
return this.allEntities.stream()
.map(v -> {
if(v instanceof TaskEntity entity) {
return entity;
} else {
return null;
}
})
.filter(Objects::nonNull)
.toList();
}
}
/**
* 删除任务
*
* @param entity 任务
*
* @return 是否删除成功
*/
public boolean deleteTask(TaskEntity entity) {
EntityException.requireNotNull(entity);
EntityException.requireNotNull(entity.getId());
LOGGER.debug("删除任务:{} - {}", entity.getId(), entity.getName());
// 是否删除文件
if(DownloadConfig.getDelete()) {
final String file = entity.getFile();
// 回收文件
if(!RecycleContext.recycle(file)) {
// 删除文件
FileUtils.delete(file);
}
}
return this.delete(entity.getId());
}
}
|
[
"289547414@qq.com"
] |
289547414@qq.com
|
32dff91cc2c6c38ca8a41e6badb1a8ff9df61163
|
d5b6419a819a0a19b5bdf6d2747de494998ce6cd
|
/src/mmarquee/automation/controls/AutomationDocumentPage.java
|
f0f04a091df3dc8214ad621176a1256456cdd56c
|
[] |
no_license
|
riggs84/gs-win-automation
|
965305ced71a47ff28b8b9d93c26c7e2bceb32fb
|
2d0c0db84661cce48a8d18bd657355aa7a02db36
|
refs/heads/master
| 2021-09-10T00:32:49.462782
| 2018-03-20T11:39:54
| 2018-03-20T11:39:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,293
|
java
|
package mmarquee.automation.controls;
import mmarquee.automation.AutomationElement;
import mmarquee.automation.AutomationException;
import mmarquee.automation.pattern.ItemContainer;
import mmarquee.automation.pattern.PatternNotFoundException;
/**
* Created by Mark Humphreys on 28/01/2017.
*
* Represents a page in a document - i.e. a Word document.
*
* It seems to be a specific set of custom elements.
*/
public class AutomationDocumentPage extends AutomationCustom {
/**
* Constructor for the AutomationDocumentPage
* @param element The element
* @throws AutomationException Automation library error
* @throws PatternNotFoundException Pattern not found
*/
public AutomationDocumentPage (AutomationElement element) throws PatternNotFoundException, AutomationException {
super(element);
}
/**
* Constructor for the AutomationDocumentPage
* @param element The element
* @param container ItemContainer pattern
* @throws AutomationException Automation library error
* @throws PatternNotFoundException Pattern not found
*/
public AutomationDocumentPage (AutomationElement element, ItemContainer container) throws PatternNotFoundException, AutomationException {
super(element, container);
}
}
|
[
"="
] |
=
|
ad7995f9305b243f24003ecbb1394de5aaed4815
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/33/33_609fe06e01068a2770341cf5e1d264fe25a79b99/GardenView/33_609fe06e01068a2770341cf5e1d264fe25a79b99_GardenView_t.java
|
60765c8865bb1ae877ab045522d2632bfd54a181
|
[] |
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
| 8,176
|
java
|
package edu.berkeley.cs160.smartnature;
import android.content.Context;
import android.content.Intent;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
public class GardenView extends View implements View.OnClickListener, View.OnLongClickListener, View.OnTouchListener {
GardenScreen context;
Garden garden;
/** plot that is currently pressed */
Plot focusedPlot;
/** the entire transformation matrix applied to the canvas */
Matrix m = new Matrix();
/** translation matrix applied to the canvas */
Matrix dragMatrix = new Matrix();
/** translation matrix applied to the background */
Matrix bgDragMatrix = new Matrix();
Drawable bg;
Paint textPaint;
float x, y, prevX, prevY, downX, downY;
float dist, prevDist;
float zoomScale = 1;
float textSize;
boolean portraitMode;
int tempColor;
private final static int IDLE = 0, TOUCH_SCREEN = 1, DRAG_SCREEN = 2, PINCH_ZOOM = 3;
private int mode;
public GardenView(Context context, AttributeSet attrs) {
super(context, attrs);
this.context = (GardenScreen) context;
textSize = getResources().getDimension(R.dimen.labelsize_default);
initPaint();
bg = getResources().getDrawable(R.drawable.tile);
initPaint();
initMockData();
setOnClickListener(this);
setOnTouchListener(this);
setOnLongClickListener(this);
}
public void initMockData() {
garden = context.mockGarden;
for (Plot plot : garden.getPlots()) {
Paint p = plot.getPaint();
p.setStrokeWidth(getResources().getDimension(R.dimen.strokesize_default));
}
}
public void initPaint() {
textPaint = new Paint(Paint.ANTI_ALIAS_FLAG|Paint.FAKE_BOLD_TEXT_FLAG|Paint.DEV_KERN_TEXT_FLAG);
textPaint.setTextAlign(Paint.Align.CENTER);
textPaint.setTextScaleX(getResources().getDimension(R.dimen.labelxscale_default));
textPaint.setTextSize(textSize);
}
/** called when user clicks "zoom to fit" */
public void reset() {
zoomScale = 1;
textPaint.setTextScaleX(getResources().getDimension(R.dimen.labelxscale_default));
textPaint.setTextSize(textSize);
dragMatrix.reset();
bgDragMatrix.reset();
invalidate();
}
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
int width = getWidth(), height = getHeight();
portraitMode = width < height;
// draw background grid
canvas.save();
canvas.concat(bgDragMatrix);
bg.setBounds(canvas.getClipBounds());
bg.draw(canvas);
canvas.restore();
m.reset();
RectF gardenBounds = context.showFullScreen ? garden.getBounds() : garden.getBounds(portraitMode);
m.setRectToRect(gardenBounds, getBounds(), Matrix.ScaleToFit.CENTER);
if (portraitMode)
m.postRotate(90, width/2f, width/2f);
m.postConcat(dragMatrix);
m.postScale(zoomScale, zoomScale, width/2f, height/2f);
// draw plots
canvas.save();
canvas.concat(m);
for (Plot p: garden.getPlots()) {
canvas.save();
Rect bounds = p.getBounds();
canvas.rotate(p.getAngle(), bounds.centerX(), bounds.centerY());
p.getShape().draw(canvas);
canvas.restore();
}
canvas.restore();
//draw labels
if (context.showLabels)
for (Plot p: garden.getPlots()) {
RectF rbounds = p.getRotateBounds();
float[] labelLoc;
if (portraitMode)
labelLoc = new float[] { rbounds.left - 10, rbounds.centerY() };
else
labelLoc = new float[] { rbounds.centerX(), rbounds.top - 10 };
m.mapPoints(labelLoc);
canvas.drawText(p.getName().toUpperCase(), labelLoc[0], labelLoc[1], textPaint);
}
}
public RectF getBounds() {
if (portraitMode)
return new RectF(getLeft(), getTop(), getBottom(), getRight());
else
return new RectF(getLeft(), getTop(), getRight(), getBottom());
}
@Override
public void onAnimationEnd() {
zoomScale *= Math.pow(getResources().getDimension(R.dimen.zoom_scalar), context.zoomPressed);
textPaint.setTextSize(Math.max(textSize * zoomScale, getResources().getDimension(R.dimen.labelsize_min)));
invalidate();
context.zoomPressed = 0;
}
@Override
public void onClick(View view) {
if (focusedPlot != null) {
Intent intent = new Intent(context, PlotScreen.class);
intent.putExtra("name", focusedPlot.getName());
intent.putExtra("garden_id", GardenGnome.gardens.indexOf(garden));
intent.putExtra("plot_id", garden.getPlots().indexOf(focusedPlot));
context.startActivityForResult(intent, GardenScreen.VIEW_PLOT);
//context.handleZoom();
}
}
@Override
public boolean onLongClick(View view) {
if (focusedPlot != null) {
Intent intent = new Intent(context, EditScreen.class);
intent.putExtra("name", focusedPlot.getName());
intent.putExtra("garden_id", GardenGnome.gardens.indexOf(garden));
intent.putExtra("plot_id", garden.indexOf(focusedPlot));
intent.putExtra("zoom_scale", zoomScale);
float[] values = new float[9], bgvalues = new float[9];
dragMatrix.getValues(values);
bgDragMatrix.getValues(bgvalues);
intent.putExtra("drag_matrix", values);
intent.putExtra("bgdrag_matrix", bgvalues);
focusedPlot.getPaint().setColor(tempColor);
context.startActivityForResult(intent, 0);
context.overridePendingTransition(0, 0);
return true;
}
return false;
}
@Override
public boolean onTouch(View view, MotionEvent event) {
onTouchEvent(event);
context.handleZoom();
x = event.getX(); y = event.getY();
//System.out.println(event.getPointerCount() + " pointers, " + event.getAction());
switch (event.getAction() & MotionEvent.ACTION_MASK) {
case MotionEvent.ACTION_DOWN:
mode = TOUCH_SCREEN;
downX = x; downY = y;
focusedPlot = garden.plotAt(x, y, m);
if (focusedPlot != null) {
// set focused plot appearance
tempColor = focusedPlot.getPaint().getColor();
focusedPlot.getPaint().setColor(getResources().getColor(R.color.focused_plot));
focusedPlot.getPaint().setStrokeWidth(getResources().getDimension(R.dimen.strokesize_active));
}
break;
case MotionEvent.ACTION_POINTER_DOWN:
float diffX = event.getX(0) - event.getX(1);
float diffY = event.getY(0) - event.getY(1);
dist = diffX * diffX + diffY * diffY;
if (dist > 10) {
mode = PINCH_ZOOM;
if (focusedPlot != null) {
focusedPlot.getPaint().setColor(tempColor);
focusedPlot.getPaint().setStrokeWidth(getResources().getDimension(R.dimen.strokesize_default));
focusedPlot = null;
}
}
break;
case MotionEvent.ACTION_POINTER_UP:
mode = IDLE;
break;
case MotionEvent.ACTION_MOVE:
if (mode == PINCH_ZOOM) {
prevDist = dist;
diffX = event.getX(0) - event.getX(1);
diffY = event.getY(0) - event.getY(1);
dist = diffX * diffX + diffY * diffY;
//zoomScale *= dist/prevDist;
zoomScale = (zoomScale * (dist/prevDist + 1))/2; // less "sensitive"
onAnimationEnd();
}
else if (mode != IDLE) {
float dx = x - prevX, dy = y - prevY;
dragMatrix.postTranslate(dx / zoomScale, dy / zoomScale);
bgDragMatrix.postTranslate(dx, dy);
if (mode == TOUCH_SCREEN && (Math.abs(downX - x) > 5 || Math.abs(downY - y) > 5)) // show some leniency
mode = DRAG_SCREEN;
if (mode == DRAG_SCREEN && focusedPlot != null) {
// plot can no longer be clicked so reset appearance
focusedPlot.getPaint().setColor(tempColor);
focusedPlot.getPaint().setStrokeWidth(getResources().getDimension(R.dimen.strokesize_default));
focusedPlot = null;
}
}
break;
case MotionEvent.ACTION_UP:
mode = IDLE;
if (focusedPlot != null) {
// reset clicked plot appearance
focusedPlot.getPaint().setColor(tempColor);
focusedPlot.getPaint().setStrokeWidth(3);
}
break;
}
prevX = x;
prevY = y;
invalidate();
return true;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
7145ccceafe00fea299b5f9afd9a46a49c27f943
|
89cf87a2674cad9bd52b0844bcac88fc811f6981
|
/src/main/java/com/beijunyi/hppc/models/data/forms/BloodTestRecord.java
|
ad5496ef53369443095cb6570774683e3cddb039
|
[] |
no_license
|
freelunchcap/hppc
|
f080d3bae751749a0023037497768fa3d4f9067b
|
1bc166edb1bb6e9361dd33901ca2e87436277edd
|
refs/heads/master
| 2023-01-10T17:27:36.922621
| 2022-12-26T02:54:05
| 2022-12-26T02:54:05
| 26,180,972
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,034
|
java
|
package com.beijunyi.hppc.models.data.forms;
import java.util.Date;
import javax.persistence.*;
@Entity
@Table(name = "blood_test_record")
public class BloodTestRecord {
@Id
@GeneratedValue
@Column(name = "id", unique = true, nullable = false)
private Integer id;
@Column(name = "parent_form", nullable = false, updatable = false)
private Integer parentForm;
@Column(name = "timestamp", nullable = false)
private Date timestamp;
@Column(name = "veterinarian_name", nullable = false)
private String veterinarianName;
@Column(name = "docimaster_name", nullable = false)
private String docimasterName;
@Column(name = "hct")
private Double hct;
@Column(name = "hcb")
private Double hcb;
@Column(name = "wbc")
private Double wbc;
@Column(name = "plt")
private Double plt;
@Column(name = "gran_rate")
private Double granRate;
@Column(name = "gran")
private Double gran;
@Column(name = "lym_rate")
private Double lymRate;
@Column(name = "lym")
private Double lym;
@Column(name = "supplementary_information")
private String supplementaryInformation;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getParentForm() {
return parentForm;
}
public void setParentForm(Integer parentForm) {
this.parentForm = parentForm;
}
public Date getTimestamp() {
return timestamp;
}
public void setTimestamp(Date timestamp) {
this.timestamp = timestamp;
}
public String getVeterinarianName() {
return veterinarianName;
}
public void setVeterinarianName(String veterinarianName) {
this.veterinarianName = veterinarianName;
}
public String getDocimasterName() {
return docimasterName;
}
public void setDocimasterName(String docimasterName) {
this.docimasterName = docimasterName;
}
public Double getHct() {
return hct;
}
public void setHct(Double hct) {
this.hct = hct;
}
public Double getHcb() {
return hcb;
}
public void setHcb(Double hcb) {
this.hcb = hcb;
}
public Double getWbc() {
return wbc;
}
public void setWbc(Double wbc) {
this.wbc = wbc;
}
public Double getPlt() {
return plt;
}
public void setPlt(Double plt) {
this.plt = plt;
}
public Double getGranRate() {
return granRate;
}
public void setGranRate(Double granRate) {
this.granRate = granRate;
}
public Double getGran() {
return gran;
}
public void setGran(Double gran) {
this.gran = gran;
}
public Double getLymRate() {
return lymRate;
}
public void setLymRate(Double lymRate) {
this.lymRate = lymRate;
}
public Double getLym() {
return lym;
}
public void setLym(Double lym) {
this.lym = lym;
}
public String getSupplementaryInformation() {
return supplementaryInformation;
}
public void setSupplementaryInformation(String supplementaryInformation) {
this.supplementaryInformation = supplementaryInformation;
}
}
|
[
"beijunyi@gmail.com"
] |
beijunyi@gmail.com
|
3b526b54fcc2ac8c7f438dc5eb15e09727db83dc
|
178ef1239b7b188501395c4d3db3f0266b740289
|
/android/hardware/location/GeofenceHardwareCallback.java
|
97e8e38280e92cff5796bf0ead7f3665dced7793
|
[] |
no_license
|
kailashrs/5z_framework
|
b295e53d20de0b6d2e020ee5685eceeae8c0a7df
|
1b7f76b1f06cfb6fb95d4dd41082a003d7005e5d
|
refs/heads/master
| 2020-04-26T12:31:27.296125
| 2019-03-03T08:58:23
| 2019-03-03T08:58:23
| 173,552,503
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 599
|
java
|
package android.hardware.location;
import android.annotation.SystemApi;
import android.location.Location;
@SystemApi
public abstract class GeofenceHardwareCallback
{
public GeofenceHardwareCallback() {}
public void onGeofenceAdd(int paramInt1, int paramInt2) {}
public void onGeofencePause(int paramInt1, int paramInt2) {}
public void onGeofenceRemove(int paramInt1, int paramInt2) {}
public void onGeofenceResume(int paramInt1, int paramInt2) {}
public void onGeofenceTransition(int paramInt1, int paramInt2, Location paramLocation, long paramLong, int paramInt3) {}
}
|
[
"kailash.sudhakar@gmail.com"
] |
kailash.sudhakar@gmail.com
|
65d0fecb2bb7c8c5ceabe1094115e2a5228bd6ac
|
bc5e6d9483c5b94878310a7c2a3e1dcb8d644202
|
/data/game/data/scripts/handlers/effecthandlers/OutpostCreate.java
|
c5fae25ee1b43c2c94c2447d05981c66723fe72d
|
[] |
no_license
|
finfan222/l2hf
|
17ecedb581c2f3f28d1b51229722082fa94560ae
|
bd3731afdac4791e19281790f47806fdcf6f11ae
|
refs/heads/master
| 2023-03-03T06:50:32.060299
| 2021-01-05T01:26:56
| 2021-01-05T01:26:56
| 326,816,095
| 0
| 0
| null | 2021-01-14T21:53:24
| 2021-01-04T21:50:23
|
Java
|
UTF-8
|
Java
| false
| false
| 2,266
|
java
|
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package handlers.effecthandlers;
import org.lineage.gameserver.data.xml.impl.NpcData;
import org.lineage.gameserver.instancemanager.TerritoryWarManager;
import org.lineage.gameserver.model.StatSet;
import org.lineage.gameserver.model.actor.instance.PlayerInstance;
import org.lineage.gameserver.model.actor.instance.SiegeFlagInstance;
import org.lineage.gameserver.model.conditions.Condition;
import org.lineage.gameserver.model.effects.AbstractEffect;
import org.lineage.gameserver.model.skills.BuffInfo;
/**
* Outpost Create effect implementation.
* @author UnAfraid
*/
public class OutpostCreate extends AbstractEffect
{
private static final int HQ_NPC_ID = 36590;
public OutpostCreate(Condition attachCond, Condition applyCond, StatSet set, StatSet params)
{
super(attachCond, applyCond, set, params);
}
@Override
public boolean isInstant()
{
return true;
}
@Override
public void onStart(BuffInfo info)
{
final PlayerInstance player = info.getEffector().getActingPlayer();
if (!player.isClanLeader())
{
return;
}
if (TerritoryWarManager.getInstance().isTWInProgress())
{
// Spawn a new flag
final SiegeFlagInstance flag = new SiegeFlagInstance(player, NpcData.getInstance().getTemplate(HQ_NPC_ID), true, true);
flag.setTitle(player.getClan().getName());
flag.setCurrentHpMp(flag.getMaxHp(), flag.getMaxMp());
flag.setHeading(player.getHeading());
flag.spawnMe(player.getX(), player.getY(), player.getZ() + 50);
TerritoryWarManager.getInstance().setHQForClan(player.getClan(), flag);
}
}
}
|
[
"finex.dev@gmail.com"
] |
finex.dev@gmail.com
|
a76894d994e8bbe8cff79f2ee4ff5778efbf5889
|
3197e8916df45825796ae8570cbf1d18f28f2965
|
/src/main/java/org/killbill/billing/client/model/gen/Duration.java
|
040aab2164699e6d75c81a64bd379019c6fee5d2
|
[
"Apache-2.0"
] |
permissive
|
YaredNegede/killbill-client-java
|
c462eec5c69f417cb734b5fac54f9b109892b333
|
a899abf8718c781185b626b2ded07a9183a19b88
|
refs/heads/master
| 2020-05-07T14:15:04.174722
| 2018-08-24T03:30:13
| 2018-08-24T03:30:13
| 180,585,342
| 1
| 0
|
Apache-2.0
| 2019-04-10T13:14:53
| 2019-04-10T13:14:52
| null |
UTF-8
|
Java
| false
| false
| 2,852
|
java
|
/*
* Copyright 2014-2018 Groupon, Inc
* Copyright 2014-2018 The Billing Project, LLC
*
* The Billing Project 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.killbill.billing.client.model.gen;
import java.util.Objects;
import java.util.Arrays;
import org.killbill.billing.catalog.api.TimeUnit;
/**
* DO NOT EDIT !!!
*
* This code has been generated by the Kill Bill swagger generator.
* @See https://github.com/killbill/killbill-swagger-coden
*/
import org.killbill.billing.client.model.KillBillObject;
public class Duration {
private TimeUnit unit = null;
private Integer number = null;
public Duration() {
}
public Duration(final TimeUnit unit,
final Integer number) {
this.unit = unit;
this.number = number;
}
public Duration setUnit(final TimeUnit unit) {
this.unit = unit;
return this;
}
public TimeUnit getUnit() {
return unit;
}
public Duration setNumber(final Integer number) {
this.number = number;
return this;
}
public Integer getNumber() {
return number;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Duration duration = (Duration) o;
return Objects.equals(this.unit, duration.unit) &&
Objects.equals(this.number, duration.number);
}
@Override
public int hashCode() {
return Objects.hash(unit,
number);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Duration {\n");
sb.append(" unit: ").append(toIndentedString(unit)).append("\n");
sb.append(" number: ").append(toIndentedString(number)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
|
[
"sbrossier@groupon.com"
] |
sbrossier@groupon.com
|
982c30b724a3118ed9f9996da1e4e31ee5dfeb78
|
ec9bf57a07b7b06134ec7a21407a11f69cc644f7
|
/src/idi.java
|
9e9aaee15f64e2193350005e93f396aad22e9086
|
[] |
no_license
|
jzarca01/com.ubercab
|
f95c12cab7a28f05e8f1d1a9d8a12a5ac7fbf4b1
|
e6b454fb0ad547287ae4e71e59d6b9482369647a
|
refs/heads/master
| 2020-06-21T04:37:43.723581
| 2016-07-19T16:30:34
| 2016-07-19T16:30:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 229
|
java
|
import java.util.Map;
public abstract interface idi
{
public abstract void a(int paramInt, Map<String, idn> paramMap);
}
/* Location:
* Qualified Name: idi
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
41cea3047660c138f926b49f7e5e9ff294f4ee43
|
be68bcbe1055784dfd723aa47ccca52f310fda5f
|
/sources/android/support/p010v7/widget/C0344au.java
|
40ee5eac1d4f83420827fded6179287f5806daf4
|
[] |
no_license
|
nicholaschum/DecompiledEvoziSmartLED
|
02710bc9b7ddb5db2f7fbbcebfe21605f8e889f8
|
42d3df21feac3d039219c3384e12e56e5f587028
|
refs/heads/master
| 2023-08-18T01:57:52.644220
| 2021-09-17T20:48:43
| 2021-09-17T20:48:43
| 407,675,617
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,151
|
java
|
package android.support.p010v7.widget;
import android.content.Context;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.support.p007v4.view.ViewCompat;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewTreeObserver;
import android.widget.AdapterView;
import android.widget.ListAdapter;
import android.widget.PopupWindow;
import android.widget.SpinnerAdapter;
/* renamed from: android.support.v7.widget.au */
final class C0344au extends ListPopupWindow {
/* renamed from: a */
ListAdapter f1659a;
/* renamed from: b */
final /* synthetic */ AppCompatSpinner f1660b;
/* renamed from: h */
private CharSequence f1661h;
/* renamed from: i */
private final Rect f1662i = new Rect();
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C0344au(AppCompatSpinner appCompatSpinner, Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
this.f1660b = appCompatSpinner;
mo4142b((View) appCompatSpinner);
mo4146h();
mo4145g();
mo4138a((AdapterView.OnItemClickListener) new C0345av(this, appCompatSpinner));
}
/* renamed from: a */
public final void mo3739a() {
ViewTreeObserver viewTreeObserver;
boolean d = mo3741d();
mo4339f();
mo4153o();
super.mo3739a();
this.f1433c.setChoiceMode(1);
int selectedItemPosition = this.f1660b.getSelectedItemPosition();
C0356bf bfVar = this.f1433c;
if (mo3741d() && bfVar != null) {
bfVar.mo4399a(false);
bfVar.setSelection(selectedItemPosition);
if (bfVar.getChoiceMode() != 0) {
bfVar.setItemChecked(selectedItemPosition, true);
}
}
if (!d && (viewTreeObserver = this.f1660b.getViewTreeObserver()) != null) {
C0346aw awVar = new C0346aw(this);
viewTreeObserver.addOnGlobalLayoutListener(awVar);
mo4140a((PopupWindow.OnDismissListener) new C0347ax(this, awVar));
}
}
/* renamed from: a */
public final void mo4139a(ListAdapter listAdapter) {
super.mo4139a(listAdapter);
this.f1659a = listAdapter;
}
/* renamed from: a */
public final void mo4336a(CharSequence charSequence) {
this.f1661h = charSequence;
}
/* access modifiers changed from: package-private */
/* renamed from: a */
public final boolean mo4337a(View view) {
return ViewCompat.isAttachedToWindow(view) && view.getGlobalVisibleRect(this.f1662i);
}
/* renamed from: b */
public final CharSequence mo4338b() {
return this.f1661h;
}
/* access modifiers changed from: package-private */
/* renamed from: f */
public final void mo4339f() {
int i;
Drawable background = this.f1437g.getBackground();
int i2 = 0;
if (background != null) {
background.getPadding(this.f1660b.f1381c);
i2 = C0423ds.m1382a(this.f1660b) ? this.f1660b.f1381c.right : -this.f1660b.f1381c.left;
} else {
Rect rect = this.f1660b.f1381c;
this.f1660b.f1381c.right = 0;
rect.left = 0;
}
int paddingLeft = this.f1660b.getPaddingLeft();
int paddingRight = this.f1660b.getPaddingRight();
int width = this.f1660b.getWidth();
if (this.f1660b.f1380b == -2) {
int a = this.f1660b.mo4068a((SpinnerAdapter) this.f1659a, this.f1437g.getBackground());
int i3 = (this.f1660b.getContext().getResources().getDisplayMetrics().widthPixels - this.f1660b.f1381c.left) - this.f1660b.f1381c.right;
if (a > i3) {
a = i3;
}
i = Math.max(a, (width - paddingLeft) - paddingRight);
} else {
i = this.f1660b.f1380b == -1 ? (width - paddingLeft) - paddingRight : this.f1660b.f1380b;
}
mo4144d(i);
mo4135a(C0423ds.m1382a(this.f1660b) ? i2 + ((width - paddingRight) - mo4152n()) : i2 + paddingLeft);
}
}
|
[
"nicholas@prjkt.io"
] |
nicholas@prjkt.io
|
a13f649a5e977cecfcf52f0ab1ca58a0efe33d4e
|
5e12a12323d3401578ea2a7e4e101503d700b397
|
/branches/fitnesse/src/main/java/fitlibrary/log/ConfigureLoggingThroughFiles.java
|
cbe30c06ba1d86791fc983a883ad647f102e2ebb
|
[] |
no_license
|
xiangyong/jtester
|
369d4b689e4e66f25c7217242b835d1965da3ef8
|
5f4b3948cd8d43d3e8fea9bc34e5bd7667f4def9
|
refs/heads/master
| 2021-01-18T21:02:05.493497
| 2013-10-08T01:48:18
| 2013-10-08T01:48:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,217
|
java
|
package fitlibrary.log;
import java.io.File;
import org.apache.log4j.PropertyConfigurator;
public class ConfigureLoggingThroughFiles {
public static void configure() {
configure("");
}
public static void configure(String diry) {
PropertyConfigurator propertyConfigurator = new PropertyConfigurator();
if (new File(diry + "FitLibraryLogger.properties").exists()) {
try {
propertyConfigurator.doConfigure(diry + "FitLibraryLogger.properties",
FitLibraryLogger.getOwnHierarchy());
} catch (Exception e) {
System.err.println("Problem with FitLibraryLogger.properties " + e.getMessage());
}
}
if (new File(diry + "FixturingLogger.properties").exists()) {
try {
propertyConfigurator
.doConfigure(diry + "FixturingLogger.properties", FixturingLogger.getOwnHierarchy());
} catch (Exception e) {
System.err.println("Problem with FixturingLogger.properties " + e.getMessage());
}
}
if (new File(diry + "log4j.properties").exists()) {
try {
PropertyConfigurator.configure(diry + "log4j.properties");
} catch (Exception e) {
System.err.println("Problem with log4j.properties " + e.getMessage());
}
}
}
}
|
[
"darui.wu@9ac485da-fb45-aad8-5227-9c360d3c5fad"
] |
darui.wu@9ac485da-fb45-aad8-5227-9c360d3c5fad
|
790b19da3db71cad08754ae1e91b2adc7f93f89f
|
ac59fc1c266333322745039c8d3e4a3db4fc8a78
|
/java/com/hmdzl/spspd/effects/Beam.java
|
774503235ec62eb1b74592fdcccf4a8fe3522685
|
[] |
no_license
|
user00100-bug/SPS-PD
|
3186d3f31ec44089af498fac60c59425878d29b8
|
8b47d7c7d45e22833ee5f32ad64745c5ad8ede20
|
refs/heads/master
| 2023-01-07T06:20:16.019858
| 2020-10-25T12:28:50
| 2020-10-25T12:28:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,574
|
java
|
/*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2015 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*/
package com.hmdzl.spspd.effects;
import javax.microedition.khronos.opengles.GL10;
import android.opengl.GLES20;
import com.watabou.noosa.Game;
import com.watabou.noosa.Image;
import com.watabou.noosa.audio.Sample;
import com.hmdzl.spspd.Assets;
import com.watabou.utils.PointF;
public class Beam extends Image {
private static final double A = 180 / Math.PI;
private float duration;
private float timeLeft;
private Beam(PointF s, PointF e, Effects.Type asset, float duration) {
super( Effects.get( asset ) );
origin.set( 0, height / 2 );
x = s.x - origin.x;
y = s.y - origin.y;
float dx = e.x - s.x;
float dy = e.y - s.y;
angle = (float)(Math.atan2( dy, dx ) * A);
scale.x = (float)Math.sqrt( dx * dx + dy * dy ) / width;
Sample.INSTANCE.play( Assets.SND_RAY );
timeLeft = this.duration = duration;
}
public static class DeathRay extends Beam{
public DeathRay(PointF s, PointF e){
super(s, e, Effects.Type.DEATH_RAY, 0.5f);
}
}
public static class LightRay extends Beam{
public LightRay(PointF s, PointF e){
super(s, e, Effects.Type.LIGHT_RAY, 1f);
}
}
public static class HealthRay extends Beam{
public HealthRay(PointF s, PointF e){
super(s, e, Effects.Type.HEALTH_RAY, 0.75f);
}
}
public static class WaterRay extends Beam{
public WaterRay(PointF s, PointF e){
super(s, e, Effects.Type.WATER_RAY, 0.75f);
}
}
@Override
public void update() {
super.update();
float p = timeLeft / duration;
alpha( p );
scale.set( scale.x, p );
if ((timeLeft -= Game.elapsed) <= 0) {
killAndErase();
}
}
@Override
public void draw() {
GLES20.glBlendFunc( GL10.GL_SRC_ALPHA, GL10.GL_ONE );
super.draw();
GLES20.glBlendFunc( GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA );
}
}
|
[
"295754791@qq.com"
] |
295754791@qq.com
|
e65453e2a4dae1853bf2dc9acf9382044e720f18
|
cec628def1aad94ccbefa814d2a0dbd51588e9bd
|
/performance.java/test/qa-functional/data/PerformanceTestFoldersData/src/folders/javaFolder1000/SampleJavaClass898.java
|
d1c5873a59cea7ced14bc3108fe04e99a07b77e6
|
[] |
no_license
|
emilianbold/netbeans-releases
|
ad6e6e52a896212cb628d4522a4f8ae685d84d90
|
2fd6dc84c187e3c79a959b3ddb4da1a9703659c7
|
refs/heads/master
| 2021-01-12T04:58:24.877580
| 2017-10-17T14:38:27
| 2017-10-17T14:38:27
| 78,269,363
| 30
| 15
| null | 2020-10-13T08:36:08
| 2017-01-07T09:07:28
| null |
UTF-8
|
Java
| false
| false
| 3,335
|
java
|
/*
* Copyright (c) 2010, Oracle.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the distribution.
* * Neither the name of Oracle nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package folders.javaFolder1000;
/**
* Implementation of the logic for the Anagram Game application.
*/
public class SampleJavaClass898 extends Object {
private static final String[] WORD_LIST = {
"abstraction",
"ambiguous",
"arithmetic",
"backslash",
"bitmap",
"circumstance",
"combination",
"consequently",
"traditional"};
private static final String[] SCRAMBLED_WORD_LIST = {
"batsartcoin",
"maibuguos",
"ratimhteci",
"abkclssha",
"ibmtpa",
"iccrmutsnaec",
"ocbmnitaoni",
"ocsnqeeutnyl",
"rtdatioialn"
};
/**
* Gets the word at a given index.
*
* @param idx index of required word
* @return word at that index in its natural form
*/
public String getWord(int idx) {
return WORD_LIST[idx];
}
/**
* Gets the word at a given index in its scrambled form.
*
* @param idx index of required word
* @return word at that index in its scrambled form
*/
public String getScrambledWord(int idx) {
return SCRAMBLED_WORD_LIST[idx];
}
/**
* Gets the number of words in the library.
*
* @return the total number of plain/scrambled word pairs in the library
*/
public int getSize() {
return WORD_LIST.length;
}
/**
* Checks whether a user's guess for a word at the given index is correct.
*
* @param idx index of the word guessed
* @param userGuess the user's guess for the actual word
* @return true if the guess was correct; false otherwise
*/
public boolean isCorrect(int idx, String userGuess) {
return userGuess.equals(getWord(idx));
}
}
|
[
"jskrivanek@netbeans.org"
] |
jskrivanek@netbeans.org
|
dbad1cd2b6fb168eb5c387bb9eb5e22e96a7ce7e
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/fc-20230330/src/main/java/com/aliyun/fc20230330/models/ListProvisionConfigsOutput.java
|
b4015cc6b8890eec53dd249231fd4f5a8925ef19
|
[
"Apache-2.0"
] |
permissive
|
aliyun/alibabacloud-java-sdk
|
83a6036a33c7278bca6f1bafccb0180940d58b0b
|
008923f156adf2e4f4785a0419f60640273854ec
|
refs/heads/master
| 2023-09-01T04:10:33.640756
| 2023-09-01T02:40:45
| 2023-09-01T02:40:45
| 288,968,318
| 40
| 45
| null | 2023-06-13T02:47:13
| 2020-08-20T09:51:08
|
Java
|
UTF-8
|
Java
| false
| false
| 1,067
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.fc20230330.models;
import com.aliyun.tea.*;
public class ListProvisionConfigsOutput extends TeaModel {
@NameInMap("nextToken")
public String nextToken;
@NameInMap("provisionConfigs")
public java.util.List<ProvisionConfig> provisionConfigs;
public static ListProvisionConfigsOutput build(java.util.Map<String, ?> map) throws Exception {
ListProvisionConfigsOutput self = new ListProvisionConfigsOutput();
return TeaModel.build(map, self);
}
public ListProvisionConfigsOutput setNextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
public String getNextToken() {
return this.nextToken;
}
public ListProvisionConfigsOutput setProvisionConfigs(java.util.List<ProvisionConfig> provisionConfigs) {
this.provisionConfigs = provisionConfigs;
return this;
}
public java.util.List<ProvisionConfig> getProvisionConfigs() {
return this.provisionConfigs;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
10bb7184142423dd3cd907224389f990ac28d248
|
0b2a63566e2e6090a3b0726a77409351bb48eb64
|
/GYproject-biz-base/src/main/java/cc/dfsoft/project/biz/base/baseinfo/enums/TimeLimitTypeEnum.java
|
9ae23fde6fe3ea3767807769555351437447efb1
|
[] |
no_license
|
zhangnengxian/GYPROJECT
|
5f7eda062430beb8046943d4fa73da1b1f55a172
|
673471b661a88370137028056b0a5191de6fcec2
|
refs/heads/master
| 2021-08-17T05:48:20.815738
| 2020-12-08T10:01:06
| 2020-12-08T10:01:06
| 231,201,977
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,241
|
java
|
package cc.dfsoft.project.biz.base.baseinfo.enums;
public enum TimeLimitTypeEnum {
TIME_LIMIT1("1", "≤100户"),
TIME_LIMIT2("2", "100~500户"),
TIME_LIMIT3("3", "500~2000户"),
TIME_LIMIT4("4", "≥2000户"),
TIME_LIMIT5("5", "炉灶≤10台"),
TIME_LIMIT6("6", "炉灶﹥10台"),
TIME_LIMIT7("7", "工业燃气炉/锅炉≤4台"),
TIME_LIMIT8("8", "工业燃气炉/锅炉﹥4台"),
TIME_LIMIT9("9", "≤1.5千米"),
TIME_LIMIT10("10", "1.5~4千米"),
TIME_LIMIT11("11", "4~8千米"),
TIME_LIMIT12("12", "≥8千米"),
TIME_LIMIT13("13", "0~5万"),
TIME_LIMIT14("14", "5~10万"),
TIME_LIMIT15("15", "10~50万"),
TIME_LIMIT16("16", "50~100万"),
TIME_LIMIT17("17", "100万以上");
private final String value;
private final String message;
TimeLimitTypeEnum(String value, String message){
this.value = value;
this.message = message;
}
public String getValue() {
return value;
}
public String getMessage(){
return message;
}
public static TimeLimitTypeEnum valueof(String value) {
for(TimeLimitTypeEnum e: TimeLimitTypeEnum.values()) {
if(e.getValue().equals(value)) {
return e;
}
}
return null;
}
}
|
[
"1655658911@qq.com"
] |
1655658911@qq.com
|
075894176b5b4a53d20deef86c8c24f1f0d22a41
|
af14749e58764294ec0a7a22d909f09afe826129
|
/hws-dal/src/main/java/com/xrk/hws/dal/annotations/GenerationType.java
|
e5b4b2561e269bf6308751fd1f96d647752bdb74
|
[] |
no_license
|
mendylee/hws
|
b7983ae59a7270f8d5e8ac79f3afed910fc7a586
|
2a5f6a277c2691f0d6bda934fe692a942d5c965a
|
refs/heads/master
| 2020-05-17T04:58:14.725772
| 2018-11-17T07:05:30
| 2018-11-17T07:05:30
| 34,122,362
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 370
|
java
|
package com.xrk.hws.dal.annotations;
/**
* 枚举: 生成类型.
*
* <br>==========================
* <br> 公司:广州向日葵信息科技有限公司
* <br> 开发:lijp<lijingping@xiangrikui.com>
* <br> 版本:1.0
* <br> 创建时间:2015年5月28日
* <br> JDK版本:1.7
* <br>==========================
*/
public enum GenerationType
{
Auto
}
|
[
"yufuyong@xiangrikui.com"
] |
yufuyong@xiangrikui.com
|
87f4c8e7556c5fcf6921ba4083d0fe282e79e04d
|
da68446ad3fa56c5d5f9a55b4428e21e0f0ed406
|
/src/main/java/mac/quartzcore/CAOpenGLLayer.java
|
db94c487ded5bc433bcc90925957446e051c3a0b
|
[] |
no_license
|
multi-os-engine/moe-mac-core
|
90d9764ab38807cac004aed70b68ca54c5c8a79b
|
0ffb7b52af9cdd75f25b33d0c4723903a521d2f7
|
refs/heads/master
| 2020-04-06T06:58:01.357013
| 2016-08-09T18:57:05
| 2016-08-09T18:57:05
| 65,319,982
| 4
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,947
|
java
|
/*
Copyright 2014-2016 Intel Corporation
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 mac.quartzcore;
import org.moe.natj.general.NatJ;
import org.moe.natj.general.Pointer;
import org.moe.natj.general.ann.*;
import org.moe.natj.general.ann.Runtime;
import org.moe.natj.objc.ObjCRuntime;
import org.moe.natj.objc.ann.ObjCClassBinding;
import org.moe.natj.objc.ann.Selector;
import org.moe.natj.objc.map.ObjCObjectMapper;
import mac.corevideo.struct.CVTimeStamp;
import mac.opengl.opaque.CGLContextObj;
import mac.opengl.opaque.CGLPixelFormatObj;
@Generated
@Library("QuartzCore")
@Runtime(ObjCRuntime.class)
@ObjCClassBinding
public class CAOpenGLLayer extends CALayer {
static {
NatJ.register();
}
@Generated
protected CAOpenGLLayer(Pointer peer) {
super(peer);
}
@Generated
@Owned
@Selector("alloc")
public static native CAOpenGLLayer alloc();
@Generated
@Selector("canDrawInCGLContext:pixelFormat:forLayerTime:displayTime:")
public native boolean canDrawInCGLContextPixelFormatForLayerTimeDisplayTime(
CGLContextObj ctx,
CGLPixelFormatObj pf,
double t,
@UncertainArgument("Options: reference, array Fallback: reference") CVTimeStamp ts);
@Generated
@Owned
@Selector("copyCGLContextForPixelFormat:")
public native CGLContextObj copyCGLContextForPixelFormat(
CGLPixelFormatObj pf);
@Generated
@Owned
@Selector("copyCGLPixelFormatForDisplayMask:")
public native CGLPixelFormatObj copyCGLPixelFormatForDisplayMask(int mask);
@Generated
@Selector("drawInCGLContext:pixelFormat:forLayerTime:displayTime:")
public native void drawInCGLContextPixelFormatForLayerTimeDisplayTime(
CGLContextObj ctx,
CGLPixelFormatObj pf,
double t,
@UncertainArgument("Options: reference, array Fallback: reference") CVTimeStamp ts);
@Generated
@Selector("init")
public native CAOpenGLLayer init();
@Generated
@Selector("initWithLayer:")
public native CAOpenGLLayer initWithLayer(
@Mapped(ObjCObjectMapper.class) Object layer);
@Generated
@Selector("isAsynchronous")
public native boolean isAsynchronous();
@Generated
@Selector("layer")
public static native CAOpenGLLayer layer();
@Generated
@Selector("releaseCGLContext:")
public native void releaseCGLContext(CGLContextObj ctx);
@Generated
@Selector("releaseCGLPixelFormat:")
public native void releaseCGLPixelFormat(CGLPixelFormatObj pf);
@Generated
@Selector("setAsynchronous:")
public native void setAsynchronous(boolean value);
}
|
[
"alexey.suhov@intel.com"
] |
alexey.suhov@intel.com
|
dc9dc0abb92ac3fb39aca2e5e859fe63205e5963
|
3ef55e152decb43bdd90e3de821ffea1a2ec8f75
|
/large/module1664_public/src/java/module1664_public/a/IFoo0.java
|
71e739d680af107685d1ff3e55297b5998feb9a1
|
[
"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
| 808
|
java
|
package module1664_public.a;
import java.awt.datatransfer.*;
import java.beans.beancontext.*;
import java.io.*;
/**
* 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 java.awt.datatransfer.DataFlavor
* @see java.beans.beancontext.BeanContext
* @see java.io.File
*/
@SuppressWarnings("all")
public interface IFoo0<A> extends java.util.concurrent.Callable<A> {
java.rmi.Remote f0 = null;
java.nio.file.FileStore f1 = null;
java.sql.Array f2 = null;
String getName();
void setName(String s);
A get();
void set(A e);
}
|
[
"gwagenknecht@salesforce.com"
] |
gwagenknecht@salesforce.com
|
7482f3d44df56bb4c56d2f229aeec2ddca21f8d1
|
b41a76a5c84110abef8a49f921b71eea727cbb2b
|
/Squale/squale-core/src/main/java/org/squale/squalecommon/enterpriselayer/businessobject/result/FloatMetricBO.java
|
33aceb5d8f640c208187a3c89890f0581bc250fa
|
[] |
no_license
|
zeeneddie/squale
|
d175db676504a92f7e1148fc28512bb88d2d3bd6
|
e6a44c744e37317b5d81cf5081dcd6ad5360c132
|
refs/heads/master
| 2020-03-27T07:55:27.557302
| 2018-09-04T07:01:42
| 2018-09-04T07:01:42
| 146,205,739
| 0
| 0
| null | null | null | null |
ISO-8859-1
|
Java
| false
| false
| 2,085
|
java
|
/**
* Copyright (C) 2008-2010, Squale Project - http://www.squale.org
*
* This file is part of Squale.
*
* Squale 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 any later version.
*
* Squale is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Squale. If not, see <http://www.gnu.org/licenses/>.
*/
package org.squale.squalecommon.enterpriselayer.businessobject.result;
/**
* @hibernate.subclass discriminator-value="Float"
*/
public class FloatMetricBO
extends NumberMetricBO
{
/**
* Valeur continue du mérique
*/
protected Float mValue;
/**
* Access method for the mValue property.
*
* @return the current value of the mName property
* @hibernate.property name="Value" column="Number_val" type="float" not-null="false" unique="false" update="true"
* insert="true"
*/
public Object getValue()
{
return mValue;
}
/**
* @see org.squale.squalecommon.enterpriselayer.businessobject.result.MetricBO#setValue(java.lang.Object)
*/
public void setValue( Object pValue )
{
mValue = (Float) pValue;
}
/**
* Sets the value of the mValue property as a float.
*
* @param pValue the new value of the mValue property
*/
public void setValue( float pValue )
{
mValue = new Float( pValue );
}
/**
* (non-Javadoc)
*
* @see org.squale.squalecommon.enterpriselayer.businessobject.result.MetricBO#isPrintable()
*/
public boolean isPrintable()
{
return true;
}
}
|
[
"bellingard@gmail.com"
] |
bellingard@gmail.com
|
bbc9e6dfb95cf53e98ee71ab98f2eaa5918b3325
|
75950d61f2e7517f3fe4c32f0109b203d41466bf
|
/modules/tags/sca-1.1-assembly-conformance/extension/binding/fabric3-binding-ws-metro/src/main/java/org/fabric3/binding/ws/metro/generator/resolver/TargetUrlResolver.java
|
bd9bc8197a92be96abc8b29c7acbc35eb36f9ac0
|
[] |
no_license
|
codehaus/fabric3
|
3677d558dca066fb58845db5b0ad73d951acf880
|
491ff9ddaff6cb47cbb4452e4ddbf715314cd340
|
refs/heads/master
| 2023-07-20T00:34:33.992727
| 2012-10-31T16:32:19
| 2012-10-31T16:32:19
| 36,338,853
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,711
|
java
|
/*
* Fabric3
* Copyright (c) 2009-2011 Metaform Systems
*
* Fabric3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version, with the
* following exception:
*
* Linking this software statically or dynamically with other
* modules is making a combined work based on this software.
* Thus, the terms and conditions of the GNU General Public
* License cover the whole combination.
*
* As a special exception, the copyright holders of this software
* give you permission to link this software with independent
* modules to produce an executable, regardless of the license
* terms of these independent modules, and to copy and distribute
* the resulting executable under terms of your choice, provided
* that you also meet, for each linked independent module, the
* terms and conditions of the license of that module. An
* independent module is a module which is not derived from or
* based on this software. If you modify this software, you may
* extend this exception to your version of the software, but
* you are not obligated to do so. If you do not wish to do so,
* delete this exception statement from your version.
*
* Fabric3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the
* GNU General Public License along with Fabric3.
* If not, see <http://www.gnu.org/licenses/>.
*/
package org.fabric3.binding.ws.metro.generator.resolver;
import java.net.URL;
import org.fabric3.binding.ws.model.WsBindingDefinition;
import org.fabric3.spi.generator.EffectivePolicy;
import org.fabric3.spi.generator.GenerationException;
import org.fabric3.spi.model.instance.LogicalBinding;
/**
* Determines the endpoint of a URL based on the service binding metadata. This is used when determining a URL for a reference targeted using the SCA
* service URL.
*
* @version $Rev$ $Date$
*/
public interface TargetUrlResolver {
/**
* Calculate the URL from the service binding metadata.
*
* @param serviceBinding the service binding
* @param policy effective policy for the wire. Used in determining whether to use a secure protocol (HTTPS).
* @return the URL
* @throws GenerationException if the URL cannot be created
*/
URL resolveUrl(LogicalBinding<WsBindingDefinition> serviceBinding, EffectivePolicy policy) throws GenerationException;
}
|
[
"jmarino@83866bfc-822f-0410-aa35-bd5043b85eaf"
] |
jmarino@83866bfc-822f-0410-aa35-bd5043b85eaf
|
5cc3b601c47869948871b32e8f0d325c39f32953
|
67c1ea547f0639340220d922196ad7dc7e5b9b18
|
/src/main/java/com/dobo/common/web/BaseController.java
|
5133f8184702d490f12ed43fa5136d42668d6237
|
[
"Apache-2.0"
] |
permissive
|
249910119/dobo
|
852f459ee9f67b8d7816f9e656498235ea3a25d4
|
56e42bd03fc1a78c80bdad72a062affdaf1e1213
|
refs/heads/master
| 2020-05-17T04:09:06.692185
| 2019-04-25T19:43:06
| 2019-04-25T19:43:06
| 183,499,932
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,158
|
java
|
/**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">dobo</a> All rights reserved.
*/
package com.dobo.common.web;
import java.beans.PropertyEditorSupport;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolationException;
import javax.validation.ValidationException;
import javax.validation.Validator;
import org.apache.commons.lang3.StringEscapeUtils;
import org.apache.shiro.authc.AuthenticationException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.ui.Model;
import org.springframework.validation.BindException;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import com.dobo.common.beanvalidator.BeanValidators;
import com.dobo.common.mapper.JsonMapper;
import com.dobo.common.utils.DateUtils;
/**
* 控制器支持类
* @author ThinkGem
* @version 2013-3-23
*/
public abstract class BaseController {
/**
* 日志对象
*/
protected Logger logger = LoggerFactory.getLogger(getClass());
/**
* 管理基础路径
*/
@Value("${adminPath}")
protected String adminPath;
/**
* 前端基础路径
*/
@Value("${frontPath}")
protected String frontPath;
/**
* 前端URL后缀
*/
@Value("${urlSuffix}")
protected String urlSuffix;
/**
* 验证Bean实例对象
*/
@Autowired
protected Validator validator;
/**
* 服务端参数有效性验证
* @param object 验证的实体对象
* @param groups 验证组
* @return 验证成功:返回true;严重失败:将错误信息添加到 message 中
*/
protected boolean beanValidator(Model model, Object object, Class<?>... groups) {
try{
BeanValidators.validateWithException(validator, object, groups);
}catch(ConstraintViolationException ex){
List<String> list = BeanValidators.extractPropertyAndMessageAsList(ex, ": ");
list.add(0, "数据验证失败:");
addMessage(model, list.toArray(new String[]{}));
return false;
}
return true;
}
/**
* 服务端参数有效性验证
* @param object 验证的实体对象
* @param groups 验证组
* @return 验证成功:返回true;严重失败:将错误信息添加到 flash message 中
*/
protected boolean beanValidator(RedirectAttributes redirectAttributes, Object object, Class<?>... groups) {
try{
BeanValidators.validateWithException(validator, object, groups);
}catch(ConstraintViolationException ex){
List<String> list = BeanValidators.extractPropertyAndMessageAsList(ex, ": ");
list.add(0, "数据验证失败:");
addMessage(redirectAttributes, list.toArray(new String[]{}));
return false;
}
return true;
}
/**
* 服务端参数有效性验证
* @param object 验证的实体对象
* @param groups 验证组,不传入此参数时,同@Valid注解验证
* @return 验证成功:继续执行;验证失败:抛出异常跳转400页面。
*/
protected void beanValidator(Object object, Class<?>... groups) {
BeanValidators.validateWithException(validator, object, groups);
}
/**
* 添加Model消息
* @param message
*/
protected void addMessage(Model model, String... messages) {
StringBuilder sb = new StringBuilder();
for (String message : messages){
sb.append(message).append(messages.length>1?"<br/>":"");
}
model.addAttribute("message", sb.toString());
}
/**
* 添加Flash消息
* @param message
*/
protected void addMessage(RedirectAttributes redirectAttributes, String... messages) {
StringBuilder sb = new StringBuilder();
for (String message : messages){
sb.append(message).append(messages.length>1?"<br/>":"");
}
redirectAttributes.addFlashAttribute("message", sb.toString());
}
/**
* 客户端返回JSON字符串
* @param response
* @param object
* @return
*/
protected String renderString(HttpServletResponse response, Object object) {
return renderString(response, JsonMapper.toJsonString(object), "application/json");
}
/**
* 客户端返回字符串
* @param response
* @param string
* @return
*/
protected String renderString(HttpServletResponse response, String string, String type) {
try {
response.reset();
response.setContentType(type);
response.setCharacterEncoding("utf-8");
response.getWriter().print(string);
return null;
} catch (IOException e) {
return null;
}
}
/**
* 参数绑定异常
*/
@ExceptionHandler({BindException.class, ConstraintViolationException.class, ValidationException.class})
public String bindException() {
return "error/400";
}
/**
* 授权登录异常
*/
@ExceptionHandler({AuthenticationException.class})
public String authenticationException() {
return "error/403";
}
/**
* 初始化数据绑定
* 1. 将所有传递进来的String进行HTML编码,防止XSS攻击
* 2. 将字段中Date类型转换为String类型
*/
@InitBinder
protected void initBinder(WebDataBinder binder) {
// String类型转换,将所有传递进来的String进行HTML编码,防止XSS攻击
binder.registerCustomEditor(String.class, new PropertyEditorSupport() {
@Override
public void setAsText(String text) {
setValue(text == null ? null : StringEscapeUtils.escapeHtml4(text.trim()));
}
@Override
public String getAsText() {
Object value = getValue();
return value != null ? value.toString() : "";
}
});
// Date 类型转换
binder.registerCustomEditor(Date.class, new PropertyEditorSupport() {
@Override
public void setAsText(String text) {
setValue(DateUtils.parseDate(text));
}
// @Override
// public String getAsText() {
// Object value = getValue();
// return value != null ? DateUtils.formatDateTime((Date)value) : "";
// }
});
}
}
|
[
"249910119@qq.com"
] |
249910119@qq.com
|
6322314d1d32bedb37c2e0dfb807ccaa51f4742e
|
3470bff16f74b053ea284552f37f798be97764b7
|
/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/RootModelBase.java
|
81f6860351deac0f21db1d7c42a9602668313286
|
[
"Apache-2.0"
] |
permissive
|
gshakhn/intellij-community
|
707dc4cd0951a43221aa78a569232cf1cd41d20d
|
f1402616a3b23db8802a5571d0bcc4f2880d1f65
|
refs/heads/master
| 2021-01-15T19:39:34.792819
| 2012-07-27T12:58:56
| 2012-07-27T12:58:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,768
|
java
|
/*
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.intellij.openapi.roots.impl;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.projectRoots.Sdk;
import com.intellij.openapi.roots.*;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.util.ArrayUtil;
import com.intellij.util.SmartList;
import com.intellij.util.containers.ContainerUtil;
import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/**
* @author nik
*/
public abstract class RootModelBase implements ModuleRootModel {
@Override
@NotNull
public VirtualFile[] getContentRoots() {
final ArrayList<VirtualFile> result = new ArrayList<VirtualFile>();
for (ContentEntry contentEntry : getContent()) {
final VirtualFile file = contentEntry.getFile();
if (file != null) {
result.add(file);
}
}
return ContainerUtil.toArray(result, new VirtualFile[result.size()]);
}
@Override
@NotNull
public String[] getContentRootUrls() {
if (getContent().isEmpty()) return ArrayUtil.EMPTY_STRING_ARRAY;
final ArrayList<String> result = new ArrayList<String>(getContent().size());
for (ContentEntry contentEntry : getContent()) {
result.add(contentEntry.getUrl());
}
return ContainerUtil.toArray(result, new String[result.size()]);
}
@Override
@NotNull
public String[] getExcludeRootUrls() {
final List<String> result = new SmartList<String>();
for (ContentEntry contentEntry : getContent()) {
final ExcludeFolder[] excludeFolders = contentEntry.getExcludeFolders();
for (ExcludeFolder excludeFolder : excludeFolders) {
result.add(excludeFolder.getUrl());
}
}
return ContainerUtil.toArray(result, new String[result.size()]);
}
@Override
@NotNull
public VirtualFile[] getExcludeRoots() {
final List<VirtualFile> result = new SmartList<VirtualFile>();
for (ContentEntry contentEntry : getContent()) {
final ExcludeFolder[] excludeFolders = contentEntry.getExcludeFolders();
for (ExcludeFolder excludeFolder : excludeFolders) {
final VirtualFile file = excludeFolder.getFile();
if (file != null) {
result.add(file);
}
}
}
return ContainerUtil.toArray(result, new VirtualFile[result.size()]);
}
@Override
@NotNull
public String[] getSourceRootUrls() {
return getSourceRootUrls(true);
}
@Override
@NotNull
public String[] getSourceRootUrls(boolean includingTests) {
List<String> result = new SmartList<String>();
for (ContentEntry contentEntry : getContent()) {
final SourceFolder[] sourceFolders = contentEntry.getSourceFolders();
for (SourceFolder sourceFolder : sourceFolders) {
if (includingTests || !sourceFolder.isTestSource()) {
result.add(sourceFolder.getUrl());
}
}
}
return ContainerUtil.toArray(result, new String[result.size()]);
}
@Override
@NotNull
public VirtualFile[] getSourceRoots() {
return getSourceRoots(true);
}
@Override
@NotNull
public VirtualFile[] getSourceRoots(final boolean includingTests) {
List<VirtualFile> result = new SmartList<VirtualFile>();
for (ContentEntry contentEntry : getContent()) {
final SourceFolder[] sourceFolders = contentEntry.getSourceFolders();
for (SourceFolder sourceFolder : sourceFolders) {
final VirtualFile file = sourceFolder.getFile();
if (file != null && (includingTests || !sourceFolder.isTestSource())) {
result.add(file);
}
}
}
return ContainerUtil.toArray(result, new VirtualFile[result.size()]);
}
@Override
public ContentEntry[] getContentEntries() {
final Collection<ContentEntry> content = getContent();
return content.toArray(new ContentEntry[content.size()]);
}
protected abstract Collection<ContentEntry> getContent();
@Override
public Sdk getSdk() {
for (OrderEntry orderEntry : getOrderEntries()) {
if (orderEntry instanceof JdkOrderEntry) {
return ((JdkOrderEntry)orderEntry).getJdk();
}
}
return null;
}
@Override
public boolean isSdkInherited() {
for (OrderEntry orderEntry : getOrderEntries()) {
if (orderEntry instanceof InheritedJdkOrderEntry) {
return true;
}
}
return false;
}
@NotNull
@Override
public OrderEnumerator orderEntries() {
return new ModuleOrderEnumerator(this, null);
}
@Override
public <R> R processOrder(RootPolicy<R> policy, R initialValue) {
R result = initialValue;
for (OrderEntry orderEntry : getOrderEntries()) {
result = orderEntry.accept(policy, result);
}
return result;
}
@Override
@NotNull
public String[] getDependencyModuleNames() {
List<String> result = orderEntries().withoutSdk().withoutLibraries().withoutModuleSourceEntries()
.process(new CollectDependentModules(), new ArrayList<String>());
return ArrayUtil.toStringArray(result);
}
@Override
@NotNull
public Module[] getModuleDependencies() {
return getModuleDependencies(true);
}
@Override
@NotNull
public Module[] getModuleDependencies(boolean includeTests) {
final List<Module> result = new ArrayList<Module>();
for (OrderEntry entry : getOrderEntries()) {
if (entry instanceof ModuleOrderEntry) {
ModuleOrderEntry moduleOrderEntry = (ModuleOrderEntry)entry;
final DependencyScope scope = moduleOrderEntry.getScope();
if (!includeTests && !scope.isForProductionCompile() && !scope.isForProductionRuntime()) {
continue;
}
final Module module1 = moduleOrderEntry.getModule();
if (module1 != null) {
result.add(module1);
}
}
}
return ContainerUtil.toArray(result, new Module[result.size()]);
}
private static class CollectDependentModules extends RootPolicy<List<String>> {
@NotNull
@Override
public List<String> visitModuleOrderEntry(@NotNull ModuleOrderEntry moduleOrderEntry, @NotNull List<String> arrayList) {
arrayList.add(moduleOrderEntry.getModuleName());
return arrayList;
}
}
}
|
[
"Nikolay.Chashnikov@jetbrains.com"
] |
Nikolay.Chashnikov@jetbrains.com
|
14cc347a2ddd263be8dae0b34d7a162ca9757701
|
73ba28547f0a67eeb9703a2d5d850fefaa7759ab
|
/src/threadtest/countdownlatchtest/CountDownLatchTest.java
|
036409d27600c6e690d24debaf0ef9e3f983b5ee
|
[] |
no_license
|
AsummerCat/TestUtil
|
ecb3df60ec59035af08c0e919689c748cf80caed
|
dc50448d22d10d303e3e7349346639fcf0868002
|
refs/heads/master
| 2020-04-01T06:30:50.857220
| 2019-06-03T14:42:28
| 2019-06-03T14:42:28
| 152,951,341
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,284
|
java
|
package threadtest.countdownlatchtest;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* @author cxc
* @date 2018/11/1 22:54
* CountDownLatch测试 (等待集合 然后执行)
*/
public class CountDownLatchTest {
//创建一个有初始值的记数阀门
static final CountDownLatch countDownLatch = new CountDownLatch(5);
public static void main(String[] args) {
//小明和小强在等待5个人的车子开出去后出发 这边使用 await() 等待
ExecutorService executorService = Executors.newCachedThreadPool();
executorService.execute(new CountDownLatchThread(countDownLatch, "小明"));
executorService.execute(new CountDownLatchThread(countDownLatch, "小强"));
//这边 countDown 执行
executorService.execute(new CountDownLatchThread1(countDownLatch, "小西"));
executorService.execute(new CountDownLatchThread1(countDownLatch, "小黑"));
executorService.execute(new CountDownLatchThread1(countDownLatch, "小白"));
executorService.execute(new CountDownLatchThread1(countDownLatch, "小绿"));
executorService.execute(new CountDownLatchThread1(countDownLatch, "小美"));
}
}
|
[
"583188551@qq.com"
] |
583188551@qq.com
|
e17f0f609f6b2931795f3528a7849183d072a1b6
|
3d1bc9934ca6aceea49d4f63dd59432eef82c8eb
|
/oa/src/main/java/com/hotent/makshi/model/questionnaire/QuestionnaireReceiver.java
|
a254fdaef6724fe97a4d4cf0a84a4a4c6e95f0ba
|
[] |
no_license
|
sdzx3783/project2018
|
570c5d878cc0afb5bda93003b5dc66d78e42fb79
|
52e0cae652fbd83b5712636e15a2e14401a5a50a
|
refs/heads/master
| 2020-03-12T04:28:04.856156
| 2018-04-21T06:58:25
| 2018-04-21T06:58:25
| 130,445,510
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,981
|
java
|
package com.hotent.makshi.model.questionnaire;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;
import com.fr.third.org.apache.poi.hssf.record.formula.functions.Int;
import com.hotent.core.model.WfBaseModel;
import com.hotent.makshi.utils.DateUtils;
/**
* 对象功能:调查问卷投票结果 Model对象
*/
public class QuestionnaireReceiver extends WfBaseModel
{
//主键
protected Long id;
/**
*投票用户
*/
protected String user;
/**
*投票用户ID
*/
protected String user_id;
/**
*调查问卷ID
*/
protected Long questionnaire_id;
/**
*调查问卷参与者类型
*/
protected Integer receiver_type;
/**
* @see java.lang.Object#equals(Object)
*/
public boolean equals(Object object)
{
if (!(object instanceof QuestionnaireReceiver))
{
return false;
}
QuestionnaireReceiver rhs = (QuestionnaireReceiver) object;
return new EqualsBuilder()
.append(this.id, rhs.id)
.append(this.user, rhs.user)
.append(this.user_id, rhs.user_id)
.append(this.questionnaire_id, rhs.questionnaire_id)
.append(this.receiver_type, rhs.receiver_type)
.isEquals();
}
/**
* @see java.lang.Object#hashCode()
*/
public int hashCode()
{
return new HashCodeBuilder(-82280557, -700257973)
.append(this.id)
.append(this.user)
.append(this.user_id)
.append(this.questionnaire_id)
.append(this.receiver_type)
.toHashCode();
}
/**
* @see java.lang.Object#toString()
*/
public String toString()
{
return new ToStringBuilder(this)
.append("id",this.id)
.append("user", this.user)
.append("user_id", this.user_id)
.append("questionnaire_id", this.questionnaire_id)
.append("receiver_type", this.receiver_type)
.toString();
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
* @return the user
*/
public String getUser() {
return user;
}
/**
* @param user the user to set
*/
public void setUser(String user) {
this.user = user;
}
/**
* @return the user_id
*/
public String getUser_id() {
return user_id;
}
/**
* @param user_id the user_id to set
*/
public void setUser_id(String user_id) {
this.user_id = user_id;
}
/**
* @return the questionnaire_id
*/
public Long getQuestionnaire_id() {
return questionnaire_id;
}
/**
* @return the receiver_type
*/
public Integer getReceiver_type() {
return receiver_type;
}
/**
* @param receiver_type the receiver_type to set
*/
public void setReceiver_type(Integer receiver_type) {
this.receiver_type = receiver_type;
}
/**
* @param questionnaire_id the questionnaire_id to set
*/
public void setQuestionnaire_id(Long questionnaire_id) {
this.questionnaire_id = questionnaire_id;
}
}
|
[
"378377084@qq.com"
] |
378377084@qq.com
|
57b3d8da0550fbf8248f31c88141f5b01121aa77
|
0e06e096a9f95ab094b8078ea2cd310759af008b
|
/classes17-dex2jar/com/google/android/gms/auth/api/credentials/CredentialRequestResponse.java
|
84d7723576fe4416da6f6681d55acecf0fa7e83f
|
[] |
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
| 355
|
java
|
//
// Decompiled by Procyon v0.5.34
//
package com.google.android.gms.auth.api.credentials;
import com.google.android.gms.common.api.Response;
public class CredentialRequestResponse extends Response<CredentialRequestResult>
{
public Credential getCredential() {
return ((CredentialRequestResult)this.getResult()).getCredential();
}
}
|
[
"querky1231@gmail.com"
] |
querky1231@gmail.com
|
4492d0868be0d7416d1963a6c8be5714d0db48c0
|
fb50b1df7e2b09ea592193539034d42611c1dea2
|
/open4um/src/main/java/tp/kits3/open4um/dao/ReportDAO.java
|
1fdb3d7f841571aaa475e5f4be0b5bd55b6df206
|
[] |
no_license
|
shanks195/open4um
|
e7d3b90ddb0e28f0b5ba726714c1e1bb134db253
|
9076b46ff99937de056269674fcf6376b4c826cc
|
refs/heads/main
| 2023-03-20T23:20:57.904970
| 2021-03-06T14:44:03
| 2021-03-06T14:44:03
| 345,097,876
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 132
|
java
|
package tp.kits3.open4um.dao;
import tp.kits3.open4um.vo.Report;
public interface ReportDAO {
public void insert(Report rp);
}
|
[
"robocon87@gmail.com"
] |
robocon87@gmail.com
|
ac77afc267aa145d5fac31357fab0818cdb76bac
|
e27942cce249f7d62b7dc8c9b86cd40391c1ddd4
|
/modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201702/o/TrafficEstimatorResult.java
|
df8a54a9a03ea566664f88ab9f4e4327a0fa7761
|
[
"Apache-2.0"
] |
permissive
|
mo4ss/googleads-java-lib
|
b4b6178747d25d16ae6aa0c80d80ee18a2dfe01a
|
efaa9c3bd8a46a3ed4b00963dc9760c6dd8bd641
|
refs/heads/master
| 2022-12-05T00:30:56.740813
| 2022-11-16T10:47:15
| 2022-11-16T10:47:15
| 108,132,394
| 0
| 0
|
Apache-2.0
| 2022-11-16T10:47:16
| 2017-10-24T13:41:43
|
Java
|
UTF-8
|
Java
| false
| false
| 2,670
|
java
|
// Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.ads.adwords.jaxws.v201702.o;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* Contains results of traffic estimation request.
*
*
* <p>Java class for TrafficEstimatorResult complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="TrafficEstimatorResult">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="campaignEstimates" type="{https://adwords.google.com/api/adwords/o/v201702}CampaignEstimate" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TrafficEstimatorResult", propOrder = {
"campaignEstimates"
})
public class TrafficEstimatorResult {
protected List<CampaignEstimate> campaignEstimates;
/**
* Gets the value of the campaignEstimates property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the campaignEstimates property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getCampaignEstimates().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CampaignEstimate }
*
*
*/
public List<CampaignEstimate> getCampaignEstimates() {
if (campaignEstimates == null) {
campaignEstimates = new ArrayList<CampaignEstimate>();
}
return this.campaignEstimates;
}
}
|
[
"jradcliff@users.noreply.github.com"
] |
jradcliff@users.noreply.github.com
|
c234694df3804016efe1efd63a685f6288e5146f
|
fcce69348d7fb592ec2bea01d569500dfc57c6c2
|
/doc/Java-Code/AnnotationLayerStack/src/AuthenticationLayerPSM/validation/AuthenticationTokenValidator.java
|
4de32b45b2f8faff0f013b08c2fee6792533cb6c
|
[] |
no_license
|
s-case/mde
|
7cc0fe188e7cfd93f943976135966ef3f6fc42ec
|
2b0c044788167a6a30f434821d24c2042d7d5bfc
|
refs/heads/master
| 2020-04-03T20:21:36.087969
| 2016-12-09T23:44:21
| 2016-12-09T23:44:21
| 29,291,911
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 646
|
java
|
/**
*
* $Id$
*/
package AuthenticationLayerPSM.validation;
/**
* A sample validator interface for {@link AuthenticationLayerPSM.AuthenticationToken}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface AuthenticationTokenValidator {
boolean validate();
boolean validateName(String value);
boolean validateType(String value);
boolean validateBIsUnique(boolean value);
}
|
[
"christopherzolotas@gmail.com"
] |
christopherzolotas@gmail.com
|
6d432948c32c2eb2e8b8b0049bccf1039bdae890
|
9c8407b7221103e7060889bccca0c75b5784dc5b
|
/src/main/java/org/jacop/constraints/regular/RegEdge.java
|
2580a66ae894516bfaa952951e28ee8c832dae4b
|
[] |
no_license
|
alexkit/jacop
|
18e822c60319858131d28b0d8184bd17686826fe
|
93b5e2c53e5e50a8edfee46e0c3e14c5dae51a77
|
refs/heads/master
| 2020-05-29T11:51:30.218142
| 2014-01-05T15:42:10
| 2014-01-05T15:42:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,307
|
java
|
/**
* RegEdge.java
* This file is part of JaCoP.
*
* JaCoP is a Java Constraint Programming solver.
*
* Copyright (C) 2008 Polina Maakeva and Radoslaw Szymanek
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
*
* Notwithstanding any other provision of this License, the copyright
* owners of this work supplement the terms of this License with terms
* prohibiting misrepresentation of the origin of this work and requiring
* that modified versions of this work be marked in reasonable ways as
* different from the original version. This supplement of the license
* terms is in accordance with Section 7 of GNU Affero General Public
* License version 3.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package org.jacop.constraints.regular;
import org.jacop.core.TimeStamp;
/**
*
* The class responsible for connecting two states in regular automaton
* of Regular constraint.
*
* @author Polina Makeeva and Radoslaw Szymanek
* @version 4.0
*/
public class RegEdge {
/**
* The origin state.
*/
public RegState org;
/**
* The destination state.
*/
public RegState dest;
/**
* The constructor which creates an edge.
* @param org the origin state.
* @param dest the destination state.
*/
public RegEdge(RegState org, RegState dest) {
this.org = org;
this.dest = dest;
}
/**
* It checks if the edge is between active states.
*
* @param activeLevels specifies last active states.
* @return true if both origin and destination state are active.
*/
public boolean check(TimeStamp<Integer>[] activeLevels) {
if ( org.isActive(activeLevels) && dest.isActive(activeLevels) )
return true;
return false;
}
}
|
[
"radoslaw.szymanek@gmail.com"
] |
radoslaw.szymanek@gmail.com
|
cd2b07372eb0c0513ee096d0b6a487f68f6ceabf
|
ee19c5b7a48f34b965040ce895dc1337bab1559a
|
/gwtcx/samples/sample-gxt-restlet-gae-basic-project/src/main/java/com/kiahu/sample/client/view/desktop/DataManagementDesktopView.java
|
fa85e9c7e07e4b2f28876405f7c3dad7b71ce1dd
|
[] |
no_license
|
hejunion/gwt-cx
|
7895a9737ec22571a8e58685883a6563f9a25f00
|
2729985042b7c7d7ff41da4f2795b1ad291dbbce
|
refs/heads/master
| 2020-04-22T18:26:38.854865
| 2015-05-22T16:07:44
| 2015-05-22T16:07:44
| 36,079,778
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,179
|
java
|
/**
* (C) Copyright 2012 Kiahu
*
* Licensed under the terms of the GNU General Public License version 3
* as published by the Free Software Foundation. You may obtain a copy of the
* License at: http://www.gnu.org/copyleft/gpl.html
*
* 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.kiahu.sample.client.view.desktop;
import com.google.inject.Inject;
import com.gwtcx.client.uihandlers.DataManagementUiHandlers;
import com.gwtcx.extgwt.client.desktop.view.AbstractDataManagementView;
import com.kiahu.sample.client.presenter.DataManagementPresenter;
public class DataManagementDesktopView extends AbstractDataManagementView<DataManagementUiHandlers>
implements DataManagementPresenter.MyView {
@Inject
public DataManagementDesktopView() {
super(DATA_MANAGEMENT_FILENAME);
}
@Override
protected void bindCustomUiHandlers() {
super.bindCustomUiHandlers();
}
}
|
[
"rob.ferguson@uptick.com.au@47729709-52d1-c6db-8006-95f89ab1258a"
] |
rob.ferguson@uptick.com.au@47729709-52d1-c6db-8006-95f89ab1258a
|
efad50a7dc45994e7c66be012a3d430a8e2a619f
|
187b211464d5a30a6865fcc4a00986ec02243d49
|
/luckwine-parent/luckwine-filter/src/main/java/com/luckwine/parent/util/ExceptionUtils.java
|
ed7b9f4621e183596696ca920afd4fd6f7b09ff3
|
[] |
no_license
|
guangtong-information/luckwine-mall
|
3b7fa3d809d9b1e9575e2643ea6915aedcb781e8
|
a564126d8a9b63e6650f72590f63af834822bf2e
|
refs/heads/master
| 2022-06-27T07:12:17.243240
| 2020-09-04T09:35:54
| 2020-09-04T09:35:54
| 171,574,799
| 10
| 10
| null | 2022-06-21T00:56:34
| 2019-02-20T00:53:24
|
TSQL
|
UTF-8
|
Java
| false
| false
| 751
|
java
|
package com.luckwine.parent.util;
import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
public class ExceptionUtils {
public static String getMsg(ConstraintViolationException cvException) {
Set<ConstraintViolation<?>> set = cvException.getConstraintViolations();
Iterator<ConstraintViolation<?>> iterator = set.iterator();
List<String> list = new ArrayList<>();
while (iterator.hasNext()) {
ConstraintViolation<?> cv = iterator.next();
list.add(cv.getPropertyPath() + ":" + cv.getMessage());
}
return list.toString();
}
}
|
[
"th15817161961@gmail.com"
] |
th15817161961@gmail.com
|
9a29acd47e2251579ae6189c72651e39cd2e10cd
|
d46fb42170b9f9845ab488706dcfea6494275b5a
|
/src/com/eke/cust/tabmore/house_register_activity/HeZuoXieYiActivity.java
|
0cd635c09e1c0ae17e61ba6c4a45995a3857784f
|
[] |
no_license
|
liushiyun8/AppCust
|
f6764d74daf7b8719bf4c3a537efefeb41c83a59
|
aaaced289e873e038c9a37ad0a5532048b43128c
|
refs/heads/master
| 2021-06-30T17:21:39.922759
| 2017-09-18T09:49:57
| 2017-09-18T09:49:57
| 103,921,650
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,578
|
java
|
package com.eke.cust.tabmore.house_register_activity;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.os.Bundle;
import android.os.Handler;
import android.util.DisplayMetrics;
import android.view.Gravity;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.ImageView;
import android.widget.ScrollView;
import android.widget.Toast;
import com.eke.cust.Constants;
import com.eke.cust.AppContext;
import com.eke.cust.R;
import com.eke.cust.base.BaseActivity;
import com.eke.cust.global.ToastUtils;
import com.eke.cust.net.ServerUrl;
import com.eke.cust.utils.MyLog;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.assist.FailReason;
import com.nostra13.universalimageloader.core.listener.ImageLoadingListener;
public class HeZuoXieYiActivity extends BaseActivity{
private static final String TAG = "HeZuoXieYiActivity";
private static final int MSG_SHOW_DINGWEIMA = 10;
private ScrollView mSv_xieyi;
private ImageView mIv_xieyi;
private ImageLoader imageLoader;
private String dingweima = "1007";
private Handler mHandler = new Handler() {
public void handleMessage(android.os.Message msg) {
if (msg != null) {
switch (msg.what) {
case MSG_SHOW_DINGWEIMA:
{
if (dingweima != null) {
new ToastUtils(HeZuoXieYiActivity.this).showToast(dingweima, Gravity.BOTTOM|Gravity.RIGHT);
}
}
break;
case Constants.NO_NETWORK:
break;
case Constants.TAG_SUCCESS:
Bundle bundle = msg.getData();
String request_url = bundle.getString("request_url");
String resp = bundle.getString("resp");
try {
JSONObject jsonObject = new JSONObject(resp);
String result = jsonObject.optString("result", "");
if (result.equals(Constants.RESULT_SUCCESS)) {
if (request_url.equals(ServerUrl.METHOD_queryListByLinkNOs)) {
JSONArray array_data = jsonObject.optJSONArray("data");
if (array_data != null) {
for (int i = 0; i < array_data.length(); i++) {
JSONObject object = array_data.getJSONObject(i);
String url = object.optString("url");
imageLoader.displayImage(url, mIv_xieyi, AppContext.mDisplayImageOptions_no_round_corner,
new ImageLoadingListener() {
@Override
public void onLoadingStarted(String imageUri, View view) {
// TODO Auto-generated method stub
}
@Override
public void onLoadingFailed(String imageUri, View view,
FailReason failReason) {
// TODO Auto-generated method stub
}
@Override
public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {
// TODO Auto-generated method stub
if (loadedImage != null) {
int bmp_width = loadedImage.getWidth();
int bmp_height = loadedImage.getHeight();
MyLog.d(TAG, "width: " + bmp_width + ", height: " + bmp_height);
DisplayMetrics dm = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(dm);
int screen_width = dm.widthPixels;
Matrix matrix = new Matrix();
float scale = (float)screen_width/(float)bmp_width;
matrix.postScale(scale, scale);
Bitmap resizeBmp = Bitmap.createBitmap(loadedImage,0,0,loadedImage.getWidth(),loadedImage.getHeight(),matrix,true);
mIv_xieyi.setImageBitmap(resizeBmp);
}
}
@Override
public void onLoadingCancelled(String imageUri, View view) {
// TODO Auto-generated method stub
}
});
break;
}
}
}
}
else if (result.equals(Constants.RESULT_ERROR)) {
String errorMsg = jsonObject.optString("errorMsg", "出错!");
Toast.makeText(HeZuoXieYiActivity.this.getApplicationContext(), errorMsg, Toast.LENGTH_SHORT).show();
}
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Toast.makeText(HeZuoXieYiActivity.this.getApplicationContext(), "出错!", Toast.LENGTH_SHORT).show();
}
break;
case Constants.TAG_FAIL:
Toast.makeText(HeZuoXieYiActivity.this.getApplicationContext(), "请求出错!", Toast.LENGTH_SHORT).show();
break;
case Constants.TAG_EXCEPTION:
Toast.makeText(HeZuoXieYiActivity.this.getApplicationContext(), "请求出错!", Toast.LENGTH_SHORT).show();
break;
default:
break;
}
}
};
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_tab_more_house_register_hezuoxieyi);
imageLoader = ImageLoader.getInstance();
initActivity();
}
private void initActivity() {
mSv_xieyi = (ScrollView)findViewById(R.id.sv_xieyi);
mIv_xieyi = (ImageView)findViewById(R.id.iv_xieyi);
mSv_xieyi.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
{
mHandler.postDelayed(runnable_count_time, 500);
}
break;
case MotionEvent.ACTION_UP:
{
if (!isDingweimaShown) {
mHandler.removeCallbacks(runnable_count_time);
}
countLongPressedTime = 0;
isDingweimaShown = false;
}
break;
}
return false;
}
});
}
private int countLongPressedTime = 0;
private boolean isDingweimaShown = false;
private Runnable runnable_count_time = new Runnable() {
@Override
public void run() {
// TODO Auto-generated method stub
if (++countLongPressedTime == 20) {
countLongPressedTime = 0;
isDingweimaShown = true;
mHandler.sendEmptyMessage(MSG_SHOW_DINGWEIMA);
mHandler.removeCallbacks(this);
return;
}
mHandler.postDelayed(this, 500);
}
};
public void BackClicked(View view) {
finish();
}
}
|
[
"764512727@qq.com"
] |
764512727@qq.com
|
0648f16dbf7b7ee8f3d85f1a2e10fe11dd46c696
|
ba90ba9bcf91c4dbb1121b700e48002a76793e96
|
/com-gameportal-pay/src/main/java/com/gameportal/pay/controller/RfZFBWapPayController.java
|
7182284c98416ff4c339ee4182d240bf1e1a1cfd
|
[] |
no_license
|
portalCMS/xjw
|
1ab2637964fd142f8574675bd1c7626417cf96d9
|
f1bdba0a0602b8603444ed84f6d7afafaa308b63
|
refs/heads/master
| 2020-04-16T13:33:21.792588
| 2019-01-18T02:29:40
| 2019-01-18T02:29:40
| 165,632,513
| 0
| 9
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,876
|
java
|
package com.gameportal.pay.controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Timestamp;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import com.alibaba.fastjson.JSON;
import com.gameportal.pay.model.PayOrder;
import com.gameportal.pay.model.PayPlatform;
import com.gameportal.pay.model.RFPayment;
import com.gameportal.pay.util.DigestUtils;
import com.gameportal.redis.service.IRedisService;
import com.gameportal.web.user.model.UserInfo;
/**
* 锐付wap支付宝扫码。
*
* @author Administrator
*
*/
@Controller
@RequestMapping(value = "/pay")
public class RfZFBWapPayController extends BasePayController {
private static final Logger logger = Logger.getLogger(RfZFBWapPayController.class);
@Resource(name = "redisServiceImpl")
private IRedisService iRedisService;
/**
* 锐付wap支付。
*
* @param type
* @param vuid
* @param totalAmount
* @param request
* @param response
* @return
*/
@RequestMapping("/rfzfbwap/{type}")
@ResponseBody
public void prePayment(@PathVariable String type, @RequestParam(value = "hd") String hd,
@RequestParam(value = "vuid") String vuid, @RequestParam(value = "totalAmount") String totalAmount,@RequestParam(value = "requestHost") String requestHost,
HttpServletRequest request, HttpServletResponse response) throws IOException {
if (StringUtils.isNotBlank(vuid)) {
String key = vuid + "GAMEPORTAL_USER";
Class<Object> c = null;
UserInfo userInfo = (UserInfo) iRedisService.getRedisResult(key, c);
response.setContentType("text/html;charset=GBK");
response.setCharacterEncoding("GBK");
PrintWriter writer = response.getWriter();
if (userInfo != null) {
if (hd != null && !"".equals(hd)) {
wapValidate(userInfo, hd, requestHost, request, response);
}
Map<String, Object> params = new HashMap<String, Object>();
params.put("amount", totalAmount);
params.put("hd", hd);
params.put("requestHost", requestHost);
PayPlatform payPlat = payPlatformService.queryPayPlatform(Long.valueOf(type), 1);
RFPayment pay = payPlatformService.rfPayment(userInfo, params, payPlat);
logger.info("WAP锐付支付宝请求参数:"+JSON.toJSONString(pay));
try {
redirect(pay, payPlat, writer);
writer.flush();
response.flushBuffer();
writer.close();
} catch (Exception e) {
logger.error("锐付预支付异常:",e);
response.addHeader("refresh", "5;url=http://" + requestHost);
writer.write("发生错误,即将返回...");
writer.flush();
response.flushBuffer();
writer.close();
return;
}
}
}
}
private void redirect(RFPayment pay,PayPlatform payPlat,PrintWriter writer) {
String out ="<html xmlns=\"http://www.w3.org/1999/xhtml\">";
out +="<head>";
out +="<meta http-equiv=\"Content-Type\" content=\"hidden/html; charset=utf-8\" />";
out +="<title>跳转中......</title>";
out +="</head>";
out +="<body style=\"background:url(/images/pay_loading.gif) no-repeat fixed center;\">";
out +="<form action='"+payPlat.getDomainname() +"' method=\"post\" id=\"frm7\"><br>";
out +="<input type=\"hidden\" name=\"partyId\" id=\"partyId\" value='"+pay.getPartyId()+"'/><br />";
out +="<input type=\"hidden\" name=\"accountId\" id=\"accountId\" value='"+pay.getAccountId()+"'/><br />";
out +="<input type=\"hidden\" name=\"appType\" id=\"appType\" value='"+pay.getAppType()+"'/><br />";
out +="<input type=\"hidden\" name=\"orderNo\" id=\"orderNo\" value='"+pay.getOrderNo()+"'/><br />";
out +="<input type=\"hidden\" name=\"orderAmount\" id=\"orderAmount\" value='"+pay.getOrderAmount()+"'/><br />";
out +="<input type=\"hidden\" name=\"goods\" id=\"goods\" value='"+pay.getGoods()+"'/><br />";
out +="<input type=\"hidden\" name=\"returnUrl\" id=\"returnUrl\" value='"+pay.getReturnUrl()+"'/><br />";
out +="<input type=\"hidden\" name=\"cardType\" id=\"cardType\" value='"+pay.getCardType()+"'/><br />";
out +="<input type=\"hidden\" name=\"refCode\" id=\"refCode\" value='"+pay.getRefCode()+"'/><br />";
out +="<input type=\"hidden\" name=\"bank\" id=\"bank\" value='"+pay.getBank()+"'/><br />";
out +="<input type=\"hidden\" name=\"encodeType\" id=\"encodeType\" value='"+pay.getEncodeType()+"'/><br />";
out +="<input type=\"hidden\" name=\"signMD5\" id=\"signMD5\" value='"+pay.getSignMD5()+"'/><br />";
out +="<script language=\"javascript\">";
out +="document.getElementById(\"frm7\").submit();";
out +="</script>";
out +="</form>";
out +="</body>";
out +="</html>";
writer.write(out);
}
/**
* 支付回调接口
*
* @param amount
* @param request
* @param response
* @return
* @throws Exception
*/
@RequestMapping("/rfzfbwap/callback")
@ResponseBody
public void callBack(HttpServletRequest request, HttpServletResponse response) throws Exception {
request.setCharacterEncoding("utf-8");
response.setContentType("text/html;charset=GBK");
response.setCharacterEncoding("GBK");
PrintWriter out = response.getWriter();
try {
// 返回参数
StringBuilder origSign = new StringBuilder("orderNo").append(request.getParameter("orderNo"));
origSign.append("appType").append(request.getParameter("appType"));
origSign.append("orderAmount").append(request.getParameter("orderAmount"));
origSign.append("succ").append(request.getParameter("succ"));
origSign.append("encodeType").append(request.getParameter("encodeType"));
// 签名
String sign = request.getParameter("signMD5");
logger.info("锐付后台回调信息:" + origSign.toString() + ",返回信息:" + request.getParameter("succ")+",签名:"+sign);
if (request.getParameter("succ").equals("Y")) {
// 1.判断订单是否已经支付成功。
PayOrder order = payPlatformService.queryPayOrderId(request.getParameter("orderNo").substring(4), null, null,
"0");
if (order == null) {
logger.info("订单号不存在。");
out.write("checkfail");
} else if (order.getStatus() == 3) {
out.write("checkok");
} else {
// 2.验签
PayPlatform payPlat = payPlatformService.queryPayPlatform(41L);
String signStr = origSign.append(payPlat.getPlatformkey())
.toString();
if (DigestUtils.md5DigestAsHex(signStr.getBytes("UTF-8")).equalsIgnoreCase(sign)) {
if (!order.getAmount().toString().equals(request.getParameter("orderAmount"))) {
logger.info("订单号[" + order.getPlatformorders() + "]金额不匹配。");
out.write("checkfail");
} else {
// 3.修改订单状态
order.setUpdateDate(new Date());
Timestamp date = new Timestamp(new Date().getTime());
order.setUpdateDate(date);
order.setRemarks(request.getParameter("tradeNo"));
order.setPaystatus(2);
order.setStatus(3);
// 4.用户上分
payPlatformService.rfPay(order);
logger.info(
"充值加款成功->平台订单编号:" + order.getPlatformorders() + "->第三方订单编号:" + order.getRemarks()+"金额:"+order.getAmount());
out.write("checkok");
}
} else {
logger.info("锐付签名验证失败。");
out.write("checkfail");
}
}
}
} catch (Exception e) {
logger.error("锐付后台回调失败。" + e.getMessage());
out.write("checkfail");
}
}
}
|
[
"sunny@gmail.com"
] |
sunny@gmail.com
|
db8cce7a0d684c60185cccc225e9e637d83e2bfc
|
270c25fe34715c54ae4ab648a1c3b9a1f5e8b54f
|
/platform/lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupPreview.java
|
4c0e852b2289db7c2b71f83332a43c5242f6006d
|
[
"Apache-2.0"
] |
permissive
|
njues/intellij-community
|
a74c73693a129e577863eff35c007060e1d7059e
|
86788831f308ab17274b45346142570ef3b9cebc
|
refs/heads/master
| 2020-12-30T19:45:59.226577
| 2016-10-29T07:24:15
| 2016-10-29T07:24:15
| 58,253,540
| 0
| 0
| null | 2016-05-07T06:48:38
| 2016-05-07T06:48:37
| null |
UTF-8
|
Java
| false
| false
| 4,196
|
java
|
/*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.intellij.codeInsight.lookup.impl;
import com.intellij.codeInsight.lookup.LookupElement;
import com.intellij.codeInsight.lookup.LookupElementPresentation;
import com.intellij.openapi.editor.*;
import com.intellij.openapi.editor.colors.EditorFontType;
import com.intellij.openapi.editor.impl.EditorImpl;
import com.intellij.openapi.util.Disposer;
import com.intellij.openapi.util.TextRange;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.refactoring.rename.inplace.InplaceRefactoring;
import com.intellij.ui.JBColor;
import com.intellij.util.containers.ContainerUtil;
import com.intellij.util.containers.FList;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.awt.*;
import java.util.ArrayList;
import java.util.List;
/**
* @author peter
*/
class LookupPreview {
private final List<Inlay> myInlays = new ArrayList<>();
private final LookupImpl myLookup;
LookupPreview(LookupImpl lookup) {
myLookup = lookup;
}
void updatePreview(@Nullable LookupElement item) {
if (!Registry.is("ide.lookup.preview.insertion")) return;
myInlays.forEach(Disposer::dispose);
myInlays.clear();
String suffix = getSuffixText(item);
Editor editor = myLookup.getTopLevelEditor();
if (!suffix.isEmpty() && editor instanceof EditorImpl &&
!editor.getSelectionModel().hasSelection() &&
InplaceRefactoring.getActiveInplaceRenamer(editor) == null) {
for (Caret caret : editor.getCaretModel().getAllCarets()) {
ensureCaretBeforeInlays(caret);
addInlay(suffix, caret.getOffset());
}
}
}
private static void ensureCaretBeforeInlays(Caret caret) {
LogicalPosition position = caret.getLogicalPosition();
if (position.leansForward) {
caret.moveToLogicalPosition(position.leanForward(false));
}
}
private String getSuffixText(@Nullable LookupElement item) {
if (item != null) {
String itemText = StringUtil.notNullize(LookupElementPresentation.renderElement(item).getItemText());
String prefix = myLookup.itemPattern(item);
if (prefix.isEmpty()) {
return itemText;
}
FList<TextRange> fragments = LookupCellRenderer.getMatchingFragments(prefix, itemText);
if (fragments != null && !fragments.isEmpty()) {
List<TextRange> list = ContainerUtil.newArrayList(fragments);
return itemText.substring(list.get(list.size() - 1).getEndOffset(), itemText.length());
}
}
return "";
}
private void addInlay(String suffix, int caretOffset) {
Inlay inlay = myLookup.getTopLevelEditor().getInlayModel().addInlineElement(caretOffset, createGrayRenderer(suffix));
if (inlay != null) {
myInlays.add(inlay);
Disposer.register(myLookup, inlay);
}
}
@NotNull
private static EditorCustomElementRenderer createGrayRenderer(final String suffix) {
return new EditorCustomElementRenderer() {
@Override
public int calcWidthInPixels(@NotNull Editor editor) {
return editor.getContentComponent().getFontMetrics(getFont(editor)).stringWidth(suffix);
}
@Override
public void paint(@NotNull Editor editor, @NotNull Graphics g, @NotNull Rectangle r) {
g.setColor(JBColor.GRAY);
g.setFont(getFont(editor));
g.drawString(suffix, r.x, r.y + ((EditorImpl)editor).getAscent());
}
private Font getFont(@NotNull Editor editor) {
return editor.getColorsScheme().getFont(EditorFontType.PLAIN);
}
};
}
}
|
[
"peter@jetbrains.com"
] |
peter@jetbrains.com
|
b1394baffc36b852e97486f34910206c1bd6a916
|
9f3d00d19d93df165347acdfd10548f43eb54513
|
/2.JavaCore/src/com/javarush/task/task18/task1807/Solution.java
|
548a421c406b6c674b6ca6ebd04344b91279ad26
|
[] |
no_license
|
reset1301/javarushTasks
|
eebeb85e9cb35feb8aac2c96b73d7afa7bdaea67
|
29a8e8b08bc73f831ff182e7b04c3eb49a56c740
|
refs/heads/master
| 2018-09-28T10:01:06.772595
| 2018-07-09T10:33:07
| 2018-07-09T10:33:07
| 116,394,770
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 868
|
java
|
package com.javarush.task.task18.task1807;
/*
Подсчет запятых
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
FileInputStream fileInputStream = new FileInputStream(bufferedReader.readLine());
// FileInputStream fileInputStream = new FileInputStream("c:\\111\\aaa.222");
// System.out.println((byte)',');
byte[] buf=new byte[fileInputStream.available()];
int sum=0;
while (fileInputStream.available()>0){
int count = fileInputStream.read(buf);
for (int i=0;i<count;i++){
if (buf[i]==44)
sum++;
}
}
System.out.println(sum);
fileInputStream.close();
}
}
|
[
"reset1301@mail.ru"
] |
reset1301@mail.ru
|
96a18003984b9c51c3ff72057a4edbbcb2978760
|
206d15befecdfb67a93c61c935c2d5ae7f6a79e9
|
/justdoit/SoNingboq/src/main/java/ningbo/media/oauth2/services/HMACSha1SignatureService.java
|
63eef2757db2418285fe4795dd91d2df94b80ac8
|
[] |
no_license
|
MarkChege/micandroid
|
2e4d2884929548a814aa0a7715727c84dc4dcdab
|
0b0a6dee39cf7e258b6f54e1103dcac8dbe1c419
|
refs/heads/master
| 2021-01-10T19:15:34.994670
| 2013-05-16T05:56:21
| 2013-05-16T05:56:21
| 34,704,029
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,704
|
java
|
package ningbo.media.oauth2.services ;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import ningbo.media.oauth2.exception.OAuthSignatureException;
import ningbo.media.oauth2.utils.OAuthEncoder;
import ningbo.media.oauth2.utils.Preconditions;
import org.apache.commons.codec.binary.Base64;
/**
* HMAC-SHA1 implementation of {@SignatureService}
*
*
*/
public class HMACSha1SignatureService implements SignatureService
{
private static final String EMPTY_STRING = "";
private static final String CARRIAGE_RETURN = "\r\n";
private static final String UTF8 = "UTF-8";
private static final String HMAC_SHA1 = "HmacSHA1";
private static final String METHOD = "HMAC-SHA1";
/**
* {@inheritDoc}
*/
public String getSignature(String baseString, String apiSecret, String tokenSecret)
{
try
{
Preconditions.checkEmptyString(baseString, "Base string cant be null or empty string");
Preconditions.checkEmptyString(apiSecret, "Api secret cant be null or empty string");
return doSign(baseString, OAuthEncoder.encode(apiSecret) + '&' + OAuthEncoder.encode(tokenSecret));
}
catch (Exception e)
{
throw new OAuthSignatureException(baseString, e);
}
}
private String doSign(String toSign, String keyString) throws Exception
{
SecretKeySpec key = new SecretKeySpec((keyString).getBytes(UTF8), HMAC_SHA1);
Mac mac = Mac.getInstance(HMAC_SHA1);
mac.init(key);
byte[] bytes = mac.doFinal(toSign.getBytes(UTF8));
return new String(Base64.encodeBase64(bytes)).replace(CARRIAGE_RETURN, EMPTY_STRING);
}
/**
* {@inheritDoc}
*/
public String getSignatureMethod()
{
return METHOD;
}
}
|
[
"zoopnin@gmail.com@29cfa68c-37ae-8048-bc30-ccda835e92b1"
] |
zoopnin@gmail.com@29cfa68c-37ae-8048-bc30-ccda835e92b1
|
71c892cc6ecbbbd3e90466c13b530248b7c73d6c
|
21bcd1da03415fec0a4f3fa7287f250df1d14051
|
/sources/com/google/android/gms/internal/location/C4669w.java
|
6c03b76f509670519cc1347275731427df0f0f98
|
[] |
no_license
|
lestseeandtest/Delivery
|
9a5cc96bd6bd2316a535271ec9ca3865080c3ec8
|
bc3fae8f30804a2520e6699df92c2e6a4a0a7cfc
|
refs/heads/master
| 2022-04-24T12:14:22.396398
| 2020-04-25T21:50:29
| 2020-04-25T21:50:29
| 258,875,870
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 202
|
java
|
package com.google.android.gms.internal.location;
import com.google.android.gms.location.C5161u0;
/* renamed from: com.google.android.gms.internal.location.w */
final class C4669w extends C5161u0 {
}
|
[
"zsolimana@uaedomain.local"
] |
zsolimana@uaedomain.local
|
638cf02df2c272e0d80dd7ab6a92ddb0895fcaaf
|
d49bbeedf8073d0b4fc23672d24b484d8988024e
|
/BouncyCastle/tls/src/main/jdk1.9/org/bouncycastle/jsse/provider/ProvSSLSocketWrap_9.java
|
3f44206ce28141e13d33a636e80a8da89a45cabc
|
[
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
sqf-ice/BouncyCastle
|
a6b34bd56fa7e5545e19dd8a1174d614b625a1e8
|
02bec112a39175ebe19dd22236d2b4d6558dfa8c
|
refs/heads/master
| 2022-11-17T08:52:07.224092
| 2020-07-14T23:21:12
| 2020-07-14T23:21:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,145
|
java
|
package com.distrimind.bouncycastle.jsse.provider;
import java.io.IOException;
import java.io.InputStream;
import java.net.Socket;
import java.util.List;
import java.util.function.BiFunction;
import javax.net.ssl.SSLSocket;
class ProvSSLSocketWrap_9
extends ProvSSLSocketWrap
{
protected ProvSSLSocketWrap_9(ContextData contextData, Socket s, InputStream consumed, boolean autoClose)
throws IOException
{
super(contextData, s, consumed, autoClose);
}
protected ProvSSLSocketWrap_9(ContextData contextData, Socket s, String host, int port, boolean autoClose)
throws IOException
{
super(contextData, s, host, port, autoClose);
}
@Override
public synchronized void setHandshakeApplicationProtocolSelector(BiFunction<SSLSocket, List<String>, String> selector)
{
sslParameters.setSocketAPSelector(JsseUtils_9.importAPSelector(selector));
}
@Override
public synchronized BiFunction<SSLSocket, List<String>, String> getHandshakeApplicationProtocolSelector()
{
return JsseUtils_9.exportAPSelector(sslParameters.getSocketAPSelector());
}
}
|
[
"jason.mahdjoub@distri-mind.fr"
] |
jason.mahdjoub@distri-mind.fr
|
85704d58eb384f95545734f4ecd7808f95c7b105
|
e1e5bd6b116e71a60040ec1e1642289217d527b0
|
/H5/L2jMaster_org/L2jMaster_org_2019_07_02/L2JMaster_Server/src/main/java/com/l2jserver/gameserver/model/itemcontainer/ClanWarehouse.java
|
86706ffbaea48e6806ccbb1f051f3aa64d9deb99
|
[] |
no_license
|
serk123/L2jOpenSource
|
6d6e1988a421763a9467bba0e4ac1fe3796b34b3
|
603e784e5f58f7fd07b01f6282218e8492f7090b
|
refs/heads/master
| 2023-03-18T01:51:23.867273
| 2020-04-23T10:44:41
| 2020-04-23T10:44:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,856
|
java
|
/*
* Copyright (C) 2004-2019 L2J Server
*
* This file is part of L2J Server.
*
* L2J Server is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* L2J Server is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jserver.gameserver.model.itemcontainer;
import com.l2jserver.Config;
import com.l2jserver.gameserver.enums.ItemLocation;
import com.l2jserver.gameserver.model.L2Clan;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.events.EventDispatcher;
import com.l2jserver.gameserver.model.events.impl.character.player.clanwh.OnPlayerClanWHItemAdd;
import com.l2jserver.gameserver.model.events.impl.character.player.clanwh.OnPlayerClanWHItemDestroy;
import com.l2jserver.gameserver.model.events.impl.character.player.clanwh.OnPlayerClanWHItemTransfer;
import com.l2jserver.gameserver.model.items.instance.L2ItemInstance;
public final class ClanWarehouse extends Warehouse
{
private final L2Clan _clan;
public ClanWarehouse(L2Clan clan)
{
_clan = clan;
}
@Override
public String getName()
{
return "ClanWarehouse";
}
@Override
public int getOwnerId()
{
return _clan.getId();
}
@Override
public L2PcInstance getOwner()
{
return _clan.getLeader().getPlayerInstance();
}
@Override
public ItemLocation getBaseLocation()
{
return ItemLocation.CLANWH;
}
public String getLocationId()
{
return "0";
}
public int getLocationId(boolean dummy)
{
return 0;
}
public void setLocationId(L2PcInstance dummy)
{
}
@Override
public boolean validateCapacity(long slots)
{
return ((_items.size() + slots) <= Config.WAREHOUSE_SLOTS_CLAN);
}
@Override
public L2ItemInstance addItem(String process, int itemId, long count, int enchantLevel, L2PcInstance actor, Object reference)
{
final L2ItemInstance item = super.addItem(process, itemId, count, enchantLevel, actor, reference);
// Notify to scripts
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerClanWHItemAdd(process, actor, item, this), item.getItem());
return item;
}
@Override
public L2ItemInstance addItem(String process, L2ItemInstance item, L2PcInstance actor, Object reference)
{
// Notify to scripts
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerClanWHItemAdd(process, actor, item, this), item.getItem());
return super.addItem(process, item, actor, reference);
}
@Override
public L2ItemInstance destroyItem(String process, L2ItemInstance item, long count, L2PcInstance actor, Object reference)
{
// Notify to scripts
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerClanWHItemDestroy(process, actor, item, count, this), item.getItem());
return super.destroyItem(process, item, count, actor, reference);
}
@Override
public L2ItemInstance transferItem(String process, int objectId, long count, ItemContainer target, L2PcInstance actor, Object reference)
{
final L2ItemInstance item = getItemByObjectId(objectId);
// Notify to scripts
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerClanWHItemTransfer(process, actor, item, count, target), item.getItem());
return super.transferItem(process, objectId, count, target, actor, reference);
}
}
|
[
"64197706+L2jOpenSource@users.noreply.github.com"
] |
64197706+L2jOpenSource@users.noreply.github.com
|
84a1ead36388ef90947d5c34d377d99aef10736d
|
081fb9fb34ddd2c0e0fac0c6d9bf1caa5bf4a2f2
|
/pysmis/src/com/onlineMIS/action/chainS/preOrder/PreOrderAction.java
|
0a189029182b612945a68950f9b1efe057c069af
|
[] |
no_license
|
fredoxia/pysmis
|
497c4c6d7306d511169cd15dfbc6bab95c17bce7
|
32703fd1634b78e8f76d51a84597c93a0eaa221b
|
refs/heads/master
| 2021-08-22T12:59:32.712388
| 2021-06-08T23:48:26
| 2021-06-08T23:48:26
| 160,357,861
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,000
|
java
|
package com.onlineMIS.action.chainS.preOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import com.onlineMIS.ORM.DAO.chainS.preOrder.PreOrderChainService;
import com.onlineMIS.ORM.DAO.headQ.preOrder.PreOrderHQService;
import com.onlineMIS.action.BaseAction;
public class PreOrderAction extends BaseAction {
/**
*
*/
private static final long serialVersionUID = -4442908626911931327L;
@Autowired
protected PreOrderChainService preOrderChainService;
protected PreOrderActionFormBean formBean = new PreOrderActionFormBean();
protected PreOrderActionUIBean uiBean = new PreOrderActionUIBean();
public PreOrderActionFormBean getFormBean() {
return formBean;
}
public void setFormBean(PreOrderActionFormBean formBean) {
this.formBean = formBean;
}
public PreOrderActionUIBean getUiBean() {
return uiBean;
}
public void setUiBean(PreOrderActionUIBean uiBean) {
this.uiBean = uiBean;
}
}
|
[
"xiaf@global.anz.com"
] |
xiaf@global.anz.com
|
a086d4fabed02e35786d1dd565284fb003f110e9
|
957c6953d076dd5fec73f43caa3f5c3b85a05e80
|
/src/main/java/com/sztouyun/advertisingsystem/viewmodel/account/CreateUserViewModel.java
|
a11029e0f8ea300f7ef3e821699fd11a180e0100
|
[
"Apache-2.0"
] |
permissive
|
chenhaujing/advertisingsystem
|
d8e44747ad023018300ef28bdea00b9e7f677423
|
7871c89a604bc64045664be0760d7f14639a2439
|
refs/heads/master
| 2023-01-20T10:21:05.535808
| 2020-05-14T03:48:33
| 2020-05-14T03:48:33
| 119,918,573
| 0
| 0
|
Apache-2.0
| 2023-01-12T09:00:25
| 2018-02-02T02:07:10
|
Java
|
UTF-8
|
Java
| false
| false
| 1,954
|
java
|
package com.sztouyun.advertisingsystem.viewmodel.account;
import com.sztouyun.advertisingsystem.common.Constant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.Date;
@ApiModel
public class CreateUserViewModel {
@ApiModelProperty(value = "昵称", required = true)
@NotBlank(message = "昵称不能为空")
@Size(max = 128,message = "昵称太长")
private String nickname;
@ApiModelProperty(value = "电话号码", required = true)
@NotBlank(message = "电话号码不能为空")
@Pattern(regexp = Constant.REG_PHONE, message = "联系电话格式错误!")
private String phoneNumber;
@ApiModelProperty(value="角色ID",required = true)
@NotBlank(message = "角色ID不能为空")
private String roleId;
@ApiModelProperty(value = "部门编号", required = false)
@Size(max = 36,message = "部门编号太长")
private String organizationId;
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
this.nickname = nickname;
}
public String getOrganizationId() {
if(organizationId==null)
this.organizationId="";
return organizationId;
}
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId;
}
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
public String getRoleId() {
return roleId;
}
public void setRoleId(String roleId) {
this.roleId = roleId;
}
}
|
[
"1032291008@qq.com"
] |
1032291008@qq.com
|
27dfd554d1336f8ae518be170321809fd71d695d
|
5c8cdc4f433b7658e31fffd5adf7175d6bad9d30
|
/mate-support/mate-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobTriggerPoolHelper.java
|
398713dd917d5459d53f353bd9ffe22f1d14bd72
|
[
"Apache-2.0"
] |
permissive
|
matevip/matecloud
|
9e603dde9be212f045549332d76a18a171297714
|
3a39a7a7090850b5936068f228dd58d73960410e
|
refs/heads/dev
| 2023-09-03T12:41:19.704337
| 2023-07-30T02:05:17
| 2023-07-30T02:05:17
| 218,435,426
| 1,438
| 427
|
Apache-2.0
| 2023-06-22T11:17:52
| 2019-10-30T03:25:43
|
Java
|
UTF-8
|
Java
| false
| false
| 5,163
|
java
|
package com.xxl.job.admin.core.thread;
import com.xxl.job.admin.core.conf.XxlJobAdminConfig;
import com.xxl.job.admin.core.trigger.TriggerTypeEnum;
import com.xxl.job.admin.core.trigger.XxlJobTrigger;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.concurrent.*;
import java.util.concurrent.atomic.AtomicInteger;
/**
* job trigger thread pool helper
*
* @author xuxueli 2018-07-03 21:08:07
*/
public class JobTriggerPoolHelper {
private static Logger logger = LoggerFactory.getLogger(JobTriggerPoolHelper.class);
// ---------------------- trigger pool ----------------------
// fast/slow thread pool
private ThreadPoolExecutor fastTriggerPool = null;
private ThreadPoolExecutor slowTriggerPool = null;
public void start(){
fastTriggerPool = new ThreadPoolExecutor(
10,
XxlJobAdminConfig.getAdminConfig().getTriggerPoolFastMax(),
60L,
TimeUnit.SECONDS,
new LinkedBlockingQueue<Runnable>(1000),
new ThreadFactory() {
@Override
public Thread newThread(Runnable r) {
return new Thread(r, "xxl-job, admin JobTriggerPoolHelper-fastTriggerPool-" + r.hashCode());
}
});
slowTriggerPool = new ThreadPoolExecutor(
10,
XxlJobAdminConfig.getAdminConfig().getTriggerPoolSlowMax(),
60L,
TimeUnit.SECONDS,
new LinkedBlockingQueue<Runnable>(2000),
new ThreadFactory() {
@Override
public Thread newThread(Runnable r) {
return new Thread(r, "xxl-job, admin JobTriggerPoolHelper-slowTriggerPool-" + r.hashCode());
}
});
}
public void stop() {
//triggerPool.shutdown();
fastTriggerPool.shutdownNow();
slowTriggerPool.shutdownNow();
logger.info(">>>>>>>>> xxl-job trigger thread pool shutdown success.");
}
// job timeout count
private volatile long minTim = System.currentTimeMillis()/60000; // ms > min
private volatile ConcurrentMap<Integer, AtomicInteger> jobTimeoutCountMap = new ConcurrentHashMap<>();
/**
* add trigger
*/
public void addTrigger(final int jobId,
final TriggerTypeEnum triggerType,
final int failRetryCount,
final String executorShardingParam,
final String executorParam,
final String addressList) {
// choose thread pool
ThreadPoolExecutor triggerPool_ = fastTriggerPool;
AtomicInteger jobTimeoutCount = jobTimeoutCountMap.get(jobId);
if (jobTimeoutCount!=null && jobTimeoutCount.get() > 10) { // job-timeout 10 times in 1 min
triggerPool_ = slowTriggerPool;
}
// trigger
triggerPool_.execute(new Runnable() {
@Override
public void run() {
long start = System.currentTimeMillis();
try {
// do trigger
XxlJobTrigger.trigger(jobId, triggerType, failRetryCount, executorShardingParam, executorParam, addressList);
} catch (Exception e) {
logger.error(e.getMessage(), e);
} finally {
// check timeout-count-map
long minTim_now = System.currentTimeMillis()/60000;
if (minTim != minTim_now) {
minTim = minTim_now;
jobTimeoutCountMap.clear();
}
// incr timeout-count-map
long cost = System.currentTimeMillis()-start;
if (cost > 500) { // ob-timeout threshold 500ms
AtomicInteger timeoutCount = jobTimeoutCountMap.putIfAbsent(jobId, new AtomicInteger(1));
if (timeoutCount != null) {
timeoutCount.incrementAndGet();
}
}
}
}
});
}
// ---------------------- helper ----------------------
private static JobTriggerPoolHelper helper = new JobTriggerPoolHelper();
public static void toStart() {
helper.start();
}
public static void toStop() {
helper.stop();
}
/**
* @param jobId
* @param triggerType
* @param failRetryCount
* >=0: use this param
* <0: use param from job info config
* @param executorShardingParam
* @param executorParam
* null: use job param
* not null: cover job param
*/
public static void trigger(int jobId, TriggerTypeEnum triggerType, int failRetryCount, String executorShardingParam, String executorParam, String addressList) {
helper.addTrigger(jobId, triggerType, failRetryCount, executorShardingParam, executorParam, addressList);
}
}
|
[
"7333791@qq.com"
] |
7333791@qq.com
|
63adf1e0b0a32d9f826b93b6b4f555cbdb2f41e7
|
5efc61cf2e85660d4c809662e34acefe27e57338
|
/jasperreports-5.6.0/demo/samples/forms/src/net/sf/jasperreports/forms/textinput/TextInputComponentFill.java
|
03f5f75de7c50658b62991c1ae0c8fb324c45ec1
|
[
"Apache-2.0",
"LGPL-3.0-only"
] |
permissive
|
ferrinsp/kbellfireapp
|
b2924c0a18fcf93dd6dc33168bddf8840f811326
|
751cc81026f27913e31f5b1f14673ac33cbf2df1
|
refs/heads/master
| 2022-12-22T10:01:39.525208
| 2019-06-22T15:33:58
| 2019-06-22T15:33:58
| 135,739,120
| 0
| 1
|
Apache-2.0
| 2022-12-15T23:23:53
| 2018-06-01T16:14:53
|
Java
|
UTF-8
|
Java
| false
| false
| 6,679
|
java
|
/*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2011 Jaspersoft Corporation. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
* JasperReports 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.
*
* JasperReports 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 JasperReports. If not, see <http://www.gnu.org/licenses/>.
*/
package net.sf.jasperreports.forms.textinput;
import net.sf.jasperreports.engine.JRComponentElement;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JRGenericPrintElement;
import net.sf.jasperreports.engine.JRPrintElement;
import net.sf.jasperreports.engine.JRPrintText;
import net.sf.jasperreports.engine.JRRuntimeException;
import net.sf.jasperreports.engine.component.BaseFillComponent;
import net.sf.jasperreports.engine.component.FillPrepareResult;
import net.sf.jasperreports.engine.fill.JRFillCloneFactory;
import net.sf.jasperreports.engine.fill.JRFillCloneable;
import net.sf.jasperreports.engine.fill.JRFillObjectFactory;
import net.sf.jasperreports.engine.fill.JRFillTextField;
import net.sf.jasperreports.engine.fill.JRTemplateGenericElement;
import net.sf.jasperreports.engine.fill.JRTemplateGenericPrintElement;
/**
*
* @author Teodor Danciu (teodord@users.sourceforge.net)
* @version $Id: TextInputComponentFill.java 6931 2014-02-25 17:04:47Z teodord $
*/
public class TextInputComponentFill extends BaseFillComponent {
private final TextInputComponent textInputComponent;
private final JRFillTextField textField;
private JRTemplateGenericElement template;
private JRTemplateGenericPrintElement printElement;
private JRPrintText printText;
public TextInputComponentFill(TextInputComponent textInputComponent, JRFillObjectFactory factory)
{
this.textInputComponent = textInputComponent;
this.textField = (JRFillTextField)factory.getVisitResult(textInputComponent.getTextField());
}
public TextInputComponentFill(TextInputComponent textInputComponent, JRFillCloneFactory factory)
{
this.textInputComponent = textInputComponent;
this.textField = null;//FIXMEINPUT (JRFillTextField)factory.getVisitResult(textInputComponent.getTextField());
}
protected TextInputComponent getTextInputComponent()
{
return textInputComponent;
}
public void evaluate(byte evaluation) throws JRException
{
textField.evaluate(evaluation);
}
public JRPrintElement fill()
{
try
{
printText = (JRPrintText)textField.fill();
}
catch (JRException e)
{
throw new JRRuntimeException(e);
}
printElement.setY(fillContext.getElementPrintY());
printElement.setHeight(printText.getHeight());
copy(printElement);
return printElement;
}
public FillPrepareResult prepare(int availableHeight)
{
try
{
textField.prepare(availableHeight, fillContext.getFillContainerContext().isCurrentOverflow());
}
catch (JRException e)
{
throw new JRRuntimeException(e);
}
FillPrepareResult result = null;
JRComponentElement element = fillContext.getComponentElement();
if (template == null)
{
template = new JRTemplateGenericElement(
fillContext.getElementOrigin(),
fillContext.getDefaultStyleProvider(),
TextInputElement.TEXT_INPUT_ELEMENT_TYPE);
template.setMode(textInputComponent.getContext().getComponentElement().getModeValue());
template.setBackcolor(textInputComponent.getContext().getComponentElement().getBackcolor());
template.setForecolor(textInputComponent.getContext().getComponentElement().getForecolor());
template = deduplicate(template);
}
printElement = new JRTemplateGenericPrintElement(template, printElementOriginator);
printElement.setUUID(element.getUUID());
printElement.setX(element.getX());
printElement.setWidth(element.getWidth());
printElement.setHeight(element.getHeight());
printElement.setParameterValue(TextInputElement.PARAMETER_MULTI_LINE, textInputComponent.isMultiLine());
// copy(printElement);
result = FillPrepareResult.printStretch(textField.getStretchHeight(), false);
return result;
}
public JRFillCloneable createClone(JRFillCloneFactory factory)
{
throw new UnsupportedOperationException();
}
public void evaluateDelayedElement(JRPrintElement element, byte evaluation) throws JRException
{
evaluate(evaluation);
copy((JRGenericPrintElement) element);
}
protected void copy(JRGenericPrintElement printElement)
{
printElement.setParameterValue(TextInputElement.PARAMETER_PRINT_TEXT_ELEMENT, printText);//FIXMEINPUT
// printElement.setParameterValue(SortElement.PARAMETER_SORT_COLUMN_NAME, sortComponent.getSortFieldName());
// printElement.setParameterValue(SortElement.PARAMETER_SORT_COLUMN_TYPE, sortComponent.getSortFieldType().getName());
// printElement.setParameterValue(SortElement.PARAMETER_SORT_HANDLER_COLOR, sortComponent.getHandlerColor());
// printElement.setParameterValue(SortElement.PARAMETER_SORT_HANDLER_FONT, sortComponent.getSymbolFont());
//
// if (sortComponent.getSymbolFont() != null ) {
// printElement.setParameterValue(SortElement.PARAMETER_SORT_HANDLER_FONT_SIZE, String.valueOf(sortComponent.getSymbolFont().getFontSize()));
// }
// if (sortComponent.getHandlerHorizontalAlign() != null)
// {
// printElement.setParameterValue(SortElement.PARAMETER_SORT_HANDLER_HORIZONTAL_ALIGN, sortComponent.getHandlerHorizontalAlign().getName());
// }
// if (sortComponent.getHandlerVerticalAlign() != null)
// {
// printElement.setParameterValue(SortElement.PARAMETER_SORT_HANDLER_VERTICAL_ALIGN, sortComponent.getHandlerVerticalAlign().getName());
// }
//
// FilterTypesEnum filterType = getFilterType();
// if (filterType != null)
// {
// printElement.getPropertiesMap().setProperty(SortElement.PROPERTY_FILTER_TYPE, filterType.getName());
// }
//
// String datasetName = JRAbstractCompiler.getUnitName(
// fillContext.getFiller().getJasperReport(), fillContext.getFillDataset());
// printElement.getPropertiesMap().setProperty(SortElement.PROPERTY_DATASET_RUN, datasetName);
}
}
|
[
"ferrinsp@gmail.com"
] |
ferrinsp@gmail.com
|
edf9d343977c44ff7370f75334de14b492f4598c
|
ef5bea450f69e1d16dee0cd15e9076da2a427e8f
|
/app/src/main/java/cn/longmaster/hospital/doctor/view/google/common/GridSampler.java
|
764a5d47c8e1189a80780dcf1f979bb7e4112a01
|
[] |
no_license
|
chengsoft618/Internet_Hospital_Doctor
|
c9e37e8ce80bf3c303f799406644f1adf4cb10df
|
b6486de17b2246113bcee26d0ec3f2586828d5f7
|
refs/heads/master
| 2021-02-07T20:55:11.939929
| 2020-01-16T09:10:08
| 2020-01-16T09:10:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,707
|
java
|
/*
* Copyright 2007 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.longmaster.hospital.doctor.view.google.common;
import cn.longmaster.hospital.doctor.view.google.NotFoundException;
/**
* Implementations of this class can, given locations of finder patterns for a QR code in an
* image, sample the right points in the image to reconstruct the QR code, accounting for
* perspective distortion. It is abstracted since it is relatively expensive and should be allowed
* to take advantage of platform-specific optimized implementations, like Sun's Java Advanced
* Imaging library, but which may not be available in other environments such as J2ME, and vice
* versa.
* <p>
* The implementation used can be controlled by calling {@link #setGridSampler(GridSampler)}
* with an instance of a class which implements this interface.
*
* @author Sean Owen
*/
public abstract class GridSampler {
private static GridSampler gridSampler = new DefaultGridSampler();
/**
* Sets the implementation of GridSampler used by the library. One global
* instance is stored, which may sound problematic. But, the implementation provided
* ought to be appropriate for the entire platform, and all uses of this library
* in the whole lifetime of the JVM. For instance, an Android activity can swap in
* an implementation that takes advantage of native platform libraries.
*
* @param newGridSampler The platform-specific object to install.
*/
public static void setGridSampler(GridSampler newGridSampler) {
gridSampler = newGridSampler;
}
/**
* @return the current implementation of GridSampler
*/
public static GridSampler getInstance() {
return gridSampler;
}
/**
* Samples an image for a rectangular matrix of bits of the given dimension. The sampling
* transformation is determined by the coordinates of 4 points, in the original and transformed
* image space.
*
* @param image image to sample
* @param dimensionX width of {@link BitMatrix} to sample from image
* @param dimensionY height of {@link BitMatrix} to sample from image
* @param p1ToX point 1 preimage X
* @param p1ToY point 1 preimage Y
* @param p2ToX point 2 preimage X
* @param p2ToY point 2 preimage Y
* @param p3ToX point 3 preimage X
* @param p3ToY point 3 preimage Y
* @param p4ToX point 4 preimage X
* @param p4ToY point 4 preimage Y
* @param p1FromX point 1 image X
* @param p1FromY point 1 image Y
* @param p2FromX point 2 image X
* @param p2FromY point 2 image Y
* @param p3FromX point 3 image X
* @param p3FromY point 3 image Y
* @param p4FromX point 4 image X
* @param p4FromY point 4 image Y
* @return {@link BitMatrix} representing a grid of points sampled from the image within a region
* defined by the "from" parameters
* @throws NotFoundException if image can't be sampled, for example, if the transformation defined
* by the given points is invalid or results in sampling outside the image boundaries
*/
public abstract BitMatrix sampleGrid(BitMatrix image,
int dimensionX,
int dimensionY,
float p1ToX, float p1ToY,
float p2ToX, float p2ToY,
float p3ToX, float p3ToY,
float p4ToX, float p4ToY,
float p1FromX, float p1FromY,
float p2FromX, float p2FromY,
float p3FromX, float p3FromY,
float p4FromX, float p4FromY) throws NotFoundException;
public abstract BitMatrix sampleGrid(BitMatrix image,
int dimensionX,
int dimensionY,
PerspectiveTransform transform) throws NotFoundException;
/**
* <p>Checks a set of points that have been transformed to sample points on an image against
* the image's dimensions to see if the point are even within the image.</p>
*
* <p>This method will actually "nudge" the endpoints back onto the image if they are found to be
* barely (less than 1 pixel) off the image. This accounts for imperfect detection of finder
* patterns in an image where the QR Code runs all the way to the image border.</p>
*
* <p>For efficiency, the method will check points from either end of the line until one is found
* to be within the image. Because the set of points are assumed to be linear, this is valid.</p>
*
* @param image image into which the points should map
* @param points actual points in x1,y1,...,xn,yn form
* @throws NotFoundException if an endpoint is lies outside the image boundaries
*/
protected static void checkAndNudgePoints(BitMatrix image,
float[] points) throws NotFoundException {
int width = image.getWidth();
int height = image.getHeight();
// Check and nudge points from start until we see some that are OK:
boolean nudged = true;
for (int offset = 0; offset < points.length && nudged; offset += 2) {
int x = (int) points[offset];
int y = (int) points[offset + 1];
if (x < -1 || x > width || y < -1 || y > height) {
throw NotFoundException.getNotFoundInstance();
}
nudged = false;
if (x == -1) {
points[offset] = 0.0f;
nudged = true;
} else if (x == width) {
points[offset] = width - 1;
nudged = true;
}
if (y == -1) {
points[offset + 1] = 0.0f;
nudged = true;
} else if (y == height) {
points[offset + 1] = height - 1;
nudged = true;
}
}
// Check and nudge points from end:
nudged = true;
for (int offset = points.length - 2; offset >= 0 && nudged; offset -= 2) {
int x = (int) points[offset];
int y = (int) points[offset + 1];
if (x < -1 || x > width || y < -1 || y > height) {
throw NotFoundException.getNotFoundInstance();
}
nudged = false;
if (x == -1) {
points[offset] = 0.0f;
nudged = true;
} else if (x == width) {
points[offset] = width - 1;
nudged = true;
}
if (y == -1) {
points[offset + 1] = 0.0f;
nudged = true;
} else if (y == height) {
points[offset + 1] = height - 1;
nudged = true;
}
}
}
}
|
[
"wangyangguiyang@163.com"
] |
wangyangguiyang@163.com
|
255f22b427f509547e7b6b824c3f41ea171f0f7b
|
5faa196e551de266c27ba4da3ad2b47510fa587e
|
/app/src/main/java/com/xxzlkj/zhaolinshouyin/db/GoodsClass.java
|
5d45ef3e54ff8df7af598138901b39a775d9fc9d
|
[] |
no_license
|
leifeng1991/SY
|
0f31e6568480323a88b125e53a3647c11c05b47d
|
d9749e86dac090d372a6c2d664be85c71ceff52e
|
refs/heads/master
| 2021-01-25T11:40:13.376371
| 2018-03-01T10:10:58
| 2018-03-01T10:10:58
| 123,417,737
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,249
|
java
|
package com.xxzlkj.zhaolinshouyin.db;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
/**
* 描述: 商品分类表
*
* @author zhangrq
* 2017/12/4 14:55
*/
@Entity
public class GoodsClass {
@Id
private long id;// 分类id
private long pid;// 父级id
private long topid;// 顶级id
private String title;// 分类名
@Generated(hash = 974724227)
public GoodsClass(long id, long pid, long topid, String title) {
this.id = id;
this.pid = pid;
this.topid = topid;
this.title = title;
}
@Generated(hash = 563038460)
public GoodsClass() {
}
public long getId() {
return this.id;
}
public void setId(long id) {
this.id = id;
}
public long getPid() {
return this.pid;
}
public void setPid(long pid) {
this.pid = pid;
}
public long getTopid() {
return this.topid;
}
public void setTopid(long topid) {
this.topid = topid;
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
}
|
[
"15036833790@163.com"
] |
15036833790@163.com
|
b3dcd5222389e851bca8dc5f4b602851984e8186
|
af1323be9e1a396a1dbc73b32aafe669e4dcccde
|
/src/main/java/com/brain/fisc/contribuable/config/CloudDatabaseConfiguration.java
|
38a3f91f0dc615dbe36acd3b0e80d6968fecb500
|
[] |
no_license
|
sandalothier/fiscalisation
|
71ed7ea712386944bc5a6dccc7214c8fbe1b168c
|
36ae1551702669a6412bd9b60c3290a299c6f49e
|
refs/heads/master
| 2022-12-23T20:56:40.966617
| 2019-09-09T11:39:58
| 2019-09-09T11:39:58
| 207,295,268
| 0
| 0
| null | 2022-12-16T05:03:27
| 2019-09-09T11:39:51
|
Java
|
UTF-8
|
Java
| false
| false
| 1,016
|
java
|
package com.brain.fisc.contribuable.config;
import io.github.jhipster.config.JHipsterConstants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cache.CacheManager;
import org.springframework.cloud.config.java.AbstractCloudConfig;
import org.springframework.context.annotation.*;
import javax.sql.DataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
@Configuration
@Profile(JHipsterConstants.SPRING_PROFILE_CLOUD)
public class CloudDatabaseConfiguration extends AbstractCloudConfig {
private final Logger log = LoggerFactory.getLogger(CloudDatabaseConfiguration.class);
private static final String CLOUD_CONFIGURATION_HIKARI_PREFIX = "spring.datasource.hikari";
@Bean
@ConfigurationProperties(CLOUD_CONFIGURATION_HIKARI_PREFIX)
public DataSource dataSource(CacheManager cacheManager) {
log.info("Configuring JDBC datasource from a cloud provider");
return connectionFactory().dataSource();
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
0a375b4a9f1e02dccc5957965aa9edd11b0c2200
|
082e26b011e30dc62a62fae95f375e4f87d9e99c
|
/docs/weixin_7.0.4_source/反编译源码/未反混淆/src/main/java/com/tencent/mm/emoji/loader/e/d.java
|
7d7009fded355afb3b9c4cee21efbb4e9bd15a49
|
[] |
no_license
|
xsren/AndroidReverseNotes
|
9631a5aabc031006e795a112b7ac756a8edd4385
|
9202c276fe9f04a978e4e08b08e42645d97ca94b
|
refs/heads/master
| 2021-04-07T22:50:51.072197
| 2019-07-16T02:24:43
| 2019-07-16T02:24:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 323
|
java
|
package com.tencent.mm.emoji.loader.e;
import a.l;
@l(dWo = {1, 1, 13}, dWp = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\"\u000e\u0010\u0000\u001a\u00020\u0001XD¢\u0006\u0002\n\u0000¨\u0006\u0002"}, dWq = {"TAG", "", "plugin-emojisdk_release"})
public final class d {
private static final String TAG = TAG;
}
|
[
"alwangsisi@163.com"
] |
alwangsisi@163.com
|
cdfece06d5d2f712e286c937c0669b1062dc3db3
|
a730bc5b5233e359094edd9d9995416ea0bbb6c7
|
/Array-3/AP-1/wordsWithout.java
|
e3f74fdb8c6c2a1de80d09130ee1b9e834a03db4
|
[] |
no_license
|
gautamkumar11/CodingBat-Solutions
|
54b1b0ffcbbf612b5219dd51002415f194e0d8b7
|
b2dc96b5e8ec66edae67fffa10ed14a008338b0e
|
refs/heads/master
| 2023-01-29T01:28:44.417691
| 2020-12-10T16:06:31
| 2020-12-10T16:06:31
| 319,372,595
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 752
|
java
|
/*
Given an array of strings, return a new array without the strings that are equal to the target string. One approach is to count the occurrences of the target string, make a new array of the correct length, and then copy over the correct strings.
wordsWithout(["a", "b", "c", "a"], "a") → ["b", "c"]
wordsWithout(["a", "b", "c", "a"], "b") → ["a", "c", "a"]
wordsWithout(["a", "b", "c", "a"], "c") → ["a", "b", "a"]
*/
public String[] wordsWithout(String[] words, String target) {
List<String> ww = new ArrayList<String>();
for(int i=0; i < words.length; i++) {
if(words[i].equals(target)) {
}
else {
ww.add(words[i]);
}
}
String[] wwa = new String[ww.size()];
wwa = ww.toArray(wwa);
return wwa;
}
|
[
"kumargautam11gk@gmail.com"
] |
kumargautam11gk@gmail.com
|
f24360429de529e56d70461ae7e20836877cfa43
|
22e6bc86b1c71d9f08e4b7fe2cf5c20c7c1b226b
|
/src/main/java/de/chkal/jenkins/rocketchat/Notification.java
|
6bf03effa2de9e8e95ac3bc194bf00cc9fde68f7
|
[
"Apache-2.0"
] |
permissive
|
gauer10/rocket-chat-notifier
|
1016c2a8ac8628cc075ea22fc16be192cadb5ab5
|
385e96dd938fa60a8163f6f72259278a6da34432
|
refs/heads/master
| 2022-01-09T05:18:54.692475
| 2017-01-13T17:11:10
| 2017-01-13T17:11:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 655
|
java
|
package de.chkal.jenkins.rocketchat;
class Notification {
private String runName;
private String runUrl;
private String text;
private String color;
public String getRunName() {
return runName;
}
public void setRunName(String runName) {
this.runName = runName;
}
public String getRunUrl() {
return runUrl;
}
public void setRunUrl(String runUrl) {
this.runUrl = runUrl;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public String getColor() {
return color;
}
public void setColor(String color) {
this.color = color;
}
}
|
[
"christian@kaltepoth.de"
] |
christian@kaltepoth.de
|
119c4700cb18eb331009243aaddb82d6755de590
|
b111bfbd2c5835a53dc0f1f25b2a330cbd14ac51
|
/docx4j-openxml-objects/src/main/java/org/docx4j/com/microsoft/schemas/office/drawing/x2010/picture/ObjectFactory.java
|
5a53531462977cbd22642102bb4dfca33fbad067
|
[
"Apache-2.0"
] |
permissive
|
AbuDeCoder/docx4j
|
abbda615c4f370dbd0c6c428a417494bc1439940
|
127959025e7b20dfaa78f8994cf78f6ef55ed39c
|
refs/heads/master
| 2021-09-18T02:34:31.266670
| 2021-08-13T02:48:36
| 2021-08-13T02:48:36
| 252,779,966
| 1
| 0
| null | 2020-04-03T16:08:16
| 2020-04-03T16:08:15
| null |
UTF-8
|
Java
| false
| false
| 2,312
|
java
|
package org.docx4j.com.microsoft.schemas.office.drawing.x2010.picture;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
import org.docx4j.dml.CTOfficeArtExtensionList;
import org.docx4j.dml.CTShapeStyle;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the org.docx4j.com.microsoft.schemas.office.drawing.x2010.picture package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
private final static QName _Style_QNAME = new QName("http://schemas.microsoft.com/office/drawing/2010/picture", "style");
private final static QName _ExtLst_QNAME = new QName("http://schemas.microsoft.com/office/drawing/2010/picture", "extLst");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.docx4j.com.microsoft.schemas.office.drawing.x2010.picture
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link CTShapeStyle }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://schemas.microsoft.com/office/drawing/2010/picture", name = "style")
public JAXBElement<CTShapeStyle> createStyle(CTShapeStyle value) {
return new JAXBElement<CTShapeStyle>(_Style_QNAME, CTShapeStyle.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link CTOfficeArtExtensionList }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://schemas.microsoft.com/office/drawing/2010/picture", name = "extLst")
public JAXBElement<CTOfficeArtExtensionList> createExtLst(CTOfficeArtExtensionList value) {
return new JAXBElement<CTOfficeArtExtensionList>(_ExtLst_QNAME, CTOfficeArtExtensionList.class, null, value);
}
}
|
[
"jason@plutext.org"
] |
jason@plutext.org
|
9c0fc551409b3a77cf6b0c03dabd2efd011f7411
|
1f9197a7f948ee6c55d8e1909b8412ffd62865f7
|
/JavaExamples/SpringExamples/Spring Labs without Jars/Lab 03 - IoC container/src/ex8/MyDatabaseBeanDefinitionParser.java
|
5c5662a930c8adaf750d1569a0cab528c6d9071c
|
[] |
no_license
|
kinshuk4/Kode
|
cc0cdc9325381359387a1692766f9c949b43e7f2
|
9c4656f1b0fd30b7d3f739d440e0da43a3a93e06
|
refs/heads/master
| 2022-12-21T05:10:06.205204
| 2021-01-27T21:34:35
| 2021-01-27T21:34:35
| 18,123,037
| 1
| 3
| null | 2022-12-16T06:42:18
| 2014-03-26T01:30:41
|
Java
|
UTF-8
|
Java
| false
| false
| 831
|
java
|
package ex8;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser;
import org.springframework.jdbc.datasource.DriverManagerDataSource;
import org.w3c.dom.Element;
public class MyDatabaseBeanDefinitionParser extends AbstractSingleBeanDefinitionParser {
protected Class getBeanClass(Element element) {
return DriverManagerDataSource.class;
}
protected void doParse(Element element, BeanDefinitionBuilder bean) {
bean.addPropertyValue("driverClassName", element.getAttribute("driverClassName"));
bean.addPropertyValue("url", element.getAttribute("url"));
bean.addPropertyValue("username", element.getAttribute("username"));
bean.addPropertyValue("password", element.getAttribute("password"));
}
}
|
[
"kinshuk.ram@gmail.com"
] |
kinshuk.ram@gmail.com
|
ab84fe40d88349edf7ea56c122cf58e226158951
|
600792877088d46531cb71faf2cf9ab6b7a9358f
|
/src/main/java/com/chocolate/chocolateQuest/gui/slot/SlotHandRight.java
|
1d601a7d295522009d806d8e4a328bcb374b78ad
|
[] |
no_license
|
Bogdan-G/chocolateQuest
|
e6ca3da6a85eddc7291ef7ea4fdf67b8c237362b
|
8f79017f45ac18e14e9db6329cb787195988ff2d
|
refs/heads/master
| 2020-04-15T03:49:36.507542
| 2019-01-09T23:06:52
| 2019-01-09T23:06:52
| 164,361,568
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,459
|
java
|
package com.chocolate.chocolateQuest.gui.slot;
import com.chocolate.chocolateQuest.ChocolateQuest;
import com.chocolate.chocolateQuest.API.ITwoHandedItem;
import com.chocolate.chocolateQuest.items.swords.ItemSwordAndShieldBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
public class SlotHandRight extends Slot {
Slot oppositeHand;
public SlotHandRight(IInventory arg0, int id, int x, int y) {
super(arg0, id, x, y);
}
public void setOpossedHandSlot(Slot slot) {
this.oppositeHand = slot;
}
public boolean isItemValid(ItemStack is) {
return this.oppositeHand.getHasStack() && (is.getItem() instanceof ITwoHandedItem || is.getItem() instanceof ItemSwordAndShieldBase)?false:super.isItemValid(is);
}
public void onPickupFromSlot(EntityPlayer par1EntityPlayer, ItemStack is) {
if(is.getItem() instanceof ItemSwordAndShieldBase) {
this.oppositeHand.putStack((ItemStack)null);
}
super.onPickupFromSlot(par1EntityPlayer, is);
}
public void putStack(ItemStack is) {
if(is != null && is.getItem() instanceof ItemSwordAndShieldBase) {
this.oppositeHand.putStack(new ItemStack(ChocolateQuest.shield, 0, ((ItemSwordAndShieldBase)is.getItem()).getShieldID(is)));
}
super.putStack(is);
}
}
|
[
"bogdangtt@gmail.com"
] |
bogdangtt@gmail.com
|
f4e9f55d0b4e0dcd50cc2e3b5c56300da15173ac
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-14263-57-13-PESA_II-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/internal/template/InternalTemplateManager_ESTest_scaffolding.java
|
362d0da940633493bed88d8fd58382b7aa99edd5
|
[] |
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
| 459
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sat Apr 04 03:21:56 UTC 2020
*/
package com.xpn.xwiki.internal.template;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class InternalTemplateManager_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
6239e159ac8ef8e6fdafc4a66a990d39323729b7
|
f66e9ce73c8dfcab523e680b59bb1e55f5ebe5d1
|
/leetcode一刷/Tree树/BFS/_103_BinaryTreeZigzagLevelOrderTraversal.java
|
36feb73cfdc713ff338c87a3ebf1292ed3bebe3b
|
[] |
no_license
|
kqiu10/LeetcodeSolutionJava
|
b8ca84df4e7ada2ad6be3bf1a34b19054ebb3b60
|
f4609cc2c1fc9d1c21180bc1162bc1a538c4c6e5
|
refs/heads/master
| 2023-05-31T07:19:51.896361
| 2021-06-19T20:44:57
| 2021-06-19T20:44:57
| 280,535,038
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,286
|
java
|
package Tree树.BFS;
/**
* Date: 10/7/20
* Question Description
*/
import Tree树.TreeNode;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
/**
* Description: TODO
* Time complexity:O(n);
* Space complexity: O(h);
*/
public class _103_BinaryTreeZigzagLevelOrderTraversal {
public List<List<Integer>> zigzagLevelOrder(TreeNode root) {
LinkedList<List<Integer>> res = new LinkedList<>();
if (root == null) return res;
int level = 0;
Queue<TreeNode> queue = new LinkedList<>();
queue.offer(root);
while (!queue.isEmpty()) {
List<Integer> list = new ArrayList<>();
int size = queue.size();
for (int i = 0; i < size; i++) {
TreeNode cur = queue.poll();
if (level % 2 == 0) {
list.add(cur.val);
} else {
list.add(0, cur.val);
}
if (cur.left != null) {
queue.offer(cur.left);
}
if (cur.right != null) {
queue.offer(cur.right);
}
}
res.add(list);
level++;
}
return res;
}
}
|
[
"qiukan97@gmail.com"
] |
qiukan97@gmail.com
|
cf0e150246fd545ec8263419e0b00b38fbe5c33e
|
5c3e93021dde5eb971fd93dcd5d1a94af8116ea0
|
/rocketmq-api/src/main/java/com/javashitang/rocketmq/chapter_3_delayMsg/DelayMessageConsumer.java
|
af95d9a77c979ce70c89bae5dffa911e9d7737dd
|
[] |
no_license
|
boriszhangbo/rocketmq-examples
|
bb2a7d72d33e6998763d6d9afe98e68f6715a7ae
|
778407f245ba89611f37e24fe0c29777058ef724
|
refs/heads/master
| 2023-04-20T18:58:40.976211
| 2021-05-26T14:23:57
| 2021-05-26T14:23:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,571
|
java
|
package com.javashitang.rocketmq.chapter_3_delayMsg;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.client.consumer.DefaultMQPushConsumer;
import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyContext;
import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyStatus;
import org.apache.rocketmq.client.consumer.listener.MessageListenerConcurrently;
import org.apache.rocketmq.common.message.MessageExt;
import java.util.List;
@Slf4j
public class DelayMessageConsumer {
public static final String CONSUMER_GROUP_NAME = "delayConsumerGroup";
public static void main(String[] args) throws Exception {
DefaultMQPushConsumer consumer = new DefaultMQPushConsumer(CONSUMER_GROUP_NAME);
consumer.setNamesrvAddr("myhost:9876");
consumer.subscribe(DelayMessageProducer.TOPIC_NAME, "*");
consumer.registerMessageListener(new MessageListenerConcurrently() {
@Override
public ConsumeConcurrentlyStatus consumeMessage(List<MessageExt> list, ConsumeConcurrentlyContext consumeConcurrentlyContext) {
for (MessageExt message : list) {
System.out.printf("%s receive new message %s%n", Thread.currentThread().getName(), message);
System.out.printf("delay time is %s%n", System.currentTimeMillis() - message.getStoreTimestamp());
}
return ConsumeConcurrentlyStatus.CONSUME_SUCCESS;
}
});
consumer.start();
System.out.println("Consumer Started");
}
}
|
[
"290059742@qq.com"
] |
290059742@qq.com
|
2e4f88d6df6f351e7a360e67a6c64acf4fc16c85
|
68d4362d662acc2bc5263411f366996310ba00bd
|
/src/main/java/com/tenfen/util/json/CookieList.java
|
258418207bed7c0683bb3af8278c8641370b38bd
|
[] |
no_license
|
yangjinbo47/channel
|
3b8bf078d561a7fe12455a9a74fa0f1d1c03c099
|
b954ebe466ed5e94f10a07c1b7f8729c3cea04e6
|
refs/heads/master
| 2021-01-01T19:00:14.213116
| 2018-12-25T08:17:02
| 2018-12-25T08:17:02
| 98,485,780
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,318
|
java
|
package com.tenfen.util.json;
/*
Copyright (c) 2002 JSON.org
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 shall be used for Good, not Evil.
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.
*/
import java.util.Iterator;
/**
* Convert a web browser cookie list string to a JSONObject and back.
* @author JSON.org
* @version 2008-09-18
*/
public class CookieList {
/**
* Convert a cookie list into a JSONObject. A cookie list is a sequence
* of name/value pairs. The names are separated from the values by '='.
* The pairs are separated by ';'. The names and the values
* will be unescaped, possibly converting '+' and '%' sequences.
*
* To add a cookie to a cooklist,
* cookielistJSONObject.put(cookieJSONObject.getString("name"),
* cookieJSONObject.getString("value"));
* @param string A cookie list string
* @return A JSONObject
* @throws JSONException
*/
public static JSONObject toJSONObject(String string) throws JSONException {
JSONObject o = new JSONObject();
JSONTokener x = new JSONTokener(string);
while (x.more()) {
String name = Cookie.unescape(x.nextTo('='));
x.next('=');
o.put(name, Cookie.unescape(x.nextTo(';')));
x.next();
}
return o;
}
/**
* Convert a JSONObject into a cookie list. A cookie list is a sequence
* of name/value pairs. The names are separated from the values by '='.
* The pairs are separated by ';'. The characters '%', '+', '=', and ';'
* in the names and values are replaced by "%hh".
* @param o A JSONObject
* @return A cookie list string
* @throws JSONException
*/
@SuppressWarnings("unchecked")
public static String toString(JSONObject o) throws JSONException {
boolean b = false;
Iterator keys = o.keys();
String s;
StringBuffer sb = new StringBuffer();
while (keys.hasNext()) {
s = keys.next().toString();
if (!o.isNull(s)) {
if (b) {
sb.append(';');
}
sb.append(Cookie.escape(s));
sb.append("=");
sb.append(Cookie.escape(o.getString(s)));
b = true;
}
}
return sb.toString();
}
}
|
[
"yangjinbo47@sina.com"
] |
yangjinbo47@sina.com
|
66d1948db6290af579da98e791e311a917330d73
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithoutLambdasApi21_ReducedClassCount/applicationModule/src/test/java/applicationModulepackageJava3/Foo805Test.java
|
c3be1fd8a96ed6686705f1871c66cdaef4e82202
|
[] |
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
| 741
|
java
|
package applicationModulepackageJava3;
import org.junit.Test;
public class Foo805Test {
@Test
public void testFoo0() {
new Foo805().foo0();
}
@Test
public void testFoo1() {
new Foo805().foo1();
}
@Test
public void testFoo2() {
new Foo805().foo2();
}
@Test
public void testFoo3() {
new Foo805().foo3();
}
@Test
public void testFoo4() {
new Foo805().foo4();
}
@Test
public void testFoo5() {
new Foo805().foo5();
}
@Test
public void testFoo6() {
new Foo805().foo6();
}
@Test
public void testFoo7() {
new Foo805().foo7();
}
@Test
public void testFoo8() {
new Foo805().foo8();
}
@Test
public void testFoo9() {
new Foo805().foo9();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
170712c933c5c7b801c5ca8b72f1c6b7cb64fbdd
|
d4e293899ebb25c72dbe88926c1956f6088e9b50
|
/hadoop-study/src/main/java/com/research/hadoop/inputformat/kv/KVTextMapper.java
|
0bcad249eb2c95fd32e37089b23990e7729fe389
|
[] |
no_license
|
collabH/reasearch-bigdata
|
aa460ccd6cb281dc306066f809bf2fd38bafd463
|
1498c479624fb926d8d8841cd4645a62c579847a
|
refs/heads/master
| 2022-12-22T06:56:19.821054
| 2021-10-28T09:21:57
| 2021-10-28T09:21:57
| 239,325,567
| 15
| 3
| null | 2022-12-14T20:43:35
| 2020-02-09T15:19:16
|
Java
|
UTF-8
|
Java
| false
| false
| 636
|
java
|
package com.research.hadoop.inputformat.kv;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import java.io.IOException;
/**
* @fileName: KVTextMapper.java
* @description: KVTextMapper.java类说明
* @author: by echo huang
* @date: 2020-07-20 23:48
*/
public class KVTextMapper extends Mapper<Text, Text, Text, IntWritable> {
private IntWritable count = new IntWritable(1);
@Override
protected void map(Text key, Text value, Context context) throws IOException, InterruptedException {
//写出
context.write(key, count);
}
}
|
[
"h1261109615@qq.com"
] |
h1261109615@qq.com
|
e2778747fe01f5e8f83014c7e40e83e89542d054
|
9b91a1e3776a15281c394a883000bb53fbf5bd76
|
/examples/wicket/wicket-tests/src/test/java/org/jboss/seam/example/wicket/test/selenium/WicketSimpleBookingTest.java
|
5dc96840f1b4c4ea2952c45a74baf90f8118541b
|
[] |
no_license
|
omidp/seam
|
9ed0b00777996e218b9659e68b755f35a21486f5
|
a64368e756e5d5c61c732bb0caf7b1ff75601544
|
refs/heads/master
| 2020-12-24T07:05:59.283627
| 2017-08-24T10:01:05
| 2017-08-24T10:01:05
| 24,535,342
| 9
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,968
|
java
|
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This 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 (at your option) any later version.
*
* This software 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 software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.seam.example.wicket.test.selenium;
import static org.testng.AssertJUnit.assertTrue;
import static org.testng.AssertJUnit.fail;
import java.text.MessageFormat;
import org.jboss.seam.example.common.test.booking.selenium.SimpleBookingTest;
/**
*
* @author jbalunas
* @author jharting
*
*/
public class WicketSimpleBookingTest extends SimpleBookingTest {
@Override
protected void populateBookingFields(int bed, int smoking,
String creditCard, String creditCardName) {
super.populateBookingFields(bed, smoking, creditCard, creditCardName);
browser.select(getProperty("HOTEL_CREDIT_CARD_EXPIRY_MONTH"),
"index=1");
browser.select(getProperty("HOTEL_CREDIT_CARD_EXPIRY_YEAR"), "index=1");
}
@Override
protected int bookHotel(String hotelName, int bed, int smoking,
String creditCard, String creditCardName) {
if (!isLoggedIn())
fail();
if (!browser.isElementPresent(getProperty("SEARCH_SUBMIT"))) {
browser.open(CONTEXT_PATH + getProperty("MAIN_PAGE"));
browser.waitForPageToLoad(TIMEOUT);
}
enterSearchQuery(hotelName);
browser.click(getProperty("SEARCH_RESULT_TABLE_FIRST_ROW_LINK"));
browser.waitForPageToLoad(TIMEOUT);
// booking page
browser.click(getProperty("BOOKING_BOOK"));
browser.waitForPageToLoad(TIMEOUT);
// hotel page
populateBookingFields(bed, smoking, creditCard, creditCardName);
browser.click(getProperty("HOTEL_PROCEED"));
browser.waitForPageToLoad(TIMEOUT);
// confirm page
browser.click(getProperty("HOTEL_CONFIRM"));
browser.waitForPageToLoad(TIMEOUT);
// main page
String message = browser.getText(MessageFormat.format(getProperty("ORDER_CONFIRMATION_NUMBER"), hotelName));
int confirmationNumber = Integer.parseInt(message);
return confirmationNumber;
}
}
|
[
"omidpourhadi@gmail.com"
] |
omidpourhadi@gmail.com
|
c6a13ad8c07e48d7c07b60f1d9200d4f3af309ad
|
3bc62f2a6d32df436e99507fa315938bc16652b1
|
/cvs/cvs-plugin/src/com/intellij/openapi/cvsIntegration/CvsServices.java
|
068b7953fd2da0199bc1fc5f533e2c9e2631ea48
|
[
"Apache-2.0"
] |
permissive
|
JetBrains/intellij-obsolete-plugins
|
7abf3f10603e7fe42b9982b49171de839870e535
|
3e388a1f9ae5195dc538df0d3008841c61f11aef
|
refs/heads/master
| 2023-09-04T05:22:46.470136
| 2023-06-11T16:42:37
| 2023-06-11T16:42:37
| 184,035,533
| 19
| 29
|
Apache-2.0
| 2023-07-30T14:23:05
| 2019-04-29T08:54:54
|
Java
|
UTF-8
|
Java
| false
| false
| 1,828
|
java
|
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.intellij.openapi.cvsIntegration;
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.project.Project;
import java.io.File;
import java.io.IOException;
public abstract class CvsServices {
public static CvsServices getInstance(){
return ServiceManager.getService(CvsServices.class);
}
public abstract CvsModule[] chooseModules(Project project, boolean allowRootSelection,
boolean allowMultipleSelection,
boolean allowFilesSelection, String title, String selectModulePageTitle);
public abstract CvsRepository[] getConfiguredRepositories();
public abstract String getScrambledPasswordForPServerCvsRoot(String cvsRoot);
public abstract boolean saveRepository(CvsRepository repository);
public abstract void openInEditor(Project project, CvsModule cvsFile);
public abstract byte[] getFileContent(Project project, CvsModule cvsFile) throws IOException;
public abstract CvsResult checkout(String[] modules, File checkoutTo, String directory, boolean makeNewFilesReadOnly, boolean pruneEmptyDirectories, Object keywordSubstitution, Project project, CvsRepository repository);
}
|
[
"dmitriy.smirnov@jetbrains.com"
] |
dmitriy.smirnov@jetbrains.com
|
de59a3c23306036e811221e3061f19904431aa89
|
c6f63cf4524567f12d4226b9cdcbfee9c5c3d95c
|
/gen/main/java/org/hl7/fhir/ContractActor.java
|
39d88398edac4ad8d0c3cc4521dd284c8a1a9fa8
|
[] |
no_license
|
usnistgov/fhir.emf
|
83852f9388619fa7b76c05dd725c311c96e733e6
|
affea7e1fc2b53cb67e706f47264b408909b2253
|
refs/heads/master
| 2021-01-11T02:40:21.282622
| 2016-10-21T18:51:25
| 2016-10-21T18:51:25
| 70,912,620
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,365
|
java
|
/**
*/
package org.hl7.fhir;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Contract Actor</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A formal agreement between parties regarding the conduct of business, exchange of information or other matters.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.hl7.fhir.ContractActor#getEntity <em>Entity</em>}</li>
* <li>{@link org.hl7.fhir.ContractActor#getRole <em>Role</em>}</li>
* </ul>
*
* @see org.hl7.fhir.FhirPackage#getContractActor()
* @model extendedMetaData="name='Contract.Actor' kind='elementOnly'"
* @generated
*/
public interface ContractActor extends BackboneElement {
/**
* Returns the value of the '<em><b>Entity</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Who or what actors are assigned roles in this Contract.
* <!-- end-model-doc -->
* @return the value of the '<em>Entity</em>' containment reference.
* @see #setEntity(Reference)
* @see org.hl7.fhir.FhirPackage#getContractActor_Entity()
* @model containment="true" required="true"
* extendedMetaData="kind='element' name='entity' namespace='##targetNamespace'"
* @generated
*/
Reference getEntity();
/**
* Sets the value of the '{@link org.hl7.fhir.ContractActor#getEntity <em>Entity</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Entity</em>' containment reference.
* @see #getEntity()
* @generated
*/
void setEntity(Reference value);
/**
* Returns the value of the '<em><b>Role</b></em>' containment reference list.
* The list contents are of type {@link org.hl7.fhir.CodeableConcept}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Role type of actors assigned roles in this Contract.
* <!-- end-model-doc -->
* @return the value of the '<em>Role</em>' containment reference list.
* @see org.hl7.fhir.FhirPackage#getContractActor_Role()
* @model containment="true"
* extendedMetaData="kind='element' name='role' namespace='##targetNamespace'"
* @generated
*/
EList<CodeableConcept> getRole();
} // ContractActor
|
[
"geoffry.roberts@nist.gov"
] |
geoffry.roberts@nist.gov
|
0416052e23179b137097881325413584d7fc8a73
|
fdb1592ff8f2d7f7c318a590d716389901246cc4
|
/app/src/main/java/com/jkabe/app/android/ui/LoginActivity.java
|
4bf893eac201bcdf164ead1759f68224024c4dad
|
[] |
no_license
|
aq610428/Kboxjkabe
|
e146351ec3ff81f2513c85ab3feba4d5d203eb19
|
6551e00d5e115dc189a70fab0d2500986a9f79c6
|
refs/heads/master
| 2022-11-19T11:17:30.006686
| 2020-07-21T04:15:26
| 2020-07-21T04:15:26
| 280,103,163
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,315
|
java
|
package com.jkabe.app.android.ui;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.jkabe.app.android.R;
import com.jkabe.app.android.base.BaseActivity;
import com.jkabe.app.android.base.BaseApplication;
import com.jkabe.app.android.bean.CommonalityModel;
import com.jkabe.app.android.bean.UserInfo;
import com.jkabe.app.android.config.Api;
import com.jkabe.app.android.config.NetWorkListener;
import com.jkabe.app.android.config.okHttpModel;
import com.jkabe.app.android.util.Constants;
import com.jkabe.app.android.util.JsonParse;
import com.jkabe.app.android.util.Md5Util;
import com.jkabe.app.android.util.SaveUtils;
import com.jkabe.app.android.util.SystemTools;
import com.jkabe.app.android.util.ToastUtil;
import com.jkabe.app.android.util.Utility;
import org.json.JSONObject;
import java.util.Map;
/**
* @author: ong
* @date: 2020/5/12
* @name:loginActivity
*/
public class LoginActivity extends BaseActivity implements NetWorkListener {
private Button btn_next;
private EditText et_username, et_password;
private TextView text_register, btn_forget;
private LinearLayout ll_agreement;
private View et_line_1,et_line_2;
@Override
protected void initCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_login);
BaseApplication.activityTaskManager.putActivity("LoginActivity", this);
}
@Override
protected void initView() {
et_line_2= getView(R.id.et_line_2);
et_line_1= getView(R.id.et_line_1);
ll_agreement= getView(R.id.ll_agreement);
btn_forget = getView(R.id.btn_forget);
text_register = getView(R.id.btn_register);
btn_next = getView(R.id.btn_next);
et_password = getView(R.id.et_password);
et_username = getView(R.id.et_username);
btn_next.setOnClickListener(this);
text_register.setOnClickListener(this);
btn_forget.setOnClickListener(this);
ll_agreement.setOnClickListener(this);
et_username.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
if (Utility.isEmpty(et_username.getText().toString())){
et_line_1.setBackgroundColor(Color.parseColor("#EEEEEE"));
}else{
et_line_1.setBackgroundColor(Color.parseColor("#3F80F4"));
}
}
@Override
public void afterTextChanged(Editable s) {
}
});
et_password.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
if (Utility.isEmpty(et_password.getText().toString())){
et_line_2.setBackgroundColor(Color.parseColor("#EEEEEE"));
}else{
et_line_2.setBackgroundColor(Color.parseColor("#3F80F4"));
}
}
@Override
public void afterTextChanged(Editable s) {
}
});
}
@Override
protected void initData() {
}
@Override
public void onClick(View v) {
super.onClick(v);
switch (v.getId()) {
case R.id.btn_next:
checkPhone();
break;
case R.id.btn_register:
startActivity(new Intent(this, RegisterActivity.class));
break;
case R.id.btn_forget:
startActivity(new Intent(this, ForgetActivity.class));
break;
case R.id.ll_agreement:
startActivity(new Intent(this, PreviewActivity.class));
break;
}
}
private void checkPhone() {
String phone = et_username.getText().toString().trim();
String password = et_password.getText().toString().trim();
if (Utility.isEmpty(phone)) {
ToastUtil.showToast("手机号不能为空");
} else if (!SystemTools.isMobileNumber(phone)) {
ToastUtil.showToast("手机号码不合法,请重新输入");
} else if (Utility.isEmpty(password)) {
ToastUtil.showToast("密码不能为空");
} else {
query();
}
}
public void query() {
String mobile = et_username.getText().toString();
String password = et_password.getText().toString();
String code = et_password.getText().toString();
if (Utility.isEmpty(mobile)) {
ToastUtil.showToast("手机号不能为空");
} else if (!SystemTools.isMobileNumber(mobile)) {
ToastUtil.showToast("手机号码不合法,请重新输入");
} else if (Utility.isEmpty(mobile)) {
ToastUtil.showToast("验证码不能为空");
} else if (Utility.isEmpty(code)) {
ToastUtil.showToast("验证码不能为空");
} else if (Utility.isEmpty(password)) {
ToastUtil.showToast("密码不能为空");
} else {
String sign = "loginname=" + mobile + "&partnerid=" + Constants.PARTNERID + "&password=" + Md5Util.encode(password) + Constants.SECREKEY;
showProgressDialog(this, false);
Map<String, String> params = okHttpModel.getParams();
params.put("loginname", mobile);
params.put("apptype", Constants.TYPE);
params.put("partnerid", Constants.PARTNERID);
params.put("sign", Md5Util.encode(sign));
params.put("password", Md5Util.encode(password));
okHttpModel.get(Api.GET_LOGIN, params, Api.GET_LOGIN_ID, this);
}
}
@Override
public void onSucceed(JSONObject object, int id, CommonalityModel commonality) {
if (object != null && commonality != null && !Utility.isEmpty(commonality.getStatusCode())) {
if (Constants.SUCESSCODE.equals(commonality.getStatusCode())) {
switch (id) {
case Api.GET_LOGIN_ID:
UserInfo info = JsonParse.getUserInfo(object);
if (info != null) {
ToastUtil.showToast("登录成功");
SaveUtils.saveInfo(info);
startActivity(new Intent(this, MainActivity.class));
finish();
}
break;
}
} else {
ToastUtil.showToast(commonality.getErrorDesc());
}
}
stopProgressDialog();
}
@Override
public void onFail() {
stopProgressDialog();
}
@Override
public void onError(Exception e) {
stopProgressDialog();
}
}
|
[
"641897605@qq.com"
] |
641897605@qq.com
|
8c2468f6935db8feaae9b60487dab90dbba55bd6
|
dbf5adca095d04d7d069ecaa916e883bc1e5c73d
|
/x_attendance_core_entity/src/main/java/com/x/attendance/entity/StatisticDepartmentForMonth_.java
|
f3445cd2ea1045815ae0e999dfb63150ebc3c89c
|
[
"BSD-3-Clause"
] |
permissive
|
fancylou/o2oa
|
713529a9d383de5d322d1b99073453dac79a9353
|
e7ec39fc586fab3d38b62415ed06448e6a9d6e26
|
refs/heads/master
| 2020-03-25T00:07:41.775230
| 2018-08-02T01:40:40
| 2018-08-02T01:40:40
| 143,169,936
| 0
| 0
|
BSD-3-Clause
| 2018-08-01T14:49:45
| 2018-08-01T14:49:44
| null |
UTF-8
|
Java
| false
| false
| 2,312
|
java
|
/**
* Generated by OpenJPA MetaModel Generator Tool.
**/
package com.x.attendance.entity;
import com.x.base.core.entity.SliceJpaObject_;
import java.lang.Double;
import java.lang.Long;
import java.lang.String;
import java.util.Date;
import javax.persistence.metamodel.SingularAttribute;
@javax.persistence.metamodel.StaticMetamodel
(value=com.x.attendance.entity.StatisticDepartmentForMonth.class)
@javax.annotation.Generated
(value="org.apache.openjpa.persistence.meta.AnnotationProcessor6",date="Sat May 06 19:33:54 CST 2017")
public class StatisticDepartmentForMonth_ extends SliceJpaObject_ {
public static volatile SingularAttribute<StatisticDepartmentForMonth,Long> abNormalDutyCount;
public static volatile SingularAttribute<StatisticDepartmentForMonth,Double> absenceDayCount;
public static volatile SingularAttribute<StatisticDepartmentForMonth,String> companyName;
public static volatile SingularAttribute<StatisticDepartmentForMonth,Date> createTime;
public static volatile SingularAttribute<StatisticDepartmentForMonth,Double> employeeCount;
public static volatile SingularAttribute<StatisticDepartmentForMonth,String> id;
public static volatile SingularAttribute<StatisticDepartmentForMonth,Long> lackOfTimeCount;
public static volatile SingularAttribute<StatisticDepartmentForMonth,Long> lateCount;
public static volatile SingularAttribute<StatisticDepartmentForMonth,Long> leaveEarlyCount;
public static volatile SingularAttribute<StatisticDepartmentForMonth,Long> offDutyCount;
public static volatile SingularAttribute<StatisticDepartmentForMonth,Long> onDutyCount;
public static volatile SingularAttribute<StatisticDepartmentForMonth,Double> onDutyEmployeeCount;
public static volatile SingularAttribute<StatisticDepartmentForMonth,Double> onSelfHolidayCount;
public static volatile SingularAttribute<StatisticDepartmentForMonth,String> organizationName;
public static volatile SingularAttribute<StatisticDepartmentForMonth,String> sequence;
public static volatile SingularAttribute<StatisticDepartmentForMonth,String> statisticMonth;
public static volatile SingularAttribute<StatisticDepartmentForMonth,String> statisticYear;
public static volatile SingularAttribute<StatisticDepartmentForMonth,Date> updateTime;
}
|
[
"caixiangyi2004@126.com"
] |
caixiangyi2004@126.com
|
6b2f47ae8aff010620e21ea3ed16bd4c6fe9f72c
|
1970bef8c843fc3f8ff06c869a659f58eab84a96
|
/src/main/java/nl/wetten/bwbng/toestand/ClassDatum.java
|
2e44fd44fdc3e92ea53bc95eef9fd4ffceaa03d0
|
[
"MIT"
] |
permissive
|
digitalheir/java-wetten-nl-library
|
73c6646d1a1932b36a3d5ba93b788d59bc2a6ff9
|
9bd56b7a3428b59d5aafaedbea1f66cdcc045aa1
|
refs/heads/master
| 2023-06-24T12:20:50.073410
| 2022-06-17T09:32:30
| 2022-06-17T09:32:30
| 42,352,745
| 2
| 1
|
MIT
| 2023-06-14T22:52:35
| 2015-09-12T10:08:43
|
Java
|
UTF-8
|
Java
| false
| false
| 2,292
|
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: 2015.10.21 at 02:36:24 PM CEST
//
package nl.wetten.bwbng.toestand;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for class.datum complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="class.datum">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <group ref="{}lokaal.tekst.datum" maxOccurs="unbounded" minOccurs="0"/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "class.datum", propOrder = {
"content"
})
@XmlSeeAlso({
Datum.class
})
public class ClassDatum {
@XmlElementRef(name = "nadruk", type = Nadruk.class, required = false)
@XmlMixed
protected List<Object> content;
/**
* Gets the value of the content property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Nadruk }
* {@link String }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
return this.content;
}
}
|
[
"m.f.a.trompper@uva.nl"
] |
m.f.a.trompper@uva.nl
|
a7fac7d1bb64fb0ad95485ab81fa67107ec1887e
|
c28c86d0bf2545e6457603b0f56cedf6a611aff1
|
/demo/src/main/java/file/pic/zxing/ZxingDemo.java
|
734d2abfea9a5162c744d2a7d20a4a178d2107cf
|
[] |
no_license
|
YangShuailing/test-1
|
01e4ac09aeb4b00561a6785f26a8531c5871348a
|
4c6c22ebb1f6e2e49ed3f3d259b4cb0fe2b3eadc
|
refs/heads/master
| 2021-05-04T23:01:27.767081
| 2018-01-16T15:08:26
| 2018-01-16T15:08:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,512
|
java
|
package file.pic.zxing;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.EncodeHintType;
import com.google.zxing.MultiFormatWriter;
import com.google.zxing.WriterException;
import com.google.zxing.common.BitMatrix;
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;
import javax.imageio.ImageIO;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Shape;
import java.awt.geom.AffineTransform;
import java.awt.geom.RoundRectangle2D;
import java.awt.image.AffineTransformOp;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
/**
* Author: Johnny
* Date: 2016/12/4
* Time: 22:01
*/
public class ZxingDemo {
private static final int BLACK = 0xFF000000;
private static final int WHITE = 0xFFFFFFFF;
// 图片宽度的一般
private static final int IMAGE_WIDTH = 80;
private static final int IMAGE_HEIGHT = 80;
private static final int IMAGE_HALF_WIDTH = IMAGE_WIDTH / 2;
private static final int FRAME_WIDTH = 2;
// 二维码写码器
private static MultiFormatWriter multiWriter = new MultiFormatWriter();
//http://www.jb51.net/article/95876.htm
public static void main(String[] args) {
try {
//BitMatrix bitMatrix = multiFormatWriter.encode(content, BarcodeFormat.QR_CODE, 400, 400,hints);
String content = "13400000000";//二维码的内容
BufferedImage image = genBarcode(content, 400, 400, "F:\\amazed.png");
if (!ImageIO.write(image, "jpg", new File("F:\\2122.jpg"))) {
throw new IOException("Could not write an image of format ");
}
/*
//将上面的代码换成此处,使用流读入到页面即可
OutputStream os = response.getOutputStream();
if (!ImageIO.write(image, "jpg",os)) {
throw new IOException("Could not write an image of format ");
}
*/
} catch (WriterException | IOException e) {
e.printStackTrace();
}
}
private static BufferedImage genBarcode(String content, int width,
int height, String srcImagePath) throws WriterException,
IOException {
// 读取源图像
BufferedImage scaleImage = scale(srcImagePath, IMAGE_WIDTH, IMAGE_HEIGHT, true);
int[][] srcPixels = new int[IMAGE_WIDTH][IMAGE_HEIGHT];
for (int i = 0; i < scaleImage.getWidth(); i++) {
for (int j = 0; j < scaleImage.getHeight(); j++) {
srcPixels[i][j] = scaleImage.getRGB(i, j);
}
}
Map<EncodeHintType, Object> hint = new HashMap<>();
hint.put(EncodeHintType.CHARACTER_SET, "utf-8"); //内容编码
hint.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.H);//错误等级
hint.put(EncodeHintType.MARGIN, 1); //设置二维码外边框的空白区域的宽度
// 生成二维码
BitMatrix matrix = multiWriter.encode(content, BarcodeFormat.QR_CODE,
width, height, hint);
// 二维矩阵转为一维像素数组
int halfW = matrix.getWidth() / 2;
int halfH = matrix.getHeight() / 2;
int[] pixels = new int[width * height];
for (int y = 0; y < matrix.getHeight(); y++) {
for (int x = 0; x < matrix.getWidth(); x++) {
// 读取图片
if (x > halfW - IMAGE_HALF_WIDTH
&& x < halfW + IMAGE_HALF_WIDTH
&& y > halfH - IMAGE_HALF_WIDTH
&& y < halfH + IMAGE_HALF_WIDTH) {
pixels[y * width + x] = srcPixels[x - halfW
+ IMAGE_HALF_WIDTH][y - halfH + IMAGE_HALF_WIDTH];
}
// 在图片四周形成边框
else if ((x > halfW - IMAGE_HALF_WIDTH - FRAME_WIDTH
&& x < halfW - IMAGE_HALF_WIDTH + FRAME_WIDTH
&& y > halfH - IMAGE_HALF_WIDTH - FRAME_WIDTH && y < halfH
+ IMAGE_HALF_WIDTH + FRAME_WIDTH)
|| (x > halfW + IMAGE_HALF_WIDTH - FRAME_WIDTH
&& x < halfW + IMAGE_HALF_WIDTH + FRAME_WIDTH
&& y > halfH - IMAGE_HALF_WIDTH - FRAME_WIDTH && y < halfH
+ IMAGE_HALF_WIDTH + FRAME_WIDTH)
|| (x > halfW - IMAGE_HALF_WIDTH - FRAME_WIDTH
&& x < halfW + IMAGE_HALF_WIDTH + FRAME_WIDTH
&& y > halfH - IMAGE_HALF_WIDTH - FRAME_WIDTH && y < halfH
- IMAGE_HALF_WIDTH + FRAME_WIDTH)
|| (x > halfW - IMAGE_HALF_WIDTH - FRAME_WIDTH
&& x < halfW + IMAGE_HALF_WIDTH + FRAME_WIDTH
&& y > halfH + IMAGE_HALF_WIDTH - FRAME_WIDTH && y < halfH
+ IMAGE_HALF_WIDTH + FRAME_WIDTH)) {
pixels[y * width + x] = 0xfffffff;
} else {
// 此处可以修改二维码的颜色,可以分别制定二维码和背景的颜色;
pixels[y * width + x] = matrix.get(x, y) ? 0xff000000
: 0xfffffff;
}
}
}
BufferedImage image = new BufferedImage(width, height,
BufferedImage.TYPE_INT_RGB);
image.getRaster().setDataElements(0, 0, width, height, pixels);
return image;
}
/**
* 把传入的原始图像按高度和宽度进行缩放,生成符合要求的图标
*
* @param srcImageFile 源文件地址
* @param height 目标高度
* @param width 目标宽度
* @param hasFiller 比例不对时是否需要补白:true为补白; false为不补白;
* @throws IOException exception
*/
private static BufferedImage scale(String srcImageFile, int height,
int width, boolean hasFiller) throws IOException {
double ratio; // 缩放比例
File file = new File(srcImageFile);
BufferedImage srcImage = ImageIO.read(file);
Image destImage = srcImage.getScaledInstance(width, height,
BufferedImage.SCALE_SMOOTH);
// 计算比例
if ((srcImage.getHeight() > height) || (srcImage.getWidth() > width)) {
if (srcImage.getHeight() > srcImage.getWidth()) {
ratio = (new Integer(height)).doubleValue()
/ srcImage.getHeight();
} else {
ratio = (new Integer(width)).doubleValue()
/ srcImage.getWidth();
}
AffineTransformOp op = new AffineTransformOp(
AffineTransform.getScaleInstance(ratio, ratio), null);
destImage = op.filter(srcImage, null);
}
if (hasFiller) {// 补白
BufferedImage image = new BufferedImage(width, height,
BufferedImage.TYPE_INT_RGB);
Graphics2D graphic = image.createGraphics();
graphic.setColor(Color.PINK);
graphic.fillRect(10, 10, width, height);
graphic.drawRect(100, 360, width, height);
if (width == destImage.getWidth(null)) {
graphic.drawImage(destImage, 0,
(height - destImage.getHeight(null)) / 2,
destImage.getWidth(null), destImage.getHeight(null),
Color.white, null);
Shape shape = new RoundRectangle2D.Float(0, (height - destImage.getHeight(null)) / 2, width, width, 20, 20);
graphic.setStroke(new BasicStroke(5f));
graphic.draw(shape);
} else {
graphic.drawImage(destImage,
(width - destImage.getWidth(null)) / 2, 0,
destImage.getWidth(null), destImage.getHeight(null),
Color.white, null);
Shape shape = new RoundRectangle2D.Float((width - destImage.getWidth(null)) / 2, 0, width, width, 20, 20);
graphic.setStroke(new BasicStroke(5f));
graphic.draw(shape);
}
graphic.dispose();
destImage = image;
}
return (BufferedImage) destImage;
}
}
|
[
"1224017485@qq.com"
] |
1224017485@qq.com
|
b3d522ce16e31cbfed0f1f26eb5d72476f8ae0fe
|
fa98b943f13ebbaf4e1b6f0cfdc64c95281b35ca
|
/ha-common/src/main/java/jp/co/ha/common/validator/annotation/ValidateIgnore.java
|
1a5efd523fbe5ba05cd8678792f5eedf716c677e
|
[] |
no_license
|
kohei-okazaki/work-3g
|
e6f68b85443002face236a8b5b917063a7d714c6
|
62e30889f462f3abad0b4f9df186fa70d18aa211
|
refs/heads/master
| 2023-07-24T12:34:05.355446
| 2023-01-08T12:33:35
| 2023-01-08T12:33:35
| 128,875,758
| 23
| 4
| null | 2023-07-11T00:42:52
| 2018-04-10T04:55:59
|
Java
|
UTF-8
|
Java
| false
| false
| 529
|
java
|
package jp.co.ha.common.validator.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 妥当性チェックを行わないことを示すマーカーアノテーション
*
* @version 1.0.0
*/
@Inherited
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ValidateIgnore {
}
|
[
"kou1210hei@gmail.com"
] |
kou1210hei@gmail.com
|
04ddd09a283ed356eee8de5db4355bf829f5fd5c
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/single-large-project/src/test/java/org/gradle/test/performancenull_224/Testnull_22387.java
|
bdc0292e1f9713b095c4671cbe768738db89b24f
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 308
|
java
|
package org.gradle.test.performancenull_224;
import static org.junit.Assert.*;
public class Testnull_22387 {
private final Productionnull_22387 production = new Productionnull_22387("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
e40977fd58c3bb68dc065186405fc11fa95bf7f9
|
01b596137f15e0f0d816a42930686994fb137242
|
/src/main/java/jp/co/tis/s2n/jspConverter/convert/tag/html/TagHtmlTextareaConvert.java
|
99fbf1cba716a9fcc35c76aa1546555bc9c2a6aa
|
[
"Apache-2.0"
] |
permissive
|
oscana/oscana-s2n-jspconverter
|
ca12296bae01d57a950f66a812504d72a25824dc
|
df10be3a651eb5da1509f8d53e2f7583ac34b776
|
refs/heads/master
| 2023-03-31T15:08:28.668142
| 2021-03-30T10:33:01
| 2021-03-30T10:33:01
| 291,642,111
| 0
| 0
|
Apache-2.0
| 2021-03-30T10:33:02
| 2020-08-31T07:11:12
|
Java
|
UTF-8
|
Java
| false
| false
| 756
|
java
|
package jp.co.tis.s2n.jspConverter.convert.tag.html;
import jp.co.tis.s2n.converterCommon.util.StringUtils;
import jp.co.tis.s2n.jspConverter.node.NodeWrapper;
/**
* HtmlTextareaタグ変換用クラス。
*
* @author Fumihiko Yamamoto
*
*/
public class TagHtmlTextareaConvert extends TagHtmlInputBase {
@Override
protected void convertStartProc(NodeWrapper nw) {
//入力系共通処理
super.convertStartProc(nw);
if (StringUtils.isEmpty(nw.getValueAsString("cols"))) {
nw.addKeyValue("cols", "20");//html5の初期値
}
if (StringUtils.isEmpty(nw.getValueAsString("rows"))) {
nw.addKeyValue("rows", "2");//html5の初期値
}
}
}
|
[
"ko.i@tis.co.jp"
] |
ko.i@tis.co.jp
|
bfe18c1d1e979ecbe81ea9a47601aa5d351efc28
|
31f5db098ebd2e848dc2e8a62b37311575b8a2dd
|
/java lecture/Labs/Ex08_CollectionFramework/Ex05_Stack_Collection.java
|
38f1933e41f6a0e7ccbf33d5cb737f13c3e8c615
|
[] |
no_license
|
jinkwang2018/lecture-note
|
7bce8ab5b96201231617e2ecc0af543c8334ea4b
|
cc2b5f41c46102320882c5b64d29a6424a33a83b
|
refs/heads/master
| 2021-06-24T21:10:49.341707
| 2019-03-22T08:20:38
| 2019-03-22T08:20:38
| 177,101,162
| 1
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 933
|
java
|
import java.util.Stack;
import kr.or.bit.Mystack;
public class Ex05_Stack_Collection {
public static void main(String[] args) {
/*
//LIFO
//Collection Framework 제공하는 Stack
Stack stack = new Stack();
stack.push("A");
stack.push("B");
System.out.println(stack);
System.out.println(stack.pop());
System.out.println(stack.isEmpty());
System.out.println(stack.pop());
//System.out.println(stack.pop()); //java.util.EmptyStackException
*/
Mystack my = new Mystack(3);
System.out.println(my.isEmpty());
my.push("A");
my.push("B");
System.out.println(my.toString());
System.out.println(my.pop());
System.out.println(my.toString());
my.push(1);
System.out.println(my.toString());
my.push(2);
System.out.println(my.toString());
// my.push(3);
// System.out.println(my.toString());
/////////////////////////////////////
//JAVA API 제공하는 Stack 클래스
}
}
|
[
"36331994+jinkwang2018@users.noreply.github.com"
] |
36331994+jinkwang2018@users.noreply.github.com
|
bdf2373ff8d2ce31f2862c137822ede6485da487
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/imm-20200930/src/main/java/com/aliyun/imm20200930/models/ImageScore.java
|
e74db27bc015cfe198edb556ea574576a8e796dc
|
[
"Apache-2.0"
] |
permissive
|
aliyun/alibabacloud-java-sdk
|
83a6036a33c7278bca6f1bafccb0180940d58b0b
|
008923f156adf2e4f4785a0419f60640273854ec
|
refs/heads/master
| 2023-09-01T04:10:33.640756
| 2023-09-01T02:40:45
| 2023-09-01T02:40:45
| 288,968,318
| 40
| 45
| null | 2023-06-13T02:47:13
| 2020-08-20T09:51:08
|
Java
|
UTF-8
|
Java
| false
| false
| 669
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.imm20200930.models;
import com.aliyun.tea.*;
public class ImageScore extends TeaModel {
@NameInMap("OverallQualityScore")
public Float overallQualityScore;
public static ImageScore build(java.util.Map<String, ?> map) throws Exception {
ImageScore self = new ImageScore();
return TeaModel.build(map, self);
}
public ImageScore setOverallQualityScore(Float overallQualityScore) {
this.overallQualityScore = overallQualityScore;
return this;
}
public Float getOverallQualityScore() {
return this.overallQualityScore;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
6660844adaf3f441215c908a338cf201c86990e9
|
6c5c1143c0e67101484b76db07ecfdb83443daa9
|
/src/com/pgh/mahjong/CardType.java
|
121e222fece33dcd8d93e50c497cf034da610f12
|
[] |
no_license
|
Leoxinghai/PGH
|
bf389636a3f09d528b52b0f54944235286273e99
|
ea1cf2216c9f8c9509284cb1325900042e86ddc2
|
refs/heads/master
| 2021-01-10T16:55:21.311930
| 2016-02-04T09:21:35
| 2016-02-04T09:21:35
| 51,064,837
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 140
|
java
|
package com.pgh.mahjong;
public class CardType implements java.io.Serializable {
public int id;
public String name;
public int count;
}
|
[
"leoxinghai@hotmail.com"
] |
leoxinghai@hotmail.com
|
1b3c05cb0000be6a67031141848dbbc6dfe8c80d
|
31f043184e2839ad5c3acbaf46eb1a26408d4296
|
/src/main/java/com/github/highcharts4gwt/model/highcharts/option/api/seriescolumn/data/SelectHandler.java
|
afa4cc4878ae736cdcab04e6fb85e0601efca1f2
|
[] |
no_license
|
highcharts4gwt/highchart-wrapper
|
52ffa84f2f441aa85de52adb3503266aec66e0ac
|
0a4278ddfa829998deb750de0a5bd635050b4430
|
refs/heads/master
| 2021-01-17T20:25:22.231745
| 2015-06-30T15:05:01
| 2015-06-30T15:05:01
| 24,794,406
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 258
|
java
|
package com.github.highcharts4gwt.model.highcharts.option.api.seriescolumn.data;
import com.github.highcharts4gwt.model.highcharts.option.api.seriescolumn.data.SelectEvent;
public interface SelectHandler {
void onSelect(SelectEvent selectEvent);
}
|
[
"ronan.quillevere@gmail.com"
] |
ronan.quillevere@gmail.com
|
e3220d2f1d5f926f84f6467d2dfccacdc1fcef81
|
bb4608456555a78e66b023bb7bdd81212ce41379
|
/8-MyResource/source/old/weixin/src/test/java/wx/MaterialTest.java
|
8e53524b0f04295c12330f10d1587ce0cb78a35a
|
[] |
no_license
|
tanbinh123/technology
|
a7ee4602ced63af7a895aa7851075b412a6a33d9
|
9de5edd304dea32fb9d974e3912a0a1aa19404ef
|
refs/heads/master
| 2022-01-05T07:25:30.733047
| 2019-01-13T17:56:13
| 2019-01-13T17:56:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,000
|
java
|
package wx;
import java.io.File;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.asynclife.wx.App;
import com.asynclife.wx.enums.MediaType;
import com.asynclife.wx.service.MaterialSevice;
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = App.class)
public class MaterialTest {
Logger logger = LoggerFactory.getLogger(this.getClass());
@Autowired
MaterialSevice materialSevice;
String baseDir = "src/main/resources/media/";
/**
* 素材-增删改查
*/
@Test
public void testUploadTempMaterial() {
File file = new File(baseDir, "xiaoxin.jpg");
String response = materialSevice.uploadTempMaterial(file, MediaType.image);
logger.info(response);
}
}
|
[
"asynclife@163.com"
] |
asynclife@163.com
|
8cd01d6eb250b2f221ac269aee72c0bb33e7c0a0
|
f0332dd41c7ce6a97ea987f832713a55b90121a5
|
/src/main/java/com/hxy/nzxy/stexam/center/plan/controller/CourseFreeCopyCenterController.java
|
d5078a3c34dcca5e7190659125075910540d62c4
|
[] |
no_license
|
tanghui11/workings
|
ec363b972427b871f42cabdbe5e2fd3ed22ea2f8
|
cb7ad7c7c27a1636a6cbfaff3904581f7b1e8ef8
|
refs/heads/master
| 2022-01-23T09:46:59.060235
| 2019-08-27T08:33:55
| 2019-08-27T08:33:55
| 180,955,439
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,018
|
java
|
package com.hxy.nzxy.stexam.center.plan.controller;
import java.util.List;
import java.util.Map;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import com.hxy.nzxy.stexam.domain.CourseFreeCopyDO;
import com.hxy.nzxy.stexam.center.plan.service.CourseFreeCopyCenterService;
import com.hxy.nzxy.stexam.common.utils.*;
import com.hxy.nzxy.stexam.common.service.CommonService;
import com.hxy.nzxy.stexam.system.controller.SystemBaseController;
/**
* 课程免考规则copy
*
* @author lzl
* @email 7414842@qq.com
* @date 2018-10-16 10:13:51
*/
@Controller
@RequestMapping("/plan/courseFreeCopyCenter")
public class CourseFreeCopyCenterController extends SystemBaseController{
@Autowired
private CourseFreeCopyCenterService courseFreeCopyCenterService;
@Autowired
private CommonService commonService;
@GetMapping()
@RequiresPermissions("plan:courseFreeCopyCenter:courseFreeCopyCenter")
String CourseFreeCopyCenter(){
return "center/plan/courseFreeCopyCenter/courseFreeCopyCenter";
}
@ResponseBody
@GetMapping("/list")
@RequiresPermissions("plan:courseFreeCopyCenter:courseFreeCopyCenter")
public PageUtils list(@RequestParam Map<String, Object> params){
//查询列表数据
Query query = new Query(params);
List<CourseFreeCopyDO> courseFreeCopyCenterList = courseFreeCopyCenterService.list(query);
for (CourseFreeCopyDO item : courseFreeCopyCenterList) {
item.setOperator(UserUtil.getName(item.getOperator()));
item.setUpdateDate(DateUtils.format(item.getUpdateDate(), DateUtils.DATE_PATTERN));
}
int total = courseFreeCopyCenterService.count(query);
PageUtils pageUtils = new PageUtils(courseFreeCopyCenterList, total);
return pageUtils;
}
@GetMapping("/add")
@RequiresPermissions("plan:courseFreeCopyCenter:add")
String add(Model model){
return "center/plan/courseFreeCopyCenter/add";
}
@GetMapping("/edit/{id}")
@RequiresPermissions("plan:courseFreeCopyCenter:edit")
String edit(@PathVariable("id") String id,Model model){
CourseFreeCopyDO courseFreeCopyCenter = courseFreeCopyCenterService.get(id);
model.addAttribute("courseFreeCopyCenter", courseFreeCopyCenter);
return "center/plan/courseFreeCopyCenter/edit";
}
/**
* 保存
*/
@ResponseBody
@PostMapping("/save")
@RequiresPermissions("plan:courseFreeCopyCenter:add")
public R save( CourseFreeCopyDO courseFreeCopyCenter){
courseFreeCopyCenter.setOperator(ShiroUtils.getUserId().toString());
if(courseFreeCopyCenterService.save(courseFreeCopyCenter)>0){
return R.ok();
}
return R.error();
}
/**
* 修改
*/
@ResponseBody
@RequestMapping("/update")
@RequiresPermissions("plan:courseFreeCopyCenter:edit")
public R update( CourseFreeCopyDO courseFreeCopyCenter){
courseFreeCopyCenter.setOperator(ShiroUtils.getUserId().toString());
courseFreeCopyCenterService.update(courseFreeCopyCenter);
return R.ok();
}
/**
* 删除
*/
@PostMapping( "/remove")
@ResponseBody
@RequiresPermissions("plan:courseFreeCopyCenter:remove")
public R remove( String id){
if(courseFreeCopyCenterService.remove(id)>0){
return R.ok();
}
return R.error();
}
/**
* 删除
*/
@PostMapping( "/batchRemove")
@ResponseBody
@RequiresPermissions("plan:courseFreeCopyCenter:batchRemove")
public R remove(@RequestParam("ids[]") String[] ids){
courseFreeCopyCenterService.batchRemove(ids);
return R.ok();
}
}
|
[
"2435029719@qq.com"
] |
2435029719@qq.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.