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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8d86ea06a1fa156ca9e4f6a98049d0e074c72703
|
d8b52a783f9b225461893126ba8ecd8f181ff224
|
/src/com/gargoylesoftware/htmlunit/html/HtmlSpacer.java
|
6eec3bcff1725ec11551ad04df31633c78dbfe0f
|
[] |
no_license
|
dawenzi80/test
|
8df7478a03692d98503f4d493a7a8a280a158634
|
3748f0bc73841807654e9e7aee3526c4b410bedb
|
refs/heads/master
| 2016-08-11T12:37:10.652652
| 2016-01-26T09:53:25
| 2016-01-26T09:53:25
| 50,418,503
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,548
|
java
|
/*
* Copyright (c) 2002-2013 Gargoyle Software 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.gargoylesoftware.htmlunit.html;
import java.util.Map;
import com.gargoylesoftware.htmlunit.SgmlPage;
/**
* Wrapper for the HTML element "spacer".
*
* @version $Revision: 1.1 $
* @author Ahmed Ashour
*/
public class HtmlSpacer extends HtmlElement {
/** The HTML tag represented by this element. */
public static final String TAG_NAME = "spacer";
/**
* Creates a new instance.
*
* @param namespaceURI the URI that identifies an XML namespace
* @param qualifiedName the qualified name of the element type to instantiate
* @param page the page that contains this element
* @param attributes the initial attributes
*/
HtmlSpacer(final String namespaceURI, final String qualifiedName, final SgmlPage page,
final Map<String, DomAttr> attributes) {
super(namespaceURI, qualifiedName, page, attributes);
}
}
|
[
"liuxw@liuxw-PC-win7"
] |
liuxw@liuxw-PC-win7
|
32f12136de8a73fd85e71eecd3ced46a2aea1cac
|
77449ca1d6a946001521b54ab521466c9a0ebe09
|
/src/main/java/org/bian/dto/SDCustomerEventHistoryFeedbackOutputModelServiceDomainFeedbackActionRecord.java
|
6649889f77102a2e3673bdda820c4ba79e5efbe4
|
[
"Apache-2.0"
] |
permissive
|
bianapis/sd-customer-event-history-v2.0
|
2abffcd7229d8daa378a51f9728d3c1a184ce1ca
|
25135ff76374dc26cdef0573157e65d3bb6a6918
|
refs/heads/master
| 2020-07-11T08:45:47.631695
| 2019-09-09T05:06:14
| 2019-09-09T05:06:14
| 204,494,454
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,031
|
java
|
package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
/**
* SDCustomerEventHistoryFeedbackOutputModelServiceDomainFeedbackActionRecord
*/
public class SDCustomerEventHistoryFeedbackOutputModelServiceDomainFeedbackActionRecord {
private String feedbackRecordDateTime = null;
private String feedbackRecordStatus = null;
private String employeeBusinessUnitReference = null;
/**
* `status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::DateTime general-info: The date/time the feedback submitted for consideration
* @return feedbackRecordDateTime
**/
public String getFeedbackRecordDateTime() {
return feedbackRecordDateTime;
}
public void setFeedbackRecordDateTime(String feedbackRecordDateTime) {
this.feedbackRecordDateTime = feedbackRecordDateTime;
}
/**
* `status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Text general-info: The status of processing the feedback e.g. received, considered, responded to
* @return feedbackRecordStatus
**/
public String getFeedbackRecordStatus() {
return feedbackRecordStatus;
}
public void setFeedbackRecordStatus(String feedbackRecordStatus) {
this.feedbackRecordStatus = feedbackRecordStatus;
}
/**
* `status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::ISO20022andUNCEFACT::Identifier general-info: Reference to business unit/employee responsible for handling feedback
* @return employeeBusinessUnitReference
**/
public String getEmployeeBusinessUnitReference() {
return employeeBusinessUnitReference;
}
public void setEmployeeBusinessUnitReference(String employeeBusinessUnitReference) {
this.employeeBusinessUnitReference = employeeBusinessUnitReference;
}
}
|
[
"team1@bian.org"
] |
team1@bian.org
|
61d7c2e3236e5fdd2c7f4eebfd7650efde95426f
|
75a8892e4be8c81cbebc07153d53ccc379528287
|
/capitulo2/Operacdores_Comparativos.java
|
19cf9ef88f0f52934d1245e130be2b7e18c2fccd
|
[] |
no_license
|
lfbessegato/Estudos-Java
|
da2d50c5965eae6b804306fef0457885341f7ac1
|
d358a777feb967147c125bf10cf302a1e9b96e43
|
refs/heads/master
| 2020-08-07T02:04:22.877913
| 2019-10-06T22:26:50
| 2019-10-06T22:26:50
| 213,252,991
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 577
|
java
|
package course.capitulo2;
public class Operacdores_Comparativos {
public static void main(String[] args) {
int a = 10;
boolean c1 = a < 10;
boolean c2 = a < 20;
boolean c3 = a > 10;
boolean c4 = a > 5;
System.out.println(c1);
System.out.println(c2);
System.out.println(c3);
System.out.println(c4);
System.out.println("-------------------");
boolean c5 = a <= 10;
boolean c6 = a >= 10;
boolean c7 = a == 10;
boolean c8 = a != 10;
System.out.println(c5);
System.out.println(c6);
System.out.println(c7);
System.out.println(c8);
}
}
|
[
"lfrbessegato@gmail.com"
] |
lfrbessegato@gmail.com
|
c93aae0d44e5d5b22157fc553245a032a6699a5d
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/19/19_4a7bddf47153dbdc1f7fb4f4db502c4e79b1565f/MainService/19_4a7bddf47153dbdc1f7fb4f4db502c4e79b1565f_MainService_s.java
|
b8d60e879b1f3c729f634b74704722b08da98d2f
|
[] |
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
| 5,580
|
java
|
package com.habosa.dotdotdash;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Timer;
import java.util.TimerTask;
import android.inputmethodservice.InputMethodService;
import android.inputmethodservice.KeyboardView.OnKeyboardActionListener;
import android.view.View;
import android.view.inputmethod.InputConnection;
import android.view.inputmethod.InputMethodManager;
public class MainService extends InputMethodService
implements OnKeyboardActionListener {
public static int KEY_CODE_MAIN = 1;
public static long LONG_PRESS_TIME = 250L;
public static int CONVERT_DELAY_MILLIS = 700;
private InputMethodManager mInputMethodManager;
private MorseKeyboardView mInputView;
private MorseKeyboard mMorseKeyboard;
private Date mPressStarted;
private StringBuilder mComposing = new StringBuilder();
public static Map<String, String> decoder = new HashMap<String, String>();
private static Timer sTimer = new Timer();
@Override
public void onCreate() {
super.onCreate();
mInputMethodManager = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);
initDecoder();
}
public void initDecoder() {
decoder.put(".-", "A");
decoder.put("-...", "B");
decoder.put("-.-.", "C");
decoder.put("-..", "D");
decoder.put(".", "E");
decoder.put("..-.", "F");
decoder.put("--.", "G");
decoder.put("....", "H");
decoder.put("..", "I");
decoder.put(".---", "J");
decoder.put("-.-", "K");
decoder.put(".-..", "L");
decoder.put("--", "M");
decoder.put("-.", "N");
decoder.put("---", "O");
decoder.put(".--.", "P");
decoder.put("--.-", "Q");
decoder.put(".-.", "R");
decoder.put("...", "S");
decoder.put("-", "T");
decoder.put("..-", "U");
decoder.put("...-", "V");
decoder.put(".--", "W");
decoder.put("-..-", "X");
decoder.put("-.--", "Y");
decoder.put("--..", "Z");
decoder.put("-----", "0");
decoder.put(".----", "1");
decoder.put("..---", "2");
decoder.put("...--", "3");
decoder.put("....-", "4");
decoder.put(".....", "5");
decoder.put("-....", "6");
decoder.put("--...", "7");
decoder.put("---..", "8");
decoder.put("----.", "9");
}
@Override
public void onInitializeInterface() {
mMorseKeyboard = new MorseKeyboard(this, R.xml.morse);
}
@Override
public View onCreateInputView() {
mInputView = (MorseKeyboardView) getLayoutInflater().inflate(R.layout.morse_keyboard, null);
mInputView.setOnKeyboardActionListener(this);
mInputView.setKeyboard(mMorseKeyboard);
return mInputView;
}
@Override
public void onKey(int primaryCode, int[] keyCodes) {
// TODO(samstern): Do something here
}
@Override
public void onPress(int primaryCode) {
// Mark time
mPressStarted = new Date();
// Cancel scheduled tasks
sTimer.cancel();
}
@Override
public void onRelease(int primaryCode) {
if (primaryCode == 1) {
Date pressEnded = new Date();
long diff = pressEnded.getTime() - mPressStarted.getTime();
if (diff >= LONG_PRESS_TIME) {
// Long press
mComposing.append('-');
sendText("-");
} else {
// Short press
mComposing.append('.');
sendText(".");
}
} else if (primaryCode == 2) {
sendText(" ");
mComposing.setLength(0);
}
// Convert after a small delay
sTimer = new Timer();
sTimer.schedule(new TimerTask() {
@Override
public void run() {
convertLastChar();
}
}, CONVERT_DELAY_MILLIS);
}
/**
* Take the morse chars, make a letter.
*/
public void convertLastChar() {
String entered = mComposing.toString();
String letter = decoder.get(entered);
if (letter != null) {
// Delete the dots and dashes
deleteText(mComposing.length());
// Send a letter
sendText(letter);
mComposing.setLength(0);
} else {
sendText("?");
mComposing.setLength(0);
}
}
/**
* Send the text to the view.
*/
public void sendText(String toSend) {
InputConnection inputConnection = getCurrentInputConnection();
inputConnection.commitText(toSend, 1);
}
/**
* Delete the last 'num' characters
* @param num
*/
public void deleteText(int num) {
InputConnection inputConnection = getCurrentInputConnection();
inputConnection.deleteSurroundingText(num, 0);
}
@Override
public void onText(CharSequence text) {
// TODO Auto-generated method stub
}
@Override
public void swipeDown() {
// TODO(samstern): Hide the noob buttons
}
@Override
public void swipeUp() {
// TODO(samstern): Show the noob buttons
}
@Override
public void swipeLeft() { }
@Override
public void swipeRight() { }
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
92c0f56d9b9e27114e177b109551ced67de3f713
|
72f77450eb99de6de59f44206cc663b22e57b016
|
/Spring/Error/JWTLogin/src/main/java/com/example/branch/web/controller/UserController.java
|
4e4da7bd42413a640faa1ecbdeb63daef24e6a1e
|
[] |
no_license
|
woxin123/Java-Study
|
27a09b34a954dc0294f62944fa79be02d6ae8029
|
f569c4fe27fa65f88232d246906aa67f9ab9d4ba
|
refs/heads/master
| 2022-12-17T01:43:03.476391
| 2019-06-17T07:07:58
| 2019-06-17T07:07:58
| 105,738,558
| 2
| 0
| null | 2022-12-16T06:40:00
| 2017-10-04T06:35:48
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 586
|
java
|
package com.example.branch.web.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author: mengchen
* Create by 18-4-23
*/
@RestController
public class UserController {
@Autowired
private RedisTemplate<String, String> redisTemplate;
@RequestMapping("/logout")
public String logout() {
redisTemplate.delete("");
return null;
}
}
|
[
"1293141942@qq.com"
] |
1293141942@qq.com
|
01f459a84cb47994feea94159d5dbc839cb4353a
|
4141ce5f26b426087d9d5fc6914254a3505d4706
|
/src/test/java/org/springframework/data/gemfire/test/support/AbstractGemFireClientServerIntegrationTest.java
|
e510f907aa486d78f92b866720979de3e6fc4703
|
[
"LicenseRef-scancode-generic-cla"
] |
no_license
|
saleti7/spring-data-gemfire
|
8fc73fed790307799ae4fdc6a71e6daad05d3674
|
a5b182471ab6e8d15fc2b9caa490cb78aaafa2c9
|
refs/heads/master
| 2021-03-27T09:47:38.062169
| 2017-12-17T02:23:29
| 2017-12-18T01:22:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,339
|
java
|
/*
* Copyright 2016 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.data.gemfire.test.support;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.springframework.data.gemfire.fork.ServerProcess;
import org.springframework.data.gemfire.process.ProcessExecutor;
import org.springframework.data.gemfire.process.ProcessWrapper;
import org.springframework.util.Assert;
/**
* The AbstractGemFireClientServerIntegrationTest class is an abstract test suite base class encapsulating functionality
* common to all test classes implementing GemFire client/server test cases.
*
* @author John Blum
* @see org.springframework.data.gemfire.fork.ServerProcess
* @see org.springframework.data.gemfire.process.ProcessExecutor
* @see org.springframework.data.gemfire.process.ProcessWrapper
* @since 1.8.0
*/
@Deprecated
@SuppressWarnings("unused")
public abstract class AbstractGemFireClientServerIntegrationTest {
protected static final long DEFAULT_TIME_TO_WAIT_FOR_SERVER_TO_START = TimeUnit.SECONDS.toMillis(20);
protected static final long FIVE_HUNDRED_MILLISECONDS = TimeUnit.MILLISECONDS.toMillis(500);
protected static final long ONE_SECOND_IN_MILLISECONDS = TimeUnit.SECONDS.toMillis(1);
protected static String CLEAN_PROCESS_WORKING_DIRECTORY_SYSTEM_PROPERTY = "spring.data.gemfire.force.clean";
protected static void pause(final long duration) {
ThreadUtils.timedWait(Math.max(duration, ONE_SECOND_IN_MILLISECONDS), ONE_SECOND_IN_MILLISECONDS,
new ThreadUtils.WaitCondition() {
@Override public boolean waiting() {
return true;
}
}
);
}
protected static <T> T setSystemProperty(String propertyName, T propertyValue) {
System.setProperty(propertyName, String.valueOf(propertyValue));
return propertyValue;
}
protected static ProcessWrapper startGemFireServer(Class<?> testClass) throws IOException {
return startGemFireServer(testClass, DEFAULT_TIME_TO_WAIT_FOR_SERVER_TO_START);
}
protected static ProcessWrapper startGemFireServer(Class<?> testClass, long waitTimeInMilliseconds)
throws IOException {
Assert.notNull(testClass, "'testClass' must not be null");
String serverName = (testClass.getSimpleName() + "Server");
File serverWorkingDirectory = new File(FileSystemUtils.WORKING_DIRECTORY, serverName.toLowerCase());
Assert.isTrue(serverWorkingDirectory.isDirectory() || serverWorkingDirectory.mkdirs());
List<String> arguments = new ArrayList<String>();
addTestClassSystemProperties(testClass, arguments).add(String.format("-Dgemfire.name=%1$s", serverName));
arguments.add("/".concat(testClass.getName().replace(".", "/").concat("-server-context.xml")));
ProcessWrapper gemfireServerProcess = ProcessExecutor.launch(serverWorkingDirectory, ServerProcess.class,
arguments.toArray(new String[arguments.size()]));
waitForServerToStart(gemfireServerProcess, waitTimeInMilliseconds);
System.out.printf("The Spring-based, GemFire Cache Server process for %1$s should be running...%n",
testClass.getSimpleName());
return gemfireServerProcess;
}
static List<String> addTestClassSystemProperties(Class<?> testClass, List<String> arguments) {
String testClassName = testClass.getName();
for (String propertyName : System.getProperties().stringPropertyNames()) {
if (propertyName.startsWith(testClassName)) {
arguments.add(String.format("-D%1$s=%2$s", propertyName, System.getProperty(propertyName)));
}
}
return arguments;
}
static void waitForServerToStart(final ProcessWrapper process, long duration) {
ThreadUtils.timedWait(Math.max(duration, FIVE_HUNDRED_MILLISECONDS), FIVE_HUNDRED_MILLISECONDS,
new ThreadUtils.WaitCondition() {
private File processPidControlFile = new File(process.getWorkingDirectory(),
ServerProcess.getServerProcessControlFilename());
@Override public boolean waiting() {
return !processPidControlFile.isFile();
}
}
);
}
protected static ProcessWrapper stopGemFireServer(ProcessWrapper process) {
try {
process.shutdown();
boolean springGemFireForceClean = Boolean.valueOf(System.getProperty(
CLEAN_PROCESS_WORKING_DIRECTORY_SYSTEM_PROPERTY, Boolean.TRUE.toString()));
if (springGemFireForceClean) {
org.springframework.util.FileSystemUtils.deleteRecursively(process.getWorkingDirectory());
}
return null;
}
catch (Exception e) {
return process;
}
}
protected static void clearSystemProperties(Class<?> testClass) {
String testClassName = testClass.getName();
for (String propertyName : System.getProperties().stringPropertyNames()) {
if (propertyName.startsWith(testClassName)) {
System.clearProperty(propertyName);
}
}
}
}
|
[
"jblum@pivotal.io"
] |
jblum@pivotal.io
|
2cf93efda799a557238f5d9e2616e0c84b07cef9
|
d665b0fb7ec053761cbc905e9d0196ffc9861e77
|
/java/com/tt/vo/TransactionRegisterVO.java
|
63e9d9e9e0a5a6f03598545958e4b31ceaa4fbe7
|
[] |
no_license
|
DonggeonHa/ThanksTay
|
a60668814ed8f5d8b04a93d8a7d1474d7f773b6e
|
3053a8e91986a264167f0017e0a7ad7663104de4
|
refs/heads/main
| 2023-07-15T11:34:04.992074
| 2021-08-26T16:49:48
| 2021-08-26T16:49:48
| 388,773,122
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 908
|
java
|
package com.tt.vo;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@ToString
@Getter
@Setter
public class TransactionRegisterVO {
private int no; // 대금등록 번호 not null
private int userNo; // 유저_번호 not null
private String name; // 대금등록 이름 not null
private String email; // 대금등록 이메일 not null
private Date birth; // 생년월일 not null
private String phone; //휴대폰 not null
private String currency; // 통화 한국 not null
private String payment; // 결제수단 계좌/카드 not null
private String bankCode; // 은행_코드 국민은행/카카오뱅크 not null
private String account; // 대금등록 계좌 not null
public TransactionRegisterVO() {}
}
|
[
"Hadonggun@gmail.com"
] |
Hadonggun@gmail.com
|
ab91b5dc34d6a0f893dcbdc89f23a1ad92780277
|
14970ee11e71b839ba2c86e1ce65e344de28325c
|
/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/commands/SetPropertyTypeCommand.java
|
3939cb4e65bc107b475d1b957282817bf266c084
|
[
"Apache-2.0",
"EPL-1.0"
] |
permissive
|
wso2/devstudio-tooling-bps
|
e300529639e22fd430612601d7d76b9a9bd56dd0
|
5a5d080d94bb30ac6a5fb404c2a6b989653cc78d
|
refs/heads/master
| 2023-06-28T18:29:45.578389
| 2021-01-04T06:46:48
| 2021-01-04T06:46:48
| 53,044,989
| 34
| 19
|
Apache-2.0
| 2021-01-04T06:46:49
| 2016-03-03T11:23:24
|
Java
|
UTF-8
|
Java
| false
| false
| 1,190
|
java
|
/*******************************************************************************
* Copyright (c) 2005, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.bpel.ui.commands;
import org.eclipse.bpel.model.messageproperties.Property;
import org.eclipse.emf.ecore.EObject;
/**
* Command to set the Type property of a Property. Currently we expect this
* to be an XSDTypeDefinition or an XSDElementDeclaration.
*/
public class SetPropertyTypeCommand extends SetCommand {
// TODO: label?
public SetPropertyTypeCommand(Property target, EObject newType) {
super(target, newType);
}
@Override
public Object get() {
return ((Property)fTarget).getType();
}
@Override
public void set(Object o) {
((Property)fTarget).setType(o);
}
}
|
[
"mail.hasitha27@gmail.com"
] |
mail.hasitha27@gmail.com
|
a4a36038a99807a6ba5a0a7f3503c07544cfdaf5
|
9d640c8350122bc367bb67355f27ad1ddf731cf6
|
/study/src/main/java/com/bigdata/flink/study/Count.java
|
023641162b38ca6beaba1c9e62755ac578208d8f
|
[] |
no_license
|
fuLinHu/designModel
|
8cbd2260cdf62ecf9c2bf438ec01ddc70b9b7242
|
9358fd157a6373038a924a8501916cbf380dc986
|
refs/heads/master
| 2022-09-27T13:30:16.689895
| 2021-11-19T06:48:25
| 2021-11-19T06:48:25
| 165,197,804
| 0
| 0
| null | 2022-09-01T23:45:10
| 2019-01-11T07:18:51
|
HTML
|
UTF-8
|
Java
| false
| false
| 594
|
java
|
package com.bigdata.flink.study;
import io.netty.handler.codec.mqtt.MqttMessageIdAndPropertiesVariableHeader;
import lombok.Data;
import sun.applet.Main;
import java.util.Date;
/**
* @className
* @Description TODO
* @Author 付林虎
* @Date 2020/9/30 15:12
* @Version V1.0
*/
@Data
public class Count {
private String key;
private Integer count;
public static void main(String[] args) {
Date date = new Date();
System.out.println(date.getTime());
Date date1 = new Date(1603762365000L);
System.out.println(date1.toLocaleString());
}
}
|
[
"1205668006@qq.com"
] |
1205668006@qq.com
|
486d34630532544216bcaab4e4815a8f0c22b2ea
|
13c2d3db2d49c40c74c2e6420a9cd89377f1c934
|
/program_data/JavaProgramData/72/2352.java
|
8b1500f6f84e04b216801fc8abdc7d7f1d7949ae
|
[
"MIT"
] |
permissive
|
qiuchili/ggnn_graph_classification
|
c2090fefe11f8bf650e734442eb96996a54dc112
|
291ff02404555511b94a4f477c6974ebd62dcf44
|
refs/heads/master
| 2021-10-18T14:54:26.154367
| 2018-10-21T23:34:14
| 2018-10-21T23:34:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,068
|
java
|
package <missing>;
public class GlobalMembers
{
//********************************
//*???10?? **
//*?????? **
//*???2012.1.11 **
//*******************************/
public static int Main()
{
int m;
int n;
int[][] hei = new int[20][20];
int i;
int j;
m = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));
n = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));
for (i = 0; i < m; i++)
{
for (j = 0; j < n; j++)
{
hei[i][j] = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));
}
}
for (i = 0; i < m; i++)
{
for (j = 0; j < n; j++)
{
if (j != 0 && hei[i][j] < hei[i][j - 1])
{
continue;
}
if (j != n - 1 && hei[i][j] < hei[i][j + 1])
{
continue;
}
if (i != 0 && hei[i][j] < hei[i - 1][j])
{
continue;
}
if (i != m - 1 && hei[i][j] < hei[i + 1][j])
{
continue;
}
System.out.print(i);
System.out.print(" ");
System.out.print(j);
System.out.print("\n");
}
}
return 0;
}
}
|
[
"y.yu@open.ac.uk"
] |
y.yu@open.ac.uk
|
aa2dc2fc347bea57d274ac78ac531f5ae4406030
|
24d8cf871b092b2d60fc85d5320e1bc761a7cbe2
|
/DrJava/rev4989-5044/base-trunk-4989/src/edu/rice/cs/util/JoinInputStream.java
|
865954cad21e06af683f2c7102de6b35a9e96c3c
|
[] |
no_license
|
joliebig/featurehouse_fstmerge_examples
|
af1b963537839d13e834f829cf51f8ad5e6ffe76
|
1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad
|
refs/heads/master
| 2016-09-05T10:24:50.974902
| 2013-03-28T16:28:47
| 2013-03-28T16:28:47
| 9,080,611
| 3
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,904
|
java
|
package edu.rice.cs.util;
import java.io.*;
public class JoinInputStream extends InputStream {
public JoinInputStream(InputStream[] streams, int bufferSize) {
openedStreams = nReaders = streams.length;
reader = new ReaderThread[nReaders];
for (int i = 0; i < nReaders; i++) {
reader[i] = new ReaderThread(this, streams[i], bufferSize);
reader[i].start();
}
currentReader = 0;
}
public JoinInputStream(InputStream one, InputStream two, int bufferSize) {
this(new InputStream[] { one, two}, bufferSize);
}
public JoinInputStream(InputStream one, InputStream two) {
this(one, two, defaultBufferSize);
}
public synchronized int read() throws IOException {
while (openedStreams != 0) {
for (int i = 0; i < nReaders; i++) {
ReaderThread rd = reader[currentReader];
if (rd.available > 0) {
return rd.read();
}
currentReader += 1;
if (currentReader == nReaders) {
currentReader = 0;
}
}
try {
wait();
} catch(InterruptedException ex) {
break;
}
}
return -1;
}
public synchronized int read(byte b[], int off, int len) throws IOException {
while (openedStreams != 0) {
for (int i = 0; i < nReaders; i++) {
ReaderThread rd = reader[currentReader];
if (rd.available > 0) {
return rd.read(b, off, len);
}
currentReader += 1;
if (currentReader == nReaders) {
currentReader = 0;
}
}
try {
wait();
} catch(InterruptedException ex) {
break;
}
}
return -1;
}
public void close() throws IOException {
for (int i = 0; i < nReaders; i++) {
if (reader[i].available >= 0) {
reader[i].close();
}
}
}
public final int getStreamIndex() {
return currentReader;
}
static public int defaultBufferSize = 4096;
protected int nReaders;
protected ReaderThread[] reader;
protected int currentReader;
protected int openedStreams;
}
class ReaderThread extends Thread {
int available;
int pos;
byte[] buffer;
InputStream stream;
IOException exception;
JoinInputStream monitor;
ReaderThread(JoinInputStream monitor, InputStream stream, int bufferSize) {
this.stream = stream;
this.monitor = monitor;
buffer = new byte[bufferSize];
available = 0;
pos = 0;
exception = null;
}
public synchronized void run() {
while (true) {
int len;
try {
len = stream.read(buffer);
} catch(IOException ex) {
exception = ex;
len = -1;
}
synchronized (monitor) {
available = len;
pos = 0;
monitor.notify();
if (len < 0) {
try {
stream.close();
} catch(IOException ex) {}
monitor.openedStreams -= 1;
return;
}
}
do {
try {
wait();
} catch(InterruptedException ex) {
return;
}
} while(available != 0);
}
}
synchronized int read() throws IOException {
if (exception != null) {
throw exception;
}
int ch = buffer[pos] & 0xFF;
if (++pos == available) {
available = 0;
notify();
}
return ch;
}
synchronized int read(byte[] b, int off, int len) throws IOException {
if (exception != null) {
throw exception;
}
if (available - pos <= len) {
len = available - pos;
available = 0;
notify();
}
System.arraycopy(buffer, pos, b, off, len);
pos += len;
return len;
}
void close() throws IOException {
interrupt();
stream.close();
}
}
|
[
"joliebig@fim.uni-passau.de"
] |
joliebig@fim.uni-passau.de
|
12300654165a46bd881460cb12142a2aa5e0bbe1
|
c02d5c7c156f0b13cc03ed1c22062e468fe97c5e
|
/app/src/main/java/com/yc/wsjt/model/EmojiInfoModel.java
|
8d7382b03dce162aca8ae4614bc5ab0644b8d2a7
|
[] |
no_license
|
YangChengTeam/new_wsjt
|
e4abc35282dc337bf3bc6dc03da1b8f15ef3591d
|
b4192c4ededda08e0056959fa5adf6f8122484f7
|
refs/heads/master
| 2020-06-05T19:52:44.142169
| 2019-07-08T06:05:05
| 2019-07-08T06:05:05
| 192,530,509
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 225
|
java
|
package com.yc.wsjt.model;
import com.yc.wsjt.base.IBaseRequestCallBack;
/**
* Created by admin on 2017/4/7.
*/
public interface EmojiInfoModel<T> {
void getEmojiList(IBaseRequestCallBack<T> iBaseRequestCallBack);
}
|
[
"512710257@qq.com"
] |
512710257@qq.com
|
a0e6bb6659e8a4f52f3b0b205c0e738a6dda95c5
|
c474b03758be154e43758220e47b3403eb7fc1fc
|
/apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/tinder/purchase/p373c/C17810b.java
|
338a022d05698b237da21a92b4085d9a0f8e1559
|
[] |
no_license
|
EstebanDalelR/tinderAnalysis
|
f80fe1f43b3b9dba283b5db1781189a0dd592c24
|
941e2c634c40e5dbf5585c6876ef33f2a578b65c
|
refs/heads/master
| 2020-04-04T09:03:32.659099
| 2018-11-23T20:41:28
| 2018-11-23T20:41:28
| 155,805,042
| 0
| 0
| null | 2018-11-18T16:02:45
| 2018-11-02T02:44:34
| null |
UTF-8
|
Java
| false
| false
| 678
|
java
|
package com.tinder.purchase.p373c;
import com.tinder.api.model.purchase.BillingReceipt;
import com.tinder.api.model.purchase.PurchaseValidationWrapper;
import rx.functions.Func1;
/* renamed from: com.tinder.purchase.c.b */
final /* synthetic */ class C17810b implements Func1 {
/* renamed from: a */
private final String f55536a;
/* renamed from: b */
private final BillingReceipt f55537b;
C17810b(String str, BillingReceipt billingReceipt) {
this.f55536a = str;
this.f55537b = billingReceipt;
}
public Object call(Object obj) {
return C14488a.m55334a(this.f55536a, this.f55537b, (PurchaseValidationWrapper) obj);
}
}
|
[
"jdguzmans@hotmail.com"
] |
jdguzmans@hotmail.com
|
2c973307b1d3ff4d36769e636e89bdb1a6e429f7
|
7e0364dce3cb7ec041c5824ec68adc4bcc47568a
|
/cartOptimizationWebservice/src/org/training/constants/YcommercewebservicesConstants.java
|
5fe2a30d3e4f36256ae816558cd22188838e9503
|
[] |
no_license
|
aitp2/a1
|
055abd53719aec422134b19265634cb301f9027b
|
40ccbbd480cbc0893db5a04af97fc8a6dc150690
|
refs/heads/master
| 2021-07-23T06:23:38.889348
| 2018-10-17T01:01:45
| 2018-10-17T01:01:45
| 113,840,157
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,549
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2017 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with SAP.
*/
package org.training.constants;
@SuppressWarnings({ "PMD", "deprecation" })
public class YcommercewebservicesConstants extends GeneratedYcommercewebservicesConstants
{
public static final String MODULE_NAME = "cartOptimizationWebservice";
public static final String MODULE_WEBROOT = ("y" + "commercewebservices").equals(MODULE_NAME) ? "rest" : MODULE_NAME;
public static final String CONTINUE_URL = "session_continue_url";
public static final String CONTINUE_URL_PAGE = "session_continue_url_page";
public static final String OPTIONS_SEPARATOR = ",";
public static final String HTTP_REQUEST_PARAM_LANGUAGE = "lang";
public static final String HTTP_REQUEST_PARAM_CURRENCY = "curr";
public static final String ROOT_CONTEXT_PROPERTY = "commercewebservices.rootcontext";
public static final String V1_ROOT_CONTEXT = "/" + MODULE_WEBROOT + "/v1";
public static final String V2_ROOT_CONTEXT = "/" + MODULE_WEBROOT + "/v2";
public static final String URL_SPECIAL_CHARACTERS_PROPERTY = "commercewebservices.url.special.characters";
public static final String DEFAULT_URL_SPECIAL_CHARACTERS = "?,/";
private YcommercewebservicesConstants()
{
//empty
}
}
|
[
"mingming.wang@accenture.com"
] |
mingming.wang@accenture.com
|
61c11ddab260f549a1cc815f868cc6921aec8359
|
2d678fff672d582fcd0c25a1f10a0c11c2cd0207
|
/JavaAdvanced/FuntionalExpressionsExercise/src/FindSmallestElement.java
|
56cc0cfee42be258d82cadcca08877b98a15faa3
|
[] |
no_license
|
totopopov/SoftUniJavaOOP
|
32aea6928ba8a1eef51ad5e8a40a724d4c844a78
|
0b2eeb06fa1c9b547e0ef42bb74b6bbb16d05d7e
|
refs/heads/master
| 2021-01-18T17:53:27.274139
| 2017-08-16T17:06:21
| 2017-08-16T17:06:21
| 100,505,616
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 871
|
java
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.function.Function;
/**
* Created by Lenovo on 8.2.2017 г..
*/
public class FindSmallestElement {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int[] data = Arrays.stream(reader.readLine().split("\\s+")).mapToInt(e->Integer.parseInt(e)).toArray();
Function<int[],Integer> minValue= e-> {
int min = e[0];
int index=0;
for (int i = 0; i < e.length; i++) {
if (e[i]<=min){
min=e[i];
index=i;
}
}
return index;
};
System.out.println(minValue.apply(data));
}
}
|
[
"totopopov@gmail.com"
] |
totopopov@gmail.com
|
4e700b813d316ba65d20b692941d1740d14209a1
|
b5dc21b23f8639908df6124c123ce3d8aa617b6c
|
/time_is_key/Android_auth/classes_dex2jar/android/support/v4/view/animation/PathInterpolatorCompatApi21.java
|
347b614f9c5487a73e2a985d4158ad9d33dd79ef
|
[] |
no_license
|
warsang/wargameNDH2K17
|
d8a6863e347b45dbbb06e87328123c3372e53ec1
|
349fa667d5d9132597f8cc03044f3f05ab7f9f94
|
refs/heads/master
| 2020-12-02T22:16:45.039175
| 2017-07-03T14:00:04
| 2017-07-03T14:00:04
| 96,105,912
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 823
|
java
|
package android.support.v4.view.animation;
import android.annotation.TargetApi;
import android.graphics.Path;
import android.support.annotation.RequiresApi;
import android.view.animation.Interpolator;
import android.view.animation.PathInterpolator;
@TargetApi(21)
@RequiresApi(21)
class PathInterpolatorCompatApi21
{
private PathInterpolatorCompatApi21() {}
public static Interpolator create(float paramFloat1, float paramFloat2)
{
return new PathInterpolator(paramFloat1, paramFloat2);
}
public static Interpolator create(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
{
return new PathInterpolator(paramFloat1, paramFloat2, paramFloat3, paramFloat4);
}
public static Interpolator create(Path paramPath)
{
return new PathInterpolator(paramPath);
}
}
|
[
"warsang@hotmail.com"
] |
warsang@hotmail.com
|
444b6821f63685346706e5e22c4bb5a22cf64852
|
8b46b9c92e7b35919618b0696b3657ee13010945
|
/src/main/java/org/codelibs/fione/h2o/bindings/proxies/retrofit/DCTTransformer.java
|
55a640bcef4bdb0ac08f3c105d1933bb3c6d25f0
|
[
"Apache-2.0"
] |
permissive
|
fireae/fione
|
837bebc22f7b7d42ed3079ff212eaf17cbcfebc6
|
b26f74d2fff6b9c34f64446503dd45edf0716ed8
|
refs/heads/master
| 2021-03-11T05:02:53.309517
| 2020-03-09T20:49:31
| 2020-03-09T20:49:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,867
|
java
|
/*
* Copyright 2012-2020 CodeLibs Project and the Others.
*
* 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.codelibs.fione.h2o.bindings.proxies.retrofit;
import org.codelibs.fione.h2o.bindings.pojos.JobV3;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
public interface DCTTransformer {
/**
* Row-by-row discrete cosine transforms in 1D, 2D and 3D.
* @param dataset Dataset
* @param destination_frame Destination Frame ID
* @param dimensions Dimensions of the input array: Height, Width, Depth (Nx1x1 for 1D, NxMx1 for 2D)
* @param inverse Whether to do the inverse transform
* @param _exclude_fields Comma-separated list of JSON field paths to exclude from the result, used like:
* "/3/Frames?_exclude_fields=frames/frame_id/URL,__meta"
*/
@FormUrlEncoded
@POST("/99/DCTTransformer")
Call<JobV3> run(@Field("dataset") String dataset, @Field("destination_frame") String destination_frame,
@Field("dimensions") int[] dimensions, @Field("inverse") boolean inverse, @Field("_exclude_fields") String _exclude_fields);
@FormUrlEncoded
@POST("/99/DCTTransformer")
Call<JobV3> run(@Field("dataset") String dataset, @Field("dimensions") int[] dimensions);
}
|
[
"shinsuke@apache.org"
] |
shinsuke@apache.org
|
4ae8ad233dff6842d9f68070650ab32533ba4177
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithoutLambdas/applicationModule/src/test/java/applicationModulepackageJava12/Foo215Test.java
|
21c51fcf111f7057dc390e9912dfff66011f0141
|
[] |
no_license
|
NikitaKozlov/generated-project-for-desugaring
|
0bc1443ab3ddc84cd289331c726761585766aea7
|
81506b3711004185070ca4bb9a93482b70011d36
|
refs/heads/master
| 2020-03-20T00:35:06.996525
| 2018-06-12T09:30:37
| 2018-06-12T09:30:37
| 137,049,317
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 482
|
java
|
package applicationModulepackageJava12;
import org.junit.Test;
public class Foo215Test {
@Test
public void testFoo0() {
new Foo215().foo0();
}
@Test
public void testFoo1() {
new Foo215().foo1();
}
@Test
public void testFoo2() {
new Foo215().foo2();
}
@Test
public void testFoo3() {
new Foo215().foo3();
}
@Test
public void testFoo4() {
new Foo215().foo4();
}
@Test
public void testFoo5() {
new Foo215().foo5();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
5927d40383fe9b34fc073f74a0ec691799123da7
|
62d27da4b27f82730dfec1aa3e4f2739401dd717
|
/src/main/java/com/plkrhone/sisrh/model/Nacionalidade.java
|
12ea926047f50b52b767597186c05085ad33f746
|
[] |
no_license
|
tiagods/sisrh
|
1e5e5d8cdd474fb278f543fa95cf1f1f1e68d211
|
e1de1ce8a08be09240e9dfa920a9a4a25944c1ff
|
refs/heads/master
| 2021-09-07T02:45:14.647103
| 2018-02-16T01:42:53
| 2018-02-16T01:42:53
| 111,935,327
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,901
|
java
|
package com.plkrhone.sisrh.model;
public enum Nacionalidade {
ANTIGUA_E_BARBUDA("Antígua e Barbuda"),
ARGENTINA("Argentina"),
BAHAMAS("Bahamas"),
BARBADOS("Barbados"),
BELIZE("Belize"),
BOLIVIA("Bolívia"),
BRASIL("Brasil"),
CHILE("Chile"),
COLOMBIA("Colômbia"),
COSTA_RICA("Costa Rica"),
CUBA("Cuba"),
DOMINICA("Dominica"),
EQUADOR("Equador"),
EL_SALVADOR("El Salvador"),
GRANADA("Granada"),
GUATEMALA("Guatemala"),
GUIANA("Guiana"),
GUIANA_FRANCESA("Guiana Francesa"),
HAITI("Haiti"),
HONDURAS("Honduras"),
JAMAICA("Jamaica"),
MEXICO("México"),
NICARAGUA("Nicarágua"),
PANAMA("Panamá"),
PARAGUAI("Paraguai"),
PERU("Peru"),
PORTO_RICO("Porto Rico"),
REPUBLICA_DOMINICANA("República Dominicana"),
SAO_CRISTOVAO_E_NEVIS("São Cristóvão e Nevis"),
SAO_VICENTE_E_GRANADINAS("São Vicente e Granadinas"),
SANTA_LUCIA("Santa Lúcia"),
SURINAME("Suriname"),
TRINIDAD_E_TOBAGO("Trinidad e Tobago"),
URUGUAI("Uruguai"),
VENEZUELA("Venezuela"),
ALEMANHA("Alemanha"),
AUSTRIA("Austria"),
BELGICA("Bélgica"),
CROACIA("Croácia"),
DINAMARCA("Dinamarca"),
ESLOVAQUIA("Eslováquia"),
ESLOVENIA("Eslovênia"),
ESPANHA("Espanha"),
FRANCA("França"),
GRECIA("Grécia"),
HUNGRIA("Hungria"),
IRLANDA("Irlanda"),
ITALIA("Itália"),
NORUEGA("Noruega"),
PAISES_BAIXOS("Países Baixos"),
POLONIA("Polônia"),
PORTUGAL("Portugal"),
REINO_UNIDO("Reino Unido"),
INGLATERRA("Inglaterra"),
PAIS_DE_GALES("País de Gales"),
ESCOCIA("Escócia"),
ROMENIA("Romênia"),
RUSSIA("Rússia"),
SERVIO("Sérvio"),
SUECIA("Suécia"),
SUICA("Suíça"),
TURQUIA("Turquia"),
UCRANIA("Ucrânia"),
ESTADOS_UNIDOS("Estados Unidos"),
CANADA("Canadá"),
ANGOLA("Angola"),
MOCAMBIQUE("Moçambique"),
AFRICA_DO_SUL("Africa do Sul"),
ZIMBABUE("Zimbabue"),
ARGELIA("Argélia"),
COMORES("Comores"),
EGITO("Egito"),
LIBIA("Líbia"),
MARROCOS("Marrocos"),
GANA("Gana"),
QUENIA("Quênia"),
RUANDA("Ruanda"),
UGANDA("Uganda"),
BOTSUANA("Botsuana"),
COSTA_DO_MARFIM("Costa do Marfim"),
CAMAROES("Camarões"),
NIGERIA("Nigéria"),
SOMALIA("Somália"),
AUSTRALIA("Austrália"),
NOVA_ZELANDIA("Nova Zelândia"),
AFEGANISTAO("Afeganistão"),
ARABIA_SAUDITA("Arábia Saudita"),
ARMENIA("Armênia"),
ARMENO("Armeno"),
CHINA("China"),
COREIA_DO_NORTE("Coréia do Norte"),
COREIA_DO_SUL("Coréia do Sul"),
INDIA("India"),
INDONESIA("Indonésia"),
IRAQUE("Iraque"),
IRA("Irã"),
ISRAEL("Israel"),
JAPAO("Japão"),
MALASIA("Malásia"),
NEPAL("Nepal"),
OMA("Omã"),
PAQUISTAO("Paquistão"),
PALESTINA("Palestina"),
QATAR("Qatar"),
SIRIA("Síria"),
SRI_LANKA("Sri Lanka"),
TAILANDIA("Tailândia"),
TIMOR("Timor"),
EMIRADOS_ARABES_UNIDOS("Emirados Arabes Unidos"),
VIETNA("Vietnã"),
IEMEN("Iêmen");
private String descricao;
Nacionalidade(String descricao){
this.descricao=descricao;
}
public String getDescricao() {
return descricao;
}
}
|
[
"tiagoice@hotmail.com"
] |
tiagoice@hotmail.com
|
e26331cc49872bc106b8458301ef929909dde3c9
|
346f3b87e82448b7c60e822770efbf64ffc1bef2
|
/src/Collections.java
|
b91f277b49cbdc671ed6c92873a53c270e077825
|
[] |
no_license
|
1InfinityDoesExist/Stream
|
073f69b23d3fad5f92b306d4b9a5d2a23e6013b3
|
5afdcae1276e078378315358f966e237a48761dc
|
refs/heads/master
| 2023-02-03T16:03:33.594092
| 2020-12-22T14:27:27
| 2020-12-22T14:27:27
| 303,179,702
| 0
| 0
| null | 2020-12-22T14:27:28
| 2020-10-11T17:51:21
|
Java
|
UTF-8
|
Java
| false
| false
| 202
|
java
|
import java.util.ArrayList;
import java.util.List;
public interface Collections {
List<Integer> listOfInteger = new ArrayList<Integer>();
List<String> listOfString = new ArrayList<String>();
}
|
[
"avinash.patel@gaiansolutions.com"
] |
avinash.patel@gaiansolutions.com
|
eec9b7c973c36ea1c9b858680d58c8fc01ef4518
|
ee4cbc27087d3b7f4da7de2a36c39a2ebf381f79
|
/eis-yqfs-parent/eis-yqfs-facade/src/main/java/com/prolog/eis/model/tk/TKTaskHistory.java
|
081f3e29907b123cb52c11fcb2a501084a0d253a
|
[] |
no_license
|
Chaussure-org/eis-yq-plg
|
161126bd784095bb5eb4b45ae581439169fa0e38
|
19313dbbc74fbe79e38f35594ee5a5b3dc26b3cb
|
refs/heads/master
| 2023-01-02T08:27:57.747759
| 2020-10-19T07:22:52
| 2020-10-19T07:22:52
| 305,276,116
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,357
|
java
|
package com.prolog.eis.model.tk;
import com.prolog.framework.core.annotation.AutoKey;
import com.prolog.framework.core.annotation.Column;
import com.prolog.framework.core.annotation.Id;
import com.prolog.framework.core.annotation.Table;
import java.util.Date;
@Table("tk_task_his")
public class TKTaskHistory {
@Id
private int id;
@Column("status")
private int status;
@Column("container_no")
private String containerNo;
@Column("gmt_create_time")
private Date gmtCreateTime;
@Column("gmt_update_time")
private Date gmtUpdateTime;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public String getContainerNo() {
return containerNo;
}
public void setContainerNo(String containerNo) {
this.containerNo = containerNo;
}
public Date getGmtCreateTime() {
return gmtCreateTime;
}
public void setGmtCreateTime(Date gmtCreateTime) {
this.gmtCreateTime = gmtCreateTime;
}
public Date getGmtUpdateTime() {
return gmtUpdateTime;
}
public void setGmtUpdateTime(Date gmtUpdateTime) {
this.gmtUpdateTime = gmtUpdateTime;
}
}
|
[
"chaussure@qq.com"
] |
chaussure@qq.com
|
5c1c1e24fc9b40a0d35b2b361fd9de6da1a19c91
|
dac583dd79af02d6c44fd393331162298ed02426
|
/src/main/java/com/selectica/rcfdfs/eclm/definitions/CSalesBO/CSDetails/scripts/OnChangeForTermNoticeDateTrigger.java
|
ee19d6bc934aaac1b2b09fcf5eab967da6bb8b35
|
[] |
no_license
|
pkoptilin/ECLM_RCF_Phase0
|
b985b3e4aa0af96057b7af6bf65c6b85cff72c76
|
5a467f7dce7f956f45c8b70200e2840ee7cd3878
|
refs/heads/master
| 2020-12-11T05:37:52.708323
| 2015-07-30T10:26:12
| 2015-07-30T10:26:12
| 39,936,762
| 1
| 0
| null | 2015-07-30T07:16:21
| 2015-07-30T07:16:20
| null |
UTF-8
|
Java
| false
| false
| 2,334
|
java
|
package com.selectica.rcfdfs.eclm.definitions.CSalesBO.CSDetails.scripts;
import com.selectica.rcfdfs.stubs.CSDetails;
import com.selectica.rcfscripts.AbstractDataWriteScript;
import java.util.Calendar;
import java.util.Date;
/**
* Created by vshilkin on 08/01/2015.
*/
public class OnChangeForTermNoticeDateTrigger extends AbstractDataWriteScript<Boolean> {
/*
<![CDATA[
var termwoCause = thisComponent.getParameterValueObject("termwoCause");
if (termwoCause == 'yes') {
var ed = thisComponent.getParameterValueObject("endDate");
if (ed != null) {
var termNotice = Number(thisComponent.getParameterValueObject("termNotice"));
if (termNotice > 0) {
edCal = ed.copy();
edCal.add(Packages.java.util.Calendar.DATE, -termNotice);
thisComponent.setDateValue("/termNoticeDate", edCal, false);
}
else {
thisComponent.setValue("/termNoticeDate", "", false);
}
}
else {
thisComponent.setValue("/termNoticeDate", "", false);
}
}
else {
thisComponent.setValue("/termNoticeDate", "", false);
}
]]>
*/
@Override
public Boolean process() throws Exception {
CSDetails details = getHelper().getCurrentComponentStub();
String termwoCause = details.getTermwoCause();
if ("yes".equals(termwoCause)) {
Date end = details.getEndDate();
if (end != null) {
Integer termNotice = details.getTermNotice();
if (termNotice != null && termNotice > 0) {
Calendar endCal = Calendar.getInstance();
endCal.setTime(end);
endCal.add(Calendar.DATE, -termNotice);
details.setTermNoticeDate(endCal.getTime());
} else {
details.setTermNoticeDate(null);
}
} else {
details.setTermNoticeDate(null);
}
} else {
details.setTermNoticeDate(null);
}
return true;
}
}
|
[
"rcf@selectica.com"
] |
rcf@selectica.com
|
04429bec408f6ee23fe8b18ae68c91399c282e35
|
f7a25da32609d722b7ac9220bf4694aa0476f7b2
|
/net/minecraft/realms/RealmsButtonProxy.java
|
5ec66e3cf8b3762737037f59903e4e10c8ad1982
|
[] |
no_license
|
basaigh/temp
|
89e673227e951a7c282c50cce72236bdce4870dd
|
1c3091333f4edb2be6d986faaa026826b05008ab
|
refs/heads/master
| 2023-05-04T22:27:28.259481
| 2021-05-31T17:15:09
| 2021-05-31T17:15:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,356
|
java
|
package net.minecraft.realms;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.components.Button;
public class RealmsButtonProxy extends Button implements RealmsAbstractButtonProxy<RealmsButton> {
private final RealmsButton button;
public RealmsButtonProxy(final RealmsButton realmsButton, final int integer2, final int integer3, final String string, final int integer5, final int integer6, final OnPress a) {
super(integer2, integer3, integer5, integer6, string, a);
this.button = realmsButton;
}
@Override
public boolean active() {
return this.active;
}
@Override
public void active(final boolean boolean1) {
this.active = boolean1;
}
@Override
public boolean isVisible() {
return this.visible;
}
@Override
public void setVisible(final boolean boolean1) {
this.visible = boolean1;
}
public void setMessage(final String string) {
super.setMessage(string);
}
public int getWidth() {
return super.getWidth();
}
public int y() {
return this.y;
}
@Override
public void onClick(final double double1, final double double2) {
this.button.onPress();
}
public void onRelease(final double double1, final double double2) {
this.button.onRelease(double1, double2);
}
public void renderBg(final Minecraft cyc, final int integer2, final int integer3) {
this.button.renderBg(integer2, integer3);
}
public void renderButton(final int integer1, final int integer2, final float float3) {
this.button.renderButton(integer1, integer2, float3);
}
public void superRenderButton(final int integer1, final int integer2, final float float3) {
super.renderButton(integer1, integer2, float3);
}
@Override
public RealmsButton getButton() {
return this.button;
}
public int getYImage(final boolean boolean1) {
return this.button.getYImage(boolean1);
}
public int getSuperYImage(final boolean boolean1) {
return super.getYImage(boolean1);
}
public int getHeight() {
return this.height;
}
public boolean isHovered() {
return super.isHovered();
}
}
|
[
"mark70326511@gmail.com"
] |
mark70326511@gmail.com
|
19862ba0920f22d1714d3b6a2c26c23afe9afeec
|
f8997d63edc484edfb49c92abc5a56e3389c3286
|
/src/edu/jhu/cs/hinrg/dailyalert/android/listeners/InstanceUploaderListener.java
|
d9d9f3fc3f1642e4f391db94d62a7918f91d52fd
|
[
"BSD-3-Clause"
] |
permissive
|
ranxiao/HopkinsPD_Android
|
7cb429d523fccca2176a8b1a8f257ba7e31b5960
|
a9ec00843ba7ae3c74674dca9cdafe8644006847
|
refs/heads/master
| 2021-06-19T03:38:36.715018
| 2017-06-29T14:21:37
| 2017-06-29T14:21:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,527
|
java
|
/*
* Copyright (c) 2015 Johns Hopkins University. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
* - Neither the name of the copyright holder nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (C) 2009 University of Washington
*
* 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 edu.jhu.cs.hinrg.dailyalert.android.listeners;
import java.util.ArrayList;
/**
* @author Carl Hartung (carlhartung@gmail.com)
*/
// TODO: more useful errors in results
public interface InstanceUploaderListener {
void uploadingComplete(ArrayList<String> result);
void progressUpdate(int progress, int total);
}
|
[
"zad522@gmail.com"
] |
zad522@gmail.com
|
d31642d195532883d2e441ca5fc2c909c3d1e37b
|
30455dcf8d0db40aaa36cd54a6cf75a83812fcfb
|
/sources/com/google/ads/mediation/customevent/b.java
|
b3db191bf437c5569ac2ffb504d11240ac01bca1
|
[] |
no_license
|
excellmania/FastCharger
|
76c294ca3d172bfdc8bbba46c0f9d38a7e444510
|
536d0ead49ee2574e7f6a889e81515b899c23a9a
|
refs/heads/master
| 2020-05-01T03:26:45.850182
| 2019-03-23T05:53:49
| 2019-03-23T05:53:49
| 177,245,158
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 255
|
java
|
package com.google.ads.mediation.customevent;
import android.app.Activity;
@Deprecated
public interface b extends a {
void a(c cVar, Activity activity, String str, String str2, com.google.ads.b bVar, com.google.ads.mediation.b bVar2, Object obj);
}
|
[
"47793867+excellmania@users.noreply.github.com"
] |
47793867+excellmania@users.noreply.github.com
|
6ee0ffc1224caa368fd6828c2f7313bfac6040dd
|
8f70fe0e87e308fe3dc8cfe9a515a315ed131d18
|
/src/test/java/com/sugarcrm/test/employees/Employees_20144.java
|
1f0020a4b0210ebbc153c93fb00d1d2c2e9b3e3a
|
[] |
no_license
|
mustaeenbasit/LKW-Walter_Automation
|
76fd02c34c766bc34a5c300e3f5943664c70d67b
|
a97f4feca8e51c21f3cef1949573a8e4909e7143
|
refs/heads/master
| 2020-04-09T17:54:32.252374
| 2018-12-05T09:49:29
| 2018-12-05T09:49:29
| 160,495,697
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,883
|
java
|
package com.sugarcrm.test.employees;
import org.junit.Test;
import com.sugarcrm.candybean.datasource.DataSource;
import com.sugarcrm.sugar.VoodooControl;
import com.sugarcrm.sugar.VoodooUtils;
import com.sugarcrm.test.SugarTest;
public class Employees_20144 extends SugarTest {
public void setup() throws Exception {
sugar.login();
}
/**
* Can't create relationship between Employees and other modules
*
* @throws Exception
*/
@Test
public void Employees_20144_execute() throws Exception {
VoodooUtils.voodoo.log.info("Running " + testName + "...");
DataSource ds = testData.get(testName);
sugar.navbar.navToAdminTools();
VoodooUtils.focusFrame("bwc-frame");
sugar.admin.adminTools.getControl("studio").click();
// TODO VOOD-542
new VoodooControl("div", "id", "mblayout").waitForVisible();
for(int i=0;i<ds.size();i++) {
// open create relationship window from studio
new VoodooControl("a", "id", "studiolink_"+ds.get(i).get("module")).click();
new VoodooControl("td", "id", "relationshipsBtn").waitForVisible();
new VoodooControl("a", "css", "#relationshipsBtn a.studiolink").click();
new VoodooControl("div", "id", "relGrid").waitForVisible();
new VoodooControl("input", "css", "div#mbtabs input[name='addrelbtn']").click();
new VoodooControl("form", "css", "form[name='relform']").waitForVisible();
// check no Employees option show in related module list
new VoodooControl("option", "css", "select#rhs_mod_field option[value='"+ds.get(i).get("employees")+"']").assertExists(false);
new VoodooControl("input", "css", "input[name='cancelbtn']").click();
new VoodooControl("a", "css", "div.bodywrapper div a:nth-child(3)").click();
new VoodooControl("div", "id", "mblayout").waitForVisible();
}
VoodooUtils.voodoo.log.info(testName + " complete.");
}
public void cleanup() throws Exception {}
}
|
[
"mustaeen.basit@ROLUSTECH.NET"
] |
mustaeen.basit@ROLUSTECH.NET
|
f439e481bdda16047b6287b6b55f9725ebad4997
|
544cfadc742536618168fc80a5bd81a35a5f2c99
|
/developers/samples/android/content/SharingShortcuts/Application/src/main/java/com/example/android/sharingshortcuts/Contact.java
|
e5f25b3234546a42202c14a9784cf19cc4e8ffdd
|
[] |
no_license
|
ZYHGOD-1/Aosp11
|
0400619993b559bf4380db2da0addfa9cccd698d
|
78a61ca023cbf1a0cecfef8b97df2b274ac3a988
|
refs/heads/main
| 2023-04-21T20:13:54.629813
| 2021-05-22T05:28:21
| 2021-05-22T05:28:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,365
|
java
|
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.android.sharingshortcuts;
import androidx.annotation.NonNull;
/**
* Provides the list of placeholder contacts. This sample implements this as constants, but real-life apps
* should use a database and such.
*/
public class Contact {
/**
* The list of placeholder contacts.
*/
public static final Contact[] CONTACTS = {
new Contact("Tereasa"),
new Contact("Chang"),
new Contact("Kory"),
new Contact("Clare"),
new Contact("Landon"),
new Contact("Kyle"),
new Contact("Deana"),
new Contact("Daria"),
new Contact("Melisa"),
new Contact("Sammie"),
};
/**
* The contact ID.
*/
public static final String ID = "contact_id";
/**
* Representative invalid contact ID.
*/
public static final int INVALID_ID = -1;
/**
* The name of this contact.
*/
private final String mName;
/**
* Instantiates a new {@link Contact}.
*
* @param name The name of the contact.
*/
public Contact(@NonNull String name) {
mName = name;
}
/**
* Finds a {@link Contact} specified by a contact ID.
*
* @param id The contact ID. This needs to be a valid ID.
* @return A {@link Contact}
*/
public static Contact byId(int id) {
return CONTACTS[id];
}
/**
* Gets the name of this contact.
*
* @return The name of this contact.
*/
public String getName() {
return mName;
}
/**
* Gets the icon of this contact.
*
* @return The icon.
*/
public int getIcon() {
return R.mipmap.logo_avatar;
}
}
|
[
"rick_tan@qq.com"
] |
rick_tan@qq.com
|
baec6b1d55c6286432c16fb697e50e4e100bf078
|
e1103d01d803d3d6f2606e660af4f0df18790dfb
|
/src/main/java/com/neuedu/pojo/Category.java
|
0fb48872bbe8ea4381a1d48ee7db051c13fc5b10
|
[] |
no_license
|
xiaohei12378/fy2019-yanda-business-manage
|
35a42e5ca6c3d86857d4abee95f5bd6c8d616b93
|
9eb4cbf4364714f408c2417e5fc897c8260ceb49
|
refs/heads/master
| 2022-12-24T09:52:32.354140
| 2019-08-09T01:37:13
| 2019-08-09T01:37:13
| 200,782,169
| 0
| 0
| null | 2022-12-15T23:24:45
| 2019-08-06T05:25:08
|
Java
|
UTF-8
|
Java
| false
| false
| 6,014
|
java
|
package com.neuedu.pojo;
import java.util.Date;
public class Category {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column neuedu_category.id
*
* @mbggenerated
*/
private Integer id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column neuedu_category.parent_id
*
* @mbggenerated
*/
private Integer parentId;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column neuedu_category.name
*
* @mbggenerated
*/
private String name;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column neuedu_category.status
*
* @mbggenerated
*/
private Integer status;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column neuedu_category.sort_order
*
* @mbggenerated
*/
private Integer sortOrder;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column neuedu_category.create_time
*
* @mbggenerated
*/
private Date createTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column neuedu_category.update_time
*
* @mbggenerated
*/
private Date updateTime;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column neuedu_category.id
*
* @return the value of neuedu_category.id
*
* @mbggenerated
*/
public Integer getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column neuedu_category.id
*
* @param id the value for neuedu_category.id
*
* @mbggenerated
*/
public void setId(Integer id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column neuedu_category.parent_id
*
* @return the value of neuedu_category.parent_id
*
* @mbggenerated
*/
public Integer getParentId() {
return parentId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column neuedu_category.parent_id
*
* @param parentId the value for neuedu_category.parent_id
*
* @mbggenerated
*/
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column neuedu_category.name
*
* @return the value of neuedu_category.name
*
* @mbggenerated
*/
public String getName() {
return name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column neuedu_category.name
*
* @param name the value for neuedu_category.name
*
* @mbggenerated
*/
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column neuedu_category.status
*
* @return the value of neuedu_category.status
*
* @mbggenerated
*/
public Integer getStatus() {
return status;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column neuedu_category.status
*
* @param status the value for neuedu_category.status
*
* @mbggenerated
*/
public void setStatus(Integer status) {
this.status = status;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column neuedu_category.sort_order
*
* @return the value of neuedu_category.sort_order
*
* @mbggenerated
*/
public Integer getSortOrder() {
return sortOrder;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column neuedu_category.sort_order
*
* @param sortOrder the value for neuedu_category.sort_order
*
* @mbggenerated
*/
public void setSortOrder(Integer sortOrder) {
this.sortOrder = sortOrder;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column neuedu_category.create_time
*
* @return the value of neuedu_category.create_time
*
* @mbggenerated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column neuedu_category.create_time
*
* @param createTime the value for neuedu_category.create_time
*
* @mbggenerated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column neuedu_category.update_time
*
* @return the value of neuedu_category.update_time
*
* @mbggenerated
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column neuedu_category.update_time
*
* @param updateTime the value for neuedu_category.update_time
*
* @mbggenerated
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
|
[
"123456@qq.com"
] |
123456@qq.com
|
af2d74e91e7e7fabbefa6eccd1ebeb088bd745a9
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project89/src/main/java/org/gradle/test/performance89_5/Production89_481.java
|
6b171aed1e0ef3623ad0913048903de1a23074d2
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 305
|
java
|
package org.gradle.test.performance89_5;
public class Production89_481 extends org.gradle.test.performance16_5.Production16_481 {
private final String property;
public Production89_481() {
this.property = "foo";
}
public String getProperty() {
return property;
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
c533cd730eba10443f3fbe3f5bd00938a873259d
|
d3a1b4e3f7cad1eddba7766875479f0b93329d6d
|
/app/src/test/java/com/localheroes/vendor/ExampleUnitTest.java
|
63f19a14a6c745921ae37802f8b64792be6008da
|
[] |
no_license
|
kammy92/LocalHeroesVendor
|
9549cbbc117f107a62c99b4f758bf4c7e7d884d4
|
baefa0c7fbeb04771d6f04eb1c3b71c69c2622b1
|
refs/heads/master
| 2020-05-04T06:26:21.718303
| 2019-04-02T05:35:54
| 2019-04-02T05:35:54
| 179,006,000
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 385
|
java
|
package com.localheroes.vendor;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect () {
assertEquals (4, 2 + 2);
}
}
|
[
"karman.singhh@gmail.com"
] |
karman.singhh@gmail.com
|
7ba4c7cab0ea9843e545c745183b5533a11fd22f
|
c9eea548cdd7b45952da73191be982c117fe05ff
|
/src/farruh/arch/hub/patterns/creational/singleton/SingletonSerializedTest.java
|
8be090007c9e1c53f8d953ecf1d896c47db7c832
|
[] |
no_license
|
manhnguyenv/architect-patterns
|
fd6304e1e72936e01efbfeae1d2e770fe6465683
|
6ab2efbcadb1bdae42296b8813290268d2052228
|
refs/heads/master
| 2020-06-19T18:09:13.524828
| 2018-03-16T05:19:34
| 2018-03-16T05:19:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 165
|
java
|
package farruh.arch.hub.patterns.creational.singleton;
import java.io.FileNotFoundException;
import java.io.IOException;
public class SingletonSerializedTest {
}
|
[
"germany-2013@mail.ru"
] |
germany-2013@mail.ru
|
1c620c2cf1f307d9d7d730b6408a78f6cf995918
|
f0ba56521edc9f75af9bab7b7453b49ccab9e970
|
/blueprints-neo4j-graph/src/main/java/com/tinkerpop/blueprints/pgm/impls/neo4j/util/Neo4jGraphEdgeSequence.java
|
8ae022fb12a8c7df18dfcc8d7a7defafeddb943c
|
[
"BSD-3-Clause"
] |
permissive
|
rjurney/blueprints
|
a84c044b576d4fbe6c3f25c46d11f82d9431b9e9
|
ffdf51a03a271fdda3c5b6d3fb9c2cd6cb4645e4
|
refs/heads/master
| 2021-01-16T21:53:02.203421
| 2011-06-24T01:01:27
| 2011-06-24T01:01:27
| 1,835,120
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,789
|
java
|
package com.tinkerpop.blueprints.pgm.impls.neo4j.util;
import com.tinkerpop.blueprints.pgm.Edge;
import com.tinkerpop.blueprints.pgm.impls.neo4j.Neo4jEdge;
import com.tinkerpop.blueprints.pgm.impls.neo4j.Neo4jGraph;
import org.neo4j.graphdb.Direction;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.Relationship;
import java.util.Iterator;
/**
* @author Marko A. Rodriguez (http://markorodriguez.com)
*/
public class Neo4jGraphEdgeSequence implements Iterator<Edge>, Iterable<Edge> {
private final Neo4jGraph graph;
private final Iterator<Node> nodes;
private Iterator<Relationship> currentRelationships;
private boolean complete = false;
public Neo4jGraphEdgeSequence(final Iterable<Node> nodes, final Neo4jGraph graph) {
this.graph = graph;
this.nodes = nodes.iterator();
this.complete = this.goToNextEdge();
}
public Edge next() {
Edge edge = new Neo4jEdge(currentRelationships.next(), this.graph);
this.complete = this.goToNextEdge();
return edge;
}
public boolean hasNext() {
return !this.complete;
}
public void remove() {
throw new UnsupportedOperationException();
}
private boolean goToNextEdge() {
while (true) {
if (this.currentRelationships == null || !this.currentRelationships.hasNext()) {
if (this.nodes.hasNext()) {
this.currentRelationships = nodes.next().getRelationships(Direction.OUTGOING).iterator();
} else {
return true;
}
}
if (this.currentRelationships.hasNext()) {
return false;
}
}
}
public Iterator<Edge> iterator() {
return this;
}
}
|
[
"okrammarko@gmail.com"
] |
okrammarko@gmail.com
|
e1b1e9c598c94cc0f2eb9a7062038614fc8dd90d
|
459e32944a58e1d5b3ef8681911a1d423c742fd2
|
/src/main/java/com/peony/peonydata/channel/model/PubInfoCnt.java
|
ba5cf447f1249d33dba685ebd9578612110e4022
|
[] |
no_license
|
ganzhiping/peony-cms
|
48acd8f1dab24fade980c378ad905d9726c907e1
|
e00ee2e2de22d4c2f4d7bca5af442e51c70c0ba8
|
refs/heads/master
| 2021-04-16T03:35:04.417446
| 2018-03-23T02:16:18
| 2018-03-23T02:16:18
| 126,419,749
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 441
|
java
|
package com.peony.peonydata.channel.model;
public class PubInfoCnt {
private Integer pubinfoId;
private String content;
public Integer getPubinfoId() {
return pubinfoId;
}
public void setPubinfoId(Integer pubinfoId) {
this.pubinfoId = pubinfoId;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
}
|
[
"695203640@qq.com"
] |
695203640@qq.com
|
c7fc24b0238b71822a58c50b8146838655de87b7
|
67d2ae1ec26596d526a041c1089bbfd73ea35d24
|
/gmall-ums-interface/src/main/java/com/atguigu/gmall/ums/entity/UserAddressEntity.java
|
cefa2db464e52808e75e3e0ccf6012d22b75bf9d
|
[] |
no_license
|
joedyli/gmall-0316
|
610c1be586ec0b1d2c772a9709bba76e5c17c03e
|
26d0ba3fcb5a44b906038dc338a8bc7e380bf1d1
|
refs/heads/master
| 2022-12-09T09:22:27.770766
| 2020-09-14T08:01:24
| 2020-09-14T08:01:24
| 289,162,294
| 3
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 951
|
java
|
package com.atguigu.gmall.ums.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 收货地址表
*
* @author fengge
* @email fengge@atguigu.com
* @date 2020-09-05 15:51:59
*/
@Data
@TableName("ums_user_address")
public class UserAddressEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
@TableId
private Long id;
/**
* member_id
*/
private Long userId;
/**
* 收货人
*/
private String name;
/**
* 电话
*/
private String phone;
/**
* 右边
*/
private String postCode;
/**
* 省份
*/
private String province;
/**
* 城市
*/
private String city;
/**
* 区
*/
private String region;
/**
* 详细地址
*/
private String address;
/**
* 是否默认地址
*/
private Integer defaultStatus;
}
|
[
"joedy23@aliyun.com"
] |
joedy23@aliyun.com
|
4be008da78ed988d9a2b962c173620f15b760457
|
5fea7aa14b5db9be014439121ee7404b61c004aa
|
/src/com/tms/collab/directory/model/AddressBookDaoOracle.java
|
d262501ba69109a49adf37450ffbf38f40e7c061
|
[] |
no_license
|
fairul7/eamms
|
d7ae6c841e9732e4e401280de7e7d33fba379835
|
a4ed0495c0d183f109be20e04adbf53e19925a8c
|
refs/heads/master
| 2020-07-06T06:14:46.330124
| 2013-05-31T04:18:19
| 2013-05-31T04:18:19
| 28,168,318
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,245
|
java
|
package com.tms.collab.directory.model;
import kacang.model.DaoException;
import java.util.Collection;
import java.util.ArrayList;
import java.util.HashMap;
public class AddressBookDaoOracle extends AddressBookDao
{
/**
* Overridden to cater for ORACLE's inability to tell the difference between an empty string and a
* NULL value as is required by parentId
* @param query
* @param parentId
* @param userId
* @param sort
* @param desc
* @param start
* @param rows
* @return A Collection of Folder objects.
*/
public Collection selectFolderList(String query, String parentId, String userId, String sort, boolean desc, int start, int rows) throws DaoException
{
// formulate SQL and parameters
Collection args = new ArrayList();
StringBuffer sql = new StringBuffer("SELECT id, parentId, name, description, userId FROM " + getTablePrefix() + "_folder WHERE 1=1");
if (query != null && query.trim().length() > 0)
{
query = "%" + query.trim() + "%";
sql.append(" AND (name LIKE ? OR description LIKE ?)");
args.add(query);
args.add(query);
}
if (parentId != null)
{
if("".equals(parentId))
sql.append(" AND parentId IS NULL");
else
{
sql.append(" AND parentId=?");
args.add(parentId);
}
}
if (userId != null)
{
sql.append(" AND userId=?");
args.add(userId);
}
// determine sorting
if (sort != null && sort.trim().length() > 0)
{
sql.append(" ORDER BY " + sort);
if (desc)
sql.append(" DESC");
}
Collection results = super.select(sql.toString(), Folder.class, args.toArray(), start, rows);
return results;
}
/**
* Overridden to cater for ORACLE's inability to tell the difference between an empty string and a
* NULL value as is required by parentId
* @param query
* @param parentId
* @param userId
* @return
* @throws DaoException
*/
public int selectFolderCount(String query, String parentId, String userId) throws DaoException {
// formulate SQL and parameters
Collection args = new ArrayList();
StringBuffer sql = new StringBuffer("SELECT COUNT(id) AS total FROM " + getTablePrefix() + "_folder WHERE 1=1");
if (query != null && query.trim().length() > 0)
{
query = "%" + query.trim() + "%";
sql.append(" AND (name LIKE ? OR description LIKE ?)");
args.add(query);
args.add(query);
}
if (parentId != null)
{
if("".equals(parentId))
sql.append(" AND parentId IS NULL");
else
{
sql.append(" AND parentId=?");
args.add(parentId);
}
}
if (userId != null)
{
sql.append(" AND userId=?");
args.add(userId);
}
Collection results = super.select(sql.toString(), HashMap.class, args.toArray(), 0, 1);
HashMap row = (HashMap)results.iterator().next();
return Integer.parseInt(row.get("total").toString());
}
}
|
[
"fairul@a9c4ac11-bb59-4888-a949-8c1c6fc09797"
] |
fairul@a9c4ac11-bb59-4888-a949-8c1c6fc09797
|
e1ae2bed18a3e8695b95f567e9502906bfe7cb4c
|
9ac5d5abac5adf8281a139f87baf0cb8c4320e04
|
/src/cc/test/model/ResultModel.java
|
0a688ffa03802135f1865f18f946b43b58dad95a
|
[] |
no_license
|
winglight/questions
|
6bd46dda03e9326b776eb51633844750e7c75538
|
05157d899184b8ecf6fbb8e3a3edb439abba827c
|
refs/heads/master
| 2021-01-10T19:32:47.492190
| 2014-04-03T08:47:11
| 2014-04-03T08:47:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,288
|
java
|
package cc.test.model;
public class ResultModel {
public static final String EMAIL="email";
public static final String QUESTION_CODES="questionCodes";
public static final String QUESTION_ANSWER_CODES="questionAnswerCodes";
public static final String SUBMIT_TIME="submitTime";
public static final String RITHT_PERCENT="rightPercent";
private String email;
private String questionCodes;
private String questionAnswerCodes;
private long submitTime;
private double rightPercent;
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getQuestionCodes() {
return questionCodes;
}
public void setQuestionCodes(String questionCodes) {
this.questionCodes = questionCodes;
}
public String getQuestionAnswerCodes() {
return questionAnswerCodes;
}
public void setQuestionAnswerCodes(String questionAnswerCodes) {
this.questionAnswerCodes = questionAnswerCodes;
}
public long getSubmitTime() {
return submitTime;
}
public void setSubmitTime(long submitTime) {
this.submitTime = submitTime;
}
public double getRightPercent() {
return rightPercent;
}
public void setRightPercent(double rightPercent) {
this.rightPercent = rightPercent;
}
}
|
[
"wing_light@hotmail.com"
] |
wing_light@hotmail.com
|
d94a9ec3acaf5224af036f317f90e8ab17563a96
|
08b8d598fbae8332c1766ab021020928aeb08872
|
/src/gcom/gui/atendimentopublico/ExibirGerarContratoPrestacaoServicoJuridicoAction.java
|
f671ee905357df56f4489447e9cb0c7071ddccf6
|
[] |
no_license
|
Procenge/GSAN-CAGEPA
|
53bf9bab01ae8116d08cfee7f0044d3be6f2de07
|
dfe64f3088a1357d2381e9f4280011d1da299433
|
refs/heads/master
| 2020-05-18T17:24:51.407985
| 2015-05-18T23:08:21
| 2015-05-18T23:08:21
| 25,368,185
| 3
| 1
| null | null | null | null |
WINDOWS-1252
|
Java
| false
| false
| 5,628
|
java
|
/*
* Copyright (C) 2007-2007 the GSAN – Sistema Integrado de Gestão de Serviços de Saneamento
*
* This file is part of GSAN, an integrated service management system for Sanitation
*
* GSAN is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License.
*
* GSAN is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place – Suite 330, Boston, MA 02111-1307, USA
*/
/*
* GSAN – Sistema Integrado de Gestão de Serviços de Saneamento
* Copyright (C) <2007>
* Adriano Britto Siqueira
* Alexandre Santos Cabral
* Ana Carolina Alves Breda
* Ana Maria Andrade Cavalcante
* Aryed Lins de Araújo
* Bruno Leonardo Rodrigues Barros
* Carlos Elmano Rodrigues Ferreira
* Cláudio de Andrade Lira
* Denys Guimarães Guenes Tavares
* Eduardo Breckenfeld da Rosa Borges
* Fabíola Gomes de Araújo
* Flávio Leonardo Cavalcanti Cordeiro
* Francisco do Nascimento Júnior
* Homero Sampaio Cavalcanti
* Ivan Sérgio da Silva Júnior
* José Edmar de Siqueira
* José Thiago Tenório Lopes
* Kássia Regina Silvestre de Albuquerque
* Leonardo Luiz Vieira da Silva
* Márcio Roberto Batista da Silva
* Maria de Fátima Sampaio Leite
* Micaela Maria Coelho de Araújo
* Nelson Mendonça de Carvalho
* Newton Morais e Silva
* Pedro Alexandre Santos da Silva Filho
* Rafael Corrêa Lima e Silva
* Rafael Francisco Pinto
* Rafael Koury Monteiro
* Rafael Palermo de Araújo
* Raphael Veras Rossiter
* Roberto Sobreira Barbalho
* Rodrigo Avellar Silveira
* Rosana Carvalho Barbosa
* Sávio Luiz de Andrade Cavalcante
* Tai Mu Shih
* Thiago Augusto Souza do Nascimento
* Tiago Moreno Rodrigues
* Vivianne Barbosa Sousa
*
* Este programa é software livre; você pode redistribuí-lo e/ou
* modificá-lo sob os termos de Licença Pública Geral GNU, conforme
* publicada pela Free Software Foundation; versão 2 da
* Licença.
* Este programa é distribuído na expectativa de ser útil, mas SEM
* QUALQUER GARANTIA; sem mesmo a garantia implícita de
* COMERCIALIZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM
* PARTICULAR. Consulte a Licença Pública Geral GNU para obter mais
* detalhes.
* Você deve ter recebido uma cópia da Licença Pública Geral GNU
* junto com este programa; se não, escreva para Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307, USA.
*/
package gcom.gui.atendimentopublico;
import gcom.cadastro.cliente.Cliente;
import gcom.cadastro.cliente.FiltroCliente;
import gcom.fachada.Fachada;
import gcom.gui.GcomAction;
import gcom.util.filtro.ParametroSimples;
import java.util.Collection;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
/**
* Permite gerar o relatório do contrato de prestação de serviço
* [UC0XXX] Gerar Contrato de Prestação de Serviço
*
* @author Rafael Corrêa
* @since 03/05/2007
*/
public class ExibirGerarContratoPrestacaoServicoJuridicoAction
extends GcomAction {
/**
* @param actionMapping
* @param actionForm
* @param httpServletRequest
* @param httpServletResponse
* @return
*/
public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse){
GerarContratoPrestacaoServicoJuridicoActionForm gerarContratoPrestacaoServicoActionForm = (GerarContratoPrestacaoServicoJuridicoActionForm) actionForm;
Fachada fachada = Fachada.getInstancia();
// Seta o mapeamento de retorno
ActionForward retorno = actionMapping.findForward("exibirGerarContratoPrestacaoServicoJuridico");
String idImovel = gerarContratoPrestacaoServicoActionForm.getIdImovel();
String idCliente = gerarContratoPrestacaoServicoActionForm.getIdCliente();
if(idImovel != null && !idImovel.trim().equals("")){
String inscricaoImovel = fachada.pesquisarInscricaoImovel(new Integer(idImovel), true);
if(inscricaoImovel != null && !inscricaoImovel.trim().equals("")){
gerarContratoPrestacaoServicoActionForm.setInscricao(inscricaoImovel);
}else{
gerarContratoPrestacaoServicoActionForm.setIdImovel("");
gerarContratoPrestacaoServicoActionForm.setInscricao("MATRÍCULA INEXISTENTE");
httpServletRequest.setAttribute("matriculaInexistente", true);
}
}
if(idCliente != null && !idCliente.trim().equals("")){
FiltroCliente filtroCliente = new FiltroCliente();
filtroCliente.adicionarParametro(new ParametroSimples(FiltroCliente.ID, new Integer(idCliente)));
Collection clientes = fachada.pesquisarCliente(filtroCliente);
if(!clientes.isEmpty()){
Cliente cliente = (Cliente) clientes.iterator().next();
if(cliente != null){
gerarContratoPrestacaoServicoActionForm.setNomeCliente(cliente.getNome());
}
}else{
gerarContratoPrestacaoServicoActionForm.setIdCliente("");
gerarContratoPrestacaoServicoActionForm.setNomeCliente("CLIENTE INEXISTENTE");
httpServletRequest.setAttribute("clienteInexistente", true);
}
}
return retorno;
}
}
|
[
"Yara.Souza@procenge.com.br"
] |
Yara.Souza@procenge.com.br
|
8d8dd8c2edc4cf54eb6ac265504ecd183cc1b28a
|
9254e7279570ac8ef687c416a79bb472146e9b35
|
/vpc-20160428/src/main/java/com/aliyun/vpc20160428/models/ModifyIPv6TranslatorAclAttributeResponseBody.java
|
8ddb0a3ddc602b1815fa1274068e205e14c2b238
|
[
"Apache-2.0"
] |
permissive
|
lquterqtd/alibabacloud-java-sdk
|
3eaa17276dd28004dae6f87e763e13eb90c30032
|
3e5dca8c36398469e10cdaaa34c314ae0bb640b4
|
refs/heads/master
| 2023-08-12T13:56:26.379027
| 2021-10-19T07:22:15
| 2021-10-19T07:22:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 762
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.vpc20160428.models;
import com.aliyun.tea.*;
public class ModifyIPv6TranslatorAclAttributeResponseBody extends TeaModel {
@NameInMap("RequestId")
public String requestId;
public static ModifyIPv6TranslatorAclAttributeResponseBody build(java.util.Map<String, ?> map) throws Exception {
ModifyIPv6TranslatorAclAttributeResponseBody self = new ModifyIPv6TranslatorAclAttributeResponseBody();
return TeaModel.build(map, self);
}
public ModifyIPv6TranslatorAclAttributeResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
85b265b43ca0f145d56159685c8e834982376765
|
e3c7db733b85f2b7a25ec829bd85b80d994a5494
|
/domain-accounts/src/main/java/vn/vmg/ptdv/hola/account/service/impl/VAUseCaseImpl.java
|
a7c150a83afc0be6133f330528ef3258d80ab2c9
|
[] |
no_license
|
HoangHieuBK/Holaship
|
c15cc1c47367ede4de4d7bac12850b2201d85c98
|
c49f0dcf82f5886080e024fa3802d628e4808ea8
|
refs/heads/master
| 2022-12-31T00:04:20.974666
| 2020-10-15T06:26:52
| 2020-10-15T06:26:52
| 304,214,124
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,925
|
java
|
package vn.vmg.ptdv.hola.account.service.impl;
import vn.vmg.ptdv.hola.account.core.AccountId;
import vn.vmg.ptdv.hola.account.core.AuditLog;
import vn.vmg.ptdv.hola.account.core.BankIMediaProvider;
import vn.vmg.ptdv.hola.account.core.BankInfo;
import vn.vmg.ptdv.hola.account.exception.AccountDomainException;
import vn.vmg.ptdv.hola.account.factory.CashInfo;
import vn.vmg.ptdv.hola.account.factory.HolaAccount;
import vn.vmg.ptdv.hola.account.factory.VAInfo;
import vn.vmg.ptdv.hola.account.presentation.BankAccountResponse;
import vn.vmg.ptdv.hola.account.presentation.VARegisterRequest;
import vn.vmg.ptdv.hola.account.presentation.VAResponse;
import vn.vmg.ptdv.hola.account.repository.AccountRepository;
import vn.vmg.ptdv.hola.account.repository.CashRepository;
import vn.vmg.ptdv.hola.account.repository.VARepository;
import vn.vmg.ptdv.hola.account.service.usecase.VAUseCase;
public class VAUseCaseImpl implements VAUseCase {
private final VARepository vaRepository;
private final CashRepository cashRepository;
private VAInfo vaInfo;
private CashInfo cashInfo;
private CashInfo cashInfoIMedia;
private HolaAccount holaAccount;
private boolean created = true;
private boolean updated = true;
private final AccountRepository accountRepository;
public VAUseCaseImpl(VARepository vaRepository, CashRepository cashRepository,
AccountRepository accountRepository) {
this.vaRepository = vaRepository;
this.cashRepository = cashRepository;
this.accountRepository = accountRepository;
}
//getVaByUserId;
@Override
public VAUseCase findVAByUserId(AccountId accountId) {
accountId.setId(holaAccount.getAccountId().getId());
vaInfo = vaRepository.getVAAccount(accountId);
return this;
}
@Override
public VAUseCase findVAByUserIdNotFound() throws AccountDomainException {
if (vaInfo == null) {
throw new AccountDomainException("VA-wallet khong ton tai");
}
return this;
}
@Override
public VAInfo endFindVAByUserId() {
return vaInfo;
}
//Register VA-wallet;
@Override
public VAUseCase createVAWalletIMedia(VARegisterRequest request) throws AccountDomainException {
vaInfo = vaRepository.registerVAAccount(request);
return this;
}
@Override
public VAUseCase findVAByUserIdIsExist() throws AccountDomainException {
if (vaInfo != null) {
//To do khi app-shop(update ship shop tuong ung)
throw new AccountDomainException("VA-wallet da ton tai!");
}
return this;
}
@Override
public VAUseCase createVAWallet() throws AccountDomainException {
created = vaRepository.InsertVAAccount(vaInfo);
return this;
}
@Override
public VAUseCase failCreateVA() throws AccountDomainException {
if (!created) {
throw new AccountDomainException("Insert fail va wallet into db");
}
return this;
}
@Override
public VAResponse endCreateVA() {
VAResponse response = new VAResponse();
response.setShipCode(vaInfo.getShipCode());
response.setUserName(vaInfo.getUserName());
response.setShopCode(vaInfo.getShopCode());
return response;
}
//confirm-bank
@Override
public VAUseCase findBankAccount(AccountId accountId, BankInfo info) {
accountId.setId(holaAccount.getAccountId().getId());
cashInfo = cashRepository.getBankAccount(accountId, info);
return this;
}
@Override
public VAUseCase findBankAccountByPhoneNumberIsExist() throws AccountDomainException {
if (cashInfo != null) {
throw new AccountDomainException("Bank-account da ton tai");
}
return this;
}
@Override
public VAUseCase confirmBankInfoIMedia(AccountId accountId, BankIMediaProvider bankIMediaProvider,
BankInfo bankInfo, String otp) throws AccountDomainException {
boolean verifyIMedia = accountRepository.verifyIMedia(accountId.getPhoneNumber(), otp);
if (verifyIMedia) {
cashInfoIMedia = cashRepository.confirmInfoCash(accountId, bankIMediaProvider, bankInfo);
}
return this;
}
@Override
public VAUseCase failIMediaResponse() throws AccountDomainException {
if (cashInfoIMedia == null) {
throw new AccountDomainException("Response IMedia == null");
}
return this;
}
@Override
public VAUseCase failGetAccount() throws AccountDomainException {
if (holaAccount.getAccountId().getId() == null) {
throw new AccountDomainException("Không tim thấy user");
}
return this;
}
@Override
public VAUseCase getHolaAccount(AccountId accountId) {
holaAccount = accountRepository.findByAccountId(accountId, null);
return this;
}
@Override
public VAUseCase createBankAccountIfNone(AccountId accountId) throws AccountDomainException {
if (cashInfo.getBankInfo() == null) {
accountId.setId(holaAccount.getAccountId().getId());
created = cashRepository.insertCash(cashInfoIMedia, accountId);
}
return this;
}
@Override
public VAUseCase updateBankAccountElse(AuditLog auditLog, AccountId accountId) throws AccountDomainException {
// if (cashInfo.getBankInfo() != null) {
// updated = cashRepository.updateCash(cashInfoIMedia, auditLog, accountId);
// }
return this;
}
@Override
public VAUseCase failCreateBank() throws AccountDomainException {
if (!created) {
throw new AccountDomainException("Insert fail bank into db usecase");
}
return this;
}
@Override
public VAUseCase failUpdateBank() throws AccountDomainException {
if (!updated) {
throw new AccountDomainException("Update fail bank usecase");
}
return this;
}
@Override
public BankAccountResponse endConfirmBankAccount() {
BankAccountResponse response = new BankAccountResponse();
BankInfo info = cashRepository.getBankNameByBankCode(cashInfoIMedia.getBankInfo().getBankCode());
response.setBankAccount(cashInfoIMedia.getBankInfo().getBankAccount());
response.setBankAccountName(cashInfoIMedia.getBankInfo().getBankAccountName());
response.setBankName(info.getBankName());
response.setType(cashInfoIMedia.getBankInfo().getType());
response.setBankCode(cashInfoIMedia.getBankInfo().getBankCode());
response.setBankShortName(info.getCode());
response.setPartnerCode(cashInfoIMedia.getBankIMediaProvider().getPartnerCode());
response.setRequestAmount(cashInfoIMedia.getBankIMediaProvider().getRequestAmount());
return response;
}
}
|
[
"hoanghieubk1996@gmail.com"
] |
hoanghieubk1996@gmail.com
|
e19fa1e46b09a70bfdd7d67b529a3a03a1711de8
|
1064c459df0c59a4fb169d6f17a82ba8bd2c6c1a
|
/trunk/bbs/src/java/cn/itcast/bbs/cfg/SettingsFactory.java
|
68ee50db2c7599012f9530772aad5708286105a4
|
[] |
no_license
|
BGCX261/zju-svn-to-git
|
ad87ed4a95cea540299df6ce2d68b34093bcaef7
|
549378a9899b303cb7ac24a4b00da465b6ccebab
|
refs/heads/master
| 2021-01-20T05:53:28.829755
| 2015-08-25T15:46:49
| 2015-08-25T15:46:49
| 41,600,366
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,385
|
java
|
package cn.itcast.bbs.cfg;
import java.util.Properties;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationContext;
import cn.itcast.bbs.entities.User;
import cn.itcast.bbs.entities.privilege.Group;
import cn.itcast.bbs.service.UserService;
import cn.itcast.bbs.service.privilege.GroupService;
/**
*
* @author 传智播客.汤阳光 Dec 15, 2008
*/
public class SettingsFactory {
private static final Log log = LogFactory.getLog(SettingsFactory.class);
/**
* 用properties构建出一个Settings,
*
* @param props
* @return
*/
public Settings buildSettings(Properties props, ApplicationContext applicationContext) {
Settings settings = new Settings(props);
// ---
String name = getProp(props, Environment.NAME);
String description = getProp(props, Environment.DESCRIPTION);
settings.setName(name);
settings.setDescription(description);
// ---
boolean installed = getBoolProp(props, Environment.INSTALLED);
String applicationPath = getProp(props, Environment.APPLICATION_PATH);
String applicationConfigPath = getProp(props, Environment.APPLICATION_CONFIG_PATH);
String avatarStorePath = getProp(props, Environment.APPLICATION_UPLOAD_AVATAR_PATH);
String attachmentStorePath = getProp(props, Environment.APPLICATION_UPLOAD_ATTACHMENT_PATH);
String luceneIndexPath = getProp(props, Environment.APPLICATION_LUCENE_INDEX_PATH);
settings.setInstalled(installed);
settings.setApplicationPath(applicationPath);
settings.setApplicationConfigPath(applicationConfigPath);
settings.setAvatarStorePath(avatarStorePath);
settings.setAttachmentStorePath(attachmentStorePath);
settings.setLuceneIndexPath(luceneIndexPath);
// ---
int adminUserId = getIntProp(props, Environment.ADMIN_USER_ID);
int anonymousUserId = getIntProp(props, Environment.ANONYMOUS_USER_ID);
int defaultUserGroupId = getIntProp(props, Environment.DEFAULT_USER_GROUP_ID);
settings.setAdminUserId(adminUserId);
settings.setAnonymousUserId(anonymousUserId);
settings.setDefaultUserGroupId(defaultUserGroupId);
// --- TODO 使用了UserService和GroupService
UserService userService = (UserService) applicationContext.getBean("userService");
GroupService groupService = (GroupService) applicationContext.getBean("groupService");
User adminUser = userService.getUser(adminUserId);
User anonymousUser = userService.getUser(anonymousUserId);
Group defaultUserGroup = groupService.getGroup(defaultUserGroupId);
settings.setAdminUser(adminUser);
settings.setAnonymousUser(anonymousUser);
settings.setDefaultUserGroup(defaultUserGroup);
if (settings.getAdminUser() == null) {
log.error("AdminUser is null!");
}
if (settings.getAnonymousUser() == null) {
log.error("AnonymousUser is null!");
}
if (settings.getDefaultUserGroup() == null) {
log.error("DefaultUserGroup is null!");
}
// ---
int viewPageCount = getIntProp(props, Environment.PAGE_VIEW_PAGE_COUNT);
int usersPerPage = getIntProp(props, Environment.PAGE_SIZE_USER_LIST);
int topicsPerPage = getIntProp(props, Environment.PAGE_SIZE_TOPIC);
int repliesPerPage = getIntProp(props, Environment.PAGE_SIZE_REPLY);
int searchResultPerPage = getIntProp(props, Environment.PAGE_SIZE_SEARCH_RESULT);
settings.setViewPageCount(viewPageCount);
settings.setUsersPerPage(usersPerPage);
settings.setTopicsPerPage(topicsPerPage);
settings.setRepliesPerPage(repliesPerPage);
settings.setSearchResultPerPage(searchResultPerPage);
// ---
int loginTimesLimit = getIntProp(props, Environment.LOGIN_TIMES_LIMIT);
int loginLockedMinutes = getIntProp(props, Environment.LOGIN_LOCKED_MINUTES);
settings.setLoginTimesLimit(loginTimesLimit);
settings.setLoginLockedMinutes(loginLockedMinutes);
// ---
int avatarMaxFileSize = getIntProp(props, Environment.AVATAR_MAX_FILE_SIZE);
int avatarMaxWidth = getIntProp(props, Environment.AVATAR_MAX_WIDTH);
int avatarMaxHeight = getIntProp(props, Environment.AVATAR_MAX_HEIGHT);
settings.setAvatarMaxFileSize(avatarMaxFileSize);
settings.setAvatarMaxWidth(avatarMaxWidth);
settings.setAvatarMaxHeight(avatarMaxHeight);
// ---
int attachmentMaxAmount = getIntProp(props, Environment.ATTACHMENT_MAX_AMOUNT);
int attachmentMaxFileSize = getIntProp(props, Environment.ATTACHMENT_MAX_FILE_SIZE);
settings.setAttachmentMaxAmount(attachmentMaxAmount);
settings.setAttachmentMaxFileSize(attachmentMaxFileSize);
// ---
int postDelay = getIntProp(props, Environment.POST_DELAY);
settings.setPostDelay(postDelay);
log.info("Settings构建完毕:" + settings);
return settings;
}
public String getProp(Properties props, String key) {
String value = props.getProperty(key);
if (value == null) {
throw new RuntimeException("配置[" + key + "]的值为null");
}
return value.trim(); // TODO trim ?
}
public int getIntProp(Properties props, String key) {
String value = getProp(props, key);
try {
return Integer.parseInt(value);
} catch (NumberFormatException e) {
String msg = "(int类型)配置格式不正确[key=" + key + ", value=" + value + "]";
log.error(msg);
throw new RuntimeException(msg, e);
}
}
public boolean getBoolProp(Properties props, String key) {
String value = getProp(props, key);
return "true".equals(value.trim());
}
}
|
[
"you@example.com"
] |
you@example.com
|
c8bb1ca656b43b147470bc3a72cb6985772d4efe
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/99/org/apache/commons/math/linear/SparseRealVector_projection_1076.java
|
d9c6c8cc2f6688b1b91529f58a14557d5a2f9fab
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 1,639
|
java
|
org apach common math linear
link real vector realvector link open int doubl hash map openinttodoublehashmap back store
version revis date
spars real vector sparserealvector real vector realvector
inherit doc inheritdoc
real vector realvector project illeg argument except illegalargumentexcept
check vector dimens checkvectordimens length
project spars real vector sparserealvector
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
032c3640417a4a3f19ae4488a35474e215cf8cc7
|
f7295dfe3c303e1d656e7dd97c67e49f52685564
|
/smali/com/xiaomi/passport/servicetoken/ServiceTokenFuture.java
|
b96716c7e3c961b18d09c502a84715d7b1e0001c
|
[] |
no_license
|
Eason-Chen0452/XiaoMiGame
|
36a5df0cab79afc83120dab307c3014e31f36b93
|
ba05d72a0a0c7096d35d57d3b396f8b5d15729ef
|
refs/heads/master
| 2022-04-14T11:08:31.280151
| 2020-04-14T08:57:25
| 2020-04-14T08:57:25
| 255,541,211
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,190
|
java
|
package com.xiaomi.passport.servicetoken;
import android.os.RemoteException;
import com.xiaomi.accountsdk.futureservice.a;
import com.xiaomi.accountsdk.futureservice.a.a;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
public class ServiceTokenFuture
extends a<ServiceTokenResult, ServiceTokenResult>
{
public ServiceTokenFuture(a.a<ServiceTokenResult> parama)
{
super(parama);
}
private ServiceTokenResult a(Long paramLong, TimeUnit paramTimeUnit)
{
if ((paramLong != null) && (paramTimeUnit != null)) {}
try
{
return (ServiceTokenResult)super.get(paramLong.longValue(), paramTimeUnit);
}
catch (InterruptedException paramLong)
{
ServiceTokenResult localServiceTokenResult;
return new ServiceTokenResult.Builder(null).a(ServiceTokenResult.ErrorCode.ERROR_CANCELLED).c(paramLong.getMessage()).b();
}
catch (ExecutionException paramLong)
{
if (!(paramLong.getCause() instanceof RemoteException)) {
break label93;
}
return new ServiceTokenResult.Builder(null).a(ServiceTokenResult.ErrorCode.ERROR_REMOTE_EXCEPTION).c(paramLong.getMessage()).b();
if (paramLong.getCause() == null) {
break label130;
}
for (paramLong = paramLong.getCause().getMessage();; paramLong = paramLong.getMessage()) {
return new ServiceTokenResult.Builder(null).a(ServiceTokenResult.ErrorCode.ERROR_UNKNOWN).c(paramLong).b();
}
}
catch (TimeoutException localTimeoutException) {}
localServiceTokenResult = (ServiceTokenResult)super.get();
return localServiceTokenResult;
label93:
label130:
return new ServiceTokenResult.Builder(null).a(ServiceTokenResult.ErrorCode.ERROR_TIME_OUT).c("time out after " + paramLong + " " + paramTimeUnit).b();
}
public static abstract class ServiceTokenCallback
implements a.a<ServiceTokenResult>
{}
}
/* Location: C:\Users\Administrator\Desktop\apk\dex2jar\classes-dex2jar.jar!\com\xiaomi\passport\servicetoken\ServiceTokenFuture.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"chen_guiq@163.com"
] |
chen_guiq@163.com
|
eabbf1e790b74db98fdcef28e14bf43afd372a00
|
40113f2e8fb13b94429b48afe51569d020346e10
|
/src/main/java/com/example/webflux/demo/reactor/service/impl/ProductServiceImpl.java
|
5128b28d75761fdbc0afb85eb3352549586a7109
|
[] |
no_license
|
otacu/webflux-demo
|
6e93dde3fba9854a9b393b940f61bf4a7cd8e743
|
e6d5d95c479784ed317fadba83c94739c493ba65
|
refs/heads/master
| 2023-05-14T01:33:16.931774
| 2021-05-31T02:42:08
| 2021-05-31T02:42:08
| 372,362,603
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,227
|
java
|
package com.example.webflux.demo.reactor.service.impl;
import com.example.webflux.demo.reactor.model.Product;
import com.example.webflux.demo.reactor.service.IProductService;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import java.util.HashMap;
import java.util.Map;
@Service
public class ProductServiceImpl implements IProductService {
//创建 map 集合存储数据
public Map<Integer, Product> products = new HashMap<>();
public ProductServiceImpl() {
for (int i = 1; i <= 10; i++) {
this.products.put(i, new Product(i, "P1001" + i, "苹果-" + i));
}
}
@Override
public Mono<Product> getProductById(int id) {
return Mono.justOrEmpty(this.products.get(id));
}
@Override
public Flux<Product> getAllProduct() {
return Flux.fromIterable(this.products.values());
}
@Override
public Mono<Void> saveProductInfo(Mono<Product> ProductMono) {
return ProductMono.doOnNext(product -> {
//向 map 集合里面放值
int id = products.size() + 1;
products.put(id, product);
}).thenEmpty(Mono.empty());
}
}
|
[
"jingsheng-ye@msyc.cc"
] |
jingsheng-ye@msyc.cc
|
1d24e743731b591b3d44520920a8e93227ae5361
|
8572c91b73fb4b791e27d712af70497fd319266e
|
/okhttp/okhttp/src/main/java/okhttp3/Interceptor.java
|
8d3ff36532fb0a0bfe5ec3de7e8240433a1eb7f7
|
[
"Apache-2.0"
] |
permissive
|
yuchuangu85/AndroidCommonLibrary
|
7908a0dce11e4e32cd5386b62354da2432e727a0
|
86b30a7b049b1f76e532197e58b185322b70a810
|
refs/heads/master
| 2022-10-15T22:49:52.834171
| 2021-05-17T15:51:16
| 2021-05-17T15:51:16
| 192,298,435
| 16
| 6
| null | 2022-10-04T23:55:02
| 2019-06-17T07:41:12
|
Java
|
UTF-8
|
Java
| false
| false
| 1,727
|
java
|
/*
* Copyright (C) 2014 Square, 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 okhttp3;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import javax.annotation.Nullable;
/**
* Observes, modifies, and potentially short-circuits requests going out and the corresponding
* responses coming back in. Typically interceptors add, remove, or transform headers on the request
* or response.
*/
public interface Interceptor {
Response intercept(Chain chain) throws IOException;
interface Chain {
Request request();
Response proceed(Request request) throws IOException;
/**
* Returns the connection the request will be executed on. This is only available in the chains
* of network interceptors; for application interceptors this is always null.
*/
@Nullable
Connection connection();
Call call();
int connectTimeoutMillis();
Chain withConnectTimeout(int timeout, TimeUnit unit);
int readTimeoutMillis();
Chain withReadTimeout(int timeout, TimeUnit unit);
int writeTimeoutMillis();
Chain withWriteTimeout(int timeout, TimeUnit unit);
}
}
|
[
"yuchuangu85@gmail.com"
] |
yuchuangu85@gmail.com
|
45438cb433adf4e66a54634ff91e4ee110802b0e
|
e62c3b93b38d2d7781d38ba1cdbabfea2c1cf7af
|
/BocBankMobile/src/main/java/com/boc/bocsoft/mobile/bocmobile/base/container/Container.java
|
20ddc22aeb20981695fe031d4ff5987404249b7d
|
[] |
no_license
|
soghao/zgyh
|
df34779708a8d6088b869d0efc6fe1c84e53b7b1
|
09994dda29f44b6c1f7f5c7c0b12f956fc9a42c1
|
refs/heads/master
| 2021-06-19T07:36:53.910760
| 2017-06-23T14:23:10
| 2017-06-23T14:23:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,767
|
java
|
package com.boc.bocsoft.mobile.bocmobile.base.container;
import android.app.Activity;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
/**
* 作者:XieDu
* 创建时间:2016/12/16 16:16
* 描述:
*/
public class Container extends FrameLayout implements IContainer {
protected LayoutParams mLayoutParams;
protected Activity mActivity;
protected Fragment mFragment;
public Container(Context context) {
this(context, null);
}
public Container(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}
public Container(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
createView();
}
private void createView() {
mLayoutParams = new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT);
View contentView = createContentView();
if (contentView != null) {
setContentView(contentView);
}
}
/**
* 创建contentview
*/
protected View createContentView() {
return null;
}
public void setContentView(int layoutResID) {
View view = inflate(getContext(), layoutResID, null);
addView(view, mLayoutParams);
}
public void setContentView(View view) {
addView(view, mLayoutParams);
}
public void attach(Activity activity) {
mActivity = activity;
onAttach();
}
/**
* 创建容器之后要绑定创建者
* @param fragment 创建容器对象和viewpager的fragment
*/
public void attach(Fragment fragment) {
mFragment = fragment;
if (mFragment != null) {
mActivity = mFragment.getActivity();
}
onAttach();
}
private void onAttach() {
initView();
initData();
setListener();
}
/**
* 初始化布局中各个view的地方
*/
protected void initView() {
}
/**
* 初始化数据,因为是在attach里调用的,此时界面尚未切换到该容器。
* 因此如果要在viewpager场景实现懒加载,应该调用setUserVisibleHint
*/
protected void initData() {
}
/**
* 设置监听器
*/
protected void setListener() {
}
/**
* 容器做销毁处理的地方,需要创建者去控制调用
*/
@Override
public void onDestroy() {
}
@Override
public View getView() {
return this;
}
@Override
public void setUserVisibleHint(boolean isVisibleToUser) {
}
}
|
[
"15609143618@163.com"
] |
15609143618@163.com
|
340a11795dcb95ab624c62547e718b6ca1478d24
|
6f5877fb9c075cd6a53982914e45393f57444013
|
/protocols/raft/src/main/java/io/atomix/protocols/raft/impl/DefaultRaftServer.java
|
5c4eb309fc0fad85b304d08313cd54a6403f9599
|
[
"Apache-2.0"
] |
permissive
|
jjzazuet/atomix
|
466f23ec8831fa4ec63c552c84ad004f81be9d53
|
a7d7b45c091c4091e2b7e4a05574452217dd8710
|
refs/heads/master
| 2021-07-06T11:24:13.050081
| 2017-10-03T23:18:07
| 2017-10-03T23:18:07
| 105,613,481
| 0
| 0
| null | 2017-10-03T04:13:11
| 2017-10-03T04:13:11
| null |
UTF-8
|
Java
| false
| false
| 7,809
|
java
|
/*
* Copyright 2015-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.atomix.protocols.raft.impl;
import io.atomix.protocols.raft.RaftServer;
import io.atomix.protocols.raft.cluster.MemberId;
import io.atomix.protocols.raft.cluster.RaftCluster;
import io.atomix.protocols.raft.cluster.RaftMember;
import io.atomix.protocols.raft.service.RaftService;
import io.atomix.protocols.raft.storage.RaftStorage;
import io.atomix.utils.concurrent.Futures;
import io.atomix.utils.logging.ContextualLoggerFactory;
import io.atomix.utils.logging.LoggerContext;
import org.slf4j.Logger;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
import java.util.function.Supplier;
import static com.google.common.base.MoreObjects.toStringHelper;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Provides a standalone implementation of the <a href="http://raft.github.io/">Raft consensus algorithm</a>.
*
* @see RaftService
* @see RaftStorage
*/
public class DefaultRaftServer implements RaftServer {
private final Logger log;
protected final RaftContext context;
private volatile CompletableFuture<RaftServer> openFuture;
private volatile CompletableFuture<Void> closeFuture;
private Consumer<RaftMember> electionListener;
private Consumer<RaftContext.State> stateChangeListener;
private volatile boolean started;
public DefaultRaftServer(RaftContext context) {
this.context = checkNotNull(context, "context cannot be null");
this.log = ContextualLoggerFactory.getLogger(getClass(), LoggerContext.builder(RaftServer.class)
.addValue(context.getName())
.build());
}
@Override
public String name() {
return context.getName();
}
@Override
public RaftCluster cluster() {
return context.getCluster();
}
@Override
public Role getRole() {
return context.getRole();
}
@Override
public void addRoleChangeListener(Consumer<Role> listener) {
context.addRoleChangeListener(listener);
}
@Override
public void removeRoleChangeListener(Consumer<Role> listener) {
context.removeRoleChangeListener(listener);
}
@Override
public CompletableFuture<RaftServer> bootstrap() {
return bootstrap(Collections.emptyList());
}
@Override
public CompletableFuture<RaftServer> bootstrap(MemberId... cluster) {
return bootstrap(Arrays.asList(cluster));
}
@Override
public CompletableFuture<RaftServer> bootstrap(Collection<MemberId> cluster) {
return start(() -> cluster().bootstrap(cluster));
}
@Override
public CompletableFuture<RaftServer> join(MemberId... cluster) {
return join(Arrays.asList(cluster));
}
@Override
public CompletableFuture<RaftServer> join(Collection<MemberId> cluster) {
return start(() -> cluster().join(cluster));
}
/**
* Starts the server.
*/
private CompletableFuture<RaftServer> start(Supplier<CompletableFuture<Void>> joiner) {
if (started)
return CompletableFuture.completedFuture(this);
if (openFuture == null) {
synchronized (this) {
if (openFuture == null) {
CompletableFuture<RaftServer> future = new CompletableFuture<>();
openFuture = future;
joiner.get().whenComplete((result, error) -> {
if (error == null) {
context.awaitState(RaftContext.State.READY, state -> {
started = true;
future.complete(null);
});
} else {
future.completeExceptionally(error);
}
});
}
}
}
return openFuture.whenComplete((result, error) -> {
if (error == null) {
log.info("Server started successfully!");
} else {
log.warn("Failed to start server!");
}
});
}
@Override
public CompletableFuture<RaftServer> promote() {
return context.anoint().thenApply(v -> this);
}
/**
* Returns a boolean indicating whether the server is running.
*
* @return Indicates whether the server is running.
*/
public boolean isRunning() {
return started;
}
/**
* Shuts down the server without leaving the Raft cluster.
*
* @return A completable future to be completed once the server has been shutdown.
*/
public CompletableFuture<Void> shutdown() {
if (!started) {
return Futures.exceptionalFuture(new IllegalStateException("context not open"));
}
CompletableFuture<Void> future = new CompletableFuture<>();
context.getThreadContext().execute(() -> {
started = false;
context.transition(Role.INACTIVE);
future.complete(null);
});
return future.whenCompleteAsync((result, error) -> {
context.close();
started = false;
});
}
/**
* Leaves the Raft cluster.
*
* @return A completable future to be completed once the server has left the cluster.
*/
public CompletableFuture<Void> leave() {
if (!started) {
return CompletableFuture.completedFuture(null);
}
if (closeFuture == null) {
synchronized (this) {
if (closeFuture == null) {
closeFuture = new CompletableFuture<>();
if (openFuture == null) {
cluster().leave().whenComplete((leaveResult, leaveError) -> {
shutdown().whenComplete((shutdownResult, shutdownError) -> {
context.delete();
closeFuture.complete(null);
});
});
} else {
openFuture.whenComplete((openResult, openError) -> {
if (openError == null) {
cluster().leave().whenComplete((leaveResult, leaveError) -> {
shutdown().whenComplete((shutdownResult, shutdownError) -> {
context.delete();
closeFuture.complete(null);
});
});
} else {
closeFuture.complete(null);
}
});
}
}
}
}
return closeFuture;
}
@Override
public String toString() {
return toStringHelper(this)
.add("name", name())
.toString();
}
/**
* Default Raft server builder.
*/
public static class Builder extends RaftServer.Builder {
public Builder(MemberId localMemberId) {
super(localMemberId);
}
@Override
public RaftServer build() {
if (serviceRegistry.size() == 0) {
throw new IllegalStateException("No state machines registered");
}
// If the server name is null, set it to the member ID.
if (name == null) {
name = localMemberId.id();
}
// If the storage is not configured, create a new Storage instance with the configured serializer.
if (storage == null) {
storage = RaftStorage.newBuilder().build();
}
RaftContext raft = new RaftContext(name, type, localMemberId, protocol, storage, serviceRegistry, threadModel, threadPoolSize);
raft.setElectionTimeout(electionTimeout);
raft.setHeartbeatInterval(heartbeatInterval);
raft.setSessionTimeout(sessionTimeout);
return new DefaultRaftServer(raft);
}
}
}
|
[
"jordan.halterman@gmail.com"
] |
jordan.halterman@gmail.com
|
6b7e6eb445914cf65b237f5489e8fd847b49118b
|
b58fa5c415e671b018fb295a84fbf9f69a7dcafe
|
/app/src/main/java/com/aswifter/material/Utils.java
|
e478dc39d0892c5b68f49ea4ce437a8efdb1698a
|
[] |
no_license
|
akingyin1987/MaterialDesignExample
|
14948f3ed0b0a88b61dbc73a8df6d7fdf0f5d07c
|
be139f00c18f4335d38a461b2dd97bd912215484
|
refs/heads/master
| 2021-01-10T14:58:07.299749
| 2016-01-08T07:36:48
| 2016-01-08T07:36:48
| 48,737,588
| 5
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,379
|
java
|
package com.aswifter.material;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Point;
import android.os.Build;
import android.view.Display;
import android.view.WindowManager;
/**
* Created by froger_mcs on 05.11.14.
*/
public class Utils {
private static int screenWidth = 0;
private static int screenHeight = 0;
public static int dpToPx(int dp) {
return (int) (dp * Resources.getSystem().getDisplayMetrics().density);
}
public static int getScreenHeight(Context c) {
if (screenHeight == 0) {
WindowManager wm = (WindowManager) c.getSystemService(Context.WINDOW_SERVICE);
Display display = wm.getDefaultDisplay();
Point size = new Point();
display.getSize(size);
screenHeight = size.y;
}
return screenHeight;
}
public static int getScreenWidth(Context c) {
if (screenWidth == 0) {
WindowManager wm = (WindowManager) c.getSystemService(Context.WINDOW_SERVICE);
Display display = wm.getDefaultDisplay();
Point size = new Point();
display.getSize(size);
screenWidth = size.x;
}
return screenWidth;
}
public static boolean isAndroid5() {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP;
}
}
|
[
"akingyin@163.com"
] |
akingyin@163.com
|
45ca98149dcddfe2e70757e3289df5376a9e68fe
|
c37d2a36312534a55c319b19b61060649c7c862c
|
/app/src/main/java/com/spongycastle/crypto/prng/BasicEntropySourceProvider.java
|
e53ad68b0dec7f57fcd15f55eee04948675c3813
|
[
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
trwinowiecki/AndroidTexting
|
f5626ad91a07ea7b3cd3ee75893abf8b1fe7154f
|
27e84a420b80054e676c390b898705856364b340
|
refs/heads/master
| 2020-12-30T23:10:17.542572
| 2017-02-01T01:46:13
| 2017-02-01T01:46:13
| 80,580,124
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,030
|
java
|
package com.spongycastle.crypto.prng;
import java.security.SecureRandom;
/**
* An EntropySourceProvider where entropy generation is based on a SecureRandom output using SecureRandom.generateSeed().
*/
public class BasicEntropySourceProvider
implements EntropySourceProvider
{
private final SecureRandom _sr;
private final boolean _predictionResistant;
/**
* Create a entropy source provider based on the passed in SecureRandom.
*
* @param random the SecureRandom to base EntropySource construction on.
* @param isPredictionResistant boolean indicating if the SecureRandom is based on prediction resistant entropy or not (true if it is).
*/
public BasicEntropySourceProvider(SecureRandom random, boolean isPredictionResistant)
{
_sr = random;
_predictionResistant = isPredictionResistant;
}
/**
* Return an entropy source that will create bitsRequired bits of entropy on
* each invocation of getEntropy().
*
* @param bitsRequired size (in bits) of entropy to be created by the provided source.
* @return an EntropySource that generates bitsRequired bits of entropy on each call to its getEntropy() method.
*/
public EntropySource get(final int bitsRequired)
{
return new EntropySource()
{
public boolean isPredictionResistant()
{
return _predictionResistant;
}
public byte[] getEntropy()
{
// is the RNG regarded as useful for seeding?
if (_sr instanceof SP800SecureRandom || _sr instanceof X931SecureRandom)
{
byte[] rv = new byte[(bitsRequired + 7) / 8];
_sr.nextBytes(rv);
return rv;
}
return _sr.generateSeed((bitsRequired + 7) / 8);
}
public int entropySize()
{
return bitsRequired;
}
};
}
}
|
[
"trw0511@gmail.com"
] |
trw0511@gmail.com
|
d7cf5c16ff50841325b41cd3f92f9003913e865e
|
5bcc7ba7ffa8b03720ed54a12c661c9cfd4e751d
|
/zkcore/src/main/java/edu/uw/zookeeper/common/Hex.java
|
955a19e065cba0589efb158e9489fca56ef347ca
|
[
"Apache-2.0"
] |
permissive
|
lisaglendenning/zookeeper-lite
|
2b1165038272a4b86d96674967df8c00247069cc
|
2a9679ddb196b3f65d687d67d7ef534e162fe6d9
|
refs/heads/master
| 2020-05-17T12:13:13.230458
| 2015-07-02T21:53:50
| 2015-07-02T21:53:50
| 9,090,323
| 10
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,377
|
java
|
package edu.uw.zookeeper.common;
import static com.google.common.base.Preconditions.checkArgument;
import com.google.common.primitives.Ints;
import com.google.common.primitives.Longs;
import com.google.common.primitives.Shorts;
public class Hex {
public static String toPaddedHexString(long value) {
return toPaddedHexString(Long.toHexString(value), Longs.BYTES*2);
}
public static String toPaddedHexString(int value) {
return toPaddedHexString(Integer.toHexString(value), Ints.BYTES*2);
}
public static String toPaddedHexString(short value) {
return toPaddedHexString(Integer.toHexString(((int) value) & 0xffff), Shorts.BYTES*2);
}
public static String toPaddedHexString(String value, int length) {
checkArgument(value.length() <= length);
StringBuilder sb = new StringBuilder(length);
for (int toPrepend=sb.capacity()-value.length(); toPrepend>0; --toPrepend) {
sb.append('0');
}
sb.append(value);
return sb.toString();
}
public static long parseLong(String string) {
return Long.parseLong(string, 16);
}
public static int parseInt(String string) {
return Integer.parseInt(string, 16);
}
public static short parseShort(String string) {
return Short.parseShort(string, 16);
}
}
|
[
"lisa@glendenning.net"
] |
lisa@glendenning.net
|
8520a56d85248c6799ae8d6f1ccff1040f8333cf
|
f982dd94ffedc07aa17c541fd6bd37e9131fc1e7
|
/src/main/java/lan/dk/podcastserver/manager/worker/downloader/DailyMotionCloudDownloader.java
|
c3589a379d0da8372c31847cc0a44d0be7308f3e
|
[
"Apache-2.0"
] |
permissive
|
kevinvavelin/Podcast-Server
|
eb3273258c6907ab841fe3aaacb87d3adc4c4073
|
0c80c69fe1ec04fbc95be623bc2e5f54627ec1c3
|
refs/heads/master
| 2021-01-18T12:23:44.571437
| 2016-03-14T04:52:00
| 2016-03-14T04:52:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,412
|
java
|
package lan.dk.podcastserver.manager.worker.downloader;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.Optional;
import static java.util.Objects.nonNull;
/**
* Created by kevin on 28/02/15.
*/
@Scope("prototype")
@Component("DailyMotionCloudDownloader")
public class DailyMotionCloudDownloader extends M3U8Downloader {
String redirectionUrl = null;
@Override
public String getItemUrl() {
if (nonNull(redirectionUrl))
return redirectionUrl;
Optional<String> optionalUrl = Optional.empty();
String url = urlService.getRealURL(item.getUrl());
try(BufferedReader in = urlService.urlAsReader(url)) {
optionalUrl = in
.lines()
.filter(l -> l.contains("audio") && l.contains("video"))
.reduce((u, v) -> v);
} catch (IOException e) {
e.printStackTrace();
}
redirectionUrl = optionalUrl
.map(u -> urlService.urlWithDomain(url, u))
.orElse("");
return redirectionUrl;
}
@Override
public Integer compatibility(@NotEmpty String url) {
return url.contains("cdn.dmcloud") ? 1 : Integer.MAX_VALUE;
}
}
|
[
"davin.kevin@gmail.com"
] |
davin.kevin@gmail.com
|
3b10dd4a61068dd08bf9849c83d2b447ae1b0318
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-13708-4-30-MOEAD-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/internal/event/AttachmentEventGeneratorListener_ESTest_scaffolding.java
|
18f2881f83ec659070ee2a6da100e2457443c5c8
|
[] |
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
| 465
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Wed Apr 08 00:08:53 UTC 2020
*/
package com.xpn.xwiki.internal.event;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class AttachmentEventGeneratorListener_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
30ccf3d02e44cec1b24e01d81b2b2b2fbb6577a5
|
0db5294cdafd3382ea7f835a6e98bfede5a73457
|
/trunk/src/synch/beans/Result.java
|
8883712fa6dad67691b97e19daed5fb52cbe33bf
|
[] |
no_license
|
BGCX262/zyjk-svn-to-git
|
a4798e09bb60446e884e0427b568643bae07e80c
|
8f1c15e5a2311ca878e90fba8595f2a1b7c9117f
|
refs/heads/master
| 2020-06-03T19:23:56.395161
| 2015-08-23T06:49:37
| 2015-08-23T06:49:37
| 41,251,930
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 584
|
java
|
package synch.beans;
import java.util.List;
public class Result {
private List<Record> records;
private Process process;
private Error error;
public Process getProcess() {
return process;
}
public void setProcess(Process process) {
this.process = process;
}
public List<Record> getRecords() {
return records;
}
public void setRecords(List<Record> records) {
this.records = records;
}
public Error getError() {
return error;
}
public void setError(Error error) {
this.error = error;
}
//private
}
|
[
"you@example.com"
] |
you@example.com
|
6e96648d8a6a2f008af8b47832756fc5a4928b9d
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/64/org/apache/commons/math/linear/BlockFieldMatrix_BlockFieldMatrix_128.java
|
b065467167c4c0a8f810bd524331e04266ed5654
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 3,588
|
java
|
org apach common math linear
cach friendli implement field matrix fieldmatrix flat arrai store
squar block matrix
implement special design cach friendli squar block
store small arrai effici travers data row major direct
column major direct block time greatli increas perform
algorithm cross direct loop multipl transposit
size squar block paramet tune cach
size target comput processor rule thumb largest
block simultan cach
matrix multipl 36x36 block
regular block repres link block size link block size squar block
hand side bottom side smaller fit matrix dimens squar
block flatten row major order singl dimens arrai
link block size element regular block block
organ row major order
block size 36x36 100x60 matrix store block
block field arrai hold upper left 36x36 squar block
field arrai hold upper center 36x36 squar block field
arrai hold upper 36x28 rectangl block field arrai hold
lower left 24x36 rectangl block field arrai hold lower center
24x36 rectangl block field arrai hold lower 24x28
rectangl
layout complex overhead versu simpl map matric java
arrai neglig small matric gain cach effici lead
fold improv matric moder larg size
param type field element
version revis date
block field matrix blockfieldmatrix field element fieldel abstract field matrix abstractfieldmatrix serializ
creat dens matrix copi entri raw layout data
input arrai raw layout
call constructor equival call
pre matrix block field matrix blockfieldmatrix field getfield raw data rawdata length raw data rawdata length
block layout toblockslayout raw data rawdata pre
param raw data rawdata data matrix raw layout
except illeg argument except illegalargumentexcept code block data blockdata code shape
inconsist block layout
block field matrix blockfieldmatrix field element fieldel
block field matrix blockfieldmatrix raw data rawdata
illeg argument except illegalargumentexcept
raw data rawdata length raw data rawdata length block layout toblockslayout raw data rawdata
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
ef08bf77b0a2b8cade45a669e99b480aa042c790
|
d730b5b7776dd7a19e95808adae69cbe9f94ab2f
|
/src/test/java/com/gdt/icow/ArchTest.java
|
63412f3e63d01a1a3f244d81dd8622f53ba671fd
|
[] |
no_license
|
Michuki/greendreams-icow3
|
f9e676e5bc4f9e3aaedcd90e87f005a0aa03d5b2
|
f925c2f9e912c1e8ad7b7bdecb697908d894e1d8
|
refs/heads/master
| 2023-01-02T16:34:27.181791
| 2020-10-26T12:26:32
| 2020-10-26T12:26:32
| 307,364,341
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 997
|
java
|
package com.gdt.icow;
import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.noClasses;
import com.tngtech.archunit.core.domain.JavaClasses;
import com.tngtech.archunit.core.importer.ClassFileImporter;
import com.tngtech.archunit.core.importer.ImportOption;
import org.junit.jupiter.api.Test;
class ArchTest {
@Test
void servicesAndRepositoriesShouldNotDependOnWebLayer() {
JavaClasses importedClasses = new ClassFileImporter()
.withImportOption(ImportOption.Predefined.DO_NOT_INCLUDE_TESTS)
.importPackages("com.gdt.icow");
noClasses()
.that()
.resideInAnyPackage("com.gdt.icow.service..")
.or()
.resideInAnyPackage("com.gdt.icow.repository..")
.should()
.dependOnClassesThat()
.resideInAnyPackage("..com.gdt.icow.web..")
.because("Services and repositories should not depend on web layer")
.check(importedClasses);
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
52a69abc40b62250876c9577bca511623d12f7ab
|
52efbffd43516e4f6ff51aaa661e1b920afd7dab
|
/src/main/java/com/chenshun/eshop/mapper/UserMapper.java
|
3f84e2ac6922bc584402c10606b67b6359114bc3
|
[] |
no_license
|
chenshun131/eshop-inventory
|
ee59d98de37f1dcc95e7450f13edf2739fd0b4f0
|
27ccd996340316892dc4be99f9805ef9b22cc3c3
|
refs/heads/master
| 2020-03-15T20:19:18.603910
| 2018-05-14T15:51:33
| 2018-05-14T15:51:33
| 132,329,876
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 290
|
java
|
package com.chenshun.eshop.mapper;
import com.chenshun.eshop.model.User;
import org.apache.ibatis.annotations.Mapper;
/**
* User: mew <p />
* Time: 18/5/7 08:57 <p />
* Version: V1.0 <p />
* Description: <p />
*/
@Mapper
public interface UserMapper {
User findUserInfo();
}
|
[
"1539831174@qq.com"
] |
1539831174@qq.com
|
42e5c698edf41728ef720dee865ee0cf9a0266e3
|
a0ae9fa3513b569eac0d2c28f92756f528582997
|
/bin/platform/bootstrap/gensrc/de/hybris/platform/core/model/product/package-info.java
|
deaed62bae6f91b2bbf22d8f8272ff13321dbb82
|
[] |
no_license
|
jo721bit/workspace
|
d715d6efe1bd8a1584df83932d8e238639d37f7d
|
f9921b9c992df82f85e3732eed550829e36b2300
|
refs/heads/master
| 2020-04-01T00:36:44.495300
| 2018-10-10T08:28:14
| 2018-10-10T08:28:14
| 152,704,705
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 550
|
java
|
/*
*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 SAP SE
* All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* Hybris ("Confidential Information"). You shall not disclose such
* Confidential Information and shall use it only in accordance with the
* terms of the license agreement you entered into with SAP Hybris.
*
*/
/**
* Contains generated models for each type of de.hybris.platform.jalo.product package.
*/
package de.hybris.platform.core.model.product;
|
[
"jonas.bittenbinder@htwg-konstanz.de"
] |
jonas.bittenbinder@htwg-konstanz.de
|
a75896b8c8bd6774552793585a3c20a96c7b0566
|
7016cec54fb7140fd93ed805514b74201f721ccd
|
/src/java/com/echothree/control/user/content/server/command/DeleteContentCategoryCommand.java
|
64e0b0c9edb6da1fdee37fd6d562bdef8f57ed42
|
[
"MIT",
"Apache-1.1",
"Apache-2.0"
] |
permissive
|
echothreellc/echothree
|
62fa6e88ef6449406d3035de7642ed92ffb2831b
|
bfe6152b1a40075ec65af0880dda135350a50eaf
|
refs/heads/master
| 2023-09-01T08:58:01.429249
| 2023-08-21T11:44:08
| 2023-08-21T11:44:08
| 154,900,256
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,952
|
java
|
// --------------------------------------------------------------------------------
// Copyright 2002-2023 Echo Three, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// --------------------------------------------------------------------------------
package com.echothree.control.user.content.server.command;
import com.echothree.control.user.content.common.form.DeleteContentCategoryForm;
import com.echothree.model.control.content.server.control.ContentControl;
import com.echothree.model.control.party.common.PartyTypes;
import com.echothree.model.control.security.common.SecurityRoleGroups;
import com.echothree.model.control.security.common.SecurityRoles;
import com.echothree.model.data.content.server.entity.ContentCatalog;
import com.echothree.model.data.content.server.entity.ContentCategory;
import com.echothree.model.data.content.server.entity.ContentCollection;
import com.echothree.model.data.user.common.pk.UserVisitPK;
import com.echothree.util.common.message.ExecutionErrors;
import com.echothree.util.common.validation.FieldDefinition;
import com.echothree.util.common.validation.FieldType;
import com.echothree.util.common.command.BaseResult;
import com.echothree.util.server.control.BaseSimpleCommand;
import com.echothree.util.server.control.CommandSecurityDefinition;
import com.echothree.util.server.control.PartyTypeDefinition;
import com.echothree.util.server.control.SecurityRoleDefinition;
import com.echothree.util.server.persistence.Session;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class DeleteContentCategoryCommand
extends BaseSimpleCommand<DeleteContentCategoryForm> {
private final static CommandSecurityDefinition COMMAND_SECURITY_DEFINITION;
private final static List<FieldDefinition> FORM_FIELD_DEFINITIONS;
static {
COMMAND_SECURITY_DEFINITION = new CommandSecurityDefinition(Collections.unmodifiableList(Arrays.asList(
new PartyTypeDefinition(PartyTypes.UTILITY.name(), null),
new PartyTypeDefinition(PartyTypes.EMPLOYEE.name(), Collections.unmodifiableList(Arrays.asList(
new SecurityRoleDefinition(SecurityRoleGroups.ContentCategory.name(), SecurityRoles.Delete.name())
)))
)));
FORM_FIELD_DEFINITIONS = Collections.unmodifiableList(Arrays.asList(
new FieldDefinition("ContentCollectionName", FieldType.ENTITY_NAME, true, null, null),
new FieldDefinition("ContentCatalogName", FieldType.ENTITY_NAME, true, null, null),
new FieldDefinition("ContentCategoryName", FieldType.ENTITY_NAME, true, null, null)
));
}
/** Creates a new instance of DeleteContentCategoryCommand */
public DeleteContentCategoryCommand(UserVisitPK userVisitPK, DeleteContentCategoryForm form) {
super(userVisitPK, form, COMMAND_SECURITY_DEFINITION, FORM_FIELD_DEFINITIONS, false);
}
@Override
protected BaseResult execute() {
var contentControl = Session.getModelController(ContentControl.class);
String contentCollectionName = form.getContentCollectionName();
ContentCollection contentCollection = contentControl.getContentCollectionByName(contentCollectionName);
if(contentCollection != null) {
String contentCatalogName = form.getContentCatalogName();
ContentCatalog contentCatalog = contentControl.getContentCatalogByName(contentCollection, contentCatalogName);
if(contentCatalog != null) {
String contentCategoryName = form.getContentCategoryName();
ContentCategory contentCategory = contentControl.getContentCategoryByNameForUpdate(contentCatalog, contentCategoryName);
if(contentCategory != null) {
contentControl.deleteContentCategory(contentCategory, getPartyPK());
} else {
addExecutionError(ExecutionErrors.UnknownContentCategoryName.name(), contentCategoryName);
}
} else {
addExecutionError(ExecutionErrors.UnknownContentCatalogName.name(), contentCatalogName);
}
} else {
addExecutionError(ExecutionErrors.UnknownContentCollectionName.name(), contentCollectionName);
}
return null;
}
}
|
[
"rich@echothree.com"
] |
rich@echothree.com
|
8657dbc078f5df3031a4ed1660caa014bb91e334
|
60eab9b092bb9d5a50b807f45cbe310774d0e456
|
/dataset/pm2/src/main/java/org/apache/commons/math/optimization/fitting/CurveFitter.java
|
42479aa99c7afe0e89c649c92d16ef5295510ead
|
[
"Apache-2.0",
"BSD-3-Clause",
"Minpack"
] |
permissive
|
SpoonLabs/nopol-experiments
|
7b691c39b09e68c3c310bffee713aae608db61bc
|
2cf383cb84a00df568a6e41fc1ab01680a4a9cc6
|
refs/heads/master
| 2022-02-13T19:44:43.869060
| 2022-01-22T22:06:28
| 2022-01-22T22:14:45
| 56,683,489
| 6
| 1
| null | 2019-03-05T11:02:20
| 2016-04-20T12:05:51
|
Java
|
UTF-8
|
Java
| false
| false
| 7,218
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.optimization.fitting;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.math.analysis.DifferentiableMultivariateVectorialFunction;
import org.apache.commons.math.analysis.MultivariateMatrixFunction;
import org.apache.commons.math.optimization.DifferentiableMultivariateVectorialOptimizer;
import org.apache.commons.math.optimization.VectorialPointValuePair;
/** Fitter for parametric univariate real functions y = f(x).
* <p>When a univariate real function y = f(x) does depend on some
* unknown parameters p<sub>0</sub>, p<sub>1</sub> ... p<sub>n-1</sub>,
* this class can be used to find these parameters. It does this
* by <em>fitting</em> the curve so it remains very close to a set of
* observed points (x<sub>0</sub>, y<sub>0</sub>), (x<sub>1</sub>,
* y<sub>1</sub>) ... (x<sub>k-1</sub>, y<sub>k-1</sub>). This fitting
* is done by finding the parameters values that minimizes the objective
* function ∑(y<sub>i</sub>-f(x<sub>i</sub>))<sup>2</sup>. This is
* really a least squares problem.</p>
* @version $Revision$ $Date$
* @since 2.0
*/
public class CurveFitter {
/** Optimizer to use for the fitting. */
private final DifferentiableMultivariateVectorialOptimizer optimizer;
/** Observed points. */
private final List<WeightedObservedPoint> observations;
/** Simple constructor.
* @param optimizer optimizer to use for the fitting
*/
public CurveFitter(final DifferentiableMultivariateVectorialOptimizer optimizer) {
this.optimizer = optimizer;
observations = new ArrayList<WeightedObservedPoint>();
}
/** Add an observed (x,y) point to the sample with unit weight.
* <p>Calling this method is equivalent to call
* {@code addObservedPoint(1.0, x, y)}.</p>
* @param x abscissa of the point
* @param y observed value of the point at x, after fitting we should
* have f(x) as close as possible to this value
* @see #addObservedPoint(double, double, double)
* @see #addObservedPoint(WeightedObservedPoint)
* @see #getObservations()
*/
public void addObservedPoint(double x, double y) {
addObservedPoint(1.0, x, y);
}
/** Add an observed weighted (x,y) point to the sample.
* @param weight weight of the observed point in the fit
* @param x abscissa of the point
* @param y observed value of the point at x, after fitting we should
* have f(x) as close as possible to this value
* @see #addObservedPoint(double, double)
* @see #addObservedPoint(WeightedObservedPoint)
* @see #getObservations()
*/
public void addObservedPoint(double weight, double x, double y) {
observations.add(new WeightedObservedPoint(weight, x, y));
}
/** Add an observed weighted (x,y) point to the sample.
* @param observed observed point to add
* @see #addObservedPoint(double, double)
* @see #addObservedPoint(double, double, double)
* @see #getObservations()
*/
public void addObservedPoint(WeightedObservedPoint observed) {
observations.add(observed);
}
/** Get the observed points.
* @return observed points
* @see #addObservedPoint(double, double)
* @see #addObservedPoint(double, double, double)
* @see #addObservedPoint(WeightedObservedPoint)
*/
public WeightedObservedPoint[] getObservations() {
return observations.toArray(new WeightedObservedPoint[observations.size()]);
}
/**
* Remove all observations.
*/
public void clearObservations() {
observations.clear();
}
/** Fit a curve.
* <p>This method compute the coefficients of the curve that best
* fit the sample of observed points previously given through calls
* to the {@link #addObservedPoint(WeightedObservedPoint)
* addObservedPoint} method.</p>
* @param f parametric function to fit
* @param initialGuess first guess of the function parameters
* @return fitted parameters
* @exception org.apache.commons.math.exception.ConvergenceException
* if the algorithm failed to converge.
* @exception org.apache.commons.math.exception.DimensionMismatchException
* if the start point dimension is wrong.
*/
public double[] fit(final ParametricRealFunction f,
final double[] initialGuess) {
// prepare least squares problem
double[] target = new double[observations.size()];
double[] weights = new double[observations.size()];
int i = 0;
for (WeightedObservedPoint point : observations) {
target[i] = point.getY();
weights[i] = point.getWeight();
++i;
}
// perform the fit
VectorialPointValuePair optimum =
optimizer.optimize(new TheoreticalValuesFunction(f), target, weights, initialGuess);
// extract the coefficients
return optimum.getPointRef();
}
/** Vectorial function computing function theoretical values. */
private class TheoreticalValuesFunction
implements DifferentiableMultivariateVectorialFunction {
/** Function to fit. */
private final ParametricRealFunction f;
/** Simple constructor.
* @param f function to fit.
*/
public TheoreticalValuesFunction(final ParametricRealFunction f) {
this.f = f;
}
/** {@inheritDoc} */
public MultivariateMatrixFunction jacobian() {
return new MultivariateMatrixFunction() {
public double[][] value(double[] point) {
final double[][] jacobian = new double[observations.size()][];
int i = 0;
for (WeightedObservedPoint observed : observations) {
jacobian[i++] = f.gradient(observed.getX(), point);
}
return jacobian;
}
};
}
/** {@inheritDoc} */
public double[] value(double[] point) {
// compute the residuals
final double[] values = new double[observations.size()];
int i = 0;
for (WeightedObservedPoint observed : observations) {
values[i++] = f.value(observed.getX(), point);
}
return values;
}
}
}
|
[
"durieuxthomas@hotmail.com"
] |
durieuxthomas@hotmail.com
|
73428b01a0bb11250dec4628b8a106349e7ab65c
|
96c71c8dac1651828d192d27687fe8884a5e1f74
|
/entity/src/main/java/com/pegasus/kafka/entity/dto/SysLag.java
|
720e0dfd1103675ae219799f96043226b6713325
|
[] |
no_license
|
ZhangNingPegasus/kafka-monitor
|
b88fe51c62fbc2b45c69df25f6c6c6722ca482de
|
1e68910113efc542d2c55c9710f8b207eae76f5f
|
refs/heads/master
| 2022-11-04T14:44:06.066073
| 2020-11-10T11:24:38
| 2020-11-10T11:24:38
| 220,196,674
| 8
| 7
| null | 2022-10-12T20:34:34
| 2019-11-07T09:17:08
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 1,149
|
java
|
package com.pegasus.kafka.entity.dto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* The entity for table sys_lag. Using for saving how many messages are backlogged.
* <p>
* *****************************************************************
* Name Action Time Description *
* Ning.Zhang Initialize 11/7/2019 Initialize *
* *****************************************************************
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "`sys_lag`")
public class SysLag extends BaseDto {
/**
* 消费者名称
*/
@TableField(value = "`consumer_name`")
private String consumerName;
/**
* 消费者订阅的主题名称
*/
@TableField(value = "`topic_name`")
private String topicName;
/**
* 当前消费的偏移量位置
*/
@TableField(value = "`offset`")
private Long offset;
/**
* 消息堆积数量
*/
@TableField(value = "`lag`")
private Long lag;
}
|
[
"349409664@qq.com"
] |
349409664@qq.com
|
07f250882d17947260d0b602cab35b77f1af071c
|
898a6362f1a5571c56077afc02dbf70ea085e4ca
|
/Sharewood/src/main/java/com/dub/spring/exceptions/DuplicateMovieException.java
|
f1b1e05ba62e38e3cc5bcc1f45d414462018f8af
|
[] |
no_license
|
dubersfeld/sharewood-boot-oauth2
|
ed4365755585e879b2305c8ae690102599612dcd
|
35776081e8240e277463d7453e390c65fa9c01c4
|
refs/heads/master
| 2021-10-16T09:45:17.432734
| 2019-02-10T09:12:57
| 2019-02-10T09:12:57
| 103,113,384
| 2
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 169
|
java
|
package com.dub.spring.exceptions;
public class DuplicateMovieException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
}
|
[
"dominique42ubersfeld@gmail.com"
] |
dominique42ubersfeld@gmail.com
|
76c23ce624d2ab8551f7aff7cc10770a0a2fae47
|
a54288cd8cba7906a8ae2e1449335795686a3e3d
|
/app/src/main/java/com/android/myframework/prototypemode/architect_day17/simple1/SplitService.java
|
e7c026aace0751c91c4cf9fb4a738cb73b2c2dde
|
[] |
no_license
|
freedomangelly/MyFramework
|
5962e4a34f082408e1128ca92cd4a5f93b938966
|
9133e70da5e6154707e76b143b897b86570543c2
|
refs/heads/master
| 2021-04-27T00:12:22.059628
| 2019-04-30T08:01:38
| 2019-04-30T08:01:51
| 123,764,769
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,776
|
java
|
package com.android.myframework.prototypemode.architect_day17.simple1;
import java.util.ArrayList;
import java.util.List;
/**
* Created by hcDarren on 2017/10/21.
*/
public class SplitService {
/**
* 把箱子进行一下拆分
* 这么写的问题,就是这个代码有点多,而且不便于扩展,比如我要新增一种货箱(尾盖)
* @param box
* @return
*/
public static List<TruckCar> splitBox(IBox box){
List<TruckCar> carList = new ArrayList<>();
while (box.getNumber()>200){
// 要进行拆分
if(box instanceof PlasticClampBox){
PlasticClampBox orderBox = (PlasticClampBox) box;
// 每辆车的箱子
PlasticClampBox newBox = new PlasticClampBox();
newBox.setName(orderBox.getName());
newBox.setNumber(200);
TruckCar truckCar = new TruckCar();
truckCar.addBox(newBox);
carList.add(truckCar);
box.setNumber(box.getNumber() - 200);
}else if(box instanceof CarPartBox){
CarPartBox orderBox = (CarPartBox) box;
// 每辆车的箱子
CarPartBox newBox = new CarPartBox();
newBox.setName(orderBox.getName());
newBox.setNumber(200);
newBox.setCarBrand(orderBox.getCarBrand());
TruckCar truckCar = new TruckCar();
truckCar.addBox(newBox);
carList.add(truckCar);
box.setNumber(box.getNumber() - 200);
}
}
TruckCar truckCar = new TruckCar();
truckCar.addBox(box);
carList.add(truckCar);
return carList;
}
}
|
[
"674919909@qq.com"
] |
674919909@qq.com
|
5055a0907c0aef2b5c1098e1046fd6df549a0615
|
5ca3901b424539c2cf0d3dda52d8d7ba2ed91773
|
/src_procyon/com/google/protobuf/InvalidProtocolBufferException.java
|
9fd0c45a045cf19ba2fb7d041aaf8196ff4e335e
|
[] |
no_license
|
fjh658/bindiff
|
c98c9c24b0d904be852182ecbf4f81926ce67fb4
|
2a31859b4638404cdc915d7ed6be19937d762743
|
refs/heads/master
| 2021-01-20T06:43:12.134977
| 2016-06-29T17:09:03
| 2016-06-29T17:09:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,728
|
java
|
package com.google.protobuf;
import java.io.*;
public class InvalidProtocolBufferException extends IOException
{
private static final long serialVersionUID = -1616151763072450476L;
private MessageLite unfinishedMessage;
public InvalidProtocolBufferException(final String s) {
super(s);
this.unfinishedMessage = null;
}
public InvalidProtocolBufferException setUnfinishedMessage(final MessageLite unfinishedMessage) {
this.unfinishedMessage = unfinishedMessage;
return this;
}
public MessageLite getUnfinishedMessage() {
return this.unfinishedMessage;
}
static InvalidProtocolBufferException truncatedMessage() {
return new InvalidProtocolBufferException("While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either than the input has been truncated or that an embedded message misreported its own length.");
}
static InvalidProtocolBufferException negativeSize() {
return new InvalidProtocolBufferException("CodedInputStream encountered an embedded string or message which claimed to have negative size.");
}
static InvalidProtocolBufferException malformedVarint() {
return new InvalidProtocolBufferException("CodedInputStream encountered a malformed varint.");
}
static InvalidProtocolBufferException invalidTag() {
return new InvalidProtocolBufferException("Protocol message contained an invalid tag (zero).");
}
static InvalidProtocolBufferException invalidEndTag() {
return new InvalidProtocolBufferException("Protocol message end-group tag did not match expected tag.");
}
static InvalidProtocolBufferException invalidWireType() {
return new InvalidProtocolBufferException("Protocol message tag had invalid wire type.");
}
static InvalidProtocolBufferException recursionLimitExceeded() {
return new InvalidProtocolBufferException("Protocol message had too many levels of nesting. May be malicious. Use CodedInputStream.setRecursionLimit() to increase the depth limit.");
}
static InvalidProtocolBufferException sizeLimitExceeded() {
return new InvalidProtocolBufferException("Protocol message was too large. May be malicious. Use CodedInputStream.setSizeLimit() to increase the size limit.");
}
static InvalidProtocolBufferException parseFailure() {
return new InvalidProtocolBufferException("Failed to parse the message.");
}
static InvalidProtocolBufferException invalidUtf8() {
return new InvalidProtocolBufferException("Protocol message had invalid UTF-8.");
}
}
|
[
"manouchehri@riseup.net"
] |
manouchehri@riseup.net
|
99ee80b614460c21fc948ec9958b1b69d18baab3
|
fd34bc57a54757fd6c29980347eb0a22213f5430
|
/gae-endp-test/src/main/java/it/mate/gendtest/services/RestController.java
|
0b74015cd9ddc9500ebb806cf611d97460dd925a
|
[] |
no_license
|
urazovm/marcelatelab
|
7b64c1c3f6bad786590964e5115d811787bc91a2
|
b9e264ecb4fe99b8966a8e4babc588b4aec4725f
|
refs/heads/master
| 2021-06-01T06:25:35.860311
| 2016-04-29T12:22:07
| 2016-04-29T12:22:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,158
|
java
|
package it.mate.gendtest.services;
import it.mate.gendtest.shared.model.Command;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class RestController {
private static Logger logger = Logger.getLogger(RestController.class);
@Autowired private GendAdapter adapter;
@RequestMapping ("/getRandomCommand/{cliendId}")
public @ResponseBody Command getRandomCommand(@PathVariable("cliendId") String clientId) {
Command request = adapter.getRandomCommand(clientId);
logger.debug("returning " + request);
return request;
}
@RequestMapping ("/getPendingCommand/{cliendId}")
public @ResponseBody Command getPendingCommand(@PathVariable("cliendId") String clientId) {
Command request = adapter.popPendingCommand(clientId);
logger.debug("returning " + request);
return request;
}
}
|
[
"demarco.m73@gmail.com"
] |
demarco.m73@gmail.com
|
8ac12a841697084d3de7c9187cb61081aec3d3ae
|
bc557f4a6bc1f673f6013d20361a000fc7daac11
|
/android-lib/dmlib/src/main/java/com/damai/widget/DMWebView.java
|
7294058a20a193289883714353ac8df5ebe83748
|
[] |
no_license
|
gxl244642529/ecard_realName
|
6ec14e5feb19dac70e8df1ea2e2fe6111a93b15c
|
23d9fd11d8a78196433681519c7dec479e2a809e
|
refs/heads/master
| 2021-04-09T10:17:42.834082
| 2018-03-16T09:41:04
| 2018-03-16T09:41:04
| 125,492,140
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 872
|
java
|
package com.damai.widget;
import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
public class DMWebView extends WebView {
private WebChromeClient chromeClient = new WebChromeClient() {
@Override
public void onProgressChanged(WebView view, int progress) {
}
};
@SuppressLint("SetJavaScriptEnabled")
public DMWebView(Context context, AttributeSet attrs) {
super(context, attrs);
setWebChromeClient(chromeClient);
WebSettings webSettings = getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setDefaultTextEncodingName("utf-8");
//访问的时候使用window.plat.xxxx
addJavascriptInterface(insertObj, "plat");
}
private Object insertObj = new Object() {
};
}
|
[
"244642529@qq.com"
] |
244642529@qq.com
|
b288f2304bb0251d1cf09f599ba7045394f0d03c
|
0aff735c9a49ccf9c004ea07e94cd60f911c8338
|
/net/minecraft/network/play/server/S13PacketDestroyEntities.java
|
85221ce43cadab4856b23d58686f61c018ef524c
|
[] |
no_license
|
a3535ed54a5ee6917a46cfa6c3f12679/a775b0d7_phenix_mc_InDev
|
00be6df18da5ce388ba49d8c275ef664453e7bd8
|
9581b9fcf37b967a438ea7cfe1c58720268fd134
|
refs/heads/master
| 2021-09-06T10:02:23.512201
| 2018-02-05T08:50:24
| 2018-02-05T08:50:24
| 120,032,615
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,300
|
java
|
package net.minecraft.network.play.server;
import java.io.IOException;
import net.minecraft.network.INetHandler;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerPlayClient;
public class S13PacketDestroyEntities extends Packet
{
private int[] field_149100_a;
private static final String __OBFID = "CL_00001320";
public S13PacketDestroyEntities() {}
public S13PacketDestroyEntities(int ... p_i45211_1_)
{
this.field_149100_a = p_i45211_1_;
}
/**
* Reads the raw packet data from the data stream.
*/
public void readPacketData(PacketBuffer p_148837_1_) throws IOException
{
this.field_149100_a = new int[p_148837_1_.readByte()];
for (int var2 = 0; var2 < this.field_149100_a.length; ++var2)
{
this.field_149100_a[var2] = p_148837_1_.readInt();
}
}
/**
* Writes the raw packet data to the data stream.
*/
public void writePacketData(PacketBuffer p_148840_1_) throws IOException
{
p_148840_1_.writeByte(this.field_149100_a.length);
for (int var2 = 0; var2 < this.field_149100_a.length; ++var2)
{
p_148840_1_.writeInt(this.field_149100_a[var2]);
}
}
public void processPacket(INetHandlerPlayClient p_149099_1_)
{
p_149099_1_.handleDestroyEntities(this);
}
/**
* Returns a string formatted as comma separated [field]=[value] values. Used by Minecraft for logging purposes.
*/
public String serialize()
{
StringBuilder var1 = new StringBuilder();
for (int var2 = 0; var2 < this.field_149100_a.length; ++var2)
{
if (var2 > 0)
{
var1.append(", ");
}
var1.append(this.field_149100_a[var2]);
}
return String.format("entities=%d[%s]", new Object[] {Integer.valueOf(this.field_149100_a.length), var1});
}
public int[] func_149098_c()
{
return this.field_149100_a;
}
public void processPacket(INetHandler p_148833_1_)
{
this.processPacket((INetHandlerPlayClient)p_148833_1_);
}
}
|
[
"unknowlk@tuta.io"
] |
unknowlk@tuta.io
|
17f3b1ccd0309954a6400db458b10013f7a4e871
|
b2dc78fabbc797f00b6677794df6a663622ff72b
|
/src/main/java/com/citrsw/annatation/ApiMapProperty.java
|
baa87c2b85199a76c8a19cdbb832917be3039bd5
|
[] |
no_license
|
1198084656/JavaApiDocs
|
b1dbfbda47ae47aaeb74a906790161c838751f2f
|
d85e5a1cbdc09fc968d9745d5ba067a33ea5c04c
|
refs/heads/master
| 2023-02-02T12:44:09.353616
| 2020-12-18T14:09:43
| 2020-12-18T14:09:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,044
|
java
|
package com.citrsw.annatation;
import org.springframework.web.bind.annotation.ValueConstants;
import java.lang.annotation.*;
/**
* Map类型属性注解集合
*
* @author Zhenfeng Li
* @date 2020-01-10 19:02:32
*/
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
//制定容器类的类型
@Repeatable(ApiMapPropertyContainer.class)
public @interface ApiMapProperty {
/**
* 名称
* 支持多级配置
* 例如:user.info.level
*/
String name();
/**
* 描述
*/
String description() default "";
/**
* 是否必须
*/
boolean required() default false;
/**
* 数据类型[int,long,date,string,double]
*/
String type() default "";
/**
* 数据格式(一般用于日期)[yyyy-MM-dd HH:mm:ss]
*/
String format() default "";
/**
* 默认值
*/
String defaultValue() default ValueConstants.DEFAULT_NONE;
/**
* 示例
*/
String example() default "";
}
|
[
"15706058532@163.com"
] |
15706058532@163.com
|
30748bd331c6ac20bfb1d4696bc6b1910af658f8
|
34dcfed241b2403e333b2e9fa19cd623524ba9b9
|
/actionables-pmc-ref/src/main/java/com/oculussoftware/repos/query/QExpr.java
|
f8cb76bb3ee3213a40e55735b1a747717b67457f
|
[
"Apache-2.0"
] |
permissive
|
jimcoles/actionable
|
3bb5653c35dce9e2ff57aefb04b4b8a508ca49aa
|
ed9640958311155f0a950ff5d9b2ff50300319a8
|
refs/heads/master
| 2021-01-12T19:43:59.027379
| 2016-08-26T23:25:31
| 2016-08-26T23:25:31
| 64,573,631
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,103
|
java
|
package com.oculussoftware.repos.query;
/**
* $Workfile: QExpr.java $
* Create Date: 6/4/2000
* Description: Represents a query expression for filters.
*
* Copyright 7/01/2000 Oculus Software. All Rights Reserved.
*
* Author J. Coles
* Version 1.2
*
* $History: QExpr.java $
*
* ***************** Version 2 *****************
* User: Sshafi Date: 7/28/00 Time: 10:02a
* Updated in $/Project - Socrates/DevSource1.2/Framework.Java/com/oculussoftware/repos/query
*
* ***************** Version 1 *****************
* User: Jcoles Date: 7/13/00 Time: 11:31a
* Created in $/Project - Socrates/DevSource1.2/Framework.Java/com/oculussoftware/repos/query
*/
import java.util.*;
import com.oculussoftware.api.repi.query.*;
/** Implements IQExpr for the PMC query subsystem. */
public class QExpr implements IQExpr
{
//----------------------------------------------------------------------
// Private class vars
//----------------------------------------------------------------------
//----------------------------------------------------------------------
// Private instance vars
//----------------------------------------------------------------------
private IOperator _oper = null;
private Object _leftArg = null;
private Object _rightArg = null;
//----------------------------------------------------------------------
// Constructor(s)
//----------------------------------------------------------------------
public QExpr()
{
}
public QExpr(IOperator oper, Object left, Object right)
{
setOper(oper);
setLeft(left);
setRight(right);
}
//----------------------------------------------------------------------
// Public Methods
//----------------------------------------------------------------------
public Object getLeft() { return _leftArg; }
public Object getRight() { return _rightArg; }
public IOperator getOper() { return _oper; }
public void setOper(IOperator oper) { _oper = oper; }
public void setLeft(Object left) { _leftArg = left; }
public void setRight(Object right) { _rightArg = right; }
}
|
[
"jameskcoles@gmail.com"
] |
jameskcoles@gmail.com
|
adedf4c101853335a878630641fadd3488150536
|
327a9147939cbfb1afb7a1d212a6448a30492667
|
/src/main/java/com/pump/swing/JavaFormatter.java
|
22721cd3280b404ce7388d4e9323a2659ea0e0bc
|
[
"MIT"
] |
permissive
|
mickleness/pumpernickel
|
400b7b2089bdd0c7fb2f3080c763b2e432ddbb4e
|
aa275b4336dbcca60ec26960d59ff0875bddce05
|
refs/heads/master
| 2023-07-22T11:33:23.327894
| 2023-07-12T05:12:04
| 2023-07-12T05:12:04
| 64,222,790
| 60
| 17
|
MIT
| 2023-07-12T03:17:43
| 2016-07-26T13:19:20
|
Java
|
UTF-8
|
Java
| false
| false
| 4,420
|
java
|
/**
* This software is released as part of the Pumpernickel project.
*
* All com.pump resources in the Pumpernickel project are distributed under the
* MIT License:
* https://github.com/mickleness/pumpernickel/raw/master/License.txt
*
* More information about the Pumpernickel project is available here:
* https://mickleness.github.io/pumpernickel/
*/
package com.pump.swing;
import java.awt.Color;
import java.awt.Font;
import java.io.Reader;
import java.io.StringReader;
import javax.swing.text.AttributeSet;
import javax.swing.text.JTextComponent;
import javax.swing.text.SimpleAttributeSet;
import javax.swing.text.StyleConstants;
import com.pump.io.parser.Parser.CommentToken;
import com.pump.io.parser.Parser.StringToken;
import com.pump.io.parser.Parser.SymbolCharToken;
import com.pump.io.parser.Parser.UnparsedToken;
import com.pump.io.parser.Token;
import com.pump.io.parser.java.JavaParser;
import com.pump.io.parser.java.JavaParser.CharToken;
import com.pump.io.parser.java.JavaParser.WordToken;
import com.pump.text.TokenTextComponentHighlighter;
import com.pump.util.Receiver;
/**
* This formats text using a monospaced formatting scheme similar to the default
* Eclipse formatting options.
*
* @see <a href=
* "https://javagraphics.blogspot.com/2015/12/text-formatting-source-code-in-swing.html">Text:
* Formatting Source Code in Swing</a>
*/
public class JavaFormatter extends TokenTextComponentHighlighter {
protected SimpleAttributeSet defaultAttributes, keywordAttributes,
errorAttributes, commentAttributes, stringAttributes,
importantPunctuationAttributes;
/**
* Create a new JavaFormatter.
*
* @param jtc
* the text component to apply formatting to.
*/
public JavaFormatter(JTextComponent jtc) {
super(jtc);
jtc.putClientProperty("caretWidth", new Integer(3));
jtc.getCaret().setBlinkRate(500);
initializeAttributes();
Font defaultFont = new Font(
StyleConstants.getFontFamily(defaultAttributes), 0,
StyleConstants.getFontSize(defaultAttributes));
jtc.setFont(defaultFont);
}
@Override
protected SimpleAttributeSet getDefaultAttributes() {
initializeAttributes();
return defaultAttributes;
}
/** Initialize the SimpleAttributeSets used to format text. */
protected void initializeAttributes() {
if (defaultAttributes == null) {
Color keywordColor = new Color(127, 0, 85);
Color commentColor = new Color(0, 140, 0);
Color stringColor = new Color(45, 0, 255);
Color errorColor = new Color(200, 0, 25);
defaultAttributes = new SimpleAttributeSet();
StyleConstants.setFontFamily(defaultAttributes, "Monospaced");
StyleConstants.setFontSize(defaultAttributes, 14);
keywordAttributes = new SimpleAttributeSet(defaultAttributes);
StyleConstants.setBold(keywordAttributes, true);
StyleConstants.setForeground(keywordAttributes, keywordColor);
commentAttributes = new SimpleAttributeSet(defaultAttributes);
StyleConstants.setForeground(commentAttributes, commentColor);
stringAttributes = new SimpleAttributeSet(defaultAttributes);
StyleConstants.setForeground(stringAttributes, stringColor);
errorAttributes = new SimpleAttributeSet(defaultAttributes);
StyleConstants.setForeground(errorAttributes, errorColor);
importantPunctuationAttributes = new SimpleAttributeSet(
defaultAttributes);
StyleConstants.setBold(importantPunctuationAttributes, true);
}
}
@Override
protected AttributeSet getAttributes(Token[] tokens, int tokenIndex,
int selectionStart, int selectionEnd) {
Token token = tokens[tokenIndex];
if (token instanceof StringToken || token instanceof CharToken) {
return stringAttributes;
}
if (token instanceof WordToken) {
WordToken word = (WordToken) token;
if (word.isKeyword || word.isLiteral)
return keywordAttributes;
}
if (token instanceof CommentToken) {
return commentAttributes;
}
if (token instanceof UnparsedToken) {
return errorAttributes;
}
if (token instanceof SymbolCharToken) {
char ch = ((SymbolCharToken) token).getChar();
if (ch == ';' || ch == ',') {
return importantPunctuationAttributes;
}
}
return defaultAttributes;
}
@Override
protected void createTokens(String inputText, Receiver<Token> receiver)
throws Exception {
try (Reader reader = new StringReader(inputText)) {
new JavaParser().parse(reader, receiver);
}
}
}
|
[
"jeremy.wood@mac.com"
] |
jeremy.wood@mac.com
|
11970db924c0f73c202116b8f1e466f4ab2498b4
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/13/13_ef49d2e5d20cf540d299a8de87abbcc38e2de67e/DomainBuilderTest/13_ef49d2e5d20cf540d299a8de87abbcc38e2de67e_DomainBuilderTest_t.java
|
c67ddc770a9a98d76283157c4fee0068ed13f60f
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 3,161
|
java
|
package org.motechproject.whp.reports.builder;
import org.joda.time.DateTime;
import org.junit.Test;
import org.motechproject.whp.reports.contract.CallLogRequest;
import org.motechproject.whp.reports.contract.FlashingLogRequest;
import org.motechproject.whp.reports.domain.measure.CallLog;
import org.motechproject.whp.reports.domain.measure.FlashingLog;
import java.sql.Date;
import java.sql.Timestamp;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
public class DomainBuilderTest {
@Test
public void shouldCreateCallLog() {
DateTime now = new DateTime();
DateTime startTime = now.minusMinutes(10);
DateTime endTime = now;
CallLogRequest callLogRequest = new CallLogRequest();
callLogRequest.setCalledBy("caller");
callLogRequest.setProviderId("providerId");
callLogRequest.setStartTime(startTime.toDate());
callLogRequest.setEndTime(endTime.toDate());
callLogRequest.setTotalPatients(12);
callLogRequest.setAdherenceCaptured(4);
callLogRequest.setAdherenceNotCaptured(8);
callLogRequest.setCallId("callId");
callLogRequest.setCallStatus("callStatusValue");
CallLog callLog = DomainBuilder.buildCallLog(callLogRequest);
assertThat(callLog.getCalledBy(), is(callLogRequest.getCalledBy()));
assertThat(callLog.getStartDate(), is(new Date(callLogRequest.getStartTime().getTime())));
assertThat(callLog.getStartDateTime(), is(new Timestamp(callLogRequest.getStartTime().getTime())));
assertThat(callLog.getEndDate(), is(new Date(callLogRequest.getEndTime().getTime())));
assertThat(callLog.getEndDateTime(), is(new Timestamp(callLogRequest.getEndTime().getTime())));
assertThat(callLog.getProviderId(), is(callLogRequest.getProviderId()));
assertThat(callLog.getTotalPatients(), is(callLogRequest.getTotalPatients()));
assertThat(callLog.getAdherenceCaptured(), is(callLogRequest.getAdherenceCaptured()));
assertThat(callLog.getAdherenceNotCaptured(), is(callLogRequest.getAdherenceNotCaptured()));
assertThat(callLog.getCallId(), is(callLogRequest.getCallId()));
assertThat(callLog.getCallStatus(), is(callLogRequest.getCallStatus()));
assertThat(callLog.getDuration(), is(600L));
}
@Test
public void shouldCreateFlashingLog(){
FlashingLogRequest flashingLogRequest = new FlashingLogRequest();
flashingLogRequest.setProviderId("ABC");
flashingLogRequest.setCallTime((new DateTime()).toDate());
flashingLogRequest.setCreationTime((new DateTime()).toDate());
flashingLogRequest.setMobileNumber("1234567890");
FlashingLog flashingLog = DomainBuilder.buildFlashingRequestLog(flashingLogRequest);
assertThat(flashingLog.getCallTime(), is(flashingLogRequest.getCallTime()));
assertThat(flashingLog.getMobileNumber(), is(flashingLogRequest.getMobileNumber()));
assertThat(flashingLog.getProviderId(), is(flashingLogRequest.getProviderId()));
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
f748bd8319593699495abc0d34829e95ccfe37c7
|
5d49e39b3d6473b01b53b1c50397b2ab3e2c47b3
|
/Enterprise Projects/ips-outward-producer/src/main/java/com/combank/ips/outward/producer/model/pacs_004_001/CreditorReferenceType1Choice.java
|
19fd95fb31769571cc4be60e4fc4f716492d4afe
|
[] |
no_license
|
ThivankaWijesooriya/Developer-Mock
|
54524e4319457fddc1050bfdb0b13c39c54017aa
|
3acbaa98ff4b64fe226bcef0f3e69d6738bdbf65
|
refs/heads/master
| 2023-03-02T04:14:18.253449
| 2023-01-28T05:54:06
| 2023-01-28T05:54:06
| 177,391,319
| 0
| 0
| null | 2020-01-08T17:26:30
| 2019-03-24T08:56:29
|
CSS
|
UTF-8
|
Java
| false
| false
| 2,566
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2022.08.22 at 12:41:17 AM IST
//
package com.combank.ips.outward.producer.model.pacs_004_001;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import iso.std.iso._20022.tech.xsd.pacs_004_001.DocumentType3Code;
/**
* <p>Java class for CreditorReferenceType1Choice complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="CreditorReferenceType1Choice">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice>
* <element name="Cd" type="{urn:iso:std:iso:20022:tech:xsd:pacs.004.001.10}DocumentType3Code"/>
* <element name="Prtry" type="{urn:iso:std:iso:20022:tech:xsd:pacs.004.001.10}Max35Text"/>
* </choice>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CreditorReferenceType1Choice", propOrder = {
"cd",
"prtry"
})
public class CreditorReferenceType1Choice {
@XmlElement(name = "Cd")
protected DocumentType3Code cd;
@XmlElement(name = "Prtry")
protected String prtry;
/**
* Gets the value of the cd property.
*
* @return
* possible object is
* {@link DocumentType3Code }
*
*/
public DocumentType3Code getCd() {
return cd;
}
/**
* Sets the value of the cd property.
*
* @param value
* allowed object is
* {@link DocumentType3Code }
*
*/
public void setCd(DocumentType3Code value) {
this.cd = value;
}
/**
* Gets the value of the prtry property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPrtry() {
return prtry;
}
/**
* Sets the value of the prtry property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPrtry(String value) {
this.prtry = value;
}
}
|
[
"thivankawijesooriya@gmail.com"
] |
thivankawijesooriya@gmail.com
|
0e740ae8427c631bfceae5abae90b3a05e415f12
|
aaa9649c3e52b2bd8e472a526785f09e55a33840
|
/EquationCommon/src/com/misys/equation/common/dao/beans/OSRecordDataModel.java
|
2f732457296b34b573ad181de7aed2d80af13022
|
[] |
no_license
|
jcmartin2889/Repo
|
dbfd02f000e65c96056d4e6bcc540e536516d775
|
259c51703a2a50061ad3c99b8849477130cde2f4
|
refs/heads/master
| 2021-01-10T19:34:17.555112
| 2014-04-29T06:01:01
| 2014-04-29T06:01:01
| 19,265,367
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,572
|
java
|
package com.misys.equation.common.dao.beans;
import com.misys.equation.common.search.results.DealSearchResult;
import com.misys.equation.common.search.results.ISearchResult;
/**
* This is the data model representing the deals logical table (OS10LF).
*
* @author camillen
*
*/
public class OSRecordDataModel extends SearchResultDataModel
{
// This attribute is used to store cvs version information.
public static final String _revision = "$Id: OSRecordDataModel.java 6788 2010-03-30 16:39:35Z hempensp $";
/**
* Unique serialID
*/
private static final long serialVersionUID = -5351032836928373885L;
private static final String RECORD_NAME = "OS10LF"; // Note that we base the DAO on the logical not Physical.
private String branchMnemonic; // Branch Mnemonic (OSBRNM)
private String dealType; // Deal Type (OSDLP)
private String dealReference; // Deal Reference (OSDLR)
/**
* Default constructor
*/
public OSRecordDataModel()
{
super();
setEqFileName(RECORD_NAME);
}
/**
* Parameterised constructor
*
* @param branchMnemonic
* @param dealType
* @param dealReference
*/
public OSRecordDataModel(final String branchMnemonic, final String dealType, final String dealReference)
{
this();
this.branchMnemonic = branchMnemonic;
this.dealType = dealType;
this.dealReference = dealReference;
}
/**
* Getter method for branchMnemonic
*
* @return branchMnemonic - String
*/
public String getBranchMnemonic()
{
return branchMnemonic;
}
/**
* Setter method for branchMnemonic
*
* @param branchMnemonic
* - String
*/
public void setBranchMnemonic(String branchMnemonic)
{
this.branchMnemonic = branchMnemonic;
}
/**
* Getter method for dealType
*
* @return dealType - String
*/
public String getDealType()
{
return dealType;
}
/**
* Setter method for dealType
*
* @param dealType
* - String
*/
public void setDealType(String dealType)
{
this.dealType = dealType;
}
/**
* Getter method for dealType
*
* @return dealType - String
*/
public String getDealReference()
{
return dealReference;
}
/**
* Setter method for dealReference
*
* @param dealReference
* - String
*/
public void setDealReference(String dealReference)
{
this.dealReference = dealReference;
}
@Override
public ISearchResult populateFromDataModel(AbsRecord dataModel, final String unit, final String system)
{
return new DealSearchResult(branchMnemonic, dealType, dealReference, unit, system, "CUSTOMER", null);
}
}
|
[
"jomartin@MAN-D7R8ZYY1.misys.global.ad"
] |
jomartin@MAN-D7R8ZYY1.misys.global.ad
|
70017c1a563b85bccaa61a418943cd38faf4ee63
|
5b20675279b8c3559512397563b7dacc690e8785
|
/gameserver/branches/obfuscated/game-src/com/l2jfrozen/gameserver/network/serverpackets/TutorialShowQuestionMark.java
|
19ac3c653c117b6e191a0fd8b822174f88cd9b33
|
[] |
no_license
|
Bokoa/l2jfrozen
|
0226a1d30eaf4bfa0078fedb46ac4f650cbca805
|
624d29604b1626f379929f0100c6a3a431a7f89b
|
refs/heads/master
| 2023-02-11T01:39:49.699822
| 2020-05-10T12:50:46
| 2020-05-10T12:50:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,573
|
java
|
/*
* L2jFrozen Project - www.l2jfrozen.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
package com.l2jfrozen.gameserver.network.serverpackets;
public class TutorialShowQuestionMark extends L2GameServerPacket
{
private static final String _S__A1_TUTORIALSHOWQUESTIONMARK = "[S] a1 TutorialShowQuestionMark";
private final int _blink;
public TutorialShowQuestionMark(final int blink)
{
_blink = blink; // this influences the blinking frequancy :S
}
/*
* (non-Javadoc)
* @see com.l2jfrozen.gameserver.serverpackets.ServerBasePacket#writeImpl()
*/
@Override
protected void writeImpl()
{
C(0xa1);
D(_blink);
}
/*
* (non-Javadoc)
* @see com.l2jfrozen.gameserver.BasePacket#getType()
*/
@Override
public String getType()
{
return _S__A1_TUTORIALSHOWQUESTIONMARK;
}
}
|
[
"77194947+Shyla-L2jFrozen@users.noreply.github.com"
] |
77194947+Shyla-L2jFrozen@users.noreply.github.com
|
7007bc353be0febfb75ae3b38c4ea4db87a62f7c
|
5fdaecaa5af06b8b8bdfae255842d194869010a0
|
/stone/src/main/java/org/imzdong/study/stone/lettcode/link/MergeTwoNode.java
|
54604814c0461834c938454802ca978441e0ae62
|
[
"Apache-2.0"
] |
permissive
|
imzdong/study
|
6043438558b098bfa000de138face7a817cbf857
|
185ea85d1094704ecbdd21502116e041b86d8d1c
|
refs/heads/master
| 2023-05-03T02:15:24.737918
| 2022-04-30T05:28:38
| 2022-04-30T05:28:38
| 228,578,367
| 0
| 0
|
Apache-2.0
| 2020-05-10T10:08:03
| 2019-12-17T09:16:53
|
Java
|
UTF-8
|
Java
| false
| false
| 1,886
|
java
|
package org.imzdong.study.stone.lettcode.link;
/**
* 两个有序的链表合并
* @author admin
* @date 2021/4/30 2:03 下午
*/
public class MergeTwoNode {
public static void main(String[] args) {
mergeTwoLists(null, null);
}
private static ListNode mergeTwoLists(ListNode l1, ListNode l2) {
if(l1 == null && l2 == null){
return null;
}
if(l1 == null){
return l2;
}
if(l2 == null){
return l1;
}
ListNode l3 = new ListNode(0);
ListNode rr = l3;
while (true){
if(l1.val <= l2.val){
l3.next = l1;
l1 = l1.next;
if(l1 == null){
l3.next.next = l2;
}
}else {
l3.next = l2;
l2 = l2.next;
if(l2 == null){
l3.next.next = l1;
}
}
if(l1 == null || l2 == null){
break;
}
l3 = l3.next;
}
return rr.next;
}
/**
* 上述思路也可以通过递归来实现。
* 从两个输入链表的头结点l1、l2开始进行比较,将结点值较小者设为头结点,
* 递归调用自身计算l1.next和l2(或l1和l2.next)的合并,使头节点指向合并后的链表头。
* @param l1
* @param l2
* @return
*/
private static ListNode recurseMerge(ListNode l1, ListNode l2){
if(l1 == null){
return l2;
}
if(l2 == null){
return l1;
}
ListNode head;
if(l1.val <= l2.val){
head = l1;
head.next = recurseMerge(l1.next, l2);
}else {
head = l2;
head.next = recurseMerge(l2.next, l1);
}
return head;
}
}
|
[
"admin"
] |
admin
|
d0e22e819b2676c4585349ddeb14f6088039dfb6
|
a5bcc28628568f0af567141abd63268c723884d6
|
/src/main/java/query/Request.java
|
1f0bde28c52c8756a4928f79bb6bcf68cfa8892b
|
[] |
no_license
|
manojkhanwalkar/GraphDB
|
b2b17a01cf791cd5c5a2e092bb076e07bc98f832
|
261de0f38626c63d08e8391407dfbec6f996fdb4
|
refs/heads/master
| 2021-03-12T19:18:58.588979
| 2015-08-02T18:54:08
| 2015-08-02T18:54:08
| 39,254,949
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,018
|
java
|
package query;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import graphdb.DBOperation;
import org.codehaus.jackson.map.ObjectMapper;
import java.io.IOException;
public class Request
{
String dbName ;
public String getDbName() {
return dbName;
}
public void setDbName(String dbName) {
this.dbName = dbName;
}
DBOperation operation;
public DBOperation getOperation() {
return operation;
}
public void setOperation(DBOperation operation) {
this.operation = operation;
}
String id ;
String tgtId;
//NodeType type ;
public String getTgtId() {
return tgtId;
}
public void setTgtId(String tgtId) {
this.tgtId = tgtId;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
/*public NodeType getType() {
return type;
}
public void setType(NodeType type) {
this.type = type;
}*/
}
|
[
"manoj.khanwalkar@gmail.com"
] |
manoj.khanwalkar@gmail.com
|
14421897cfc0efbdc837fc1d2c23d86f2286a585
|
8cd677717658d22b770d7baa728e00d9acf917c8
|
/src/main/java/oop/asbtraction/task_2_barevner/Main.java
|
7c1ca3a593d8bd67c5caaa92152f93a0a149ceff
|
[] |
no_license
|
hakobyan-1997/_ArmWorkBook_
|
0a252d33f505b7082a4aa1526a4c35ff57ca0220
|
542679f98df2445e7b36c095f1e3bd6d20b1e54b
|
refs/heads/master
| 2020-04-02T13:56:28.640689
| 2018-10-22T22:09:08
| 2018-10-22T22:09:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 292
|
java
|
package oop.asbtraction.task_2_barevner;
public class Main {
public static void main(String[] args) {
Mardik[] marder = {new Pozitiv(), new Himar(), new Realist(), new Himar(), new Realist()};
Kontroller kontrol=new Kontroller();
kontrol.Method(marder);
}
}
|
[
"araik.armenia@gmail.com"
] |
araik.armenia@gmail.com
|
c73d7445433ff0bce3e3c5cfbf0b0c046b73ce99
|
45c221ad829c8a848dd889338e7a9394c6e29f83
|
/src/main/java/com/igomall/FileType.java
|
49bcc50497700d9b7f6b67bca2fa0b59c3315665
|
[] |
no_license
|
wyxhd2008/shop_v6_index
|
ac2c7bc229237f2c05afa36aa0d877bd8c52658f
|
94d44931af80535eb98d1cf8d49a2d3ec8a7ad82
|
refs/heads/master
| 2022-11-06T06:38:29.410277
| 2020-06-21T23:36:19
| 2020-06-21T23:36:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 204
|
java
|
package com.igomall;
/**
* 文件类型
*
* @author 好源++ Team
* @version 6.1
*/
public enum FileType {
/**
* 图片
*/
IMAGE,
/**
* 媒体
*/
MEDIA,
/**
* 文件
*/
FILE
}
|
[
"a12345678"
] |
a12345678
|
94952bb01cacf886fcc3c1cd09e986558957c202
|
c278b2e06e98b0b99ca7350cfc12d2e535db1841
|
/realAuth/realAuth-core/src/main/java/com/yl/realAuth/core/dao/mapper/AuthInfoManageMapper.java
|
93f798563e6e084ee97af8ece08faedb00d70237
|
[] |
no_license
|
SplendorAnLin/paymentSystem
|
ea778c03179a36755c52498fd3f5f1a5bbeb5d34
|
db308a354a23bd3a48ff88c16b29a43c4e483e7d
|
refs/heads/master
| 2023-02-26T14:16:27.283799
| 2022-10-20T07:50:35
| 2022-10-20T07:50:35
| 191,535,643
| 5
| 6
| null | 2023-02-22T06:42:24
| 2019-06-12T09:01:15
|
Java
|
UTF-8
|
Java
| false
| false
| 163
|
java
|
package com.yl.realAuth.core.dao.mapper;
import com.yl.realAuth.core.dao.AuthInfoManageDao;
public interface AuthInfoManageMapper extends AuthInfoManageDao {
}
|
[
"zl88888@live.com"
] |
zl88888@live.com
|
154739baa9c8e2d35e7bb6634e2a6e2fab60b52a
|
330257a0ee9b31b1e08070cb05f518d6e567606f
|
/modules/tts/tts-adapters/tts-adapter-espeak/src/main/java/org/daisy/pipeline/tts/espeak/impl/ESpeakEngine.java
|
d2e9b02e49c4a3c2d79e1235f5d83894a8f21535
|
[] |
no_license
|
erik-stenbacka-sigma/pipeline
|
a50317f67b90ece675023b6cb299d0fce96d6120
|
65e2a2740e65e071e965c5e250f83f2ce5058cbf
|
refs/heads/master
| 2023-04-18T15:22:15.191822
| 2021-04-20T10:30:03
| 2021-04-20T10:30:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,011
|
java
|
package org.daisy.pipeline.tts.espeak.impl;
import java.io.BufferedInputStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import net.sf.saxon.s9api.XdmNode;
import org.daisy.common.shell.CommandRunner;
import org.daisy.pipeline.audio.AudioBuffer;
import org.daisy.pipeline.tts.AudioBufferAllocator;
import org.daisy.pipeline.tts.AudioBufferAllocator.MemoryException;
import org.daisy.pipeline.tts.MarklessTTSEngine;
import org.daisy.pipeline.tts.SoundUtil;
import org.daisy.pipeline.tts.TTSRegistry.TTSResource;
import org.daisy.pipeline.tts.TTSService.SynthesisException;
import org.daisy.pipeline.tts.Voice;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ESpeakEngine extends MarklessTTSEngine {
private AudioFormat mAudioFormat;
private String[] mCmd;
private String mESpeakPath;
private final static int MIN_CHUNK_SIZE = 2048;
private int mPriority;
private final static Logger mLogger = LoggerFactory.getLogger(ESpeakEngine.class);
public ESpeakEngine(ESpeakService eSpeakService, String eSpeakPath, int priority) {
super(eSpeakService);
mESpeakPath = eSpeakPath;
mPriority = priority;
mCmd = new String[]{
eSpeakPath, "-m", "--stdout", "--stdin"
};
}
@Override
public Collection<AudioBuffer> synthesize(String sentence, XdmNode xmlSentence,
Voice voice, TTSResource threadResources, AudioBufferAllocator bufferAllocator, boolean retry)
throws SynthesisException,InterruptedException, MemoryException {
Collection<AudioBuffer> result = new ArrayList<AudioBuffer>();
try {
new CommandRunner(mCmd)
.feedInput(sentence.getBytes("utf-8"))
// read the wave on the standard output
.consumeOutput(stream -> {
BufferedInputStream in = new BufferedInputStream(stream);
AudioInputStream fi = AudioSystem.getAudioInputStream(in);
if (mAudioFormat == null)
mAudioFormat = fi.getFormat();
while (true) {
AudioBuffer b = bufferAllocator
.allocateBuffer(MIN_CHUNK_SIZE + fi.available());
int ret = fi.read(b.data, 0, b.size);
if (ret == -1) {
// note: perhaps it would be better to call allocateBuffer()
// somewhere else in order to avoid this extra call:
bufferAllocator.releaseBuffer(b);
break;
}
b.size = ret;
result.add(b);
}
fi.close();
})
.consumeError(mLogger)
.run();
} catch (MemoryException|InterruptedException e) {
SoundUtil.cancelFootPrint(result, bufferAllocator);
throw e;
} catch (Throwable e) {
SoundUtil.cancelFootPrint(result, bufferAllocator);
StringWriter sw = new StringWriter();
e.printStackTrace(new PrintWriter(sw));
throw new SynthesisException(e);
}
return result;
}
@Override
public AudioFormat getAudioOutputFormat() {
return mAudioFormat;
}
@Override
public Collection<Voice> getAvailableVoices() throws SynthesisException,
InterruptedException {
Collection<Voice> result;
try {
// First: get the list of all the available languages
Set<String> languages = new HashSet<String>();
new CommandRunner(mESpeakPath, "--voices")
// parse output
.consumeOutput(stream -> {
try (Scanner scanner = new Scanner(stream)) {
Matcher mr = Pattern.compile("\\s*[0-9]+\\s+([-a-z]+)").matcher("");
scanner.nextLine(); //headers
while (scanner.hasNextLine()) {
mr.reset(scanner.nextLine());
mr.find();
languages.add(mr.group(1).split("-")[0]);
}
}
}
)
.consumeError(mLogger)
.run();
// Second: get the list of the voices for the found languages.
// White spaces are not allowed in voice names
result = new ArrayList<Voice>();
Matcher mr = Pattern.compile("^\\s*[0-9]+\\s+[-a-z]+\\s+([FM]\\s+)?([^ ]+)").matcher("");
for (String lang : languages) {
new CommandRunner(mESpeakPath, "--voices=" + lang)
.consumeOutput(stream -> {
try (Scanner scanner = new Scanner(stream)) {
scanner.nextLine(); // headers
while (scanner.hasNextLine()) {
mr.reset(scanner.nextLine());
mr.find();
result.add(new Voice(getProvider().getName(), mr.group(2).trim()));
}
}
}
)
.consumeError(mLogger)
.run();
}
} catch (InterruptedException e) {
throw e;
} catch (Throwable e) {
throw new SynthesisException(e.getMessage(), e.getCause());
}
return result;
}
@Override
public int getOverallPriority() {
return mPriority;
}
@Override
public TTSResource allocateThreadResources() throws SynthesisException,
InterruptedException {
return new TTSResource();
}
}
|
[
"bertfrees@gmail.com"
] |
bertfrees@gmail.com
|
a697baac1fb680d85b5815d12860c1592b93d787
|
79c4ee1dd1db53267b8466c5f6a69312a715ad96
|
/frameworkx/dubbo-remoting/dubbo-remoting-api/src/main/java/com/alibaba/dubbo/remoting/buffer/ChannelBufferInputStream.java
|
3ca07b8454bf14e260931a78ea340904ebbb6539
|
[
"Apache-2.0"
] |
permissive
|
nince-wyj/jahhan
|
8978eaaa612e61d18f258b56bd386c32e6c7cdbe
|
9ee33e3b6380fdf516b0b88ceae43f3c67e87c15
|
refs/heads/master
| 2022-11-17T14:50:05.429321
| 2019-11-10T01:00:47
| 2019-11-10T01:00:47
| 71,103,781
| 11
| 8
|
Apache-2.0
| 2022-11-16T07:34:45
| 2016-10-17T05:45:48
|
Java
|
UTF-8
|
Java
| false
| false
| 2,935
|
java
|
/*
* Copyright 1999-2012 Alibaba Group.
*
* 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.alibaba.dubbo.remoting.buffer;
import java.io.IOException;
import java.io.InputStream;
/**
* @author <a href="mailto:gang.lvg@alibaba-inc.com">kimi</a>
*/
public class ChannelBufferInputStream extends InputStream {
private final ChannelBuffer buffer;
private final int startIndex;
private final int endIndex;
public ChannelBufferInputStream(ChannelBuffer buffer) {
this(buffer, buffer.readableBytes());
}
public ChannelBufferInputStream(ChannelBuffer buffer, int length) {
if (buffer == null) {
throw new NullPointerException("buffer");
}
if (length < 0) {
throw new IllegalArgumentException("length: " + length);
}
if (length > buffer.readableBytes()) {
throw new IndexOutOfBoundsException();
}
this.buffer = buffer;
startIndex = buffer.readerIndex();
endIndex = startIndex + length;
buffer.markReaderIndex();
}
public int readBytes() {
return buffer.readerIndex() - startIndex;
}
@Override
public int available() throws IOException {
return endIndex - buffer.readerIndex();
}
@Override
public void mark(int readlimit) {
buffer.markReaderIndex();
}
@Override
public boolean markSupported() {
return true;
}
@Override
public int read() throws IOException {
if (!buffer.readable()) {
return -1;
}
return buffer.readByte() & 0xff;
}
@Override
public int read(byte[] b, int off, int len) throws IOException {
int available = available();
if (available == 0) {
return -1;
}
len = Math.min(available, len);
buffer.readBytes(b, off, len);
return len;
}
@Override
public void reset() throws IOException {
buffer.resetReaderIndex();
}
@Override
public long skip(long n) throws IOException {
if (n > Integer.MAX_VALUE) {
return skipBytes(Integer.MAX_VALUE);
} else {
return skipBytes((int) n);
}
}
private int skipBytes(int n) throws IOException {
int nBytes = Math.min(available(), n);
buffer.skipBytes(nBytes);
return nBytes;
}
}
|
[
"41284688@qq.com"
] |
41284688@qq.com
|
b7de491e9bf2d6827fb0db9aeca0735f3ea055da
|
911a3245905dbe4dd808e82a215d6ebf0820ca0f
|
/src/Office_Hours/Practice_09_15_2020/MethodOverriding.java
|
328dc26bb2dedbedbfd51e1ea56bd163f56e8da4
|
[] |
no_license
|
Alex-B-I/Summer2020_B20
|
1d9f29279ff018fb1a1ae5b972bacb264bd011d9
|
197893a8d88838f8c5d4366c3bdfbb12ebfd5fdd
|
refs/heads/master
| 2023-02-11T15:57:19.218730
| 2021-01-05T00:47:26
| 2021-01-05T00:47:26
| 296,141,595
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 244
|
java
|
package Office_Hours.Practice_09_15_2020;
class X{
public void method1(int a){
System.out.println("A");
}
}
public class MethodOverriding extends X{
public void method1(int a){
System.out.println("B");
}
}
|
[
"alex.berloh@gmail.com"
] |
alex.berloh@gmail.com
|
d980ce9de8652b4af84e5af1a2713f8f3eb1a5e5
|
e682fa3667adce9277ecdedb40d4d01a785b3912
|
/internal/fischer/mangf/A071728.java
|
f2be7988f1839e803edbedeb6c2f49d915908787
|
[
"Apache-2.0"
] |
permissive
|
gfis/joeis-lite
|
859158cb8fc3608febf39ba71ab5e72360b32cb4
|
7185a0b62d54735dc3d43d8fb5be677734f99101
|
refs/heads/master
| 2023-08-31T00:23:51.216295
| 2023-08-29T21:11:31
| 2023-08-29T21:11:31
| 179,938,034
| 4
| 1
|
Apache-2.0
| 2022-06-25T22:47:19
| 2019-04-07T08:35:01
|
Roff
|
UTF-8
|
Java
| false
| false
| 646
|
java
|
package irvine.oeis.a071;
// manually hologfm/hologf at 2022-12-01 17:28
import irvine.oeis.recur.HolonomicRecurrence;
/**
* A071728 Expansion of (1+x^3*C)*C^3, where C = (1-(1-4*x)^(1/2))/(2*x) is g.f. for Catalan numbers, A000108.
* @author Georg Fischer
*/
public class A071728 extends HolonomicRecurrence {
/** Construct the sequence. */
public A071728() {
// o.g.f. 1/8*(1+1/2*x^2*(1-(1-4*x)^(1/2)))*(1-(1-4*x)^(1/2))^3/x^3
// recurrence -(n+3)*(25*(n-1)^3+27*(n-1)^2-10*n-8)*u(n)+2*(2*n-3)*(25*(n-1)^3+102*(n-1)^2+119*n-95)*u(n-1) = 0
super(0, "[[0],[108,-12,-202,-42,100],[18,-27,133,-27,-25]]", "[1,3,9]", 0);
}
}
|
[
"dr.Georg.Fischer@gmail.com"
] |
dr.Georg.Fischer@gmail.com
|
12c739ceeec7d2276325f3fdcf86832f62e7f38d
|
a30e66631887969f16df012dab755af51f5bf0b4
|
/src/test/java/cx/ath/mancel01/utils/ConcurrentTest.java
|
24e61cefc3d33061a8170fd542b2595bae37960c
|
[] |
no_license
|
mathieuancelin/utils
|
eca6f45d2a824fe040d900cccec56eadc3df5f92
|
32087868b485b35af3676eec29789d682d51d82a
|
refs/heads/master
| 2018-12-28T10:17:40.120573
| 2012-11-17T21:55:45
| 2012-11-17T21:55:45
| 1,701,043
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,114
|
java
|
package cx.ath.mancel01.utils;
import cx.ath.mancel01.utils.Concurrent.PromiseCountDownLatch;
import cx.ath.mancel01.utils.F.Function;
import cx.ath.mancel01.utils.F.Unit;
import junit.framework.Assert;
import org.junit.Test;
/**
*
* @author mathieuancelin
*/
public class ConcurrentTest {
public static final String INITIAL_VALUE = "NOTHING";
public static final String EXPECTED_VALUE = "EVERYTHING";
private String value = INITIAL_VALUE;
public void changeValue() {
value = EXPECTED_VALUE;
}
@Test
public void testLatch() {
PromiseCountDownLatch latch = new PromiseCountDownLatch(10);
System.out.println(latch);
latch.onRedeem(new Function<PromiseCountDownLatch, F.Unit>() {
@Override
public Unit apply(PromiseCountDownLatch t) {
changeValue();
return Unit.unit();
}
});
for (int i = 0; i < 10; i++) {
latch.countDown();
System.out.println(latch);
}
Assert.assertEquals(EXPECTED_VALUE, value);
}
}
|
[
"mathieu.ancelin@gmail.com"
] |
mathieu.ancelin@gmail.com
|
57e12591dd5d5e3bb2abf487f9431ea37ac1f7d6
|
cb7cebdadbfa007fc09d58bf6d00ba50c663950b
|
/src/main/java/com/hrban/service/WyFireAccidentService.java
|
b43e7374714b1c6a5748aeb21fa9c183c1b3d8fa
|
[] |
no_license
|
sengeiou/family_service_platform
|
c6f5896e2e8d7f0e27089768e77ebdf59acb933a
|
29e2b748904ebac6a78b2058f775b58526df3070
|
refs/heads/master
| 2022-12-02T20:04:18.873424
| 2020-08-18T06:33:58
| 2020-08-18T06:33:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 310
|
java
|
package com.hrban.service;
import com.hrban.bean.WyFireAccident;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 消防事故 服务类
* </p>
*
* @author hrban
* @since 2020-08-18
*/
public interface WyFireAccidentService extends IService<WyFireAccident> {
}
|
[
"farmar_farmer@126.com"
] |
farmar_farmer@126.com
|
072b16e287019410bee52a8b38b4a9a713068d2e
|
5ecbffc51aa3912c6a0f2cf160ee4208f09b1be0
|
/uberfire-backend/uberfire-backend-api/src/main/java/org/uberfire/backend/repositories/RepositoryInfo.java
|
6454fa1b3ebf8c1047a2c288c282dbff95be9e25
|
[
"Apache-2.0"
] |
permissive
|
hernsys/uberfire-0.4.0.CR1
|
80008a4be521d21af1a0e26cf0b794cc638fa68c
|
719037b74aa04c13340c76aef92af941e0671417
|
refs/heads/master
| 2022-10-05T09:19:56.121325
| 2014-07-25T18:14:50
| 2014-07-25T18:14:50
| 22,266,173
| 0
| 0
| null | 2022-09-15T03:33:14
| 2014-07-25T18:11:32
|
Java
|
UTF-8
|
Java
| false
| false
| 3,022
|
java
|
package org.uberfire.backend.repositories;
import java.util.ArrayList;
import java.util.List;
import org.jboss.errai.common.client.api.annotations.Portable;
import org.uberfire.backend.vfs.Path;
import org.uberfire.java.nio.base.version.VersionRecord;
@Portable
public class RepositoryInfo {
private String alias;
private String owner;
private Path root;
private List<PublicURI> publicURIs = new ArrayList<PublicURI>();
private List<VersionRecord> versionList = new ArrayList<VersionRecord>();
public RepositoryInfo() {
}
public RepositoryInfo( final String alias,
final String owner,
final Path root,
final List<PublicURI> publicURIs,
final List<VersionRecord> versionList ) {
this.alias = alias;
this.owner = owner;
this.root = root;
this.publicURIs = publicURIs;
this.versionList = versionList;
}
public List<PublicURI> getPublicURIs() {
return publicURIs;
}
public String getAlias() {
return alias;
}
public List<VersionRecord> getInitialVersionList() {
return versionList;
}
public String getOwner() {
return owner;
}
public Path getRoot() {
return root;
}
@Override
public boolean equals( Object o ) {
if ( this == o ) {
return true;
}
if ( !( o instanceof RepositoryInfo ) ) {
return false;
}
RepositoryInfo that = (RepositoryInfo) o;
if ( alias != null ? !alias.equals( that.alias ) : that.alias != null ) {
return false;
}
if ( owner != null ? !owner.equals( that.owner ) : that.owner != null ) {
return false;
}
if ( publicURIs != null ? !publicURIs.equals( that.publicURIs ) : that.publicURIs != null ) {
return false;
}
if ( root != null ? !root.equals( that.root ) : that.root != null ) {
return false;
}
if ( versionList != null ? !versionList.equals( that.versionList ) : that.versionList != null ) {
return false;
}
return true;
}
@Override
public int hashCode() {
int result = alias != null ? alias.hashCode() : 0;
result = 31 * result + ( owner != null ? owner.hashCode() : 0 );
result = 31 * result + ( root != null ? root.hashCode() : 0 );
result = 31 * result + ( publicURIs != null ? publicURIs.hashCode() : 0 );
result = 31 * result + ( versionList != null ? versionList.hashCode() : 0 );
return result;
}
@Override
public String toString() {
return "RepositoryInfo{" +
"alias='" + alias + '\'' +
", owner='" + owner + '\'' +
", root=" + root +
", publicURIs=" + publicURIs +
", versionList=" + versionList +
'}';
}
}
|
[
"horacioantar@gmail.com"
] |
horacioantar@gmail.com
|
df384a41991cbc4dca2c8f3bfbe2108d68d4957a
|
c975e09dde465d231b67ee6de8b6d054571c361e
|
/stack-client/src/main/java/com/digitalpetri/opcua/stack/client/fsm/states/ReconnectExecute.java
|
3e596857966b3466d712f2b68c159323f28b35c2
|
[
"Apache-2.0"
] |
permissive
|
cdealti/opc-ua-stack
|
14a8f1f8daf6fa558018bcb5cb4e79569db24c11
|
292b23ff9dc3031d005e26c360bbf62f6b3c593a
|
refs/heads/master
| 2020-02-26T13:23:49.976445
| 2015-10-08T18:22:30
| 2015-10-08T18:22:30
| 45,104,173
| 0
| 0
| null | 2015-10-28T10:12:21
| 2015-10-28T10:12:20
| null |
UTF-8
|
Java
| false
| false
| 5,682
|
java
|
/*
* Copyright 2015 Kevin Herron
*
* 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.digitalpetri.opcua.stack.client.fsm.states;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ScheduledFuture;
import com.digitalpetri.opcua.stack.client.UaTcpStackClient;
import com.digitalpetri.opcua.stack.client.fsm.ConnectionEvent;
import com.digitalpetri.opcua.stack.client.fsm.ConnectionState;
import com.digitalpetri.opcua.stack.client.fsm.ConnectionStateFsm;
import com.digitalpetri.opcua.stack.core.StatusCodes;
import com.digitalpetri.opcua.stack.core.UaException;
import com.digitalpetri.opcua.stack.core.channel.ClientSecureChannel;
import com.digitalpetri.opcua.stack.core.types.builtin.StatusCode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ReconnectExecute implements ConnectionState {
private static final int MAX_RECONNECT_DELAY_SECONDS = 16;
private final Logger logger = LoggerFactory.getLogger(getClass());
private final CompletableFuture<ClientSecureChannel> channelFuture;
private volatile ClientSecureChannel secureChannel;
private final long delaySeconds;
private volatile long secureChannelId;
public ReconnectExecute(CompletableFuture<ClientSecureChannel> channelFuture,
long delaySeconds,
long secureChannelId) {
this.channelFuture = channelFuture;
this.delaySeconds = delaySeconds;
this.secureChannelId = secureChannelId;
}
@Override
public CompletableFuture<Void> activate(ConnectionEvent event, ConnectionStateFsm fsm) {
CompletableFuture<Void> future = new CompletableFuture<>();
connect(fsm, true, new CompletableFuture<>()).whenComplete((sc, ex) -> {
if (sc != null) {
secureChannel = sc;
fsm.handleEvent(ConnectionEvent.ReconnectSucceeded);
} else {
channelFuture.completeExceptionally(ex);
fsm.handleEvent(ConnectionEvent.ReconnectFailed);
}
future.complete(null);
});
return future;
}
private CompletableFuture<ClientSecureChannel> connect(ConnectionStateFsm fsm,
boolean initialAttempt,
CompletableFuture<ClientSecureChannel> future) {
logger.debug("Reconnecting...");
UaTcpStackClient.bootstrap(fsm.getClient(), secureChannelId).whenComplete((sc, ex) -> {
if (sc != null) {
logger.debug("Channel bootstrap succeeded: localAddress={}, remoteAddress={}",
sc.getChannel().localAddress(), sc.getChannel().remoteAddress());
future.complete(sc);
} else {
logger.debug("Channel bootstrap failed: {}", ex.getMessage(), ex);
StatusCode statusCode = UaException.extract(ex)
.map(UaException::getStatusCode)
.orElse(StatusCode.BAD);
boolean secureChannelError =
statusCode.getValue() == StatusCodes.Bad_TcpSecureChannelUnknown ||
statusCode.getValue() == StatusCodes.Bad_SecureChannelClosed ||
statusCode.getValue() == StatusCodes.Bad_SecureChannelIdInvalid ||
statusCode.getValue() == StatusCodes.Bad_ConnectionClosed;
if (initialAttempt && secureChannelError) {
// Try again if bootstrapping failed because we couldn't re-open the previous channel.
logger.debug("Previous channel unusable, retrying...");
secureChannelId = 0L;
connect(fsm, false, future);
} else {
future.completeExceptionally(ex);
}
}
});
return future;
}
@Override
public CompletableFuture<Void> deactivate(ConnectionEvent event, ConnectionStateFsm fsm) {
return CF_VOID_COMPLETED;
}
@Override
public ConnectionState transition(ConnectionEvent event, ConnectionStateFsm fsm) {
switch (event) {
case DisconnectRequested:
return new Disconnecting(secureChannel);
case ReconnectFailed:
return new ReconnectDelay(nextDelay(), secureChannelId);
case ReconnectSucceeded:
return new Connected(secureChannel, channelFuture);
}
return this;
}
@Override
public CompletableFuture<ClientSecureChannel> getSecureChannel() {
return channelFuture;
}
private long nextDelay() {
if (delaySeconds == 0) {
return 1;
} else {
return Math.min(delaySeconds << 1, MAX_RECONNECT_DELAY_SECONDS);
}
}
@Override
public String toString() {
return "ReconnectExecute{" +
"delaySeconds=" + delaySeconds +
", secureChannelId=" + secureChannelId +
'}';
}
}
|
[
"kevinherron@gmail.com"
] |
kevinherron@gmail.com
|
2f63e5ffc89568ed1dd831d4d03d5faf93edb53d
|
60e02f0a7bdf2816c1ce58984cf09aa1617ab48f
|
/uberfire-security/security-server/src/main/java/org/uberfire/security/server/auth/CookieStorage.java
|
867a7e3d3e8e184b4bebe4b4d185ea15b31d6483
|
[] |
no_license
|
anjg/uberfire
|
514ad8750a78ac9667ef66968bc1b36b523a2dbf
|
190e57d695443c441191be07e1c3c8f221098b80
|
refs/heads/master
| 2020-12-25T17:44:41.046067
| 2012-10-16T18:59:19
| 2012-10-16T18:59:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,737
|
java
|
/*
* Copyright 2012 JBoss 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.uberfire.security.server.auth;
import javax.servlet.http.Cookie;
import org.uberfire.security.SecurityContext;
import org.uberfire.security.Subject;
import org.uberfire.security.auth.AuthenticatedStorageProvider;
import org.uberfire.security.auth.Principal;
import org.uberfire.security.crypt.CryptProvider;
import org.uberfire.security.server.HttpSecurityContext;
import org.uberfire.security.server.SecurityConstants;
import org.uberfire.security.server.crypt.DefaultCryptProvider;
import static org.uberfire.commons.util.PreconditionsServer.*;
public class CookieStorage implements AuthenticatedStorageProvider {
private static final int DEFAULT_EXPIRE_48_HOURS = 60 * 60 * 48;
private static final String EMPTY = "__empty__";
private static final CryptProvider CRYPT_PROVIDER = new DefaultCryptProvider();
private String cookieName = SecurityConstants.DEFAULT_COOKIE_NAME;
public CookieStorage() {
this(null);
}
public CookieStorage(final String cookieName) {
if (cookieName != null && !cookieName.isEmpty()) {
this.cookieName = cookieName;
}
}
@Override
public void store(final SecurityContext context, final Subject subject) {
final HttpSecurityContext httpContext = checkInstanceOf("context", context, HttpSecurityContext.class);
final String content = CRYPT_PROVIDER.encrypt(subject.getName(), null);
final Cookie securityCookie = new Cookie(cookieName, content);
securityCookie.setPath("/");
securityCookie.setMaxAge(DEFAULT_EXPIRE_48_HOURS);
httpContext.getResponse().addCookie(securityCookie);
}
@Override
public void cleanup(final SecurityContext context) {
final HttpSecurityContext httpContext = checkInstanceOf("context", context, HttpSecurityContext.class);
final Cookie securityCookie = new Cookie(cookieName, EMPTY);
securityCookie.setPath("/");
securityCookie.setMaxAge(0);
httpContext.getResponse().addCookie(securityCookie);
}
public Principal load(final SecurityContext context) {
final HttpSecurityContext httpContext = checkInstanceOf("context", context, HttpSecurityContext.class);
final String originalCookieValue = getCookieValue(cookieName, null, httpContext.getRequest().getCookies());
if (originalCookieValue == null) {
return null;
}
final String userId = CRYPT_PROVIDER.decrypt(originalCookieValue, null);
if (userId == null) {
return null;
}
return new Principal() {
@Override
public String getName() {
return userId;
}
};
}
private String getCookieValue(final String cookieName, final String defaultValue, final Cookie... cookies) {
if (cookies == null || cookies.length == 0) {
return defaultValue;
}
for (final Cookie cookie : cookies) {
if (cookieName.equals(cookie.getName())) {
return cookie.getValue();
}
}
return defaultValue;
}
}
|
[
"alexandre.porcelli@gmail.com"
] |
alexandre.porcelli@gmail.com
|
e1adc008e328306767bd55079bd2640197308697
|
c7579eac78326015a53d89ea4dd8124660e707b1
|
/tddl-common/src/main/java/com/taobao/tddl/common/utils/XmlHelper.java
|
cbe630518f4ffd78c3e1fe9733b94431bce31598
|
[
"Apache-2.0"
] |
permissive
|
quyixiao/TDDL
|
07f3db5e4a78ec19b68dfb4b5d98fb9d7edb2a60
|
1bc33f047f94b878f6e13edb06c03dc3f8c2cb21
|
refs/heads/master
| 2023-04-02T02:28:51.288020
| 2021-03-30T03:58:26
| 2021-03-30T03:58:26
| 352,864,306
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,667
|
java
|
package com.taobao.tddl.common.utils;
import java.io.InputStream;
import java.io.Writer;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Document;
import org.xml.sax.ErrorHandler;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import com.taobao.tddl.common.exception.TddlNestableRuntimeException;
import com.taobao.tddl.common.exception.TddlRuntimeException;
import com.taobao.tddl.common.exception.code.ErrorCode;
/**
* xml处理的一些简单包装
*
* @author jianghang 2013-11-28 下午1:59:37
* @since 5.0.0
*/
public class XmlHelper {
public static Document createDocument(InputStream xml, InputStream schema) {
try {
DocumentBuilderFactory bf = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = bf.newDocumentBuilder();
builder.setErrorHandler(new ErrorHandler() {
@Override
public void warning(SAXParseException exception) throws SAXException {
throw new TddlNestableRuntimeException(exception);
}
@Override
public void fatalError(SAXParseException exception) throws SAXException {
throw new TddlNestableRuntimeException(exception);
}
@Override
public void error(SAXParseException exception) throws SAXException {
throw new TddlNestableRuntimeException(exception);
}
});
return builder.parse(xml);
} catch (Exception e) {
throw new TddlRuntimeException(ErrorCode.ERR_OTHER, e, "Xml Parser Error.");
}
}
public static void callWriteXmlFile(Document doc, Writer w, String encoding) {
try {
Source source = new DOMSource(doc);
Result result = new StreamResult(w);
Transformer xformer = TransformerFactory.newInstance().newTransformer();
xformer.setOutputProperty(OutputKeys.INDENT, "yes");
xformer.setOutputProperty(OutputKeys.ENCODING, encoding);
xformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "no");
xformer.transform(source, result);
} catch (Exception e) {
throw new TddlNestableRuntimeException(e);
}
}
}
|
[
"2621048238@qq.com"
] |
2621048238@qq.com
|
26b0f7ad5876c4436b5e9420985b4c6f19c8e098
|
de561c1c659145d56aca419ffcbd07657b33b76d
|
/src/pl/srebrograv/online_store/model/Store.java
|
22bfea246c3568cc994c9f756d6ea7c3319751e4
|
[] |
no_license
|
KorwinBieniek/srebrograv_online_store
|
e5db3547a87fd1aeb4f122adf9c87bcda668c9af
|
a3579f8cca269e41b0eadc55e2e5ac3f013ca86d
|
refs/heads/master
| 2023-03-12T06:49:28.375757
| 2021-02-28T19:51:09
| 2021-02-28T19:51:09
| 336,857,884
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,087
|
java
|
package pl.srebrograv.online_store.model;
import pl.srebrograv.online_store.exception.CustomerAlreadyExistsException;
import pl.srebrograv.online_store.exception.ItemAlreadyExistsException;
import java.io.Serializable;
import java.util.*;
public class Store implements Serializable {
private Map<String, Plate> plates = new HashMap<>();
private Map<String, StoreCustomer> customers = new HashMap<>();
public Map<String,Plate> getPlates() {
return plates;
}
public Collection<Plate> getSortedPlates(Comparator<Plate> comparator) {
ArrayList<Plate> listOfPlates = new ArrayList<>(this.plates.values());
listOfPlates.sort(comparator);
return listOfPlates;
}
public Map<String,StoreCustomer> getCustomers() {
return customers;
}
public Collection<StoreCustomer> getSortedCustomers(Comparator<StoreCustomer> comparator) {
ArrayList<StoreCustomer> listOfCustomers = new ArrayList<>(this.customers.values());
listOfCustomers.sort(comparator);
return listOfCustomers;
}
public void addUser(StoreCustomer customer) {
if(customers.containsKey(customer.getPesel()))
throw new CustomerAlreadyExistsException(
"The customer with the given pesel already exists in the database " + customer.getPesel()
);
customers.put(customer.getPesel(), customer);
}
public void addPlate(Plate plate) {
if(plates.containsKey(plate.getPendantName()))
throw new ItemAlreadyExistsException(
"The given plate already exists " + plate.getPendantName()
);
plates.put(plate.getPendantName(), plate);
}
public Optional<Plate> findPlateByName(String pendantName) {
return Optional.ofNullable(plates.get(pendantName));
}
public boolean removePublication(Plate plate) {
if(plates.containsValue(plate)) {
plates.remove(plate.getPendantName());
return true;
} else {
return false;
}
}
}
|
[
"korwin-bieniek@wp.pl"
] |
korwin-bieniek@wp.pl
|
027650d36f1801ea1c7998f2382bd332b4477e90
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/MOCKITO-10b-3-1-PESA_II-WeightedSum:TestLen:CallDiversity/org/mockito/internal/creation/MockSettingsImpl_ESTest.java
|
26dce0fc7cdc50d50a154fb72c7fa890955a537b
|
[] |
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
| 568
|
java
|
/*
* This file was automatically generated by EvoSuite
* Fri Apr 03 09:15:07 UTC 2020
*/
package org.mockito.internal.creation;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class MockSettingsImpl_ESTest extends MockSettingsImpl_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
957dc1165cf75fdb245948d924e705d37f7f8213
|
98f1798c1670a5636be9616227ec684ccca2c14a
|
/qianguosdklib/src/com/yayawan/sdk/jfutils/CounterDown.java
|
b144582359b1cc398ac1e1be77fdf6365b39581b
|
[] |
no_license
|
zhangjiafan8652/YAYAWANSDKS
|
5ff046f93632c9bc7ecb067b562766824fffc92b
|
2bead1c6745f26e42f68809f5143929ab63fe5b2
|
refs/heads/master
| 2021-09-06T20:30:44.516923
| 2018-02-11T05:40:47
| 2018-02-11T05:40:47
| 112,983,972
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,551
|
java
|
package com.yayawan.sdk.jfutils;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class CounterDown {
private static CounterDown mCounterDown = new CounterDown();
private CounterDown() {
}
public static Button mView;
private static long countertime = 60000;
public static boolean mCanstart=false;
private Handler mHandler = new Handler() {
@Override
public void handleMessage(Message msg) {
// TODO Auto-generated method stub
super.handleMessage(msg);
switch (msg.what) {
case 111:
if (countertime > 1) {
if (mView != null) {
countertime = countertime - 1000;
mView.setText("重新获取(" + ((countertime / 1000))
+ ")");
mHandler.sendEmptyMessageDelayed(111, 1000);
}
} else {
countertime = 60000;
if (mView != null) {
mView.setEnabled(true);
mCanstart=true;
mView.setText("获取验证码");
}
}
break;
default:
break;
}
}
};
public static CounterDown getInstance() {
return mCounterDown;
}
public void setView(Button view) {
mView = view;
if (countertime > 59000) {
mView.setEnabled(true);
mCanstart=true;
} else {
mView.setEnabled(false);
mCanstart=false;
}
}
public void startCounter() {
if (mCanstart) {
mView.setEnabled(false);
mCanstart=false;
mView.setText("重新获取(" + countertime / 1000 + ")");
mHandler.sendEmptyMessageDelayed(111, 1000);
}
}
}
|
[
"365449552@qq.com"
] |
365449552@qq.com
|
1aab4d5d4694ec1ea5a24b93c4763ff29bc64efb
|
5eae683a6df0c4b97ab1ebcd4724a4bf062c1889
|
/bin/ext-commerce/timedaccesspromotionengineservices/src/de/hybris/platform/timedaccesspromotionengineservices/cronjob/ResetMaxOrderQuantityJob.java
|
4b931141d877d0e369bc7144ab24923dcf44de2a
|
[] |
no_license
|
sujanrimal/GiftCardProject
|
1c5e8fe494e5c59cca58bbc76a755b1b0c0333bb
|
e0398eec9f4ec436d20764898a0255f32aac3d0c
|
refs/heads/master
| 2020-12-11T18:05:17.413472
| 2020-01-17T18:23:44
| 2020-01-17T18:23:44
| 233,911,127
| 0
| 0
| null | 2020-06-18T15:26:11
| 2020-01-14T18:44:18
| null |
UTF-8
|
Java
| false
| false
| 3,222
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with SAP.
*/
package de.hybris.platform.timedaccesspromotionengineservices.cronjob;
import static de.hybris.platform.servicelayer.util.ServicesUtil.validateParameterNotNull;
import de.hybris.platform.core.model.product.ProductModel;
import de.hybris.platform.cronjob.enums.CronJobResult;
import de.hybris.platform.cronjob.enums.CronJobStatus;
import de.hybris.platform.product.daos.ProductDao;
import de.hybris.platform.promotionengineservices.model.ProductForPromotionSourceRuleModel;
import de.hybris.platform.promotionengineservices.model.PromotionSourceRuleModel;
import de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable;
import de.hybris.platform.servicelayer.cronjob.PerformResult;
import de.hybris.platform.timedaccesspromotionengineservices.FlashBuyService;
import de.hybris.platform.timedaccesspromotionengineservices.model.FlashBuyCouponModel;
import de.hybris.platform.timedaccesspromotionengineservices.model.FlashBuyCronJobModel;
import java.util.List;
import org.springframework.beans.factory.annotation.Required;
/**
* Sets value of max order quantity for flash buy product after flash buy expires or ends
*/
public class ResetMaxOrderQuantityJob extends AbstractJobPerformable<FlashBuyCronJobModel>
{
private ProductDao productDao;
private FlashBuyService flashBuyService;
/**
* Executes cronjob reset max order quantity after flash buy expired finish
*
* @param cronJobModel
* cronjob model
* @return PerformResult cronjob execute result
*/
@Override
public PerformResult perform(final FlashBuyCronJobModel cronJobModel)
{
validateParameterNotNull(cronJobModel, "Parameter cronJobModel must not be null");
final FlashBuyCouponModel coupon = cronJobModel.getFlashBuyCoupon();
final PromotionSourceRuleModel sourceRule = coupon.getRule();
if (sourceRule != null)
{
final List<ProductForPromotionSourceRuleModel> productForPromotionSourceRules = getFlashBuyService()
.getProductForPromotionSourceRule(sourceRule);
productForPromotionSourceRules.forEach(rule -> {
final String productCode = rule.getProductCode();
final List<ProductModel> products = productDao.findProductsByCode(productCode);
products.forEach(p -> p.setMaxOrderQuantity(coupon.getOriginalMaxOrderQuantity()));
modelService.saveAll(products);
});
getFlashBuyService().undeployFlashBuyPromotion(sourceRule);
}
return new PerformResult(CronJobResult.SUCCESS, CronJobStatus.FINISHED);
}
protected ProductDao getProductDao()
{
return productDao;
}
@Required
public void setProductDao(final ProductDao productDao)
{
this.productDao = productDao;
}
protected FlashBuyService getFlashBuyService()
{
return flashBuyService;
}
@Required
public void setFlashBuyService(final FlashBuyService flashBuyService)
{
this.flashBuyService = flashBuyService;
}
}
|
[
"travis.d.crawford@accenture.com"
] |
travis.d.crawford@accenture.com
|
6c31c9cc818c4077c5952569585491984e60bbd6
|
77623d6dd90f2d1a401ee720adb41c3c0c264715
|
/DiffTGen-result/output/Closure_86_2_sequencer/target/0/21/evosuite-tests/com/google/javascript/jscomp/NodeUtil_ESTest.java
|
72bbc8d253305e1e436c757e780f7d88441c6118
|
[] |
no_license
|
wuhongjun15/overfitting-study
|
40be0f062bbd6716d8de6b06454b8c73bae3438d
|
5093979e861cda6575242d92ca12355a26ca55e0
|
refs/heads/master
| 2021-04-17T05:37:48.393527
| 2020-04-11T01:53:53
| 2020-04-11T01:53:53
| 249,413,962
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 650
|
java
|
/*
* This file was automatically generated by EvoSuite
* Fri Mar 27 03:35:13 GMT 2020
*/
package com.google.javascript.jscomp;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true)
public class NodeUtil_ESTest extends NodeUtil_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"375882286@qq.com"
] |
375882286@qq.com
|
680ef34aeb48dd5b263eadb18369b6e9c71f2ddc
|
3927258e502590626dd18034000e7cad5bb46af6
|
/aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/transform/ClusterIamRoleStaxUnmarshaller.java
|
7b5d5e77a2790ed8ccd6d145a30ca522e3255880
|
[
"JSON",
"Apache-2.0"
] |
permissive
|
gauravbrills/aws-sdk-java
|
332f9cf1e357c3d889f753b348eb8d774a30f07c
|
09d91b14bfd6fbc81a04763d679e0f94377e9007
|
refs/heads/master
| 2021-01-21T18:15:06.060014
| 2016-06-11T18:12:40
| 2016-06-11T18:12:40
| 58,072,311
| 0
| 0
| null | 2016-05-04T17:52:28
| 2016-05-04T17:52:28
| null |
UTF-8
|
Java
| false
| false
| 2,584
|
java
|
/*
* Copyright 2010-2016 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 com.amazonaws.services.redshift.model.transform;
import java.util.Map;
import java.util.Map.Entry;
import javax.xml.stream.events.XMLEvent;
import com.amazonaws.services.redshift.model.*;
import com.amazonaws.transform.Unmarshaller;
import com.amazonaws.transform.MapEntry;
import com.amazonaws.transform.StaxUnmarshallerContext;
import com.amazonaws.transform.SimpleTypeStaxUnmarshallers.*;
/**
* Cluster Iam Role StAX Unmarshaller
*/
public class ClusterIamRoleStaxUnmarshaller implements Unmarshaller<ClusterIamRole, StaxUnmarshallerContext> {
public ClusterIamRole unmarshall(StaxUnmarshallerContext context) throws Exception {
ClusterIamRole clusterIamRole = new ClusterIamRole();
int originalDepth = context.getCurrentDepth();
int targetDepth = originalDepth + 1;
if (context.isStartOfDocument()) targetDepth += 2;
while (true) {
XMLEvent xmlEvent = context.nextEvent();
if (xmlEvent.isEndDocument()) return clusterIamRole;
if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) {
if (context.testExpression("IamRoleArn", targetDepth)) {
clusterIamRole.setIamRoleArn(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;
}
if (context.testExpression("ApplyStatus", targetDepth)) {
clusterIamRole.setApplyStatus(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;
}
} else if (xmlEvent.isEndElement()) {
if (context.getCurrentDepth() < originalDepth) {
return clusterIamRole;
}
}
}
}
private static ClusterIamRoleStaxUnmarshaller instance;
public static ClusterIamRoleStaxUnmarshaller getInstance() {
if (instance == null) instance = new ClusterIamRoleStaxUnmarshaller();
return instance;
}
}
|
[
"aws@amazon.com"
] |
aws@amazon.com
|
654e6593f4d6d98877db7beda7ce3d4aade46777
|
235d06d08187ae4af8c073e39c74572eff4a3afa
|
/spring-mvc/src/main/java/br/com/cmdev/springmvc/repository/PedidoRepository.java
|
4732548d9aaaf38628d2ebb76fd39da92e7433e0
|
[] |
no_license
|
calixtomacedo/alura-formacao-spring-framework
|
9e56aff574c7ab2e417ef15cbbf42bf10dadbca6
|
4a85223f9c143997d093433f0c909bc297513647
|
refs/heads/master
| 2023-07-14T14:06:14.532558
| 2021-08-19T03:13:10
| 2021-08-19T03:13:10
| 384,835,010
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 357
|
java
|
package br.com.cmdev.springmvc.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import br.com.cmdev.springmvc.model.Pedido;
import br.com.cmdev.springmvc.model.enums.StatusPedido;
public interface PedidoRepository extends JpaRepository<Pedido, Long> {
List<Pedido> findByStatus(StatusPedido status);
}
|
[
"calixto.macedo@gmail.com"
] |
calixto.macedo@gmail.com
|
4cd2f7a7b964337c00e36b9cc3539d9078c7150b
|
26c90fa0cf157ffe2ea580012fa1371a7b9f5787
|
/docs/social/java/ic_notifications_off.java
|
8cc9d9edd45e4d6735f3687c24dae9f87c5d5231
|
[
"Apache-2.0"
] |
permissive
|
ThePreviousOne/SVG-Android
|
a666e8b2298729d13a72530dee2f1f598dbd86f9
|
7be929196d23c547034400c7eb8ed937ba9dba4f
|
refs/heads/master
| 2020-03-28T08:38:51.300003
| 2018-09-09T01:07:44
| 2018-09-09T05:08:15
| 147,979,009
| 0
| 0
|
Apache-2.0
| 2018-09-09T00:03:26
| 2018-09-09T00:03:26
| null |
UTF-8
|
Java
| false
| false
| 3,105
|
java
|
package com.github.megatronking.svg.iconlibs;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import com.github.megatronking.svg.support.SVGRenderer;
/**
* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* SVG-Generator. It should not be modified by hand.
*/
public class ic_notifications_off extends SVGRenderer {
public ic_notifications_off(Context context) {
super(context);
mAlpha = 1.0f;
mWidth = dip2px(24.0f);
mHeight = dip2px(24.0f);
}
@Override
public void render(Canvas canvas, int w, int h, ColorFilter filter) {
final float scaleX = w / 24.0f;
final float scaleY = h / 24.0f;
mPath.reset();
mRenderPath.reset();
mFinalPathMatrix.setValues(new float[]{1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f});
mFinalPathMatrix.postScale(scaleX, scaleY);
mPath.moveTo(20.0f, 18.69f);
mPath.lineTo(7.84f, 6.14f);
mPath.lineTo(5.27f, 3.49f);
mPath.lineTo(4.0f, 4.76f);
mPath.rLineTo(2.8f, 2.8f);
mPath.rLineTo(0f, 0.01f);
mPath.rCubicTo(-0.52f, 0.99f, -0.8f, 2.16f, -0.8f, 3.42f);
mPath.rLineTo(0f, 5.0f);
mPath.rLineTo(-2.0f, 2.0f);
mPath.rLineTo(0f, 1.0f);
mPath.rLineTo(13.73f, 0f);
mPath.rLineTo(2.0f, 2.0f);
mPath.lineTo(21.0f, 19.72f);
mPath.rLineTo(-1.0f, -1.03f);
mPath.close();
mPath.moveTo(20.0f, 18.69f);
mPath.moveTo(12.0f, 22.0f);
mPath.rCubicTo(1.11f, 0.0f, 2.0f, -0.89f, 2.0f, -2.0f);
mPath.rLineTo(-4.0f, 0f);
mPath.rCubicTo(0.0f, 1.11f, 0.89f, 2.0f, 2.0f, 2.0f);
mPath.close();
mPath.moveTo(12.0f, 22.0f);
mPath.rMoveTo(6.0f, -7.32f);
mPath.lineTo(18.0f, 11.0f);
mPath.rCubicTo(0.0f, -3.08f, -1.64f, -5.64f, -4.5f, -6.32f);
mPath.lineTo(13.5f, 4.0f);
mPath.rCubicTo(0.0f, -0.83f, -0.67f, -1.5f, -1.5f, -1.5f);
mPath.rCubicTo(-0.8299999f, 0.0f, -1.5f, 0.67f, -1.5f, 1.5f);
mPath.rLineTo(0f, 0.68f);
mPath.rCubicTo(-0.15f, 0.03f, -0.29f, 0.08f, -0.42f, 0.12f);
mPath.rCubicTo(-0.1f, 0.03f, -0.2f, 0.07f, -0.3f, 0.11f);
mPath.rLineTo(-0.01f, 0f);
mPath.rCubicTo(-0.01f, 0.0f, -0.01f, 0.0f, -0.02f, 0.01f);
mPath.rCubicTo(-0.23f, 0.09f, -0.46f, 0.2f, -0.68f, 0.31f);
mPath.rCubicTo(0.0f, 0.0f, -0.01f, 0.0f, -0.01f, 0.01f);
mPath.lineTo(18.0f, 14.68f);
mPath.close();
mPath.moveTo(18.0f, 14.68f);
mRenderPath.addPath(mPath, mFinalPathMatrix);
if (mFillPaint == null) {
mFillPaint = new Paint();
mFillPaint.setStyle(Paint.Style.FILL);
mFillPaint.setAntiAlias(true);
}
mFillPaint.setColor(applyAlpha(-16777216, 1.0f));
mFillPaint.setColorFilter(filter);
canvas.drawPath(mRenderPath, mFillPaint);
}
}
|
[
"jgy08954@ly.com"
] |
jgy08954@ly.com
|
c6ff92731558ddada5dbf7ab755d7e08f892ec12
|
36fea8025460bd257c753a93dd3f27472892b4bc
|
/root/prj/sol/projects/renew2.5source/renew2.5/src/CH/src/CH/ifa/draw/figures/ImageFigureCreationDragDropListener.java
|
1d63831601f3b89e9ba949483ea7670f00d4dd69
|
[] |
no_license
|
Glost/db_nets_renew_plugin
|
ac84461e7779926b7ad70b2c7724138dc0d7242f
|
def4eaf7e55d79b9093bd59c5266804b345e8595
|
refs/heads/master
| 2023-05-05T00:02:12.504536
| 2021-05-25T22:36:13
| 2021-05-25T22:36:13
| 234,759,037
| 0
| 0
| null | 2021-05-04T23:37:39
| 2020-01-18T15:59:33
|
Java
|
UTF-8
|
Java
| false
| false
| 1,760
|
java
|
package CH.ifa.draw.figures;
import CH.ifa.draw.application.AbstractFileDragDropListener;
import CH.ifa.draw.application.DrawingViewFrame;
import CH.ifa.draw.framework.DrawingView;
import CH.ifa.draw.framework.Figure;
import CH.ifa.draw.io.ImageFileFilter;
import java.awt.Image;
import java.awt.Point;
import java.awt.Rectangle;
import java.io.File;
import java.io.FileFilter;
import java.util.Vector;
public class ImageFigureCreationDragDropListener
extends AbstractFileDragDropListener {
private DrawingViewFrame drawingViewFrame;
public ImageFigureCreationDragDropListener(DrawingViewFrame drawingViewFrame) {
this.drawingViewFrame = drawingViewFrame;
}
@Override
protected FileFilter getFileFilter() {
return new ImageFileFilter();
}
@Override
protected void handleFiles(File[] files, Point loc) {
if (files.length >= 1) {
Vector<Figure> ImagesToAdd = new Vector<Figure>();
DrawingView view = this.drawingViewFrame.view();
for (File file : files) {
Image image = ImageFigureCreationTool.createImage(file
.getAbsolutePath(), this.drawingViewFrame);
ImageFigure imageFigure = new ImageFigure(image,
file.getAbsolutePath(),
loc);
Rectangle displayBox = imageFigure.displayBox();
imageFigure.moveBy(-(displayBox.width / 2),
-(displayBox.height / 2));
ImagesToAdd.add(imageFigure);
}
view.addAll(ImagesToAdd);
view.checkDamage();
}
}
}
|
[
"anton19979@yandex.ru"
] |
anton19979@yandex.ru
|
c4f7a8c6534634fcd16f5fef2e84aea906aa9ebd
|
a4bbba05391f9f05198ec646385c19a00f484777
|
/ibone-sys/ibone-sys-core/src/main/java/com/redscarf/ibone/sys/core/mapper/RbacMenuMapper.java
|
4011d2893320504ee00bcafa7424608baa8eec59
|
[] |
no_license
|
leej0hn/ibone
|
e7145fac03fae7c0ca2de033aaa758efe4506b02
|
407e811e4bd297eef5cfbe23f038ebf017b61f41
|
refs/heads/master
| 2020-04-06T19:04:19.476652
| 2018-11-22T11:19:52
| 2018-11-22T11:19:52
| 157,724,377
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,227
|
java
|
package com.redscarf.ibone.sys.core.mapper;
import com.redscarf.ibone.sys.core.model.po.RbacMenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* <p>function:
* <p>User: LeeJohn
* <p>Date: 2018/11/16
* <p>Version: 1.0
*/
@Mapper
public interface RbacMenuMapper extends IBaseMapper<RbacMenuEntity>{
String ALL_COLUMN =
" a.id AS id , " +
" a.system_id AS systemId , " +
" a.pid AS pid , " +
" a.name AS name , " +
" a.url AS url , " +
" a.target AS target , " +
" a.orders AS orders , " +
" a.add_time AS addTime , " +
" a.update_time AS updateTime " ;
String TABLE_NAME = " rbac_menu ";
String TABLE_NAME_AS = TABLE_NAME + " AS a ";
@Select({
"SELECT " + ALL_COLUMN ,
"FROM " + TABLE_NAME_AS ,
"WHERE 1=1 " ,
"AND a.pid = #{pid} " ,
"AND a.system_id = #{systemId} " ,
"ORDER BY a.orders DESC "
})
List<RbacMenuEntity> findByPidAndSystemIdOrderByOrdersDesc(@Param("pid") int pid,
@Param("systemId") int systemId);
@Select({
"<script>",
"SELECT " + ALL_COLUMN,
"FROM " + TABLE_NAME_AS,
"INNER JOIN rbac_role_menu AS rm ON rm.menu_id = a.id " ,
"WHERE rm.role_id = #{roleId} ",
"</script>"
})
List<RbacMenuEntity> findMenusByRoleId(@Param("roleId") int roleId);
@Select({
"<script>",
"SELECT " + ALL_COLUMN,
"FROM " + TABLE_NAME_AS,
"INNER JOIN rbac_user_menu AS um ON um.menu_id = a.id " ,
"WHERE um.user_id = #{userId} ",
"</script>"
})
List<RbacMenuEntity> findMenusByUserId(@Param("userId") int userId);
@Select({
"<script>",
"SELECT " + ALL_COLUMN,
"FROM " + TABLE_NAME_AS,
"WHERE 1=1 " ,
"AND a.id IN ",
"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'> #{id} </foreach> " ,
"</script>"
})
List<RbacMenuEntity> findByIdIn(@Param("ids")int[] ids);
@Select({
"<script>",
"SELECT DISTINCT " + ALL_COLUMN,
"FROM " + TABLE_NAME_AS,
"LEFT OUTER JOIN rbac_role_menu rm on rm.menu_id = a.id " ,
"LEFT OUTER JOIN rbac_role role on rm.role_id = role.id" ,
"WHERE 1=1 " ,
"AND role.id IN ",
"<foreach item='roleId' index='index' collection='roleIds' open='(' separator=',' close=')'> #{roleId} </foreach> " ,
"AND a.pid = #{pid}",
"AND a.system_id = #{systemId}",
"ORDER BY a.orders DESC",
"</script>"
})
List<RbacMenuEntity> findDistinctByRolesInAndPidAndSystemIdOrderByOrdersDesc(@Param("roleIds") int[] roleIds ,
@Param("pid") int pid ,
@Param("systemId") int systemId);
@Select({
"<script>",
"SELECT DISTINCT " + ALL_COLUMN,
"FROM " + TABLE_NAME_AS,
"LEFT OUTER JOIN rbac_user_menu um on um.menu_id = a.id ",
"LEFT OUTER JOIN rbac_user user on user.id = um.user_id ",
"WHERE 1=1 " ,
"AND user.id IN ",
"<foreach item='userId' index='index' collection='userIds' open='(' separator=',' close=')'> #{userId} </foreach> " ,
"AND a.pid = #{pid}",
"AND a.system_id = #{systemId}",
"ORDER BY a.orders DESC",
"</script>"
})
List<RbacMenuEntity> findDistinctByUsersInAndPidAndSystemIdOrderByOrdersDesc(@Param("userIds") int[] userIds ,
@Param("pid") int pid ,
@Param("systemId") int systemId);
}
|
[
"lidx@communet.io"
] |
lidx@communet.io
|
bce350ae9921dcf27f6417e189653527070d7983
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/11/11_b2f10c66f4edc0980b57394899cffc8b32541169/JavaSnippetViewerConfiguration/11_b2f10c66f4edc0980b57394899cffc8b32541169_JavaSnippetViewerConfiguration_t.java
|
8e3dfffe8ee2806c2051cfef1036951a1c323986
|
[] |
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,628
|
java
|
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.debug.ui.snippeteditor;
import org.eclipse.jdt.internal.debug.ui.JDIContentAssistPreference;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration;
import org.eclipse.jdt.ui.text.JavaTextTools;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.contentassist.ContentAssistant;
import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
import org.eclipse.jface.text.contentassist.IContentAssistant;
import org.eclipse.jface.text.reconciler.IReconciler;
import org.eclipse.jface.text.source.ISourceViewer;
/**
* The source viewer configuration for the Java snippet editor.
*/
public class JavaSnippetViewerConfiguration extends JavaSourceViewerConfiguration {
public JavaSnippetViewerConfiguration(JavaTextTools tools, JavaSnippetEditor editor) {
super(tools.getColorManager(), JavaPlugin.getDefault().getPreferenceStore(), editor, null);
}
/**
* @see JDIViewerConfiguration#getContentAssistantProcessor()
*/
public IContentAssistProcessor getContentAssistantProcessor() {
return new JavaSnippetCompletionProcessor((JavaSnippetEditor)getEditor());
}
/**
* @see SourceViewerConfiguration#getContentAssistant(ISourceViewer)
*/
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
ContentAssistant assistant = new ContentAssistant();
assistant.setContentAssistProcessor(
getContentAssistantProcessor(),
IDocument.DEFAULT_CONTENT_TYPE);
JDIContentAssistPreference.configure(assistant, getColorManager());
assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
assistant.setInformationControlCreator(
getInformationControlCreator(sourceViewer));
return assistant;
}
/* (non-Javadoc)
* @see org.eclipse.jface.text.source.SourceViewerConfiguration#getReconciler(org.eclipse.jface.text.source.ISourceViewer)
*/
public IReconciler getReconciler(ISourceViewer sourceViewer) {
return null;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
1e202223431926ec3ce0f370726f09eb5481dbda
|
e03d21d7f21f3a2136c6450b093ad53e1b021586
|
/kaipin-ent-old/src/com/enterprise/model/common/MsgEntInterview.java
|
36f4f675ea55c2dc2834aac9655c56c6d0e99736
|
[] |
no_license
|
huagnkangjie/kaipin
|
d035da2bbda9bf1a125826a598962b443a7dfc3e
|
8e3dfb2203fb119b8de9636e73ceba2a4405e627
|
refs/heads/master
| 2018-12-11T08:32:20.792022
| 2018-09-12T15:06:02
| 2018-09-12T15:06:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,770
|
java
|
package com.enterprise.model.common;
public class MsgEntInterview {
private String id;
private Long createTime;
private String title;
private Byte type;
private String companyId;
private Byte status;
private String content;
private String hint;
private String objectId;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id == null ? null : id.trim();
}
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title == null ? null : title.trim();
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public String getCompanyId() {
return companyId;
}
public void setCompanyId(String companyId) {
this.companyId = companyId == null ? null : companyId.trim();
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content == null ? null : content.trim();
}
public String getHint() {
return hint;
}
public void setHint(String hint) {
this.hint = hint == null ? null : hint.trim();
}
public String getObjectId() {
return objectId;
}
public void setObjectId(String objectId) {
this.objectId = objectId == null ? null : objectId.trim();
}
}
|
[
"1059976050@qq.com"
] |
1059976050@qq.com
|
d726a92237ea5c1d017d9d4b57afab23ce5b4b6a
|
2f8b9996b085eb932e6f8c1aa8dd7ab047d97e48
|
/library_base/src/main/java/com/snh/library_base/db/MyOpenHelper.java
|
61f0e4d63b34a02679454e05e3437fd9225b30fb
|
[] |
no_license
|
DreamFly01/snhSeller
|
76beaa5bdb43759fee3c82c2f7dc82391ddc6b29
|
f051a8b50546abc0509b7a1f88cc88e6ff85084f
|
refs/heads/master
| 2022-01-24T16:17:44.685408
| 2019-07-27T06:50:29
| 2019-07-27T06:50:29
| 173,652,352
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,361
|
java
|
package com.snh.library_base.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import com.github.yuweiguocn.library.greendao.MigrationHelper;
import com.snh.snhseller.base.greendao.DaoMaster;
import com.snh.snhseller.base.greendao.UserEntityDao;
import org.greenrobot.greendao.database.Database;
/**
* <p>desc:<p>
* <p>author:DreamFly<p>
* <p>creatTime:2019/3/27<p>
* <p>changeTime:2019/3/27<p>
* <p>version:1<p>
*/
public class MyOpenHelper extends DaoMaster.OpenHelper {
public MyOpenHelper(Context context, String name) {
super(context, name);
}
public MyOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory) {
super(context, name, factory);
}
@Override
public void onUpgrade(Database db, int oldVersion, int newVersion) {
super.onUpgrade(db, oldVersion, newVersion);
MigrationHelper.migrate(db, new MigrationHelper.ReCreateAllTableListener() {
@Override
public void onCreateAllTables(Database db, boolean ifNotExists) {
DaoMaster.createAllTables(db,ifNotExists);
}
@Override
public void onDropAllTables(Database db, boolean ifExists) {
DaoMaster.dropAllTables(db,ifExists);
}
},UserEntityDao.class);
}
}
|
[
"y290206959@163.com"
] |
y290206959@163.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.