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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
88198a42bd12c616562fb393818d6ae76d6ea9fe
|
82262cdae859ded0f82346ed04ff0f407b18ea6f
|
/366pai/zeus-core/core-dubbo-api/src/main/java/com/_360pai/core/facade/activity/req/PlatformBroadcastReq.java
|
ded7822c408725edf9f39d4a6f2bf7117b8656cd
|
[] |
no_license
|
dwifdji/real-project
|
75ec32805f97c6d0d8f0935f7f92902f9509a993
|
9ddf66dfe0493915b22132781ef121a8d4661ff8
|
refs/heads/master
| 2020-12-27T14:01:37.365982
| 2019-07-26T10:07:27
| 2019-07-26T10:07:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,053
|
java
|
package com._360pai.core.facade.activity.req;
import com._360pai.arch.common.RequestModel;
/**
* <p>封装实体bean</p>
* @author Generator
* @date 2018年08月10日 18时47分26秒
*/
public class PlatformBroadcastReq extends RequestModel {
/**
*
*/
private Integer id;
/**
*
*/
private String status;
/**
*
*/
private Integer activityId;
/**
*
*/
private java.util.Date createdAt;
/**
*
*/
public Integer getId(){
return id;
}
/**
*
*/
public void setId(Integer id){
this.id = id;
}
/**
*
*/
public String getStatus(){
return status;
}
/**
*
*/
public void setStatus(String status){
this.status = status;
}
/**
*
*/
public Integer getActivityId(){
return activityId;
}
/**
*
*/
public void setActivityId(Integer activityId){
this.activityId = activityId;
}
/**
*
*/
public java.util.Date getCreatedAt(){
return createdAt;
}
/**
*
*/
public void setCreatedAt(java.util.Date createdAt){
this.createdAt = createdAt;
}
}
|
[
"15538068782@163.com"
] |
15538068782@163.com
|
10925244aefeeb8958396854bed7e210a76384f6
|
4e9c5e37a4380d5a11a27781187918a6aa31f3f9
|
/dse-db-all-6.7.0/org/apache/cassandra/utils/WrappedBoolean.java
|
1ba9f070258b521b07a54f4cba202ab21ceaab33
|
[] |
no_license
|
jiafu1115/dse67
|
4a49b9a0d7521000e3c1955eaf0911929bc90d54
|
62c24079dd5148e952a6ff16bc1161952c222f9b
|
refs/heads/master
| 2021-10-11T15:38:54.185842
| 2019-01-28T01:28:06
| 2019-01-28T01:28:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 298
|
java
|
package org.apache.cassandra.utils;
public class WrappedBoolean {
private boolean value;
public WrappedBoolean(boolean initial) {
this.value = initial;
}
public boolean get() {
return this.value;
}
public void set(boolean value) {
this.value = value;
}
}
|
[
"superhackerzhang@sina.com"
] |
superhackerzhang@sina.com
|
c34aefcbae281e0e31a06799729e838aa2bd3d58
|
00a957c9884ac3ac70b068bff84fb326419e0faf
|
/src/main/java/com/imooc/o2o/service/impl/PersonInfoServiceImpl.java
|
5e4a535139d749db3f6dfa00bc5a5a1f69a83aab
|
[] |
no_license
|
Goinsist/o2o
|
74d0d18cc39304b039d299e53dbfd29a7981cb0b
|
f1e7fdca92f7e5c0ff1992fdc748e00c829d645b
|
refs/heads/master
| 2020-04-19T08:54:22.643299
| 2019-01-29T04:30:59
| 2019-01-29T04:31:00
| 168,092,942
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 757
|
java
|
/**
* FileName: PersonInfoServiceImpl
* Author: gongyu
* Date: 2018/6/15 13:00
* Description:
*/
package com.imooc.o2o.service.impl;
import com.imooc.o2o.dao.PersonInfoDao;
import com.imooc.o2o.entity.PersonInfo;
import com.imooc.o2o.service.PersonInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 〈一句话功能简述〉<br>
* 〈〉
*
* @author gongyu
* @create 2018/6/15
* @since 1.0.0
*/
@Service
public class PersonInfoServiceImpl implements PersonInfoService {
@Autowired
private PersonInfoDao personInfoDao;
@Override
public PersonInfo getPersonInfoById(Long userId) {
return personInfoDao.queryPersonInfoById(userId);
}
}
|
[
"2830849518@qq.com"
] |
2830849518@qq.com
|
8fd9c02fce665889f3b0fde2b583c3de9a5b4362
|
beb903bcbce21195107987e602658f138f2ea48b
|
/vanstone-centralserver-example-webapp/src/main/java/example/CorpApp3Servlet.java
|
57c9d0ff76ed1bbf626dae4ca5cb68e9851fd254
|
[] |
no_license
|
soltex/centralserver
|
6a47db0e5c9fe33d3ed89cb31c7b2869fffebb35
|
12a1c8b7638a54551b7a8ae19f7cc767ce21cdd2
|
refs/heads/master
| 2016-09-05T23:56:41.543299
| 2016-01-11T09:47:16
| 2016-01-11T09:47:16
| 26,172,552
| 1
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 626
|
java
|
/**
*
*/
package example;
import com.vanstone.centralserver.common.corp.ICorpApp;
import com.vanstone.weixin.corp.client.conf.CorpClientConf;
import com.vanstone.weixin.corp.client.servlet.AbstractCorpWeixinServlet;
/**
* @author shipeng
*
*/
public class CorpApp3Servlet extends AbstractCorpWeixinServlet {
private static final long serialVersionUID = -4316866273769806455L;
/* (non-Javadoc)
* @see com.vanstone.weixin.corp.client.servlet.AbstractCorpWeixinServlet#getCorpApp()
*/
@Override
public ICorpApp getCorpApp() {
return CorpClientConf.getInstance().getCorpApp(3);
}
}
|
[
"shipengpipi@126.com"
] |
shipengpipi@126.com
|
61cd72e04eb270937a442abf0d6315432f619a4a
|
13c2d3db2d49c40c74c2e6420a9cd89377f1c934
|
/program_data/JavaProgramData/18/1823.java
|
3bfa16395c46c5f2cc11b983ec645c7328c428cb
|
[
"MIT"
] |
permissive
|
qiuchili/ggnn_graph_classification
|
c2090fefe11f8bf650e734442eb96996a54dc112
|
291ff02404555511b94a4f477c6974ebd62dcf44
|
refs/heads/master
| 2021-10-18T14:54:26.154367
| 2018-10-21T23:34:14
| 2018-10-21T23:34:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,353
|
java
|
package <missing>;
public class GlobalMembers
{
public static int m;
public static int[][] a = new int[100][100];
public static int sum = 0;
public static void d(int n)
{
int min;
for (int i = 0;i < n;i++)
{
min = a[i][0];
for (int j = 0;j < n;j++)
{
if (min > a[i][j])
{
min = a[i][j];
}
}
for (int j = 0;j < n;j++)
{
a[i][j] -= min;
}
}
for (int j = 0;j < n;j++)
{
min = a[0][j];
for (int i = 0;i < n;i++)
{
if (min > a[i][j])
{
min = a[i][j];
}
}
for (int i = 0;i < n;i++)
{
a[i][j] -= min;
}
}
sum += a[1][1];
for (int i = 0;i < n;i++)
{
for (int j = 1;j < n - 1;j++)
{
a[i][j] = a[i][j + 1];
}
}
for (int j = 0;j < n - 1;j++)
{
for (int i = 1;i < n - 1;i++)
{
a[i][j] = a[i + 1][j];
}
}
if (n > 2)
{
d(n - 1);
}
}
public static int Main()
{
m = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));
int[] s = new int[m + 1];
int p = 1;
for (int t = 1;t <= m;t++)
{
for (int i = 0;i < m;i++)
{
for (int j = 0;j < m;j++)
{
a[i][j] = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));
}
}
d(m);
s[p++] = sum;
sum = 0;
}
for (int i = 1;i <= m;i++)
{
System.out.print(s[i]);
System.out.print("\n");
}
return 0;
}
}
|
[
"y.yu@open.ac.uk"
] |
y.yu@open.ac.uk
|
029ab809acbac18d2cd50f5e5e8f63e58951a769
|
21f553e7941c9e2154ff82aaef5e960942f89387
|
/lang_interface/java/com/intel/daal/algorithms/qr/DistributedStep3LocalInputId.java
|
f4bc747824d852f3a63d6546dd33ff09dcac242a
|
[
"Apache-2.0",
"Intel"
] |
permissive
|
tonythomascn/daal
|
7e6fe4285c7bb640cc58deb3359d4758a9f5eaf5
|
3e5071f662b561f448e8b20e994b5cb53af8e914
|
refs/heads/daal_2017_update2
| 2021-01-19T23:05:41.968161
| 2017-04-19T16:18:44
| 2017-04-19T16:18:44
| 88,920,723
| 1
| 0
| null | 2017-04-20T23:54:18
| 2017-04-20T23:54:18
| null |
UTF-8
|
Java
| false
| false
| 2,044
|
java
|
/* file: DistributedStep3LocalInputId.java */
/*******************************************************************************
* Copyright 2014-2017 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
/**
* @ingroup qr_distributed
* @{
*/
package com.intel.daal.algorithms.qr;
/**
* <a name="DAAL-CLASS-ALGORITHMS__QR__DISTRIBUTEDSTEP3LOCALINPUTID"></a>
* @brief Partial results required by the QR decomposition algorithm on the third step in the distributed processing mode
*/
public final class DistributedStep3LocalInputId {
/** @private */
static {
System.loadLibrary("JavaAPI");
}
private int _value;
public DistributedStep3LocalInputId(int value) {
_value = value;
}
public int getValue() {
return _value;
}
private static final int inputOfStep3FromStep1Id = 0;
private static final int inputOfStep3FromStep2Id = 1;
/** DataCollection with data transferred from the first step to the third step in the distributed processing mode */
public static final DistributedStep3LocalInputId inputOfStep3FromStep1 = new DistributedStep3LocalInputId(
inputOfStep3FromStep1Id);
/** DataCollection with data transferred from the second step to the third step in the distributed processing mode*/
public static final DistributedStep3LocalInputId inputOfStep3FromStep2 = new DistributedStep3LocalInputId(
inputOfStep3FromStep2Id);
}
/** @} */
|
[
"vasily.rubtsov@intel.com"
] |
vasily.rubtsov@intel.com
|
d0fe81c29d63695f4fe73bef3bdad42e22167df6
|
fabb0528d19052a92ca4ce898ed737eeb9a5a043
|
/src/main/java/com/cisc181/core/Enrollment.java
|
8a75d19809001b290796dc07269603e54232a5a6
|
[] |
no_license
|
Jfamig/MidtermCodingProblem
|
93f05768a4a14062685be647b0b98c080e2a5613
|
aeb0ec07a11dddf1632b309de5a9e61dae6cacf9
|
refs/heads/master
| 2021-01-11T04:46:49.283340
| 2016-10-17T04:32:21
| 2016-10-17T04:32:21
| 71,100,026
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 474
|
java
|
package com.cisc181.core;
import java.util.UUID;
public class Enrollment {
private UUID SectionID;
private UUID StudentID;
private UUID Enrollment;
private double Grade;
private Object EnrollmentID;
private void Enrollment() {
//Stub
}
public Enrollment(UUID StudentID, UUID SectionID) {
this.StudentID = StudentID;
this.SectionID = SectionID;
this.EnrollmentID = EnrollmentID;
}
public void SetGrade(double grade) {
this.Grade = grade;
}
}
|
[
"unconfigured@null.spigotmc.org"
] |
unconfigured@null.spigotmc.org
|
fe387a7f8f2d4e2fa0f8415d43a5f46b7a787f0a
|
f82f8a8f4d6183a0436af242f9049c1599a644a6
|
/src/goryachev/common/util/log/ErrorLogWriter.java
|
cba1b0aec5dd03fbab1efdc606e50f8e52f1157c
|
[
"MIT"
] |
permissive
|
andy-goryachev/PasswordSafeFX
|
c6ea0e06c2fa2883f4cf5fe7ffd251efac831d90
|
e39fb79fb8fe5a720d2b7a07f946f347c40d8c49
|
refs/heads/master
| 2021-01-11T04:55:50.857713
| 2017-02-02T04:01:20
| 2017-02-02T04:01:20
| 77,191,848
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,383
|
java
|
// Copyright © 2015-2017 Andy Goryachev <andy@goryachev.com>
package goryachev.common.util.log;
import goryachev.common.util.CList;
import goryachev.common.util.ILogWriter;
public class ErrorLogWriter
implements ILogWriter
{
public interface Monitor
{
// should be mapped easily to table model events
public void handleMonitorEvent(int removed, int added);
}
//
public static final ErrorLogWriter instance = new ErrorLogWriter();
private int maxSize = 128;
private CList<LogEntry> errors = new CList<>();
private CList<Monitor> listeners;
private ErrorLogWriter()
{
}
public void write(LogEntry en)
{
int removed = 0;
Object[] ls = null;
synchronized(this)
{
while(errors.size() >= maxSize)
{
errors.remove(0);
removed++;
}
errors.add(en);
if(listeners != null)
{
ls = listeners.toArray();
}
}
if(ls != null)
{
// fire events outside of the synchronized block
for(Object m: ls)
{
((Monitor)m).handleMonitorEvent(removed, 1);
}
}
}
public synchronized void addMonitor(Monitor m)
{
if(listeners == null)
{
listeners = new CList<>();
}
listeners.add(m);
}
public synchronized void removeMonitor(Monitor m)
{
if(listeners != null)
{
listeners.remove(m);
}
}
}
|
[
"andy@goryachev.com"
] |
andy@goryachev.com
|
8fadb386727f66196ccd209a8d9a49686cdec737
|
bc794d54ef1311d95d0c479962eb506180873375
|
/ventes/vente-core/src/main/java/com/teratech/vente/core/impl/base/PaysManagerImpl.java
|
c9348f8dee35d46b377fd992a24fc80e88a85144
|
[] |
no_license
|
Teratech2018/Teratech
|
d1abb0f71a797181630d581cf5600c50e40c9663
|
612f1baf9636034cfa5d33a91e44bbf3a3f0a0cb
|
refs/heads/master
| 2021-04-28T05:31:38.081955
| 2019-04-01T08:35:34
| 2019-04-01T08:35:34
| 122,177,253
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 955
|
java
|
package com.teratech.vente.core.impl.base;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import com.bekosoftware.genericdaolayer.dao.ifaces.GenericDAO;
import com.bekosoftware.genericmanagerlayer.core.impl.AbstractGenericManager;
import com.teratech.vente.core.ifaces.base.PaysManagerLocal;
import com.teratech.vente.core.ifaces.base.PaysManagerRemote;
import com.teratech.vente.dao.ifaces.base.PaysDAOLocal;
import com.teratech.vente.model.base.Pays;
@TransactionAttribute
@Stateless(mappedName = "PaysManager")
public class PaysManagerImpl
extends AbstractGenericManager<Pays, Long>
implements PaysManagerLocal, PaysManagerRemote
{
@EJB(name = "PaysDAO")
protected PaysDAOLocal dao;
public PaysManagerImpl() {
}
@Override
public GenericDAO<Pays, Long> getDao() {
return dao;
}
@Override
public String getEntityIdName() {
return "id";
}
}
|
[
"bekondo_dieu@yahoo.fr"
] |
bekondo_dieu@yahoo.fr
|
63ab3caed23fb7869f748b2ed9259ac4d7bab566
|
c0433b7c202756e974796e528ea31d32c16a6884
|
/app/src/main/java/com/sk/lgdx/module/home/network/response/HomeLikeObj.java
|
db47c6d518836f2c3ff7b0b73dae9b80a05d497e
|
[] |
no_license
|
20180910/LGDX
|
bcb405e0a289ddc4ee2a2efe71153559d8695a8b
|
6235e8c439be88736d8ac20e102ba4c957222ad2
|
refs/heads/master
| 2020-03-28T10:20:51.041264
| 2018-01-29T07:03:10
| 2018-01-29T07:03:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,108
|
java
|
package com.sk.lgdx.module.home.network.response;
import com.sk.lgdx.base.BaseObj;
import java.util.List;
/**
* Created by Administrator on 2017/11/28.
*/
public class HomeLikeObj extends BaseObj {
private List<MerchantListBean> MerchantList;
public List<MerchantListBean> getMerchantList() {
return MerchantList;
}
public void setMerchantList(List<MerchantListBean> MerchantList) {
this.MerchantList = MerchantList;
}
public static class MerchantListBean {
/**
* merchant_id : 1
* merchant_avatar : http://121.40.186.118:5019/upload/sjtx.png
* merchant_name : 黄焖鸡米饭
* money_people : 30
* merchant_address : 兆丰大厦N楼
* scoring : 5
* Distance : -1
* lat : 31.226764
* lng : 121.431836
* lable : ["酒水饮料"]
*/
private String merchant_id;
private String merchant_avatar;
private String merchant_name;
private double money_people;
private String merchant_address;
private int scoring;
private String Distance;
private String lat;
private String lng;
private List<String> lable;
public String getMerchant_id() {
return merchant_id;
}
public void setMerchant_id(String merchant_id) {
this.merchant_id = merchant_id;
}
public String getMerchant_avatar() {
return merchant_avatar;
}
public void setMerchant_avatar(String merchant_avatar) {
this.merchant_avatar = merchant_avatar;
}
public String getMerchant_name() {
return merchant_name;
}
public void setMerchant_name(String merchant_name) {
this.merchant_name = merchant_name;
}
public double getMoney_people() {
return money_people;
}
public void setMoney_people(double money_people) {
this.money_people = money_people;
}
public String getMerchant_address() {
return merchant_address;
}
public void setMerchant_address(String merchant_address) {
this.merchant_address = merchant_address;
}
public int getScoring() {
return scoring;
}
public void setScoring(int scoring) {
this.scoring = scoring;
}
public String getDistance() {
return Distance;
}
public void setDistance(String Distance) {
this.Distance = Distance;
}
public String getLat() {
return lat;
}
public void setLat(String lat) {
this.lat = lat;
}
public String getLng() {
return lng;
}
public void setLng(String lng) {
this.lng = lng;
}
public List<String> getLable() {
return lable;
}
public void setLable(List<String> lable) {
this.lable = lable;
}
}
}
|
[
"2380253499@qq.com"
] |
2380253499@qq.com
|
f480b40f1002dd1647253dcb0aee9781930c56e5
|
a8e47979b45aa428a32e16ddc4ee2578ec969dfe
|
/storage/common/src/main/java/org/artifactory/storage/fs/repo/RepoStorageSummary.java
|
68fbcc0100657697ae740a93afdf90c52788679d
|
[] |
no_license
|
nuance-sspni/artifactory-oss
|
da505cac1984da131a61473813ee2c7c04d8d488
|
af3fcf09e27cac836762e9957ad85bdaeec6e7f8
|
refs/heads/master
| 2021-07-22T20:04:08.718321
| 2017-11-02T20:49:33
| 2017-11-02T20:49:33
| 109,313,757
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,109
|
java
|
/*
*
* Artifactory is a binaries repository manager.
* Copyright (C) 2016 JFrog Ltd.
*
* Artifactory is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Artifactory is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Artifactory. If not, see <http://www.gnu.org/licenses/>.
*
*/
package org.artifactory.storage.fs.repo;
import javax.annotation.Nonnull;
/**
* Represents a repository nodes summary.
*
* @author Yossi Shaul
*/
public class RepoStorageSummary {
private final String repoKey;
private final long foldersCount;
private final long filesCount;
private final long usedSpace;
/**
* Creates a new empty repository summary.
*
* @param repoKey The repository key
* @param foldersCount Folders count of this repository
* @param filesCount Files count of this repository
* @param usedSpace Space, in bytes, used by the files in this repository
*/
public RepoStorageSummary(@Nonnull String repoKey, long foldersCount, long filesCount, long usedSpace) {
this.repoKey = repoKey;
this.filesCount = filesCount;
this.foldersCount = foldersCount;
this.usedSpace = usedSpace;
}
/**
* @return The repository key
*/
public String getRepoKey() {
return repoKey;
}
/**
* @return Folders count of this repository (the repository folder itself is not included)
*/
public long getFoldersCount() {
return foldersCount;
}
/**
* @return Files count of this repository
*/
public long getFilesCount() {
return filesCount;
}
/**
* @return Space used by the files in this repository. In bytes.
*/
public long getUsedSpace() {
return usedSpace;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RepoStorageSummary that = (RepoStorageSummary) o;
if (!repoKey.equals(that.repoKey)) {
return false;
}
return true;
}
@Override
public int hashCode() {
return repoKey.hashCode();
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("RepoSummary{");
sb.append("repoKey='").append(repoKey).append('\'');
sb.append(", filesCount=").append(filesCount);
sb.append(", foldersCount=").append(foldersCount);
sb.append(", usedSpace=").append(usedSpace);
sb.append('}');
return sb.toString();
}
}
|
[
"tuan-anh.nguyen@nuance.com"
] |
tuan-anh.nguyen@nuance.com
|
37e95f41cf5e0e9d261ed24f917d98220e5ca36b
|
46786b383a16fff9c5d57b6b197b905e56a40dba
|
/xcloud/xcloud-vijava/src/main/java/com/vmware/vim25/mo/IscsiManager.java
|
0da230d022bcda22f2c2dc30bcad851f62fdcf83
|
[] |
no_license
|
yiguotang/x-cloud
|
feeb9c6288e01a45fca82648153238ed85d4069e
|
2b255249961efb99d48a0557f7d74ce3586918fe
|
refs/heads/master
| 2020-04-05T06:18:30.750373
| 2016-08-03T06:48:35
| 2016-08-03T06:48:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,797
|
java
|
/*================================================================================
Copyright (c) 2011 VMware, Inc. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of VMware, Inc. nor the names of its contributors may be used
to endorse or promote products derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL VMWARE, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
================================================================================*/
package com.vmware.vim25.mo;
import java.rmi.RemoteException;
import com.vmware.vim25.*;
/**
* provides interfaces for mapping VMkernel NIC to iSCSI Host Bus Adapter
* The name is not consistent, and should have been HostIscsiManager, I think
* @author Steve Jin (http://www.doublecloud.org)
* @since SDK5.0
*/
public class IscsiManager extends ManagedObject
{
public IscsiManager(ServerConnection serverConnection, ManagedObjectReference mor)
{
super(serverConnection, mor);
}
public void bindVnic(String iScsiHbaName, String vnicDevice) throws IscsiFaultVnicAlreadyBound, IscsiFaultVnicHasNoUplinks, IscsiFaultVnicHasMultipleUplinks, IscsiFaultVnicHasWrongUplink, IscsiFaultVnicNotFound, IscsiFaultInvalidVnic, PlatformConfigFault, IscsiFault, NotFound, RuntimeFault, RemoteException
{
getVimService().bindVnic(getMOR(), iScsiHbaName, vnicDevice);
}
public IscsiPortInfo[] queryBoundVnics(String iScsiHbaName) throws IscsiFault, NotFound, RuntimeFault, RemoteException
{
return getVimService().queryBoundVnics(getMOR(), iScsiHbaName);
}
public IscsiPortInfo[] queryCandidateNics(String iScsiHbaName) throws IscsiFault, NotFound, RuntimeFault, RemoteException
{
return getVimService().queryCandidateNics(getMOR(), iScsiHbaName);
}
public IscsiMigrationDependency queryMigrationDependencies(String[] pnicDevice) throws RuntimeFault, RemoteException
{
return getVimService().queryMigrationDependencies(getMOR(), pnicDevice);
}
public IscsiStatus queryPnicStatus(String pnicDevice) throws IscsiFault, RuntimeFault, RemoteException
{
return getVimService().queryPnicStatus(getMOR(), pnicDevice);
}
public IscsiStatus queryVnicStatus(String vnicDevice) throws IscsiFault, RuntimeFault, RemoteException
{
return getVimService().queryVnicStatus(getMOR(), vnicDevice);
}
public void unbindVnic(String iScsiHbaName, String vnicDevice, boolean force) throws IscsiFaultVnicNotBound, IscsiFaultVnicHasActivePaths, IscsiFaultVnicIsLastPath, PlatformConfigFault, IscsiFault, NotFound, RuntimeFault, RemoteException
{
getVimService().unbindVnic(getMOR(), iScsiHbaName, vnicDevice, force);
}
}
|
[
"waddy87@gmail.com"
] |
waddy87@gmail.com
|
f40e5acde823fd812781dbe948a49747f5b1c5fa
|
1ba27fc930ba20782e9ef703e0dc7b69391e191b
|
/Src/Base/src/main/java/com/compuware/caqs/presentation/consult/actions/projectsynthesis/ProjectSynthesisVolumetryAction.java
|
e18804fee20510627baa30456f75c96050daa2cd
|
[] |
no_license
|
LO-RAN/codeQualityPortal
|
b0d81c76968bdcfce659959d0122e398c647b09f
|
a7c26209a616d74910f88ce0d60a6dc148dda272
|
refs/heads/master
| 2023-07-11T18:39:04.819034
| 2022-03-31T15:37:56
| 2022-03-31T15:37:56
| 37,261,337
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,007
|
java
|
package com.compuware.caqs.presentation.consult.actions.projectsynthesis;
import com.compuware.caqs.business.util.StringFormatUtil;
import com.compuware.caqs.constants.Constants;
import com.compuware.caqs.domain.dataschemas.BaselineBean;
import com.compuware.caqs.domain.dataschemas.ElementBean;
import com.compuware.caqs.domain.dataschemas.calcul.Volumetry;
import com.compuware.caqs.domain.dataschemas.comparators.VolumetryComparator;
import com.compuware.caqs.presentation.common.actions.ExtJSGridAjaxAction;
import com.compuware.caqs.presentation.util.RequestUtil;
import com.compuware.caqs.service.BaselineSvc;
import com.compuware.caqs.service.ElementSvc;
import com.compuware.caqs.service.SyntheseSvc;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
/**
*
* @author cwfr-dzysman
*/
public class ProjectSynthesisVolumetryAction extends ExtJSGridAjaxAction {
@Override
public JSONObject retrieveDatas(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
JSONObject object = new JSONObject();
Locale locale = RequestUtil.getLocale(request);
NumberFormat nf = StringFormatUtil.getIntegerFormatter(locale);
ElementBean eltBean = (ElementBean) request.getSession().getAttribute(Constants.CAQS_CURRENT_ELEMENT_SESSION_KEY);
List<ElementBean> elts = ElementSvc.getInstance().retrieveAllApplicationEntitiesForProjectAndBaseline(eltBean.getProject(), eltBean.getBaseline());
if (elts != null) {
List<Volumetry> globalVolumetry = new ArrayList<Volumetry>();
for (ElementBean ea : elts) {
List<Volumetry> l = SyntheseSvc.getInstance().retrieveVolumetry(ea);
this.addAllVolumetryInformation(globalVolumetry, l);
}
if (request.getParameter("sort") != null) {
String sort = request.getParameter("sort");
String sens = request.getParameter("dir");
boolean desc = "desc".equals(sens.toLowerCase());
Collections.sort(globalVolumetry, new VolumetryComparator(sort, desc, locale));
}
List<JSONObject> liste = new ArrayList<JSONObject>();
for (Volumetry vol : globalVolumetry) {
JSONObject obj = new JSONObject();
obj.put("idTelt", vol.getIdTElt());
obj.put("libTelt", vol.getElementType().getLib(locale));
obj.put("nbElts", nf.format(vol.getTotal()));
obj.put("nbCrees", nf.format(vol.getCreated()));
obj.put("nbSupp", nf.format(vol.getDeleted()));
liste.add(obj);
}
JSONArray array = JSONArray.fromObject(liste.toArray(new JSONObject[0]));
object.put("volumetries", array);
object.put("totalCount", array.size());
object.put("root", "volumetries");
object.put("id", "idTelt");
}
return object;
}
private void addVolumetryInformation(List<Volumetry> globalVolumetry, Volumetry volumetry) {
boolean added = false;
for (Volumetry vol : globalVolumetry) {
if (vol.getIdTElt().equals(volumetry.getIdTElt())) {
added = true;
vol.add(volumetry);
break;
}
}
if (!added) {
globalVolumetry.add(volumetry);
}
}
private void addAllVolumetryInformation(List<Volumetry> globalVolumetry, List<Volumetry> volumetry) {
for (Volumetry vol : volumetry) {
this.addVolumetryInformation(globalVolumetry, vol);
}
}
}
|
[
"laurent.izac@gmail.com"
] |
laurent.izac@gmail.com
|
bca0892ab4b3fe8aee4cca9305196522ed1e5e3d
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/12/12_82694d3317d0ac3bb199d157a4931dbfea640294/DefaultCaliperOptions/12_82694d3317d0ac3bb199d157a4931dbfea640294_DefaultCaliperOptions_t.java
|
d5bac383f3a53c8f83ce710d2eddaa2103a14748
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 2,171
|
java
|
/*
* Copyright (C) 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.caliper.functional;
import com.google.caliper.runner.CaliperOptions;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.ImmutableSetMultimap;
public class DefaultCaliperOptions implements CaliperOptions {
private final String benchmarkClassName;
public DefaultCaliperOptions(String benchmarkClassName) {
this.benchmarkClassName = benchmarkClassName;
}
@Override public String benchmarkClassName() {
return benchmarkClassName;
}
@Override public ImmutableSet<String> benchmarkMethodNames() {
return ImmutableSet.of();
}
@Override public ImmutableSet<String> vmNames() {
return ImmutableSet.of();
}
@Override public ImmutableSetMultimap<String, String> userParameters() {
return ImmutableSetMultimap.of();
}
@Override public ImmutableSetMultimap<String, String> vmArguments() {
return ImmutableSetMultimap.of();
}
@Override public String instrumentName() {
return "micro";
}
@Override public int trialsPerScenario() {
return 1;
}
@Override public String outputFileOrDir() {
return null;
}
@Override public boolean detailedLogging() {
return false;
}
@Override public boolean verbose() {
return false;
}
@Override public boolean calculateAggregateScore() {
return false;
}
@Override public boolean dryRun() {
return false;
}
@Override public String caliperRcFilename() {
throw new UnsupportedOperationException();
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
1b81b23dddaa5f94d29b1c1db6640f17207a885d
|
979bb5b9245fdddc77650976b4b6199ec695e894
|
/src/main/java/javacore/base/juc/t3_multi_thread/t3_wait_notify/t1_object_wait_notify/ObjectNotify.java
|
fc8e92b40fc8ee7fc9c9fb470fdeee75f222004f
|
[] |
no_license
|
q258523454/JavaCoreTest
|
250917b040b4b407969752adb1cbee768115d356
|
8f766e59bc9d5a66db9c934321f0c2361a0a5db1
|
refs/heads/master
| 2022-06-17T07:14:05.745848
| 2022-06-07T09:31:51
| 2022-06-07T09:31:51
| 145,552,277
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,077
|
java
|
package javacore.base.juc.t3_multi_thread.t3_wait_notify.t1_object_wait_notify;
import lombok.SneakyThrows;
public class ObjectNotify {
@SneakyThrows
public static void main(String[] args) {
MyRunnable myRunnable = new MyRunnable();
new Thread(myRunnable).start();
Thread.sleep(1000);
// notify(),wait() 必须获取对象锁,否则会报错:java.lang.IllegalMonitorStateException
synchronized (myRunnable) {
// 若对象有多个等待,随机唤醒
myRunnable.notify();
}
System.exit(0);
}
static class MyRunnable implements Runnable {
@Override
public void run() {
synchronized (this) {
try {
System.out.println("Thread run");
// 释放锁资源,进行等待
this.wait();
System.out.println("Thread stop");
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}
}
|
[
"258523454@qq.com"
] |
258523454@qq.com
|
f6003b0ca4816cb32834cf169501c4f61c32e572
|
430e84d424c73c994254430dee372cdaccbf6bbd
|
/WeLife/WeLife/src/edu/jlxy/Module/entity/SendDynamicEntity.java
|
85ba0ea41b5cd415b31d9013d21fa5a4abe467ca
|
[] |
no_license
|
huitianbao/WeLife_Complete_Edition
|
bc9315dcee4d5e9971f6c7e325c2be7b31373d47
|
29a4cc52471f5ce8064c3e6b477880d6bd48238a
|
refs/heads/master
| 2020-03-19T09:01:04.921101
| 2018-06-10T00:54:19
| 2018-06-10T00:54:41
| 136,253,389
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,723
|
java
|
package edu.jlxy.Module.entity;
public class SendDynamicEntity {
private String uid;
private String did;
private String title;
private String content;
private String photo;
private String date;
private static final SendDynamicEntity SEND_DYNAMIC_ENTITY=new SendDynamicEntity();
public String getUid() {
return uid;
}
public void setUid(String uid) {
this.uid = uid;
}
public String getDid() {
return did;
}
public void setDid(String did) {
this.did = did;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getPhoto() {
return photo;
}
public void setPhoto(String photo) {
this.photo = photo;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public void setAll(String uid, String did, String title, String content, String photo, String date) {
this.uid = uid;
this.did = did;
this.title = title;
this.content = content;
this.photo = photo;
this.date = date;
}
public void setAll_withoutdid(String uid, String title, String content, String photo, String date) {
this.uid = uid;
this.title = title;
this.content = content;
this.photo = photo;
this.date = date;
}
public static SendDynamicEntity getInstance(){
return SEND_DYNAMIC_ENTITY;
}
}
|
[
"1622162492@qq.com"
] |
1622162492@qq.com
|
b205321c38a55e8962d466e7c12b577d1b423a2e
|
18d65d6b710f3d1dc1ad2a1d78c74ef480a8ef56
|
/src/core/modificadorFinal/Teste.java
|
609058f39142043b751f548d90c69df8199f86ad
|
[] |
no_license
|
leandro19br/Java
|
95d882c738a99691aeebce80906dd0654a566941
|
8831e7d4b65e38b59e9764a75d4f4c8ae0b73ca4
|
refs/heads/master
| 2021-08-23T06:41:13.492986
| 2017-12-03T23:38:43
| 2017-12-03T23:38:43
| 112,972,277
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 748
|
java
|
package core.modificadorFinal;
public class Teste {
public static void main(String[] args) {
Carro c = new Carro();
c.setNome("Ferrari");
c.setMarca("Ferrari");
/**
* Carro.VELOCIDADE_FINAL = 300; não é permitida a alteração da velocidade
*/
//neste momento o comprador está null pois o objeto foi criado mas está com o vaor padrão
System.out.println(c.getComprador());
//o valor pode ser alterado
c.getComprador().setNome("Kuririn");
System.out.println(c.getComprador());
/*mas voce não pode criar outro objeto pois não pode ser criado uma nova referência vai dar erro de compilação
c.comprador = new Comprador();*/
}
}
|
[
"leandro19br@gmail.com"
] |
leandro19br@gmail.com
|
f3c50914b220bc2d0f2f443583ab0b5d1e8ac684
|
fef5296397f9b950a11455e880a919537390aea0
|
/enterprise/payara.tooling/src/org/netbeans/modules/payara/tooling/admin/CommandCreateConnector.java
|
15bb63405c1363ab3f21014dad29bc8d2113c073
|
[
"Apache-2.0"
] |
permissive
|
apache/netbeans
|
5a4d6fa9e4f230b33e44519a479d66e47a381289
|
28d308b400bbe439ac0ac84b64d823ce0b69272e
|
refs/heads/master
| 2023-08-29T15:32:41.838270
| 2023-08-29T09:48:59
| 2023-08-29T09:48:59
| 102,083,576
| 1,692
| 718
|
Apache-2.0
| 2023-09-14T19:41:05
| 2017-09-01T07:00:11
|
Java
|
UTF-8
|
Java
| false
| false
| 4,523
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.netbeans.modules.payara.tooling.admin;
import java.util.Map;
/**
* Command that creates connector resource with the specified JNDI name and
* the interface definition for a resource adapter on server.
* <p/>
* @author Tomas Kraus, Peter Benedikovic
*/
@RunnerHttpClass(runner=RunnerHttpCreateConnector.class)
@RunnerRestClass(runner = RunnerRestCreateConnector.class)
public class CommandCreateConnector extends CommandTarget {
////////////////////////////////////////////////////////////////////////////
// Class attributes //
////////////////////////////////////////////////////////////////////////////
/** Command string for create connector resource command. */
private static final String COMMAND = "create-connector-resource";
////////////////////////////////////////////////////////////////////////////
// Instance attributes //
////////////////////////////////////////////////////////////////////////////
/** The JNDI name of this connector resource. */
final String jndiName;
/** Connection pool unique name (and ID). */
final String poolName;
/** Optional properties for configuring the resource. */
final Map<String, String> properties;
/** If this object is enabled. */
final boolean enabled;
////////////////////////////////////////////////////////////////////////////
// Constructors //
////////////////////////////////////////////////////////////////////////////
/**
* Constructs an instance of Payara server create connector resource
* command entity.
* <p/>
* @param jndiName The JNDI name of this connector resource.
* @param poolName Connection pool unique name (and ID).
* @param properties Optional properties for configuring the pool.
* @param enabled If this object is enabled.
* @param target Name of the cluster or instance where the resource
* will be created.
*/
public CommandCreateConnector(final String jndiName, final String poolName,
final Map<String, String> properties, final boolean enabled, final
String target) {
super(COMMAND, target);
this.jndiName = jndiName;
this.poolName = poolName;
this.properties = properties;
this.enabled = enabled;
}
/**
* Constructs an instance of Payara server create connector resource
* command entity.
* <p/>
* @param jndiName The JNDI name of this connector resource.
* @param poolName Connection pool unique name (and ID).
* @param properties Optional properties for configuring the pool.
* @param enabled If this object is enabled.
*/
public CommandCreateConnector(final String jndiName, final String poolName,
final Map<String, String> properties, final boolean enabled) {
this(jndiName, poolName, properties, enabled, null);
}
/**
* Constructs an instance of Payara server create connector resource
* command entity.
* <p/>
* This object will be enabled on server by default.
* <p/>
* @param jndiName The JNDI name of this connector resource.
* @param poolName Connection pool unique name (and ID).
* @param properties Optional properties for configuring the pool.
*/
public CommandCreateConnector(final String jndiName, final String poolName,
final Map<String, String> properties) {
this(jndiName, poolName, properties, true);
}
}
|
[
"neilcsmith.net@googlemail.com"
] |
neilcsmith.net@googlemail.com
|
2409dae1495d36dc05758529ddedbe8171de2159
|
7d7d2093dda33095ad3e95c48eeac4ef2724751c
|
/src/com/siwuxie095/designpattern/category/chapter3rd/example1st/Decaf.java
|
fa837d44a0c4f4ea4d049465b3968eaf6ff17496
|
[] |
no_license
|
siwuxie095/DesignPattern
|
8cf0f7ad6591b9574dc950099ba2df05ac317eeb
|
1f31e6e0277a068a096fe9dbef5c44b18999b7e8
|
refs/heads/master
| 2020-07-02T14:55:51.576373
| 2019-11-12T05:56:13
| 2019-11-12T05:56:13
| 201,562,114
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 255
|
java
|
package com.siwuxie095.designpattern.category.chapter3rd.example1st;
/**
* 脱咖啡因咖啡
*
* @author Jiajing Li
* @date 2019-09-14 17:20:39
*/
class Decaf extends Beverage {
@Override
public double cost() {
return 7.0;
}
}
|
[
"834879583@qq.com"
] |
834879583@qq.com
|
92eec35202b909e9befcb139e7b0a62aa3f94714
|
95c49f466673952b465e19a5ee3ae6eff76bee00
|
/src/main/java/com/zhihu/android/app/ebook/p1051db/p1052a/BookmarkDao.java
|
40acada19e5797351637a69cea6b2269039b942e
|
[] |
no_license
|
Phantoms007/zhihuAPK
|
58889c399ae56b16a9160a5f48b807e02c87797e
|
dcdbd103436a187f9c8b4be8f71bdf7813b6d201
|
refs/heads/main
| 2023-01-24T01:34:18.716323
| 2020-11-25T17:14:55
| 2020-11-25T17:14:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 755
|
java
|
package com.zhihu.android.app.ebook.p1051db.p1052a;
import androidx.lifecycle.LiveData;
import com.zhihu.android.app.nextebook.model.bookmark.Bookmark;
import java.util.List;
/* renamed from: com.zhihu.android.app.ebook.db.a.i */
/* compiled from: BookmarkDao */
public interface BookmarkDao {
/* renamed from: a */
List<Bookmark> mo65035a(String str);
/* renamed from: a */
void mo65036a();
/* renamed from: a */
void mo65037a(List<Bookmark> list);
/* renamed from: a */
void mo65038a(Bookmark... bookmarkArr);
/* renamed from: b */
LiveData<List<Bookmark>> mo65039b(String str);
/* renamed from: c */
List<Bookmark> mo65040c(String str);
/* renamed from: d */
void mo65041d(String str);
}
|
[
"seasonpplp@qq.com"
] |
seasonpplp@qq.com
|
e14f9fb516db60bcf72c5fa3fa2d086406f75c9f
|
43dd94ca10e0bf109aff08a2b712eb4650dab694
|
/src/main/java/com/yanxiu/ce/common/utils/code/EncodeException.java
|
590dbe1f386dac404ab37aa6762af4e84d263909
|
[] |
no_license
|
tangmin721/cedu
|
7c0c49dbfd149dc46e68444cb37eb7247798fa8a
|
56eb29689ee68809053a88df41741497cb270f75
|
refs/heads/master
| 2021-01-19T08:24:20.630218
| 2017-04-08T10:00:26
| 2017-04-08T10:00:26
| 87,624,482
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 342
|
java
|
package com.yanxiu.ce.common.utils.code;
public class EncodeException extends RuntimeException{
private static final long serialVersionUID = -2213530181694395972L;
public EncodeException() {
super();
}
public EncodeException(Throwable cause) {
super(cause);
}
public EncodeException(String message) {
super(message);
}
}
|
[
"191102902@qq.com"
] |
191102902@qq.com
|
d0624930162c03ff90c83435bc6ef8fd502ea2ee
|
8484bd5d4d0b4c2598e909f16cadaa93fdece07b
|
/src/test/java/com/apicatalog/jsonld/http/MediaTypeTest.java
|
e108cb53640c3e56e2e676d4515773ac542a3b41
|
[
"Apache-2.0"
] |
permissive
|
masukri/titanium-json-ld
|
4326a0967d1c9419dcb638f4d2f8fa309f1fabc1
|
eecf5396dcbffca694139631e1230b6fedbf5bc7
|
refs/heads/master
| 2023-01-23T19:24:20.623614
| 2020-12-04T20:53:24
| 2020-12-04T20:53:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,303
|
java
|
/*
* Copyright 2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.apicatalog.jsonld.http;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import org.junit.Assert;
import org.junit.Test;
import com.apicatalog.jsonld.http.media.MediaType;
public class MediaTypeTest {
@Test
public void testNull() {
Assert.assertThrows(IllegalArgumentException.class, () -> MediaType.of(null));
}
@Test
public void test1() {
MediaType type = MediaType.of("text/plain");
Assert.assertNotNull(type);
Assert.assertEquals("text", type.type());
Assert.assertEquals("plain", type.subtype());
Assert.assertEquals("text/plain", type.toString());
Assert.assertTrue(type.parameters().isEmpty());
}
@Test
public void test2() {
MediaType type = MediaType.of("text");
Assert.assertNull(type);
}
@Test
public void test3() {
MediaType type = MediaType.of("text//xxx");
Assert.assertNull(type);
}
@Test
public void test4() {
MediaType type = MediaType.of(" x/y+a ");
Assert.assertNotNull(type);
Assert.assertEquals("x", type.type());
Assert.assertEquals("y+a", type.subtype());
Assert.assertEquals("x/y+a", type.toString());
Assert.assertTrue(type.parameters().isEmpty());
}
@Test
public void test5() {
MediaType type = MediaType.of("1/!");
Assert.assertNull(type);
}
@Test
public void test6() {
MediaType type = MediaType.of("1/2.a;3=4;5");
Assert.assertNotNull(type);
Assert.assertEquals("1", type.type());
Assert.assertEquals("2.a", type.subtype());
Assert.assertEquals(new HashSet<>(Arrays.asList("3", "5")), type.parameters().names());
Assert.assertTrue(type.parameters().firstValue("3").isPresent());
Assert.assertEquals("4", type.parameters().firstValue("3").get());
Assert.assertTrue(type.parameters().firstValue("5").isPresent());
Assert.assertEquals("5", type.parameters().firstValue("5").get());
}
@Test
public void test7() {
MediaType type = MediaType.of("A#/Z^ ; a = \"4\"");
Assert.assertNotNull(type);
Assert.assertEquals("A#", type.type());
Assert.assertEquals("Z^", type.subtype());
Assert.assertEquals(new HashSet<>(Arrays.asList("a")), type.parameters().names());
Assert.assertTrue(type.parameters().firstValue("a").isPresent());
Assert.assertEquals("4", type.parameters().firstValue("a").get());
Assert.assertEquals(Arrays.asList("4"), type.parameters().values("a"));
Assert.assertEquals(Collections.emptyList(), type.parameters().values("Z"));
}
@Test
public void test8() {
MediaType type = MediaType.of("a/b;1;2=3");
Assert.assertNotNull(type);
Assert.assertEquals("a", type.type());
Assert.assertEquals("b", type.subtype());
Assert.assertEquals(new HashSet<>(Arrays.asList("1", "2")), type.parameters().names());
Assert.assertTrue(type.parameters().firstValue("1").isPresent());
Assert.assertEquals("1", type.parameters().firstValue("1").get());
Assert.assertTrue(type.parameters().firstValue("2").isPresent());
Assert.assertEquals("3", type.parameters().firstValue("2").get());
}
@Test
public void test9() {
MediaType type = MediaType.of(" ");
Assert.assertNull(type);
}
@Test
public void test10() {
MediaType type= MediaType.of("a/b !");
Assert.assertNotNull(type);
Assert.assertEquals("a", type.type());
Assert.assertEquals("b", type.subtype());
Assert.assertTrue(type.parameters().isEmpty());
Assert.assertEquals(Collections.emptySet(), type.parameters().names());
}
@Test
public void test11() {
MediaType type= MediaType.of("a/b;1= 2; 1=\"3\"");
Assert.assertNotNull(type);
Assert.assertEquals("a", type.type());
Assert.assertEquals("b", type.subtype());
Assert.assertEquals(new HashSet<>(Arrays.asList("1")), type.parameters().names());
Assert.assertTrue(type.parameters().firstValue("1").isPresent());
Assert.assertEquals("2", type.parameters().firstValue("1").get());
Assert.assertEquals(Arrays.asList("2", "3"), type.parameters().values("1"));
}
@Test
public void test12() {
MediaType type= MediaType.of("a/b;1=\"a\\\tb\"");
Assert.assertNotNull(type);
Assert.assertEquals("a", type.type());
Assert.assertEquals("b", type.subtype());
Assert.assertEquals(new HashSet<>(Arrays.asList("1")), type.parameters().names());
Assert.assertTrue(type.parameters().firstValue("1").isPresent());
Assert.assertEquals("a\tb", type.parameters().firstValue("1").get());
Assert.assertEquals(Arrays.asList("a\tb"), type.parameters().values("1"));
}
@Test
public void test13() {
MediaType type= MediaType.of("&");
Assert.assertNull(type);
}
@Test
public void test14() {
Assert.assertThrows(IllegalArgumentException.class, () -> MediaType.of(null, "a"));
}
@Test
public void test15() {
Assert.assertThrows(IllegalArgumentException.class, () -> MediaType.of("b", null));
}
@Test
public void testM01() {
Assert.assertTrue(MediaType.ANY.match(MediaType.HTML));
}
@Test
public void testM02() {
Assert.assertTrue(MediaType.JSON_LD.match(MediaType.JSON_LD));
}
@Test
public void testM03() {
Assert.assertFalse(MediaType.JSON.match(MediaType.JSON_LD));
}
}
|
[
"filip26@gmail.com"
] |
filip26@gmail.com
|
f91b3ff9c9ff9887a260d487bc29a643a9af850f
|
2dbb98664d6e9b9225618586d801c09e978bcaf8
|
/src/main/java/org/openplanrep/service/OptionSetService.java
|
40008512e912d63ae51e9ee57619afd616a7f08d
|
[] |
no_license
|
chrismelky/openPlanB-server
|
cadec7a2d25f1b3ed6b928288f8d67dec0c823f5
|
510a564d272331b6f5b54770f0dd2c68d77ef7ad
|
refs/heads/master
| 2020-04-16T03:43:23.883539
| 2019-01-10T12:10:20
| 2019-01-10T12:10:20
| 165,242,638
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,015
|
java
|
package org.openplanrep.service;
import org.openplanrep.domain.OptionSet;
import org.openplanrep.repository.OptionSetRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Optional;
/**
* Service Implementation for managing OptionSet.
*/
@Service
@Transactional
public class OptionSetService {
private final Logger log = LoggerFactory.getLogger(OptionSetService.class);
private final OptionSetRepository optionSetRepository;
public OptionSetService(OptionSetRepository optionSetRepository) {
this.optionSetRepository = optionSetRepository;
}
/**
* Save a optionSet.
*
* @param optionSet the entity to save
* @return the persisted entity
*/
public OptionSet save(OptionSet optionSet) {
log.debug("Request to save OptionSet : {}", optionSet); return optionSetRepository.save(optionSet);
}
/**
* Get all the optionSets.
*
* @param pageable the pagination information
* @return the list of entities
*/
@Transactional(readOnly = true)
public Page<OptionSet> findAll(Pageable pageable) {
log.debug("Request to get all OptionSets");
return optionSetRepository.findAll(pageable);
}
/**
* Get one optionSet by id.
*
* @param id the id of the entity
* @return the entity
*/
@Transactional(readOnly = true)
public Optional<OptionSet> findOne(Long id) {
log.debug("Request to get OptionSet : {}", id);
return optionSetRepository.findById(id);
}
/**
* Delete the optionSet by id.
*
* @param id the id of the entity
*/
public void delete(Long id) {
log.debug("Request to delete OptionSet : {}", id);
optionSetRepository.deleteById(id);
}
}
|
[
"chrismelky05@gmail.com"
] |
chrismelky05@gmail.com
|
0b664feb7ffb207ed3666e73497a9af30747064c
|
fb53df541ee8c34a120937e05721798fdb4a9f61
|
/spring-shrio-with-session/src/main/java/com/yuntian/shrio/service/impl/SysMenuServiceImpl.java
|
630b167589942c1209788e5b8461fe401ddfdc9f
|
[] |
no_license
|
chuzhonglingyan/certificate-authority
|
a5b91622dcb63e861bd5dcb5ff18e60b9892a67d
|
7346e2f36213d56c62ea3912f56f555150d4a060
|
refs/heads/master
| 2022-06-24T06:04:56.869938
| 2020-04-26T06:57:39
| 2020-04-26T06:57:39
| 256,471,636
| 0
| 0
| null | 2022-06-17T03:08:21
| 2020-04-17T10:23:39
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 2,667
|
java
|
package com.yuntian.shrio.service.impl;
import com.yuntian.shrio.model.entity.SysMenu;
import com.yuntian.shrio.dao.SysMenuDao;
import com.yuntian.shrio.service.SysMenuService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* 后台系统-菜单表(SysMenu)表服务实现类
*
* @author makejava
* @since 2020-04-19 10:52:09
*/
@Service("sysMenuService")
public class SysMenuServiceImpl implements SysMenuService {
@Resource
private SysMenuDao sysMenuDao;
/**
* 通过ID查询单条数据
*
* @param id 主键
* @return 实例对象
*/
@Override
public SysMenu queryById(Long id) {
return this.sysMenuDao.queryById(id);
}
/**
* 查询多条数据
*
* @param offset 查询起始位置
* @param limit 查询条数
* @return 对象列表
*/
@Override
public List<SysMenu> queryAllByLimit(int offset, int limit) {
return this.sysMenuDao.queryAllByLimit(offset, limit);
}
/**
* 新增数据
*
* @param sysMenu 实例对象
* @return 实例对象
*/
@Override
public SysMenu insert(SysMenu sysMenu) {
this.sysMenuDao.insert(sysMenu);
return sysMenu;
}
/**
* 修改数据
*
* @param sysMenu 实例对象
* @return 实例对象
*/
@Override
public SysMenu update(SysMenu sysMenu) {
this.sysMenuDao.update(sysMenu);
return this.queryById(sysMenu.getId());
}
/**
* 通过主键删除数据
*
* @param id 主键
* @return 是否成功
*/
@Override
public boolean deleteById(Long id) {
return this.sysMenuDao.deleteById(id) > 0;
}
@Override
public List<String> getMenuListByUserId(Long id) {
if (id==1){
return Stream.of("menu","menu:list","menu:add","user","user:list","user:add").collect(Collectors.toList());
}else if (id==2){
return Stream.of("user","user:list","user:add").collect(Collectors.toList());
}
return new ArrayList<>();
}
@Override
public List<String> getMenuListByUserName(String userName) {
if (userName.equals("admin")){
return Stream.of("menu","menu:list","menu:add","user","user:list","user:add").collect(Collectors.toList());
}else if (userName.equals("yuntian")){
return Stream.of("user","user:list","user:add").collect(Collectors.toList());
}
return new ArrayList<>();
}
}
|
[
"944610721@qq.com"
] |
944610721@qq.com
|
edcfca19353eeb720581746646bb4318911dfdbf
|
7e713646a0619267b421aafa41a9afeeaf7a0108
|
/src/main/java/com/gdztyy/inca/controller/BmsMvposUpdownsetController.java
|
5252f79293fcc47d151a23f89e275ddaa58735ef
|
[] |
no_license
|
liutaota/ipl
|
4757e35d1100ca892f2137b690ee4b43b908dc19
|
9d53b9044ba56b6ea65f1347a779d4b66e075bea
|
refs/heads/master
| 2023-03-21T11:28:42.663574
| 2021-03-05T08:49:33
| 2021-03-05T08:49:33
| 344,747,852
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 338
|
java
|
package com.gdztyy.inca.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* 前端控制器
* </p>
*
* @author peiqy
* @since 2020-08-18
*/
@Controller
@RequestMapping("/inca/bmsMvposUpdownset")
public class BmsMvposUpdownsetController {
}
|
[
"liutao@qq.com"
] |
liutao@qq.com
|
81d7512b3418d66cfb938226fe9a5a00a4bb2f7b
|
a820f8f4637876480c967dd4669862bb67734647
|
/aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeAutoSnapshotPolicyExResponseUnmarshaller.java
|
fdf60e2663527dc6ec26616f71332411c5171219
|
[
"Apache-2.0"
] |
permissive
|
remgoo/aliyun-openapi-java-sdk
|
6c0128ed1f51bfb395f3022105996c9e9fa5aa09
|
546e6887d88a5c3a8a9964aa990f8229ca7f9797
|
refs/heads/master
| 2020-12-03T09:21:30.460238
| 2016-04-01T09:31:27
| 2016-04-01T09:31:27
| 55,586,102
| 1
| 0
| null | 2016-04-06T07:47:52
| 2016-04-06T07:47:52
| null |
UTF-8
|
Java
| false
| false
| 3,514
|
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.transform.v20140526;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.ecs.model.v20140526.DescribeAutoSnapshotPolicyExResponse;
import com.aliyuncs.ecs.model.v20140526.DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicy;
import com.aliyuncs.transform.UnmarshallerContext;
public class DescribeAutoSnapshotPolicyExResponseUnmarshaller {
public static DescribeAutoSnapshotPolicyExResponse unmarshall(DescribeAutoSnapshotPolicyExResponse describeAutoSnapshotPolicyExResponse, UnmarshallerContext context) {
describeAutoSnapshotPolicyExResponse.setRequestId(context.stringValue("DescribeAutoSnapshotPolicyExResponse.RequestId"));
describeAutoSnapshotPolicyExResponse.setTotalCount(context.integerValue("DescribeAutoSnapshotPolicyExResponse.TotalCount"));
describeAutoSnapshotPolicyExResponse.setPageNumber(context.integerValue("DescribeAutoSnapshotPolicyExResponse.PageNumber"));
describeAutoSnapshotPolicyExResponse.setPageSize(context.integerValue("DescribeAutoSnapshotPolicyExResponse.PageSize"));
List<AutoSnapshotPolicy> autoSnapshotPolicies = new ArrayList<AutoSnapshotPolicy>();
for (int i = 0; i < context.lengthValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies.Length"); i++) {
AutoSnapshotPolicy autoSnapshotPolicy = new AutoSnapshotPolicy();
autoSnapshotPolicy.setAutoSnapshotPolicyId(context.integerValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].AutoSnapshotPolicyId"));
autoSnapshotPolicy.setRegionId(context.stringValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].RegionId"));
autoSnapshotPolicy.setAutoSnapshotPolicyName(context.stringValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].AutoSnapshotPolicyName"));
autoSnapshotPolicy.setTimePoints(context.stringValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].TimePoints"));
autoSnapshotPolicy.setRepeatWeekdays(context.stringValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].RepeatWeekdays"));
autoSnapshotPolicy.setRetentionDays(context.integerValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].RetentionDays"));
autoSnapshotPolicy.setDiskNums(context.integerValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].DiskNums"));
autoSnapshotPolicy.setCreationTime(context.stringValue("DescribeAutoSnapshotPolicyExResponse.AutoSnapshotPolicies["+ i +"].CreationTime"));
autoSnapshotPolicies.add(autoSnapshotPolicy);
}
describeAutoSnapshotPolicyExResponse.setAutoSnapshotPolicies(autoSnapshotPolicies);
return describeAutoSnapshotPolicyExResponse;
}
}
|
[
"346340936@qq.com"
] |
346340936@qq.com
|
cde3c079a818ac78840eae34b51801bcf2d7b4f2
|
139960e2d7d55e71c15e6a63acb6609e142a2ace
|
/mobile_app1/module1063/src/main/java/module1063packageJava0/Foo810.java
|
924900a2d9bd680b8cf1ce544be152ebfc7d11ee
|
[
"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
| 553
|
java
|
package module1063packageJava0;
import java.lang.Integer;
public class Foo810 {
Integer int0;
Integer int1;
public void foo0() {
new module1063packageJava0.Foo809().foo9();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
public void foo6() {
foo5();
}
public void foo7() {
foo6();
}
public void foo8() {
foo7();
}
public void foo9() {
foo8();
}
}
|
[
"oliviern@uber.com"
] |
oliviern@uber.com
|
9a4c9b297b785058091f468401b2cf4a5ee9bd20
|
647ce242e20bc792b334cf445d1fb3243f0f3b47
|
/chintai-migration-cms/src/net/chintai/backend/sysadmin/master/dao/RosenSearchParamBean.java
|
3baab66b00a6a7791cc38e2ad8dee67ee1741a88
|
[] |
no_license
|
sangjiexun/20191031test
|
0ce6c9e3dabb7eed465d4add33a107e5b5525236
|
3248d86ce282c1455f2e6ce0e05f0dbd15e51518
|
refs/heads/master
| 2020-12-14T20:31:05.085987
| 2019-11-01T06:03:50
| 2019-11-01T06:03:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,312
|
java
|
/*
* $Id: RosenSearchParamBean.java 3570 2007-12-14 08:55:47Z t-kojima $
* ---------------------------------------------------------
* 更新日 更新者 内容
* ---------------------------------------------------------
* 2007/09/17 BGT)児島 新規作成
*
*/
package net.chintai.backend.sysadmin.master.dao;
/**
* 沿線・駅検索ParamBean
*
* @author JavaBeans Code Generator
* @version $Revision: 3570 $
* Copyright: (C) CHINTAI Corporation All Right Reserved.
*/
public class RosenSearchParamBean {
/** エリア */
private String areaCd;
/** 沿線タイプ */
private String ensenType;
/**
* エリアを取得します。
* @return エリア
*/
public String getAreaCd() {
return areaCd;
}
/**
* エリアを設定します。
* @param areaCd エリア
*/
public void setAreaCd(String areaCd) {
this.areaCd = areaCd;
}
/**
* 沿線タイプを取得します。
* @return 沿線タイプ
*/
public String getEnsenType() {
return ensenType;
}
/**
* 沿線タイプを設定します。
* @param ensenType 沿線タイプ
*/
public void setEnsenType(String ensenType) {
this.ensenType = ensenType;
}
}
|
[
"yuki.hirukawa@ctc-g.co.jp"
] |
yuki.hirukawa@ctc-g.co.jp
|
2b0c0dc66d39354819a8323aa91594cca5905d73
|
441b16d5861b8239644007c3b64d56bdfd67bb92
|
/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/data/TupleTypeImpl.java
|
0c7c8c3aa70cdcbb191057ab556c67f2012bc002
|
[] |
no_license
|
sec00/osee-4
|
baf9713306c7bfd6f5a12a153acb083bbdb2ce77
|
4644522f12d0e2a887434d09dffa55d32ed45f15
|
refs/heads/master
| 2021-05-19T04:04:07.608109
| 2018-11-15T23:29:55
| 2018-11-15T23:31:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,129
|
java
|
/*******************************************************************************
* Copyright (c) 2016 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.framework.core.data;
import org.eclipse.osee.framework.core.enums.CoreTupleFamilyTypes;
import org.eclipse.osee.framework.jdk.core.type.BaseId;
/**
* @author Ryan D. Brooks
*/
class TupleTypeImpl extends BaseId implements TupleTypeToken {
private final TupleFamilyId family;
public TupleTypeImpl(Long tupleTypeId) {
this(CoreTupleFamilyTypes.DefaultFamily, tupleTypeId);
}
public TupleTypeImpl(TupleFamilyId family, Long tupleTypeId) {
super(tupleTypeId);
this.family = family;
}
@Override
public TupleFamilyId getFamily() {
return family;
}
}
|
[
"ryan.d.brooks@boeing.com"
] |
ryan.d.brooks@boeing.com
|
467b1757621200a08ae807f2598f4acab8404fae
|
3d7485f7866ff56a3e29c5f4f0c48a3ce3541db4
|
/src/test/java/com/vtence/molecule/middlewares/StaticAssetsTest.java
|
8930c280a5448af643ef458f85455bee0044d9ab
|
[] |
no_license
|
bodyjar/molecule
|
1276a579d3cf64769eb069daee73ab23ee002ac2
|
3951c40d4b91cdc998791eb208208467e877779a
|
refs/heads/master
| 2021-01-15T22:33:17.146801
| 2013-03-13T19:39:11
| 2013-03-13T19:39:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,921
|
java
|
package com.vtence.molecule.middlewares;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.jmock.integration.junit4.JMock;
import org.jmock.integration.junit4.JUnit4Mockery;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import com.vtence.molecule.Application;
import com.vtence.molecule.support.MockRequest;
import com.vtence.molecule.support.MockResponse;
import static com.vtence.molecule.support.MockRequest.aRequest;
import static com.vtence.molecule.support.MockResponse.aResponse;
@RunWith(JMock.class)
public class StaticAssetsTest {
Mockery context = new JUnit4Mockery();
Application successor = context.mock(Application.class, "successor");
Application fileServer = context.mock(Application.class, "file server");
StaticAssets assets = new StaticAssets(fileServer, "/favicon.ico");
MockRequest request = aRequest();
MockResponse response = aResponse();
@Before public void
chainWithSuccessor() {
assets.connectTo(successor);
}
@Test public void
routesToFileServerWhenPathIsMatched() throws Exception {
context.checking(new Expectations() {{
oneOf(fileServer).handle(with(request), with(response));
}});
assets.handle(request.withPath("/favicon.ico"), response);
}
@Test public void
supportsMappingMultiplePaths() throws Exception {
context.checking(new Expectations() {{
oneOf(fileServer).handle(with(request), with(response));
}});
assets.serve("/static");
assets.handle(request.withPath("/static"), response);
}
@Test public void
forwardsToNextApplicationWhenPathIsNotMatched() throws Exception {
context.checking(new Expectations() {{
oneOf(successor).handle(with(request), with(response));
}});
assets.handle(request.withPath("/home"), response);
}
}
|
[
"vtence@gmail.com"
] |
vtence@gmail.com
|
747fbdb4309a24d55121ca5b8b5c531a5b84c232
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_b15d171c74013ea1d2f16b63d7ed4f8d7a2ca34a/HomeActivity/2_b15d171c74013ea1d2f16b63d7ed4f8d7a2ca34a_HomeActivity_t.java
|
299670a7be79d6cb663c1e7f68653dc5fcdfd7d3
|
[] |
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
| 1,706
|
java
|
package com.github.mobileartisans.bawall;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.example.R;
public class HomeActivity extends Activity implements TextView.OnEditorActionListener {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (!new UserPreference(this).isSet()) {
startActivity(new Intent(this, LoginActivity.class));
return;
}
setContentView(R.layout.main);
EditText issueNumber = (EditText) findViewById(R.id.issueNumber);
issueNumber.setOnEditorActionListener(this);
}
public void onCameraCapture(View view) {
Toast.makeText(this, "You wish!", Toast.LENGTH_SHORT).show();
}
public void onKeyboardCapture(View view) {
Toast.makeText(this, "You wish!", Toast.LENGTH_SHORT).show();
}
public void onGestureCapture(View view) {
Toast.makeText(this, "You wish!", Toast.LENGTH_SHORT).show();
}
@Override
public boolean onEditorAction(TextView textView, int actionId, KeyEvent keyEvent) {
if (actionId == EditorInfo.IME_ACTION_SEARCH) {
Intent intent = new Intent(this, IssueViewActivity.class);
intent.putExtra(IssueViewActivity.ISSUE_KEY, textView.getEditableText().toString());
startActivity(intent);
return true;
}
return false;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
126240039fff88bd9fefa39e8c8bedfba88ceb31
|
6a0d4cb96d741105254f94d485cab2e0a0f24fd2
|
/core/src/test/java/com/expert_soft/service/impl/CartServiceImplTest.java
|
e256cb3d9d92eb7ee347c2012e2495ba565fa90a
|
[] |
no_license
|
Redchush/com.expert_soft.PhoneShop
|
6b196c5b802bc7d700bc4855d70c57b69c0f1cb7
|
5877e5b829bd1fbb09ae841495bad8165faeb24c
|
refs/heads/master
| 2021-01-13T03:09:15.650145
| 2017-02-16T10:23:12
| 2017-02-16T10:23:12
| 77,405,827
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,039
|
java
|
package com.expert_soft.service.impl;
import com.expert_soft.model.Phone;
import com.expert_soft.model.calculator.impl.OrderCalculatorImpl;
import com.expert_soft.model.order.Cart;
import com.expert_soft.model.order.OrderItem;
import com.expert_soft.test_util.DataBuilder;
import org.apache.log4j.Logger;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.mockito.Mockito;
import static com.expert_soft.test_util.MockData.getMockTrueValidator;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
public class CartServiceImplTest {
private static final Logger logger = Logger.getLogger(CartServiceImplTest.class);
private static CartServiceImpl service;
private Cart actual;
@BeforeClass
public static void beforeClass(){
service = new CartServiceImpl();
service.setCalculator(Mockito.mock(OrderCalculatorImpl.class));
service.setValidator(getMockTrueValidator());
}
@Before
public void setUp() throws Exception {
service.setCart(new Cart());
actual = service.getCart();
}
@Test
public void addToCart_ItemsExist() throws Exception {
OrderItem item = DataBuilder.Order_1.getItem_1_new();
service.addToCart(item.getPhone(), item.getQuantity());
assertTrue(actual.getOrderItems().contains(item));
}
@Test
public void addToCart_SamePhone() throws Exception {
Phone phone = DataBuilder.getPhoneId_1();
service.addToCart(phone, 1);
service.addToCart(phone, 2);
assertEquals("Fail to find same phone", actual.getOrderItems().size(), 1);
OrderItem item1 = actual.getItem(phone.getKey());
assertEquals("Fail to calculate new quantity",
item1.getQuantity(), new Integer(3));
}
@Test
public void deleteFromCart() throws Exception {
Cart fullCart_2_items = DataBuilder.Carts.byOrder_2();
service.setCart(fullCart_2_items);
service.deleteFromCart(1L);
assertEquals(1, fullCart_2_items.getOrderItems().size());
}
@Test
public void deleteFromCart1() throws Exception {
Cart fullCart_2_items = DataBuilder.Carts.byOrder_2();
service.setCart(fullCart_2_items);
service.deleteFromCart(new Long[]{1L, 2L});
assertTrue(fullCart_2_items.getOrderItems().isEmpty());
}
@Test
public void updatePhoneQuantity() throws Exception {
Cart testedCart = DataBuilder.Carts.byOrder_2();
service.setCart(testedCart);
Integer expPhoneQuantity = 4;
int sizeInitial = testedCart.getOrderItems().size();
service.updatePhoneQuantity(1L, expPhoneQuantity);
assertEquals("Quantity of order items in cart changed",
sizeInitial, testedCart.getOrderItems().size());
Integer realQuantity = testedCart.getItem(1L)
.getQuantity();
assertEquals(expPhoneQuantity, realQuantity);
}
}
|
[
"redchush@gmail.com"
] |
redchush@gmail.com
|
cdc57aafa0ed3f182bbc9dcd4c082d7ea8fde334
|
4a84baed65f3eede40973817bd606d813f83e740
|
/plugins/org.jboss.tools.fuse.reddeer/src/org/jboss/tools/fuse/reddeer/component/WireTap.java
|
aa0b154e3222cbba3518f7cd47fd1f73608ec260
|
[] |
no_license
|
tsedmik/jbosstools-integration-stack-tests
|
f4b14b29842efaa09be30448ae02bc42da3d91fd
|
26984cfc243ee91dba63807dd430b5e20ca4972f
|
refs/heads/master
| 2021-01-21T15:43:38.486174
| 2017-08-28T08:32:16
| 2017-08-28T10:10:59
| 13,615,821
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 330
|
java
|
package org.jboss.tools.fuse.reddeer.component;
/**
*
* @author apodhrad
*
*/
public class WireTap implements CamelComponent {
@Override
public String getPaletteEntry() {
return "Wire Tap";
}
@Override
public String getLabel() {
return "wireTap";
}
@Override
public String getTooltip() {
return null;
}
}
|
[
"apodhrad@redhat.com"
] |
apodhrad@redhat.com
|
0799cdfc841d3cb4a99794f9f85138279ed8bdba
|
647eef4da03aaaac9872c8b210e4fc24485e49dc
|
/TestMemory/wandoujia/src/main/java/com/wandoujia/ripple_framework/util/d.java
|
2ceb470aa316533d0942d1ee6201bde2b1747df2
|
[] |
no_license
|
AlbertSnow/git_workspace
|
f2d3c68a7b6e62f41c1edcd7744f110e2bf7f021
|
a0b2cd83cfa6576182f440a44d957a9b9a6bda2e
|
refs/heads/master
| 2021-01-22T17:57:16.169136
| 2016-12-05T15:59:46
| 2016-12-05T15:59:46
| 28,154,580
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 346
|
java
|
package com.wandoujia.ripple_framework.util;
import com.wandoujia.appmanager.LocalAppInfo;
import java.util.Comparator;
final class d
implements Comparator<LocalAppInfo>
{
}
/* Location: C:\WorkSpace\WandDouJiaNotificationBar\WanDou2.jar
* Qualified Name: com.wandoujia.ripple_framework.util.d
* JD-Core Version: 0.6.0
*/
|
[
"zhaojialiang@conew.com"
] |
zhaojialiang@conew.com
|
829a52efa7d2cb5a2bc351d1ab0658a88392bad5
|
98aff78bf67ed7484dbb44a60abff3eaaeba0422
|
/app/src/main/java/com/xinran/testserviceimgcompress/anotherway/CompressImageUtil.java
|
1d99bae3a7bc48767bc00147036afea622f78b73
|
[
"Apache-2.0"
] |
permissive
|
XinRan5312/QxImageCompress
|
162878164f107f7c4921ee1ad3fb1baa1c72ce7d
|
f1dc31197a3066730ec2ec926e90acb200a1bd59
|
refs/heads/master
| 2020-02-26T14:29:43.003312
| 2016-06-13T04:01:53
| 2016-06-13T04:01:53
| 60,067,659
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,944
|
java
|
package com.xinran.testserviceimgcompress.anotherway;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.BitmapFactory;
import android.os.Handler;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
/**
* 压缩照片2.0
* Created by qixinh on 16/6/13.
*/
public class CompressImageUtil implements CompressImage {
private CompressConfig config;
Handler mhHandler = new Handler();
public CompressImageUtil(CompressConfig config) {
this.config = config == null ? CompressConfig.getDefaultConfig() : config;
}
@Override
public void compress(String imagePath, CompressListener listener) {
if (config.isEnablePixelCompress()) {
try {
compressImageByPixel(imagePath, listener);
} catch (FileNotFoundException e) {
listener.onCompressFailed(imagePath, String.format("图片压缩失败,%s", e.toString()));
e.printStackTrace();
}
} else {
compressImageByQuality(BitmapFactory.decodeFile(imagePath), imagePath, listener);
}
}
/**
* 多线程压缩图片的质量
*
* @param bitmap 内存中的图片
* @param imgPath 图片的保存路径
* @author JPH
* @date 2014-12-5下午11:30:43
*/
private void compressImageByQuality(final Bitmap bitmap, final String imgPath, final CompressImage.CompressListener listener) {
if (bitmap == null) {
sendMsg(false, imgPath, "像素压缩失败,bitmap is null", listener);
return;
}
new Thread(new Runnable() {//开启多线程进行压缩处理
@Override
public void run() {
// TODO Auto-generated method stub
ByteArrayOutputStream baos = new ByteArrayOutputStream();
int options = 100;
bitmap.compress(Bitmap.CompressFormat.JPEG, options, baos);//质量压缩方法,把压缩后的数据存放到baos中 (100表示不压缩,0表示压缩到最小)
while (baos.toByteArray().length > config.getMaxSize()) {//循环判断如果压缩后图片是否大于指定大小,大于继续压缩
baos.reset();//重置baos即让下一次的写入覆盖之前的内容
options -= 10;//图片质量每次减少10
if (options < 0) options = 0;//如果图片质量小于0,则将图片的质量压缩到最小值
bitmap.compress(Bitmap.CompressFormat.JPEG, options, baos);//将压缩后的图片保存到baos中
if (options == 0) break;//如果图片的质量已降到最低则,不再进行压缩
}
// if(bitmap!=null&&!bitmap.isRecycled()){
// bitmap.recycle();//回收内存中的图片
// }
try {
FileOutputStream fos = new FileOutputStream(new File(imgPath));//将压缩后的图片保存的本地上指定路径中
fos.write(baos.toByteArray());
fos.flush();
fos.close();
sendMsg(true, imgPath, null, listener);
} catch (Exception e) {
sendMsg(false, imgPath, "质量压缩失败", listener);
e.printStackTrace();
}
}
}).start();
}
/**
* 按比例缩小图片的像素以达到压缩的目的
*
* @param imgPath
* @return
* @author JPH
* @date 2014-12-5下午11:30:59
*/
private void compressImageByPixel(String imgPath, CompressListener listener) throws FileNotFoundException {
if (imgPath == null) {
sendMsg(false, imgPath, "要压缩的文件不存在", listener);
return;
}
BitmapFactory.Options newOpts = new BitmapFactory.Options();
newOpts.inJustDecodeBounds = true;//只读边,不读内容
BitmapFactory.decodeFile(imgPath, newOpts);
newOpts.inJustDecodeBounds = false;
int width = newOpts.outWidth;
int height = newOpts.outHeight;
float maxSize = config.getMaxPixel();
int be = 1;
if (width > height && width > maxSize) {//缩放比,用高或者宽其中较大的一个数据进行计算
be = (int) (newOpts.outWidth / maxSize);
be++;
} else if (width < height && height > maxSize) {
be = (int) (newOpts.outHeight / maxSize);
be++;
}
newOpts.inSampleSize = be;//设置采样率
newOpts.inPreferredConfig = Config.ARGB_8888;//该模式是默认的,可不设
newOpts.inPurgeable = true;// 同时设置才会有效
newOpts.inInputShareable = true;//。当系统内存不够时候图片自动被回收
Bitmap bitmap = BitmapFactory.decodeFile(imgPath, newOpts);
if (config.isEnableQualityCompress()) {
compressImageByQuality(bitmap, imgPath, listener);//压缩好比例大小后再进行质量压缩
} else {
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, new FileOutputStream(new File(imgPath)));
listener.onCompressSuccessed(imgPath);
}
}
/**
* 发送压缩结果的消息
*
* @param isSuccess 压缩是否成功
* @param imagePath
* @param message
*/
private void sendMsg(final boolean isSuccess, final String imagePath, final String message, final CompressImage.CompressListener listener) {
mhHandler.post(new Runnable() {
@Override
public void run() {
if (isSuccess) {
listener.onCompressSuccessed(imagePath);
} else {
listener.onCompressFailed(imagePath, message);
}
}
});
}
}
|
[
"qixinh@jumei.com"
] |
qixinh@jumei.com
|
2d9be1dd91af799d167f5c860573c72d2fdacd35
|
b894e7feec5ef4711e9d5f00bffc3effc1294143
|
/src/by/it/_examples_/jd01_10/sample_service/Service.java
|
efb8f9dda390768ef074ead40d789643e179fd50
|
[] |
no_license
|
Vladislav7776/JD2020-01-20
|
877e311bfa2be42152424f5f4963deb1b718e7e3
|
2f977ee26b79a97fa37bd1053756c91f344c5757
|
refs/heads/master
| 2020-12-22T21:37:24.187529
| 2020-03-12T20:22:51
| 2020-03-12T20:22:51
| 236,938,743
| 6
| 0
| null | 2020-01-29T08:46:59
| 2020-01-29T08:46:58
| null |
UTF-8
|
Java
| false
| false
| 957
|
java
|
package by.it._examples_.jd01_10.sample_service;
import java.lang.annotation.*;
@Documented //класс помеченный аннотацией Service попадет в JavaDoc
@Inherited //эта аннотация наследуется потомками помеченного класса
@Target(ElementType.TYPE) //эта аннотация предназначена для пометки класса или интерфейса
@Retention(RetentionPolicy.RUNTIME) //аннотация живет при выполнении
public @interface Service {
String name(); //значение в аннотации, указывать обязательно
// @Service(name="Author");
boolean lazyLoad() default false; //значение в аннотации, необязательно
// @Service(name="Author",lazyLoad=true);
}
|
[
"akhmelev@gmail.com"
] |
akhmelev@gmail.com
|
1399bf13a7c31aedf19ec480a8c248e1a4f43ade
|
5f4927cb47ef2031876a0969dc34d20816c9b8ec
|
/clases/Relaciones/03 Relaciones entre clases/e_composicion/src/ejemplo_01_persona/Persona.java
|
eade0a69069e1d9f0484a415b06af61d01b86496
|
[] |
no_license
|
desabi/java-se
|
f5e072966c3db59c103668709290dbd5107411d7
|
d8a8a2c90806981c9c6b2689bfbdc6d0b548c5c9
|
refs/heads/master
| 2022-12-04T12:01:39.160640
| 2020-08-20T15:45:20
| 2020-08-20T15:45:20
| 289,031,997
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 868
|
java
|
package ejemplo_01_persona;
/**
*
* @author abi
*/
public class Persona {
private String nombre;
private final Corazon elCorazon;
/**
* Se utiliza final para que nos aseguremos que el objeto(Corazon) sea creado
* Persona debe tener corazon para poder vivir
*
*/
public Persona() {
/* Cuando se crea(concibe) la Persona, tambien se debe crear el corazon */
elCorazon = new Corazon();
elCorazon.setLatiendo(true);
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public void imprimir() {
System.out.println("PERSONA: ");
System.out.println("Nombre: " + this.nombre);
System.out.println("CORAZON:");
System.out.println("Latiendo: " + elCorazon.isLatiendo());
}
}
|
[
"desabi@live.com"
] |
desabi@live.com
|
ffea06980d791dfb9fd1536a0e940a68998c67ca
|
c461f0ad5aefd667e31ab5ff6d1cbc34162321bf
|
/src/com/quhwa/presenter/UserInfoPresenter.java
|
ae268cf48c3993c11d96dfacade78529cf846d8b
|
[] |
no_license
|
lichao3140/Linphone
|
6f41629bb14d4f4b320064ed7054b84a7bca30f7
|
5b05bfd8375f50e2b315fb3b14ae0c1cac62152f
|
refs/heads/master
| 2021-05-11T18:30:47.578341
| 2018-03-15T13:11:39
| 2018-03-15T13:11:39
| 117,829,379
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,217
|
java
|
package com.quhwa.presenter;
import android.os.Handler;
import com.quhwa.bean.ReturnResult;
import com.quhwa.model.userinfo.IUserInfoModel;
import com.quhwa.model.userinfo.UserInfoModelImpl;
import com.quhwa.utils.Code;
import com.quhwa.utils.CommonUtil;
import com.quhwa.utils.MSG;
import com.quhwa.utils.MyLog;
import com.quhwa.utils.TimerUtils;
import com.quhwa.view.IUserInfoView;
public class UserInfoPresenter {
private IUserInfoView iUserInfoView;
private String Tag = "UserInfoPresenter";
private IUserInfoModel userInfoModel = new UserInfoModelImpl();
public UserInfoPresenter(IUserInfoView iUserInfoView) {
super();
this.iUserInfoView = iUserInfoView;
}
/**
* 检测sip注册状态
*/
public void checkSipRegisterStatus(final Handler handler){
TimerUtils.sendSipMsgTimer(null, handler, MSG.MSG_REGISTER_SIP_SERVER,3000,true);
}
/**
* 开始检测
*/
public void startCheck() {
MyLog.print(Tag, "检测sip注册状态", MyLog.PRINT_RED);
//iUserInfoView.showSipRegisterStatus(PJSipService.instance.getSipRegisterStatus());
}
/**
* 停止检测
*/
public void stopCheck(){
TimerUtils.stopToSend();
}
public void deleteToken(){
if(userInfoModel != null && iUserInfoView != null){
userInfoModel.deleteToken(new IUserInfoModel.OnDeleteTokenlistener() {
@Override
public void onCompelete(ReturnResult result) {
if(result.getCode() == Code.RETURN_SUCCESS){
MyLog.print(Tag,"删除token成功,开始删除本地相关数据,退出登陆",MyLog.PRINT_RED);
iUserInfoView.deleteLocalData();
}else{
MyLog.print(Tag,"删除token失败,开始删除本地相关数据,退出登陆code:"+result.getCode(),MyLog.PRINT_RED);
iUserInfoView.deleteLocalData();
}
}
@Override
public void onCompleteFail() {
MyLog.print(Tag,"服务器繁忙,删除token失败,开始删除本地相关数据,退出登陆",MyLog.PRINT_RED);
iUserInfoView.deleteLocalData();
}
@Override
public void onNoNet() {
MyLog.print(Tag,"没有网络,删除token成失败,开始删除本地相关数据,退出登陆",MyLog.PRINT_RED);
iUserInfoView.deleteLocalData();
}
}, CommonUtil.getToken());
}
}
}
|
[
"396229938@qq.com"
] |
396229938@qq.com
|
319bc886156145bcab0fabe65b9c9d8852fba773
|
ec674fc37ef417321bf6ebfdd9ff776f07f17c3e
|
/app/src/main/java/com/deshang/ttjx/ui/mywidget/dialog/DayShowDialog.java
|
932bc18a1adf7a32a837c986651c140767ca91dd
|
[] |
no_license
|
Zhai-WenWu/toutiaojingxuan1.0.8
|
f68a12b053fc98e7c3ab7c77e5a37813cee4165a
|
0ede2af97b77c6c7f0c47a213516947a01bd612e
|
refs/heads/master
| 2020-04-08T04:28:31.110844
| 2018-11-25T09:58:12
| 2018-11-25T09:58:12
| 159,018,034
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,807
|
java
|
package com.deshang.ttjx.ui.mywidget.dialog;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.ImageView;
import com.deshang.ttjx.R;
/**
* 每日弹出Dialog
* Created by L on 2018年6月19日15:26:03
*/
public class DayShowDialog extends Dialog implements View.OnClickListener {
private Context context;
private View view;
private ImageView img_share, close;
public DayShowDialog(@NonNull Context context) {
super(context, R.style.Dialog);
this.context = context;
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
view = View.inflate(context, R.layout.dialog_show_day, null);
setContentView(view);
initView(view);
}
/***
* 初始化组件
* @param view
*/
private void initView(View view) {
close = (ImageView) view.findViewById(R.id.close);
close.setOnClickListener(this);
img_share = (ImageView) view.findViewById(R.id.img_share);
img_share.setOnClickListener(this);
setCancelable(false);
}
@Override
public void onClick(View view) {
switch (view.getId()) {
case R.id.close:
dismiss();
break;
case R.id.img_share:
dismiss();
if (listener != null){
listener.onClick();
}
break;
}
}
private OnClickListener listener;
public interface OnClickListener {
void onClick();
}
public void setOnClickListener(OnClickListener listener) {
this.listener = listener;
}
}
|
[
"782891615@qq.com"
] |
782891615@qq.com
|
333c712b752d2657e6049cf93a6830f055e32c8e
|
f69a85b6509aa10d72961b8b8dd322622ec01914
|
/lib/src/main/java/com/dyh/common/lib/weigit/picker/picker/DoublePicker.java
|
4c70e5dce7e9c85e206e1b87c64f8bcf28ae76ce
|
[
"ICU"
] |
permissive
|
zqlhh/CommonLib
|
012e9528d71866a0005f08229739bd5641ccef34
|
6b97f3a934fdd489cd89505f62fb42d41448b8d6
|
refs/heads/master
| 2022-03-29T18:42:04.620487
| 2020-01-15T08:52:25
| 2020-01-15T08:52:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,019
|
java
|
package com.dyh.common.lib.weigit.picker.picker;
import android.app.Activity;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
import com.dyh.common.lib.weigit.picker.widget.WheelView;
/**
* 双项选择器,选择两项,数据不联动。
* <p/>
* Author:李玉江[QQ:1032694760]
* DateTime:2017/5/1 8:34
* Builder:Android Studio
*/
public class DoublePicker extends WheelPicker {
private List<String> firstData = new ArrayList<>();
private List<String> secondData = new ArrayList<>();
private int selectedFirstIndex = 0;
private int selectedSecondIndex = 0;
private OnWheelListener onWheelListener;
private OnPickListener onPickListener;
private CharSequence firstPrefixLabel, firstSuffixLabel;
private CharSequence secondPrefixLabel, secondSuffixLabel;
public DoublePicker(Activity activity, List<String> firstData, List<String> secondData) {
super(activity);
this.firstData = firstData;
this.secondData = secondData;
}
public void setSelectedIndex(int firstIndex, int secondIndex) {
if (firstIndex >= 0 && firstIndex < firstData.size()) {
selectedFirstIndex = firstIndex;
}
if (secondIndex >= 0 && secondIndex < secondData.size()) {
selectedSecondIndex = secondIndex;
}
}
public void setFirstLabel(CharSequence firstPrefixLabel, CharSequence firstSuffixLabel) {
this.firstPrefixLabel = firstPrefixLabel;
this.firstSuffixLabel = firstSuffixLabel;
}
public void setSecondLabel(CharSequence secondPrefixLabel, CharSequence secondSuffixLabel) {
this.secondPrefixLabel = secondPrefixLabel;
this.secondSuffixLabel = secondSuffixLabel;
}
public String getSelectedFirstItem() {
if (firstData.size() > selectedFirstIndex) {
return firstData.get(selectedFirstIndex);
}
return "";
}
public String getSelectedSecondItem() {
if (secondData.size() > selectedSecondIndex) {
return secondData.get(selectedSecondIndex);
}
return "";
}
@NonNull
@Override
protected View makeCenterView() {
LinearLayout layout = new LinearLayout(activity);
layout.setOrientation(LinearLayout.HORIZONTAL);
layout.setGravity(Gravity.CENTER);
if (!TextUtils.isEmpty(firstPrefixLabel)) {
TextView firstPrefixLabelView = createLabelView();
firstPrefixLabelView.setLayoutParams(new LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT));
firstPrefixLabelView.setText(firstPrefixLabel);
layout.addView(firstPrefixLabelView);
}
final WheelView firstView = createWheelView();
firstView.setLayoutParams(new LinearLayout.LayoutParams(0, WRAP_CONTENT, 1.0f));
layout.addView(firstView);
if (!TextUtils.isEmpty(firstSuffixLabel)) {
TextView firstSuffixLabelView = createLabelView();
firstSuffixLabelView.setLayoutParams(new LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT));
firstSuffixLabelView.setText(firstSuffixLabel);
layout.addView(firstSuffixLabelView);
}
if (!TextUtils.isEmpty(secondPrefixLabel)) {
TextView secondPrefixLabelView = createLabelView();
secondPrefixLabelView.setLayoutParams(new LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT));
secondPrefixLabelView.setText(secondPrefixLabel);
layout.addView(secondPrefixLabelView);
}
final WheelView secondView = createWheelView();
secondView.setLayoutParams(new LinearLayout.LayoutParams(0, WRAP_CONTENT, 1.0f));
layout.addView(secondView);
if (!TextUtils.isEmpty(secondSuffixLabel)) {
TextView secondSuffixLabelView = createLabelView();
secondSuffixLabelView.setLayoutParams(new LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT));
secondSuffixLabelView.setText(secondSuffixLabel);
layout.addView(secondSuffixLabelView);
}
firstView.setItems(firstData, selectedFirstIndex);
firstView.setOnItemSelectListener(new WheelView.OnItemSelectListener() {
@Override
public void onSelected(int index) {
selectedFirstIndex = index;
if (onWheelListener != null) {
onWheelListener.onFirstWheeled(selectedFirstIndex, firstData.get(selectedFirstIndex));
}
}
});
secondView.setItems(secondData, selectedSecondIndex);
secondView.setOnItemSelectListener(new WheelView.OnItemSelectListener() {
@Override
public void onSelected(int index) {
selectedSecondIndex = index;
if (onWheelListener != null) {
onWheelListener.onSecondWheeled(selectedSecondIndex, secondData.get(selectedSecondIndex));
}
}
});
return layout;
}
@Override
public void onSubmit() {
if (onPickListener != null) {
onPickListener.onPicked(selectedFirstIndex, selectedSecondIndex);
}
}
public void setOnWheelListener(OnWheelListener onWheelListener) {
this.onWheelListener = onWheelListener;
}
public void setOnPickListener(OnPickListener onPickListener) {
this.onPickListener = onPickListener;
}
/**
* 数据条目滑动监听器
*/
public interface OnWheelListener {
void onFirstWheeled(int index, String item);
void onSecondWheeled(int index, String item);
}
/**
* 数据选择完成监听器
*/
public interface OnPickListener {
void onPicked(int selectedFirstIndex, int selectedSecondIndex);
}
}
|
[
"648731994@qq.com"
] |
648731994@qq.com
|
cbf343aec3cfa48475b423f6d2b81cdc5f7602a4
|
bdada8dd2fee5ed621fb4663adf2ae91edf7f390
|
/xc-fa/src/main/java/com/xzsoft/xc/fa/service/impl/CheckAssetCode.java
|
389b559494c971b2f8bd4254b7110f7ac9a1ec81
|
[] |
no_license
|
yl23250/xc
|
abaf7dbbdf1ec3b32abe16a1aeca19ee29568387
|
47877dc79e8ea8947f526bb21a1242cae5d70dd8
|
refs/heads/master
| 2020-09-16T20:49:54.040706
| 2018-06-23T13:25:56
| 2018-06-23T13:25:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,192
|
java
|
package com.xzsoft.xc.fa.service.impl;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.annotation.Resource;
import org.apache.log4j.Logger;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;
import com.xzsoft.xc.fa.dao.XcAssetDao;
import com.xzsoft.xc.fa.modal.XcAsset;
import com.xzsoft.xc.fa.service.AssetCcfService;
import com.xzsoft.xc.util.common.XCTransaction;
import com.xzsoft.xip.framework.util.AppContext;
/**
*
* @ClassName: CheckAssetCode
* @Description: 资产分类导入根据编码规则数据处理实现类
* @author wangwh
* @date 2016年7月12日
*/
@Service("checkAssCode")
public class CheckAssetCode {
private static final Logger log = Logger.getLogger(CheckAssetCode.class.getName()) ;
@Resource
private XcAssetDao xcAssetDao;
AssetCcfService assetCcfService;
public String checkAssetCode(String template_code,String tag_id)throws Exception{
ApplicationContext context = AppContext.getApplicationContext();
xcAssetDao = (XcAssetDao) context.getBean("xcAssetDao");
assetCcfService = (AssetCcfService) context.getBean("assetCcfService");
List<XcAsset> assetList= xcAssetDao.getAssetByTagId(tag_id);
String result = "<result><flag>0</flag><msg>编码无异常!</msg></result>";
int errorData = 0;
String deleteId = "";
XCTransaction xCTransaction = new XCTransaction();
xCTransaction.beginTransaction("XC_FA_CATS");
try{
for(XcAsset xcAsset : assetList){
String catId = xcAsset.getCatId();
String catCode = xcAsset.getCatCode();
String faPro = xcAsset.getFaProperty();
String catName = xcAsset.getCatName();
String upCode = xcAsset.getUpCode();
if(catCode==null||catCode.equals("")){
//新插入的数据,判断是否可插入,不可插入则根据ID删除
//1.资产名称,数据库里非空唯一,不用校验
//2.上级资产为空,更新资产属性(名称换成编码),资产编码赋值
//3.上级资产不为空,上级资产不存在或为3级资产则删除,否则如果上级资产属性与资产属性不一致,删除。
//String property = assetCcfService.getCodeByPropertyName(faPro);
if(upCode==null||upCode.equals("")){
//上级为空
if(!faPro.equals("FA")&&!faPro.equals("IA")&&!faPro.equals("BA")&&!faPro.equals("LV")){
//上级资产属性与资产属性不一致,删除
errorData++;
deleteId += "'"+xcAsset.getCatId()+"',";
}
String oneMaxCode = assetCcfService.getOneAssetMaxCode(new StringBuilder("%").append(faPro).append("%").toString());
String newCatCode = "";
String newUpCode = "";
if(oneMaxCode.equals("0")){
newCatCode = faPro + "001";
}else{
int numCode = Integer.parseInt(oneMaxCode)+1;
String code = "000"+numCode;
newCatCode = faPro+code.substring(code.length()-3,code.length());
}
//上级编码重新赋值
newUpCode = faPro+"_ROOT";
//执行更新
HashMap updateMap = new HashMap();
updateMap.put("CAT_ID", catId);
updateMap.put("UP_CODE", newUpCode);
updateMap.put("CAT_CODE", newCatCode);
updateMap.put("CAT_NAME", catName);
updateMap.put("FA_PROPERTY", faPro);
updateMap.put("LAST_UPDATE_DATE",new Date());
assetCcfService.updateAssetCcf(updateMap);
}else{
//判断上级资产是否存在
XcAsset xcas = assetCcfService.getAssetByCatName(upCode);
if(xcas!=null){
String isThreeAsset = xcas.getCatCode();
if(!xcas.getFaProperty().equals(faPro)){
//上级资产属性与资产属性不一致,删除
errorData++;
deleteId += "'"+xcAsset.getCatId()+"',";
}else{
if(isThreeAsset.split("_").length==3){
//上级资产为3级资产,删除
errorData++;
deleteId += "'"+xcAsset.getCatId()+"',";
}else if(isThreeAsset.split("_").length==2){
//当前更新的资产为3级资产
//上级资产为1级资产,获取2级资产最大编码
String twoMaxCode = assetCcfService.getTwoAssetMaxCode(new StringBuilder("%").append(isThreeAsset).append("%").toString());
String twoCatCode = "";
if(twoMaxCode.equals("0")){
twoCatCode = isThreeAsset+"_001";
}else{
int numCode = Integer.parseInt(twoMaxCode)+1;
String code = "000"+numCode;
twoCatCode = isThreeAsset+"_"+code.substring(code.length()-3,code.length());
}
//执行更新
HashMap updateMap = new HashMap();
updateMap.put("CAT_ID", catId);
updateMap.put("UP_CODE", isThreeAsset);
updateMap.put("CAT_CODE", twoCatCode);
updateMap.put("CAT_NAME", catName);
updateMap.put("FA_PROPERTY", faPro);
updateMap.put("LAST_UPDATE_DATE",new Date());
assetCcfService.updateAssetCcf(updateMap);
}else if(isThreeAsset.split("_").length==1){
//当前更新的资产为2级资产
//上级资产为2级资产,获取3级资产最大编码
String threeMaxCode = assetCcfService.getThreeAssetMaxCode(new StringBuilder("%").append(isThreeAsset).append("%").toString());
String threeCatCode ="";
if(threeMaxCode.equals("0")){
threeCatCode = isThreeAsset + "_001";
}else{
int numCode = Integer.parseInt(threeMaxCode)+1;
String code = "000"+numCode;
threeCatCode = isThreeAsset+"_"+code.substring(code.length()-3,code.length());
}
//执行更新
HashMap updateMap = new HashMap();
updateMap.put("CAT_ID", catId);
updateMap.put("UP_CODE", isThreeAsset);
updateMap.put("CAT_CODE", threeCatCode);
updateMap.put("CAT_NAME", catName);
updateMap.put("FA_PROPERTY", faPro);
updateMap.put("LAST_UPDATE_DATE",new Date());
assetCcfService.updateAssetCcf(updateMap);
}
}
}else{
//不存在上级资产,根据ID删除
errorData++;
deleteId += "'"+xcAsset.getCatId()+"',";
}
}
}
}
if(deleteId!=null && deleteId!=""){
deleteId = deleteId.substring(0, deleteId.length()-1);
//执行删除
for(int m = 0;m<deleteId.split(",").length;m++){
xcAssetDao.deleteAsset(deleteId.split(",")[m].substring(1, deleteId.split(",")[m].length()-1));
}
result = "<result><flag>0</flag><msg>有"+errorData+"条数据未导入(请检查资产名称唯一,上级资产(填写)属性是否与该资产属性一致)!</msg></result>";
}
}catch(Exception e){
result = "<result><flag>1</flag><msg>"+e.getMessage()+"!</msg></result>";
log.error(e.getMessage());
throw e;
}finally{
xCTransaction.endTransaction();
}
return result;
}
}
|
[
"381666890@qq.com"
] |
381666890@qq.com
|
cf06d979ad771d5f8b2f303ccbd645974a2bd926
|
9623f83defac3911b4780bc408634c078da73387
|
/powercraft_147/src/minecraft/powercraft/api/nei/PC_NEIGuiHandler.java
|
5d417110e48053eafb27107795c47136c7973941
|
[] |
no_license
|
BlearStudio/powercraft-legacy
|
42b839393223494748e8b5d05acdaf59f18bd6c6
|
014e9d4d71bd99823cf63d4fbdb65c1b83fde1f8
|
refs/heads/master
| 2021-01-21T21:18:55.774908
| 2015-04-06T20:45:25
| 2015-04-06T20:45:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 830
|
java
|
package powercraft.api.nei;
import java.util.List;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.item.ItemStack;
import powercraft.api.gres.PC_GresContainerGui;
import codechicken.nei.VisiblityData;
import codechicken.nei.api.INEIGuiHandler;
import codechicken.nei.api.TaggedInventoryArea;
public class PC_NEIGuiHandler implements INEIGuiHandler {
@Override
public VisiblityData modifyVisiblity(GuiContainer gui, VisiblityData currentVisibility) {
if(gui instanceof PC_GresContainerGui){
currentVisibility.showNEI = false;
}
return currentVisibility;
}
@Override
public int getItemSpawnSlot(GuiContainer gui, ItemStack item) {
return -1;
}
@Override
public List<TaggedInventoryArea> getInventoryAreas(GuiContainer gui) {
return null;
}
}
|
[
"nils.h.emmerich@gmail.com@ed9f5d1b-00bb-0f29-faab-e8ebad1a710c"
] |
nils.h.emmerich@gmail.com@ed9f5d1b-00bb-0f29-faab-e8ebad1a710c
|
b52ca04d28a972c8c981e744acbabb3be7d8016f
|
2ea2c8ddaab1ecfcda80c7bcedcc5af30eca336d
|
/panda-framework/src/main/java/org/panda_lang/framework/design/architecture/module/Modules.java
|
c78859fa869ef5ad5cab596576084c5cebce8547
|
[
"Apache-2.0"
] |
permissive
|
junjunbao/panda
|
444155f229d683e131d314fe85efa4776ca7a35f
|
1c393bbd00d14f19a0db4103cb0e03ff59c258d8
|
refs/heads/master
| 2020-11-27T15:46:16.271628
| 2019-12-18T21:22:35
| 2019-12-18T21:22:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,861
|
java
|
/*
* Copyright (c) 2015-2019 Dzikoysk
*
* 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.panda_lang.framework.design.architecture.module;
import org.panda_lang.utilities.commons.StreamUtils;
import java.util.Collection;
import java.util.Optional;
/**
* Modules container
*/
public interface Modules {
/**
* Add module
*
* @param module the module to add
*/
void include(Module module);
/**
* Count used prototypes
*
* @return the amount of used prototypes
*/
default int countUsedPrototypes() {
return StreamUtils.sum(getModules(), Module::countUsedPrototypes);
}
/**
* Count all available Prototypes
*
* @return the amount of Prototypes
*/
default int countPrototypes() {
return StreamUtils.sum(getModules(), Module::countPrototypes);
}
/**
* Get module with the given name
*
* @param moduleQualifier the name of module
* @return the module
*/
Optional<Module> get(String moduleQualifier, ModuleLoader loader);
/**
* Get all names of modules
*
* @return the all names
*/
Collection<? extends String> getNames();
/**
* Get all submodules
*
* @return the collection of submodules
*/
Collection<? extends Module> getModules();
}
|
[
"dzikoysk@dzikoysk.net"
] |
dzikoysk@dzikoysk.net
|
473e3742728bb4c67998ea3650c59f078ebb3a65
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/25/25_87c3dc93d9042f90b1abea28fa970ba42ab85b0a/IPlayerVisibility/25_87c3dc93d9042f90b1abea28fa970ba42ab85b0a_IPlayerVisibility_s.java
|
f42530192626e05c4cfbb23f8ac6c2202599d9d4
|
[] |
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
| 650
|
java
|
package no.runsafe.framework.api.hook;
import no.runsafe.framework.minecraft.player.RunsafePlayer;
public interface IPlayerVisibility extends IFrameworkHook
{
/**
* Called by {@link no.runsafe.framework.minecraft.player.RunsafePlayer#shouldNotSee(no.runsafe.framework.minecraft.player.RunsafePlayer)} to test if a player should be aware of someone else or not
*/
boolean canPlayerASeeB(RunsafePlayer a, RunsafePlayer b);
/**
* Called by {@link no.runsafe.framework.minecraft.player.RunsafePlayer#isVanished()} to test if a player has vanished or not
*/
boolean isPlayerVanished(RunsafePlayer player);
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
d35fc6d0bde70e88900975dde3c8f400910bc357
|
082e26b011e30dc62a62fae95f375e4f87d9e99c
|
/docs/weixin_7.0.4_source/反编译源码/反混淆后/src/main/java/com/tencent/qqpinyin/voicerecoapi/C16135c.java
|
4a405ff1de70062d6d11d99b93f15f3d09f3f9ec
|
[] |
no_license
|
xsren/AndroidReverseNotes
|
9631a5aabc031006e795a112b7ac756a8edd4385
|
9202c276fe9f04a978e4e08b08e42645d97ca94b
|
refs/heads/master
| 2021-04-07T22:50:51.072197
| 2019-07-16T02:24:43
| 2019-07-16T02:24:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,401
|
java
|
package com.tencent.qqpinyin.voicerecoapi;
import com.google.android.gms.common.util.GmsVersion;
import com.tencent.matrix.trace.core.AppMethodBeat;
/* renamed from: com.tencent.qqpinyin.voicerecoapi.c */
public final class C16135c {
private TRVADNative AqD;
private int gaV;
private int ioJ;
/* renamed from: com.tencent.qqpinyin.voicerecoapi.c$a */
public static class C16136a {
public int AqE = 0;
public int AqF = 256;
public int AqG = 512;
private int AqH = 0;
public int AqI = 0;
}
public C16135c(int i) {
AppMethodBeat.m2504i(35436);
this.AqD = new TRVADNative();
this.gaV = i;
this.ioJ = GmsVersion.VERSION_LONGHORN;
AppMethodBeat.m2505o(35436);
}
public C16135c() {
AppMethodBeat.m2504i(35437);
this.AqD = new TRVADNative();
this.gaV = 500000;
this.ioJ = 10000000;
AppMethodBeat.m2505o(35437);
}
public final int dPU() {
AppMethodBeat.m2504i(35438);
int mfeInit = this.AqD.mfeInit(this.gaV, this.ioJ);
if (mfeInit == 0) {
mfeInit = this.AqD.mfeOpen();
if (mfeInit == 0) {
mfeInit = this.AqD.mfeEnableNoiseDetection(true);
if (mfeInit == 0) {
mfeInit = this.AqD.mfeStart();
}
}
}
if (mfeInit == 0) {
AppMethodBeat.m2505o(35438);
return 0;
}
AppMethodBeat.m2505o(35438);
return -1;
}
public final int stop() {
AppMethodBeat.m2504i(35439);
int mfeStop = this.AqD.mfeStop();
if (mfeStop == 0) {
mfeStop = this.AqD.mfeClose();
if (mfeStop == 0) {
mfeStop = this.AqD.mfeExit();
}
}
if (mfeStop == 0) {
AppMethodBeat.m2505o(35439);
return 0;
}
AppMethodBeat.m2505o(35439);
return -1;
}
/* renamed from: a */
public final synchronized void mo28643a(short[] sArr, int i, C16136a c16136a) {
double d = 26.0d;
synchronized (this) {
AppMethodBeat.m2504i(35440);
if (i <= 0) {
AppMethodBeat.m2505o(35440);
} else {
switch (this.AqD.mfeSendData(sArr, i)) {
case 1:
c16136a.AqE = 1;
break;
case 2:
c16136a.AqE = 2;
break;
case 3:
c16136a.AqE = 3;
break;
default:
c16136a.AqE = 0;
break;
}
int i2 = 0;
int i3 = 0;
while (i2 < i) {
i2++;
i3 = (int) (((double) i3) + (Math.sqrt((double) (sArr[i2] * sArr[i2])) / ((double) i)));
}
if (i3 < 100) {
d = 0.0d;
} else if (i3 <= 16383) {
d = 26.0d * ((((double) i3) - 100.0d) / 32667.0d);
}
c16136a.AqI = (int) d;
new StringBuilder("volumn��").append(c16136a.AqI);
AppMethodBeat.m2505o(35440);
}
}
}
}
|
[
"alwangsisi@163.com"
] |
alwangsisi@163.com
|
ea25781152bdd985de83987184b4a809594a9ee5
|
a6d395afcdb0ba8f85c39b62f47d1c8028fcae52
|
/app/src/main/java/com/knotlink/salseman/repository/notice/RepositoryNoticeRequest.java
|
25c63846841b8e508c4c84608c116e52577dd051
|
[] |
no_license
|
tsfapps/Products
|
5130f75462db90306082a1025d4be1031ad84d6d
|
b4c8a546610f843e57b1bc51d10b9f5e819c4f2d
|
refs/heads/master
| 2020-05-14T02:08:45.952223
| 2019-11-20T02:46:11
| 2019-11-20T02:46:11
| 181,688,390
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,281
|
java
|
package com.knotlink.salseman.repository.notice;
import android.arch.lifecycle.MutableLiveData;
import com.knotlink.salseman.api.Api;
import com.knotlink.salseman.api.ApiClients;
import com.knotlink.salseman.model.notice.ModelNoticeRequest;
import java.util.List;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
public class RepositoryNoticeRequest {
private List<ModelNoticeRequest> tModels;
private MutableLiveData<List<ModelNoticeRequest>> tLiveData = new MutableLiveData<>();
public RepositoryNoticeRequest() {
}
public MutableLiveData<List<ModelNoticeRequest>> getMutableLiveData(String strUserId){
Api api = ApiClients.getApiClients().create(Api.class);
Call<List<ModelNoticeRequest>> call = api.getNoticeRequest(strUserId);
call.enqueue(new Callback<List<ModelNoticeRequest>>() {
@Override
public void onResponse(Call<List<ModelNoticeRequest>> call, Response<List<ModelNoticeRequest>> response) {
tModels = response.body();
tLiveData.setValue(tModels);
}
@Override
public void onFailure(Call<List<ModelNoticeRequest>> call, Throwable t) {
}
});
return tLiveData;
}
}
|
[
"appslelo.com@gmail.com"
] |
appslelo.com@gmail.com
|
f6186d0d9424f6f0b50d9318d87e0477dbeba164
|
cc9b5c59184bda2966d615239807140574f90917
|
/src/main/java/com/braintreegateway/OAuthConnectUrlBusinessRequest.java
|
b5a80e6f83ee792125835dbe6cfa5d9ef843b1c8
|
[
"LicenseRef-scancode-free-unknown",
"MIT",
"LicenseRef-scancode-other-permissive",
"Apache-2.0"
] |
permissive
|
appscode/braintree_java
|
210562eebad91ee3e3d4f19d481874473f87628a
|
b4433b31179f0e1a770d2a5babdc044f9d182fea
|
refs/heads/master
| 2021-01-11T19:00:48.798614
| 2017-01-11T19:59:42
| 2017-01-11T19:59:42
| 79,289,710
| 2
| 0
|
MIT
| 2019-07-21T21:14:13
| 2017-01-18T01:14:19
|
Java
|
UTF-8
|
Java
| false
| false
| 4,623
|
java
|
package com.braintreegateway;
import java.util.HashMap;
import java.util.Map;
public class OAuthConnectUrlBusinessRequest extends Request {
private OAuthConnectUrlRequest parentRequest;
private String name;
private String registeredAs;
private String industry;
private String description;
private String streetAddress;
private String locality;
private String region;
private String postalCode;
private String country;
private String annualVolumeAmount;
private String averageTransactionAmount;
private String maximumTransactionAmount;
private Boolean shipPhysicalGoods;
private Integer fulfillmentCompletedIn;
private String currency;
private String website;
private String establishedOn;
public OAuthConnectUrlBusinessRequest(OAuthConnectUrlRequest parent) {
this.parentRequest = parent;
}
public OAuthConnectUrlBusinessRequest name(String name) {
this.name = name;
return this;
}
public OAuthConnectUrlBusinessRequest registeredAs(String registeredAs) {
this.registeredAs = registeredAs;
return this;
}
public OAuthConnectUrlBusinessRequest industry(String industry) {
this.industry = industry;
return this;
}
public OAuthConnectUrlBusinessRequest description(String description) {
this.description = description;
return this;
}
public OAuthConnectUrlBusinessRequest streetAddress(String streetAddress) {
this.streetAddress = streetAddress;
return this;
}
public OAuthConnectUrlBusinessRequest locality(String locality) {
this.locality = locality;
return this;
}
public OAuthConnectUrlBusinessRequest region(String region) {
this.region = region;
return this;
}
public OAuthConnectUrlBusinessRequest postalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
public OAuthConnectUrlBusinessRequest country(String country) {
this.country = country;
return this;
}
public OAuthConnectUrlBusinessRequest annualVolumeAmount(String annualVolumeAmount) {
this.annualVolumeAmount = annualVolumeAmount;
return this;
}
public OAuthConnectUrlBusinessRequest averageTransactionAmount(String averageTransactionAmount) {
this.averageTransactionAmount = averageTransactionAmount;
return this;
}
public OAuthConnectUrlBusinessRequest maximumTransactionAmount(String maximumTransactionAmount) {
this.maximumTransactionAmount = maximumTransactionAmount;
return this;
}
public OAuthConnectUrlBusinessRequest shipPhysicalGoods(Boolean shipPhysicalGoods) {
this.shipPhysicalGoods = shipPhysicalGoods;
return this;
}
public OAuthConnectUrlBusinessRequest fulfillmentCompletedIn(Integer fulfillmentCompletedIn) {
this.fulfillmentCompletedIn = fulfillmentCompletedIn;
return this;
}
public OAuthConnectUrlBusinessRequest currency(String currency) {
this.currency = currency;
return this;
}
public OAuthConnectUrlBusinessRequest website(String website) {
this.website = website;
return this;
}
public OAuthConnectUrlBusinessRequest establishedOn(String establishedOn) {
this.establishedOn = establishedOn;
return this;
}
@Override
public String toQueryString(String root) {
RequestBuilder builder = new RequestBuilder("business").
addElement("name", name).
addElement("registeredAs", registeredAs).
addElement("industry", industry).
addElement("description", description).
addElement("streetAddress", streetAddress).
addElement("country", country).
addElement("locality", locality).
addElement("region", region).
addElement("postalCode", postalCode).
addElement("annualVolumeAmount", annualVolumeAmount).
addElement("averageTransactionAmount", averageTransactionAmount).
addElement("maximumTransactionAmount", maximumTransactionAmount).
addElement("shipPhysicalGoods", shipPhysicalGoods).
addElement("fulfillmentCompletedIn", fulfillmentCompletedIn).
addElement("currency", currency).
addElement("website", website).
addElement("establishedOn", establishedOn);
return builder.toQueryString();
}
public OAuthConnectUrlRequest done() {
return parentRequest;
}
}
|
[
"code@getbraintree.com"
] |
code@getbraintree.com
|
08ffbc6b57eeaa6e84dbc839c441cb8399f1d514
|
59cb1cb8002dda3f50ca21f7ff9497e2956e1310
|
/lec16/src/main/java/com/bs/lec16/HomeController.java
|
2d58c5bad5729e6881c85516a80e067afc8b5389
|
[] |
no_license
|
park002/JavaBase2
|
7c6844b1aeaba538f23bbd3c7da4a772fd3ad4fb
|
716aa71f710074274a17b5558a9f302bd9c469a6
|
refs/heads/master
| 2022-12-24T09:41:28.364356
| 2020-07-21T07:11:57
| 2020-07-21T07:11:57
| 234,732,459
| 4
| 0
| null | 2022-12-16T04:28:57
| 2020-01-18T12:37:05
|
Java
|
UHC
|
Java
| false
| false
| 1,070
|
java
|
package com.bs.lec16;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
* Handles requests for the application home page.
*/
@Controller
public class HomeController {
@RequestMapping("/")
public String home(Model model) {
System.out.println("home Method()");
model.addAttribute("key", "home value");
return "home";
}
@RequestMapping("/login")
public String login(Model model) {
System.out.println("login Method ()");
model.addAttribute("key2", "login value =>jaeho good");
return "login";
}
@RequestMapping("/fail")
public String fail(Model model) {
System.out.println("fail Method ()");
model.addAttribute("key2", "fail호출완료");
return "fail";
}
@RequestMapping("/success")
public String success(Model model) {
System.out.println("Success Method()");
model.addAttribute("key", "success 재호성공");
return "success";
}
}
|
[
"ekem159@naver.com"
] |
ekem159@naver.com
|
f1bd87fd83256c0f2aeeb521d3c5b5a7865c56f1
|
95edccc2866413eb0918a5994cd978e6a72f4e96
|
/minecraft/src/minecraft/net/minecraft/item/ItemEnchantedBook.java
|
2c6125980c15681492f6b1cad0419a16e68b90f7
|
[] |
no_license
|
art049/VRCloudGaming
|
cff1398fc58e897c78930c0b78b46842e76d34aa
|
5bb9f95713887afc223843986f3d1b7f9830681f
|
refs/heads/master
| 2021-03-22T01:21:26.038250
| 2016-06-28T19:09:45
| 2016-06-28T19:09:45
| 61,276,959
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,133
|
java
|
package net.minecraft.item;
import java.util.List;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentData;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
public class ItemEnchantedBook extends Item {
public boolean hasEffect(ItemStack stack) {
return true;
}
public boolean isItemTool(ItemStack stack) {
return false;
}
public EnumRarity getRarity(ItemStack stack) {
return !this.getEnchantments(stack).hasNoTags()?EnumRarity.UNCOMMON:super.getRarity(stack);
}
public NBTTagList getEnchantments(ItemStack stack) {
NBTTagCompound nbttagcompound = stack.getTagCompound();
return nbttagcompound != null && nbttagcompound.hasKey("StoredEnchantments", 9)?(NBTTagList)nbttagcompound.getTag("StoredEnchantments"):new NBTTagList();
}
public void addInformation(ItemStack stack, EntityPlayer playerIn, List<String> tooltip, boolean advanced) {
super.addInformation(stack, playerIn, tooltip, advanced);
NBTTagList nbttaglist = this.getEnchantments(stack);
if(nbttaglist != null) {
for(int i = 0; i < nbttaglist.tagCount(); ++i) {
int j = nbttaglist.getCompoundTagAt(i).getShort("id");
int k = nbttaglist.getCompoundTagAt(i).getShort("lvl");
if(Enchantment.getEnchantmentByID(j) != null) {
tooltip.add(Enchantment.getEnchantmentByID(j).getTranslatedName(k));
}
}
}
}
public void addEnchantment(ItemStack stack, EnchantmentData enchantment) {
NBTTagList nbttaglist = this.getEnchantments(stack);
boolean flag = true;
for(int i = 0; i < nbttaglist.tagCount(); ++i) {
NBTTagCompound nbttagcompound = nbttaglist.getCompoundTagAt(i);
if(Enchantment.getEnchantmentByID(nbttagcompound.getShort("id")) == enchantment.enchantmentobj) {
if(nbttagcompound.getShort("lvl") < enchantment.enchantmentLevel) {
nbttagcompound.setShort("lvl", (short)enchantment.enchantmentLevel);
}
flag = false;
break;
}
}
if(flag) {
NBTTagCompound nbttagcompound1 = new NBTTagCompound();
nbttagcompound1.setShort("id", (short)Enchantment.getEnchantmentID(enchantment.enchantmentobj));
nbttagcompound1.setShort("lvl", (short)enchantment.enchantmentLevel);
nbttaglist.appendTag(nbttagcompound1);
}
if(!stack.hasTagCompound()) {
stack.setTagCompound(new NBTTagCompound());
}
stack.getTagCompound().setTag("StoredEnchantments", nbttaglist);
}
public ItemStack getEnchantedItemStack(EnchantmentData data) {
ItemStack itemstack = new ItemStack(this);
this.addEnchantment(itemstack, data);
return itemstack;
}
public void getAll(Enchantment enchantment, List<ItemStack> list) {
for(int i = enchantment.getMinLevel(); i <= enchantment.getMaxLevel(); ++i) {
list.add(this.getEnchantedItemStack(new EnchantmentData(enchantment, i)));
}
}
}
|
[
"arthur.pastel@telecom-paristech.fr"
] |
arthur.pastel@telecom-paristech.fr
|
7b55f8805a3642ca6cda6566baba6092eb47224a
|
7c4ece985a9b727e551d51b4a63bd919fc938ac0
|
/RxTools-library/src/main/java/com/vondear/rxtools/view/ticker/RxLevenshteinUtils.java
|
fb765e22bcf501d8b3d803b5cb5ba9681591ff5a
|
[
"Apache-2.0"
] |
permissive
|
duboAndroid/RxTools-master
|
caf57dbd9ae6a7d2463b2a79012dc0a859de2b6a
|
dfa9549ce577dac661d0360af7f90a4dd16fa232
|
refs/heads/master
| 2021-07-17T13:54:48.816686
| 2017-10-25T10:37:48
| 2017-10-25T10:37:48
| 108,255,984
| 166
| 41
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,566
|
java
|
package com.vondear.rxtools.view.ticker;
/**
* https://en.wikipedia.org/wiki/Levenshtein_distance
*/
public class RxLevenshteinUtils {
static final int ACTION_SAME = 0;
static final int ACTION_INSERT = 1;
static final int ACTION_DELETE = 2;
/**
* Run a slightly modified version of Levenshtein distance algorithm to compute the minimum
* edit distance between the current and the target text. Unlike the traditional algorithm,
* we force return all {@link #ACTION_SAME} for inputs that are the same length (so optimize
* update over insertion/deletion).
*
* @param source the source character array
* @param target the target character array
* @return an int array of size min(source.length, target.length) where each index
* corresponds to one of {@link #ACTION_SAME}, {@link #ACTION_INSERT},
* {@link #ACTION_DELETE} to represent if we update, insert, or delete a character
* at the particular index.
*/
public static int[] computeColumnActions(char[] source, char[] target) {
final int sourceLength = source.length;
final int targetLength = target.length;
final int resultLength = Math.max(sourceLength, targetLength);
final int[] result = new int[resultLength];
if (sourceLength == targetLength) {
// No modifications needed if the length of the strings are the same
return result;
}
final int numRows = sourceLength + 1;
final int numCols = targetLength + 1;
// Compute the Levenshtein matrix
final int[][] matrix = new int[numRows][numCols];
for (int i = 0; i < numRows; i++) {
matrix[i][0] = i;
}
for (int j = 0; j < numCols; j++) {
matrix[0][j] = j;
}
int cost;
for (int j = 1; j < numCols; j++) {
for (int i = 1; i < numRows; i++) {
cost = source[i-1] == target[j-1] ? 0 : 1;
matrix[i][j] = min(
matrix[i-1][j] + 1,
matrix[i][j-1] + 1,
matrix[i-1][j-1] + cost);
}
}
// Reverse trace the matrix to compute the necessary actions
int i = numRows - 1;
int j = numCols - 1;
int resultIndex = resultLength - 1;
while (resultIndex >= 0) {
if (i == 0) {
// At the top row, can only move left, meaning insert column
result[resultIndex] = ACTION_INSERT;
j--;
} else if (j == 0) {
// At the left column, can only move up, meaning delete column
result[resultIndex] = ACTION_DELETE;
i--;
} else {
final int top = matrix[i-1][j];
final int left = matrix[i][j-1];
final int topLeft = matrix[i-1][j-1];
if (topLeft <= top && topLeft <= left) {
result[resultIndex] = ACTION_SAME;
i--;
j--;
} else if (top <= left) {
result[resultIndex] = ACTION_DELETE;
i--;
} else {
result[resultIndex] = ACTION_INSERT;
j--;
}
}
resultIndex--;
}
return result;
}
private static int min(int first, int second, int third) {
return Math.min(first, Math.min(second, third));
}
}
|
[
"277627117@qq.com"
] |
277627117@qq.com
|
4b4bdf46bffbb6a024a216ebf2db545f69655d3b
|
e8719a3a15760ceb7880f19c3adb8f6459723b6f
|
/app/src/main/java/com/skeleton/mvp/model/inviteContacts/UserGroups.java
|
0fdd10c79c8376f1c8e0caa9a4c508bd5d21e785
|
[
"Apache-2.0"
] |
permissive
|
jungleworks/fugu-android
|
b5820f994468aac98c9be229bcdcb3cca1478317
|
44f1bdd5af887302448b0fad00ab180b0fe98526
|
refs/heads/master
| 2023-07-06T11:25:02.275773
| 2021-08-06T18:31:07
| 2021-08-06T18:31:07
| 387,698,917
| 4
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 699
|
java
|
package com.skeleton.mvp.model.inviteContacts;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class UserGroups {
@SerializedName("workspace_name")
@Expose
private String workspaceName;
@SerializedName("groups")
@Expose
private List<Group> groups = null;
public String getWorkspaceName() {
return workspaceName;
}
public void setWorkspaceName(String workspaceName) {
this.workspaceName = workspaceName;
}
public List<Group> getGroups() {
return groups;
}
public void setGroups(List<Group> groups) {
this.groups = groups;
}
}
|
[
"amandeep.chauhan@jungleworks.com"
] |
amandeep.chauhan@jungleworks.com
|
e10b8f7e0bfc6907e43f6a5d1a59dc2aa55d6573
|
2b3c19d9ad2c73bb3f87474923b5bfa357197f65
|
/trunk/Weapon.java
|
c6d3c687f660d3c0771eece0ad6216e08aa1e8a6
|
[] |
no_license
|
BGCX261/zombiecity-svn-to-git
|
1d7bec337add5c34dc01f50eb218a7f3eafb4798
|
043cf9a11bcd72f5aabcef6623d2599899b2b2bc
|
refs/heads/master
| 2021-01-21T12:40:40.380932
| 2015-08-25T15:21:50
| 2015-08-25T15:21:50
| 41,488,724
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,573
|
java
|
// $Id: Weapon.java 102 2012-01-17 20:28:24Z steven@stevencranham.com $
import greenfoot.*;
import java.util.Timer; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.TimerTask;
/**
* Write a description of class Weapon here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Weapon extends Actor
{
/**
* Act - do whatever the Weapon wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
protected int clipSize;
protected int maxAmmo;
protected int currentClip;
protected String name;
protected int range;
protected int damage;
protected int reloadTime;
protected int shootSpeed;
protected int currentAmmo;
protected MouseInfo lastmouse;
protected MouseInfo mouse;
protected World world;
protected Boolean reloading = false;
protected Boolean shooting = false;
public void act()
{
}
public void shoot(int x,int y, World world, int rotation){
if(!this.shooting && !this.reloading){
shootAction(x,y,world,rotation);
this.shooting = true;
Timer timer = new Timer();
timer.schedule(new TimerTask(){
public void run(){
shooting=false;
}
}, this.shootSpeed);
}
}
public void shootAction(int x,int y, World world, int rotation){
int accuracy = 1;
int accuracySkill = 1;
this.world = world;
if(this.currentClip > 0){
this.currentClip--;
int angle = rotation;
Greenfoot.playSound("HandGunShot.mp3");
Bullet bullet = new Bullet(new Vector(angle,15),(int)(angle + ((Greenfoot.getRandomNumber((accuracy * 2)) - accuracy) * accuracySkill)),this.damage,3);
bullet.setBulletEffect(Bullet.Effect_t.DAMAGE.getValue() | Bullet.Effect_t.CONFUSION.getValue());
// System.out.println(bullet.readableEffect(bullet.getBulletEffect()));
bullet.readableEffect();
world.addObject(bullet,x,y);
}
}
public int pointTo( int x, int y )
{
int pX = x - getX();
int pY = y - getY();
double rotation = Math.atan2( pY, pX );
rotation = Math.toDegrees(rotation);
return (int) rotation;
}
public void reload(){
if(!this.reloading){
this.reloading = true;
reloadAction();
final Timer t = new Timer();
t.schedule(new TimerTask(){
public void run(){
reloading=false;
this.cancel();
}
}, this.reloadTime);
}
}
private void reloadAction(){
int ammoNeeded = this.clipSize - this.currentClip;
if(this.currentAmmo - ammoNeeded > 0){
this.currentAmmo -= ammoNeeded;
this.currentClip += ammoNeeded;
Greenfoot.playSound("HandGunReload.mp3");
}else{
this.currentClip += this.currentAmmo;
this.currentAmmo = 0;
Greenfoot.playSound("HandGunReload.mp3");
}
}
public void addAmmo(int a){
int newAmmo = (currentAmmo + a);
if(newAmmo > maxAmmo)
{
currentAmmo = maxAmmo;
}else{
currentAmmo = newAmmo;
}
}
}
|
[
"you@example.com"
] |
you@example.com
|
3da9715b0d1b208cfa547e147195e14ad111e5e5
|
1c5e8605c1a4821bc2a759da670add762d0a94a2
|
/easrc/equipment/insurance/client/ImportInsuranceCoverage.java
|
62872cea22d1c33340e51a56698013bf3557ad5a
|
[] |
no_license
|
shxr/NJG
|
8195cfebfbda1e000c30081399c5fbafc61bb7be
|
1b60a4a7458da48991de4c2d04407c26ccf2f277
|
refs/heads/master
| 2020-12-24T06:51:18.392426
| 2016-04-25T03:09:27
| 2016-04-25T03:09:27
| 19,804,797
| 0
| 3
| null | null | null | null |
GB18030
|
Java
| false
| false
| 2,571
|
java
|
package com.kingdee.eas.port.equipment.insurance.client;
import java.util.Hashtable;
import com.kingdee.bos.BOSException;
import com.kingdee.bos.Context;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.eas.framework.CoreBaseInfo;
import com.kingdee.eas.framework.ICoreBase;
import com.kingdee.eas.port.equipment.insurance.InsuranceCoverageE1Info;
import com.kingdee.eas.port.equipment.insurance.InsuranceCoverageFactory;
import com.kingdee.eas.port.equipment.insurance.InsuranceCoverageInfo;
import com.kingdee.eas.port.equipment.record.EquIdFactory;
import com.kingdee.eas.port.equipment.record.EquIdInfo;
import com.kingdee.eas.port.equipment.record.IEquId;
import com.kingdee.eas.tools.datatask.AbstractDataTransmission;
import com.kingdee.eas.tools.datatask.core.TaskExternalException;
/**
* 保险投保明细导入实现类
* 根据设备档案号带出对应的设备信息
* @author 石磊
*
*/
public class ImportInsuranceCoverage extends AbstractDataTransmission{
protected ICoreBase getController(Context ctx)throws TaskExternalException {
try
{
return InsuranceCoverageFactory.getLocalInstance(ctx);
}
catch (BOSException e)
{
throw new TaskExternalException(e.getMessage(), e);
}
}
public CoreBaseInfo transmit(Hashtable hsData, Context ctx)throws TaskExternalException {
return null;
}
public void submit(CoreBaseInfo coreBaseInfo, Context ctx) throws TaskExternalException {
InsuranceCoverageInfo Info = (InsuranceCoverageInfo)coreBaseInfo;
try
{
IEquId IEquId = EquIdFactory.getLocalInstance(ctx);
for (int i = 0; i < Info.getE1().size(); i++)
{
InsuranceCoverageE1Info e1Info = Info.getE1().get(i);
if(e1Info.getEquNumber()!=null)
{
EquIdInfo equInfo = IEquId.getEquIdInfo(new ObjectUuidPK(e1Info.getEquNumber().getId()));
e1Info.setEquType(equInfo.getEqmType()!=null?equInfo.getEqmType().getName():"");
e1Info.setEquName(equInfo.getName());
e1Info.setSpecModel(equInfo.getModel());
e1Info.setTonnage(equInfo.getWeight());
e1Info.setMakeUnit(equInfo.getMader());
e1Info.setOriginalValue(equInfo.getAssetValue());
e1Info.setPresentValue(equInfo.getNowAmount());
e1Info.setFactoryUseDate(equInfo.getQyDate());
}
}
}
catch (BOSException e)
{
e.printStackTrace();
}
catch (EASBizException e)
{
e.printStackTrace();
}
super.submit(Info, ctx);
}
}
|
[
"shxr_code@126.com"
] |
shxr_code@126.com
|
e0385cad8f8e8e9c7bb41ff4eb54f9aba67025f8
|
ee702927078896bb8cc053f79bcc172534bed8b7
|
/src/main/java/com/trl/_tests/lambdaExpression/t1/Test.java
|
ef4d0ab5436367c07d1f73e1b9369d2bfb6a43e0
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
Oracle-Exam-Preparation/OCP
|
041076c748026dfb4b04efcc4531cc62c508fdfb
|
af3525985f0ec2645525a5963d19a2527249e429
|
refs/heads/master
| 2020-12-04T21:26:31.422739
| 2020-03-06T09:55:45
| 2020-03-06T09:55:45
| 231,907,051
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,821
|
java
|
package com.trl._tests.lambdaExpression.t1;
/**
* This test is taken from the book: OCP: Oracle ®
* Certified Professional
* Java® SE 8 Programmer II
* by Scott Selikoff, Jeanne Boyarsky
* Released December 2015
* Publisher(s): Wiley
* ISBN: 9781119067900
*
* @link https://www.oreilly.com/library/view/ocp-oracle-certified/9781119067900/
*/
public class Test {
public static void main(String[] args) {
String str = someMethod(() -> "");
}
public static String someMethod (SomeFunctionaInterface functionInterface){
return functionInterface.someMethod();
}
interface SomeFunctionaInterface {
String someMethod ();
}
}
/*
Which of the following are valid lambda expressions? (Choose all that apply.)
A. () -> ""
B. x,y -> x+y
C. (Coyote y) -> return 0;
D. (Camel c) -> {return;}
E. Wolf w -> 39
F. () ->
G. (Animal z, m) -> a
A, D. The first lambda expression is valid, taking no arguments and returning the empty string, so A is correct.
B is incorrect, as more than one parameter requires parentheses ().
C is incorrect, as brackets {} are required when using return.
D is correct, as the expression takes one Camel input and returns void.
E is incorrect, as parentheses are required when using the data type Wolf.
F is incorrect, as it has no right-side expression.
Finally, G is incorrect, as specifying the data type for one parameter in a lambda expression requires you to specify
the data type for all parameters in the expression. In this case, z has a data type and m does not, therefore the expression is invalid.
*/
|
[
"tsyupryk.roman.lyubomyrovych@gmail.com"
] |
tsyupryk.roman.lyubomyrovych@gmail.com
|
d83204fe8b5c526dbd5fa739e67434dd30a134ca
|
bf8e04b19190240e398062e3a0b0b8e88e92fac0
|
/HPE_FrontEnd/src/net/sf/nant/release/_0/_86/beta1/nant/NAntCoreTypesPattern.java
|
ceb9a9076417c8390681a76af062f1854c460786
|
[] |
no_license
|
UFC-MDCC-HPC/Hash-Programming-Environment
|
052e088ee582d492bd6fae318cbd933a37a8211a
|
ce16d8b3104f17c3c0fd775af07a680042904790
|
refs/heads/master
| 2021-01-19T02:20:16.955002
| 2019-12-17T18:57:20
| 2019-12-17T18:57:20
| 34,266,466
| 1
| 0
| null | 2015-04-20T14:48:31
| 2015-04-20T14:48:31
| null |
UTF-8
|
Java
| false
| false
| 4,785
|
java
|
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package net.sf.nant.release._0._86.beta1.nant;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.util.FeatureMap;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>NAnt Core Types Pattern</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link net.sf.nant.release._0._86.beta1.nant.NAntCoreTypesPattern#getIf <em>If</em>}</li>
* <li>{@link net.sf.nant.release._0._86.beta1.nant.NAntCoreTypesPattern#getName <em>Name</em>}</li>
* <li>{@link net.sf.nant.release._0._86.beta1.nant.NAntCoreTypesPattern#getUnless <em>Unless</em>}</li>
* <li>{@link net.sf.nant.release._0._86.beta1.nant.NAntCoreTypesPattern#getAnyAttribute <em>Any Attribute</em>}</li>
* </ul>
* </p>
*
* @see net.sf.nant.release._0._86.beta1.nant.NantPackage#getNAntCoreTypesPattern()
* @model extendedMetaData="name='NAnt.Core.Types.Pattern' kind='empty'"
* @generated
*/
public interface NAntCoreTypesPattern extends EObject {
/**
* Returns the value of the '<em><b>If</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>If</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>If</em>' attribute.
* @see #setIf(Object)
* @see net.sf.nant.release._0._86.beta1.nant.NantPackage#getNAntCoreTypesPattern_If()
* @model dataType="org.eclipse.emf.ecore.xml.type.AnySimpleType"
* extendedMetaData="kind='attribute' name='if'"
* @generated
*/
Object getIf();
/**
* Sets the value of the '{@link net.sf.nant.release._0._86.beta1.nant.NAntCoreTypesPattern#getIf <em>If</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>If</em>' attribute.
* @see #getIf()
* @generated
*/
void setIf(Object value);
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(Object)
* @see net.sf.nant.release._0._86.beta1.nant.NantPackage#getNAntCoreTypesPattern_Name()
* @model dataType="org.eclipse.emf.ecore.xml.type.AnySimpleType" required="true"
* extendedMetaData="kind='attribute' name='name'"
* @generated
*/
Object getName();
/**
* Sets the value of the '{@link net.sf.nant.release._0._86.beta1.nant.NAntCoreTypesPattern#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
void setName(Object value);
/**
* Returns the value of the '<em><b>Unless</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Unless</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Unless</em>' attribute.
* @see #setUnless(Object)
* @see net.sf.nant.release._0._86.beta1.nant.NantPackage#getNAntCoreTypesPattern_Unless()
* @model dataType="org.eclipse.emf.ecore.xml.type.AnySimpleType"
* extendedMetaData="kind='attribute' name='unless'"
* @generated
*/
Object getUnless();
/**
* Sets the value of the '{@link net.sf.nant.release._0._86.beta1.nant.NAntCoreTypesPattern#getUnless <em>Unless</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Unless</em>' attribute.
* @see #getUnless()
* @generated
*/
void setUnless(Object value);
/**
* Returns the value of the '<em><b>Any Attribute</b></em>' attribute list.
* The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Any Attribute</em>' attribute list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Any Attribute</em>' attribute list.
* @see net.sf.nant.release._0._86.beta1.nant.NantPackage#getNAntCoreTypesPattern_AnyAttribute()
* @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
* extendedMetaData="kind='attributeWildcard' wildcards='##other' name=':3' processing='skip'"
* @generated
*/
FeatureMap getAnyAttribute();
} // NAntCoreTypesPattern
|
[
"carvalho.heron@574a1136-cea5-11dd-b6f5-21ad4398c266"
] |
carvalho.heron@574a1136-cea5-11dd-b6f5-21ad4398c266
|
dd4d75d652777ba9657c000077e17bffa7cd2c92
|
bae74e117ec24669a215f7bb41f3fd15098d8c5c
|
/src/main/java/com/learn/demo/concurrent/xiaomage/thread/HowToStopThreadQuestion.java
|
60113d283d337ee27c1a5297ddd3e1520bd50e7d
|
[] |
no_license
|
wansweet/project-learn
|
1576ad5c377de450f07e4c6042dc8a79a3db0c98
|
9e14c526af7526877e0f89a4edf1c3bfc540464d
|
refs/heads/master
| 2020-05-14T13:47:04.016939
| 2019-04-28T05:52:31
| 2019-04-28T05:52:31
| 181,821,313
| 0
| 0
| null | 2019-04-28T05:52:32
| 2019-04-17T05:11:42
|
Java
|
UTF-8
|
Java
| false
| false
| 1,260
|
java
|
package com.learn.demo.concurrent.xiaomage.thread;
public class HowToStopThreadQuestion {
public static void main(String[] args) throws InterruptedException {
Action action = new Action();
// 子线程
Thread t1 = new Thread(action, "t1");
t1.start();
// 改变 action stopped 状态
action.setStopped(true);
t1.join();
Thread t2 = new Thread(() -> {
if (!Thread.currentThread().isInterrupted()) {
action();
}
}, "t2");
t2.start();
// 中断操作(仅仅设置状态,而并非中止线程)
t2.interrupt();
t2.join();
}
private static class Action implements Runnable {
// 线程安全问题,确保可见性(Happens-Before)
private volatile boolean stopped = false;
@Override
public void run() {
if (!stopped) {
// 执行动作
action();
}
}
public void setStopped(boolean stopped) {
this.stopped = stopped;
}
}
private static void action() {
System.out.printf("线程[%s] 正在执行...\n", Thread.currentThread().getName()); // 2
}
}
|
[
"shang_sk@163.com"
] |
shang_sk@163.com
|
c0db0511b289127abb50f83c7e7fb85a8e62333e
|
627b5fa45456a81a5fc65f4b04c280bba0e17b01
|
/code-maven-plugin/branches/gongfeng/aili/aili-base/src/main/java/org/hbhk/aili/base/share/util/RestfulClient.java
|
d630b1922b273a5d48132e1d686e898c76f05491
|
[] |
no_license
|
zgdkik/aili
|
046e051b65936c4271dd01b866a3c263cfb884aa
|
e47e3c62afcc7bec9409aff952b11600572a8329
|
refs/heads/master
| 2020-03-25T01:29:14.798728
| 2018-04-07T06:58:45
| 2018-04-07T06:58:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,155
|
java
|
//package org.hbhk.aili.base.share.util;
//
//import java.nio.charset.Charset;
//import java.util.ArrayList;
//import java.util.List;
//import java.util.concurrent.TimeUnit;
//
//import org.apache.http.Header;
//import org.apache.http.client.HttpClient;
//import org.apache.http.client.config.RequestConfig;
//import org.apache.http.impl.client.DefaultConnectionKeepAliveStrategy;
//import org.apache.http.impl.client.DefaultHttpRequestRetryHandler;
//import org.apache.http.impl.client.HttpClientBuilder;
//import org.apache.http.impl.client.HttpClients;
//import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
//import org.apache.http.message.BasicHeader;
//import org.hbhk.aili.base.server.spring.json.FrontendMappingJackson2HttpMessageConverter;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
//import org.springframework.http.converter.FormHttpMessageConverter;
//import org.springframework.http.converter.HttpMessageConverter;
//import org.springframework.http.converter.StringHttpMessageConverter;
//import org.springframework.web.client.DefaultResponseErrorHandler;
//import org.springframework.web.client.RestTemplate;
//
//import com.fasterxml.jackson.annotation.JsonInclude.Include;
//import com.fasterxml.jackson.databind.SerializationFeature;
//
//public class RestfulClient {
//
// private static final Logger LOGGER = LoggerFactory
// .getLogger(RestfulClient.class);
//
// private static RestTemplate restTemplate;
//
// private static List<HttpMessageConverter<?>> messageConverters = null;
// private static HttpComponentsClientHttpRequestFactory clientHttpRequestFactory = null;
//
// private RestfulClient() {
// // 长连接保持30秒
// PoolingHttpClientConnectionManager pollingConnectionManager = new PoolingHttpClientConnectionManager(
// 30, TimeUnit.SECONDS);
// // 总连接数
// pollingConnectionManager.setMaxTotal(1000);
// // 同路由的并发数
// pollingConnectionManager.setDefaultMaxPerRoute(1000);
//
// HttpClientBuilder httpClientBuilder = HttpClients.custom();
// httpClientBuilder.setConnectionManager(pollingConnectionManager);
// // 重试次数,默认是3次,没有开启
// httpClientBuilder.setRetryHandler(new DefaultHttpRequestRetryHandler(2,
// true));
// // 保持长连接配置,需要在头添加Keep-Alive
// httpClientBuilder
// .setKeepAliveStrategy(new DefaultConnectionKeepAliveStrategy());
//
// RequestConfig.Builder builder = RequestConfig.custom();
// builder.setConnectionRequestTimeout(200);
// builder.setConnectTimeout(5000);
// builder.setSocketTimeout(5000);
//
// RequestConfig requestConfig = builder.build();
// httpClientBuilder.setDefaultRequestConfig(requestConfig);
//
// List<Header> headers = new ArrayList<>();
// headers.add(new BasicHeader(
// "User-Agent",
// "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.16 Safari/537.36"));
// headers.add(new BasicHeader("Accept-Encoding", "gzip,deflate"));
// headers.add(new BasicHeader("Accept-Language", "zh-CN"));
// headers.add(new BasicHeader("Connection", "Keep-Alive"));
// httpClientBuilder.setDefaultHeaders(headers);
// HttpClient httpClient = httpClientBuilder.build();
//
// // httpClient连接配置,底层是配置RequestConfig
// clientHttpRequestFactory = new HttpComponentsClientHttpRequestFactory(
// httpClient);
// // 连接超时
// clientHttpRequestFactory.setConnectTimeout(5000);
// // 数据读取超时时间,即SocketTimeout
// clientHttpRequestFactory.setReadTimeout(5000);
// // 连接不够用的等待时间,不宜过长,必须设置,比如连接不够用时,时间过长将是灾难性的
// // clientHttpRequestFactory.setConnectionRequestTimeout(200);
// // 缓冲请求数据,默认值是true。通过POST或者PUT大量发送数据时,建议将此属性更改为false,以免耗尽内存。
// clientHttpRequestFactory.setBufferRequestBody(false);
//
// // 添加内容转换器
// messageConverters = new ArrayList<>();
// messageConverters.add(new StringHttpMessageConverter(Charset
// .forName("UTF-8")));
// messageConverters.add(new FormHttpMessageConverter());
// // messageConverters.add(new MappingJackson2XmlHttpMessageConverter());
// FrontendMappingJackson2HttpMessageConverter Jackson2 = new FrontendMappingJackson2HttpMessageConverter();
// Jackson2.getObjectMapper().configure(
// SerializationFeature.WRAP_ROOT_VALUE, true);
// Jackson2.getObjectMapper().setSerializationInclusion(Include.NON_NULL);
// messageConverters.add(Jackson2);
// restTemplate = new RestTemplate(messageConverters);
// restTemplate.setRequestFactory(clientHttpRequestFactory);
// restTemplate.setErrorHandler(new DefaultResponseErrorHandler());
//
// LOGGER.info("RestClient初始化完成");
//
// }
//
// public static RestTemplate getClient() {
// if (restTemplate == null) {
// new RestfulClient();
// }
// return restTemplate;
// }
//}
|
[
"1024784402@qq.com"
] |
1024784402@qq.com
|
8b97f71e95303f81c3eaba7613445e1b3c30dae4
|
40ed3bbd23a719e124ac1d949ae2d1bc3f0ce57b
|
/gp/src/main/java/cn/itcast/googleplay10/widget/LoadingPage.java
|
dca9083dc2033c8a7dffd275d59eac4939c4fa40
|
[] |
no_license
|
474843468/AndroidHttpClient
|
da985bf1db35da986e7b0fd00d1ceead9c3632dc
|
3f14f0cc7c82181cf955368ec29f90b2641694e6
|
refs/heads/master
| 2021-01-18T18:52:28.411880
| 2017-06-04T06:50:32
| 2017-06-04T06:50:41
| 86,875,297
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,829
|
java
|
package cn.itcast.googleplay10.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.FrameLayout;
import cn.itcast.googleplay10.R;
import cn.itcast.googleplay10.manager.MyThreadPoolManager;
import cn.itcast.googleplay10.utils.UiUtils;
/**
* Created by zhengping on 2016/12/1,14:28.
*
*
* LoadingPage作为每一个Fragment所需要展示的View对象存在
* 这个View对象包含了几种状态
* 1、加载中的状态,STATE_LOADING,mLoadingView
* 2、加载失败的状态,STATE_ERROR,mErrorView
* 3、加载成功,但是数据集合的条目数量为0,STATE_EMPTY,mEmptyView
* 4、加载成功,STATE_SUCCESS,mSuccessView
*
*/
public abstract class LoadingPage extends FrameLayout {
public static final int STATE_NONE = 0;
public static final int STATE_LOADING = 1;
public static final int STATE_ERROR = 2;
public static final int STATE_EMPTY = 3;
public static final int STATE_SUCCESS = 4;
private int mCurrentState = STATE_NONE;
private View mLoadingView;
private View mErrorView;
private View mEmptyView;
private View mSuccessView;
public LoadingPage(Context context) {
super(context);
init();
}
public LoadingPage(Context context, AttributeSet attrs) {
super(context, attrs);
init();
}
public LoadingPage(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
init();
}
private void init() {
if (mLoadingView == null) {
mLoadingView = createLoadingView();
addView(mLoadingView);
}
if(mErrorView == null) {
mErrorView = createErrorView();
addView(mErrorView);
}
if (mEmptyView == null) {
mEmptyView = createEmptyView();
addView(mEmptyView);
}
showRightPage();
}
//根据当前的状态动态的控制哪个VIew显示,哪个VIew不显示
private void showRightPage() {
/*if(mCurrentState == STATE_LOADING) {
mLoadingView.setVisibility(View.VISIBLE);
mErrorView.setVisibility(View.GONE);
mEmptyView.setVisibility(View.GONE);
} else if(mCurrentState == STATE_ERROR) {
mLoadingView.setVisibility(View.GONE);
mErrorView.setVisibility(View.VISIBLE);
mEmptyView.setVisibility(View.GONE);
} else if(mCurrentState == STATE_EMPTY) {
mLoadingView.setVisibility(View.GONE);
mErrorView.setVisibility(View.GONE);
mEmptyView.setVisibility(View.VISIBLE);
}*/
//使用三目表达式来替代上诉代码
mLoadingView.setVisibility((mCurrentState == STATE_LOADING)?View.VISIBLE:View.GONE);
mErrorView.setVisibility((mCurrentState == STATE_ERROR)?View.VISIBLE:View.GONE);
mEmptyView.setVisibility((mCurrentState == STATE_EMPTY) ? View.VISIBLE : View.GONE);
if(mCurrentState == STATE_SUCCESS) {
if (mSuccessView == null) {
mSuccessView = createSuccessView();
if (mSuccessView != null) {
addView(mSuccessView);
}
}
}
if(mSuccessView != null) {
mSuccessView.setVisibility((mCurrentState == STATE_SUCCESS)?View.VISIBLE:View.GONE);
}
}
//加载网络数据
public void loadData() {
if(mCurrentState == STATE_LOADING) {
return;
}
mCurrentState = STATE_LOADING;
//当mCurrentState的值发生改变的时候,应该更新UI
showRightPage();
MyThreadPoolManager.getInstance().execute(new Runnable() {
@Override
public void run() {
//加载网络数据
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
ResultState resultState = onLoad();
if(resultState != null) {
mCurrentState = resultState.state;
}
UiUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
showRightPage();
}
});
}
});
//new Thread().start();
}
//LoadingPage无法确定每一个Fragment去加载网络数据的url,所以LoadingPage无法完成这项工作,需要把它转交出去
//需要把此方法抽象
public abstract ResultState onLoad();
//此时LoadingPage作为每一个Fragment显示的View对象,它无法确定每一个Fragmnet成功之后长什么样子
//LoadingPage完成不了这项工作,所以应该把这项工作转交出去,通过抽象方法的方式
public abstract View createSuccessView();
private View createEmptyView() {
View view = UiUtils.inflateView(R.layout.layout_empty);
return view;
}
private View createErrorView() {
View view = UiUtils.inflateView(R.layout.layout_error);
return view;
}
private View createLoadingView() {
View view = UiUtils.inflateView(R.layout.layout_loading);
return view;
}
/**
* 1、关键字不同
* 2、创建对象的写法简化了
* 3、构造方法必须私有化,通过构造方法的私有化,达到对象数量控制的效果
*/
public enum ResultState {
LOADING(STATE_LOADING),ERROR(STATE_ERROR),EMPTY(STATE_EMPTY),SUCCESS(STATE_SUCCESS);
public int state;
private ResultState(int state) {
this.state = state;
}
}
}
|
[
"15609143618@163.com"
] |
15609143618@163.com
|
86e3ef66822beec11d9f32695bb0051cb7feda73
|
40cd4da5514eb920e6a6889e82590e48720c3d38
|
/desktop/applis/apps/gui/interpreter/expressionlanguageadvlaunch/src/main/java/code/expressionlanguage/adv/CreateWindowCdm.java
|
319afafbaf35ead6093d6f40afe5bd483c10c7f4
|
[] |
no_license
|
Cardman/projects
|
02704237e81868f8cb614abb37468cebb4ef4b31
|
23a9477dd736795c3af10bccccb3cdfa10c8123c
|
refs/heads/master
| 2023-08-17T11:27:41.999350
| 2023-08-15T07:09:28
| 2023-08-15T07:09:28
| 34,724,613
| 4
| 0
| null | 2020-10-13T08:08:38
| 2015-04-28T10:39:03
|
Java
|
UTF-8
|
Java
| false
| false
| 757
|
java
|
package code.expressionlanguage.adv;
import code.gui.CdmFactory;
import code.gui.initialize.AbstractProgramInfos;
import code.util.StringList;
public final class CreateWindowCdm implements Runnable {
private final CdmFactory list;
private final String language;
private final StringList args;
private final AbstractProgramInfos programInfos;
public CreateWindowCdm(String _language, StringList _args, CdmFactory _list,AbstractProgramInfos _infos) {
language = _language;
args = _args;
list = _list;
programInfos = _infos;
}
@Override
public void run() {
WindowCdmEditor window_ = new WindowCdmEditor(language, programInfos, list);
window_.updateCommentsInit(args);
}
}
|
[
"f.desrochettes@gmail.com"
] |
f.desrochettes@gmail.com
|
73253659ccad4e985e7e14ef3483d9e1f7827ad9
|
3963949fc1358e175851b9a75b47e0bb510d37e5
|
/jme/src/com/jmex/model/collada/schema/stencil_maskType2.java
|
d8c614201b5d4799258964b4765d742a11fba3ba
|
[
"MIT"
] |
permissive
|
j0rg3n/wrathofthetaboos
|
246ef9c510ccfde79221ad8e31fce7e89207f495
|
d5c8d64c3c44e28ed6a658943a3a9d56a754c8af
|
refs/heads/master
| 2021-01-10T10:28:42.157519
| 2008-02-08T23:11:09
| 2008-02-08T23:11:09
| 45,484,382
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,539
|
java
|
/**
* stencil_maskType2.java
*
* This file was generated by XMLSpy 2007sp2 Enterprise Edition.
*
* YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
* OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
*
* Refer to the XMLSpy Documentation for further details.
* http://www.altova.com/xmlspy
*/
package com.jmex.model.collada.schema;
import com.jmex.xml.types.SchemaNCName;
public class stencil_maskType2 extends com.jmex.xml.xml.Node {
public stencil_maskType2(stencil_maskType2 node) {
super(node);
}
public stencil_maskType2(org.w3c.dom.Node node) {
super(node);
}
public stencil_maskType2(org.w3c.dom.Document doc) {
super(doc);
}
public stencil_maskType2(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {
super(doc, namespaceURI, prefix, name);
}
public void adjustPrefix() {
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "value" );
tmpNode != null;
tmpNode = getDomNextChild( Attribute, null, "value", tmpNode )
) {
internalAdjustPrefix(tmpNode, false);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "param" );
tmpNode != null;
tmpNode = getDomNextChild( Attribute, null, "param", tmpNode )
) {
internalAdjustPrefix(tmpNode, false);
}
}
public void setXsiType() {
org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;
el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "stencil_mask");
}
public static int getvalue2MinCount() {
return 0;
}
public static int getvalue2MaxCount() {
return 1;
}
public int getvalue2Count() {
return getDomChildCount(Attribute, null, "value");
}
public boolean hasvalue2() {
return hasDomChild(Attribute, null, "value");
}
public int2 newvalue2() {
return new int2();
}
public int2 getvalue2At(int index) throws Exception {
return new int2(getDomNodeValue(getDomChildAt(Attribute, null, "value", index)));
}
public org.w3c.dom.Node getStartingvalue2Cursor() throws Exception {
return getDomFirstChild(Attribute, null, "value" );
}
public org.w3c.dom.Node getAdvancedvalue2Cursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Attribute, null, "value", curNode );
}
public int2 getvalue2ValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new int2(getDomNodeValue(curNode));
}
public int2 getvalue2() throws Exception
{
return getvalue2At(0);
}
public void removevalue2At(int index) {
removeDomChildAt(Attribute, null, "value", index);
}
public void removevalue2() {
removevalue2At(0);
}
public org.w3c.dom.Node addvalue2(int2 value) {
if( value.isNull() )
return null;
return appendDomChild(Attribute, null, "value", value.toString());
}
public org.w3c.dom.Node addvalue2(String value) throws Exception {
return addvalue2(new int2(value));
}
public void insertvalue2At(int2 value, int index) {
insertDomChildAt(Attribute, null, "value", index, value.toString());
}
public void insertvalue2At(String value, int index) throws Exception {
insertvalue2At(new int2(value), index);
}
public void replacevalue2At(int2 value, int index) {
replaceDomChildAt(Attribute, null, "value", index, value.toString());
}
public void replacevalue2At(String value, int index) throws Exception {
replacevalue2At(new int2(value), index);
}
public static int getparamMinCount() {
return 0;
}
public static int getparamMaxCount() {
return 1;
}
public int getparamCount() {
return getDomChildCount(Attribute, null, "param");
}
public boolean hasparam() {
return hasDomChild(Attribute, null, "param");
}
public SchemaNCName newparam() {
return new SchemaNCName();
}
public SchemaNCName getparamAt(int index) throws Exception {
return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "param", index)));
}
public org.w3c.dom.Node getStartingparamCursor() throws Exception {
return getDomFirstChild(Attribute, null, "param" );
}
public org.w3c.dom.Node getAdvancedparamCursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Attribute, null, "param", curNode );
}
public SchemaNCName getparamValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new SchemaNCName(getDomNodeValue(curNode));
}
public SchemaNCName getparam() throws Exception
{
return getparamAt(0);
}
public void removeparamAt(int index) {
removeDomChildAt(Attribute, null, "param", index);
}
public void removeparam() {
removeparamAt(0);
}
public org.w3c.dom.Node addparam(SchemaNCName value) {
if( value.isNull() )
return null;
return appendDomChild(Attribute, null, "param", value.toString());
}
public org.w3c.dom.Node addparam(String value) throws Exception {
return addparam(new SchemaNCName(value));
}
public void insertparamAt(SchemaNCName value, int index) {
insertDomChildAt(Attribute, null, "param", index, value.toString());
}
public void insertparamAt(String value, int index) throws Exception {
insertparamAt(new SchemaNCName(value), index);
}
public void replaceparamAt(SchemaNCName value, int index) {
replaceDomChildAt(Attribute, null, "param", index, value.toString());
}
public void replaceparamAt(String value, int index) throws Exception {
replaceparamAt(new SchemaNCName(value), index);
}
}
|
[
"greisen@b760afd0-1f45-0410-b975-7103d5bbc06f"
] |
greisen@b760afd0-1f45-0410-b975-7103d5bbc06f
|
3b87be8450c4566226bc5c73dccfe57e4f925043
|
6ef4869c6bc2ce2e77b422242e347819f6a5f665
|
/devices/google/Pixel 2/29/QPP6.190730.005/src/core-oj/java/util/concurrent/Future.java
|
fe42c551ac9bfdeef52b75d3957809abb35735c1
|
[] |
no_license
|
hacking-android/frameworks
|
40e40396bb2edacccabf8a920fa5722b021fb060
|
943f0b4d46f72532a419fb6171e40d1c93984c8e
|
refs/heads/master
| 2020-07-03T19:32:28.876703
| 2019-08-13T03:31:06
| 2019-08-13T03:31:06
| 202,017,534
| 2
| 0
| null | 2019-08-13T03:33:19
| 2019-08-12T22:19:30
|
Java
|
UTF-8
|
Java
| false
| false
| 519
|
java
|
/*
* Decompiled with CFR 0.145.
*/
package java.util.concurrent;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
public interface Future<V> {
public boolean cancel(boolean var1);
public V get() throws InterruptedException, ExecutionException;
public V get(long var1, TimeUnit var3) throws InterruptedException, ExecutionException, TimeoutException;
public boolean isCancelled();
public boolean isDone();
}
|
[
"me@paulo.costa.nom.br"
] |
me@paulo.costa.nom.br
|
fb94d58225da2606b3d56003dd7a8513af8d5bf2
|
dfd7e70936b123ee98e8a2d34ef41e4260ec3ade
|
/analysis/reverse-engineering/decompile-fitts-with-gradle-20191031-2200/src/main/java/org/jetbrains/anko/_Gallery.java
|
fc6f4e3314574c9e2e561de51cdc99ca9f826812
|
[
"Apache-2.0"
] |
permissive
|
skkuse-adv/2019Fall_team2
|
2d4f75bc793368faac4ca8a2916b081ad49b7283
|
3ea84c6be39855f54634a7f9b1093e80893886eb
|
refs/heads/master
| 2020-08-07T03:41:11.447376
| 2019-12-21T04:06:34
| 2019-12-21T04:06:34
| 213,271,174
| 5
| 5
|
Apache-2.0
| 2019-12-12T09:15:32
| 2019-10-07T01:18:59
|
Java
|
UTF-8
|
Java
| false
| false
| 4,795
|
java
|
package org.jetbrains.anko;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Gallery;
import android.widget.Gallery.LayoutParams;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class _Gallery extends Gallery {
public _Gallery(@NotNull Context context) {
Intrinsics.checkParameterIsNotNull(context, "ctx");
super(context);
}
@NotNull
public final <T extends View> T lparams(@NotNull T t, @Nullable Context context, @Nullable AttributeSet attributeSet, @NotNull Function1<? super LayoutParams, Unit> function1) {
Intrinsics.checkParameterIsNotNull(t, "receiver$0");
Intrinsics.checkParameterIsNotNull(function1, "init");
if (context == null) {
Intrinsics.throwNpe();
}
if (attributeSet == null) {
Intrinsics.throwNpe();
}
LayoutParams layoutParams = new LayoutParams(context, attributeSet);
function1.invoke(layoutParams);
t.setLayoutParams(layoutParams);
return t;
}
@NotNull
public final <T extends View> T lparams(@NotNull T t, @Nullable Context context, @Nullable AttributeSet attributeSet) {
Intrinsics.checkParameterIsNotNull(t, "receiver$0");
if (context == null) {
Intrinsics.throwNpe();
}
if (attributeSet == null) {
Intrinsics.throwNpe();
}
t.setLayoutParams(new LayoutParams(context, attributeSet));
return t;
}
@NotNull
public static /* synthetic */ View lparams$default(_Gallery _gallery, View view, int i, int i2, Function1 function1, int i3, Object obj) {
if (obj == null) {
if ((i3 & 1) != 0) {
i = -2;
}
if ((i3 & 2) != 0) {
i2 = -2;
}
Intrinsics.checkParameterIsNotNull(view, "receiver$0");
Intrinsics.checkParameterIsNotNull(function1, "init");
LayoutParams layoutParams = new LayoutParams(i, i2);
function1.invoke(layoutParams);
view.setLayoutParams(layoutParams);
return view;
}
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: lparams");
}
@NotNull
public final <T extends View> T lparams(@NotNull T t, int i, int i2, @NotNull Function1<? super LayoutParams, Unit> function1) {
Intrinsics.checkParameterIsNotNull(t, "receiver$0");
Intrinsics.checkParameterIsNotNull(function1, "init");
LayoutParams layoutParams = new LayoutParams(i, i2);
function1.invoke(layoutParams);
t.setLayoutParams(layoutParams);
return t;
}
@NotNull
public static /* synthetic */ View lparams$default(_Gallery _gallery, View view, int i, int i2, int i3, Object obj) {
if (obj == null) {
if ((i3 & 1) != 0) {
i = -2;
}
if ((i3 & 2) != 0) {
i2 = -2;
}
Intrinsics.checkParameterIsNotNull(view, "receiver$0");
view.setLayoutParams(new LayoutParams(i, i2));
return view;
}
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: lparams");
}
@NotNull
public final <T extends View> T lparams(@NotNull T t, int i, int i2) {
Intrinsics.checkParameterIsNotNull(t, "receiver$0");
t.setLayoutParams(new LayoutParams(i, i2));
return t;
}
@NotNull
public final <T extends View> T lparams(@NotNull T t, @Nullable ViewGroup.LayoutParams layoutParams, @NotNull Function1<? super LayoutParams, Unit> function1) {
Intrinsics.checkParameterIsNotNull(t, "receiver$0");
Intrinsics.checkParameterIsNotNull(function1, "init");
if (layoutParams == null) {
Intrinsics.throwNpe();
}
LayoutParams layoutParams2 = new LayoutParams(layoutParams);
function1.invoke(layoutParams2);
t.setLayoutParams(layoutParams2);
return t;
}
@NotNull
public final <T extends View> T lparams(@NotNull T t, @Nullable ViewGroup.LayoutParams layoutParams) {
Intrinsics.checkParameterIsNotNull(t, "receiver$0");
if (layoutParams == null) {
Intrinsics.throwNpe();
}
t.setLayoutParams(new LayoutParams(layoutParams));
return t;
}
}
|
[
"33246398+ajid951125@users.noreply.github.com"
] |
33246398+ajid951125@users.noreply.github.com
|
4a6c6d77e307962e04942c120208a207583fda10
|
1fa2db57f8aad650382ce87fd0b4a78141a079bc
|
/hadoop-tools/hadoop-openstack/src/test/java/org/apache/hadoop/fs/swift/TestReadPastBuffer.java
|
bae199c961215786ea1525d03ea16e977d222316
|
[] |
no_license
|
steveloughran/hadoop-trunk
|
54f9ef6c627c31cfaaeb6464e0a58f544b185835
|
92926d9312496482828a9c1f8e393c4b5e96139f
|
refs/heads/stevel/HADOOP-8545-swift
| 2022-12-14T02:24:40.919990
| 2013-07-04T11:42:26
| 2013-07-04T11:42:26
| 2,444,398
| 1
| 0
| null | 2022-12-05T23:39:07
| 2011-09-23T14:23:40
|
Java
|
UTF-8
|
Java
| false
| false
| 5,214
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.fs.swift;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FSDataInputStream;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.swift.http.SwiftProtocolConstants;
import org.apache.hadoop.fs.swift.util.SwiftTestUtils;
import org.apache.hadoop.io.IOUtils;
import org.junit.After;
import org.junit.Test;
/**
* Seek tests verify that
* <ol>
* <li>When you seek on a 0 byte file to byte (0), it's not an error.</li>
* <li>When you seek past the end of a file, it's an error that should
* raise -what- EOFException?</li>
* <li>when you seek forwards, you get new data</li>
* <li>when you seek backwards, you get the previous data</li>
* <li>That this works for big multi-MB files as well as small ones.</li>
* </ol>
* These may seem "obvious", but the more the input streams try to be clever
* about offsets and buffering, the more likely it is that seek() will start
* to get confused.
*/
public class TestReadPastBuffer extends SwiftFileSystemBaseTest {
protected static final Log LOG =
LogFactory.getLog(TestReadPastBuffer.class);
public static final int SWIFT_READ_BLOCKSIZE = 4096;
public static final int SEEK_FILE_LEN = SWIFT_READ_BLOCKSIZE * 2;
private Path testPath;
private Path readFile;
private Path zeroByteFile;
private FSDataInputStream instream;
/**
* Get a configuration whch a small blocksize reported to callers
* @return a configuration for this test
*/
@Override
public Configuration getConf() {
Configuration conf = super.getConf();
/*
* set to 4KB
*/
conf.setInt(SwiftProtocolConstants.SWIFT_BLOCKSIZE, SWIFT_READ_BLOCKSIZE);
return conf;
}
/**
* Setup creates dirs under test/hadoop
*
* @throws Exception
*/
@Override
public void setUp() throws Exception {
super.setUp();
byte[] block = SwiftTestUtils.dataset(SEEK_FILE_LEN, 0, 255);
//delete the test directory
testPath = path("/test");
readFile = new Path(testPath, "TestReadPastBuffer.txt");
createFile(readFile, block);
}
@After
public void cleanFile() {
IOUtils.closeStream(instream);
instream = null;
}
/**
* Create a config with a 1KB request size
* @return a config
*/
@Override
protected Configuration createConfiguration() {
Configuration conf = super.createConfiguration();
conf.set(SwiftProtocolConstants.SWIFT_REQUEST_SIZE, "1");
return conf;
}
/**
* Seek past the buffer then read
* @throws Throwable problems
*/
@Test(timeout = SWIFT_TEST_TIMEOUT)
public void testSeekAndReadPastEndOfFile() throws Throwable {
instream = fs.open(readFile);
assertEquals(0, instream.getPos());
//expect that seek to 0 works
//go just before the end
instream.seek(SEEK_FILE_LEN - 2);
assertTrue("Premature EOF", instream.read() != -1);
assertTrue("Premature EOF", instream.read() != -1);
assertMinusOne("read past end of file", instream.read());
}
/**
* Seek past the buffer and attempt a read(buffer)
* @throws Throwable failures
*/
@Test(timeout = SWIFT_TEST_TIMEOUT)
public void testSeekBulkReadPastEndOfFile() throws Throwable {
instream = fs.open(readFile);
assertEquals(0, instream.getPos());
//go just before the end
instream.seek(SEEK_FILE_LEN - 1);
byte[] buffer = new byte[1];
int result = instream.read(buffer, 0, 1);
//next byte is expected to fail
result = instream.read(buffer, 0, 1);
assertMinusOne("read past end of file", result);
//and this one
result = instream.read(buffer, 0, 1);
assertMinusOne("read past end of file", result);
//now do an 0-byte read and expect it to
//to be checked first
result = instream.read(buffer, 0, 0);
assertEquals("EOF checks coming before read range check", 0, result);
}
/**
* Read past the buffer size byte by byte and verify that it refreshed
* @throws Throwable
*/
@Test
public void testReadPastBufferSize() throws Throwable {
instream = fs.open(readFile);
while (instream.read() != -1);
//here we have gone past the end of a file and its buffer. Now try again
assertMinusOne("reading after the (large) file was read: "+ instream,
instream.read());
}
}
|
[
"stevel@hortonworks.com"
] |
stevel@hortonworks.com
|
a9c45098914dcbf82ca12a86f48e8c5ba4994aaa
|
505f363f71960167865edbe1281a5800932a1cd1
|
/hayhay/src/com/xyz/hayhay/service/report/ReportService.java
|
ef07b5f456a80e8389170e1422e627a5641acd6a
|
[] |
no_license
|
kientv80/webtore_web
|
00aaf6c07a26a192831ac72f5cca396b1599c153
|
285d242694edf3fddea75ac35a35f59e9ada408d
|
refs/heads/master
| 2021-01-19T18:17:04.612434
| 2017-10-12T17:03:38
| 2017-10-12T17:03:38
| 88,351,153
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 217
|
java
|
package com.xyz.hayhay.service.report;
import java.util.List;
import com.xyz.hayhay.entirty.Report;
public interface ReportService {
public List<Report> getCategoryReport(String time) throws Exception;
}
|
[
"kientv@vng.com.vn"
] |
kientv@vng.com.vn
|
7577380c96b89f2d44eb3fa44414a2b8fb2ed604
|
e5926a60e0dfd5dfaf06ae127e0c3d2cf18025ed
|
/01_HelloSpring/src/main/java/com/kh/spring/memo/controller/MemoController.java
|
d1ac6b7947d45d179515b651ff65e652834ffa5c
|
[] |
no_license
|
sein-coder/SpringFramework
|
d7a622d497dd85d5d660927140153a2f90ef82a5
|
45e9966ec62a1c10f730c449d52ca6d1f7289acf
|
refs/heads/master
| 2022-12-23T00:53:24.082872
| 2019-10-25T12:52:32
| 2019-10-25T12:52:32
| 215,297,171
| 0
| 0
| null | 2022-11-15T23:31:04
| 2019-10-15T12:47:09
|
Java
|
UTF-8
|
Java
| false
| false
| 1,612
|
java
|
package com.kh.spring.memo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import com.kh.spring.memo.model.service.MemoService;
import com.kh.spring.memo.model.vo.Memo;
@Controller
public class MemoController {
@Autowired
private MemoService service; //자동완성할 때 조심 Impl아닌거로 해야함!
@RequestMapping("/memo/memo.do")
public String memoList(Model model) {
model.addAttribute("list",service.selectMemoList());
return "memo/memo";
}
@RequestMapping("/memo/insertMemo.do")
public String insertMemo(Memo memo, Model model) {
int result = service.insertMemo(memo);
String msg = "";
String loc = "/memo/memo.do";
msg = result>0?"메모 작성 성공":"메모 작성 실패";
model.addAttribute("msg",msg);
model.addAttribute("loc",loc);
return "common/msg";
}
//삭제는 관리자만이 가능하게 AOP를 이용해서 구현하시오!
//AOP를 이용해서 around나 before를 통해 세션값의 아이디를 받아와서 해당 아이디가 admin일 경우에만 삭제가 되고
//아닐 경우 에러페이지로 throw한다.
@RequestMapping("/memo/deleteMemo.do")
public String deleteMemo(Memo memo) {
int result = service.deleteMemo(memo);
String msg = "";
String loc = "/memo/memo.do";
if(result > 0) msg = "메모 삭제 성공!";
else msg = "메모 삭제 실패";
return "common/msg";
}
}
|
[
"user2@user2-PC"
] |
user2@user2-PC
|
bd03023efcce3d6c4321e0363a2950eaf7ff136b
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/neo4j--neo4j/7973485502c707739756a9e712b655f84cb6b492/before/TxLabelCursor.java
|
5375387e2b5c0c2cd93b04fe30c8c3a0730be911
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003
| 2018-11-30T13:00:57
| 2018-11-30T13:00:57
| 87,353,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,115
|
java
|
/*
* Copyright (c) 2002-2015 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.kernel.impl.api.cursor;
import java.util.Iterator;
import org.neo4j.function.Consumer;
import org.neo4j.kernel.api.cursor.LabelCursor;
import org.neo4j.kernel.impl.util.diffsets.DiffSets;
/**
* Overlays transaction state on a {@link LabelCursor}.
*/
public class TxLabelCursor
implements LabelCursor
{
private final Consumer<TxLabelCursor> instanceCache;
private LabelCursor cursor;
private DiffSets<Integer> labelDiffSet;
private int label;
private Iterator<Integer> added;
public TxLabelCursor( Consumer<TxLabelCursor> instanceCache )
{
this.instanceCache = instanceCache;
}
public TxLabelCursor init( LabelCursor cursor, DiffSets<Integer> labelDiffSet )
{
this.cursor = cursor;
this.labelDiffSet = labelDiffSet;
this.added = null;
return this;
}
@Override
public boolean next()
{
if ( added == null )
{
while ( cursor != null && cursor.next() )
{
if ( labelDiffSet.isRemoved( cursor.getLabel() ) )
{
continue;
}
label = cursor.getLabel();
return true;
}
added = labelDiffSet.getAdded().iterator();
}
if ( added.hasNext() )
{
label = added.next();
return true;
}
else
{
label = -1;
return false;
}
}
@Override
public boolean seek( int labelId )
{
if ( labelDiffSet.isAdded( labelId ) )
{
label = labelId;
return true;
}
if ( labelDiffSet.isRemoved( labelId ) )
{
label = -1;
return false;
}
if ( cursor.seek( labelId ) )
{
label = labelId;
return true;
}
else
{
label = -1;
return false;
}
}
@Override
public int getLabel()
{
if ( label == -1 )
{
throw new IllegalStateException();
}
return label;
}
@Override
public void close()
{
cursor.close();
cursor = null;
instanceCache.accept( this );
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
77db24b2d95a4ccf164222f2c6337495db4d8254
|
bd950f14035a226cc9605cf3e1396b622b6c63ef
|
/byte-buddy-dep/src/test/java/net/bytebuddy/dynamic/scaffold/inline/InlineDynamicTypeBuilderTargetHandlerForRebaseInstrumentationTest.java
|
3260fd51ac9138b41ba84507295734460a72c91b
|
[
"Apache-2.0"
] |
permissive
|
RobAustin/byte-buddy
|
452cf3c94b37188998f1962de1201da1894f6fdf
|
7d1ed498fe1b08219863d9472119bd2af10bee1b
|
refs/heads/master
| 2021-01-15T11:44:18.980906
| 2015-04-01T09:02:15
| 2015-04-01T09:02:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 404
|
java
|
package net.bytebuddy.dynamic.scaffold.inline;
import net.bytebuddy.test.utility.ObjectPropertyAssertion;
import org.junit.Test;
public class InlineDynamicTypeBuilderTargetHandlerForRebaseInstrumentationTest {
@Test
public void testObjectProperties() throws Exception {
ObjectPropertyAssertion.of(InlineDynamicTypeBuilder.TargetHandler.ForRebaseInstrumentation.class).apply();
}
}
|
[
"rafael.wth@web.de"
] |
rafael.wth@web.de
|
13b72ba16b062ca2c93a61eaf704bf5eb72f6899
|
b15fcbea84500825b454a8e0fca67e6c4a8c9cef
|
/ControlObligaciones/ControlObligaciones/src/main/java/mx/gob/sat/siat/cob/seguimiento/dto/stdcob/VigilanciaAprobar.java
|
8838f65789fb1cdb8b77f37615c56d9e8e4936d2
|
[] |
no_license
|
xtaticzero/COB
|
0416523d1bbc96d6024df5eca79172cb0927423f
|
96082d47e4ffb97dd6e61ce42feee65d5fe64e50
|
refs/heads/master
| 2021-09-09T22:02:10.153252
| 2018-03-20T00:18:00
| 2018-03-20T00:18:00
| 125,936,388
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,184
|
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 mx.gob.sat.siat.cob.seguimiento.dto.stdcob;
import java.io.Serializable;
import java.util.Date;
/**
*
* @author root
*/
public class VigilanciaAprobar implements Serializable{
private String numeroCarga;
private String descripcionVigilancia;
private String tipoDocumento;
private Long cantidadDocumentos;
private String tipoFirma;
private String idFirma;
private Date fechaCorte;
private Date fechaCarga;
private String nombrePlantilla;
private Integer idPlantilla;
private String numeroEmpleado;
private String tipoMedio;
private String administracionLocal;
private String idAdministracionLocal;
private Date fechaValidacion;
private boolean procesando;
private Long cantidadVigilanciasAL;
private Integer conteoElementos;
private Long cantidadVigilanciasMostrar;
public VigilanciaAprobar() {
}
public String getNumeroCarga() {
return numeroCarga;
}
public void setNumeroCarga(String numeroCarga) {
this.numeroCarga = numeroCarga;
}
public String getDescripcionVigilancia() {
return descripcionVigilancia;
}
public void setDescripcionVigilancia(String descripcionVigilancia) {
this.descripcionVigilancia = descripcionVigilancia;
}
public String getTipoDocumento() {
return tipoDocumento;
}
public void setTipoDocumento(String tipoDocumento) {
this.tipoDocumento = tipoDocumento;
}
public Long getCantidadDocumentos() {
return cantidadDocumentos;
}
public void setCantidadDocumentos(Long cantidadDocumentos) {
this.cantidadDocumentos = cantidadDocumentos;
}
public String getTipoFirma() {
return tipoFirma;
}
public void setTipoFirma(String tipoFirma) {
this.tipoFirma = tipoFirma;
}
public Date getFechaCorte() {
if(fechaCorte==null){
return null;
}else{
return (Date)fechaCorte.clone();
}
}
public void setFechaCorte(Date fechaCorte) {
if(fechaCorte!=null){
this.fechaCorte = (Date)fechaCorte.clone();
}
}
public Date getFechaCarga() {
if(fechaCarga==null){
return null;
}else{
return (Date)fechaCarga.clone();
}
}
public void setFechaCarga(Date fechaCarga) {
if(fechaCarga!=null){
this.fechaCarga = (Date)fechaCarga.clone();
}
}
public String getNombrePlantilla() {
return nombrePlantilla;
}
public void setNombrePlantilla(String nombrePlantilla) {
this.nombrePlantilla = nombrePlantilla;
}
public String getNumeroEmpleado() {
return numeroEmpleado;
}
public void setNumeroEmpleado(String numeroEmpleado) {
this.numeroEmpleado = numeroEmpleado;
}
public String getTipoMedio() {
return tipoMedio;
}
public void setTipoMedio(String tipoMedio) {
this.tipoMedio = tipoMedio;
}
public String getAdministracionLocal() {
return administracionLocal;
}
public void setAdministracionLocal(String administracionLocal) {
this.administracionLocal = administracionLocal;
}
public String getIdAdministracionLocal() {
return idAdministracionLocal;
}
public void setIdAdministracionLocal(String idAdministracionLocal) {
this.idAdministracionLocal = idAdministracionLocal;
}
public boolean isProcesando() {
return procesando;
}
public void setProcesando(boolean procesando) {
this.procesando = procesando;
}
public Date getFechaValidacion() {
return fechaValidacion==null?fechaValidacion:(Date)fechaValidacion.clone();
}
public void setFechaValidacion(Date fechaValidacion) {
if (fechaValidacion != null) {
this.fechaValidacion = new Date(fechaValidacion.getTime());
}
}
public Integer getIdPlantilla() {
return idPlantilla;
}
public void setIdPlantilla(Integer idPlantilla) {
this.idPlantilla = idPlantilla;
}
public String getIdFirma() {
return idFirma;
}
public void setIdFirma(String idFirma) {
this.idFirma = idFirma;
}
public Long getCantidadVigilanciasAL() {
return cantidadVigilanciasAL;
}
public void setCantidadVigilanciasAL(Long cantidadVigilanciasAL) {
this.cantidadVigilanciasAL = cantidadVigilanciasAL;
}
public Integer getConteoElementos() {
return conteoElementos;
}
public void setConteoElementos(Integer conteoElementos) {
this.conteoElementos = conteoElementos;
}
public Long getCantidadVigilanciasMostrar() {
return cantidadVigilanciasMostrar;
}
public void setCantidadVigilanciasMostrar(Long cantidadVigilanciasMostrar) {
this.cantidadVigilanciasMostrar = cantidadVigilanciasMostrar;
}
}
|
[
"emmanuel.estrada@stksat.com"
] |
emmanuel.estrada@stksat.com
|
8d8e2ab3f9107bfb8f7384da89351dbee56911cc
|
1de2a382fe274a95bdf5f937c4c2b288d489e8d3
|
/jOOQ-meta/src/main/java/org/jooq/meta/mysql/information_schema/tables/Views.java
|
e15488d662db016837af1ccbd6d860c1aa80cb0f
|
[
"Apache-2.0"
] |
permissive
|
9861878969/jOOQ
|
1843076bb99fe96e6055457b12db150bcf8ac7c0
|
5aeadd30179c66ef0d9ee8741a0f1b2656aded57
|
refs/heads/main
| 2022-12-08T12:33:38.662815
| 2020-08-31T15:38:49
| 2020-08-31T15:38:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| true
| 4,855
|
java
|
/*
* This file is generated by jOOQ.
*/
package org.jooq.meta.mysql.information_schema.tables;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.impl.DSL;
import org.jooq.impl.TableImpl;
import org.jooq.meta.mysql.information_schema.InformationSchema;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Views extends TableImpl<Record> {
private static final long serialVersionUID = 1434878600;
/**
* The reference instance of <code>information_schema.VIEWS</code>
*/
public static final Views VIEWS = new Views();
/**
* The class holding records for this type
*/
@Override
public Class<Record> getRecordType() {
return Record.class;
}
/**
* The column <code>information_schema.VIEWS.TABLE_CATALOG</code>.
*/
public final TableField<Record, String> TABLE_CATALOG = createField(DSL.name("TABLE_CATALOG"), org.jooq.impl.SQLDataType.VARCHAR(64).nullable(false), this, "");
/**
* The column <code>information_schema.VIEWS.TABLE_SCHEMA</code>.
*/
public final TableField<Record, String> TABLE_SCHEMA = createField(DSL.name("TABLE_SCHEMA"), org.jooq.impl.SQLDataType.VARCHAR(64).nullable(false), this, "");
/**
* The column <code>information_schema.VIEWS.TABLE_NAME</code>.
*/
public final TableField<Record, String> TABLE_NAME = createField(DSL.name("TABLE_NAME"), org.jooq.impl.SQLDataType.VARCHAR(64).nullable(false), this, "");
/**
* The column <code>information_schema.VIEWS.VIEW_DEFINITION</code>.
*/
public final TableField<Record, String> VIEW_DEFINITION = createField(DSL.name("VIEW_DEFINITION"), org.jooq.impl.SQLDataType.CLOB, this, "");
/**
* The column <code>information_schema.VIEWS.CHECK_OPTION</code>.
*/
public final TableField<Record, String> CHECK_OPTION = createField(DSL.name("CHECK_OPTION"), org.jooq.impl.SQLDataType.VARCHAR(8), this, "");
/**
* The column <code>information_schema.VIEWS.IS_UPDATABLE</code>.
*/
public final TableField<Record, String> IS_UPDATABLE = createField(DSL.name("IS_UPDATABLE"), org.jooq.impl.SQLDataType.VARCHAR(3), this, "");
/**
* The column <code>information_schema.VIEWS.DEFINER</code>.
*/
public final TableField<Record, String> DEFINER = createField(DSL.name("DEFINER"), org.jooq.impl.SQLDataType.VARCHAR(288), this, "");
/**
* The column <code>information_schema.VIEWS.SECURITY_TYPE</code>.
*/
public final TableField<Record, String> SECURITY_TYPE = createField(DSL.name("SECURITY_TYPE"), org.jooq.impl.SQLDataType.VARCHAR(7), this, "");
/**
* The column <code>information_schema.VIEWS.CHARACTER_SET_CLIENT</code>.
*/
public final TableField<Record, String> CHARACTER_SET_CLIENT = createField(DSL.name("CHARACTER_SET_CLIENT"), org.jooq.impl.SQLDataType.VARCHAR(64).nullable(false), this, "");
/**
* The column <code>information_schema.VIEWS.COLLATION_CONNECTION</code>.
*/
public final TableField<Record, String> COLLATION_CONNECTION = createField(DSL.name("COLLATION_CONNECTION"), org.jooq.impl.SQLDataType.VARCHAR(64).nullable(false), this, "");
private Views(Name alias, Table<Record> aliased) {
this(alias, aliased, null);
}
private Views(Name alias, Table<Record> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>information_schema.VIEWS</code> table reference
*/
public Views(String alias) {
this(DSL.name(alias), VIEWS);
}
/**
* Create an aliased <code>information_schema.VIEWS</code> table reference
*/
public Views(Name alias) {
this(alias, VIEWS);
}
/**
* Create a <code>information_schema.VIEWS</code> table reference
*/
public Views() {
this(DSL.name("VIEWS"), null);
}
public <O extends Record> Views(Table<O> child, ForeignKey<O, Record> key) {
super(child, key, VIEWS);
}
@Override
public Schema getSchema() {
return InformationSchema.INFORMATION_SCHEMA;
}
@Override
public Views as(String alias) {
return new Views(DSL.name(alias), this);
}
@Override
public Views as(Name alias) {
return new Views(alias, this);
}
/**
* Rename this table
*/
@Override
public Views rename(String name) {
return new Views(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Views rename(Name name) {
return new Views(name, null);
}
}
|
[
"lukas.eder@gmail.com"
] |
lukas.eder@gmail.com
|
633503af6c395d456d0db54df193f79158db03cd
|
0cf378b7320592a952d5343a81b8a67275ab5fab
|
/webprotege-server-core/src/main/java/edu/stanford/bmir/protege/web/server/viz/EntityGraphSettingsRepositoryImpl.java
|
3a47d1764a2c63ec5314670804e672e40950d40e
|
[
"BSD-2-Clause"
] |
permissive
|
curtys/webprotege-attestation
|
945de9f6c96ca84b7022a60f4bec4886c81ab4f3
|
3aa909b4a8733966e81f236c47d6b2e25220d638
|
refs/heads/master
| 2023-04-11T04:41:16.601854
| 2023-03-20T12:18:44
| 2023-03-20T12:18:44
| 297,962,627
| 0
| 0
|
MIT
| 2021-08-24T08:43:21
| 2020-09-23T12:28:24
|
Java
|
UTF-8
|
Java
| false
| false
| 4,632
|
java
|
package edu.stanford.bmir.protege.web.server.viz;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.ImmutableList;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import com.mongodb.client.model.ReplaceOptions;
import edu.stanford.bmir.protege.web.shared.inject.ApplicationSingleton;
import edu.stanford.bmir.protege.web.shared.match.criteria.MultiMatchType;
import edu.stanford.bmir.protege.web.shared.project.ProjectId;
import edu.stanford.bmir.protege.web.shared.user.UserId;
import edu.stanford.bmir.protege.web.shared.viz.*;
import org.bson.Document;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.inject.Inject;
import java.util.Arrays;
import java.util.List;
import static com.google.common.base.Preconditions.checkNotNull;
import static edu.stanford.bmir.protege.web.shared.viz.ProjectUserEntityGraphSettings.PROJECT_ID;
import static edu.stanford.bmir.protege.web.shared.viz.ProjectUserEntityGraphSettings.USER_ID;
/**
* Matthew Horridge
* Stanford Center for Biomedical Informatics Research
* 2019-12-06
*/
@ApplicationSingleton
public class EntityGraphSettingsRepositoryImpl implements EntityGraphSettingsRepository {
private static final String COLLECTION_NAME = "EntityGraphSettings";
private final MongoDatabase database;
private final ObjectMapper objectMapper;
@Inject
public EntityGraphSettingsRepositoryImpl(MongoDatabase database,
ObjectMapper objectMapper) {
this.database = checkNotNull(database);
this.objectMapper = checkNotNull(objectMapper);
}
@Override
public void saveSettings(@Nonnull ProjectUserEntityGraphSettings settings) {
var document = objectMapper.convertValue(settings, Document.class);
var filter = getUpsertFilter(settings.getProjectId(), settings.getUserId()
.orElse(null));
var replaceOptions = new ReplaceOptions().upsert(true);
getCollection().replaceOne(filter, document, replaceOptions);
}
@Nonnull
@Override
public ProjectUserEntityGraphSettings getProjectDefaultSettings(@Nonnull ProjectId projectId) {
var filter = getGetFilter(projectId, null);
var settings = getProjectEntityGraphSettings(filter);
if(settings == null) {
return ProjectUserEntityGraphSettings.get(projectId, null, EntityGraphSettings.getDefault());
}
else {
return settings;
}
}
@Nullable
private ProjectUserEntityGraphSettings getProjectEntityGraphSettings(Document filter) {
var found = getCollection().find(filter);
var firstDocument = found.first();
if(firstDocument == null) {
return null;
}
return objectMapper.convertValue(firstDocument, ProjectUserEntityGraphSettings.class);
}
@Nonnull
@Override
public ProjectUserEntityGraphSettings getSettingsForUserOrProjectDefault(@Nonnull ProjectId projectId,
@Nullable UserId userId) {
ProjectUserEntityGraphSettings userSettings = getProjectEntityGraphSettings(getUpsertFilter(projectId, userId));
if(userSettings != null) {
return userSettings;
}
ProjectUserEntityGraphSettings defaultSettings = getProjectEntityGraphSettings(getGetFilter(projectId, null));
if(defaultSettings != null) {
return defaultSettings;
}
return ProjectUserEntityGraphSettings.getDefault(projectId, userId);
}
public static Document getGetFilter(@Nonnull ProjectId projectId,
@Nullable UserId userId) {
var doc = new Document(PROJECT_ID, projectId.getId());
if(userId == null) {
doc.append(USER_ID, null);
}
else {
doc.append(USER_ID, userId.getUserName());
}
return doc;
}
public static Document getUpsertFilter(@Nonnull ProjectId projectId,
@Nullable UserId userId) {
var doc = new Document(PROJECT_ID, projectId.getId());
doc.append(USER_ID, userId == null ? null : userId.getUserName());
return doc;
}
@Override
public void ensureIndexes() {
}
public static String getCollectionName() {
return COLLECTION_NAME;
}
public MongoCollection<Document> getCollection() {
return database.getCollection(COLLECTION_NAME);
}
}
|
[
"matthew.horridge@stanford.edu"
] |
matthew.horridge@stanford.edu
|
0bbb3ac12fdcc2d8bb06e37e61947731ab5fcbb0
|
84618b3d1c60a81f470f50d0a82828e2deaa0638
|
/org.entirej.development/src/org/entirej/framework/dev/renderer/definition/EJDevLovRendererDefinitionControl.java
|
02890741bbe4d4458e32560f8134659033580c17
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
theanuradha/plugin
|
ed4b11c8897a7f7d4c7673143059588264517728
|
1528a7aadda78d45981464ca7fcf3642af3a0a8f
|
refs/heads/master
| 2021-01-17T20:30:44.102200
| 2014-09-05T09:57:31
| 2014-09-05T09:57:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,651
|
java
|
/*******************************************************************************
* Copyright 2013 Mojave Innovations GmbH
*
* 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.
*
* Contributors:
* Mojave Innovations GmbH - initial API and implementation
******************************************************************************/
package org.entirej.framework.dev.renderer.definition;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.entirej.framework.dev.properties.interfaces.EJDevLovDefinitionDisplayProperties;
import org.entirej.framework.dev.renderer.definition.interfaces.EJDevItemWidgetChosenListener;
public class EJDevLovRendererDefinitionControl
{
private EJDevLovDefinitionDisplayProperties _lovDisplayProperties;
private Map<String, EJDevItemRendererDefinitionControl> _itemRendererControls;
private EJDevItemRendererDefinitionControl _selectedItem;
public EJDevLovRendererDefinitionControl(EJDevLovDefinitionDisplayProperties lovDisplayProperties, List<EJDevItemRendererDefinitionControl> containedItems)
{
_itemRendererControls = new HashMap<String, EJDevItemRendererDefinitionControl>();
_lovDisplayProperties = lovDisplayProperties;
if (containedItems != null)
{
for (EJDevItemRendererDefinitionControl control : containedItems)
{
if (control != null)
{
_itemRendererControls.put(control.getItemName(), control);
}
}
}
}
public void dispose()
{
_lovDisplayProperties = null;
for (EJDevItemRendererDefinitionControl control : _itemRendererControls.values())
{
control.dispose();
}
_itemRendererControls.clear();
_selectedItem = null;
}
/**
* Returns the name of the lov definition that this control is for
*
* @return The name of the block
*/
public String getBlockName()
{
return _lovDisplayProperties.getName();
}
/**
* Returns the name of the item that is currently selected within this lov
* definition or <code>null</code> if no item is selected
*
* @return The name of the currently selected item within this lov
* definition
*/
public String getCurrentItemName()
{
if (_selectedItem == null)
{
return null;
}
else
{
return _selectedItem.getItemName();
}
}
/**
* Returns the lov definition display properties of this control
*
* @return The lov definition display properties
*/
public EJDevLovDefinitionDisplayProperties getLovDefinitionDisplayProperties()
{
return _lovDisplayProperties;
}
/**
* The item chosen listener should be informed if the user clicks on an item
* widget displayed on this lov definition control
* <p>
* This will inform the EntireJ Form Plugin that the properties of the given
* widget should be selected
*
* @param listener
* The listener to add
*/
public void addItemWidgetChosenListener(EJDevItemWidgetChosenListener listener)
{
for (EJDevItemRendererDefinitionControl control : _itemRendererControls.values())
{
control.addItemChosenListener(listener);
}
}
/**
* Removes a listener from this lov definition list of item renderer chosen
* listeners
*
* @param listener
* The <code>IItemWidgetChosenListener</code> to remove
*/
public void removeItemWidgetChosenListener(EJDevItemWidgetChosenListener listener)
{
for (EJDevItemRendererDefinitionControl control : _itemRendererControls.values())
{
control.removeItemWidgetChosenListener(listener);
}
}
/**
* The EntireJ Plugin will inform this control when one of the block items
* has been selected from the form definition list
*
* @param itemProperties
* The properties of the item that was selected
*/
public void lovItemWidgetSelected(String itemName, boolean selected)
{
if (itemName != null)
{
EJDevItemRendererDefinitionControl control = _itemRendererControls.get(itemName);
focusLost();
if (control != null)
{
control.itemWidgetSelected(selected);
_selectedItem = control;
}
}
}
/**
* This should be called when the block looses focus. If not called the
* currently selected item will be selected even if another item is selected
* within another block
*/
public void focusLost()
{
if (_selectedItem != null)
{
_selectedItem.itemWidgetSelected(false);
_selectedItem = null;
}
}
public void focusGained()
{
if (_selectedItem != null)
{
_selectedItem.itemWidgetSelected(true);
}
}
}
|
[
"theanuradha@gmail.com"
] |
theanuradha@gmail.com
|
480d66e2c1455930071133dd4ceac5f6bd1a293e
|
2a44e20a6a91b69b2f36da0069686e1a5f636671
|
/src/main/java/avaritia/mixins/accessors/StatusEffectInstanceAccessor.java
|
3417d75c227374c68b5bd8bcaa94810afbbe4131
|
[
"CC0-1.0"
] |
permissive
|
MorningSage/Avaritia
|
29c99fae224008efa2975f77c421e08b25f06e47
|
9a96348ad8b4313f356c2e3ca0693a7fe7206074
|
refs/heads/master
| 2022-11-24T07:23:17.888956
| 2020-07-28T22:26:17
| 2020-07-28T22:26:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 331
|
java
|
package avaritia.mixins.accessors;
import net.minecraft.entity.effect.StatusEffectInstance;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
@Mixin(StatusEffectInstance.class)
public interface StatusEffectInstanceAccessor {
@Accessor
void setDuration(int duration);
}
|
[
"51978143+MorningSage@users.noreply.github.com"
] |
51978143+MorningSage@users.noreply.github.com
|
c6318ba01a77127b434507721a2cd31ddd52f5c3
|
0444b9e1ccafb89e2133a90e1cbf5b5ce7691e83
|
/src/main/java/kfs/mailingservice/dao/jpa/MailFooterDaoJpa.java
|
87592da080ac41ee2acba0b66bbfa0cc2c564da9
|
[] |
no_license
|
k0fis/KfsMailingService
|
318a3f83bebb953b30ebe5fcb93cc0998b548754
|
d28cb6977465098e93a6fdd5bd1f034a9aa391ca
|
refs/heads/master
| 2021-01-10T20:49:19.542984
| 2015-10-01T07:26:16
| 2015-10-01T07:26:16
| 42,913,980
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 741
|
java
|
package kfs.mailingservice.dao.jpa;
import java.util.List;
import kfs.mailingservice.dao.MailFooterDao;
import kfs.mailingservice.domain.MailFooter;
import kfs.springutils.BaseDaoJpa;
import org.springframework.stereotype.Repository;
/**
*
* @author pavedrim
*/
@Repository
public class MailFooterDaoJpa extends BaseDaoJpa<MailFooter, Long > implements MailFooterDao{
@Override
protected Class<MailFooter> getDataClass() {
return MailFooter.class;
}
@Override
protected Long getId(MailFooter data) {
return data.getId();
}
@Override
public List<MailFooter> load() {
return em.createQuery("SELECT a FROM MailFooter a ORDER BY a.name")
.getResultList();
}
}
|
[
"k0fis@me.com"
] |
k0fis@me.com
|
13bdbbd459b87148133ea575c880d286127f4133
|
38c95a8e610a26e7cb0e2a0ad027df148b890210
|
/codes/java/leetcodes/src/main/java/com/hit/basmath/learn/queue_stack/_133.java
|
fdacedfbaff02781e19e724e4c3afffe1a92a7ac
|
[
"MIT"
] |
permissive
|
guobinhit/myleetcode
|
b2f4b5f2c1fd7c26dd303be34c227a20c9bfa9b7
|
bf519a04dcf574419543f52fbe2bfcb430d981f1
|
refs/heads/master
| 2023-01-21T10:58:24.809836
| 2023-01-09T03:36:45
| 2023-01-09T03:36:45
| 145,631,771
| 56
| 29
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,112
|
java
|
package com.hit.basmath.learn.queue_stack;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 133. Clone Graph
* <p>
* Given a reference of a node in a connected undirected graph, return a deep copy (clone) of the graph. Each node in the graph contains a val (int) and a list (List[Node]) of its neighbors.
* <p>
* Example:
* <p>
* Input: {"$id":"1","neighbors":[{"$id":"2","neighbors":[{"$ref":"1"},{"$id":"3","neighbors":[{"$ref":"2"},{"$id":"4","neighbors":[{"$ref":"3"},{"$ref":"1"}],"val":4}],"val":3}],"val":2},{"$ref":"4"}],"val":1}
* <p>
* Explanation:
* <p>
* Node 1's value is 1, and it has two neighbors: Node 2 and 4.
* Node 2's value is 2, and it has two neighbors: Node 1 and 3.
* Node 3's value is 3, and it has two neighbors: Node 2 and 4.
* Node 4's value is 4, and it has two neighbors: Node 1 and 3.
* <p>
* Note:
* <p>
* 1. The number of nodes will be between 1 and 100.
* 2. The undirected graph is a simple graph, which means no repeated edges and no self-loops in the graph.
* 3. Since the graph is undirected, if node p has node q as neighbor, then node q must have node p as neighbor too.
* 4. You must return the copy of the given node as a reference to the cloned graph.
*/
public class _133 {
public Node cloneGraph(Node node) {
if (node == null) return node;
return clone(node, new HashMap<Node, Node>());
}
private Node clone(Node original, Map<Node, Node> clones) {
if (clones.containsKey(original)) return clones.get(original);
clones.put(original, new Node(original.val, new ArrayList<>()));
if (original.neighbors != null) {
for (Node n : original.neighbors)
clones.get(original).neighbors.add(clone(n, clones));
}
return clones.get(original);
}
class Node {
public int val;
public List<Node> neighbors;
public Node() {
}
public Node(int _val, List<Node> _neighbors) {
val = _val;
neighbors = _neighbors;
}
}
}
|
[
"guobinhit@gmail.com"
] |
guobinhit@gmail.com
|
7d61c757d14ab85a86ade913eecf1abea64b4a7e
|
5308297e063c59a065a025711ae62b0b7b015886
|
/SDK/src/com/skyworth/webservice/cloudsearch/sniffer/QiyiDataObject.java
|
2a4c81251327321e594eaa0a1441ca971e3c60f6
|
[] |
no_license
|
bibiRe/AppStore
|
77ddde3261cabe9294ffb74714c00febd0ec7268
|
06f5e05050ad01753fd9e6a9f6ec251474e3c6f1
|
refs/heads/master
| 2020-12-29T01:54:54.175750
| 2014-02-12T07:30:44
| 2014-02-12T07:30:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 365
|
java
|
/**
* Copyright (C) 2012 The SkyTvOS Project
*
* Version Date Author
* ─────────────────────────────────────
* 2012-11-8 jacklin
*
*/
package com.skyworth.webservice.cloudsearch.sniffer;
public class QiyiDataObject
{
public QiyiUrlObject data;
}
|
[
"haotie1990@gmail.com"
] |
haotie1990@gmail.com
|
3a371d815e34442ffd78293ffee4a24550564a44
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/aiworkspace-20210204/src/main/java/com/aliyun/aiworkspace20210204/models/UpdateWorkspaceResponseBody.java
|
7068f38908e027cb96b1a1dd46d434b1319f66a2
|
[
"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
| 685
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.aiworkspace20210204.models;
import com.aliyun.tea.*;
public class UpdateWorkspaceResponseBody extends TeaModel {
@NameInMap("RequestId")
public String requestId;
public static UpdateWorkspaceResponseBody build(java.util.Map<String, ?> map) throws Exception {
UpdateWorkspaceResponseBody self = new UpdateWorkspaceResponseBody();
return TeaModel.build(map, self);
}
public UpdateWorkspaceResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
8afc8cac0d360dfdc8f9dc4d2bccddcc0c7dea99
|
0be589f943a18d5f1e6df7647a68ffbf3e470b1d
|
/ezydata-morphia/src/test/java/com/tvd12/ezydata/morphia/testing/EzyPropertiesMongoClientLoaderTest.java
|
c6d4eda72a7c1428520386e3062a2f9cec3fa88e
|
[
"Apache-2.0"
] |
permissive
|
longcongduoi/ezydata
|
a5c1749ca067bcd88fdab472d532548063bd8ca5
|
1b6ae4f0aef0ea866c38daee794a5cacffdb6c25
|
refs/heads/master
| 2023-07-04T04:26:59.642538
| 2021-06-22T15:31:31
| 2021-06-22T15:31:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 815
|
java
|
package com.tvd12.ezydata.morphia.testing;
import java.util.Properties;
import org.testng.annotations.Test;
import com.tvd12.ezydata.mongodb.loader.EzyMongoClientLoader;
import com.tvd12.ezydata.mongodb.loader.EzyPropertiesMongoClientLoader;
import com.tvd12.test.base.BaseTest;
public class EzyPropertiesMongoClientLoaderTest extends BaseTest {
@Test
public void test() {
Properties properties = new Properties();
properties.setProperty(EzyMongoClientLoader.HOST, "127.0.0.1");
properties.setProperty(EzyMongoClientLoader.PORT, "27017");
properties.setProperty(EzyMongoClientLoader.USERNAME, "root");
properties.setProperty(EzyMongoClientLoader.PASSWORD, "123456");
properties.setProperty(EzyMongoClientLoader.DATABASE, "test");
EzyPropertiesMongoClientLoader.load(properties).close();
}
}
|
[
"itprono3@gmail.com"
] |
itprono3@gmail.com
|
a0a5b0ff8adc5474b54947eda2987df69b81f101
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-ws/results/XWIKI-13372-5-21-Single_Objective_GGA-WeightedSum/com/xpn/xwiki/doc/XWikiDocument_ESTest.java
|
dfe3846b5491e95265d2d270dd4c1e7f6821110b
|
[
"MIT",
"CC-BY-4.0"
] |
permissive
|
STAMP-project/Botsing-basic-block-coverage-application
|
6c1095c6be945adc0be2b63bbec44f0014972793
|
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
|
refs/heads/master
| 2022-07-28T23:05:55.253779
| 2022-04-20T13:54:11
| 2022-04-20T13:54:11
| 285,771,370
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 550
|
java
|
/*
* This file was automatically generated by EvoSuite
* Tue Mar 31 08:30:08 UTC 2020
*/
package com.xpn.xwiki.doc;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class XWikiDocument_ESTest extends XWikiDocument_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
03e46b3580bee1ff7747c8b56be1f6057baab53d
|
6ffb1f9524f6799cbedca651b6037c90e8dd78f5
|
/src/main/java/com/itdan/shopmall/dao/TbContentCategoryMapper.java
|
924f7fb250a8f71a21a82c7b1de0c57261de3f54
|
[] |
no_license
|
18376108492/shopmall
|
26ef30fca7670706e39ed34de741002923b71fe5
|
5fb540522d386e9e4a6ceade51f4cd184a16c410
|
refs/heads/master
| 2020-04-17T22:08:37.351354
| 2019-02-27T10:36:06
| 2019-02-27T10:36:06
| 166,982,103
| 5
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,010
|
java
|
package com.itdan.shopmall.dao;
import java.util.List;
import com.itdan.shopmall.entity.TbContentCategory;
import com.itdan.shopmall.entity.TbContentCategoryExample;
import org.apache.ibatis.annotations.Param;
public interface TbContentCategoryMapper {
int countByExample(TbContentCategoryExample example);
int deleteByExample(TbContentCategoryExample example);
int deleteByPrimaryKey(Long id);
int insert(TbContentCategory record);
int insertSelective(TbContentCategory record);
List<TbContentCategory> selectByExample(TbContentCategoryExample example);
TbContentCategory selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") TbContentCategory record, @Param("example") TbContentCategoryExample example);
int updateByExample(@Param("record") TbContentCategory record, @Param("example") TbContentCategoryExample example);
int updateByPrimaryKeySelective(TbContentCategory record);
int updateByPrimaryKey(TbContentCategory record);
}
|
[
"2207161187@qq.com"
] |
2207161187@qq.com
|
26ac8ace1b805780b77bb51e2401bcb4d1e7f039
|
41fe59ea9a363730543d8d9d1b475546e2fd4e08
|
/src/main/java/com/wewebu/ow/server/ui/OwMultipanel.java
|
fa410b443a410a0eba0430b27f8c0b5b99745637
|
[] |
no_license
|
flashboss/workdesk
|
49a8c99e864edf121a31f2b043803ef0e36af633
|
fcf280c918c7d895d55be166e32c7c214045d367
|
refs/heads/master
| 2016-08-11T05:37:44.452860
| 2015-05-22T14:56:27
| 2015-05-22T14:56:27
| 36,077,649
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,313
|
java
|
package com.wewebu.ow.server.ui;
/**
*<p>
* Interface for multi panel views, which build up a continues flow from the first to the last view with validation.
* Implement this class in your OwView and use it together with the OwNavigationView to build multi panel chains.
*</p>
*
*<p><font size="-2">
* Alfresco Workdesk<br/>
* Copyright (c) Alfresco Software, Inc.<br/>
* All rights reserved.<br/>
* <br/>
* For licensing information read the license.txt file or<br/>
* go to: http://wiki.alfresco.com<br/>
*</font></p>
*/
public interface OwMultipanel
{
/** set the view that is next to this view, displays a next button to activate
*
* @param nextView_p OwView
*
*/
public abstract void setNextActivateView(OwView nextView_p) throws Exception;
/** set the view that is prev to this view, displays a prev button to activate
*
* @param prevView_p OwView
*
*/
public abstract void setPrevActivateView(OwView prevView_p) throws Exception;
/** check if view has validated its data and the next view can be enabled
*
* @return boolean true = can forward to next view, false = view has not yet validated
*
*/
public abstract boolean isValidated() throws Exception;
}
|
[
"luca.stancapiano@pronetics.it"
] |
luca.stancapiano@pronetics.it
|
3cb649e4f6c3732917775af3cdee1346f1dcc84b
|
ed2439ff94d9f60dc41964d623e28407bf1b474e
|
/src/main/java/com/ourslook/guower/service/SysLogService.java
|
800802439e38dc05f6cf5e8d38a817ceabbcc373
|
[] |
no_license
|
gittgo/guower
|
6bd87dc03070c982f1ffd9f926790617d382cd8b
|
afc93b982fc880987e67e84bc34004dd321fd595
|
refs/heads/master
| 2022-09-07T07:03:53.814579
| 2020-05-06T22:26:52
| 2020-05-06T22:26:52
| 195,541,320
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 562
|
java
|
package com.ourslook.guower.service;
import com.ourslook.guower.entity.SysLogEntity;
import java.util.List;
import java.util.Map;
/**
* 系统日志
*
*/
public interface SysLogService {
SysLogEntity queryObject(Long id);
List<SysLogEntity> queryList(Map<String, Object> map);
int queryTotal(Map<String, Object> map);
void save(SysLogEntity sysLog);
void update(SysLogEntity sysLog);
void delete(Long id);
void deleteBatch(Long[] ids);
/**
* 获取所有的用户操作名称
* @return
*/
List<String> queryOperationList();
}
|
[
"332860608@qq.com"
] |
332860608@qq.com
|
3a2d2aece0baf21d0ec5b55b4d80301f6f5c151c
|
5d81c3008981649794ae8d09ec5577b098c55efd
|
/src/test/java/io/github/jhipster/application/security/DomainUserDetailsServiceIntTest.java
|
1ccd4f1a75ee959da6c1d8d66d9c8142ae052dc5
|
[] |
no_license
|
BulkSecurityGeneratorProject/ClinicJhipster
|
0e6773bd110e68ff360749f7379651ad433c277e
|
e4151d073f82391f289277baf48d1cfee5dfb3dc
|
refs/heads/master
| 2022-12-17T12:35:15.014811
| 2018-11-01T14:56:46
| 2018-11-01T14:56:46
| 296,686,909
| 0
| 0
| null | 2020-09-18T17:24:55
| 2020-09-18T17:24:54
| null |
UTF-8
|
Java
| false
| false
| 4,658
|
java
|
package io.github.jhipster.application.security;
import io.github.jhipster.application.ClinicJhipsterApp;
import io.github.jhipster.application.domain.User;
import io.github.jhipster.application.repository.UserRepository;
import org.apache.commons.lang3.RandomStringUtils;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.transaction.annotation.Transactional;
import java.util.Locale;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Test class for DomainUserDetailsService.
*
* @see DomainUserDetailsService
*/
@RunWith(SpringRunner.class)
@SpringBootTest(classes = ClinicJhipsterApp.class)
@Transactional
public class DomainUserDetailsServiceIntTest {
private static final String USER_ONE_LOGIN = "test-user-one";
private static final String USER_ONE_EMAIL = "test-user-one@localhost";
private static final String USER_TWO_LOGIN = "test-user-two";
private static final String USER_TWO_EMAIL = "test-user-two@localhost";
private static final String USER_THREE_LOGIN = "test-user-three";
private static final String USER_THREE_EMAIL = "test-user-three@localhost";
@Autowired
private UserRepository userRepository;
@Autowired
private UserDetailsService domainUserDetailsService;
private User userOne;
private User userTwo;
private User userThree;
@Before
public void init() {
userOne = new User();
userOne.setLogin(USER_ONE_LOGIN);
userOne.setPassword(RandomStringUtils.random(60));
userOne.setActivated(true);
userOne.setEmail(USER_ONE_EMAIL);
userOne.setFirstName("userOne");
userOne.setLastName("doe");
userOne.setLangKey("en");
userRepository.save(userOne);
userTwo = new User();
userTwo.setLogin(USER_TWO_LOGIN);
userTwo.setPassword(RandomStringUtils.random(60));
userTwo.setActivated(true);
userTwo.setEmail(USER_TWO_EMAIL);
userTwo.setFirstName("userTwo");
userTwo.setLastName("doe");
userTwo.setLangKey("en");
userRepository.save(userTwo);
userThree = new User();
userThree.setLogin(USER_THREE_LOGIN);
userThree.setPassword(RandomStringUtils.random(60));
userThree.setActivated(false);
userThree.setEmail(USER_THREE_EMAIL);
userThree.setFirstName("userThree");
userThree.setLastName("doe");
userThree.setLangKey("en");
userRepository.save(userThree);
}
@Test
@Transactional
public void assertThatUserCanBeFoundByLogin() {
UserDetails userDetails = domainUserDetailsService.loadUserByUsername(USER_ONE_LOGIN);
assertThat(userDetails).isNotNull();
assertThat(userDetails.getUsername()).isEqualTo(USER_ONE_LOGIN);
}
@Test
@Transactional
public void assertThatUserCanBeFoundByLoginIgnoreCase() {
UserDetails userDetails = domainUserDetailsService.loadUserByUsername(USER_ONE_LOGIN.toUpperCase(Locale.ENGLISH));
assertThat(userDetails).isNotNull();
assertThat(userDetails.getUsername()).isEqualTo(USER_ONE_LOGIN);
}
@Test
@Transactional
public void assertThatUserCanBeFoundByEmail() {
UserDetails userDetails = domainUserDetailsService.loadUserByUsername(USER_TWO_EMAIL);
assertThat(userDetails).isNotNull();
assertThat(userDetails.getUsername()).isEqualTo(USER_TWO_LOGIN);
}
@Test(expected = UsernameNotFoundException.class)
@Transactional
public void assertThatUserCanNotBeFoundByEmailIgnoreCase() {
domainUserDetailsService.loadUserByUsername(USER_TWO_EMAIL.toUpperCase(Locale.ENGLISH));
}
@Test
@Transactional
public void assertThatEmailIsPrioritizedOverLogin() {
UserDetails userDetails = domainUserDetailsService.loadUserByUsername(USER_ONE_EMAIL);
assertThat(userDetails).isNotNull();
assertThat(userDetails.getUsername()).isEqualTo(USER_ONE_LOGIN);
}
@Test(expected = UserNotActivatedException.class)
@Transactional
public void assertThatUserNotActivatedExceptionIsThrownForNotActivatedUsers() {
domainUserDetailsService.loadUserByUsername(USER_THREE_LOGIN);
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
868ed8f869b106fe45395283c8212fd67c423282
|
e2db0fa83f875d309bb940c3157b14e5ed8df2f4
|
/VijayaMamCore/src/daythree/core/MainAnnots.java
|
81b21b96479d8d4ccb16bd679b7c8e045014a0d6
|
[] |
no_license
|
razzaksr/vijayamam
|
7f7b7db1dad9a44d9d87458f2c55597cec78bddd
|
a596503de0a38e8d537db16b7934413948d0ce64
|
refs/heads/master
| 2022-06-23T11:30:41.306707
| 2019-11-08T13:24:16
| 2019-11-08T13:24:16
| 204,878,532
| 0
| 0
| null | 2022-06-21T02:11:49
| 2019-08-28T07:56:11
|
Java
|
UTF-8
|
Java
| false
| false
| 487
|
java
|
package daythree.core;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class MainAnnots
{
public static void main(String[] args)
{
AbstractApplicationContext cont=new ClassPathXmlApplicationContext("daythree.xml");
cont.registerShutdownHook();
Annots a=(Annots)cont.getBean("annots");
System.out.println(a);
}
}
|
[
"razzaksr@gmail.com"
] |
razzaksr@gmail.com
|
6b83537ab4885232230886483e3ba0cd5ed93342
|
22b1fe6a0af8ab3c662551185967bf2a6034a5d2
|
/experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_3256.java
|
5e2784acc44e0846e35e45fc9939c6c76cdb72d5
|
[
"Apache-2.0"
] |
permissive
|
lesaint/experimenting-annotation-processing
|
b64ed2182570007cb65e9b62bb2b1b3f69d168d6
|
1e9692ceb0d3d2cda709e06ccc13290262f51b39
|
refs/heads/master
| 2021-01-23T11:20:19.836331
| 2014-11-13T10:37:14
| 2014-11-13T10:37:14
| 26,336,984
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 151
|
java
|
package fr.javatronic.blog.massive.annotation1.sub1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_3256 {
}
|
[
"sebastien.lesaint@gmail.com"
] |
sebastien.lesaint@gmail.com
|
95b5c775a1ee2681bd290f23caf84d89d392c4b7
|
e838b7c797f2739953f960abae8a5dd7e4349fc1
|
/src/main/java/fr/aumgn/bukkitutils/localization/loaders/MessagesLoader.java
|
5f3bfe98f27bc14a4c47fb03ef030a4e0c9cc5cb
|
[
"MIT"
] |
permissive
|
noogotte/BukkitUtils
|
fa00fb11db20ab4e5c7815db9b88dd38c5b7e559
|
e44c3c75d1ed15b96bc1d39450835a3a99c5d283
|
refs/heads/master
| 2020-12-24T15:49:58.499435
| 2012-09-01T15:45:43
| 2012-09-01T15:45:43
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,145
|
java
|
package fr.aumgn.bukkitutils.localization.loaders;
import java.io.Reader;
import java.text.MessageFormat;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.Map.Entry;
import fr.aumgn.bukkitutils.util.Util;
public abstract class MessagesLoader {
public abstract String[] getExtensions();
public abstract Map<?, ?> loadRaw(Reader reader);
public Map<String, MessageFormat> load(
Locale locale, Reader reader) {
Map<?, ?> loaded = loadRaw(reader);
Map<String, MessageFormat> map = new HashMap<String, MessageFormat>();
for (Entry<?, ?> entry : loaded.entrySet()) {
String key = entry.getKey().toString();
String message = entry.getValue().toString();
map.put(key, parse(locale, message));
}
return map;
}
protected MessageFormat parse(Locale locale, String rawMessage) {
String message = Util.parseColorsMarkup(rawMessage);
message = message.replaceAll("'", "''");
message = message.replaceAll("\\\\", "'");
return new MessageFormat(message, locale);
}
}
|
[
"aumgn@free.fr"
] |
aumgn@free.fr
|
f533522cc3b499c68845bacdbdcc34112660e5aa
|
d8e0a382dead230d5ec0a4065fdfe9f3a6bf3b56
|
/spring-boot-chat/src/main/java/com/chat/model/ChatUser.java
|
550562343125aa6f726533d5ee93e25c33a14bc5
|
[] |
no_license
|
mxuexxmy/spring-boot-okadmin
|
3face6f44decb6a7bdb38a2bd1d45611e0244975
|
22e95cf229de264aa2cad1c5280f9f05a34446d8
|
refs/heads/master
| 2023-01-24T11:59:25.964026
| 2020-11-27T08:43:38
| 2020-11-27T08:43:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 845
|
java
|
package com.chat.model;
import com.mvc.base.model.BaseModel;
import lombok.Data;
import javax.persistence.*;
/**
* <p> ChatUser </p>
* @author: jidn
* @Date : 2020-04-03 16:10:39
*/
@Data
@Table(name="fh_chat_user")
public class ChatUser extends BaseModel {
/**
*
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", unique = true, nullable = false)
private Long id;
/**
* 用户ID
*/
@Column(name= "userId")
private String userId;
/**
* 用户名 可以用中文、数字、英文字母(不区分大小写) ps 不可以使用特殊符号 账号长度在 18位
*/
@Column(name= "username")
private String username;
/**
* 密码
*/
@Column(name= "password")
private String password;
/**
* 盐值
*/
@Column(name= "salt")
private String salt;
}
|
[
"dening1644@163.com"
] |
dening1644@163.com
|
f2c5bd91bf24b40a915a66445fe287242fdfe92a
|
7b797d087d34fabdf7dd0ee3cc89d6d45673768d
|
/pdf/src/main/java/pdf/model/m1/RequirementBO.java
|
c53d25032ff657064c41978803a63bf2b2e36030
|
[] |
no_license
|
fanjingdan012/JavaDetails
|
e1ecfd386e5abf1fa5597de6cf9a81a26a7a066c
|
7a75bf2118391d05c7b8efc991c0a07b5cee5b0d
|
refs/heads/master
| 2022-11-23T03:12:50.077237
| 2021-11-06T04:46:42
| 2021-11-06T04:46:42
| 46,093,675
| 1
| 1
| null | 2022-11-16T12:19:29
| 2015-11-13T02:07:10
|
Java
|
UTF-8
|
Java
| false
| false
| 691
|
java
|
package pdf.model.m1;
public class RequirementBO {
private String name;
private String status;
private String creator;
private String description1;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getCreator() {
return creator;
}
public void setCreator(String creator) {
this.creator = creator;
}
public String getDescription1() {
return description1;
}
public void setDescription1(String description) {
this.description1 = description;
}
}
|
[
"judy.fan@sap.com"
] |
judy.fan@sap.com
|
4373a89bb2b28b20683c0fb3405b584f70ad61b7
|
f378ddd47c8b7de6e9cf1d4228c84f73e9dc59f1
|
/projetos/Untitled/src/com/christiandevs/entities/Exit.java
|
cfeca760c6fd9c8e94a20e1b700f3c222b0883e3
|
[] |
no_license
|
charles-marques/dataset-375
|
29e2f99ac1ba323f8cb78bf80107963fc180487c
|
51583daaf58d5669c69d8208b8c4ed4e009001a5
|
refs/heads/master
| 2023-01-20T07:23:09.445693
| 2020-11-27T22:35:49
| 2020-11-27T22:35:49
| 283,315,149
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 509
|
java
|
package com.christiandevs.entities;
import com.flume2d.Entity;
import com.flume2d.masks.AABB;
public class Exit extends Entity
{
protected String mapFile;
protected String id;
public Exit(int x, int y, int w, int h, String mapFile, String id)
{
super(x, y);
this.id = id;
this.mapFile = mapFile;
setMask(new AABB(w, h));
type = "exit";
}
public void update()
{
// if (overlaps("player") != null)
// world.load(mapFile);
super.update();
}
}
|
[
"suporte@localhost.localdomain"
] |
suporte@localhost.localdomain
|
70b8a1389709d6fa8642271d39b3b5c6dd61832c
|
4a6cc69db16aec71b8ac69abbe86ef427a71353e
|
/ebx/src/main/java/com/metservice/neon/ShellLanguage.java
|
bd12195e2ae86c0654ae5c51ee411d6b105864f2
|
[] |
no_license
|
craig-a-roach/geowx
|
0532c1d4dbea383ad229200b208aaebbdbbe2b5d
|
7cd7e2b7254f4a6b38762f4965dacb290f47bad1
|
refs/heads/master
| 2021-03-12T22:04:17.573558
| 2014-04-28T06:39:09
| 2014-04-28T06:39:09
| 9,379,471
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 952
|
java
|
/*
* Copyright 2012 Meteorological Service of New Zealand Limited all rights reserved. No part of this work may be stored
* in a retrievable system, transmitted or reproduced in any way without the prior written permission of the
* Meteorological Service of New Zealand
*/
package com.metservice.neon;
/**
* @author roach
*/
enum ShellLanguage {
EcmaScript, Python, Xml, Shell, Text;
public static ShellLanguage newInstance(String qcctwName) {
if (qcctwName == null || qcctwName.length() == 0) throw new IllegalArgumentException("string is null or empty");
final String qcctwBase = NeonFileExtension.qcctwBaseName(qcctwName);
if (qcctwBase.endsWith(NeonFileExtension.SuffixEcmascript)) return EcmaScript;
if (qcctwBase.endsWith(NeonFileExtension.SuffixXml)) return Xml;
if (qcctwBase.endsWith(NeonFileExtension.SuffixPython)) return Python;
if (qcctwBase.endsWith(NeonFileExtension.SuffixShell)) return Shell;
return Text;
}
}
|
[
"roach@metservice.com"
] |
roach@metservice.com
|
f351a651a0c973c3c62c8f7269a7b1a9b3e44c6f
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/2/2_705b4aed386fbeae4b70746dfc971a9dd1da32d7/TopologyViewerDevice/2_705b4aed386fbeae4b70746dfc971a9dd1da32d7_TopologyViewerDevice_t.java
|
b2364a78bbd6bb441248aadbbd6c6a5514aaec40
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 4,288
|
java
|
package at.netcrawler.component;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Point;
import java.awt.Rectangle;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.imageio.ImageIO;
import at.andiwand.library.component.GraphViewerVertex;
import at.andiwand.library.graphics.GraphicsUtil;
import at.netcrawler.network.Capability;
import at.netcrawler.network.model.NetworkDevice;
import at.netcrawler.network.model.NetworkModelAdapter;
import at.netcrawler.network.topology.TopologyDevice;
public class TopologyViewerDevice extends GraphViewerVertex {
private static enum DeviceImage {
UNKNOWN(null, "unknown.png"),
ROUTER(Capability.ROUTER, "router.png"),
SWITCH(Capability.SWITCH, "switch.png");
private static final Map<Capability, DevicePainter> PAINTER_MAP = new HashMap<Capability, DevicePainter>();
static {
for (DeviceImage deviceImage : values()) {
PAINTER_MAP.put(deviceImage.capability, deviceImage.painter);
}
}
public static Map<Capability, DevicePainter> getPainterMap() {
return new HashMap<Capability, DevicePainter>(PAINTER_MAP);
}
private static Image loadImage(String imageName) {
try {
return ImageIO.read(TopologyViewerDevice.class
.getResource(imageName));
} catch (IOException e) {
throw new RuntimeException(e);
}
}
private final Capability capability;
private final DevicePainter painter;
private DeviceImage(Capability capability, String imageName) {
this(capability, loadImage(imageName));
}
private DeviceImage(Capability capability, Image image) {
this(capability, new ImageDevicePainter(image));
}
private DeviceImage(Capability capability, DevicePainter painter) {
this.capability = capability;
this.painter = painter;
}
}
private static final int HOSTNAME_GAP_Y = 5;
private class HostnameAdapter extends NetworkModelAdapter {
public void valueChanged(String key, Object value, Object oldValue) {
if (!key.equals(NetworkDevice.HOSTNAME)) return;
hostname = (String) value;
}
}
private class CapabilityAdapter extends NetworkModelAdapter {
public void valueChanged(String key, Object value, Object oldValue) {
if (!key.equals(NetworkDevice.MAJOR_CAPABILITY)) return;
setCapability((Capability) value);
}
}
private final Map<Capability, DevicePainter> painterMap = new HashMap<Capability, DevicePainter>(
DeviceImage.getPainterMap());
private final NetworkDevice networkDevice;
private String hostname;
private Capability capability;
private DevicePainter painter;
public TopologyViewerDevice(TopologyDevice device) {
super(device);
this.networkDevice = device.getNetworkDevice();
this.hostname = (String) networkDevice.getValue(NetworkDevice.HOSTNAME);
setCapability((Capability) networkDevice
.getValue(NetworkDevice.MAJOR_CAPABILITY));
networkDevice.addListener(new HostnameAdapter());
networkDevice.addListener(new CapabilityAdapter());
}
@Override
public Dimension getSize() {
return painter.getSize();
}
public TopologyDevice getTopologyDevice() {
return (TopologyDevice) getVertex();
}
public NetworkDevice getNetworkDevice() {
return networkDevice;
}
public DevicePainter getPainter(Capability capability) {
DevicePainter painter = painterMap.get(capability);
if (painter == null) painter = painterMap.get(null);
return painter;
}
private void setCapability(Capability capability) {
this.capability = capability;
painter = getPainter(capability);
revalidate();
fireRepaint();
}
public void setPainter(Capability capability, DevicePainter painter) {
painterMap.put(capability, painter);
setCapability(this.capability);
}
@Override
public void paint(Graphics g) {
painter.paint(g, this);
Rectangle bounds = getBounds();
Point xCenter = new Point(getMiddle().x, bounds.y + bounds.height
+ HOSTNAME_GAP_Y);
if (hostname == null) hostname = "Loading...";
GraphicsUtil graphicsUtil = new GraphicsUtil(g);
graphicsUtil.drawXCenterString(xCenter, hostname);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
b2bcd21b031f61815aec34ea7beabd8a1511eafe
|
fb0e19758824bbbd5dda39a8ef911e5590eb1841
|
/javaweb/redis&dome/src/cn/aqqje/service/ProvinceService.java
|
a4efca817f6237c8aa2879d5f1bbd7f45138bfe1
|
[] |
no_license
|
aqqje/bexercise
|
e16ceefd5a89ce75e20fa419e212ffaf15ff5a5f
|
bcc6a52d147d5b910cd4d495501bb986007168f3
|
refs/heads/master
| 2022-12-23T17:42:58.965990
| 2021-05-02T10:45:34
| 2021-05-02T10:45:34
| 182,517,809
| 0
| 0
| null | 2022-12-16T15:45:43
| 2019-04-21T10:07:28
|
Java
|
UTF-8
|
Java
| false
| false
| 179
|
java
|
package cn.aqqje.service;
import cn.aqqje.domain.Province;
import java.util.List;
public interface ProvinceService {
List<Province> findAll();
String findAllJson();
}
|
[
"1042136232@qq.com"
] |
1042136232@qq.com
|
dbf6c23a78f7401055c92495b9737c85e8313d40
|
b4814bfedb86a4b6c636b2e801e396c1da0f81c7
|
/mil.dod.th.ose.bbb.platform/src/mil/dod/th/ose/bbb/platform/BeagleBoneBlackGpioManager.java
|
f83337cf71ad0011629ad05423b02f0b4c52b0ae
|
[
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
sofwerx/OSUS-R
|
424dec40db77c58c84ed2f077310c097fae3430f
|
2be47821355573149842e1dd0d8bbd75326da8a7
|
refs/heads/master
| 2020-04-09T00:38:55.382392
| 2018-12-10T18:58:29
| 2018-12-10T18:58:29
| 159,875,746
| 0
| 0
|
NOASSERTION
| 2018-11-30T20:34:45
| 2018-11-30T20:34:45
| null |
UTF-8
|
Java
| false
| false
| 4,717
|
java
|
//==============================================================================
// This software is part of the Open Standard for Unattended Sensors (OSUS)
// reference implementation (OSUS-R).
//
// To the extent possible under law, the author(s) have dedicated all copyright
// and related and neighboring rights to this software to the public domain
// worldwide. This software is distributed without any warranty.
//
// You should have received a copy of the CC0 Public Domain Dedication along
// with this software. If not, see
// <http://creativecommons.org/publicdomain/zero/1.0/>.
//==============================================================================
package mil.dod.th.ose.bbb.platform;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import aQute.bnd.annotation.component.Component;
import aQute.bnd.annotation.component.Reference;
import mil.dod.th.ose.utils.FileService;
/**
* Service used to manage the state of the BeagleBone Black's GPIO pins.
*
* @author cweisenborn
*/
@Component(provide = BeagleBoneBlackGpioManager.class)
public class BeagleBoneBlackGpioManager
{
private static final String GPIO_PREFIX = "gpio";
private static final String GPIO_PATH = "/sys/class/" + GPIO_PREFIX;
private FileService m_FileService;
@Reference
public void setFileService(final FileService fileService)
{
m_FileService = fileService;
}
/**
* Method that sets the specified GPIO pin to either the {@link GpioState#HIGH} or {@link GpioState#LOW}.
*
* @param pin
* The integer that represents the pin whose state should be set.
* @param state
* The state the specified pin should be set to.
* @throws IllegalStateException
* Thrown if the specified pin's state cannot be set.
*/
public void setGpioState(final int pin, final GpioState state)
{
final String gpioStr = GPIO_PREFIX + pin;
final File gpioValue = m_FileService.getFile(GPIO_PATH, gpioStr + "/value");
try
{
if (!gpioValue.exists())
{
enablePinAsOutput(pin);
}
try (FileOutputStream fos = m_FileService.createFileOutputStream(gpioValue, false);
PrintStream printStream = m_FileService.createPrintStream(fos))
{
printStream.print(state.toValue());
}
}
catch (final IOException ex)
{
throw new IllegalStateException(String.format("Cannot set GPIO [%s] to state [%s] as it does not exists.",
pin, state), ex);
}
}
/**
* Method that enables and sets the specified GPIO pin as output.
*
* @param pin
* The pin to be enabled and set as output.
* @throws IOException
* Thrown if the pin cannot be enabled or setup to output.
*/
private void enablePinAsOutput(final int pin) throws IOException
{
final File exportGpio = m_FileService.getFile(GPIO_PATH, "export");
try (FileOutputStream fos = m_FileService.createFileOutputStream(exportGpio, false);
PrintStream printStream = m_FileService.createPrintStream(fos))
{
printStream.print(pin);
}
final String gpioStr = GPIO_PREFIX + pin + "/direction";
final File gpioDirection = m_FileService.getFile(GPIO_PATH, gpioStr);
try (FileOutputStream fos = m_FileService.createFileOutputStream(gpioDirection, false);
PrintStream printStream = m_FileService.createPrintStream(fos))
{
printStream.print("out");
}
}
/**
* Enumeration used to represent the output state of a GPIO pin.
*/
public enum GpioState
{
/**
* Enum that represents the pin high state.
*/
HIGH(1),
/**
* Enum that represents the pin low state.
*/
LOW(0);
private int m_State;
/**
* Private constructor used to set the integer value of the enumeration.
*
* @param state
* The integer value the state enumeration represents.
*/
GpioState(final int state)
{
m_State = state;
}
/**
* Methods that returns the integer representation of the state enumeration.
*
* @return
* Integer value that the state enumeration represents.
*/
public int toValue()
{
return m_State;
}
}
}
|
[
"darren.landoll@udri.udayton.edu"
] |
darren.landoll@udri.udayton.edu
|
48a2ac216bac2880b0b7348ee5a21e957a2dac83
|
bdba19cc0346b5719e200c74159896391117723f
|
/tps/travelPortalRest(Aug 15, 2016)/src/igc/tech/com/dao/AddressDao.java
|
8aa01ce4b4b1c3309594cc24405853e7b35aad91
|
[] |
no_license
|
tilakpeace/tps1
|
181f2812b640cf2f28624a825047c19ad01db28a
|
dd164199c635dd6783f63248759de0073750491e
|
refs/heads/master
| 2021-01-22T03:06:19.769511
| 2017-02-06T15:41:04
| 2017-02-06T15:41:04
| 81,099,126
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 315
|
java
|
package igc.tech.com.dao;
import igc.tech.com.model.AddressModel;
import java.util.List;
/**
* Created by IGC TECHNOLOGY on 3/16/2016.
*/
public interface AddressDao {
public List procAddress(AddressModel addressModel,
String user,
String flag);
}
|
[
"tilakpeace0000@gmail.com"
] |
tilakpeace0000@gmail.com
|
51c2e3bd16d98a67b784782c7fff9b201ba49011
|
a715e8312a90d099b72c24e5b7da1372c9fe67fb
|
/android/android/src/com/android/tools/idea/editors/ProjectSyncStatusNotificationProvider.java
|
b7e23771c66c231819dbedcc5717940f9dd75335
|
[
"Apache-2.0"
] |
permissive
|
wiltonlazary/bugvm-studio
|
ff98c1beca1f890013aa05ecd67f137a14a70c32
|
5861389424a51181c58178576c78cf35c0ceb1b5
|
refs/heads/master
| 2021-01-24T20:58:41.730805
| 2015-12-18T19:34:14
| 2015-12-18T19:34:14
| 56,322,614
| 2
| 1
| null | 2016-04-15T13:34:56
| 2016-04-15T13:34:56
| null |
UTF-8
|
Java
| false
| false
| 4,890
|
java
|
/*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.tools.idea.editors;
import com.android.tools.idea.gradle.GradleSyncState;
import com.android.tools.idea.gradle.project.GradleProjectImporter;
import com.intellij.ide.actions.ShowFilePathAction;
import com.intellij.openapi.application.PathManager;
import com.intellij.openapi.externalSystem.service.notification.ExternalSystemNotificationManager;
import com.intellij.openapi.fileEditor.FileEditor;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Key;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.ui.EditorNotificationPanel;
import com.intellij.ui.EditorNotifications;
import com.intellij.util.ThreeState;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.io.File;
import static com.android.tools.idea.gradle.util.GradleUtil.GRADLE_SYSTEM_ID;
import static com.android.tools.idea.gradle.util.Projects.*;
import static com.intellij.ide.actions.ShowFilePathAction.openFile;
import static com.intellij.openapi.externalSystem.service.notification.NotificationSource.PROJECT_SYNC;
/**
* Notifies users that a Gradle project "sync" is either being in progress or failed.
*/
public class ProjectSyncStatusNotificationProvider extends EditorNotifications.Provider<EditorNotificationPanel> {
private static final Key<EditorNotificationPanel> KEY = Key.create("android.gradle.sync.status");
@NotNull private final Project myProject;
public ProjectSyncStatusNotificationProvider(@NotNull Project project) {
myProject = project;
}
@Override
@NotNull
public Key<EditorNotificationPanel> getKey() {
return KEY;
}
@Override
@Nullable
public EditorNotificationPanel createNotificationPanel(@NotNull VirtualFile file, @NotNull FileEditor fileEditor) {
if (!isBuildWithGradle(myProject)) {
return null;
}
GradleSyncState syncState = GradleSyncState.getInstance(myProject);
if (!syncState.areSyncNotificationsEnabled()) {
return null;
}
if (syncState.isSyncInProgress()) {
EditorNotificationPanel panel = new EditorNotificationPanel();
panel.setText("Gradle project sync in progress...");
return panel;
}
if (lastGradleSyncFailed(myProject)) {
String text = "Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work properly.";
return new SyncProblemNotificationPanel(text, true /* Show "Try Again" link */);
}
if (hasErrors(myProject)) {
String text = "Project sync succeeded. Open the 'Messages' view to see the errors found.";
return new SyncProblemNotificationPanel(text, false);
}
ThreeState gradleSyncNeeded = syncState.isSyncNeeded();
if (gradleSyncNeeded == ThreeState.YES) {
return new StaleGradleModelNotificationPanel();
}
return null;
}
private class StaleGradleModelNotificationPanel extends EditorNotificationPanel {
StaleGradleModelNotificationPanel() {
setText("Gradle files have changed since last project sync. A project sync may be necessary for the IDE to work properly.");
createActionLabel("Sync Now", new Runnable() {
@Override
public void run() {
GradleProjectImporter.getInstance().requestProjectSync(myProject, null);
}
});
}
}
private class SyncProblemNotificationPanel extends EditorNotificationPanel {
SyncProblemNotificationPanel(@NotNull String text, boolean trySyncAgain) {
setText(text);
if (trySyncAgain) {
createActionLabel("Try Again", new Runnable() {
@Override
public void run() {
GradleProjectImporter.getInstance().requestProjectSync(myProject, null);
}
});
}
createActionLabel("Open 'Messages' View", new Runnable() {
@Override
public void run() {
ExternalSystemNotificationManager.getInstance(myProject).openMessageView(GRADLE_SYSTEM_ID, PROJECT_SYNC);
}
});
createActionLabel("Show Log in " + ShowFilePathAction.getFileManagerName(), new Runnable() {
@Override
public void run() {
File logFile = new File(PathManager.getLogPath(), "idea.log");
openFile(logFile);
}
});
}
}
}
|
[
"github@ibinti.com"
] |
github@ibinti.com
|
99a93890e097cb65157322bc6e10754395dbc145
|
f9b9b154b2e3f89af48b2844ae8147dd5a997f06
|
/src/atcoder/ChokudaiSpeedrun001/CSR001A.java
|
5d8e7535449e5eb5b90f47910d866cd828bee04d
|
[] |
no_license
|
YutaNishino/competitive_programming
|
610116fb2d6b3bc32c4e3a33defc5ba948e1a7d4
|
bc01870c3ce47f04b77cd9add5d03f2746f1c7fd
|
refs/heads/master
| 2018-09-10T09:37:45.656683
| 2018-06-23T11:55:33
| 2018-06-23T11:55:33
| 119,142,962
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,731
|
java
|
package atcoder.ChokudaiSpeedrun001;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class CSR001A {
int n;
public static void main(String args[]) {
new CSR001A().run();
}
void run() {
FastReader sc = new FastReader();
n = sc.nextInt();
int max = 0;
for (int i = 0; i < n; i++) {
int a = sc.nextInt();
if (max < a) {
max = a;
}
}
System.out.println(max);
}
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements())
{
try
{
st = new StringTokenizer(br.readLine());
}
catch (IOException e)
{
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt()
{
return Integer.parseInt(next());
}
long nextLong()
{
return Long.parseLong(next());
}
double nextDouble()
{
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try
{
str = br.readLine();
}
catch (IOException e)
{
e.printStackTrace();
}
return str;
}
}
}
|
[
"ynishino.omoikane@gmail.com"
] |
ynishino.omoikane@gmail.com
|
d7de4974e957c132a12c12205170dec97e038541
|
cd8a00ce4f8bffb4a0066a8ba0fc9ecf2762846b
|
/TTISEFAZRec/src/br/com/tti/sefaz/xmlgenerate/cte/XMLWrapperQueryCTeImpl.java
|
0067b4aed73c1147797c9acfe8d7419c47372a12
|
[] |
no_license
|
sergioartero/TTIRec
|
45690bc2e054aac1be28d9f846c71c52f9595a56
|
ee65836c6734107c0b4033252228bc92bde1b9ba
|
refs/heads/master
| 2020-03-28T22:13:17.018969
| 2016-07-29T18:12:06
| 2016-07-29T18:12:17
| null | 0
| 0
| null | null | null | null |
MacCentralEurope
|
Java
| false
| false
| 3,387
|
java
|
package br.com.tti.sefaz.xmlgenerate.cte;
import java.util.List;
import javax.xml.bind.JAXB;
import javax.xml.bind.JAXBElement;
import br.com.tti.sefaz.classes.consulta.cte.TProcEvento;
import br.com.tti.sefaz.classes.consulta.cte.TRetConsSitCTe;
import br.com.tti.sefaz.classes.consulta.cte.TRetEvento;
import br.com.tti.sefaz.event.xml.classes.ret.TretEvento;
import br.com.tti.sefaz.xml.XMLGenerator;
import br.com.tti.sefaz.xmlgenerate.XMLWrapperQuery;
public class XMLWrapperQueryCTeImpl implements XMLWrapperQuery {
private static final long serialVersionUID = 1L;
private TRetConsSitCTe consulta;
private XMLGenerator xmlg;
private String xmlresult;
private String chave;
private String cstat;
private String xmotivo;
private String xmlProtCancel;
private String dhsefaz;
private String protocolo;
public XMLWrapperQueryCTeImpl(String xmlResult) throws Exception {
super();
xmlResult = this.getStringXML(xmlResult);
this.xmlg = XMLGenerator
.createXMLGenerator("br.com.tti.sefaz.classes.consulta.cte");
this.consulta = ((JAXBElement<TRetConsSitCTe>) this.xmlg
.toObject(xmlResult)).getValue();
this.xmlresult = xmlResult;
this.cstat = this.consulta.getCStat();
this.xmotivo = this.consulta.getXMotivo();
if (this.consulta.getProtCTe() != null
&& this.consulta.getProtCTe().getInfProt() != null) {
this.dhsefaz = this.consulta.getProtCTe().getInfProt()
.getDhRecbto().toString();
this.protocolo = this.consulta.getProtCTe().getInfProt().getNProt();
this.chave = this.consulta.getProtCTe().getInfProt().getChCTe();
}
List<TProcEvento> events = this.consulta.getProcEventoCTe();
if (!events.isEmpty()) {
for (TProcEvento event : events) {
TRetEvento eventret = event.getRetEventoCTe();
if (eventret.getInfEvento().getTpEvento().equals("110111")
&& eventret.getInfEvento().getCStat().equals("135")) {
this.cstat = "101";
this.xmotivo = "Cancelamento NF-e homologado";
this.xmlProtCancel = eventret.getInfEvento().getNProt()
+ " " + eventret.getInfEvento().getDhRegEvento();
// this.protocolo = eventret.getInfEvento().getNProt();
/*
* this.dhsefaz = eventret.getInfEvento().getDhRegEvento()
* .toString();
*/
this.chave = eventret.getInfEvento().getChCTe();
}
}
}
}
private String getStringXML(String xml) {
int pos1 = xml.indexOf("<retConsSitCTe");
int pos2 = xml.indexOf("</retConsSitCTe>");
if (pos1 != -1 && pos2 != -1)
return xml.substring(pos1, pos2 + "</retConsSitCTe>".length());
return xml;
}
@Override
public String getCStat() {
return this.cstat;
}
@Override
public String getXMotivo() {
if (!this.cstat.equals("100") && !this.cstat.equals("101")) {
return "Rejeic„o: " + this.xmotivo;
}
return this.xmotivo;
}
@Override
public String getCh() {
return this.chave;
}
@Override
public String getDhSefaz() {
return this.dhsefaz;
}
@Override
public String getProt() {
return this.protocolo;
}
@Override
public String getTpAmb() {
// TODO Auto-generated method stub
return this.consulta.getTpAmb();
}
@Override
public String getXml() {
return this.xmlresult;
}
@Override
public String getXmlProtocol() {
// TODO Auto-generated method stub
return this.xmlresult;
}
@Override
public String getProtCancel() {
return this.xmlProtCancel;
}
}
|
[
"crhisnoriega@gmail.com"
] |
crhisnoriega@gmail.com
|
d86c26374ccd78fa0e59d4bee1bc4209f25189f5
|
6a7c4e586ea998ac3f037df4f37e3176e77febb2
|
/src/com/sanguine/webclub/dao/clsWebClubCompanyTypeMasterDaoImpl.java
|
6457e6078f2f5741c2aeebdb88c7bb75757f8c7a
|
[] |
no_license
|
puneteamsangsoftwares/SanguineERP
|
ef635a953b7f2ad24e7c53d28472f9b09ccce1cb
|
9c603a4591d165e6975931f53847aa4a97a0a504
|
refs/heads/master
| 2022-12-25T05:02:27.601147
| 2021-01-12T13:18:11
| 2021-01-12T13:18:11
| 215,270,060
| 0
| 1
| null | 2019-10-15T10:54:03
| 2019-10-15T10:22:47
|
Java
|
UTF-8
|
Java
| false
| false
| 1,116
|
java
|
package com.sanguine.webclub.dao;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import com.sanguine.webclub.model.clsWebClubCompanyTypeMasterModel;
import com.sanguine.webclub.model.clsWebClubCompanyTypeMasterModel_ID;
@Repository("clsWebClubCompanyTypeMasterDao")
public class clsWebClubCompanyTypeMasterDaoImpl implements clsWebClubCompanyTypeMasterDao {
@Autowired
private SessionFactory WebClubSessionFactory;
@Override
public void funAddUpdateWebClubCompanyTypeMaster(clsWebClubCompanyTypeMasterModel objMaster) {
WebClubSessionFactory.getCurrentSession().saveOrUpdate(objMaster);
}
@Override
public clsWebClubCompanyTypeMasterModel funGetWebClubCompanyTypeMaster(String docCode, String clientCode) {
return (clsWebClubCompanyTypeMasterModel) WebClubSessionFactory.getCurrentSession().get(clsWebClubCompanyTypeMasterModel.class, new clsWebClubCompanyTypeMasterModel_ID(docCode, clientCode));
}
}
|
[
"vinayakborwal95@gmail.com"
] |
vinayakborwal95@gmail.com
|
fdd1a7c12b98ee141e93f276431a0c026af8b231
|
c0e9e4243eda8fa2d109b0ba84da85698f1b5767
|
/Pract03/Anampa-Cruz/JPA_CRUD/src/entity/Reporte.java
|
c473dc4dbc3d9612da4dd8680a3e63f4b5dfcf5f
|
[] |
no_license
|
gcoronelc/ISIL_APL__EMP_I_2017-1
|
db05897aed3ab89eb18eabbb9ca59db14e1a9f5a
|
2db299043baf7814cfbb4916c30a1af2a00a44f8
|
refs/heads/master
| 2021-01-18T16:01:48.380202
| 2017-06-30T09:54:14
| 2017-06-30T09:54:14
| 86,702,583
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,924
|
java
|
/**
*
* @author ERIC GUSTAVO CORONEL CASTILLO
* @email gcoronelc@gmail.com
*/
package entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
@Entity
@Table(name = "reporte")
@NamedQueries({
@NamedQuery(name = "Reporte.findAll", query = "select a from Reporte a")
})
public class Reporte implements Serializable {
private static final long serialVersionUID = 3340106145531621062L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "rep_id")
private Integer id;
@Column(name = "rep_local", length = 50, nullable = false)
private String local;
@Column(name = "rep_tipo", length = 50, nullable = false)
private String tipo;
@Column(name = "rep_gravedad")
private String gravedad;
@Column(name = "rep_descripcion")
private String descripcion;
@Column(name = "rep_fecha")
private String fecha;
@Column(name = "hora")
private String hora;
@Column(name = "Recomendacion")
private String recomendacion;
public Reporte() {
}
public Reporte(String local, String tipo, String gravedad,String descripcion, String fecha, String hora, String recomendacion) {
this.local = local;
this.tipo = tipo;
this.gravedad = gravedad;
this.descripcion = descripcion;
this.fecha = fecha;
this.hora = hora;
this.recomendacion = recomendacion;
}
public String getLocal() {
return local;
}
public void setLocal(String local) {
this.local = local;
}
public String getTipo() {
return tipo;
}
public void setTipo(String tipo) {
this.tipo = tipo;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getGravedad() {
return gravedad;
}
public void setGravedad(String gravedad) {
this.gravedad = gravedad;
}
public String getDescripcion() {
return descripcion;
}
public void setDescripcion(String descripcion) {
this.descripcion = descripcion;
}
public String getFecha() {
return fecha;
}
public void setFecha(String fecha) {
this.fecha = fecha;
}
public String getHora() {
return hora;
}
public void setHora(String hora) {
this.hora = hora;
}
public String getRecomendacion() {
return recomendacion;
}
public void setRecomendacion(String recomendacion) {
this.recomendacion = recomendacion;
}
public Object[] toRowData() {
Object[] row;
// row = new Object[]{this.getId(), this.getApellido(), this.getNombre(), this.getNota()};
row = new Object[]{id, local, tipo, gravedad, descripcion, fecha, hora, recomendacion};
return row;
}
}
|
[
"gcoronelc@gmail.com"
] |
gcoronelc@gmail.com
|
df637563d38830c03bfea9af644e77ba2bb81426
|
8c49003ae8e7b5662a9ee3c79abdb908463bef41
|
/service-community/src/main/java/com/java110/community/dao/ICommunityMemberV1ServiceDao.java
|
8269e1aa0ae6b719894c1e9a0ac83ccfc0ea77ba
|
[
"Apache-2.0"
] |
permissive
|
java110/MicroCommunity
|
1cae5db3f185207fdabe670eedf89cdc5c413676
|
fbcdd1974f247b020114d3c9b3f649f9e48d3182
|
refs/heads/master
| 2023-08-05T13:44:19.646780
| 2023-01-09T10:09:54
| 2023-01-09T10:09:54
| 129,351,237
| 820
| 381
|
Apache-2.0
| 2023-02-22T07:05:27
| 2018-04-13T05:15:52
|
Java
|
UTF-8
|
Java
| false
| false
| 2,288
|
java
|
/*
* Copyright 2017-2020 吴学文 and java110 team.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.java110.community.dao;
import com.java110.utils.exception.DAOException;
import com.java110.entity.merchant.BoMerchant;
import com.java110.entity.merchant.BoMerchantAttr;
import com.java110.entity.merchant.Merchant;
import com.java110.entity.merchant.MerchantAttr;
import java.util.List;
import java.util.Map;
/**
* 类表述:
* add by 吴学文 at 2021-09-18 13:07:56 mail: 928255095@qq.com
* open source address: https://gitee.com/wuxw7/MicroCommunity
* 官网:http://www.homecommunity.cn
* 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
* // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
*/
public interface ICommunityMemberV1ServiceDao {
/**
* 保存 小区成员信息
* @param info
* @throws DAOException DAO异常
*/
int saveCommunityMemberInfo(Map info) throws DAOException;
/**
* 查询小区成员信息(instance过程)
* 根据bId 查询小区成员信息
* @param info bId 信息
* @return 小区成员信息
* @throws DAOException DAO异常
*/
List<Map> getCommunityMemberInfo(Map info) throws DAOException;
/**
* 修改小区成员信息
* @param info 修改信息
* @throws DAOException DAO异常
*/
int updateCommunityMemberInfo(Map info) throws DAOException;
/**
* 查询小区成员总数
*
* @param info 小区成员信息
* @return 小区成员数量
*/
int queryCommunityMembersCount(Map info);
}
|
[
"928255095@qq.com"
] |
928255095@qq.com
|
2c4e79828c13fc3bfab2841af53422fc20ef601a
|
d7dd1c81c3324c03ae8b70cc68648e2660c8a5b8
|
/tcc-dto-ddo/src/main/java/org/ihtsdo/otf/tcc/ddo/package-info.java
|
a7c43a421e3b8fab8bdf35480e717da6c8da31a1
|
[] |
no_license
|
WestCoastInformatics/OTF-Versioning-Service
|
306f8101d1139c04110db66cd68a5431aabe42e3
|
1cceb9ced0147c366322bdd216220b8b0b51bb15
|
refs/heads/master
| 2020-12-31T03:26:04.682103
| 2013-12-23T19:18:32
| 2013-12-23T19:18:32
| 15,402,615
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,055
|
java
|
/*
* Copyright 2013 International Health Terminology Standards Development Organisation.
*
* 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.
*/
@javax.xml.bind.annotation.XmlSchema (
namespace = "http://display.object.jaxb.otf.ihtsdo.org"
)
package org.ihtsdo.otf.tcc.ddo;
/**
* ddo = Data Display Objects. Objects that represent the information necessary
* to display terminology component chronicles in a user interface without
* requiring UI callbacks to get additional data. This data is not
* GUI technology specific.
*/
|
[
"campbell@informatics.com"
] |
campbell@informatics.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.