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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cea6f57b1646c1377e51a1f7a191ab3c2861ea69
|
d50ec43131be668368200315d1d9d307071d5385
|
/keanu-project/src/main/java/io/improbable/keanu/vertices/tensor/bool/nonprobabilistic/operators/binary/BooleanBinaryOpLambda.java
|
d28067608ccac54ed700a7e6d93a4a3d0b6a4619
|
[
"MIT"
] |
permissive
|
improbable-research/keanu
|
605e4dc6a2f90f095c2c1ec91fa1222ae8d04530
|
99de10a15e0d4b33d323093a5cc2dd10b31c9954
|
refs/heads/develop
| 2023-04-14T01:17:29.130975
| 2021-09-21T10:24:48
| 2021-09-21T10:24:48
| 128,393,918
| 155
| 47
|
MIT
| 2023-04-12T00:18:07
| 2018-04-06T12:48:36
|
Java
|
UTF-8
|
Java
| false
| false
| 997
|
java
|
package io.improbable.keanu.vertices.tensor.bool.nonprobabilistic.operators.binary;
import io.improbable.keanu.tensor.bool.BooleanTensor;
import io.improbable.keanu.vertices.NonSaveableVertex;
import io.improbable.keanu.vertices.Vertex;
import io.improbable.keanu.vertices.VertexBinaryOp;
import io.improbable.keanu.vertices.tensor.bool.BooleanVertex;
import java.util.function.BiFunction;
public class BooleanBinaryOpLambda extends BooleanBinaryOpVertex<BooleanTensor, BooleanTensor>
implements NonSaveableVertex, VertexBinaryOp<Vertex<BooleanTensor, ?>, Vertex<BooleanTensor, ?>> {
private final BiFunction<BooleanTensor, BooleanTensor, BooleanTensor> boolOp;
public BooleanBinaryOpLambda(long[] shape, BooleanVertex a, BooleanVertex b, BiFunction<BooleanTensor, BooleanTensor, BooleanTensor> boolOp) {
super(shape, a, b);
this.boolOp = boolOp;
}
protected BooleanTensor op(BooleanTensor a, BooleanTensor b) {
return boolOp.apply(a, b);
}
}
|
[
"caleb@improbable.io"
] |
caleb@improbable.io
|
d9b2507b2af26c494eb977ef6214ffb28d6d074e
|
c2933cb819e2e025492bd918be701eb4a216b4eb
|
/samples/calculator-equinox/src/main/java/calculator/CalculatorClient.java
|
84c98d7f70d8c41d73ae6ad901d6b48e02f8e115
|
[
"Apache-2.0",
"BSD-3-Clause",
"W3C",
"LicenseRef-scancode-service-comp-arch"
] |
permissive
|
mcombell/tuscany-sca
|
d97b80936fdab29a6d3574b0836842ad0d49be21
|
1c3eb7960e96bf6e5db07fffa6f0f75d426e2114
|
refs/heads/2.0-M2
| 2022-07-12T00:10:09.889305
| 2009-03-20T11:18:39
| 2009-03-20T11:18:39
| 175,441
| 1
| 1
|
Apache-2.0
| 2022-07-08T18:56:43
| 2009-04-14T10:47:16
|
Shell
|
UTF-8
|
Java
| false
| false
| 2,137
|
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 calculator;
import org.oasisopen.sca.annotation.EagerInit;
import org.oasisopen.sca.annotation.Init;
import org.oasisopen.sca.annotation.Reference;
import org.oasisopen.sca.annotation.Scope;
/**
* This client program shows how to create an SCA runtime, start it,
* and locate and invoke a SCA component
*/
@Scope("COMPOSITE") @EagerInit
public class CalculatorClient {
private CalculatorService calculatorService;
@Reference
public void setCalculatorService(CalculatorService calculatorService) {
this.calculatorService = calculatorService;
}
@Init
public void calculate() {
// Calculate
System.out.println("SCA API ClassLoader: " + print(Reference.class.getClassLoader()));
System.out.println("3 + 2=" + calculatorService.add(3, 2));
System.out.println("3 - 2=" + calculatorService.subtract(3, 2));
System.out.println("3 * 2=" + calculatorService.multiply(3, 2));
System.out.println("3 / 2=" + calculatorService.divide(3, 2));
}
private static String print(ClassLoader cl) {
StringBuffer buf = new StringBuffer();
for (; cl != null;) {
buf.append(cl.toString());
buf.append(' ');
cl = cl.getParent();
}
return buf.toString();
}
}
|
[
"lresende@apache.org"
] |
lresende@apache.org
|
3708714d0e6f33b7aeccbeffcb2635f4b246bdb8
|
14a4467066368297310a2fdeaa45f2fa784a0f33
|
/PassengerManagement/src/main/java/com/example/demo/controller/PassengerController.java
|
f05da1f303ec2740fba0e92f89ab4f59540e7030
|
[] |
no_license
|
vatsank/SpringMicroServicesInThreeDays
|
7e00a45156e1b9f97f250cdef1e9086ec70a351d
|
0fb2ac1091d13d704f3ab7497408832e5faad692
|
refs/heads/master
| 2020-07-11T22:46:47.090845
| 2019-09-24T08:34:46
| 2019-09-24T08:34:46
| 204,660,057
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,833
|
java
|
package com.example.demo.controller;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.server.ResponseStatusException;
import com.example.demo.model.Passenger;
import com.example.demo.services.PassengerService;
import lombok.extern.slf4j.Slf4j;
@RestController
@Slf4j
public class PassengerController {
@Autowired
private PassengerService service;
@GetMapping("/passenger")
public ResponseEntity<Iterable<Passenger>> findAll(){
HttpHeaders headers = new HttpHeaders();
headers.add(HttpHeaders.CACHE_CONTROL, "no-cache");
return ResponseEntity.ok()
.headers(headers)
.body(this.service.findAll());
}
@GetMapping("/passenger/{id}")
public Passenger findById(@PathVariable("id") Long id,@RequestHeader Map<String, String> headers){
headers.forEach((key, value) -> {
log.info(String.format("Header '%s' = %s", key, value));
});
return this.service.findById(id);
}
@PostMapping(path="/passenger",produces="application/json",consumes="application/json")
@ResponseStatus(code=HttpStatus.CREATED)
public Passenger insert(@RequestBody Passenger pass) {
return this.service.addPassenger(pass);
}
// @DeleteMapping("/passenger")
// public Passenger remove(@RequestBody Passenger entity) throws DataNotFoundException {
//
// Passenger resp=this.service.remove(entity);
//
// if(resp==null) {
//
// throw new DataNotFoundException(entity.getId() + " Data Not Found");
// }
// return resp;
// }
//
@DeleteMapping("/passenger")
public ResponseEntity<Passenger> remove(@RequestBody Passenger entity) throws DataNotFoundException {
Passenger resp=this.service.remove(entity);
if(resp==null) {
throw new DataNotFoundException("Required Entity With Id Not Present");
}
return new ResponseEntity<>(resp,HttpStatus.CONFLICT);
}
@PutMapping("/passenger")
public Passenger update(@RequestBody Passenger entity) {
return this.service.update(entity);
}
}
|
[
"'vatsank@gmail.com'"
] |
'vatsank@gmail.com'
|
48f06407d823fa6d499ce7e17d1ed24166c4293f
|
6f26913ae138e39a003f6dcc2b98f97f17f0da3b
|
/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/H4.java
|
e96a2cbe22175d19d1b130f02dbb41a7d0f00739
|
[
"Apache-2.0"
] |
permissive
|
gitter-badger/wff
|
6264516af60736e21e4c17075d0ec3ecc3b1b01b
|
108a76bf18407d264d1b40b7a7e9cb188fb62fd2
|
refs/heads/master
| 2021-01-24T21:19:19.226465
| 2016-09-18T05:15:02
| 2016-09-18T05:15:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,632
|
java
|
package com.webfirmframework.wffweb.tag.html;
import java.util.logging.Logger;
import com.webfirmframework.wffweb.settings.WffConfiguration;
import com.webfirmframework.wffweb.tag.html.attribute.core.AbstractAttribute;
import com.webfirmframework.wffweb.tag.html.identifier.GlobalAttributable;
import com.webfirmframework.wffweb.tag.html.identifier.H4Attributable;
/**
* @author WFF
* @since 1.0.0
* @version 1.0.0
*
*/
public class H4 extends AbstractHtml {
private static final long serialVersionUID = 1_0_0L;
public static final Logger LOGGER = Logger.getLogger(H4.class.getName());
{
init();
}
/**
*
* @param base
* i.e. parent tag of this tag
* @param attributes
* An array of {@code AbstractAttribute}
*
* @since 1.0.0
*/
public H4(final AbstractHtml base, final AbstractAttribute... attributes) {
super(TagNameConstants.H4, base, attributes);
if (WffConfiguration.isDirectionWarningOn()) {
for (final AbstractAttribute abstractAttribute : attributes) {
if (!(abstractAttribute != null
&& (abstractAttribute instanceof H4Attributable
|| abstractAttribute instanceof GlobalAttributable))) {
LOGGER.warning(abstractAttribute
+ " is not an instance of H4Attribute");
}
}
}
}
/**
* invokes only once per object
*
* @since 1.0.0
*/
protected void init() {
// to override and use this method
}
}
|
[
"webfirm.framework@gmail.com"
] |
webfirm.framework@gmail.com
|
c7fc7782f9f6b813ada582e1354d143e32468e08
|
969854e3b88738b52eea02dab9a7d92b97797c97
|
/src/main/java/gxt/visual/ui/client/interfaces/view/IFileUploadFieldView.java
|
8132f6899d4ccb1f6b88ec3e6f1f25633edb5452
|
[] |
no_license
|
bbai/gxt-interfaces
|
1b130b301fc31444dae103c7d17a4bbace5ef9c3
|
4bb0fc716e4a45525fc31a39647669f30e69d2b8
|
refs/heads/master
| 2021-01-21T19:35:09.393173
| 2010-06-08T21:56:07
| 2010-06-08T21:56:07
| 42,747,579
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,598
|
java
|
package gxt.visual.ui.client.interfaces.view;
import com.extjs.gxt.ui.client.event.ComponentEvent;
import com.extjs.gxt.ui.client.widget.form.FileUploadField.FileUploadFieldMessages;
import com.google.gwt.dom.client.InputElement;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.AbstractImagePrototype;
/**
* @author eugenp
*/
public interface IFileUploadFieldView extends ITextFieldView< String >{
/**
* A comma-separated list of content types that a server processing this form will handle correctly.
*/
String getAccept();
/**
* Returns the button icon class.
*/
AbstractImagePrototype getButtonIconStyle();
/**
* Returns the button offset.
*/
int getButtonOffset();
/**
* Returns the file input element. You should not store a reference to this. When resetting this field the file input will change.
*/
InputElement getFileInput();
FileUploadFieldMessages getMessages();
String getName();
void onBrowserEvent( Event event );
void onComponentEvent( ComponentEvent ce );
void reset();
/**
* A comma-separated list of content types that a server processing this form will handle correctly.
*/
void setAccept( String accept );
/**
* Sets the button icon class.
* @param buttonIconStyle the button icon style
*/
void setButtonIcon( AbstractImagePrototype buttonIconStyle );
/**
* Sets the number of pixels between the input element and the browser button (defaults to 3).
*/
void setButtonOffset( int buttonOffset );
void setName( String name );
void setReadOnly( boolean readOnly );
}
|
[
"hanriseldon@gmail.com"
] |
hanriseldon@gmail.com
|
9acc8ebdf4dae679331fe7a05e168418d35891ad
|
a8bbe6efc0741dc16b57309d7f27369470b4b911
|
/app/src/androidTest/java/com/kuoruan/bomberman/ExampleInstrumentationTest.java
|
9525594118b66db489d383b97088b70fef587b58
|
[] |
no_license
|
15736889361/Android-BomberMan
|
f1c69d792f5f7c63a9593b21334e2a62664835d6
|
c98d5f6eef3c9393fa8adc119947f1930986aba9
|
refs/heads/master
| 2021-01-19T00:27:58.840265
| 2016-06-29T08:13:37
| 2016-06-29T08:13:37
| 87,173,293
| 1
| 0
| null | 2017-04-04T10:19:55
| 2017-04-04T10:19:55
| null |
UTF-8
|
Java
| false
| false
| 809
|
java
|
package com.kuoruan.bomberman;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.filters.MediumTest;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@MediumTest
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentationTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.kuoruan.bomberman", appContext.getPackageName());
}
}
|
[
"kuoruan@gmail.com"
] |
kuoruan@gmail.com
|
36cf9952df6d3244904fbde28a5bc7dd7d94175a
|
ea2149988e0cefcdff849d2a8767b0d4e4dcc3b3
|
/vendor/haocheng/proprietary/3rd-party/apk_and_code/blackview/DK_AWCamera/feature/mode/aicombo/src/com/mediatek/camera/feature/mode/aicombo/photo/AISlimmingPhotoEntry.java
|
af5f856f4fdcd61178c5ac290eb2e2fafad9ccef
|
[
"Apache-2.0"
] |
permissive
|
sam1017/CameraFramework
|
28ac2d4f2d0d62185255bb2bea2eedb3aa190804
|
9391f3b1bfbeaa51000df8e2df6ff7086178dfbc
|
refs/heads/master
| 2023-06-16T10:48:29.520119
| 2021-07-06T03:15:13
| 2021-07-06T03:15:13
| 383,324,836
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,949
|
java
|
/*
* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein is
* confidential and proprietary to MediaTek Inc. and/or its licensors. Without
* the prior written permission of MediaTek inc. and/or its licensors, any
* reproduction, modification, use or disclosure of MediaTek Software, and
* information contained herein, in whole or in part, shall be strictly
* prohibited.
*
* MediaTek Inc. (C) 2019. All rights reserved.
*
* BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO RECEIVER
* ON AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL
* WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
* WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NONINFRINGEMENT. NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH
* RESPECT TO THE SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY,
* INCORPORATED IN, OR SUPPLIED WITH THE MEDIATEK SOFTWARE, AND RECEIVER AGREES
* TO LOOK ONLY TO SUCH THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO.
* RECEIVER EXPRESSLY ACKNOWLEDGES THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO
* OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES CONTAINED IN MEDIATEK
* SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE
* RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR
* STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S
* ENTIRE AND CUMULATIVE LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE
* RELEASED HEREUNDER WILL BE, AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE
* MEDIATEK SOFTWARE AT ISSUE, OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE
* CHARGE PAID BY RECEIVER TO MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* The following software/firmware and/or related documentation ("MediaTek
* Software") have been modified by MediaTek Inc. All revisions are subject to
* any receiver's applicable license agreements with MediaTek Inc.
*/
package com.mediatek.camera.feature.mode.aicombo.photo;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.provider.MediaStore;
import com.mediatek.camera.R;
import com.mediatek.camera.common.IAppUi;
import com.mediatek.camera.common.debug.LogHelper;
import com.mediatek.camera.common.debug.LogUtil;
import com.mediatek.camera.common.device.CameraDeviceManagerFactory;
import com.mediatek.camera.common.loader.FeatureEntryBase;
import com.mediatek.camera.common.mode.ICameraMode;
import com.mediatek.camera.common.utils.CameraUtil;
public class AISlimmingPhotoEntry extends FeatureEntryBase {
private static final LogUtil.Tag TAG = new LogUtil.Tag(AISlimmingPhotoEntry.class
.getSimpleName());
private static final int MTK_CAMERA_APP_VERSION_SEVEN = 7;
/**
* create an entry.
*
* @param context current activity.
* @param resources current resources.
*/
public AISlimmingPhotoEntry(Context context, Resources resources) {
super(context, resources);
}
@Override
public boolean isSupport(CameraDeviceManagerFactory.CameraApi currentCameraApi,
Activity activity) {
Intent intent = activity.getIntent();
String action = intent.getAction();
boolean support = !MediaStore.ACTION_IMAGE_CAPTURE.equals(action)
&& (CameraUtil.getAppVersionLevel() == MTK_CAMERA_APP_VERSION_SEVEN);
LogHelper.i(TAG, "[isSupport] : " + support + " & appVersion : "
+ CameraUtil.getAppVersionLevel());
return support;
}
@Override
public String getFeatureEntryName() {
return AISlimmingPhotoEntry.class.getName();
}
@Override
public Class getType() {
return ICameraMode.class;
}
@Override
public Object createInstance() {
return new AISlimmingPhotoMode();
}
/**
* Get mode item.
*
* @return the mode item info.
*/
@Override
public IAppUi.ModeItem getModeItem() {
IAppUi.ModeItem modeItem = new IAppUi.ModeItem();
modeItem.mType = "Picture";
modeItem.mPriority = 45;
modeItem.mShutterIcon = null;
modeItem.mClassName = getFeatureEntryName();
modeItem.mModeSelectedIcon = mResources.getDrawable(R.drawable.ic_ai_slimming_mode_selected);
modeItem.mModeUnselectedIcon = mResources.getDrawable(R.drawable.ic_ai_slimming_mode_unselected);
modeItem.mModeName = mResources.getString(R.string.aislimming_mode_name);
if (CameraUtil.getLogicalCameraId() == null
&& CameraUtil.getDualZoomId() == null) {
modeItem.mSupportedCameraIds = new String[]{"0", "1"};
} else if (CameraUtil.getLogicalCameraId() == null
&& CameraUtil.getDualZoomId() != null) {
modeItem.mSupportedCameraIds = new String[]{"0", "1",
CameraUtil.getDualZoomId()};
} else if (CameraUtil.getLogicalCameraId() != null
&& CameraUtil.getDualZoomId() == null) {
modeItem.mSupportedCameraIds = new String[]{"0", "1",
CameraUtil.getLogicalCameraId()};
} else {
modeItem.mSupportedCameraIds = new String[]{"0", "1",
CameraUtil.getLogicalCameraId(), CameraUtil.getDualZoomId()};
}
return modeItem;
}
}
|
[
"3204547101@qq.com"
] |
3204547101@qq.com
|
bd4dac546045cba91b0c304cbc2d4897720fee94
|
6999db375bda29528166831b7c3a5b27892e0ef4
|
/yfax-htt-api/src/main/java/com/yfax/webapi/htt/service/RateSetService.java
|
a06df41e2a3d108fb56fa66f4d5f15c90eaad613
|
[] |
no_license
|
masterandy/yfax-parent
|
401ac1491baa59fc77c20e63ac259f70003535d6
|
8b9206eea68e2f5ff93fdfab3554a2ec7108a9de
|
refs/heads/master
| 2022-12-26T22:16:35.018046
| 2020-03-27T08:23:05
| 2020-03-27T08:23:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 577
|
java
|
package com.yfax.webapi.htt.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yfax.webapi.htt.dao.RateSetDao;
import com.yfax.webapi.htt.vo.RateSetVo;
/**
* 汇率配置数据
* @author Minbo
*/
@Service
public class RateSetService{
protected static Logger logger = LoggerFactory.getLogger(RateSetService.class);
@Autowired
private RateSetDao dao;
public RateSetVo selectRateSet() {
return this.dao.selectRateSet();
}
}
|
[
"hemin_it@163.com"
] |
hemin_it@163.com
|
75fa4172e68f3216d8ee9583220b222fcf25fe75
|
3a53a4462b14fe117bf797c2d95698fbdfec9f61
|
/compass-core/src/main/java/org/compass/core/mapping/osem/builder/SearchableReferenceMappingBuilder.java
|
92a0f935f601a88656244a40a4a052129614dd43
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
unkascrack/compass-fork
|
a0e1d3092376c273b71aba5d6f9f7371906696b5
|
25d4f4b816d1e480a5f5ff26f36cb821e3f28afb
|
refs/heads/master
| 2021-01-10T02:06:21.313515
| 2015-06-02T15:15:19
| 2015-06-02T15:15:19
| 36,727,638
| 0
| 1
| null | 2016-03-09T18:35:17
| 2015-06-02T11:10:14
|
Java
|
UTF-8
|
Java
| false
| false
| 5,279
|
java
|
/*
* Copyright 2004-2009 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.compass.core.mapping.osem.builder;
import org.compass.core.converter.Converter;
import org.compass.core.mapping.Cascade;
import org.compass.core.mapping.osem.ReferenceMapping;
/**
* Specifies a searchable reference on property or field of the {@link org.compass.core.mapping.osem.builder.SearchableMappingBuilder} class.
*
* <p>A searchable reference is a class field/property that reference another class, and the
* relationship need to be stored by Compass so it can be traversed when getting the class
* from the index.
*
* <p>Compass will end up saving only the ids of the referenced class in the search engine index.
*
* <p>The searchalbe reference can annotate a {@link java.util.Collection} type field/property,
* supporting either {@link java.util.List} or {@link java.util.Set}. The searchable refrence
* will try and automatically identify the element type using generics, but if the collection
* is not defined with generics, {@link #refAlias(String[])} should be used to reference the referenced
* searchable class mapping definitions.
*
* <p>The searchable compoent can annotate an array as well, with the array element type used for
* refernced searchable class mapping definitions.
*
* <p>The refence mapping can have a "shadow" component mapping associated with it, if specifing
* the {@link #refComponentAlias(String)}.
*
* @author kimchy
* @see org.compass.core.mapping.osem.builder.OSEM#reference(String)
* @see org.compass.core.mapping.osem.builder.SearchableMappingBuilder#add(org.compass.core.mapping.osem.builder.SearchableReferenceMappingBuilder)
*/
public class SearchableReferenceMappingBuilder {
final ReferenceMapping mapping;
public SearchableReferenceMappingBuilder(String name) {
mapping = new ReferenceMapping();
mapping.setName(name);
mapping.setPropertyName(name);
}
/**
* The reference alias that points to the searchable class (either defined using
* annotations or xml). Not required since most of the times it can be automatically
* detected.
*/
public SearchableReferenceMappingBuilder refAlias(String... refAlias) {
mapping.setRefAliases(refAlias);
return this;
}
/**
* Specifies a reference to a searchable component that will be used
* to embed some of the referenced class searchable content into the
* field/property searchable class.
*/
public SearchableReferenceMappingBuilder refComponentAlias(String alias) {
mapping.setRefCompAlias(alias);
return this;
}
/**
* Sets the acessor the will be used for the class property. Defaults to property (getter
* and optionally setter).
*/
public SearchableReferenceMappingBuilder accessor(Accessor accessor) {
return accessor(accessor.toString());
}
/**
* Sets the acessor the will be used for the class property. Defaults to property (getter
* and optionally setter). Note, this is the lookup name of a {@link org.compass.core.accessor.PropertyAccessor}
* registered with Compass, with two default ones (custom ones can be easily added) named <code>field</code>
* and <code>property</code>.
*/
public SearchableReferenceMappingBuilder accessor(String accessor) {
mapping.setAccessor(accessor);
return this;
}
/**
* Controls which operations will cascade from the parent searchable class to the referenced component
* based class. Defaults to no cascading.
*/
public SearchableReferenceMappingBuilder cascade(Cascade... cascade) {
mapping.setCascades(cascade);
return this;
}
/**
* This reference mapping (only in case of collection) will be lazy or not. By default
* will be set by the global setting {@link org.compass.core.config.CompassEnvironment.Osem#LAZY_REFERNCE}.
*/
public SearchableReferenceMappingBuilder lazy(boolean lazy) {
mapping.setLazy(lazy);
return this;
}
/**
* Sets the mapping converter lookup name. Defaults to
* {@link org.compass.core.converter.mapping.osem.ReferenceMappingConverter}.
*/
public SearchableReferenceMappingBuilder mappingConverter(String mappingConverter) {
mapping.setConverterName(mappingConverter);
return this;
}
/**
* Sets the mapping converter. Defaults to
* {@link org.compass.core.converter.mapping.osem.ReferenceMappingConverter}.
*/
public SearchableReferenceMappingBuilder mappingConverter(Converter mappingConverter) {
mapping.setConverter(mappingConverter);
return this;
}
}
|
[
"carlos.alonso.gonzalez@gmail.com"
] |
carlos.alonso.gonzalez@gmail.com
|
ca0f531c5fa3afdb08b96b098fcf9ed984f896b0
|
9d830106cc93c2f40689a11d33bf2d1f5a116ad9
|
/src/main/java/com/duansky/benchmark/flink/analysis/dataset/transformations/_GroupCombine.java
|
1ea9c95e5633b338dfd90433c7317902ff3ebd74
|
[] |
no_license
|
DuanSky22/BenchmarkFlink
|
20ded4815d148a218ed7585ae7dd6897b3e16848
|
756a9c7dfbc5cea49e499ef6ca45dbc2e8b781f7
|
refs/heads/master
| 2021-01-11T06:55:19.764418
| 2017-02-13T08:42:30
| 2017-02-13T08:42:30
| 72,360,039
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,394
|
java
|
package com.duansky.benchmark.flink.analysis.dataset.transformations;
import org.apache.flink.api.common.functions.GroupCombineFunction;
import org.apache.flink.api.common.functions.GroupReduceFunction;
import org.apache.flink.api.java.DataSet;
import org.apache.flink.api.java.ExecutionEnvironment;
import org.apache.flink.api.java.functions.KeySelector;
import org.apache.flink.api.java.tuple.Tuple2;
import org.apache.flink.util.Collector;
import java.util.ArrayList;
import java.util.List;
/**
* Created by DuanSky on 2016/11/10.
*/
public class _GroupCombine {
public static void main(String args[]) throws Exception {
ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();
env.getConfig().disableSysoutLogging();
List<String> list = new ArrayList<>(10);
list.add("a"); list.add("b"); list.add("c"); list.add("d"); list.add("e");
list.add("a"); list.add("f"); list.add("c"); list.add("g"); list.add("e");
DataSet<String> dataSet = env.fromCollection(list);
dataSet
.groupBy((KeySelector<String, String>) value -> value)
.combineGroup(new GroupCombineFunction<String, Tuple2<String,Integer>>() {
@Override
public void combine(Iterable<String> values, Collector<Tuple2<String, Integer>> out) throws Exception {
String key = null; int count = 0;
for(String value : values){
key = value;
count ++;
}
out.collect(new Tuple2<>(key,count));
}
})
.groupBy(0) //pay attention! we need groupBy again here!
.reduceGroup(new GroupReduceFunction<Tuple2<String,Integer>, String>() {
@Override
public void reduce(Iterable<Tuple2<String, Integer>> values, Collector<String> out) throws Exception {
String key = null; int count = 0;
for (Tuple2<String, Integer> value : values) {
key = value.f0;
count += value.f1;
}
out.collect(key + ":" + count);
}
})
.print()
;
}
}
|
[
"duansky22@163.com"
] |
duansky22@163.com
|
0b588a73323cce6b751c9ee455a38f06a88a419c
|
6424da9b4666eb1be27ac73766d5e360a4255cea
|
/HaoZhongCai/src/com/haozan/caipiao/db/WeiboHallDB.java
|
d44b39346e475fdcbc376b82699e0b873779f331
|
[] |
no_license
|
liveqmock/HZC
|
7ec28ad5966fc0960497dc19490518621ac3951e
|
57fac851f05133b490eca0deb53b40ef904a5ae9
|
refs/heads/master
| 2020-12-26T04:55:19.210929
| 2014-07-31T06:18:00
| 2014-07-31T06:18:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,118
|
java
|
package com.haozan.caipiao.db;
public class WeiboHallDB {
public static final String SINAWEIBO = "sina_weibo.db"; //databse name
public static final String HOME_TABLE = "home_table"; //weibo table name
/*
* weibo table field
* *package*
*/
static final String WEIBOID="weiboid"; //weiboid
static final String USERID = "userid"; //user id
static final String NAME = "name"; //昵称
static final String CONTENT = "content"; //内容
static final String PIC = "pic"; //内容图片
static final String TIME = "time"; //发表时间
static final String AVATAR = "avatar"; //头像
static final String SOURCE = "source"; //来源
static final String REPLYCOUNT = "replyCount"; //评论数
static final String RETWEETCOUNT = "retweetCount"; //转发数
static final String TITLE = "title"; //新闻标题
static final String TYPE = "type"; //类型
static final String PREVIEW = "preview"; //新闻内容
static final String ATTACHID = "attachid"; //新闻id
static final String WEIBOTYPE = "weibotype"; //微博缓存类别
}
|
[
"1281110961@qq.com"
] |
1281110961@qq.com
|
ef1d3a1acd92e7e9bf4bc88f4e38e9f9f985d45e
|
0735d7bb62b6cfb538985a278b77917685de3526
|
/com/google/gson/internal/bind/DateTypeAdapter.java
|
27433db134a24cbd67767d36571124d1947cc634
|
[] |
no_license
|
Denoah/personaltrackerround
|
e18ceaad910f1393f2dd9f21e9055148cda57837
|
b38493ccc7efff32c3de8fe61704e767e5ac62b7
|
refs/heads/master
| 2021-05-20T03:34:17.333532
| 2020-04-02T14:47:31
| 2020-04-02T14:51:01
| 252,166,069
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,429
|
java
|
package com.google.gson.internal.bind;
import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
import com.google.gson.TypeAdapterFactory;
import com.google.gson.internal.JavaVersion;
import com.google.gson.internal.PreJava9DateFormatProvider;
import com.google.gson.reflect.TypeToken;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Locale;
public final class DateTypeAdapter
extends TypeAdapter<Date>
{
public static final TypeAdapterFactory FACTORY = new TypeAdapterFactory()
{
public <T> TypeAdapter<T> create(Gson paramAnonymousGson, TypeToken<T> paramAnonymousTypeToken)
{
if (paramAnonymousTypeToken.getRawType() == Date.class) {
paramAnonymousGson = new DateTypeAdapter();
} else {
paramAnonymousGson = null;
}
return paramAnonymousGson;
}
};
private final List<DateFormat> dateFormats;
public DateTypeAdapter()
{
ArrayList localArrayList = new ArrayList();
this.dateFormats = localArrayList;
localArrayList.add(DateFormat.getDateTimeInstance(2, 2, Locale.US));
if (!Locale.getDefault().equals(Locale.US)) {
this.dateFormats.add(DateFormat.getDateTimeInstance(2, 2));
}
if (JavaVersion.isJava9OrLater()) {
this.dateFormats.add(PreJava9DateFormatProvider.getUSDateTimeFormat(2, 2));
}
}
/* Error */
private Date deserializeToDate(String paramString)
{
// Byte code:
// 0: aload_0
// 1: monitorenter
// 2: aload_0
// 3: getfield 26 com/google/gson/internal/bind/DateTypeAdapter:dateFormats Ljava/util/List;
// 6: invokeinterface 73 1 0
// 11: astore_2
// 12: aload_2
// 13: invokeinterface 78 1 0
// 18: ifeq +23 -> 41
// 21: aload_2
// 22: invokeinterface 82 1 0
// 27: checkcast 34 java/text/DateFormat
// 30: astore_3
// 31: aload_3
// 32: aload_1
// 33: invokevirtual 85 java/text/DateFormat:parse (Ljava/lang/String;)Ljava/util/Date;
// 36: astore_3
// 37: aload_0
// 38: monitorexit
// 39: aload_3
// 40: areturn
// 41: new 87 java/text/ParsePosition
// 44: astore_2
// 45: aload_2
// 46: iconst_0
// 47: invokespecial 90 java/text/ParsePosition:<init> (I)V
// 50: aload_1
// 51: aload_2
// 52: invokestatic 95 com/google/gson/internal/bind/util/ISO8601Utils:parse (Ljava/lang/String;Ljava/text/ParsePosition;)Ljava/util/Date;
// 55: astore_2
// 56: aload_0
// 57: monitorexit
// 58: aload_2
// 59: areturn
// 60: astore_3
// 61: new 97 com/google/gson/JsonSyntaxException
// 64: astore_2
// 65: aload_2
// 66: aload_1
// 67: aload_3
// 68: invokespecial 100 com/google/gson/JsonSyntaxException:<init> (Ljava/lang/String;Ljava/lang/Throwable;)V
// 71: aload_2
// 72: athrow
// 73: astore_1
// 74: aload_0
// 75: monitorexit
// 76: aload_1
// 77: athrow
// 78: astore_3
// 79: goto -67 -> 12
// Local variable table:
// start length slot name signature
// 0 82 0 this DateTypeAdapter
// 0 82 1 paramString String
// 11 61 2 localObject1 Object
// 30 10 3 localObject2 Object
// 60 8 3 localParseException1 java.text.ParseException
// 78 1 3 localParseException2 java.text.ParseException
// Exception table:
// from to target type
// 41 56 60 java/text/ParseException
// 2 12 73 finally
// 12 31 73 finally
// 31 37 73 finally
// 41 56 73 finally
// 61 73 73 finally
// 31 37 78 java/text/ParseException
}
public Date read(JsonReader paramJsonReader)
throws IOException
{
if (paramJsonReader.peek() == JsonToken.NULL)
{
paramJsonReader.nextNull();
return null;
}
return deserializeToDate(paramJsonReader.nextString());
}
public void write(JsonWriter paramJsonWriter, Date paramDate)
throws IOException
{
if (paramDate == null) {}
try
{
paramJsonWriter.nullValue();
return;
}
finally {}
paramJsonWriter.value(((DateFormat)this.dateFormats.get(0)).format(paramDate));
}
}
|
[
"ivanov.a@i-teco.ru"
] |
ivanov.a@i-teco.ru
|
7f0aff4e1fc26bf6d78ab5f0934c5c5498d2ebaa
|
e84ad99e94322f5ccff0dd54e76c18c9479dd984
|
/lib/src/test/java/com/auth0/android/lock/utils/AuthenticationCallbackMatcher.java
|
aa6b8c403fd3142536d74182de809c4871e5e94f
|
[
"MIT"
] |
permissive
|
auth0/Lock.Android
|
a30377d34673c8e584a53d2228c1c5ed8c24083e
|
50ac2a6c8bfcc1b698ddf332fa7f9e6de5e6ad91
|
refs/heads/main
| 2023-08-14T20:13:25.337893
| 2023-04-26T15:24:36
| 2023-04-26T15:24:36
| 27,456,226
| 167
| 107
|
MIT
| 2023-06-23T23:33:49
| 2014-12-02T22:13:43
|
Java
|
UTF-8
|
Java
| false
| false
| 4,767
|
java
|
/*
* AuthenticationCallbackMatcher.java
*
* Copyright (c) 2016 Auth0 (http://auth0.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.auth0.android.lock.utils;
import com.auth0.android.authentication.AuthenticationException;
import com.auth0.android.result.Credentials;
import com.jayway.awaitility.Duration;
import com.jayway.awaitility.core.ConditionTimeoutException;
import org.hamcrest.BaseMatcher;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.hamcrest.Matchers;
import static com.jayway.awaitility.Awaitility.waitAtMost;
import static org.hamcrest.CoreMatchers.any;
import static org.hamcrest.CoreMatchers.anyOf;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.Matchers.isA;
public class AuthenticationCallbackMatcher extends BaseMatcher<MockLockCallback> {
private final Matcher<Credentials> authenticationMatcher;
private final Matcher<Boolean> canceledMatcher;
private final Matcher<Throwable> errorMatcher;
public AuthenticationCallbackMatcher(Matcher<Credentials> authenticationMatcher, Matcher<Boolean> canceledMatcher, Matcher<Throwable> errorMatcher) {
this.authenticationMatcher = authenticationMatcher;
this.canceledMatcher = canceledMatcher;
this.errorMatcher = errorMatcher;
}
@Override
public boolean matches(Object item) {
MockLockCallback callback = (MockLockCallback) item;
try {
waitAtMost(Duration.ONE_SECOND).await().until(callback.authentication(), authenticationMatcher);
waitAtMost(Duration.ONE_SECOND).await().until(callback.canceled(), canceledMatcher);
waitAtMost(Duration.ONE_SECOND).await().until(callback.error(), errorMatcher);
return true;
} catch (ConditionTimeoutException e) {
return false;
}
}
@Override
public void describeTo(Description description) {
description
.appendText("successful method be called");
}
public static AuthenticationCallbackMatcher isCanceled() {
return new AuthenticationCallbackMatcher(is(nullValue(Credentials.class)), equalTo(true), is(notNullValue(Throwable.class)));
}
public static AuthenticationCallbackMatcher hasAuthentication() {
return new AuthenticationCallbackMatcher(is(notNullValue(Credentials.class)), equalTo(false), is(nullValue(Throwable.class)));
}
public static AuthenticationCallbackMatcher hasError() {
return new AuthenticationCallbackMatcher(is(nullValue(Credentials.class)), any(Boolean.class), is(notNullValue(Throwable.class)));
}
public static AuthenticationCallbackMatcher hasNoError() {
return new AuthenticationCallbackMatcher(anyOf(nullValue(Credentials.class), notNullValue(Credentials.class)), any(Boolean.class), is(nullValue(Throwable.class)));
}
public static <T> CallbackMatcher<T, AuthenticationException> hasPayloadOfType(Class<T> clazz) {
return new CallbackMatcher<>(isA(clazz), Matchers.is(Matchers.nullValue(AuthenticationException.class)));
}
public static <T> CallbackMatcher<T, AuthenticationException> hasPayload(T payload) {
return new CallbackMatcher<>(Matchers.equalTo(payload), Matchers.is(Matchers.nullValue(AuthenticationException.class)));
}
public static <T> CallbackMatcher<T, AuthenticationException> hasNoPayloadOfType(Class<T> clazz) {
return new CallbackMatcher<>(Matchers.is(Matchers.nullValue(clazz)), Matchers.is(Matchers.notNullValue(AuthenticationException.class)));
}
}
|
[
"balmacedaluciano@gmail.com"
] |
balmacedaluciano@gmail.com
|
bc11087648f79a8ee77d5162827e044723f17202
|
777a85607ce615ffd4bbf70d241974ea40295f6d
|
/src/main/java/zollerngalaxy/mobs/renders/RenderOinkus.java
|
5e66548c7824f975bcbdb8148e68caf31c9920a7
|
[] |
no_license
|
RedShakespeare/Zollern-Galaxy
|
98b1a59809cd650c88d10ca517f1e26cc52b6f38
|
2b113b13b415979310e4bd2d2da2289cad291645
|
refs/heads/master
| 2021-01-07T07:48:51.075801
| 2020-02-19T13:38:55
| 2020-02-19T13:38:55
| 241,624,795
| 0
| 0
| null | 2020-02-19T13:10:16
| 2020-02-19T13:10:16
| null |
UTF-8
|
Java
| false
| false
| 1,151
|
java
|
package zollerngalaxy.mobs.renders;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import org.lwjgl.opengl.GL11;
import zollerngalaxy.lib.ZGInfo;
import zollerngalaxy.mobs.entities.EntityOinkus;
import zollerngalaxy.mobs.models.ModelOinkus;
@SideOnly(Side.CLIENT)
public class RenderOinkus extends RenderLiving<EntityOinkus> {
private ModelOinkus model;
private static float f6 = 1.7F;
public RenderOinkus(RenderManager rendermanagerIn) {
super(rendermanagerIn, new ModelOinkus(), 0.5F);
}
@Override
protected void preRenderCallback(EntityOinkus entitylivingbaseIn, float partialTickTime) {
this.scaleOinkus(entitylivingbaseIn, partialTickTime);
}
protected void scaleOinkus(EntityOinkus par1EntityOinkus, float par2) {
GL11.glScalef(f6, f6, f6);
}
@Override
protected ResourceLocation getEntityTexture(EntityOinkus entity) {
return new ResourceLocation(ZGInfo.MOD_ID + ":textures/entity/oinkus.png");
}
}
|
[
"admin@zollernverse.org"
] |
admin@zollernverse.org
|
3f08a3ac4f7a501c7cabd5053182c52857d817fc
|
d97bd8cdd623d4a66e8bda51ad86c08221e87f14
|
/examples/demo/domain/src/main/java/demoapp/dom/domain/properties/PropertyLayout/typicalLength/PropertyLayoutTypicalLengthVm_mixinPropertyWithMetaAnnotationOverridden.java
|
7287db9ac0555ff82785cfce1eacd81f09c46d87
|
[
"Apache-2.0"
] |
permissive
|
PakhomovAlexander/isis
|
24d6c238b2238c7c5bd64aee0d743851358dc50a
|
71e48c7302df7ab32f3c4f99ad14e979584b15ef
|
refs/heads/master
| 2023-03-21T03:35:38.432719
| 2021-03-16T08:27:27
| 2021-03-16T08:27:27
| 348,267,542
| 0
| 0
|
NOASSERTION
| 2021-03-16T08:27:28
| 2021-03-16T08:24:27
| null |
UTF-8
|
Java
| false
| false
| 1,871
|
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 demoapp.dom.domain.properties.PropertyLayout.typicalLength;
import org.apache.isis.applib.annotation.MemberOrder;
import org.apache.isis.applib.annotation.Property;
import org.apache.isis.applib.annotation.PropertyLayout;
import lombok.RequiredArgsConstructor;
//tag::meta-annotation-overridden[]
@TypicalLengthMetaAnnotation // <.>
@Property()
@PropertyLayout(
typicalLength = 3 // <.>
, describedAs =
"@TypicalLengthMetaAnnotation @PropertyLayout(...)"
)
@RequiredArgsConstructor
public class PropertyLayoutTypicalLengthVm_mixinPropertyWithMetaAnnotationOverridden {
// ...
//end::meta-annotation-overridden[]
private final PropertyLayoutTypicalLengthVm propertyLayoutTypicalLengthVm;
@MemberOrder(name = "meta-annotated-overridden", sequence = "2")
public String prop() {
return propertyLayoutTypicalLengthVm.getPropertyUsingAnnotation();
}
//tag::meta-annotation-overridden[]
}
//end::meta-annotation-overridden[]
|
[
"dan@haywood-associates.co.uk"
] |
dan@haywood-associates.co.uk
|
01709290e3c1228609bc4cbdb4337d70a6d7222d
|
c3741ba1c65830c358478144e4d7026269098246
|
/Back/notarias-app/notarias-dao/src/main/java/com/palestra/notaria/dao/PlantillaDocumentoNotarialDao.java
|
39e0c1af6c8108d00092664945f81a917319b381
|
[] |
no_license
|
rksmw/notarias-respaldo
|
92dec1391f25b90cfc050fed11af883027f79f9c
|
347c8ff941f00b9dc165b86c469967ab8a17ec0e
|
refs/heads/master
| 2022-12-26T06:53:28.747034
| 2019-06-19T15:40:04
| 2019-06-19T15:40:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,573
|
java
|
package com.palestra.notaria.dao;
import java.util.List;
import com.palestra.notaria.exceptions.NotariaException;
import com.palestra.notaria.modelo.ElementoCatalogo;
import com.palestra.notaria.modelo.PlantillaDocumentoNotarial;
import com.palestra.notaria.modelo.PlantillaDocumentoNotarialPK;
import com.palestra.notaria.modelo.PlantillaDocumentoNotarialSubOperacion;
import com.palestra.notaria.modelo.Suboperacion;
public interface PlantillaDocumentoNotarialDao extends GenericDao<PlantillaDocumentoNotarial, Integer> {
PlantillaDocumentoNotarial getPublishBySubOperacionId(String id) throws NotariaException;
PlantillaDocumentoNotarial getPublishBySubOperacionId(String id, ElementoCatalogo locacion) throws NotariaException;
public PlantillaDocumentoNotarial getLastVersion(String idplantilla) throws NotariaException;
public List<PlantillaDocumentoNotarial> getNoPublicados() throws NotariaException;
public List<PlantillaDocumentoNotarial> getPublicados() throws NotariaException;
public PlantillaDocumentoNotarial findById(PlantillaDocumentoNotarialPK id) throws NotariaException;
public Integer findMaxVersion(String iddocnot) throws NotariaException;
public PlantillaDocumentoNotarial findDocumentoPublicado(String iddocnot) throws NotariaException;
public PlantillaDocumentoNotarial buscarPorIdCompleto(String iddocnot,Integer inversion) throws NotariaException;
PlantillaDocumentoNotarial buscarPorSuboperacionLocacion(List<PlantillaDocumentoNotarialSubOperacion> operaciones, ElementoCatalogo locacion)throws NotariaException;
}
|
[
"mefithernandez@MacBook-Pro-de-Mefit.local"
] |
mefithernandez@MacBook-Pro-de-Mefit.local
|
6b4671355da47aca5d90d24e3fc66ab9b49b3d6b
|
8e1c3506e5ef30a3d1816c7fbfda199bc4475cb0
|
/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/codesystems/UnknownContentCode.java
|
a525e6dad330504b8c2410b132acc063ad978b0c
|
[
"Apache-2.0"
] |
permissive
|
jasmdk/org.hl7.fhir.core
|
4fc585c9f86c995e717336b4190939a9e58e3adb
|
fea455fbe4539145de5bf734e1737777eb9715e3
|
refs/heads/master
| 2020-09-20T08:05:57.475986
| 2019-11-26T07:57:28
| 2019-11-26T07:57:28
| 224,413,181
| 0
| 0
|
Apache-2.0
| 2019-11-27T11:17:00
| 2019-11-27T11:16:59
| null |
UTF-8
|
Java
| false
| false
| 4,782
|
java
|
package org.hl7.fhir.dstu2016may.model.codesystems;
/*-
* #%L
* org.hl7.fhir.dstu2016may
* %%
* Copyright (C) 2014 - 2019 Health Level 7
* %%
* 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.
* #L%
*/
/*
Copyright (c) 2011+, HL7, Inc.
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 HL7 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.
*/
// Generated on Sun, May 8, 2016 03:05+1000 for FHIR v1.4.0
import org.hl7.fhir.exceptions.FHIRException;
public enum UnknownContentCode {
/**
* The application does not accept either unknown elements or extensions.
*/
NO,
/**
* The application accepts unknown extensions, but not unknown elements.
*/
EXTENSIONS,
/**
* The application accepts unknown elements, but not unknown extensions.
*/
ELEMENTS,
/**
* The application accepts unknown elements and extensions.
*/
BOTH,
/**
* added to help the parsers
*/
NULL;
public static UnknownContentCode fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("no".equals(codeString))
return NO;
if ("extensions".equals(codeString))
return EXTENSIONS;
if ("elements".equals(codeString))
return ELEMENTS;
if ("both".equals(codeString))
return BOTH;
throw new FHIRException("Unknown UnknownContentCode code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case NO: return "no";
case EXTENSIONS: return "extensions";
case ELEMENTS: return "elements";
case BOTH: return "both";
default: return "?";
}
}
public String getSystem() {
return "http://hl7.org/fhir/unknown-content-code";
}
public String getDefinition() {
switch (this) {
case NO: return "The application does not accept either unknown elements or extensions.";
case EXTENSIONS: return "The application accepts unknown extensions, but not unknown elements.";
case ELEMENTS: return "The application accepts unknown elements, but not unknown extensions.";
case BOTH: return "The application accepts unknown elements and extensions.";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case NO: return "Neither Elements or Extensions";
case EXTENSIONS: return "Unknown Extensions";
case ELEMENTS: return "Unknown Elements";
case BOTH: return "Unknown Elements and Extensions";
default: return "?";
}
}
}
|
[
"jamesagnew@gmail.com"
] |
jamesagnew@gmail.com
|
88d64f30cf6dcd9a05bce8bb9a5e8cfbc129ae9e
|
9880d877100bdd662db4051a606b5f6d10b0ae36
|
/baseFrame/src/main/java/com/em/baseframe/view/popupwindow/indicator/BallSpinFadeLoaderIndicator.java
|
21a1df181d64165d931fb8916e4e314fff8eeadf
|
[] |
no_license
|
CQHH/VoiceOperationSystem
|
a9d927e86dc25fedd77b9d6f3e242fc98f5cffd3
|
74fd72d0c4d23bd2124a213ebf324fc2ca615a00
|
refs/heads/master
| 2020-08-13T10:59:26.393979
| 2019-10-14T05:48:36
| 2019-10-14T05:48:36
| 214,958,198
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,177
|
java
|
package com.em.baseframe.view.popupwindow.indicator;
import android.animation.ValueAnimator;
import android.graphics.Canvas;
import android.graphics.Paint;
/**
* Created by Jack on 2015/10/20.
*/
public class BallSpinFadeLoaderIndicator extends BaseIndicatorController {
public static final float SCALE=1.0f;
public static final int ALPHA=255;
float[] scaleFloats=new float[]{SCALE,
SCALE,
SCALE,
SCALE,
SCALE,
SCALE,
SCALE,
SCALE};
int[] alphas=new int[]{ALPHA,
ALPHA,
ALPHA,
ALPHA,
ALPHA,
ALPHA,
ALPHA,
ALPHA};
@Override
public void draw(Canvas canvas, Paint paint) {
float radius=getWidth()/10;
for (int i = 0; i < 8; i++) {
canvas.save();
Point point=circleAt(getWidth(),getHeight(),getWidth()/2-radius,i*(Math.PI/4));
canvas.translate(point.x,point.y);
canvas.scale(scaleFloats[i],scaleFloats[i]);
paint.setAlpha(alphas[i]);
canvas.drawCircle(0,0,radius,paint);
canvas.restore();
}
}
/**
* 圆O的圆心为(a,b),半径为R,点A与到X轴的为角α.
*则点A的坐标为(a+R*cosα,b+R*sinα)
* @param width
* @param height
* @param radius
* @param angle
* @return Point
*/
Point circleAt(int width,int height,float radius,double angle){
float x= (float) (width/2+radius*(Math.cos(angle)));
float y= (float) (height/2+radius*(Math.sin(angle)));
return new Point(x,y);
}
@Override
public void createAnimation() {
int[] delays= {0, 120, 240, 360, 480, 600, 720, 780, 840};
for (int i = 0; i < 8; i++) {
final int index=i;
ValueAnimator scaleAnim=ValueAnimator.ofFloat(1,0.4f,1);
scaleAnim.setDuration(1000);
scaleAnim.setRepeatCount(-1);
scaleAnim.setStartDelay(delays[i]);
scaleAnim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
scaleFloats[index] = (Float) animation.getAnimatedValue();
postInvalidate();
}
});
scaleAnim.start();
ValueAnimator alphaAnim=ValueAnimator.ofInt(255, 77, 255);
alphaAnim.setDuration(1000);
alphaAnim.setRepeatCount(-1);
alphaAnim.setStartDelay(delays[i]);
alphaAnim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
alphas[index] = (Integer) animation.getAnimatedValue();
postInvalidate();
}
});
alphaAnim.start();
}
}
final class Point{
public float x;
public float y;
public Point(float x, float y){
this.x=x;
this.y=y;
}
}
}
|
[
"fuenmao@126.com"
] |
fuenmao@126.com
|
0c9c81ee843fc60bd3d3ba0736ff3fe9f0eb70c3
|
cc5c0cc9d04ebe2e2299c149e1a82f294ee153a5
|
/src/org/calminfotech/system/models/Labtest.java
|
6f198191c28946a7f4d0ada71990a243f60a670d
|
[] |
no_license
|
Chykay/EMR
|
1ece6d6916464031b9892bea5104159b65056e96
|
433cd4494e9103d1a6573ad6009d429d025cc49b
|
refs/heads/master
| 2020-09-14T15:02:27.934553
| 2019-08-01T15:39:22
| 2019-08-01T15:39:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,806
|
java
|
package org.calminfotech.system.models;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
//import org.calminfotech.patient.models.PatientAllergy;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;
@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true)
@Table(name = "Labtest")
@SQLDelete(sql = "UPDATE labtest SET is_deleted = 1 WHERE labtest_id= ?")
//@Where(clause = "is_deleted <> 1")
public class Labtest {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "labtest_id", unique = true, nullable = false)
private Integer labtestId;
@Column(name = "labtest_name", nullable = false)
private String labtestName;
@Column(name = "description", nullable = false)
private String description;
@Column(name = "created_by")
private String createdBy;
@Column(name = "created_date")
private Date createdDate;
@Column(name = "modified_date")
private Date modifiedDate;
@Column(name = "modified_by")
private String modifiedBy;
@Column(name = "is_deleted")
private boolean isDeleted;
public String getLabtestName() {
return labtestName;
}
public void setLabtestName(String labtestName) {
this.labtestName = labtestName;
}
public void setLabtestType(LabtestType labtestType) {
this.labtestType = labtestType;
}
@ManyToOne
@JoinColumn(name = "labtest_type_id")
private LabtestType labtestType;
public LabtestType getLabtestType() {
return labtestType;
}
public void setLabtestTypeId(LabtestType labtestType) {
this.labtestType = labtestType;
}
@ManyToOne
@JoinColumn(name = "labtest_category_id")
private LabtestCategory labtestCategory;
/* @ManyToOne
@JoinColumn(name = "organisation_id")
private Organisation organisation;*/
@ManyToOne
@JoinColumn(name = "organisation_id")
private Organisation organisation;
public Organisation getOrganisation() {
return organisation;
}
public void setOrganisation(Organisation organisation) {
this.organisation = organisation;
}
/*
@ManyToMany
@JoinTable(name = "globalitem_unitofmeasure", joinColumns = { @JoinColumn(name = "item_id") }, inverseJoinColumns = { @JoinColumn(name = "unit_of_measure_id") })
private List<GlobalUnitofMeasure> measurement;
*/
/*
@ManyToMany(cascade = { CascadeType.ALL })
@JoinTable(name = "hmo_subservice_item", joinColumns = { @JoinColumn(name = "globalitem_item_id") }, inverseJoinColumns = { @JoinColumn(name = "hmo_subservice_id") })
private Set<HmoPckSubService> hmoPackSubService = new HashSet<HmoPckSubService>();
@ManyToMany
@JoinTable(name = "globalitem_point", joinColumns = { @JoinColumn(name = "item_id") }, inverseJoinColumns = { @JoinColumn(name = "point_id") })
private List<VisitWorkflowPoint> diseasePoint;
*/
/*
public Set<HmoPckSubService> getHmoPackSubService() {
return hmoPackSubService;
}
public void setHmoPackSubService(Set<HmoPckSubService> hmoPackSubService) {
this.hmoPackSubService = hmoPackSubService;
}
public List<VisitWorkflowPoint> getDiseasePoint() {
return diseasePoint;
}
public void setDiseasePoint(List<VisitWorkflowPoint> diseasePoint) {
this.diseasePoint = diseasePoint;
}
*/
public String getCreatedBy() {
return createdBy;
}
public Integer getLabtestId() {
return labtestId;
}
public void setLabtestId(Integer labtestId) {
this.labtestId = labtestId;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public LabtestCategory getLabtestCategory() {
return labtestCategory;
}
public void setLabtestCategory(LabtestCategory labtestCategory) {
this.labtestCategory = labtestCategory;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public Date getCreatedDate() {
return createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
public Date getModifiedDate() {
return modifiedDate;
}
public void setModifiedDate(Date modifiedDate) {
this.modifiedDate = modifiedDate;
}
public String getModifiedBy() {
return modifiedBy;
}
public void setModifiedBy(String modifiedBy) {
this.modifiedBy = modifiedBy;
}
public boolean isDeleted() {
return isDeleted;
}
public void setDeleted(boolean isDeleted) {
this.isDeleted = isDeleted;
}
}
|
[
"rissa@calminfotech.com"
] |
rissa@calminfotech.com
|
9caa2828a3be82f8262d2470e976b1634e6b1e98
|
90290ad4ef51a3088a78352b98f7c5cc26ac1610
|
/src/main/java/io/github/delivery/application/web/rest/UserJWTController.java
|
f224680042fcaf3ae45694ba5f710d74fcc47cdc
|
[] |
no_license
|
BulkSecurityGeneratorProject1/delivery
|
c39ec155c4daf1c9b2843d19a26a6ae04d499a55
|
673382a3ea99befc14933ae9812f0a87063e8201
|
refs/heads/master
| 2022-12-16T18:50:07.669506
| 2018-01-16T02:55:43
| 2018-01-16T02:55:43
| 296,685,505
| 0
| 0
| null | 2020-09-18T17:18:34
| 2020-09-18T17:18:33
| null |
UTF-8
|
Java
| false
| false
| 2,586
|
java
|
package io.github.delivery.application.web.rest;
import io.github.delivery.application.security.jwt.JWTConfigurer;
import io.github.delivery.application.security.jwt.TokenProvider;
import io.github.delivery.application.web.rest.vm.LoginVM;
import com.codahale.metrics.annotation.Timed;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.springframework.http.HttpStatus;
import org.springframework.http.HttpHeaders;
import org.springframework.http.ResponseEntity;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
/**
* Controller to authenticate users.
*/
@RestController
@RequestMapping("/api")
public class UserJWTController {
private final TokenProvider tokenProvider;
private final AuthenticationManager authenticationManager;
public UserJWTController(TokenProvider tokenProvider, AuthenticationManager authenticationManager) {
this.tokenProvider = tokenProvider;
this.authenticationManager = authenticationManager;
}
@PostMapping("/authenticate")
@Timed
public ResponseEntity<JWTToken> authorize(@Valid @RequestBody LoginVM loginVM) {
UsernamePasswordAuthenticationToken authenticationToken =
new UsernamePasswordAuthenticationToken(loginVM.getUsername(), loginVM.getPassword());
Authentication authentication = this.authenticationManager.authenticate(authenticationToken);
SecurityContextHolder.getContext().setAuthentication(authentication);
boolean rememberMe = (loginVM.isRememberMe() == null) ? false : loginVM.isRememberMe();
String jwt = tokenProvider.createToken(authentication, rememberMe);
HttpHeaders httpHeaders = new HttpHeaders();
httpHeaders.add(JWTConfigurer.AUTHORIZATION_HEADER, "Bearer " + jwt);
return new ResponseEntity<>(new JWTToken(jwt), httpHeaders, HttpStatus.OK);
}
/**
* Object to return as body in JWT Authentication.
*/
static class JWTToken {
private String idToken;
JWTToken(String idToken) {
this.idToken = idToken;
}
@JsonProperty("id_token")
String getIdToken() {
return idToken;
}
void setIdToken(String idToken) {
this.idToken = idToken;
}
}
}
|
[
"jhipster-bot@users.noreply.github.com"
] |
jhipster-bot@users.noreply.github.com
|
d47674697b21f6b87141c3a91cf011be8ef135cb
|
9254e7279570ac8ef687c416a79bb472146e9b35
|
/ddosbgp-20171120/src/main/java/com/aliyun/ddosbgp20171120/models/DescribeDdosEventRequest.java
|
a0d48848917351604abc04b7a4e5c7b54b88a1a0
|
[
"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
| 2,078
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ddosbgp20171120.models;
import com.aliyun.tea.*;
public class DescribeDdosEventRequest extends TeaModel {
@NameInMap("SourceIp")
public String sourceIp;
@NameInMap("PackId")
@Validation(required = true)
public String packId;
@NameInMap("StartTime")
@Validation(required = true)
public Integer startTime;
@NameInMap("EndTime")
@Validation(required = true)
public Integer endTime;
@NameInMap("PageSize")
@Validation(required = true)
public Integer pageSize;
@NameInMap("PageNo")
@Validation(required = true)
public Integer pageNo;
public static DescribeDdosEventRequest build(java.util.Map<String, ?> map) throws Exception {
DescribeDdosEventRequest self = new DescribeDdosEventRequest();
return TeaModel.build(map, self);
}
public DescribeDdosEventRequest setSourceIp(String sourceIp) {
this.sourceIp = sourceIp;
return this;
}
public String getSourceIp() {
return this.sourceIp;
}
public DescribeDdosEventRequest setPackId(String packId) {
this.packId = packId;
return this;
}
public String getPackId() {
return this.packId;
}
public DescribeDdosEventRequest setStartTime(Integer startTime) {
this.startTime = startTime;
return this;
}
public Integer getStartTime() {
return this.startTime;
}
public DescribeDdosEventRequest setEndTime(Integer endTime) {
this.endTime = endTime;
return this;
}
public Integer getEndTime() {
return this.endTime;
}
public DescribeDdosEventRequest setPageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
public Integer getPageSize() {
return this.pageSize;
}
public DescribeDdosEventRequest setPageNo(Integer pageNo) {
this.pageNo = pageNo;
return this;
}
public Integer getPageNo() {
return this.pageNo;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
6707e01904722f909eee762af3abd0936afe0ab8
|
83d781a9c2ba33fde6df0c6adc3a434afa1a7f82
|
/Wallet/Wallet.Batch/src/main/java/com/servicelive/wallet/batch/gl/dao/IFiscalCalendarDao.java
|
77cd5c1d052446a0c703d10e3b31315cb093d5d5
|
[] |
no_license
|
ssriha0/sl-b2b-platform
|
71ab8ef1f0ccb0a7ad58b18f28a2bf6d5737fcb6
|
5b4fcafa9edfe4d35c2dcf1659ac30ef58d607a2
|
refs/heads/master
| 2023-01-06T18:32:24.623256
| 2020-11-05T12:23:26
| 2020-11-05T12:23:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 552
|
java
|
package com.servicelive.wallet.batch.gl.dao;
import com.servicelive.common.exception.DataServiceException;
import com.servicelive.wallet.batch.gl.vo.FiscalCalendarVO;
// TODO: Auto-generated Javadoc
/**
* The Interface IFiscalCalendarDao.
*/
public interface IFiscalCalendarDao {
/**
* Gets the fiscal calendar.
*
* @param fiscalVO
*
* @return the fiscal calendar
*
* @throws DataServiceException
*/
public FiscalCalendarVO getFiscalCalendar(FiscalCalendarVO fiscalVO) throws DataServiceException;
}
|
[
"Kunal.Pise@transformco.com"
] |
Kunal.Pise@transformco.com
|
6d86b51056270b4ce0e5e9dadd182e81419229f0
|
10d77fabcbb945fe37e15ae438e360a89a24ea05
|
/graalvm/transactions/fork/narayana/qa/tests/src/org/jboss/jbossts/qa/Hammer01Setups/Setup01.java
|
6698284bfa48d1ed994b6ecbc660f6a7e1599fb0
|
[
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"LicenseRef-scancode-other-copyleft"
] |
permissive
|
nmcl/scratch
|
1a881605971e22aa300487d2e57660209f8450d3
|
325513ea42f4769789f126adceb091a6002209bd
|
refs/heads/master
| 2023-03-12T19:56:31.764819
| 2023-02-05T17:14:12
| 2023-02-05T17:14:12
| 48,547,106
| 2
| 1
|
Apache-2.0
| 2023-03-01T12:44:18
| 2015-12-24T15:02:58
|
Java
|
UTF-8
|
Java
| false
| false
| 4,507
|
java
|
/*
* JBoss, Home of Professional Open Source
* Copyright 2007, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU Lesser General Public License, v. 2.1.
* This program is distributed in the hope that it will be useful, but WITHOUT A
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License,
* v.2.1 along with this distribution; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
* (C) 2005-2006,
* @author JBoss Inc.
*/
//
// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
//
// Arjuna Technologies Ltd.,
// Newcastle upon Tyne,
// Tyne and Wear,
// UK.
//
// $Id: Setup01.java,v 1.3 2003/09/04 09:38:30 rbegg Exp $
//
package org.jboss.jbossts.qa.Hammer01Setups;
/*
* Copyright (C) 1999-2001 by HP Bluestone Software, Inc. All rights Reserved.
*
* HP Arjuna Labs,
* Newcastle upon Tyne,
* Tyne and Wear,
* UK.
*
* $Id: Setup01.java,v 1.3 2003/09/04 09:38:30 rbegg Exp $
*/
/*
* Try to get around the differences between Ansi CPP and
* K&R cpp with concatenation.
*/
/*
* Copyright (C) 1999-2001 by HP Bluestone Software, Inc. All rights Reserved.
*
* HP Arjuna Labs,
* Newcastle upon Tyne,
* Tyne and Wear,
* UK.
*
* $Id: Setup01.java,v 1.3 2003/09/04 09:38:30 rbegg Exp $
*/
import org.jboss.jbossts.qa.Hammer01.*;
import org.jboss.jbossts.qa.Utils.JDBCProfileStore;
import org.jboss.jbossts.qa.Utils.OAInterface;
import org.jboss.jbossts.qa.Utils.ORBInterface;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
import java.util.Properties;
public class Setup01
{
public static void main(String[] args)
{
boolean success = false;
try
{
ORBInterface.initORB(args, null);
OAInterface.initOA();
String profileName = args[args.length - 1];
int numberOfDrivers = JDBCProfileStore.numberOfDrivers(profileName);
for (int index = 0; index < numberOfDrivers; index++)
{
String driver = JDBCProfileStore.driver(profileName, index);
Class.forName(driver);
}
String databaseURL = JDBCProfileStore.databaseURL(profileName);
String databaseUser = JDBCProfileStore.databaseUser(profileName);
String databasePassword = JDBCProfileStore.databasePassword(profileName);
String databaseDynamicClass = JDBCProfileStore.databaseDynamicClass(profileName);
Connection connection;
if (databaseDynamicClass != null)
{
Properties databaseProperties = new Properties();
databaseProperties.put(com.arjuna.ats.jdbc.TransactionalDriver.userName, databaseUser);
databaseProperties.put(com.arjuna.ats.jdbc.TransactionalDriver.password, databasePassword);
databaseProperties.put(com.arjuna.ats.jdbc.TransactionalDriver.dynamicClass, databaseDynamicClass);
connection = DriverManager.getConnection(databaseURL, databaseProperties);
}
else
{
connection = DriverManager.getConnection(databaseURL, databaseUser, databasePassword);
}
Statement statement = connection.createStatement();
statement.executeUpdate("CREATE TABLE " + databaseUser + "_Matrix (X INT, Y INT, Value INT)");
int width = 16;
int height = 16;
for (int x = 0; x < width; x++)
{
for (int y = 0; y < height; y++)
{
if (y < (height / 2))
{
statement.executeUpdate("INSERT INTO " + databaseUser + "_Matrix VALUES(\'" + x + "\', \'" + y + "\', \'0\')");
}
else
{
statement.executeUpdate("INSERT INTO " + databaseUser + "_Matrix VALUES(\'" + x + "\', \'" + y + "\', \'1\')");
}
}
}
statement.close();
connection.close();
success = true;
}
catch (Exception exception)
{
System.err.println("Setup01.main: " + exception);
exception.printStackTrace(System.err);
}
try
{
OAInterface.shutdownOA();
ORBInterface.shutdownORB();
}
catch (Exception exception)
{
System.err.println("Setup01.main: " + exception);
exception.printStackTrace(System.err);
success = false;
}
System.out.println(success ? "Passed" : "Failed");
}
}
|
[
"mlittle@redhat.com"
] |
mlittle@redhat.com
|
31c7759d7d2d9abef4cfd6ccd675b7f35cb947b4
|
9520a1e0a7080f2a20b6123e49699c7542f15ed3
|
/src/main/java/com/github/appreciated/apexcharts/config/legend/OnItemHover.java
|
5e6f8d68225c478056e009c58f11189154ed94a0
|
[
"Apache-2.0"
] |
permissive
|
appreciated/apexcharts-flow
|
aa901337a6e7a77fdb482533f27296ba8ed37522
|
c27f20d4bf7e96d4272861b15345d058c603efcc
|
refs/heads/master
| 2023-06-24T21:21:47.108233
| 2022-12-14T21:47:56
| 2022-12-14T21:47:56
| 180,203,438
| 52
| 47
|
Apache-2.0
| 2023-06-16T06:49:39
| 2019-04-08T17:52:44
|
Java
|
UTF-8
|
Java
| false
| false
| 467
|
java
|
package com.github.appreciated.apexcharts.config.legend;
public class OnItemHover {
private Boolean highlightDataSeries;
public Boolean getHighlightDataSeries() {
return highlightDataSeries;
}
public void setHighlightDataSeries(Boolean highlightDataSeries) {
this.highlightDataSeries = highlightDataSeries;
}
public OnItemHover(Boolean highlightDataSeries) {
this.highlightDataSeries = highlightDataSeries;
}
}
|
[
"GoebelJohannes@gmx.net"
] |
GoebelJohannes@gmx.net
|
88c75032da669c9495bba90d3160e6f1dd19d7b6
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/elastic--elasticsearch/a7bbab7e878b8eefef66e106203de5177265cf5c/before/DfsPhase.java
|
cb89ce5fc9c61711620688a1693b02f14a937a8c
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003
| 2018-11-30T13:00:57
| 2018-11-30T13:00:57
| 87,353,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,796
|
java
|
/*
* Licensed to ElasticSearch and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ElasticSearch licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.search.dfs;
import com.google.common.collect.ImmutableMap;
import gnu.trove.map.TMap;
import gnu.trove.set.hash.THashSet;
import org.apache.lucene.index.IndexReaderContext;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.TermContext;
import org.apache.lucene.search.CollectionStatistics;
import org.apache.lucene.search.TermStatistics;
import org.elasticsearch.common.trove.ExtTHashMap;
import org.elasticsearch.common.util.concurrent.ThreadLocals;
import org.elasticsearch.search.SearchParseElement;
import org.elasticsearch.search.SearchPhase;
import org.elasticsearch.search.internal.SearchContext;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
*
*/
public class DfsPhase implements SearchPhase {
private static ThreadLocal<ThreadLocals.CleanableValue<THashSet<Term>>> cachedTermsSet = new ThreadLocal<ThreadLocals.CleanableValue<THashSet<Term>>>() {
@Override
protected ThreadLocals.CleanableValue<THashSet<Term>> initialValue() {
return new ThreadLocals.CleanableValue<THashSet<Term>>(new THashSet<Term>());
}
};
@Override
public Map<String, ? extends SearchParseElement> parseElements() {
return ImmutableMap.of();
}
@Override
public void preProcess(SearchContext context) {
}
public void execute(SearchContext context) {
try {
if (!context.queryRewritten()) {
context.updateRewriteQuery(context.searcher().rewrite(context.query()));
}
THashSet<Term> termsSet = cachedTermsSet.get().get();
termsSet.clear();
context.query().extractTerms(termsSet);
Term[] terms = termsSet.toArray(new Term[termsSet.size()]);
TermStatistics[] termStatistics = new TermStatistics[terms.length];
IndexReaderContext indexReaderContext = context.searcher().getTopReaderContext();
for (int i = 0; i < terms.length; i++) {
// LUCENE 4 UPGRADE: cache TermContext?
TermContext termContext = TermContext.build(indexReaderContext, terms[i], false);
termStatistics[i] = context.searcher().termStatistics(terms[i], termContext);
}
TMap<String, CollectionStatistics> fieldStatistics = new ExtTHashMap<String, CollectionStatistics>();
for (Term term : terms) {
if (!fieldStatistics.containsKey(term.field())) {
fieldStatistics.put(term.field(), context.searcher().collectionStatistics(term.field()));
}
}
context.dfsResult().termsStatistics(terms, termStatistics)
.fieldStatistics(fieldStatistics)
.maxDoc(context.searcher().getIndexReader().maxDoc());
} catch (Exception e) {
throw new DfsPhaseExecutionException(context, "Exception during dfs phase", e);
}
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
39389ef7790fecd9c7950095bb6728c4c16e34d3
|
554c0355a6e7ec75881689572b3282b2c6ff5bc6
|
/zaodao-platform/src/main/java/com/acooly/zaodao/gateway/gsy/message/WithdrawCardResponse.java
|
3d7bcd9235c83fede3573d69abe56d3e74ed8053
|
[] |
no_license
|
weichk/zaodao
|
2a508aecccae81a15710c275a9dc03b4ec102d87
|
4cbdc3da1a7e02302da6fc889cf4a7a0dbb3da2d
|
refs/heads/master
| 2020-06-06T23:44:35.414570
| 2019-06-20T08:06:28
| 2019-06-20T08:06:28
| 192,877,036
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,441
|
java
|
package com.acooly.zaodao.gateway.gsy.message;
import com.acooly.core.utils.Money;
import com.acooly.openapi.framework.common.annotation.OpenApiField;
import com.acooly.zaodao.gateway.base.ResponseBase;
import com.acooly.zaodao.gateway.gsy.message.enums.FundStatusEnum;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import java.io.Serializable;
/**
* 提现到卡(汇付到卡)
*
* @author xiaohong
* @create 2018-06-05 16:12
**/
@Getter
@Setter
public class WithdrawCardResponse extends ResponseBase implements Serializable {
@Length(max = 32)
@OpenApiField(desc = "用户UserId", constraint = "用户UserId", demo = "16103115491603800000")
private String merchUserId;
@OpenApiField(desc = "交易金额", constraint = "交易金额,单位:元", demo = "12.00")
private Money amount = Money.cent(0);
@OpenApiField(desc = "收费金额", constraint = "收费金额", demo = "2.00")
private Money chargeAmount = Money.cent(0);
@OpenApiField(desc = "实际到账金额", constraint = "实际到账金额", demo = "12.00")
private Money actualAmount = Money.cent(0);
@OpenApiField(desc = "交易时间", constraint = "交易时间,格式:yyyy-MM-dd HH:mm:ss")
private String tradeTime;
@OpenApiField(desc = "交易订单状态 ", constraint = "交易订单状态", demo = "PROCESSING")
private FundStatusEnum fundStatus;
}
|
[
"539603511@qq.com"
] |
539603511@qq.com
|
c839b830d71350b0244b5ee3f02cc6762fbe6f6d
|
0eba00e76b00650656814d45becfd5cd87182b3d
|
/Backjoon/src/BOJ_11052.java
|
afc5c865b1443cbd7c2979dd1136229766a42cf9
|
[] |
no_license
|
icarus8050/Algorithm
|
15085b8cd14afba198282e41b4f4af925e76cb29
|
3c9ac3b7642c21b8b27c77dc2cec21d3b8ec96d5
|
refs/heads/master
| 2021-06-14T01:06:45.618038
| 2021-03-21T04:02:50
| 2021-03-21T04:02:50
| 169,849,656
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,007
|
java
|
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
/**
* 카드 구매하기 (https://www.acmicpc.net/problem/11052)
*/
public class BOJ_11052 {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
int n = Integer.parseInt(br.readLine());
int[] cards = new int[n + 1];
int[] dp = new int[n + 1];
String[] input = br.readLine().split(" ");
for (int i = 1; i <= n; i++) {
cards[i] = Integer.parseInt(input[i - 1]);
}
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= i; j++) {
dp[i] = Math.max(dp[i], dp[i - j] + cards[j]);
}
}
bw.write(dp[n] + "\n");
bw.flush();
bw.close();
br.close();
}
}
|
[
"icarus8050@naver.com"
] |
icarus8050@naver.com
|
3658fd5584853771477e084d19ccf591d5177e48
|
672caa6542735343160249f4a350c5d4bd315170
|
/src/main/java/com/adyen/demo/store/service/CustomerDetailsService.java
|
3c851801211fe596a4b6f1721c578355a9ed97a9
|
[] |
no_license
|
RealIanX/adyen-java-react-ecommerce-example
|
46d456f813028e6e9f84f0cd427b08a2a748f13c
|
9b9d3913aceb85533ff1a9bd48994e0ce69284ca
|
refs/heads/master
| 2023-02-27T10:43:34.002360
| 2021-02-01T14:10:03
| 2021-02-01T14:10:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,235
|
java
|
package com.adyen.demo.store.service;
import com.adyen.demo.store.domain.CustomerDetails;
import com.adyen.demo.store.repository.CustomerDetailsRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Optional;
/**
* Service Implementation for managing {@link CustomerDetails}.
*/
@Service
@Transactional
public class CustomerDetailsService {
private final Logger log = LoggerFactory.getLogger(CustomerDetailsService.class);
private final CustomerDetailsRepository customerDetailsRepository;
public CustomerDetailsService(CustomerDetailsRepository customerDetailsRepository) {
this.customerDetailsRepository = customerDetailsRepository;
}
/**
* Save a customerDetails.
*
* @param customerDetails the entity to save.
* @return the persisted entity.
*/
public CustomerDetails save(CustomerDetails customerDetails) {
log.debug("Request to save CustomerDetails : {}", customerDetails);
return customerDetailsRepository.save(customerDetails);
}
/**
* Get all the customerDetails.
*
* @param pageable the pagination information.
* @return the list of entities.
*/
@Transactional(readOnly = true)
public Page<CustomerDetails> findAll(Pageable pageable) {
log.debug("Request to get all CustomerDetails");
return customerDetailsRepository.findAll(pageable);
}
/**
* Get one customerDetails by id.
*
* @param id the id of the entity.
* @return the entity.
*/
@Transactional(readOnly = true)
public Optional<CustomerDetails> findOne(Long id) {
log.debug("Request to get CustomerDetails : {}", id);
return customerDetailsRepository.findById(id);
}
/**
* Delete the customerDetails by id.
*
* @param id the id of the entity.
*/
public void delete(Long id) {
log.debug("Request to delete CustomerDetails : {}", id);
customerDetailsRepository.deleteById(id);
}
}
|
[
"d4udts@gmail.com"
] |
d4udts@gmail.com
|
d8900b5d681966b4fb23899af5229ce104a4d34d
|
8e1c3506e5ef30a3d1816c7fbfda199bc4475cb0
|
/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/model/codesystems/HspcAllergyIntoleranceTypeEnumFactory.java
|
187a4efcd0cb5416b72bf7cc32534639d4dd1e04
|
[
"Apache-2.0"
] |
permissive
|
jasmdk/org.hl7.fhir.core
|
4fc585c9f86c995e717336b4190939a9e58e3adb
|
fea455fbe4539145de5bf734e1737777eb9715e3
|
refs/heads/master
| 2020-09-20T08:05:57.475986
| 2019-11-26T07:57:28
| 2019-11-26T07:57:28
| 224,413,181
| 0
| 0
|
Apache-2.0
| 2019-11-27T11:17:00
| 2019-11-27T11:16:59
| null |
UTF-8
|
Java
| false
| false
| 3,122
|
java
|
package org.hl7.fhir.dstu2016may.model.codesystems;
/*-
* #%L
* org.hl7.fhir.dstu2016may
* %%
* Copyright (C) 2014 - 2019 Health Level 7
* %%
* 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.
* #L%
*/
/*
Copyright (c) 2011+, HL7, Inc.
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 HL7 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.
*/
// Generated on Sun, May 8, 2016 03:05+1000 for FHIR v1.4.0
import org.hl7.fhir.dstu2016may.model.EnumFactory;
public class HspcAllergyIntoleranceTypeEnumFactory implements EnumFactory<HspcAllergyIntoleranceType> {
public HspcAllergyIntoleranceType fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
return null;
if ("521059339".equals(codeString))
return HspcAllergyIntoleranceType._521059339;
throw new IllegalArgumentException("Unknown HspcAllergyIntoleranceType code '"+codeString+"'");
}
public String toCode(HspcAllergyIntoleranceType code) {
if (code == HspcAllergyIntoleranceType._521059339)
return "521059339";
return "?";
}
public String toSystem(HspcAllergyIntoleranceType code) {
return code.getSystem();
}
}
|
[
"jamesagnew@gmail.com"
] |
jamesagnew@gmail.com
|
e179a6aca48b9de81539c8eea404bb0da0682446
|
ab4fd2cdce015e0b443b66f949c6dfb741bf61c9
|
/src/main/java/com/sun/org/apache/xml/internal/security/utils/HelperNodeList.java
|
5569e9ea94424199fb1c7e09b0f5a5d15ae9f3df
|
[] |
no_license
|
lihome/jre
|
5964771e9e3ae7375fa697b8dfcd19656e008160
|
4fc2a1928f1de6af00ab6f7b0679db073fe0d054
|
refs/heads/master
| 2023-05-28T12:13:23.010031
| 2023-05-10T07:30:15
| 2023-05-10T07:30:15
| 116,901,440
| 0
| 0
| null | 2018-11-15T09:49:34
| 2018-01-10T03:13:15
|
Java
|
UTF-8
|
Java
| false
| false
| 2,611
|
java
|
/*
* Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/**
* 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 com.sun.org.apache.xml.internal.security.utils;
import java.util.ArrayList;
import java.util.List;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
/**
*/
public class HelperNodeList implements NodeList {
private final List<Node> nodes = new ArrayList<>();
private final boolean allNodesMustHaveSameParent;
/**
*
*/
public HelperNodeList() {
this(false);
}
/**
* @param allNodesMustHaveSameParent
*/
public HelperNodeList(boolean allNodesMustHaveSameParent) {
this.allNodesMustHaveSameParent = allNodesMustHaveSameParent;
}
/**
* Method item
*
* @param index
* @return node with index i
*/
public Node item(int index) {
return nodes.get(index);
}
/**
* Method getLength
*
* @return length of the list
*/
public int getLength() {
return nodes.size();
}
/**
* Method appendChild
*
* @param node
* @throws IllegalArgumentException
*/
public void appendChild(Node node) throws IllegalArgumentException {
if (this.allNodesMustHaveSameParent && this.getLength() > 0
&& this.item(0).getParentNode() != node.getParentNode()) {
throw new IllegalArgumentException("Nodes have not the same Parent");
}
nodes.add(node);
}
/**
* @return the document that contains this nodelist
*/
public Document getOwnerDocument() {
if (this.getLength() == 0) {
return null;
}
return XMLUtils.getOwnerDocument(this.item(0));
}
}
|
[
"lihome.jia@gmail.com"
] |
lihome.jia@gmail.com
|
b66f3b6521a8297d422d545d7dd5f12203199798
|
be68bcbe1055784dfd723aa47ccca52f310fda5f
|
/sources/android/arch/p000a/p002b/C0009e.java
|
10ec0f51d6b5c44cdba0e7b10882a330f2e48516
|
[] |
no_license
|
nicholaschum/DecompiledEvoziSmartLED
|
02710bc9b7ddb5db2f7fbbcebfe21605f8e889f8
|
42d3df21feac3d039219c3384e12e56e5f587028
|
refs/heads/master
| 2023-08-18T01:57:52.644220
| 2021-09-17T20:48:43
| 2021-09-17T20:48:43
| 407,675,617
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,070
|
java
|
package android.arch.p000a.p002b;
import java.util.Map;
/* renamed from: android.arch.a.b.e */
final class C0009e<K, V> implements Map.Entry<K, V> {
/* renamed from: a */
final K f13a;
/* renamed from: b */
final V f14b;
/* renamed from: c */
C0009e<K, V> f15c;
/* renamed from: d */
C0009e<K, V> f16d;
C0009e(K k, V v) {
this.f13a = k;
this.f14b = v;
}
public final boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof C0009e)) {
return false;
}
C0009e eVar = (C0009e) obj;
return this.f13a.equals(eVar.f13a) && this.f14b.equals(eVar.f14b);
}
public final K getKey() {
return this.f13a;
}
public final V getValue() {
return this.f14b;
}
public final V setValue(V v) {
throw new UnsupportedOperationException("An entry modification is not supported");
}
public final String toString() {
return this.f13a + "=" + this.f14b;
}
}
|
[
"nicholas@prjkt.io"
] |
nicholas@prjkt.io
|
7a463b0400f2bacf8eeba8da44628edebbb3e21a
|
ee1244b10de45679f053293e366f192af307be74
|
/sources/org/telegram/ui/LaunchActivity$$Lambda$29.java
|
c62c9d1b50a5fcb7eb5b4fc419e77578f9deb317
|
[] |
no_license
|
scarletstuff/Turbogram
|
a086e50b3f4d7036526075199616682a0d7c9c45
|
21b8862573953add9260f1eb586f0985d2c71e8e
|
refs/heads/master
| 2021-09-23T14:34:23.323880
| 2018-09-24T17:48:43
| 2018-09-24T17:48:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 448
|
java
|
package org.telegram.ui;
import android.view.View;
import android.view.View.OnClickListener;
final /* synthetic */ class LaunchActivity$$Lambda$29 implements OnClickListener {
private final LaunchActivity arg$1;
LaunchActivity$$Lambda$29(LaunchActivity launchActivity) {
this.arg$1 = launchActivity;
}
public void onClick(View view) {
this.arg$1.lambda$showLanguageAlertInternal$43$LaunchActivity(view);
}
}
|
[
"root@linuxhub.it"
] |
root@linuxhub.it
|
e14e9ad03eac18e7dc94b361e17b7a0bf6d042f8
|
64a2c72c70dc2615ff8ef809c40041fc960fe811
|
/adapter/adapter.rest.v1/src/main/java/at/kc/tugraz/ss/adapter/rest/v1/SSAdapterRESTFile.java
|
35e9f135b9158f1eca07863f7f22ba3e21062142
|
[
"Apache-2.0"
] |
permissive
|
xingzhixi/SocialSemanticServer
|
4a588492a83768c86a5e102388703e8dd01684d2
|
478c9b4e2907c3848dc23a3bc216d8dbac082a01
|
refs/heads/master
| 2021-01-16T18:54:04.013089
| 2015-03-16T11:41:36
| 2015-03-16T11:41:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,725
|
java
|
/**
* Code contributed to the Learning Layers project
* http://www.learning-layers.eu
* Development is partly funded by the FP7 Programme of the European Commission under
* Grant Agreement FP7-ICT-318209.
* Copyright (c) 2014, Graz University of Technology - KTI (Knowledge Technologies Institute).
* For a list of contributors see the AUTHORS file at the top-level directory of this distribution.
*
* 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 at.kc.tugraz.ss.adapter.rest.v1;
import at.kc.tugraz.socialserver.utils.SSMethU;
import at.kc.tugraz.socialserver.utils.SSStrU;
import at.kc.tugraz.ss.service.filerepo.datatypes.pars.SSFileCanWritePar;
import at.kc.tugraz.ss.service.filerepo.datatypes.pars.SSFileExtGetPar;
import at.kc.tugraz.ss.service.filerepo.datatypes.pars.SSFileSetReaderOrWriterPar;
import at.kc.tugraz.ss.service.filerepo.datatypes.pars.SSFileUserFileWritesPar;
import at.kc.tugraz.ss.service.filerepo.datatypes.rets.SSFileCanWriteRet;
import at.kc.tugraz.ss.service.filerepo.datatypes.rets.SSFileExtGetRet;
import at.kc.tugraz.ss.service.filerepo.datatypes.rets.SSFileGetEditingFilesRet;
import at.kc.tugraz.ss.service.filerepo.datatypes.rets.SSFileSetReaderOrWriterRet;
import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Path("")
@Api( value = "SSAdapterRESTFile")
public class SSAdapterRESTFile{
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path (SSStrU.slash + "fileExtGet")
@ApiOperation(
value = "retrieve a file's extension",
response = SSFileExtGetRet.class)
public String fileExtGet(final SSFileExtGetPar input){
return SSRestMainV1.handleStandardJSONRESTCall(input, SSMethU.fileExtGet);
}
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path (SSStrU.slash + "fileCanWrite")
@ApiOperation(
value = "query whether given file can be downloaded with write access",
response = SSFileCanWriteRet.class)
public String fileCanWrite(final SSFileCanWritePar input){
return SSRestMainV1.handleStandardJSONRESTCall(input, SSMethU.fileCanWrite);
}
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path (SSStrU.slash + "fileSetReaderOrWriter")
@ApiOperation(
value = "set user being writer or reaader for given file",
response = SSFileSetReaderOrWriterRet.class)
public String fileSetReaderOrWriter(final SSFileSetReaderOrWriterPar input){
return SSRestMainV1.handleStandardJSONRESTCall(input, SSMethU.fileSetReaderOrWriter);
}
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path (SSStrU.slash + "fileUserFileWrites")
@ApiOperation(
value = "retrieve files user currently could replace when uploading respective file again as he is writer",
response = SSFileGetEditingFilesRet.class)
public String fileUserFileWrites(final SSFileUserFileWritesPar input){
return SSRestMainV1.handleStandardJSONRESTCall(input, SSMethU.fileUserFileWrites);
}
}
|
[
"dtheiler@tugraz.at"
] |
dtheiler@tugraz.at
|
8551df02bc6dd9de9089213e881502be2d4aa5e7
|
5036af5a5266185ef54a0c4016254828185be9d6
|
/src/main/java/com/src/xt/login/controller/reg/client/BulletinsController.java
|
affde69cced476197e94fb9bc1c80c7c6b3b9ab9
|
[] |
no_license
|
7373/enterprise-information-exchange-and-sharing-system
|
b2295f0fb769369d302771f1faa703b6d7c5022a
|
1bdf258a07f713898997119d6bd6454b0a69d715
|
refs/heads/master
| 2021-01-02T23:05:17.857022
| 2017-08-18T12:44:40
| 2017-08-18T12:44:40
| 99,462,869
| 0
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,737
|
java
|
/*
* Copyright© 2003-2016 浙江汇信科技有限公司, All Rights Reserved.
*/
package com.icinfo.cs.login.controller.reg.client;
import java.sql.SQLException;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import com.icinfo.cs.common.utils.StringUtil;
import com.icinfo.cs.yr.model.Bulletins;
import com.icinfo.cs.yr.service.IBulletinsService;
import com.icinfo.framework.core.web.BaseController;
import com.icinfo.framework.mybatis.pagehelper.datatables.PageRequest;
import com.icinfo.framework.mybatis.pagehelper.datatables.PageResponse;
/**
* 描述: cs_bulletins 对应的Controller类.<br>
*
* @author framework generator
* @date 2016年09月19日
*/
@Controller("ClientBulletinsController")
@RequestMapping("/reg/client/login/bulletins/")
public class BulletinsController extends BaseController {
@Autowired
IBulletinsService bulletinsService;
/**
*
* 描述: 企业端公告列表数据查询
* @auther gaojinling
* @date 2016年12月5日
* @param request
* @param session
* @return
* @throws SQLException
*/
@RequestMapping({"list.json","list.xml"})
@ResponseBody
public PageResponse<Bulletins> listJSON(PageRequest request) throws SQLException{
List<Bulletins> bulletinslist= bulletinsService.selectBulletinsClientList(request);
return new PageResponse<Bulletins>(bulletinslist);
}
/**
*
* 描述: 企业端查看公告列表页面
* @auther gaojinling
* @date 2016年12月5日
* @return
* @throws SQLException
*/
@RequestMapping("list")
public ModelAndView toList() throws SQLException{
ModelAndView mav= new ModelAndView("/reg/client/login/bulletins_clientlist");
return mav;
}
/**
*
* 描述: 企业端登录页查看公告详情页
* @auther gaojinling
* @date 2016年12月5日
* @param uid
* @return
* @throws SQLException
*/
@RequestMapping("detail")
public ModelAndView toSee(String uid) throws SQLException{
ModelAndView mav = new ModelAndView("/reg/client/login/bulletins_clientdetail");
Bulletins bulletins = bulletinsService.selectByUID(uid);
mav.addObject("Bulletins", bulletins);
if(bulletins != null && StringUtil.isNotEmpty(bulletins.getUID())){//更新阅读量
Bulletins Readbulletins = new Bulletins();
Readbulletins.setUID(bulletins.getUID());
Readbulletins.setReadCount(bulletins.getReadCount()+1); //阅读量加1
bulletinsService.updateBulletins(Readbulletins);
}
return mav;
}
}
|
[
"15024454222@qq.com"
] |
15024454222@qq.com
|
771ef2c25cbfe1a86c75acc9e9505a904af8b3e2
|
4d97a8ec832633b154a03049d17f8b58233cbc5d
|
/Math/34/Math/evosuite-branch/9/org/apache/commons/math3/genetics/ListPopulationEvoSuite_branch_Test_scaffolding.java
|
6b7bf13a3278bcba7acd55859e17a8713a4f362c
|
[] |
no_license
|
4open-science/evosuite-defects4j
|
be2d172a5ce11e0de5f1272a8d00d2e1a2e5f756
|
ca7d316883a38177c9066e0290e6dcaa8b5ebd77
|
refs/heads/master
| 2021-06-16T18:43:29.227993
| 2017-06-07T10:37:26
| 2017-06-07T10:37:26
| 93,623,570
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,893
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Thu Dec 11 19:02:54 GMT 2014
*/
package org.apache.commons.math3.genetics;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.junit.AfterClass;
public class ListPopulationEvoSuite_branch_Test_scaffolding {
@org.junit.Rule
public org.junit.rules.Timeout globalTimeout = new org.junit.rules.Timeout(6000);
private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 5000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@AfterClass
public static void clearEvoSuiteFramework(){
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
setSystemProperties();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
resetClasses();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public void setSystemProperties() {
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
java.lang.System.setProperty("java.vm.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.specification.version", "1.7");
java.lang.System.setProperty("java.home", "/usr/local/packages6/java/jdk1.7.0_55/jre");
java.lang.System.setProperty("user.dir", "/scratch/ac1gf/Math/34/9/run_evosuite.pl_30682_1418323953");
java.lang.System.setProperty("java.io.tmpdir", "/tmp");
java.lang.System.setProperty("awt.toolkit", "sun.awt.X11.XToolkit");
java.lang.System.setProperty("file.encoding", "UTF-8");
java.lang.System.setProperty("file.separator", "/");
java.lang.System.setProperty("java.awt.graphicsenv", "sun.awt.X11GraphicsEnvironment");
java.lang.System.setProperty("java.awt.headless", "true");
java.lang.System.setProperty("java.awt.printerjob", "sun.print.PSPrinterJob");
java.lang.System.setProperty("java.class.path", "/data/ac1gf/defects4j/framework/projects/lib/evosuite.jar:/scratch/ac1gf/Math/34/9/run_evosuite.pl_30682_1418323953/target/classes");
java.lang.System.setProperty("java.class.version", "51.0");
java.lang.System.setProperty("java.endorsed.dirs", "/usr/local/packages6/java/jdk1.7.0_55/jre/lib/endorsed");
java.lang.System.setProperty("java.ext.dirs", "/usr/local/packages6/java/jdk1.7.0_55/jre/lib/ext:/usr/java/packages/lib/ext");
java.lang.System.setProperty("java.library.path", "lib");
java.lang.System.setProperty("java.runtime.name", "Java(TM) SE Runtime Environment");
java.lang.System.setProperty("java.runtime.version", "1.7.0_55-b13");
java.lang.System.setProperty("java.specification.name", "Java Platform API Specification");
java.lang.System.setProperty("java.specification.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.vendor.url", "http://java.oracle.com/");
java.lang.System.setProperty("java.version", "1.7.0_55");
java.lang.System.setProperty("java.vm.info", "mixed mode");
java.lang.System.setProperty("java.vm.name", "Java HotSpot(TM) 64-Bit Server VM");
java.lang.System.setProperty("java.vm.specification.name", "Java Virtual Machine Specification");
java.lang.System.setProperty("java.vm.specification.vendor", "Oracle Corporation");
java.lang.System.setProperty("java.vm.specification.version", "1.7");
java.lang.System.setProperty("java.vm.version", "24.55-b03");
java.lang.System.setProperty("line.separator", "\n");
java.lang.System.setProperty("os.arch", "amd64");
java.lang.System.setProperty("os.name", "Linux");
java.lang.System.setProperty("os.version", "2.6.32-431.23.3.el6.x86_64");
java.lang.System.setProperty("path.separator", ":");
java.lang.System.setProperty("user.country", "GB");
java.lang.System.setProperty("user.home", "/home/ac1gf");
java.lang.System.setProperty("user.language", "en");
java.lang.System.setProperty("user.name", "ac1gf");
java.lang.System.setProperty("user.timezone", "Europe/Guernsey");
}
private static void initializeClasses() {
org.evosuite.runtime.ClassStateSupport.initializeClasses(ListPopulationEvoSuite_branch_Test_scaffolding.class.getClassLoader() ,
"org.apache.commons.math3.exception.util.Localizable",
"org.apache.commons.math3.exception.DimensionMismatchException",
"org.apache.commons.math3.exception.util.LocalizedFormats",
"org.apache.commons.math3.genetics.BinaryChromosome",
"org.apache.commons.math3.genetics.PermutationChromosome",
"org.apache.commons.math3.exception.util.ExceptionContextProvider",
"org.apache.commons.math3.util.FastMath",
"org.apache.commons.math3.exception.NumberIsTooSmallException",
"org.apache.commons.math3.genetics.AbstractListChromosome",
"org.apache.commons.math3.exception.OutOfRangeException",
"org.apache.commons.math3.exception.MathIllegalArgumentException",
"org.apache.commons.math3.genetics.ListPopulation",
"org.apache.commons.math3.genetics.InvalidRepresentationException",
"org.apache.commons.math3.exception.NumberIsTooLargeException",
"org.apache.commons.math3.genetics.Fitness",
"org.apache.commons.math3.exception.NotPositiveException",
"org.apache.commons.math3.exception.NullArgumentException",
"org.apache.commons.math3.exception.MathIllegalNumberException",
"org.apache.commons.math3.genetics.RandomKey",
"org.apache.commons.math3.genetics.ElitisticListPopulation",
"org.apache.commons.math3.exception.util.ArgUtils",
"org.apache.commons.math3.genetics.Chromosome",
"org.apache.commons.math3.exception.util.ExceptionContext",
"org.apache.commons.math3.genetics.Population"
);
}
private static void resetClasses() {
org.evosuite.runtime.reset.ClassResetter.getInstance().setClassLoader(ListPopulationEvoSuite_branch_Test_scaffolding.class.getClassLoader());
org.evosuite.runtime.ClassStateSupport.resetClasses(
"org.apache.commons.math3.exception.util.LocalizedFormats",
"org.apache.commons.math3.exception.MathIllegalArgumentException",
"org.apache.commons.math3.exception.NullArgumentException",
"org.apache.commons.math3.exception.util.ExceptionContext",
"org.apache.commons.math3.exception.MathIllegalNumberException",
"org.apache.commons.math3.exception.NumberIsTooSmallException",
"org.apache.commons.math3.exception.NotPositiveException",
"org.apache.commons.math3.exception.OutOfRangeException",
"org.apache.commons.math3.util.FastMath",
"org.apache.commons.math3.exception.NumberIsTooLargeException"
);
}
}
|
[
"martin.monperrus@gnieh.org"
] |
martin.monperrus@gnieh.org
|
0fe45159035271572e27b9436374d65dd2b7925e
|
c3e1c5c81cf923a5e67a843fcc94405e2f8f6d47
|
/curacao/src/main/java/curacao/annotations/parameters/convenience/Authorization.java
|
02afa81aca64a9cde1c1aa16cee43aa100fcb0f7
|
[
"MIT"
] |
permissive
|
markkolich/curacao
|
d3e563c02509151a2c9eaeef120c5823474a393e
|
69328d52a96a1aa044cdf6d48ff7cc95f3ed7420
|
refs/heads/master
| 2023-06-07T20:24:49.379824
| 2023-05-28T18:14:54
| 2023-05-28T18:14:54
| 14,350,401
| 4
| 1
|
NOASSERTION
| 2023-05-28T18:14:55
| 2013-11-13T01:25:25
|
Java
|
UTF-8
|
Java
| false
| false
| 1,354
|
java
|
/*
* Copyright (c) 2023 Mark S. Kolich
* https://mark.koli.ch
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
package curacao.annotations.parameters.convenience;
import java.lang.annotation.*;
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Authorization {
}
|
[
"social@kolich.com"
] |
social@kolich.com
|
0b41b134909cf2bcecb76ca1b407ea85e932deab
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-13544-62-11-SPEA2-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/web/ActionFilter_ESTest_scaffolding.java
|
f10049c41da740685662e8333ceca75876fa6c28
|
[] |
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
| 434
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sun Jan 19 06:59:36 UTC 2020
*/
package com.xpn.xwiki.web;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class ActionFilter_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
db366964bbecac9ff7c10f032b5fc3b52b9d1c73
|
05c451abfa3507a4287de2b3c02f6cb7d8036331
|
/app/src/main/java/com/havrylyuk/dou/ui/main/by_years/ByYearsMvpPresenter.java
|
b6ca2f821a6c600108b04ba48ebfc6020dd5800e
|
[
"Apache-2.0"
] |
permissive
|
Tubbz-alt/DOUSalaries
|
f0997a281378b8ffedafd9867c37794322616142
|
b7381719f8602c31028d6fa1f988299f1f9d3882
|
refs/heads/master
| 2021-09-02T08:28:39.582150
| 2018-01-01T00:18:11
| 2018-01-01T00:18:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 271
|
java
|
package com.havrylyuk.dou.ui.main.by_years;
import com.havrylyuk.dou.ui.base.Presenter;
/**
* Created by Igor Havrylyuk on 25.09.2017.
*/
public interface ByYearsMvpPresenter<V extends ByYearsMvpView> extends Presenter<V> {
void loadChartItems(String city);
}
|
[
"gavrilyuk.igor@gmail.com"
] |
gavrilyuk.igor@gmail.com
|
f620deb1ceafbe0f0a7a2682851ea2a0aa92a125
|
450c4ea31ac34027f21747ad46acecf0f7b2ade6
|
/discovery/src/main/java/com/ibm/watson/developer_cloud/discovery/v1/model/CreateGatewayOptions.java
|
866a7c130774abcd34a6e37def881814bb0a5ae5
|
[
"Apache-2.0"
] |
permissive
|
amanoese/java-sdk
|
b06a16de994607b38cc7d434c1a42cb0345556d8
|
5d1bee87ed882fdbb5de3d97564779aa7e97fb38
|
refs/heads/master
| 2020-04-17T03:09:39.967828
| 2019-01-16T20:53:13
| 2019-01-16T20:53:13
| 166,169,610
| 0
| 0
|
Apache-2.0
| 2019-01-17T06:03:10
| 2019-01-17T06:03:09
| null |
UTF-8
|
Java
| false
| false
| 2,868
|
java
|
/*
* Copyright 2018 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.watson.developer_cloud.discovery.v1.model;
import com.ibm.watson.developer_cloud.service.model.GenericModel;
import com.ibm.watson.developer_cloud.util.Validator;
/**
* The createGateway options.
*/
public class CreateGatewayOptions extends GenericModel {
private String environmentId;
private String name;
/**
* Builder.
*/
public static class Builder {
private String environmentId;
private String name;
private Builder(CreateGatewayOptions createGatewayOptions) {
environmentId = createGatewayOptions.environmentId;
name = createGatewayOptions.name;
}
/**
* Instantiates a new builder.
*/
public Builder() {
}
/**
* Instantiates a new builder with required properties.
*
* @param environmentId the environmentId
*/
public Builder(String environmentId) {
this.environmentId = environmentId;
}
/**
* Builds a CreateGatewayOptions.
*
* @return the createGatewayOptions
*/
public CreateGatewayOptions build() {
return new CreateGatewayOptions(this);
}
/**
* Set the environmentId.
*
* @param environmentId the environmentId
* @return the CreateGatewayOptions builder
*/
public Builder environmentId(String environmentId) {
this.environmentId = environmentId;
return this;
}
/**
* Set the name.
*
* @param name the name
* @return the CreateGatewayOptions builder
*/
public Builder name(String name) {
this.name = name;
return this;
}
}
private CreateGatewayOptions(Builder builder) {
Validator.notEmpty(builder.environmentId, "environmentId cannot be empty");
environmentId = builder.environmentId;
name = builder.name;
}
/**
* New builder.
*
* @return a CreateGatewayOptions builder
*/
public Builder newBuilder() {
return new Builder(this);
}
/**
* Gets the environmentId.
*
* The ID of the environment.
*
* @return the environmentId
*/
public String environmentId() {
return environmentId;
}
/**
* Gets the name.
*
* User-defined name.
*
* @return the name
*/
public String name() {
return name;
}
}
|
[
"loganpatino10@gmail.com"
] |
loganpatino10@gmail.com
|
cefcd259f3ae78837a90a94e7fbe452d6e41df6d
|
7ace26ee93627a9b1c7915febafcd12079a74549
|
/src/RDPCrystalEDILibrary/Log.java
|
ce276217c96c397f064d93895a1bd5bd148d51a7
|
[] |
no_license
|
Javonet-io-user/77de0417-10e4-47a5-86bd-abaef99c7026
|
f802f870613a8ccc0ee2afbd6c9ff12d4d1df838
|
fdfe808234e3e303bbbb124d7af37354967cfe3a
|
refs/heads/master
| 2020-04-07T17:32:10.040655
| 2018-11-21T16:00:28
| 2018-11-21T16:00:28
| 158,573,214
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,681
|
java
|
package RDPCrystalEDILibrary;import Common.Activation;import static Common.Helper.Convert;import static Common.Helper.getGetObjectName;import static Common.Helper.getReturnObjectName;import static Common.Helper.ConvertToConcreteInterfaceImplementation;import Common.Helper;import com.javonet.Javonet;
import com.javonet.JavonetException;
import com.javonet.JavonetFramework;
import com.javonet.api.NObject;
import com.javonet.api.NEnum;
import com.javonet.api.keywords.NRef;
import com.javonet.api.keywords.NOut;
import com.javonet.api.NControlContainer;import java.util.concurrent.atomic.AtomicReference;import java.lang.*;
import RDPCrystalEDILibrary.*;
import jio.System.Collections.ObjectModel.*;public class Log {protected NObject javonetHandle; /**
* GetProperty
*/
public static ReadOnlyCollection<java.lang.String> getEntries (){ try { return new ReadOnlyCollection<java.lang.String>((NObject)Javonet.getType("Log").<NObject>get("Entries"));} catch (JavonetException _javonetException) { _javonetException.printStackTrace(); return null;} }public void setJavonetHandle(NObject handle) {
this.javonetHandle = handle;
}/**
* Method
*/
public static void Clear (){ try { Javonet.getType("Log").invoke("Clear");} catch (JavonetException _javonetException) { _javonetException.printStackTrace(); } } static {
try {
Activation.initializeJavonet();
} catch (java.lang.Exception e) {
e.printStackTrace();
}
}}
|
[
"support@javonet.com"
] |
support@javonet.com
|
f45acb0cbdc6ec89063ed47b5f0407c413f6c462
|
d7c343f45f3c67794675b2e56900978fc597359c
|
/core-java/src/main/java/com/lonely/wolf/note/jvm/JVMDemo.java
|
cc93a69c49f47f433bcb2097ca24f82db5c6e0e8
|
[] |
no_license
|
MacleZhou/lonely-wolf-note
|
efcebc1c6e60500bff9dbb531928ce76bf4a209a
|
7871214145a4fdbfed6f59e78a3505f71061ed90
|
refs/heads/master
| 2023-03-27T01:04:30.925521
| 2021-03-25T01:33:16
| 2021-03-25T01:33:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 457
|
java
|
package com.lonely.wolf.note.jvm;
/**
* @author zwx
* @version 1.0
* @date 2020/8/11
* @since jdk1.8
*/
public class JVMDemo {
public static void main(String[] args) {
int sum = add(null, 20);
print(sum);
}
public static int add(int[] a, int b) {
a=new int[]{1,2,3,4,5};
int result = a[0] + b;
return result;
}
public static void print(int num) {
System.out.println(num);
}
}
|
[
"zhoufeng900102@126.com"
] |
zhoufeng900102@126.com
|
77cd4f1d0503f19ed0f2e968485a8bab075539f7
|
c6964864412cdf04180ffa1711817116b00ce3d7
|
/src/main/java/com/aanglearning/model/entity/Subject.java
|
609589c3d1819fdcb7208896e507132b5f7448af
|
[] |
no_license
|
vinkrish/jersey_project_API
|
79aa58ccda456f4f503526e7e939d8dc497a6775
|
57d452c8a65cc66c88c183f938ec9e98f4880002
|
refs/heads/master
| 2021-03-30T16:58:55.587066
| 2018-03-23T09:35:09
| 2018-03-23T09:35:09
| 64,354,593
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,102
|
java
|
package com.aanglearning.model.entity;
public class Subject {
private long id;
private long schoolId;
private String subjectName;
private int partitionType;
private long theorySubjectId;
private long practicalSubjectId;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public long getSchoolId() {
return schoolId;
}
public void setSchoolId(long schoolId) {
this.schoolId = schoolId;
}
public String getSubjectName() {
return subjectName;
}
public void setSubjectName(String subjectName) {
this.subjectName = subjectName;
}
public int getPartitionType() {
return partitionType;
}
public void setPartitionType(int partitionType) {
this.partitionType = partitionType;
}
public long getTheorySubjectId() {
return theorySubjectId;
}
public void setTheorySubjectId(long theorySubjectId) {
this.theorySubjectId = theorySubjectId;
}
public long getPracticalSubjectId() {
return practicalSubjectId;
}
public void setPracticalSubjectId(long practicalSubjectId) {
this.practicalSubjectId = practicalSubjectId;
}
}
|
[
"vinaykrishna1989@gmail.com"
] |
vinaykrishna1989@gmail.com
|
ea373a2599bb091ec86895b64891dab1c06d0436
|
c908d6a58a7e79f684f9d430fa39ba34f8a320c8
|
/eclipse/common/plugins/com.liferay.ide.eclipse.project.ui/src/com/liferay/ide/eclipse/project/ui/action/sdk/MergeAction.java
|
0b7cbec33ad5addd7ba0c374e6be1878b6bc280a
|
[] |
no_license
|
admhouss/liferay-ide
|
b2f08294c6ac5d8dc909b97236f3006cd1f734e5
|
3b8b0bf1b98cd79b8dc794c4bd4fe4dc086fde34
|
refs/heads/master
| 2021-01-18T08:36:01.718248
| 2012-10-12T06:21:24
| 2012-10-12T06:21:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,033
|
java
|
/*******************************************************************************
* Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
*******************************************************************************/
package com.liferay.ide.eclipse.project.ui.action.sdk;
import com.liferay.ide.eclipse.sdk.ISDKConstants;
/**
* @author Gregory Amerson
*/
public class MergeAction extends SDKCommandAction {
@Override
protected String getSDKCommand() {
return ISDKConstants.TARGET_MERGE;
}
}
|
[
"gregory.amerson@liferay.com"
] |
gregory.amerson@liferay.com
|
316b71495cff22ecf6ac4fde646c402d7490f705
|
2dce0244270369d30f509c8a7b6c4ceadc71ec12
|
/m31_0_Multiprocessor_IO/L31.1.2-client/src/main/java/com/it_uatech/l31/ClientSocketMsgWorker.java
|
acc1772651d12819dc7b54f6c9382dcc9c63a870
|
[] |
no_license
|
ituatech/JavaMainCourse
|
91825d3a43159abd97443cf13c166b420266432c
|
4e5fc538aa38b9a8bad92932849b9637f6a2172f
|
refs/heads/master
| 2022-06-29T19:15:02.995886
| 2020-05-19T17:43:23
| 2020-05-19T17:43:23
| 218,717,504
| 0
| 0
| null | 2022-06-21T02:42:37
| 2019-10-31T08:21:27
|
Java
|
UTF-8
|
Java
| false
| false
| 721
|
java
|
package com.it_uatech.l31;
import com.it_uatech.l31.channel.SocketMsgWorker;
import java.io.IOException;
import java.net.Socket;
/**
* Created by tully.
*/
class ClientSocketMsgWorker extends SocketMsgWorker {
private final Socket socket;
private String name;
ClientSocketMsgWorker(String host, int port) throws IOException {
this(new Socket(host, port));
}
private ClientSocketMsgWorker(Socket socket) {
super(socket);
this.socket = socket;
this.name = "Client-"+ (int) (Math.random()*100 + 1);
}
public void close() throws IOException {
super.close();
socket.close();
}
public String getName() {
return name;
}
}
|
[
"53702365+ituatech@users.noreply.github.com"
] |
53702365+ituatech@users.noreply.github.com
|
48943e638698fe96c3e57391f9b30e3170dfc0a3
|
2f11f3da7bcdac54957d05b36a7a92f9bb84fd32
|
/app/src/main/java/com/indusfo/edzn/scangon/bean/Scanning.java
|
00ea386fe7055c9bf8d612c67858a115376800c7
|
[] |
no_license
|
xuz10086/EDSF_scangon
|
31021aeda2af106cc29a613b0d0a4b4871020e74
|
bcf1725decdd29fa4973044559ffc644e1091b24
|
refs/heads/master
| 2020-05-20T02:13:39.259006
| 2019-05-07T05:30:36
| 2019-05-07T05:30:36
| 185,326,391
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,409
|
java
|
package com.indusfo.edzn.scangon.bean;
import android.content.Intent;
import java.io.Serializable;
public class Scanning implements Serializable {
private static final long serialVersionUID = 2466283820960216534L;
// 扫描记录ID
private Integer lScanningId;
private String lUserId;
// 扫描时间
private String dScanningTime;
private String qr;
// 物料批号
private String vcMaterialsBatch;
// 物料id
private String lMaterialsId;
// 物料编码
private String vcMaterialsCode;
// 物料描述
private String vcMaterialsModel;
// 料位编码
private String vcSeatCode;
// 任务单ID
private String lTaskId;
// 有效情况
private Integer lValid;
// 是否换行
private Integer ifRow;
// 状态
private String status;
// 错误消息
private String erro;
// 第几次
private Integer lN;
// 关联任务单号
private String vcTaskNumber;
// 需要扫描的总料位
private Integer seatSum;
// 已经扫描的料位数
private Integer seatUsed;
// 未扫描的料位数
private Integer seatUnused;
/*--------------------------------------------
| A C C E S S O R S / M O D I F I E R S |
============================================*/
public Integer getlScanningId() {
return lScanningId;
}
public void setlScanningId(Integer lScanningId) {
this.lScanningId = lScanningId;
}
public String getlUserId() {
return lUserId;
}
public void setlUserId(String lUserId) {
this.lUserId = lUserId;
}
public String getdScanningTime() {
return dScanningTime;
}
public void setdScanningTime(String dScanningTime) {
this.dScanningTime = dScanningTime;
}
public String getQr() {
return qr;
}
public void setQr(String qr) {
this.qr = qr;
}
public String getVcMaterialsBatch() {
return vcMaterialsBatch;
}
public void setVcMaterialsBatch(String vcMaterialsBatch) {
this.vcMaterialsBatch = vcMaterialsBatch;
}
public String getlMaterialsId() {
return lMaterialsId;
}
public void setlMaterialsId(String lMaterialsId) {
this.lMaterialsId = lMaterialsId;
}
public String getVcMaterialsCode() {
return vcMaterialsCode;
}
public void setVcMaterialsCode(String vcMaterialsCode) {
this.vcMaterialsCode = vcMaterialsCode;
}
public String getVcMaterialsModel() {
return vcMaterialsModel;
}
public void setVcMaterialsModel(String vcMaterialsModel) {
this.vcMaterialsModel = vcMaterialsModel;
}
public String getVcSeatCode() {
return vcSeatCode;
}
public void setVcSeatCode(String vcSeatCode) {
this.vcSeatCode = vcSeatCode;
}
public String getlTaskId() {
return lTaskId;
}
public void setlTaskId(String lTaskId) {
this.lTaskId = lTaskId;
}
public Integer getlValid() {
return lValid;
}
public void setlValid(Integer lValid) {
this.lValid = lValid;
}
public Integer getIfRow() {
return ifRow;
}
public void setIfRow(Integer ifRow) {
this.ifRow = ifRow;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getErro() {
return erro;
}
public void setErro(String erro) {
this.erro = erro;
}
public Integer getlN() {
return lN;
}
public void setlN(Integer lN) {
this.lN = lN;
}
public String getVcTaskNumber() {
return vcTaskNumber;
}
public void setVcTaskNumber(String vcTaskNumber) {
this.vcTaskNumber = vcTaskNumber;
}
public Integer getSeatSum() {
return seatSum;
}
public void setSeatSum(Integer seatSum) {
this.seatSum = seatSum;
}
public Integer getSeatUsed() {
return seatUsed;
}
public void setSeatUsed(Integer seatUsed) {
this.seatUsed = seatUsed;
}
public Integer getSeatUnused() {
return seatUnused;
}
public void setSeatUnused(Integer seatUnused) {
this.seatUnused = seatUnused;
}
@Override
public String toString() {
return "Scanning{" +
"lScanningId=" + lScanningId +
", lUserId='" + lUserId + '\'' +
", dScanningTime='" + dScanningTime + '\'' +
", qr='" + qr + '\'' +
", vcMaterialsBatch='" + vcMaterialsBatch + '\'' +
", lMaterialsId='" + lMaterialsId + '\'' +
", vcMaterialsCode='" + vcMaterialsCode + '\'' +
", vcMaterialsModel='" + vcMaterialsModel + '\'' +
", vcSeatCode='" + vcSeatCode + '\'' +
", lTaskId='" + lTaskId + '\'' +
", lValid=" + lValid +
", ifRow=" + ifRow +
", status='" + status + '\'' +
", erro='" + erro + '\'' +
", lN=" + lN +
", vcTaskNumber='" + vcTaskNumber + '\'' +
", seatSum=" + seatSum +
", seatUsed=" + seatUsed +
", seatUnused=" + seatUnused +
'}';
}
}
|
[
"xuz10086@icloud.com"
] |
xuz10086@icloud.com
|
86de52aef64a8ae8cc88faefca07bf8c01e6239b
|
08dfe0965893fc3bb2b5e6c54e999d9e2f12f4a2
|
/src/main/java/com/kdn/ecsi/epengine/domain/ComCd.java
|
90179325c3c5b3962d53d12cbec2db2432b075b1
|
[] |
no_license
|
ygpark2/spring-boot-rest-api
|
27be58ee309316e92a6ec77e2359f24fb66c6f94
|
7b1de2593651d1d94819f89cf08d558533c9cde9
|
refs/heads/master
| 2021-01-19T05:18:30.350430
| 2016-06-01T00:55:29
| 2016-06-01T00:55:29
| 60,133,585
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,412
|
java
|
package com.kdn.ecsi.epengine.domain;
import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
/**
* The persistent class for the COM_CD database table.
*
*/
@Entity
@Table(name="COM_CD")
@NamedQuery(name="ComCd.findAll", query="SELECT c FROM ComCd c")
public class ComCd implements Serializable {
private static final long serialVersionUID = 1L;
@EmbeddedId
private ComCdPK id;
@Column(name="CD_DESC", length=255)
private String cdDesc;
@Column(name="CD_NM", length=20)
private String cdNm;
@Temporal(TemporalType.DATE)
@Column(name="DEL_DATE")
private Date delDate;
@Column(name="DEL_YN", length=1)
private String delYn;
@Column(name="ITEM1", length=20)
private String item1;
@Column(name="ITEM2", length=20)
private String item2;
@Column(name="ITEM3", length=20)
private String item3;
@Column(name="ITEM4", length=20)
private String item4;
@Column(name="ITEM5", length=20)
private String item5;
@Temporal(TemporalType.TIMESTAMP)
@Column(name="UPDATE_DATETIME")
private Date updateDatetime;
public ComCd() {
}
public ComCdPK getId() {
return this.id;
}
public void setId(ComCdPK id) {
this.id = id;
}
public String getCdDesc() {
return this.cdDesc;
}
public void setCdDesc(String cdDesc) {
this.cdDesc = cdDesc;
}
public String getCdNm() {
return this.cdNm;
}
public void setCdNm(String cdNm) {
this.cdNm = cdNm;
}
public Date getDelDate() {
return this.delDate;
}
public void setDelDate(Date delDate) {
this.delDate = delDate;
}
public String getDelYn() {
return this.delYn;
}
public void setDelYn(String delYn) {
this.delYn = delYn;
}
public String getItem1() {
return this.item1;
}
public void setItem1(String item1) {
this.item1 = item1;
}
public String getItem2() {
return this.item2;
}
public void setItem2(String item2) {
this.item2 = item2;
}
public String getItem3() {
return this.item3;
}
public void setItem3(String item3) {
this.item3 = item3;
}
public String getItem4() {
return this.item4;
}
public void setItem4(String item4) {
this.item4 = item4;
}
public String getItem5() {
return this.item5;
}
public void setItem5(String item5) {
this.item5 = item5;
}
public Date getUpdateDatetime() {
return this.updateDatetime;
}
public void setUpdateDatetime(Date updateDatetime) {
this.updateDatetime = updateDatetime;
}
}
|
[
"ygpark2@gmail.com"
] |
ygpark2@gmail.com
|
346d35efba2c0793c30c60cc1c639e5851e5cb85
|
82bda3ed7dfe2ca722e90680fd396935c2b7a49d
|
/app-meipai/src/main/java/com/arashivision/arvbmg/util/TestNativeCrashFabric.java
|
b5a2b79ddc825baca57c8b1018c7655063e6b729
|
[] |
no_license
|
cvdnn/PanoramaApp
|
86f8cf36d285af08ba15fb32348423af7f0b7465
|
dd6bbe0987a46f0b4cfb90697b38f37f5ad47cfc
|
refs/heads/master
| 2023-03-03T11:15:40.350476
| 2021-01-29T09:14:06
| 2021-01-29T09:14:06
| 332,968,433
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 186
|
java
|
package com.arashivision.arvbmg.util;
public class TestNativeCrashFabric {
static {
ARVBMGLibsLoader.load();
}
public static native void nativeTestNativeCrash();
}
|
[
"cvvdnn@gmail.com"
] |
cvvdnn@gmail.com
|
0dbd7df6d14dcde2218d1ca9823418eb3e8afac0
|
c284a9705e55828d3707bb06702eac3ceadf3237
|
/client-lib/src/com/baidu/api/sem/nms/v2/GetGroupByGroupIdRequest.java
|
081487729d6449c650bb3d6fcf652dd6b11e1c63
|
[] |
no_license
|
pologood/beidou-api
|
06efa59ba5443084eb107b423683844973aca1c9
|
05d0d7440b92f577c45c0530cb397e2e2fcd8bfd
|
refs/heads/master
| 2021-01-19T09:37:40.873104
| 2017-04-04T03:53:51
| 2017-04-04T03:53:51
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,372
|
java
|
package com.baidu.api.sem.nms.v2;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.cxf.jaxb.JAXBToStringBuilder;
import org.apache.cxf.jaxb.JAXBToStringStyle;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="groupIds" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"groupIds"
})
@XmlRootElement(name = "getGroupByGroupIdRequest")
public class GetGroupByGroupIdRequest {
@XmlElement(type = Long.class)
protected List<Long> groupIds;
/**
* Gets the value of the groupIds property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the groupIds property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getGroupIds().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Long }
*
*
*/
public List<Long> getGroupIds() {
if (groupIds == null) {
groupIds = new ArrayList<Long>();
}
return this.groupIds;
}
/**
* Generates a String representation of the contents of this type.
* This is an extension method, produced by the 'ts' xjc plugin
*
*/
@Override
public String toString() {
return JAXBToStringBuilder.valueOf(this, JAXBToStringStyle.SIMPLE_STYLE);
}
}
|
[
"berryjamcoding@gmail.com"
] |
berryjamcoding@gmail.com
|
41f80d9f09c429d1efb13461375b47839ab25ae1
|
fc34325be9a6b86bab6a076ae80cfd6da77c854d
|
/app/src/main/java/com/xianzhifengshui/widget/tag/TagItemClickListener.java
|
0db48af63b257bc92452fbe96e1c1967d00fbf9b
|
[] |
no_license
|
vokegai/ProphetGeomanticOmen
|
372b2f5699412bce0eb5da665adbfdbb7348a15b
|
b6ab6c33cad67e5e8f7c04a4615fe03566fb3776
|
refs/heads/master
| 2021-01-11T02:52:15.930398
| 2016-10-14T08:47:56
| 2016-10-14T08:47:56
| 70,891,241
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 202
|
java
|
package com.xianzhifengshui.widget.tag;
/**
* 作者: 陈冠希
* 日期: 2016/10/11.
* 描述: 标签点击监听器
*/
public interface TagItemClickListener {
void itemClick(int position);
}
|
[
"553882594@qq.com"
] |
553882594@qq.com
|
4c1d299f97a6cf3d1e1c9cb19e312bc5c9a82927
|
55fcf753f8c699bea82165d6f2bd3f51ae4c8c42
|
/basex-core/src/main/java/org/basex/build/json/JsonParserOptions.java
|
6e0402fef8471650cb71996f8fe1584f77534416
|
[
"BSD-3-Clause"
] |
permissive
|
maxsg1/basex
|
4cb879641418c37ffc74ec3e1595e0217b0cd3a7
|
bba0d6c13964e189d8890e209aed0713a85e27e0
|
refs/heads/master
| 2020-12-25T21:22:50.233926
| 2015-04-23T14:32:01
| 2015-04-23T14:32:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,401
|
java
|
package org.basex.build.json;
import java.util.*;
import org.basex.util.options.*;
/**
* Options for parsing JSON documents.
*
* @author BaseX Team 2005-15, BSD License
* @author Christian Gruen
*/
public final class JsonParserOptions extends JsonOptions {
/** Option: encoding. */
public static final StringOption ENCODING = new StringOption("encoding");
/** Option: unescape special characters. */
public static final BooleanOption UNESCAPE = new BooleanOption("unescape", true);
/** Option: liberal parsing. */
public static final BooleanOption LIBERAL = new BooleanOption("liberal", false);
/** Option: fallback function. */
public static final FuncOption FALLBACK = new FuncOption("fallback");
/** Option: handle duplicates. */
public static final EnumOption<JsonDuplicates> DUPLICATES =
new EnumOption<>("duplicates", JsonDuplicates.USE_LAST);
/** Duplicate handling. */
public enum JsonDuplicates {
/** Reject. */ REJECT,
/** Use first. */ USE_FIRST,
/** Use last. */ USE_LAST;
@Override
public String toString() {
return name().toLowerCase(Locale.ENGLISH).replace('_', '-');
}
}
/**
* Default constructor.
*/
public JsonParserOptions() {
}
/**
* Constructor with options to be copied.
* @param opts options
*/
public JsonParserOptions(final JsonParserOptions opts) {
super(opts);
}
}
|
[
"christian.gruen@gmail.com"
] |
christian.gruen@gmail.com
|
0730f3c6c79a642ddfdab1fc528f1050ec19d3f9
|
47525ba84a15c819568f60b73fe50af96578d4e6
|
/app/src/main/java/com/moko/lifex/base/BaseDialog.java
|
8db402f452cce7e07b7a4df36e98a7faeb67eea4
|
[] |
no_license
|
MokoLifeX/MokoLifeX_Android
|
7f3889bb0ce51aebec3f94a7a183f2375bb6a89a
|
2a306660c98707506c1ac16f9c981edb30c97e8e
|
refs/heads/master
| 2022-06-03T15:51:28.024793
| 2022-04-14T02:11:29
| 2022-04-14T02:11:29
| 211,220,498
| 0
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,482
|
java
|
package com.moko.lifex.base;
import android.annotation.SuppressLint;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.Animation;
import com.moko.lifex.R;
import butterknife.ButterKnife;
/**
* @author sunq
* @version V1.0
* @Title: CouponsDialog.class
* @Package com.elong.flight.widget
* @Description: 红包弹框
* @date 2017/2/21
*/
public abstract class BaseDialog<T> extends Dialog {
protected T t;
private boolean dismissEnable;
private Animation animation;
public BaseDialog(Context context) {
super(context, R.style.base_dialog);
}
public BaseDialog(Context context, int themeResId) {
super(context, themeResId);
}
@SuppressLint("InflateParams")
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final View convertView = LayoutInflater.from(getContext()).inflate(getLayoutResId(), null);
ButterKnife.bind(this, convertView);
renderConvertView(convertView, t);
if (animation != null) {
convertView.setAnimation(animation);
}
if (dismissEnable) {
convertView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
dismiss();
}
});
}
setContentView(convertView);
}
protected abstract int getLayoutResId();
protected abstract void renderConvertView(final View convertView, final T t);
@Override
public void show() {
super.show();
//set the dialog fullscreen
final Window window = getWindow();
assert window != null;
final WindowManager.LayoutParams layoutParams = window.getAttributes();
layoutParams.width = WindowManager.LayoutParams.MATCH_PARENT;
//设置窗口高度为包裹内容
layoutParams.height = WindowManager.LayoutParams.MATCH_PARENT;
window.setAttributes(layoutParams);
}
public void setData(T t) {
this.t = t;
}
protected void setAnimation(Animation animation) {
this.animation = animation;
}
protected void setDismissEnable(boolean dismissEnable) {
this.dismissEnable = dismissEnable;
}
}
|
[
"329541594@qq.com"
] |
329541594@qq.com
|
29e819e4a291d3079340911a4ec5ace6c5a0a29f
|
4ca66f616ebd8c999f5917059cc21321e35ba851
|
/src/minecraft/net/minecraft/network/play/server/S31PacketWindowProperty.java
|
6518aa10fb8bfb5e5a4e0d230b9cb9982cf057da
|
[] |
no_license
|
MobbyGFX96/Jupiter
|
1c66c872b4944654c1554f6e3821a63332f5f2cb
|
c5ee2e16019fc57f5a7f3ecf4a78e9e64ab40221
|
refs/heads/master
| 2016-09-10T17:05:11.977792
| 2014-07-21T09:24:02
| 2014-07-21T09:24:02
| 22,002,806
| 5
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,712
|
java
|
package net.minecraft.network.play.server;
import net.minecraft.network.INetHandler;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerPlayClient;
import java.io.IOException;
public class S31PacketWindowProperty extends Packet {
private static final String __OBFID = "CL_00001295";
private int field_149186_a;
private int field_149184_b;
private int field_149185_c;
public S31PacketWindowProperty() {
}
public S31PacketWindowProperty(int p_i45187_1_, int p_i45187_2_, int p_i45187_3_) {
this.field_149186_a = p_i45187_1_;
this.field_149184_b = p_i45187_2_;
this.field_149185_c = p_i45187_3_;
}
public void processPacket(INetHandlerPlayClient p_148833_1_) {
p_148833_1_.handleWindowProperty(this);
}
public void readPacketData(PacketBuffer p_148837_1_) throws IOException {
this.field_149186_a = p_148837_1_.readUnsignedByte();
this.field_149184_b = p_148837_1_.readShort();
this.field_149185_c = p_148837_1_.readShort();
}
public void writePacketData(PacketBuffer p_148840_1_) throws IOException {
p_148840_1_.writeByte(this.field_149186_a);
p_148840_1_.writeShort(this.field_149184_b);
p_148840_1_.writeShort(this.field_149185_c);
}
public int func_149182_c() {
return this.field_149186_a;
}
public int func_149181_d() {
return this.field_149184_b;
}
public int func_149180_e() {
return this.field_149185_c;
}
public void processPacket(INetHandler p_148833_1_) {
this.processPacket((INetHandlerPlayClient) p_148833_1_);
}
}
|
[
"MObbyGFX96@hotmail.co.uk"
] |
MObbyGFX96@hotmail.co.uk
|
7671b6672d8094c737a21fbafd76d3d67b7a42f7
|
89d0ba81bb48b6d9bc868decd902965345435348
|
/src/test/resources/ConvertCommonTest/expect/TestConvertJavaProgramService04.java
|
f73d3793e272145f8ad109b1f20a746588ea32fc
|
[
"Apache-2.0"
] |
permissive
|
oscana/oscana-s2n-javaconverter
|
75cd6ad8c4e2eec9c9bd59259789dcf357a7df64
|
7aa672cbfb4fefa973632dabca1d43d011bc60ab
|
refs/heads/master
| 2023-03-31T15:37:00.802181
| 2021-03-30T10:32:25
| 2021-03-30T10:32:25
| 291,641,914
| 0
| 0
|
Apache-2.0
| 2021-03-30T10:32:25
| 2020-08-31T07:10:12
|
Java
|
UTF-8
|
Java
| false
| false
| 860
|
java
|
package jp.co.tis.service;
import java.io.Serializable;
import java.util.List;
import javax.inject.Inject;
import java.io.Serializable;
import oscana.s2n.struts.GenericsUtil;
import nablarch.core.db.connection.DbConnectionContext;
import oscana.s2n.common.ParamFilter;
import nablarch.fw.dicontainer.web.RequestScoped;
import nablarch.fw.dicontainer.web.SessionScoped;
import nablarch.fw.dicontainer.Prototype;
import javax.inject.Singleton;
import nablarch.common.dao.UniversalDao;
/**
* 変換用テストデータファイル
*
* @author Ko Ho
*/
public class TestConvertJavaProgramService04 implements Serializable {
public Employee from() {
// TODO ツールで変換できません :
Employee result = jdbcManager.from ( Employee.class ) . getSingleResult( );
return result;
}
}
|
[
"ko.i@tis.co.jp"
] |
ko.i@tis.co.jp
|
b71b0e24f36225e43f9830ae1766de85f4850d48
|
fe49bebdae362679d8ea913d97e7a031e5849a97
|
/bqerpejb/src/power/ejb/hr/dao/SysVUserLoginDao.java
|
3f5e526e8fd2daef555a6a96ad424f3bea993c2a
|
[] |
no_license
|
loveyeah/BQMIS
|
1f87fad2c032e2ace7e452f13e6fe03d8d09ce0d
|
a3f44db24be0fcaa3cf560f9d985a6ed2df0b46b
|
refs/heads/master
| 2020-04-11T05:21:26.632644
| 2018-03-08T02:13:18
| 2018-03-08T02:13:18
| 124,322,652
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,363
|
java
|
/**
*
*/
package power.ejb.hr.dao;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.naming.NamingException;
import power.ear.comm.ejb.Ejb3Factory;
import power.ejb.comm.*;
/**
* 用户登录访问类,返回登录用户的信息
*
* @author Administrator date 2008-08-20
*/
public class SysVUserLoginDao implements ISysVUserLogin {
public SysVUserLogin CheckRight(String username, String password)
throws Exception {
// TODO Auto-generated method stub
try {
List users = findByProperty(username);
if (users != null && users.size() > 0) {
Object[] user = (Object[]) users.get(0);
SysVUserLogin userLogin = new SysVUserLogin();
userLogin.setEmpId(Long.parseLong(user[0].toString()));
userLogin.setUserLoginAccount((String) user[1]);
userLogin.setUserPassword((String) user[2]);
userLogin.setDbAccount((String) user[3]);
userLogin.setUserTheme((String) user[4]);
userLogin.setChsName((String) user[5]);
userLogin.setEnName((String) user[6]);
userLogin.setEmpCode((String) user[7]);
userLogin.setDeptId(Long.parseLong(user[8].toString()));
userLogin.setDeptCode((String) user[9]);
userLogin.setDeptName((String) user[10]);
userLogin.setPowerPlantId(Long.parseLong(user[11].toString()));
if (userLogin.getUserPassword().equalsIgnoreCase(password)) {
List<SysVUserRole> lrole = findRoleByProperty(user[0]
.toString());
if (lrole != null && lrole.size() > 0) {
userLogin.setLuserRole(lrole);
}
return userLogin;
} else {
throw new Exception("用户口令输入错误!");
}
} else {
throw new Exception("用户账号输入错误!");
}
} catch (Exception e) {
// TODO: handle exception
throw new Exception(e.getMessage());
}
}
private List findByProperty(String value) throws NamingException {
try {
String queryString = String
.format(
"select * from SYS_V_USER_LOGIN v where v.USER_LOGIN_ACCOUNT ='%s'",
value);
NativeSqlHelperRemote bll = (NativeSqlHelperRemote) Ejb3Factory
.getInstance().getFacadeRemote("NativeSQLHelper");
List luserlogin = bll.queryByNativeSQL(queryString);
return luserlogin;
} catch (RuntimeException re) {
throw re;
}
}
private List<SysVUserRole> findRoleByProperty(String roleid)
throws NamingException {
try {
List<SysVUserRole> lrole = new ArrayList<SysVUserRole>();
String queryString = "SELECT r.role_id,\n"
+ " r.role_name \n" + " FROM sys_c_role r,\n"
+ " sys_j_user_right s\n"
+ " WHERE r.role_id = s.role_id\n"
+ " AND r.role_status = 'U'\n" + " AND s.emp_id = ?1";
NativeSqlHelperRemote bll = (NativeSqlHelperRemote) Ejb3Factory
.getInstance().getFacadeRemote("NativeSQLHelper");
Object[] params = { roleid };
List list = bll.queryByNativeSQL(queryString, params);
Iterator it = list.iterator();
while (it.hasNext()) {
Object[] data = (Object[]) it.next();
SysVUserRole srole = new SysVUserRole();
srole.setRoleId(Long.parseLong(data[0].toString()));
srole.setRoleName(data[1].toString());
lrole.add(srole);
}
return lrole;
} catch (RuntimeException re) {
throw re;
}
}
}
|
[
"yexinhua@rtdata.cn"
] |
yexinhua@rtdata.cn
|
50d6dccbabac4e77e0f4871496b519f2d50e9138
|
20054763b3ce33f12f30d909647eb1f07e6eecc5
|
/src/com/wira/pmgt/server/executor/api/Service.java
|
bb047895ae4b5e44ca379297446f39a1fc5953cc
|
[] |
no_license
|
duggankimani/IConserv
|
69fc9ce2a1fc82b4eb02dc0e26b1f7f24aa07341
|
20d38fef419e654b416242e53ab4a8d015f6a66d
|
refs/heads/master
| 2021-01-16T23:15:47.696716
| 2015-04-21T08:47:13
| 2015-04-21T08:47:13
| 18,596,450
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 254
|
java
|
/*
* To change this template, choose Tools | Templates and open the template in
* the editor.
*/
package com.wira.pmgt.server.executor.api;
/**
*
* @author salaboy
*/
public interface Service {
public void init();
public void destroy();
}
|
[
"mdkimani@gmail.com"
] |
mdkimani@gmail.com
|
ecadf71a78ba3db5c92690651a1c2dbd5bac4b03
|
9f4f9c1e6a91ff96672e6ad26ff99111141fa363
|
/Algorithm/src/Code_Up/a1019.java
|
86247489d842d94ee5fd3ec073dd933bf445ad1f
|
[] |
no_license
|
loon0214/Algorithm
|
40ec4dccd3e425aea779ba00ab05dcf93ff49bfe
|
26626b9a97a81384b53edc36596214dc1e971767
|
refs/heads/master
| 2023-03-02T01:35:57.825246
| 2021-02-10T23:41:01
| 2021-02-10T23:41:01
| 337,883,973
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 473
|
java
|
package Code_Up;
import java.util.Scanner;
public class a1019 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String a = sc.next();
// split -> seperate by . -> save in arrays
// [.] or \\.
String date[] = a.split("[.]");
int year = Integer.parseInt(date[0]);
int month = Integer.parseInt(date[1]);
int day = Integer.parseInt(date[2]);
System.out.println(String.format("%04d.%02d.%02d", year, month, day));
}
}
|
[
"valentine458@naver.com"
] |
valentine458@naver.com
|
e3d4cd2deeaa72ec8b83a7df5f81759e7489145e
|
bbf68230f58d811b0dc1c5af410abbf480472603
|
/junior_005/src/main/java/ru/job4j/sort/external/SortingIterator.java
|
15fbb329caa5a3b5e00f355341cc8dfd6287bc63
|
[
"Apache-2.0"
] |
permissive
|
zCRUSADERz/AlexanderYakovlev
|
2de343bd16e2749fee0a61ae5a19e8ed2374cc4d
|
9b098fb876b5a60d5e5fdc8274b3b47e994d88ba
|
refs/heads/master
| 2022-09-14T05:36:48.554661
| 2019-06-12T11:05:21
| 2019-06-12T11:05:21
| 115,723,226
| 2
| 0
|
Apache-2.0
| 2022-09-08T00:48:33
| 2017-12-29T13:07:29
|
Java
|
UTF-8
|
Java
| false
| false
| 2,482
|
java
|
package ru.job4j.sort.external;
import java.util.Comparator;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.Objects;
/**
* Sorting iterator.
* Итератор инкапсулирует два других итератора, которые итерируют
* отсортированную последовательность элементов.
* Производит слияние двух отсортированных последовательностей в одну
* с сохранением отсортированности элементов.
*
* @author Alexander Yakovlev (sanyakovlev@yandex.ru)
* @since 18.01.2019
*/
public final class SortingIterator<T> implements Iterator<T> {
private final Iterator<T> left;
private final Iterator<T> right;
private final Comparator<T> comparator;
/**
* Предыдущее значение, возвращенное this.left итератором.
*/
private T leftValue;
/**
* Предыдущее значение, возвращенное this.right итератором.
*/
private T rightValue;
public SortingIterator(final Iterator<T> sortedLeft, final Iterator<T> sortedRight,
final Comparator<T> comparator) {
this.left = sortedLeft;
this.right = sortedRight;
this.comparator = comparator;
}
@Override
public final boolean hasNext() {
if (Objects.isNull(this.leftValue) && left.hasNext()) {
this.leftValue = this.left.next();
}
if (Objects.isNull(this.rightValue) && right.hasNext()) {
this.rightValue = this.right.next();
}
return Objects.nonNull(this.leftValue)
|| Objects.nonNull(this.rightValue);
}
@Override
public final T next() {
if (!hasNext()) {
throw new NoSuchElementException();
}
final T result;
boolean leftLessOrEqualThenRight = Objects.nonNull(this.leftValue)
&& Objects.nonNull(this.rightValue)
&& (this.comparator.compare(
this.leftValue, this.rightValue) <= 0);
if (leftLessOrEqualThenRight || Objects.isNull(this.rightValue)) {
result = this.leftValue;
this.leftValue = null;
} else {
result = this.rightValue;
this.rightValue = null;
}
return result;
}
}
|
[
"sanyakovlev@yandex.ru"
] |
sanyakovlev@yandex.ru
|
cf969bc746fc5c5aca6202e14a1f04fb59dfdd19
|
b333f1fd1959a1863df704b76b0de04fb6b0d799
|
/NaluDominoLoginNoHashModuleApplication/NaluDominoLoginNoHashModuleApplication-client/src/main/java/com/github/nalukit/example/nalu/loginapplication/ui/content/detail/composite/person/PersonComponent.java
|
4a9961cf23f92fb755d46081fd16839fec0d8b53
|
[
"Apache-2.0"
] |
permissive
|
baldram/nalu-examples
|
b6aca480702d0b34aeab0b13b277b0ed2dfa05e3
|
7057098126309edb4608f92369823e576b428c0d
|
refs/heads/master
| 2020-11-30T02:15:19.567971
| 2019-12-01T11:02:16
| 2019-12-01T11:02:16
| 230,273,131
| 0
| 0
| null | 2019-12-26T13:57:09
| 2019-12-26T13:57:09
| null |
UTF-8
|
Java
| false
| false
| 3,007
|
java
|
/*
* Copyright (c) 2018 - 2019 - Frank Hossfeld
*
* 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.github.nalukit.example.nalu.loginapplication.ui.content.detail.composite.person;
import com.github.nalukit.example.nalu.loginapplication.shared.data.model.dto.Person;
import com.github.nalukit.example.nalu.loginapplication.ui.content.detail.composite.person.IPersonComponent.Controller;
import com.github.nalukit.nalu.client.component.AbstractCompositeComponent;
import elemental2.dom.HTMLDivElement;
import elemental2.dom.HTMLElement;
import org.dominokit.domino.ui.cards.Card;
import org.dominokit.domino.ui.forms.TextBox;
import org.dominokit.domino.ui.grid.Column;
import org.dominokit.domino.ui.grid.Row;
import org.jboss.gwt.elemento.core.Elements;
public class PersonComponent
extends AbstractCompositeComponent<Controller, HTMLElement>
implements IPersonComponent {
private TextBox detailFirstName;
private TextBox detailName;
public PersonComponent() {
}
@Override
public void render() {
this.detailFirstName = TextBox.create("First name");
this.detailName = TextBox.create("Name");
HTMLDivElement divElemet = Elements.div()
.asElement();
divElemet.appendChild(Card.create("Details - Person")
.appendChild(Row.create()
.addColumn(Column.span12()
.appendChild(this.detailFirstName)))
.appendChild(Row.create()
.addColumn(Column.span12()
.appendChild(this.detailName)))
.asElement());
initElement(divElemet);
}
@Override
public void edit(Person result) {
if (result != null) {
detailFirstName.setValue(result.getFirstName());
detailName.setValue(result.getName());
}
}
@Override
public boolean isDirty(Person person) {
boolean notDirty = (person.getFirstName()
.equals(detailFirstName.getValue())) &&
(person.getName()
.equals(detailName.getValue()));
return !notDirty;
}
@Override
public Person flush(Person person) {
person.setFirstName(detailFirstName.getValue());
person.setName(detailName.getValue());
return person;
}
}
|
[
"frank.hossfeld@googlemail.com"
] |
frank.hossfeld@googlemail.com
|
899428e7802936b5390cc699217a4e505aecc4dd
|
d7c5121237c705b5847e374974b39f47fae13e10
|
/airspan.netspan/src/main/java/Netspan/NBI_15_2/Statistics/BsIbBaseAirInterfaceUsageHourlyGet.java
|
f8413432374338bf16d6b642316b8f7831b099bb
|
[] |
no_license
|
AirspanNetworks/SWITModules
|
8ae768e0b864fa57dcb17168d015f6585d4455aa
|
7089a4b6456621a3abd601cc4592d4b52a948b57
|
refs/heads/master
| 2022-11-24T11:20:29.041478
| 2020-08-09T07:20:03
| 2020-08-09T07:20:03
| 184,545,627
| 1
| 0
| null | 2022-11-16T12:35:12
| 2019-05-02T08:21:55
|
Java
|
UTF-8
|
Java
| false
| false
| 4,752
|
java
|
package Netspan.NBI_15_2.Statistics;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="NodeName" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* <element name="NodeId" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* <element name="DateStart" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* <element name="DateEnd" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"nodeName",
"nodeId",
"dateStart",
"dateEnd"
})
@XmlRootElement(name = "BsIbBaseAirInterfaceUsageHourlyGet")
public class BsIbBaseAirInterfaceUsageHourlyGet {
@XmlElement(name = "NodeName")
protected List<String> nodeName;
@XmlElement(name = "NodeId")
protected List<String> nodeId;
@XmlElement(name = "DateStart", required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar dateStart;
@XmlElement(name = "DateEnd", required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar dateEnd;
/**
* Gets the value of the nodeName property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the nodeName property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getNodeName().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getNodeName() {
if (nodeName == null) {
nodeName = new ArrayList<String>();
}
return this.nodeName;
}
/**
* Gets the value of the nodeId property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the nodeId property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getNodeId().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getNodeId() {
if (nodeId == null) {
nodeId = new ArrayList<String>();
}
return this.nodeId;
}
/**
* Gets the value of the dateStart property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDateStart() {
return dateStart;
}
/**
* Sets the value of the dateStart property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDateStart(XMLGregorianCalendar value) {
this.dateStart = value;
}
/**
* Gets the value of the dateEnd property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDateEnd() {
return dateEnd;
}
/**
* Sets the value of the dateEnd property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDateEnd(XMLGregorianCalendar value) {
this.dateEnd = value;
}
}
|
[
"dshalom@airspan.com"
] |
dshalom@airspan.com
|
d13a0204b98f406bdc34f4b80a4ad0a0646d79bb
|
95e944448000c08dd3d6915abb468767c9f29d3c
|
/sources/com/p280ss/android/ugc/aweme/share/improve/p1541d/C38170b.java
|
49de4e4e262fca04f3657937c7c8238da3995443
|
[] |
no_license
|
xrealm/tiktok-src
|
261b1faaf7b39d64bb7cb4106dc1a35963bd6868
|
90f305b5f981d39cfb313d75ab231326c9fca597
|
refs/heads/master
| 2022-11-12T06:43:07.401661
| 2020-07-04T20:21:12
| 2020-07-04T20:21:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 600
|
java
|
package com.p280ss.android.ugc.aweme.share.improve.p1541d;
import android.app.Activity;
import com.p280ss.android.ugc.aweme.share.improve.p1541d.C38165a.C38166a;
import com.p280ss.android.ugc.aweme.sharer.p338ui.C38380c.C38382b;
import kotlin.jvm.internal.C7573i;
/* renamed from: com.ss.android.ugc.aweme.share.improve.d.b */
public final class C38170b {
/* renamed from: a */
public static final C38382b m121927a(C38382b bVar, boolean z, Activity activity) {
C7573i.m23587b(bVar, "$this$injectUniversal");
C38166a.m121923a(bVar, z, activity);
return bVar;
}
}
|
[
"65450641+Xyzdesk@users.noreply.github.com"
] |
65450641+Xyzdesk@users.noreply.github.com
|
4527d2cd87a21a309438584a8d017eef99691036
|
ff5107cf2f495b2a07329cdf7190ff6469a1a834
|
/apps/microservices/ad/src/main/java/com/adloveyou/ms/ad/service/dto/BrandUserDTO.java
|
2508db4ca013a7840f60f131a2f0f98a57248f0a
|
[] |
no_license
|
icudroid/addonf-microservice
|
596e341cf282e1190c3752f6adf5a2c210976032
|
db9e80617b206ff3c1122e56f3c6de14e555692e
|
refs/heads/master
| 2021-05-09T02:15:47.863941
| 2018-01-27T20:29:48
| 2018-01-27T20:29:48
| 119,200,152
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,455
|
java
|
package com.adloveyou.ms.ad.service.dto;
import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.Objects;
/**
* A DTO for the BrandUser entity.
*/
public class BrandUserDTO implements Serializable {
private Long id;
@NotNull
private Long userId;
private Long brandId;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Long getBrandId() {
return brandId;
}
public void setBrandId(Long brandId) {
this.brandId = brandId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BrandUserDTO brandUserDTO = (BrandUserDTO) o;
if(brandUserDTO.getId() == null || getId() == null) {
return false;
}
return Objects.equals(getId(), brandUserDTO.getId());
}
@Override
public int hashCode() {
return Objects.hashCode(getId());
}
@Override
public String toString() {
return "BrandUserDTO{" +
"id=" + getId() +
", userId=" + getUserId() +
"}";
}
}
|
[
"dimitri@d-kahn.net"
] |
dimitri@d-kahn.net
|
a5b0cc5a23524cccf538c3f28d7c87f041b01b17
|
0bbe7af8b742660b3a3c4ece67b988db5ad5de54
|
/src/main/java/com/massoftware/windows/a/ejercicios_contables/WEjercicioContable.java
|
be0b79095f7153a4209820dbfce8a7ada74e3fdc
|
[] |
no_license
|
diegopablomansilla/massoftware_front
|
de80b5e48c278132f787d463cc32a898afcc62a2
|
35c083dde4398f7dc2919092df0e6498d3b50bdf
|
refs/heads/master
| 2021-06-08T20:13:33.266534
| 2019-09-12T23:21:53
| 2019-09-12T23:21:53
| 151,245,092
| 0
| 0
| null | 2021-04-19T14:51:55
| 2018-10-02T11:42:09
|
PLpgSQL
|
UTF-8
|
Java
| false
| false
| 5,146
|
java
|
package com.massoftware.windows.a.ejercicios_contables;
import com.massoftware.model.EjercicioContable;
import com.massoftware.model.EntityId;
import com.massoftware.x.util.UtilUI;
import com.massoftware.x.util.controls.CheckBoxEntity;
import com.massoftware.x.util.controls.DateFieldEntity;
import com.massoftware.x.util.controls.TextAreaEntity;
import com.massoftware.x.util.controls.TextFieldEntity;
import com.massoftware.x.util.windows.WindowForm;
import com.vaadin.data.util.BeanItem;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.VerticalLayout;
@SuppressWarnings("serial")
public class WEjercicioContable extends WindowForm {
// -------------------------------------------------------------
private BeanItem<EjercicioContable> itemBI;
// -------------------------------------------------------------
private TextFieldEntity numeroTXT;
private DateFieldEntity aperturaTXT;
private DateFieldEntity cierreDFT;
private CheckBoxEntity cerradoCHX;
private CheckBoxEntity cerradoModulosCHX;
private TextAreaEntity comentarioTXT;
// -------------------------------------------------------------
public WEjercicioContable(String mode, String id) {
super(mode, id);
}
protected void buildContent() throws Exception {
confWinForm(this.itemBI.getBean().labelSingular());
this.setWidth(28f, Unit.EM);
// =======================================================
// CUERPO
VerticalLayout cuerpo = buildCuerpo();
// =======================================================
// BOTONERAS
HorizontalLayout filaBotoneraHL = buildBotonera1();
// =======================================================
// CONTENT
VerticalLayout content = UtilUI.buildWinContentVertical();
content.addComponents(cuerpo, filaBotoneraHL);
content.setComponentAlignment(filaBotoneraHL, Alignment.MIDDLE_LEFT);
this.setContent(content);
}
private VerticalLayout buildCuerpo() throws Exception {
// ---------------------------------------------------------------------------------------------------------
numeroTXT = new TextFieldEntity(this.itemBI, "numero", this.mode);
// ---------------------------------------------------------------------------------------------------------
aperturaTXT = new DateFieldEntity(this.itemBI, "apertura", this.mode);
// ---------------------------------------------------------------------------------------------------------
cierreDFT = new DateFieldEntity(this.itemBI, "cierre", this.mode);
// ---------------------------------------------------------------------------------------------------------
cerradoCHX = new CheckBoxEntity(this.itemBI, "cerrado");
// ---------------------------------------------------------------------------------------------------------
cerradoModulosCHX = new CheckBoxEntity(this.itemBI, "cerradoModulos");
// ---------------------------------------------------------------------------------------------------------
comentarioTXT = new TextAreaEntity(this.itemBI, "comentario", this.mode, 4);
comentarioTXT.setWidth("100%");
// ---------------------------------------------------------------------------------------------------------
HorizontalLayout fechasHL = UtilUI.buildHL();
fechasHL.setMargin(false);
fechasHL.addComponents(aperturaTXT, cierreDFT);
HorizontalLayout cerradoHL = UtilUI.buildHL();
cerradoHL.setMargin(false);
cerradoHL.addComponents(cerradoCHX, cerradoModulosCHX);
VerticalLayout generalVL = UtilUI.buildVL();
generalVL.addComponents(numeroTXT, fechasHL, cerradoHL, comentarioTXT);
// ---------------------------------------------------------------------------------------------------------
return generalVL;
// ---------------------------------------------------------------------------------------------------------
}
// =================================================================================
protected void setMaxValues(EntityId item) throws Exception {
// Al momento de insertar o copiar a veces se necesita el maximo valor de ese
// atributo, + 1, esto es asi para hacer una especie de numero incremental de
// ese atributo
// Este metodo se ejecuta despues de consultar a la base de datos el bean en
// base a su id
// itemBI.getBean().setNumero(this.itemBI.getBean().maxValueInteger("numero"));
((EjercicioContable) item).loadByMaxEjercicioContable();
}
protected void setBean(EntityId obj) throws Exception {
// se utiliza para asignarle o cambiar el bean al contenedor del formulario
itemBI.setBean((EjercicioContable) obj);
}
protected BeanItem<EjercicioContable> getItemBIC() {
// -----------------------------------------------------------------
// Crea el Container del form, en base a al bean que queremos usar, y ademas
// carga el form con un bean vacio
// como este metodo se llama muchas veces, inicializar el contenedor una sola
// vez
if (itemBI == null) {
itemBI = new BeanItem<EjercicioContable>(new EjercicioContable());
}
return itemBI;
}
// =================================================================================
}
|
[
"diegopablomansilla@gmail.com"
] |
diegopablomansilla@gmail.com
|
16e19df646500b7a543c5dc16b182c15ecd36ba4
|
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
|
/benchmark/test/com/querydsl/apt/domain/QueryTypeTest.java
|
771421274d7be04ef979f28b6f1e83eef2cd62f4
|
[] |
no_license
|
STAMP-project/dspot-experiments
|
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
|
121487e65cdce6988081b67f21bbc6731354a47f
|
refs/heads/master
| 2023-02-07T14:40:12.919811
| 2019-11-06T07:17:09
| 2019-11-06T07:17:09
| 75,710,758
| 14
| 19
| null | 2023-01-26T23:57:41
| 2016-12-06T08:27:42
| null |
UTF-8
|
Java
| false
| false
| 1,950
|
java
|
/**
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
*
* 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.querydsl.apt.domain;
import QQueryTypeTest_QueryTypeEntity.queryTypeEntity;
import com.querydsl.core.annotations.PropertyType;
import com.querydsl.core.annotations.QueryEntity;
import com.querydsl.core.annotations.QueryType;
import org.junit.Test;
public class QueryTypeTest extends AbstractTest {
@QueryEntity
public static class QueryTypeEntity {
@QueryType(PropertyType.SIMPLE)
public String stringAsSimple;
@QueryType(PropertyType.COMPARABLE)
public String stringAsComparable;
@QueryType(PropertyType.DATE)
public String stringAsDate;
@QueryType(PropertyType.DATETIME)
public String stringAsDateTime;
@QueryType(PropertyType.TIME)
public String stringAsTime;
@QueryType(PropertyType.NONE)
public String stringNotInQuerydsl;
}
@Test
public void test() throws NoSuchFieldException, SecurityException {
start(QQueryTypeTest_QueryTypeEntity.class, queryTypeEntity);
match(SimplePath.class, "stringAsSimple");
match(ComparablePath.class, "stringAsComparable");
match(DatePath.class, "stringAsDate");
match(DateTimePath.class, "stringAsDateTime");
match(TimePath.class, "stringAsTime");
assertMissing("stringNotInQuerydsl");
}
}
|
[
"benjamin.danglot@inria.fr"
] |
benjamin.danglot@inria.fr
|
48f2a4fee482a4a12fd72909a03e931b9ee8314d
|
754a0fdc13c70711b33a414e48f41333a7e8052d
|
/app/src/main/java/com/pbph/yuguo/activity/WithdrawCashRecordsActivity.java
|
168e33b16da1e7afffb021be1f8ddf5fbe395d4c
|
[] |
no_license
|
lianjf646/PbphYuGuo
|
b70b3315d9815af078101573066cbc215d46945c
|
78e643cd1b0f142f96ce595fb0c5788b3e4bb09a
|
refs/heads/master
| 2023-04-23T00:48:00.842462
| 2021-04-30T06:25:12
| 2021-04-30T06:25:12
| 363,044,826
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,236
|
java
|
package com.pbph.yuguo.activity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import com.pbph.yuguo.R;
import com.pbph.yuguo.adapter.WithdrawCashRecordsViewHolder;
import com.pbph.yuguo.application.YuGuoApplication;
import com.pbph.yuguo.base.BaseActivity;
import com.pbph.yuguo.constant.ConstantData;
import com.pbph.yuguo.http.HttpAction;
import com.pbph.yuguo.myview.adapter.abslistview.DataAdapter;
import com.pbph.yuguo.myview.singlepointlistener.OnItemSPClickListener;
import com.pbph.yuguo.observer.BaseObserver;
import com.pbph.yuguo.request.GetAppWithdrawCashListResquest;
import com.pbph.yuguo.response.GetAppWithdrawCashListResponse;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.scwang.smartrefresh.layout.header.ClassicsHeader;
import java.util.List;
public class WithdrawCashRecordsActivity extends BaseActivity {
private SmartRefreshLayout refreshLayout;
private ListView listView;
private DataAdapter adapter;
private int page = 1;
View emptyView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_withdrawcashrecords);
initTitle(TITLE_STYLE_WHITE, "提现记录", true, false);
initView();
}
private void initView() {
refreshLayout = mContentView.findViewById(R.id.refreshLayout);
refreshLayout.setRefreshHeader(new ClassicsHeader(mContext));
refreshLayout.setHeaderHeight(60);
refreshLayout.setOnRefreshListener(refreshLayout -> getAppWithdrawCashList(page = 1));
refreshLayout.setOnLoadMoreListener(refreshLayout -> getAppWithdrawCashList(page));
listView = findViewById(R.id.listView);
emptyView = findViewById(R.id.view_no_datas);
emptyView.setVisibility(View.VISIBLE);
adapter = new DataAdapter(mContext, listView, WithdrawCashRecordsViewHolder.class);
listView.setOnItemClickListener(new OnItemSPClickListener() {
@Override
public void onItemClickSucc(AdapterView<?> parent, View view, int position, long id) {
// adapter.choiceHelper.putChoiceNotify(position);
}
});
getAppWithdrawCashList(page = 1);
}
@Override
public void onLeftClick() {
finish();
}
private void getAppWithdrawCashList(int now_page) {
if (page != now_page) {
return;
}
if (page == -1) {
refreshLayout.setEnableRefresh(true);
refreshLayout.setEnableLoadMore(false);
return;
}
if (page > 1) {
refreshLayout.setEnableRefresh(true);
refreshLayout.setEnableLoadMore(true);
}
HttpAction.getInstance().getAppWithdrawCashList(new GetAppWithdrawCashListResquest(YuGuoApplication.userInfo.getCustomerId(), now_page, ConstantData.PAGE_SIZE)).subscribe(new BaseObserver<>(mContext, (response -> {
refreshLayout.finishRefresh();
refreshLayout.finishLoadMore();
if (200 != response.getCode()) {
showToast(response.getMsg());
return;
}
//如果 等于零 代表第一页 要清除数据
if (page == now_page && now_page == 1) {
adapter.clearDatas();
}
List<GetAppWithdrawCashListResponse.DataBean.DealsInfoDtoListBean> list = response.getData().getDealsInfoDtoList();
if (list == null || list.isEmpty() || list.size() < ConstantData.PAGE_SIZE) {
page = -1;
refreshLayout.setEnableRefresh(true);
refreshLayout.setEnableLoadMore(false);
} else {
//加一页
page++;
refreshLayout.setEnableRefresh(true);
refreshLayout.setEnableLoadMore(true);
}
adapter.addDatas(list);
if (adapter.getCount() <= 0) {
emptyView.setVisibility(View.VISIBLE);
} else {
emptyView.setVisibility(View.GONE);
}
})));
}
}
|
[
"1548300188@qq.com"
] |
1548300188@qq.com
|
a26bdfa322c46ae03ed66923cadad6cbce75d8fe
|
b0c613bc03b8fca1b29d258a92de07e55866bb74
|
/src/main/java/ch.randelshofer.cubetwister/ch/randelshofer/debug/DesktopPropertiesTableModel.java
|
8d3f8292bc6f6f4ea0c3857d0287b535c8cc290e
|
[
"MIT"
] |
permissive
|
RakhithJK/CubeTwister
|
20663aae2521c01f5859e02c493588b47b3c7c80
|
b392b191cc83de52d1ab3e5638802156558f1aeb
|
refs/heads/master
| 2023-01-09T23:41:06.241085
| 2020-10-31T07:24:20
| 2020-10-31T07:24:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,557
|
java
|
/*
* @(#)DesktopPropertiesTableModel.java
* CubeTwister. Copyright © 2020 Werner Randelshofer, Switzerland. MIT License.
*/
package ch.randelshofer.debug;
import org.jhotdraw.annotation.Nonnull;
import javax.swing.table.AbstractTableModel;
import java.awt.Toolkit;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
/**
* DesktopPropertiesTableModel.
*
* @author Werner Randelshofer
*/
public class DesktopPropertiesTableModel extends AbstractTableModel {
private final static long serialVersionUID = 1L;
private Object[][] data;
private int rowCount;
private final static String[] columnNames = { "Key", "Value" };
private final static String[] wellKnownNames = {
"DnD.Autoscroll.initialDelay",
"DnD.Autoscroll.interval",
"DnD.Autoscroll.cursorHysteresis",
"DnD.isDragImageSupported",
"DnD.Cursor.MoveDrop",
"DnD.Cursor.LinkDrop",
"DnD.Cursor.CopyNoDrop",
"DnD.Cursor.MoveNoDrop",
"DnD.Cursor.LinkNoDrop",
"awt.multiClickInterval",
"awt.cursorBlinkRate",
};
/** Creates a new instance. */
public DesktopPropertiesTableModel() {
ArrayList<String> propNames = new ArrayList<String>();
propNames.addAll(Arrays.asList(wellKnownNames));
Toolkit toolkit = Toolkit.getDefaultToolkit();
String[] names = (String[])toolkit.getDesktopProperty("win.propNames");
if (names != null) {
propNames.addAll(Arrays.asList(names));
}
Collections.sort(propNames);
data = new Object[propNames.size()][2];
rowCount = 0;
for (Iterator<String> i=propNames.iterator(); i.hasNext(); ) {
String name = i.next();
Object value = toolkit.getDesktopProperty(name);
if (value != null) {
data[rowCount][0] = name;
data[rowCount++][1] = value;
}
}
}
public int getColumnCount() {
return columnNames.length;
}
public int getRowCount() {
return rowCount;
}
public Object getValueAt(int rowIndex, int columnIndex) {
return data[rowIndex][columnIndex];
}
@Nonnull
public Class<?> getColumnClass(int columnIndex) {
return Object.class;
}
public String getColumnName(int columnIndex) {
return columnNames[columnIndex];
}
public boolean isCellEditable(int rowIndex, int columnIndex) {
return false;
}
}
|
[
"werner.randelshofer@fibermail.ch"
] |
werner.randelshofer@fibermail.ch
|
f65f5df1be4a33ccb345d3b3a869c4200a841876
|
db22bba828ee0118f5766c3a07390cc197d2cc65
|
/20201015/src/BookList.java
|
f7bc3fcc17c0fddc7e864d40e672fc72610f5264
|
[] |
no_license
|
LHJ-123/everydat
|
4fb3318966f6bd0dcbf550074e96ec1ea425e00c
|
61e9ac2da2d86559b2a22bc8508ea639d4d41315
|
refs/heads/master
| 2022-12-23T13:56:18.976377
| 2021-03-28T01:09:52
| 2021-03-28T01:09:52
| 246,778,966
| 0
| 0
| null | 2022-12-16T00:40:11
| 2020-03-12T08:15:48
|
Java
|
UTF-8
|
Java
| false
| false
| 826
|
java
|
public class BookList {
private Book[] books = new Book[10];
private int usedSize;
public BookList() {
//this.books = new Book[10];
this.books[0] = new Book("西游记","吴承恩",12,"小说");
this.books[1] = new Book("三国演义","施耐庵",14,"小说");
this.books[2] = new Book("水浒传","罗贯中",16,"小说");
this.usedSize = 3;
}
public Book[] getBooks() {
return books;
}
public void setBooks(Book[] books) {
this.books = books;
}
public int getUsedSize() {
return usedSize;
}
public void setUsedSize(int usedSize) {
this.usedSize = usedSize;
}
public Book getBook(int i) {
return books[i];
}
public void setBook(int i,Book book) {
books[i] = book;
}
}
|
[
"15529867019@163.com"
] |
15529867019@163.com
|
0883b459114451f4630d06eb9ad42f3a01ce4b2f
|
bd1f3decd59ade0efcc8980eff6f97203311abf9
|
/src/main/java/com/areatecnica/sigf/entities/ValorRolloUnidad.java
|
805965479e545af281fa2c8689e4f38950bf304f
|
[] |
no_license
|
ianfranco/nanduapp
|
f4318755d859f57f50b94f0b67f02797a91634e6
|
330682a8666d0d30ac332caabe75eefee822f2d4
|
refs/heads/master
| 2021-03-24T12:48:03.761910
| 2018-01-08T16:58:06
| 2018-01-08T16:58:06
| 112,971,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,279
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.areatecnica.sigf.entities;
import com.areatecnica.sigf.audit.AuditListener;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author ianfr
*/
@Entity
@Table(name = "valor_rollo_unidad", catalog = "sigf_v3", schema = "")
@EntityListeners({AuditListener.class})
@XmlRootElement
@NamedQueries({
@NamedQuery(name = "ValorRolloUnidad.findAll", query = "SELECT v FROM ValorRolloUnidad v")
, @NamedQuery(name = "ValorRolloUnidad.findByValorRolloUnidadId", query = "SELECT v FROM ValorRolloUnidad v WHERE v.valorRolloUnidadId = :valorRolloUnidadId")
, @NamedQuery(name = "ValorRolloUnidad.findByValorRolloUnidadCompra", query = "SELECT v FROM ValorRolloUnidad v WHERE v.valorRolloUnidadCompra = :valorRolloUnidadCompra")
, @NamedQuery(name = "ValorRolloUnidad.findByValorRolloUnidadVenta", query = "SELECT v FROM ValorRolloUnidad v WHERE v.valorRolloUnidadVenta = :valorRolloUnidadVenta")
})
public class ValorRolloUnidad extends BaseEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Basic(optional = false)
@Column(name = "valor_rollo_unidad_id")
private Integer valorRolloUnidadId;
@Basic(optional = false)
@NotNull
@Column(name = "valor_rollo_unidad_compra")
private int valorRolloUnidadCompra;
@Basic(optional = false)
@NotNull
@Column(name = "valor_rollo_unidad_venta")
private int valorRolloUnidadVenta;
@Basic(optional = false)
@NotNull
@Column(name = "valor_rollo_unidad_interno")
private int valorRolloUnidadInterno;
@JoinColumn(name = "valor_rollo_unidad_id_unidad", referencedColumnName = "unidad_negocio_id", nullable = false)
@ManyToOne(optional = false)
private UnidadNegocio valorRolloUnidadIdUnidad;
public ValorRolloUnidad() {
}
public ValorRolloUnidad(Integer valorRolloUnidadId) {
this.valorRolloUnidadId = valorRolloUnidadId;
}
public ValorRolloUnidad(Integer valorRolloUnidadId, int valorRolloUnidadCompra, int valorRolloUnidadVenta, int valorRolloUnidadInterno) {
this.valorRolloUnidadId = valorRolloUnidadId;
this.valorRolloUnidadCompra = valorRolloUnidadCompra;
this.valorRolloUnidadVenta = valorRolloUnidadVenta;
this.valorRolloUnidadInterno = valorRolloUnidadInterno;
}
public Integer getValorRolloUnidadId() {
return valorRolloUnidadId;
}
public void setValorRolloUnidadId(Integer valorRolloUnidadId) {
this.valorRolloUnidadId = valorRolloUnidadId;
}
public int getValorRolloUnidadCompra() {
return valorRolloUnidadCompra;
}
public void setValorRolloUnidadCompra(int valorRolloUnidadCompra) {
this.valorRolloUnidadCompra = valorRolloUnidadCompra;
}
public int getValorRolloUnidadVenta() {
return valorRolloUnidadVenta;
}
public void setValorRolloUnidadVenta(int valorRolloUnidadVenta) {
this.valorRolloUnidadVenta = valorRolloUnidadVenta;
}
public int getValorRolloUnidadInterno() {
return valorRolloUnidadInterno;
}
public void setValorRolloUnidadInterno(int valorRolloUnidadInterno) {
this.valorRolloUnidadInterno = valorRolloUnidadInterno;
}
public UnidadNegocio getValorRolloUnidadIdUnidad() {
return valorRolloUnidadIdUnidad;
}
public void setValorRolloUnidadIdUnidad(UnidadNegocio valorRolloUnidadIdUnidad) {
this.valorRolloUnidadIdUnidad = valorRolloUnidadIdUnidad;
}
@Override
public int hashCode() {
int hash = 0;
hash += (valorRolloUnidadId != null ? valorRolloUnidadId.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof ValorRolloUnidad)) {
return false;
}
ValorRolloUnidad other = (ValorRolloUnidad) object;
if ((this.valorRolloUnidadId == null && other.valorRolloUnidadId != null) || (this.valorRolloUnidadId != null && !this.valorRolloUnidadId.equals(other.valorRolloUnidadId))) {
return false;
}
return true;
}
@Override
public String toString() {
return "com.areatecnica.sigf.entities.ValorRolloUnidad[ valorRolloUnidadId=" + valorRolloUnidadId + " ]";
}
}
|
[
"ianfr@DESKTOP-6NFGECR"
] |
ianfr@DESKTOP-6NFGECR
|
b540b80094ffa79a8e6443ee408b7cb9e7d3902b
|
edd0ff46d8f986c785cd820277e1846d9ad773cc
|
/androidutils/src/main/java/com/mauriciotogneri/androidutils/uibinder/annotations/OnItemClick.java
|
16f49c21c54fb6e8ae8daeeb082858aaeba604b3
|
[
"MIT"
] |
permissive
|
thanhlcm90/android-utils
|
e54fa45d83f99f55e0a686b35366b9cf84fe8305
|
ed5867c9818f8a0202be2ffcc37c510f95d1b3bb
|
refs/heads/master
| 2020-03-29T18:00:39.863467
| 2018-09-24T19:22:13
| 2018-09-24T19:22:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 384
|
java
|
package com.mauriciotogneri.androidutils.uibinder.annotations;
import androidx.annotation.IdRes;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Target(METHOD)
@Retention(RUNTIME)
public @interface OnItemClick
{
@IdRes int value();
}
|
[
"mauricio.togneri@gmail.com"
] |
mauricio.togneri@gmail.com
|
dc8ef3e6d83d364ba7b0bca4e566fbc32d8de575
|
28e60263224c399aa084f9222460d563275e3960
|
/bus-image/src/main/java/org/aoju/bus/image/galaxy/ApplicationCache.java
|
d0dc836773c98d2e851b134bd3b48825d8a06f48
|
[
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
lonpo/bus
|
b2bda2ab641c637b8a24888194548710cb2e82fa
|
4d4d4e762fa0654211ca97c62b286869b514b7d3
|
refs/heads/master
| 2022-07-15T09:40:43.298138
| 2020-05-15T04:12:59
| 2020-05-15T04:12:59
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,479
|
java
|
/*********************************************************************************
* *
* The MIT License *
* *
* Copyright (c) 2015-2020 aoju.org and other contributors. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy *
* of this software and associated documentation files (the "Software"), to deal *
* in the Software without restriction, including without limitation the rights *
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
* copies of the Software, and to permit persons to whom the Software is *
* furnished to do so, subject to the following conditions: *
* *
* The above copyright notice and this permission notice shall be included in *
* all copies or substantial portions of the Software. *
* *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
* THE SOFTWARE. *
********************************************************************************/
package org.aoju.bus.image.galaxy;
import org.aoju.bus.core.lang.exception.InstrumentException;
import org.aoju.bus.image.metric.WebApplication;
/**
* @author Kimi Liu
* @version 5.9.1
* @since JDK 1.8+
*/
public interface ApplicationCache {
int getStaleTimeout();
void setStaleTimeout(int staleTimeout);
void clear();
WebApplication get(String aet) throws InstrumentException;
WebApplication findWebApplication(String name) throws InstrumentException;
}
|
[
"839536@qq.com"
] |
839536@qq.com
|
81e07eb866d9a6cbcdf54040fc5f64bf509c5078
|
fa1408365e2e3f372aa61e7d1e5ea5afcd652199
|
/src/testcases/CWE190_Integer_Overflow/s02/CWE190_Integer_Overflow__int_getQueryString_Servlet_add_53a.java
|
fed65a16786484fc5715cffc2e91221bf646d41f
|
[] |
no_license
|
bqcuong/Juliet-Test-Case
|
31e9c89c27bf54a07b7ba547eddd029287b2e191
|
e770f1c3969be76fdba5d7760e036f9ba060957d
|
refs/heads/master
| 2020-07-17T14:51:49.610703
| 2019-09-03T16:22:58
| 2019-09-03T16:22:58
| 206,039,578
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,905
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__int_getQueryString_Servlet_add_53a.java
Label Definition File: CWE190_Integer_Overflow__int.label.xml
Template File: sources-sinks-53a.tmpl.java
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: getQueryString_Servlet Parse id param out of the URL query string (without using getParameter())
* GoodSource: A hardcoded non-zero, non-min, non-max, even number
* Sinks: add
* GoodSink: Ensure there will not be an overflow before adding 1 to data
* BadSink : Add 1 to data, which can cause an overflow
* Flow Variant: 53 Data flow: data passed as an argument from one method through two others to a fourth; all four functions are in different classes in the same package
*
* */
package testcases.CWE190_Integer_Overflow.s02;
import testcasesupport.*;
import javax.servlet.http.*;
import java.util.StringTokenizer;
import java.util.logging.Level;
public class CWE190_Integer_Overflow__int_getQueryString_Servlet_add_53a extends AbstractTestCaseServlet
{
public void bad(HttpServletRequest request, HttpServletResponse response) throws Throwable
{
int data;
data = Integer.MIN_VALUE; /* initialize data in case id is not in query string */
/* POTENTIAL FLAW: Parse id param out of the URL querystring (without using getParam) */
{
StringTokenizer tokenizer = new StringTokenizer(request.getQueryString(), "&");
while (tokenizer.hasMoreTokens())
{
String token = tokenizer.nextToken(); /* a token will be like "id=33" */
if(token.startsWith("id=")) /* check if we have the "id" parameter" */
{
try
{
data = Integer.parseInt(token.substring(3)); /* set data to the int 33 */
}
catch(NumberFormatException exceptNumberFormat)
{
IO.logger.log(Level.WARNING, "Number format exception reading id from query string", exceptNumberFormat);
}
break; /* exit while loop */
}
}
}
(new CWE190_Integer_Overflow__int_getQueryString_Servlet_add_53b()).badSink(data , request, response);
}
public void good(HttpServletRequest request, HttpServletResponse response) throws Throwable
{
goodG2B(request, response);
goodB2G(request, response);
}
/* goodG2B() - use goodsource and badsink */
private void goodG2B(HttpServletRequest request, HttpServletResponse response) throws Throwable
{
int data;
/* FIX: Use a hardcoded number that won't cause underflow, overflow, divide by zero, or loss-of-precision issues */
data = 2;
(new CWE190_Integer_Overflow__int_getQueryString_Servlet_add_53b()).goodG2BSink(data , request, response);
}
/* goodB2G() - use badsource and goodsink */
private void goodB2G(HttpServletRequest request, HttpServletResponse response) throws Throwable
{
int data;
data = Integer.MIN_VALUE; /* initialize data in case id is not in query string */
/* POTENTIAL FLAW: Parse id param out of the URL querystring (without using getParam) */
{
StringTokenizer tokenizer = new StringTokenizer(request.getQueryString(), "&");
while (tokenizer.hasMoreTokens())
{
String token = tokenizer.nextToken(); /* a token will be like "id=33" */
if(token.startsWith("id=")) /* check if we have the "id" parameter" */
{
try
{
data = Integer.parseInt(token.substring(3)); /* set data to the int 33 */
}
catch(NumberFormatException exceptNumberFormat)
{
IO.logger.log(Level.WARNING, "Number format exception reading id from query string", exceptNumberFormat);
}
break; /* exit while loop */
}
}
}
(new CWE190_Integer_Overflow__int_getQueryString_Servlet_add_53b()).goodB2GSink(data , request, response);
}
/* Below is the main(). It is only used when building this testcase on
* its own for testing or for building a binary to use in testing binary
* analysis tools. It is not used when compiling all the testcases as one
* application, which is how source code analysis tools are tested.
*/
public static void main(String[] args) throws ClassNotFoundException,
InstantiationException, IllegalAccessException
{
mainFromParent(args);
}
}
|
[
"bqcuong2212@gmail.com"
] |
bqcuong2212@gmail.com
|
9b9029f7147e3663321ad6833deca7f2abc1656f
|
fa34f10cebf7285959ce57fdb6181595d4b30f7e
|
/src/main/java/ivorius/psychedelicraft/client/rendering/RenderPassesCustom.java
|
3ddb6842aeab29328e3f674a668b17c19c1d9590
|
[] |
no_license
|
Kittycraft/Psychedelicraft
|
c4c5f8fba4fd3bd88495a8c8bfc9ea689943cad1
|
12b7352d6a3eaad422bf1d033d92289b82bf250a
|
refs/heads/master
| 2020-03-10T15:56:34.845381
| 2018-04-17T07:24:11
| 2018-04-17T07:24:11
| 129,461,715
| 0
| 1
| null | 2018-04-13T22:55:30
| 2018-04-13T22:55:30
| null |
UTF-8
|
Java
| false
| false
| 351
|
java
|
/*
* Copyright (c) 2014, Lukas Tenbrink.
* * http://lukas.axxim.net
*/
package ivorius.psychedelicraft.client.rendering;
import net.minecraft.item.ItemStack;
/**
* Created by lukas on 23.10.14.
*/
public interface RenderPassesCustom
{
boolean hasAlphaCustom(ItemStack stack, int pass);
int getRenderPassesCustom(ItemStack stack);
}
|
[
"lukastenbrink@googlemail.com"
] |
lukastenbrink@googlemail.com
|
cb8072f60b725ca63cf1afb644cf757a2a0b1a64
|
3c6f4bb030a42d19ce8c25a931138641fb6fd495
|
/finance-point/finance-point-api/src/main/java/com/hongkun/finance/point/service/PointAccountService.java
|
e838e2c87646cb35f7b636fed7dca9445920c53d
|
[] |
no_license
|
happyjianguo/finance-hkjf
|
93195df26ebb81a8b951a191e25ab6267b73aaca
|
0389a6eac966ee2e4887b6db4f99183242ba2d4e
|
refs/heads/master
| 2020-07-28T13:42:40.924633
| 2019-08-03T00:22:19
| 2019-08-03T00:22:19
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,950
|
java
|
package com.hongkun.finance.point.service;
import com.hongkun.finance.point.model.PointAccount;
import com.hongkun.finance.point.model.vo.PointVO;
import com.yirun.framework.core.model.ResponseEntity;
import com.yirun.framework.core.utils.pager.Pager;
import java.util.List;
/**
* @Project : finance
* @Program Name : com.hongkun.finance.point.service.PointAccountService.java
* @Class Name : PointAccountService.java
* @Description : GENERATOR SERVICE类
* @Author : generator
*/
public interface PointAccountService {
/**
* @Described : 单条插入
* @param pointAccount 持久化的数据对象
* @return : void
*/
void insertPointAccount(PointAccount pointAccount);
/**
* @Described : 更新数据
* @param pointAccount 要更新的数据
* @return : void
*/
int updatePointAccount(PointAccount pointAccount);
/**
* @Described : 通过id查询数据
* @param id id值
* @return PointAccount
*/
PointAccount findPointAccountById(int id);
/**
* @Described : 条件检索数据
* @param pointAccount 检索条件
* @return List<PointAccount>
*/
List<PointAccount> findPointAccountList(PointAccount pointAccount);
/**
* @Described : 条件检索数据
* @param pointAccount 检索条件
* @param start 起始页
* @param limit 检索条数
* @return List<PointAccount>
*/
List<PointAccount> findPointAccountList(PointAccount pointAccount, int start, int limit);
/**
* @Described : 条件检索数据
* @param pointAccount 检索条件
* @param pager 分页数据
* @return List<PointAccount>
*/
Pager findPointAccountList(PointVO pointAccount, Pager pager);
/**
* @Described : 统计条数
* @param pointAccount 检索条件
* @return int
*/
int findPointAccountCount(PointAccount pointAccount);
/**
* @Description : 通过userid查询积分账户
* @Method_Name : findPointAccountByRegUserId
* @param regUserId
* @return
* @return : PointAccount
* @Creation Date : 2017年8月16日 下午5:13:08
* @Author : xuhuiliu@hongkun.com.cn 劉旭輝
*/
PointAccount findPointAccountByRegUserId(int regUserId);
/**
* 根据现有的积分增加/减少积分值:防止不同数据源的并发
* @param pointAccount
*/
/**
* @Description : 根据regUserId更新积分账户
* @Method_Name : updateByRegUserId
* @return
* @Creation Date : 2018年04月03日 下午16:16:55
* @Author : pengwu@hongkun.com.cn
*/
void updateByRegUserId(PointAccount pointAccount);
/**
* @Description : 获取当前用户的积分和积分转赠利率
* @Method_Name : getUserPointAndRate
* @return
* @Creation Date : 2017年12月28日 下午17:57:55
* @Author : pengwu@hongkun.com.cn
*/
ResponseEntity getUserPointAndRate(int regUserId);
void updatePointAccountBatch(List<PointAccount> list, int count);
}
|
[
"zc.ding@foxmail.com"
] |
zc.ding@foxmail.com
|
cebb97c234c64121a8c70edbba74fc9622a9aa2c
|
fbd5f904a5d8177b075607459dcbe417b9c770b0
|
/src/by/epamtc/exercise2/service/MinValueSorting.java
|
db2a4b019f25ac1b09288e90f39232df12d21ce7
|
[] |
no_license
|
VoloshchukD/epam_task3
|
a08d2cb6117d88a483458c291cdb0f7cc2607aaf
|
748c38cf4bc7bd4a0fb0b23526f0a6c5adfe7e63
|
refs/heads/master
| 2023-04-16T11:43:30.004801
| 2021-04-29T09:13:29
| 2021-04-29T09:13:29
| 355,664,854
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 719
|
java
|
package by.epamtc.exercise2.service;
import by.epamtc.exercise2.exception.NullArrayException;
public class MinValueSorting extends Sorting {
@Override
public int[] findSortingValues(int[][] array) throws NullArrayException {
if (array == null) throw new NullArrayException("Array is not initialized");
int[] minValues = new int[array.length];
for (int i = 0; i < array.length; i++) {
int minValue = array[i][0];
for (int j = 1; j < array[i].length; j++) {
if (array[i][j] < minValue) {
minValue = array[i][j];
}
}
minValues[i] = minValue;
}
return minValues;
}
}
|
[
"voloshchukd7@gmail.com"
] |
voloshchukd7@gmail.com
|
30378d8a8cbee2328b7302874b7884dc3e22e1bd
|
d40a401eb35bce8328273661d627a57a52aa5a91
|
/src/main/java/org/cdisc/ns/odm/v130_api/ODMcomplexTypeDefinitionItemRef.java
|
c714c020f7fc243d6d4f1b7d57d25b019e12bdd1
|
[] |
no_license
|
kkrumlian/ocodm
|
2d381a6749df328c224add2bff37f18869da5cbc
|
0af11f85673759a42321b2fbea4230e065150729
|
refs/heads/master
| 2020-12-25T23:47:00.227041
| 2014-11-18T17:07:30
| 2014-11-18T17:07:32
| 26,771,030
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,317
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.11.18 at 12:05:52 PM EST
//
package org.cdisc.ns.odm.v130_api;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ODMcomplexTypeDefinition-ItemRef complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ODMcomplexTypeDefinition-ItemRef">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <group ref="{http://www.cdisc.org/ns/odm/v1.3-api}ItemRefElementExtension" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attGroup ref="{http://www.cdisc.org/ns/odm/v1.3-api}ItemRefAttributeExtension"/>
* <attGroup ref="{http://www.cdisc.org/ns/odm/v1.3-api}RefAttributeSharedDefinition"/>
* <attGroup ref="{http://www.cdisc.org/ns/odm/v1.3-api}ItemRefAttributeDefinition"/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ODMcomplexTypeDefinition-ItemRef")
public class ODMcomplexTypeDefinitionItemRef {
@XmlAttribute(name = "OrderNumber")
protected BigInteger orderNumber;
@XmlAttribute(name = "Mandatory", required = true)
protected YesOrNo mandatory;
@XmlAttribute(name = "CollectionExceptionConditionOID")
protected String collectionExceptionConditionOID;
@XmlAttribute(name = "ItemOID", required = true)
protected String itemOID;
@XmlAttribute(name = "KeySequence")
protected BigInteger keySequence;
@XmlAttribute(name = "MethodOID")
protected String methodOID;
@XmlAttribute(name = "ImputationMethodOID")
protected String imputationMethodOID;
@XmlAttribute(name = "Role")
@XmlSchemaType(name = "NMTOKENS")
protected List<String> role;
@XmlAttribute(name = "RoleCodeListOID")
protected String roleCodeListOID;
/**
* Gets the value of the orderNumber property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getOrderNumber() {
return orderNumber;
}
/**
* Sets the value of the orderNumber property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setOrderNumber(BigInteger value) {
this.orderNumber = value;
}
/**
* Gets the value of the mandatory property.
*
* @return
* possible object is
* {@link YesOrNo }
*
*/
public YesOrNo getMandatory() {
return mandatory;
}
/**
* Sets the value of the mandatory property.
*
* @param value
* allowed object is
* {@link YesOrNo }
*
*/
public void setMandatory(YesOrNo value) {
this.mandatory = value;
}
/**
* Gets the value of the collectionExceptionConditionOID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCollectionExceptionConditionOID() {
return collectionExceptionConditionOID;
}
/**
* Sets the value of the collectionExceptionConditionOID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCollectionExceptionConditionOID(String value) {
this.collectionExceptionConditionOID = value;
}
/**
* Gets the value of the itemOID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getItemOID() {
return itemOID;
}
/**
* Sets the value of the itemOID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setItemOID(String value) {
this.itemOID = value;
}
/**
* Gets the value of the keySequence property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getKeySequence() {
return keySequence;
}
/**
* Sets the value of the keySequence property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setKeySequence(BigInteger value) {
this.keySequence = value;
}
/**
* Gets the value of the methodOID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMethodOID() {
return methodOID;
}
/**
* Sets the value of the methodOID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMethodOID(String value) {
this.methodOID = value;
}
/**
* Gets the value of the imputationMethodOID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getImputationMethodOID() {
return imputationMethodOID;
}
/**
* Sets the value of the imputationMethodOID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setImputationMethodOID(String value) {
this.imputationMethodOID = value;
}
/**
* Gets the value of the role property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the role property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRole().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getRole() {
if (role == null) {
role = new ArrayList<String>();
}
return this.role;
}
/**
* Gets the value of the roleCodeListOID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRoleCodeListOID() {
return roleCodeListOID;
}
/**
* Sets the value of the roleCodeListOID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRoleCodeListOID(String value) {
this.roleCodeListOID = value;
}
}
|
[
"krikor.krumlian@gmail.com"
] |
krikor.krumlian@gmail.com
|
6e51aec7e0e7f375bb57830623649ec65a3d71e3
|
ae9ec31b443a1ad25c58ebd21b96f8ca02f5dc0c
|
/src/main/java/io/flowing/retail/simpleapp/camunda/adapter/DoPaymentAdapter.java
|
a9d606f10400d2274de694b732ea3a2ca085e8c7
|
[] |
no_license
|
ronak877/flowing-retail-camunda-intro
|
c1b5be7a8753c53115ba257e95e87c2015b97252
|
7710bee690432621dd07774c3c379e1e247a7527
|
refs/heads/master
| 2023-03-17T11:12:03.082744
| 2017-08-01T10:48:29
| 2017-08-01T10:48:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 390
|
java
|
package io.flowing.retail.simpleapp.camunda.adapter;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
public class DoPaymentAdapter implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) throws Exception {
System.out.println("Now we would do payment using a REST webservice...");
}
}
|
[
"bernd.ruecker@camunda.com"
] |
bernd.ruecker@camunda.com
|
ffa22bb130c0a2912bbfe18576e3ad12bb1f9bde
|
ea061388a30ab0fdfa79440b3baceb838c13599e
|
/desenvolvimento/backend/src/main/java/com/ramon/catchup/security/UserSS.java
|
a478de8129b22dd60b980f959ad252e366182c5f
|
[] |
no_license
|
ramoncgusmao/catchup
|
dba577ade63609e955a661da2c120ed16e98b157
|
54bbd83236047d6bf1c519a752ed9c39cad20f24
|
refs/heads/master
| 2020-12-02T18:32:17.040628
| 2020-01-09T02:52:58
| 2020-01-09T02:52:58
| 231,079,941
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,751
|
java
|
package com.ramon.catchup.security;
import java.util.Collection;
import java.util.Set;
import java.util.stream.Collectors;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import com.ramon.catchup.domain.Perfil;
public class UserSS implements UserDetails{
/**
*
*/
private static final long serialVersionUID = 1L;
private Integer id;
private String email;
private String senha;
private Collection<? extends GrantedAuthority> authorities;
public UserSS() {
// TODO Auto-generated constructor stub
}
public UserSS(Integer id, String email, String senha, Set<Perfil> perfis) {
super();
this.id = id;
this.email = email;
this.senha = senha;
this.authorities = perfis.stream().map(x -> new SimpleGrantedAuthority(x.getDescricao())).collect(Collectors.toList());
}
@Override
public Collection<? extends GrantedAuthority> getAuthorities() {
// TODO Auto-generated method stub
return authorities;
}
public Integer getId() {
return id;
}
@Override
public String getPassword() {
// TODO Auto-generated method stub
return senha;
}
@Override
public String getUsername() {
// TODO Auto-generated method stub
return email;
}
@Override
public boolean isAccountNonExpired() {
// TODO Auto-generated method stub
return true;
}
@Override
public boolean isAccountNonLocked() {
// TODO Auto-generated method stub
return true;
}
@Override
public boolean isCredentialsNonExpired() {
// TODO Auto-generated method stub
return true;
}
@Override
public boolean isEnabled() {
// TODO Auto-generated method stub
return true;
}
}
|
[
"ramoncgusmao@gmail.com"
] |
ramoncgusmao@gmail.com
|
23ada03d242a67301ccb5b02bc836db87b9ec8fb
|
779b5b6cf3a09851b27bcc59d1696581b7fa03d1
|
/Basen/src/org/pabk/basen/asn1/GeneralizedTime.java
|
8fb4fa06943279549534eb212393a1ff5afd583a
|
[] |
no_license
|
futre153/bb
|
b9709e920f48bb35346b5460b4fd8132f3fdc664
|
8256c3cb2ef0df844a12747172005a5e1d5f14c1
|
refs/heads/master
| 2020-04-05T23:11:32.651132
| 2016-09-23T12:25:43
| 2016-09-23T12:25:43
| 21,938,990
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 638
|
java
|
package org.pabk.basen.asn1;
import org.pabk.basen.ber.BERImpl;
public class GeneralizedTime extends ASN1Impl {
/**
*
*/
private static final long serialVersionUID = 1L;
public GeneralizedTime (String name, boolean optional) {
this.setName(name);
this.set_class(BERImpl.UNIVERSAL_CLASS);
this.setConstructed(BERImpl.PRIMITIVE_ENCODING);
this.setTag(BERImpl.GENERALIZED_TIME_TAG);
this.setImplicit(false);
this.setOptional(optional);
}
private GeneralizedTime() {}
@Override
public GeneralizedTime clone() {
return (GeneralizedTime) ASN1Impl.clone(new GeneralizedTime(), this);
}
}
|
[
"futre@szm.sk"
] |
futre@szm.sk
|
bba7d9e0585c8ff87e6657e8daf248fdc259112d
|
a918f562f193b92cc7c1fb5b18f552426b5ecf74
|
/trunk/java/src/com/zy/domain/feed/dao/FeedDaoImpl.java
|
df0675cfd4a90e3ff91a12ecf7929183e3dd88ca
|
[] |
no_license
|
fbion/zhiyou-svn-to-git
|
4131a6d6cae1d0d034d90ca88eb0a2d9e8eda51c
|
af99ca5d2191f122fca62c94218f970a7a43bd4a
|
refs/heads/master
| 2021-05-29T09:51:25.572917
| 2015-08-25T15:27:27
| 2015-08-25T15:27:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,858
|
java
|
package com.zy.domain.feed.dao;
import java.util.List;
import com.zy.Constants;
import com.zy.common.db.HibernateDao;
import com.zy.common.model.ZyNewsfeed;
public class FeedDaoImpl extends HibernateDao<ZyNewsfeed, Integer> implements FeedDao {
@Override
public List<ZyNewsfeed> getNewsFeed(String ids, String handles, String blockedfeeds, int pageNo, int pageSize) {
String sql1 = " or handle in ('sns.event.photo','','sns.event.create','sns.event.text','sns.event.join') and privacy = 0";
String sql2 = " or handle in ('sns.event.photo','','sns.event.create','sns.event.text','sns.event.join') and privacy = 1";
String sql3 = " or handle in ('sns.event.photo','','sns.event.create','sns.event.text','sns.event.join') and privacy = 2";
String hql = "from ZyNewsfeed where (userid in(" + ids + ") or (handle='sns.share.connection' and body in(" + ids + "))) and handle in(" + handles + ") and id not in ("+ blockedfeeds +") order by id desc ";
if(handles==null){
hql = "from ZyNewsfeed where (userid in(" + ids + ") or (handle='sns.share.connection' and body in(" + ids + "))) and id not in ("+ blockedfeeds +") order by id desc ";
}
// LogUtil.info(hql);
return this.loadByPagenation(hql, pageNo, pageSize);
}
@Override
public List<ZyNewsfeed> getNewsFeed(int userId, String handles, int pageNo, int pageSize) {
String hql = "from ZyNewsfeed where userid=? and handle in(" + handles + ") order by id desc ";
return this.loadByPagenation(hql, pageNo, pageSize, new Object[] { userId });
}
@Override
public ZyNewsfeed getNewsFeedByHandle(String handle, int userId) {
String hql = "from ZyNewsfeed where userid=? and handle= ? order by id desc ";
List<ZyNewsfeed> list = this.loadTopRows(hql, 1, new Object[] { userId, handle });
if (list.size() == 1)
return list.get(0);
return null;
}
@Override
public ZyNewsfeed getNewsFeedByHandle(String handle, String body) {
String hql = "from ZyNewsfeed where handle= ? and body =? order by id desc ";
List<ZyNewsfeed> list = this.loadTopRows(hql, 1, new Object[] {handle, body });
if (list.size() == 1)
return list.get(0);
return null;
}
/*
public List<ZyNewsfeed> getMyComment(int pageNo, int pageSize, int userId) {
String hql = "select distinct n from ZyNewsfeed n, ZyNewsfeedcomment c where (handle =? or handle =? or handle =?) and c.newsfeedid = n.id and c.userid = ? order by n.id desc ";
return this.loadByPagenation(hql, pageNo, pageSize,
new Object[] {Constants.SNS_SHARE_TEXT, Constants.SNS_SHARE_LINKURL, Constants.SNS_SHARE_DOCUMENT, userId });
}
@Override
public int getMyCommentCount(int userId) {
String hql = "select count(distinct n.id) from ZyNewsfeed n, ZyNewsfeedcomment c where (handle =? or handle =? or handle =?) and c.newsfeedid = n.id and c.userid = ?";
return this.getTotalRows(hql, new Object[] {Constants.SNS_SHARE_TEXT, Constants.SNS_SHARE_LINKURL, Constants.SNS_SHARE_DOCUMENT, userId });
}*/
@Override
public List<Integer> getNewsFeed(int userId, String handles) {
String hql = "select id from ZyNewsfeed where userid=? and handle in(" + handles + ") order by id desc ";
return this.getHibernateTemplate().find(hql, new Object[] { userId });
}
public List<Integer> getNewsFeed(String handles,String body) {
String hql = "select id from ZyNewsfeed where body = ? and handle in(" + handles + ") order by id desc ";
return this.getHibernateTemplate().find(hql, new Object[] {body});
}
/*
public boolean isExist(long remoteid,int userid,short extType) {
String hql="from ZyNewsfeed as model where model.remoteid=? and model.userid=? and (model.feedfrom=? or model.feedfrom=0)";
List<ZyNewsfeed> list = find(hql,new Object[]{remoteid,userid,extType});
return list.size()>0;
}
public List<ZyNewsfeed> getNewsFeed(int userId,String handle,String content,Date beginDate,Date endDate){
String columnName = null;
if(Constants.SNS_SHARE_TEXT.equals(handle)){
columnName = "freetext";
}else if(Constants.SNS_SHARE_LINKURL.equals(handle)){
columnName = "title";
}else{
return null;
}
String hql="from ZyNewsfeed as model where model.userid=? and model.handle=? and model."+columnName+"=? and model.created>? and model.created<?";
List<ZyNewsfeed> list = find(hql,new Object[]{userId,handle,content,beginDate,endDate});
return list;
}*/
/*
@Override
public List<ZyNewsfeed> getMyComment(int pageNo, int pageSize, int userId) {
String hql = "select distinct n from ZyNewsfeed n, ZyNewsfeedcomment c where (handle =? or handle =? or handle =?) and c.newsfeedid = n.id and c.userid = ? order by n.id desc ";
return this.loadByPagenation(hql, pageNo, pageSize,
new Object[] {Constants.SNS_SHARE_TEXT, Constants.SNS_SHARE_LINKURL, Constants.SNS_SHARE_DOCUMENT, userId });
}
@Override
public int getMyCommentCount(int userId) {
String hql = "select count(distinct n.id) from ZyNewsfeed n, ZyNewsfeedcomment c where (handle =? or handle =? or handle =?) and c.newsfeedid = n.id and c.userid = ?";
return this.getTotalRows(hql, new Object[] {Constants.SNS_SHARE_TEXT, Constants.SNS_SHARE_LINKURL, Constants.SNS_SHARE_DOCUMENT, userId });
}*/
public List<ZyNewsfeed> getNewsFeed(int userId,String handle,String body){
String hql = "from ZyNewsfeed where userid=? and handle in (?) and body = ? ";
List<ZyNewsfeed> list = this.loadTopRows(hql, 1, new Object[] { userId, handle,body });
return list;
}
public List<ZyNewsfeed> getEventNewsFeed(String ids,int pageNo,int pageSize){
String hql = "from ZyNewsfeed where referenceid in(" + ids + ") and handle in('sns.event.text') order by id desc ";
// LogUtil.info(hql);
return this.loadByPagenation(hql, pageNo, pageSize);
}
@Override
public ZyNewsfeed getFeedByReferenceId(int referenceId) {
String hql = "from ZyNewsfeed where referenceid=?";
List<ZyNewsfeed> list = this.loadTopRows(hql, 1, new Object[] {referenceId});
if (list.size() == 1)
return list.get(0);
return null;
}
public List<ZyNewsfeed> getAtNewsFeed(int atuserId,int pageNo,int pageSize){
String hql = "from ZyNewsfeed where atuserid=? order by id desc";
return this.loadByPagenation(hql, pageNo, pageSize, new Object[] { atuserId });
}
public List<ZyNewsfeed> getUnreadAtNewsFeed(int atuserId,int pageNo,int pageSize){
String hql = "from ZyNewsfeed where atuserid=? and (atread is null or atread!='Y') order by id desc";
return this.loadByPagenation(hql, pageNo, pageSize, new Object[] { atuserId });
}
public int getUnreadAtNewsFeedCnt(int atuserId){
String hql = "select count(*) from ZyNewsfeed atuserid=? and (atread is null or atread!='Y')";
return this.getTotalRows(hql, new Object[] {atuserId });
}
}
|
[
"you@example.com"
] |
you@example.com
|
4f0e4478b1e7cd0118f805b03e52fcb86b3b7f4f
|
7736a31d116285e335ffb02c395cfea084c0af95
|
/src/test/java/com/alibaba/druid/bvt/sql/postgresql/PGSelectTest12.java
|
2c2e06a9d182a4f210ec7c244eb3cb0413769c8d
|
[
"Apache-2.0"
] |
permissive
|
sshyran/druid-database-connection-monitor
|
3780eb5fd08f85a4fddf551b5713c950e732d362
|
7ab0bd6ebfab4de22f3a756892a18e99b181463a
|
refs/heads/master
| 2023-04-05T11:39:19.828894
| 2016-09-13T08:24:07
| 2016-09-13T08:24:07
| 68,096,774
| 0
| 0
|
NOASSERTION
| 2023-04-03T23:15:44
| 2016-09-13T10:00:42
|
Java
|
UTF-8
|
Java
| false
| false
| 2,913
|
java
|
/*
* Copyright 1999-2101 Alibaba Group Holding Ltd.
*
* 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.druid.bvt.sql.postgresql;
import java.util.List;
import org.junit.Assert;
import com.alibaba.druid.sql.PGTest;
import com.alibaba.druid.sql.ast.SQLStatement;
import com.alibaba.druid.sql.dialect.postgresql.parser.PGSQLStatementParser;
import com.alibaba.druid.sql.dialect.postgresql.visitor.PGSchemaStatVisitor;
public class PGSelectTest12 extends PGTest {
public void test_0() throws Exception {
String sql = "WITH regional_sales AS ("
+ " SELECT region, SUM(amount) AS total_sales"
+ " FROM orders"
+ " GROUP BY region"
+ " ), top_regions AS ("
+ " SELECT region"
+ " FROM regional_sales"
+ " WHERE total_sales > (SELECT SUM(total_sales)/10 FROM regional_sales)"
+ " )\n"
+ "SELECT region,"
+ " product,"
+ " SUM(quantity) AS product_units,"
+ " SUM(amount) AS product_sales\n"
+ "FROM orders\n"
+ "WHERE region IN (SELECT region FROM top_regions)\n"
+ "GROUP BY region, product;";
PGSQLStatementParser parser = new PGSQLStatementParser(sql);
List<SQLStatement> statementList = parser.parseStatementList();
SQLStatement statemen = statementList.get(0);
// print(statementList);
Assert.assertEquals(1, statementList.size());
PGSchemaStatVisitor visitor = new PGSchemaStatVisitor();
statemen.accept(visitor);
// System.out.println("Tables : " + visitor.getTables());
// System.out.println("fields : " + visitor.getColumns());
// System.out.println("coditions : " + visitor.getConditions());
Assert.assertEquals(4, visitor.getColumns().size());
Assert.assertEquals(1, visitor.getTables().size());
}
}
// select categoryId , offerIds from cnres.function_select_get_spt_p4p_offer_list (' 1031918 , 1031919 , 1037004 ') as
// a(categoryId numeric,offerIds character varying(4000))
// select memberId , offerIds from cnres.function_select_get_seller_hot_offer_list('\'gzyyd168\'') as a(memberId
// character varying(20),offerIds character varying(4000))
|
[
"shaojin.wensj@alibaba-inc.com"
] |
shaojin.wensj@alibaba-inc.com
|
83686e2411309cc55048e1e747f891f33b644622
|
129f58086770fc74c171e9c1edfd63b4257210f3
|
/src/testcases/CWE113_HTTP_Response_Splitting/CWE113_HTTP_Response_Splitting__Environment_setHeaderServlet_17.java
|
d302d79ea14ca5e3ae7728a954e100fb28de8335
|
[] |
no_license
|
glopezGitHub/Android23
|
1bd0b6a6c7ce3c7439a74f1e4dcef2c4c0fac4ba
|
6215d0684c4fbdc7217ccfbedfccfca69824cc5e
|
refs/heads/master
| 2023-03-07T15:14:59.447795
| 2023-02-06T13:59:49
| 2023-02-06T13:59:49
| 6,856,387
| 0
| 3
| null | 2023-02-06T18:38:17
| 2012-11-25T22:04:23
|
Java
|
UTF-8
|
Java
| false
| false
| 5,668
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE113_HTTP_Response_Splitting__Environment_setHeaderServlet_17.java
Label Definition File: CWE113_HTTP_Response_Splitting.label.xml
Template File: sources-sinks-17.tmpl.java
*/
/*
* @description
* CWE: 113 HTTP Response Splitting
* BadSource: Environment Read data from an environment variable
* GoodSource: A hardcoded string
* Sinks: setHeaderServlet
* GoodSink: URLEncode input
* BadSink : querystring to setHeader()
* Flow Variant: 17 Control flow: for loops
*
* */
package testcases.CWE113_HTTP_Response_Splitting;
import testcasesupport.*;
import javax.servlet.http.*;
import java.net.URLEncoder;
public class CWE113_HTTP_Response_Splitting__Environment_setHeaderServlet_17 extends AbstractTestCaseServlet
{
public void bad(HttpServletRequest request, HttpServletResponse response) throws Throwable
{
String data;
/* We need to have one source outside of a for loop in order
to prevent the Java compiler from generating an error because
data is uninitialized */
/* get environment variable ADD */
/* POTENTIAL FLAW: Read data from an environment variable */
data = System.getenv("ADD");
for(int for_index_i = 0; for_index_i < 0; for_index_i++)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
/* FIX: Use a hardcoded string */
data = "foo";
}
for(int for_index_j = 0; for_index_j < 1; for_index_j++)
{
if (data != null)
{
/* POTENTIAL FLAW: Input not verified before inclusion in header */
response.setHeader("Location", "/author.jsp?lang=" + data);
}
}
for(int for_index_k = 0; for_index_k < 0; for_index_k++)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
if (data != null)
{
/* FIX: use URLEncoder.encode to hex-encode non-alphanumerics */
data = URLEncoder.encode(data, "UTF-8");
response.setHeader("Location", "/author.jsp?lang=" + data);
}
}
}
/* goodG2B() - use goodsource and badsink by reversing the block outside the
for statements with the one in the first for statement */
private void goodG2B(HttpServletRequest request, HttpServletResponse response) throws Throwable
{
String data;
/* FIX: Use a hardcoded string */
data = "foo";
for(int for_index_i = 0; for_index_i < 0; for_index_i++)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
/* get environment variable ADD */
/* POTENTIAL FLAW: Read data from an environment variable */
data = System.getenv("ADD");
}
for(int for_index_j = 0; for_index_j < 1; for_index_j++)
{
if (data != null)
{
/* POTENTIAL FLAW: Input not verified before inclusion in header */
response.setHeader("Location", "/author.jsp?lang=" + data);
}
}
for(int for_index_k = 0; for_index_k < 0; for_index_k++)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
if (data != null)
{
/* FIX: use URLEncoder.encode to hex-encode non-alphanumerics */
data = URLEncoder.encode(data, "UTF-8");
response.setHeader("Location", "/author.jsp?lang=" + data);
}
}
}
/* goodB2G() - use badsource and goodsink by changing the conditions on
the second and third for statements */
private void goodB2G(HttpServletRequest request, HttpServletResponse response) throws Throwable
{
String data;
/* get environment variable ADD */
/* POTENTIAL FLAW: Read data from an environment variable */
data = System.getenv("ADD");
for(int for_index_i = 0; for_index_i < 0; for_index_i++)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
/* FIX: Use a hardcoded string */
data = "foo";
}
for(int for_index_j = 0; for_index_j < 0; for_index_j++)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
if (data != null)
{
/* POTENTIAL FLAW: Input not verified before inclusion in header */
response.setHeader("Location", "/author.jsp?lang=" + data);
}
}
for(int for_index_k = 0; for_index_k < 1; for_index_k++)
{
if (data != null)
{
/* FIX: use URLEncoder.encode to hex-encode non-alphanumerics */
data = URLEncoder.encode(data, "UTF-8");
response.setHeader("Location", "/author.jsp?lang=" + data);
}
}
}
public void good(HttpServletRequest request, HttpServletResponse response) throws Throwable
{
goodG2B(request, response);
goodB2G(request, response);
}
/* Below is the main(). It is only used when building this testcase on
its own for testing or for building a binary to use in testing binary
analysis tools. It is not used when compiling all the testcases as one
application, which is how source code analysis tools are tested. */
public static void main(String[] args) throws ClassNotFoundException,
InstantiationException, IllegalAccessException
{
mainFromParent(args);
}
}
|
[
"guillermo.pando@gmail.com"
] |
guillermo.pando@gmail.com
|
f4db0168c43ae18c90dbead5cd16b291db7c418b
|
31447899832d43eed4fe01b2d8c367bdc81b848c
|
/src/main/java/org/esupportail/publisher/security/RememberCasAuthenticationEntryPoint.java
|
9932d325aa44dd0314d1e6e1a60b13bc38a16336
|
[
"Apache-2.0"
] |
permissive
|
tolobial/esup-publisher
|
ec623ec6d924026294bbd29ef5586f1baf7b1078
|
0d23dca47a38dd2b4f6f02df5817d8011636fc15
|
refs/heads/master
| 2021-01-11T03:38:46.716454
| 2016-08-30T16:19:36
| 2016-08-30T16:19:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,778
|
java
|
package org.esupportail.publisher.security;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.jasig.cas.client.util.CommonUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.security.cas.ServiceProperties;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.AuthenticationEntryPoint;
import org.springframework.util.Assert;
import org.springframework.web.util.UrlPathHelper;
/**
* Returns a 401 error code (Unauthorized) to the client when not on login url and if not
* authenticated.
*/
public class RememberCasAuthenticationEntryPoint implements AuthenticationEntryPoint, InitializingBean {
private final Logger log = LoggerFactory.getLogger(RememberCasAuthenticationEntryPoint.class);
// ~ Instance fields
// ================================================================================================
private ServiceProperties serviceProperties;
private String casLoginUrl;
private String pathLogin;
private String targetUrlParameter = "spring-security-redirect";
/**
* Determines whether the Service URL should include the session id for the specific user. As of
* CAS 3.0.5, the session id will automatically be stripped. However, older versions of CAS
* (i.e. CAS 2), do not automatically strip the session identifier (this is a bug on the part of
* the older server implementations), so an option to disable the session encoding is provided
* for backwards compatibility.
*
* By default, encoding is enabled.
*
* @deprecated since 3.0.0 because CAS is currently on 3.3.5.
*/
@Deprecated
private boolean encodeServiceUrlWithSessionId = true;
// ~ Methods
// ========================================================================================================
public void afterPropertiesSet() throws Exception {
Assert.hasLength(this.casLoginUrl, "loginUrl must be specified");
Assert.hasLength(this.pathLogin, "pathLogin must be specified");
Assert.hasLength(this.targetUrlParameter, "targetUrlParameter must be specified");
Assert.notNull(this.serviceProperties, "serviceProperties must be specified");
Assert.notNull(this.serviceProperties.getService(), "serviceProperties.getService() cannot be null.");
}
public final void commence(final HttpServletRequest request, final HttpServletResponse response,
final AuthenticationException authenticationException) throws IOException, ServletException {
HttpServletRequest httpRequest = (HttpServletRequest) request;
/*SecurityContext securityContext = SecurityContextHolder.getContext();
Authentication authentication = securityContext.getAuthentication();
UserDetails springSecurityUser = null;
if (authentication != null) {
if (authentication.getPrincipal() instanceof UserDetails) {
springSecurityUser = (UserDetails) authentication.getPrincipal();
}
}
*/
String resourcePath = new UrlPathHelper().getPathWithinApplication(httpRequest);
log.debug("=====================================================================> RESOURCEPATH {}",
resourcePath);
boolean isPostMessage = false;
if (request.getQueryString() != null) {
isPostMessage = request.getQueryString().contains("postMessage");
};
log.debug("=====================================================================> postMessage {}", isPostMessage);
// String doCASAuth = servletRequest.getHeader("X-request-AuthCAS");
if (this.pathLogin.equals(resourcePath) /*&& isPostMessage && springSecurityUser == null*/) {
// if (doCASAuth != null) {
//if (pathLogin.equals(resourcePath)) {
final String urlEncodedService = createServiceUrl(request, response);
final String redirectUrl = createRedirectUrl(urlEncodedService);
log.debug("Pre-authenticated entry point called. Calling CAS Authentication with redirectURL {}",
redirectUrl);
preCommence(request, response);
response.sendRedirect(redirectUrl);
} else {
log.debug("Pre-authenticated entry point called. Rejecting access");
response.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Access Denied");
}
}
/**
* Constructs a new Service Url. The default implementation relies on the CAS client to do the
* bulk of the work.
*
* @param request
* the HttpServletRequest
* @param response
* the HttpServlet Response
* @return the constructed service url. CANNOT be NULL.
*/
protected String createServiceUrl(final HttpServletRequest request, final HttpServletResponse response) {
String service = this.serviceProperties.getService();
String uri = request.getRequestURI() + (request.getQueryString() != null ? "?" + request.getQueryString() : "");
String servletPath = request.getServletPath();
if (uri != null && !uri.isEmpty()) {
service += String.format("?%s=%s", this.targetUrlParameter, uri);
}
log.debug("serviceURL = {}", service);
return CommonUtils.constructServiceUrl(null, response, service, null,
this.serviceProperties.getArtifactParameter(), this.encodeServiceUrlWithSessionId);
}
/**
* Constructs the Url for Redirection to the CAS server. Default implementation relies on the
* CAS client to do the bulk of the work.
*
* @param serviceUrl
* the service url that should be included.
* @return the redirect url. CANNOT be NULL.
*/
protected String createRedirectUrl(final String serviceUrl) {
return CommonUtils.constructRedirectUrl(this.casLoginUrl, this.serviceProperties.getServiceParameter(),
serviceUrl, this.serviceProperties.isSendRenew(), false);
}
/**
* Template method for you to do your own pre-processing before the redirect occurs.
*
* @param request
* the HttpServletRequest
* @param response
* the HttpServletResponse
*/
protected void preCommence(final HttpServletRequest request, final HttpServletResponse response) {
}
/**
* The enterprise-wide CAS login URL. Usually something like
* <code>https://www.mycompany.com/cas/login</code>.
*
* @return the enterprise-wide CAS login URL
*/
public final String getLoginUrl() {
return this.casLoginUrl;
}
public final ServiceProperties getServiceProperties() {
return this.serviceProperties;
}
public final void setLoginUrl(final String loginUrl) {
this.casLoginUrl = loginUrl;
}
public final void setServiceProperties(final ServiceProperties serviceProperties) {
this.serviceProperties = serviceProperties;
}
public void setPathLogin(String pathLogin) {
this.pathLogin = pathLogin;
}
}
|
[
"julien.gribonvald@gmail.com"
] |
julien.gribonvald@gmail.com
|
8404cc173efa676ca1a465fd649a83656594a15c
|
1c99931e81886ebecb758d68003f22e072951ff9
|
/alipay/api/response/AlipayEbppPdeductSignQueryResponse.java
|
dd434946600c7d132e14a277f11ad4220b07cfbf
|
[] |
no_license
|
futurelive/vscode
|
f402e497933c12826ef73abb14506aab3c541c98
|
9f8d1da984cf4f9f330af2b75ddb21a7fff00eb9
|
refs/heads/master
| 2020-04-08T06:30:13.208537
| 2018-11-26T07:09:55
| 2018-11-26T07:09:55
| 159,099,314
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,731
|
java
|
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.ebpp.pdeduct.sign.query response.
*
* @author auto create
* @since 1.0, 2018-01-02 20:27:24
*/
public class AlipayEbppPdeductSignQueryResponse extends AlipayResponse {
private static final long serialVersionUID = 3373691794263528193L;
/**
* 协议ID
*/
@ApiField("agreement_id")
private String agreementId;
/**
* 户号
*/
@ApiField("bill_key")
private String billKey;
/**
* 出账机构
*/
@ApiField("charge_inst")
private String chargeInst;
/**
* 朗新协议ID
*/
@ApiField("out_agreement_id")
private String outAgreementId;
/**
* 签约时间
*/
@ApiField("sign_date")
private String signDate;
/**
* 用户ID
*/
@ApiField("user_id")
private String userId;
public void setAgreementId(String agreementId) {
this.agreementId = agreementId;
}
public String getAgreementId( ) {
return this.agreementId;
}
public void setBillKey(String billKey) {
this.billKey = billKey;
}
public String getBillKey( ) {
return this.billKey;
}
public void setChargeInst(String chargeInst) {
this.chargeInst = chargeInst;
}
public String getChargeInst( ) {
return this.chargeInst;
}
public void setOutAgreementId(String outAgreementId) {
this.outAgreementId = outAgreementId;
}
public String getOutAgreementId( ) {
return this.outAgreementId;
}
public void setSignDate(String signDate) {
this.signDate = signDate;
}
public String getSignDate( ) {
return this.signDate;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getUserId( ) {
return this.userId;
}
}
|
[
"1052418627@qq.com"
] |
1052418627@qq.com
|
4ca001de0dc8b44f4d997b5bf3ff153d139be75c
|
54ba3e2871e4b1640202e362b23882336d6dd975
|
/src/main/java/org/nutz/weixin/bean/sns/resp/Jscode2sessionResp.java
|
781aafd008acf0e3a98f19b296a5e41b824bd8e1
|
[
"Apache-2.0"
] |
permissive
|
howe/weixin-lite
|
c285affac7b327d57f68b72982a87083bd6d64d6
|
5487fcc6400a9dfe89f1b625c8d33d6c434627ea
|
refs/heads/master
| 2021-04-26T23:45:29.478694
| 2020-04-14T08:01:06
| 2020-04-14T08:01:06
| 123,849,478
| 0
| 0
|
Apache-2.0
| 2020-10-12T21:47:38
| 2018-03-05T01:49:42
|
Java
|
UTF-8
|
Java
| false
| false
| 848
|
java
|
package org.nutz.weixin.bean.sns.resp;
/**
* Created by Jianghao on 2018/3/15
*
* @howechiang
*/
public class Jscode2sessionResp extends BaseResp {
/**
* 用户唯一标识
*/
private String openid;
public String getOpenid() {
return openid;
}
public void setOpenid(String openid) {
this.openid = openid;
}
/**
* 会话密钥
*/
private String session_key;
public String getSession_key() {
return session_key;
}
public void setSession_key(String session_key) {
this.session_key = session_key;
}
/**
* 用户在开放平台的唯一标识符
*/
private String unionid;
public String getUnionid() {
return unionid;
}
public void setUnionid(String unionid) {
this.unionid = unionid;
}
}
|
[
"howechiang@gmail.com"
] |
howechiang@gmail.com
|
5c8498aba1d0667a694759fd8aed1a5a8ca60ab9
|
fee80e730c0a9d2ede2721d4441970bafaaaa646
|
/src/org/ace/insurance/medical/claim/service/interfaces/IClaimInitialReportService.java
|
d6cb4e9f460f7c1529fab24b0c76811ef1228a68
|
[] |
no_license
|
LifeTeam-TAT/GGLI-Core
|
242360ba9a6dd7cb3841fa495f9124a327df8450
|
d000f3068b863a581775f5cd7b78b2bfd06b378f
|
refs/heads/master
| 2023-03-29T06:26:44.456523
| 2021-04-02T15:03:18
| 2021-04-02T15:03:18
| 354,049,682
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 818
|
java
|
package org.ace.insurance.medical.claim.service.interfaces;
import java.util.List;
import org.ace.insurance.medical.claim.ClaimInitialReport;
import org.ace.insurance.medical.claim.ClaimStatus;
import org.ace.insurance.medical.claim.MedicalClaimCriteria;
public interface IClaimInitialReportService {
public void addNewClaimInitialReport(ClaimInitialReport claimInitialReport);
public void updateClaimInitialReport(ClaimInitialReport claimInitialReport);
public List<ClaimInitialReport> findAllClaimInitialReport();
public List<ClaimInitialReport> findAllActiveClaim();
public ClaimInitialReport findByPolicyInsuredPersonId(String id);
public void updateByInsuredPerson(String id, ClaimStatus claimStatus);
public List<ClaimInitialReport> findActiveClaimByCriteria(MedicalClaimCriteria criteria);
}
|
[
"lifeteam.tat@gmail.com"
] |
lifeteam.tat@gmail.com
|
b0f43959e158ca91057220681e752923b29528c5
|
dc93ad9eeddd985c5372b55f893ee32c2a9d3ec5
|
/java web/spring MVC/springBoot/src/main/java/com/ostream/springBoot/chapter3/taskscheduler/test.java
|
c11d7479fbcd0904eb724ad80252e3e6a716f205
|
[] |
no_license
|
ostreamBaba/ostreamBaba
|
812132063b2cce88aaab40963c5b749e963815d4
|
a82091e647181c5dd74230fe6b39aa2a6df13243
|
refs/heads/master
| 2021-07-06T01:32:44.666397
| 2018-10-29T14:44:00
| 2018-10-29T14:44:00
| 129,739,656
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 413
|
java
|
package com.ostream.springBoot.chapter3.taskscheduler;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
/**
* @Create by ostreamBaba on 18-4-9
* @描述
*/
public class test {
public static void main(String[] args) {
AnnotationConfigApplicationContext annotationConfigApplicationContext=new AnnotationConfigApplicationContext(TaskSchedulerConfig.class);
}
}
|
[
"1160832305@qq.com"
] |
1160832305@qq.com
|
c09ffc7c0123d883292e55a82f4c41da08a5f85e
|
500c20cfdd99980a49d857043fca8e71c30e1f6b
|
/javatests/dagger/functional/producers/GenericComponent.java
|
775ac2a6548192fef0523dd06206c2030b39e9a1
|
[
"Apache-2.0"
] |
permissive
|
google/dagger
|
47e51919477260b2036d68f779a989593e28e1b5
|
b90b416e7136b6e0ca9ff6e378c171a3acd3acae
|
refs/heads/master
| 2023-08-29T12:28:41.569334
| 2023-08-29T03:00:03
| 2023-08-29T03:02:29
| 7,968,417
| 18,408
| 2,684
|
Apache-2.0
| 2023-09-13T21:01:18
| 2013-02-01T23:14:14
|
Java
|
UTF-8
|
Java
| false
| false
| 1,439
|
java
|
/*
* Copyright (C) 2017 The Dagger 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 dagger.functional.producers;
import com.google.common.util.concurrent.ListenableFuture;
import dagger.functional.producers.GenericComponent.NongenericModule;
import dagger.producers.ProducerModule;
import dagger.producers.Produces;
import dagger.producers.ProductionComponent;
import java.util.Arrays;
import java.util.List;
@ProductionComponent(modules = {ExecutorModule.class, NongenericModule.class})
interface GenericComponent {
ListenableFuture<List<String>> list(); // b/71595104
// b/71595104
@ProducerModule
abstract class GenericModule<T> {
@Produces
List<T> list(T t, String string) {
return Arrays.asList(t);
}
}
// b/71595104
@ProducerModule
class NongenericModule extends GenericModule<String> {
@Produces
static String string() {
return "string";
}
}
}
|
[
"shapiro.rd@gmail.com"
] |
shapiro.rd@gmail.com
|
878644caf6b2163a6f9024db5589fe2bdbeae776
|
00e1e0709c471385b807b25ae5da0715f069136d
|
/center/src/com/chuangyou/xianni/retask/behavior/init/ZeroInitBehavior.java
|
0088fdeb9f9264eedbf527755b3e514eccd2e67b
|
[] |
no_license
|
hw233/app2-java
|
44504896d13a5b63e3d95343c62424495386b7f1
|
f4b5217a4980b0ff81f81577c348a6e71593a185
|
refs/heads/master
| 2020-04-27T11:23:44.089556
| 2016-11-18T01:33:52
| 2016-11-18T01:33:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 766
|
java
|
package com.chuangyou.xianni.retask.behavior.init;
import com.chuangyou.xianni.player.GamePlayer;
import com.chuangyou.xianni.retask.iinterface.ITask;
import com.chuangyou.xianni.retask.iinterface.ITaskInitBehavior;
/**
* 0进度初始化形为处理器
* @author laofan
*
*/
public class ZeroInitBehavior implements ITaskInitBehavior {
@SuppressWarnings("unused")
private final GamePlayer player;
private final ITask task;
public ZeroInitBehavior(GamePlayer player, ITask task) {
super();
this.player = player;
this.task = task;
}
@Override
public ITask getTask() {
// TODO Auto-generated method stub
return task;
}
@Override
public void initTask() {
// TODO Auto-generated method stub
task.getTaskInfo().setProcess(0);
}
}
|
[
"you@example.com"
] |
you@example.com
|
a992bc31328ad48c907a522ff27d026d01b958b5
|
038ee6b20cae51169a2ed4ed64a7b8e99b5cbaad
|
/schemaOrgDomaConv/src/org/kyojo/schemaorg/m3n4/doma/core/container/TransFatContentConverter.java
|
90f6a918ad9cb2ab960ce04120fce2e65a70e885
|
[
"Apache-2.0"
] |
permissive
|
nagaikenshin/schemaOrg
|
3dec1626781913930da5585884e3484e0b525aea
|
4c9d6d098a2741c2dc2a814f1c708ee55c36e9a8
|
refs/heads/master
| 2021-06-25T04:52:49.995840
| 2019-05-12T06:22:37
| 2019-05-12T06:22:37
| 134,319,974
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 604
|
java
|
package org.kyojo.schemaorg.m3n4.doma.core.container;
import org.seasar.doma.ExternalDomain;
import org.seasar.doma.jdbc.domain.DomainConverter;
import org.kyojo.schemaorg.m3n4.core.impl.TRANS_FAT_CONTENT;
import org.kyojo.schemaorg.m3n4.core.Container.TransFatContent;
@ExternalDomain
public class TransFatContentConverter implements DomainConverter<TransFatContent, String> {
@Override
public String fromDomainToValue(TransFatContent domain) {
return domain.getNativeValue();
}
@Override
public TransFatContent fromValueToDomain(String value) {
return new TRANS_FAT_CONTENT(value);
}
}
|
[
"nagai@nagaikenshin.com"
] |
nagai@nagaikenshin.com
|
7d79f2427faa9f94ebb577a6e74b7f082f51f264
|
a49524a77f9f64dfa5729c334624068c24776035
|
/base/src/main/java/vproxybase/dhcp/DHCPOption.java
|
a652aa5071ffa0b09305018642b740a7e9ee5b43
|
[
"LicenseRef-scancode-free-unknown",
"MIT"
] |
permissive
|
nintha/vproxy
|
d517e880f97a7852664554033493617548ae9774
|
5ff73aefe4637fcf28754c10b4f53096f97095cd
|
refs/heads/dev
| 2023-06-18T22:22:01.280546
| 2021-02-15T16:20:35
| 2021-02-16T06:22:40
| 322,193,763
| 0
| 0
|
MIT
| 2021-02-09T11:14:48
| 2020-12-17T05:44:51
|
Java
|
UTF-8
|
Java
| false
| false
| 1,222
|
java
|
package vproxybase.dhcp;
import vproxybase.util.ByteArray;
public class DHCPOption {
public byte type;
public int len;
protected ByteArray content;
public ByteArray serialize() {
if (content == null) {
content = ByteArray.allocate(len);
}
return ByteArray.allocate(2)
.set(0, type).set(1, (byte) len)
.concat(content);
}
public int deserialize(ByteArray arr) throws Exception {
if (arr.length() < 1) {
throw new Exception("input too short for dhcp option: cannot read type");
}
type = arr.get(0);
if (arr.length() < 2) {
throw new Exception("input too short for dhcp option: cannot read len");
}
len = arr.uint8(1);
if (arr.length() < 2 + len) {
throw new Exception("input too short for dhcp option content: requiring" + len);
}
content = arr.sub(2, len);
return 2 + len;
}
@Override
public String toString() {
return "DHCPOption{" +
"type=" + type +
", len=" + len +
", content=" + (content == null ? "null" : content.toHexString()) +
'}';
}
}
|
[
"wkgcass@hotmail.com"
] |
wkgcass@hotmail.com
|
5e1d3e98425ac5ff04d27cdbdcd2cfd9ab70b59c
|
7c377882e4789809de9a72dd54c2b0581c418474
|
/roncoo-education-system/roncoo-education-system-service/src/main/java/com/roncoo/education/system/service/biz/ApiSysMenuBiz.java
|
c4760b132b54dd36e4c438bc4aed088333fa5de2
|
[
"MIT"
] |
permissive
|
husend/roncoo-education
|
bcc06f177f0d369507de19e342855fb1248ffcd4
|
8a5ecc3a61bf8c5c0cfc641b4dc76532f77f23e4
|
refs/heads/master
| 2022-09-10T14:11:16.542139
| 2019-11-07T10:27:14
| 2019-11-07T10:27:14
| 220,208,745
| 0
| 0
|
MIT
| 2022-06-17T02:37:16
| 2019-11-07T10:19:18
|
Java
|
UTF-8
|
Java
| false
| false
| 189
|
java
|
package com.roncoo.education.system.service.biz;
import org.springframework.stereotype.Component;
/**
* 菜单信息
*
* @author wujing
*/
@Component
public class ApiSysMenuBiz {
}
|
[
"1175674846@qq.com"
] |
1175674846@qq.com
|
2a2e248bcaebd831cf2ae84f9b450bdb97ee08e4
|
f950cc198afda2e489a70ef46702532aca00f2b7
|
/SearchInterface.java
|
03ec86f642f3662bdc9f59d9efd43bdf3a763d11
|
[] |
no_license
|
lamaaa/Device-Management-System
|
0b4d371ef4e91ca96cce2478f9a75fec9bd990f2
|
e438b31252b235690733c7546290c94d7db18768
|
refs/heads/master
| 2021-01-01T05:11:37.605128
| 2016-04-27T03:29:27
| 2016-04-27T03:29:27
| 57,178,457
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,919
|
java
|
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class SearchInterface extends JFrame
{
private String[] choiceLabel = { "根据设备编号查找", "根据设备名称查找" };
private String[] InputLabel = { "请输入设备编号", "请输入设备名称" };
private SearchInputPanel searchInputPanel = new SearchInputPanel();
private SearchButton searchButton = new SearchButton();
private JComboBox jcbo = new JComboBox( choiceLabel );
public SearchInterface()
{
setLayout( new BorderLayout( 5, 15 ) );
setTitle( "查找设备" );
setSize( 320, 150 );
setLocationRelativeTo( null );
add( jcbo, BorderLayout.NORTH );
add( searchInputPanel, BorderLayout.CENTER );
add( searchButton, BorderLayout.SOUTH );
setDisplay( 0 );
jcbo.addItemListener(
new ItemListener()
{
public void itemStateChanged( ItemEvent e )
{
setDisplay( jcbo.getSelectedIndex() );
}
}
);
}
public JComboBox getJcbo()
{
return jcbo;
}
public SearchInputPanel getSearchInputPanel()
{
return searchInputPanel;
}
public SearchButton getSearchButton()
{
return searchButton;
}
public void setDisplay( int index )
{
searchInputPanel.getJlbl().setText( InputLabel[index] );
}
}
class SearchInputPanel extends JPanel
{
private JLabel jlbl = new JLabel();
private JTextField jtf = new JTextField( 15 );
public SearchInputPanel()
{
add( jlbl );
add( jtf );
}
public JTextField getJtf()
{
return jtf;
}
public JLabel getJlbl()
{
return jlbl;
}
}
class SearchButton extends JPanel
{
private JButton jbtOK = new JButton( "确定" );
private JButton jbtCancel = new JButton( "取消" );
public SearchButton()
{
setLayout( new FlowLayout( FlowLayout.RIGHT ) );
add( jbtOK );
add( jbtCancel );
}
public JButton getJbtOK()
{
return jbtOK;
}
public JButton getJbtCancel()
{
return jbtCancel;
}
}
|
[
"you@example.com"
] |
you@example.com
|
62f971f1499ff6e2a2df4a9610fd2177dff29109
|
42a2454fc1b336fd7e00c3583f379f03516d50e0
|
/platform/external-system-api/src/com/intellij/openapi/externalSystem/util/IntegrationKey.java
|
ca009c4fbda5cf2cd0557285f304a03d4f7a3983
|
[
"Apache-2.0"
] |
permissive
|
meanmail/intellij-community
|
f65893f148b2913b18ec4787a82567c8b41c2e2b
|
edeb845e7c483d852d807eb0015d28ee8a813f87
|
refs/heads/master
| 2021-01-11T02:53:33.903981
| 2019-03-01T18:42:10
| 2019-03-01T18:42:10
| 70,822,840
| 1
| 1
|
Apache-2.0
| 2019-03-01T18:42:11
| 2016-10-13T15:49:45
|
Java
|
UTF-8
|
Java
| false
| false
| 3,324
|
java
|
/*
* Copyright 2000-2013 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.intellij.openapi.externalSystem.util;
import com.intellij.openapi.externalSystem.model.ProjectSystemId;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;
/**
* Unique key which encapsulates information about target ide and external projects.
* <p/>
* Thread-safe.
*
* @author Denis Zhdanov
*/
public class IntegrationKey {
@NotNull private final String myIdeProjectName;
@NotNull private final String myIdeProjectLocationHash;
@NotNull private final ProjectSystemId myExternalSystemId;
@NotNull private final String myExternalProjectConfigPath;
public IntegrationKey(@NotNull Project ideProject, @NotNull ProjectSystemId externalSystemId, @NotNull String externalProjectConfigPath) {
this(ideProject.getName(), ideProject.getLocationHash(), externalSystemId, externalProjectConfigPath);
}
public IntegrationKey(@NotNull String ideProjectName,
@NotNull String ideProjectLocationHash,
@NotNull ProjectSystemId externalSystemId,
@NotNull String externalProjectConfigPath)
{
myIdeProjectName = ideProjectName;
myIdeProjectLocationHash = ideProjectLocationHash;
myExternalSystemId = externalSystemId;
myExternalProjectConfigPath = externalProjectConfigPath;
}
@NotNull
public String getIdeProjectName() {
return myIdeProjectName;
}
@NotNull
public String getIdeProjectLocationHash() {
return myIdeProjectLocationHash;
}
@NotNull
public ProjectSystemId getExternalSystemId() {
return myExternalSystemId;
}
@NotNull
public String getExternalProjectConfigPath() {
return myExternalProjectConfigPath;
}
@Override
public int hashCode() {
int result = myIdeProjectName.hashCode();
result = 31 * result + myIdeProjectLocationHash.hashCode();
result = 31 * result + myExternalSystemId.hashCode();
result = 31 * result + myExternalProjectConfigPath.hashCode();
return result;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
IntegrationKey key = (IntegrationKey)o;
if (!myExternalSystemId.equals(key.myExternalSystemId)) return false;
if (!myIdeProjectLocationHash.equals(key.myIdeProjectLocationHash)) return false;
if (!myIdeProjectName.equals(key.myIdeProjectName)) return false;
if (!myExternalProjectConfigPath.equals(key.myExternalProjectConfigPath)) return false;
return true;
}
@Override
public String toString() {
return String.format("%s project '%s'", myExternalSystemId.toString().toLowerCase(), myIdeProjectName);
}
}
|
[
"Denis.Zhdanov@jetbrains.com"
] |
Denis.Zhdanov@jetbrains.com
|
9320bb6acb4f0ff912fdfcaf13fb34d399ccb319
|
6404ac646e701b0039b3dec3abb023d3058da573
|
/JAVA programs/cPHP/PrimernoControlno2/Secretary_cphp/src/upr15secretary/Docslib.java
|
d2b89efc3aac901c826b864a4c8ac48f3f388044
|
[] |
no_license
|
YovoManolov/GithubRepJava
|
0b6ffa5234bcca3dec1ac78f491b1d96882420e8
|
307f11e11d384ae0dbf7b2634210656be539d92f
|
refs/heads/master
| 2023-01-09T23:26:01.806341
| 2021-03-28T13:41:36
| 2021-03-28T13:41:36
| 85,554,350
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 425
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package upr15secretary;
/**
*
* @author yovo
*/
public class Docslib {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
}
}
|
[
"yovo.manolov@abv.bg"
] |
yovo.manolov@abv.bg
|
2f155bfb3e8bed78c95ce5128de5b6bb017d0a25
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/5/5_5cf77d6493c384d634235316c0628c58bc96dd75/Permission/5_5cf77d6493c384d634235316c0628c58bc96dd75_Permission_t.java
|
496490bd79180da8cc60b97157e4e7ec7188bca5
|
[] |
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,316
|
java
|
package com.dsh105.sparktrail.util;
import com.dsh105.sparktrail.trail.EffectHolder;
import com.dsh105.sparktrail.trail.ParticleType;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public enum Permission {
UPDATE("sparktrail.update"),
TRAIL("sparktrail.trail"),
RELOAD("sparktrail.trail.reload"),
PLAYER_TRAIL("sparktrail.player.trail"),
PLAYER_INFO("sparktrail.trail.player.info"),
PLAYER_START("sparktrail.trail.player.start"),
PLAYER_STOP("sparktrail.trail.player.stop"),
PLAYER_CLEAR("sparktrail.trail.player.clear"),
PLAYER_LIST("sparktrail.trail.player.list"),
LOC_TRAIL("sparktrail.trail.location"),
LOC_START("sparktrail.trail.location.start"),
LOC_STOP("sparktrail.trail.location.stop"),
LOC_STOP_ALL("sparktrail.trail.location.stop.all"),
LOC_CLEAR("sparktrail.trail.location.clear"),
LOC_LIST("sparktrail.trail.location.list"),
MOB_TRAIL("sparktrail.trail.mob"),
MOB_START("sparktrail.trail.mob.start"),
MOB_STOP("sparktrail.trail.mob.stop"),
MOB_CLEAR("sparktrail.trail.mob.clear"),
MOB_LIST("sparktrail.trail.mob.list"),
SOUND("sparktrail.trail.sound"),
TIMEOUT("sparktrail.trail.timeout"),
CLEAR("sparktrail.trail.clear"),
STOP("sparktrail.trail.stop"),
START("sparktrail.trail.start"),
DEMO("sparktrail.trail.demo"),
INFO("sparktrail.trail.info"),;
String perm;
Permission(String perm) {
this.perm = perm;
}
public boolean hasPerm(CommandSender sender, boolean sendMessage, boolean allowConsole) {
if (sender instanceof Player) {
return hasPerm(((Player) sender), sendMessage);
} else {
if (!allowConsole && sendMessage) {
Lang.sendTo(sender, Lang.IN_GAME_ONLY.toString());
}
return allowConsole;
}
}
public boolean hasPerm(Player player, boolean sendMessage) {
if (player.hasPermission(this.perm)) {
return true;
}
if (sendMessage) {
Lang.sendTo(player, Lang.NO_PERMISSION.toString().replace("%perm%", this.perm));
}
return false;
}
public static boolean hasEffectPerm(Player player, boolean sendMessage, String perm) {
if (player.hasPermission(perm)) {
return true;
}
if (sendMessage) {
Lang.sendTo(player, Lang.NO_PERMISSION.toString().replace("%perm%", perm));
}
return false;
}
public static boolean hasEffectPerm(Player player, boolean sendMessage, ParticleType particleType, String effectType) {
String perm = "sparktrail.trail" + effectType == null ? "" : ("." + effectType.toLowerCase()) + ".type." + particleType.toString().toLowerCase();
return hasEffectPerm(player, sendMessage, perm);
}
public static boolean hasEffectPerm(Player player, boolean sendMessage, ParticleType particleType, String data, String effectType) {
String perm = "sparktrail.trail" + effectType == null ? "" : ("." + effectType.toString().toLowerCase()) + ".type." + particleType.toString().toLowerCase();
return hasEffectPerm(player, sendMessage, perm + "." + data);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
ace57c2023c51b79155484472d42e44677821acb
|
c688ef041d2b655d259f5d3f6964e1db70fa5ca8
|
/hasor-rsf/src/main/java/net/hasor/rsf/RsfClient.java
|
3b6aaebe67d5d4775f10f5b3e5ea91282f0528e0
|
[
"Apache-2.0"
] |
permissive
|
huangcheng1977/hasor
|
e236157d8c1790a4ea5204790342e6cd9bf6da3c
|
42e71beb65e29cf1a39c34332e2d11879c89f6cb
|
refs/heads/master
| 2021-05-08T03:28:08.448460
| 2017-10-17T12:47:51
| 2017-10-17T12:47:51
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,426
|
java
|
/*
* Copyright 2008-2009 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 net.hasor.rsf;
import net.hasor.utils.future.FutureCallback;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;
/**
* RSF调用者。
* @version : 2014年11月18日
* @author 赵永春(zyc@hasor.net)
*/
public interface RsfClient {
/**
* 根据服务ID,获取远程服务对象
* @param serviceID 服务ID
* @return 返回远程服务对象。
*/
public <T> T getRemoteByID(String serviceID);
/**
* 获取远程服务对象。
* @param group 分组
* @param name 服务名
* @param version 版本
* @return 返回远程服务对象。
*/
public <T> T getRemote(String group, String name, String version);
/**
* 获取远程服务对象
* @param bindInfo rsf服务注册信息。
* @return 返回远程服务对象。
*/
public <T> T getRemote(RsfBindInfo<T> bindInfo);
/**
* 将服务包装为另外一个接口然后返回。
* @param serviceID 服务ID
* @param interFace 要装成为的接口
* @return 返回包装之后的服务接口。
*/
public <T> T wrapperByID(String serviceID, Class<T> interFace);
/**
* 将服务包装为另外一个接口。
* @param interFace 服务接口类型
* @return 返回包装之后的服务接口。
*/
public <T> T wrapper(Class<T> interFace);
/**
* 将服务包装为另外一个接口。
* @param group 分组
* @param name 服务名
* @param version 版本
* @param interFace 服务接口类型
* @return 返回包装之后的服务接口。
*/
public <T> T wrapper(String group, String name, String version, Class<T> interFace);
/**
* 将服务包装为另外一个接口。
* @param bindInfo rsf服务注册信息。
* @param interFace 服务接口类型
* @return 返回包装之后的服务接口。
*/
public <T> T wrapper(RsfBindInfo<?> bindInfo, Class<T> interFace);
//
/**
* 同步方式调用远程服务。
* @param bindInfo 远程服务信息
* @param methodName 远程方法名
* @param parameterTypes 参数类型
* @param parameterObjects 参数值
* @return 返回执行结果
* @throws Throwable 同步执行期间遇到的错误。
*/
public Object syncInvoke(RsfBindInfo<?> bindInfo, String methodName, Class<?>[] parameterTypes, Object[] parameterObjects) throws InterruptedException, ExecutionException, TimeoutException;
/**
* 异步方式调用远程服务。
* @param bindInfo 远程服务信息
* @param methodName 远程方法名
* @param parameterTypes 参数类型
* @param parameterObjects 参数值
* @return 返回异步执行结果
*/
public RsfFuture asyncInvoke(RsfBindInfo<?> bindInfo, String methodName, Class<?>[] parameterTypes, Object[] parameterObjects);
/**
* 以回调方式调用远程服务。
* @param bindInfo 远程服务信息
* @param methodName 远程方法名
* @param parameterTypes 参数类型
* @param parameterObjects 参数值
* @param listener 回调监听器。
*/
public void callBackInvoke(RsfBindInfo<?> bindInfo, String methodName, Class<?>[] parameterTypes, Object[] parameterObjects, FutureCallback<Object> listener);
/**
* 以回调方式发送RSF调用请求。
* @param bindInfo 远程服务信息
* @param methodName 远程方法名
* @param parameterTypes 参数类型
* @param parameterObjects 参数值
* @param listener 回调监听器。
*/
public void callBackRequest(RsfBindInfo<?> bindInfo, String methodName, Class<?>[] parameterTypes, Object[] parameterObjects, FutureCallback<RsfResponse> listener);
}
|
[
"zyc@hasor.net"
] |
zyc@hasor.net
|
45ef9a9d4642edc74b75373e669c8937f84aeba2
|
6494431bcd79c7de8e465481c7fc0914b5ef89d5
|
/src/main/java/com/coinbase/android/signin/DeviceVerifyRouter.java
|
ea14fb3fa74cfcdc79043720308777f189dc8649
|
[] |
no_license
|
maisamali/coinbase_decompile
|
97975a22962e7c8623bdec5c201e015d7f2c911d
|
8cb94962be91a7734a2182cc625efc64feae21bf
|
refs/heads/master
| 2020-06-04T07:10:24.589247
| 2018-07-18T05:11:02
| 2018-07-18T05:11:02
| 191,918,070
| 2
| 0
| null | 2019-06-14T09:45:43
| 2019-06-14T09:45:43
| null |
UTF-8
|
Java
| false
| false
| 475
|
java
|
package com.coinbase.android.signin;
import com.coinbase.android.ControllerScope;
import com.coinbase.android.ui.ActionBarController;
import javax.inject.Inject;
@ControllerScope
public class DeviceVerifyRouter {
private final ActionBarController mController;
@Inject
public DeviceVerifyRouter(ActionBarController controller) {
this.mController = controller;
}
void routeToFailure() {
this.mController.getRouter().popToRoot();
}
}
|
[
"gulincheng@droi.com"
] |
gulincheng@droi.com
|
71d4dca41893895403f9bd8f2f400ef1b0ad6be9
|
63c449138a661dfdf579b6f2f1c35cc517e04b21
|
/app/src/main/java/com/yiyue/store/widget/popwindow/TriangleDrawable.java
|
4e2cc15cb34bab4c13e8c9c8531f79f2fa4e258a
|
[] |
no_license
|
wuqiuyun/yy_merchant
|
dd3d915e1fc1e6ac89d77f0081d804cb8a839a11
|
778412b3faef9e69c2314f4931e581fb79eabec3
|
refs/heads/master
| 2020-04-15T01:28:42.483837
| 2019-01-06T05:24:24
| 2019-01-06T05:24:24
| 164,277,872
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,682
|
java
|
package com.yiyue.store.widget.popwindow;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PixelFormat;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.support.annotation.IntDef;
import android.support.annotation.IntRange;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* 自定义三角形
*/
public class TriangleDrawable extends Drawable {
public static final int TOP = 12;
public static final int BOTTOM = 13;
public static final int LEFT = 14;
public static final int RIGHT = 15;
private int bgColor = Color.WHITE;
@ARROWDIRECTION
private int arrowDirection;
public TriangleDrawable(@ARROWDIRECTION int arrowDirection, int bgColor) {
this.arrowDirection = arrowDirection;
this.bgColor = bgColor;
}
@Override
public void draw(@NonNull Canvas canvas) {
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setColor(bgColor);
paint.setStyle(Paint.Style.FILL);
Path path = createPath();
canvas.drawPath(path, paint);
}
private Path createPath() {
Rect bound = getBounds();
Path path = new Path();
if (arrowDirection == TOP) {
path.moveTo(bound.right / 2 + 10, 0);
path.lineTo(0, bound.bottom);
path.lineTo(bound.right - 10, bound.bottom);
path.close();
} else if (arrowDirection == BOTTOM) {
path.moveTo(bound.right / 2, bound.bottom);
path.lineTo(0, 0);
path.lineTo(bound.right, 0);
path.close();
} else if (arrowDirection == LEFT) {
path.moveTo(0, bound.bottom / 2);
path.lineTo(bound.right, 0);
path.lineTo(bound.right, bound.bottom);
path.close();
} else {
path.moveTo(bound.right, bound.bottom / 2);
path.lineTo(0, 0);
path.lineTo(0, bound.bottom);
path.close();
}
return path;
}
@Override
public void setAlpha(@IntRange(from = 0, to = 255) int alpha) {
}
@Override
public void setColorFilter(@Nullable ColorFilter colorFilter) {
}
@Override
public int getOpacity() {
return PixelFormat.TRANSPARENT;
}
@IntDef({TOP, BOTTOM, LEFT, RIGHT})
@Retention(RetentionPolicy.SOURCE)
public @interface ARROWDIRECTION {
}
}
|
[
"wuqiuyun_9629@163.com"
] |
wuqiuyun_9629@163.com
|
18f70cdfd4ec125eb6fd77504e11fad37a3899b5
|
4aa90348abcb2119011728dc067afd501f275374
|
/app/src/main/java/com/tencent/mm/wallet_core/ui/WalletBaseUI$9.java
|
ea0a167e2c9c4eee4403edb5db09830d3371fe14
|
[] |
no_license
|
jambestwick/HackWechat
|
0d4ceb2d79ccddb45004ca667e9a6a984a80f0f6
|
6a34899c8bfd50d19e5a5ec36a58218598172a6b
|
refs/heads/master
| 2022-01-27T12:48:43.446804
| 2021-12-29T10:36:30
| 2021-12-29T10:36:30
| 249,366,791
| 0
| 0
| null | 2020-03-23T07:48:32
| 2020-03-23T07:48:32
| null |
UTF-8
|
Java
| false
| false
| 584
|
java
|
package com.tencent.mm.wallet_core.ui;
import com.tencent.mm.ae.k;
import com.tencent.mm.ui.MMActivity;
import com.tencent.mm.wallet_core.d.e;
import com.tencent.mm.wallet_core.d.g;
class WalletBaseUI$9 extends e {
final /* synthetic */ WalletBaseUI zJd;
WalletBaseUI$9(WalletBaseUI walletBaseUI, MMActivity mMActivity, g gVar) {
this.zJd = walletBaseUI;
super(mMActivity, gVar);
}
public final boolean d(int i, int i2, String str, k kVar) {
return false;
}
public final boolean k(Object... objArr) {
return false;
}
}
|
[
"malin.myemail@163.com"
] |
malin.myemail@163.com
|
37c14b389c3a90b80c40ca88a4d9b0c39dc876d9
|
cee2f0af1bda14a5fa59059d7805b6a225071b99
|
/groupapp/src/main/java/com/zbmf/StockGroup/utils/MessageType.java
|
d0c8e16f1eb80e9e913e803162ca194b05b3b9a4
|
[] |
no_license
|
pengqun1123/StockGroup
|
a30a6ea170d16300a3d2cae3e5a49933aeebbc19
|
64de8dbc188232f4b6277a56f61279d238b17776
|
refs/heads/master
| 2021-10-01T00:33:33.087802
| 2018-11-26T09:38:17
| 2018-11-26T09:38:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,177
|
java
|
package com.zbmf.StockGroup.utils;
/**
* Created by iMac on 2016/12/27.
*/
public class MessageType {
public static final String TXT = "txt";
public static final String IMG = "img";
public static final String AUDIO = "audio";
public static final String CHAT="chat";
public static final String GIFT="gift";
public static final String FANS="fans";
public static final String SYSTEM="system";
public static final String BOX="box";
public static final String BLOG="blog";
public static final String RED_PACKET="packet";
public static final String CMD="cmd";
public static final String OFFLINE="offline";
public static final String ANSWER="answer";
public static final String MEMBER="member";//加入铁粉提醒
// public static final int MESSAGE=0;
// public static final int FANS_MESSAGE=2;
// public static final int SYSTEM_MESSAGE=3;
// public static final int BOX_MESSAGE=4;
/**
* 圈子角色
*/
// -1 未登录或未关注圈子的用户
// 0 普通关注用户
// 5 试用
// 10 铁粉
// 20 年粉
// 50 管理员
// 100 圈主
public static final int ROLE_1 = -1;
public static final int ROLE_0 = 0;
public static final int ROLE_5 = 5;
public static final int ROLE_10 = 10;
public static final int ROLE_20 = 20;
public static final int ROLE_50 = 50;
public static final int ROLE_100 = 100;
public static final String CHAT_GROUP = "group";
public static final String CHAT_USER = "user";
public static final int UPLOADING = 0;//正在上传
public static final int UPLOAD_SUCCESS = 1;//上传成功
public static final int UPLOAD_FAIL = 2;//上传失败
public static final int DOWN_SUCCESS = 3;//下载成功
public static final int DOWN_FAIL = 4;//下载失败
public static final int ROOM_FANS = 3;//小组群聊
public static final int ROOM_GROUP = 2;//小组群聊
public static final int ROOM_CHAT = 1;//聊天室
public static final String ACTION_ban= "ban";
public static final String ACTION_unBan = "unBan";
public static final String ACTION_deleteMsg = "deleteMsg";
}
|
[
"lulu.natan@gmail.com"
] |
lulu.natan@gmail.com
|
108986c1099c2ae4de3738778303d73e48020be8
|
842f0c44212a4f3ad20bd3acdd35d2d78e19cf90
|
/src/main/java/com/example/demo/proxyexample/MainForProxy.java
|
ad8df9898ddcf9e388059d20be274baf120bc45f
|
[
"Apache-2.0"
] |
permissive
|
msvystovych-hillel/bug-tracker
|
b8227721d98ed924f279894037a46805263ed09a
|
f75d2878bd3857dc992e749265521f05786e92a8
|
refs/heads/main
| 2023-05-13T01:46:19.263014
| 2021-05-28T05:01:55
| 2021-05-28T05:01:55
| 343,896,582
| 0
| 2
|
Apache-2.0
| 2021-04-05T18:08:45
| 2021-03-02T19:59:49
|
Java
|
UTF-8
|
Java
| false
| false
| 425
|
java
|
package com.example.demo.proxyexample;
public class MainForProxy {
public static void main(String[] args) {
// Create math proxy
IMath p = new MathProxy();
// Do the math
System.out.println("4 + 2 = " + p.add(4, 2));
System.out.println("4 - 2 = " + p.sub(4, 2));
System.out.println("4 * 2 = " + p.mul(4, 2));
System.out.println("4 / 2 = " + p.div(4, 2));
}
}
|
[
"none"
] |
none
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.