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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
155bd6c41998bcb4ceea32e15649e979ea73669f
|
b111b77f2729c030ce78096ea2273691b9b63749
|
/db-example-large-multi-project/project11/src/test/java/org/gradle/test/performance/mediumjavamultiproject/project11/p56/Test1125.java
|
a59b905ba9bdf1d780fff90f5d1b673fac521040
|
[] |
no_license
|
WeilerWebServices/Gradle
|
a1a55bdb0dd39240787adf9241289e52f593ccc1
|
6ab6192439f891256a10d9b60f3073cab110b2be
|
refs/heads/master
| 2023-01-19T16:48:09.415529
| 2020-11-28T13:28:40
| 2020-11-28T13:28:40
| 256,249,773
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,026
|
java
|
package org.gradle.test.performance.mediumjavamultiproject.project11.p56;
import org.gradle.test.performance.mediumjavamultiproject.project11.p55.Production1116;
import org.gradle.test.performance.mediumjavamultiproject.project8.p41.Production825;
import org.gradle.test.performance.mediumjavamultiproject.project9.p46.Production925;
import org.gradle.test.performance.mediumjavamultiproject.project10.p51.Production1025;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test1125 {
Production1125 objectUnderTest = new Production1125();
@Test
public void testProperty0() throws Exception {
Production1116 value = new Production1116();
objectUnderTest.setProperty0(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty0());
}
@Test
public void testProperty1() throws Exception {
Production1120 value = new Production1120();
objectUnderTest.setProperty1(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty1());
}
@Test
public void testProperty2() throws Exception {
Production1124 value = new Production1124();
objectUnderTest.setProperty2(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty2());
}
@Test
public void testProperty3() throws Exception {
Production825 value = new Production825();
objectUnderTest.setProperty3(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty3());
}
@Test
public void testProperty4() throws Exception {
Production925 value = new Production925();
objectUnderTest.setProperty4(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty4());
}
@Test
public void testProperty5() throws Exception {
Production1025 value = new Production1025();
objectUnderTest.setProperty5(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty5());
}
@Test
public void testProperty6() throws Exception {
String value = "value";
objectUnderTest.setProperty6(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty6());
}
@Test
public void testProperty7() throws Exception {
String value = "value";
objectUnderTest.setProperty7(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty7());
}
@Test
public void testProperty8() throws Exception {
String value = "value";
objectUnderTest.setProperty8(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty8());
}
@Test
public void testProperty9() throws Exception {
String value = "value";
objectUnderTest.setProperty9(value);
Thread.sleep(250);
assertEquals(value, objectUnderTest.getProperty9());
}
}
|
[
"nateweiler84@gmail.com"
] |
nateweiler84@gmail.com
|
68556813ca6b33a97df6643a7f1c710c1e287d11
|
fe7a91bc5cec069cfc5904467e2440ecc3ea38bd
|
/library/src/main/java/me/zhanghai/android/materialprogressbar/internal/ObjectAnimatorCompatBase.java
|
b97df122b7e3092686a5ac5a28958ee8ad5476cd
|
[
"Apache-2.0"
] |
permissive
|
h6ah4i/MaterialProgressBar
|
6aaffdacfe5b8a7cc5b2429f35e307445b213584
|
e23cecf7205649a910b87d38e297f00778e15a5e
|
refs/heads/master
| 2021-01-17T21:20:51.969680
| 2015-06-10T08:35:53
| 2015-06-10T08:35:53
| 37,072,021
| 1
| 0
| null | 2015-06-08T14:31:12
| 2015-06-08T14:31:12
| null |
UTF-8
|
Java
| false
| false
| 4,654
|
java
|
/*
* Copyright (c) 2015 Zhang Hai <Dreaming.in.Code.ZH@Gmail.com>
* All Rights Reserved.
*/
package me.zhanghai.android.materialprogressbar.internal;
import android.animation.ArgbEvaluator;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.graphics.Path;
import android.graphics.PathMeasure;
import android.support.annotation.Size;
import android.util.Property;
class ObjectAnimatorCompatBase {
private static final int NUM_POINTS = 500;
private ObjectAnimatorCompatBase() {}
public static ObjectAnimator ofArgb(Object target, String propertyName, int... values) {
ObjectAnimator animator = ObjectAnimator.ofInt(target, propertyName, values);
animator.setEvaluator(new ArgbEvaluator());
return animator;
}
public static <T> ObjectAnimator ofArgb(T target, Property<T, Integer> property,
int... values) {
ObjectAnimator animator = ObjectAnimator.ofInt(target, property, values);
animator.setEvaluator(new ArgbEvaluator());
return animator;
}
public static ObjectAnimator ofFloat(Object target, String xPropertyName, String yPropertyName,
Path path) {
float[] xValues = new float[NUM_POINTS];
float[] yValues = new float[NUM_POINTS];
calculateXYValues(path, xValues, yValues);
PropertyValuesHolder xPvh = PropertyValuesHolder.ofFloat(xPropertyName, xValues);
PropertyValuesHolder yPvh = PropertyValuesHolder.ofFloat(yPropertyName, yValues);
return ObjectAnimator.ofPropertyValuesHolder(target, xPvh, yPvh);
}
public static <T> ObjectAnimator ofFloat(T target, Property<T, Float> xProperty,
Property<T, Float> yProperty, Path path) {
float[] xValues = new float[NUM_POINTS];
float[] yValues = new float[NUM_POINTS];
calculateXYValues(path, xValues, yValues);
PropertyValuesHolder xPvh = PropertyValuesHolder.ofFloat(xProperty, xValues);
PropertyValuesHolder yPvh = PropertyValuesHolder.ofFloat(yProperty, yValues);
return ObjectAnimator.ofPropertyValuesHolder(target, xPvh, yPvh);
}
public static ObjectAnimator ofInt(Object target, String xPropertyName, String yPropertyName,
Path path) {
int[] xValues = new int[NUM_POINTS];
int[] yValues = new int[NUM_POINTS];
calculateXYValues(path, xValues, yValues);
PropertyValuesHolder xPvh = PropertyValuesHolder.ofInt(xPropertyName, xValues);
PropertyValuesHolder yPvh = PropertyValuesHolder.ofInt(yPropertyName, yValues);
return ObjectAnimator.ofPropertyValuesHolder(target, xPvh, yPvh);
}
public static <T> ObjectAnimator ofInt(T target, Property<T, Integer> xProperty,
Property<T, Integer> yProperty, Path path) {
int[] xValues = new int[NUM_POINTS];
int[] yValues = new int[NUM_POINTS];
calculateXYValues(path, xValues, yValues);
PropertyValuesHolder xPvh = PropertyValuesHolder.ofInt(xProperty, xValues);
PropertyValuesHolder yPvh = PropertyValuesHolder.ofInt(yProperty, yValues);
return ObjectAnimator.ofPropertyValuesHolder(target, xPvh, yPvh);
}
private static void calculateXYValues(Path path, @Size(NUM_POINTS) float[] xValues,
@Size(NUM_POINTS) float[] yValues) {
PathMeasure pathMeasure = new PathMeasure(path, false /* forceClosed */);
float pathLength = pathMeasure.getLength();
float[] position = new float[2];
for (int i = 0; i < NUM_POINTS; ++i) {
float distance = (i * pathLength) / (NUM_POINTS - 1);
pathMeasure.getPosTan(distance, position, null /* tangent */);
xValues[i] = position[0];
yValues[i] = position[1];
}
}
private static void calculateXYValues(Path path, @Size(NUM_POINTS) int[] xValues,
@Size(NUM_POINTS) int[] yValues) {
PathMeasure pathMeasure = new PathMeasure(path, false /* forceClosed */);
float pathLength = pathMeasure.getLength();
float[] position = new float[2];
for (int i = 0; i < NUM_POINTS; ++i) {
float distance = (i * pathLength) / (NUM_POINTS - 1);
pathMeasure.getPosTan(distance, position, null /* tangent */);
xValues[i] = Math.round(position[0]);
yValues[i] = Math.round(position[1]);
}
}
}
|
[
"dreaming.in.code.zh@gmail.com"
] |
dreaming.in.code.zh@gmail.com
|
887fe5f60623845e37a0cbed220f03ef50a3e930
|
b3418633bf03a546a5254ea422e40de17489980c
|
/src/main/java/com/fhd/process/web/controller/ProcessPointControl.java
|
9d45af5ca5d8fc273327a50a6dcdfc2c133ea21a
|
[] |
no_license
|
vincent-dixin/Financial-Street-ERMIS
|
d819fd319293e55578e3067c9a5de0cd33c56a93
|
87d6bc6a4ddc52abca2c341eb476c1ea283d70e7
|
refs/heads/master
| 2016-09-06T13:56:46.197326
| 2015-03-30T02:47:46
| 2015-03-30T02:47:46
| 33,099,786
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,688
|
java
|
package com.fhd.process.web.controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils;
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 com.fhd.core.dao.Page;
import com.fhd.fdc.utils.UserContext;
import com.fhd.process.business.ProcessPointBO;
import com.fhd.process.entity.ProcessPoint;
import com.fhd.process.web.form.ProcessPointForm;
import com.fhd.sys.web.form.dic.DictEntryForm;
/**
* 流程节点维护
*
* @author 宋佳
* @version
* @since Ver 1.1
* @Date 2013 3-13
*/
@Controller
public class ProcessPointControl {
@Autowired
private ProcessPointBO o_ProcessPointBO;
/**
*
* @author 宋佳
* @param processEditID
* @return
* @since fhd Ver 1.1
*/
@ResponseBody
@RequestMapping("/ProcessPoint/ProcessPoint/editProcessPoint.f")
public Map<String,Object> findProcessPointForm(String processEditID,String processId){
Map<String,Object> ProcessPointMap=o_ProcessPointBO.findProcessPointForm(processEditID,processId);
return ProcessPointMap;
}
/**
*
* @author 宋佳
* @param processEditID
* @return
* @since fhd Ver 1.1
*/
@ResponseBody
@RequestMapping("/ProcessPoint/ProcessPoint/editProcessPointforview.f")
public Map<String,Object> findProcessPointFormForView(String processEditID){
Map<String,Object> ProcessPointMap=o_ProcessPointBO.findProcessPointFormForView(processEditID);
return ProcessPointMap;
}
/**
*
* 删除流程节点
*
*
* @author 宋佳
* @param ProcessPointID
* @since fhd Ver 1.1
*/
@ResponseBody
@RequestMapping("/ProcessPoint/ProcessPoint/removeProcessPoint.f")
public void removeProcessPointByID(String ProcessPointID,HttpServletResponse response) throws IOException{
PrintWriter out = response.getWriter();
try {
if(StringUtils.isNotBlank(ProcessPointID)){
o_ProcessPointBO.removeProcessPointByID(ProcessPointID);
}
out.print("true");
} catch (Exception e) {
e.printStackTrace();
out.print("false");
} finally{
if(null != out){
out.close();
}
}
}
/**
*
* 删除父亲节点
*
*
* @author 宋佳
* @param ProcessPointID
* @since fhd Ver 1.1
*/
@ResponseBody
@RequestMapping("/processpoint/removeparentpointbyid.f")
public void removeParentPointById(String ids,HttpServletResponse response) throws IOException{
PrintWriter out = response.getWriter();
try {
if(StringUtils.isNotBlank(ids)){
o_ProcessPointBO.removeParentPointByID(ids);
}
out.print("true");
} catch (Exception e) {
e.printStackTrace();
out.print("false");
} finally{
if(null != out){
out.close();
}
}
}
/**
*
* 保存流程节点
*
* @author 宋佳
* @param ProcessPointForm
* @param parentId
* @return
* @since fhd Ver 1.1
*/
@ResponseBody
@RequestMapping("/processpoint/processpoint/saveprocesspoint.f")
public Map<String,Object> saveProcessPoint(ProcessPointForm processPointForm){
Map<String,Object> result=new HashMap<String,Object>();
o_ProcessPointBO.saveProcessPoint(processPointForm);
result.put("success", true);
return result;
}
/**
*
*自动生成编号
*
*
* @author 李克东
* @param ProcessPointEditID
* @param parentId
* @return
* @since fhd Ver 1.1
*/
@ResponseBody
@RequestMapping("/ProcessPoint/ProcessPoint/ProcessPointCode.f")
public Map<String,Object> findProcessPointCode(String processPointId,String processId){
Map<String,Object> processPointMap=o_ProcessPointBO.findProcessPointCode(processPointId, processId);
return processPointMap;
}
/**
* 根据流程ID 找到流程下所有节点
* @author 宋佳
* @param processId
* @return
*/
@ResponseBody
@RequestMapping("/process/findprocesspointlistbypage.f")
public Map<String,Object> findProcessPointListByPage(int limit, int start, String query,String processId){
Map<String,Object> resultMap;
Page<ProcessPoint> page = new Page<ProcessPoint>();
page.setPageNo((limit == 0 ? 0 : start / limit) + 1);
page.setPageSize(limit);
String companyId = UserContext.getUser().getCompanyid();
resultMap=o_ProcessPointBO.findProcessPointListByPage(page, query, processId,companyId);
return resultMap;
}
/**
* 根据节点ID 找到上级节点和节点进入条件
* @author 宋佳
* @param processId
* @return
*/
@ResponseBody
@RequestMapping("/process/findParentListByPointId.f")
public Map<String,Object> findParentListByPointId(String processPointId){
Map<String,Object> resultMap;
String companyId = UserContext.getUser().getCompanyid();
resultMap=o_ProcessPointBO.findParentListByPointId(processPointId,companyId);
return resultMap;
}
/**
* 查询出流程中所包含所有的节点,作为数据字典展示
* @param typeId
* @author 宋佳
* @return
*/
@ResponseBody
@RequestMapping("/processpoint/findallprocesspointbyprocessid.f")
public List<Map<String,String>> findAllProcessPointByProcessId(String processId,String processPointId){
List<DictEntryForm> list=o_ProcessPointBO.findAllProcessPointByProcessId(processId);
List<Map<String, String>> l=new ArrayList<Map<String, String>>();
for(DictEntryForm dictEntryForm:list)
{
Map<String,String> map=new HashMap<String,String>();
if(!dictEntryForm.getId().equals(processPointId))
{
map.put("id", dictEntryForm.getId());
map.put("name",dictEntryForm.getName());
l.add(map);
}
}
return l;
}
}
|
[
"cashhu@126.com"
] |
cashhu@126.com
|
aecf47a90701496350b02516bac4307e02b0b93f
|
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
|
/sources/com/avito/android/home/default_search_location/DefaultSearchLocationInteractor.java
|
bcca8664e083adc6621aa0cb4cd84d0ebb1b7944
|
[] |
no_license
|
Auch-Auch/avito_source
|
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
|
76fdcc5b7e036c57ecc193e790b0582481768cdc
|
refs/heads/master
| 2023-05-06T01:32:43.014668
| 2021-05-25T10:19:22
| 2021-05-25T10:19:22
| 370,650,685
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 855
|
java
|
package com.avito.android.home.default_search_location;
import android.location.Location;
import io.reactivex.rxjava3.core.Single;
import kotlin.Metadata;
import org.jetbrains.annotations.NotNull;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\bf\u0018\u00002\u00020\u0001J\u0015\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u0002H&¢\u0006\u0004\b\u0004\u0010\u0005¨\u0006\u0006"}, d2 = {"Lcom/avito/android/home/default_search_location/DefaultSearchLocationInteractor;", "", "Lio/reactivex/rxjava3/core/Single;", "Landroid/location/Location;", "defaultLocation", "()Lio/reactivex/rxjava3/core/Single;", "serp_release"}, k = 1, mv = {1, 4, 2})
public interface DefaultSearchLocationInteractor {
@NotNull
Single<Location> defaultLocation();
}
|
[
"auchhunter@gmail.com"
] |
auchhunter@gmail.com
|
b43420f35748b2d8c6db99c1cbece518059c9c9a
|
1aece97371898f7628b70cfb4962cd80d0f2a84f
|
/app/src/main/java/org/sex/hanker/View/SwipeRefreshLayoutOnRefresh.java
|
7505f0250b8ec46e2055669044ad511bf8cd3a37
|
[] |
no_license
|
rgsngdha/pp365_app
|
a8b6b3ca2c70d3b1d0cd54037402f1da74f1e1e0
|
0a2a41fba0127ce5d5b15cbe1518ea092d877293
|
refs/heads/master
| 2023-03-18T05:23:10.510186
| 2019-01-26T02:18:29
| 2019-01-26T02:18:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 701
|
java
|
package org.sex.hanker.View;
import android.support.v4.widget.SwipeRefreshLayout;
/**
* Created by Administrator on 2018/3/2.
*/
public class SwipeRefreshLayoutOnRefresh implements SwipeRefreshLayout.OnRefreshListener{
private PullLoadMoreRecyclerView mPullLoadMoreRecyclerView;
public SwipeRefreshLayoutOnRefresh(PullLoadMoreRecyclerView pullLoadMoreRecyclerView) {
this.mPullLoadMoreRecyclerView = pullLoadMoreRecyclerView;
}
@Override
public void onRefresh() {
if (!mPullLoadMoreRecyclerView.isRefresh()) {
mPullLoadMoreRecyclerView.setIsRefresh(true);
mPullLoadMoreRecyclerView.refresh();
}
}
}
|
[
"877149699@qq.com"
] |
877149699@qq.com
|
bd77494da0bd18b3472a733a45ce92962266130c
|
9de6a98cdaed1a6577165999c0696e96baeaecc6
|
/legend-pure-runtime-java-engine-interpreted/src/main/java/org/finos/legend/pure/runtime/java/interpreted/natives/core/math/LessThan.java
|
942856a9dbb9d86fdb89321597f9f3fbdc8c748a
|
[
"Apache-2.0",
"CC0-1.0"
] |
permissive
|
stephanof/legend-pure
|
7cc4469ad2d926c15df8cb9f2150923907fb6887
|
c75435f0a24a0fbc673297b1734a9921a0c7a40e
|
refs/heads/master
| 2023-08-20T00:30:32.120001
| 2021-10-14T20:30:49
| 2021-10-14T20:30:49
| 314,235,221
| 0
| 0
|
Apache-2.0
| 2021-06-28T09:47:53
| 2020-11-19T12:02:19
|
Java
|
UTF-8
|
Java
| false
| false
| 978
|
java
|
// Copyright 2020 Goldman Sachs
//
// 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.finos.legend.pure.runtime.java.interpreted.natives.core.math;
import org.finos.legend.pure.m4.ModelRepository;
public class LessThan extends NumericComparisonPredicate
{
public LessThan(ModelRepository repository)
{
super(repository);
}
@Override
protected boolean acceptComparison(int comparison)
{
return comparison < 0;
}
}
|
[
"pierre.debelen@gs.com"
] |
pierre.debelen@gs.com
|
ccdde970a7ffe20c741ab17e89dea6460a073090
|
2a4da57d124361b0934067f94e028611006e82bb
|
/dynamo-core/src/main/java/dynamo/providers/magazines/EBookW.java
|
1382f35ba48d97df263e69df2df4d365dd2882fb
|
[
"Apache-2.0"
] |
permissive
|
epew/dynamo
|
e47f736a22a4992d3f9e9ae25ddfbc12383b5c17
|
b7e6b314a03081be1156a66d5191ee124ca63001
|
refs/heads/master
| 2021-01-11T18:19:52.422976
| 2015-10-20T11:20:59
| 2015-10-20T11:20:59
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,386
|
java
|
package dynamo.providers.magazines;
import java.io.IOException;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import core.WebDocument;
import dynamo.magazines.KioskIssuesSuggester;
import dynamo.magazines.KioskIssuesSuggesterException;
import dynamo.magazines.MagazineManager;
import dynamo.model.DownloadSuggestion;
import hclient.HTTPClient;
public class EBookW implements KioskIssuesSuggester {
private final static int MAX_PAGES = 10;
@Override
public void suggestIssues() throws KioskIssuesSuggesterException {
for (int i=1; i<=MAX_PAGES; i++) {
String url = String.format("http://ebookw.com/magazines/page/%d", i);
WebDocument document;
try {
document = HTTPClient.getInstance().getDocument( url, HTTPClient.REFRESH_ONE_HOUR );
} catch (IOException e) {
throw new KioskIssuesSuggesterException( e );
}
Elements titles = document.jsoup("#dle-content .title");
for (Element element : titles) {
String title = element.select("a").first().text();
Element shortNews = element.nextElementSibling().nextElementSibling();
String coverImage = shortNews.select("img").first().absUrl("src");
MagazineManager.getInstance().suggest( new DownloadSuggestion(title, coverImage, url, null, null, -1.0f, toString(), null, false));
}
}
}
@Override
public String toString() {
return "EBookW.com";
}
}
|
[
"guillaume.serre@gmail.com"
] |
guillaume.serre@gmail.com
|
540a16e31bed8cbcf2b86c255a9ae1a0cdae12c1
|
eafae636c22b5d95db19e5271d58796bd7be4a66
|
/app-release-unsigned/sources/com/google/android/material/transition/platform/ScaleProvider.java
|
99b5dc96d7cfff739d1abf31e2aa5530c687a7cc
|
[] |
no_license
|
agustrinaldokurniawan/News_Kotlin_Native
|
5fb97e9c9199c464e64a6ef901b133c88da3db55
|
411f2ae0c01f2cc490f9b80a6b8f40196bc74176
|
refs/heads/main
| 2023-05-31T20:59:44.356059
| 2021-06-15T14:43:42
| 2021-06-15T14:43:42
| 377,077,236
| 0
| 0
| null | 2021-06-15T07:44:11
| 2021-06-15T07:38:27
| null |
UTF-8
|
Java
| false
| false
| 3,589
|
java
|
package com.google.android.material.transition.platform;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.view.View;
import android.view.ViewGroup;
public final class ScaleProvider implements VisibilityAnimatorProvider {
private boolean growing;
private float incomingEndScale;
private float incomingStartScale;
private float outgoingEndScale;
private float outgoingStartScale;
private boolean scaleOnDisappear;
public ScaleProvider() {
this(true);
}
public ScaleProvider(boolean z) {
this.outgoingStartScale = 1.0f;
this.outgoingEndScale = 1.1f;
this.incomingStartScale = 0.8f;
this.incomingEndScale = 1.0f;
this.scaleOnDisappear = true;
this.growing = z;
}
public boolean isGrowing() {
return this.growing;
}
public void setGrowing(boolean z) {
this.growing = z;
}
public boolean isScaleOnDisappear() {
return this.scaleOnDisappear;
}
public void setScaleOnDisappear(boolean z) {
this.scaleOnDisappear = z;
}
public float getOutgoingStartScale() {
return this.outgoingStartScale;
}
public void setOutgoingStartScale(float f) {
this.outgoingStartScale = f;
}
public float getOutgoingEndScale() {
return this.outgoingEndScale;
}
public void setOutgoingEndScale(float f) {
this.outgoingEndScale = f;
}
public float getIncomingStartScale() {
return this.incomingStartScale;
}
public void setIncomingStartScale(float f) {
this.incomingStartScale = f;
}
public float getIncomingEndScale() {
return this.incomingEndScale;
}
public void setIncomingEndScale(float f) {
this.incomingEndScale = f;
}
@Override // com.google.android.material.transition.platform.VisibilityAnimatorProvider
public Animator createAppear(ViewGroup viewGroup, View view) {
if (this.growing) {
return createScaleAnimator(view, this.incomingStartScale, this.incomingEndScale);
}
return createScaleAnimator(view, this.outgoingEndScale, this.outgoingStartScale);
}
@Override // com.google.android.material.transition.platform.VisibilityAnimatorProvider
public Animator createDisappear(ViewGroup viewGroup, View view) {
if (!this.scaleOnDisappear) {
return null;
}
if (this.growing) {
return createScaleAnimator(view, this.outgoingStartScale, this.outgoingEndScale);
}
return createScaleAnimator(view, this.incomingEndScale, this.incomingStartScale);
}
private static Animator createScaleAnimator(final View view, float f, float f2) {
final float scaleX = view.getScaleX();
final float scaleY = view.getScaleY();
ObjectAnimator ofPropertyValuesHolder = ObjectAnimator.ofPropertyValuesHolder(view, PropertyValuesHolder.ofFloat(View.SCALE_X, scaleX * f, scaleX * f2), PropertyValuesHolder.ofFloat(View.SCALE_Y, f * scaleY, f2 * scaleY));
ofPropertyValuesHolder.addListener(new AnimatorListenerAdapter() {
/* class com.google.android.material.transition.platform.ScaleProvider.AnonymousClass1 */
public void onAnimationEnd(Animator animator) {
view.setScaleX(scaleX);
view.setScaleY(scaleY);
}
});
return ofPropertyValuesHolder;
}
}
|
[
"agust.kurniawan@Agust-Rinaldo-Kurniawan.local"
] |
agust.kurniawan@Agust-Rinaldo-Kurniawan.local
|
a9a12b8fef9eb37de95e1a4a9af4394353445e8f
|
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
|
/drjava_cluster/8060/src_1.java
|
c58daaaf83cf1e860d668d3a3c7a27c60723291c
|
[] |
no_license
|
martinezmatias/GenPat-data-C3
|
63cfe27efee2946831139747e6c20cf952f1d6f6
|
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
|
refs/heads/master
| 2022-04-25T17:59:03.905613
| 2020-04-15T14:41:34
| 2020-04-15T14:41:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 721
|
java
|
/* $Id$ */
package edu.rice.cs.drjava;
import java.util.Date;
import java.text.SimpleDateFormat;
/**
* This interface hold the information about this build of DrJava.
* This file is copied to Version.java by the build process, which also
* fills in the right values of the date and time.
*/
public abstract class Version {
/**
* This string will be automatically expanded upon "ant commit".
* Do not edit it by hand!
*/
public static final Date BUILD_TIME = _getBuildDate();
private static Date _getBuildDate() {
try {
return new SimpleDateFormat("yyyyMMdd-HHmm").parse("20010808-1807");
}
catch (Exception e) { // parse format or whatever problem
return null;
}
}
}
|
[
"375833274@qq.com"
] |
375833274@qq.com
|
e0f8d7bd1aa08e9729cf1ed1a442c8c1df5b871f
|
56456387c8a2ff1062f34780b471712cc2a49b71
|
/com/google/android/gms/internal/zzlz$2.java
|
8553339b9516256d87afb9be0edc9f8ed4925c4e
|
[] |
no_license
|
nendraharyo/presensimahasiswa-sourcecode
|
55d4b8e9f6968eaf71a2ea002e0e7f08d16c5a50
|
890fc86782e9b2b4748bdb9f3db946bfb830b252
|
refs/heads/master
| 2020-05-21T11:21:55.143420
| 2019-05-10T19:03:56
| 2019-05-10T19:03:56
| 186,022,425
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 574
|
java
|
package com.google.android.gms.internal;
final class zzlz$2
extends zzlz
{
zzlz$2(String paramString, Long paramLong)
{
super(paramString, paramLong);
}
protected Long zzcv(String paramString)
{
zzlz.zza localzza = zzlz.zzpY();
String str = this.zzvs;
Long localLong = (Long)this.zzvt;
return localzza.getLong(str, localLong);
}
}
/* Location: C:\Users\haryo\Desktop\enjarify-master\presensi-enjarify.jar!\com\google\android\gms\internal\zzlz$2.class
* Java compiler version: 5 (49.0)
* JD-Core Version: 0.7.1
*/
|
[
"haryo.nendra@gmail.com"
] |
haryo.nendra@gmail.com
|
03376625982cb4dde2b7b6737600a7b6ce6c3571
|
5312913a0d885768a91504eeb1c75b1dce3e46b7
|
/mapo-opt4j/src/org/opt4j/optimizer/de/package-info.java
|
8fb01af6544e40eec1c15a1ce20c4e77ba8fb7e9
|
[] |
no_license
|
vicmns/mapo-opt4j
|
f5318f9fc5ef5888848324dd579746b5384ae780
|
96956681e42a4f9c72a4c3171c570e4837d55bf8
|
refs/heads/master
| 2021-01-15T23:35:29.326100
| 2015-04-16T17:27:52
| 2015-04-16T17:27:52
| 34,061,850
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 798
|
java
|
/**
* Opt4J is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* Opt4J is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with Opt4J. If not, see http://www.gnu.org/licenses/.
*/
/**
* Provides the classes for a (Multi-Objective) Differential Evolution Algorithm.
*
*/
package org.opt4j.optimizer.de;
|
[
"vicmns@Zephie"
] |
vicmns@Zephie
|
9dff8afc4d45c039f333d15b5d3c0590a506614d
|
be16632b9c4bf9a4f72239779ba9510511b309db
|
/Current/Product/Production/Packages/FitNesse/Install/Product/FitNesse/Dev/fitnesse-plugins/src/com/targetprocess/integration/project/SourceControlTypeEnum.java
|
dd46b0255195c17b0d90f5550cf8cb23dba057b4
|
[] |
no_license
|
vardars/ci-factory
|
7430c2afb577937fb598b5af3709990e674e7d05
|
b83498949f48948d36dc488310cf280dbd98ecb7
|
refs/heads/master
| 2020-12-25T19:26:17.750522
| 2015-07-10T10:58:10
| 2015-07-10T10:58:10
| 38,868,165
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,419
|
java
|
package com.targetprocess.integration.project;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
/**
* <p>Java class for SourceControlTypeEnum.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="SourceControlTypeEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="None"/>
* <enumeration value="Subversion"/>
* <enumeration value="SourceSafe"/>
* <enumeration value="Perforce"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlEnum
public enum SourceControlTypeEnum {
@XmlEnumValue("None")
NONE("None"),
@XmlEnumValue("Perforce")
PERFORCE("Perforce"),
@XmlEnumValue("SourceSafe")
SOURCE_SAFE("SourceSafe"),
@XmlEnumValue("Subversion")
SUBVERSION("Subversion");
private final String value;
SourceControlTypeEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static SourceControlTypeEnum fromValue(String v) {
for (SourceControlTypeEnum c: SourceControlTypeEnum.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v.toString());
}
}
|
[
"cifactory@571f4c53-cd24-0410-92e9-33dde47f2f63"
] |
cifactory@571f4c53-cd24-0410-92e9-33dde47f2f63
|
c3ce5e20ec370f8846d7627c57b7ffbf72bcd08e
|
eeb2246814ee709505c467691ec9b940ffd7a18f
|
/Jmccms/src/main/java/com/jmccms/util/Base64Util.java
|
aa5523911bfc0760cc88f3d5bb28ef2bdaf2e919
|
[] |
no_license
|
arraycto/EducationPlatform-1
|
8dd3f1df7dae3cafffb8847652a405fff0d695c5
|
bea96d2ffb42aed969a4f3554396590ad8b2f7db
|
refs/heads/master
| 2021-01-01T12:56:34.681699
| 2019-07-17T07:36:25
| 2019-07-17T07:36:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,823
|
java
|
package com.jmccms.util;
import org.springframework.util.StringUtils;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
/**
* @Description: Base64Util加密帮助类
* @BelongsProject: Jmccms
* @BelongsPackage: com.jmccms.util
* @Author: ChenYongJia
* @CreateTime: 2019-05-03 22:24
* @Email chen87647213@163.com
*/
public class Base64Util {
/**
* BASE64解密
* @param key
* @return
* @throws Exception
*/
public static String decryptBASE64(String key) throws Exception {
if(StringUtils.isEmpty(key)) {
return null;
}
byte[] bytes = (new BASE64Decoder()).decodeBuffer(key);
return new String(bytes);
}
/**
* BASE64加密
*
* @param key
* @return
* @throws Exception
*/
public static String encryptBASE64(String key) throws Exception {
return (new BASE64Encoder()).encodeBuffer(key.getBytes());
}
public static String encryptBASE64UTF8(String key) throws Exception {
return (new BASE64Encoder()).encode(key.getBytes()).replace("\n", "").replace("\r", "");
}
/* public static void main(String[] args) {
try {
String data = Base64Util.decryptBASE64("e2NvcnBJZDond3g5MjM0MmExNWUxZGJhYjc0JyxhZ2VudElkOicxMDAwMDE0J30=");
String data1 = Base64Util.decryptBASE64("aHR0cDovL2N4amdnbGZ0LmNwaWMuY29tLmNuL2N4amdnbC9waG9uZW1hcA==");
String data4 = Base64Util.decryptBASE64("aHR0cDovL2N4amdnbGZ0LmNwaWMuY29tLmNuL2N4amdnbC9jb21tb24vdG9KZ2dsP2N4amdnbD1taWNDbGFzcy9tb2JpbGU=");
String data2 = Base64Util.encryptBASE64("http://cxjgglft.cpic.com.cn/cxjggl/phonemap");
String data3 = Base64Util.encryptBASE64("http://cxjgglft.cpic.com.cn/cxjggl/common/toJggl?cxjggl=mobile");
// String userId = MD5Util.getMD5("722334");
} catch (Exception e) {
}
}*/
}
|
[
"chen867647213@163.com"
] |
chen867647213@163.com
|
5324e0c85f40332cb512a91cbb781c309e2afd90
|
e3109a079793c5a66891aebef6dd7c2a44f8d360
|
/base/java/k/b/a/i2/a.java
|
687e78600cfcb742cf7b4e7a83a77773bb0f09d1
|
[] |
no_license
|
msorland/no.simula.smittestopp
|
d5a317b432e8a37c547fc9f2403f25db78ffd871
|
f5eeba1cc4b1cad98b8174315bb2b0b388d14be9
|
refs/heads/master
| 2022-04-17T12:50:10.853188
| 2020-04-17T10:14:01
| 2020-04-17T10:14:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 442
|
java
|
package k.b.a.i2;
import k.b.a.e;
import k.b.a.e1;
import k.b.a.f;
import k.b.a.n;
import k.b.a.o;
import k.b.a.t;
import k.b.a.u;
import k.b.a.x;
public class a extends n {
public o x;
public x y;
public a(u uVar) {
this.x = (o) uVar.a(0);
this.y = (x) uVar.a(1);
}
public t c() {
f fVar = new f(2);
fVar.a((e) this.x);
fVar.a((e) this.y);
return new e1(fVar);
}
}
|
[
"djkaty@users.noreply.github.com"
] |
djkaty@users.noreply.github.com
|
89962d3a422535bdb69e3127e3209f75eb10ea55
|
c4fbfc635607f9c9e7de89383833ca73d71832d6
|
/SimpleAnnotationTool/src/main/java/com/zy/security/annotation/EnableResourceServer.java
|
2bd1aaf8147ec649e4f43340021e91b3f2016868
|
[] |
no_license
|
azurite-Y/SimpleSecurityOAuth2
|
e195c0543b61bdf7203cdfeb510ee21419164af8
|
04c17918b4917e5e1210b8c68a183003a6dd563e
|
refs/heads/master
| 2022-11-28T11:59:28.696125
| 2020-07-18T05:22:36
| 2020-07-18T05:22:36
| 252,095,584
| 1
| 0
| null | 2022-11-15T23:49:55
| 2020-04-01T06:52:15
|
Java
|
UTF-8
|
Java
| false
| false
| 485
|
java
|
package com.zy.security.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
/**
* @author: zy;
* @DateTime: 2020年3月24日 下午4:12:21;
* @Description: 资源服务器注解
*/
public @interface EnableResourceServer {
}
|
[
"15969413461@163.com"
] |
15969413461@163.com
|
e0474dc4154f7f31e32d116f7155713af5ccd176
|
ae5eb1a38b4d22c82dfd67c86db73592094edc4b
|
/project44/src/main/java/org/gradle/test/performance/largejavamultiproject/project44/p224/Production4491.java
|
673300b81b6a34abaa6bc76ac3f2fcfacb168cba
|
[] |
no_license
|
big-guy/largeJavaMultiProject
|
405cc7f55301e1fd87cee5878a165ec5d4a071aa
|
1cd6a3f9c59e9b13dffa35ad27d911114f253c33
|
refs/heads/main
| 2023-03-17T10:59:53.226128
| 2021-03-04T01:01:39
| 2021-03-04T01:01:39
| 344,307,977
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,959
|
java
|
package org.gradle.test.performance.largejavamultiproject.project44.p224;
public class Production4491 {
private Production4488 property0;
public Production4488 getProperty0() {
return property0;
}
public void setProperty0(Production4488 value) {
property0 = value;
}
private Production4489 property1;
public Production4489 getProperty1() {
return property1;
}
public void setProperty1(Production4489 value) {
property1 = value;
}
private Production4490 property2;
public Production4490 getProperty2() {
return property2;
}
public void setProperty2(Production4490 value) {
property2 = value;
}
private String property3;
public String getProperty3() {
return property3;
}
public void setProperty3(String value) {
property3 = value;
}
private String property4;
public String getProperty4() {
return property4;
}
public void setProperty4(String value) {
property4 = value;
}
private String property5;
public String getProperty5() {
return property5;
}
public void setProperty5(String value) {
property5 = value;
}
private String property6;
public String getProperty6() {
return property6;
}
public void setProperty6(String value) {
property6 = value;
}
private String property7;
public String getProperty7() {
return property7;
}
public void setProperty7(String value) {
property7 = value;
}
private String property8;
public String getProperty8() {
return property8;
}
public void setProperty8(String value) {
property8 = value;
}
private String property9;
public String getProperty9() {
return property9;
}
public void setProperty9(String value) {
property9 = value;
}
}
|
[
"sterling.greene@gmail.com"
] |
sterling.greene@gmail.com
|
643b4e3b7a1d334eacfb097dd21128127a1bcf8e
|
dc654f1fd11552b97fb062c0c7384017d9a96e66
|
/app/src/main/java/com/qlckh/chunlvv/adapter/RankAdapter.java
|
2460772a306a98174e02e8982db689b4f3ce5db1
|
[] |
no_license
|
AndyAls/chulvv
|
efef7d09d8567d9dacfd091b8a86dc2aa0171f81
|
7b832883683195e8b25d684b984a902cc4a9dbcb
|
refs/heads/master
| 2021-06-20T01:33:21.591074
| 2019-10-11T02:52:02
| 2019-10-11T02:52:02
| 207,237,043
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,289
|
java
|
package com.qlckh.chunlvv.adapter;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.qlckh.chunlvv.R;
import com.qlckh.chunlvv.activity.NewsMoreActivity;
import com.qlckh.chunlvv.activity.RankActivity;
import com.qlckh.chunlvv.api.ApiService;
import com.qlckh.chunlvv.dao.RankDao;
import com.qlckh.chunlvv.http.utils.TimeUtil;
import com.qlckh.chunlvv.utils.GlideUtil;
import com.qlckh.chunlvv.view.richtextview.XRichText;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
/**
* @author Andy
* @date 2018/9/7 17:28
* Desc:
*/
public class RankAdapter extends RecyclerView.Adapter<RankAdapter.VH> {
private Context mContext;
private List<RankDao.RankBean> mDatas;
public RankAdapter(RankActivity newsMoreActivity, List<RankDao.RankBean> row) {
this.mContext = newsMoreActivity;
this.mDatas = row;
}
@NonNull
@Override
public VH onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View inflate = LayoutInflater.from(mContext).inflate(R.layout.rank_list_item, parent, false);
return new VH(inflate);
}
@Override
public void onBindViewHolder(@NonNull VH holder, int position) {
RankDao.RankBean rankBean = mDatas.get(position);
GlideUtil.displayCircleImg(mContext, ApiService.IMG_URL + rankBean.getErimg(), holder.ivHead);
holder.tvUser.setText(rankBean.getFullname());
holder.tvAddress.setText(rankBean.getWeight());
holder.tvJifen.setText(rankBean.getJifen());
}
@Override
public int getItemCount() {
return mDatas.size();
}
class VH extends RecyclerView.ViewHolder {
@BindView(R.id.iv_head)
ImageView ivHead;
@BindView(R.id.tv_user)
TextView tvUser;
@BindView(R.id.tv_address)
TextView tvAddress;
@BindView(R.id.tv_jifen)
TextView tvJifen;
VH(View view) {
super(view);
ButterKnife.bind(this, view);
}
}
}
|
[
"andy_als@163.com"
] |
andy_als@163.com
|
baa484c87c81421880c36bcb9ff5332e42586cab
|
4ad54a56ea1d1da711c1423c254b2b40b5619c9f
|
/citizen-intelligence-agency/src/test/java/com/hack23/cia/web/impl/ui/application/CitizenIntelligenceAgencyHealthCheckServletTest.java
|
74f098b3edbdef5bc86fd375af5fa45a511865ac
|
[
"Apache-2.0"
] |
permissive
|
mushfiqur47/cia
|
1cc52cf2eb2bb96be7bd26822b5c3832fbc16905
|
3ddc99ffa278df6b479bf2df9cc59d7d6194cef8
|
refs/heads/master
| 2022-10-23T06:28:17.475685
| 2020-06-20T12:48:33
| 2020-06-20T12:48:33
| 273,761,227
| 1
| 0
|
Apache-2.0
| 2020-06-20T18:15:15
| 2020-06-20T18:15:14
| null |
UTF-8
|
Java
| false
| false
| 1,768
|
java
|
/*
* Copyright 2010-2020 James Pether Sörling
*
* 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.
*
* $Id$
* $HeadURL$
*/
package com.hack23.cia.web.impl.ui.application;
import java.io.IOException;
import javax.servlet.ServletException;
import org.junit.Test;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import com.hack23.cia.testfoundation.AbstractUnitTest;
/**
* The Class CitizenIntelligenceAgencyHealthCheckServletTest.
*/
public class CitizenIntelligenceAgencyHealthCheckServletTest extends AbstractUnitTest {
/**
* Check health check test.
*
* @throws ServletException
* the servlet exception
* @throws IOException
* Signals that an I/O exception has occurred.
*/
@Test
public void checkHealthCheckTest() throws ServletException, IOException {
final CitizenIntelligenceAgencyHealthCheckServlet healthCheckServlet = new CitizenIntelligenceAgencyHealthCheckServlet();
final MockHttpServletRequest request = new MockHttpServletRequest();
final MockHttpServletResponse response = new MockHttpServletResponse();
healthCheckServlet.doGet(request, response);
assertEquals("OK\n", response.getContentAsString());
}
}
|
[
"pether.sorling@gmail.com"
] |
pether.sorling@gmail.com
|
c59131a3c69a30e9fcf93cef716049695de7b495
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/33/org/apache/commons/math3/stat/descriptive/SynchronizedSummaryStatistics_getSumsq_92.java
|
92fb93f9399738a74aaf84950d163003ebbfa99d
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 836
|
java
|
org apach common math3 stat descript
implement
link org apach common math3 stat descript summari statist summarystatist
safe multithread environ multipl thread safe
oper singl instanc caus runtim except due race
condit effect implement make modif access
method atom oper singl instanc
thread comput statist instanc thread modifi
instanc comput statist
version
synchron summari statist synchronizedsummarystatist summari statist summarystatist
inherit doc inheritdoc
overrid
sumsq getsumsq
sumsq getsumsq
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
7ccaea89e85824728018a343bef3d29a675aa28f
|
45f05c515e311d16eb48094b6d6617d6b6987397
|
/lucihunt-lucene4.10/src/test/java/org/apache/lucene/search/TestSimilarity.java
|
7c7b89b499ee22f1717ed33315019f1875971ec0
|
[
"Apache-2.0"
] |
permissive
|
lemonJun/LuciHunt
|
5328dd270e891e302bf985a1a2517dcaa95def9d
|
08c71f80be580e5ebcbb519eb2aff1f3cfee55a8
|
refs/heads/master
| 2021-01-18T19:32:47.065466
| 2017-05-03T09:52:13
| 2017-05-03T09:52:13
| 86,899,911
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,458
|
java
|
package org.apache.lucene.search;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.apache.lucene.document.Field;
import org.apache.lucene.util.LuceneTestCase;
import java.io.IOException;
import org.apache.lucene.index.AtomicReaderContext;
import org.apache.lucene.index.FieldInvertState;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.RandomIndexWriter;
import org.apache.lucene.index.Term;
import org.apache.lucene.search.similarities.DefaultSimilarity;
import org.apache.lucene.store.Directory;
import org.apache.lucene.analysis.MockAnalyzer;
import org.apache.lucene.document.Document;
/** Similarity unit test.
*
*
*/
public class TestSimilarity extends LuceneTestCase {
public static class SimpleSimilarity extends DefaultSimilarity {
@Override
public float queryNorm(float sumOfSquaredWeights) {
return 1.0f;
}
@Override
public float coord(int overlap, int maxOverlap) {
return 1.0f;
}
@Override
public float lengthNorm(FieldInvertState state) {
return state.getBoost();
}
@Override
public float tf(float freq) {
return freq;
}
@Override
public float sloppyFreq(int distance) {
return 2.0f;
}
@Override
public float idf(long docFreq, long numDocs) {
return 1.0f;
}
@Override
public Explanation idfExplain(CollectionStatistics collectionStats, TermStatistics[] stats) {
return new Explanation(1.0f, "Inexplicable");
}
}
public void testSimilarity() throws Exception {
Directory store = newDirectory();
RandomIndexWriter writer = new RandomIndexWriter(random(), store, newIndexWriterConfig(new MockAnalyzer(random())).setSimilarity(new SimpleSimilarity()));
Document d1 = new Document();
d1.add(newTextField("field", "a c", Field.Store.YES));
Document d2 = new Document();
d2.add(newTextField("field", "a b c", Field.Store.YES));
writer.addDocument(d1);
writer.addDocument(d2);
IndexReader reader = writer.getReader();
writer.close();
IndexSearcher searcher = newSearcher(reader);
searcher.setSimilarity(new SimpleSimilarity());
Term a = new Term("field", "a");
Term b = new Term("field", "b");
Term c = new Term("field", "c");
searcher.search(new TermQuery(b), new Collector() {
private Scorer scorer;
@Override
public void setScorer(Scorer scorer) {
this.scorer = scorer;
}
@Override
public final void collect(int doc) throws IOException {
assertEquals(1.0f, scorer.score(), 0);
}
@Override
public void setNextReader(AtomicReaderContext context) {
}
@Override
public boolean acceptsDocsOutOfOrder() {
return true;
}
});
BooleanQuery bq = new BooleanQuery();
bq.add(new TermQuery(a), BooleanClause.Occur.SHOULD);
bq.add(new TermQuery(b), BooleanClause.Occur.SHOULD);
//System.out.println(bq.toString("field"));
searcher.search(bq, new Collector() {
private int base = 0;
private Scorer scorer;
@Override
public void setScorer(Scorer scorer) {
this.scorer = scorer;
}
@Override
public final void collect(int doc) throws IOException {
//System.out.println("Doc=" + doc + " score=" + score);
assertEquals((float) doc + base + 1, scorer.score(), 0);
}
@Override
public void setNextReader(AtomicReaderContext context) {
base = context.docBase;
}
@Override
public boolean acceptsDocsOutOfOrder() {
return true;
}
});
PhraseQuery pq = new PhraseQuery();
pq.add(a);
pq.add(c);
//System.out.println(pq.toString("field"));
searcher.search(pq, new Collector() {
private Scorer scorer;
@Override
public void setScorer(Scorer scorer) {
this.scorer = scorer;
}
@Override
public final void collect(int doc) throws IOException {
//System.out.println("Doc=" + doc + " score=" + score);
assertEquals(1.0f, scorer.score(), 0);
}
@Override
public void setNextReader(AtomicReaderContext context) {
}
@Override
public boolean acceptsDocsOutOfOrder() {
return true;
}
});
pq.setSlop(2);
//System.out.println(pq.toString("field"));
searcher.search(pq, new Collector() {
private Scorer scorer;
@Override
public void setScorer(Scorer scorer) {
this.scorer = scorer;
}
@Override
public final void collect(int doc) throws IOException {
//System.out.println("Doc=" + doc + " score=" + score);
assertEquals(2.0f, scorer.score(), 0);
}
@Override
public void setNextReader(AtomicReaderContext context) {
}
@Override
public boolean acceptsDocsOutOfOrder() {
return true;
}
});
reader.close();
store.close();
}
}
|
[
"506526593@qq.com"
] |
506526593@qq.com
|
f9cb5d8cca85ae2f3c558ddb85b5aa6b2c9e95f0
|
5ec06dab1409d790496ce082dacb321392b32fe9
|
/clients/java-inflector/generated/src/gen/java/org/openapitools/model/ComAdobeGraniteBundlesHcImplWebDavBundleHealthCheckInfo.java
|
23b6c4b8bdfd9e2fbc77a2c602bd7044cfaa0273
|
[
"Apache-2.0"
] |
permissive
|
shinesolutions/swagger-aem-osgi
|
e9d2385f44bee70e5bbdc0d577e99a9f2525266f
|
c2f6e076971d2592c1cbd3f70695c679e807396b
|
refs/heads/master
| 2022-10-29T13:07:40.422092
| 2021-04-09T07:46:03
| 2021-04-09T07:46:03
| 190,217,155
| 3
| 3
|
Apache-2.0
| 2022-10-05T03:26:20
| 2019-06-04T14:23:28
| null |
UTF-8
|
Java
| false
| false
| 4,126
|
java
|
package org.openapitools.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openapitools.model.ComAdobeGraniteBundlesHcImplWebDavBundleHealthCheckProperties;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaInflectorServerCodegen", date = "2019-08-05T00:53:46.291Z[GMT]")
public class ComAdobeGraniteBundlesHcImplWebDavBundleHealthCheckInfo {
@JsonProperty("pid")
private String pid = null;
@JsonProperty("title")
private String title = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("properties")
private ComAdobeGraniteBundlesHcImplWebDavBundleHealthCheckProperties properties = null;
/**
**/
public ComAdobeGraniteBundlesHcImplWebDavBundleHealthCheckInfo pid(String pid) {
this.pid = pid;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("pid")
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
/**
**/
public ComAdobeGraniteBundlesHcImplWebDavBundleHealthCheckInfo title(String title) {
this.title = title;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("title")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
/**
**/
public ComAdobeGraniteBundlesHcImplWebDavBundleHealthCheckInfo description(String description) {
this.description = description;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("description")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
/**
**/
public ComAdobeGraniteBundlesHcImplWebDavBundleHealthCheckInfo properties(ComAdobeGraniteBundlesHcImplWebDavBundleHealthCheckProperties properties) {
this.properties = properties;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("properties")
public ComAdobeGraniteBundlesHcImplWebDavBundleHealthCheckProperties getProperties() {
return properties;
}
public void setProperties(ComAdobeGraniteBundlesHcImplWebDavBundleHealthCheckProperties properties) {
this.properties = properties;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ComAdobeGraniteBundlesHcImplWebDavBundleHealthCheckInfo comAdobeGraniteBundlesHcImplWebDavBundleHealthCheckInfo = (ComAdobeGraniteBundlesHcImplWebDavBundleHealthCheckInfo) o;
return Objects.equals(pid, comAdobeGraniteBundlesHcImplWebDavBundleHealthCheckInfo.pid) &&
Objects.equals(title, comAdobeGraniteBundlesHcImplWebDavBundleHealthCheckInfo.title) &&
Objects.equals(description, comAdobeGraniteBundlesHcImplWebDavBundleHealthCheckInfo.description) &&
Objects.equals(properties, comAdobeGraniteBundlesHcImplWebDavBundleHealthCheckInfo.properties);
}
@Override
public int hashCode() {
return Objects.hash(pid, title, description, properties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ComAdobeGraniteBundlesHcImplWebDavBundleHealthCheckInfo {\n");
sb.append(" pid: ").append(toIndentedString(pid)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
|
[
"cliffano@gmail.com"
] |
cliffano@gmail.com
|
1d1bec5d8fb4b46184e85fd4a9a0315615d374cd
|
680f7d92cc608cc6850cd5c150226aacbb419c06
|
/andEngineLib/src/main/java/org/andengine/util/adt/data/operator/CharOperator.java
|
a5b4663b4ffac06bbfc510c8016381768217a5e2
|
[] |
no_license
|
mnafian/IsometricMapExample
|
e002b3e165abb5e52ec13fb4f541de155688bbc0
|
9dc08b462f5ad02cf70eab16328437fe5c8ad141
|
refs/heads/master
| 2021-01-22T06:58:51.347531
| 2015-08-19T08:27:05
| 2015-08-19T08:27:05
| 35,424,784
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,499
|
java
|
package org.andengine.util.adt.data.operator;
/**
* (c) 2012 Zynga Inc.
*
* @author Nicolas Gramlich <ngramlich@zynga.com>
* @since 14:24:15 - 02.02.2012
*/
public enum CharOperator {
// ===========================================================
// Elements
// ===========================================================
EQUALS() {
@Override
public boolean check(final char pCharA, final char pCharB) {
return pCharA == pCharB;
}
},
NOT_EQUALS() {
@Override
public boolean check(final char pCharA, final char pCharB) {
return pCharA != pCharB;
}
},
LESS_THAN() {
@Override
public boolean check(final char pCharA, final char pCharB) {
return pCharA < pCharB;
}
},
LESS_OR_EQUAL_THAN() {
@Override
public boolean check(final char pCharA, final char pCharB) {
return pCharA <= pCharB;
}
},
MORE_THAN() {
@Override
public boolean check(final char pCharA, final char pCharB) {
return pCharA > pCharB;
}
},
MORE_OR_EQUAL_THAN() {
@Override
public boolean check(final char pCharA, final char pCharB) {
return pCharA >= pCharB;
}
};
// ===========================================================
// Constants
// ===========================================================
// ===========================================================
// Fields
// ===========================================================
// ===========================================================
// Constructors
// ===========================================================
// ===========================================================
// Getter & Setter
// ===========================================================
// ===========================================================
// Methods for/from SuperClass/Interfaces
// ===========================================================
public abstract boolean check(final char pCharA, final char pCharB);
// ===========================================================
// Methods
// ===========================================================
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================
}
|
[
"mnafian@icloud.com"
] |
mnafian@icloud.com
|
1cb30fbec1f3975a76dc8db018008e12c10aa7e9
|
c474b03758be154e43758220e47b3403eb7fc1fc
|
/apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/tinder/settings/presenter/ax.java
|
c7f988641acdb3c12df23c82c9c5a48a93176732
|
[] |
no_license
|
EstebanDalelR/tinderAnalysis
|
f80fe1f43b3b9dba283b5db1781189a0dd592c24
|
941e2c634c40e5dbf5585c6876ef33f2a578b65c
|
refs/heads/master
| 2020-04-04T09:03:32.659099
| 2018-11-23T20:41:28
| 2018-11-23T20:41:28
| 155,805,042
| 0
| 0
| null | 2018-11-18T16:02:45
| 2018-11-02T02:44:34
| null |
UTF-8
|
Java
| false
| false
| 366
|
java
|
package com.tinder.settings.presenter;
import com.tinder.settings.targets.SettingsTarget;
import rx.functions.Action1;
final /* synthetic */ class ax implements Action1 {
/* renamed from: a */
static final Action1 f58428a = new ax();
private ax() {
}
public void call(Object obj) {
((SettingsTarget) obj).showEmailSettings();
}
}
|
[
"jdguzmans@hotmail.com"
] |
jdguzmans@hotmail.com
|
a8727c6f7e75ad3ba8132d7fd71188433705a8f9
|
27511a2f9b0abe76e3fcef6d70e66647dd15da96
|
/src/com/instagram/android/directsharev2/b/cr.java
|
02416bee0c259cae97509c28d8a8a30cd6a0876d
|
[] |
no_license
|
biaolv/com.instagram.android
|
7edde43d5a909ae2563cf104acfc6891f2a39ebe
|
3fcd3db2c3823a6d29a31ec0f6abcf5ceca995de
|
refs/heads/master
| 2022-05-09T15:05:05.412227
| 2016-07-21T03:48:36
| 2016-07-21T03:48:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 314
|
java
|
package com.instagram.android.directsharev2.b;
import com.instagram.common.p.d;
import com.instagram.direct.d.k;
final class cr
implements d<k>
{
cr(dq paramdq) {}
}
/* Location:
* Qualified Name: com.instagram.android.directsharev2.b.cr
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
edeb198382470998c19a7eecb7d99d7745f907a2
|
f99b204f67c83840d762c6328c0b0a2654c4824f
|
/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/DescribeClustersRequest.java
|
0f26f72320d213880b13512c495dd2f713cb24fb
|
[
"Apache-2.0"
] |
permissive
|
huanmengmie/aliyun-openapi-java-sdk
|
1182efee7ef06751427e46f89edbc79f527e3676
|
0ee6d4d975fb2e51984c9e0423f304d044b0f445
|
refs/heads/master
| 2021-01-02T08:55:05.600370
| 2017-08-01T07:53:54
| 2017-08-01T07:53:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,326
|
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 com.aliyuncs.ecs.model.v20140526;
import com.aliyuncs.RpcAcsRequest;
/**
* @author auto create
* @version
*/
public class DescribeClustersRequest extends RpcAcsRequest<DescribeClustersResponse> {
public DescribeClustersRequest() {
super("Ecs", "2014-05-26", "DescribeClusters", "ecs");
}
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String ownerAccount;
public Long getOwnerId() {
return this.ownerId;
}
public void setOwnerId(Long ownerId) {
this.ownerId = ownerId;
putQueryParameter("OwnerId", ownerId);
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public void setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public void setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
putQueryParameter("ResourceOwnerId", resourceOwnerId);
}
public String getOwnerAccount() {
return this.ownerAccount;
}
public void setOwnerAccount(String ownerAccount) {
this.ownerAccount = ownerAccount;
putQueryParameter("OwnerAccount", ownerAccount);
}
@Override
public Class<DescribeClustersResponse> getResponseClass() {
return DescribeClustersResponse.class;
}
}
|
[
"ling.wu@alibaba-inc.com"
] |
ling.wu@alibaba-inc.com
|
ff8008fecfb9cd169062f95cd96d96c7198f70fe
|
7510960e0a6aea5206de97081fce823e282d6ca8
|
/monitorstat-assign/src/main/java/com/taobao/csp/assign/packet/RequestPacket.java
|
114bec55d684f3fd8b1751bd0a3fa449ec115824
|
[] |
no_license
|
sjywying/csp
|
ef8e348e2866643562edefc8b190e4994f3308ce
|
c4c858dd0b91dc41be4dd00b639601d23db8fd3a
|
refs/heads/master
| 2021-01-18T10:01:02.744898
| 2013-08-05T06:36:38
| 2013-08-05T06:36:38
| null | 0
| 0
| null | null | null | null |
WINDOWS-1252
|
Java
| false
| false
| 998
|
java
|
package com.taobao.csp.assign.packet;
import java.util.UUID;
/**
*
* @author xiaodu
* @version 2011-8-8 ÏÂÎç03:59:13
*/
public class RequestPacket extends BasePacket{
/**
*
*/
private static final long serialVersionUID = -2848878390462813040L;
public RequestPacket(String id,Object name,PacketType key){
super(key);
this.requestId = id;
this.resource = name;
}
public RequestPacket(PacketType key){
super(key);
}
public RequestPacket(Object name,PacketType key){
this(UUID.randomUUID().toString(),name,key);
}
private String requestId;
private Object resource;
public Object getResource() {
return resource;
}
public void setResource(Object resource) {
this.resource = resource;
}
public String getRequestId() {
return requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public String toString() {
return "requestId="+this.requestId+"resource="+this.resource;
}
}
|
[
"zunyan.zb@taobao.com"
] |
zunyan.zb@taobao.com
|
c69e582742898fe4f502762d7ef3a6b03ed32bbb
|
c46cea34e4cbbe9ad6ec8315cc0a996491f3980c
|
/core/src/main/java/org/yes/cart/promotion/impl/PromotionTesterImpl.java
|
41fd80237c9a79397aaa6f79f7d6fb4422c1ab53
|
[
"Apache-2.0"
] |
permissive
|
omge/yes-cart
|
cd1531664d49b28bf715b5eb3925de4966757c08
|
6ebba6ceb9243ddae3463da8f704919111da9f78
|
refs/heads/master
| 2020-08-28T20:11:45.802359
| 2019-10-24T15:42:11
| 2019-10-24T15:42:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,103
|
java
|
/*
* Copyright 2009 Denys Pavlov, Igor Azarnyi
*
* 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.yes.cart.promotion.impl;
import org.apache.commons.lang.StringUtils;
import org.yes.cart.domain.entity.CarrierSla;
import org.yes.cart.domain.entity.Shop;
import org.yes.cart.promotion.PromotionContextFactory;
import org.yes.cart.promotion.PromotionTester;
import org.yes.cart.service.domain.CarrierSlaService;
import org.yes.cart.service.domain.PriceService;
import org.yes.cart.service.domain.ShopService;
import org.yes.cart.shoppingcart.AmountCalculationStrategy;
import org.yes.cart.shoppingcart.ShoppingCart;
import org.yes.cart.shoppingcart.ShoppingCartCommand;
import org.yes.cart.shoppingcart.ShoppingCartCommandFactory;
import org.yes.cart.shoppingcart.impl.ShoppingCartImpl;
import org.yes.cart.utils.TimeContext;
import java.math.BigDecimal;
import java.time.Instant;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* User: denispavlov
* Date: 10/04/2018
* Time: 18:55
*/
public class PromotionTesterImpl implements PromotionTester {
private final ShopService shopService;
private final PriceService priceService;
private final PromotionContextFactory factory;
private final CarrierSlaService carrierSlaService;
private final AmountCalculationStrategy calculationStrategy;
private final ShoppingCartCommandFactory cartCommandFactory;
public PromotionTesterImpl(final ShopService shopService,
final PriceService priceService,
final PromotionContextFactory factory,
final CarrierSlaService carrierSlaService,
final AmountCalculationStrategy calculationStrategy,
final ShoppingCartCommandFactory cartCommandFactory) {
this.shopService = shopService;
this.priceService = priceService;
this.factory = factory;
this.carrierSlaService = carrierSlaService;
this.calculationStrategy = calculationStrategy;
this.cartCommandFactory = cartCommandFactory;
}
/** {@inheritDoc} */
@Override
public ShoppingCart testPromotions(final String shopCode,
final String currency,
final String language,
final String customer,
final String supplier,
final Map<String, BigDecimal> products,
final String shipping,
final List<String> coupons,
final Instant time) {
boolean setTime = time != null;
try {
if (setTime) {
TimeContext.setTime(time);
}
final Shop shop = this.shopService.getShopByCode(shopCode);
ensureNoCache(shop, currency);
final ShoppingCartImpl cart = new ShoppingCartImpl();
cart.initialise(calculationStrategy);
prepareDefaults(cart, shop.getMaster() != null ? shop.getMaster() : shop, currency, language);
loginCustomer(cart, customer);
addProductsToCart(cart, supplier, products);
addCouponsToCart(cart, coupons);
prepareShipping(cart);
setShippingMethod(cart, shipping);
return cart;
} finally {
if (setTime) {
TimeContext.clear();
}
}
}
private void ensureNoCache(final Shop shop, final String currency) {
// Ensure no cache
factory.refresh(shop.getCode(), currency);
priceService.refresh(shop.getCode(), currency);
if (shop.getMaster() != null) {
factory.refresh(shop.getMaster().getCode(), currency);
priceService.refresh(shop.getMaster().getCode(), currency);
}
}
private void prepareDefaults(final ShoppingCart cart, final Shop shop, final String currency, final String language) {
final Map<String, Object> params = new HashMap<>();
params.put(ShoppingCartCommand.CMD_SETSHOP, shop.getShopId());
params.put(ShoppingCartCommand.CMD_CHANGECURRENCY, currency);
params.put(ShoppingCartCommand.CMD_CHANGELOCALE, language);
params.put(ShoppingCartCommand.CMD_INTERNAL_SETIP, "127.0.0.1");
cartCommandFactory.execute(cart, params);
}
private void loginCustomer(final ShoppingCart cart, final String customer) {
if (StringUtils.isNotBlank(customer)) {
final Map<String, Object> params = new HashMap<>();
params.put(ShoppingCartCommand.CMD_LOGIN_P_EMAIL, customer);
params.put(ShoppingCartCommand.CMD_LOGIN_P_PASS, "promotest");
params.put("promoTestLoginCmd", "1");
cartCommandFactory.execute("promoTestLoginCmd", cart, params);
}
}
private void addProductsToCart(final ShoppingCart cart, final String supplier, final Map<String, BigDecimal> products) {
if (products != null) {
for (final Map.Entry<String, BigDecimal> product : products.entrySet()) {
final Map<String, Object> params = new HashMap<>();
params.put(ShoppingCartCommand.CMD_ADDTOCART, product.getKey());
if (product.getValue() != null) {
if (StringUtils.isNotBlank(supplier)) {
params.put(ShoppingCartCommand.CMD_P_SUPPLIER, supplier);
}
params.put(ShoppingCartCommand.CMD_P_QTY, product.getValue().toPlainString());
}
cartCommandFactory.execute(ShoppingCartCommand.CMD_ADDTOCART, cart, params);
}
}
}
private void addCouponsToCart(final ShoppingCart cart, final List<String> coupons) {
if (coupons != null) {
for (final String coupon : coupons) {
final Map<String, Object> params = new HashMap<>();
params.put(ShoppingCartCommand.CMD_ADDCOUPON, coupon);
cartCommandFactory.execute(ShoppingCartCommand.CMD_ADDCOUPON, cart, params);
}
}
}
private void prepareShipping(final ShoppingCart cart) {
final Map<String, Object> params = new HashMap<>();
params.put(ShoppingCartCommand.CMD_SPLITCARTITEMS, ShoppingCartCommand.CMD_SPLITCARTITEMS);
cartCommandFactory.execute(ShoppingCartCommand.CMD_SPLITCARTITEMS, cart, params);
}
private void setShippingMethod(final ShoppingCart cart, final String shipping) {
if (StringUtils.isNotBlank(shipping)) {
final CarrierSla carrierSla = carrierSlaService.findSingleByCriteria(" where e.guid = ?1", shipping);
if (carrierSla != null) {
final Map<String, Object> params = new HashMap<>();
final StringBuilder sla = new StringBuilder();
for (final String supplier : cart.getCartItemsSuppliers()) {
if (sla.length() > 0) {
sla.append('|');
}
sla.append(String.valueOf(carrierSla.getCarrierslaId())).append('-').append(supplier);
}
params.put(ShoppingCartCommand.CMD_SETCARRIERSLA, sla.toString());
cartCommandFactory.execute(ShoppingCartCommand.CMD_SETCARRIERSLA, cart, params);
}
}
}
}
|
[
"denis.v.pavlov@gmail.com"
] |
denis.v.pavlov@gmail.com
|
53d30a07adeb731ab516f490c800219aab413f3d
|
7cb43b74c14017a48fcfd9429accb34661b87763
|
/moderatorservice/src/main/java/com/imadelfetouh/moderatorservice/dal/queryexecuter/DeleteUserExecuter.java
|
8862886d1a8f0af9e830c092efaae6d210652da5
|
[] |
no_license
|
imadfetouh/moderatorservice
|
0dda587c6094a71c8ee9765a4cd57e4c2b4de9ab
|
c0590ba8f028faf8160a3c17946f9e4c1080b32c
|
refs/heads/main
| 2023-04-25T12:32:56.735038
| 2021-05-24T11:29:39
| 2021-05-24T11:29:39
| 358,835,242
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,090
|
java
|
package com.imadelfetouh.moderatorservice.dal.queryexecuter;
import com.imadelfetouh.moderatorservice.dal.configuration.QueryExecuter;
import com.imadelfetouh.moderatorservice.dal.ormmodel.User;
import com.imadelfetouh.moderatorservice.model.response.ResponseModel;
import com.imadelfetouh.moderatorservice.model.response.ResponseType;
import org.hibernate.Session;
import javax.persistence.Query;
public class DeleteUserExecuter implements QueryExecuter<Void> {
private String userId;
public DeleteUserExecuter(String userId) {
this.userId = userId;
}
@Override
public ResponseModel<Void> executeQuery(Session session) {
ResponseModel<Void> responseModel = new ResponseModel<>();
Query query = session.createQuery("SELECT u FROM User u WHERE u.userId = :userId");
query.setParameter("userId", userId);
User user = (User) query.getSingleResult();
session.delete(user);
session.getTransaction().commit();
responseModel.setResponseType(ResponseType.CORRECT);
return responseModel;
}
}
|
[
"imad.elfetouh@hotmail.com"
] |
imad.elfetouh@hotmail.com
|
8360980e877785175462f0473eabf4912d6db7e4
|
19f3e4df408f56e7f4fe20c8cdecedbd71d9887e
|
/37_java/classes-dex2jar/net/youmi/android/banner/g.java
|
3b478b3cbb1f7bb160ec07f810763d3b9af6a5f7
|
[] |
no_license
|
XuGuangHuiGit/softwareSecurity
|
5ed6dfe1316672a061dbe03bf235c452342b296f
|
9f1eb53d3e06751fe17dbf43a5d7a5fa95051313
|
refs/heads/master
| 2020-04-08T01:42:39.467579
| 2018-11-24T05:46:28
| 2018-11-24T05:46:28
| 158,906,469
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 747
|
java
|
package net.youmi.android.banner;
import android.os.Handler;
import android.os.Message;
class g
extends Handler
{
g(e parame) {}
public void handleMessage(Message paramMessage)
{
switch (paramMessage.what)
{
}
for (;;)
{
super.handleMessage(paramMessage);
return;
h localh = BannerManager.getBannerObject(e.a(this.a));
String str = localh.g();
if ((str == null) || (str.equals(""))) {
this.a.a(localh);
} else {
e.a(this.a, localh);
}
}
}
}
/* Location: C:\Users\guanghui\Desktop\软件安全\37\classes-dex2jar.jar
* Qualified Name: net.youmi.android.banner.g
* JD-Core Version: 0.7.0.1
*/
|
[
"xgh.bupt@gmail.com"
] |
xgh.bupt@gmail.com
|
3696b1c495ade19303bcbe7c03d902bcf3e4ec1b
|
1302a788aa73d8da772c6431b083ddd76eef937f
|
/WORKING_DIRECTORY/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/StaggeredGridLayoutManagerWrapContentTest.java
|
5021ecb7872bf6a714e87cd2b2e28bd39b059c04
|
[] |
no_license
|
rockduan/androidN-android-7.1.1_r28
|
b3c1bcb734225aa7813ab70639af60c06d658bf6
|
10bab435cd61ffa2e93a20c082624954c757999d
|
refs/heads/master
| 2021-01-23T03:54:32.510867
| 2017-03-30T07:17:08
| 2017-03-30T07:17:08
| 86,135,431
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,328
|
java
|
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.support.v7.widget;
import static android.support.v7.widget.BaseWrapContentWithAspectRatioTest.MeasureBehavior;
import static android.support.v7.widget.BaseWrapContentWithAspectRatioTest.WrapContentAdapter;
import static android.support.v7.widget.StaggeredGridLayoutManager.HORIZONTAL;
import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
import android.graphics.Rect;
import android.os.Build;
import android.support.test.filters.SdkSuppress;
import android.test.suitebuilder.annotation.MediumTest;
import android.view.Gravity;
import android.view.View;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.util.Arrays;
import java.util.List;
@MediumTest
@RunWith(Parameterized.class)
public class StaggeredGridLayoutManagerWrapContentTest extends BaseWrapContentTest {
int mOrientation = StaggeredGridLayoutManager.VERTICAL;
public StaggeredGridLayoutManagerWrapContentTest(Rect padding) {
super(new WrapContentConfig(false, false, padding));
}
@Parameterized.Parameters(name = "paddingRect={0}")
public static List<Rect> params() {
return Arrays.asList(
new Rect(0, 0, 0, 0),
new Rect(5, 0, 0, 0),
new Rect(0, 3, 0, 0),
new Rect(0, 0, 2, 0),
new Rect(0, 0, 0, 7),
new Rect(3, 5, 7, 11)
);
}
@SdkSuppress(minSdkVersion = Build.VERSION_CODES.M)
@Test
public void testUnspecifiedWithHint() throws Throwable {
unspecifiedWithHintTest(mOrientation == StaggeredGridLayoutManager.HORIZONTAL);
}
@Test
public void testSimple() throws Throwable {
TestedFrameLayout.FullControlLayoutParams lp =
mWrapContentConfig.toLayoutParams(WRAP_CONTENT, WRAP_CONTENT);
WrapContentAdapter adapter = new WrapContentAdapter(
new MeasureBehavior(10, 10, WRAP_CONTENT, WRAP_CONTENT),
new MeasureBehavior(10, 15, WRAP_CONTENT, WRAP_CONTENT),
new MeasureBehavior(10, 20, WRAP_CONTENT, WRAP_CONTENT),
new MeasureBehavior(20, 10, WRAP_CONTENT, WRAP_CONTENT)
);
Rect[] expected = new Rect[] {
new Rect(0, 0, 10, 10),
new Rect(20, 0, 30, 15),
new Rect(40, 0, 50, 20),
new Rect(0, 10, 20, 20)
};
layoutAndCheck(lp, adapter, expected, 60, 20);
}
@Test
public void testSimpleHorizontal() throws Throwable {
mOrientation = HORIZONTAL;
TestedFrameLayout.FullControlLayoutParams lp =
mWrapContentConfig.toLayoutParams(WRAP_CONTENT, WRAP_CONTENT);
WrapContentAdapter adapter = new WrapContentAdapter(
new MeasureBehavior(10, 10, WRAP_CONTENT, WRAP_CONTENT),
new MeasureBehavior(15, 10, WRAP_CONTENT, WRAP_CONTENT),
new MeasureBehavior(20, 10, WRAP_CONTENT, WRAP_CONTENT),
new MeasureBehavior(10, 20, WRAP_CONTENT, WRAP_CONTENT)
);
Rect[] expected = new Rect[] {
new Rect(0, 0, 10, 10),
new Rect(0, 20, 15, 30),
new Rect(0, 40, 20, 50),
new Rect(10, 0, 20, 20)
};
layoutAndCheck(lp, adapter, expected, 20, 60);
}
@Test
public void testUnspecifiedWidth() throws Throwable {
TestedFrameLayout.FullControlLayoutParams lp =
mWrapContentConfig.toLayoutParams(WRAP_CONTENT, WRAP_CONTENT);
lp.wSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);
WrapContentAdapter adapter = new WrapContentAdapter(
new MeasureBehavior(2000, 10, WRAP_CONTENT, WRAP_CONTENT),
new MeasureBehavior(500, 15, WRAP_CONTENT, WRAP_CONTENT),
new MeasureBehavior(400, 20, WRAP_CONTENT, WRAP_CONTENT),
new MeasureBehavior(50, 10, MATCH_PARENT, WRAP_CONTENT)
);
Rect[] expected = new Rect[] {
new Rect(0, 0, 2000, 10),
new Rect(2000, 0, 2500, 15),
new Rect(4000, 0, 4400, 20),
new Rect(0, 10, 2000, 20)
};
layoutAndCheck(lp, adapter, expected, 6000, 20);
}
@Test
public void testUnspecifiedHeight() throws Throwable {
TestedFrameLayout.FullControlLayoutParams lp =
mWrapContentConfig.toLayoutParams(WRAP_CONTENT, WRAP_CONTENT);
lp.hSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);
WrapContentAdapter adapter = new WrapContentAdapter(
new MeasureBehavior(10, 4000, WRAP_CONTENT, WRAP_CONTENT),
new MeasureBehavior(10, 5500, WRAP_CONTENT, WRAP_CONTENT),
new MeasureBehavior(10, 3000, WRAP_CONTENT, WRAP_CONTENT),
new MeasureBehavior(20, 100, WRAP_CONTENT, WRAP_CONTENT)
);
Rect[] expected = new Rect[] {
new Rect(0, 0, 10, 4000),
new Rect(20, 0, 30, 5500),
new Rect(40, 0, 50, 3000),
new Rect(40, 3000, 60, 3100)
};
layoutAndCheck(lp, adapter, expected, 60, 5500);
}
@Override
RecyclerView.LayoutManager createLayoutManager() {
return new StaggeredGridLayoutManager(3, mOrientation);
}
@Override
protected int getVerticalGravity(RecyclerView.LayoutManager layoutManager) {
return Gravity.TOP;
}
@Override
protected int getHorizontalGravity(RecyclerView.LayoutManager layoutManager) {
return Gravity.LEFT;
}
}
|
[
"duanliangsilence@gmail.com"
] |
duanliangsilence@gmail.com
|
a6d65998291ffc646cb1e8f4dcc8bb2f6aac7c6f
|
65a09e9f4450c6133e6de337dbba373a5510160f
|
/naifg28/src/main/java/co/simasoft/models/GroupIdsTypes.java
|
68455b1332bb136dbc6f66160b91b49f8f18e3d7
|
[] |
no_license
|
nelsonjava/simasoft
|
c0136cdf0c208a5e8d01ab72080330e4a15b1261
|
be83eb8ef67758be82bbd811b672572eff1910ee
|
refs/heads/master
| 2021-01-23T15:21:01.981277
| 2017-04-27T12:46:16
| 2017-04-27T12:46:16
| 27,980,384
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,162
|
java
|
package co.simasoft.models;
import java.io.Serializable;
import java.util.Set;
import java.util.HashSet;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Version;
import javax.persistence.GenerationType;
import javax.persistence.GeneratedValue;
import javax.persistence.FetchType;
import javax.persistence.Column;
import javax.persistence.Lob;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.Store;
import org.hibernate.search.annotations.Analyze;
import org.hibernate.search.annotations.DocumentId;
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Index;
import javax.persistence.OneToOne;
import javax.persistence.OneToMany;
import javax.persistence.ManyToOne;
import javax.persistence.ManyToMany;
import co.simasoft.models.*;
import org.hibernate.search.annotations.Resolution;
import org.hibernate.search.annotations.DateBridge;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
// @Indexed
@Entity
@XmlRootElement
public class GroupIdsTypes implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@DocumentId
@GeneratedValue(strategy = GenerationType.TABLE)
private Long id;
@Version
private Integer optlock;
private double orden;
@Lob
@Column(nullable = true, unique = false)
// @Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO)
private String observations;
@Column(nullable = false, unique = true)
// @Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO)
private String name;
@OneToMany(mappedBy = "groupIdsTypes")
private Set<GroupIds> groupIds = new HashSet<GroupIds>();
public GroupIdsTypes() {
}
public GroupIdsTypes(String name) {
this.name = name;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public Integer getOptlock() {
return this.optlock;
}
public void setOptlock(Integer optlock) {
this.optlock = optlock;
}
public double getOrden() {
return this.orden;
}
public void setOrden(double orden) {
this.orden = orden;
}
public String getObservations() {
return observations;
}
public void setObservations(String observations) {
this.observations = observations;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Set<GroupIds> getGroupIds() {
return groupIds;
}
public void setGroupIds(Set<GroupIds> groupIds) {
this.groupIds = groupIds;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((id == null) ? 0 : id.hashCode());
return result;
}
@Override
public boolean equals(Object ojt) {
if (this == ojt)
return true;
if (ojt == null)
return false;
if (getClass() != ojt.getClass())
return false;
GroupIdsTypes other = (GroupIdsTypes) ojt;
if (id == null) {
if (other.id != null) {
return false;
}
} else {
if (!id.equals(other.id)) {
return false;
}
}
return true;
}
} // entity
|
[
"nelsonjava@gmail.com"
] |
nelsonjava@gmail.com
|
7a60744810824ba9d79e8b47b5afb665225ad293
|
221ae276848ea422578b02d8e729376e8f8bb0ce
|
/src/com/tanishk/commonthings/SwapValues.java
|
c7a7d6885a7a9cb8bd7a8f0b81801e28389ba4f3
|
[] |
no_license
|
kchhipa4u/HotelBooking
|
f24a082b2b30665fa35519f73b9ed4aa01626ecd
|
123c0903b52eade9dc1bff34a44a05e1a244a0b4
|
refs/heads/master
| 2021-01-11T15:45:21.839980
| 2017-05-17T06:55:53
| 2017-05-17T06:55:53
| 79,922,865
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 223
|
java
|
package com.tanishk.commonthings;
public class SwapValues {
public static void main(String[] args) {
int x=10;
int y = 20;
int z = 0;
z=x;
x=y;
y=z;
System.out.println(x);
System.out.println(y);
}
}
|
[
"kchhipa4u@gmail.com"
] |
kchhipa4u@gmail.com
|
63e563ce3cb20275fcaeae5054d05c248ecfdb37
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/linkedmall-20180116/src/main/java/com/aliyun/linkedmall20180116/models/DeleteItemLimitRuleResponseBody.java
|
26361401e3c620f62d0b6b4bbfb50a6fe933ccfe
|
[
"Apache-2.0"
] |
permissive
|
aliyun/alibabacloud-java-sdk
|
83a6036a33c7278bca6f1bafccb0180940d58b0b
|
008923f156adf2e4f4785a0419f60640273854ec
|
refs/heads/master
| 2023-09-01T04:10:33.640756
| 2023-09-01T02:40:45
| 2023-09-01T02:40:45
| 288,968,318
| 40
| 45
| null | 2023-06-13T02:47:13
| 2020-08-20T09:51:08
|
Java
|
UTF-8
|
Java
| false
| false
| 1,429
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.linkedmall20180116.models;
import com.aliyun.tea.*;
public class DeleteItemLimitRuleResponseBody extends TeaModel {
@NameInMap("Code")
public String code;
@NameInMap("Message")
public String message;
@NameInMap("Model")
public Boolean model;
@NameInMap("RequestId")
public String requestId;
public static DeleteItemLimitRuleResponseBody build(java.util.Map<String, ?> map) throws Exception {
DeleteItemLimitRuleResponseBody self = new DeleteItemLimitRuleResponseBody();
return TeaModel.build(map, self);
}
public DeleteItemLimitRuleResponseBody setCode(String code) {
this.code = code;
return this;
}
public String getCode() {
return this.code;
}
public DeleteItemLimitRuleResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public DeleteItemLimitRuleResponseBody setModel(Boolean model) {
this.model = model;
return this;
}
public Boolean getModel() {
return this.model;
}
public DeleteItemLimitRuleResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
ba9aa64633e451a62546b08ee75d0844ef9e0789
|
828111a9183c38e87ba650b1fb09a2b2c98f6195
|
/Product/Production/Adapters/General/CONNECTAdapterWeb/src/main/java/gov/hhs/fha/nhinc/subdisc/entity/EntitySubjectDiscoveryImpl.java
|
6bf334f6f7f7250dd735f60554d6f877a7f9d56f
|
[] |
no_license
|
sahilshaikh89/CONNECT-Legacy
|
6a7f080087bd17420e0716305a1231a7825e7d8d
|
9b3b820bd151be403ba5e165dbf560061ccc5d6f
|
refs/heads/master
| 2021-01-19T10:12:21.372914
| 2012-02-20T20:14:26
| 2012-02-20T20:14:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,113
|
java
|
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2010(Year date of delivery) United States Government, as represented by the Secretary of Health and Human Services. All rights reserved.
*
*/
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package gov.hhs.fha.nhinc.subdisc.entity;
import gov.hhs.fha.nhinc.common.nhinccommon.AssertionType;
import gov.hhs.fha.nhinc.connectmgr.ConnectionManagerCache;
import gov.hhs.fha.nhinc.entitysubjectdiscoverysecured.EntitySubjectDiscoverySecured;
import gov.hhs.fha.nhinc.entitysubjectdiscoverysecured.EntitySubjectDiscoverySecuredPortType;
import gov.hhs.fha.nhinc.nhinclib.NhincConstants;
import gov.hhs.fha.nhinc.saml.extraction.SamlTokenCreator;
import java.util.Map;
import javax.xml.ws.BindingProvider;
import org.hl7.v3.MCCIIN000002UV01;
import org.hl7.v3.PIXConsumerPRPAIN201301UVRequestType;
import org.hl7.v3.PIXConsumerPRPAIN201301UVSecuredRequestType;
import org.hl7.v3.PIXConsumerPRPAIN201302UVRequestType;
import org.hl7.v3.PIXConsumerPRPAIN201302UVSecuredRequestType;
import org.hl7.v3.PIXConsumerPRPAIN201304UVRequestType;
import org.hl7.v3.PIXConsumerPRPAIN201309UVRequestType;
import org.hl7.v3.PIXConsumerPRPAIN201309UVResponseType;
import org.hl7.v3.PIXConsumerPRPAIN201309UVSecuredRequestType;
/**
*
* @author jhoppesc
*/
public class EntitySubjectDiscoveryImpl {
private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(EntitySubjectDiscoveryImpl.class);
private static EntitySubjectDiscoverySecured service = new EntitySubjectDiscoverySecured();
public MCCIIN000002UV01 pixConsumerPRPAIN201301UV(PIXConsumerPRPAIN201301UVRequestType request) {
MCCIIN000002UV01 ack = new MCCIIN000002UV01();
try {
String url = ConnectionManagerCache.getLocalEndpointURLByServiceName(NhincConstants.ENTITY_SUBJECT_DISCOVERY_SECURED_SERVICE_NAME);
EntitySubjectDiscoverySecuredPortType port = getPort(url);
AssertionType assertIn = request.getAssertion();
SamlTokenCreator tokenCreator = new SamlTokenCreator();
Map requestContext = tokenCreator.CreateRequestContext(assertIn, url, NhincConstants.SUBJECT_DISCOVERY_ACTION);
((BindingProvider) port).getRequestContext().putAll(requestContext);
PIXConsumerPRPAIN201301UVSecuredRequestType body = new PIXConsumerPRPAIN201301UVSecuredRequestType();
body.setPRPAIN201301UV02(request.getPRPAIN201301UV02());
body.setNhinTargetCommunities(request.getNhinTargetCommunities());
ack = port.pixConsumerPRPAIN201301UV(body);
}
catch (Exception ex) {
log.error("Failed to send entity subject discovery from proxy EJB to secure interface: " + ex.getMessage(), ex);
}
return ack;
}
public MCCIIN000002UV01 pixConsumerPRPAIN201302UV(PIXConsumerPRPAIN201302UVRequestType request) {
MCCIIN000002UV01 ack = new MCCIIN000002UV01();
try {
String url = ConnectionManagerCache.getLocalEndpointURLByServiceName(NhincConstants.ENTITY_SUBJECT_DISCOVERY_SECURED_SERVICE_NAME);
EntitySubjectDiscoverySecuredPortType port = getPort(url);
AssertionType assertIn = request.getAssertion();
SamlTokenCreator tokenCreator = new SamlTokenCreator();
Map requestContext = tokenCreator.CreateRequestContext(assertIn, url, NhincConstants.SUBJECT_DISCOVERY_ACTION);
((BindingProvider) port).getRequestContext().putAll(requestContext);
PIXConsumerPRPAIN201302UVSecuredRequestType body = new PIXConsumerPRPAIN201302UVSecuredRequestType();
body.setPRPAIN201302UV02(request.getPRPAIN201302UV02());
body.setNhinTargetCommunities(request.getNhinTargetCommunities());
ack = port.pixConsumerPRPAIN201302UV(body);
}
catch (Exception ex) {
log.error("Failed to send entity subject discovery from proxy EJB to secure interface: " + ex.getMessage(), ex);
}
return ack;
}
public MCCIIN000002UV01 pixConsumerPRPAIN201304UV(PIXConsumerPRPAIN201304UVRequestType request) {
//TODO implement this method
throw new UnsupportedOperationException("Not implemented yet.");
}
public PIXConsumerPRPAIN201309UVResponseType pixConsumerPRPAIN201309UV(PIXConsumerPRPAIN201309UVRequestType request) {
PIXConsumerPRPAIN201309UVResponseType response = new PIXConsumerPRPAIN201309UVResponseType();
try {
String url = ConnectionManagerCache.getLocalEndpointURLByServiceName(NhincConstants.ENTITY_SUBJECT_DISCOVERY_SECURED_SERVICE_NAME);
EntitySubjectDiscoverySecuredPortType port = getPort(url);
AssertionType assertIn = request.getAssertion();
SamlTokenCreator tokenCreator = new SamlTokenCreator();
Map requestContext = tokenCreator.CreateRequestContext(assertIn, url, NhincConstants.SUBJECT_DISCOVERY_ACTION);
((BindingProvider) port).getRequestContext().putAll(requestContext);
PIXConsumerPRPAIN201309UVSecuredRequestType body = new PIXConsumerPRPAIN201309UVSecuredRequestType();
body.setPRPAIN201309UV02(request.getPRPAIN201309UV02());
body.setNhinTargetCommunities(request.getNhinTargetCommunities());
response = port.pixConsumerPRPAIN201309UV(body);
}
catch (Exception ex) {
log.error("Failed to send entity subject discovery from proxy EJB to secure interface: " + ex.getMessage(), ex);
}
return response;
}
private EntitySubjectDiscoverySecuredPortType getPort(String url) {
EntitySubjectDiscoverySecuredPortType port = service.getEntitySubjectDiscoverySecuredPortSoap();
log.info("Setting endpoint address to Entity Subject Discovery Secured Service to " + url);
((BindingProvider) port).getRequestContext().put(javax.xml.ws.BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url);
return port;
}
}
|
[
"sgirrinki@yahoo.com"
] |
sgirrinki@yahoo.com
|
daa2a1c59ca76de465b5846543d258e94e11a4a2
|
3ca53c13d2953805c00406476ceda9684887a8ad
|
/src/com/iwxxm/taf/MDRangeDimensionType.java
|
7ccb5c7c7f3365f6c5e18628cfe922a2d5c3a62f
|
[] |
no_license
|
yw2017051032/tac2iwxxm
|
ae93c12b08b7316cd59de032d4ae2e8082bc6c0b
|
5a08cb9ecd0833fd4435bf6db81a2b8126380ec1
|
refs/heads/master
| 2020-03-17T03:03:06.671868
| 2018-06-05T16:55:59
| 2018-06-05T17:06:03
| 133,217,637
| 3
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 2,973
|
java
|
//
// 此文件是由 JavaTM Architecture for XML Binding (JAXB) 引用实现 v2.2.8-b130911.1802 生成的
// 请访问 <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 在重新编译源模式时, 对此文件的所有修改都将丢失。
// 生成时间: 2018.04.04 时间 07:08:22 PM CST
//
package com.iwxxm.taf;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* Set of adjacent wavelengths in the electro-magnetic spectrum with a common characteristic, such as the visible band
*
* <p>MD_RangeDimension_Type complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* <complexType name="MD_RangeDimension_Type">
* <complexContent>
* <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
* <sequence>
* <element name="sequenceIdentifier" type="{http://www.isotc211.org/2005/gco}MemberName_PropertyType" minOccurs="0"/>
* <element name="descriptor" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MD_RangeDimension_Type", namespace = "http://www.isotc211.org/2005/gmd", propOrder = {
"sequenceIdentifier",
"descriptor"
})
@XmlSeeAlso({
MDBandType.class
})
public class MDRangeDimensionType
extends AbstractObjectType
{
protected MemberNamePropertyType sequenceIdentifier;
protected CharacterStringPropertyType descriptor;
/**
* 获取sequenceIdentifier属性的值。
*
* @return
* possible object is
* {@link MemberNamePropertyType }
*
*/
public MemberNamePropertyType getSequenceIdentifier() {
return sequenceIdentifier;
}
/**
* 设置sequenceIdentifier属性的值。
*
* @param value
* allowed object is
* {@link MemberNamePropertyType }
*
*/
public void setSequenceIdentifier(MemberNamePropertyType value) {
this.sequenceIdentifier = value;
}
/**
* 获取descriptor属性的值。
*
* @return
* possible object is
* {@link CharacterStringPropertyType }
*
*/
public CharacterStringPropertyType getDescriptor() {
return descriptor;
}
/**
* 设置descriptor属性的值。
*
* @param value
* allowed object is
* {@link CharacterStringPropertyType }
*
*/
public void setDescriptor(CharacterStringPropertyType value) {
this.descriptor = value;
}
}
|
[
"852406820@qq.com"
] |
852406820@qq.com
|
abe56e89b3b08782061c30170f20a3638301aca2
|
02533ed4e8c8e15d4b60d9804a57a29c8c82825b
|
/scrati/common/src/main/java/com/hq/scrati/common/constants/trade/PayChannels.java
|
2087ceeb599b8dc952b6d5e5676620bae2ae5f7c
|
[] |
no_license
|
douglashu/hq-forecast
|
804449d11c5e39f0cfa110214b6431d1d7ac8e23
|
7aa8d9c459d4aa1e62ed3827e1f951773ac249a9
|
refs/heads/master
| 2021-06-15T15:19:14.566905
| 2017-04-12T07:54:17
| 2017-04-12T07:54:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,356
|
java
|
package com.hq.scrati.common.constants.trade;
import org.springframework.util.StringUtils;
import java.util.regex.Pattern;
/**
* Created by zhaoyang on 10/5/16.
*/
public class PayChannels {
public static final PayChannel WEIXIN_PAY = new PayChannel("微信支付", "WEIXIN_PAY", 1, 18, "13", "Wx");
public static final PayChannel ALI_PAY = new PayChannel("支付宝", "ALIPAY", 2, 18, "28", "Ali");
public static final PayChannel UNION_PAY = new PayChannel("银联钱包", "UNION_PAY", 4, 21, "1010", "Union");
public static final PayChannel TEN_PAY = new PayChannel("QQ钱包", "TEN_PAY", 8, 18, "91", "Ten");
public static final PayChannel BAIDU_WALLET = new PayChannel("百度钱包", "BAIDU_PAY", 16, 18, "31", "Baidu");
public static final PayChannel JD_PAY = new PayChannel("京东钱包", "JD_PAY", 32, 18, "18", "Jd");
public static final PayChannel[] ALL = new PayChannel[] {
WEIXIN_PAY, ALI_PAY, UNION_PAY, TEN_PAY, BAIDU_WALLET, JD_PAY
};
public static PayChannel fromAuthCode(String authCode) {
if(!StringUtils.isEmpty(authCode)) {
if (WEIXIN_PAY.checkPayCode(authCode)) return WEIXIN_PAY;
if (ALI_PAY.checkPayCode(authCode)) return ALI_PAY;
if (UNION_PAY.checkPayCode(authCode)) return UNION_PAY;
if (TEN_PAY.checkPayCode(authCode)) return TEN_PAY;
if (BAIDU_WALLET.checkPayCode(authCode)) return BAIDU_WALLET;
if (JD_PAY.checkPayCode(authCode)) return JD_PAY;
}
return null;
}
public static PayChannel fromString(String string) {
if(StringUtils.isEmpty(string)) return null;
switch (string) {
case "WEIXIN_PAY":
return WEIXIN_PAY;
case "ALIPAY":
return ALI_PAY;
case "UNION_PAY":
return UNION_PAY;
case "TEN_PAY":
return TEN_PAY;
case "BAIDU_PAY":
return BAIDU_WALLET;
case "JD_PAY":
return JD_PAY;
default:
return null;
}
}
public static PayChannel fromValue(Integer value) {
if(value == null) return null;
switch (value) {
case 1:
return WEIXIN_PAY;
case 2:
return ALI_PAY;
case 4:
return UNION_PAY;
case 8:
return TEN_PAY;
case 16:
return BAIDU_WALLET;
case 32:
return JD_PAY;
default:
return null;
}
}
public static class PayChannel {
private String name;
private String code;
private Integer value;
private Integer payCodeLength;
private String payCodeStartsWith;
private String beanPrefix;
@Override
public String toString() {
return getName();
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PayChannel that = (PayChannel) o;
return value.equals(that.value);
}
@Override
public int hashCode() {
return value.hashCode();
}
public PayChannel() { }
public PayChannel(String name, String code, Integer value
, Integer payCodeLength, String payCodeStartsWith, String beanPrefix) {
this.name = name;
this.code = code;
this.value = value;
this.payCodeLength = payCodeLength;
this.payCodeStartsWith = payCodeStartsWith;
this.beanPrefix = beanPrefix;
}
public boolean checkPayCode(String payCode) {
if(!isSpecNumber(payCode, this.payCodeLength)) return false;
return payCode.startsWith(this.payCodeStartsWith);
}
private static boolean isSpecNumber(String str, int specLen) {
if(StringUtils.isEmpty(str)) return false;
Pattern pattern = Pattern.compile(("^[0-9]{" + specLen + "}$"));
return pattern.matcher(str).matches();
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public Integer getValue() {
return value;
}
public void setValue(Integer value) {
this.value = value;
}
public Integer getPayCodeLength() {
return payCodeLength;
}
public void setPayCodeLength(Integer payCodeLength) {
this.payCodeLength = payCodeLength;
}
public String getPayCodeStartsWith() {
return payCodeStartsWith;
}
public void setPayCodeStartsWith(String payCodeStartsWith) {
this.payCodeStartsWith = payCodeStartsWith;
}
public String getBeanPrefix() {
return beanPrefix;
}
public void setBeanPrefix(String beanPrefix) {
this.beanPrefix = beanPrefix;
}
}
}
|
[
"46773109@qq.com"
] |
46773109@qq.com
|
2af8a4b08b21aab43e17074e058f86599fc8bc87
|
79634ad85055b371c1d483834b92ca6d0fe89e40
|
/.history/src/main/java/fr/kevindvz/App_20201021153704.java
|
9e915a96cf6fef8b58afce9f439ec047e07cb538
|
[] |
no_license
|
KevinDvZ/kataDojo
|
d2d2189d4aed2a4a05099002e26de81c8d0bcd35
|
a635199f416f187a1fec8a8dd4a360c8e161a36f
|
refs/heads/main
| 2023-01-08T11:06:28.901320
| 2020-11-04T14:57:02
| 2020-11-04T14:57:02
| 310,032,025
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 523
|
java
|
package fr.kevindvz;
/**
* Hello world!
*/
public final class App {
private App() {
}
/**
* Says hello to the world.
* @param args The arguments of the program.
*/
public static void main(String[] args) {
System.out.println("Hello World!");
public boolean leapYearTest(int anneeTestee) {
boolean resultat;
if (anneeTestee % 4 == 0) {
resultat = true;
} else {
resultat = false;
return resultat;
}
}
}
|
[
"kevin.deveza@gmail.com"
] |
kevin.deveza@gmail.com
|
723feadd2abbe0722a46992f9965585a20aaa890
|
46ae277c6c3e797513ebd5aacb0b2e7f9f7c2491
|
/Android/src/org/celstec/arlearn2/android/genItemActivities/YoutubeObjectActivity.java
|
1f0c551e48432495463c199b40d7ce1079cd28c7
|
[] |
no_license
|
tedwp/arlearn
|
041e4406f474b5c8af1ff7235702c26deaf3ddd2
|
3ac6d3f772c7f15f396f8551bf1b37a16878b79a
|
refs/heads/master
| 2021-01-10T02:58:40.537198
| 2014-04-24T07:56:11
| 2014-04-24T07:56:11
| 48,293,742
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,273
|
java
|
/*******************************************************************************
* Copyright (C) 2013 Open Universiteit Nederland
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*
* Contributors: Stefaan Ternier
******************************************************************************/
package org.celstec.arlearn2.android.genItemActivities;
import java.util.StringTokenizer;
import org.celstec.arlearn2.android.R;
import org.celstec.arlearn2.beans.generalItem.GeneralItem;
import org.celstec.arlearn2.beans.generalItem.NarratorItem;
import org.celstec.arlearn2.beans.generalItem.YoutubeObject;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
public class YoutubeObjectActivity extends NarratorItemActivity {
private ImageView startVideoImage;
private boolean firststart = false;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (!firststart) {
firststart = true;
startVideo();
}
startVideoImage.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
startVideo();
}
});
}
private void startVideo() {
// startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(getVideoObject().getYoutubeUrl())));
String url = getVideoObject().getYoutubeUrl();
String id = null;
if (url.startsWith("http://www.youtube.com") || url.startsWith("https://www.youtube.com")) {
url = url.substring(url.indexOf("?")+1);
if (url == null) url = "";
StringTokenizer st = new StringTokenizer(url, "&");
while (st.hasMoreTokens()) {
StringTokenizer st2 = new StringTokenizer(st.nextToken(), "=");
while (st2.hasMoreTokens()) {
if (st2.nextToken().equals("v"))
id = st2.nextToken();
}
}
}
if (id != null) {
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube:"+id));
startActivity(i);
}
}
protected int getContentView() {
return R.layout.gi_detail_videoobject;
}
protected void getGuiComponents() {
super.getGuiComponents();
startVideoImage = (ImageView) findViewById(R.id.startVideo);
}
private YoutubeObject getVideoObject() {
return (YoutubeObject) narratorBean;
}
// protected void unpackDataFromIntent() {
// GeneralItem gi = (GeneralItem) getIntent().getExtras().getSerializable("generalItem");
// narratorBean = (YoutubeObject) gi; //TODO check cast
// }
@Override
public YoutubeObject getGeneralItem() {
return (YoutubeObject) narratorBean;
}
@Override
public void setGeneralItem(GeneralItem gi) {
narratorBean = (YoutubeObject) gi;
}
}
|
[
"stefaan.ternier@gmail.com"
] |
stefaan.ternier@gmail.com
|
705515bc27d80d6b08a8154ead43011b7b7100cb
|
83c7668f1c06053f8382c62af19b6b94246c9a2a
|
/nsgl/src/nsgl/xml/XMLDocument.java
|
fc949f6e8e7966c290b82223cb829f668613f72a
|
[] |
no_license
|
jgomezpe/nsgl-old
|
4cfb4aa9792c8179c6f6b5a4d6cf0767b27e23cb
|
899005b7e28a0d058d8084fc25fe374899e5333d
|
refs/heads/master
| 2022-01-11T19:35:30.059381
| 2019-07-16T03:04:23
| 2019-07-16T03:04:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,902
|
java
|
package nsgl.xml;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
//
//Unalcol core structure Pack 1.0 by Jonatan Gomez-Perdomo
//https://github.com/jgomezpe/unalcol/tree/master/core/
//
/**
*
* XMLDocument
* <p>Unalcol version of a XML document node.</p>
*
* <P>
* <A HREF="https://github.com/jgomezpe/unalcol/tree/master/core/src/unalcol/xml/XMLDocument.java" target="_blank">
* Source code </A> is available.
*
* <h3>License</h3>
*
* Copyright (c) 2014 by Jonatan Gomez-Perdomo. <br>
* All rights reserved. <br>
*
* <p>Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* <ul>
* <li> Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* <li> 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.
* <li> Neither the name of the copyright owners, their employers, nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
* </ul>
* <p>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 OWNERS 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.
*
*
*
* @author <A HREF="http://disi.unal.edu.co/profesores/jgomezpe"> Jonatan Gomez-Perdomo </A>
* (E-mail: <A HREF="mailto:jgomezpe@unal.edu.co">jgomezpe@unal.edu.co</A> )
* @version 1.0
*/
public class XMLDocument extends XMLElementWrap{
protected static InputStream init( URL url ) throws IOException{ return url.openStream(); }
protected static InputStream init(String url, String xmlFile) throws IOException{ return XMLUtil.is(url,xmlFile); }
public XMLDocument(String url, String xmlFile) throws IOException{ this(init(url,xmlFile)); }
public XMLDocument(URL url) throws IOException{ this( init(url) ); }
public XMLDocument(InputStream is) throws IOException{
super( XMLUtil.load(is).getDocumentElement() );
is.close();
}
public XMLDocument(String xmlStr){ super( XMLUtil.load(xmlStr).getDocumentElement() ); }
}
|
[
"jgomezpe@unal.edu.co"
] |
jgomezpe@unal.edu.co
|
3fa0641baac51ddcb0e43ac7da1295ab18a9ce35
|
f009dc33f9624aac592cb66c71a461270f932ffa
|
/src/main/java/com/alipay/api/domain/MybankCreditUserRoleCreateModel.java
|
dab77217f2ee1aff125ee784676ba4aa76fe973c
|
[
"Apache-2.0"
] |
permissive
|
1093445609/alipay-sdk-java-all
|
d685f635af9ac587bb8288def54d94e399412542
|
6bb77665389ba27f47d71cb7fa747109fe713f04
|
refs/heads/master
| 2021-04-02T16:49:18.593902
| 2020-03-06T03:04:53
| 2020-03-06T03:04:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,920
|
java
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 创建网商会员
*
* @author auto create
* @since 1.0, 2017-09-25 21:10:11
*/
public class MybankCreditUserRoleCreateModel extends AlipayObject {
private static final long serialVersionUID = 4275172177678145783L;
/**
* 客户身份编码-个人是身份证号码、企业是工商注册号、会员是会员编号-具体的数字编号
*/
@ApiField("entity_code")
private String entityCode;
/**
* 客户身份标识-个人是姓名、企业是公司名称、会员是会员名称,如支付宝的手机号或者邮箱号
*/
@ApiField("entity_name")
private String entityName;
/**
* 客户身份类型-个人是PERSON、企业是COMPAY、会员是具体的站点如ALIPAY或者MYBANK
*/
@ApiField("entity_type")
private String entityType;
/**
* 扩展数据(map转换为json字符串)
*/
@ApiField("ext_data")
private String extData;
/**
* 业务场景,7-代表网商贷在开放平台对外开放
*/
@ApiField("scene_type")
private String sceneType;
public String getEntityCode() {
return this.entityCode;
}
public void setEntityCode(String entityCode) {
this.entityCode = entityCode;
}
public String getEntityName() {
return this.entityName;
}
public void setEntityName(String entityName) {
this.entityName = entityName;
}
public String getEntityType() {
return this.entityType;
}
public void setEntityType(String entityType) {
this.entityType = entityType;
}
public String getExtData() {
return this.extData;
}
public void setExtData(String extData) {
this.extData = extData;
}
public String getSceneType() {
return this.sceneType;
}
public void setSceneType(String sceneType) {
this.sceneType = sceneType;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
a779ee62a8261c84d21258b2747a21b7a5079564
|
c3381ece1e660f2d626480152349262a511aefb5
|
/icefrog-core/src/main/java/com/whaleal/icefrog/core/bean/copier/provider/BeanValueProvider.java
|
7a2413fcbf464a2429f1c2e0056d3800ece3b882
|
[
"Apache-2.0"
] |
permissive
|
whaleal/icefrog
|
775e02be5b2fc8d04df1dd490aa765232cb0e6a4
|
c8dc384a3de1ed17077ff61ba733b1e2f37e32ab
|
refs/heads/v1-dev
| 2022-07-27T01:27:52.624849
| 2022-06-20T13:38:12
| 2022-06-20T13:38:12
| 414,203,703
| 9
| 5
|
Apache-2.0
| 2022-06-20T14:08:57
| 2021-10-06T12:30:31
|
Java
|
UTF-8
|
Java
| false
| false
| 2,186
|
java
|
package com.whaleal.icefrog.core.bean.copier.provider;
import com.whaleal.icefrog.core.bean.BeanUtil;
import com.whaleal.icefrog.core.bean.PropDesc;
import com.whaleal.icefrog.core.bean.copier.ValueProvider;
import com.whaleal.icefrog.core.util.StrUtil;
import java.lang.reflect.Type;
import java.util.Map;
/**
* Bean的值提供者
*
* @author Looly
* @author wh
*/
public class BeanValueProvider implements ValueProvider<String> {
final Map<String, PropDesc> sourcePdMap;
private final Object source;
private final boolean ignoreError;
/**
* 构造方法
*
* @param bean Bean
* @param ignoreCase 是否忽略字段大小写
* @param ignoreError 是否忽略字段值读取错误
*/
public BeanValueProvider( Object bean, boolean ignoreCase, boolean ignoreError ) {
this.source = bean;
this.ignoreError = ignoreError;
sourcePdMap = BeanUtil.getBeanDesc(source.getClass()).getPropMap(ignoreCase);
}
@Override
public Object value( String key, Type valueType ) {
final PropDesc sourcePd = getPropDesc(key, valueType);
Object result = null;
if (null != sourcePd) {
result = sourcePd.getValue(this.source, valueType, this.ignoreError);
}
return result;
}
@Override
public boolean containsKey( String key ) {
final PropDesc sourcePd = getPropDesc(key, null);
// 字段描述不存在或忽略读的情况下,表示不存在
return null != sourcePd && sourcePd.isReadable(false);
}
/**
* 获得属性描述
*
* @param key 字段名
* @param valueType 值类型,用于判断是否为Boolean,可以为null
* @return 属性描述
*/
private PropDesc getPropDesc( String key, Type valueType ) {
PropDesc sourcePd = sourcePdMap.get(key);
if (null == sourcePd && (null == valueType || Boolean.class == valueType || boolean.class == valueType)) {
//boolean类型字段字段名支持两种方式
sourcePd = sourcePdMap.get(StrUtil.upperFirstAndAddPre(key, "is"));
}
return sourcePd;
}
}
|
[
"hbn.king@gmail.com"
] |
hbn.king@gmail.com
|
7963b169f8010e5d5adab189c56242cdbdcbb523
|
c4b8b3ae751eb704e4a2b0878eee852c8f6de3ba
|
/HomeShoppingMall/HomeShoppingMallForUser/app/src/main/java/app/cn/extra/mall/user/vo/AddPayPassword.java
|
692fcbc77fbbd01acc88041b640dd196ebc6147a
|
[
"Apache-2.0"
] |
permissive
|
xuanlv886/Android
|
335a577f7db1663015cf75e4184ec31f5eb5e6ae
|
2d979edae5c2b22e837bf1afb95c956d86bf3b8a
|
refs/heads/master
| 2020-03-31T08:01:31.928776
| 2018-10-08T09:31:38
| 2018-10-08T09:33:47
| 152,042,321
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,410
|
java
|
package app.cn.extra.mall.user.vo;
/**
* Created by Administrator on 2018/3/19 0019.
*/
public class AddPayPassword {
/**
* errorString :
* flag : true
* data : {"errorString":"支付密码已存在","status":"false"}
*/
private String errorString;
private String flag;
private DataBean data;
public String getErrorString() {
return errorString;
}
public void setErrorString(String errorString) {
this.errorString = errorString;
}
public String getFlag() {
return flag;
}
public void setFlag(String flag) {
this.flag = flag;
}
public DataBean getData() {
return data;
}
public void setData(DataBean data) {
this.data = data;
}
public static class DataBean {
/**
* errorString : 支付密码已存在
* status : false
*/
private String errorString;
private String status;
public String getErrorString() {
return errorString;
}
public void setErrorString(String errorString) {
this.errorString = errorString;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
}
}
|
[
"liuziyu886"
] |
liuziyu886
|
b054f19903db31fda047586c10886b59affbd3ca
|
68cbdb33d93cab638c74bfac39afb8de946f61ad
|
/src/main/java/com/iiht/training/eloan/entity/Users.java
|
bc885535eab06f45d757e566e6c4ed75524cdeda
|
[] |
no_license
|
anandkumark024/SBA2
|
c566b40c03751856591a6cad4a16b62488d8aeb2
|
be17989006dec0d1362d1ee2331dcc4a9447495f
|
refs/heads/master
| 2023-01-31T21:01:55.873918
| 2020-12-03T14:44:33
| 2020-12-03T14:44:33
| 318,198,800
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,169
|
java
|
package com.iiht.training.eloan.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
@Entity
@Table(name="loan_nusr")
public class Users {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name="firstName")
@NotNull(message="firstName is mandatory")
@NotBlank(message="firstName can not be null")
@Size(min=3,max=100,message="firstName must be 4 to 50 chars in length")
private String firstName;
@Column(name="lastName")
@NotNull(message="lastName is mandatory")
@NotBlank(message="lastName can not be null")
@Size(min=3,max=100,message="lastName must be 4 to 50 chars in length")
private String lastName;
@Column(name="email")
@NotNull(message="Mail Id is mandate")
@NotBlank(message="Mail Id is mandate")
@Email(message = "Email Id is not valied")
private String email;
@Column(name="mobile")
@NotNull(message="Mobile number is mandate")
@NotBlank(message="Mobile number is mandate")
@Pattern(regexp = "[1-9][0-9]{9}",message = "Mobile number must be exactly ten digits")
private String mobile;
@Column(name="role")
private String role;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getMobile() {
return mobile;
}
public void setMobile(String mobile) {
this.mobile = mobile;
}
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
}
|
[
"dell@dell-PC"
] |
dell@dell-PC
|
601f82744f8ba8696897ee63a521c2b42bfd7e59
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Math/38/org/apache/commons/math/util/FastMath_ulp_3031.java
|
4d72e9b406613eb92640a34d7bb1a29eb8a41f90
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 5,292
|
java
|
org apach common math util
faster accur portabl altern link math
link strict math strictmath larg scale comput
fast math fastmath drop replac math strict math strictmath
mean method math code math sin
code math cbrt user directli chang
method code fast math fastmath sin code fast math fastmath cbrt
previou
fast math fastmath speed achiev reli heavili optim compil
code present jvm todai larg tabl
larger tabl lazili initialis setup
time penalis method
note fast math fastmath
extens insid apach common math call algorithm
overhead tabl intialis occur
end user call fast math fastmath method directli
perform figur specif jvm hardwar evalu
run fast math test perform fastmathtestperform test test directori sourc
distribut
fast math fastmath accuraci independ jvm reli
ieee basic oper embed tabl oper
accur ulp domain rang statement
rough global observ behavior
guarante number input william kahan'
href http wikipedia org wiki round tabl maker 27 dilemma tabl
maker' dilemma
fast math fastmath addition method found math strict math strictmath
link asinh
link acosh
link atanh
method found math strict math strictmath provid
fast math fastmath java virtual machin
link copi sign copysign
link expon getexpon
link nextaft
link nextup
link scalb
link copi sign copysign
link expon getexpon
link nextaft
link nextup
link scalb
version
fast math fastmath
comput signific bit unit posit number
param number ulp request
ulp
ulp
doubl infinit isinfinit
doubl posit infin
ab doubl bit doubl longbitstodoubl doubl long bit doubletolongbit
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
91939ea4e9af1f73bfe9e158bc793186f2e3157b
|
907c89215c2979527ec7083bfdf8b02a4a4f592d
|
/QXQP-SSH/src/com/koi/service/impl/AppointmentServiceImpl.java
|
841559c56c9aaaea72cea35a4ee1096a9e39461e
|
[] |
no_license
|
973319261/QXQP
|
ced6e7fca90b71b60e94213a49af4b4fa009c373
|
b73c1767bef8030e77705454571baec69b9ad5d5
|
refs/heads/main
| 2023-01-10T15:57:16.565941
| 2020-11-05T08:54:42
| 2020-11-05T08:54:42
| 310,236,277
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,376
|
java
|
package com.koi.service.impl;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import net.sf.json.JSONArray;
import net.sf.json.JsonConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.koi.dao.IAppointmentDao;
import com.koi.po.PwPredate;
import com.koi.po.SysPreOtherCostDetail;
import com.koi.po.SysPreProductDetail;
import com.koi.po.SysPreRepairItemDetail;
import com.koi.service.IAppointmentService;
import com.koi.util.Bsgrid;
import com.koi.util.Json;
import com.koi.util.Util;
@Transactional
@Service("appointmentService")
public class AppointmentServiceImpl implements IAppointmentService {
@Autowired
private IAppointmentDao appointmentDao;
@Override
public String predateNum() {
Date date = new Date();
SimpleDateFormat sfdate = new SimpleDateFormat("yyyyMMdd");
SimpleDateFormat sfdatetime = new SimpleDateFormat("yyyyMMddHHmmss");
String d = sfdate.format(date);
String dt = sfdatetime.format(date);
int num = appointmentDao.predateNum(d) + 1;
String str = "BJ" + dt + String.format("%04d", num);
return str;
}
@Override
public Object selectPredate(String predateNum, String toAudit,
Long pageSize,Long curPage) {
// TODO Auto-generated method stub
Long totalRows = appointmentDao.selectPredateCount(predateNum,
toAudit);
Long startIndex = 1l;// 开始索引
if (curPage > 1) {
startIndex += pageSize;
}
pageSize *= curPage;// 页面大小
List<PwPredate> list = appointmentDao.selectPredate(predateNum,
toAudit, startIndex, pageSize);
JsonConfig jsonConfig = Json.getJsontoDate("yyyy-MM-dd HH:mm:ss");
JSONArray json = JSONArray.fromObject(list, jsonConfig);
Object obj = Bsgrid.getList(json, curPage, totalRows);// 设置返回的参数
return obj;
}
@Override
public List<Object> selectPredateDetail(int predateID) {
// TODO Auto-generated method stub
return appointmentDao.selectPredateDetail(predateID);
}
@Override
public int updateListPredate(String predate,
String preRepairItem,
String preProduct,
String preOtherCost) {
List<PwPredate> listPredate = Util.jsonToVo(predate, PwPredate.class);
List<SysPreRepairItemDetail> listPreRepairItem = Util.jsonToVo(preRepairItem, SysPreRepairItemDetail.class);
List<SysPreProductDetail> listPreProduct = Util.jsonToVo(preProduct, SysPreProductDetail.class);
List<SysPreOtherCostDetail> listPreOtherCost = Util.jsonToVo(preOtherCost, SysPreOtherCostDetail.class);
// TODO Auto-generated method stub
return appointmentDao.updateListPredate(listPredate, listPreRepairItem, listPreProduct, listPreOtherCost);
}
@Override
public boolean deleteListPredate(int predateID) {
// TODO Auto-generated method stub
return appointmentDao.deleteListPredate(predateID);
}
@Override
public boolean toAudit(int psredateID) {
// TODO Auto-generated method stub
return appointmentDao.toAudit(psredateID);
}
@Override
public boolean toNotAudit(int predateID) {
// TODO Auto-generated method stub
return appointmentDao.toNotAudit(predateID);
}
@Override
public boolean selectToMainten(int predateID, String maintenanceNum) {
// TODO Auto-generated method stub
return appointmentDao.selectToMainten(predateID, maintenanceNum);
}
}
|
[
"973319261@qq.com"
] |
973319261@qq.com
|
35add08e034c222d02b6f879bf5ea467f4f2d96c
|
8e13c338dec36021668e46798ff40c7ea9b6b065
|
/Mage.Sets/src/mage/cards/t/TazeemRoilmage.java
|
7a415356c9617d9c52b0a9f2bcf23552f61642c6
|
[
"MIT"
] |
permissive
|
ninthworld/mage
|
c38aeeaa65a2a0afa908779b7c63ef2e1b1e413a
|
ba558f9a18032148a2936eedf874d90c97c7d46c
|
refs/heads/master
| 2022-07-29T23:17:30.439762
| 2022-07-02T22:20:41
| 2022-07-02T22:20:41
| 140,520,040
| 1
| 0
|
MIT
| 2018-07-11T04:08:35
| 2018-07-11T04:08:35
| null |
UTF-8
|
Java
| false
| false
| 2,065
|
java
|
package mage.cards.t;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.condition.common.KickedCondition;
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
import mage.abilities.effects.common.ReturnToHandTargetEffect;
import mage.abilities.keyword.KickerAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.FilterCard;
import mage.filter.common.FilterInstantOrSorceryCard;
import mage.target.common.TargetCardInYourGraveyard;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class TazeemRoilmage extends CardImpl {
private static final FilterCard filter
= new FilterInstantOrSorceryCard("instant or sorcery card from your graveyard");
public TazeemRoilmage(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}");
this.subtype.add(SubType.MERFOLK);
this.subtype.add(SubType.WIZARD);
this.power = new MageInt(2);
this.toughness = new MageInt(1);
// Kicker {4}
this.addAbility(new KickerAbility("{4}"));
// When Tazeem Roilmage enters the battlefield, if it was kicked, return target instant or sorcery card from your graveyard to your hand.
Ability ability = new ConditionalInterveningIfTriggeredAbility(
new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect(), false),
KickedCondition.instance, "When {this} enters the battlefield, if it was kicked, " +
"return target instant or sorcery card from your graveyard to your hand."
);
ability.addTarget(new TargetCardInYourGraveyard(filter));
this.addAbility(ability);
}
private TazeemRoilmage(final TazeemRoilmage card) {
super(card);
}
@Override
public TazeemRoilmage copy() {
return new TazeemRoilmage(this);
}
}
|
[
"theelk801@gmail.com"
] |
theelk801@gmail.com
|
58d5e79f1eef1ca23f922b7d801dc201348b6602
|
93f9c5530871ddf6ae7cd1723e4f2a3c5467cc81
|
/src/main/java/com/domain/entities/OneToManyBidirectional/v1/OneToManyBRepository.java
|
1787e91544ad383078a64a8b8caed1dbe6b9d466
|
[] |
no_license
|
costia097/AnotherBack
|
ad6554d5a6bf67916c7a6a513a88c2f8446722d5
|
9a1a096411206501b01698f55bbd48baa7b9bfc5
|
refs/heads/master
| 2020-03-31T12:56:03.103702
| 2018-10-22T08:26:35
| 2018-10-22T08:26:35
| 152,234,907
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 920
|
java
|
package com.domain.entities.OneToManyBidirectional.v1;
import com.domain.entities.OneToManyBidirectional.v1.entity.Planet;
import com.domain.entities.OneToManyBidirectional.v1.entity.SolarSystem;
import org.hibernate.Hibernate;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
@Repository
public class OneToManyBRepository {
@Autowired
private SessionFactory sessionFactory;
@Transactional
public void save(SolarSystem solarSystem) {
sessionFactory.getCurrentSession().save(solarSystem);
}
@Transactional(readOnly = true)
public Planet find() {
Planet planet = sessionFactory.getCurrentSession().find(Planet.class, 2L);
Hibernate.initialize(planet.getSolarSystem());
return planet;
}
}
|
[
"adaw36909@gmail.com"
] |
adaw36909@gmail.com
|
e2e6b52683379433685f21a7fb197872bb4f9162
|
45f976fd23a24c504afc7747fa572733b1c813b3
|
/nabl2.terms/src/main/java/mb/nabl2/terms/build/ITermBuild.java
|
6134873b6d891729bbd80d4368d6188a04ea592a
|
[
"Apache-2.0"
] |
permissive
|
jochembroekhoff/nabl
|
9d7a81fa4079530629d7038cfe713c61ad402b32
|
f63db38a092fe9d414e5564ccd722c64d48ab010
|
refs/heads/master
| 2023-05-07T15:34:20.532219
| 2021-05-26T18:33:14
| 2021-05-26T18:33:14
| 372,570,344
| 0
| 0
|
Apache-2.0
| 2021-06-02T10:43:10
| 2021-05-31T16:37:27
| null |
UTF-8
|
Java
| false
| false
| 4,603
|
java
|
package mb.nabl2.terms.build;
import java.util.Arrays;
import java.util.LinkedList;
import javax.annotation.Nullable;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import mb.nabl2.terms.IApplTerm;
import mb.nabl2.terms.IAttachments;
import mb.nabl2.terms.IBlobTerm;
import mb.nabl2.terms.IConsTerm;
import mb.nabl2.terms.IIntTerm;
import mb.nabl2.terms.IListTerm;
import mb.nabl2.terms.INilTerm;
import mb.nabl2.terms.IStringTerm;
import mb.nabl2.terms.ITerm;
import mb.nabl2.terms.ITermVar;
import mb.nabl2.terms.Terms;
public interface ITermBuild {
default IApplTerm newAppl(String op, ITerm... args) {
return newAppl(op, Arrays.asList(args));
}
default IApplTerm newAppl(String op, Iterable<? extends ITerm> args) {
return newAppl(op, args, null);
}
IApplTerm newAppl(String op, Iterable<? extends ITerm> args,
@Nullable IAttachments attachments);
default ITerm newTuple(ITerm... args) {
return newTuple(Arrays.asList(args));
}
default ITerm newTuple(Iterable<? extends ITerm> args) {
return newTuple(args, null);
}
default ITerm newTuple(Iterable<? extends ITerm> args, @Nullable IAttachments attachments) {
return Iterables.size(args) == 1 ? Iterables.getOnlyElement(args) : newAppl(Terms.TUPLE_OP, args, attachments);
}
default IListTerm newList(ITerm... elems) {
return newList(Arrays.asList(elems));
}
default IListTerm newList(Iterable<? extends ITerm> elems) {
return newList(elems, null);
}
default IListTerm newList(Iterable<? extends ITerm> elems,
@Nullable Iterable<IAttachments> attachments) {
LinkedList<ITerm> elemsQueue = Lists.newLinkedList(elems);
LinkedList<IAttachments> attachmentsQueue =
attachments != null ? Lists.newLinkedList(attachments) : null;
if(attachmentsQueue != null && attachmentsQueue.size() != elemsQueue.size() + 1) {
throw new IllegalArgumentException(
"Number of attachments does not correspond to number of elements in the list.");
}
IListTerm list = newNil();
if(attachmentsQueue != null) {
list = list.withAttachments(attachmentsQueue.removeLast());
}
return newListTail(elemsQueue, list, attachmentsQueue);
}
default IListTerm newListTail(Iterable<? extends ITerm> elems, IListTerm list) {
return newListTail(elems, list, null);
}
default IListTerm newListTail(Iterable<? extends ITerm> elems, IListTerm list,
@Nullable Iterable<IAttachments> attachments) {
LinkedList<ITerm> elemsQueue = Lists.newLinkedList(elems);
LinkedList<IAttachments> attachmentsQueue =
attachments != null ? Lists.newLinkedList(attachments) : null;
if(attachmentsQueue != null && attachmentsQueue.size() != elemsQueue.size()) {
throw new IllegalArgumentException(
"Number of attachments does not correspond to number of elements in the list.");
}
return newListTail(elemsQueue, list, attachmentsQueue);
}
default IListTerm newListTail(LinkedList<? extends ITerm> elems, IListTerm list,
@Nullable LinkedList<IAttachments> attachments) {
while(!elems.isEmpty()) {
list = newCons(elems.removeLast(), list);
if(attachments != null) {
list = list.withAttachments(attachments.removeLast());
}
}
return list;
}
default INilTerm newNil() {
return newNil(null);
}
public INilTerm newNil(@Nullable IAttachments attachments);
default IConsTerm newCons(ITerm head, IListTerm tail) {
return newCons(head, tail, null);
}
IConsTerm newCons(ITerm head, IListTerm tail, @Nullable IAttachments attachments);
default IStringTerm newString(String value) {
return newString(value, null);
}
IStringTerm newString(String value, @Nullable IAttachments attachments);
default IIntTerm newInt(int value) {
return newInt(value, null);
}
IIntTerm newInt(int value, @Nullable IAttachments attachments);
default IBlobTerm newBlob(Object value) {
return newBlob(value, null);
}
IBlobTerm newBlob(Object value, @Nullable IAttachments attachments);
default ITermVar newVar(String resource, String name) {
return newVar(resource, name, null);
}
ITermVar newVar(String resource, String name, @Nullable IAttachments attachments);
}
|
[
"hendrik@van-antwerpen.net"
] |
hendrik@van-antwerpen.net
|
9d0690371ca2b30c5c38bfe0d120de845f1eac81
|
01ebbc94cd4d2c63501c2ebd64b8f757ac4b9544
|
/backend/gxqpt-standard/gxqpt-modular-api/src/main/java/com/hengyunsoft/platform/modular/api/ModularCategoryAndTagApi.java
|
ef697e76574b90923b124e7a3eb747e9592edfb5
|
[] |
no_license
|
KevinAnYuan/gxq
|
60529e527eadbbe63a8ecbbad6aaa0dea5a61168
|
9b59f4e82597332a70576f43e3f365c41d5cfbee
|
refs/heads/main
| 2023-01-04T19:35:18.615146
| 2020-10-27T06:24:37
| 2020-10-27T06:24:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,601
|
java
|
//package com.hengyunsoft.platform.modular.api;
//
//import com.github.pagehelper.PageInfo;
//import com.hengyunsoft.base.Result;
//import com.hengyunsoft.page.plugins.openapi.OpenApiReq;
//import com.hengyunsoft.platform.commons.config.FeignConfiguration;
//import com.hengyunsoft.platform.modular.api.hystrix.ModularCategoryAndTagApiHystrix;
//import com.hengyunsoft.platform.modular.dto.*;
//import org.springframework.cloud.netflix.feign.FeignClient;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//
//import java.util.List;
//
///**
// * @author wangs
// * @createTime 2018-4-5
// */
//@FeignClient(name = "${gxqpt.gate.feign.server:gaxq-gate-server}",configuration = FeignConfiguration.class, path = "/api/modular", fallback = ModularCategoryAndTagApiHystrix.class)
//public interface ModularCategoryAndTagApi {
//
// /**
// * 保存模块申请信息
// * @param modularCategoryAndTagApplySaveDTO
// * @createTime 2018-4-5
// * @author wangs
// */
// @RequestMapping(value = "/mdapply/save", method = RequestMethod.POST)
// Result<ModularCategoryAndTagApplyDTO> save(@RequestBody ModularCategoryAndTagApplySaveDTO modularCategoryAndTagApplySaveDTO);
//
// /**
// * 通过模块申请信息
// * @param modularCategoryAndTagApplyDealDTO
// * @createTime 2018-4-5
// * @author wangs
// */
// @RequestMapping(value = "/mdapply/pass", method = RequestMethod.POST)
// Result<Boolean> pass(@RequestBody ModularCategoryAndTagApplyDealDTO modularCategoryAndTagApplyDealDTO);
//
// /**
// * 驳回模块申请信息
// * @param modularCategoryAndTagApplyDealDTO
// * @createTime 2018-4-5
// * @author wangs
// */
// @RequestMapping(value = "/mdapply/reject", method = RequestMethod.POST)
// Result<Boolean> reject(@RequestBody ModularCategoryAndTagApplyDealDTO modularCategoryAndTagApplyDealDTO);
//
// /**
// * 模块申请信息分页查询
// * @param openApiReq
// * @createTime 2018-4-5
// * @author wangs
// */
// @RequestMapping(value = "/mdapply/pageApply", method = RequestMethod.POST)
// Result<PageInfo<ModularCategoryAndTagApplyDTO>> pageApply(@RequestBody OpenApiReq<ModularCategoryAndTagApplyQueryDTO> openApiReq);
//
// /**
// * 模块申请已办事项分页查询
// * @param openApiReq
// * @createTime 2018-4-5
// * @author wangs
// */
// @RequestMapping(value = "/mdapply/pageDone", method = RequestMethod.POST)
// Result<PageInfo<ModularCategoryAndTagApplyDTO>> pageDone(@RequestBody OpenApiReq<ModularCategoryAndTagApplyQueryDTO> openApiReq);
//
// /**
// * 模块申请待办事项分页查询
// * @param openApiReq
// * @createTime 2018-4-5
// * @author wangs
// */
// @RequestMapping(value = "/mdapply/pageToDo", method = RequestMethod.POST)
// Result<PageInfo<ModularCategoryAndTagApplyDTO>> pageToDo(@RequestBody OpenApiReq<ModularCategoryAndTagApplyQueryDTO> openApiReq);
//
// /**
// * 分类列表查询
// * @createTime 2018-4-5
// * @author wangs
// */
// @RequestMapping(value = "/category/findCategoryDef", method = RequestMethod.POST)
// Result<List<MdCategoryDefDTO>> findCategoryDef();
//
// /**
// * 标签列表查询
// * @createTime 2018-4-5
// * @author wangs
// */
// @RequestMapping(value = "/tag/findTagDef", method = RequestMethod.POST)
// Result<List<MdTagDefDTO>> findTagDef();
//
//}
|
[
"470382668@qq.com"
] |
470382668@qq.com
|
ffc9aafb4556bc7af9a20a23ccdbef36a3a04e01
|
473b76b1043df2f09214f8c335d4359d3a8151e0
|
/benchmark/bigclonebenchdata_completed/2494612.java
|
c26acf7851fb2a05bdf5b96e0517841e79a8eeac
|
[] |
no_license
|
whatafree/JCoffee
|
08dc47f79f8369af32e755de01c52d9a8479d44c
|
fa7194635a5bd48259d325e5b0a190780a53c55f
|
refs/heads/master
| 2022-11-16T01:58:04.254688
| 2020-07-13T20:11:17
| 2020-07-13T20:11:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,383
|
java
|
class c2494612 {
public MyHelperClass log;
public MyHelperClass jsdir;
public MyHelperClass Arrays;
public MyHelperClass listJavascript(){ return null; }
private void update() throws IOException {
MyHelperClass combined = new MyHelperClass();
FileOutputStream out = new FileOutputStream(combined);
try {
File[] _files =(File[])(Object) listJavascript();
List files =(List)(Object) new ArrayList(Arrays.asList(_files));
files.add(0, new File(jsdir.getAbsolutePath() + "/leemba.js"));
files.add(0, new File(jsdir.getAbsolutePath() + "/jquery.min.js"));
for (File js :(File[])(Object) (Object[])(Object)files) {
FileInputStream fin = null;
try {
int count = 0;
byte buf[] = new byte[16384];
fin = new FileInputStream(js);
while ((count =(int)(Object) fin.read(buf)) > 0) out.write(buf, 0, count);
} catch (Throwable t) {
log.error("Failed to read file: " + js.getAbsolutePath(), t);
} finally {
if (fin != null) fin.close();
}
}
} finally {
out.close();
}
}
}
// Code below this line has been added to remove errors
class MyHelperClass {
public MyHelperClass asList(File[] o0){ return null; }
public MyHelperClass error(String o0, Throwable o1){ return null; }
public MyHelperClass getAbsolutePath(){ return null; }}
class IOException extends Exception{
public IOException(String errorMessage) { super(errorMessage); }
}
class FileOutputStream {
FileOutputStream(MyHelperClass o0){}
FileOutputStream(){}
public MyHelperClass write(byte[] o0, int o1, int o2){ return null; }
public MyHelperClass close(){ return null; }}
class File {
File(String o0){}
File(){}
public MyHelperClass getAbsolutePath(){ return null; }}
class List {
public MyHelperClass add(int o0, File o1){ return null; }}
class ArrayList {
ArrayList(MyHelperClass o0){}
ArrayList(){}}
class FileInputStream {
FileInputStream(File o0){}
FileInputStream(){}
public MyHelperClass read(byte[] o0){ return null; }
public MyHelperClass close(){ return null; }}
|
[
"piyush16066@iiitd.ac.in"
] |
piyush16066@iiitd.ac.in
|
193baf4a3bdc2808870294b910fb3334ba9d9816
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.minihd.qq/assets/exlibs.1.jar/classes.jar/com/tencent/mobileqq/mp/mobileqq_mp$FollowRequest.java
|
ed20b1cb40a3f80c9369a3bafde2911cbb132a8f
|
[] |
no_license
|
tsuzcx/qq_apk
|
0d5e792c3c7351ab781957bac465c55c505caf61
|
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
|
refs/heads/main
| 2022-07-02T10:32:11.651957
| 2022-02-01T12:41:38
| 2022-02-01T12:41:38
| 453,860,108
| 36
| 9
| null | 2022-01-31T09:46:26
| 2022-01-31T02:43:22
|
Java
|
UTF-8
|
Java
| false
| false
| 1,340
|
java
|
package com.tencent.mobileqq.mp;
import com.tencent.mobileqq.pb.MessageMicro;
import com.tencent.mobileqq.pb.MessageMicro.FieldMap;
import com.tencent.mobileqq.pb.PBField;
import com.tencent.mobileqq.pb.PBStringField;
import com.tencent.mobileqq.pb.PBUInt32Field;
import com.tencent.mobileqq.pb.PBUInt64Field;
public final class mobileqq_mp$FollowRequest
extends MessageMicro
{
public static final int ACCOUNT_TYPE_FIELD_NUMBER = 3;
public static final int EXT_FIELD_NUMBER = 2;
public static final int LUIN_FIELD_NUMBER = 4;
public static final int UIN_FIELD_NUMBER = 1;
static final MessageMicro.FieldMap __fieldMap__ = MessageMicro.initFieldMap(new int[] { 8, 18, 24, 32 }, new String[] { "uin", "ext", "account_type", "luin" }, new Object[] { Integer.valueOf(0), "", Integer.valueOf(0), Long.valueOf(0L) }, FollowRequest.class);
public final PBUInt32Field account_type = PBField.initUInt32(0);
public final PBStringField ext = PBField.initString("");
public final PBUInt64Field luin = PBField.initUInt64(0L);
public final PBUInt32Field uin = PBField.initUInt32(0);
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.minihd.qq\assets\exlibs.1.jar\classes.jar
* Qualified Name: com.tencent.mobileqq.mp.mobileqq_mp.FollowRequest
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
2c3d8efa6fefae94454b5389e360b8adf551d3ab
|
f20e1ecf2d473e93805b7967a771be0c57b4d836
|
/src/main/java/task16_transportation_lambda/transportation/repo/impl/TransportationCollectionRepoImpl.java
|
3a9a9f7328bed43a1d5095550d3cd9ad489b9cfb
|
[] |
no_license
|
Tadashimi/EpamTasks
|
154fee6f1e322a4d4326678e45af3c611151c7b1
|
b3c9774ea9273614b5504ffc4085ed9493643832
|
refs/heads/master
| 2023-07-20T01:51:44.709725
| 2023-04-09T19:37:34
| 2023-04-09T19:37:34
| 225,715,328
| 1
| 0
| null | 2023-07-07T21:58:36
| 2019-12-03T21:03:51
|
Java
|
UTF-8
|
Java
| false
| false
| 1,646
|
java
|
package task16_transportation_lambda.transportation.repo.impl;
import task16_transportation_lambda.storage.IdGenerator;
import task16_transportation_lambda.transportation.domain.Transportation;
import task16_transportation_lambda.transportation.repo.TransportationRepo;
import java.util.Iterator;
import java.util.List;
import static task16_transportation_lambda.storage.Storage.transportationCollection;
public class TransportationCollectionRepoImpl implements TransportationRepo {
@Override
public void save(Transportation transportation) {
transportation.setId(IdGenerator.generateId());
transportationCollection.add(transportation);
}
@Override
public Transportation findById(Long id) {
for (Transportation transportation : transportationCollection) {
if (transportation.getId().equals(id)) {
return transportation;
}
}
return null;
}
@Override
public List<Transportation> getAll() {
return transportationCollection;
}
@Override
public boolean update(Transportation transportation) {
return true;
}
@Override
public boolean deleteById(Long id) {
boolean deleted = false;
Iterator<Transportation> iter = transportationCollection.iterator();
while (iter.hasNext()) {
if (iter.next().getId().equals(id)) {
iter.remove();
deleted = true;
break;
}
}
return deleted;
}
@Override
public int countAll() {
return transportationCollection.size();
}
}
|
[
"tadashimi777@gmail.com"
] |
tadashimi777@gmail.com
|
d7b4c6d8dc464565c4f02e30ca83005049487e4c
|
698e2e259c13acf75c7c81809688c83b0f17a1ea
|
/src/main/java/com/tayyarah/common/util/APIProviderCommonConstant.java
|
b1998cfeef6066ee2bb7caa763e254b76f7ea8ba
|
[] |
no_license
|
Ganeshmurthy1/TravelApiResource
|
50789e80ccaf23be924e6de45e2b2d380fe1e09e
|
83e4b1a79dba9607d768c56cb364cdace7e05bb6
|
refs/heads/master
| 2021-08-23T20:47:14.635194
| 2017-12-06T13:10:09
| 2017-12-06T13:10:09
| 113,316,827
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 361
|
java
|
/**
@Author yogeshsharma
20-Nov-2015 2015
ConstantsApiProvier.java
*/
/**
*
*/
package com.tayyarah.common.util;
public class APIProviderCommonConstant {
public static final String BLUESTAR = "Bluestar";
public static final String TRAVELPORT = "Travelport";
public static final String NO_DATA = "NO DATA";
public static final String LINTAS_ID = "1";
}
|
[
"ganeshmurthy.p@gmail.com"
] |
ganeshmurthy.p@gmail.com
|
2812c62afc87bfb3b2ed84334e0dd8a7027c8744
|
d03074416e5e6b6ed65311baeee1fd84ac4d3c95
|
/hw04-0036491099/src/main/java/hr/fer/zemris/optjava/dz4/algorithms/Main.java
|
bf8e05290c8cbe714399dfc0527f93fdb16f8c09
|
[] |
no_license
|
Masperado/NENR-Project-FER-2019
|
f62a534deb4d727214d02e198f20972c44f0dc07
|
614b7aee13279a78802053093293014ea5c74f33
|
refs/heads/master
| 2020-04-24T21:32:37.031677
| 2019-02-24T01:10:44
| 2019-02-24T01:10:44
| 172,281,982
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,278
|
java
|
package hr.fer.zemris.optjava.dz4.algorithms;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
import java.util.Random;
import hr.fer.zemris.optjava.dz4.api.ICrossing;
import hr.fer.zemris.optjava.dz4.api.IFunction;
import hr.fer.zemris.optjava.dz4.api.IMutation;
import hr.fer.zemris.optjava.dz4.api.ISelection;
import hr.fer.zemris.optjava.dz4.impl.*;
public class Main {
// zad4-dataset1.txt 200 0.000001 1000 true 0.2 false
// zad4-dataset2.txt 200 0.000001 1000 true 0.2 false
// zad4-dataset1.txt 200 0.000001 1000 false 0.5 false
// zad4-dataset2.txt 200 0.000001 1000 false 0.5 false
// zad4-dataset1.txt 20 0.000001 10000 false 0.2 true
// zad4-dataset2.txt 20 0.000001 10000 false 0.2 true
public static void main(String[] args) throws IOException {
if (args.length != 7) {
System.out.println("Neispravan broj argumenta");
System.exit(1);
}
List<String> rows = Files.readAllLines(Paths.get(args[0]));
double[] consts = new double[rows.size()];
double[][] inputs = new double[rows.size()][2];
for (int i = 0; i < rows.size(); i++) {
String[] values = rows.get(i).split("\\s+");
for (int j = 0; j < values.length - 1; j++) {
inputs[i][j] = Double.valueOf(values[j]);
}
consts[i] = Double.valueOf(values[values.length - 1]);
}
IFunction<double[]> function = new AFFunction(inputs, consts);
int populationSize = Integer.valueOf(args[1]);
double[][] startingPopulation = generatePopulation(populationSize);
double minError = Double.valueOf(args[2]);
int maxIterations = Integer.valueOf(args[3]);
ISelection<double[]> selectionGeneration = new RouletteWheel();
ISelection<double[]> selectionElimination = new NTournamentDoubleArray(3);
boolean elite = Boolean.valueOf(args[4]);
double sigma = Double.valueOf(args[5]);
IMutation<double[]> mutation = new SigmaMutation(sigma);
ICrossing<double[]> crossing = new BLX(0.1);
boolean elimination = Boolean.valueOf(args[6]);
if (!elimination) {
GenerationAlgorithm<double[]> algorithm = new GenerationAlgorithm<>(startingPopulation, function,
crossing, mutation, selectionGeneration, elite, minError, maxIterations);
algorithm.run();
} else {
EliminationAlgorithm<double[]> algorithm = new EliminationAlgorithm<>(startingPopulation, function,
crossing, mutation, selectionElimination, minError, maxIterations);
algorithm.run();
}
}
private static double[][] generatePopulation(int populationSize) {
double[][] population = new double[populationSize][6];
for (int i = 0; i < populationSize; i++) {
population[i] = generateSolution();
}
return population;
}
private static double[] generateSolution() {
Random rand = new Random();
double[] solution = new double[5];
for (int i = 0; i < 5; i++) {
solution[i] = -4 + rand.nextDouble() * 8;
}
return solution;
}
}
|
[
"masperado@gmail.com"
] |
masperado@gmail.com
|
86b28135c1cba4ac1e93aed43b09e841378f2e70
|
d7d7b0c25a923a699ffa579e1bab546435443302
|
/NGServer/Invoker/src/main/java/org/Invoker/rpc/protocol/SpringMVC.java
|
e9283ef02cccd7e8ca5ed8498e0bcb751aefe2e9
|
[] |
no_license
|
github188/test-3
|
9cd2417319161a014df8b54aa68579843ade8885
|
92c8b20ba19185fca1e0293fe7208102b338a9ca
|
refs/heads/master
| 2020-03-15T09:36:37.329325
| 2017-12-18T02:40:21
| 2017-12-18T02:40:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,460
|
java
|
package org.Invoker.rpc.protocol;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.ViewResolverRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.web.servlet.view.InternalResourceView;
import org.springframework.web.servlet.view.InternalResourceViewResolver;
@Configuration
@EnableWebMvc
public class SpringMVC extends WebMvcConfigurerAdapter {
// private nari.Logger.Logger logger = LoggerManager.getLogger(this.getClass());
/**
* 非必须
*/
@Override
public void configureDefaultServletHandling(final DefaultServletHandlerConfigurer configurer) {
configurer.enable("mvcServlet");
}
//配置html等的方法
@Override
public void configureViewResolvers(ViewResolverRegistry registry){
InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
viewResolver.setPrefix("/WEB-INF/");
viewResolver.setSuffix(".html");
viewResolver.setViewClass(InternalResourceView.class);
registry.viewResolver(viewResolver);
}
@Override
public void addInterceptors(InterceptorRegistry registry) {
// registry.addWebRequestInterceptor(new WebRequestInterceptor() {
//
// @Override
// public void preHandle(WebRequest arg0) throws Exception {
// logger.info("1");
// }
//
// @Override
// public void postHandle(WebRequest arg0, ModelMap arg1) throws Exception {
// logger.info("2");
// }
//
// @Override
// public void afterCompletion(WebRequest arg0, Exception arg1) throws Exception {
// logger.info("3");
// }
// });
}
/**
* 如果项目的一些资源文件放在/WEB-INF/resources/下面
* 在浏览器访问的地址就是类似:http://host:port/projectName/WEB-INF/resources/xxx.css
* 但是加了如下定义之后就可以这样访问:
* http://host:port/projectName/resources/xxx.css
* 非必须
*/
@Override
public void addResourceHandlers(final ResourceHandlerRegistry registry) {
// registry.addResourceHandler("/resources").addResourceLocations("classpath:/resources/");
}
}
|
[
"645236219@qq.com"
] |
645236219@qq.com
|
c78598ccddc3fc5a1409be2138a75d94829f279a
|
07c473a7754057e99e6c81b00172b9a1a43c0e96
|
/src/main/java/com/google/devtools/build/lib/skylarkbuildapi/cpp/CcInfoApi.java
|
54238d0d8279967a25e3a65c1140bc2b4e1c30bd
|
[
"Apache-2.0"
] |
permissive
|
chenshuo/bazel
|
ffd3f37331db1ce5979f43aa3d27b96a6efcd1a2
|
c2ba4a08a788097297da81b58e2fb9ffdb22a581
|
refs/heads/master
| 2020-04-29T20:13:31.491356
| 2019-03-18T21:51:45
| 2019-03-18T21:53:24
| 176,378,348
| 3
| 0
|
Apache-2.0
| 2019-03-18T22:18:32
| 2019-03-18T22:18:32
| null |
UTF-8
|
Java
| false
| false
| 3,950
|
java
|
// Copyright 2018 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.devtools.build.lib.skylarkbuildapi.cpp;
import com.google.devtools.build.lib.events.Location;
import com.google.devtools.build.lib.skylarkbuildapi.ProviderApi;
import com.google.devtools.build.lib.skylarkbuildapi.StructApi;
import com.google.devtools.build.lib.skylarkinterface.Param;
import com.google.devtools.build.lib.skylarkinterface.ParamType;
import com.google.devtools.build.lib.skylarkinterface.SkylarkCallable;
import com.google.devtools.build.lib.skylarkinterface.SkylarkConstructor;
import com.google.devtools.build.lib.skylarkinterface.SkylarkModule;
import com.google.devtools.build.lib.skylarkinterface.SkylarkModuleCategory;
import com.google.devtools.build.lib.syntax.Environment;
import com.google.devtools.build.lib.syntax.EvalException;
import com.google.devtools.build.lib.syntax.Runtime.NoneType;
/** Wrapper for every C++ compilation and linking provider. */
@SkylarkModule(
name = "CcInfo",
category = SkylarkModuleCategory.PROVIDER,
doc = "A provider containing information for C++ compilation and linking.")
public interface CcInfoApi extends StructApi {
String NAME = "CcInfo";
@SkylarkCallable(
name = "compilation_context",
doc = "Returns the <code>CompilationContext</code>",
structField = true)
CcCompilationContextApi getCcCompilationContext();
@SkylarkCallable(
name = "linking_context",
doc = "Returns the <code>LinkingContext</code>",
structField = true)
CcLinkingContextApi getCcLinkingContext();
/** The provider implementing this can construct the CcInfo provider. */
@SkylarkModule(
name = "CcProvider",
doc =
"A provider for compilation and linking of C++. This "
+ "is also a marking provider telling C++ rules that they can depend on the rule "
+ "with this provider. If it is not intended for the rule to be depended on by C++, "
+ "the rule should wrap the CcInfo in some other provider.")
interface Provider extends ProviderApi {
@SkylarkCallable(
name = NAME,
doc = "The <code>CcInfo</code> constructor.",
useLocation = true,
useEnvironment = true,
parameters = {
@Param(
name = "compilation_context",
doc = "The <code>CompilationContext</code>.",
positional = false,
named = true,
noneable = true,
defaultValue = "None",
allowedTypes = {
@ParamType(type = CcCompilationContextApi.class),
@ParamType(type = NoneType.class)
}),
@Param(
name = "linking_context",
doc = "The <code>LinkingContext</code>.",
positional = false,
named = true,
noneable = true,
defaultValue = "None",
allowedTypes = {
@ParamType(type = CcLinkingContextApi.class),
@ParamType(type = NoneType.class)
})
},
selfCall = true)
@SkylarkConstructor(objectType = CcInfoApi.class, receiverNameForDoc = NAME)
CcInfoApi createInfo(
Object ccCompilationContext,
Object ccLinkingInfo,
Location location,
Environment environment)
throws EvalException;
}
}
|
[
"copybara-piper@google.com"
] |
copybara-piper@google.com
|
431543436722e9d5ace0303494fda960930c9b8c
|
27511a2f9b0abe76e3fcef6d70e66647dd15da96
|
/src/com/instagram/ui/widget/bannertoast/b.java
|
dbe342da34ba74294254d891f1637fdacd9493ad
|
[] |
no_license
|
biaolv/com.instagram.android
|
7edde43d5a909ae2563cf104acfc6891f2a39ebe
|
3fcd3db2c3823a6d29a31ec0f6abcf5ceca995de
|
refs/heads/master
| 2022-05-09T15:05:05.412227
| 2016-07-21T03:48:36
| 2016-07-21T03:48:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 350
|
java
|
package com.instagram.ui.widget.bannertoast;
import com.facebook.j.n;
final class b
implements Runnable
{
b(BannerToast paramBannerToast, n paramn) {}
public final void run()
{
a.b(0.0D);
}
}
/* Location:
* Qualified Name: com.instagram.ui.widget.bannertoast.b
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
a15ea92b473f96722da365c549d29c5ad2573cf1
|
0e894d0257811bf883e0d46fcfbb5d08f100637e
|
/src/main/java/com/enginemobi/bssuite/domain/Promotion.java
|
464ad576294b64661a3e8a93a5f1ddc145271a4b
|
[
"Apache-2.0"
] |
permissive
|
pkcool/bssuite
|
ded01f8c015bdc23209bb97ee97be7ebbebad5a7
|
6771fed3c2e2bb2b318f5cc8e6edafd1b787a063
|
refs/heads/develop-0.3.x
| 2021-01-10T06:20:51.001239
| 2015-12-08T03:05:22
| 2015-12-08T03:05:22
| 44,002,076
| 6
| 7
| null | 2015-11-06T11:13:35
| 2015-10-10T08:32:55
|
Java
|
UTF-8
|
Java
| false
| false
| 3,859
|
java
|
package com.enginemobi.bssuite.domain;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import java.time.LocalDate;
import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.Objects;
/**
* A Promotion.
*/
@Entity
@Table(name = "promotion")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@Document(indexName = "promotion")
public class Promotion implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@NotNull
@Column(name = "code", nullable = false)
private String code;
@Column(name = "name")
private String name;
@Column(name = "description")
private String description;
@Column(name = "start_date")
private LocalDate startDate;
@Column(name = "end_date")
private LocalDate endDate;
@Column(name = "cost")
private Double cost;
@Column(name = "income")
private Double income;
@Column(name = "expense")
private Double expense;
@Column(name = "date_created")
private LocalDate dateCreated;
@ManyToOne
@JoinColumn(name = "store_id")
private Store store;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public LocalDate getStartDate() {
return startDate;
}
public void setStartDate(LocalDate startDate) {
this.startDate = startDate;
}
public LocalDate getEndDate() {
return endDate;
}
public void setEndDate(LocalDate endDate) {
this.endDate = endDate;
}
public Double getCost() {
return cost;
}
public void setCost(Double cost) {
this.cost = cost;
}
public Double getIncome() {
return income;
}
public void setIncome(Double income) {
this.income = income;
}
public Double getExpense() {
return expense;
}
public void setExpense(Double expense) {
this.expense = expense;
}
public LocalDate getDateCreated() {
return dateCreated;
}
public void setDateCreated(LocalDate dateCreated) {
this.dateCreated = dateCreated;
}
public Store getStore() {
return store;
}
public void setStore(Store store) {
this.store = store;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Promotion promotion = (Promotion) o;
return Objects.equals(id, promotion.id);
}
@Override
public int hashCode() {
return Objects.hashCode(id);
}
@Override
public String toString() {
return "Promotion{" +
"id=" + id +
", code='" + code + "'" +
", name='" + name + "'" +
", description='" + description + "'" +
", startDate='" + startDate + "'" +
", endDate='" + endDate + "'" +
", cost='" + cost + "'" +
", income='" + income + "'" +
", expense='" + expense + "'" +
", dateCreated='" + dateCreated + "'" +
'}';
}
}
|
[
"smaxllimit@gmail.com"
] |
smaxllimit@gmail.com
|
2cd82d28184a35fa485f7053c644218258deb7c1
|
aecffb5cc456d31f938774a02de30c062fee726b
|
/sources/com/sec/android/app/clockpackage/stopwatch/model/ListItem.java
|
9748f990f943e18b214054d796ba9f1838236a35
|
[] |
no_license
|
Austin-Chow/SamsungClock10.0.04.3
|
6d48abd288f3b182a6520315ef526163a94b0278
|
5523378f7fea1bf462248fddf52a7828ff2de0a9
|
refs/heads/master
| 2020-06-29T12:44:41.353764
| 2019-08-04T20:47:14
| 2019-08-04T20:47:14
| 200,538,351
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,689
|
java
|
package com.sec.android.app.clockpackage.stopwatch.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
public class ListItem implements Parcelable {
public static final Creator<ListItem> CREATOR = new C07071();
private long mElapsedTime;
private String mIndex;
private String mMilliSecond;
private String mMilliSecondDiff;
private String mTime;
private String mTimeDescription;
private String mTimeDiff;
private String mTimeDiffDescription;
/* renamed from: com.sec.android.app.clockpackage.stopwatch.model.ListItem$1 */
static class C07071 implements Creator<ListItem> {
C07071() {
}
public ListItem createFromParcel(Parcel source) {
return new ListItem(source.readString(), source.readLong(), source.readString(), source.readString(), source.readString(), source.readString(), source.readString(), source.readString());
}
public ListItem[] newArray(int size) {
return new ListItem[size];
}
}
public ListItem(String index, long elapsedTime, String time, String millisecond, String timeDiff, String millisecondDiff, String timeDescription, String timeDiffDescription) {
this.mIndex = index;
this.mElapsedTime = elapsedTime;
this.mTime = time;
this.mMilliSecond = millisecond;
this.mTimeDiff = timeDiff;
this.mMilliSecondDiff = millisecondDiff;
this.mTimeDescription = timeDescription;
this.mTimeDiffDescription = timeDiffDescription;
}
public int describeContents() {
return 0;
}
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.mIndex);
dest.writeLong(this.mElapsedTime);
dest.writeString(this.mTime);
dest.writeString(this.mMilliSecond);
dest.writeString(this.mTimeDiff);
dest.writeString(this.mMilliSecondDiff);
dest.writeString(this.mTimeDescription);
dest.writeString(this.mTimeDiffDescription);
}
public String getIndex() {
return this.mIndex;
}
public String getTime() {
return this.mTime;
}
public long getElapsedTime() {
return this.mElapsedTime;
}
public String getMillisecond() {
return this.mMilliSecond;
}
public String getTimeDiff() {
return this.mTimeDiff;
}
public String getMillisecondDiff() {
return this.mMilliSecondDiff;
}
public String getTimeDescription() {
return this.mTimeDescription;
}
public String getTimeDiffDescription() {
return this.mTimeDiffDescription;
}
}
|
[
"myemail"
] |
myemail
|
eb665103d6cc1b3cf5c448483fe8e8e9a115d4ab
|
753c19c237b3a24a5e58938ba530b26284c2cbc2
|
/app/src/main/java/com/fred_w/demo/codercommunity/mvp/model/entity/AccessToken.java
|
42ca65f3e2044cb1fb1d9ac8a85441e5bba417dd
|
[] |
no_license
|
wjl7123093/CoderCommunity
|
df1ecf810affe9b24b618e3c85e805a964132f63
|
766bbe98188d6319727cf83dfe6cba3bfdc7fd93
|
refs/heads/master
| 2021-09-04T08:57:09.162253
| 2018-01-17T13:57:31
| 2018-01-17T13:57:31
| 115,528,585
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,651
|
java
|
package com.fred_w.demo.codercommunity.mvp.model.entity;
/**
* AccessToken Entity
*
* @author Fred_W
* @version v1.0.0
*
* @crdate 2017-12-31
* @update
*/
public class AccessToken {
private int code;
private String access_token;
private String refresh_token;
private String token_type;
private int expires_in;
private int uid;
@Override
public String toString() {
return "AccessToken{" +
"access_token='" + access_token + '\'' +
", refresh_token='" + refresh_token + '\'' +
", token_type='" + token_type + '\'' +
", expires_in=" + expires_in +
", uid=" + uid +
'}';
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getAccess_token() {
return access_token;
}
public void setAccess_token(String access_token) {
this.access_token = access_token;
}
public String getRefresh_token() {
return refresh_token;
}
public void setRefresh_token(String refresh_token) {
this.refresh_token = refresh_token;
}
public String getToken_type() {
return token_type;
}
public void setToken_type(String token_type) {
this.token_type = token_type;
}
public int getExpires_in() {
return expires_in;
}
public void setExpires_in(int expires_in) {
this.expires_in = expires_in;
}
public int getUid() {
return uid;
}
public void setUid(int uid) {
this.uid = uid;
}
}
|
[
"wjl7123093@163.com"
] |
wjl7123093@163.com
|
0285498a6419ca3032675a6ab49a342eff568449
|
b3f9f7bfbf69c52eb07daf3a6d041ad56fe95254
|
/src/main/java/com/lypgod/test/ThinkingInJava/Ch14_TypeInformation/Practice6/Shapes.java
|
5a67c8108ece56342c96a7582d1f415d3c475861
|
[] |
no_license
|
lypgod/ThinkingInJavaPractice
|
33c13a8ad07648560d24060206db537e6d95aa76
|
b3ced3631e751c09914af6d47fe0e3c17846801a
|
refs/heads/master
| 2021-01-12T13:57:43.799008
| 2016-11-04T19:48:10
| 2016-11-04T19:48:10
| 69,253,448
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,202
|
java
|
package com.lypgod.test.ThinkingInJava.Ch14_TypeInformation.Practice6;//: typeinfo/Shapes.java
import java.util.Arrays;
import java.util.List;
abstract class Shape {
void draw() {
System.out.println(this + ".draw()");
}
abstract public String toString();
}
class Circle extends Shape {
boolean flag = false;
public String toString() {
return (flag ? "H" : "Unh") + "ighlighted " + "Circle";
}
}
class Square extends Shape {
boolean flag = false;
public String toString() {
return (flag ? "H" : "Unh") + "ighlighted " + "Square";
}
}
class Triangle extends Shape {
boolean flag = false;
public String toString() {
return (flag ? "H" : "Unh") + "ighlighted " + "Triangle";
}
}
public class Shapes {
public static void setFlag(Shape s) {
if (s instanceof Triangle)
((Triangle) s).flag = true;
}
public static void main(String[] args) {
// upcasting to Shape:
List<Shape> shapeList = Arrays.asList(new Circle(), new Square(), new Triangle());
for (Shape shape : shapeList) {
setFlag(shape);
System.out.println(shape);
}
}
}
|
[
"lypgod@hotmail.com"
] |
lypgod@hotmail.com
|
d4549e303ce6b5ec20efa6abbe088f61ffeb40ea
|
343773ae835dbbaefde9f653f9211570bd8455d6
|
/src/main/java/teamroots/embers/api/power/IEmberPacketProducer.java
|
808c2e9465bafa7959a83ae732eacd1ad8e1a5f0
|
[
"MIT"
] |
permissive
|
DaedalusGame/EmbersRekindled
|
a06895d5bc3d0cf6739965828eab96edcdd35a78
|
a2437713ea29ee9ca76b3e14f6e67f8e8862ccaa
|
refs/heads/rekindled
| 2022-05-01T12:03:20.268625
| 2021-03-03T19:13:27
| 2021-03-03T19:13:27
| 135,477,242
| 41
| 37
|
MIT
| 2022-03-26T17:47:02
| 2018-05-30T17:38:40
|
Java
|
UTF-8
|
Java
| false
| false
| 215
|
java
|
package teamroots.embers.api.power;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
public interface IEmberPacketProducer {
void setTargetPosition(BlockPos pos, EnumFacing side);
}
|
[
"bordlistian@hotmail.de"
] |
bordlistian@hotmail.de
|
0ef243c5c066b19a60dabdf0cc9fd40aa06da4f6
|
ad7497c62b6bf9e40e241de1044a4bef63a34aa7
|
/skysail.server/src/de/twenty11/skysail/server/um/domain/PasswordsMatchValidator.java
|
cd9c638b4ac3c0fcf097ccb1d725241516671c24
|
[
"Apache-2.0"
] |
permissive
|
evandor/skysail-framework
|
f99dbaceb6383ce899077cdf0acd40787acbca03
|
480df6f043ab85328ecc6cc38958c501edbc2374
|
refs/heads/master
| 2021-01-17T08:40:00.758281
| 2016-11-21T07:50:38
| 2016-11-21T07:50:38
| 28,823,015
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 651
|
java
|
package de.twenty11.skysail.server.um.domain;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
public class PasswordsMatchValidator implements ConstraintValidator<PasswordsMatch, Registration> {
@Override
public void initialize(PasswordsMatch passwordParameters) {
}
@Override
public boolean isValid(Registration registration, ConstraintValidatorContext arg1) {
if (registration.getPassword() == null && registration.getPwdRepeated() == null) {
return true;
}
return registration.getPassword().equals(registration.getPwdRepeated());
}
}
|
[
"evandor@gmail.com"
] |
evandor@gmail.com
|
64231840e7e0bd50e1f3bedb1ff51261893b2b67
|
6a59e5bd764735c86eeaac4225e6705a07e5e8d0
|
/app/src/main/java/com/app/cellular/mobile/Navigation_main/Address_Ontrack.java
|
40da554adc4499cd8b8b1d4da832d97d1bc5c9ea
|
[] |
no_license
|
priyankagiri14/cellular_mobile
|
4290720b42fcd710e271fb049b442b27c5f02d4b
|
64088000aefe836383517713dae4bb719c8e2c3b
|
refs/heads/master
| 2020-09-25T14:02:56.788142
| 2020-02-18T12:00:34
| 2020-02-18T12:00:34
| 226,018,859
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,589
|
java
|
package com.app.cellular.mobile.Navigation_main;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import androidx.appcompat.app.ActionBarDrawerToggle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.core.view.GravityCompat;
import androidx.drawerlayout.widget.DrawerLayout;
import com.google.android.material.navigation.NavigationView;
import com.app.cellular.mobile.AboutActivity;
import com.app.cellular.mobile.R;
public class Address_Ontrack extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener {
Toolbar toolbar;
/**
* This method is initializing all the design components which will be used further for some functionalty.
* @param savedInstanceState
*/
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.address_ontrack);
DrawerLayout drawer = findViewById(R.id.address_drawer_layout);
NavigationView navigationView = findViewById(R.id.nav_view);
toolbar=findViewById(R.id.toolbar);
ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
drawer.addDrawerListener(toggle);
toggle.syncState();
navigationView.setNavigationItemSelectedListener(this);
}
/**
* This function will return the boolean value for the menu item to performm some functionality according to the code written in the conditions.
* @param item
* @return this function returns the boolean value (true or false)
*/
public boolean onNavigationItemSelected(MenuItem item) {
// Handle navigation view item clicks here.
int id = item.getItemId();
if (id == R.id.nav_login) {
// Handle the camera action
Intent i=new Intent(this, Navigation_Main.class);
startActivity(i);
} else if (id == R.id.nav_contacts) {
Intent i1=new Intent(this, Contact_Ontrack.class);
startActivity(i1);
} else if (id == R.id.nav_address) {
}else if (id == R.id.aboutdrawer) {
Intent i1=new Intent(this, AboutActivity.class);
startActivity(i1);
}
DrawerLayout drawer = findViewById(R.id.address_drawer_layout);
drawer.closeDrawer(GravityCompat.START);
return true;
}
}
|
[
"priyanka@ontrackis.com"
] |
priyanka@ontrackis.com
|
15aed1133ab774bf2df501f8f1a24f891c2bb301
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/single-large-project/src/test/java/org/gradle/test/performancenull_28/Testnull_2771.java
|
ebe4449eea62503e167992945f7434d21d3decbf
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 304
|
java
|
package org.gradle.test.performancenull_28;
import static org.junit.Assert.*;
public class Testnull_2771 {
private final Productionnull_2771 production = new Productionnull_2771("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
dc33b569a19994003c3bd125019504fcbf22ac10
|
b080e60bf6e61a75d40d9f7644ae34418861de70
|
/src/mc/alk/arena/controllers/messaging/MatchMessager.java
|
0cd89bb70498b1b91d3d80e013a7dd8790f87f43
|
[] |
no_license
|
Kirill20/BattleArena
|
4e3de390d8c4fa36507a77c371435dd5f23d652c
|
79d6c5d166ad8fa6bcb513e2008961ef46b4a0cc
|
refs/heads/master
| 2021-01-18T10:42:44.622387
| 2013-08-08T05:38:25
| 2013-08-08T05:38:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,139
|
java
|
package mc.alk.arena.controllers.messaging;
import java.util.Collection;
import java.util.List;
import mc.alk.arena.competition.match.Match;
import mc.alk.arena.objects.ArenaPlayer;
import mc.alk.arena.objects.MatchState;
import mc.alk.arena.objects.messaging.AnnouncementOptions;
import mc.alk.arena.objects.messaging.Channel;
import mc.alk.arena.objects.teams.ArenaTeam;
public class MatchMessager {
MatchMessageHandler impl;
final AnnouncementOptions bos;
boolean silent = false;
public MatchMessager(Match match){
this.impl = new MatchMessageImpl(match);
this.bos = match.getParams().getAnnouncementOptions();
}
private Channel getChannel(MatchState state) {
if (silent) return Channel.NullChannel;
return bos != null && bos.hasOption(true,state) ? bos.getChannel(true,state) : AnnouncementOptions.getDefaultChannel(true,state);
}
public void sendOnBeginMsg(List<ArenaTeam> teams) {
try{impl.sendOnBeginMsg(getChannel(MatchState.ONBEGIN), teams);}catch(Exception e){e.printStackTrace();}
}
public void sendOnPreStartMsg(List<ArenaTeam> teams) {
sendOnPreStartMsg(teams, getChannel(MatchState.ONPRESTART));
}
public void sendOnPreStartMsg(List<ArenaTeam> teams, Channel serverChannel) {
try{impl.sendOnPreStartMsg(serverChannel, teams);}catch(Exception e){e.printStackTrace();}
}
public void sendOnStartMsg(List<ArenaTeam> teams) {
try{impl.sendOnStartMsg(getChannel(MatchState.ONSTART), teams);}catch(Exception e){e.printStackTrace();}
}
public void sendOnVictoryMsg(Collection<ArenaTeam> winners, Collection<ArenaTeam> losers) {
try{impl.sendOnVictoryMsg(getChannel(MatchState.ONVICTORY), winners,losers);}catch(Exception e){e.printStackTrace();}
}
public void sendOnDrawMessage(Collection<ArenaTeam> drawers, Collection<ArenaTeam> losers) {
try{impl.sendOnDrawMsg(getChannel(MatchState.ONVICTORY), drawers, losers);}catch(Exception e){e.printStackTrace();}
}
public void sendYourTeamNotReadyMsg(ArenaTeam t1) {
try{impl.sendYourTeamNotReadyMsg(t1);}catch(Exception e){e.printStackTrace();}
}
public void sendOtherTeamNotReadyMsg(ArenaTeam t1) {
try{impl.sendOtherTeamNotReadyMsg(t1);}catch(Exception e){e.printStackTrace();}
}
public void sendOnIntervalMsg(int remaining, Collection<ArenaTeam> currentLeaders) {
try{impl.sendOnIntervalMsg(getChannel(MatchState.ONMATCHINTERVAL), currentLeaders, remaining);}catch(Exception e){e.printStackTrace();}
}
public void sendTimeExpired() {
try{impl.sendTimeExpired(getChannel(MatchState.ONMATCHTIMEEXPIRED));}catch(Exception e){e.printStackTrace();}
}
public void setMessageHandler(MatchMessageHandler mc) {
this.impl = mc;
}
public MatchMessageHandler getMessageHandler() {
return impl;
}
public void setSilent(boolean silent){
this.silent = silent;
}
public void sendAddedToTeam(ArenaTeam team, ArenaPlayer player) {
try{impl.sendAddedToTeam(team,player);}catch(Exception e){e.printStackTrace();}
}
public void sendCountdownTillPrestart(int remaining) {
try{impl.sendCountdownTillPrestart(getChannel(MatchState.ONCOUNTDOWNTOEVENT), remaining);}
catch(Exception e){e.printStackTrace();}
}
}
|
[
"alkarin.v@gmail.com"
] |
alkarin.v@gmail.com
|
6828d9138ee6483c9ca473747a1638e7d8bf8a53
|
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
|
/aliyun-java-sdk-viapi-regen/src/main/java/com/aliyuncs/viapi_regen/model/v20211119/CheckDatasetOssBucketCORSRequest.java
|
d1160f68aafd6cb2b8e672e143c6c3187c25a545
|
[
"Apache-2.0"
] |
permissive
|
aliyun/aliyun-openapi-java-sdk
|
a263fa08e261f12d45586d1b3ad8a6609bba0e91
|
e19239808ad2298d32dda77db29a6d809e4f7add
|
refs/heads/master
| 2023-09-03T12:28:09.765286
| 2023-09-01T09:03:00
| 2023-09-01T09:03:00
| 39,555,898
| 1,542
| 1,317
|
NOASSERTION
| 2023-09-14T07:27:05
| 2015-07-23T08:41:13
|
Java
|
UTF-8
|
Java
| false
| false
| 1,708
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.viapi_regen.model.v20211119;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.viapi_regen.Endpoint;
/**
* @author auto create
* @version
*/
public class CheckDatasetOssBucketCORSRequest extends RpcAcsRequest<CheckDatasetOssBucketCORSResponse> {
private Long labelsetId;
public CheckDatasetOssBucketCORSRequest() {
super("viapi-regen", "2021-11-19", "CheckDatasetOssBucketCORS", "selflearning");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public Long getLabelsetId() {
return this.labelsetId;
}
public void setLabelsetId(Long labelsetId) {
this.labelsetId = labelsetId;
if(labelsetId != null){
putBodyParameter("LabelsetId", labelsetId.toString());
}
}
@Override
public Class<CheckDatasetOssBucketCORSResponse> getResponseClass() {
return CheckDatasetOssBucketCORSResponse.class;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
f3ff394252e5a0f254633b5b0bfcb2277245aea8
|
2bd7643730a0048e0ba1e7bb663a97166c54dc54
|
/EBPSv2/src/main/java/com/controller/rest/application/FrequentlyAskedQuestionRestController.java
|
613c057b76a3b1f084e001d02ce66223f6f1863b
|
[] |
no_license
|
bkings/BuildingPermitDynamic
|
3f8b4d7fa8aaff45b43f05fc16fcb1ea54da3ad7
|
bb7322f6e04b2017854a5ceebcf4b37d755d000b
|
refs/heads/master
| 2023-02-16T20:46:37.209422
| 2021-01-17T06:40:25
| 2021-01-17T06:40:25
| 299,945,567
| 1
| 0
| null | 2020-10-21T13:30:47
| 2020-09-30T14:25:30
|
Java
|
UTF-8
|
Java
| false
| false
| 1,419
|
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.controller.rest.application;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.service.application.FrequentlyAskedQuestionService;
@RestController
@CrossOrigin
@RequestMapping("api/application/FrequentlyAskedQuestion")
public class FrequentlyAskedQuestionRestController {
@Autowired
FrequentlyAskedQuestionService service;
@GetMapping()
public Object show() {
return service.getAll();
}
@GetMapping("/{id}")
public Object showById(@PathVariable Integer id) {
return service.getById(id);
}
@PostMapping()
public Object doSave(@RequestBody String jsonData, @RequestHeader(value = "Authorization") String Authorization) {
return service.save(jsonData,Authorization);
}
}
|
[
"bbikings@yahoo.com"
] |
bbikings@yahoo.com
|
c4b0b055bbb31a11bdf7f0cb37a55e730559ed79
|
3b50b3b55a9fd4f6bc90315d2bda9c07ec599116
|
/app/src/main/java/com/d/httprequest/model/WpTerm.java
|
fea8fd5e0c073f305260783effd6bcb96c80a6ce
|
[] |
no_license
|
huuhuybn/HttpRequest3
|
c0a0359c7dd759a8fc9df97706025de43c890f02
|
79beb0d59a3dad1a93bfcf29edcf1dbe22239d6b
|
refs/heads/master
| 2020-06-21T01:39:11.865132
| 2019-07-17T04:03:26
| 2019-07-17T04:03:26
| 197,312,450
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 824
|
java
|
package com.d.httprequest.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class WpTerm {
@SerializedName("taxonomy")
@Expose
private String taxonomy;
@SerializedName("embeddable")
@Expose
private Boolean embeddable;
@SerializedName("href")
@Expose
private String href;
public String getTaxonomy() {
return taxonomy;
}
public void setTaxonomy(String taxonomy) {
this.taxonomy = taxonomy;
}
public Boolean getEmbeddable() {
return embeddable;
}
public void setEmbeddable(Boolean embeddable) {
this.embeddable = embeddable;
}
public String getHref() {
return href;
}
public void setHref(String href) {
this.href = href;
}
}
|
[
"huuhuybn@gmail.com"
] |
huuhuybn@gmail.com
|
c7120a7c6cb61b812535116d442f10f241bae63c
|
b1db7cf979aaed9a60e376fe2a61e020b66f84e0
|
/src/java/com/jilit/irp/persistence/dto/HobbiesMasterId.java
|
76838550152fbe0b86ff219f3ff747cd8b011944
|
[] |
no_license
|
livcoding/CLXRegistration_OLD
|
c2a569c0c05c46b9fbb6e176ffc1fd9ca3ebd7e1
|
a167f29d20d9c9f1de0e4e78bfca6317f837bc4d
|
refs/heads/master
| 2023-06-21T11:14:20.595579
| 2021-07-23T07:26:29
| 2021-07-23T07:26:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 899
|
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.jilit.irp.persistence.dto;
/**
*
* @author ashok.singh
*/
public class HobbiesMasterId implements java.io.Serializable {
private String clientid;
private String hobbyname;
public HobbiesMasterId() {
}
public HobbiesMasterId(String clientid, String hobbyname) {
this.clientid = clientid;
this.hobbyname = hobbyname;
}
public String getClientid() {
return clientid;
}
public void setClientid(String clientid) {
this.clientid = clientid;
}
public String getHobbyname() {
return hobbyname;
}
public void setHobbyname(String hobbyname) {
this.hobbyname = hobbyname;
}
}
|
[
"uvsir001@gmail.com"
] |
uvsir001@gmail.com
|
cefed1884d836c6cbea0d44f4f431f0e5ab9cb01
|
2cbb913f97b7b918d16015b1aca459a32b8e594f
|
/src/main/java/latmod/ftbu/mod/FTBUFinals.java
|
47715b00e81964a00af92a86dcf545bc4a0a7035
|
[] |
no_license
|
labolet/FTBUtilities
|
6a1c4f48530fec6e38185b0035a5165f77b5e528
|
4b9d4b12de7e35ecd33584da042d9d75c9fce7a3
|
refs/heads/1.7.10
| 2021-01-18T04:59:33.423572
| 2015-10-29T03:50:36
| 2015-10-29T03:50:36
| 45,157,748
| 0
| 0
| null | 2015-10-29T03:24:29
| 2015-10-29T03:24:29
| null |
UTF-8
|
Java
| false
| false
| 427
|
java
|
package latmod.ftbu.mod;
import ftb.lib.mod.FTBLibFinals;
public class FTBUFinals // FTBU
{
public static final String MOD_ID = "FTBU";
public static final String MOD_VERSION = "@VERSION@";
public static final String MOD_NAME = "FTBUtilities";
public static final String MOD_DEP = "required-after:FTBL;after:Baubles;after:Waila";
public static final String MOD_VERSION_DISPLAY = FTBLibFinals.DEV ? "Dev" : MOD_VERSION;
}
|
[
"latvianmodder@gmail.com"
] |
latvianmodder@gmail.com
|
ebadb4ff76490c28586a52bab2eaa2742b3ba5fb
|
159f75d12bb51bff89497499c2dbc2971ad8dc3e
|
/edelta.parent/edelta/old/EdeltaEObjectAtOffsetHelper.java
|
a700098cb6dc9cb74735558929cbdb7e629da1d9
|
[] |
no_license
|
LorenzoBettini/edelta
|
f406a305b99bdf30e373cb26d097df8ae256da6c
|
b011c66859f7751bd8434e91d87ace681978f1c1
|
refs/heads/master
| 2023-07-02T10:07:46.624753
| 2023-06-08T11:36:36
| 2023-06-08T11:36:36
| 97,230,480
| 8
| 7
| null | 2023-06-08T10:02:02
| 2017-07-14T12:13:27
|
Java
|
UTF-8
|
Java
| false
| false
| 1,720
|
java
|
package edelta.resource;
import org.eclipse.emf.ecore.ENamedElement;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.xtext.EcoreUtil2;
import org.eclipse.xtext.nodemodel.INode;
import org.eclipse.xtext.nodemodel.util.NodeModelUtils;
import org.eclipse.xtext.xbase.XExpression;
import org.eclipse.xtext.xbase.linking.BrokenConstructorCallAwareEObjectAtOffsetHelper;
import com.google.inject.Inject;
import edelta.edelta.EdeltaEcoreReference;
import edelta.edelta.EdeltaEcoreReferenceExpression;
import edelta.resource.derivedstate.EdeltaDerivedStateHelper;
/**
* Customization for ecoreref references, using the original enamed element.
*
* @author Lorenzo Bettini
*/
public class EdeltaEObjectAtOffsetHelper extends BrokenConstructorCallAwareEObjectAtOffsetHelper {
@Inject
private EdeltaDerivedStateHelper edeltaDerivedStateHelper;
@Override
protected EObject resolveCrossReferencedElement(final INode node) {
final EObject referenceOwner = NodeModelUtils.findActualSemanticObjectFor(node);
if (referenceOwner instanceof EdeltaEcoreReference) {
final EdeltaEcoreReference ecoreReference = (EdeltaEcoreReference) referenceOwner;
final ENamedElement original = edeltaDerivedStateHelper
.getEcoreReferenceState(ecoreReference)
.getOriginalEnamedelement();
if (original != null)
return original;
XExpression expression = edeltaDerivedStateHelper
.getEcoreReferenceExpressionState(
EcoreUtil2.getContainerOfType(ecoreReference, EdeltaEcoreReferenceExpression.class))
.getEnamedElementXExpressionMap()
.get(ecoreReference.getEnamedelement());
if (expression != null)
return expression;
}
return super.resolveCrossReferencedElement(node);
}
}
|
[
"lorenzo.bettini@gmail.com"
] |
lorenzo.bettini@gmail.com
|
bc0e5725b683ca76eb58d3594790d2ab3eabb400
|
772d3e6ac425b1e6fa13ef3858adecf4eb51e8dc
|
/test/NullPointerExceptionExam.java
|
f373a26322b0544b73b1a5d04ebd9c4288aee7c6
|
[] |
no_license
|
go88hoontops/java
|
2723a13decbf5eaf7a4928476a76e94341f5c58c
|
ea7c4f2f577874dc1ec8ab5d5f7f910432ab3f37
|
refs/heads/master
| 2023-04-06T09:10:10.373247
| 2021-04-06T01:09:46
| 2021-04-06T01:09:46
| 355,005,350
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 253
|
java
|
package com.jh.test;
public class NullPointerExceptionExam {
public static void main(String[] args) {
String data =null;
//전처리
//에러가 생기지않게 처리.
System.out.println("asdasdasd");
}
}
|
[
"go88.hoon@gmail.com"
] |
go88.hoon@gmail.com
|
5c311b3c55887f993b84edbd1da6fd02fbe4f886
|
1809d94fc23e1a971b20262581c892e328873a8e
|
/src/filters/FreePassFilter.java
|
b5aeb3f37fca5c580ecf99f80cdec5c9e3881036
|
[] |
no_license
|
pyj0807/exer02
|
c4bd45d86cbac7fe83faeab2a12e42078a813630
|
f8184001a4205583f14bcbf3910ec1574500464a
|
refs/heads/master
| 2020-03-27T17:20:58.224872
| 2018-09-18T04:22:19
| 2018-09-18T04:22:19
| 146,845,877
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 949
|
java
|
package filters;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class FreePassFilter extends HttpFilter {
protected void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
throws IOException, ServletException {
HttpSession session = request.getSession();
Cookie[] ar = request.getCookies();
if (ar != null) {
chain.doFilter(request, response);
} else {
for (int i = 0; i < ar.length; i++) {
Cookie c = ar[i];
String name = c.getName();
String value = c.getValue();
String path = c.getPath();
String domain = c.getDomain();
int maxage = c.getMaxAge();
}
}
}
}
|
[
"kgitbank@DESKTOP-U6AB831"
] |
kgitbank@DESKTOP-U6AB831
|
b2665dd1ea7d46d31b70ad7d5f70d1e6e73fba5a
|
c94f888541c0c430331110818ed7f3d6b27b788a
|
/blockchain/java/src/main/java/com/antgroup/antchain/openapi/blockchain/models/GetContractConfigChainRequest.java
|
c4c633fe286ff627c451f9173f846c1e1cd242c6
|
[
"MIT",
"Apache-2.0"
] |
permissive
|
alipay/antchain-openapi-prod-sdk
|
48534eb78878bd708a0c05f2fe280ba9c41d09ad
|
5269b1f55f1fc19cf0584dc3ceea821d3f8f8632
|
refs/heads/master
| 2023-09-03T07:12:04.166131
| 2023-09-01T08:56:15
| 2023-09-01T08:56:15
| 275,521,177
| 9
| 10
|
MIT
| 2021-03-25T02:35:20
| 2020-06-28T06:22:14
|
PHP
|
UTF-8
|
Java
| false
| false
| 1,076
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.blockchain.models;
import com.aliyun.tea.*;
public class GetContractConfigChainRequest extends TeaModel {
// OAuth模式下的授权token
@NameInMap("auth_token")
public String authToken;
@NameInMap("product_instance_id")
public String productInstanceId;
public static GetContractConfigChainRequest build(java.util.Map<String, ?> map) throws Exception {
GetContractConfigChainRequest self = new GetContractConfigChainRequest();
return TeaModel.build(map, self);
}
public GetContractConfigChainRequest setAuthToken(String authToken) {
this.authToken = authToken;
return this;
}
public String getAuthToken() {
return this.authToken;
}
public GetContractConfigChainRequest setProductInstanceId(String productInstanceId) {
this.productInstanceId = productInstanceId;
return this;
}
public String getProductInstanceId() {
return this.productInstanceId;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
b69da3c6121ffad561813e1c7e87cf0fd967bba3
|
e1e5bd6b116e71a60040ec1e1642289217d527b0
|
/H5/L2jMaster_org/L2jMaster_org_2019_07_02/L2JMaster_Server/src/main/java/com/l2jserver/gameserver/network/clientpackets/AnswerCoupleAction.java
|
4bb0c9c63494f40f9954fab896b724b5d38b1e4c
|
[] |
no_license
|
serk123/L2jOpenSource
|
6d6e1988a421763a9467bba0e4ac1fe3796b34b3
|
603e784e5f58f7fd07b01f6282218e8492f7090b
|
refs/heads/master
| 2023-03-18T01:51:23.867273
| 2020-04-23T10:44:41
| 2020-04-23T10:44:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,342
|
java
|
/*
* Copyright (C) 2004-2019 L2J Server
*
* This file is part of L2J Server.
*
* L2J Server is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* L2J Server is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jserver.gameserver.network.clientpackets;
import com.l2jserver.gameserver.model.L2World;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.network.SystemMessageId;
import com.l2jserver.gameserver.network.serverpackets.ExRotation;
import com.l2jserver.gameserver.network.serverpackets.SocialAction;
import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
import com.l2jserver.gameserver.util.Util;
/**
* @author JIV
*/
public class AnswerCoupleAction extends L2GameClientPacket
{
private static final String _C__D0_7A_ANSWERCOUPLEACTION = "[C] D0:7A AnswerCoupleAction";
private int _charObjId;
private int _actionId;
private int _answer;
@Override
protected void readImpl()
{
_actionId = readD();
_answer = readD();
_charObjId = readD();
}
@Override
protected void runImpl()
{
L2PcInstance activeChar = getActiveChar();
L2PcInstance target = L2World.getInstance().getPlayer(_charObjId);
if ((activeChar == null) || (target == null))
{
return;
}
if ((target.getMultiSocialTarget() != activeChar.getObjectId()) || (target.getMultiSociaAction() != _actionId))
{
return;
}
if (_answer == 0) // cancel
{
target.sendPacket(SystemMessageId.COUPLE_ACTION_DENIED);
}
else if (_answer == 1) // approve
{
final int distance = (int) activeChar.calculateDistance(target, false, false);
if ((distance > 125) || (distance < 15) || (activeChar.getObjectId() == target.getObjectId()))
{
sendPacket(SystemMessageId.TARGET_DO_NOT_MEET_LOC_REQUIREMENTS);
target.sendPacket(SystemMessageId.TARGET_DO_NOT_MEET_LOC_REQUIREMENTS);
return;
}
int heading = Util.calculateHeadingFrom(activeChar, target);
activeChar.broadcastPacket(new ExRotation(activeChar.getObjectId(), heading));
activeChar.setHeading(heading);
heading = Util.calculateHeadingFrom(target, activeChar);
target.setHeading(heading);
target.broadcastPacket(new ExRotation(target.getObjectId(), heading));
activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), _actionId));
target.broadcastPacket(new SocialAction(_charObjId, _actionId));
}
else if (_answer == -1) // refused
{
SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_IS_SET_TO_REFUSE_COUPLE_ACTIONS);
sm.addPcName(activeChar);
target.sendPacket(sm);
}
target.setMultiSocialAction(0, 0);
}
@Override
public String getType()
{
return _C__D0_7A_ANSWERCOUPLEACTION;
}
}
|
[
"64197706+L2jOpenSource@users.noreply.github.com"
] |
64197706+L2jOpenSource@users.noreply.github.com
|
b712699c62d85021d9a6c2fb934f2e55816b7d0b
|
6e483845ddc79559ace7f3a69afa078d70520a99
|
/src/edu/fatec/grafo/Grafo.java
|
1523321b53d946e42c0fc32ad95c306108aa2d35
|
[] |
no_license
|
brunonlima/GrafoManhattanV2.0
|
e0bba318b56f467a9aff470f22a0f33fd301de62
|
f0a3ccc2ebca6fd0e491e392b3aab3a0ecb3cbd7
|
refs/heads/master
| 2021-09-07T04:52:06.995998
| 2018-02-17T19:43:26
| 2018-02-17T19:43:26
| null | 0
| 0
| null | null | null | null |
ISO-8859-1
|
Java
| false
| false
| 3,812
|
java
|
package edu.fatec.grafo;
import java.util.LinkedList;
import java.util.Scanner;
//Classe G=(V,E) não-orientado.Tempo esperado de execução é proporcional à O(|V|E|)
public class Grafo {
//Atributos
private final int V;// Número de vértices,sendo uma constante.
private int E;// Número de arestas
private int adj[][];// Matriz de adjacências
private LinkedList<Integer>[] adje;// Lista de adjacências
// Construtor que inicializa o Grafo com V vértices
public Grafo(int V) {
if (V < 0) throw new IllegalArgumentException("Número de vértices não pode ser negativo");
this.V = V;
this.E = 0;
adj = new int[V][V];
adje = (LinkedList<Integer>[]) new LinkedList[V];
for (int v = 0; v < V; v++) {
adje[v] = new LinkedList<Integer>();
}
}
/* Método que adiciona E(v-w) arestas ao Grafo.
* Tempo esperado de execução é proporcional a O(V + E).
*/
public void adiciona_aresta(int E) {
if (E < 0) throw new IllegalArgumentException("Número de arestas não pode ser negativo");
int v=0,w=0,cont=0;
int u=0;
Scanner s = new Scanner(System.in);
while(cont < E){
System.out.printf("\n%d ARESTA:",cont+1);
do{
System.out.printf("\nForneça o valor da coordenada X: ");
v=s.nextInt();
}while(v > this.V);
do{
System.out.printf("Forneça o valor da coordenada Y: ");
w=s.nextInt();
} while(w > this.V);
do{
System.out.printf("\nForneça o valor de peso da aresta[%d,%d]: " , v , w);
System.out.printf("\n*Sendo 1 para Aresta horizontal ou vertical\n");
System.out.printf("*Sendo 2(RAIZ de 2) para Aresta diagonal\n");
u=s.nextInt();
}while(u > 2);
if (v != w && this.adj[v - 1][w - 1] == 0) {
this.adj[v - 1][w - 1] = u;
this.adj[w - 1][v - 1] = u;
adicionaArestaLista(v-1, w-1);
this.E++;
}
cont = cont + 1;
}
}
public void mostrarGrafo(){
int v, w;
System.out.printf("\n\n");
for (v = 0; v < this.V; v++){
System.out.printf( "%2d:", v+1);
for (w = 0; w < this.V; w++)
if (this.adj[v][w] > 0 )
System.out.printf( " %2d", w+1);
System.out.printf( "\n");
}
}
/* Método que mostra matriz de adjacências.
* Tempo esperado de execução é proporcional a O(V x V).
* Matriz simétrica.
*/
public void mostrarMatriz(){
int i , j;
System.out.printf( "\n\n** MATRIZ DE ADJACÊNCIAS**\n");
for(i = 0; i < this.V ; i++){
System.out.printf(" %d" , i + 1);
}
System.out.printf("\n --------------------------------------------------");
System.out.printf("\n");
for(i = 0; i < this.V ; i++){
System.out.printf("%d|" , i + 1);
for(j = 0; j < this.V ; j++)
System.out.printf(" %d" , this.adj[i][j]);
System.out.printf("\n");
}
}
private void adicionaArestaLista(int v, int w) {
if (v < 0 || v >= V) throw new IndexOutOfBoundsException();
if (w < 0 || w >= V) throw new IndexOutOfBoundsException();
adje[v].add(w);
adje[w].add(v);
}
public int V(){return V;}
public int E(){return E;}
public int[][] getAdj(){return adj;}
public Iterable<Integer> adje(int v) {
if (v < 0 || v >= V) throw new IndexOutOfBoundsException();
return adje[v];
}
}
|
[
"brunofatecscs@gmail.com"
] |
brunofatecscs@gmail.com
|
fb82059fa5b3fb3dbd5a02e0ac41aebb8d969633
|
8526a444075827abccab07b2948a3269f04fefe7
|
/app/src/main/java/nau/william/capstonechat/utils/Display.java
|
02db1b9c30ed48669288d07fd2c32387cdc41694
|
[] |
no_license
|
WMNau/capstone-chat-app-android
|
2f735033f77816ecc168a111539435649346a820
|
b1ede4ca3b739659da9acea275d897dba79e2a6e
|
refs/heads/master
| 2020-05-14T08:58:55.673650
| 2019-05-15T01:15:09
| 2019-05-15T01:15:09
| 181,732,003
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,059
|
java
|
package nau.william.capstonechat.utils;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.widget.TextView;
import android.widget.Toast;
public class Display {
public static void toastMessage(Context context, String message) {
Toast.makeText(context, message, Toast.LENGTH_LONG).show();
}
public static void popupMessage(Context context, String title, String message) {
toastMessage(context, message);
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setTitle(title);
TextView messageView = new TextView(context);
messageView.setText(message);
builder.setView(messageView);
builder.setPositiveButton("OK", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
}
});
AlertDialog dialog = builder.create();
dialog.show();
}
}
|
[
"="
] |
=
|
12e4f8bb995c2cc74284719ecb70d27c051b5858
|
471579962eb0abf949c73685353ef0098a8ad127
|
/HelloGradle/src/main/java/com/kaifantech/component/timer/agv/server/YufengAgvServerTimer.java
|
113d3cb3e9a7f5936fa385df2781bf12cd36b7c1
|
[] |
no_license
|
huyulin11/gradle
|
a727c7e31b9a42aee6decd5d6a5f5ceac84180f3
|
3cdc3b8b02e9f48af93d1cc6087b61f67cf45a0e
|
refs/heads/master
| 2020-04-13T07:09:16.437325
| 2019-02-26T03:20:13
| 2019-02-26T03:20:13
| 163,042,029
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,965
|
java
|
package com.kaifantech.component.timer.agv.server;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import com.kaifantech.component.dao.AGVConnectMsgDao;
import com.kaifantech.component.service.agv.simulator.YufengAgvServerWorker;
import com.kaifantech.component.service.comm.YufengAgvManager;
import com.kaifantech.init.sys.SystemClient;
import com.kaifantech.init.sys.params.SystemParameters;
import com.kaifantech.util.seq.ThreadID;
import com.kaifantech.util.thread.ThreadTool;
import com.ytgrading.util.AppTool;
@Component
@Lazy(false)
public class YufengAgvServerTimer {
private static boolean isRunning = false;
private static String timerType = "IOT模拟器";
private final Logger logger = Logger.getLogger(YufengAgvServerTimer.class);
@Autowired
private YufengAgvServerWorker agvServerWorker;
@Autowired
private AGVConnectMsgDao msgDao;
public YufengAgvServerTimer() {
logger.info(timerType + "开始启动!");
}
@Scheduled(cron = "0/1 * * * * ?")
public void resolute() {
if (!SystemClient.CLIENT.equals(SystemClient.Client.YUFENG)) {
return;
}
if (!SystemParameters.isConnectIotServer()) {
return;
}
if (!isRunning) {
Thread.currentThread().setName(timerType + (ThreadID.number++));
isRunning = true;
agvSimulate();
}
isRunning = false;
}
private void agvSimulate() {
ThreadTool.run(() -> {
agvServerWorker.startConnect();
});
}
@Scheduled(initialDelay = 5000, fixedDelay = 1000)
public void getMsgFromAgv() {
if (!SystemClient.CLIENT.equals(SystemClient.Client.YUFENG)) {
return;
}
String msg = agvServerWorker.getMap().get(1).getMsgReceived();
if (AppTool.isNull(msg)) {
return;
}
YufengAgvManager.nextMsg = msg;
msgDao.addAMsg(msg, "getMsgFromAgv", 1);
}
}
|
[
"huyulin11@sina.cn"
] |
huyulin11@sina.cn
|
dca197a6cca1b23029cc5454578b65b811bd598a
|
96f8d42c474f8dd42ecc6811b6e555363f168d3e
|
/baike/sources/android/support/v4/content/WakefulBroadcastReceiver.java
|
ae92ccb12b9fd1a9693f314852fe720cf2829282
|
[] |
no_license
|
aheadlcx/analyzeApk
|
050b261595cecc85790558a02d79739a789ae3a3
|
25cecc394dde4ed7d4971baf0e9504dcb7fabaca
|
refs/heads/master
| 2020-03-10T10:24:49.773318
| 2018-04-13T09:44:45
| 2018-04-13T09:44:45
| 129,332,351
| 6
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,846
|
java
|
package android.support.v4.content;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.PowerManager;
import android.os.PowerManager.WakeLock;
import android.util.Log;
import android.util.SparseArray;
@Deprecated
public abstract class WakefulBroadcastReceiver extends BroadcastReceiver {
private static final SparseArray<WakeLock> a = new SparseArray();
private static int b = 1;
public static ComponentName startWakefulService(Context context, Intent intent) {
synchronized (a) {
int i = b;
b++;
if (b <= 0) {
b = 1;
}
intent.putExtra("android.support.content.wakelockid", i);
ComponentName startService = context.startService(intent);
if (startService == null) {
return null;
}
WakeLock newWakeLock = ((PowerManager) context.getSystemService("power")).newWakeLock(1, "wake:" + startService.flattenToShortString());
newWakeLock.setReferenceCounted(false);
newWakeLock.acquire(60000);
a.put(i, newWakeLock);
return startService;
}
}
public static boolean completeWakefulIntent(Intent intent) {
int intExtra = intent.getIntExtra("android.support.content.wakelockid", 0);
if (intExtra == 0) {
return false;
}
synchronized (a) {
WakeLock wakeLock = (WakeLock) a.get(intExtra);
if (wakeLock != null) {
wakeLock.release();
a.remove(intExtra);
return true;
}
Log.w("WakefulBroadcastReceiv.", "No active wake lock id #" + intExtra);
return true;
}
}
}
|
[
"aheadlcxzhang@gmail.com"
] |
aheadlcxzhang@gmail.com
|
5ee0b614f5b8b8a2c0eeaa0f50aa1d1018d5847e
|
b77bf23ba60db5794445b8204317ed8b7388a2fd
|
/gg/sulfur/client/impl/utils/networking/PacketSleepThread.java
|
fbc5844a9c28763899bd0e44ffdc13c791848c5e
|
[] |
no_license
|
SulfurClient/Sulfur
|
f41abb5335ae9617a629ced0cde4703ef7cc5f2c
|
e54efe14bb52d09752f9a38d7282f0d1cd81e469
|
refs/heads/main
| 2022-07-29T03:18:53.078298
| 2022-02-02T15:09:34
| 2022-02-02T15:09:34
| 426,418,356
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 716
|
java
|
package gg.sulfur.client.impl.utils.networking;
import net.minecraft.client.Minecraft;
import net.minecraft.network.Packet;
public class PacketSleepThread extends Thread {
public PacketSleepThread(Packet packet, long delay) {
super(() -> {
sleep_ms(delay);
if (Minecraft.getMinecraft().thePlayer != null)
PacketUtil.sendPacketNoEvent(packet);
});
}
static void sleep_ms(long delay) {
try {
sleep(delay);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
public static void delayPacket(Packet packet, long delay) {
new PacketSleepThread(packet, delay).start();
}
}
|
[
"45654930+Kansioo@users.noreply.github.com"
] |
45654930+Kansioo@users.noreply.github.com
|
a5a537ec7d431e7419be56f3498121502230a61f
|
6970cd9e1c123276f8f297caaac3374ef779a72e
|
/pocchroma/pocchromastorefront/web/addonsrc/notificationaddon/de/hybris/platform/notificationaddon/controllers/pages/NotificationPreferencePageController.java
|
e3f68aadbdc7ddb0bf2e2c78e757c53fee67f003
|
[] |
no_license
|
Prashanth-techouts/tatacroma-poc
|
22badc975ebb84ebd270e88932eafdbb4ffe14ec
|
21992e275ba96f65b129b4485e76a7e4baa2e727
|
refs/heads/master
| 2023-06-19T13:32:32.848697
| 2021-07-21T08:28:09
| 2021-07-21T08:28:09
| 388,042,775
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,747
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with SAP.
*/
package de.hybris.platform.notificationaddon.controllers.pages;
import de.hybris.platform.acceleratorstorefrontcommons.annotations.RequireHardLogIn;
import de.hybris.platform.acceleratorstorefrontcommons.breadcrumb.ResourceBreadcrumbBuilder;
import de.hybris.platform.acceleratorstorefrontcommons.controllers.ThirdPartyConstants;
import de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController;
import de.hybris.platform.acceleratorstorefrontcommons.controllers.util.GlobalMessages;
import de.hybris.platform.cms2.exceptions.CMSItemNotFoundException;
import de.hybris.platform.notificationaddon.forms.NotificationChannelForm;
import de.hybris.platform.notificationfacades.data.NotificationPreferenceData;
import de.hybris.platform.notificationfacades.facades.NotificationPreferenceFacade;
import java.util.List;
import java.util.stream.Collectors;
import javax.annotation.Resource;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
/**
* Controller for displaying and updating notification preference
*/
@Controller
@Scope("tenant")
@RequestMapping("/my-account/notification-preference")
public class NotificationPreferencePageController extends AbstractPageController
{
private static final String REDIRECT_TO_GET_PREFERENCE_PAGE = REDIRECT_PREFIX + "/my-account/notification-preference";
private static final String NOTIFICATION_PREFERENCE_CMS_PAGE = "notification-preference";
private static final String BREADCRUMBS_ATTR = "breadcrumbs";
private static final String NOTIFICATION_PREFERENCE_FORM = "notificationPreferenceForm";
@Resource(name = "accountBreadcrumbBuilder")
private ResourceBreadcrumbBuilder accountBreadcrumbBuilder;
@Resource(name = "notificationPreferenceFacade")
private NotificationPreferenceFacade notificationPreferenceFacade;
final String[] DISALLOWED_FIELDS = new String[]{};
@InitBinder
public void initBinder(final WebDataBinder binder) {
binder.setDisallowedFields(DISALLOWED_FIELDS);
}
@RequestMapping(method = RequestMethod.GET)
@RequireHardLogIn
public String getNotificationPreferences(final Model model) throws CMSItemNotFoundException
{
final List<NotificationPreferenceData> notificationPreferenceList = notificationPreferenceFacade
.getValidNotificationPreferences();
final NotificationChannelForm form = new NotificationChannelForm();
form.setChannels(notificationPreferenceList.stream()
.sorted((a, b) -> a.getChannel().getCode().compareTo(b.getChannel().getCode())).collect(Collectors.toList()));
model.addAttribute(NOTIFICATION_PREFERENCE_FORM, form);
storeCmsPageInModel(model, getContentPageForLabelOrId(NOTIFICATION_PREFERENCE_CMS_PAGE));
setUpMetaDataForContentPage(model, getContentPageForLabelOrId(NOTIFICATION_PREFERENCE_CMS_PAGE));
model.addAttribute(BREADCRUMBS_ATTR,
accountBreadcrumbBuilder.getBreadcrumbs("text.account.profile.notificationPreferenceSetting"));
model.addAttribute(ThirdPartyConstants.SeoRobots.META_ROBOTS, ThirdPartyConstants.SeoRobots.NOINDEX_NOFOLLOW);
return getViewForPage(model);
}
@RequestMapping(method = RequestMethod.POST)
@RequireHardLogIn
public String updateNotificationPreference(final NotificationChannelForm notificationPreferenceForm,
final BindingResult bindingResult, final Model model, final RedirectAttributes redirectModel)
throws CMSItemNotFoundException
{
notificationPreferenceFacade.updateNotificationPreference(notificationPreferenceForm.getChannels());
model.addAttribute(BREADCRUMBS_ATTR,
accountBreadcrumbBuilder.getBreadcrumbs("text.account.profile.notificationPreferenceSetting"));
model.addAttribute(ThirdPartyConstants.SeoRobots.META_ROBOTS, ThirdPartyConstants.SeoRobots.NOINDEX_NOFOLLOW);
GlobalMessages.addFlashMessage(redirectModel, GlobalMessages.CONF_MESSAGES_HOLDER,
"notification.preference.confirmation.message.title");
return REDIRECT_TO_GET_PREFERENCE_PAGE;
}
}
|
[
"prashanth.g@techouts.com"
] |
prashanth.g@techouts.com
|
e31593f03a385898764fda0f1c0b5e0655159053
|
15ae8d4bd9e1085e0ba7a54beae2f0c126a2dce4
|
/src/codingInterviewGuide/part3tree/TraverseTree.java
|
9b4bc28b2b5a18f0a0ff83569377022ba5743eae
|
[] |
no_license
|
qdh0520/Algorithm
|
aae9cc61cc020ba371afe4e638bdb5bff11150cf
|
40f626d95eb877005149631d4ffc228b2829cc89
|
refs/heads/master
| 2020-07-06T12:23:23.300710
| 2019-09-19T14:50:29
| 2019-09-19T14:50:29
| 203,016,025
| 1
| 0
| null | 2019-08-18T14:32:46
| 2019-08-18T14:32:45
| null |
UTF-8
|
Java
| false
| false
| 1,875
|
java
|
package codingInterviewGuide.part3tree;
import java.util.Stack;
/**
* 非递归实现遍历二叉树
* Created by Dell on 2017-09-03.
*/
public class TraverseTree {
public void preOrder(TreeNode root){
Stack<TreeNode> stack=new Stack<TreeNode>();
TreeNode cur=null;
stack.add(root);
while(!stack.isEmpty()){
cur=stack.pop();
System.out.print(cur.val+" ");
if(cur.right!=null){stack.add(cur.right);}
if(cur.left!=null){stack.add(cur.left);}
}
}
public void in(TreeNode root){
if(root==null){
return;
}
in(root.left);
System.out.println(root.val+" ");
in(root.right);
}
public void inOrder(TreeNode root){
if(root==null){
return;
}
Stack<TreeNode> stack=new Stack<TreeNode>();
stack.add(root);
TreeNode cur=root.left;//cur指向栈顶的左孩子
while(cur!=null||!stack.isEmpty()){//压栈的顺序是左,右,根,
if(cur==null){
cur=stack.pop();
System.out.print(cur.val+" ");
cur=cur.right;
}else{
stack.add(cur);
cur=cur.left;
}
}
}
public void postOrder(TreeNode root){
if(root==null){
return;
}
Stack<TreeNode> stack=new Stack<TreeNode>();
stack.add(root);
TreeNode cur=root.left;//cur指向栈顶的左孩子
while(cur!=null||!stack.isEmpty()){//压栈的顺序是左,右,根,
if(cur==null){
cur=stack.pop();
System.out.print(cur.val+" ");
cur=cur.right;
}else{
stack.add(cur);
}
}
}
}
|
[
"18103412880@163.com"
] |
18103412880@163.com
|
0217ee1e7d22675e54fb2e22d544985e3ec9c3d3
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_21f859e222cf78ca8485e0f479bffd38d85838a2/QueryMapper/2_21f859e222cf78ca8485e0f479bffd38d85838a2_QueryMapper_s.java
|
e0ed6b0fb3671c3fe7b84d400d4f6681cc5d5bd7
|
[] |
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,132
|
java
|
/*
* Copyright (c) 2011 by the original author(s).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.document.mongodb.query;
import java.util.ArrayList;
import java.util.List;
import com.mongodb.BasicDBObject;
import com.mongodb.DBObject;
import org.bson.types.ObjectId;
import org.springframework.core.convert.ConversionFailedException;
import org.springframework.data.document.mongodb.MongoReader;
import org.springframework.data.document.mongodb.convert.MongoConverter;
import org.springframework.data.mapping.model.PersistentEntity;
/**
* A helper class to encapsulate any modifications of a Query object before it gets submitted to the database.
*
* @author Jon Brisbin <jbrisbin@vmware.com>
*/
public class QueryMapper<T> {
final private DBObject query;
final private PersistentEntity<T> entity;
final private MongoReader<Object> reader;
public QueryMapper(DBObject query, PersistentEntity<T> entity, MongoReader<?> reader) {
this.query = query;
this.entity = entity;
this.reader = (MongoReader<Object>) reader;
}
public DBObject getMappedObject() {
String idKey = null;
if (null != entity) {
idKey = entity.getIdProperty().getName();
} else if (query.containsField("id")) {
idKey = "id";
} else if (query.containsField("_id")) {
idKey = "_id";
}
DBObject newDbo = new BasicDBObject();
for (String key : query.keySet()) {
String newKey = key;
Object value = query.get(key);
if (key.equals(idKey)) {
if (value instanceof DBObject) {
DBObject valueDbObj = (DBObject) value;
if ("$in".equals(key)) {
List<Object> ids = new ArrayList<Object>();
for (Object id : (Object[]) ((DBObject) value).get("$in")) {
if (null != reader && !(id instanceof ObjectId)) {
ObjectId oid = ((MongoConverter) reader).convertObjectId(id);
ids.add(oid);
} else {
ids.add(id);
}
}
newDbo.put("$in", ids.toArray(new ObjectId[ids.size()]));
}
if (null != reader) {
try {
value = reader.read(entity.getIdProperty().getType(), valueDbObj);
} catch (ConversionFailedException ignored) {
}
}
} else if (null != reader) {
try {
value = ((MongoConverter) reader).convertObjectId(value);
} catch (ConversionFailedException ignored) {
}
}
newKey = "_id";
} else {
// TODO: Implement other forms of key conversion (like @Alias and whatnot)
}
newDbo.put(newKey, value);
}
return newDbo;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
c455054b1624f4ee1cadd1c45386170378bb41fb
|
139960e2d7d55e71c15e6a63acb6609e142a2ace
|
/mobile_app1/leafModuleMin/src/main/java/leafModuleMinpackageJava0/Foo0.java
|
9f5c58380b7a88a217aebf23d2a0c775d2b3e54f
|
[
"Apache-2.0"
] |
permissive
|
uber-common/android-build-eval
|
448bfe141b6911ad8a99268378c75217d431766f
|
7723bfd0b9b1056892cef1fef02314b435b086f2
|
refs/heads/master
| 2023-02-18T22:25:15.121902
| 2023-02-06T19:35:34
| 2023-02-06T19:35:34
| 294,831,672
| 83
| 7
|
Apache-2.0
| 2021-09-24T08:55:30
| 2020-09-11T23:27:37
|
Java
|
UTF-8
|
Java
| false
| false
| 779
|
java
|
package leafModuleMinpackageJava0;
import java.lang.Integer;
public class Foo0 {
Integer int0;
public void foo0() {
new module1055packageKt0.Foo0().foo4();
new module304packageKt0.Foo0().foo5();
new module1002packageJava0.Foo0().foo3();
new module491packageJava0.Foo0().foo5();
new module438packageKt0.Foo0().foo2();
new module1246packageJava0.Foo0().foo3();
new module288packageJava0.Foo0().foo0();
new module252packageJava0.Foo0().foo5();
new module410packageJava0.Foo0().foo1();
new module785packageJava0.Foo0().foo2();
new module648packageKt0.Foo0().foo8();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
}
|
[
"oliviern@uber.com"
] |
oliviern@uber.com
|
faa6fea66a302e79d31e51d0fc0377da7254fb07
|
2f05bf264bd87f533803906811ffc89685688dba
|
/Java_020_wordQuiz/src/com/callor/word/domain/WordVO.java
|
6381586826b387f48efe67241f5816ec8f055030
|
[] |
no_license
|
dkdud8140/Biz_403_2021_03_Java
|
3d6a9cf8cd692b78047606665fd888a8ca6ed80f
|
a24f241a8d12e13c9d6a8a6be78a6b66e5856c31
|
refs/heads/master
| 2023-06-23T03:51:46.025661
| 2021-07-26T08:35:43
| 2021-07-26T08:35:43
| 348,207,335
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 722
|
java
|
package com.callor.word.domain;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/*
* model package
* MVC(Model View Controller) 패턴의 프로젝트에서는
* VO 클래스가 저장되는 package 를 보통 model로 작성을 한다
*
* domain package
* DBMS와 연동되는 프로젝트에서 사용하기도 하는 이름
*
* command package
*
*/
// Annotation
// @Override 처럼
// annotation으로 키워드를 지정하므로써 단순히 반복 작성해야하는
// 코드를 자동으로 만들어주는 효과를 낸다
@Getter
@Setter
@ToString
public class WordVO {
//정보의 은닉
private String english ;
private String korea ;
private Integer count ;
}
|
[
"cho.ay4@gmail.com"
] |
cho.ay4@gmail.com
|
634ef746e58af02aa4404f51895fc4afcd2bbd9e
|
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
|
/genny_JavaWithoutLambdas/applicationModule/src/main/java/applicationModulepackageJava8/Foo148.java
|
54ff0e32059e7092f5a91036352d719058468296
|
[] |
no_license
|
NikitaKozlov/generated-project-for-desugaring
|
0bc1443ab3ddc84cd289331c726761585766aea7
|
81506b3711004185070ca4bb9a93482b70011d36
|
refs/heads/master
| 2020-03-20T00:35:06.996525
| 2018-06-12T09:30:37
| 2018-06-12T09:30:37
| 137,049,317
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 346
|
java
|
package applicationModulepackageJava8;
public class Foo148 {
public void foo0() {
new applicationModulepackageJava8.Foo147().foo5();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
}
|
[
"nikita.e.kozlov@gmail.com"
] |
nikita.e.kozlov@gmail.com
|
0c5b32a8045deccb23640e9e0af9d382bba724d8
|
0be92950649594e8109ceacfeb6f08061974587c
|
/mybatis-mate/src/main/java/cn/newphy/druid/sql/visitor/functions/Trim.java
|
ba97cf607812d752e0877e4a226c8aa21b719624
|
[] |
no_license
|
Newphy/orm-mate
|
73f4a02a9ee0438ee09a4c449777f71fb5ada8d7
|
e74e0176a59f5b2956ea51db26a73a8a645a02a1
|
refs/heads/master
| 2020-03-27T17:10:17.436937
| 2018-08-31T06:30:25
| 2018-08-31T06:30:25
| 146,832,634
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,518
|
java
|
/*
* Copyright 1999-2018 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 cn.newphy.druid.sql.visitor.functions;
import static cn.newphy.druid.sql.visitor.SQLEvalVisitor.EVAL_VALUE;
import cn.newphy.druid.sql.ast.SQLExpr;
import cn.newphy.druid.sql.ast.expr.SQLMethodInvokeExpr;
import cn.newphy.druid.sql.visitor.SQLEvalVisitor;
public class Trim implements Function {
public final static Trim instance = new Trim();
public Object eval(SQLEvalVisitor visitor, SQLMethodInvokeExpr x) {
if (x.getParameters().size() != 1) {
return SQLEvalVisitor.EVAL_ERROR;
}
SQLExpr param0 = x.getParameters().get(0);
param0.accept(visitor);
Object param0Value = param0.getAttributes().get(EVAL_VALUE);
if (param0Value == null) {
return SQLEvalVisitor.EVAL_ERROR;
}
String strValue = param0Value.toString();
String result = strValue.trim();
return result;
}
}
|
[
"liuhui18@xiaoniu66.com"
] |
liuhui18@xiaoniu66.com
|
77ee2d77adfdf43b2af32b3cd8c66ea7c54ea1d4
|
af02ef11699eeda493977488913d166710dac23d
|
/src/com/resmanager/client/view/PullableScrollView.java
|
125780fb079764d4abebad303e3c5207104106d6
|
[] |
no_license
|
Rachel-hsw/ResManagerClient
|
3ac212ab91f5fe06893de445d3591170aadfee18
|
f4b1f6958b0b3949e9e6e575877cf62a67e147e9
|
refs/heads/master
| 2021-06-29T18:47:45.628225
| 2017-09-13T10:16:36
| 2017-09-13T10:16:36
| 103,385,544
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 814
|
java
|
package com.resmanager.client.view;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ScrollView;
public class PullableScrollView extends ScrollView implements Pullable
{
public PullableScrollView(Context context)
{
super(context);
}
public PullableScrollView(Context context, AttributeSet attrs)
{
super(context, attrs);
}
public PullableScrollView(Context context, AttributeSet attrs, int defStyle)
{
super(context, attrs, defStyle);
}
@Override
public boolean canPullDown()
{
if (getScrollY() == 0)
return true;
else
return false;
}
@Override
public boolean canPullUp()
{
if (getScrollY() >= (getChildAt(0).getHeight() - getMeasuredHeight()))
return true;
else
return false;
}
}
|
[
"1623404291@qq.com"
] |
1623404291@qq.com
|
8408800c83263b82bfbe0a5e3fed4a30f75a961b
|
68edc10c26c008b348419f0997b768e8dd014827
|
/module_2/src/bai1_introduction_to_java/thuc_hanh/KhaiBaoVaSuDungBien.java
|
f273fe2f4654658bd6b36cc2dbebfdba49cdf3f4
|
[] |
no_license
|
thanhhau052/C0221G1-DuongThanhHau
|
4332a3f8db425dc56db96c74ed98afe9ce6de6d6
|
94379b8e44d757c2db5b79b30759a9db26e4fbcb
|
refs/heads/main
| 2023-06-26T18:21:49.711919
| 2021-07-31T16:51:04
| 2021-07-31T16:51:04
| 342,121,420
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 524
|
java
|
package bai1_introduction_to_java.thuc_hanh;
public class KhaiBaoVaSuDungBien {
public static void main(String[] args) {
int i = 10;
float f = 20.5f;
double d = 20.5;
boolean b = true;
char c = 'a';
String s = "Hà Nội";
System.out.println("i = " + i);
System.out.println("f = " + f);
System.out.println("d = " + d);
System.out.println("b = " + b);
System.out.println("c = " + c);
System.out.println("s = " + s);
}
}
|
[
"you@example.com"
] |
you@example.com
|
0ba0606c9fd1fb63fc2e6053773a27572614a8cd
|
d7c5121237c705b5847e374974b39f47fae13e10
|
/airspan.netspan/src/main/java/Netspan/NBI_14_50/API/Statistics/LinkAdaptationRawGet.java
|
0dd7b80045060f62728573fb9ff14dcfafe4e692
|
[] |
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,529
|
java
|
package Netspan.NBI_14_50.API.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 = "LinkAdaptationRawGet")
public class LinkAdaptationRawGet {
@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;
}
}
|
[
"build.Airspan.com"
] |
build.Airspan.com
|
9bc0a5f7f7dfd41488e9106039bf41ba0303e3fd
|
dafcdd6347a1be928df01b5a5bf47527f38d029f
|
/Sample4GoogleGCM/src/com/example/sample4googlegcm/GcmIntentService.java
|
9079cd8035d02c398642f6209fc304fc2b010744
|
[] |
no_license
|
sunleesi/android-education-project
|
b62e63076619cb927490fe1585c6a7a0169c79a5
|
31c1e520275ba0445b3288e0626fe5717193bd7b
|
refs/heads/master
| 2021-01-10T03:06:12.607555
| 2015-06-01T06:38:54
| 2015-06-01T06:38:54
| 36,643,841
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,204
|
java
|
package com.example.sample4googlegcm;
import com.google.android.gms.gcm.GoogleCloudMessaging;
import android.app.IntentService;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.NotificationCompat;
public class GcmIntentService extends IntentService {
private static final String TAG="GcmIntengService";
public static final int NOTIFICATION_ID = 1;
private NotificationManager mNotificationManager;
NotificationCompat.Builder builder;
public GcmIntentService() {
super("GcmIntentService");
}
@Override
protected void onHandleIntent(Intent intent) {
Bundle extras = intent.getExtras();
GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(this);
String messageType = gcm.getMessageType(intent);
if (!extras.isEmpty()) { // has effect of unparcelling Bundle
/*
* Filter messages based on message type. Since it is likely that GCM
* will be extended in the future with new message types, just ignore
* any message types you're not interested in, or that you don't
* recognize.
*/
if (GoogleCloudMessaging.
MESSAGE_TYPE_SEND_ERROR.equals(messageType)) {
sendNotification("Send error: " + extras.toString());
} else if (GoogleCloudMessaging.
MESSAGE_TYPE_DELETED.equals(messageType)) {
sendNotification("Deleted messages on server: " +
extras.toString());
// If it's a regular GCM message, do some work.
} else if (GoogleCloudMessaging.
MESSAGE_TYPE_MESSAGE.equals(messageType)) {
// This loop represents the service doing some work.
String time = intent.getStringExtra("time");
sendNotification("Received: " + extras.toString());
}
}
// Release the wake lock provided by the WakefulBroadcastReceiver.
GcmBroadcastReceiver.completeWakefulIntent(intent);
}
// Put the message into a notification and post it.
// This is just one simple example of what you might choose to do with
// a GCM message.
private void sendNotification(String msg) {
mNotificationManager = (NotificationManager)
this.getSystemService(Context.NOTIFICATION_SERVICE);
PendingIntent contentIntent = PendingIntent.getActivity(this, 0,
new Intent(this, MainActivity.class), 0);
NotificationCompat.Builder mBuilder =
new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.ic_launcher)
.setContentTitle("GCM Notification")
.setStyle(new NotificationCompat.BigTextStyle()
.bigText(msg))
.setContentText(msg);
mBuilder.setContentIntent(contentIntent);
mNotificationManager.notify(NOTIFICATION_ID, mBuilder.build());
}
}
|
[
"dongja94@gmail.com"
] |
dongja94@gmail.com
|
5aec546b13cbcf2b56d8c71d810a316c8c4f67b0
|
0e06e096a9f95ab094b8078ea2cd310759af008b
|
/sources/com/vungle/warren/network/APKDirectDownloader.java
|
a2de418d9e24bcb54c7f3923d09fd55e4e4b66cb
|
[] |
no_license
|
Manifold0/adcom_decompile
|
4bc2907a057c73703cf141dc0749ed4c014ebe55
|
fce3d59b59480abe91f90ba05b0df4eaadd849f7
|
refs/heads/master
| 2020-05-21T02:01:59.787840
| 2019-05-10T00:36:27
| 2019-05-10T00:36:27
| 185,856,424
| 1
| 2
| null | 2019-05-10T00:36:28
| 2019-05-09T19:04:28
|
Java
|
UTF-8
|
Java
| false
| false
| 966
|
java
|
package com.vungle.warren.network;
import android.content.Context;
import com.tonyodev.fetch.Fetch.Settings;
import java.util.Map.Entry;
public class APKDirectDownloader extends FetchDownloader {
public APKDirectDownloader(Context context) {
super(context);
new Settings(context).setConcurrentDownloadsLimit(5).enableLogging(true).apply();
}
public void pause() {
if (this.operations != null) {
for (Entry entry : this.operations.entrySet()) {
this.fetch.pause(((Long) entry.getKey()).longValue());
}
}
}
public void resume() {
if (this.operations != null) {
for (Entry entry : this.operations.entrySet()) {
this.fetch.resume(((Long) entry.getKey()).longValue());
}
}
}
public boolean isDownloadTaskRunning() {
return (this.operations == null || this.operations.isEmpty()) ? false : true;
}
}
|
[
"querky1231@gmail.com"
] |
querky1231@gmail.com
|
621a94254b9dae1293a9d03b4f1a5e61212a38c3
|
3bcaebf7d69eaab5e4086568440b2ca56219b50d
|
/src/main/java/com/tinyolo/cxml/parsing/demo/jaxb/cxml/RequiredMaximumQuantity.java
|
c6583d21312b479e569982db941a4a8d4108b1fc
|
[] |
no_license
|
augustine-d-nguyen/cxml-parsing-demo
|
2a419263b091b32e70fa84312b55d8217e691ac6
|
3cc169ee0392d88bbf0e03f0791a15287a8eba97
|
refs/heads/master
| 2023-01-18T19:07:27.094598
| 2020-11-20T14:52:52
| 2020-11-20T14:52:52
| 314,490,660
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,164
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2
// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.11.20 at 08:07:34 PM ICT
//
package com.tinyolo.cxml.parsing.demo.jaxb.cxml;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"unitOfMeasure"
})
@XmlRootElement(name = "RequiredMaximumQuantity")
public class RequiredMaximumQuantity {
@XmlAttribute(name = "quantity")
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
protected String quantity;
@XmlElement(name = "UnitOfMeasure")
protected String unitOfMeasure;
/**
* Gets the value of the quantity property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getQuantity() {
return quantity;
}
/**
* Sets the value of the quantity property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setQuantity(String value) {
this.quantity = value;
}
/**
* Gets the value of the unitOfMeasure property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUnitOfMeasure() {
return unitOfMeasure;
}
/**
* Sets the value of the unitOfMeasure property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUnitOfMeasure(String value) {
this.unitOfMeasure = value;
}
}
|
[
"augustine.d.nguyen@outlook.com"
] |
augustine.d.nguyen@outlook.com
|
2341c86015e168ff3ec2de38e81513a7c0b4c3a0
|
6252c165657baa6aa605337ebc38dd44b3f694e2
|
/org.eclipse.epsilon.egl.sync/Scalability-Tests/boiler-To-Generate-1000-Files/boiler-To-Generate-1000-Files/syncregions-1000Files/BoilerActuator4284.java
|
a2ef21b51a9f676e085f5ff4506c5e9ab7054a5c
|
[] |
no_license
|
soha500/EglSync
|
00fc49bcc73f7f7f7fb7641d0561ca2b9a8ea638
|
55101bc781349bb14fefc178bf3486e2b778aed6
|
refs/heads/master
| 2021-06-23T02:55:13.464889
| 2020-12-11T19:10:01
| 2020-12-11T19:10:01
| 139,832,721
| 0
| 1
| null | 2019-05-31T11:34:02
| 2018-07-05T10:20:00
|
Java
|
UTF-8
|
Java
| false
| false
| 267
|
java
|
package syncregions;
public class BoilerActuator4284 {
public int execute(int temperatureDifference4284, boolean boilerStatus4284) {
//sync _bfpnGUbFEeqXnfGWlV4284, behaviour
Half Change - return temperature - targetTemperature;
//endSync
}
}
|
[
"sultanalmutairi@172.20.10.2"
] |
sultanalmutairi@172.20.10.2
|
4f423d892dfdd916c0114a222acb727e1a598da1
|
911d71da9155b022631a071c631ce1b2cb14b92c
|
/basic-arch-ruoyivue/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDeptService.java
|
c69f24bfb1a60c91ad7c49e70d39ca64a48ac118
|
[
"MIT"
] |
permissive
|
devsong/basic_arch
|
09cc86f0f2b7a1b836195316426c2a72b78271dd
|
7e48c3e52878939f6b191741d338e24fc7eea90e
|
refs/heads/master
| 2023-03-08T09:34:24.906231
| 2021-05-20T07:18:28
| 2021-05-20T07:18:28
| 203,941,641
| 0
| 1
| null | 2023-02-22T07:51:07
| 2019-08-23T06:53:47
|
Java
|
UTF-8
|
Java
| false
| false
| 2,478
|
java
|
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.common.core.domain.TreeSelect;
import com.ruoyi.common.core.domain.entity.SysDept;
/**
* 部门管理 服务层
*
* @author guanzhisong
*/
public interface ISysDeptService {
/**
* 查询部门管理数据
*
* @param dept 部门信息
* @return 部门信息集合
*/
public List<SysDept> selectDeptList(SysDept dept);
/**
* 构建前端所需要树结构
*
* @param depts 部门列表
* @return 树结构列表
*/
public List<SysDept> buildDeptTree(List<SysDept> depts);
/**
* 构建前端所需要下拉树结构
*
* @param depts 部门列表
* @return 下拉树结构列表
*/
public List<TreeSelect> buildDeptTreeSelect(List<SysDept> depts);
/**
* 根据角色ID查询部门树信息
*
* @param roleId 角色ID
* @return 选中部门列表
*/
public List<Integer> selectDeptListByRoleId(Long roleId);
/**
* 根据部门ID查询信息
*
* @param deptId 部门ID
* @return 部门信息
*/
public SysDept selectDeptById(Long deptId);
/**
* 根据ID查询所有子部门(正常状态)
*
* @param deptId 部门ID
* @return 子部门数
*/
public int selectNormalChildrenDeptById(Long deptId);
/**
* 是否存在部门子节点
*
* @param deptId 部门ID
* @return 结果
*/
public boolean hasChildByDeptId(Long deptId);
/**
* 查询部门是否存在用户
*
* @param deptId 部门ID
* @return 结果 true 存在 false 不存在
*/
public boolean checkDeptExistUser(Long deptId);
/**
* 校验部门名称是否唯一
*
* @param dept 部门信息
* @return 结果
*/
public String checkDeptNameUnique(SysDept dept);
/**
* 新增保存部门信息
*
* @param dept 部门信息
* @return 结果
*/
public int insertDept(SysDept dept);
/**
* 修改保存部门信息
*
* @param dept 部门信息
* @return 结果
*/
public int updateDept(SysDept dept);
/**
* 删除部门管理信息
*
* @param deptId 部门ID
* @return 结果
*/
public int deleteDeptById(Long deptId);
}
|
[
"guanzhisong@gmail.com"
] |
guanzhisong@gmail.com
|
9efd2d467de140d1a85282c04a42c327948c7b11
|
eb5f5353f49ee558e497e5caded1f60f32f536b5
|
/javax/management/NotificationEmitter.java
|
6764d4e25ec436944797df7b806242ac3d27178e
|
[] |
no_license
|
mohitrajvardhan17/java1.8.0_151
|
6fc53e15354d88b53bd248c260c954807d612118
|
6eeab0c0fd20be34db653f4778f8828068c50c92
|
refs/heads/master
| 2020-03-18T09:44:14.769133
| 2018-05-23T14:28:24
| 2018-05-23T14:28:24
| 134,578,186
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 505
|
java
|
package javax.management;
public abstract interface NotificationEmitter
extends NotificationBroadcaster
{
public abstract void removeNotificationListener(NotificationListener paramNotificationListener, NotificationFilter paramNotificationFilter, Object paramObject)
throws ListenerNotFoundException;
}
/* Location: C:\Program Files (x86)\Java\jre1.8.0_151\lib\rt.jar!\javax\management\NotificationEmitter.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 0.7.1
*/
|
[
"mohit.rajvardhan@ericsson.com"
] |
mohit.rajvardhan@ericsson.com
|
9a335ccc6a938e8cc64382cb0ba04e6741f14966
|
e79a12f7d2538dce830d8abc858d49c247f14248
|
/src/main/java/com/firstjhipster/sample/security/jwt/TokenProvider.java
|
f62ec50192fab66521974ad56cc88f9a155d6fb5
|
[] |
no_license
|
shindedeepali1994/Sample
|
17f778dfd66f3213ecf7b42efe2ab0d212ebfeb0
|
345b501547f2fefa7eb9c98b808b62d93f036704
|
refs/heads/master
| 2021-06-23T20:22:06.407545
| 2019-11-15T06:03:11
| 2019-11-15T06:03:11
| 221,855,121
| 0
| 0
| null | 2021-04-29T21:53:11
| 2019-11-15T06:03:03
|
Java
|
UTF-8
|
Java
| false
| false
| 4,256
|
java
|
package com.firstjhipster.sample.security.jwt;
import java.nio.charset.StandardCharsets;
import java.security.Key;
import java.util.*;
import java.util.stream.Collectors;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.User;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;
import io.github.jhipster.config.JHipsterProperties;
import io.jsonwebtoken.*;
import io.jsonwebtoken.io.Decoders;
import io.jsonwebtoken.security.Keys;
@Component
public class TokenProvider implements InitializingBean {
private final Logger log = LoggerFactory.getLogger(TokenProvider.class);
private static final String AUTHORITIES_KEY = "auth";
private Key key;
private long tokenValidityInMilliseconds;
private long tokenValidityInMillisecondsForRememberMe;
private final JHipsterProperties jHipsterProperties;
public TokenProvider(JHipsterProperties jHipsterProperties) {
this.jHipsterProperties = jHipsterProperties;
}
@Override
public void afterPropertiesSet() throws Exception {
byte[] keyBytes;
String secret = jHipsterProperties.getSecurity().getAuthentication().getJwt().getSecret();
if (!StringUtils.isEmpty(secret)) {
log.warn("Warning: the JWT key used is not Base64-encoded. " +
"We recommend using the `jhipster.security.authentication.jwt.base64-secret` key for optimum security.");
keyBytes = secret.getBytes(StandardCharsets.UTF_8);
} else {
log.debug("Using a Base64-encoded JWT secret key");
keyBytes = Decoders.BASE64.decode(jHipsterProperties.getSecurity().getAuthentication().getJwt().getBase64Secret());
}
this.key = Keys.hmacShaKeyFor(keyBytes);
this.tokenValidityInMilliseconds =
1000 * jHipsterProperties.getSecurity().getAuthentication().getJwt().getTokenValidityInSeconds();
this.tokenValidityInMillisecondsForRememberMe =
1000 * jHipsterProperties.getSecurity().getAuthentication().getJwt()
.getTokenValidityInSecondsForRememberMe();
}
public String createToken(Authentication authentication, boolean rememberMe) {
String authorities = authentication.getAuthorities().stream()
.map(GrantedAuthority::getAuthority)
.collect(Collectors.joining(","));
long now = (new Date()).getTime();
Date validity;
if (rememberMe) {
validity = new Date(now + this.tokenValidityInMillisecondsForRememberMe);
} else {
validity = new Date(now + this.tokenValidityInMilliseconds);
}
return Jwts.builder()
.setSubject(authentication.getName())
.claim(AUTHORITIES_KEY, authorities)
.signWith(key, SignatureAlgorithm.HS512)
.setExpiration(validity)
.compact();
}
public Authentication getAuthentication(String token) {
Claims claims = Jwts.parser()
.setSigningKey(key)
.parseClaimsJws(token)
.getBody();
Collection<? extends GrantedAuthority> authorities =
Arrays.stream(claims.get(AUTHORITIES_KEY).toString().split(","))
.map(SimpleGrantedAuthority::new)
.collect(Collectors.toList());
User principal = new User(claims.getSubject(), "", authorities);
return new UsernamePasswordAuthenticationToken(principal, token, authorities);
}
public boolean validateToken(String authToken) {
try {
Jwts.parser().setSigningKey(key).parseClaimsJws(authToken);
return true;
} catch (JwtException | IllegalArgumentException e) {
log.info("Invalid JWT token.");
log.trace("Invalid JWT token trace.", e);
}
return false;
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
79757c4c1351732e8a7625b148ec790794885abe
|
7af846ccf54082cd1832c282ccd3c98eae7ad69a
|
/ftmap/src/main/java/taxi/nicecode/com/ftmap/generated/package_31/Foo10.java
|
756fd22f9e78dd447135edbd38ec058e168cd1b4
|
[] |
no_license
|
Kadanza/TestModules
|
821f216be53897d7255b8997b426b359ef53971f
|
342b7b8930e9491251de972e45b16f85dcf91bd4
|
refs/heads/master
| 2020-03-25T08:13:09.316581
| 2018-08-08T10:47:25
| 2018-08-08T10:47:25
| 143,602,647
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 267
|
java
|
package taxi.nicecode.com.ftmap.generated.package_31;
public class Foo10 {
public void foo0(){
new Foo9().foo5();
}
public void foo1(){
foo0();
}
public void foo2(){
foo1();
}
public void foo3(){
foo2();
}
public void foo4(){
foo3();
}
public void foo5(){
foo4();
}
}
|
[
"1"
] |
1
|
4160200eadc60afd8c253a97ea10fdcb57164700
|
a4a51084cfb715c7076c810520542af38a854868
|
/src/main/java/com/shopee/protocol/shop/CoinGlobalExtInfo.java
|
349c2c567689560d88af98acc6cbcaf3bb5cbe06
|
[] |
no_license
|
BharathPalanivelu/repotest
|
ddaf56a94eb52867408e0e769f35bef2d815da72
|
f78ae38738d2ba6c9b9b4049f3092188fabb5b59
|
refs/heads/master
| 2020-09-30T18:55:04.802341
| 2019-12-02T10:52:08
| 2019-12-02T10:52:08
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,963
|
java
|
package com.shopee.protocol.shop;
import com.squareup.wire.Message;
import com.squareup.wire.ProtoField;
import java.util.Collections;
import java.util.List;
public final class CoinGlobalExtInfo extends Message {
public static final List<Integer> DEFAULT_RULE_RANK_IDS = Collections.emptyList();
private static final long serialVersionUID = 0;
@ProtoField(label = Message.Label.REPEATED, tag = 1, type = Message.Datatype.INT32)
public final List<Integer> rule_rank_ids;
public CoinGlobalExtInfo(List<Integer> list) {
this.rule_rank_ids = immutableCopyOf(list);
}
private CoinGlobalExtInfo(Builder builder) {
this(builder.rule_rank_ids);
setBuilder(builder);
}
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof CoinGlobalExtInfo)) {
return false;
}
return equals((List<?>) this.rule_rank_ids, (List<?>) ((CoinGlobalExtInfo) obj).rule_rank_ids);
}
public int hashCode() {
int i = this.hashCode;
if (i == 0) {
List<Integer> list = this.rule_rank_ids;
i = list != null ? list.hashCode() : 1;
this.hashCode = i;
}
return i;
}
public static final class Builder extends Message.Builder<CoinGlobalExtInfo> {
public List<Integer> rule_rank_ids;
public Builder() {
}
public Builder(CoinGlobalExtInfo coinGlobalExtInfo) {
super(coinGlobalExtInfo);
if (coinGlobalExtInfo != null) {
this.rule_rank_ids = CoinGlobalExtInfo.copyOf(coinGlobalExtInfo.rule_rank_ids);
}
}
public Builder rule_rank_ids(List<Integer> list) {
this.rule_rank_ids = checkForNulls(list);
return this;
}
public CoinGlobalExtInfo build() {
return new CoinGlobalExtInfo(this);
}
}
}
|
[
"noiz354@gmail.com"
] |
noiz354@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.