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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
34bde31de28e3f353179907ca5fa5d29c3024bb8
|
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
|
/java/flink/2017/4/KafkaTableSource.java
|
029aa453253b08386b5f54ab2c1fa6bc549d5db9
|
[] |
no_license
|
rosoareslv/SED99
|
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
|
a062c118f12b93172e31e8ca115ce3f871b64461
|
refs/heads/main
| 2023-02-22T21:59:02.703005
| 2021-01-28T19:40:51
| 2021-01-28T19:40:51
| 306,497,459
| 1
| 1
| null | 2020-11-24T20:56:18
| 2020-10-23T01:18:07
| null |
UTF-8
|
Java
| false
| false
| 4,011
|
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.flink.streaming.connectors.kafka;
import java.util.Properties;
import org.apache.flink.api.common.typeinfo.TypeInformation;
import org.apache.flink.streaming.api.datastream.DataStream;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.streaming.util.serialization.DeserializationSchema;
import org.apache.flink.table.sources.StreamTableSource;
import org.apache.flink.types.Row;
import org.apache.flink.util.Preconditions;
/**
* A version-agnostic Kafka {@link StreamTableSource}.
*
* <p>The version-specific Kafka consumers need to extend this class and
* override {@link #getKafkaConsumer(String, Properties, DeserializationSchema)}}.
*/
public abstract class KafkaTableSource implements StreamTableSource<Row> {
/** The Kafka topic to consume. */
private final String topic;
/** Properties for the Kafka consumer. */
private final Properties properties;
/** Deserialization schema to use for Kafka records. */
private final DeserializationSchema<Row> deserializationSchema;
/** Type information describing the result type. */
private final TypeInformation<Row> typeInfo;
/**
* Creates a generic Kafka {@link StreamTableSource}.
*
* @param topic Kafka topic to consume.
* @param properties Properties for the Kafka consumer.
* @param deserializationSchema Deserialization schema to use for Kafka records.
* @param typeInfo Type information describing the result type.
*/
KafkaTableSource(
String topic,
Properties properties,
DeserializationSchema<Row> deserializationSchema,
TypeInformation<Row> typeInfo) {
this.topic = Preconditions.checkNotNull(topic, "Topic");
this.properties = Preconditions.checkNotNull(properties, "Properties");
this.deserializationSchema = Preconditions.checkNotNull(deserializationSchema, "Deserialization schema");
this.typeInfo = Preconditions.checkNotNull(typeInfo, "Type information");
}
/**
* NOTE: This method is for internal use only for defining a TableSource.
* Do not use it in Table API programs.
*/
@Override
public DataStream<Row> getDataStream(StreamExecutionEnvironment env) {
// Version-specific Kafka consumer
FlinkKafkaConsumerBase<Row> kafkaConsumer = getKafkaConsumer(topic, properties, deserializationSchema);
return env.addSource(kafkaConsumer);
}
@Override
public TypeInformation<Row> getReturnType() {
return typeInfo;
}
/**
* Returns the version-specific Kafka consumer.
*
* @param topic Kafka topic to consume.
* @param properties Properties for the Kafka consumer.
* @param deserializationSchema Deserialization schema to use for Kafka records.
* @return The version-specific Kafka consumer
*/
abstract FlinkKafkaConsumerBase<Row> getKafkaConsumer(
String topic,
Properties properties,
DeserializationSchema<Row> deserializationSchema);
/**
* Returns the deserialization schema.
*
* @return The deserialization schema
*/
protected DeserializationSchema<Row> getDeserializationSchema() {
return deserializationSchema;
}
@Override
public String explainSource() {
return "";
}
}
|
[
"rodrigosoaresilva@gmail.com"
] |
rodrigosoaresilva@gmail.com
|
1ded6697aef957909260a74d9a988045401cf4ce
|
501c5bdffb5dcf455ab6c890ece9a8146d71b631
|
/02_InputOutputStreams/src/com/slk/training/programs/P03_TryWithResources.java
|
c55fe2cae2c0143d0c0db2a23e84df0e8f4b5902
|
[] |
no_license
|
kayartaya-vinod/2018_05_SLK_BOOTCAMP
|
08c65f8aea3566967945f4349f926fdafe18031e
|
a5106806421a2a969ffee3ade8fa7173ed77b7dd
|
refs/heads/master
| 2020-03-18T10:08:28.567918
| 2019-02-06T07:34:58
| 2019-02-06T07:34:58
| 134,598,356
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 525
|
java
|
package com.slk.training.programs;
import java.io.BufferedReader;
import java.io.FileReader;
public class P03_TryWithResources {
public static void main(String[] args) throws Exception {
String filename = "./src/com/slk/training/programs/P01_ReadingFromFile.java";
try (FileReader file = new FileReader(filename);
BufferedReader in = new BufferedReader(file);) {
String line;
while ((line = in.readLine()) != null) {
System.out.println(line);
}
System.out.println("after while loop");
}
}
}
|
[
"kayartaya.vinod@gmail.com"
] |
kayartaya.vinod@gmail.com
|
2ad4762aed12cb1624915f4a03a57d9ff076becb
|
56fb3d0238465a4bcfaf41817bd00d2b176c0c6a
|
/spring-statemachine-core/src/main/java/org/springframework/statemachine/event/OnStateMachineStop.java
|
bb915594b84bf25dfabc4d850c1c3eee2c38d328
|
[
"Apache-2.0"
] |
permissive
|
TimGuan/spring-statemachine
|
803927fbe8a543202ea16260cddc49fb9661a325
|
ea9dee4aad31ebb2535c49b267f8c2c0e1fca461
|
refs/heads/master
| 2021-01-19T13:56:24.440819
| 2017-04-11T19:36:55
| 2017-04-11T19:36:55
| 88,116,527
| 1
| 0
| null | 2017-04-13T02:29:16
| 2017-04-13T02:29:16
| null |
UTF-8
|
Java
| false
| false
| 1,495
|
java
|
/*
* Copyright 2015 the original author or 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 org.springframework.statemachine.event;
import org.springframework.statemachine.StateMachine;
/**
* Generic event representing that state machine has been stopped or terminated.
*
* @author Janne Valkealahti
*
*/
@SuppressWarnings("serial")
public class OnStateMachineStop extends StateMachineEvent {
private final StateMachine<?, ?> stateMachine;
/**
* Instantiates a new on state exit event.
*
* @param source the source
* @param stateMachine the statemachine
*/
public OnStateMachineStop(Object source, StateMachine<?, ?> stateMachine) {
super(source);
this.stateMachine = stateMachine;
}
/**
* Gets the statemachine.
*
* @return the statemachine
*/
public StateMachine<?, ?> getStateMachine() {
return stateMachine;
}
@Override
public String toString() {
return "OnStateMachineStop [stateMachine=" + stateMachine + "]";
}
}
|
[
"janne.valkealahti@gmail.com"
] |
janne.valkealahti@gmail.com
|
22f66780fb1a4a21abe9ec8de244437b4798c4d2
|
6d9d90789f91d4010c30344409aad49fa99099e3
|
/lucene-highlighter/src/main/java/org/apache/lucene/search/vectorhighlight/BreakIteratorBoundaryScanner.java
|
518a4725f8c49ad8cf5562dd2f1de9ee2693e2b5
|
[
"Apache-2.0"
] |
permissive
|
bighaidao/lucene
|
8c2340f399c60742720e323a0b0c0a70b2651147
|
bd5d75e31526b599296c3721bc2081a3bde3e251
|
refs/heads/master
| 2021-08-07T07:01:42.438869
| 2012-08-22T09:16:08
| 2012-08-22T09:16:08
| 8,878,381
| 1
| 2
|
Apache-2.0
| 2021-08-02T17:05:32
| 2013-03-19T12:48:16
|
Java
|
UTF-8
|
Java
| false
| false
| 1,693
|
java
|
package org.apache.lucene.search.vectorhighlight;
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.text.BreakIterator;
/**
* A {@link BoundaryScanner} implementation that uses {@link BreakIterator} to find
* boundaries in the text.
* @see BreakIterator
*/
public class BreakIteratorBoundaryScanner implements BoundaryScanner {
final BreakIterator bi;
public BreakIteratorBoundaryScanner(BreakIterator bi){
this.bi = bi;
}
public int findStartOffset(StringBuilder buffer, int start) {
// avoid illegal start offset
if( start > buffer.length() || start < 1 ) return start;
bi.setText(buffer.substring(0, start));
bi.last();
return bi.previous();
}
public int findEndOffset(StringBuilder buffer, int start) {
// avoid illegal start offset
if( start > buffer.length() || start < 0 ) return start;
bi.setText(buffer.substring(start));
return bi.next() + start;
}
}
|
[
"joergprante@gmail.com"
] |
joergprante@gmail.com
|
fe63f28e54ac339cf679d62bb9c2e4aa7e65619b
|
f21e2990547a37e087bf866c2659f8ed4f70ca84
|
/apphub-service/apphub-service-skyxplore/apphub-service-skyxplore-data/src/test/java/com/github/saphyra/apphub/service/skyxplore/data/save_game/SavedGameQueryServiceTest.java
|
cea1bc13c2745ad3a7dfdd309141802e4c366a48
|
[] |
no_license
|
Saphyra/apphub
|
207b8e049ca3d8f88c15213656cf596663e2850b
|
13d01c18ff4568edc693da102b7822781de83fa3
|
refs/heads/master
| 2023-09-04T05:31:41.969358
| 2023-09-02T19:29:17
| 2023-09-02T19:29:17
| 250,788,236
| 0
| 2
| null | 2023-09-09T20:23:43
| 2020-03-28T12:22:39
|
Java
|
UTF-8
|
Java
| false
| false
| 3,700
|
java
|
package com.github.saphyra.apphub.service.skyxplore.data.save_game;
import com.github.saphyra.apphub.api.skyxplore.model.game.GameModel;
import com.github.saphyra.apphub.api.skyxplore.model.game.PlayerModel;
import com.github.saphyra.apphub.api.skyxplore.response.SavedGameResponse;
import com.github.saphyra.apphub.lib.common_util.DateTimeUtil;
import com.github.saphyra.apphub.service.skyxplore.data.save_game.dao.game.GameDao;
import com.github.saphyra.apphub.service.skyxplore.data.save_game.dao.player.PlayerDao;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.BDDMockito.given;
@ExtendWith(MockitoExtension.class)
public class SavedGameQueryServiceTest {
private static final UUID USER_ID = UUID.randomUUID();
private static final UUID GAME_ID = UUID.randomUUID();
private static final String GAME_NAME = "game-name";
private static final LocalDateTime LAST_PLAYED = LocalDateTime.now();
private static final long LAST_PLAYED_EPOCH_SECONDS = 134L;
@Mock
private GameDao gameDao;
@Mock
private PlayerDao playerDao;
@Mock
private DateTimeUtil dateTimeUtil;
@InjectMocks
private SavedGameQueryService underTest;
@Mock
private GameModel gameModel;
@Mock
private PlayerModel player1;
@Mock
private PlayerModel player2;
@Mock
private PlayerModel hostPlayer;
@Mock
private PlayerModel aiPlayer;
@Test
public void getSavedGames_markedForDeletion() {
given(gameDao.getByHost(USER_ID)).willReturn(Arrays.asList(gameModel));
given(gameModel.getMarkedForDeletion()).willReturn(false);
List<SavedGameResponse> result = underTest.getSavedGames(USER_ID);
assertThat(result.isEmpty());
}
@Test
public void getSavedGames() {
given(gameDao.getByHost(USER_ID)).willReturn(Arrays.asList(gameModel));
given(gameModel.getHost()).willReturn(USER_ID);
given(gameModel.getMarkedForDeletion()).willReturn(false);
given(gameModel.getGameId()).willReturn(GAME_ID);
given(gameModel.getName()).willReturn(GAME_NAME);
given(gameModel.getLastPlayed()).willReturn(LAST_PLAYED);
given(dateTimeUtil.toEpochSecond(LAST_PLAYED)).willReturn(LAST_PLAYED_EPOCH_SECONDS);
given(playerDao.getByGameId(GAME_ID)).willReturn(Arrays.asList(player2, player1, hostPlayer, aiPlayer));
given(player1.getAi()).willReturn(false);
given(player1.getUserId()).willReturn(UUID.randomUUID());
given(player1.getUsername()).willReturn("player-name-1");
given(player2.getAi()).willReturn(false);
given(player2.getUserId()).willReturn(UUID.randomUUID());
given(player2.getUsername()).willReturn("player-name-2");
given(aiPlayer.getAi()).willReturn(true);
given(hostPlayer.getAi()).willReturn(false);
given(hostPlayer.getUserId()).willReturn(USER_ID);
List<SavedGameResponse> result = underTest.getSavedGames(USER_ID);
assertThat(result).hasSize(1);
SavedGameResponse response = result.get(0);
assertThat(response.getGameId()).isEqualTo(GAME_ID);
assertThat(response.getGameName()).isEqualTo(GAME_NAME);
assertThat(response.getLastPlayed()).isEqualTo(LAST_PLAYED_EPOCH_SECONDS);
assertThat(response.getPlayers()).isEqualTo("player-name-1, player-name-2");
}
}
|
[
"Saphy371321"
] |
Saphy371321
|
0e2daab65c6102bbe8e0fdffb71f801ac0c6313f
|
71bbbed252336ab60ef2d43fee215d05ea2dc736
|
/eHealthSystemWeb/src/main/java/nirmalya/aathithya/webmodule/master/model/ServiceMasterModel.java
|
07589570776c19ca436675eee3e970da544797ae
|
[] |
no_license
|
amarendra108/ehealthsystemamar
|
9d3617194030c12c8aca88b2716510308315f1f8
|
ff283dfa5796636dffbf78e706d6e612e081c5ac
|
refs/heads/main
| 2023-08-21T09:20:04.709191
| 2021-10-22T17:13:48
| 2021-10-22T17:13:48
| 420,140,538
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,732
|
java
|
package nirmalya.aathithya.webmodule.master.model;
import java.io.IOException;
import com.fasterxml.jackson.databind.ObjectMapper;
/**
* @author NirmalyaLabs
*
*/
public class ServiceMasterModel {
private String tServiceId;
private String tServiceName;
private String tServiceDesc;
private Boolean tServiceStatus;
private String tCreatedBy;
private String status;
private String action;
public ServiceMasterModel() {
super();
// TODO Auto-generated constructor stub
}
public String gettServiceId() {
return tServiceId;
}
public void settServiceId(String tServiceId) {
this.tServiceId = tServiceId;
}
public String gettServiceName() {
return tServiceName;
}
public void settServiceName(String tServiceName) {
this.tServiceName = tServiceName;
}
public String gettServiceDesc() {
return tServiceDesc;
}
public void settServiceDesc(String tServiceDesc) {
this.tServiceDesc = tServiceDesc;
}
public Boolean gettServiceStatus() {
return tServiceStatus;
}
public void settServiceStatus(Boolean tServiceStatus) {
this.tServiceStatus = tServiceStatus;
}
public String gettCreatedBy() {
return tCreatedBy;
}
public void settCreatedBy(String tCreatedBy) {
this.tCreatedBy = tCreatedBy;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
@Override
public String toString() {
ObjectMapper mapperObj = new ObjectMapper();
String jsonStr;
try {
jsonStr = mapperObj.writeValueAsString(this);
} catch (IOException ex) {
jsonStr = ex.toString();
}
return jsonStr;
}
}
|
[
"84181098+amarendra108@users.noreply.github.com"
] |
84181098+amarendra108@users.noreply.github.com
|
3496d97db1a10bc66de7502759944d89098ce9c2
|
a8378b15a6907870056c1696ae463e950a46fbe5
|
/src/byteDance/qiuZhao/test1/Main.java
|
ffe3028ea86fc24f3c64e5d4b6e4290a370d6ba3
|
[] |
no_license
|
CourageDz/LeetCodePro
|
38a90ad713d46911b64c893c7fcae04fb0b20791
|
d0dfeab630357c8172395ff8533e38b5fb9498c5
|
refs/heads/master
| 2020-03-28T14:18:58.656373
| 2020-03-18T05:00:12
| 2020-03-18T05:00:12
| 148,476,780
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,077
|
java
|
package byteDance.qiuZhao.test1;
import java.util.Scanner;
public class Main {
static class Node{
int key;
Node next;
public Node(int key) {
this.key = key;
}
}
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
while(sc.hasNextInt()){
int n=sc.nextInt();
Node head=new Node(0);
Node p=head;
for(int i=0;i<n;i++){
Node q=new Node(sc.nextInt());
head.next=q;
head=q;
}
int k=sc.nextInt();
System.out.println(getLastKNode(p.next,k).key);
}
}
public static Node getLastKNode(Node root, int k) {
Node p=root;
Node q=root;
if(k<0 || root==null)
return null;
for(int i=0;i<=k && p!=null;i++){
p=p.next;
}
if(p==null){
return null;
}
while (p!=null){
q=q.next;
p=p.next;
}
return q;
}
}
|
[
"39013348@qq.com"
] |
39013348@qq.com
|
d8cfe38c379e3eee17d6a6dfe6edee6954390f0d
|
6cbbdc9bfd93b4313bc0921fc7695c562454fc93
|
/Instantiable/GUI/Slot/SlotFullStack.java
|
aaa30bc571eac30340e4c852852dda1800f4175e
|
[] |
no_license
|
Graagh/DragonAPI
|
3e3e5eb346c9afd5b2aa277f985727bf75096e2f
|
696f7ff7953578a0d517308327c9f61ea7c245bf
|
refs/heads/master
| 2021-01-01T17:25:02.117007
| 2017-07-18T01:33:00
| 2017-07-18T01:33:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 610
|
java
|
/*******************************************************************************
* @author Reika Kalseki
*
* Copyright 2016
*
* All rights reserved.
* Distribution of the software in any form is only allowed with
* explicit, prior permission from the owner.
******************************************************************************/
package Reika.DragonAPI.Instantiable.GUI.Slot;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
public class SlotFullStack extends Slot {
public SlotFullStack(IInventory ii, int id, int x, int y) {
super(ii, id, x, y);
}
}
|
[
"reikasminecraft@gmail.com"
] |
reikasminecraft@gmail.com
|
35c6b01523bbcace965573eaf9ad505d1a473c2d
|
c9bdb85c82a1d2e3fa9f7cfff9590d774b222b26
|
/miser/miser-biz/miser-biz-job/target/classes/com/hoau/miser/module/biz/job/server/dao/CustomerJobMapper.java
|
c083f3302d1373d456be31e92170cabd67734363
|
[] |
no_license
|
wangfuguo/mi-proj
|
9d5c159719ee3c4da7bedd01dd297713bb811ced
|
2920971b310262a575cd3b767827d4633c596666
|
refs/heads/master
| 2020-03-08T07:03:24.984087
| 2018-04-04T00:44:35
| 2018-04-04T00:44:35
| 127,985,673
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,376
|
java
|
package com.hoau.miser.module.biz.job.server.dao;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.hoau.miser.module.biz.job.shared.domain.CustomerEntity;
import com.hoau.miser.module.biz.job.shared.domain.CustomerExtVo;
/**
* ClassName: CustomerJobMapper
* @Description: 客户数据相关操作
* @author 275636
* @date 2016年1月25日
* @version V1.0
*/
@Repository
public interface CustomerJobMapper {
/**
* @Description: 获取客户修改或新增的最大时间
* @author 275636
* @date 2016年1月25日
*/
public CustomerExtVo queryMaxCustomerDate();
/**
* @Description: 获取客户信息是否存在
* @author 275636
* @date 2016年1月25日
*/
public List<Map<String,Object>> getCustomerIDs(List<CustomerEntity> list);
/**
* @Description: 获取客户信息新增
* @author 275636
* @date 2016年1月25日
*/
public void addCustomerEntity(List<CustomerEntity> customerAdd);
/**
* @Description: 获取客户信息修改
* @author 275636
* @date 2016年1月25日
*/
public void updateCustomerEntity(List<CustomerEntity> customerUpdate);
/**
* @Description: 根据迪辰客户编号获取客户信息是否存在
* @author 275636
* @date 2016年1月25日
*/
public List<Map<String,Object>> getCustomerCodes(List<CustomerEntity> list);
}
|
[
"wangfuguo_wfg@163.com"
] |
wangfuguo_wfg@163.com
|
23218333838b768d7a572ab95f127207ffe9d428
|
e5b84002cb0224e689e97632a656130248d25047
|
/ServletJSPHibernate/LocationMgrEmp/src/com/LocMgrEmp/LogoutServlet.java
|
01e8ba115c21b723b1528ae64a6604531b2be7b7
|
[] |
no_license
|
aadvikm/JAVA_J2EE_REPO
|
4a254fda12c6a30b098ac0e04a54f4ee18cfd464
|
689fcfbcea739440795b43ef578b6312a2c144d3
|
refs/heads/master
| 2020-03-25T07:50:20.677504
| 2018-09-14T04:35:32
| 2018-09-14T04:35:32
| 143,584,253
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,211
|
java
|
package com.LocMgrEmp;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class LogoutServlet extends HttpServlet{
public LogoutServlet() {
super();
}
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
doService(req, resp);
}
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
doService(req, resp);
}
private void doService(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
HttpSession session = req.getSession(false);
System.out.println("The unique session id in next servlet : "+session.getId());
if(session != null){
System.out.println("Invalidating session...");
session.invalidate();
}
RequestDispatcher requestDispatcher = req.getRequestDispatcher("views/login.html");
requestDispatcher.forward(req, resp);
}
}
|
[
"Brindha@192.168.0.17"
] |
Brindha@192.168.0.17
|
d71b24b345f80e0570c6d660abd32afa9c89f06b
|
3f50982ca12e467b6a48ab2735bd889b5a2eb530
|
/dianyu-web/src/main/java/com/haier/openplatform/ueditor/upload/Uploader.java
|
33e5ba8f533c8e9c21f5a0cbbbc26cd30996d85c
|
[] |
no_license
|
527088995/dianyu
|
3c1229ca3bddc70ea20cfa733f5d25ee023a3131
|
ff9de3c731b65ba5ef230c3e3137f24042bbe822
|
refs/heads/master
| 2021-01-20T16:48:13.932544
| 2019-01-31T08:19:58
| 2019-01-31T08:19:58
| 90,849,027
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 846
|
java
|
package com.haier.openplatform.ueditor.upload;
import javax.servlet.http.HttpServletRequest;
import com.haier.openplatform.ueditor.ActionConfig;
import com.haier.openplatform.ueditor.define.State;
import com.haier.openplatform.ueditor.manager.IUeditorFileManager;
public class Uploader {
private HttpServletRequest request = null;
private ActionConfig conf = null;
public Uploader(HttpServletRequest request, ActionConfig conf) {
this.request = request;
this.conf = conf;
}
public final State doExec(IUeditorFileManager fileManager) {
String filedName = conf.getFieldName();
State state = null;
if (conf.isBase64()) {
state = Base64Uploader.save(fileManager, request.getParameter(filedName), conf);
} else {
state = BinaryUploader.save(fileManager, request, conf);
}
return state;
}
}
|
[
"527088995@qq.com"
] |
527088995@qq.com
|
39c633cbc3c9fee6fed9648232f44ba893a91d83
|
6cb1208e0f532ca95d53c581306946f27cd73363
|
/commander-common/src/test/java/com/arcsoft/commander/cluster/action/settings/network/ListEthRequestTest.java
|
899a1731881a7fee2478926c34a12a4d5d5884b7
|
[] |
no_license
|
wwj912790488/Ingest-for-struts2
|
723b83153265bb3c6ef782836acab698f46fa08a
|
af1a023660b738f02e00fa5e199d29cd70c88ddb
|
refs/heads/master
| 2021-10-09T09:59:29.898063
| 2016-12-30T01:03:02
| 2016-12-30T01:03:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 568
|
java
|
package com.arcsoft.commander.cluster.action.settings.network;
import java.io.IOException;
import org.junit.Test;
import com.arcsoft.commander.cluster.action.Actions;
import com.arcsoft.commander.cluster.action.BaseRequestTest;
import com.arcsoft.commander.cluster.action.settings.network.ListEthRequest;
/**
* Test cases for ListEthRequest.
*
* @author fjli
*/
public class ListEthRequestTest extends BaseRequestTest<ListEthRequest> {
@Test
public void testRequest() throws IOException {
testConverter(Actions.NETWORK_LIST, new ListEthRequest());
}
}
|
[
"wwj@arcvideo.com"
] |
wwj@arcvideo.com
|
26ee2f6a64f414daa3e4ec3d11a3351654da3dbe
|
22c44e037b9a9450c1e697d5ec27f9a128e07c30
|
/app/src/main/java/xinlan/com/AiAoBi/entity/Ddata.java
|
afcc09b5f59fd19be1142969e6148e649f6c5871
|
[] |
no_license
|
Superingxz/AiAoBi
|
6f96016ea2f8d33ea4ddc64f9e66e33bf308312a
|
623881643e5b32b56adbaf67fe4a21461d0c02df
|
refs/heads/master
| 2021-01-13T16:24:11.967488
| 2017-03-06T08:17:15
| 2017-03-06T08:17:15
| 79,703,494
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,464
|
java
|
package xinlan.com.AiAoBi.entity;
import java.util.List;
/**
* Created by Administrator on 2016/12/3.
*/
public class Ddata {
/* ddata表示子表说明
goodsid:货品id
goodsname:货品名称
goodssize:货品规格
unitname:货品单位
costprice:货品单价
num:订单数
alreadynum:已货数*/
private String goodsid;
private String goodsname;
private String goodssize;
private String unitname;
private String costprice;
private String num;
private String alreadynum;
public String getGoodsid() {
return goodsid;
}
public String getGoodsname() {
return goodsname;
}
public String getGoodssize() {
return goodssize;
}
public String getUnitname() {
return unitname;
}
public String getCostprice() {
return costprice;
}
public String getNum() {
return num;
}
public String getAlreadynum() {
return alreadynum;
}
@Override
public String toString() {
return "Ddata{" +
"goodsid='" + goodsid + '\'' +
", goodsname='" + goodsname + '\'' +
", goodssize='" + goodssize + '\'' +
", unitname='" + unitname + '\'' +
", costprice='" + costprice + '\'' +
", num='" + num + '\'' +
", alreadynum='" + alreadynum + '\'' +
'}';
}
}
|
[
"549856098@qq.com"
] |
549856098@qq.com
|
c48050c8c5969238e44f2a437d0b08f80ac88cab
|
8fa88f63981174c09ed48d76ef625997b58c8266
|
/27_Local_Partition/src/main/java/avinash/learn/batch/configuration/JobConfiguration.java
|
02e15ea4136a5b456a4b438bf5732d1330746a90
|
[] |
no_license
|
AvinashTiwari/Spring-Batch
|
7a937fc4d02bf1186fbeaf9c505ac0091aa646c6
|
dfa4be1255fe88ca8d0b159b58957192709d65c7
|
refs/heads/master
| 2020-03-17T02:47:39.896388
| 2018-06-17T21:33:10
| 2018-06-17T21:33:10
| 133,206,101
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,419
|
java
|
/*
* Copyright 2015 the original author or 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 avinash.learn.batch.configuration;
import java.util.HashMap;
import java.util.Map;
import javax.sql.DataSource;
import avinash.learn.batch.domain.ColumnRangePartitioner;
import avinash.learn.batch.domain.Customer;
import avinash.learn.batch.domain.CustomerRowMapper;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.configuration.annotation.JobBuilderFactory;
import org.springframework.batch.core.configuration.annotation.StepBuilderFactory;
import org.springframework.batch.core.configuration.annotation.StepScope;
import org.springframework.batch.item.database.BeanPropertyItemSqlParameterSourceProvider;
import org.springframework.batch.item.database.JdbcBatchItemWriter;
import org.springframework.batch.item.database.JdbcPagingItemReader;
import org.springframework.batch.item.database.Order;
import org.springframework.batch.item.database.support.MySqlPagingQueryProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.task.SimpleAsyncTaskExecutor;
/**
* @author Michael Minella
*/
@Configuration
public class JobConfiguration {
@Autowired
public JobBuilderFactory jobBuilderFactory;
@Autowired
public StepBuilderFactory stepBuilderFactory;
@Autowired
public DataSource dataSource;
@Bean
public ColumnRangePartitioner partitioner() {
ColumnRangePartitioner columnRangePartitioner = new ColumnRangePartitioner();
columnRangePartitioner.setColumn("id");
columnRangePartitioner.setDataSource(this.dataSource);
columnRangePartitioner.setTable("customer");
return columnRangePartitioner;
}
@Bean
@StepScope
public JdbcPagingItemReader<Customer> pagingItemReader(
@Value("#{stepExecutionContext['minValue']}")Long minValue,
@Value("#{stepExecutionContext['maxValue']}")Long maxValue) {
System.out.println("reading " + minValue + " to " + maxValue);
JdbcPagingItemReader<Customer> reader = new JdbcPagingItemReader<>();
reader.setDataSource(this.dataSource);
reader.setFetchSize(1000);
reader.setRowMapper(new CustomerRowMapper());
MySqlPagingQueryProvider queryProvider = new MySqlPagingQueryProvider();
queryProvider.setSelectClause("id, firstName, lastName, birthdate");
queryProvider.setFromClause("from customer");
queryProvider.setWhereClause("where id >= " + minValue + " and id < " + maxValue);
Map<String, Order> sortKeys = new HashMap<>(1);
sortKeys.put("id", Order.ASCENDING);
queryProvider.setSortKeys(sortKeys);
reader.setQueryProvider(queryProvider);
return reader;
}
@Bean
@StepScope
public JdbcBatchItemWriter<Customer> customerItemWriter() {
JdbcBatchItemWriter<Customer> itemWriter = new JdbcBatchItemWriter<>();
itemWriter.setDataSource(this.dataSource);
itemWriter.setSql("INSERT INTO NEW_CUSTOMER VALUES (:id, :firstName, :lastName, :birthdate)");
itemWriter.setItemSqlParameterSourceProvider(new BeanPropertyItemSqlParameterSourceProvider());
itemWriter.afterPropertiesSet();
return itemWriter;
}
@Bean
public Step step1() throws Exception {
return stepBuilderFactory.get("step1")
.partitioner(slaveStep().getName(), partitioner())
.step(slaveStep())
.gridSize(4)
.taskExecutor(new SimpleAsyncTaskExecutor())
.build();
}
@Bean
public Step slaveStep() {
return stepBuilderFactory.get("slaveStep")
.<Customer, Customer>chunk(1000)
.reader(pagingItemReader(null, null))
.writer(customerItemWriter())
.build();
}
@Bean
public Job job() throws Exception {
return jobBuilderFactory.get("job")
.start(step1())
.build();
}
}
|
[
"qwe123kids@gmail.com"
] |
qwe123kids@gmail.com
|
a3c710098a44a2b09030e4fbda7dd08ed331330a
|
da5a2d2050ac529a19e14a8ea3f9f21714cc2b5d
|
/app/src/main/java/com/ad4screen/sdk/service/modules/inapp/a/b/b/a.java
|
2b88a922e1e31d0e1766d89b2544e655ed3fafe4
|
[] |
no_license
|
F0rth/Izly
|
851bf22e53ea720fd03f03269d015efd7d8de5a4
|
89af45cedfc38e370a64c9fa341815070cdf49d6
|
refs/heads/master
| 2021-07-17T15:39:25.947444
| 2017-10-21T10:05:58
| 2017-10-21T10:05:58
| 108,004,099
| 1
| 1
| null | 2017-10-23T15:51:00
| 2017-10-23T15:51:00
| null |
UTF-8
|
Java
| false
| false
| 2,334
|
java
|
package com.ad4screen.sdk.service.modules.inapp.a.b.b;
import com.ad4screen.sdk.analytics.Lead;
import org.json.JSONException;
import org.json.JSONObject;
public abstract class a extends com.ad4screen.sdk.service.modules.inapp.a.b.a {
protected Long a;
protected String b;
protected a() {
}
protected a(Long l, String str) {
this.a = l;
this.b = str;
}
public /* synthetic */ com.ad4screen.sdk.service.modules.inapp.a.b.a a(String str) throws JSONException {
return b(str);
}
public Long a() {
return this.a;
}
public a b(String str) throws JSONException {
JSONObject jSONObject = new JSONObject(str).getJSONObject(getClassKey());
this.a = Long.valueOf(jSONObject.getLong("code"));
if (!jSONObject.isNull(Lead.KEY_VALUE)) {
this.b = jSONObject.getString(Lead.KEY_VALUE);
}
return this;
}
public String b() {
return this.b;
}
public boolean equals(Object obj) {
if (this != obj) {
if (obj == null || getClass() != obj.getClass()) {
return false;
}
a aVar = (a) obj;
if (this.a == null) {
if (aVar.a != null) {
return false;
}
} else if (!this.a.equals(aVar.a)) {
return false;
}
if (this.b == null) {
if (aVar.b != null) {
return false;
}
} else if (!this.b.equals(aVar.b)) {
return false;
}
}
return true;
}
public /* synthetic */ Object fromJSON(String str) throws JSONException {
return b(str);
}
public int hashCode() {
int i = 0;
int hashCode = this.a == null ? 0 : this.a.hashCode();
if (this.b != null) {
i = this.b.hashCode();
}
return ((hashCode + 31) * 31) + i;
}
public JSONObject toJSON() throws JSONException {
JSONObject jSONObject = new JSONObject();
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put("code", this.a);
jSONObject2.put(Lead.KEY_VALUE, this.b);
jSONObject.put(getClassKey(), jSONObject2);
return jSONObject;
}
}
|
[
"baptiste.robert@sigma.se"
] |
baptiste.robert@sigma.se
|
6a7b0e32e8dc693a9b6d125db30809960b55ace6
|
43d07af1742e01001c17eba4196f30156b08fbcc
|
/com/sun/tools/hat/internal/parser/ReadBuffer.java
|
ef0218bda1af4c2718f4f742d9e840652247445b
|
[] |
no_license
|
kSuroweczka/jdk
|
b408369b4b87ab09a828aa3dbf9132aaf8bb1b71
|
7ec3e8e31fcfb616d4a625191bcba0191ca7c2d4
|
refs/heads/master
| 2021-12-30T00:58:24.029054
| 2018-02-01T10:07:14
| 2018-02-01T10:07:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 710
|
java
|
package com.sun.tools.hat.internal.parser;
import java.io.IOException;
public abstract interface ReadBuffer
{
public abstract void get(long paramLong, byte[] paramArrayOfByte)
throws IOException;
public abstract char getChar(long paramLong)
throws IOException;
public abstract byte getByte(long paramLong)
throws IOException;
public abstract short getShort(long paramLong)
throws IOException;
public abstract int getInt(long paramLong)
throws IOException;
public abstract long getLong(long paramLong)
throws IOException;
}
/* Location: D:\dt\jdk\tools.jar
* Qualified Name: com.sun.tools.hat.internal.parser.ReadBuffer
* JD-Core Version: 0.6.2
*/
|
[
"starlich.1207@gmail.com"
] |
starlich.1207@gmail.com
|
a2438b3a1c4616142fa971aeb395b534c26756ef
|
54b179b90c4bd258f712b4d1122f1d92aea5673b
|
/mybaties/src/main/java/com/aqqje/mybaties/beans/Employee.java
|
b807502c0e8823c6c83948c48516b2d9f0230df6
|
[] |
no_license
|
aqqje/SpringBootLearn
|
37756f03daf3277ad456b20fb694253ab75974e3
|
e09f832364dc0af560b58d09eced2fc533212b42
|
refs/heads/master
| 2020-03-24T14:14:10.825463
| 2018-09-09T08:48:00
| 2018-09-09T08:48:00
| 142,763,079
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,173
|
java
|
package com.aqqje.mybaties.beans;
public class Employee {
private Integer id;
private String lastName;
private String email;
private Integer gender;
private Integer dId;
@Override
public String toString() {
return "Employee{" +
"id=" + id +
", lastName='" + lastName + '\'' +
", email='" + email + '\'' +
", gender=" + gender +
", dId=" + dId +
'}';
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public Integer getGender() {
return gender;
}
public void setGender(Integer gender) {
this.gender = gender;
}
public Integer getdId() {
return dId;
}
public void setdId(Integer dId) {
this.dId = dId;
}
}
|
[
"1042136232@qq.com"
] |
1042136232@qq.com
|
611dc1b7d2e7491880da62f7c0836c71fe05ee07
|
f70d28f9846f01c7a634c9ffd847dced6bdfae9e
|
/bonus/minastirith/src/test/java/minastirith/gameobject/siege/SiegeWeaponTest.java
|
32bec8cdc7e0f75b17ded1ae2bc6b32e539a1b1e
|
[] |
no_license
|
Herko3/senior-solutions
|
4f45ba630aa3d0b9e9ab4da2dcd70377b275ec7d
|
02850d76670de4c5fd86e7fb0cabf1ad7bd99ecf
|
refs/heads/master
| 2023-07-02T03:32:27.887182
| 2021-08-01T13:38:49
| 2021-08-01T13:38:49
| 372,561,706
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 424
|
java
|
package minastirith.gameobject.siege;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class SiegeWeaponTest {
@Test
void testBallista(){
SiegeWeapon ballista = new Ballista();
assertEquals(50,ballista.doDamage());
}
@Test
void testCatapult(){
SiegeWeapon catapult = new Catapult();
assertEquals(10,catapult.doDamage());
}
}
|
[
"herko@index.hu"
] |
herko@index.hu
|
a41e374ed5144b60f091795cd5cfdf5851705f69
|
f5af9d6659ae547f2936dd0067e03da837bd6c2a
|
/com.arcbees.ide.plugin.eclipse/src/com/arcbees/plugin/eclipse/domain/ProjectConfigModel.java
|
ddfed42193e16701f8a372a349022c732a67a511
|
[] |
no_license
|
djoudi/gwtp-eclipse-plugin
|
b9a901ac71bfb5290281d0d48a30b868ebd396c6
|
7ddf075b8054c8fc2090ac99470622fb86f763f4
|
refs/heads/master
| 2021-01-16T22:43:39.110819
| 2013-07-06T20:38:08
| 2013-07-06T20:38:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,341
|
java
|
/**
* Copyright 2013 ArcBees Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.arcbees.plugin.eclipse.domain;
public class ProjectConfigModel extends ModelObject {
private String projectName;
private String packageName;
private String moduleName;
private String groupId;
private String artifactId;
private String projectPath;
private Archetype archetypeSelected;
private String workspacePath;
public ProjectConfigModel() {
}
public String getPackageName() {
return packageName;
}
public void setPackageName(String packageName) {
firePropertyChange("packageName", this.packageName, this.packageName = packageName);
}
public String getModuleName() {
return moduleName;
}
public void setModuleName(String moduleName) {
firePropertyChange("moduleName", this.moduleName, this.moduleName = moduleName);
}
public String getGroupId() {
return groupId;
}
public void setGroupId(String groupId) {
firePropertyChange("groupId", this.groupId, this.groupId = groupId);
}
public String getArtifactId() {
return artifactId;
}
public void setArtifactId(String artifactId) {
firePropertyChange("artifactId", this.artifactId, this.artifactId = artifactId);
}
public String getProjectPath() {
return projectPath;
}
public void setProjectPath(String projectPath) {
firePropertyChange("projectPath", this.projectPath, this.projectPath = projectPath);
}
public Archetype getArchetypeSelected() {
return archetypeSelected;
}
public void seArchetypeSelected(Archetype archetypeSelected) {
firePropertyChange("archetypeSelected", this.archetypeSelected, this.archetypeSelected = archetypeSelected);
}
@Override
public String toString() {
String s = "{ ProjectConfigModel: ";
s += "projectName=" + projectName + " ";
s += "packageName=" + packageName + " ";
s += "moduleName=" + moduleName + " ";
s += "groupId=" + groupId + " ";
s += "artifactId=" + artifactId + " ";
s += "projectPath=" + projectPath + " ";
s += "archetypeSelected=" + archetypeSelected + " ";
s += " }";
return s;
}
// TODO future
public String getVersion() {
return "1.0-SNAPSHOT";
}
// TODO future
public String getDescription() {
return "This project was genereted by ArcBees Eclipse plugin.";
}
public boolean canBeFinished() {
return archetypeSelected != null;
}
public void setWorkspacePath(String workspacePath) {
this.workspacePath = workspacePath;
}
public String getWorkspacePath() {
return workspacePath;
}
}
|
[
"branflake2267@gmail.com"
] |
branflake2267@gmail.com
|
0304149807c0cb7cfc715cf78f390c688d1177aa
|
1ec25226b708f419318bbb3daa2bf37de353d453
|
/araqne-pcap-netbios/src/main/java/org/araqne/pcap/netbios/rr/QueryData.java
|
8eda8170074db02f40937e016ff7afe97cd7ea04
|
[] |
no_license
|
sjkbar/pcap
|
c3d5cb946ec9e4f4d852e5d9347935027a8fcf17
|
860773e6c9aa22d20a9945d5ceba8f9ee782b6fb
|
refs/heads/master
| 2021-01-17T13:09:17.949098
| 2014-07-10T06:22:05
| 2014-07-10T06:30:08
| 21,682,446
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,560
|
java
|
/*
* Copyright 2011 Future Systems, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.araqne.pcap.netbios.rr;
import org.araqne.pcap.netbios.DatagramData;
import org.araqne.pcap.netbios.NetBiosNameCodec;
import org.araqne.pcap.util.Buffer;
public class QueryData implements DatagramData {
private String destName;
private byte domainType;
public byte getDomainType() {
return domainType;
}
public void setDomainType(byte domainType) {
this.domainType = domainType;
}
public QueryData(String destName) {
this.destName = destName;
}
public QueryData(String destName , byte domainType) {
this.domainType = domainType;
this.destName = destName;
}
public String getDestName() {
return destName;
}
public static QueryData parse(Buffer b) {
byte domainType = NetBiosNameCodec.decodeDomainType(b);
return new QueryData(NetBiosNameCodec.readName(b) , domainType);
}
@Override
public String toString() {
return String.format("DatagramData QueryData"+
"query data: dest name=%s", destName);
}
}
|
[
"xeraph@nchovy.com"
] |
xeraph@nchovy.com
|
4433bb3ff018c9325d23ac57c655b8c8b8674127
|
a6658a372b91f9de3140755b944e3d8f0847031c
|
/epm-parent/frameworks/framework-parent/sys/sys-mgr/src/main/java/com/canopus/entity/vo/CustomEntityParams.java
|
ab08a7aafc06cd83e674c703a987812b93c65d18
|
[] |
no_license
|
sagaranbu/Myresults-epm
|
81fa1686ae8424bd803e858b11d380aece69591b
|
001a27c1fc182146f51a00cce75865b64948eb79
|
refs/heads/master
| 2021-01-23T00:44:36.620373
| 2017-05-30T13:22:59
| 2017-05-30T13:22:59
| 92,835,001
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 849
|
java
|
package com.canopus.entity.vo;
import com.canopus.mw.dto.param.*;
public enum CustomEntityParams implements IMiddlewareParam
{
CUSTOM_ENTITY_ID,
CUSTOM_ENTITY_DATA,
CUSTOM_ENTITY_DATA_LIST,
CUSTOM_ENTITY_FIELDS_LIST,
FIELD_GROUP_ID,
DATA_TYPE_ID,
DATA_TYPE,
DATA_TYPE_LIST,
FIELD_TYPE_ID,
FIELD_TYPE,
FIELD_TYPE_LIST,
VALUE,
CUSTOM_ENTITY_INSTANCE_ID,
CUSTOM_ENTITY_INSTANCE_DATA,
CUSTOM_ENTITY_INSTANCE_LIST,
ENTITY_FIELD_LANG_DATA,
ENTITY_FIELD_LANG_DATA_LIST,
LOCALE,
CUSTOM_ENTITY_INSTANCE_FIELD_ID,
CUSTOM_ENTITY_INSTANCE_FIELD_DATA,
CUSTOM_ENTITY_INSTANCE_FIELD_LIST,
CUSTOM_ENTITY_FIELD_ID,
CUSTOM_ENTITY_FIELD_DATA,
CUSTOM_ENTITY_FIELD_STATUS;
public String getParamName() {
return this.name();
}
}
|
[
"kalpanadare@gmail.com"
] |
kalpanadare@gmail.com
|
ab67a62dfd4c84a7d6c3cf804ad038d06f4970e9
|
63b5fdc6824b1fcbd6990fa23621794feaa85eab
|
/lesson4/src/main/java/otus/spring/albot/util/question/QuestionsPreparer.java
|
2cc49d93e226aeba1e981baf97a3dcfe79f25a34
|
[] |
no_license
|
DmitriyAl/2020-02-otus-spring-albot
|
32e228e6bb944b1de0088f40d02e6f39fe289d26
|
65fe2512c1f32cea1e91eefa5922fa7cac418a69
|
refs/heads/master
| 2021-02-17T17:12:29.749801
| 2020-09-07T09:33:32
| 2020-09-07T09:33:32
| 245,113,832
| 0
| 0
| null | 2020-08-31T19:43:24
| 2020-03-05T08:58:59
|
Java
|
UTF-8
|
Java
| false
| false
| 354
|
java
|
package otus.spring.albot.util.question;
import otus.spring.albot.model.ParsedLine;
import java.util.List;
/**
* <pre>
* $Id: $
* $LastChangedBy: $
* $LastChangedRevision: $
* $LastChangedDate: $
* </pre>
*
* @author Dmitrii Albot
*/
public interface QuestionsPreparer {
List<ParsedLine> prepareQuestions(final List<ParsedLine> lines);
}
|
[
"dvalbot@mail.ru"
] |
dvalbot@mail.ru
|
a6c94632694b9326fc1bee5cf50d5c5ea20f9e0b
|
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
|
/benchmark/training/com/google/gson/functional/EscapingTest.java
|
7735082a5619c67e86dd1661a446e7f6d308efa5
|
[] |
no_license
|
STAMP-project/dspot-experiments
|
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
|
121487e65cdce6988081b67f21bbc6731354a47f
|
refs/heads/master
| 2023-02-07T14:40:12.919811
| 2019-11-06T07:17:09
| 2019-11-06T07:17:09
| 75,710,758
| 14
| 19
| null | 2023-01-26T23:57:41
| 2016-12-06T08:27:42
| null |
UTF-8
|
Java
| false
| false
| 3,720
|
java
|
/**
* Copyright (C) 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.gson.functional;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.common.TestTypes;
import java.util.ArrayList;
import java.util.List;
import junit.framework.TestCase;
/**
* Performs some functional test involving JSON output escaping.
*
* @author Inderjeet Singh
* @author Joel Leitch
*/
public class EscapingTest extends TestCase {
private Gson gson;
public void testEscapingQuotesInStringArray() throws Exception {
String[] valueWithQuotes = new String[]{ "beforeQuote\"afterQuote" };
String jsonRepresentation = gson.toJson(valueWithQuotes);
String[] target = gson.fromJson(jsonRepresentation, String[].class);
TestCase.assertEquals(1, target.length);
TestCase.assertEquals(valueWithQuotes[0], target[0]);
}
public void testEscapeAllHtmlCharacters() {
List<String> strings = new ArrayList<String>();
strings.add("<");
strings.add(">");
strings.add("=");
strings.add("&");
strings.add("'");
strings.add("\"");
TestCase.assertEquals("[\"\\u003c\",\"\\u003e\",\"\\u003d\",\"\\u0026\",\"\\u0027\",\"\\\"\"]", gson.toJson(strings));
}
public void testEscapingObjectFields() throws Exception {
TestTypes.BagOfPrimitives objWithPrimitives = new TestTypes.BagOfPrimitives(1L, 1, true, "test with\" <script>");
String jsonRepresentation = gson.toJson(objWithPrimitives);
TestCase.assertFalse(jsonRepresentation.contains("<"));
TestCase.assertFalse(jsonRepresentation.contains(">"));
TestCase.assertTrue(jsonRepresentation.contains("\\\""));
TestTypes.BagOfPrimitives expectedObject = gson.fromJson(jsonRepresentation, TestTypes.BagOfPrimitives.class);
TestCase.assertEquals(objWithPrimitives.getExpectedJson(), expectedObject.getExpectedJson());
}
public void testGsonAcceptsEscapedAndNonEscapedJsonDeserialization() throws Exception {
Gson escapeHtmlGson = new GsonBuilder().create();
Gson noEscapeHtmlGson = new GsonBuilder().disableHtmlEscaping().create();
TestTypes.BagOfPrimitives target = new TestTypes.BagOfPrimitives(1L, 1, true, "test\' / w\'ith\" / \\ <script>");
String escapedJsonForm = escapeHtmlGson.toJson(target);
String nonEscapedJsonForm = noEscapeHtmlGson.toJson(target);
TestCase.assertFalse(escapedJsonForm.equals(nonEscapedJsonForm));
TestCase.assertEquals(target, noEscapeHtmlGson.fromJson(escapedJsonForm, TestTypes.BagOfPrimitives.class));
TestCase.assertEquals(target, escapeHtmlGson.fromJson(nonEscapedJsonForm, TestTypes.BagOfPrimitives.class));
}
public void testGsonDoubleDeserialization() {
TestTypes.BagOfPrimitives expected = new TestTypes.BagOfPrimitives(3L, 4, true, "value1");
String json = gson.toJson(gson.toJson(expected));
String value = gson.fromJson(json, String.class);
TestTypes.BagOfPrimitives actual = gson.fromJson(value, TestTypes.BagOfPrimitives.class);
TestCase.assertEquals(expected, actual);
}
}
|
[
"benjamin.danglot@inria.fr"
] |
benjamin.danglot@inria.fr
|
01c6b7472569b2e264673d7f47f10bfab41964b2
|
08dbac1864b25939040fcedc38b08774b9547aec
|
/app/src/main/java/com/siweisoft/heavycenter/module/account/role/RoleUI.java
|
287cf961b72d50f92ad2ffd6667f3b9c9803950a
|
[] |
no_license
|
summerviwox/heavycenter
|
b605346bc620ec340d560351db72b312e522d261
|
273adc2d51cdea5c0156bb5919eb28a19248cc8c
|
refs/heads/master
| 2020-12-05T22:06:07.129014
| 2020-01-07T18:38:36
| 2020-01-07T18:38:36
| 232,259,809
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 212
|
java
|
package com.siweisoft.heavycenter.module.account.role;
import com.siweisoft.heavycenter.databinding.FragAcctRoleBinding;
import com.summer.x.base.ui.UI;
public class RoleUI extends UI<FragAcctRoleBinding> {
}
|
[
"summernecro@gmail.com"
] |
summernecro@gmail.com
|
3885ca95fa11853dd71838d058f6f1d862b9b313
|
baac7c141e6e366d71ac09716a64398452ee97ee
|
/src/me/XP1024/LocalAdmin/WrappedPacket.java
|
3b0151311547724f5bd96d16fca9cbad9858757f
|
[] |
no_license
|
XP1024/LocalAdmin_
|
0acc397d31dfaba74bb2f22fe4288769562b8855
|
a27d33b49815a6414bffec5a674cfce01e6af84f
|
refs/heads/master
| 2020-12-24T17:36:17.929968
| 2012-03-27T20:15:46
| 2012-03-27T20:15:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 758
|
java
|
package me.XP1024.LocalAdmin;
import java.io.Serializable;
public class WrappedPacket implements Serializable {
private static final long serialVersionUID = -8201198669655713750L;
private int moduleID;
private transient String user;
private Serializable data;
public WrappedPacket(int moduleID, String user, Serializable data){
this.moduleID = moduleID;
this.user = user;
this.data = data;
}
public int getModuleID() {
return moduleID;
}
public void setModuleID(int moduleID) {
this.moduleID = moduleID;
}
public String getUser() {
return user;
}
public void setUser(String user) {
this.user = user;
}
public Serializable getData() {
return data;
}
public void setData(Serializable data) {
this.data = data;
}
}
|
[
"a@b.c"
] |
a@b.c
|
0b7360ba9fca258cedd73f72f635522830c62ddf
|
83786d94ca9ffa90d795afb33499f87f0cc2c0b4
|
/one/src/main/java/com/skysport/inerfaces/engine/workflow/develop/service/BomInfoTaskImpl.java
|
6b019a685cf35e592e5273400164c2ef743c14de
|
[
"Apache-2.0"
] |
permissive
|
ushuaia/open-erp
|
0c8710f8f6455688f17fdec01a4dc4764137402f
|
c82b63d352b48dc9c681af250e4af89f8f6bcc09
|
refs/heads/master
| 2020-12-24T15:05:46.038369
| 2016-05-25T12:21:12
| 2016-05-25T12:21:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,893
|
java
|
package com.skysport.inerfaces.engine.workflow.develop.service;
import com.skysport.core.bean.permission.UserInfo;
import com.skysport.core.constant.CharConstant;
import com.skysport.core.model.workflow.impl.WorkFlowServiceImpl;
import com.skysport.core.utils.UserUtils;
import com.skysport.inerfaces.constant.WebConstants;
import com.skysport.inerfaces.mapper.info.BomInfoMapper;
import com.skysport.inerfaces.model.develop.bom.IBomService;
import com.skysport.inerfaces.model.permission.userinfo.service.IStaffService;
import org.activiti.engine.runtime.ProcessInstance;
import org.activiti.engine.task.Task;
import org.apache.commons.collections.map.HashedMap;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 说明:
* Created by zhangjh on 2016-05-09.
*/
@Service
public class BomInfoTaskImpl extends WorkFlowServiceImpl {
@Resource(name = "bomInfoMapper")
private BomInfoMapper bomInfoMapper;
@Resource
private IStaffService developStaffImpl;
@Resource(name = "bomManageService")
private IBomService bomManageService;
@Override
public ProcessInstance startProcessInstanceByBussKey(String businessKey) {
return startProcessInstanceByBussKey(businessKey, CharConstant.EMPTY);
}
@Override
public ProcessInstance startProcessInstanceByBussKey(String businessKey, String businessName) {
Map<String, Object> variables = new HashMap<String, Object>();
UserInfo userInfo = UserUtils.getUserFromSession();
ProcessInstance processInstance = null;
try {
String userId = userInfo.getNatrualkey();
String groupIdDevManager = developStaffImpl.getManagerStaffGroupId();
identityService.setAuthenticatedUserId(userId);
variables.put(WebConstants.DEVLOP_MANAGER, groupIdDevManager);
variables.put(WebConstants.BUSINESS_NAME, businessName);
processInstance = runtimeService.startProcessInstanceByKey(WebConstants.APPROVE_BOM_PROCESS, businessKey, variables);
} finally {
identityService.setAuthenticatedUserId(null);
}
return processInstance;
}
@Override
public void updateApproveStatus(String businessKey, String status) {
bomInfoMapper.updateApproveStatus(businessKey, status);
}
@Override
public void updateApproveStatusBatch(List<String> businessKeys, String status) {
bomInfoMapper.updateApproveStatusBatch(businessKeys, status);
}
@Override
public void submit(String businessKey) {
//启动流程
// startWorkFlow(businessKey);
//状态改为待审批
updateApproveStatus(businessKey, WebConstants.APPROVE_STATUS_UNDO);
}
@Override
public void submit(String taskId, String businessKey) {
if (!WebConstants.NULL_STR.equals(taskId.trim())) {
//完成当前任务
Map<String, Object> variables = new HashMap<String, Object>();
complete(taskId, variables);
}
updateApproveStatus(businessKey, WebConstants.APPROVE_STATUS_UNDO);
}
@Override
public Map<String, Object> getVariableOfTaskNeeding(boolean approve, Task task) {
Map<String, Object> variables = new HashedMap();
variables.put(WebConstants.SINGLE_BOM_PASS, approve);
return variables;
}
@Override
public <T> T invokePass(String businessKey) {
return null;
}
@Override
public <T> T invokeReject(String businessKey) {
return null;
}
@Override
public String queryBusinessName(String businessKey) {
return bomManageService.queryBusinessName(businessKey);
}
@Override
public void afterPropertiesSet() throws Exception {
approveMapper = bomInfoMapper;
}
}
|
[
"firebata@gmail.com"
] |
firebata@gmail.com
|
a170ad7b6263a8bd88dcbbc4579fb8a3c9baa4ca
|
b65f70e86b778a33a21646b153e8903fd554ac7d
|
/app/src/main/java/com/rsradjakhospital/monitoring/util/Utility.java
|
1f3a4a81dac3e27b9f937c410abaa61d29df9c1b
|
[] |
no_license
|
bambangm88/Monitoring
|
bc87226e728c2e84d864c5b9ab083b34eef68ab0
|
ec9f5fc586b50b13186f75bebe0db6afa365037a
|
refs/heads/master
| 2023-06-01T10:02:26.433400
| 2021-06-18T01:23:22
| 2021-06-18T01:23:22
| 376,672,691
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 173
|
java
|
package com.rsradjakhospital.monitoring.util;
public class Utility {
public static final String BASE_URL_API = "http://45.112.125.33/WebApiMonitoring/index.php/";
}
|
[
"bambangm88@gmail.com"
] |
bambangm88@gmail.com
|
30ca0b424bef9ed7e288c479a16c71541bd37860
|
6d495f1e8b4682230c5fd1f8edd2beaacc67c47b
|
/src/main/java/com/selectica/RCFdev3/eclm/definitions/CSalesBO/CSDetails/scripts/OnChangeForAgrTypeTrigger.java
|
e42c9c41b14d106ba85678294cf139111c5562e2
|
[] |
no_license
|
ikrysenko-selectica/rcfdev3
|
3eab3b9f63cb59685fbd3bf6b53c17fc4ca6d784
|
4d44c53af1d956e6f68039a1e959abab31cc92c3
|
refs/heads/master
| 2021-01-21T11:14:58.060052
| 2015-06-17T13:29:46
| 2015-06-17T13:29:46
| 37,593,333
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,396
|
java
|
package com.selectica.RCFdev3.eclm.definitions.CSalesBO.CSDetails.scripts;
import com.selectica.rcfscripts.AbstractDataWriteScript;
import com.selectica.rcfutils.RCFBundleWrapper;
import com.selectica.rcfutils.RCFServiceAPI;
import com.selectica.rcfutils.RCFUserWrapper;
import com.selectica.user.messages.MsgTypeEnum;
/**
* Created by vshilkin on 12.02.2015.
*/
public class OnChangeForAgrTypeTrigger extends AbstractDataWriteScript<Boolean> {
/*
<![CDATA[
var bundle = thisComponent.getValue("bundle");
var title = "";
var message = com.selectica.tools.LocaleUtil.getString("renderer.OnChangeAgrTypeTitle");
service.showCustomMessage(Packages.com.selectica.user.messages.MsgTypeEnum.INFO, "", title, message, bundle);
]]>
*/
@Override
public Boolean process() throws Exception {
RCFBundleWrapper bundleWrapper = getHelper().getCurrentBundleWrapper();
String title = "";
RCFServiceAPI serviceAPI = RCFServiceAPI.getInstance();
RCFUserWrapper userWrapper = getHelper().getRCFUserWrapper();
String message = serviceAPI.getLocalizedString("renderer.OnChangeAgrTypeTitle", userWrapper);
serviceAPI.showCustomMessage(MsgTypeEnum.INFO, "", title, message, bundleWrapper); //@todo move MsgTypeEnum !!!!!!!!!!
return true;
}
}
|
[
"user@rcfproj.aws.selectica.net"
] |
user@rcfproj.aws.selectica.net
|
db31b25ecf26ed801625565490ebd8c3f84f6b48
|
902983386c123a70064866b2aa72c7748ae5269e
|
/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/ExceptionInWriterTest.java
|
a14c804de8f015e1d247340ea6715a5afd30845d
|
[
"Apache-2.0"
] |
permissive
|
cemnura/quarkus
|
a14cd7609ca8423bf81db2cb093d89b93fa91cc6
|
fdb9f5e504077ca476e6390f0f07609cabb28341
|
refs/heads/main
| 2023-01-23T05:00:15.397104
| 2021-10-02T11:36:00
| 2021-10-02T11:36:00
| 226,573,438
| 2
| 0
|
Apache-2.0
| 2023-01-17T20:01:03
| 2019-12-07T20:42:05
|
Java
|
UTF-8
|
Java
| false
| false
| 963
|
java
|
package io.quarkus.resteasy.reactive.jsonb.deployment.test;
import java.util.function.Supplier;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import io.quarkus.test.QuarkusUnitTest;
import io.restassured.RestAssured;
public class ExceptionInWriterTest {
@RegisterExtension
static QuarkusUnitTest test = new QuarkusUnitTest()
.setArchiveProducer(new Supplier<JavaArchive>() {
@Override
public JavaArchive get() {
return ShrinkWrap.create(JavaArchive.class)
.addClasses(Cheese.class, CheeseEndpoint.class);
}
});
@Test
public void test() {
RestAssured.with().header("Accept", "text/plain", "application/json").get("/cheese")
.then().statusCode(500);
}
}
|
[
"geoand@gmail.com"
] |
geoand@gmail.com
|
1694ad405ffbbd2336aae8f9784f8d9a0f78625d
|
ff758977b77de44341e63e2eb5fb188de34ad9aa
|
/src/main/java/ru/job4j/forum/repo/ThemeRepository.java
|
25df57139cceff90a6e6561c6f237d3d63b60416
|
[] |
no_license
|
ShamRail/job4j_forum
|
a0ea4fbc932eb79831bc37af3bdca2ceb1258de1
|
9ff25369d217527ecf61da0c9925471991b23aa6
|
refs/heads/master
| 2022-12-03T18:26:51.973159
| 2020-08-16T10:09:54
| 2020-08-16T10:09:54
| 286,985,790
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 203
|
java
|
package ru.job4j.forum.repo;
import org.springframework.data.jpa.repository.JpaRepository;
import ru.job4j.forum.model.Theme;
public interface ThemeRepository extends JpaRepository<Theme, Integer> {
}
|
[
"rail1999g102r@mail.ru"
] |
rail1999g102r@mail.ru
|
262d2c6b78cc55f3b5f8952e1f499a25a8a1e2f6
|
f7f9d7fa841e856927e02513ecc74dc00c935f8a
|
/server/src/test/java/org/codelibs/fesen/index/search/SimpleQueryStringQueryParserTests.java
|
72a4fff84cb98d1ae681c9d370a7e5cc7ad58ae0
|
[
"CDDL-1.0",
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"NAIST-2003",
"LicenseRef-scancode-generic-export-compliance",
"ICU",
"SunPro",
"Python-2.0",
"CC-BY-SA-3.0",
"MPL-1.1",
"GPL-2.0-only",
"CPL-1.0",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"CC-PDDC",
"BSD-2-Clause",
"LicenseRef-scancode-unicode-mappings",
"LicenseRef-scancode-unicode",
"CC0-1.0",
"Apache-1.1",
"EPL-1.0",
"Classpath-exception-2.0"
] |
permissive
|
codelibs/fesen
|
3f949fd3533e8b25afc3d3475010d1b1a0d95c09
|
b2440fbda02e32f7abe77d2be95ead6a16c8af06
|
refs/heads/main
| 2022-07-27T21:14:02.455938
| 2021-12-21T23:54:20
| 2021-12-21T23:54:20
| 330,334,670
| 4
| 0
|
Apache-2.0
| 2022-05-17T01:54:31
| 2021-01-17T07:07:56
|
Java
|
UTF-8
|
Java
| false
| false
| 2,680
|
java
|
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch 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.codelibs.fesen.index.search;
import org.codelibs.fesen.index.search.SimpleQueryStringQueryParser;
import org.codelibs.fesen.test.ESTestCase;
public class SimpleQueryStringQueryParserTests extends ESTestCase {
public void testEqualsSettings() {
SimpleQueryStringQueryParser.Settings settings1 = new SimpleQueryStringQueryParser.Settings();
SimpleQueryStringQueryParser.Settings settings2 = new SimpleQueryStringQueryParser.Settings();
String s = "Some random other object";
assertEquals(settings1, settings1);
assertEquals(settings1, settings2);
assertNotEquals(settings1, null);
assertNotEquals(settings1, s);
settings2.lenient(!settings1.lenient());
assertNotEquals(settings1, settings2);
settings2 = new SimpleQueryStringQueryParser.Settings();
settings2.analyzeWildcard(!settings1.analyzeWildcard());
assertNotEquals(settings1, settings2);
settings2 = new SimpleQueryStringQueryParser.Settings();
settings2.quoteFieldSuffix("a");
assertNotEquals(settings1, settings2);
settings2 = new SimpleQueryStringQueryParser.Settings();
settings2.autoGenerateSynonymsPhraseQuery(!settings1.autoGenerateSynonymsPhraseQuery());
assertNotEquals(settings1, settings2);
settings2 = new SimpleQueryStringQueryParser.Settings();
settings2.fuzzyPrefixLength(settings1.fuzzyPrefixLength() + 1);
assertNotEquals(settings1, settings2);
settings2 = new SimpleQueryStringQueryParser.Settings();
settings2.fuzzyMaxExpansions(settings1.fuzzyMaxExpansions() + 1);
assertNotEquals(settings1, settings2);
settings2 = new SimpleQueryStringQueryParser.Settings();
settings2.fuzzyTranspositions(!settings1.fuzzyTranspositions());
assertNotEquals(settings1, settings2);
}
}
|
[
"shinsuke@apache.org"
] |
shinsuke@apache.org
|
317a7730d7d9983bfbb3beaaa533c65a6f6e3927
|
957c6953d076dd5fec73f43caa3f5c3b85a05e80
|
/src/main/java/com/sztouyun/advertisingsystem/service/contract/operations/ValidateContractStatusOperation.java
|
0c0dffb4e365a40430965f5be94ae6e958ab9643
|
[
"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
| 2,256
|
java
|
package com.sztouyun.advertisingsystem.service.contract.operations;
import com.sztouyun.advertisingsystem.common.operation.IOperation;
import com.sztouyun.advertisingsystem.exception.BusinessException;
import com.sztouyun.advertisingsystem.model.contract.Contract;
import com.sztouyun.advertisingsystem.model.contract.ContractOperationEnum;
import com.sztouyun.advertisingsystem.model.contract.ContractOperationLog;
import com.sztouyun.advertisingsystem.model.contract.ContractStatusEnum;
import com.sztouyun.advertisingsystem.repository.contract.ContractRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Service
public class ValidateContractStatusOperation implements IOperation<ContractOperationLog>{
@Autowired
private ContractRepository contractRepository;
private Map<ContractStatusEnum, List<ContractOperationEnum>> contractStatusMapping = new HashMap<ContractStatusEnum, List<ContractOperationEnum>>() {
{
put(ContractStatusEnum.PendingCommit, Arrays.asList(ContractOperationEnum.Submit));
put(ContractStatusEnum.PendingAuditing, Arrays.asList(ContractOperationEnum.Auditing));
put(ContractStatusEnum.PendingSign, Arrays.asList(ContractOperationEnum.Sign));
put(ContractStatusEnum.PendingExecution, Arrays.asList(ContractOperationEnum.BeginExecute,ContractOperationEnum.Finish));
put(ContractStatusEnum.Executing, Arrays.asList(ContractOperationEnum.StageFinish,ContractOperationEnum.Finish));
}
};
@Override
public void operate(ContractOperationLog contractOperationLog) {
Contract contract =contractOperationLog.getContract();
if(contract == null){
contract = contractRepository.findOne(contractOperationLog.getContractId());
}
List<ContractOperationEnum> targetOperationEnums = contractStatusMapping.get(contract.getContractStatusEnum());
if (!targetOperationEnums.contains(contractOperationLog.getContractOperationEnum()))
throw new BusinessException("当前合同状态不支持本操作!");
}
}
|
[
"1032291008@qq.com"
] |
1032291008@qq.com
|
384d709caf30e77e1f6320c164e4b9eccfccb6f7
|
ee33c6f2805c6f85569f6769614c4abb1781afca
|
/src/main/java/org/xbib/elasticsearch/action/delete/DeleteRequest.java
|
945b09a6c1e96d8e7090d5343f33250010ce3617
|
[
"Apache-2.0"
] |
permissive
|
jessedgomez/elasticsearch-support
|
facfea7cda4833c8d0b920ab8b496b386fac6744
|
f50ec8f6d85422ec526440fc3abcd3a14752bf2f
|
refs/heads/master
| 2020-12-25T00:50:32.791862
| 2014-07-12T19:30:20
| 2014-07-12T19:30:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,271
|
java
|
package org.xbib.elasticsearch.action.delete;
import org.elasticsearch.action.ActionRequestValidationException;
import org.elasticsearch.common.Nullable;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.common.lucene.uid.Versions;
import org.elasticsearch.index.VersionType;
import org.xbib.elasticsearch.action.support.replication.leader.LeaderShardOperationRequest;
import java.io.IOException;
import static org.elasticsearch.action.ValidateActions.addValidationError;
public class DeleteRequest extends LeaderShardOperationRequest<DeleteRequest> {
private String type;
private String id;
@Nullable
private String routing;
private boolean refresh;
private long version = Versions.MATCH_ANY;
private VersionType versionType = VersionType.INTERNAL;
public DeleteRequest(String index) {
this.index = index;
}
public DeleteRequest(String index, String type, String id) {
this.index = index;
this.type = type;
this.id = id;
}
public DeleteRequest(DeleteRequest request) {
super(request);
this.type = request.type();
this.id = request.id();
this.routing = request.routing();
this.refresh = request.refresh();
this.version = request.version();
this.versionType = request.versionType();
}
public DeleteRequest() {
}
@Override
public ActionRequestValidationException validate() {
ActionRequestValidationException validationException = super.validate();
if (type == null) {
validationException = addValidationError("type is missing", validationException);
}
if (id == null) {
validationException = addValidationError("id is missing", validationException);
}
if (!versionType.validateVersionForWrites(version)) {
validationException = addValidationError("illegal version value [" + version + "] for version type [" + versionType.name() + "]", validationException);
}
return validationException;
}
public String type() {
return type;
}
public DeleteRequest type(String type) {
this.type = type;
return this;
}
public String id() {
return id;
}
public DeleteRequest id(String id) {
this.id = id;
return this;
}
public DeleteRequest parent(String parent) {
if (routing == null) {
routing = parent;
}
return this;
}
public DeleteRequest routing(String routing) {
if (routing != null && routing.length() == 0) {
this.routing = null;
} else {
this.routing = routing;
}
return this;
}
public String routing() {
return this.routing;
}
public DeleteRequest refresh(boolean refresh) {
this.refresh = refresh;
return this;
}
public boolean refresh() {
return this.refresh;
}
public DeleteRequest version(long version) {
this.version = version;
return this;
}
public long version() {
return this.version;
}
public DeleteRequest versionType(VersionType versionType) {
this.versionType = versionType;
return this;
}
public VersionType versionType() {
return this.versionType;
}
@Override
public void readFrom(StreamInput in) throws IOException {
super.readFrom(in);
type = in.readString();
id = in.readString();
routing = in.readOptionalString();
refresh = in.readBoolean();
version = Versions.readVersion(in);
versionType = VersionType.fromValue(in.readByte());
}
@Override
public void writeTo(StreamOutput out) throws IOException {
super.writeTo(out);
out.writeString(type);
out.writeString(id);
out.writeOptionalString(routing());
out.writeBoolean(refresh);
Versions.writeVersion(version, out);
out.writeByte(versionType.getValue());
}
@Override
public String toString() {
return "delete {[" + index + "][" + type + "][" + id + "]}";
}
}
|
[
"joergprante@gmail.com"
] |
joergprante@gmail.com
|
3d6d7ae12c8d37c0b068f2ba3aca36d1017db8f4
|
f52981eb9dd91030872b2b99c694ca73fb2b46a8
|
/Source/Plugins/Core/com.equella.core/src/com/tle/web/sections/standard/TabLayout.java
|
3094a5d4a873e26938e38dd460ef7b5fad8fe000
|
[
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"LicenseRef-scancode-jdom",
"GPL-1.0-or-later",
"ICU",
"CDDL-1.0",
"LGPL-3.0-only",
"LicenseRef-scancode-other-permissive",
"CPL-1.0",
"MIT",
"GPL-2.0-only",
"Apache-2.0",
"NetCDF",
"Apache-1.1",
"EPL-1.0",
"Classpath-exception-2.0",
"CDDL-1.1",
"LicenseRef-scancode-freemarker"
] |
permissive
|
phette23/Equella
|
baa41291b91d666bf169bf888ad7e9f0b0db9fdb
|
56c0d63cc1701a8a53434858a79d258605834e07
|
refs/heads/master
| 2020-04-19T20:55:13.609264
| 2019-01-29T03:27:40
| 2019-01-29T22:31:24
| 168,427,559
| 0
| 0
|
Apache-2.0
| 2019-01-30T22:49:08
| 2019-01-30T22:49:08
| null |
UTF-8
|
Java
| false
| false
| 3,497
|
java
|
/*
* Copyright 2017 Apereo
*
* 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.tle.web.sections.standard;
import java.util.List;
import com.tle.web.sections.SectionInfo;
import com.tle.web.sections.events.BookmarkEvent;
import com.tle.web.sections.events.BookmarkEventListener;
import com.tle.web.sections.events.DocumentParamsEvent;
import com.tle.web.sections.events.ParametersEvent;
import com.tle.web.sections.events.ParametersEventListener;
import com.tle.web.sections.events.RenderContext;
import com.tle.web.sections.events.js.JSHandler;
import com.tle.web.sections.js.generic.ReloadHandler;
import com.tle.web.sections.standard.model.HtmlTabState;
import com.tle.web.sections.standard.model.TabContent;
import com.tle.web.sections.standard.model.TabModel;
import com.tle.web.sections.standard.model.TabSection;
import com.tle.web.sections.standard.model.TabSectionTabModel;
public class TabLayout extends AbstractRenderedComponent<HtmlTabState>
implements
ParametersEventListener,
BookmarkEventListener
{
private boolean renderSelectedOnly;
private TabModel tabModel = new TabSectionTabModel();
public TabLayout()
{
super(RendererConstants.TABS);
}
public void addTabSection(TabSection section)
{
((TabSectionTabModel) tabModel).addTabSection(section);
}
public void addTabSections(List<TabSection> sections)
{
((TabSectionTabModel) tabModel).addTabSections(sections);
}
@Override
protected void prepareModel(RenderContext info)
{
HtmlTabState state = getState(info);
state.setRenderSelectedOnly(renderSelectedOnly);
state.setTabModel(tabModel);
if( renderSelectedOnly )
{
state.setEventHandler(JSHandler.EVENT_CHANGE, new ReloadHandler());
}
String currentTab = state.getCurrentTab();
if( currentTab == null || tabModel.getIndexForTab(info, currentTab) < 0 )
{
List<TabContent> tabs = tabModel.getVisibleTabs(info);
if( !tabs.isEmpty() )
{
state.setCurrentTab(tabs.get(0).getValue());
}
}
super.prepareModel(info);
}
@Override
public void handleParameters(SectionInfo info, ParametersEvent event)
{
String currentTab = event.getParameter(getParameterId(), false);
getState(info).setCurrentTab(currentTab);
}
@Override
public void bookmark(SectionInfo info, BookmarkEvent event)
{
if( addToThisBookmark(info, event) )
{
event.setParam(getParameterId(), getState(info).getCurrentTab());
}
}
@Override
public void document(SectionInfo info, DocumentParamsEvent event)
{
addDocumentedParam(event, getParameterId(), String.class.getName());
}
@Override
public Class<HtmlTabState> getModelClass()
{
return HtmlTabState.class;
}
public boolean isRenderSelectedOnly()
{
return renderSelectedOnly;
}
public void setRenderSelectedOnly(boolean renderSelectedOnly)
{
this.renderSelectedOnly = renderSelectedOnly;
}
public TabModel getTabModel()
{
return tabModel;
}
public void setTabModel(TabModel tabModel)
{
this.tabModel = tabModel;
}
}
|
[
"doolse@gmail.com"
] |
doolse@gmail.com
|
cf93cb188bdc5e4bb3e9c78e7804a74f6336e5fd
|
96f8d42c474f8dd42ecc6811b6e555363f168d3e
|
/baike/sources/qsbk/app/core/BuildConfig.java
|
361f3d0494cc15ae97d5590d6f89c9ce1153cdd1
|
[] |
no_license
|
aheadlcx/analyzeApk
|
050b261595cecc85790558a02d79739a789ae3a3
|
25cecc394dde4ed7d4971baf0e9504dcb7fabaca
|
refs/heads/master
| 2020-03-10T10:24:49.773318
| 2018-04-13T09:44:45
| 2018-04-13T09:44:45
| 129,332,351
| 6
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 369
|
java
|
package qsbk.app.core;
public final class BuildConfig {
public static final String APPLICATION_ID = "qsbk.app.core";
public static final String BUILD_TYPE = "release";
public static final boolean DEBUG = false;
public static final String FLAVOR = "";
public static final int VERSION_CODE = 1;
public static final String VERSION_NAME = "1.0";
}
|
[
"aheadlcxzhang@gmail.com"
] |
aheadlcxzhang@gmail.com
|
4a1ad81f9fe310ef41ef60f2622c2fe7dddcf7ac
|
ed3cb95dcc590e98d09117ea0b4768df18e8f99e
|
/project_1_3/src/d/i/d/Calc_1_3_3830.java
|
b425afea39a5610fa88c4d065c23aef7b0e61953
|
[] |
no_license
|
chalstrick/bigRepo1
|
ac7fd5785d475b3c38f1328e370ba9a85a751cff
|
dad1852eef66fcec200df10083959c674fdcc55d
|
refs/heads/master
| 2016-08-11T17:59:16.079541
| 2015-12-18T14:26:49
| 2015-12-18T14:26:49
| 48,244,030
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 131
|
java
|
package d.i.d;
public class Calc_1_3_3830 {
/** @return the sum of a and b */
public int add(int a, int b) {
return a+b;
}
}
|
[
"christian.halstrick@sap.com"
] |
christian.halstrick@sap.com
|
7d90a62b90a474f2b9c947f3f963e0b2aa4beb59
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/15/15_cf74935721d821bf0d768966a7adce6bc474f804/BitCommandsTest/15_cf74935721d821bf0d768966a7adce6bc474f804_BitCommandsTest_s.java
|
c603386ff6e7d5327283f10e210e1cadf2a8fd08
|
[] |
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
| 922
|
java
|
package redis.clients.jedis.tests.commands;
import org.junit.Test;
public class BitCommandsTest extends JedisCommandTestBase {
@Test
public void setAndgetbit() {
boolean bit = jedis.setbit("foo", 0, true);
assertEquals(false, bit);
bit = jedis.getbit("foo", 0);
assertEquals(false, bit);
long bbit = jedis.setbit("bfoo".getBytes(), 0, "1".getBytes());
assertEquals(0, bbit);
bbit = jedis.getbit("bfoo".getBytes(), 0);
assertEquals(1, bbit);
}
@Test
public void setAndgetrange() {
jedis.set("key1", "Hello World");
long reply = jedis.setrange("key1", 6, "Jedis");
assertEquals(11, reply);
assertEquals(jedis.get("key1"), "Hello Jedis");
assertEquals("Hello", jedis.getrange("key1", 0, 4));
assertEquals("Jedis", jedis.getrange("key1", 6, 11));
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
c1c9a3e2d1d5efb72ec18420cee5af11fc1b444b
|
3a6649f498e33f025a4b4af91dddbde106189eee
|
/src/main/gen/com/intellij/xtext/language/psi/XtextParenthesizedCondition.java
|
91d4c868838e35a331dc9e93af7e58b3bf8e6a8a
|
[] |
no_license
|
pakhopav/XtextLanguageGradle
|
ba3ef03de227f9dd16b29fe68c743650fce2a7dd
|
fb1a35b81fc59d08b9c3c1889b575c3175703814
|
refs/heads/master
| 2021-10-31T15:04:02.334870
| 2021-10-14T11:24:28
| 2021-10-14T11:24:28
| 204,747,716
| 0
| 0
| null | 2019-10-18T14:44:23
| 2019-08-27T16:47:05
|
Java
|
UTF-8
|
Java
| false
| true
| 395
|
java
|
// This is a generated file. Not intended for manual editing.
package com.intellij.xtext.language.psi;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.NotNull;
public interface XtextParenthesizedCondition extends PsiElement {
@NotNull
XtextDisjunction getDisjunction();
@NotNull
PsiElement getLBracketKeyword();
@NotNull
PsiElement getRBracketKeyword();
}
|
[
"pavel.pakhomov.99@gmail.com"
] |
pavel.pakhomov.99@gmail.com
|
575e8433da4bca337467ca6e931e7aa82666229d
|
f291bc2324255babcc14656503ce242058deb2cd
|
/src/main/java/com/apecoder/apollo/utils/EntityCopyUtil.java
|
9d1eeea71357ada5e36ff6f86147adc941a9cce1
|
[] |
no_license
|
lexluthors/apollo
|
849d66ee8fe7024482f0ac1dcc2d56f83dbc5778
|
395d961c6a9afbbf7a3805c756f58fad82bdea5d
|
refs/heads/master
| 2020-04-13T07:08:36.593228
| 2018-12-25T06:59:45
| 2018-12-25T06:59:45
| 163,041,641
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,877
|
java
|
package com.apecoder.apollo.utils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.BeanWrapper;
import org.springframework.beans.BeanWrapperImpl;
import java.util.HashSet;
import java.util.Set;
public class EntityCopyUtil {
//source中的非空属性复制到target中
public static <T> void beanCopy(T source, T target) {
BeanUtils.copyProperties(source, target, getNullPropertyNames(source));
}
//source中的非空属性复制到target中,但是忽略指定的属性,指定的属性不修改
public static <T> void beanCopyWithIngore(T source, T target, String... ignoreProperties) {
String[] pns = getNullAndIgnorePropertyNames(source, ignoreProperties);
BeanUtils.copyProperties(source, target, pns);
}
public static String[] getNullAndIgnorePropertyNames(Object source, String... ignoreProperties) {
Set<String> emptyNames = getNullPropertyNameSet(source);
for (String s : ignoreProperties) {
emptyNames.add(s);
}
String[] result = new String[emptyNames.size()];
return emptyNames.toArray(result);
}
public static String[] getNullPropertyNames(Object source) {
Set<String> emptyNames = getNullPropertyNameSet(source);
String[] result = new String[emptyNames.size()];
return emptyNames.toArray(result);
}
public static Set<String> getNullPropertyNameSet(Object source) {
final BeanWrapper src = new BeanWrapperImpl(source);
java.beans.PropertyDescriptor[] pds = src.getPropertyDescriptors();
Set<String> emptyNames = new HashSet<>();
for (java.beans.PropertyDescriptor pd : pds) {
Object srcValue = src.getPropertyValue(pd.getName());
if (srcValue == null) emptyNames.add(pd.getName());
}
return emptyNames;
}
}
|
[
"you@example.com"
] |
you@example.com
|
b5a394911de87e67cdec0627cc0ab5b21147bef2
|
d12c2b6a4afde66e284ac2f82dc585e7f3eb068a
|
/graph/src/main/java/com/java/graph/GraphMatrix.java
|
7243665eacc9adb734de1a81de2252efc93564ce
|
[] |
no_license
|
dhirajn72/datastructureAndAlgorithms
|
59fab7c280ec4b7f03b2166927ac49d48677bd5a
|
bdbfeccf43d0ae8307c572ee58279fb20ba5f1aa
|
refs/heads/developer
| 2021-06-09T02:01:52.345532
| 2021-04-06T09:15:47
| 2021-04-06T09:32:54
| 123,245,218
| 0
| 0
| null | 2021-04-06T09:34:49
| 2018-02-28T07:15:29
|
Java
|
UTF-8
|
Java
| false
| false
| 3,283
|
java
|
package com.java.graph;
import com.karumanchi.Vertex;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Stack;
/**
* @author Dhiraj
* @date 22/06/19
*/
public class GraphMatrix {
private final int maxCount = 6;
private int vertsCount;
private int[][] adjMatrix;
private Stack<Integer> stack;
private Vertex[] vertexList;
private Queue<Integer> queue;
public GraphMatrix() {
vertexList = new Vertex[maxCount];
adjMatrix = new int[maxCount][maxCount];
stack = new Stack<>();
queue=new LinkedList<>();
}
public static void main(String[] args) {
GraphMatrix graph = new GraphMatrix();
graph.addVertex('A'); //0
graph.addVertex('B'); //1
graph.addVertex('C'); //2
graph.addVertex('D'); //3
graph.addVertex('E'); //4
graph.addEdges(0, 1);
graph.addEdges(0, 3);
graph.addEdges(0, 4);
graph.addEdges(1, 2);
graph.addEdges(2, 3);
graph.addEdges(3, 4);
//System.out.println(graph);
System.out.println("******");
graph.dfs(3);
System.out.println();
graph.bfs(3);
}
public void addVertex(char c) {
vertexList[vertsCount++] = new Vertex(c);
}
public void addEdges(int src, int dest) {
adjMatrix[src][dest] = 1;
adjMatrix[dest][src] = 1;
}
public void displayVertex(int index) {
System.out.print(vertexList[index].label + ",");
}
public void dfs(int src) {
vertexList[src].visited = true;
stack.push(src);
displayVertex(src);
while (!stack.isEmpty()) {
int v = getUnvisitedNode(stack.peek());
if (v == -1) {
stack.pop();
} else {
vertexList[v].visited = true;
displayVertex(v);
stack.push(v);
}
}
/**
* Reseting flag
*/
resetFlags();
}
public void bfs(int src){
vertexList[src].visited=true;
displayVertex(src);
queue.offer(src);
int v1;
while (!queue.isEmpty()){
int v2=queue.remove(); // Hold the first vertex, and visit all its adjacent nodes
while ((v1=getUnvisitedNode(v2))!=-1){
vertexList[v1].visited=true;
queue.add(v1);
displayVertex(v1);
}
}
resetFlags();
}
public void resetFlags() {
/**
* Reseting flag
*/
for (int i = 0; i < vertsCount; i++)
vertexList[i].visited = false;
}
private int getUnvisitedNode(Integer v) {
for (int i = 0; i < vertsCount; i++) {
if (adjMatrix[v][i] == 1 && vertexList[i].visited == false)
return i;
}
return -1;
}
@Override
public String toString() {
return "GraphMatrix{" +
"maxCount=" + maxCount +
", vertsCount=" + vertsCount +
", adjMatrix=" + Arrays.deepToString(adjMatrix) +
", stack=" + stack +
", vertexList=" + Arrays.toString(vertexList) +
'}';
}
}
|
[
"dhiraj.kumar1@myntra.com"
] |
dhiraj.kumar1@myntra.com
|
4964a691ff03f8087d1c7a96f3a964c451a1f607
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/dfs-20180620/src/main/java/com/aliyun/dfs20180620/models/DeleteFileSystemResponse.java
|
f563f94215b130e61629b64f7b745c8b2c45b6a8
|
[
"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,070
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dfs20180620.models;
import com.aliyun.tea.*;
public class DeleteFileSystemResponse extends TeaModel {
@NameInMap("headers")
@Validation(required = true)
public java.util.Map<String, String> headers;
@NameInMap("body")
@Validation(required = true)
public DeleteFileSystemResponseBody body;
public static DeleteFileSystemResponse build(java.util.Map<String, ?> map) throws Exception {
DeleteFileSystemResponse self = new DeleteFileSystemResponse();
return TeaModel.build(map, self);
}
public DeleteFileSystemResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public DeleteFileSystemResponse setBody(DeleteFileSystemResponseBody body) {
this.body = body;
return this;
}
public DeleteFileSystemResponseBody getBody() {
return this.body;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
3be85e71e73137ecd29cb48a1944fea28d715630
|
1446665395f616ac96de34aceb48d4aa6ff49f93
|
/mall/src/main/java/com/myylook/mall/adapter/GoodsCollectAdapter.java
|
6462beb0d5555bde865f08d6839956eb1392be9e
|
[] |
no_license
|
838245284/livedemo
|
c459c68cefa35cce4c11217f05f5bddb0db424d3
|
1031e7530a7ea3ad94c7ba644c63a74f65881ae5
|
refs/heads/develop
| 2023-06-08T18:40:24.103366
| 2021-06-25T14:53:37
| 2021-06-25T14:53:37
| 376,277,522
| 0
| 0
| null | 2021-06-25T14:53:38
| 2021-06-12T11:51:09
|
Java
|
UTF-8
|
Java
| false
| false
| 2,650
|
java
|
package com.myylook.mall.adapter;
import android.content.Context;
import android.graphics.Paint;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.myylook.common.adapter.RefreshAdapter;
import com.myylook.common.bean.GoodsBean;
import com.myylook.common.glide.ImgLoader;
import com.myylook.common.utils.StringUtil;
import com.myylook.common.utils.WordUtil;
import com.myylook.mall.R;
import com.myylook.mall.activity.GoodsDetailActivity;
public class GoodsCollectAdapter extends RefreshAdapter<GoodsBean> {
private String mMoneySymbol;
private View.OnClickListener mOnClickListener;
public GoodsCollectAdapter(Context context) {
super(context);
mMoneySymbol = WordUtil.getString(R.string.money_symbol);
mOnClickListener = new View.OnClickListener() {
@Override
public void onClick(View v) {
GoodsBean bean = (GoodsBean) v.getTag();
GoodsDetailActivity.forward(mContext, bean.getId(), bean.getType());
}
};
}
@NonNull
@Override
public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {
return new Vh(mInflater.inflate(R.layout.item_goods_collect, viewGroup, false));
}
@Override
public void onBindViewHolder(@NonNull RecyclerView.ViewHolder vh, int i) {
((Vh) vh).setData(mList.get(i));
}
class Vh extends RecyclerView.ViewHolder {
ImageView mThumb;
TextView mName;
TextView mPriceNow;
TextView mPriceOrigin;
public Vh(@NonNull View itemView) {
super(itemView);
mThumb = itemView.findViewById(R.id.thumb);
mName = itemView.findViewById(R.id.name);
mPriceNow = itemView.findViewById(R.id.price_now);
mPriceOrigin = itemView.findViewById(R.id.price_origin);
mPriceOrigin.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG);
itemView.setOnClickListener(mOnClickListener);
}
void setData(GoodsBean bean) {
itemView.setTag(bean);
ImgLoader.display(mContext, bean.getThumb(), mThumb);
mName.setText(bean.getName());
mPriceNow.setText(bean.getPriceNow());
if(bean.getType()==1){
mPriceOrigin.setText(StringUtil.contact(mMoneySymbol, bean.getOriginPrice()));
}
else{
mPriceOrigin.setText(null);
}
}
}
}
|
[
"838245284@qq.com"
] |
838245284@qq.com
|
5702895b3c5dc4d3f298c85a7c33285ff3a87bc9
|
f4b27a6fe9205451d88e21844d8efe0bddf20c86
|
/app/src/com/trovebox/android/app/common/CommonFragmentWithImageWorker.java
|
39252e341347bdf8692460fc099c8235ea74272c
|
[
"Apache-2.0"
] |
permissive
|
hussanhijazi/mobile-android
|
09700d73cdef61fe6598adf9c62775f1c813128f
|
1c8715f2c8eae2d169a97b3f4b0008610bdc2989
|
refs/heads/master
| 2021-01-13T06:49:13.330337
| 2013-12-10T14:16:02
| 2013-12-10T14:16:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,818
|
java
|
package com.trovebox.android.app.common;
import java.util.ArrayList;
import java.util.List;
import android.os.Bundle;
import com.trovebox.android.app.bitmapfun.util.ImageWorker;
/**
* @author Eugene Popovich
*/
public abstract class CommonFragmentWithImageWorker extends CommonFragment {
protected ImageWorker mImageWorker;
protected List<ImageWorker> imageWorkers = new ArrayList<ImageWorker>();
protected abstract void initImageWorker();
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
initImageWorker();
imageWorkers.add(mImageWorker);
}
@Override
public void onDestroyView() {
super.onDestroyView();
clearImageWorkerCaches(true);
}
public void clearImageWorkerCaches(boolean memoryOnly) {
for (ImageWorker mImageWorker : imageWorkers)
{
if (mImageWorker != null && mImageWorker.getImageCache() != null)
{
mImageWorker.getImageCache().clearCaches(memoryOnly);
}
}
}
@Override
public void onResume()
{
super.onResume();
setImageWorkerExitTaskEarly(false);
}
@Override
public void onPause()
{
super.onPause();
setImageWorkerExitTaskEarly(true);
}
public void setImageWorkerExitTaskEarly(boolean exitTaskEarly) {
for (ImageWorker mImageWorker : imageWorkers)
{
if (mImageWorker != null)
{
mImageWorker.setExitTasksEarly(exitTaskEarly);
}
}
}
@Override
public void pageDeactivated() {
super.pageDeactivated();
clearImageWorkerCaches(true);
}
}
|
[
"httpdispatch@gmail.com"
] |
httpdispatch@gmail.com
|
124e552e085f41f9bffb0a9c097c5987b2462317
|
2c9e0541ed8a22bcdc81ae2f9610a118f62c4c4d
|
/harmony/tests/stress/qa/src/test/stress/org/apache/harmony/test/stress/classloader/share/CorrectClasses/testManyClasses_C37.java
|
bb22887b7f7cf719f1753a1cd91a1af742b2f98f
|
[
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] |
permissive
|
JetBrains/jdk8u_tests
|
774de7dffd513fd61458b4f7c26edd7924c7f1a5
|
263c74f1842954bae0b34ec3703ad35668b3ffa2
|
refs/heads/master
| 2023-08-07T17:57:58.511814
| 2017-03-20T08:13:25
| 2017-03-20T08:16:11
| 70,048,797
| 11
| 9
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,832
|
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.
*/
/**
* @author: Vera Y.Petrashkova
* @version: $revision$
*/
package org.apache.harmony.test.stress.classloader.share.CorrectClasses;
public class testManyClasses_C37 extends testManyClasses_CA {
protected static int cntClss = 0;
public static int PUBSTAT_F = 37;
protected int cntArObj;
testManyClasses_C37[] arObj;
public boolean initArObj(int cnt) {
cntArObj = -1;
arObj = new testManyClasses_C37[cnt];
for (int i = 0; i < cnt; i++) {
try {
arObj[i] = new testManyClasses_C37();
} catch (Throwable e) {
e.printStackTrace(System.out);
return false;
}
}
cntArObj = cnt;
return true;
}
public int getCntArObj() {
return cntArObj;
}
public testManyClasses_C37() {
super();
cntClss++;
}
public int getCntClss() {
return cntClss;
}
public int getPUBSTAT_F() {
return PUBSTAT_F;
}
}
|
[
"vitaly.provodin@jetbrains.com"
] |
vitaly.provodin@jetbrains.com
|
e69c5387e0440307960a1b5d80af6c71163cf515
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-13942-4-23-MOEAD-WeightedSum:TestLen:CallDiversity/org/xwiki/model/internal/reference/AbstractStringEntityReferenceResolver_ESTest_scaffolding.java
|
bc68b6086553e9cc0108195791b9db3bc898e6ad
|
[] |
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
| 3,062
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Tue Apr 07 16:20:09 UTC 2020
*/
package org.xwiki.model.internal.reference;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class AbstractStringEntityReferenceResolver_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.xwiki.model.internal.reference.AbstractStringEntityReferenceResolver";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(AbstractStringEntityReferenceResolver_ESTest_scaffolding.class.getClassLoader() ,
"org.xwiki.model.internal.reference.LocalizedStringEntityReferenceSerializer",
"org.xwiki.component.phase.Initializable",
"org.xwiki.model.internal.reference.AbstractStringEntityReferenceSerializer",
"org.xwiki.component.annotation.Component",
"org.xwiki.model.reference.EntityReference",
"org.xwiki.model.internal.reference.DefaultSymbolScheme$1",
"org.xwiki.model.internal.reference.SymbolScheme",
"org.xwiki.model.internal.reference.AbstractStringEntityReferenceResolver",
"org.xwiki.component.phase.InitializationException",
"org.xwiki.model.internal.reference.DefaultSymbolScheme",
"org.apache.commons.lang3.StringUtils",
"org.xwiki.model.reference.EntityReferenceResolver",
"org.xwiki.model.internal.reference.ExplicitStringEntityReferenceResolver",
"org.xwiki.model.internal.reference.DefaultStringEntityReferenceSerializer",
"org.xwiki.model.internal.reference.AbstractEntityReferenceResolver",
"org.xwiki.model.EntityType",
"org.xwiki.model.reference.EntityReferenceSerializer"
);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
4b1e4d68d7a247285b9cad5715fbb0905e87d78c
|
097df92ce1bfc8a354680725c7d10f0d109b5b7d
|
/com/amazon/ws/emr/hadoop/fs/shaded/com/google/protobuf/DescriptorProtos$ServiceOptions$1.java
|
81d0cb2e5894cfd0141625a1de897f94e273f21e
|
[] |
no_license
|
cozos/emrfs-hadoop
|
7a1a1221ffc3aa8c25b1067cf07d3b46e39ab47f
|
ba5dfa631029cb5baac2f2972d2fdaca18dac422
|
refs/heads/master
| 2022-10-14T15:03:51.500050
| 2022-10-06T05:38:49
| 2022-10-06T05:38:49
| 233,979,996
| 2
| 2
| null | 2022-10-06T05:41:46
| 2020-01-15T02:24:16
|
Java
|
UTF-8
|
Java
| false
| false
| 616
|
java
|
package com.amazon.ws.emr.hadoop.fs.shaded.com.google.protobuf;
final class DescriptorProtos$ServiceOptions$1
extends AbstractParser<DescriptorProtos.ServiceOptions>
{
public DescriptorProtos.ServiceOptions parsePartialFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
throws InvalidProtocolBufferException
{
return new DescriptorProtos.ServiceOptions(input, extensionRegistry, null);
}
}
/* Location:
* Qualified Name: com.amazon.ws.emr.hadoop.fs.shaded.com.google.protobuf.DescriptorProtos.ServiceOptions.1
* Java Class Version: 5 (49.0)
* JD-Core Version: 0.7.1
*/
|
[
"Arwin.tio@adroll.com"
] |
Arwin.tio@adroll.com
|
a7b27ba77e9e4fb740af8b0b02c6d5df9737bc86
|
d3975566e7aa79f7db824c290d62e778d3f26363
|
/sk.stuba.fiit.perconik.core.debug/src/sk/stuba/fiit/perconik/core/debug/DebugRegistrableProxy.java
|
ac6d1e72c0313f68993a6dc0991ded2418147108
|
[
"MIT"
] |
permissive
|
pruttned/perconik-ua-eclipse
|
15f780913b01effe2b2593bb884f04e4c6b3d0b1
|
b94d618e7d7693bc0ef65830f0c13f7537e364f3
|
refs/heads/master
| 2021-01-21T19:01:28.147299
| 2014-07-22T12:57:25
| 2014-07-22T12:57:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,038
|
java
|
package sk.stuba.fiit.perconik.core.debug;
import sk.stuba.fiit.perconik.core.Registrable;
import sk.stuba.fiit.perconik.core.debug.runtime.DebugConsole;
public abstract class DebugRegistrableProxy extends DebugObjectProxy implements DebugRegistrable
{
protected DebugRegistrableProxy(final DebugConsole console)
{
super(console);
}
@Override
public abstract Registrable delegate();
public final void preRegister()
{
this.put("Pre register %s ... ", this);
this.delegate().preRegister();
this.print("done");
}
public final void postRegister()
{
this.put("Post register %s ... ", this);
this.delegate().postRegister();
this.print("done");
}
public final void preUnregister()
{
this.put("Pre unregister %s ... ", this);
this.delegate().preUnregister();
this.print("done");
}
public final void postUnregister()
{
this.put("Post unregister %s ... ", this);
this.delegate().postUnregister();
this.print("done");
}
}
|
[
"pavol.zbell@gmail.com"
] |
pavol.zbell@gmail.com
|
801914f8f8e6b0636eb2edbe64c03c2baf89293b
|
0f93568373307c0b89492cf40e884fc45340bd7d
|
/we-web-parent/web-template/src/main/java/com/xiaoka/template/forms/UserUpdateForm.java
|
3001954b7a069974f8bd5a58373fb610f24b18c3
|
[] |
no_license
|
richardcjb/dubbo
|
4052a23e46ab2ad43b51412aeb63e707293f8f84
|
24dafc8d056f1bfd54334801b26de7f5b3a9e671
|
refs/heads/dubbo-dev
| 2021-01-20T03:29:23.085784
| 2017-04-28T07:27:20
| 2017-04-28T07:27:20
| 89,546,081
| 0
| 3
| null | 2017-04-28T07:27:20
| 2017-04-27T02:18:21
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 322
|
java
|
/**
* UserUpdateForm.java
* com.xiaoka.template.forms
* Copyright (c) 2016, 北京科技有限公司版权所有.
*/
package com.xiaoka.template.forms;
/**
* TODO(这里用一句话描述这个类的作用)
* @author 崔建斌
* @Date 2016年11月16日
*/
public class UserUpdateForm {
}
|
[
"Richardcjb@163.com"
] |
Richardcjb@163.com
|
fa089b3950563a2acd88bcd55020fb1866be234d
|
49b4cb79c910a17525b59d4b497a09fa28a9e3a8
|
/parserValidCheck/src/main/java/com/ke/css/cimp/ffr/ffr6/Rule_ALLOTMENT_IDENTIFICATION.java
|
af4d18ffbf3c0f6757969db3425efdf5147fb8dc
|
[] |
no_license
|
ganzijo/koreanair
|
a7d750b62cec2647bfb2bed4ca1bf8648d9a447d
|
e980fb11bc4b8defae62c9d88e5c70a659bef436
|
refs/heads/master
| 2021-04-26T22:04:17.478461
| 2018-03-06T05:59:32
| 2018-03-06T05:59:32
| 124,018,887
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,570
|
java
|
package com.ke.css.cimp.ffr.ffr6;
/* -----------------------------------------------------------------------------
* Rule_ALLOTMENT_IDENTIFICATION.java
* -----------------------------------------------------------------------------
*
* Producer : com.parse2.aparse.Parser 2.5
* Produced : Fri Feb 23 14:30:37 KST 2018
*
* -----------------------------------------------------------------------------
*/
import java.util.ArrayList;
final public class Rule_ALLOTMENT_IDENTIFICATION extends Rule
{
public Rule_ALLOTMENT_IDENTIFICATION(String spelling, ArrayList<Rule> rules)
{
super(spelling, rules);
}
public Object accept(Visitor visitor)
{
return visitor.visit(this);
}
public static Rule_ALLOTMENT_IDENTIFICATION parse(ParserContext context)
{
context.push("ALLOTMENT_IDENTIFICATION");
boolean parsed = true;
int s0 = context.index;
ParserAlternative a0 = new ParserAlternative(s0);
ArrayList<ParserAlternative> as1 = new ArrayList<ParserAlternative>();
parsed = false;
{
int s1 = context.index;
ParserAlternative a1 = new ParserAlternative(s1);
parsed = true;
if (parsed)
{
boolean f1 = true;
int c1 = 0;
for (int i1 = 0; i1 < 1 && f1; i1++)
{
Rule rule = Rule_Typ_Mixed.parse(context);
if ((f1 = rule != null))
{
a1.add(rule, context.index);
c1++;
}
}
for (int i1 = 1; i1 < 14 && f1; i1++)
{
Rule rule = Rule_Typ_Mixed.parse(context);
if ((f1 = rule != null))
{
a1.add(rule, context.index);
c1++;
}
}
parsed = c1 >= 1;
}
if (parsed)
{
as1.add(a1);
}
context.index = s1;
}
ParserAlternative b = ParserAlternative.getBest(as1);
parsed = b != null;
if (parsed)
{
a0.add(b.rules, b.end);
context.index = b.end;
}
Rule rule = null;
if (parsed)
{
rule = new Rule_ALLOTMENT_IDENTIFICATION(context.text.substring(a0.start, a0.end), a0.rules);
}
else
{
context.index = s0;
}
context.pop("ALLOTMENT_IDENTIFICATION", parsed);
return (Rule_ALLOTMENT_IDENTIFICATION)rule;
}
}
/* -----------------------------------------------------------------------------
* eof
* -----------------------------------------------------------------------------
*/
|
[
"wrjo@wrjo-PC"
] |
wrjo@wrjo-PC
|
aa7fd48ce8183f88debd16e5eb6b4ef4e06cb965
|
a33aac97878b2cb15677be26e308cbc46e2862d2
|
/data/libgdx/EdgeDetectionTest_calculateOffsets.java
|
f289bd211faa1655be180322550d3b07f8b148b2
|
[] |
no_license
|
GabeOchieng/ggnn.tensorflow
|
f5d7d0bca52258336fc12c9de6ae38223f28f786
|
7c62c0e8427bea6c8bec2cebf157b6f1ea70a213
|
refs/heads/master
| 2022-05-30T11:17:42.278048
| 2020-05-02T11:33:31
| 2020-05-02T11:33:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 328
|
java
|
private void calculateOffsets() {
int idx = 0;
for (int y = -1; y <= 1; y++) {
for (int x = -1; x <= 1; x++) {
offsets[idx++] = x / (float) Gdx.graphics.getWidth();
offsets[idx++] = y / (float) Gdx.graphics.getHeight();
}
}
System.out.println(Arrays.toString(offsets));
}
|
[
"bdqnghi@gmail.com"
] |
bdqnghi@gmail.com
|
66ed9ad394b8a3f0d1641a2f397497ada1af59b1
|
a97dbef836997be97cd66239849dc20aede91069
|
/lib_common/src/main/java/com/gykj/zhumulangma/common/mvvm/view/status/ErrorStatus.java
|
8631727d02f57dcf3a70a541d855008b1a2f8337
|
[
"Apache-2.0"
] |
permissive
|
shijunxing0130/Zhumulangma
|
f362971db7f239d4e8b213dd675a7595c669b07d
|
de6358e1da2d377b56ad3f4e2dc22b46ec6f618f
|
refs/heads/master
| 2020-08-27T00:33:05.710017
| 2019-11-11T08:04:30
| 2019-11-11T08:04:30
| 217,194,859
| 0
| 0
|
Apache-2.0
| 2019-11-11T08:04:31
| 2019-10-24T02:31:47
| null |
UTF-8
|
Java
| false
| false
| 397
|
java
|
package com.gykj.zhumulangma.common.mvvm.view.status;
import com.gykj.zhumulangma.common.R;
import com.kingja.loadsir.callback.Callback;
/**
* Author: Thomas.
* <br/>Date: 2019/7/22 10:46
* <br/>Email: 1071931588@qq.com
* <br/>Description:
*/
public class ErrorStatus extends Callback {
@Override
protected int onCreateView() {
return R.layout.common_layout_error;
}
}
|
[
"1071931588@qq.com"
] |
1071931588@qq.com
|
4178ad8708c4a2d332e77c2bef9c62f8c2866b13
|
6f8023f79dbd53cd027c397c9c448b2cff5352d8
|
/src/main/java/org/zgl/list/TxLinkedList.java
|
104b35aec54c7eb20eb7ce8c19048e433bde57ce
|
[] |
no_license
|
zglbig/room
|
0bc349b4611dabf9201d76612e66fd9c4a956e1c
|
2e07419fcb28607f38a324b3ecf8abff2fb28728
|
refs/heads/master
| 2020-03-19T01:39:15.208732
| 2018-06-29T01:46:22
| 2018-06-29T01:46:22
| 135,561,673
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,920
|
java
|
package org.zgl.list;
/**
* @作者: big
* @创建时间: 2018/5/28
* @文件描述:
*/
public class TxLinkedList {
private Node first;
private Node last;
private int size;
public void add(Object o) {
final Node l = last;
final Node newNode = new Node(l,o,null);
last = newNode;
if (l == null) {
first = newNode;
} else {
l.next = newNode;
}
size++;
}
public Object get(int index) {
return node(index).item;
}
private Node node(int index) {
//如果index小于容量长度除以2 也就是 size/2那么从前往后找
if (index < (size >> 1)) {
Node x = first;
for (int i = 0; i < index; i++)
x = x.next;
return x;
} else {
//否则从后往前找
Node x = last;
for (int i = size - 1; i > index; i--)
x = x.prev;
return x;
}
}
public Object remove(int index) {
Node temp = node(index);
return unlink(temp);
}
public boolean remove(Object o){
Node n = first;
while (true){
if(n == null)
return false;
if(o == null){
if(n.item == null){
unlink(n);
return true;
}
}
if(n.item.equals(o)) {
unlink(n);
return true;
}
n = n.next;
}
}
private Object unlink(Node x){
Node prev = x.prev;
Object obj = x.item;
Node next = x.next;
if(prev == null){
//删除的是第一个
first = next;
}else {
prev.next = next;
x.prev = null;
}
if(next == null){
//删除的是最后一个
last = prev;
}else {
next.prev = prev;
x.next = null;
}
x.item = null;
size--;
return obj;
}
public int getSize() {
return size;
}
private class Node {
Node prev;
Object item;
Node next;
public Node(Node prev, Object item, Node next) {
this.prev = prev;
this.item = item;
this.next = next;
}
}
public static void main(String[] args) {
TxLinkedList linkList = new TxLinkedList();
linkList.add("111");
linkList.add("66");
linkList.add("41");
linkList.add("133");
System.out.println(linkList.getSize());
System.out.println(linkList.get(2));
linkList.remove("11");
System.out.println(linkList.size);
System.out.println(linkList.get(2));
// LinkedList l = new LinkedList();
// l.add("3");
// l.remove("");
}
}
|
[
"1030681978@qq.com"
] |
1030681978@qq.com
|
855860a23ac73b9d497784c2c7d7f65e4798194c
|
531616d25dcdccb999fd9c465a641743a494fa3f
|
/easy-apollo-core/src/main/java/lucky/apollo/core/service/NamespaceBranchService.java
|
4d0b1c17ea71821fb7d0d8c2b54f5248b1c45ddb
|
[] |
no_license
|
Luckylau/easy-apollo
|
eb90bc4e3ce04485786f2f6ce78285da8c1b22b0
|
b72c49db5eef6ea6f256fc0329c3ed546617b83c
|
refs/heads/master
| 2022-06-28T04:26:12.390796
| 2022-03-06T15:46:57
| 2022-03-06T15:46:57
| 196,223,053
| 1
| 0
| null | 2022-06-21T01:26:25
| 2019-07-10T14:43:43
|
Java
|
UTF-8
|
Java
| false
| false
| 1,156
|
java
|
package lucky.apollo.core.service;
import lucky.apollo.core.entity.GrayReleaseRulePO;
import lucky.apollo.core.entity.NamespacePO;
/**
* @Author luckylau
* @Date 2019/9/19
*/
public interface NamespaceBranchService {
NamespacePO createBranch(String appId, String parentClusterName, String namespaceName, String operator);
NamespacePO findBranch(String appId, String parentClusterName, String namespaceName);
void updateBranchGrayRules(String appId, String clusterName, String namespaceName,
String branchName, GrayReleaseRulePO newRules);
GrayReleaseRulePO updateRulesReleaseId(String appId, String clusterName,
String namespaceName, String branchName,
long latestReleaseId, String operator);
void deleteBranch(String appId, String clusterName, String namespaceName,
String branchName, int branchStatus, String operator);
GrayReleaseRulePO findBranchGrayRules(String appId, String clusterName, String namespaceName,
String branchName);
}
|
[
"laujunbupt0203@163.com"
] |
laujunbupt0203@163.com
|
bb7b9ebbc5a58416e03c09b261750ce4a9caf3ad
|
0ea271177f5c42920ac53cd7f01f053dba5c14e4
|
/5.3.5/sources/com/google/android/gms/common/zzk.java
|
2a5268b96844693b29c854d29dc40a84caa78217
|
[] |
no_license
|
alireza-ebrahimi/telegram-talaeii
|
367a81a77f9bc447e729b2ca339f9512a4c2860e
|
68a67e6f104ab8a0888e63c605e8bbad12c4a20e
|
refs/heads/master
| 2020-03-21T13:44:29.008002
| 2018-12-09T10:30:29
| 2018-12-09T10:30:29
| 138,622,926
| 12
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 356
|
java
|
package com.google.android.gms.common;
import com.google.android.gms.common.internal.Hide;
@Hide
final class zzk {
static final zzh[] zzfrh = new zzh[]{new zzl(zzh.zzgf("0\u0004C0\u0003+ \u0003\u0002\u0001\u0002\u0002\t\u0000ÂàFdJ00")), new zzm(zzh.zzgf("0\u0004¨0\u0003 \u0003\u0002\u0001\u0002\u0002\t\u0000Õ
¸l}ÓNõ0"))};
}
|
[
"alireza.ebrahimi2006@gmail.com"
] |
alireza.ebrahimi2006@gmail.com
|
b8f1460e94db731aac30946e5bf61410897f1b84
|
dfe6c29915e5c54734c99d89d82ed86348568cc9
|
/src/main/java/competitiveProgramming/leetcode/phase1/RemoveRepeatingNumbers.java
|
cb0a920da77664a91c5f6ef961cf8a7c67c1f8b3
|
[] |
no_license
|
tans105/JavaProgramming
|
dffaf38f0dbe4ca269827d07a0240605993cf265
|
f508a5d217c8d21532df6b98125d28fd574666c6
|
refs/heads/master
| 2022-06-19T10:29:57.685980
| 2022-06-09T06:01:57
| 2022-06-09T06:01:57
| 70,312,438
| 3
| 0
| null | 2022-05-20T22:15:22
| 2016-10-08T07:21:03
|
Java
|
UTF-8
|
Java
| false
| false
| 1,145
|
java
|
package competitiveProgramming.leetcode.phase1;
import utils.ArrayUtils;
import java.util.ArrayList;
//https://leetcode.com/discuss/interview-question/309064/google-phone-interview-remove-repeating-numbers
public class RemoveRepeatingNumbers {
public static void main(String[] args) {
int[] arr = new int[]{3, 1, 2, 2, 2, 1, 1, 1, 2, 2, 3, 1, 1, 2, 2, 2, 1, 1, 1, 2, 3};
ArrayUtils.printArray(removeDuplicateOrderN(arr));
}
private static Object[] removeDuplicateOrderN(int[] arr) {
ArrayList<Integer> list = new ArrayList<>();
if (arr == null || arr.length == 0) {
return null;
}
int prev = -1;
int next = -1;
int curr = -1;
boolean checking = false;
for (int i = 0; i < arr.length - 1; i++) {
next = arr[i + 1];
curr = arr[i];
if (prev != arr[i]) {
if (arr[i] != next) {
list.add(curr);
}
}
prev = arr[i];
}
if (next != curr) {
list.add(next);
}
return list.toArray();
}
}
|
[
"tanmayawasthi105@gmail.com"
] |
tanmayawasthi105@gmail.com
|
e735d58e4c755fe7537516187efe005f2cb7fd2e
|
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
|
/methods/Method_10447.java
|
7cd19fd7a785e78bd4703b2005a80f3a2de010d4
|
[] |
no_license
|
P79N6A/icse_20_user_study
|
5b9c42c6384502fdc9588430899f257761f1f506
|
8a3676bc96059ea2c4f6d209016f5088a5628f3c
|
refs/heads/master
| 2020-06-24T08:25:22.606717
| 2019-07-25T15:31:16
| 2019-07-25T15:31:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,365
|
java
|
public static void initPointLine(String shapeStr,List<Gps> gpsList,GraphicsOverlay gLayerPos,PictureMarkerSymbol orginLocationSymbol,PictureMarkerSymbol finalLocationSymbol,PictureMarkerSymbol locationSymbol,GraphicsOverlay gLayerPosLine,MapView mMapView){
gLayerPosLine.getGraphics().clear();
gLayerPos.getGraphics().clear();
if (!RxDataTool.isNullString(shapeStr)) {
String shape=shapeStr;
if (shapeStr.contains("LINESTRING")) {
shape=shapeStr.substring(12,shapeStr.length() - 1);
}
if (!RxDataTool.isNullString(shape)) {
String[] arrayShape=shape.split(", ");
String[] originShape=arrayShape[0].split(" ");
Gps originGps=getGps(RxDataTool.stringToDouble(originShape[0]),RxDataTool.stringToDouble(originShape[1]),true);
Point mapOriginPoint=new Point(originGps.getLongitude(),originGps.getLatitude(),SpatialReference.create(4326));
Graphic graphic=new Graphic(mapOriginPoint,orginLocationSymbol);
gLayerPos.getGraphics().add(graphic);
String[] finalShape=arrayShape[arrayShape.length - 1].split(" ");
Gps finalGps=getGps(RxDataTool.stringToDouble(finalShape[0]),RxDataTool.stringToDouble(finalShape[1]),true);
Point mapFinalPoint=new Point(finalGps.getLongitude(),finalGps.getLatitude(),SpatialReference.create(4326));
Graphic graphicFinal=new Graphic(mapFinalPoint,finalLocationSymbol);
gLayerPos.getGraphics().add(graphicFinal);
String shapes=arrayShape[arrayShape.length / 2];
String[] currentPoint=shapes.split(" ");
Gps currentGps=getGps(RxDataTool.stringToDouble(currentPoint[0]),RxDataTool.stringToDouble(currentPoint[1]),true);
Point currentMapPoint=new Point(currentGps.getLongitude(),currentGps.getLatitude(),SpatialReference.create(4326));
mMapView.setViewpointCenterAsync(currentMapPoint,60000);
PolylineBuilder lineGeometry=new PolylineBuilder(SpatialReference.create(4326));
for (int i=0; i < arrayShape.length; i++) {
String str=arrayShape[i];
if (!RxDataTool.isNullString(str)) {
String[] arrayPoint=str.split(" ");
Gps gps=getGps(RxDataTool.stringToDouble(arrayPoint[0]),RxDataTool.stringToDouble(arrayPoint[1]),true);
if (gps != null) {
double locx=gps.getLongitude();
double locy=gps.getLatitude();
Point mapPoint=new Point(locx,locy);
if (i == 0) {
lineGeometry.addPoint(mapPoint);
}
else {
if (i == arrayShape.length - 1) {
lineGeometry.addPoint(mapPoint);
SimpleLineSymbol lineSymbol=new SimpleLineSymbol(SimpleLineSymbol.Style.SOLID,0xCC2196F3,5);
Graphic lineGraphic=new Graphic(lineGeometry.toGeometry());
SimpleRenderer lineRenderer=new SimpleRenderer(lineSymbol);
gLayerPosLine.setRenderer(lineRenderer);
gLayerPosLine.getGraphics().add(lineGraphic);
}
else {
lineGeometry.addPoint(mapPoint);
}
}
}
}
}
}
}
if (gpsList != null) {
for ( Gps gps : gpsList) {
Point mapPoint=new Point(gps.getLongitude(),gps.getLatitude(),SpatialReference.create(4326));
Graphic graphic=new Graphic(mapPoint,locationSymbol);
gLayerPos.getGraphics().add(graphic);
}
}
}
|
[
"sonnguyen@utdallas.edu"
] |
sonnguyen@utdallas.edu
|
9b613e6eec75829fc15534cf4dbbc7901e892d06
|
c37076ae3ed292263a23637157f122aeb78f0fb6
|
/ssi-cms/src/test/java/test/com/service/ArticleService.java
|
8a6bdc81c7d18f3734263e2e2838b86bfa559755
|
[] |
no_license
|
mo3athBaioud/bluestome
|
ad1b992775dcebcfc5ed81cfb49e7d29ef9e12fb
|
7de9ab0ad517f0e1da2a147e9079103824a99af3
|
refs/heads/master
| 2021-01-10T06:06:43.903950
| 2012-11-28T09:36:48
| 2012-11-28T09:36:48
| 43,675,743
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,817
|
java
|
package test.com.service;
import java.util.HashMap;
import java.util.List;
import org.junit.*;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.ssi.cms.web.service.IArticleService;
import com.ssi.common.dal.domain.Article;
import com.ssi.common.utils.JSONUtils;
public class ArticleService {
private IArticleService articleService;
@Before
public void init(){
ApplicationContext context = new ClassPathXmlApplicationContext("spring/applicationContext.xml");
articleService = (IArticleService)context.getBean("articleService");
}
@After
public void destory(){
if(null != articleService){
articleService = null;
}
}
public void findById(){
Article article = articleService.findById(15827);
if(null != article){
System.out.println("文章标题:"+article.getTitle());
System.out.println("文章地址:"+article.getArticleUrl());
System.out.println("网站名称:"+article.getWebsite().getName());
String json = JSONUtils.bean2Json(article);
System.out.println(" >> json:"+json);
}
}
@Test
public void find(){
HashMap map = new HashMap();
map.put("limit", 10);
map.put("offset", 10);
List<Article> list = articleService.find(map);
System.out.println(" >> 列表数量:"+list.size());
for(Article art:list){
System.out.println("ID:"+art.getId());
System.out.println("文章标题:"+art.getTitle());
System.out.println("文章地址:"+art.getArticleUrl());
}
}
public void insert(){
Article article = new Article();
article.setWebId(9);
article.setArticleUrl("none");
boolean result = articleService.insert(article);
System.out.println(" >> result:"+result);
}
}
|
[
"bluestomez@8d0e2b01-6282-6274-ba5d-974b8f8e99e7"
] |
bluestomez@8d0e2b01-6282-6274-ba5d-974b8f8e99e7
|
50f43f5deae703a70ce5b42ab6f8d9d1158de0e4
|
04b1803adb6653ecb7cb827c4f4aa616afacf629
|
/chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/LocationSettingsTestUtil.java
|
10e7f2066aff38d3d3d948fdeeb7d996bb5017f1
|
[
"BSD-3-Clause"
] |
permissive
|
Samsung/Castanets
|
240d9338e097b75b3f669604315b06f7cf129d64
|
4896f732fc747dfdcfcbac3d442f2d2d42df264a
|
refs/heads/castanets_76_dev
| 2023-08-31T09:01:04.744346
| 2021-07-30T04:56:25
| 2021-08-11T05:45:21
| 125,484,161
| 58
| 49
|
BSD-3-Clause
| 2022-10-16T19:31:26
| 2018-03-16T08:07:37
| null |
UTF-8
|
Java
| false
| false
| 1,135
|
java
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.test.util.browser;
import org.chromium.components.location.LocationUtils;
import org.chromium.content_public.browser.test.util.TestThreadUtils;
/**
* Methods for testing location-related features.
*/
public class LocationSettingsTestUtil {
/**
* Mocks the system location setting as either enabled or disabled. Can be called on any thread.
*/
public static void setSystemLocationSettingEnabled(final boolean enabled) {
TestThreadUtils.runOnUiThreadBlocking(() -> {
LocationUtils.setFactory(new LocationUtils.Factory() {
@Override
public LocationUtils create() {
return new LocationUtils() {
@Override
public boolean isSystemLocationSettingEnabled() {
return enabled;
}
};
}
});
});
}
}
|
[
"sunny.nam@samsung.com"
] |
sunny.nam@samsung.com
|
3473586d96b459a90d8091ab67fc62c99d249997
|
fac5d6126ab147e3197448d283f9a675733f3c34
|
/src/main/java/dji/midware/tlv/dataParser/DJIVideoPoolFlightAnalyticsPackDataParser.java
|
29070047d1c904f1a5df94d907881d88317f661d
|
[] |
no_license
|
KnzHz/fpv_live
|
412e1dc8ab511b1a5889c8714352e3a373cdae2f
|
7902f1a4834d581ee6afd0d17d87dc90424d3097
|
refs/heads/master
| 2022-12-18T18:15:39.101486
| 2020-09-24T19:42:03
| 2020-09-24T19:42:03
| 294,176,898
| 0
| 0
| null | 2020-09-09T17:03:58
| 2020-09-09T17:03:57
| null |
UTF-8
|
Java
| false
| false
| 2,985
|
java
|
package dji.midware.tlv.dataParser;
import dji.fieldAnnotation.EXClassNullAway;
import dji.midware.tlv.DJISTLVBasePack;
import dji.midware.tlv.DJIVideoPoolFlightAnalyticsPack;
import dji.midware.util.BytesUtil;
@EXClassNullAway
public class DJIVideoPoolFlightAnalyticsPackDataParser implements IDJISTLVPackDataParser {
public DJISTLVBasePack.DJISTLVBasePackData parse(byte[] data, int offset, int length) {
DJIVideoPoolFlightAnalyticsPack.DJIVideoPoolFlightAnalyticsPackData packData = new DJIVideoPoolFlightAnalyticsPack.DJIVideoPoolFlightAnalyticsPackData();
packData.caMediaTimeMs = BytesUtil.getInt(data, offset, 4);
int offset2 = offset + 4;
packData.normalizedSpeed = BytesUtil.getFloat(data, offset2, 4);
int offset3 = offset2 + 4;
packData.accl = BytesUtil.getFloat(data, offset3, 4);
int offset4 = offset3 + 4;
packData.jerk = BytesUtil.getFloat(data, offset4, 4);
int offset5 = offset4 + 4;
packData.cameraSpeedPitch = BytesUtil.getFloat(data, offset5, 4);
int offset6 = offset5 + 4;
packData.cameraSpeedYaw = BytesUtil.getFloat(data, offset6, 4);
packData.cameraSpeedRotate = BytesUtil.getFloat(data, offset6 + 4, 4);
return packData;
}
public byte[] serialize(DJISTLVBasePack.DJISTLVBasePackData data) {
byte[] bytes = new byte[length()];
if (data instanceof DJIVideoPoolFlightAnalyticsPack.DJIVideoPoolFlightAnalyticsPackData) {
DJIVideoPoolFlightAnalyticsPack.DJIVideoPoolFlightAnalyticsPackData packData = (DJIVideoPoolFlightAnalyticsPack.DJIVideoPoolFlightAnalyticsPackData) data;
byte[] caMediaTimeMs = BytesUtil.getBytes(packData.caMediaTimeMs);
byte[] normalizedSpeed = BytesUtil.getBytes(packData.normalizedSpeed);
byte[] accl = BytesUtil.getBytes(packData.accl);
byte[] jerk = BytesUtil.getBytes(packData.jerk);
byte[] cameraSpeedPitch = BytesUtil.getBytes(packData.cameraSpeedPitch);
byte[] cameraSpeedYaw = BytesUtil.getBytes(packData.cameraSpeedYaw);
byte[] cameraSpeedRotate = BytesUtil.getBytes(packData.cameraSpeedRotate);
BytesUtil.arraycopy(caMediaTimeMs, bytes, 0);
int offset = 0 + 4;
BytesUtil.arraycopy(normalizedSpeed, bytes, offset);
int offset2 = offset + 4;
BytesUtil.arraycopy(accl, bytes, offset2);
int offset3 = offset2 + 4;
BytesUtil.arraycopy(jerk, bytes, offset3);
int offset4 = offset3 + 4;
BytesUtil.arraycopy(cameraSpeedPitch, bytes, offset4);
int offset5 = offset4 + 4;
BytesUtil.arraycopy(cameraSpeedYaw, bytes, offset5);
BytesUtil.arraycopy(cameraSpeedRotate, bytes, offset5 + 4);
}
return bytes;
}
public int length() {
return new DJIVideoPoolFlightAnalyticsPack.DJIVideoPoolFlightAnalyticsPackData().length();
}
}
|
[
"michael@districtrace.com"
] |
michael@districtrace.com
|
07f5cc228197df7d5d363a5972bba9e46c6f1c35
|
e977c424543422f49a25695665eb85bfc0700784
|
/benchmark/icse15/149725/buggy-version/lucene/java/trunk/src/java/org/apache/lucene/analysis/de/GermanStemFilter.java
|
19bc6fb9f0baeec031c5c7991483d3702346bf88
|
[] |
no_license
|
amir9979/pattern-detector-experiment
|
17fcb8934cef379fb96002450d11fac62e002dd3
|
db67691e536e1550245e76d7d1c8dced181df496
|
refs/heads/master
| 2022-02-18T10:24:32.235975
| 2019-09-13T15:42:55
| 2019-09-13T15:42:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,931
|
java
|
package org.apache.lucene.analysis.de;
import org.apache.lucene.analysis.Token;
import org.apache.lucene.analysis.TokenFilter;
import org.apache.lucene.analysis.TokenStream;
import java.io.IOException;
import java.util.Hashtable;
/**
* A filter that stemms german words. It supports a table of words that should
* not be stemmed at all. The used stemmer can be changed at runtime after the
* filter object is created (as long as it is a GermanStemmer).
*
* @author Gerhard Schwarz
* @version $Id$
*/
public final class GermanStemFilter extends TokenFilter {
/**
* The actual token in the input stream.
*/
private Token token = null;
private GermanStemmer stemmer = null;
private Hashtable exclusions = null;
public GermanStemFilter( TokenStream in ) {
stemmer = new GermanStemmer();
input = in;
}
/**
* Builds a GermanStemFilter that uses an exclusiontable.
*/
public GermanStemFilter( TokenStream in, Hashtable exclusiontable ) {
this( in );
exclusions = exclusiontable;
}
/**
* @return Returns the next token in the stream, or null at EOS
*/
public final Token next()
throws IOException {
if ( ( token = input.next() ) == null ) {
return null;
}
// Check the exclusiontable
else if ( exclusions != null && exclusions.contains( token.termText() ) ) {
return token;
}
else {
String s = stemmer.stem( token.termText() );
// If not stemmed, dont waste the time creating a new token
if ( !s.equals( token.termText() ) ) {
return new Token( s, 0, s.length(), token.type() );
}
return token;
}
}
/**
* Set a alternative/custom GermanStemmer for this filter.
*/
public void setStemmer( GermanStemmer stemmer ) {
if ( stemmer != null ) {
this.stemmer = stemmer;
}
}
/**
* Set an alternative exclusion list for this filter.
*/
public void setExclusionTable( Hashtable exclusiontable ) {
exclusions = exclusiontable;
}
}
|
[
"durieuxthomas@hotmail.com"
] |
durieuxthomas@hotmail.com
|
bf1982eb6785cda96a80ac9fc0e4299ff166df38
|
0c993ac3c8ac60aa0765561530959feb9847c0a3
|
/StarGame/core/src/ru/geekbrains/sprite/ButtonPlay.java
|
1c8d8aba5f75832c82857bfc3ab4072f67d3cf14
|
[] |
no_license
|
D1mkaGit/GeekBrains
|
0b96bb871b70708e6ad3f8f7ca74ad3908d9205e
|
a638f697e3380c2c1461156fa8b8153f825f220e
|
refs/heads/master
| 2023-04-06T06:47:20.423827
| 2022-12-25T19:31:18
| 2022-12-25T19:31:18
| 221,762,240
| 1
| 1
| null | 2023-03-24T01:17:50
| 2019-11-14T18:30:42
|
Java
|
UTF-8
|
Java
| false
| false
| 779
|
java
|
package ru.geekbrains.sprite;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import ru.geekbrains.base.ScaledButton;
import ru.geekbrains.math.Rect;
import ru.geekbrains.screen.GameScreen;
public class ButtonPlay extends ScaledButton {
private static final float PADDING = 0.05f;
private final Game game;
public ButtonPlay(TextureAtlas atlas, Game game) {
super(atlas.findRegion("btPlay"));
this.game = game;
}
@Override
public void resize(Rect worldBounds) {
setHeightProportion(0.26f);
setLeft(worldBounds.getLeft() + PADDING);
setBottom(worldBounds.getBottom() + PADDING);
}
@Override
public void action() {
game.setScreen(new GameScreen());
}
}
|
[
"30922998+D1mkaGit@users.noreply.github.com"
] |
30922998+D1mkaGit@users.noreply.github.com
|
4c1e4dc69273f3a5d5d7d5d77c8872fb805f97d0
|
6092cbae5816a60b8124bb1921e6a90d7c7c8279
|
/java01/src/step33/exam11/MemberDao.java
|
94e83f6315c2c737d3cb912b87ed5f57f6546c4e
|
[] |
no_license
|
kyeonghunmin/mkh
|
847326c0effa8ec85a7e90554beee74eac9c854c
|
5e4fd583d889205654fc6cfc41db37430b6a3173
|
refs/heads/master
| 2020-12-24T20:14:33.579384
| 2016-05-12T08:30:23
| 2016-05-12T08:30:23
| 56,681,395
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,881
|
java
|
package step33.exam11;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
@Repository // DAO 처럼 데이터를 처리하는 객체에 붙인다.
public class MemberDao {
@Autowired
SqlSessionFactory sqlSessionFactory;
@Override
public String toString() {
return "MemberDao [sqlSessionFactory=" + sqlSessionFactory + "]";
}
public List<Member> selectList() throws Exception {
SqlSession sqlSession = sqlSessionFactory.openSession();
try {
return sqlSession.selectList("MemberDao.selectList");
} finally {
sqlSession.close();
}
}
public int insert(Member member) throws Exception {
SqlSession sqlSession = sqlSessionFactory.openSession(true);
// true로 설정하면 insert 수행시 바로 commit 된다.
// true로 설정하지 않으면, 자동 commit이 되지 않기 때문에
// Temp 테이블에만 남아있고, 실제 테이블에 적용되지 않는다.
try {
return sqlSession.insert("MemberDao.insert", member);
// "namespace.id", member
} finally {
sqlSession.close();
}
}
public int update(Member member) throws Exception {
SqlSession sqlSession = sqlSessionFactory.openSession();
try {
int count = sqlSession.update("MemberDao.update", member);
sqlSession.commit();
return count;
} finally {
sqlSession.close();
}
}
public int delete(int no) throws Exception {
SqlSession sqlSession = sqlSessionFactory.openSession();
try {
int count = sqlSession.delete("MemberDao.delete", no);
sqlSession.commit();
return count;
} finally {
sqlSession.close();
}
}
}
|
[
"alsrudgns88@naver.com"
] |
alsrudgns88@naver.com
|
b2b5eb5d3237cb66c494dd150533f3eb6ea72483
|
ae5eb1a38b4d22c82dfd67c86db73592094edc4b
|
/project12/src/test/java/org/gradle/test/performance/largejavamultiproject/project12/p63/Test1279.java
|
c1fe49f2274f3064a736a4eed8535539e340b751
|
[] |
no_license
|
big-guy/largeJavaMultiProject
|
405cc7f55301e1fd87cee5878a165ec5d4a071aa
|
1cd6a3f9c59e9b13dffa35ad27d911114f253c33
|
refs/heads/main
| 2023-03-17T10:59:53.226128
| 2021-03-04T01:01:39
| 2021-03-04T01:01:39
| 344,307,977
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,870
|
java
|
package org.gradle.test.performance.largejavamultiproject.project12.p63;
import org.gradle.test.performance.largejavamultiproject.project12.p62.Production1252;
import org.gradle.test.performance.largejavamultiproject.project3.p17.Production352;
import org.gradle.test.performance.largejavamultiproject.project0.p2.Production52;
import org.gradle.test.performance.largejavamultiproject.project3.p18.Production365;
import org.gradle.test.performance.largejavamultiproject.project0.p3.Production65;
import org.gradle.test.performance.largejavamultiproject.project3.p18.Production378;
import org.gradle.test.performance.largejavamultiproject.project0.p3.Production78;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test1279 {
Production1279 objectUnderTest = new Production1279();
@Test
public void testProperty0() {
Production1252 value = new Production1252();
objectUnderTest.setProperty0(value);
assertEquals(value, objectUnderTest.getProperty0());
}
@Test
public void testProperty1() {
Production1265 value = new Production1265();
objectUnderTest.setProperty1(value);
assertEquals(value, objectUnderTest.getProperty1());
}
@Test
public void testProperty2() {
Production1278 value = new Production1278();
objectUnderTest.setProperty2(value);
assertEquals(value, objectUnderTest.getProperty2());
}
@Test
public void testProperty3() {
Production352 value = new Production352();
objectUnderTest.setProperty3(value);
assertEquals(value, objectUnderTest.getProperty3());
}
@Test
public void testProperty4() {
Production52 value = new Production52();
objectUnderTest.setProperty4(value);
assertEquals(value, objectUnderTest.getProperty4());
}
@Test
public void testProperty5() {
Production365 value = new Production365();
objectUnderTest.setProperty5(value);
assertEquals(value, objectUnderTest.getProperty5());
}
@Test
public void testProperty6() {
Production65 value = new Production65();
objectUnderTest.setProperty6(value);
assertEquals(value, objectUnderTest.getProperty6());
}
@Test
public void testProperty7() {
Production378 value = new Production378();
objectUnderTest.setProperty7(value);
assertEquals(value, objectUnderTest.getProperty7());
}
@Test
public void testProperty8() {
Production78 value = new Production78();
objectUnderTest.setProperty8(value);
assertEquals(value, objectUnderTest.getProperty8());
}
@Test
public void testProperty9() {
String value = "value";
objectUnderTest.setProperty9(value);
assertEquals(value, objectUnderTest.getProperty9());
}
}
|
[
"sterling.greene@gmail.com"
] |
sterling.greene@gmail.com
|
f023e5b4426cb5b2090ff80d1388ed8daad81c84
|
450e2d61c33a71d3bb02ded3c0aae802789380ea
|
/compare-comply/src/main/java/com/ibm/watson/compare_comply/v1/model/ExtractTablesOptions.java
|
0136e3e90d2820884d3df8980e6b9ca4f717fe3e
|
[
"Apache-2.0"
] |
permissive
|
TakahiroSakuda/java-sdk
|
da7a3f6ecbe3576b4272a2072b6fc6610b3e29e2
|
0dfa433830f773aed47eb5f29a6119f6fa29d730
|
refs/heads/master
| 2020-06-03T23:27:58.313077
| 2019-06-12T20:19:19
| 2019-06-12T20:19:19
| 191,757,882
| 0
| 0
|
Apache-2.0
| 2019-06-13T12:22:34
| 2019-06-13T12:22:33
| null |
UTF-8
|
Java
| false
| false
| 4,664
|
java
|
/*
* Copyright 2018 IBM Corp. 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.ibm.watson.compare_comply.v1.model;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import com.ibm.cloud.sdk.core.service.model.GenericModel;
import com.ibm.cloud.sdk.core.util.Validator;
/**
* The extractTables options.
*/
public class ExtractTablesOptions extends GenericModel {
/**
* The analysis model to be used by the service. For the **Element classification** and **Compare two documents**
* methods, the default is `contracts`. For the **Extract tables** method, the default is `tables`. These defaults
* apply to the standalone methods as well as to the methods' use in batch-processing requests.
*/
public interface Model {
/** contracts. */
String CONTRACTS = "contracts";
/** tables. */
String TABLES = "tables";
}
private InputStream file;
private String fileContentType;
private String model;
/**
* Builder.
*/
public static class Builder {
private InputStream file;
private String fileContentType;
private String model;
private Builder(ExtractTablesOptions extractTablesOptions) {
this.file = extractTablesOptions.file;
this.fileContentType = extractTablesOptions.fileContentType;
this.model = extractTablesOptions.model;
}
/**
* Instantiates a new builder.
*/
public Builder() {
}
/**
* Instantiates a new builder with required properties.
*
* @param file the file
*/
public Builder(InputStream file) {
this.file = file;
}
/**
* Builds a ExtractTablesOptions.
*
* @return the extractTablesOptions
*/
public ExtractTablesOptions build() {
return new ExtractTablesOptions(this);
}
/**
* Set the file.
*
* @param file the file
* @return the ExtractTablesOptions builder
*/
public Builder file(InputStream file) {
this.file = file;
return this;
}
/**
* Set the fileContentType.
*
* @param fileContentType the fileContentType
* @return the ExtractTablesOptions builder
*/
public Builder fileContentType(String fileContentType) {
this.fileContentType = fileContentType;
return this;
}
/**
* Set the model.
*
* @param model the model
* @return the ExtractTablesOptions builder
*/
public Builder model(String model) {
this.model = model;
return this;
}
/**
* Set the file.
*
* @param file the file
* @return the ExtractTablesOptions builder
*
* @throws FileNotFoundException if the file could not be found
*/
public Builder file(File file) throws FileNotFoundException {
this.file = new FileInputStream(file);
return this;
}
}
private ExtractTablesOptions(Builder builder) {
Validator.notNull(builder.file, "file cannot be null");
file = builder.file;
fileContentType = builder.fileContentType;
model = builder.model;
}
/**
* New builder.
*
* @return a ExtractTablesOptions builder
*/
public Builder newBuilder() {
return new Builder(this);
}
/**
* Gets the file.
*
* The document on which to run table extraction.
*
* @return the file
*/
public InputStream file() {
return file;
}
/**
* Gets the fileContentType.
*
* The content type of file. Values for this parameter can be obtained from the HttpMediaType class.
*
* @return the fileContentType
*/
public String fileContentType() {
return fileContentType;
}
/**
* Gets the model.
*
* The analysis model to be used by the service. For the **Element classification** and **Compare two documents**
* methods, the default is `contracts`. For the **Extract tables** method, the default is `tables`. These defaults
* apply to the standalone methods as well as to the methods' use in batch-processing requests.
*
* @return the model
*/
public String model() {
return model;
}
}
|
[
"loganpatino10@gmail.com"
] |
loganpatino10@gmail.com
|
4ffeb04732564e71bad1afdfcda5ee85a2b99a98
|
c8d30ad8c0fba7afde49bf13a28c802bd94bf5b9
|
/z-view/src/main/java/sam/backup/manager/view/ButtonAction.java
|
8c2235ca6c8b70fec6a2b5e2dd9ea7eba07df78e
|
[] |
no_license
|
sameerveda/new-backup-manager
|
d016ab1a39821e19b12665fc70599be4a5e74ad3
|
37108cc1adf83e8ba98c54e0f390df18d3878413
|
refs/heads/master
| 2021-02-08T10:42:16.241353
| 2020-03-01T12:15:27
| 2020-03-01T12:15:27
| 244,143,378
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 128
|
java
|
package sam.backup.manager.view;
@FunctionalInterface
public interface ButtonAction {
public void handle(ButtonType type);
}
|
[
"naaspati@gmail.com"
] |
naaspati@gmail.com
|
84460b5fd47370c431037e6ca4f3db459374f6a1
|
f39e023550f92c1622d07fd4824c6a744a547bdc
|
/src/main/java/com/cnuip/pmes2/controller/api/EnterpriseRequirementController.java
|
b589387ab1cb393493b5135f21230447c9a75272
|
[] |
no_license
|
yuervsxiami/pmes
|
9a71d5a224df772740cca5ecb840070e5f7e395c
|
d2c0a5257d9ba383653f145aea6282c3620348c8
|
refs/heads/master
| 2022-10-08T03:09:12.195457
| 2019-05-29T06:59:21
| 2019-05-29T06:59:31
| 189,168,009
| 1
| 1
| null | 2022-10-05T19:27:04
| 2019-05-29T06:55:49
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 5,331
|
java
|
package com.cnuip.pmes2.controller.api;
import com.cnuip.pmes2.constant.Workflows;
import com.cnuip.pmes2.controller.api.response.ApiResponse;
import com.cnuip.pmes2.domain.core.Enterprise;
import com.cnuip.pmes2.domain.core.EnterpriseRequirement;
import com.cnuip.pmes2.domain.core.ProcessOrder;
import com.cnuip.pmes2.domain.core.User;
import com.cnuip.pmes2.exception.BussinessLogicException;
import com.cnuip.pmes2.exception.ProcessOrderException;
import com.cnuip.pmes2.service.EnterpriseRequirementService;
import com.cnuip.pmes2.service.ProcessOrderService;
import com.cnuip.pmes2.service.ProcessService;
import com.cnuip.pmes2.util.UserUtil;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* EnterpriseRequirementController
*
* @author: xiongwei
* Date: 2018/2/6 上午10:11
*/
@RestController
@RequestMapping("/api/requirement")
public class EnterpriseRequirementController extends BussinessLogicExceptionHandler {
@Autowired
private EnterpriseRequirementService enterpriseRequirementService;
@Autowired
private ProcessService processService;
@Autowired
private ProcessOrderService processOrderService;
/**
* 搜索企业需求信息
* @param requirement
* @return
*/
@RequestMapping(value = "/", method = RequestMethod.GET)
public ApiResponse<PageInfo<EnterpriseRequirement>> search(EnterpriseRequirement requirement) {
ApiResponse<PageInfo<EnterpriseRequirement>> resp = new ApiResponse<>();
// 默认的分页参数
if (requirement.getPageNum() == null) {
requirement.setPageNum(1);
}
if (requirement.getPageSize() == null) {
requirement.setPageSize(10);
}
Page<EnterpriseRequirement> page = (Page<EnterpriseRequirement>) this.enterpriseRequirementService.find(requirement);
resp.setResult(page.toPageInfo());
return resp;
}
/**
* 新增企业需求
* @param requirement
* @return
* @throws BussinessLogicException
*/
@RequestMapping(value = "/", method = RequestMethod.PUT)
public ApiResponse<EnterpriseRequirement> save(@RequestBody EnterpriseRequirement requirement) throws BussinessLogicException {
ApiResponse<EnterpriseRequirement> resp = new ApiResponse<>();
resp.setResult(this.enterpriseRequirementService.save(requirement));
return resp;
}
/**
* 更新企业需求
* @param requirement
* @return
* @throws BussinessLogicException
*/
@RequestMapping(value = "/", method = RequestMethod.POST)
public ApiResponse<EnterpriseRequirement> update(@RequestBody EnterpriseRequirement requirement) throws BussinessLogicException {
ApiResponse<EnterpriseRequirement> resp = new ApiResponse<>();
User user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
if (user != null) {
requirement.setUserId(user.getId());
}
resp.setResult(this.enterpriseRequirementService.update(requirement));
return resp;
}
/**
* 删除企业需求
* @param requirement
* @return
* @throws BussinessLogicException
*/
@RequestMapping(value = "/", method = RequestMethod.DELETE)
public ApiResponse<Integer> delete(EnterpriseRequirement requirement) throws BussinessLogicException {
ApiResponse<Integer> resp = new ApiResponse<>();
resp.setResult(this.enterpriseRequirementService.delete(requirement));
return resp;
}
/**
* 企业需求详情
* @param erid
* @return
*/
@RequestMapping("/{erid}")
public ApiResponse<EnterpriseRequirement> detail(@PathVariable("erid") Long erid) {
ApiResponse<EnterpriseRequirement> resp = new ApiResponse<>();
resp.setResult(this.enterpriseRequirementService.findById(erid));
return resp;
}
/**
* 启动流程
*/
@RequestMapping(value = "/start/process/{instanceType}/{processType}", method = RequestMethod.POST)
public ApiResponse<String> process(@PathVariable Integer instanceType, @PathVariable Integer processType, @RequestBody List<EnterpriseRequirement> enterpriseRequirements) throws ProcessOrderException {
ApiResponse<String> resp = new ApiResponse<>();
User user = UserUtil.getUser(SecurityContextHolder.getContext().getAuthentication());
for (EnterpriseRequirement er : enterpriseRequirements) {
ProcessOrder processOrder = new ProcessOrder();
processOrder.setInstanceId(er.getId());
processOrder.setInstanceType(instanceType);
processOrder.setProcessType(processType);
processOrder.setProcessCnfId(processService.getLastProcessCnfIdByType(processOrder.getProcessType()));
processOrderService.startProcess(processOrder, user);
}
resp.setResult("流程启动成功!");
return resp;
}
}
|
[
"15951766580@139.com"
] |
15951766580@139.com
|
ffe32150c24a1b5b6aa4edacd986cb242b41c249
|
4dac1d78cbd6306992b006b63c187705e8c1a367
|
/src/main/java/com/qz/zframe/material/entity/DamagedAuditDetail.java
|
82bde3b08b99929ec513d3429985be54537e7461
|
[] |
no_license
|
mituhi/hsfd
|
5c4e453a5027a58dfdcb4813d5090f50738a1ecb
|
0b0c051f936c2a0b5aa3c7498715b296d3e0e0c3
|
refs/heads/master
| 2020-08-19T14:33:09.115891
| 2019-01-17T08:23:28
| 2019-01-17T08:23:28
| 215,927,807
| 0
| 2
| null | 2019-11-07T07:00:10
| 2019-10-18T02:46:07
| null |
UTF-8
|
Java
| false
| false
| 4,413
|
java
|
package com.qz.zframe.material.entity;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
public class DamagedAuditDetail implements Serializable {
private static final long serialVersionUID = -4681814524155709271L;
@ApiModelProperty(name="damagedAuditDetailId",value="损坏件审核详情id",required=true)
private String damagedAuditDetailId;
@ApiModelProperty(name="damagedAuditId",value="损坏件审核id",required=true)
private String damagedAuditId;
@ApiModelProperty(name="damagedPartsDetailId",value="损坏件详情id",required=true)
private String damagedPartsDetailId;
@ApiModelProperty(name="auditStatus",value="审核状态,01送出维修,02报废",required=true)
private String auditStatus;
@ApiModelProperty(name="auditNum",value="审核数量",required=false)
private Integer auditNum;
@ApiModelProperty(name="remark",value="备注",required=false)
private String remark;
@ApiModelProperty(name="materialCode",value="物资编码",required=false)
private String materialCode;
@ApiModelProperty(name="materialName",value="物资名称",required=false)
private String materialName;
@ApiModelProperty(name="specifications",value="规格型号",required=false)
private String specifications;
@ApiModelProperty(name="measuringUnit",value="计量单位id",required=false)
private String measuringUnit;
@ApiModelProperty(name="measuringUnitName",value="计量单位名称",required=false)
private String measuringUnitName;
@ApiModelProperty(name="materialId",value="物资id",required=true)
private String materialId;
@ApiModelProperty(name="storageNum",value="物资数量",required=true)
private Integer storageNum;
@ApiModelProperty(name="status",value="状态,01报废,02待核定,03送出维修",required=true)
private String status;
public String getDamagedAuditDetailId() {
return damagedAuditDetailId;
}
public void setDamagedAuditDetailId(String damagedAuditDetailId) {
this.damagedAuditDetailId = damagedAuditDetailId == null ? null : damagedAuditDetailId.trim();
}
public String getDamagedAuditId() {
return damagedAuditId;
}
public void setDamagedAuditId(String damagedAuditId) {
this.damagedAuditId = damagedAuditId == null ? null : damagedAuditId.trim();
}
public String getDamagedPartsDetailId() {
return damagedPartsDetailId;
}
public void setDamagedPartsDetailId(String damagedPartsDetailId) {
this.damagedPartsDetailId = damagedPartsDetailId == null ? null : damagedPartsDetailId.trim();
}
public String getAuditStatus() {
return auditStatus;
}
public void setAuditStatus(String auditStatus) {
this.auditStatus = auditStatus == null ? null : auditStatus.trim();
}
public Integer getAuditNum() {
return auditNum;
}
public void setAuditNum(Integer auditNum) {
this.auditNum = auditNum;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public String getMaterialCode() {
return materialCode;
}
public void setMaterialCode(String materialCode) {
this.materialCode = materialCode;
}
public String getMaterialName() {
return materialName;
}
public void setMaterialName(String materialName) {
this.materialName = materialName;
}
public String getSpecifications() {
return specifications;
}
public void setSpecifications(String specifications) {
this.specifications = specifications;
}
public String getMeasuringUnit() {
return measuringUnit;
}
public void setMeasuringUnit(String measuringUnit) {
this.measuringUnit = measuringUnit;
}
public String getMaterialId() {
return materialId;
}
public void setMaterialId(String materialId) {
this.materialId = materialId;
}
public Integer getStorageNum() {
return storageNum;
}
public void setStorageNum(Integer storageNum) {
this.storageNum = storageNum;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getMeasuringUnitName() {
return measuringUnitName;
}
public void setMeasuringUnitName(String measuringUnitName) {
this.measuringUnitName = measuringUnitName;
}
}
|
[
"454768497@qq.com"
] |
454768497@qq.com
|
84c3597a71490e5d81b668d4ea7fbd4a4fae2d06
|
f8d5139dc5150a98481532470dd52aac15e2da98
|
/requery/src/main/java/io/requery/sql/LoggingListener.java
|
e3dad29419f74b63b9429c762b7ab437aca6462b
|
[
"Apache-2.0"
] |
permissive
|
bazted/requery
|
e2cae9da699be28584729ccd98d92c3849341b4c
|
df5fd4c89f6d0718b9629f6007b9ae1ed31c3916
|
refs/heads/master
| 2021-01-12T14:48:27.604859
| 2017-01-03T04:07:20
| 2017-01-03T04:07:20
| 72,095,715
| 1
| 0
| null | 2016-10-27T10:03:32
| 2016-10-27T10:03:30
| null |
UTF-8
|
Java
| false
| false
| 2,932
|
java
|
/*
* Copyright 2016 requery.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.requery.sql;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
class LoggingListener<T> implements EntityStateListener<T>, StatementListener {
private final Logger log;
private final Level level;
public LoggingListener() {
this(Logger.getLogger("requery"), Level.INFO);
}
public LoggingListener(Logger log, Level level) {
this.log = log;
this.level = level;
}
@Override
public void postLoad(T entity) {
log.log(level, "postLoad {0}", entity);
}
@Override
public void postInsert(T entity) {
log.log(level, "postInsert {0}", entity);
}
@Override
public void postDelete(T entity) {
log.log(level, "postDelete {0}", entity);
}
@Override
public void postUpdate(T entity) {
log.log(level, "postUpdate {0}", entity);
}
@Override
public void preInsert(T entity) {
log.log(level, "preInsert {0}", entity);
}
@Override
public void preDelete(T entity) {
log.log(level, "preDelete {0}", entity);
}
@Override
public void preUpdate(T entity) {
log.log(level, "preUpdate {0}", entity);
}
@Override
public void beforeExecuteUpdate(Statement statement, String sql, BoundParameters parameters) {
if (parameters != null && !parameters.isEmpty()) {
log.log(level, "beforeExecuteUpdate {0} sql:\n{1} \n({2})",
new Object[]{statement, sql, parameters});
} else {
log.log(level, "beforeExecuteUpdate {0} sql:\n{1}", new Object[]{statement, sql});
}
}
@Override
public void afterExecuteUpdate(Statement statement) {
log.log(level, "afterExecuteUpdate");
}
@Override
public void beforeExecuteQuery(Statement statement, String sql, BoundParameters parameters) {
if (parameters != null && !parameters.isEmpty()) {
log.log(level, "beforeExecuteQuery {0} sql:\n{1} \n({2})",
new Object[]{statement, sql, parameters});
} else {
log.log(level, "beforeExecuteQuery {0} sql:\n{1}", new Object[]{statement, sql});
}
}
@Override
public void afterExecuteQuery(Statement statement) {
log.log(level, "afterExecuteQuery");
}
}
|
[
"npurushe@gmail.com"
] |
npurushe@gmail.com
|
3a50c9bcd2bddd97fd98b1e5da0b6c9eda1e7200
|
513978f9dbd7a4f975a3d3a98d640af1490f916d
|
/ams/ams-facade/src/main/java/com/zb/fincore/ams/facade/dto/req/QueryAssetContractListRequest.java
|
92bffec266445e437dbd90ac3f9a3318e698eece
|
[] |
no_license
|
happyjianguo/fincore
|
b1d0eb43c3a69ce63435c53dd2283b5ca4bf3555
|
e01742310a3cc796a760dfa3f7469398e8b07f41
|
refs/heads/master
| 2020-07-14T20:37:35.028805
| 2019-03-26T02:06:08
| 2019-03-26T02:06:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,037
|
java
|
package com.zb.fincore.ams.facade.dto.req;
import com.zb.fincore.ams.common.dto.BaseRequest;
import org.hibernate.validator.constraints.NotBlank;
import java.util.List;
/**
* 功能: 批量创建底层资产请求
* 创建: liuchongguang - liuchongguang@zillionfortune.com
* 日期: 2017/4/25 0025 18:08
* 版本: V1.0
*/
public class QueryAssetContractListRequest extends BaseRequest {
/**
* SerialVersionUID
*/
private static final long serialVersionUID = -5486469235289279150L;
/**
* 资产编码
*/
@NotBlank(message = "资产编码不能为空")
private String assetCode;
/**
* 模板编码
*/
private String templateCode;
public String getAssetCode() {
return assetCode;
}
public void setAssetCode(String assetCode) {
this.assetCode = assetCode;
}
public String getTemplateCode() {
return templateCode;
}
public void setTemplateCode(String templateCode) {
this.templateCode = templateCode;
}
}
|
[
"kaiyun@zillionfortune.com"
] |
kaiyun@zillionfortune.com
|
458d451e65f3237a142c88ac993ed691f0c1ebf1
|
4c561cb446ad1abac394e27fdfc84c690f8e6f4c
|
/edu/cmu/cs/stage3/alice/core/question/IsNarrowerThan.java
|
fc2727a279f48c790fd0c0386db6844f9ac032dc
|
[] |
no_license
|
gomson/alice_source_re
|
c46b2192cff35ad2c019e93814dbfffa3ea22b2c
|
72ff8250deec06e09c79bb42e23a067469e3bccb
|
refs/heads/master
| 2020-03-21T11:29:54.523869
| 2017-05-12T03:53:51
| 2017-05-12T03:53:51
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 664
|
java
|
package edu.cmu.cs.stage3.alice.core.question;
import edu.cmu.cs.stage3.alice.core.Transformable;
public class IsNarrowerThan
extends SubjectObjectQuestion
{
public IsNarrowerThan() {}
private static Class[] s_supportedCoercionClasses = { IsWiderThan.class };
public Class[] getSupportedCoercionClasses() {
return s_supportedCoercionClasses;
}
public Class getValueClass() {
return Boolean.class;
}
protected Object getValue(Transformable subjectValue, Transformable objectValue) {
if (subjectValue.getWidth() < objectValue.getWidth()) {
return Boolean.TRUE;
}
return Boolean.FALSE;
}
}
|
[
"nghiadtse05330@fpt.edu.vn"
] |
nghiadtse05330@fpt.edu.vn
|
e0a4fdb5e1a41ab79f1e4e84c4185e743697f55f
|
a8602026555e830b7e45a7280970299c66b48dc1
|
/.svn/pristine/99/999cc60404ab6f48f327562229a0dd5a019497d8.svn-base
|
ef5f204bc5363996f55dc094a21f239c57f75ecc
|
[] |
no_license
|
Leader0721/ZBXBANK
|
53d85fd4a6a7645c2241dd5061d63779ffc10d85
|
aa5fb2c9991e257c7375d6e185f9ed04653c0a46
|
refs/heads/master
| 2020-12-02T08:03:05.064410
| 2017-07-10T10:11:25
| 2017-07-10T10:11:25
| 96,758,817
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,679
|
package com.zbxn.main.activity.memberCenter;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.pub.base.BaseActivity;
import com.pub.dialog.InputInfoDialog;
import com.pub.dialog.InputInfoListener;
import com.pub.http.HttpCallBack;
import com.pub.http.HttpRequest;
import com.pub.http.ResultData;
import com.pub.utils.MyToast;
import com.zbxn.R;
import com.zbxn.main.activity.login.ResetPasswordVerifyActivity;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import retrofit2.Call;
public class SettingsSecurityActivity extends BaseActivity {
@BindView(R.id.layout_mAlterPsw)
LinearLayout layoutMAlterPsw;
@BindView(R.id.mPhonenumber)
TextView mPhonenumber;
@BindView(R.id.layout_mAlterPhoneNumber)
LinearLayout layoutMAlterPhoneNumber;
@BindView(R.id.textView)
TextView textView;
@BindView(R.id.tv_Email)
TextView tvEmail;
@BindView(R.id.layout_mAlterEmail)
LinearLayout layoutMAlterEmail;
@BindView(R.id.activity_settings_security)
LinearLayout activitySettingsSecurity;
private InputInfoDialog mDialog;
private Intent intent;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_settings_security);
ButterKnife.bind(this);
}
@Override
public void initRight() {
super.initRight();
setTitle("安全设置");
}
@OnClick({R.id.layout_mAlterPsw, R.id.layout_mAlterPhoneNumber, R.id.activity_settings_security})
public void onClick(View view) {
switch (view.getId()) {
//登录密码
case R.id.layout_mAlterPsw:
startActivity(new Intent(this, SettingChangePSWActivity.class));
break;
//手机号码
case R.id.layout_mAlterPhoneNumber:
mDialog = new InputInfoDialog(this, new InputInfoListener() {
@Override
public void onDialogOk(Dialog dlg, Object param) {
String content = param.toString();
CheckUserPws(content, 1);
}
@Override
public void onDialogCancel(Dialog dlg, Object param) {
mDialog.dismiss();
}
}, "请输入密码", "");
mDialog.show();
break;
//邮箱
case R.id.activity_settings_security:
mDialog = new InputInfoDialog(this, new InputInfoListener() {
@Override
public void onDialogOk(Dialog dlg, Object param) {
String content = param.toString();
CheckUserPws(content, 2);
}
@Override
public void onDialogCancel(Dialog dlg, Object param) {
mDialog.dismiss();
}
}, "请输入密码", "");
mDialog.show();
break;
}
}
/**
* 验证密码
*/
public void CheckUserPws(String psw, final int type) {
//请求网络
Call call = HttpRequest.getIResource().CheckUserPws(psw);
callRequest(call, new HttpCallBack(String.class, this, true) {
@Override
public void onSuccess(ResultData mResult) {
if ("1".equals(mResult.getSuccess())) {//1成功
String data = (String) mResult.getData();
if (!"false".equals(data)) {
if (type == 1) {
intent = new Intent(SettingsSecurityActivity.this, ResetPasswordVerifyActivity.class);
intent.putExtra("title", "手机号更改");
} else if (type == 2) {
intent = new Intent(SettingsSecurityActivity.this, SettingAlterEmailActivity.class);
}
startActivity(intent);
} else {
MyToast.showToast("输入密码错误");
}
mDialog.dismiss();
} else {
MyToast.showToast(mResult.getMsg());
}
}
@Override
public void onFailure(String string) {
MyToast.showToast(R.string.NETWORKERROR);
}
});
}
}
|
[
"18410133533@163.com"
] |
18410133533@163.com
|
|
875bf5252181140c28d0e7dfa6d19848d9649b1e
|
8799ac7be9e0fe8a80ea2ae002beb7a68a1a4392
|
/Algorithm/BaekJoon Algorithm/BJ9461.java
|
17866ee05783bea500244551887d91e9a8d0e657
|
[] |
no_license
|
jeon9825/TIP
|
c45f73db7e1f9dffc8edf5a4268f0d7ee14e6709
|
fc8067e4597189b1762453ed29ba91d000e03160
|
refs/heads/master
| 2021-08-18T10:00:26.373784
| 2021-08-05T13:52:42
| 2021-08-05T13:52:42
| 174,329,195
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 488
|
java
|
import java.util.Scanner;
public class BJ9461 {
public static long padoban(int N) {
long[] A = new long[Math.max(N, 5)];
A[0] = 1;
A[1] = 1;
A[2] = 1;
A[3] = 2;
A[4] = 2;
for (int i = 5; i < N; ++i)
A[i] = A[i - 1] + A[i - 5];
return A[N - 1];
}
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int t = scan.nextInt();
for (int i = 0; i < t; i++) {
int n = scan.nextInt();
System.out.println(padoban(n));
}
}
}
|
[
"jeon9825@naver.com"
] |
jeon9825@naver.com
|
6a288a60671d35ac56a84a8cc7dc2e1946d8102b
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/andkulikov--Transitions-Everywhere/ccf76e3157c62d0cc740faa622d0db8aeca76ef0/after/PropertyCompatObject.java
|
89aa3ec6594cc32734101c29991b821482f4c584
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003
| 2018-11-30T13:00:57
| 2018-11-30T13:00:57
| 87,353,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 714
|
java
|
package android.transitions.everywhere.utils;
import android.animation.AnimatorListenerAdapter;
import android.annotation.TargetApi;
import android.os.Build;
/**
* Created by Andrey Kulikov on 24.10.14.
*/
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
public class PropertyCompatObject<T, F> extends AnimatorListenerAdapter {
private T mObject;
public PropertyCompatObject() {
}
public PropertyCompatObject(T object) {
mObject = object;
}
public T getObject() {
return mObject;
}
public String getProperty() {
return "value";
}
public void setValue(F value) {
// do nothing
}
public F getValue() {
return null;
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
f7dc2c319c3e701879a0d0cdab7f20ddb069fa4a
|
20591524b55c1ce671fd325cbe41bd9958fc6bbd
|
/pay/src/main/java/com/rongdu/loans/sys/service/SystemService.java
|
9d963b0cfe133967d1baae64662db9f062481d53
|
[] |
no_license
|
ybak/loans-suniu
|
7659387eab42612fce7c0fa80181f2a2106db6e1
|
b8ab9bfa5ad8be38dc42c0e02b73179b11a491d5
|
refs/heads/master
| 2021-03-24T01:00:17.702884
| 2019-09-25T15:28:35
| 2019-09-25T15:28:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,713
|
java
|
/**
* 聚宝钱包
*/
package com.rongdu.loans.sys.service;
import com.rongdu.common.config.Global;
import com.rongdu.common.security.Digests;
import com.rongdu.common.security.shiro.session.SessionDAO;
import com.rongdu.common.service.BaseService;
import com.rongdu.common.utils.Encodes;
import org.apache.shiro.session.Session;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Collection;
/**
* 系统管理,安全相关实体的管理类
* @author sunda
* @version 2013-12-05
*/
@Service
@Transactional(readOnly = true)
public class SystemService extends BaseService implements InitializingBean {
public static final String HASH_ALGORITHM = "SHA-1";
public static final int HASH_INTERATIONS = 1024;
public static final int SALT_SIZE = 8;
@Autowired
private SessionDAO sessionDao;
public SessionDAO getSessionDao() {
return sessionDao;
}
/**
* 生成安全的密码,生成随机的16位salt并经过1024次 sha-1 hash
*/
public static String entryptPassword(String plainPassword) {
String plain = Encodes.unescapeHtml(plainPassword);
byte[] salt = Digests.generateSalt(SALT_SIZE);
byte[] hashPassword = Digests.sha1(plain.getBytes(), salt, HASH_INTERATIONS);
return Encodes.encodeHex(salt)+Encodes.encodeHex(hashPassword);
}
/**
* 验证密码
* @param plainPassword 明文密码
* @param password 密文密码
* @return 验证成功返回true
*/
public static boolean validatePassword(String plainPassword, String password) {
String plain = Encodes.unescapeHtml(plainPassword);
byte[] salt = Encodes.decodeHex(password.substring(0,16));
byte[] hashPassword = Digests.sha1(plain.getBytes(), salt, HASH_INTERATIONS);
return password.equals(Encodes.encodeHex(salt)+Encodes.encodeHex(hashPassword));
}
/**
* 获得活动会话
* @return
*/
public Collection<Session> getActiveSessions(){
return sessionDao.getActiveSessions(false);
}
/**
* 获取Key加载信息
*/
public static boolean printKeyLoadMessage(){
StringBuilder sb = new StringBuilder();
sb.append("\r\n======================================================================\r\n");
sb.append("\r\n 欢迎使用 "+Global.getConfig("productName")+" - Powered By www.jubaoqiandai.com \r\n");
sb.append("\r\n======================================================================\r\n");
System.out.println(sb.toString());
return true;
}
@Override
public void afterPropertiesSet() throws Exception {
// TODO Auto-generated method stub
}
}
|
[
"tiramisuy18@163.com"
] |
tiramisuy18@163.com
|
2a02970ad064e413f9b3647b369a8b14f94d3246
|
5148293c98b0a27aa223ea157441ac7fa9b5e7a3
|
/Method_Scraping/xml_scraping/NicadOutputFile_t1_beam/Nicad_t1_beam2595.java
|
8183a646905df4f7d862253f6437850b67037a6d
|
[] |
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
| 522
|
java
|
// clone pairs:8648:80%
// 13292:beam/runners/flink/src/main/java/org/apache/beam/runners/flink/translation/wrappers/streaming/state/FlinkStateInternals.java
public class Nicad_t1_beam2595
{
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FlinkSetState<?> that = (FlinkSetState<?>) o;
return namespace.equals(that.namespace) && stateId.equals(that.stateId);
}
}
|
[
"naist1020@gmail.com"
] |
naist1020@gmail.com
|
5be89ddf869caa6dd65be0eb5a10b4f428d329cb
|
cacd87f8831b02e254d65c5e86d48264c7493d78
|
/pc/new/backstage/src/com/manji/backstage/vo/order/OrderCommentTemVo.java
|
a8df4e0519c318940b828382aa2777a51550f984
|
[] |
no_license
|
lichaoqian1992/beautifulDay
|
1a5a30947db08d170968611068673d2f0b626eb2
|
44e000ecd47099dc5342ab8a208edea73602760b
|
refs/heads/master
| 2021-07-24T22:48:33.067359
| 2017-11-03T09:06:15
| 2017-11-03T09:06:15
| 108,791,908
| 0
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 290
|
java
|
package com.manji.backstage.vo.order;
import com.manji.backstage.model.order.OrderCommentTem;
public class OrderCommentTemVo extends OrderCommentTem{
int index;
public int getIndex() {
return index;
}
public void setIndex(int index) {
this.index = index;
}
}
|
[
"1015598423@qq.com"
] |
1015598423@qq.com
|
0f93915811a3215076aa46ce18353e4341de0995
|
ac0472a885a0696ba0419f3e5582b005e155b138
|
/template-manager/template-app/src/main/java/com/mes/common/dao/ConfigMapper.java
|
cfab3a367e17e3261ce4bdef20965fd6c0b88858
|
[] |
no_license
|
liukunlong1093/base-cloud
|
4739fa4796ff59d782d06e22139f0565a06acfd4
|
afe7e21e3ef58840611e65e6b023e67f8a5e9629
|
refs/heads/master
| 2021-04-09T13:38:21.698215
| 2018-04-28T07:20:49
| 2018-04-28T07:20:49
| 125,459,705
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,490
|
java
|
package com.mes.common.dao;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import com.mes.common.dto.ConfigDTO;
/**
* 项目名称: [template-app]
* 包: [com.mes.common.dao]
* 类名称: [UserMapper]
* 类描述: [配置数据映射接口]
* 创建人: [刘坤龙]
* 创建时间: [2017年8月25日 上午11:45:34]
* 修改人: [刘坤龙]
* 修改时间: [2017年8月25日 上午11:45:34]
* 修改备注: [说明本次修改内容]
* 版本: [v1.0]
* @author [刘坤龙]
*/
@Mapper
public interface ConfigMapper {
/**
* 根据配置标识获取配置
* @param id 配置标识
* @return 配置对象
*/
ConfigDTO getConfigById(Long id);
/**
* 根据条件获取配置列表
* @param condition 查询条件
* @return 配置列表
*/
List<ConfigDTO> getConfigList(Map<String, Object> condition);
/**
* 保存配置
* @param configDTO 配置对象
* @return 新增成功条数
*/
long saveConfig(ConfigDTO configDTO);
/**
* 更新配置
* @param configDTO 配置对象
* @return 更新成功条数
*/
long updateConfig(ConfigDTO configDTO);
/**
* 根据配置标识删除配置
* @param id 配置标识
* @return 删除成功条数
*/
long deleteConfigById(Long id);
/**
* 批量保存配置
* @param configList 配置数据集合
* @return 新增成功条数
*/
long batchSaveConfig(List<ConfigDTO> configList);
}
|
[
"liukunlong1093@163.com"
] |
liukunlong1093@163.com
|
b6194a02eb21ffed071e32b571de637cefb0169e
|
15acd1d23f1f0f350b5dc8b9d49816b16310c07d
|
/java-based-demo/src/com/zuql/util/CollectionUtils.java
|
aa13786f114b130192f468380a1c74ea29689a56
|
[] |
no_license
|
zuql/git
|
f0c32c19539664c1b3f2e938214d5525661403a4
|
d4085a84a2494d09fb3b483f754074a8f662b12d
|
refs/heads/master
| 2020-04-08T18:17:48.233771
| 2019-01-11T09:01:35
| 2019-01-11T09:01:35
| 159,602,413
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,247
|
java
|
package com.zuql.util;
import sun.misc.BASE64Decoder;
import java.beans.PropertyDescriptor;
import java.io.*;
import java.math.BigDecimal;
import java.util.*;
import java.util.function.Consumer;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* 集合工具类
* @auth xiaolong
* @date 2016-12-19 11:33:27
*/
public class CollectionUtils {
protected final static Logger log = Logger.getLogger(new Object() {
public String getClassName() {
String clazzName = this.getClass().getName();
return clazzName.substring(0, clazzName.lastIndexOf('$'));
}
}.getClassName());
//todo:
//private static final Logger LOGGER = LoggerFactory.getLogger(CollectionUtils.class);
/**
* 耗时测试
* @param message
* @param c
*/
public static void timeConsumingTest(String message, Consumer<Object> c){
//log.info("====================》"+message+":start");
long start=System.currentTimeMillis();
c.accept(new Object());
long end=System.currentTimeMillis();
if(end-start>0){
log.info("====================》"+message+":end,耗时:"+(end-start));
}
}
}
|
[
"17712743419@163.com"
] |
17712743419@163.com
|
5df7d8387684008ef28ece79de4c43f25b26294a
|
6b2a8dd202fdce77c971c412717e305e1caaac51
|
/solutions_5708921029263360_1/java/LarryLai/FashionPolice.java
|
c6e3b280ddb54dcf1212f1ffb9cb65de9ba93f70
|
[] |
no_license
|
alexandraback/datacollection
|
0bc67a9ace00abbc843f4912562f3a064992e0e9
|
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
|
refs/heads/master
| 2021-01-24T18:27:24.417992
| 2017-05-23T09:23:38
| 2017-05-23T09:23:38
| 84,313,442
| 2
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,346
|
java
|
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
public class FashionPolice {
public static void main(String[]args)
{
try
{
Scanner sc = new Scanner(new FileReader("C-large.in"));
FileWriter fw = new FileWriter(new File("Output.txt"));
PrintWriter pw = new PrintWriter(fw);
int t = sc.nextInt();
for(int r = 1; r <= t; r++)
{
int j = sc.nextInt();
int p = sc.nextInt();
int s = sc.nextInt();
int k = sc.nextInt();
int d = j * p * k;
if(j * p * k > j * p * s)
{
d = j * p * s;
k = s;
}
//System.out.println("Case " + r + ": " + j + " " + p + " " + s + " " + k);
pw.print("Case #" + r + ": " + d);
//int count = 0;
for(int a = 1; a <= j; a++)
{
int start = a;
for(int b = 1; b <= p; b++)
for(int c = 1; c <= k; c++)
{
if(start > s)
start =1;
pw.println();
pw.print(a + " " + b + " " + start++);
//count++;
}
}
pw.println();
//if(count == d)
//System.out.println("Correct: " + r);
}
pw.flush();
pw.close();
}
catch(IOException ioe){System.out.print(ioe);}
}
}
|
[
"alexandra1.back@gmail.com"
] |
alexandra1.back@gmail.com
|
4d0d08e82dedad4289303fab0e0ab26546e07e66
|
07b3c008f2a08bfb0f4ca4f11f663d64028ab1d6
|
/DesignPatterns/HeadFirstDesignPatterns/src/com/shui/headfirstdesignpatterns/chapter12/first/decorator/QuackCounter.java
|
9a8cc7d9358000faac36b71a3ae347371b9e4300
|
[] |
no_license
|
shuile/ReadingList
|
eb2e7e0c16ae1b4cd69ee189ad74279680ba06a2
|
23d4724e25e1ae4188975d55d585a49a2af724ff
|
refs/heads/master
| 2023-08-22T18:00:00.794587
| 2021-10-11T09:31:12
| 2021-10-11T09:31:12
| 383,387,090
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,062
|
java
|
package com.shui.headfirstdesignpatterns.chapter12.first.decorator;
import com.shui.headfirstdesignpatterns.chapter12.first.Quackable;
import com.shui.headfirstdesignpatterns.chapter12.first.observer.Observable;
import com.shui.headfirstdesignpatterns.chapter12.first.observer.Observer;
/**
* @author shui.
* @date 2021/9/28.
* @time 17:33.
*/
public class QuackCounter implements Quackable {
Quackable duck;
static int numberOfQuacks;
Observable observable;
public QuackCounter() {
observable = new Observable(this);
}
public QuackCounter(Quackable duck) {
this.duck = duck;
observable = new Observable(this);
}
@Override
public void quack() {
duck.quack();
numberOfQuacks++;
}
public static int getQuacks() {
return numberOfQuacks;
}
@Override
public void registerObserver(Observer observer) {
observable.registerObserver(observer);
}
@Override
public void notifyObservers() {
observable.notifyObservers();
}
}
|
[
"chenyiting1995@gmail.com"
] |
chenyiting1995@gmail.com
|
e73412b32d5030d3d51b42e0ec1d5dd52111e446
|
9e84bc5f5c112d8c62e533e63cbbf025d6e05806
|
/aws-core/src/test/java/software/amazon/awssdk/awscore/client/config/defaults/AwsGlobalClientConfigurationDefaultsTest.java
|
1b506df9fc26ef85de543c212b2ffff39451b843
|
[
"Apache-2.0"
] |
permissive
|
aguamar/aws-sdk-java-v2
|
e87e7c8a8845d5e2132697595ae4895d33cfd657
|
c12a09c550f796fe2d7af01ad7f88ff17d365651
|
refs/heads/master
| 2020-03-17T10:34:17.951058
| 2018-05-11T17:24:57
| 2018-05-11T22:40:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,718
|
java
|
/*
* Copyright 2010-2018 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file 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 software.amazon.awssdk.awscore.client.config.defaults;
import static org.assertj.core.api.Assertions.assertThat;
import static software.amazon.awssdk.core.config.SdkAdvancedClientOption.SIGNER_PROVIDER;
import java.net.URI;
import org.junit.Test;
import software.amazon.awssdk.auth.credentials.AnonymousCredentialsProvider;
import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider;
import software.amazon.awssdk.awscore.config.AwsImmutableAsyncClientConfiguration;
import software.amazon.awssdk.awscore.config.AwsImmutableSyncClientConfiguration;
import software.amazon.awssdk.awscore.config.AwsMutableClientConfiguration;
import software.amazon.awssdk.awscore.config.defaults.AwsClientConfigurationDefaults;
import software.amazon.awssdk.awscore.config.defaults.AwsGlobalClientConfigurationDefaults;
import software.amazon.awssdk.core.config.ClientOverrideConfiguration;
import software.amazon.awssdk.core.internal.auth.NoOpSignerProvider;
/**
* Validate functionality of {@link AwsGlobalClientConfigurationDefaults}.
*/
public class AwsGlobalClientConfigurationDefaultsTest {
@Test
public void globalDefaultsIncludeExpectedValues() {
// The global defaults should include every field except for those defined by the builder or the service. Specifically,
// all required Client*Configuration values should be set, but not endpoints, credential providers, etc.
AwsGlobalClientConfigurationDefaults globalDefaults = new AwsGlobalClientConfigurationDefaults();
// Add the required values not expected to be included in the global configuration.
AwsClientConfigurationDefaults configCompleter = new AwsClientConfigurationDefaults() {
@Override
protected void applyOverrideDefaults(ClientOverrideConfiguration.Builder builder) {
assertThat(builder.build().advancedOption(SIGNER_PROVIDER)).isNull();
builder.advancedOption(SIGNER_PROVIDER, new NoOpSignerProvider());
}
@Override
protected AwsCredentialsProvider getCredentialsDefault() {
return AnonymousCredentialsProvider.create();
}
@Override
protected URI getEndpointDefault() {
return URI.create("http://example.com");
}
};
AwsMutableClientConfiguration mockAsyncCustomerConfig = new AwsMutableClientConfiguration();
AwsMutableClientConfiguration mockSyncCustomerConfig = new AwsMutableClientConfiguration();
globalDefaults.applyAsyncDefaults(mockAsyncCustomerConfig);
configCompleter.applyAsyncDefaults(mockAsyncCustomerConfig);
globalDefaults.applySyncDefaults(mockSyncCustomerConfig);
configCompleter.applySyncDefaults(mockSyncCustomerConfig);
// Make sure we can create an Immutable*ClientConfiguration with the result. Otherwise, it will throw an exception that a
// required field is missing.
new AwsImmutableAsyncClientConfiguration(mockAsyncCustomerConfig);
new AwsImmutableSyncClientConfiguration(mockSyncCustomerConfig);
}
}
|
[
"33073555+zoewangg@users.noreply.github.com"
] |
33073555+zoewangg@users.noreply.github.com
|
fb2e9950638abb7a507b857ed4ffbad8fc9630e1
|
d60a20e657116aaa201436ea20e95faff3d5f711
|
/src/main/java/letbo/interview/kruart/controller/GamePlayController.java
|
c43f6f21d837561cec13c617310418a8907792a9
|
[] |
no_license
|
kruart/letbo-test-assignment
|
f309161506fc4d9d2c6ba03385da6c57b4548fc3
|
4e86c5930dbf2e25686d2d54ff0b32f91c926ba2
|
refs/heads/master
| 2020-05-16T09:41:38.137239
| 2019-04-30T15:17:58
| 2019-04-30T15:17:58
| 182,958,119
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,174
|
java
|
package letbo.interview.kruart.controller;
import letbo.interview.kruart.repository.GamePlay;
import letbo.interview.kruart.to.GameInfoTo;
import letbo.interview.kruart.to.PlayerTo;
import letbo.interview.kruart.util.Check;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import java.util.concurrent.ConcurrentLinkedQueue;
@RestController
@RequestMapping(value = "/game")
public class GamePlayController {
private final Logger logger = LoggerFactory.getLogger(GamePlayController.class);
@Autowired
private GamePlay gamePlay;
@GetMapping("/word")
public ResponseEntity<String> getWord() {
logger.debug("calling 'getWord' method ['/game/word']");
return ResponseEntity.ok(gamePlay.getWord());
}
@GetMapping("/players")
public ResponseEntity<ConcurrentLinkedQueue<String>> getPlayers() {
logger.debug("calling 'getPlayers' method ['/game/players']");
return ResponseEntity.ok(gamePlay.getPlayers());
}
@PostMapping("/start")
public GameInfoTo start() {
logger.debug("calling 'start' method ['/game/start']");
return gamePlay.start();
}
@PostMapping("/new")
public GameInfoTo newgame() {
logger.debug("calling 'newgame' method ['/game/new']");
return gamePlay.newGame();
}
@PostMapping(value="/register", consumes = MediaType.APPLICATION_JSON_VALUE)
public GameInfoTo register(@Validated(Check.OnRegister.class) @RequestBody PlayerTo player) {
logger.debug("calling 'register' method ['/game/register']");
return gamePlay.register(player.getName());
}
@PutMapping("/move")
public GameInfoTo move(@Valid @RequestBody PlayerTo player) {
logger.debug("calling 'move' method ['/game/move']");
return gamePlay.move(player);
}
GamePlay getGamePlay() {
return gamePlay;
}
}
|
[
"weoz@ukr.net"
] |
weoz@ukr.net
|
20027a21f7f89861857fa19aadaed765304fd927
|
d9d96ef1880ab53366430e20de97dafe87fa30c8
|
/小贷平台反编译/cashloan/src/main/java/com/rongdu/cashloan/manage/controller/ManageOperatorController.java
|
2572f943d1a5a4ebc550c24bb6db73e56592168c
|
[] |
no_license
|
zxxroot/ymzl
|
22dbf6042bba091fd6978776aef7f3481c00759c
|
8b6174c65803db7892c091a35b36d9a3d958bbe3
|
refs/heads/master
| 2020-05-15T11:52:25.487428
| 2019-04-19T10:35:37
| 2019-04-19T10:35:37
| 182,246,163
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,232
|
java
|
/* */ package com.rongdu.cashloan.manage.controller;
/* */
/* */ import com.rongdu.cashloan.cl.domain.OperatorCellBehavior;
/* */ import com.rongdu.cashloan.cl.domain.OperatorRepApplicationCheck;
/* */ import com.rongdu.cashloan.cl.domain.OperatorRepBehaviorCheck;
/* */ import com.rongdu.cashloan.cl.domain.OperatorRepContactRegion;
/* */ import com.rongdu.cashloan.cl.domain.OperatorRepPerson;
/* */ import com.rongdu.cashloan.cl.domain.OperatorRepTripInfo;
/* */ import com.rongdu.cashloan.cl.domain.OperatorVoicesContact;
/* */ import com.rongdu.cashloan.cl.service.OperatorCellBehaviorService;
/* */ import com.rongdu.cashloan.cl.service.OperatorRepApplicationCheckService;
/* */ import com.rongdu.cashloan.cl.service.OperatorRepBehaviorCheckService;
/* */ import com.rongdu.cashloan.cl.service.OperatorRepContactRegionService;
/* */ import com.rongdu.cashloan.cl.service.OperatorRepMainService;
/* */ import com.rongdu.cashloan.cl.service.OperatorRepPersonService;
/* */ import com.rongdu.cashloan.cl.service.OperatorRepTripInfoService;
/* */ import com.rongdu.cashloan.cl.service.OperatorVoicesContactService;
/* */ import com.rongdu.cashloan.core.common.util.ServletUtils;
/* */ import com.rongdu.cashloan.core.common.web.controller.BaseController;
/* */ import com.rongdu.cashloan.core.model.ManagerUserModel;
/* */ import com.rongdu.cashloan.core.service.UserBaseInfoService;
/* */ import java.util.HashMap;
/* */ import java.util.List;
/* */ import java.util.Map;
/* */ import javax.annotation.Resource;
/* */ import org.springframework.context.annotation.Scope;
/* */ import org.springframework.stereotype.Controller;
/* */ import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.RequestParam;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Scope("prototype")
/* */ @Controller
/* */ public class ManageOperatorController
/* */ extends BaseController
/* */ {
/* */ @Resource
/* */ private UserBaseInfoService userBaseInfoService;
/* */ @Resource
/* */ private OperatorRepApplicationCheckService operatorRepApplicationCheckService;
/* */ @Resource
/* */ private OperatorRepBehaviorCheckService operatorRepBehaviorCheckService;
/* */ @Resource
/* */ private OperatorRepContactRegionService operatorRepContactRegionService;
/* */ @Resource
/* */ private OperatorRepMainService operatorRepMainService;
/* */ @Resource
/* */ private OperatorRepPersonService operatorRepPersonService;
/* */ @Resource
/* */ private OperatorRepTripInfoService operatorRepTripInfoService;
/* */ @Resource
/* */ private OperatorCellBehaviorService operatorCellBehaviorService;
/* */ @Resource
/* */ private OperatorVoicesContactService operatorVoicesContactService;
/* */
/* */ @RequestMapping(value={"/modules/manage/cl/hulu/operator/detail.htm"}, method={org.springframework.web.bind.annotation.RequestMethod.GET, org.springframework.web.bind.annotation.RequestMethod.POST})
/* */ public void detail(@RequestParam("userId") Long userId)
/* */ {
/* 81 */ ManagerUserModel user = this.userBaseInfoService.getBaseModelByUserId(userId);
/* 82 */ Map<String, Object> map = new HashMap();
/* 83 */ Map<String, Object> paramsMap = new HashMap();
/* 84 */ paramsMap.put("userId", userId);
/* 85 */ if (user != null)
/* */ {
/* */
/* 88 */ OperatorRepPerson operatorRepPerson = this.operatorRepPersonService.findSelective(paramsMap);
/* 89 */ map.put("person", operatorRepPerson);
/* */
/* */
/* 92 */ List<OperatorRepApplicationCheck> applicationCheck = this.operatorRepApplicationCheckService.listSelective(paramsMap);
/* 93 */ map.put("applicationCheck", applicationCheck);
/* */
/* */
/* 96 */ List<OperatorRepBehaviorCheck> operatorRepBehaviorCheck = this.operatorRepBehaviorCheckService.listSelective(paramsMap);
/* 97 */ map.put("behaviorCheck", operatorRepBehaviorCheck);
/* */
/* */
/* 100 */ List<OperatorVoicesContact> operatorVoicesContact = this.operatorVoicesContactService.listSelective(paramsMap);
/* 101 */ map.put("voicesContact", operatorVoicesContact);
/* */
/* */
/* 104 */ List<OperatorRepContactRegion> operatorRepContactRegion = this.operatorRepContactRegionService.listSelective(paramsMap);
/* 105 */ map.put("contactRegion", operatorRepContactRegion);
/* */
/* */
/* 108 */ List<OperatorCellBehavior> operatorCellBehavior = this.operatorCellBehaviorService.listSelective(paramsMap);
/* 109 */ map.put("cellBehavior", operatorCellBehavior);
/* */
/* */
/* 112 */ List<OperatorRepTripInfo> operatorRepTripInfo = this.operatorRepTripInfoService.listSelective(paramsMap);
/* 113 */ map.put("tripInfo", operatorRepTripInfo);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 150 */ Map<String, Object> result = new HashMap();
/* 151 */ result.put("data", map);
/* 152 */ result.put("code", Integer.valueOf(200));
/* 153 */ result.put("msg", "获取成功");
/* 154 */ ServletUtils.writeToResponse(this.response, result);
/* */ }
/* */ }
/* Location: D:\workspace\小贷平台运行包\manage\WEB-INF\classes\!\com\rongdu\cashloan\manage\controller\ManageOperatorController.class
* Java compiler version: 7 (51.0)
* JD-Core Version: 0.7.1
*/
|
[
"924385220@qq.com"
] |
924385220@qq.com
|
2474b64b292d93f75a5236c1fb662a5faa4f330f
|
32a9d0e2491046483dea4b44b16b60f4f0018f6c
|
/src/com/hopsun/tppas/api/reportingunit/service/TreportingUnitService.java
|
8e8e6040a7579c2f7737a08c804baf802983760d
|
[] |
no_license
|
liyl10/tppass
|
b37b03d4ddd60ec853f8f166c42ade9509c6f260
|
441c5bf1a5d6aeb8e1b9c2c218fbf03331129842
|
refs/heads/master
| 2016-09-10T13:39:23.117494
| 2013-12-11T03:10:31
| 2013-12-11T03:10:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 452
|
java
|
/************************* 版权声明 *********************************
*
* Copyright (C) 2012 西安辉盛科技发展有限责任公司.
*
******************************************************************
*/
package com.hopsun.tppas.api.reportingunit.service;
/**
* @comment 申报单位DAO层接口
* @author baij
* @DATE: 2013-8-2 @TIME: 下午2:10:57
* @Vsersion: 1.0
*/
public interface TreportingUnitService{
}
|
[
"liyl10@126.com"
] |
liyl10@126.com
|
db9b82b3bd7745b52ff4d073b7960b7863a36cfe
|
e01dc5993b7ac310c346763d46e900f3b2d5db5e
|
/jasperserver-api-impl/metadata/src/main/java/com/jaspersoft/jasperserver/api/metadata/user/service/impl/PasswordExpirationProcessingFilter.java
|
1c0649cba54c697e5b98ba9f006e4d5ccbdbd1dd
|
[] |
no_license
|
yohnniebabe/jasperreports-server-ce
|
ed56548a2ee18d37511c5243ffd8e0caff2be8f7
|
e65ce85a5dfca8d9002fcabc172242f418104453
|
refs/heads/master
| 2023-08-26T00:01:23.634829
| 2021-10-22T14:15:32
| 2021-10-22T14:15:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,582
|
java
|
/*
* Copyright (C) 2005 - 2020 TIBCO Software Inc. 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 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.
*
* 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 com.jaspersoft.jasperserver.api.metadata.user.service.impl;
import java.io.IOException;
import java.util.List;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.security.core.Authentication;
import com.jaspersoft.jasperserver.api.common.domain.ExecutionContext;
import com.jaspersoft.jasperserver.api.metadata.user.service.UserAuthorityService;
/**
* @author achan
*
*/
public class PasswordExpirationProcessingFilter implements Filter, InitializingBean {
private UserAuthorityService userService;
private String passwordExpirationInDays;
protected boolean isPasswordExpired(ExecutionContext context, Authentication auth, int nDays) {
return userService.isPasswordExpired(context, auth.getName(), nDays);
}
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
Authentication auth = SecurityContextHolder.getContext().getAuthentication();
if (auth != null) {
// skip password expiration check if from trusted host
String fromTrustedHost = (String)request.getAttribute("fromTrustedHost");
if ("true".equals(fromTrustedHost)) {
request.removeAttribute("fromTrustedHost");
chain.doFilter(request, response);
return;
}
// get expiration date
int nDays = 0;
try {
nDays = Integer.parseInt(passwordExpirationInDays);
} catch (NumberFormatException e) {}
if (nDays > 0) {
if (isPasswordExpired(null, auth, nDays)) {
SecurityContextHolder.getContext().setAuthentication(null);
chain.doFilter(request, response);
return;
}
}
}
request.removeAttribute("fromTrustedHost");
chain.doFilter(request, response);
}
public void afterPropertiesSet() throws Exception {
}
public void destroy() {}
public void init(FilterConfig arg0) throws ServletException {}
public UserAuthorityService getUserService() {
return userService;
}
public void setUserService(UserAuthorityService userService) {
this.userService = userService;
}
public String getPasswordExpirationInDays() {
return passwordExpirationInDays;
}
public void setPasswordExpirationInDays(String passwordExpirationInDays) {
this.passwordExpirationInDays = passwordExpirationInDays;
}
}
|
[
"hguntupa@tibco.com"
] |
hguntupa@tibco.com
|
e4568c141a8d7f9137d8a8250d70a6787378ea48
|
0aead8aca67985d9ec7ba261d5e5ab8eb323722f
|
/tw-paas-service-saas/src/main/java/cn/com/tw/saas/serv/entity/business/command/PageCmdResult.java
|
848c7688bb51df70df39de9d25dde771e5c13b14
|
[] |
no_license
|
automsen/psiot
|
34a9bbd848d402402fcde3643c6c692525b1904c
|
09cb88b62d33aa9a00f5b6a93e4d5733909d9f92
|
refs/heads/master
| 2021-04-05T13:39:16.119031
| 2018-10-23T17:55:50
| 2018-10-23T17:55:50
| 124,536,605
| 2
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,727
|
java
|
package cn.com.tw.saas.serv.entity.business.command;
import java.io.Serializable;
/**
* 存储调用接口后的回调信息
* 用来返回给页面做相关展示操作
* @author liming
* 2017年10月12日11:55:53
*
*/
public class PageCmdResult implements Serializable{
private static final long serialVersionUID = -5156579023772601137L;
private String cmdId;
private String cmdName;
/**
* 执行时间
*/
private Long exeTime;
/**
* 是否可重试
*/
private Boolean isRepeat;
private String meterAddr;
private String errorMsg;
private Boolean success;
private String orderId;
public String getCmdId() {
return cmdId;
}
public void setCmdId(String cmdId) {
this.cmdId = cmdId;
}
public Long getExeTime() {
return exeTime;
}
public void setExeTime(Long exeTime) {
this.exeTime = exeTime;
}
public Boolean getIsRepeat() {
return isRepeat;
}
public void setIsRepeat(Boolean isRepeat) {
this.isRepeat = isRepeat;
}
public String getMeterAddr() {
return meterAddr;
}
public void setMeterAddr(String meterAddr) {
this.meterAddr = meterAddr;
}
public String getErrorMsg() {
return errorMsg;
}
public void setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
}
public Boolean getSuccess() {
return success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getCmdName() {
return cmdName;
}
public void setCmdName(String cmdName) {
this.cmdName = cmdName;
}
public String getOrderId() {
return orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
}
|
[
"283381448@qq.com"
] |
283381448@qq.com
|
2d0faf2b40beef096ea4b27e9d811f2d932e5b0e
|
14f6c773e9b5921f22edc6a91f2421fb1067c0b2
|
/xmLegesCoreApi/tags/xmLegesEditor_2_0_alpha/src/it/cnr/ittig/xmleges/core/services/exec/monitor/ExecMonitor.java
|
b0d32118388cbcf9e0a43ff6139ca432a7c22a91
|
[] |
no_license
|
CNR-ITTIG/xmLegesEditor
|
20775462cca5bb601170e9e661d62539483a57d0
|
21e8340fc357f86ad7daaa4d5c4a2bf761ec6739
|
refs/heads/master
| 2021-01-15T19:05:00.311306
| 2013-09-18T12:32:44
| 2013-09-18T12:32:44
| 99,800,169
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,490
|
java
|
package it.cnr.ittig.xmleges.core.services.exec.monitor;
import it.cnr.ittig.services.manager.Service;
import it.cnr.ittig.xmleges.core.services.exec.Exec;
import java.awt.Component;
/**
* Servizio per la visualizzazione dei log emessi da una istanza di
* <code>it.cnr.ittig.xmleges.editor.services.exec.Exec</code>.
* <p>
* <dl>
* <dt><b>Copyright ©: </b></dt>
* <dd>2003 - 2004</dd>
* <dd><a href="http://www.ittig.cnr.it" target="_blank">Istituto di Teoria e
* Tecniche dell'Informazione Giuridica (ITTIG) <br>
* Consiglio Nazionale delle Ricerche - Italy </a></dd>
* <dt><b>License: </b></dt>
* <dd><a href="http://www.gnu.org/licenses/gpl.html" target="_blank">GNU
* General Public License </a></dd>
* </dl>
*
* @see it.cnr.ittig.xmleges.core.services.exec.Exec
* @version 1.0
* @author <a href="mailto:mirco.taddei@gmail.com">Mirco Taddei</a>
*/
public interface ExecMonitor extends Service {
/**
* Imposta il servizio di esecuzione di un comando esterno alla Java Virtual
* Machine <code>exec</code> che deve essere monitorato.
*
* @param exec servizio che deve essere monitorato
*/
public void setExec(Exec exec);
/**
* Restituisce l'<code>ExecMonitor</code> come
* <code>java.awt.Component</code>.
*
* @return oggetto grafico di <code>ExecMonitor</code>
*/
public Component getAsComponent();
/**
* Svuota il monitor.
*/
public void clear();
/**
* Chiude la form di dialogo del monitor.
*/
public void close();
}
|
[
"tommaso.agnoloni@gmail.com"
] |
tommaso.agnoloni@gmail.com
|
bddb5b37a0a6b0bd9265e9c7f28a1bef83fa92b2
|
f353942026e47e491b8b4b28c640e466cd3b8fd1
|
/dal/dal-xml/src/test/java/com/site/dal/xml/sanguo/Village.java
|
8b472022341e2dad954aef8a10d7b6263a934e55
|
[] |
no_license
|
qmwu2000/workshop
|
392c952f7ef66c4da492edd929c47b7a1db3e5fa
|
9c1cc55122f78045aa996d5714635391847ae212
|
refs/heads/master
| 2021-01-17T08:55:54.655925
| 2012-11-13T13:31:14
| 2012-11-13T13:31:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,486
|
java
|
package com.site.dal.xml.sanguo;
import com.site.dal.xml.annotation.XmlAttribute;
import com.site.dal.xml.annotation.XmlElement;
@XmlElement(name = "village")
public class Village {
@XmlAttribute(name = "id")
private int m_id;
@XmlAttribute(name = "name")
private String m_name;
@XmlAttribute(name = "x")
private int m_x;
@XmlAttribute(name = "y")
private int m_y;
@XmlAttribute(name = "vip")
private boolean m_vip;
@XmlAttribute(name = "ismain")
private boolean m_isMain;
@XmlAttribute(name = "statename")
private String m_stateName;
public int getId() {
return m_id;
}
public String getName() {
return m_name;
}
public String getStateName() {
return m_stateName;
}
public int getX() {
return m_x;
}
public int getY() {
return m_y;
}
public boolean isMain() {
return m_isMain;
}
public boolean isVip() {
return m_vip;
}
public void setId(int id) {
m_id = id;
}
public void setMain(boolean isMain) {
m_isMain = isMain;
}
public void setName(String name) {
m_name = name;
}
public void setStateName(String stateName) {
m_stateName = stateName;
}
public void setVip(boolean vip) {
m_vip = vip;
}
public void setX(int x) {
m_x = x;
}
public void setY(int y) {
m_y = y;
}
}
|
[
"qmwu2000@gmail.com"
] |
qmwu2000@gmail.com
|
f398a5890d66af3c114b6018cd4a8172b26c4e55
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_a20d9612fe11a000d91e8ce8bd4cdbaec3502bbc/FileLengthCheck/2_a20d9612fe11a000d91e8ce8bd4cdbaec3502bbc_FileLengthCheck_t.java
|
84d56baf66b416acd04de5654ef4991a36e9852d
|
[] |
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,226
|
java
|
////////////////////////////////////////////////////////////////////////////////
// checkstyle: Checks Java source code for adherence to a set of rules.
// Copyright (C) 2001-2002 Oliver Burn
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
////////////////////////////////////////////////////////////////////////////////
package com.puppycrawl.tools.checkstyle.checks;
import com.puppycrawl.tools.checkstyle.api.Check;
// TODO: tests!
/**
* Checks for long source files.
*
* <p>
* Rationale: If a source file becomes very long it is hard to understand.
* Therefore long classes should usually be refactored into several
* individual classes that focus on a specific task.
* </p>
*
* @author Lars Khne
*/
public class FileLengthCheck extends Check
{
/** the maximum number of lines */
private int mMaxFileLength = 2000;
/** @see com.puppycrawl.tools.checkstyle.api.Check */
public int[] getDefaultTokens()
{
return new int[0];
}
/** @see com.puppycrawl.tools.checkstyle.api.Check */
public void beginTree()
{
final String[] lines = getLines();
if (lines.length > mMaxFileLength) {
log(1, "maxLen.file",
new Integer(lines.length),
new Integer(mMaxFileLength));
}
}
/**
* @param aLength the maximum length of a Java source file
*/
public void setMax(int aLength)
{
mMaxFileLength = aLength;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
6a6946798104b329e4dcfa6851c28da40b021774
|
311f1237e7498e7d1d195af5f4bcd49165afa63a
|
/sourcedata/lucene-solr-releases-lucene-2.2.0/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SearchTravTask.java
|
393bd3930095f2651066bcfadf90b97921e4868e
|
[
"Apache-2.0"
] |
permissive
|
DXYyang/SDP
|
86ee0e9fb7032a0638b8bd825bcf7585bccc8021
|
6ad0daf242d4062888ceca6d4a1bd4c41fd99b63
|
refs/heads/master
| 2023-01-11T02:29:36.328694
| 2019-11-02T09:38:34
| 2019-11-02T09:38:34
| 219,128,146
| 10
| 1
|
Apache-2.0
| 2023-01-02T21:53:42
| 2019-11-02T08:54:26
|
Java
|
UTF-8
|
Java
| false
| false
| 2,157
|
java
|
package org.apache.lucene.benchmark.byTask.tasks;
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.apache.lucene.benchmark.byTask.PerfRunData;
import org.apache.lucene.benchmark.byTask.feeds.QueryMaker;
/**
* Search and Traverse task.
*
* <p>Note: This task reuses the reader if it is already open.
* Otherwise a reader is opened at start and closed at the end.
* <p/>
*
* <p>Takes optional param: traversal size (otherwise all results are traversed).</p>
*
* <p>Other side effects: counts additional 1 (record) for each traversed hit.</p>
*/
public class SearchTravTask extends ReadTask {
protected int traversalSize = Integer.MAX_VALUE;
public SearchTravTask(PerfRunData runData) {
super(runData);
}
public boolean withRetrieve() {
return false;
}
public boolean withSearch() {
return true;
}
public boolean withTraverse() {
return true;
}
public boolean withWarm() {
return false;
}
public QueryMaker getQueryMaker() {
return getRunData().getQueryMaker(this);
}
public int traversalSize() {
return traversalSize;
}
public void setParams(String params) {
super.setParams(params);
traversalSize = (int)Float.parseFloat(params);
}
/* (non-Javadoc)
* @see org.apache.lucene.benchmark.byTask.tasks.PerfTask#supportsParams()
*/
public boolean supportsParams() {
return true;
}
}
|
[
"512463514@qq.com"
] |
512463514@qq.com
|
9d818cbc4b9d82a17bc13557ba32e97dbe5c6ef6
|
0c0ae9163fdb4556f4c24d7101b3840b25f16881
|
/src/sqlancer/postgres/ast/PostgresPrefixOperation.java
|
f517c57f25573d301e669706c2ff540ec35f432f
|
[
"MIT"
] |
permissive
|
nukoyluoglu/sqlancer
|
5d69f6326adeddd3aef18d147ad8376c64b7d6cf
|
78a543784913d9866cb0a976b2c1f694b81ac0c6
|
refs/heads/master
| 2022-12-22T09:32:51.681883
| 2020-08-25T09:45:46
| 2020-08-25T09:45:46
| 274,379,434
| 0
| 0
|
MIT
| 2020-07-07T05:22:07
| 2020-06-23T10:42:09
| null |
UTF-8
|
Java
| false
| false
| 3,201
|
java
|
package sqlancer.postgres.ast;
import sqlancer.IgnoreMeException;
import sqlancer.common.ast.BinaryOperatorNode.Operator;
import sqlancer.postgres.PostgresSchema.PostgresDataType;
public class PostgresPrefixOperation implements PostgresExpression {
public enum PrefixOperator implements Operator {
NOT("NOT", PostgresDataType.BOOLEAN) {
@Override
public PostgresDataType getExpressionType() {
return PostgresDataType.BOOLEAN;
}
@Override
protected PostgresConstant getExpectedValue(PostgresConstant expectedValue) {
if (expectedValue.isNull()) {
return PostgresConstant.createNullConstant();
} else {
return PostgresConstant
.createBooleanConstant(!expectedValue.cast(PostgresDataType.BOOLEAN).asBoolean());
}
}
},
UNARY_PLUS("+", PostgresDataType.INT) {
@Override
public PostgresDataType getExpressionType() {
return PostgresDataType.INT;
}
@Override
protected PostgresConstant getExpectedValue(PostgresConstant expectedValue) {
// TODO: actual converts to double precision
return expectedValue;
}
},
UNARY_MINUS("-", PostgresDataType.INT) {
@Override
public PostgresDataType getExpressionType() {
return PostgresDataType.INT;
}
@Override
protected PostgresConstant getExpectedValue(PostgresConstant expectedValue) {
if (expectedValue.isNull()) {
// TODO
throw new IgnoreMeException();
}
return PostgresConstant.createIntConstant(-expectedValue.asInt());
}
};
private String textRepresentation;
private PostgresDataType[] dataTypes;
PrefixOperator(String textRepresentation, PostgresDataType... dataTypes) {
this.textRepresentation = textRepresentation;
this.dataTypes = dataTypes.clone();
}
public abstract PostgresDataType getExpressionType();
protected abstract PostgresConstant getExpectedValue(PostgresConstant expectedValue);
@Override
public String getTextRepresentation() {
return toString();
}
}
private final PostgresExpression expr;
private final PrefixOperator op;
public PostgresPrefixOperation(PostgresExpression expr, PrefixOperator op) {
this.expr = expr;
this.op = op;
}
@Override
public PostgresDataType getExpressionType() {
return op.getExpressionType();
}
@Override
public PostgresConstant getExpectedValue() {
return op.getExpectedValue(expr.getExpectedValue());
}
public PostgresDataType[] getInputDataTypes() {
return op.dataTypes;
}
public String getTextRepresentation() {
return op.textRepresentation;
}
public PostgresExpression getExpression() {
return expr;
}
}
|
[
"manuel.rigger@inf.ethz.ch"
] |
manuel.rigger@inf.ethz.ch
|
ca7a4a4feefc98cce52f0dc0bbf9437e610dc532
|
5edf88e2ac091ef261842a1d9b594c358f2e442c
|
/src/UN_EDIFACT/D96A/E4000.java
|
7cc82d95417310670514f1e7374d19343f610b7a
|
[] |
no_license
|
BohseOnkel63/EDIframe
|
63700caa7f87eb20cac9e1c4445d5b7d260564b3
|
7385de5c55518fb8ea1e5946529d91de69212601
|
refs/heads/master
| 2021-07-06T15:33:31.692744
| 2017-10-12T06:12:56
| 2017-10-12T06:12:56
| 35,657,733
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 473
|
java
|
package UN_EDIFACT.D96A;
import UN_EDIFACT.Element;
/**
* UN-EDIFACT D.96A
* 4000 Reference version number an..35
* To uniquely identify a reference by its revision number.
*/
public class E4000 extends Element {
public E4000() {
this(null);
}
public E4000(String Content) {
super("4000", "Reference version number", "an..35", "To uniquely identify a reference by its revision number.", "");
this.setContent(Content);
}
}
|
[
"ilkka.mannelin@iki.fi"
] |
ilkka.mannelin@iki.fi
|
045d18c8d6440e48bb456c64d33bbab801fa43e3
|
ed5159d056e98d6715357d0d14a9b3f20b764f89
|
/test/irvine/oeis/a157/A157110Test.java
|
19de871a5ad89d2ce19fa74e126951f46950ff68
|
[] |
no_license
|
flywind2/joeis
|
c5753169cf562939b04dd246f8a2958e97f74558
|
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
|
refs/heads/master
| 2020-09-13T18:34:35.080552
| 2019-11-19T05:40:55
| 2019-11-19T05:40:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 195
|
java
|
package irvine.oeis.a157;
import irvine.oeis.AbstractSequenceTest;
/**
* Tests the corresponding class.
* @author Sean A. Irvine
*/
public class A157110Test extends AbstractSequenceTest {
}
|
[
"sairvin@gmail.com"
] |
sairvin@gmail.com
|
81112e141e0e7aa2fa8ab4136cff9968493c86ca
|
4d9629467b331e1a8fa39834c34b76c5f7fb2b22
|
/LeetCode_Nowcoder/src/day41_200306/Main2_2.java
|
f0aae67617995e7bc806df57576fe28e64135952
|
[] |
no_license
|
kangwubin/XATU_Bit_JavaSE
|
c634e8adc25e15d1631dd3e8daa75a6a132fc425
|
08ce305d584fd0709271a8f140cdf1b210aca0db
|
refs/heads/master
| 2020-09-07T10:42:25.592354
| 2020-08-01T10:27:39
| 2020-08-01T10:27:39
| 220,754,088
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,499
|
java
|
package day41_200306;
import java.util.Scanner;
/**
* Description:
*
* @author: KangWuBin
* @Date: 2020/3/7
* @Time: 19:56
*/
public class Main2_2 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
String str = sc.nextLine();
String[] str_char = str.split(";");
int x = 0;
int y = 0;
for (int i = 0; i < str_char.length; i++) {
if (str_char[i].length() < 2)
continue;
String reg = "^\\d+$";
String move_type = str_char[i].substring(0, 1);
String move_dis = str_char[i].substring(1, str_char[i].length());
if (move_dis.matches(reg)) {
int move_num = Integer.parseInt(move_dis);
switch (move_type) {
case "W":
y += move_num;
break;
case "A":
x -= move_num;
break;
case "S":
y -= move_num;
break;
case "D":
x += move_num;
break;
}
} else {
continue;
}
}
System.out.println(x + "," + y);
}
}
}
|
[
"2624656980@qq.com"
] |
2624656980@qq.com
|
8d903361afbddd0ab5c7b54ab86d44ee46e584cb
|
bb9140f335d6dc44be5b7b848c4fe808b9189ba4
|
/Extra-DS/Corpus/class/aspectj/6.java
|
ff388813f533f0a1241ad042e8f1fb6a6d52ad11
|
[] |
no_license
|
masud-technope/EMSE-2019-Replication-Package
|
4fc04b7cf1068093f1ccf064f9547634e6357893
|
202188873a350be51c4cdf3f43511caaeb778b1e
|
refs/heads/master
| 2023-01-12T21:32:46.279915
| 2022-12-30T03:22:15
| 2022-12-30T03:22:15
| 186,221,579
| 5
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,030
|
java
|
package org.aspectj.apache.bcel.generic;
/**
* DASTORE - Store into double array
* <PRE>Stack: ..., arrayref, index, value.word1, value.word2 -> ...</PRE>
*
* @version $Id: DASTORE.java,v 1.2 2004/11/19 16:45:19 aclement Exp $
* @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
*/
public class DASTORE extends ArrayInstruction implements StackConsumer {
/** Store double into array
*/
public DASTORE() {
super(org.aspectj.apache.bcel.Constants.DASTORE);
}
/**
* Call corresponding visitor method(s). The order is:
* Call visitor methods of implemented interfaces first, then
* call methods according to the class hierarchy in descending order,
* i.e., the most specific visitXXX() call comes last.
*
* @param v Visitor object
*/
public void accept(Visitor v) {
v.visitStackConsumer(this);
v.visitExceptionThrower(this);
v.visitTypedInstruction(this);
v.visitArrayInstruction(this);
v.visitDASTORE(this);
}
}
|
[
"masudcseku@gmail.com"
] |
masudcseku@gmail.com
|
df994f1b3c0ac9e52eda6b2f43bbd7e0fd35b435
|
82b59048ecb8f3c27dc45a4939fe50d2c3b9f84f
|
/HazeSvrPersist/src/main/java/com/aurfy/haze/entity/infra/PasswordRecoveryEntity.java
|
dca7720289d85b07ed6a2ec335a617b49761a7b8
|
[] |
no_license
|
hud125/Payment
|
fe357fd1aa30921a237f8f123090935dfb18174f
|
066272a7edbbf5b59368b3378618785f75082bd7
|
refs/heads/master
| 2021-01-20T00:56:49.345938
| 2015-04-21T02:25:48
| 2015-04-21T02:25:48
| 34,298,613
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 300
|
java
|
package com.aurfy.haze.entity.infra;
import org.apache.ibatis.type.Alias;
import com.aurfy.haze.core.model.infra.PasswordRecovery;
import com.aurfy.haze.entity.Entity;
@Alias("PasswordRecoveryEntity")
public class PasswordRecoveryEntity extends PasswordRecovery implements Entity {
}
|
[
"dinghao47@gmail.com"
] |
dinghao47@gmail.com
|
9b78cabc1aac2911871f0fd5daf707ce8c9a07be
|
c9578926823151cec7479c6fa0bcae9a8399595e
|
/org.modeldriven.alf/src/org/modeldriven/alf/fuml/library/integerfunctions/IntegerToNaturalFunctionBehaviorExecution.java
|
5e0f932324f18c8a78db10a41d6565f42b1f9135
|
[] |
no_license
|
ModelDriven/Alf-Reference-Implementation
|
1eb6f3b08fbbce72523bf0ab4dddb42101862281
|
36ad46b9201138b1392ea9aa8f2038550f00fa19
|
refs/heads/master
| 2023-04-06T20:57:11.180992
| 2023-03-28T20:37:40
| 2023-03-28T21:06:14
| 47,217,748
| 33
| 3
| null | 2020-10-21T14:13:21
| 2015-12-01T21:12:48
|
Java
|
UTF-8
|
Java
| false
| false
| 2,114
|
java
|
/*******************************************************************************
* Copyright 2017 Model Driven Solutions, Inc.
* All rights reserved worldwide. This program and the accompanying materials
* are made available for use under the terms of the GNU General Public License
* (GPL) version 3 that accompanies this distribution and is available at
* http://www.gnu.org/licenses/gpl-3.0.html. For alternative licensing terms,
* contact Model Driven Solutions.
*******************************************************************************/
package org.modeldriven.alf.fuml.library.integerfunctions;
import java.util.List;
import org.modeldriven.alf.fuml.library.Debug;
import org.modeldriven.alf.fuml.library.OpaqueBehaviorExecution;
import org.modeldriven.alf.fuml.library.ParameterValue;
public class IntegerToNaturalFunctionBehaviorExecution implements OpaqueBehaviorExecution {
@Override
public void doBody(List<ParameterValue> inputs, List<ParameterValue> outputs, Debug debug) {
String value = (String)inputs.get(0).getObjects().get(0);
debug.println("[doBody] argument = " + value);
int result;
try {
int radix = 10;
if (value.length() > 1 && value.charAt(0) == '0') {
char radixChar = value.charAt(1);
radix =
radixChar == 'b' || radixChar == 'B'? 2:
radixChar == 'x' || radixChar == 'X'? 16: 8;
if (radix != 8) {
value = value.substring(2);
}
}
result = Integer.parseInt(value.replaceAll("_", ""), radix);
} catch (NumberFormatException e) {
// If the String does not specify an integer, simply return an empty values list
debug.println("[doBody] string does not specify a natural: " + value);
outputs.get(0).addValue(null);
return;
}
debug.println("[doBody] Integer ToInteger result = " + result);
outputs.get(0).addIntegerValue(result);
}
public OpaqueBehaviorExecution new_() {
return new IntegerToNaturalFunctionBehaviorExecution();
}
}
|
[
"ed-s@modeldriven.com"
] |
ed-s@modeldriven.com
|
b2a07b6063ee3a560b3d216ce4c0f4bcac10ae86
|
ac9244ea93103d593ae406dd54fab79adbc59e7a
|
/src/headfirst/designpatterns/combined/djview/BeatBar.java
|
bb3f223f672154cb09f2560a8a099597d10a2441
|
[] |
no_license
|
bofei222/Head-First-Design-Patterns
|
11f731a3b28ca79d40624ed3a5b09503af41308a
|
cb65d5ea77f1105bfb8622a8c5acf90b9287764e
|
refs/heads/master
| 2021-07-20T23:22:20.418016
| 2020-05-08T23:48:56
| 2020-05-08T23:48:56
| 144,090,495
| 0
| 0
| null | 2018-08-09T02:19:40
| 2018-08-09T02:19:40
| null |
UTF-8
|
Java
| false
| false
| 549
|
java
|
package headfirst.designpatterns.combined.djview;
import javax.swing.*;
public class BeatBar extends JProgressBar implements Runnable {
private static final long serialVersionUID = 2L;
JProgressBar progressBar;
Thread thread;
public BeatBar() {
thread = new Thread(this);
setMaximum(100);
thread.start();
}
public void run() {
for(;;) {
int value = getValue();
value = (int)(value * .75);
setValue(value);
repaint();
try {
Thread.sleep(50);
} catch (Exception e) {};
}
}
}
|
[
"bofei222@163.com"
] |
bofei222@163.com
|
ad6b3457c4a361e4d00d39ade0a9508e823165dc
|
92dd6bc0a9435c359593a1f9b309bb58d3e3f103
|
/src/Feb2021Leetcode/_1465MaximumAreaOfAPieceOfCakeAfterHorizontalAndVerticalCuts.java
|
55756756c3c3047db44feb76c9bf0c0c59dc068e
|
[
"MIT"
] |
permissive
|
darshanhs90/Java-Coding
|
bfb2eb84153a8a8a9429efc2833c47f6680f03f4
|
da76ccd7851f102712f7d8dfa4659901c5de7a76
|
refs/heads/master
| 2023-05-27T03:17:45.055811
| 2021-06-16T06:18:08
| 2021-06-16T06:18:08
| 36,981,580
| 3
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 477
|
java
|
package Feb2021Leetcode;
import java.util.Arrays;
public class _1465MaximumAreaOfAPieceOfCakeAfterHorizontalAndVerticalCuts {
public static void main(String[] args) {
System.out.println(maxArea(5, 4, new int[] { 1, 2, 4 }, new int[] { 1, 3 }));
System.out.println(maxArea(5, 4, new int[] { 3, 1 }, new int[] { 1 }));
System.out.println(maxArea(5, 4, new int[] { 3 }, new int[] { 3 }));
}
public static int maxArea(int height, int width, int[] h, int[] v) {
}
}
|
[
"hsdars@gmail.com"
] |
hsdars@gmail.com
|
8020218825638a35facb28d042ed2208c435c1b3
|
2dc55280583e54cd3745fad4145eb7a0712eb503
|
/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/extensions/dms/data/annotations/printdocument/CorrespondenceCapable.java
|
58df2c3c3c614e422ed1c6331120e6ea3ca87938
|
[] |
no_license
|
markus512/stardust.engine
|
9d5f4fd7016a38c5b3a1fe09cc7a445c00a31b57
|
76e0b326446e440468b4ab54cfb8e26a6403f7d8
|
refs/heads/master
| 2022-02-06T23:03:21.305045
| 2016-03-09T14:56:01
| 2016-03-09T14:56:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,416
|
java
|
package org.eclipse.stardust.engine.extensions.dms.data.annotations.printdocument;
import java.util.Date;
/**
* Implementors of this interface are capable to hold EMail and fax correspondence information.
*
* @author Roland.Stamm
*/
public interface CorrespondenceCapable
{
/**
* @return Attachments name and version.
*/
String getAttachments();
void setAttachments(String attachments);
/**
* @return bcc recipients.
*/
String getBlindCarbonCopyRecipients();
void setBlindCarbonCopyRecipients(String bccRecipients);
/**
* @return cc recipients.
*/
String getCarbonCopyRecipients();
void setCarbonCopyRecipients(String ccRecipients);
/**
* @return A fax number.
*/
String getFaxNumber();
void setFaxNumber(String faxNumber);
/**
* @return The recipients
*/
String getRecipients();
void setRecipients(String recipients);
/**
* @return The date this document was sent.
*/
Date getSendDate();
void setSendDate(Date sendDate);
/**
* @return The sender
*/
String getSender();
void setSender(String sender);
/**
* @return The subject of the email or fax.
*/
String getSubject();
void setSubject(String subject);
boolean isEmailEnabled();
void setEmailEnabled(boolean emailEnabled);
boolean isFaxEnabled();
void setFaxEnabled(boolean faxEnabled);
}
|
[
"roland.stamm@sungard.com"
] |
roland.stamm@sungard.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.