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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ee811a31478939d8edd8c1f12849057baaf34c8d
|
b47ff5c1d105cd3c9866cd299f75634cbe7c2d71
|
/src/main/java/net/sourceforge/jenesis4java/Import.java
|
04ee6abb515b1ae7897b148e1e06453fb08eac51
|
[] |
no_license
|
andyglick/jenesis4java
|
3ac70b791fd6108e298a33cc8686c8be4b183890
|
ddfe78d64df818b3c6ca865dc0e9d7166af50920
|
refs/heads/master
| 2023-08-15T16:09:33.695138
| 2015-11-16T06:31:47
| 2015-11-16T06:31:47
| 52,171,705
| 0
| 5
| null | 2022-11-09T20:57:55
| 2016-02-20T19:37:28
|
Java
|
UTF-8
|
Java
| false
| false
| 2,242
|
java
|
package net.sourceforge.jenesis4java;
/*
* #%L
* Jenesis 4 Java Code Generator
* %%
* Copyright (C) 2000 - 2015 jenesis4java
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This 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 Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
* #L%
*/
/**
* Copyright (C) 2008, 2010 Richard van Nieuwenhoven - ritchie [at] gmx [dot] at
* Copyright (C) 2000, 2001 Paul Cody Johnston - pcj@inxar.org <br>
* This file is part of Jenesis4java. Jenesis4java is free software: you can
* redistribute it and/or modify it under the terms of the GNU Lesser General
* Public License as published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version.<br>
* Jenesis4java is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.<br>
* You should have received a copy of the GNU Lesser General Public License
* along with Jenesis4java. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* <code>Declaration</code> subinterface for import declarations at the
* beginning of a compilation unit.
*/
public interface Import extends Declaration {
/**
* Gets the name of the class or package to be imported.
*/
String getName();
/**
* Returns <code>true</code> if this import is a single-type import,
* <code>false</code> if it is an import-type-on-demand.
*/
boolean isSingle();
/**
* Sets the name of the class or package to be imported.
*/
Import setName(String name);
}
|
[
"ritchie@gmx.at"
] |
ritchie@gmx.at
|
5cdc4ccc8d2e5a1f752f75585ee7adf072ef56e6
|
7f95b0c2d6e1922aeb64d0ba0a52698d17b6a5f2
|
/product-service/admin/src/main/java/com/gemini/business/admin/AdminApplication.java
|
02cbb9cef353f908baa6f6f7f64e20ddb513dbf2
|
[] |
no_license
|
xiaominglol/product-cloud
|
35cb8cc50748d1748e0e64737d5ab1b95ecf53ef
|
a0227879f92cc85a72839d34530ea5514bf3ed5e
|
refs/heads/master
| 2020-11-25T21:44:39.903145
| 2020-03-30T06:34:30
| 2020-03-30T06:34:30
| 228,858,639
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 670
|
java
|
package com.gemini.business.admin;
//import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
@ComponentScan("com.gemini")
//nacos ไธๅ่ฟไธชๆณจ่งฃไน่ฝๆณจๅ
@EnableDiscoveryClient
//apollo ไธๅฎ่ฆๅ
//@EnableApolloConfig
@SpringBootApplication
public class AdminApplication {
public static void main(String[] args) {
SpringApplication.run(AdminApplication.class, args);
}
}
|
[
"474345633@qq.com"
] |
474345633@qq.com
|
6e22a5bd6816fa4e5d37d3167bec843152fb6732
|
3c7ffe2cdfa881b96399ab06348aae73989bcbfd
|
/java_designMode/src/main/java/proxy/dynamicProxy/soundCode/InvocationHandler.java
|
3aec4e063748420d2720b0ac69d464ddb20e5d38
|
[] |
no_license
|
chen159jin/designmode_note
|
2ae9f72d7bd2c7c26fce10e64ef0276c9ea629d3
|
e938c66cd352bdffc104ed0dc0bc650dc5bc1fb9
|
refs/heads/master
| 2021-10-08T00:15:50.006887
| 2018-12-06T08:21:13
| 2018-12-06T08:21:13
| 103,944,255
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 345
|
java
|
package proxy.dynamicProxy.soundCode;
import java.lang.reflect.Method;
/**
* @author Jin
* @Title: InvocationHandler
* @ProjectName designmode_note
* @Description: TODO
* @date 2018/12/6/00610:42
*/
public interface InvocationHandler {
public Object invoke(Object proxy, Method method, Object[] args)
throws Throwable;
}
|
[
"123@163.com"
] |
123@163.com
|
6fdf842f50ab770ae17e62f2709100c3babf6e84
|
9e246d2294f2ce18aa13110f5d6fa53546643b6a
|
/src/main/java/io/github/mcdoc/application/service/mapper/UserMapper.java
|
c77ed9649e8de41ad2001b51243a60ee42669d93
|
[] |
no_license
|
wissem-haouari/mcdoc-application
|
19f92562567cd8cd50b967862239c55c02de9519
|
29b7b468aae1c83d7d818c08d645f2b188308153
|
refs/heads/master
| 2021-07-11T03:38:38.282618
| 2019-04-12T16:22:18
| 2019-04-12T16:22:18
| 181,044,097
| 0
| 1
| null | 2020-09-18T14:16:36
| 2019-04-12T16:22:09
|
Java
|
UTF-8
|
Java
| false
| false
| 2,489
|
java
|
package io.github.mcdoc.application.service.mapper;
import io.github.mcdoc.application.domain.Authority;
import io.github.mcdoc.application.domain.User;
import io.github.mcdoc.application.service.dto.UserDTO;
import org.springframework.stereotype.Service;
import java.util.*;
import java.util.stream.Collectors;
/**
* Mapper for the entity User and its DTO called UserDTO.
*
* Normal mappers are generated using MapStruct, this one is hand-coded as MapStruct
* support is still in beta, and requires a manual step with an IDE.
*/
@Service
public class UserMapper {
public List<UserDTO> usersToUserDTOs(List<User> users) {
return users.stream()
.filter(Objects::nonNull)
.map(this::userToUserDTO)
.collect(Collectors.toList());
}
public UserDTO userToUserDTO(User user) {
return new UserDTO(user);
}
public List<User> userDTOsToUsers(List<UserDTO> userDTOs) {
return userDTOs.stream()
.filter(Objects::nonNull)
.map(this::userDTOToUser)
.collect(Collectors.toList());
}
public User userDTOToUser(UserDTO userDTO) {
if (userDTO == null) {
return null;
} else {
User user = new User();
user.setId(userDTO.getId());
user.setLogin(userDTO.getLogin());
user.setFirstName(userDTO.getFirstName());
user.setLastName(userDTO.getLastName());
user.setEmail(userDTO.getEmail());
user.setImageUrl(userDTO.getImageUrl());
user.setActivated(userDTO.isActivated());
user.setLangKey(userDTO.getLangKey());
Set<Authority> authorities = this.authoritiesFromStrings(userDTO.getAuthorities());
user.setAuthorities(authorities);
return user;
}
}
private Set<Authority> authoritiesFromStrings(Set<String> authoritiesAsString) {
Set<Authority> authorities = new HashSet<>();
if(authoritiesAsString != null){
authorities = authoritiesAsString.stream().map(string -> {
Authority auth = new Authority();
auth.setName(string);
return auth;
}).collect(Collectors.toSet());
}
return authorities;
}
public User userFromId(Long id) {
if (id == null) {
return null;
}
User user = new User();
user.setId(id);
return user;
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
19f6bdae646d40a11e9812604285735097115e70
|
d765d62ee0376f36876ecb0c3bf6677215374918
|
/GalleryRecyclerview/app/src/main/java/com/anukul/galleryrecyclerview/ItemClickListener.java
|
0002d4c0f8ae6a7bbf05366b49cbe163d8c04967
|
[] |
no_license
|
MehtaAnukul/Android-Learn-Tasks
|
6ecad36313f59c736930c733bfdd933c768c5853
|
0585aca08a73d01f91615db15df2e5bf392138bd
|
refs/heads/master
| 2020-03-27T11:13:00.562876
| 2019-06-07T06:42:00
| 2019-06-07T06:42:00
| 146,472,580
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 136
|
java
|
package com.anukul.galleryrecyclerview;
public interface ItemClickListener {
public void onItemClick(GalleryModel galleryModel);
}
|
[
"mehtaanukul@gmail.com"
] |
mehtaanukul@gmail.com
|
76e8f06a717e215a68741bbc21356886a1db142f
|
d0094eec897f6cf935fae911d85366d6da216535
|
/src/main/java/com/vmware/vim25/RemoveDiskMappingRequestType.java
|
b5b5f08ae39fd2f718d4617a99398869d0d20c32
|
[
"BSD-3-Clause"
] |
permissive
|
darkedges/vijava
|
9e09798f8cfc61ec28a7a214e260f464c26e4531
|
c65a731a25aa41d96e032271496f2464a8aa6fe9
|
refs/heads/main
| 2023-04-20T10:41:43.931180
| 2021-05-22T00:03:58
| 2021-05-22T00:03:58
| 369,026,457
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,931
|
java
|
package com.vmware.vim25;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for RemoveDiskMappingRequestType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="RemoveDiskMappingRequestType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="_this" type="{urn:vim25}ManagedObjectReference"/>
* <element name="mapping" type="{urn:vim25}VsanHostDiskMapping" maxOccurs="unbounded"/>
* <element name="maintenanceSpec" type="{urn:vim25}HostMaintenanceSpec" minOccurs="0"/>
* <element name="timeout" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RemoveDiskMappingRequestType", propOrder = {
"_this",
"mapping",
"maintenanceSpec",
"timeout"
})
public class RemoveDiskMappingRequestType {
@XmlElement(required = true)
protected ManagedObjectReference _this;
@XmlElement(required = true)
protected List<VsanHostDiskMapping> mapping;
protected HostMaintenanceSpec maintenanceSpec;
protected Integer timeout;
/**
* Gets the value of the this property.
*
* @return
* possible object is
* {@link ManagedObjectReference }
*
*/
public ManagedObjectReference getThis() {
return _this;
}
/**
* Sets the value of the this property.
*
* @param value
* allowed object is
* {@link ManagedObjectReference }
*
*/
public void setThis(ManagedObjectReference value) {
this._this = value;
}
/**
* Gets the value of the mapping property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the mapping property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getMapping().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link VsanHostDiskMapping }
*
*
*/
public List<VsanHostDiskMapping> getMapping() {
if (mapping == null) {
mapping = new ArrayList<VsanHostDiskMapping>();
}
return this.mapping;
}
/**
* Gets the value of the maintenanceSpec property.
*
* @return
* possible object is
* {@link HostMaintenanceSpec }
*
*/
public HostMaintenanceSpec getMaintenanceSpec() {
return maintenanceSpec;
}
/**
* Sets the value of the maintenanceSpec property.
*
* @param value
* allowed object is
* {@link HostMaintenanceSpec }
*
*/
public void setMaintenanceSpec(HostMaintenanceSpec value) {
this.maintenanceSpec = value;
}
/**
* Gets the value of the timeout property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getTimeout() {
return timeout;
}
/**
* Sets the value of the timeout property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setTimeout(Integer value) {
this.timeout = value;
}
}
|
[
"nirving@darkedges.com"
] |
nirving@darkedges.com
|
bfc10c4212a75f74fd45784efc91ebeea278638e
|
421f0a75a6b62c5af62f89595be61f406328113b
|
/generated_tests/no_seeding/8_gfarcegestionfa-fr.unice.gfarce.interGraph.SupprRespAction-1.0-8/fr/unice/gfarce/interGraph/SupprRespAction_ESTest_scaffolding.java
|
1ff5e701bc2be72f14273ab2554f51fa5d84f389
|
[] |
no_license
|
tigerqiu712/evosuite-model-seeding-empirical-evaluation
|
c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6
|
11a920b8213d9855082d3946233731c843baf7bc
|
refs/heads/master
| 2020-12-23T21:04:12.152289
| 2019-10-30T08:02:29
| 2019-10-30T08:02:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 548
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Mon Oct 28 21:44:29 GMT 2019
*/
package fr.unice.gfarce.interGraph;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class SupprRespAction_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pderakhshanfar@bsr01.win.tue.nl"
] |
pderakhshanfar@bsr01.win.tue.nl
|
a332d1a1bb4d13934e1d60e177830f38499cdced
|
884557ac73eff99ccb985febe0ed1c5a46a9969c
|
/Platforms/BM/src/main/java/com/smilecoms/bm/unitcredits/filters/AllowBasedOnSectorTownFilterClass.java
|
548284c888c8996297fd6c0b60def649274d273b
|
[] |
no_license
|
vikaspshelar/SMILE
|
732ef4b80655f246b43997d8407653cf7ffddad0
|
7ffc19eafef4d53a33e3d4bc658a1266b1087b27
|
refs/heads/master
| 2023-07-17T14:21:28.863986
| 2021-08-28T07:08:39
| 2021-08-28T07:08:39
| 400,570,564
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,414
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.smilecoms.bm.unitcredits.filters;
import com.smilecoms.bm.charging.IAccount;
import com.smilecoms.bm.db.model.ServiceInstance;
import com.smilecoms.bm.db.model.UnitCreditInstance;
import com.smilecoms.bm.db.model.UnitCreditSpecification;
import com.smilecoms.bm.rating.RatingResult;
import com.smilecoms.bm.unitcredits.UnitCreditManager;
import com.smilecoms.commons.util.Utils;
import com.smilecoms.xml.schema.bm.RatingKey;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import javax.persistence.EntityManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* @author paul
*/
public class AllowBasedOnSectorTownFilterClass extends AllowIfNecessaryFilterClass {
private static final Logger log = LoggerFactory.getLogger(AllowBasedOnSectorTownFilterClass.class);
@Override
public boolean isUCApplicable(
EntityManager em,
IAccount acc,
String sessionId,
ServiceInstance serviceInstance,
RatingResult ratingResult,
RatingKey ratingKey,
String srcDevice,
String description,
Date eventTimestamp,
UnitCreditSpecification ucs,
UnitCreditInstance uci,
String location) {
boolean parentAllows = super.isUCApplicable(em, acc, sessionId, serviceInstance, ratingResult, ratingKey, srcDevice, description, eventTimestamp, ucs, uci, location);
if (!parentAllows) {
log.debug("My parent says this UC cannot be used");
return false;
}
if (UnitCreditManager.getBooleanPropertyFromConfig(ucs, "IgnoreLocationMidniteAndWeekend") && isMidniteOrWeekend(eventTimestamp)) {
log.debug("This UC can be used now as its midnite or weekends");
return true;
}
String towns = UnitCreditManager.getPropertyFromConfig(ucs, "AllowedTowns");
if (towns == null) {
log.debug("This UC can be used in any town");
return true;
}
if (location == null) {
log.debug("Location is null");
return false;
}
log.debug("This UC can only be used in [{}]", towns);
List<String> townList = Utils.getListFromCommaDelimitedString(towns);
String sectorTown = Utils.getSectorsTown(location);
log.debug("Location is [{}] which is in town [{}]", location, sectorTown);
if (townList.contains(sectorTown)) {
log.debug("This UC can be used in this town");
return true;
}
return false;
}
private boolean isMidniteOrWeekend(Date eventTimestamp) {
Calendar et = Calendar.getInstance();
et.setTime(eventTimestamp);
int dayOfWeek = et.get(Calendar.DAY_OF_WEEK);
int hour = et.get(Calendar.HOUR_OF_DAY); // 0..23
log.debug("Day of week is [{}] and hour is [{}]", dayOfWeek, hour);
if (dayOfWeek == Calendar.SATURDAY || dayOfWeek == Calendar.SUNDAY) {
log.debug("This is a weekend");
return true;
}
if (hour >= 0 && hour < 6 ) {
log.debug("This is between 0 and 6");
return true;
}
return Utils.isDateAPublicHoliday(eventTimestamp);
}
}
|
[
"sbaranwal@futurerx.com"
] |
sbaranwal@futurerx.com
|
e42d4b8e2ada73e15c493ccd247640cf6bcfb0ba
|
986fbc8d16bd8011e16c4cdc1fcb950981348049
|
/src/main/java/cn/guanmai/open/impl/delivery/OpenDeliveryServiceImpl.java
|
7273148d0bbcd6216263d40863d19b1ad035f0bb
|
[] |
no_license
|
wdkimsea/test_station
|
9a47e7df6756621d624e818555c0409fdfe2cb8d
|
9607c321a3f9aa45d8c2fef328b917cc72183b72
|
refs/heads/master
| 2023-01-19T00:47:59.028105
| 2020-11-22T01:16:36
| 2020-11-22T01:16:36
| 314,933,825
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,484
|
java
|
package cn.guanmai.open.impl.delivery;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import cn.guanmai.okhttp.RequestType;
import cn.guanmai.open.bean.delivery.OpenCarModelBean;
import cn.guanmai.open.bean.delivery.OpenCarrierBean;
import cn.guanmai.open.bean.delivery.OpenDeliveryTaskBean;
import cn.guanmai.open.bean.delivery.OpenDriverBean;
import cn.guanmai.open.bean.delivery.OpenRouteBean;
import cn.guanmai.open.bean.delivery.OpenRouteDetailBean;
import cn.guanmai.open.bean.delivery.param.DeliveryTaskFilterParam;
import cn.guanmai.open.bean.delivery.param.DrivcerCreateParam;
import cn.guanmai.open.bean.delivery.param.DrivcerUpdateParam;
import cn.guanmai.open.interfaces.delivery.OpenDeliveryService;
import cn.guanmai.open.url.DeliveryURL;
import cn.guanmai.request.impl.OpenRequestImpl;
import cn.guanmai.request.intefaces.OpenRequest;
import cn.guanmai.util.JsonUtil;
/*
* @author liming
* @date Jun 5, 2019 2:48:45 PM
* @des ้
้็ธๅ
ณไธๅกๆฅๅฃๅฎ็ฐ
* @version 1.0
*/
public class OpenDeliveryServiceImpl implements OpenDeliveryService {
private JSONObject retObj;
private OpenRequest openRequest;
public OpenDeliveryServiceImpl(String access_token) {
openRequest = new OpenRequestImpl(access_token);
}
@Override
public List<OpenDeliveryTaskBean> searchDeliveryTasks(DeliveryTaskFilterParam filterParam) throws Exception {
String url = DeliveryURL.delivery_task_search_url;
retObj = openRequest.baseRequest(url, RequestType.GET, filterParam);
return retObj.getInteger("code") == 0
? JsonUtil.strToClassList(retObj.getJSONArray("data").toString(), OpenDeliveryTaskBean.class)
: null;
}
@Override
public boolean assignDriver(List<String> order_ids, String driver_id) throws Exception {
String url = DeliveryURL.delivery_driver_assign_url;
Map<String, String> paramMap = new HashMap<>();
paramMap.put("order_ids", JSONArray.parseArray(order_ids.toString()).toString());
paramMap.put("driver_id", driver_id);
retObj = openRequest.baseRequest(url, RequestType.POST, paramMap);
return retObj.getInteger("code") == 0;
}
@Override
public boolean cancelDriver(List<String> order_ids) throws Exception {
String url = DeliveryURL.delivery_driver_cancel_url;
Map<String, String> paramMap = new HashMap<>();
paramMap.put("order_ids", JSONArray.parseArray(order_ids.toString()).toString());
retObj = openRequest.baseRequest(url, RequestType.POST, paramMap);
return retObj.getInteger("code") == 0;
}
@Override
public String createDriver(DrivcerCreateParam createParam) throws Exception {
String url = DeliveryURL.delivery_driver_create_url;
retObj = openRequest.baseRequest(url, RequestType.POST, createParam);
return retObj.getInteger("code") == 0 ? retObj.getJSONObject("data").getString("driver_id") : null;
}
@Override
public boolean updateDriver(DrivcerUpdateParam updateParam) throws Exception {
String url = DeliveryURL.delivery_driver_update_url;
retObj = openRequest.baseRequest(url, RequestType.POST, updateParam);
return retObj.getInteger("code") == 0;
}
@Override
public List<OpenDriverBean> searchDriver(String search_text, String offset, String limit) throws Exception {
String url = DeliveryURL.delivery_driver_search_url;
Map<String, String> paramMap = new HashMap<>();
if (search_text != null) {
paramMap.put("search_text", search_text);
}
if (offset != null) {
paramMap.put("offset", offset);
}
if (limit != null) {
paramMap.put("limit", limit);
}
retObj = openRequest.baseRequest(url, RequestType.GET, paramMap);
return retObj.getInteger("code") == 0
? JsonUtil.strToClassList(retObj.getJSONArray("data").toString(), OpenDriverBean.class)
: null;
}
@Override
public List<OpenCarModelBean> searchCarModel(String search_text, String offset, String limit) throws Exception {
String url = DeliveryURL.delivery_car_model_search_url;
Map<String, String> paramMap = new HashMap<>();
if (search_text != null) {
paramMap.put("search_text", search_text);
}
if (offset != null) {
paramMap.put("offset", offset);
}
if (limit != null) {
paramMap.put("limit", limit);
}
retObj = openRequest.baseRequest(url, RequestType.GET, paramMap);
return retObj.getInteger("code") == 0
? JsonUtil.strToClassList(retObj.getJSONArray("data").toString(), OpenCarModelBean.class)
: null;
}
@Override
public List<OpenCarrierBean> searchCarrier(String search_text, String offset, String limit) throws Exception {
String url = DeliveryURL.delivery_carrier_search_url;
Map<String, String> paramMap = new HashMap<>();
if (search_text != null) {
paramMap.put("search_text", search_text);
}
if (offset != null) {
paramMap.put("offset", offset);
}
if (limit != null) {
paramMap.put("limit", limit);
}
retObj = openRequest.baseRequest(url, RequestType.GET, paramMap);
return retObj.getInteger("code") == 0
? JsonUtil.strToClassList(retObj.getJSONArray("data").toString(), OpenCarrierBean.class)
: null;
}
@Override
public boolean createRoute(String route_name, List<String> customer_ids) throws Exception {
String url = DeliveryURL.delivery_route_create_url;
Map<String, String> paramMap = new HashMap<>();
paramMap.put("route_name", route_name);
paramMap.put("customer_ids", JSONArray.toJSONString(customer_ids));
retObj = openRequest.baseRequest(url, RequestType.POST, paramMap);
return retObj.getInteger("code") == 0;
}
@Override
public boolean updateRoute(String route_id, String route_name, List<String> customer_ids) throws Exception {
String url = DeliveryURL.delivery_route_update_url;
Map<String, String> paramMap = new HashMap<>();
paramMap.put("route_id", route_id);
paramMap.put("route_name", route_name);
paramMap.put("customer_ids", JSONArray.toJSONString(customer_ids));
retObj = openRequest.baseRequest(url, RequestType.POST, paramMap);
return retObj.getInteger("code") == 0;
}
@Override
public boolean deleteRoute(String route_id) throws Exception {
String url = DeliveryURL.delivery_route_delete_url;
Map<String, String> paramMap = new HashMap<>();
paramMap.put("route_id", route_id);
retObj = openRequest.baseRequest(url, RequestType.POST, paramMap);
return retObj.getInteger("code") == 0;
}
@Override
public List<OpenRouteBean> searchRoute(String search_text, String offset, String limit) throws Exception {
String url = DeliveryURL.delivery_route_search_url;
Map<String, String> paramMap = new HashMap<>();
if (search_text != null) {
paramMap.put("search_text", search_text);
}
if (offset != null) {
paramMap.put("offset", offset);
}
if (limit != null) {
paramMap.put("limit", limit);
}
retObj = openRequest.baseRequest(url, RequestType.GET, paramMap);
return retObj.getInteger("code") == 0
? JsonUtil.strToClassList(retObj.getJSONArray("data").toString(), OpenRouteBean.class)
: null;
}
@Override
public OpenRouteDetailBean getRouteDetail(String route_id) throws Exception {
String url = DeliveryURL.delivery_route_detail_url;
Map<String, String> paramMap = new HashMap<>();
paramMap.put("route_id", route_id);
retObj = openRequest.baseRequest(url, RequestType.GET, paramMap);
return retObj.getInteger("code") == 0
? JsonUtil.strToClassObject(retObj.getJSONObject("data").toString(), OpenRouteDetailBean.class)
: null;
}
}
|
[
"yangjinhai@guanmai.cn"
] |
yangjinhai@guanmai.cn
|
553a69299cac30d5ea5363766830bb18d891e326
|
f9817d637c17d5e6a71f154b9ad9e90f2d63ad91
|
/236LowestCommonAncestorOfABinaryTree.java
|
05ae0f23d4fd0069df11f2e90625b92eb658e472
|
[] |
no_license
|
samuelyo/Leetcode
|
b5710612013da8c939f659222d9ed340ae480285
|
19533a8d5fadce65a0d225c2309eaf2381fdc482
|
refs/heads/master
| 2021-01-19T10:31:46.544133
| 2019-12-23T15:58:19
| 2019-12-23T15:58:19
| 87,869,193
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,342
|
java
|
package com.leetcode.LowestCommonAncestorOfABinaryTree;
import java.util.ArrayList;
import java.util.List;
public class LowestCommonAncestorOfABinaryTree {
public static void main(String[] args) {
// TreeNode root = new TreeNode(3);
// TreeNode node5 = new TreeNode(5);
// TreeNode node1 = new TreeNode(1);
// TreeNode node6 = new TreeNode(6);
// TreeNode node2 = new TreeNode(2);
// TreeNode node0 = new TreeNode(0);
// TreeNode node8 = new TreeNode(8);
// TreeNode node7 = new TreeNode(7);
// TreeNode node4 = new TreeNode(4);
// root.left = node5;
// root.right = node1;
// node5.left = node6;
// node5.right = node2;
// node1.left = node0;
// node1.right = node8;
// node2.left = node7;
// node2.right = node4;
TreeNode root = new TreeNode(1);
TreeNode node2 = new TreeNode(2);
root.left = node2;
TreeNode res = lowestCommonAncestor(root, node2, root);
System.out.println(res.val);
}
public static TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {
List<List<TreeNode>> paths = new ArrayList<List<TreeNode>>();
List<TreeNode> list = new ArrayList<TreeNode>();
paths = lowestCommonAncestorHelp(root, paths, list, p, q);
if(paths.size() == 1){
for(int i = 0;i<paths.get(0).size();i++){
if(paths.get(0).get(i) == p || paths.get(0).get(i) == q){
return paths.get(0).get(i);
}
}
return null;
}else{
List<TreeNode> list1 = paths.get(0);
List<TreeNode> list2 = paths.get(1);
List<TreeNode> pList,qList;
if(list1.get(list1.size() - 1) == p){
pList = list1;
qList = list2;
}else{
pList = list2;
qList = list1;
}
for (int i = pList.size() - 1; i >= 0; i--) {
if (qList.contains(pList.get(i))) {
return pList.get(i);
}
}
return null;
}
}
public static List<List<TreeNode>> lowestCommonAncestorHelp(TreeNode node, List<List<TreeNode>> paths,
List<TreeNode> list, TreeNode p, TreeNode q) {
if (node == null) {
return paths;
}
if (node == p || node == q) {
list.add(node);
paths.add(new ArrayList<TreeNode>(list));
list.remove(list.size() - 1);
return paths;
} else {
list.add(node);
lowestCommonAncestorHelp(node.left, paths, list, p, q);
lowestCommonAncestorHelp(node.right, paths, list, p, q);
list.remove(list.size() - 1);
return paths;
}
}
}
|
[
"1120780416@qq.com"
] |
1120780416@qq.com
|
6212c5eda9fdffce4bf9480e449c24d0b252626f
|
53f5a941261609775dc3eedf0cb487956b734ab0
|
/com.samsung.accessory.atticmgr/sources/com/google/android/gms/common/util/SharedPreferencesUtils.java
|
820d2670e706ac4afa0d935cfb46adf6eb1f0209
|
[] |
no_license
|
ThePBone/BudsProAnalysis
|
4a3ede6ba6611cc65598d346b5a81ea9c33265c0
|
5b04abcae98d1ec8d35335d587b628890383bb44
|
refs/heads/master
| 2023-02-18T14:24:57.731752
| 2021-01-17T12:44:58
| 2021-01-17T12:44:58
| 322,783,234
| 16
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 774
|
java
|
package com.google.android.gms.common.util;
import android.content.Context;
import android.content.SharedPreferences;
import java.io.File;
public class SharedPreferencesUtils {
private SharedPreferencesUtils() {
}
@Deprecated
public static void publishWorldReadableSharedPreferences(Context context, SharedPreferences.Editor editor, String str) {
File file = new File(context.getApplicationInfo().dataDir, "shared_prefs");
File parentFile = file.getParentFile();
if (parentFile != null) {
parentFile.setExecutable(true, false);
}
file.setExecutable(true, false);
editor.commit();
new File(file, String.valueOf(str).concat(".xml")).setReadable(true, false);
}
}
|
[
"thebone.main@gmail.com"
] |
thebone.main@gmail.com
|
01ab9a9adaf1b18c5a206020a4b6fbfe0b51bcce
|
bd7ec3a3cee7bbfbd1ef126037d92f8cf2fbee0c
|
/solifeAdmin/src/com/cartmatic/estore/core/view/RedirectView301.java
|
bff6e09c96f5d51d80e94ad0ab7a127c23b44da1
|
[] |
no_license
|
1649865412/solifeAdmin
|
eef96d47b0ed112470bc7c44647c816004240a8d
|
d45d249513379e1d93868fbcebf6eb61acd08999
|
refs/heads/master
| 2020-06-29T03:38:44.894919
| 2015-06-26T06:53:37
| 2015-06-26T06:53:37
| 38,095,812
| 2
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,928
|
java
|
package com.cartmatic.estore.core.view;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.view.RedirectView;
/**
* ้ป่ฎคไฝฟ็จ301ๆฐธไน
้ๅฎๅๆฅๅค็่ฏทๆฑใ
* ๆฉๅฑSpring MVCๅๆฅ็RedirectView.
*
* @author Liu Jiayang
*/
public class RedirectView301 extends RedirectView {
/**
* Create a new RedirectView with the given URL.
* <p>The given URL will be considered as relative to the web server,
* not as relative to the current ServletContext.
* @param url the URL to redirect to
* @see #RedirectView(String, boolean)
*/
public RedirectView301(String url) {
super(url);
}
/**
* Create a new RedirectView with the given URL.
* @param url the URL to redirect to
* @param contextRelative whether to interpret the given URL as
* relative to the current ServletContext
*/
public RedirectView301(String url, boolean contextRelative) {
super(url,contextRelative);
}
/**
* Send a permanent redirect back to the HTTP client
* @param request current HTTP request (allows for reacting to request method)
* @param response current HTTP response (for sending response headers)
* @param targetUrl the target URL to redirect to
* @param http10Compatible whether to stay compatible with HTTP 1.0 clients
* @throws IOException if thrown by response methods
*/
@Override
protected void sendRedirect(
HttpServletRequest request, HttpServletResponse response, String targetUrl, boolean http10Compatible)
throws IOException {
//if (http10Compatible) {
// Always send status code 302.
//response.sendRedirect(response.encodeRedirectURL(targetUrl));
//}
//else {
// Correct HTTP status code is 301, in particular for POST requests.
response.setStatus(301);
response.setHeader("Location", response.encodeRedirectURL(targetUrl));
//}
}
}
|
[
"1649865412@qq.com"
] |
1649865412@qq.com
|
d3dc278af98a70b6a0224373821d301fb06d4796
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project2/src/test/java/org/gradle/test/performance2_2/Test2_198.java
|
2e84b18157aa90ca08bc9a0993f90e824e2aa3ea
|
[] |
no_license
|
gradle/performance-comparisons
|
b0d38db37c326e0ce271abebdb3c91769b860799
|
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
|
refs/heads/master
| 2023-08-14T19:24:39.164276
| 2022-11-24T05:18:33
| 2022-11-24T05:18:33
| 80,121,268
| 17
| 15
| null | 2022-09-30T08:04:35
| 2017-01-26T14:25:33
| null |
UTF-8
|
Java
| false
| false
| 288
|
java
|
package org.gradle.test.performance2_2;
import static org.junit.Assert.*;
public class Test2_198 {
private final Production2_198 production = new Production2_198("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
6e64a30cb6b5954198bda267bb85612d9c548020
|
473fc28d466ddbe9758ca49c7d4fb42e7d82586e
|
/app/src/main/java/com/syd/source/aosp/cts/tests/tests/view/src/android/view/cts/ActionModeTest.java
|
e28173de90bede83af4f17f7855db7f1f67179b0
|
[] |
no_license
|
lz-purple/Source
|
a7788070623f2965a8caa3264778f48d17372bab
|
e2745b756317aac3c7a27a4c10bdfe0921a82a1c
|
refs/heads/master
| 2020-12-23T17:03:12.412572
| 2020-01-31T01:54:37
| 2020-01-31T01:54:37
| 237,205,127
| 4
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,335
|
java
|
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.view.cts;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.atLeastOnce;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.verify;
import android.app.Instrumentation;
import android.graphics.Rect;
import android.support.test.InstrumentationRegistry;
import android.support.test.filters.SmallTest;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import android.view.ActionMode;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
@SmallTest
@RunWith(AndroidJUnit4.class)
public class ActionModeTest {
private Instrumentation mInstrumentation;
private ActionModeCtsActivity mActivity;
@Rule
public ActivityTestRule<ActionModeCtsActivity> mActivityRule =
new ActivityTestRule<>(ActionModeCtsActivity.class);
@Before
public void setup() {
mInstrumentation = InstrumentationRegistry.getInstrumentation();
mActivity = mActivityRule.getActivity();
}
@Test
public void testSetType() {
final ActionMode mockActionMode = new MockActionMode();
assertEquals(ActionMode.TYPE_PRIMARY, mockActionMode.getType());
mockActionMode.setType(ActionMode.TYPE_FLOATING);
assertEquals(ActionMode.TYPE_FLOATING, mockActionMode.getType());
mockActionMode.setType(ActionMode.TYPE_PRIMARY);
assertEquals(ActionMode.TYPE_PRIMARY, mockActionMode.getType());
}
@Test
public void testInvalidateContentRectDoesNotInvalidateFull() {
final ActionMode mockActionMode = spy(new MockActionMode());
mockActionMode.invalidateContentRect();
verify(mockActionMode, never()).invalidate();
}
@Test
public void testInvalidateContentRectOnFloatingCallsCallback() throws Throwable {
final View view = mActivity.contentView;
final ActionMode.Callback2 mockCallback = mock(ActionMode.Callback2.class);
doReturn(Boolean.TRUE).when(mockCallback).onCreateActionMode(
any(ActionMode.class), any(Menu.class));
doReturn(Boolean.TRUE).when(mockCallback).onPrepareActionMode(
any(ActionMode.class), any(Menu.class));
mActivityRule.runOnUiThread(() -> {
ActionMode mode = view.startActionMode(mockCallback, ActionMode.TYPE_FLOATING);
assertNotNull(mode);
mode.invalidateContentRect();
});
mInstrumentation.waitForIdleSync();
verify(mockCallback, atLeastOnce()).onGetContentRect(any(ActionMode.class), any(View.class),
any(Rect.class));
}
@Test
public void testSetAndGetTitleOptionalHint() {
final ActionMode actionMode = new MockActionMode();
// Check default value.
assertFalse(actionMode.getTitleOptionalHint());
// Test set and get.
actionMode.setTitleOptionalHint(true);
assertTrue(actionMode.getTitleOptionalHint());
actionMode.setTitleOptionalHint(false);
assertFalse(actionMode.getTitleOptionalHint());
}
@Test
public void testSetAndGetTag() {
final ActionMode actionMode = new MockActionMode();
Object tag = new Object();
// Check default value.
assertNull(actionMode.getTag());
actionMode.setTag(tag);
assertSame(tag, actionMode.getTag());
}
@Test
public void testIsTitleOptional() {
final ActionMode actionMode = new MockActionMode();
// Check default value.
assertFalse(actionMode.isTitleOptional());
}
@Test
public void testIsUiFocusable() {
final ActionMode actionMode = new MockActionMode();
// Check default value.
assertTrue(actionMode.isUiFocusable());
}
@Test
public void testHide() {
final ActionMode actionMode = new MockActionMode();
actionMode.hide(0);
actionMode.hide(ActionMode.DEFAULT_HIDE_DURATION);
}
@Test
public void testOnWindowFocusChanged() {
final ActionMode actionMode = new MockActionMode();
actionMode.onWindowFocusChanged(true);
actionMode.onWindowFocusChanged(false);
}
protected static class MockActionMode extends ActionMode {
@Override
public void setTitle(CharSequence title) {}
@Override
public void setTitle(int resId) {}
@Override
public void setSubtitle(CharSequence subtitle) {}
@Override
public void setSubtitle(int resId) {}
@Override
public void setCustomView(View view) {}
@Override
public void invalidate() {
}
@Override
public void finish() {}
@Override
public Menu getMenu() {
return null;
}
@Override
public CharSequence getTitle() {
return null;
}
@Override
public CharSequence getSubtitle() {
return null;
}
@Override
public View getCustomView() {
return null;
}
@Override
public MenuInflater getMenuInflater() {
return null;
}
}
}
|
[
"997530783@qq.com"
] |
997530783@qq.com
|
4ca91bc5ed2b90fb1a3234cef8b10d615cc9308c
|
6f36fc4a0f9c680553f8dd64c5df55c403f8f2ed
|
/src/main/java/it/csi/siac/siacfinser/integration/entity/SiacDRelazEntitaFin.java
|
f97cb0f72294cdf84adacc6a741da0615b5ab576
|
[] |
no_license
|
unica-open/siacbilser
|
b46b19fd382f119ec19e4e842c6a46f9a97254e2
|
7de24065c365564b71378ce9da320b0546474130
|
refs/heads/master
| 2021-01-06T13:25:34.712460
| 2020-03-04T08:44:26
| 2020-03-04T08:44:26
| 241,339,144
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,320
|
java
|
/*
*SPDX-FileCopyrightText: Copyright 2020 | CSI Piemonte
*SPDX-License-Identifier: EUPL-1.2
*/
package it.csi.siac.siacfinser.integration.entity;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import it.csi.siac.siacfinser.integration.entity.base.SiacTEnteBase;
@Entity
@Table(name="siac_d_relaz_entita")
public class SiacDRelazEntitaFin extends SiacTEnteBase {
private static final long serialVersionUID = 1L;
@Id
@Column(name="relaz_entita_id")
private Integer relazEntitaId;
@Column(name="relaz_entita_code")
private String relazEntitaCode;
@Column(name="relaz_entita_desc")
private String relazEntitaDesc;
//bi-directional many-to-one association to SiacDRelazTipoFin
@OneToMany(mappedBy="siacDRelazEntita")
private List<SiacDRelazTipoFin> siacDRelazTipos;
public SiacDRelazEntitaFin() {
}
public Integer getRelazEntitaId() {
return this.relazEntitaId;
}
public void setRelazEntitaId(Integer relazEntitaId) {
this.relazEntitaId = relazEntitaId;
}
public String getRelazEntitaCode() {
return this.relazEntitaCode;
}
public void setRelazEntitaCode(String relazEntitaCode) {
this.relazEntitaCode = relazEntitaCode;
}
public String getRelazEntitaDesc() {
return this.relazEntitaDesc;
}
public void setRelazEntitaDesc(String relazEntitaDesc) {
this.relazEntitaDesc = relazEntitaDesc;
}
public List<SiacDRelazTipoFin> getSiacDRelazTipos() {
return this.siacDRelazTipos;
}
public void setSiacDRelazTipos(List<SiacDRelazTipoFin> siacDRelazTipos) {
this.siacDRelazTipos = siacDRelazTipos;
}
public SiacDRelazTipoFin addSiacDRelazTipo(SiacDRelazTipoFin siacDRelazTipo) {
getSiacDRelazTipos().add(siacDRelazTipo);
siacDRelazTipo.setSiacDRelazEntita(this);
return siacDRelazTipo;
}
public SiacDRelazTipoFin removeSiacDRelazTipo(SiacDRelazTipoFin siacDRelazTipo) {
getSiacDRelazTipos().remove(siacDRelazTipo);
siacDRelazTipo.setSiacDRelazEntita(null);
return siacDRelazTipo;
}
@Override
public Integer getUid() {
// Auto-generated method stub
return this.relazEntitaId;
}
@Override
public void setUid(Integer uid) {
// Auto-generated method stub
this.relazEntitaId = uid;
}
}
|
[
"barbara.malano@csi.it"
] |
barbara.malano@csi.it
|
9610fd362d72eb72dffb49d6481c5d04a6c1618c
|
6504352f86c2e4f7ef16cea3f5b7cc00bba96a33
|
/WmesWeb/src/com/fsll/wmes/crm/vo/CrmClientForIfaVO.java
|
2562662ca228df7ba4874515d0a50aafdd796653
|
[] |
no_license
|
jedyang/XFAWealth
|
1a20c7b4d16c72883b27c4d8aa72d67df4291b9a
|
029d45620b3375a86fec8bb1161492325f9f2c6c
|
refs/heads/master
| 2021-05-07T04:53:24.628018
| 2017-08-03T15:25:59
| 2017-08-03T15:25:59
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,778
|
java
|
package com.fsll.wmes.crm.vo;
import com.fsll.wmes.entity.MemberBase;
public class CrmClientForIfaVO {
private String id;
private String memberId;
private MemberBase member;
private String iconUrl;
private String nickName;
private String contact;
private String email;
private String totalAssetStr;
private double totalAsset;
private String createDate;
private String name;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getMemberId() {
return memberId;
}
public void setMemberId(String memberId) {
this.memberId = memberId;
}
public String getIconUrl() {
return iconUrl;
}
public void setIconUrl(String iconUrl) {
this.iconUrl = iconUrl;
}
public String getNickName() {
return nickName;
}
public void setNickName(String nickName) {
this.nickName = nickName;
}
public String getContact() {
return contact;
}
public void setContact(String contact) {
this.contact = contact;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getTotalAssetStr() {
return totalAssetStr;
}
public void setTotalAssetStr(String totalAssetStr) {
this.totalAssetStr = totalAssetStr;
}
public double getTotalAsset() {
return totalAsset;
}
public void setTotalAsset(double totalAsset) {
this.totalAsset = totalAsset;
}
public String getCreateDate() {
return createDate;
}
public void setCreateDate(String createDate) {
this.createDate = createDate;
}
public MemberBase getMember() {
return member;
}
public void setMember(MemberBase member) {
this.member = member;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
[
"549592047@qq.com"
] |
549592047@qq.com
|
6c7060cc7cbbb8ecc7cfcf9afbbedc7b99472732
|
0adb936c478c6c7618cbfe0d16850030ab7dde1b
|
/src/main/java/com/arraybase/shell/cmds/ExecuteVariable.java
|
4412ba376505b53e1a72ad60940eb23d9f9bf0b7
|
[] |
no_license
|
milton900807/arraybase
|
f4c613205125a0de0d8bbe2c4f080073c382f247
|
11ac473089877b15aae437f476502b2d65291f75
|
refs/heads/master
| 2023-06-05T02:09:31.541576
| 2021-07-03T18:02:03
| 2021-07-03T18:02:03
| 382,672,229
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 683
|
java
|
package com.arraybase.shell.cmds;
import com.arraybase.GB;
import com.arraybase.GBPlugin;
import com.arraybase.GBV;
import com.arraybase.modules.UsageException;
public class ExecuteVariable implements GBPlugin {
public String exec(String command, String variable_key)
throws UsageException {
String[] t = command.split(" ");
String var= t[1].trim();
GBV variable = GB.getVariable(var);
// String strvalue = variable.get().toString();
String v = variable.toString();
GB.print ( v );
GB.exec(v, null);
return "executing.";
}
public GBV execGBVIn(String cmd, GBV input) throws UsageException {
// TODO Auto-generated method stub
return null;
}
}
|
[
"JMilton@ionisph.com"
] |
JMilton@ionisph.com
|
ec97ce5567ddfff708b96015918a7ca8a020823a
|
17ace4f3fdbcc7b1b6883b92e5caa0252b1a753c
|
/app/src/main/java/com/dzbkq/myapplication/task/DummyPointListLoadTask.java
|
2d8ae8d76eea45055713264f35a5f0f47c5f7731
|
[] |
no_license
|
hotstu/baidumap-cluster-java
|
efc35a74b1103cf8d75d7373c11961920306178c
|
2280b9e74c0591a222a5fb68948c7e48ab51b259
|
refs/heads/master
| 2021-01-10T10:06:43.690176
| 2018-03-19T15:14:01
| 2018-03-19T15:14:01
| 49,374,969
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 351
|
java
|
package com.dzbkq.myapplication.task;
import com.dzbkq.myapplication.model.PointList;
/**
* @date 2015-9-25 ไธๅ8:43:53
*
*/
public class DummyPointListLoadTask implements IPointLoadTask {
public DummyPointListLoadTask() {
}
@Override
public PointList call() {
return new PointList();
}
@Override
public void cancel() {
}
}
|
[
"hgleifeng@foxmail.com"
] |
hgleifeng@foxmail.com
|
74ecaa449d6081b71f971bf0bd9bd02d2f0dd1b2
|
f617d7ed61f4d0632827ea792fdf773e9e87d6d9
|
/ch15/ex15-27.Member.java
|
92d9141f130f9ac0a6ed5ed68d9efa1a687ab706
|
[] |
no_license
|
freebz/JPA-Programming
|
e796f3d3868913775068f31d86020ded8ddd737e
|
a52637cba47fa46dfdab9330361d1f8f4bfe5866
|
refs/heads/master
| 2020-09-15T09:24:35.035143
| 2019-11-22T12:09:56
| 2019-11-22T12:09:56
| 223,409,858
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 252
|
java
|
// ์์ 15.27 @Fetch ์ ์ฉ
@Entity
public class Member {
...
@org.hibernate.annotations.Fetch(FetchMode.SUBSELECT)
@OneToMany(mappedBy = "member", fetch = FetchType.EAGER)
private List<Order> orders = new ArrayList<Order>();
...
}
|
[
"freebz@hananet.net"
] |
freebz@hananet.net
|
411b788e1057d233c6c692492c988f1710c35932
|
9f6d3b6fbd5c061322cbb34ec251b0b173ebf2ec
|
/rmhub/traffic-logger-module/src/main/java/rmhub/mod/trafficlogger/service/TrafficMeasurementDetailService.java
|
24fcbca1637fbeb864399a9683160ce7f61fe326
|
[] |
no_license
|
HoangHieuBK/RMHub-BE
|
618349c64071e095be089f871f40ddb4c741dd90
|
9f4742e57ebf24c5555f1a1b60c9635cb00a6ac1
|
refs/heads/master
| 2023-04-12T19:45:33.063465
| 2020-05-14T04:07:00
| 2020-05-14T04:07:00
| 263,811,534
| 0
| 0
| null | 2021-04-26T20:16:33
| 2020-05-14T04:05:51
|
Java
|
UTF-8
|
Java
| false
| false
| 464
|
java
|
package rmhub.mod.trafficlogger.service;
import java.util.List;
import rmhub.mod.trafficlogger.entity.TrafficMeasurementDetail;
public interface TrafficMeasurementDetailService {
TrafficMeasurementDetail create(TrafficMeasurementDetail tlMeasurementDetail);
TrafficMeasurementDetail update(TrafficMeasurementDetail tlMeasurementDetail);
void delete(Long id);
List<TrafficMeasurementDetail> findAll();
TrafficMeasurementDetail findById(Long id);
}
|
[
"hoanghieubk1996@gmail.com"
] |
hoanghieubk1996@gmail.com
|
268126c3532e358fd4ba2b7e47fb62cf493811bf
|
9bac6b22d956192ba16d154fca68308c75052cbb
|
/icmsint-ejb/src/main/java/hk/judiciary/icmsint/model/sysinf/inf/gdnid2j/SODVariableSelectionV10CT.java
|
290f5dc139b3e9795c9f3a7f1ed22434d8a9015e
|
[] |
no_license
|
peterso05168/icmsint
|
9d4723781a6666cae8b72d42713467614699b66d
|
79461c4dc34c41b2533587ea3815d6275731a0a8
|
refs/heads/master
| 2020-06-25T07:32:54.932397
| 2017-07-13T10:54:56
| 2017-07-13T10:54:56
| 96,960,773
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,583
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.06.29 at 10:32:28 AM CST
//
package hk.judiciary.icmsint.model.sysinf.inf.gdnid2j;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Multiple SOD Variable Selection Item
*
* <p>Java class for SODVariableSelection.V1.0.CT complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="SODVariableSelection.V1.0.CT">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="SODVariableSelectionItem" type="{}SODVariableSelectionItem.V1.0.CT" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SODVariableSelection.V1.0.CT", propOrder = {
"sodVariableSelectionItem"
})
public class SODVariableSelectionV10CT {
@XmlElement(name = "SODVariableSelectionItem", required = true)
protected List<SODVariableSelectionItemV10CT> sodVariableSelectionItem;
/**
* Gets the value of the sodVariableSelectionItem property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the sodVariableSelectionItem property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSODVariableSelectionItem().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link SODVariableSelectionItemV10CT }
*
*
*/
public List<SODVariableSelectionItemV10CT> getSODVariableSelectionItem() {
if (sodVariableSelectionItem == null) {
sodVariableSelectionItem = new ArrayList<SODVariableSelectionItemV10CT>();
}
return this.sodVariableSelectionItem;
}
}
|
[
"chiu.cheukman@gmail.com"
] |
chiu.cheukman@gmail.com
|
94c5a5fafb4fc2bafddeff0126535920f882037d
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-13303-5-13-NSGA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/display/internal/DefaultDocumentDisplayer_ESTest.java
|
aa70e0b29c178749bffb56a96a9f51c44708ad76
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 581
|
java
|
/*
* This file was automatically generated by EvoSuite
* Wed Apr 01 16:43:56 UTC 2020
*/
package org.xwiki.display.internal;
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 DefaultDocumentDisplayer_ESTest extends DefaultDocumentDisplayer_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
2434562ba1fa29592c241407599bf1b769eecda0
|
53d677a55e4ece8883526738f1c9d00fa6560ff7
|
/com/google/android/exoplayer2/i/v$1.java
|
c81989f1147d22b34384653a014376ca00235f95
|
[] |
no_license
|
0jinxing/wechat-apk-source
|
544c2d79bfc10261eb36389c1edfdf553d8f312a
|
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
|
refs/heads/master
| 2020-06-07T20:06:03.580028
| 2019-06-21T09:17:26
| 2019-06-21T09:17:26
| 193,069,132
| 9
| 4
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 652
|
java
|
package com.google.android.exoplayer2.i;
import com.tencent.matrix.trace.core.AppMethodBeat;
import java.util.concurrent.ThreadFactory;
final class v$1
implements ThreadFactory
{
v$1(String paramString)
{
}
public final Thread newThread(Runnable paramRunnable)
{
AppMethodBeat.i(95952);
paramRunnable = new Thread(paramRunnable, this.brR);
AppMethodBeat.o(95952);
return paramRunnable;
}
}
/* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes8-dex2jar.jar
* Qualified Name: com.google.android.exoplayer2.i.v.1
* JD-Core Version: 0.6.2
*/
|
[
"172601673@qq.com"
] |
172601673@qq.com
|
0c4defdf858e6c99242e4da66311a1663d7d5c36
|
4694851aea67f99c617642c7e78bd5d8d29591d1
|
/app/src/main/java/fragement/Viewpager2.java
|
1eecd900ec04678931c2c9e9b23bedab16d9fc78
|
[] |
no_license
|
wsdesignuiux/Uiuxecommercelab_screen23
|
3ae0ff304ecec55c9448d94be8fd6fc72ef12223
|
465cbc064418b48e7a32b14f9eb527bb97369fcc
|
refs/heads/master
| 2020-04-15T21:50:13.184597
| 2019-01-10T11:35:52
| 2019-01-10T11:35:52
| 165,048,880
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 618
|
java
|
package fragement;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.vaibhav.screen23.R;
public class Viewpager2 extends Fragment {
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.viewpager2, container, false);
return view;
}
}
|
[
"info.wsdesignuiux@gmail.com"
] |
info.wsdesignuiux@gmail.com
|
ee60cd378a339f1156db4d400359b936dff6576d
|
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
|
/aliyun-java-sdk-codeup/src/main/java/com/aliyuncs/codeup/model/v20200414/UpdateGroupMemberResponse.java
|
df21c64880c4bc02ccafc6365fdf7f349f9b18a6
|
[
"Apache-2.0"
] |
permissive
|
aliyun/aliyun-openapi-java-sdk
|
a263fa08e261f12d45586d1b3ad8a6609bba0e91
|
e19239808ad2298d32dda77db29a6d809e4f7add
|
refs/heads/master
| 2023-09-03T12:28:09.765286
| 2023-09-01T09:03:00
| 2023-09-01T09:03:00
| 39,555,898
| 1,542
| 1,317
|
NOASSERTION
| 2023-09-14T07:27:05
| 2015-07-23T08:41:13
|
Java
|
UTF-8
|
Java
| false
| false
| 3,097
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.codeup.model.v20200414;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.codeup.transform.v20200414.UpdateGroupMemberResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class UpdateGroupMemberResponse extends AcsResponse {
private String requestId;
private String errorCode;
private Boolean success;
private String errorMessage;
private Result result;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public String getErrorCode() {
return this.errorCode;
}
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getErrorMessage() {
return this.errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public Result getResult() {
return this.result;
}
public void setResult(Result result) {
this.result = result;
}
public static class Result {
private Integer accessLevel;
private String externUserId;
private Long id;
private String state;
private String avatarUrl;
private String email;
public Integer getAccessLevel() {
return this.accessLevel;
}
public void setAccessLevel(Integer accessLevel) {
this.accessLevel = accessLevel;
}
public String getExternUserId() {
return this.externUserId;
}
public void setExternUserId(String externUserId) {
this.externUserId = externUserId;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getState() {
return this.state;
}
public void setState(String state) {
this.state = state;
}
public String getAvatarUrl() {
return this.avatarUrl;
}
public void setAvatarUrl(String avatarUrl) {
this.avatarUrl = avatarUrl;
}
public String getEmail() {
return this.email;
}
public void setEmail(String email) {
this.email = email;
}
}
@Override
public UpdateGroupMemberResponse getInstance(UnmarshallerContext context) {
return UpdateGroupMemberResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
1199da419826d01c3581b79c9394b24c17d8fc9d
|
96342d1091241ac93d2d59366b873c8fedce8137
|
/java/com/l2jolivia/tools/dbinstaller/util/mysql/MySqlConnect.java
|
95bacab8861454658ed191327bfc9b74cc1ade56
|
[] |
no_license
|
soultobe/L2JOlivia_EpicEdition
|
c97ac7d232e429fa6f91d21bb9360cf347c7ee33
|
6f9b3de9f63d70fa2e281b49d139738e02d97cd6
|
refs/heads/master
| 2021-01-10T03:42:04.091432
| 2016-03-09T06:55:59
| 2016-03-09T06:55:59
| 53,468,281
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,768
|
java
|
/*
* This file is part of the L2J Olivia project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 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 com.l2jolivia.tools.dbinstaller.util.mysql;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Formatter;
import javax.swing.JOptionPane;
/**
* @author mrTJO
*/
public class MySqlConnect
{
Connection con = null;
public MySqlConnect(String host, String port, String user, String password, String db, boolean console)
{
try (Formatter form = new Formatter())
{
Class.forName("com.mysql.jdbc.Driver").newInstance();
final String formattedText = form.format("jdbc:mysql://%1$s:%2$s", host, port).toString();
con = DriverManager.getConnection(formattedText, user, password);
try (Statement s = con.createStatement())
{
s.execute("CREATE DATABASE IF NOT EXISTS `" + db + "`");
s.execute("USE `" + db + "`");
}
}
catch (SQLException e)
{
if (console)
{
e.printStackTrace();
}
else
{
JOptionPane.showMessageDialog(null, "MySQL Error: " + e.getMessage(), "Connection Error", JOptionPane.ERROR_MESSAGE);
}
}
catch (InstantiationException e)
{
if (console)
{
e.printStackTrace();
}
else
{
JOptionPane.showMessageDialog(null, "Instantiation Exception: " + e.getMessage(), "Connection Error", JOptionPane.ERROR_MESSAGE);
}
}
catch (IllegalAccessException e)
{
if (console)
{
e.printStackTrace();
}
else
{
JOptionPane.showMessageDialog(null, "Illegal Access: " + e.getMessage(), "Connection Error", JOptionPane.ERROR_MESSAGE);
}
}
catch (ClassNotFoundException e)
{
if (console)
{
e.printStackTrace();
}
else
{
JOptionPane.showMessageDialog(null, "Cannot find MySQL Connector: " + e.getMessage(), "Connection Error", JOptionPane.ERROR_MESSAGE);
}
}
}
public Connection getConnection()
{
return con;
}
public Statement getStatement()
{
try
{
return con.createStatement();
}
catch (SQLException e)
{
e.printStackTrace();
System.out.println("Statement Null");
return null;
}
}
}
|
[
"kim@tsnet-j.co.jp"
] |
kim@tsnet-j.co.jp
|
072178cf0319d217b3a9f911a643b99e6469e60c
|
3a0daddf58bea9edf2f001a3cf1b0e8e810274f2
|
/mpesa-api/src/main/java/com/ngangavictor/mpesa/api/C2BSettings.java
|
a4dfa24f086ed7d127ee327fb7e324519bd23a66
|
[] |
no_license
|
danielmsd1/AndroidMpesaAPI-1
|
41bed787a7059b11fac0b6f28ab5a9dfc4e4390b
|
cd93de288ccefeec0a919314f6b7f7df5da91c6f
|
refs/heads/master
| 2022-03-27T04:13:36.584738
| 2019-12-17T13:05:51
| 2019-12-17T13:05:51
| 269,332,718
| 0
| 1
| null | 2020-06-04T10:44:02
| 2020-06-04T10:44:02
| null |
UTF-8
|
Java
| false
| false
| 1,291
|
java
|
package com.ngangavictor.mpesa.api;
public class C2BSettings {
public static String shortCode;
public static String commandId;
public static String amount;
public static String MSISDN;
public static String billRef;
public static String c2bUrl;
public static String getShortCode() {
return shortCode;
}
public static void setShortCode(String shortCode) {
C2BSettings.shortCode = shortCode;
}
public static String getCommandId() {
return commandId;
}
public static void setCommandId(String commandId) {
C2BSettings.commandId = commandId;
}
public static String getAmount() {
return amount;
}
public static void setAmount(String amount) {
C2BSettings.amount = amount;
}
public static String getMSISDN() {
return MSISDN;
}
public static void setMSISDN(String MSISDN) {
C2BSettings.MSISDN = MSISDN;
}
public static String getBillRef() {
return billRef;
}
public static void setBillRef(String billRef) {
C2BSettings.billRef = billRef;
}
public static String getC2bUrl() {
return c2bUrl;
}
public static void setC2bUrl(String c2bUrl) {
C2BSettings.c2bUrl = c2bUrl;
}
}
|
[
"ngangavictor10@gmail.com"
] |
ngangavictor10@gmail.com
|
deedb564449be4705c40b70d239ba81a397ea0d7
|
600df3590cce1fe49b9a96e9ca5b5242884a2a70
|
/android_webview/glue/java/src/com/android/webview/chromium/CookieManagerAdapter.java
|
67773883c4a1efb9707797df38596343cbc8f61e
|
[
"BSD-3-Clause"
] |
permissive
|
metux/chromium-suckless
|
efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a
|
72a05af97787001756bae2511b7985e61498c965
|
refs/heads/orig
| 2022-12-04T23:53:58.681218
| 2017-04-30T10:59:06
| 2017-04-30T23:35:58
| 89,884,931
| 5
| 3
|
BSD-3-Clause
| 2022-11-23T20:52:53
| 2017-05-01T00:09:08
| null |
UTF-8
|
Java
| false
| false
| 5,065
|
java
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package com.android.webview.chromium;
import android.net.ParseException;
import android.net.WebAddress;
import android.webkit.CookieManager;
import android.webkit.ValueCallback;
import android.webkit.WebView;
import org.chromium.android_webview.AwCookieManager;
import org.chromium.base.Log;
import org.chromium.base.annotations.SuppressFBWarnings;
/**
* Chromium implementation of CookieManager -- forwards calls to the
* chromium internal implementation.
*/
@SuppressWarnings("deprecation")
@SuppressFBWarnings("CHROMIUM_SYNCHRONIZED_METHOD")
public class CookieManagerAdapter extends CookieManager {
private static final String TAG = "CookieManager";
AwCookieManager mChromeCookieManager;
public CookieManagerAdapter(AwCookieManager chromeCookieManager) {
mChromeCookieManager = chromeCookieManager;
}
@Override
public synchronized void setAcceptCookie(boolean accept) {
mChromeCookieManager.setAcceptCookie(accept);
}
@Override
public synchronized boolean acceptCookie() {
return mChromeCookieManager.acceptCookie();
}
@Override
public synchronized void setAcceptThirdPartyCookies(WebView webView, boolean accept) {
webView.getSettings().setAcceptThirdPartyCookies(accept);
}
@Override
public synchronized boolean acceptThirdPartyCookies(WebView webView) {
return webView.getSettings().getAcceptThirdPartyCookies();
}
@Override
public void setCookie(String url, String value) {
if (value == null) {
Log.e(TAG, "Not setting cookie with null value for URL: %s", url);
return;
}
try {
mChromeCookieManager.setCookie(fixupUrl(url), value);
} catch (ParseException e) {
Log.e(TAG, "Not setting cookie due to error parsing URL: %s", url, e);
}
}
@Override
public void setCookie(String url, String value, ValueCallback<Boolean> callback) {
if (value == null) {
Log.e(TAG, "Not setting cookie with null value for URL: %s", url);
return;
}
try {
mChromeCookieManager.setCookie(fixupUrl(url), value, callback);
} catch (ParseException e) {
Log.e(TAG, "Not setting cookie due to error parsing URL: %s", url, e);
}
}
@Override
public String getCookie(String url) {
try {
return mChromeCookieManager.getCookie(fixupUrl(url));
} catch (ParseException e) {
Log.e(TAG, "Unable to get cookies due to error parsing URL: %s", url, e);
return null;
}
}
@Override
public String getCookie(String url, boolean privateBrowsing) {
return getCookie(url);
}
// TODO(igsolla): remove this override once the WebView apk does not longer need
// to be binary compatibility with the API 21 version of the framework
/**
* IMPORTANT: This override is required for compatibility with the API 21 version of
* {@link CookieManager}.
*/
@Override
public synchronized String getCookie(WebAddress uri) {
return mChromeCookieManager.getCookie(uri.toString());
}
@Override
public void removeSessionCookie() {
mChromeCookieManager.removeSessionCookies();
}
@Override
public void removeSessionCookies(ValueCallback<Boolean> callback) {
mChromeCookieManager.removeSessionCookies(callback);
}
@Override
public void removeAllCookie() {
mChromeCookieManager.removeAllCookies();
}
@Override
public void removeAllCookies(ValueCallback<Boolean> callback) {
mChromeCookieManager.removeAllCookies(callback);
}
@Override
public synchronized boolean hasCookies() {
return mChromeCookieManager.hasCookies();
}
@Override
public synchronized boolean hasCookies(boolean privateBrowsing) {
return mChromeCookieManager.hasCookies();
}
@Override
public void removeExpiredCookie() {
mChromeCookieManager.removeExpiredCookies();
}
@Override
public void flush() {
mChromeCookieManager.flushCookieStore();
}
@Override
protected boolean allowFileSchemeCookiesImpl() {
return mChromeCookieManager.allowFileSchemeCookies();
}
@Override
protected void setAcceptFileSchemeCookiesImpl(boolean accept) {
mChromeCookieManager.setAcceptFileSchemeCookies(accept);
}
private static String fixupUrl(String url) throws ParseException {
// WebAddress is a private API in the android framework and a "quirk"
// of the Classic WebView implementation that allowed embedders to
// be relaxed about what URLs they passed into the CookieManager, so we
// do the same normalisation before entering the chromium stack.
return new WebAddress(url).toString();
}
}
|
[
"enrico.weigelt@gr13.net"
] |
enrico.weigelt@gr13.net
|
7f015f398203bf0993573f7fbcbb491c8afff838
|
8727b1cbb8ca63d30340e8482277307267635d81
|
/PolarServer/src/com/game/pet/handler/ReqGotPetHandler.java
|
475d81649a78a26594c6430d2f9e10ef75bd0588
|
[] |
no_license
|
taohyson/Polar
|
50026903ded017586eac21a7905b0f1c6b160032
|
b0617f973fd3866bed62da14f63309eee56f6007
|
refs/heads/master
| 2021-05-08T12:22:18.884688
| 2015-12-11T01:44:18
| 2015-12-11T01:44:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 567
|
java
|
package com.game.pet.handler;
import org.apache.log4j.Logger;
import com.game.command.Handler;
import com.game.pet.manager.PetOptManager;
import com.game.pet.message.ReqGotPetMessage;
import com.game.player.structs.Player;
public class ReqGotPetHandler extends Handler{
Logger log = Logger.getLogger(ReqGotPetHandler.class);
public void action() {
try {
ReqGotPetMessage msg = (ReqGotPetMessage) this.getMessage();
PetOptManager.getInstance().gotPet((Player) getParameter(), msg.getModelId());
} catch (ClassCastException e) {
log.error(e);
}
}
}
|
[
"zhuyuanbiao@ZHUYUANBIAO.rd.com"
] |
zhuyuanbiao@ZHUYUANBIAO.rd.com
|
81cde4efb1b805837b4f0226aba0ee1f04b17d6c
|
841e0b3f06342f16079e283ce144f3957321580e
|
/src/test/java/org/apache/sling/cassandra/test/data/populator/CassandraDataAddLoadTest.java
|
0c5489821115961e66450db5eb8a676a1731e79f
|
[
"Apache-2.0"
] |
permissive
|
apache/sling-org-apache-sling-cassandra
|
9f62293a7f92344f0a189a8e0628642744b9db9c
|
05d1d9ea9402701680aded5e34846e4c68aef331
|
refs/heads/master
| 2023-08-25T17:25:13.964921
| 2023-04-04T21:12:55
| 2023-04-04T21:12:55
| 107,434,503
| 3
| 5
|
Apache-2.0
| 2022-11-03T23:02:27
| 2017-10-18T16:30:21
|
Java
|
UTF-8
|
Java
| false
| false
| 5,080
|
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.sling.cassandra.test.data.populator;
import org.apache.commons.codec.binary.Base64;
import me.prettyprint.cassandra.model.CqlQuery;
import me.prettyprint.cassandra.model.CqlRows;
import me.prettyprint.cassandra.serializers.StringSerializer;
import me.prettyprint.hector.api.Keyspace;
import me.prettyprint.hector.api.exceptions.HInvalidRequestException;
import me.prettyprint.hector.api.query.QueryResult;
import org.apache.sling.cassandra.resource.provider.CassandraResource;
import org.apache.sling.cassandra.resource.provider.CassandraResourceProvider;
import org.apache.sling.cassandra.resource.provider.CassandraResourceResolver;
import org.apache.sling.cassandra.resource.provider.util.CassandraResourceProviderUtil;
import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.HashMap;
import java.util.Map;
/**
* Can build a test profile that adds
* 1K,10K,100K,1M items to Cassandra, each under 1 parent collection.
* eg
* content/cassandra/1K/0 to /content/cassandra/1K/999
* content/cassandra/10K/0 to /content/cassandra/10K/9999
* content/cassandra/100K/0 to /content/cassandra/100K/99999
* content/cassandra/1M/0 to /content/cassandra/1M/999999
* <p/>
* To add 1000 nodes as content/cassandra/1K/0 to /content/cassandra/1K/999
* set parentPath = "/content/cassandra/";
* set count = 1000
* set cf="1K"
* And run the test.
*/
public class CassandraDataAddLoadTest {
private static Logger LOGGER = LoggerFactory.getLogger(CassandraDataAddLoadTest.class);
private int count = 10;
private String[] cfs = new String[]{"A1", "B1", "C1", "D1"};
private int[] sizes = new int[]{10, 100, 1000, 10000};
private String parentPath = "/content/cassandra/";
public static void main(String[] args) {
String path="/content/cassandra/foo";
if(path.startsWith("/") && path.split("/").length > 4){
System.out.println(path.split("/").length);
} else {
System.out.println(">> "+path.split("/").length);
}
// new CassandraDataAddLoadTest().testAddLoadTestData();
}
public void testAddLoadTestData() {
try {
for (int k = 0; k < sizes.length; k++) {
CassandraResourceProvider cassandraResourceProvider = new CassandraResourceProvider();
createColumnFamily(cfs[k], cassandraResourceProvider.getKeyspace(), new StringSerializer());
cassandraResourceProvider.setColumnFamily(cfs[k]);
CassandraResourceResolver resolver = new CassandraResourceResolver();
for (int i = 0; i < sizes[k]; i++) {
String path = parentPath + cfs[k] + "/" + i;
Map<String, Object> map1 = new HashMap<String, Object>();
map1.put("metadata", "resolutionPathInfo=json");
map1.put("resourceType", "nt:cassandra0");
map1.put("resourceSuperType", "nt:supercass1");
cassandraResourceProvider.create(resolver, path, map1);
cassandraResourceProvider.commit(resolver);
System.out.println(">>" + path);
}
}
} catch (Exception e) {
LOGGER.info("Ignore err" + e.getMessage());
Assert.fail("Failed to add data to cassandra");
}
}
private void createColumnFamily(String cf, Keyspace keyspace, StringSerializer se) {
String createCF = "CREATE COLUMNFAMILY " + cf + " (KEY varchar PRIMARY KEY,path varchar,resourceType varchar,resourceSuperType varchar,metadata varchar);";
CqlQuery<String, String, String> cqlQuery = new CqlQuery<String, String, String>(keyspace, se, se, se);
cqlQuery.setQuery(createCF);
try {
QueryResult<CqlRows<String, String, String>> result1 = cqlQuery.execute();
LOGGER.info(result1.get().getList().size() + " Finished.!");
} catch (HInvalidRequestException ignore) {
LOGGER.debug("Column Family already exists " + ignore.getMessage());
}
}
}
|
[
"bdelacretaz@apache.org"
] |
bdelacretaz@apache.org
|
baba586d45446927a4193d67f2e7de1184df69c5
|
2f7dd846d7f828aef4affeffc8d72195e38a9217
|
/src/main/java/healthcares/spring/dao/TypeSyncDao.java
|
9ad774c8f19b0cc71d2ee65b95faa28969db460d
|
[] |
no_license
|
maxgame112/farm3
|
92d392a84f2032561136f99d5b21ea5c62046ebc
|
c297e49913cb3089959be472d9c8773355de6965
|
refs/heads/master
| 2021-08-28T12:35:32.353491
| 2017-12-12T08:42:23
| 2017-12-12T08:42:23
| 111,078,263
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 357
|
java
|
package healthcares.spring.dao;
import java.util.List;
import healthcares.spring.model.TypeSync;
public interface TypeSyncDao {
public void add(TypeSync typesync);
public void edit(TypeSync typesync);
public void delete(int Id);
public TypeSync getTypeSync(int Id);
public List getAllTypeSync();
public List getAllTypeSyncByName(String value);
}
|
[
"you@example.com"
] |
you@example.com
|
f20cf5ecee612f4aaa50d65c0ff482d332aa0d66
|
ad32344c4c016cdf06ebb47af43ddaa5c6e2ac39
|
/alipay-service/alipay-service-3rdparty/src/main/java/com/alipay/api/response/AlipayDaoweiOrderRefundResponse.java
|
2cef56649a7acc371331c1b96a36bb89f0572300
|
[] |
no_license
|
leijuan1014/ljj-project
|
96f4bcded39ab3ff422ddf3cd515c38511d7524d
|
dda018e182c4c1229d5392d6d2ed16b0c7001fbd
|
refs/heads/master
| 2021-01-20T23:47:32.854069
| 2017-10-09T07:10:31
| 2017-10-09T07:10:31
| 101,843,379
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 364
|
java
|
package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.daowei.order.refund response.
*
* @author auto create
* @since 1.0, 2017-03-20 14:02:08
*/
public class AlipayDaoweiOrderRefundResponse extends AlipayResponse {
private static final long serialVersionUID = 5628363538744936167L;
}
|
[
"leijuan1014@163.com"
] |
leijuan1014@163.com
|
c7f1d6a89242bc5cfd05296f4529c7bf2250ff54
|
30ce31989513fe03ca0736555adf6e8b80b1c093
|
/src/com/cisco/axl/api/_8/XUserGroup.java
|
156bec3d16d68558101539465af04806fd6be87b
|
[] |
no_license
|
axenlarde/Woot
|
21374d0c29e9d6e0b6f0f91f2cbb455f2e2a875e
|
447728a2793f42530884bb0f3f388d33b3708bc1
|
refs/heads/master
| 2022-04-09T19:19:33.826592
| 2020-02-07T10:36:55
| 2020-02-07T10:36:55
| 115,440,477
| 4
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,749
|
java
|
package com.cisco.axl.api._8;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* <p>Java class for XUserGroup complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="XUserGroup">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence minOccurs="0">
* <element name="name" type="{http://www.cisco.com/AXL/API/8.5}UniqueName128"/>
* <element name="members" minOccurs="0">
* <complexType>
* <complexContent>
* <extension base="{http://www.cisco.com/AXL/API/8.5}XCommonMembersExtension">
* <sequence minOccurs="0">
* <element name="member" type="{http://www.cisco.com/AXL/API/8.5}XUserGroupMember" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </element>
* <element name="userRoles" minOccurs="0">
* <complexType>
* <complexContent>
* <extension base="{http://www.cisco.com/AXL/API/8.5}XCommonMembersExtension">
* <sequence minOccurs="0">
* <element name="userRole" type="{http://www.cisco.com/AXL/API/8.5}XUserGroupRoles" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "XUserGroup", propOrder = {
"name",
"members",
"userRoles"
})
public class XUserGroup {
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String name;
protected XUserGroup.Members members;
protected XUserGroup.UserRoles userRoles;
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the members property.
*
* @return
* possible object is
* {@link XUserGroup.Members }
*
*/
public XUserGroup.Members getMembers() {
return members;
}
/**
* Sets the value of the members property.
*
* @param value
* allowed object is
* {@link XUserGroup.Members }
*
*/
public void setMembers(XUserGroup.Members value) {
this.members = value;
}
/**
* Gets the value of the userRoles property.
*
* @return
* possible object is
* {@link XUserGroup.UserRoles }
*
*/
public XUserGroup.UserRoles getUserRoles() {
return userRoles;
}
/**
* Sets the value of the userRoles property.
*
* @param value
* allowed object is
* {@link XUserGroup.UserRoles }
*
*/
public void setUserRoles(XUserGroup.UserRoles value) {
this.userRoles = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <extension base="{http://www.cisco.com/AXL/API/8.5}XCommonMembersExtension">
* <sequence minOccurs="0">
* <element name="member" type="{http://www.cisco.com/AXL/API/8.5}XUserGroupMember" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"member"
})
public static class Members
extends XCommonMembersExtension
{
protected List<XUserGroupMember> member;
/**
* Gets the value of the member property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the member property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getMember().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link XUserGroupMember }
*
*
*/
public List<XUserGroupMember> getMember() {
if (member == null) {
member = new ArrayList<XUserGroupMember>();
}
return this.member;
}
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <extension base="{http://www.cisco.com/AXL/API/8.5}XCommonMembersExtension">
* <sequence minOccurs="0">
* <element name="userRole" type="{http://www.cisco.com/AXL/API/8.5}XUserGroupRoles" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"userRole"
})
public static class UserRoles
extends XCommonMembersExtension
{
protected List<XUserGroupRoles> userRole;
/**
* Gets the value of the userRole property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the userRole property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getUserRole().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link XUserGroupRoles }
*
*
*/
public List<XUserGroupRoles> getUserRole() {
if (userRole == null) {
userRole = new ArrayList<XUserGroupRoles>();
}
return this.userRole;
}
}
}
|
[
"Alexandre@NANALENO"
] |
Alexandre@NANALENO
|
887bd0803524a264445eeb2a6836a1e962497ee9
|
784420293504203e0485674947e252b9a884f9cf
|
/asciidoctor-editor-plugin/src/main/java/de/jcup/asciidoctoreditor/diagram/plantuml/PlantUMLContentTransformer.java
|
fa4871864e2f76b0dec460a384153b6d29abbdba
|
[
"Apache-2.0"
] |
permissive
|
de-jcup/eclipse-asciidoctor-editor
|
db5515421613e8ccfec749318fb6366b1f838e76
|
5dbbb4fdeac0634eec94c1cb6773246457ac2c3f
|
refs/heads/master
| 2023-02-16T00:20:39.858165
| 2023-02-10T21:52:39
| 2023-02-10T21:52:54
| 125,332,958
| 49
| 18
|
NOASSERTION
| 2022-08-21T23:26:15
| 2018-03-15T08:06:29
|
Java
|
UTF-8
|
Java
| false
| false
| 2,711
|
java
|
/*
* Copyright 2018 Albert Tregnaghi
*
* 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 de.jcup.asciidoctoreditor.diagram.plantuml;
import de.jcup.asciidoctoreditor.AbstractContentTransformer;
import de.jcup.asciidoctoreditor.ContentTransformerData;
public class PlantUMLContentTransformer extends AbstractContentTransformer {
private PlantUMLDataProvider provider;
public void setDataProvider(PlantUMLDataProvider provider) {
this.provider = provider;
}
@Override
protected String saveTransform(ContentTransformerData data) {
StringBuilder sb = new StringBuilder();
if (data.origin != null) {
sb.append("[plantuml");
if (data.filename != null && !data.filename.isEmpty()) {
sb.append(",");
sb.append(data.filename);
}
double scaleFactor = 1;
if (provider != null) {
PlantUMLOutputFormat format = provider.getOutputFormat();
if (format != null) {
sb.append(",");
sb.append(format.getAsciiDocFormatString());
}
scaleFactor = provider.getScaleFactor();
}
sb.append("]\n----\n");
sb.append(scaled(data.origin,scaleFactor));
sb.append("\n----\n");
}
return sb.toString();
}
private String scaled(String origin, double scaleFactor) {
if (scaleFactor==1) {
return origin;
}
// find the first @plantuml @mind map etc.
int atIndex = origin.indexOf("@");
if (atIndex==-1) {
return origin;
}
int newLineAfterAtIndex = origin.indexOf('\n',atIndex);
if (newLineAfterAtIndex==-1) {
return origin;
}
StringBuilder sb = new StringBuilder();
sb.append(origin);
String scaleString = "scale "+scaleFactor+"\n";
sb.insert(newLineAfterAtIndex+1, scaleString);
return sb.toString();
}
@Override
public boolean isTransforming(Object data) {
return true;
}
}
|
[
"albert.tregnaghi@gmail.com"
] |
albert.tregnaghi@gmail.com
|
25cde379c28459d3ef507613f1101eab62fda4d5
|
f2b3f0970d1b8c52a9cec82be4107ffe1f33a8a2
|
/lei20_21_s4_2dk_03/base.app.servidor/src/main/java/eapli/base/app/servidor/escalonadores/assignartarefasacolaboradores/AtribuidorDeTarefasFCFS.java
|
7ef04c8c3e1fe502eee880ae5d1fa24a557f1427
|
[
"MIT"
] |
permissive
|
antoniodanielbf-isep/LAPR4-2021
|
b98ed96809e4726957ede0904b4265825a1083c6
|
f665064e65cc4f917514c10950af833f053c9b3b
|
refs/heads/main
| 2023-05-31T14:29:45.364395
| 2021-06-20T17:55:26
| 2021-06-20T17:55:26
| 378,706,704
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,337
|
java
|
package eapli.base.app.servidor.escalonadores.assignartarefasacolaboradores;
import eapli.base.atividade.domain.AtividadeManual;
import eapli.base.clientusermanagement.domain.Colaborador;
import eapli.base.equipa.domain.Equipa;
/**
* The type Atribuidor de tarefas fcfs.
*/
public class AtribuidorDeTarefasFCFS implements EscalonadoresAssignarTarefas {
private UtilAtribuicaoAtividadesManuais util;
private AtividadeManual atManual;
/**
* Instantiates a new Atribuidor de tarefas fcfs.
*/
public AtribuidorDeTarefasFCFS() {
util = new UtilAtribuicaoAtividadesManuais();
}
/**
* Escalonar atividade.
*
* @param atividadeManual the atividade manual
*/
public void escalonarAtividade(AtividadeManual atividadeManual) {
this.atManual = atividadeManual;
Equipa eq = util.getEquipaResponsavelAtividade(atividadeManual);
if (eq == null) {
atribuirAtividadesManuaisAutomaticamente("");
}
atribuirAtividadesManuaisAutomaticamente(eq.identity().toString());
}
@Override
public void atribuirAtividadesManuaisAutomaticamente(String idEquipa) {
Colaborador colab = util.colaboradorComUltimaTarefaAtribuidaAMaisDias(idEquipa, atManual.identity());
util.assignarAtivColab(colab, atManual);
}
}
|
[
"1190402@isep.ipp.pt"
] |
1190402@isep.ipp.pt
|
dcfa3d55e95ae15d6132c82d2f21a33d1ca6c8d5
|
201de1906e9498baa6df7423296c43ce1c04d6b6
|
/.history/src/main/java/com/example/ManagerProject/Controller/ProjectController_20190807184404.java
|
dd7a3250223c7271f360d376441fabd0a54f4f2b
|
[] |
no_license
|
Isamae/Project-Estratego
|
822e9782e94444df8beb2afc736e808ce52fe58f
|
0429245ff8cc2c5cc4d442cc1d09516ea67ac779
|
refs/heads/master
| 2022-12-12T00:34:23.736293
| 2020-03-27T19:23:22
| 2020-03-27T19:23:22
| 200,688,183
| 0
| 0
| null | 2022-11-28T22:21:50
| 2019-08-05T16:06:52
|
Java
|
UTF-8
|
Java
| false
| false
| 2,283
|
java
|
package com.example.ManagerProject.Controller;
import net.sf.mpxj.ProjectFile;
import net.sf.mpxj.Day;
import net.sf.mpxj.DayType;
import net.sf.mpxj.ProjectCalendar;
import net.sf.mpxj.reader.ProjectReader;
import net.sf.mpxj.reader.UniversalProjectReader;
import java.util.List;
import java.io.File;
import java.util.ArrayList;
import org.springframework.boot.configurationprocessor.json.JSONObject;
import org.springframework.util.ResourceUtils;
public class ProjectController{
public JSONObject getjsonProject() throws Exception{
Project project = new Project();
File file = ResourceUtils.getFile("classpath:"+"Casa6.mpp");
ProjectReader reader = new UniversalProjectReader();
ProjectFile archivo = reader.read(file);
String jsonString = "{ ";
jsonString = jsonString + " calendarios : " +getCalendarios(project,archivo)
+ " , " + " recursos : " + project.getRecursos(archivo)
+ " , " + " tareas : " + project.getTareas(archivo)
+ " , " + " asigRecursos : " + project.asignacionesRecursos(archivo)
+ " , " + " allColum : " + project.columnasTask(archivo)
+ "}";
JSONObject jsonObject= new JSONObject(jsonString);
return jsonObject;
}
public String getCalendarios(Project project, ProjectFile archivo){
String calendarios = "[ ";
List < ProjectCalendar > calendars = archivo.getCalendars ();
for(ProjectCalendar calendar : calendars){
calendarios = calendarios
+ " { " + " nombre : " + calendar.getName()
+ " , " + "diaslab : " + (project.getDiasCalendario (calendar, DayType.WORKING)).toString()
+ " , " + "diasnolab : " + (project.getDiasCalendario (calendar, DayType.NON_WORKING)).toString()
+ " , " + "calenderDefault :" + (project.getDiasCalendario (calendar, DayType.DEFAULT)).toString()
+ " , " + "calenderHorario :" + (project.getHorasCalendario (calendar, project.getDiasCalendario (calendar, DayType.WORKING))).toString()
+ " , " + "calenderExcepciones :" + (project.getExcepcionesCalendario (calendar)).toString()
+ " } " + " ,";
}
if(calendarios.length()>1){
calendarios = calendarios.substring(0, calendarios.length()-1) ;
}
else{}
calendarios = calendarios + "]" ;
return calendarios;
}
}
|
[
"diego.ismael.montesdeoca@gmail.com"
] |
diego.ismael.montesdeoca@gmail.com
|
6d6f05b2e68857b22980cce2fb4cbb6a4e1c3960
|
aaf8f512d7a792bcdaf01f37783e3052c3d2726b
|
/Observer/src/co/edu/unbosque/model/Subject.java
|
ef09e6550871a55a507d2b397aa75b8931e82dd1
|
[] |
no_license
|
uebprogramacion1/program-patrones
|
75be6b9abdd8e4fd0569cfc7b4a0d581003fe36d
|
36619a1b5c11e91cede00a5719546ebf0200895d
|
refs/heads/master
| 2023-06-01T23:15:39.563846
| 2021-06-20T14:46:50
| 2021-06-20T14:46:50
| 378,553,457
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 604
|
java
|
package co.edu.unbosque.model;
import java.util.ArrayList;
public class Subject {
private ArrayList<Observador> observadores = new ArrayList<Observador>();
private int estado;
public Subject() {
// TODO Auto-generated constructor stub
}
public int getEstado() {
return estado;
}
public void setEstado(int estado) {
this.estado = estado;
notificarTodosObservadores();
}
public void agregar(Observador observador) {
observadores.add(observador);
}
public void notificarTodosObservadores() {
for (Observador observador : observadores) {
observador.actualizar();
}
}
}
|
[
"rcamargol@unbosque.edu.co"
] |
rcamargol@unbosque.edu.co
|
bbc407c9a5756b1aa651edcc2595a806bb38662b
|
718e7e2358354c41e29e1d70527f62d5edd023c4
|
/src/main/java/io/fintechlabs/testframework/ui/ServerInfoUIController.java
|
d9bd4028286d773161570c8139d877fd36cff0fe
|
[
"MIT"
] |
permissive
|
hkj123/ob-security-conformance-suite-deprecated-master
|
f4071183d614bcc7abee9a0d067a9f3fc9768cbc
|
afa57d7d4d1399a6f869cf3dca08a0464b48a616
|
refs/heads/master
| 2022-06-06T15:41:03.902881
| 2019-12-10T02:53:51
| 2019-12-10T02:53:51
| 226,053,989
| 0
| 0
|
NOASSERTION
| 2022-05-20T21:17:26
| 2019-12-05T08:34:23
|
Java
|
UTF-8
|
Java
| false
| false
| 800
|
java
|
package io.fintechlabs.testframework.ui;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class ServerInfoUIController {
@Autowired
private ServerInfoTemplate serverInfoTemplate;
/**
* Provide a JSON result that represents the currently Server Info.
*
* @return the info of server
*/
@RequestMapping(value = "/api/server", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<Object> getServerInfo() {
return new ResponseEntity<>(serverInfoTemplate.getServerInfo(), HttpStatus.OK);
}
}
|
[
"190916516@qq.com"
] |
190916516@qq.com
|
1f5d345ead05adb835321fb3f3b8b8466167b1cf
|
930c207e245c320b108e9699bbbb036260a36d6a
|
/BRICK-RDF4J/generatedCode/src/main/java/brickschema/org/schema/_1_0_2/Brick/IIsolation_Valve.java
|
e79575afe114da94d61b6964506cf6359023eac7
|
[] |
no_license
|
InnovationSE/BRICK-Generated-By-OLGA
|
24d278f543471e1ce622f5f45d9e305790181fff
|
7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2
|
refs/heads/master
| 2021-07-01T14:13:11.302860
| 2017-09-21T12:44:17
| 2017-09-21T12:44:17
| 104,251,784
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 402
|
java
|
/**
* This file is automatically generated by OLGA
* @author OLGA
* @version 1.0
*/
package brickschema.org.schema._1_0_2.Brick;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.rdf4j.model.IRI;
import org.eclipse.rdf4j.model.vocabulary.RDF;
import brickschema.org.schema._1_0_2.Brick.IValve;
public interface IIsolation_Valve extends IValve {
public IRI iri();
}
|
[
"Andre.Ponnouradjane@non.schneider-electric.com"
] |
Andre.Ponnouradjane@non.schneider-electric.com
|
31aa0761225045d7cb083b927e1aaba7320914fd
|
17dc7d12a28bc45deed6e78f848d24d49ae60791
|
/Functional_Programming_in_Java/src/test/java/FunctionalProgrammingInJavaBook_Chapter_2/MyFunction.java
|
261d9e1447b723826ab10ce76da976d0ead61865
|
[] |
no_license
|
kenparker/JavaCodeExamples
|
efc415cb3b46d4a3daa2141db84e15c1f33cb053
|
4e4c2478f14f604818049f5e1744a29e1eedd9d1
|
refs/heads/master
| 2021-12-29T01:55:18.431281
| 2019-07-17T12:44:12
| 2019-07-17T12:44:12
| 25,960,022
| 0
| 0
| null | 2021-12-14T21:13:14
| 2014-10-30T07:42:51
|
Java
|
UTF-8
|
Java
| false
| false
| 1,102
|
java
|
package FunctionalProgrammingInJavaBook_Chapter_2;
public interface MyFunction<T,U> {
U apply(T arg);
static <T> MyFunction<T, T> identity() {
return t -> t;
}
static MyFunction<Integer, Integer> composeAnonymus(MyFunction<Integer, Integer> f1, MyFunction<Integer, Integer> f2) {
return new MyFunction<Integer, Integer>() {
@Override
public Integer apply(Integer arg) {
return f1.apply(f2.apply(arg));
}
};
}
static MyFunction<Integer, Integer> composeLambdas(MyFunction<Integer, Integer> f1, MyFunction<Integer, Integer> f2) {
return arg -> f1.apply(f2.apply(arg));
}
static <T, U, V> MyFunction<MyFunction<T, U>,
MyFunction<MyFunction<V, T>,
MyFunction<V, U>>> higherCompose() {
return f -> g -> x -> f.apply(g.apply(x));
}
static <T, U, V> MyFunction<MyFunction<T, U>,
MyFunction<MyFunction<U, V>,
MyFunction<T, V>>> higherAndThen() {
return f -> g -> x -> g.apply(f.apply(x));
}
}
|
[
"magangde@yahoo.de"
] |
magangde@yahoo.de
|
50363f305d13914a92b6ddccca7a197e3e0fe0e1
|
ae8dba96dde64894acdb8bf6cd6e76d7e8b3358c
|
/solr-client/src/main/java/org/kuali/ole/indexer/SolrInputDocumentAndDocumentMap.java
|
27af9ebe4c30a802dae3ff256c2366e936a38b62
|
[] |
no_license
|
rajeshgnanam/ole_soas_integaration
|
d4722b2e1721908a03355f39cea3816288d2fef6
|
ed168a404e306870d90d2a197799ecba639ff72e
|
refs/heads/develop-solr-client
| 2021-06-05T00:07:20.756843
| 2018-11-09T07:01:09
| 2018-11-09T07:01:09
| 115,091,975
| 0
| 1
| null | 2019-01-21T11:02:11
| 2017-12-22T07:59:56
|
Java
|
UTF-8
|
Java
| false
| false
| 788
|
java
|
package org.kuali.ole.indexer;
import org.apache.solr.common.SolrInputDocument;
import java.util.Map;
/**
* Created by sheiks on 28/10/16.
*/
public class SolrInputDocumentAndDocumentMap {
private SolrInputDocument solrInputDocument;
private Map map;
public SolrInputDocumentAndDocumentMap(SolrInputDocument solrInputDocument, Map map) {
this.solrInputDocument = solrInputDocument;
this.map = map;
}
public SolrInputDocument getSolrInputDocument() {
return solrInputDocument;
}
public void setSolrInputDocument(SolrInputDocument solrInputDocument) {
this.solrInputDocument = solrInputDocument;
}
public Map getMap() {
return map;
}
public void setMap(Map map) {
this.map = map;
}
}
|
[
"sheiksalahudeen.m@kuali.org"
] |
sheiksalahudeen.m@kuali.org
|
4fbb89f93fcfc89082193d81e06058378e073e05
|
d60e287543a95a20350c2caeabafbec517cabe75
|
/LACCPlus/Camel/2627_1.java
|
74fa25127b5591380dce3327b3d361b6f2115cd1
|
[
"MIT"
] |
permissive
|
sgholamian/log-aware-clone-detection
|
242067df2db6fd056f8d917cfbc143615c558b2c
|
9993cb081c420413c231d1807bfff342c39aa69a
|
refs/heads/main
| 2023-07-20T09:32:19.757643
| 2021-08-27T15:02:50
| 2021-08-27T15:02:50
| 337,837,827
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,456
|
java
|
//,temp,BacklogDebuggerTest.java,254,328,temp,BacklogDebuggerTest.java,98,174
//,3
public class xxx {
@SuppressWarnings("unchecked")
@Test
public void testBacklogDebuggerRemoveBodyAndHeader() throws Exception {
MBeanServer mbeanServer = getMBeanServer();
ObjectName on = new ObjectName(
"org.apache.camel:context=" + context.getManagementName() + ",type=tracer,name=BacklogDebugger");
assertNotNull(on);
mbeanServer.isRegistered(on);
Boolean enabled = (Boolean) mbeanServer.getAttribute(on, "Enabled");
assertEquals(Boolean.FALSE, enabled, "Should not be enabled");
// enable debugger
mbeanServer.invoke(on, "enableDebugger", null, null);
enabled = (Boolean) mbeanServer.getAttribute(on, "Enabled");
assertEquals(Boolean.TRUE, enabled, "Should be enabled");
// add breakpoint at bar
mbeanServer.invoke(on, "addBreakpoint", new Object[] { "foo" }, new String[] { "java.lang.String" });
mbeanServer.invoke(on, "addBreakpoint", new Object[] { "bar" }, new String[] { "java.lang.String" });
MockEndpoint mock = getMockEndpoint("mock:result");
mock.expectedMessageCount(0);
mock.setSleepForEmptyTest(100);
template.sendBody("seda:start", "Hello World");
assertMockEndpointsSatisfied();
// add breakpoint at bar
Set<String> nodes = (Set<String>) mbeanServer.invoke(on, "getSuspendedBreakpointNodeIds", null, null);
assertNotNull(nodes);
assertEquals(1, nodes.size());
assertEquals("foo", nodes.iterator().next());
// update body and header
mbeanServer.invoke(on, "removeMessageBodyOnBreakpoint", new Object[] { "foo" }, new String[] { "java.lang.String" });
mbeanServer.invoke(on, "removeMessageHeaderOnBreakpoint", new Object[] { "foo", "beer" },
new String[] { "java.lang.String", "java.lang.String" });
// resume breakpoint
mbeanServer.invoke(on, "resumeBreakpoint", new Object[] { "foo" }, new String[] { "java.lang.String" });
// wait for breakpoint at bar
await().atMost(1, TimeUnit.SECONDS).untilAsserted(() -> {
Set<String> suspended = (Set<String>) mbeanServer.invoke(on, "getSuspendedBreakpointNodeIds", null, null);
assertNotNull(suspended);
assertEquals(1, suspended.size());
assertEquals("bar", suspended.iterator().next());
});
// the message should be ours
String xml = (String) mbeanServer.invoke(on, "dumpTracedMessagesAsXml", new Object[] { "bar" },
new String[] { "java.lang.String" });
assertNotNull(xml);
log.info(xml);
assertTrue(xml.contains("<body>[Body is null]</body>"), "Should not contain our body");
assertTrue(xml.contains("<toNode>bar</toNode>"), "Should contain bar node");
assertFalse(xml.contains("<header"), "Should not contain any headers");
resetMocks();
mock.expectedMessageCount(1);
// resume breakpoint
mbeanServer.invoke(on, "resumeBreakpoint", new Object[] { "bar" }, new String[] { "java.lang.String" });
assertMockEndpointsSatisfied();
// and no suspended anymore
nodes = (Set<String>) mbeanServer.invoke(on, "getSuspendedBreakpointNodeIds", null, null);
assertNotNull(nodes);
assertEquals(0, nodes.size());
}
};
|
[
"SHOSHIN\\sgholamian@shoshin.uwaterloo.ca"
] |
SHOSHIN\sgholamian@shoshin.uwaterloo.ca
|
a677ae07aee31b5515ae402bba9126f894adc8f0
|
31453f27f10c4396ba5b17dee4356f2be551e3f0
|
/app/src/main/java/com/example/zhujia/dx_shop/Tools/wheelview/adapter/WheelViewAdapter.java
|
5e8e3a657092870b0c32dffde3f30113d8704b61
|
[] |
no_license
|
zhujiammy/Dx_Shop
|
b14f6076c8501b73874065890699d881cf9a710c
|
c228d7b860173e6f5446c4bfd67f3bb75c80b926
|
refs/heads/master
| 2020-03-17T23:23:37.468529
| 2018-08-28T03:13:03
| 2018-08-28T03:13:03
| 134,042,667
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,065
|
java
|
/*
* Copyright 2011 Yuri Kanivets
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.zhujia.dx_shop.Tools.wheelview.adapter;
import android.database.DataSetObserver;
import android.view.View;
import android.view.ViewGroup;
/**
* Wheel items adapter interface
*/
public interface WheelViewAdapter {
/**
* Gets items count
* @return the count of wheel items
*/
public int getItemsCount();
/**
* Get a View that displays the data at the specified position in the data set
*
* @param index the item index
* @param convertView the old view to reuse if possible
* @param parent the parent that this view will eventually be attached to
* @return the wheel item View
*/
public View getItem(int index, View convertView, ViewGroup parent);
/**
* Get a View that displays an empty wheel item placed before the first or after
* the last wheel item.
*
* @param convertView the old view to reuse if possible
* @param parent the parent that this view will eventually be attached to
* @return the empty item View
*/
public View getEmptyItem(View convertView, ViewGroup parent);
/**
* Register an observer that is called when changes happen to the data used by this adapter.
* @param observer the observer to be registered
*/
public void registerDataSetObserver(DataSetObserver observer);
/**
* Unregister an observer that has previously been registered
* @param observer the observer to be unregistered
*/
void unregisterDataSetObserver(DataSetObserver observer);
}
|
[
"945529210@qq.com"
] |
945529210@qq.com
|
d7d7736d38db57ce0fcfd9e45689ae9e7ce133e7
|
799cce351010ca320625a651fb2e5334611d2ebf
|
/Data Set/Manual/After/after_1094.java
|
5133f6a5e5f865cceb4d0e733e6df254bd1ca56c
|
[] |
no_license
|
dareenkf/SQLIFIX
|
239be5e32983e5607787297d334e5a036620e8af
|
6e683aa68b5ec2cfe2a496aef7b467933c6de53e
|
refs/heads/main
| 2023-01-29T06:44:46.737157
| 2020-11-09T18:14:24
| 2020-11-09T18:14:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 506
|
java
|
public class Dummy{
@Override
public int deleteFacility(int id) {
int result = -1;
String query = "DELETE FROM Facility WHERE id= '?'";
System.out.println("Delete query: " + query);
try {
PreparedStatement stmt = con.prepareStatement();
stmt.setQueryTimeout(5);
stmt.setObject(1,id);
result = stmt.executeUpdate(query);
stmt.close();
} catch (SQLException e) {
System.out.println("Delete exception: " + e);
}
return (result);
}}
|
[
"jahin99@gmail.com"
] |
jahin99@gmail.com
|
5dae88e82d2a1c62cdf50922e254a6d410017060
|
d8772960b3b2b07dddc8a77595397cb2618ec7b0
|
/rhServer/src/main/java/com/rhlinkcon/payload/esocial/EsocialRequest.java
|
36bb92b3162bba870fd77c46672bc1c803ec4b9d
|
[] |
no_license
|
vctrmarques/interno-rh-sistema
|
c0f49a17923b5cdfaeb148c6f6da48236055cf29
|
7a7a5d9c36c50ec967cb40a347ec0ad3744d896e
|
refs/heads/main
| 2023-03-17T02:07:10.089496
| 2021-03-12T19:06:05
| 2021-03-12T19:06:05
| 347,168,924
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 459
|
java
|
package com.rhlinkcon.payload.esocial;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
public class EsocialRequest {
private Long id;
@NotBlank
@NotNull
private String descricao;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getDescricao() {
return descricao;
}
public void setDescricao(String descricao) {
this.descricao = descricao;
}
}
|
[
"vctmarques@gmail.com"
] |
vctmarques@gmail.com
|
c7cf90c715a2f6425cdafbc5c2a996f8ecb85815
|
69c1256baec48b66365b5ec8faec5d6318b0eb21
|
/Mage.Sets/src/mage/sets/onslaught/Demystify.java
|
f3b366113448a15c4472668d321d42fe0789eb0a
|
[] |
no_license
|
gbraad/mage
|
3b84eefe4845258f6250a7ff692e1f2939864355
|
18ce6a0305db6ebc0d34054af03fdb0ba88b5a3b
|
refs/heads/master
| 2022-09-28T17:31:38.653921
| 2015-04-04T22:28:22
| 2015-04-04T22:28:22
| 33,435,029
| 1
| 0
| null | 2022-09-01T23:39:50
| 2015-04-05T08:25:58
|
Java
|
UTF-8
|
Java
| false
| false
| 2,143
|
java
|
/*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. 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.
*
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``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 BetaSteward_at_googlemail.com 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.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.sets.onslaught;
import java.util.UUID;
/**
*
* @author North
*/
public class Demystify extends mage.sets.tenth.Demystify {
public Demystify(UUID ownerId) {
super(ownerId);
this.cardNumber = 24;
this.expansionSetCode = "ONS";
}
public Demystify(final Demystify card) {
super(card);
}
@Override
public Demystify copy() {
return new Demystify(this);
}
}
|
[
"robyter@gmail"
] |
robyter@gmail
|
7bafe52b1e9ac0dc682ff25a4607a7f44d471575
|
de3cc32c392bda4cbc33903259f99194c78bf4d7
|
/src/main/java/io/github/jhipster/application/service/FreeSpanSupportQueryService.java
|
d9754c043fd9a5e963bab09ceaffd15bbda4e70a
|
[] |
no_license
|
Orvas/jhipster-sample-application
|
526d4a05098dd508ee66d478b2e419f9b65af96d
|
86da109ed1f76fc89370d9d3428d5cbc09ace482
|
refs/heads/master
| 2022-12-22T21:07:49.001252
| 2019-05-31T14:25:34
| 2019-05-31T14:25:34
| 189,054,767
| 1
| 0
| null | 2022-12-16T04:52:31
| 2019-05-28T15:24:59
|
Java
|
UTF-8
|
Java
| false
| false
| 5,696
|
java
|
package io.github.jhipster.application.service;
import java.util.List;
import javax.persistence.criteria.JoinType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import io.github.jhipster.service.QueryService;
import io.github.jhipster.application.domain.FreeSpanSupport;
import io.github.jhipster.application.domain.*; // for static metamodels
import io.github.jhipster.application.repository.FreeSpanSupportRepository;
import io.github.jhipster.application.service.dto.FreeSpanSupportCriteria;
import io.github.jhipster.application.service.dto.FreeSpanSupportDTO;
import io.github.jhipster.application.service.mapper.FreeSpanSupportMapper;
/**
* Service for executing complex queries for {@link FreeSpanSupport} entities in the database.
* The main input is a {@link FreeSpanSupportCriteria} which gets converted to {@link Specification},
* in a way that all the filters must apply.
* It returns a {@link List} of {@link FreeSpanSupportDTO} or a {@link Page} of {@link FreeSpanSupportDTO} which fulfills the criteria.
*/
@Service
@Transactional(readOnly = true)
public class FreeSpanSupportQueryService extends QueryService<FreeSpanSupport> {
private final Logger log = LoggerFactory.getLogger(FreeSpanSupportQueryService.class);
private final FreeSpanSupportRepository freeSpanSupportRepository;
private final FreeSpanSupportMapper freeSpanSupportMapper;
public FreeSpanSupportQueryService(FreeSpanSupportRepository freeSpanSupportRepository, FreeSpanSupportMapper freeSpanSupportMapper) {
this.freeSpanSupportRepository = freeSpanSupportRepository;
this.freeSpanSupportMapper = freeSpanSupportMapper;
}
/**
* Return a {@link List} of {@link FreeSpanSupportDTO} which matches the criteria from the database.
* @param criteria The object which holds all the filters, which the entities should match.
* @return the matching entities.
*/
@Transactional(readOnly = true)
public List<FreeSpanSupportDTO> findByCriteria(FreeSpanSupportCriteria criteria) {
log.debug("find by criteria : {}", criteria);
final Specification<FreeSpanSupport> specification = createSpecification(criteria);
return freeSpanSupportMapper.toDto(freeSpanSupportRepository.findAll(specification));
}
/**
* Return a {@link Page} of {@link FreeSpanSupportDTO} which matches the criteria from the database.
* @param criteria The object which holds all the filters, which the entities should match.
* @param page The page, which should be returned.
* @return the matching entities.
*/
@Transactional(readOnly = true)
public Page<FreeSpanSupportDTO> findByCriteria(FreeSpanSupportCriteria criteria, Pageable page) {
log.debug("find by criteria : {}, page: {}", criteria, page);
final Specification<FreeSpanSupport> specification = createSpecification(criteria);
return freeSpanSupportRepository.findAll(specification, page)
.map(freeSpanSupportMapper::toDto);
}
/**
* Return the number of matching entities in the database.
* @param criteria The object which holds all the filters, which the entities should match.
* @return the number of matching entities.
*/
@Transactional(readOnly = true)
public long countByCriteria(FreeSpanSupportCriteria criteria) {
log.debug("count by criteria : {}", criteria);
final Specification<FreeSpanSupport> specification = createSpecification(criteria);
return freeSpanSupportRepository.count(specification);
}
/**
* Function to convert FreeSpanSupportCriteria to a {@link Specification}.
*/
private Specification<FreeSpanSupport> createSpecification(FreeSpanSupportCriteria criteria) {
Specification<FreeSpanSupport> specification = Specification.where(null);
if (criteria != null) {
if (criteria.getId() != null) {
specification = specification.and(buildSpecification(criteria.getId(), FreeSpanSupport_.id));
}
if (criteria.getDateCreate() != null) {
specification = specification.and(buildRangeSpecification(criteria.getDateCreate(), FreeSpanSupport_.dateCreate));
}
if (criteria.getDateEdit() != null) {
specification = specification.and(buildRangeSpecification(criteria.getDateEdit(), FreeSpanSupport_.dateEdit));
}
if (criteria.getCreator() != null) {
specification = specification.and(buildStringSpecification(criteria.getCreator(), FreeSpanSupport_.creator));
}
if (criteria.getEditor() != null) {
specification = specification.and(buildStringSpecification(criteria.getEditor(), FreeSpanSupport_.editor));
}
if (criteria.getBaseClassId() != null) {
specification = specification.and(buildSpecification(criteria.getBaseClassId(),
root -> root.join(FreeSpanSupport_.baseClass, JoinType.LEFT).get(BaseClass_.id)));
}
if (criteria.getFreeSpanSupportHistId() != null) {
specification = specification.and(buildSpecification(criteria.getFreeSpanSupportHistId(),
root -> root.join(FreeSpanSupport_.freeSpanSupportHist, JoinType.LEFT).get(FreeSpanSupportHist_.id)));
}
}
return specification;
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
7d3a550ae123e52be2627fcab2f1606d2b8429db
|
765dab7f9b1834cb0693929c0c30032770b390b2
|
/src/ru/progwards/java2/lessons/gc/heap/Heap.java
|
f93a82aa1113a30f4731c4c4cd145f81d40811cf
|
[] |
no_license
|
Massimilian/antispam
|
74dc9accbe880c0c0e883150c3ef4c29540f4e1c
|
3af9a536aef5e1e034b705b5544a2df8dd0d5ff5
|
refs/heads/master
| 2022-12-28T07:50:56.495532
| 2020-09-22T08:22:58
| 2020-09-22T08:22:58
| 284,681,830
| 0
| 0
| null | 2020-10-14T00:08:59
| 2020-08-03T11:27:15
|
Java
|
UTF-8
|
Java
| false
| false
| 5,185
|
java
|
package ru.progwards.java2.lessons.gc.heap;
import java.util.ArrayList;
import java.util.Collections;
import java.util.stream.Collectors;
public class Heap {
private boolean hasHole = false;
private boolean checked = true;
private byte[] bytes;
private int position = 0;
private final byte point = 1;
private final byte startBlock = 10;
private ArrayList<Block> blocks = new ArrayList<>();
private String separator = System.lineSeparator();
public Heap(int size) {
this.bytes = new byte[size];
}
public String status() {
return String.format("Occupired memory: %d;%sfree memory:%d;%schecked: %b.%s-----", this.position, this.separator, this.bytes.length - this.position, this.separator, this.checked, this.separator);
}
public int malloc(int size) throws OutOfMemoryException {
if (this.position + size > bytes.length) {
this.compact();
}
if (this.position + size > bytes.length) {
throw new OutOfMemoryException();
}
blocks.add(new Block(size, position));
int result = position;
bytes[position] = startBlock;
for (int i = position + 1; i < size + position; i++) {
bytes[i] = point;
}
position += size;
this.checked = false;
return result;
}
public void free(int ptr) throws InvalidPointerException {
if (bytes[ptr] != startBlock) {
throw new InvalidPointerException();
} else {
blocks.remove(new Block(ptr));
do {
bytes[ptr++] = 0;
if (bytes[ptr] == 0) {
break;
}
} while (bytes[ptr] != startBlock);
}
this.checked = false;
this.hasHole = true;
}
public void defrag() {
}
public void compactEasy() {
byte[] newBytes = new byte[bytes.length];
int count = 0;
for (int i = 0; i < blocks.size(); i++) {
int temp = count;
newBytes[count++] = this.startBlock;
for (int j = count; j < blocks.get(i).getSize() + temp; j++) {
newBytes[j] = point;
count++;
}
}
bytes = newBytes;
this.changeDates();
}
public void compact() {
if (!checked) {
prepare();
}
boolean checked = false;
int check = 0;
int currentPos = -1;
for (int i = 0; i < bytes.length; i++) {
if (bytes[i] == 0) {
currentPos = !checked ? i : currentPos;
check++;
checked = true;
} else {
checked = false;
}
if (checked == false && currentPos != -1) {
compress(currentPos, check);
i = currentPos;
currentPos = -1;
check = 0;
}
}
if (hasHole) {
this.putLast();
}
this.changeDates();
}
private void prepare() {
blocks = (ArrayList<Block>) blocks.stream().sorted().collect(Collectors.toList());
blocks.stream().forEach(x -> x.setMoved(false));
Collections.reverse(blocks);
}
private void compress(int thisPosition, int size) {
ArrayList<Block> changedBlocks = (ArrayList<Block>) blocks.stream().filter(x -> x.getSize() <= size && x.isMoved() == false && x.getPosition() > thisPosition).limit(1).collect(Collectors.toList());
if (changedBlocks.size() != 0) {
this.add(thisPosition, changedBlocks.get(0).getSize());
this.delete(changedBlocks.get(0));
changedBlocks.get(0).setMoved(true);
}
}
private void add(int currentPos, int size) {
bytes[currentPos] = startBlock;
for (int i = currentPos + 1; i < currentPos + size; i++) {
bytes[i] = point;
}
}
private void delete(Block block) {
for (int i = block.getPosition(); i < block.getPosition() + block.getSize(); i++) {
bytes[i] = 0;
}
}
private void putLast() {
int lastStart = 0;
int size = 0;
for (int i = this.position - 1; i >= 0; i--) {
size++;
if (bytes[i] == startBlock) {
lastStart = i;
break;
}
}
if (bytes[lastStart - 1] == 0) {
int newPos = lastStart - 1;
int interval = 0;
while (newPos >= 1 && bytes[newPos - 1] == 0) {
newPos--;
interval++;
}
bytes[newPos] = startBlock;
for (int i = newPos + 1; i < newPos + size; i++) {
bytes[i] = this.point;
}
for (int i = newPos + size; i <= newPos + size + interval; i++) {
bytes[i] = 0;
}
}
}
private void changeDates() {
int pos = 0;
while (pos != bytes.length && bytes[pos] != 0) {
pos++;
}
this.position = pos;
this.checked = true;
this.hasHole = false;
}
}
|
[
"vasalekmas@gmail.com"
] |
vasalekmas@gmail.com
|
f99a44685dd3fd437685d7340e689eeb09593565
|
a43d4202628ecb52e806d09f0f3dc1f5bab3ef4f
|
/src/main/java/pnc/mesadmin/entity/PickInfo.java
|
9941b4d6be0f33ed619eca43afbf14262bfdfa7a
|
[] |
no_license
|
pnc-mes/base
|
b88583929e53670340a704f848e4e9e2027f1334
|
162135b8752b4edc397b218ffd26664929f6920d
|
refs/heads/main
| 2023-01-07T22:06:10.794300
| 2020-10-27T07:47:20
| 2020-10-27T07:47:20
| 307,621,190
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,754
|
java
|
package pnc.mesadmin.entity;
import pnc.mesadmin.entity.base.BasePickOutModel;
import java.util.Date;
/**
* Created by PNC on 2017/8/30.
*/
public class PickInfo implements BasePickOutModel{
private int ruid;
private String guid;
private String pickCode;
private String assSource;
private String assCode;
private String exStatus;
private String sStatus;
private Date prePickDate;
private String creator;
private Date createTime;
private String lastModifyMan;
private Date lastModifyTime;
private String remark;
private String dSource;
public int getRuid() {
return ruid;
}
public void setRuid(int ruid) {
this.ruid = ruid;
}
public String getGuid() {
return guid;
}
public void setGuid(String guid) {
this.guid = guid;
}
public String getPickCode() {
return pickCode;
}
public void setPickCode(String pickCode) {
this.pickCode = pickCode;
}
public String getAssCode() {
return assCode;
}
public void setAssCode(String assCode) {
this.assCode = assCode;
}
public String getExStatus() {
return exStatus;
}
public void setExStatus(String exStatus) {
this.exStatus = exStatus;
}
public String getsStatus() {
return sStatus;
}
public void setsStatus(String sStatus) {
this.sStatus = sStatus;
}
public Date getPrePickDate() {
return prePickDate;
}
public void setPrePickDate(Date prePickDate) {
this.prePickDate = prePickDate;
}
public String getCreator() {
return creator;
}
public void setCreator(String creator) {
this.creator = creator;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getLastModifyMan() {
return lastModifyMan;
}
public void setLastModifyMan(String lastModifyMan) {
this.lastModifyMan = lastModifyMan;
}
public Date getLastModifyTime() {
return lastModifyTime;
}
public void setLastModifyTime(Date lastModifyTime) {
this.lastModifyTime = lastModifyTime;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public String getAssSource() {
return assSource;
}
public void setAssSource(String assSource) {
this.assSource = assSource;
}
public String getdSource() {
return dSource;
}
public void setdSource(String dSource) {
this.dSource = dSource;
}
}
|
[
"95887577@qq.com"
] |
95887577@qq.com
|
16b13d6f67ddd32a70767b42d51f2b69968a4a3d
|
8354721597f9969776bdb3b5d6c1635a0d9de9a7
|
/src/main/java/javautils/json/JSONUtil.java
|
7f71fcea56bea319e9bfcc38429e3c4489db2e6f
|
[] |
no_license
|
changsha136/lotteryCapture
|
ccf5756c8a038363e1db76a1dc1e55d509074c11
|
860479c52c35459f98bc03996e98b93342ce0d75
|
refs/heads/master
| 2022-12-06T02:48:48.134343
| 2019-07-13T02:19:29
| 2019-07-13T02:19:29
| 195,943,251
| 2
| 1
| null | 2022-11-24T03:32:54
| 2019-07-09T06:07:16
|
Java
|
UTF-8
|
Java
| false
| false
| 276
|
java
|
package javautils.json;
import net.sf.json.JSON;
import net.sf.json.xml.XMLSerializer;
public class JSONUtil {
public static JSON toJSONString(String xml) {
XMLSerializer xmlSerializer = new XMLSerializer();
JSON json = xmlSerializer.read(xml);
return json;
}
}
|
[
"11111111"
] |
11111111
|
0b8a3a551667890055e551c8db47323c4bda42e6
|
c337294844845f6d6b736d664f5a71efe720d65b
|
/site/src/site-ear/resources/generated/org/reverse/Bloque.java
|
147dd18d4b3d0e22820779eb9f73b59f4ba9fe81
|
[] |
no_license
|
MGDevelopment/site-jrun
|
25ad663b4a9d0b9b07cf0a3d4ef436594976ad5b
|
0547d837bbd1ed7328b4e8d775adf9defd622981
|
refs/heads/master
| 2020-06-05T02:28:11.102960
| 2013-09-10T13:12:27
| 2013-09-10T13:12:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,686
|
java
|
package org.reverse;
// Generated Oct 20, 2010 10:21:56 AM by Hibernate Tools 3.4.0.Beta1
import java.util.Date;
/**
* Bloque generated by hbm2java
*/
public class Bloque implements java.io.Serializable {
private int idBloque;
private String nombre;
private String dia;
private String hora;
private Byte orden;
private Integer idEstado;
private Date fechaDesde;
private Short intervalo;
private String ejecutaya;
private Byte mailcnt;
public Bloque() {
}
public Bloque(int idBloque, String ejecutaya) {
this.idBloque = idBloque;
this.ejecutaya = ejecutaya;
}
public Bloque(int idBloque, String nombre, String dia, String hora, Byte orden, Integer idEstado, Date fechaDesde, Short intervalo, String ejecutaya, Byte mailcnt) {
this.idBloque = idBloque;
this.nombre = nombre;
this.dia = dia;
this.hora = hora;
this.orden = orden;
this.idEstado = idEstado;
this.fechaDesde = fechaDesde;
this.intervalo = intervalo;
this.ejecutaya = ejecutaya;
this.mailcnt = mailcnt;
}
public int getIdBloque() {
return this.idBloque;
}
public void setIdBloque(int idBloque) {
this.idBloque = idBloque;
}
public String getNombre() {
return this.nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getDia() {
return this.dia;
}
public void setDia(String dia) {
this.dia = dia;
}
public String getHora() {
return this.hora;
}
public void setHora(String hora) {
this.hora = hora;
}
public Byte getOrden() {
return this.orden;
}
public void setOrden(Byte orden) {
this.orden = orden;
}
public Integer getIdEstado() {
return this.idEstado;
}
public void setIdEstado(Integer idEstado) {
this.idEstado = idEstado;
}
public Date getFechaDesde() {
return this.fechaDesde;
}
public void setFechaDesde(Date fechaDesde) {
this.fechaDesde = fechaDesde;
}
public Short getIntervalo() {
return this.intervalo;
}
public void setIntervalo(Short intervalo) {
this.intervalo = intervalo;
}
public String getEjecutaya() {
return this.ejecutaya;
}
public void setEjecutaya(String ejecutaya) {
this.ejecutaya = ejecutaya;
}
public Byte getMailcnt() {
return this.mailcnt;
}
public void setMailcnt(Byte mailcnt) {
this.mailcnt = mailcnt;
}
}
|
[
"mgoldsman@gmail.com"
] |
mgoldsman@gmail.com
|
2ca9707a112a4bbf11b0779b101fd275cc48a9de
|
3ad4df3278f55d029e66359eba20d9bb777a5cee
|
/src/main/java/ru/halt/practice/security/zzz/TokenService.java
|
a172a22bb50147daf888a41bd91bb74833cd47b8
|
[] |
no_license
|
MrFractal/practice
|
45dac23b7044b63057f0c036adaa3f30f45cf0be
|
1ae23c5a14651ed884165380d637c3e38af0eb92
|
refs/heads/master
| 2021-01-10T16:25:42.820555
| 2016-02-25T14:50:35
| 2016-02-25T14:50:35
| 51,912,516
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,320
|
java
|
package ru.halt.practice.security.zzz;
import net.sf.ehcache.Cache;
import net.sf.ehcache.CacheManager;
import net.sf.ehcache.Element;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.security.core.Authentication;
import java.util.*;
/**
* Created by Petr Rudenko on 22.02.2016.
*/
public class TokenService {
private static Map<String, Authentication> restApiAuthTokenCache = new HashMap<String, Authentication>();
//private static final Cache restApiAuthTokenCache = CacheManager.getInstance().getCache("restApiAuthTokenCache");
public static final int HALF_AN_HOUR_IN_MILLISECONDS = 30 * 60 * 1000;
//@Scheduled(fixedRate = HALF_AN_HOUR_IN_MILLISECONDS)
public void evictExpiredTokens() {
//restApiAuthTokenCache.evictExpiredElements();
}
public String generateNewToken() {
return UUID.randomUUID().toString();
}
public void store(String token, Authentication authentication) {
restApiAuthTokenCache.put(token, authentication); //
}
public boolean contains(String token) {
return restApiAuthTokenCache.get(token) != null;
}
public Authentication retrieve(String token) {
return restApiAuthTokenCache.get(token);
}
}
|
[
"fr@bekker.com.ua"
] |
fr@bekker.com.ua
|
db9d2c229b25747f6bb20a6479cbfbc84ecf2e20
|
2766ef7d24edccbde6c3b0e662f8744762bc648e
|
/app/object_models/QuatityList.java
|
00129820b0f6aa600553c387615ee91cdaabc0ba
|
[] |
no_license
|
nikks-tu/OME_NEW
|
d33e420b158c10c0c7d0d3e15085979a087303f4
|
e0ee55b40a9ec4c8523c0e6af593b74a5ec13201
|
refs/heads/master
| 2022-07-04T21:04:32.490115
| 2020-05-07T05:13:33
| 2020-05-07T05:13:33
| 261,955,465
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 477
|
java
|
package com.example.ordermadeeasy.object_models;
public class QuatityList {
private Integer quantity;
public QuatityList(Integer quantity) {
this.quantity = quantity;
}
public QuatityList() {
}
public Integer getQuantity() {
return quantity;
}
public void setQuantity(Integer quantity) {
this.quantity = quantity;
}
@Override
public String toString() {
return String.valueOf(quantity);
}
}
|
[
"nikita@vishwakarma7@gmail.com"
] |
nikita@vishwakarma7@gmail.com
|
a91236a1ff1dd27a7967b627f04690fa58103d74
|
cacd87f8831b02e254d65c5e86d48264c7493d78
|
/pc/new/backstage/src/com/manji/backstage/vo/logger/SmsLogVo.java
|
ad4ba0c7691f7bf2481af4933f0257a507209393
|
[] |
no_license
|
lichaoqian1992/beautifulDay
|
1a5a30947db08d170968611068673d2f0b626eb2
|
44e000ecd47099dc5342ab8a208edea73602760b
|
refs/heads/master
| 2021-07-24T22:48:33.067359
| 2017-11-03T09:06:15
| 2017-11-03T09:06:15
| 108,791,908
| 0
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 349
|
java
|
package com.manji.backstage.vo.logger;
import com.manji.backstage.model.logger.SmsLog;
public class SmsLogVo extends SmsLog{
int index;
/**
* @return the index
*/
public int getIndex() {
return index;
}
/**
* @param index the index to set
*/
public void setIndex(int index) {
this.index = index;
}
}
|
[
"1015598423@qq.com"
] |
1015598423@qq.com
|
9ee7df233bf0dacd3d94afa140b7549edd0f9461
|
83ed1f4070ee69e7ce1fe0877deda7c9016828a2
|
/15_shiro/shiroStd/src/main/java/com/opslab/crm/common/util/ParameterUtil.java
|
ce9d88330a848c7764aa02bc730a3aa2bc6a1223
|
[] |
no_license
|
BaronND/opslabJava
|
78f5c5d5549cab3e0619a6070a10429874098d7c
|
f3749a3e3cc78b886e5af526625a0dd469f1f9c3
|
refs/heads/master
| 2021-05-06T10:02:20.800676
| 2017-11-01T14:38:49
| 2017-11-01T14:38:49
| 114,087,392
| 1
| 0
| null | 2017-12-13T07:15:45
| 2017-12-13T07:15:44
| null |
UTF-8
|
Java
| false
| false
| 1,828
|
java
|
package com.opslab.crm.common.util;
import org.springframework.ui.ModelMap;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;
/**
* ็จไบๅค็http่ฏทๆฑๅๆฐ
*/
public class ParameterUtil {
/**
* ๅฐMap<String, String[]>็ฑปๅ็่ฏทๆฑๅๆฐ่ฝฌๆขไธบMap<String,Object>็ๅๆฐ
* @param requst
* @return
*/
public static Map<Object,Object> params(HttpServletRequest requst){
Map<Object,Object> param = new HashMap();
Map<String, String[]> parameterMap = requst.getParameterMap();
if(parameterMap != null && parameterMap.size() > 0){
for (Map.Entry<String, String[]> entry : parameterMap.entrySet()) {
String key = entry.getKey();
String[] value = entry.getValue();
if(value != null){
if(value.length == 1 && !"".equals(value[0])){
param.put(key,value[0]);
}else if(value.length > 1){
param.put(key,value);
}
}
}
}
return param;
}
public static void putModel(ModelMap model, Map<Object,Object> param){
if(param == null || param.size() == 0){
return;
}
for(Map.Entry<Object,Object> entry:param.entrySet()){
String key = (String)entry.getKey();
Object value = entry.getValue();
if(value != null){
if(value.getClass().isArray()){
model.put(key,value);
}else{
if(!"".equals(value)){
model.put(key,(String)value);
}
}
}
}
}
}
|
[
"909070781@qq.com"
] |
909070781@qq.com
|
95e46d22b832fc5ee2de1628f525268e2ba32229
|
ce4606ea5229a418ce6aceee1e46fdb65c1f3b81
|
/src/main/java/fr/lps2ima/contact/dao/IContactDao.java
|
62ebf9c3dbb5b054f708ce811e3a37d908dc04e2
|
[] |
no_license
|
eloMc/LicencePro
|
001455787fd6ebde37f6bfb162a13f6ab5d3c733
|
840b486a9957de0547479e317b61a11a4ab23649
|
refs/heads/master
| 2020-03-28T22:42:01.873881
| 2018-09-18T10:20:20
| 2018-09-18T10:20:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 251
|
java
|
package fr.lps2ima.contact.dao;
import java.util.List;
import fr.lps2ima.contact.model.Contact;
public interface IContactDao {
List<Contact> readAll();
Contact findByName(String name);
void add(Contact contact);
void remove(String name);
}
|
[
"you@example.com"
] |
you@example.com
|
3ecddaea10ba8ca158ab7be932678e11bb42973b
|
31a59acf0a8f0cb46612d10d436188fe33d5efa0
|
/src/main/java/com/yz/jvm/queue/ValueEvent.java
|
b1137f2983c7fb4fea94d16abe7a09c08919dbaf
|
[] |
no_license
|
leopard5/yz-tech-exploration
|
145f0c87a9bea6ed41d1da77e75d6cc3445858e2
|
e1f7769ceda965f880adc58fe817621ad5603a78
|
refs/heads/master
| 2023-01-09T19:09:58.484119
| 2022-02-25T13:00:04
| 2022-02-25T13:00:04
| 93,637,384
| 5
| 1
| null | 2022-12-27T14:42:53
| 2017-06-07T13:18:18
|
Java
|
UTF-8
|
Java
| false
| false
| 453
|
java
|
package com.yz.jvm.queue;
import com.lmax.disruptor.EventFactory;
public class ValueEvent {
private String value;
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public final static EventFactory<ValueEvent> EVENT_FACTORY = new EventFactory<ValueEvent>() {
public ValueEvent newInstance() {
return new ValueEvent();
}
};
}
|
[
"qiyazhong@163.com"
] |
qiyazhong@163.com
|
78f772979fdd7e6406a871675595f05a092cc912
|
b8ab8c96dd7776aaaf522b04173a9646e5e28ab4
|
/src/crs-core/src/main/java/pl/nask/crs/documents/exception/WrongFileSizeException.java
|
ff9144d57b99ee874159751420edc549d58f12e5
|
[] |
no_license
|
srirammails/iedr
|
f7638717a62b5b12add24fb70515e982a0a687c6
|
848c2560e9e0c73d93b40e31ce0d0ce2453969d1
|
refs/heads/master
| 2023-02-18T21:51:23.701880
| 2017-08-22T08:17:24
| 2017-08-22T08:17:24
| 101,394,020
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 185
|
java
|
package pl.nask.crs.documents.exception;
public class WrongFileSizeException extends DocumentGeneralException {
public WrongFileSizeException(String s) {
super(s);
}
}
|
[
"admin@work-vm.localdomain"
] |
admin@work-vm.localdomain
|
690df93f154a8041304f5078044b5e700817d6c4
|
64ef3dbe10742d8476c37c9bfb036b5c5001d349
|
/fr.mleduc.mmlang.ui/xtend-gen/fr/mleduc/ui/contentassist/MMLangProposalProvider.java
|
2f04525cbff99982cfc474767ec45cf7149676db
|
[] |
no_license
|
manuelleduc/workspace-cold-gemoc
|
a60be6a96e2bb99bd7aa60004fcae8aeaa979e05
|
ba7fde347d7a5ed006a8f6076295e417b0ef05aa
|
refs/heads/master
| 2021-08-11T07:53:23.318434
| 2017-11-13T10:30:54
| 2017-11-13T10:30:54
| 110,127,733
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 387
|
java
|
/**
* generated by Xtext 2.10.0
*/
package fr.mleduc.ui.contentassist;
import fr.mleduc.ui.contentassist.AbstractMMLangProposalProvider;
/**
* See https://www.eclipse.org/Xtext/documentation/304_ide_concepts.html#content-assist
* on how to customize the content assistant.
*/
@SuppressWarnings("all")
public class MMLangProposalProvider extends AbstractMMLangProposalProvider {
}
|
[
"manuel.leduc@inria.fr"
] |
manuel.leduc@inria.fr
|
c9bdc87ea7fdf55a19915c89a86483030e675f26
|
aa3e1682edf7e3e69c562c9cc76573e247ab49ba
|
/src/main/java/org/tyaa/spring/rest/hibernate/payment/controller/PaymentController.java
|
39c23821fecffafc4a5c3806f59df8e2a8dfec12
|
[] |
no_license
|
YuriiTrofimenko/SpringRESTHibernatePayment_3
|
d553fc091a5a6b2a68f451adde60cbe706daf904
|
17fa94e062538831c17ecb976b23fe54cccadbbc
|
refs/heads/master
| 2020-04-01T20:17:16.409215
| 2018-10-27T08:15:22
| 2018-10-27T08:15:22
| 153,597,028
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,108
|
java
|
package org.tyaa.spring.rest.hibernate.payment.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.tyaa.spring.rest.hibernate.payment.entity.Payment;
import org.tyaa.spring.rest.hibernate.payment.model.PaymentResponse;
import org.tyaa.spring.rest.hibernate.payment.service.PaymentService;
@RestController
@RequestMapping("/paymentResource")
public class PaymentController {
@Autowired
private PaymentService service;
@PostMapping("/payNow")
public PaymentResponse payInstant(@RequestBody Payment payment) {
return service.pay(payment);
}
@GetMapping("/getTransactionByVendor/{vendor}")
public PaymentResponse getTransaction(@PathVariable String vendor) {
return service.getTx(vendor);
}
}
|
[
"tyaa@ukr.net"
] |
tyaa@ukr.net
|
2edb48af07e085a479d8ee8abcd84d7d29d629b6
|
edbbd99d587782824288ae5125f56cee7e4ce30f
|
/src/main/java/jpa/model/Trainee.java
|
4b0c0e335b2790b89f18e30fb6b01ad05387c5cf
|
[] |
no_license
|
ujko/java26jdbc
|
b55575bb46db21b15686caad6ead718698c578df
|
4afc2aa4ae371d6731bb7baf592595ee38860aa0
|
refs/heads/master
| 2022-12-17T04:55:24.121135
| 2020-09-27T13:07:53
| 2020-09-27T13:07:53
| 298,803,607
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 765
|
java
|
package jpa.model;
import javax.persistence.*;
@Entity
@Table(name = "trainee")
@SecondaryTable(name = "phone")
public class Trainee {
@Id
@GeneratedValue
@Column(name = "id")
private int id;
@Column(name = "name")
private String name;
@Column(name = "phone_number", table = "phone")
private String phoneNumber;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
}
|
[
"uio6398@gmail.com"
] |
uio6398@gmail.com
|
28c847098615baf86c1266e41037ce9eaaf342b1
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/androidannotations--androidannotations/88ebcd50542ef7e6dc3f8b8ef1249e0527d8a3e0/before/AbstractTrackingTouchProcessor.java
|
d5ae8d78d5f08382605c5bc3d7beafee50bed4df
|
[] |
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,250
|
java
|
/**
* Copyright (C) 2010-2012 eBusiness Information, Excilys Group
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed To in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.googlecode.androidannotations.processing;
import java.util.List;
import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.Element;
import javax.lang.model.element.ExecutableElement;
import javax.lang.model.element.VariableElement;
import com.googlecode.androidannotations.helper.APTCodeModelHelper;
import com.googlecode.androidannotations.helper.OnSeekBarChangeListenerHelper;
import com.googlecode.androidannotations.rclass.IRClass;
import com.googlecode.androidannotations.rclass.IRClass.Res;
import com.sun.codemodel.JBlock;
import com.sun.codemodel.JCodeModel;
import com.sun.codemodel.JExpression;
import com.sun.codemodel.JFieldRef;
import com.sun.codemodel.JInvocation;
import com.sun.codemodel.JMethod;
import com.sun.codemodel.JVar;
/**
* Note: this could probably be moved to a helper, rather then being an abstract
* class (favor composition over inheritance)
*
* @author Mathieu Boniface
*/
public abstract class AbstractTrackingTouchProcessor implements DecoratingElementProcessor {
private final OnSeekBarChangeListenerHelper helper;
private final APTCodeModelHelper codeModelHelper;
public AbstractTrackingTouchProcessor(ProcessingEnvironment processingEnv, IRClass rClass) {
codeModelHelper = new APTCodeModelHelper();
helper = new OnSeekBarChangeListenerHelper(processingEnv, getTarget(), rClass, codeModelHelper);
}
@Override
public void process(Element element, JCodeModel codeModel, EBeanHolder holder) {
String methodName = element.getSimpleName().toString();
List<JFieldRef> idsRefs = helper.extractAnnotationFieldRefs(holder, element, Res.ID, true);
for (JFieldRef idRef : idsRefs) {
OnSeekBarChangeListenerHolder onSeekBarChangeListenerHolder = helper.getOrCreateListener(codeModel, holder, idRef);
JInvocation textChangeCall;
JMethod methodToCall = getMethodToCall(onSeekBarChangeListenerHolder);
JBlock previousBody = codeModelHelper.removeBody(methodToCall);
JBlock methodBody = methodToCall.body();
methodBody.add(previousBody);
JExpression activityRef = holder.eBean.staticRef("this");
textChangeCall = methodBody.invoke(activityRef, methodName);
ExecutableElement executableElement = (ExecutableElement) element;
List<? extends VariableElement> parameters = executableElement.getParameters();
if (parameters.size() == 1) {
JVar progressParameter = codeModelHelper.findParameterByName(methodToCall, "seekBar");
textChangeCall.arg(progressParameter);
}
}
}
protected abstract JMethod getMethodToCall(OnSeekBarChangeListenerHolder onSeekBarChangeListenerHolder);
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
b46966c9072391376d7da8597132a9ad1a305de2
|
6925337bc74e9f80527859651b9771cf33bc7d99
|
/input/code-fracz-645/sources/Class00000210Better.java
|
a51c23f0bd04f85d00f407e63f7140087d629fb2
|
[] |
no_license
|
fracz/code-quality-tensorflow
|
a58bb043aa0a6438d7813b0398d12c998d70ab49
|
50dac5459faf44f1b7fa8321692a8c7c44f0d23c
|
refs/heads/master
| 2018-11-14T15:28:03.838106
| 2018-09-07T11:09:28
| 2018-09-07T11:09:28
| 110,887,549
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 178
|
java
|
// original filename: 00030055.txt
// after
public class Class00000210Better {
public static Operator fromString(String op) {
return valueOf(op.toUpperCase(Locale.ROOT));
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
76e05fe46a0f37f1a6030b7294eec01280841ffa
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/10/10_2ffb5c22790f4c9b1dc8f391eccc9119f46279a1/PvP/10_2ffb5c22790f4c9b1dc8f391eccc9119f46279a1_PvP_t.java
|
4fdc36749eb4ed328013a15b77d4a1fe840bb73c
|
[] |
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,133
|
java
|
package me.Travja.HungerArena;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.entity.Projectile;
import org.bukkit.entity.Skeleton;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityDamageEvent;
public class PvP implements Listener {
public Main plugin;
public PvP(Main m) {
this.plugin = m;
}
int a = 0;
@EventHandler(priority= EventPriority.MONITOR)
public void PlayerPvP(EntityDamageByEntityEvent event){
Entity pl = event.getEntity();
Entity dl = event.getDamager();
if(pl instanceof Player && dl instanceof Player){
Player p = (Player) pl;
Player d = (Player) dl;
if(plugin.getArena(p)!= null && plugin.getArena(d)!= null){
a = plugin.getArena(p);
if(plugin.canjoin.get(a)){
if(event.isCancelled()){
event.setCancelled(false);
}
}
}
if(plugin.getArena(p)!= null){
a = plugin.getArena(p);
if(!plugin.canjoin.get(a)){
if(!event.isCancelled()){
event.setCancelled(true);
}
}
}
if(plugin.getArena(p)== null && plugin.getArena(d)!= null){
if(!event.isCancelled()){
event.setCancelled(true);
}
}
}else if(pl instanceof Player && dl instanceof Projectile){
Projectile projectile = (Projectile) dl;
Player p = (Player) pl;
if(projectile.getShooter() instanceof Player){
if(plugin.getArena(p) != null){
Player shooter = (Player) projectile.getShooter();
if(plugin.getArena(shooter)!= null){
event.setCancelled(false);
}
}
}else if(projectile.getShooter() instanceof Entity){
Entity e = projectile.getShooter();
if(e instanceof Skeleton){
if(plugin.getArena(p)!= null){
event.setCancelled(false);
}
}
}
}
}
@EventHandler
public void PlayerDamage(EntityDamageEvent event){
Entity e = event.getEntity();
if(e instanceof Player){
if(plugin.gp!= 0)
event.setCancelled(true);
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
dad1b163ba4ce1a84b5166cb71d186719a696b97
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/5/5_3c74357bbb3252227898d064159661c9e0e9b414/AbstractWebServiceClient/5_3c74357bbb3252227898d064159661c9e0e9b414_AbstractWebServiceClient_s.java
|
00044d539dccc471bfc2698c46f667602da168d8
|
[] |
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,973
|
java
|
/*
Copyright (c) 2006, 2007, The Cytoscape Consortium (www.cytoscape.org)
The Cytoscape Consortium is:
- Institute for Systems Biology
- University of California San Diego
- Memorial Sloan-Kettering Cancer Center
- Institut Pasteur
- Agilent Technologies
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation; either version 2.1 of the License, or
any later version.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
documentation provided hereunder is on an "as is" basis, and the
Institute for Systems Biology and the Whitehead Institute
have no obligations to provide maintenance, support,
updates, enhancements or modifications. In no event shall the
Institute for Systems Biology and the Whitehead Institute
be liable to any party for direct, indirect, special,
incidental or consequential damages, including lost profits, arising
out of the use of this software and its documentation, even if the
Institute for Systems Biology and the Whitehead Institute
have been advised of the possibility of such damage. See
the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
package org.cytoscape.io.webservice.client;
import java.net.URI;
import java.net.URISyntaxException;
import org.cytoscape.io.webservice.WebServiceClient;
/**
* Abstract class for all web service clients. All clients MUST extend this
* class.
*
* @CyAPI.Abstract.Class
*/
public abstract class AbstractWebServiceClient implements WebServiceClient {
// Globally-unique service location.
private final URI serviceURI;
// Display Name for this client.
private final String displayName;
private final String description;
/**
* Constructs this AbstractWebServiceClient.
*
* @param uri
* Service Location.
*/
public AbstractWebServiceClient(final String uri, final String displayName, final String description) {
// Create URI
try {
this.serviceURI = new URI(uri);
} catch (URISyntaxException e) {
throw new IllegalArgumentException("URI string is invalid.");
}
this.displayName = displayName;
this.description = description;
}
@Override
public final String getDisplayName() {
return displayName;
}
@Override
public final String getDescription() {
return description;
}
@Override
public final String toString() {
return this.displayName;
}
@Override
public final URI getServiceLocation() {
return this.serviceURI;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
fccf12605edec404c8079d62d11ccc8af0094d02
|
131b59d1dca6605343ebfd7e6a4cbcc80273344b
|
/oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/web/authentication/OAuth2AuthorizationCodeAuthenticationConverter.java
|
8e695519f1eaab096df9e62ec56ca8f2832879a6
|
[
"Apache-2.0"
] |
permissive
|
bibibiu2017/spring-authorization-server
|
5a35b1517f46694bc116f27123cd3bbb9f4adb32
|
09935f3ce614b4e9667854895b6ac12066ed8a0c
|
refs/heads/main
| 2023-07-07T09:55:59.454542
| 2021-08-05T19:20:00
| 2021-08-05T19:20:00
| 386,096,513
| 2
| 0
|
Apache-2.0
| 2021-07-14T22:55:27
| 2021-07-14T22:55:27
| null |
UTF-8
|
Java
| false
| false
| 4,009
|
java
|
/*
* Copyright 2020-2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.security.oauth2.server.authorization.web.authentication;
import java.util.Map;
import java.util.stream.Collectors;
import javax.servlet.http.HttpServletRequest;
import org.springframework.lang.Nullable;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.oauth2.core.AuthorizationGrantType;
import org.springframework.security.oauth2.core.OAuth2ErrorCodes;
import org.springframework.security.oauth2.core.endpoint.OAuth2ParameterNames;
import org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationCodeAuthenticationToken;
import org.springframework.security.oauth2.server.authorization.web.OAuth2TokenEndpointFilter;
import org.springframework.security.web.authentication.AuthenticationConverter;
import org.springframework.util.MultiValueMap;
import org.springframework.util.StringUtils;
/**
* Attempts to extract an Access Token Request from {@link HttpServletRequest} for the OAuth 2.0 Authorization Code Grant
* and then converts it to an {@link OAuth2AuthorizationCodeAuthenticationToken} used for authenticating the authorization grant.
*
* @author Joe Grandja
* @since 0.1.2
* @see AuthenticationConverter
* @see OAuth2AuthorizationCodeAuthenticationToken
* @see OAuth2TokenEndpointFilter
*/
public final class OAuth2AuthorizationCodeAuthenticationConverter implements AuthenticationConverter {
@Nullable
@Override
public Authentication convert(HttpServletRequest request) {
// grant_type (REQUIRED)
String grantType = request.getParameter(OAuth2ParameterNames.GRANT_TYPE);
if (!AuthorizationGrantType.AUTHORIZATION_CODE.getValue().equals(grantType)) {
return null;
}
Authentication clientPrincipal = SecurityContextHolder.getContext().getAuthentication();
MultiValueMap<String, String> parameters = OAuth2EndpointUtils.getParameters(request);
// code (REQUIRED)
String code = parameters.getFirst(OAuth2ParameterNames.CODE);
if (!StringUtils.hasText(code) ||
parameters.get(OAuth2ParameterNames.CODE).size() != 1) {
OAuth2EndpointUtils.throwError(
OAuth2ErrorCodes.INVALID_REQUEST,
OAuth2ParameterNames.CODE,
OAuth2EndpointUtils.ACCESS_TOKEN_REQUEST_ERROR_URI);
}
// redirect_uri (REQUIRED)
// Required only if the "redirect_uri" parameter was included in the authorization request
String redirectUri = parameters.getFirst(OAuth2ParameterNames.REDIRECT_URI);
if (StringUtils.hasText(redirectUri) &&
parameters.get(OAuth2ParameterNames.REDIRECT_URI).size() != 1) {
OAuth2EndpointUtils.throwError(
OAuth2ErrorCodes.INVALID_REQUEST,
OAuth2ParameterNames.REDIRECT_URI,
OAuth2EndpointUtils.ACCESS_TOKEN_REQUEST_ERROR_URI);
}
// @formatter:off
Map<String, Object> additionalParameters = parameters
.entrySet()
.stream()
.filter(e -> !e.getKey().equals(OAuth2ParameterNames.GRANT_TYPE) &&
!e.getKey().equals(OAuth2ParameterNames.CLIENT_ID) &&
!e.getKey().equals(OAuth2ParameterNames.CODE) &&
!e.getKey().equals(OAuth2ParameterNames.REDIRECT_URI))
.collect(Collectors.toMap(Map.Entry::getKey, e -> e.getValue().get(0)));
// @formatter:on
return new OAuth2AuthorizationCodeAuthenticationToken(
code, clientPrincipal, redirectUri, additionalParameters);
}
}
|
[
"jgrandja@vmware.com"
] |
jgrandja@vmware.com
|
acd87e7276b81d3f5b45f9009066e45538fe207a
|
947fc9eef832e937f09f04f1abd82819cd4f97d3
|
/src/apk/com/touchin/vtb/f/b/ba.java
|
bc21445efd7a28aea09f68e1b6d3f3a98d3efff1
|
[] |
no_license
|
thistehneisen/cifra
|
04f4ac1b230289f8262a0b9cf7448a1172d8f979
|
d46c6f4764c9d4f64e45c56fa42fddee9b44ff5a
|
refs/heads/master
| 2020-09-22T09:35:57.739040
| 2019-12-01T19:39:59
| 2019-12-01T19:39:59
| 225,136,583
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,052
|
java
|
package com.touchin.vtb.f.b;
import com.touchin.vtb.api.BaseResponse;
import com.touchin.vtb.api.SessionIdBody;
import e.b.b;
import e.b.c.g;
import e.b.d;
import kotlin.e.b.h;
import ru.touchin.roboswag.core.observables.storable.i;
import ru.touchin.roboswag.core.utils.ShouldNotHappenException;
/* compiled from: UserInfoRepository.kt */
final class ba<T, R> implements g<BaseResponse<SessionIdBody>, d> {
/* renamed from: a reason: collision with root package name */
final /* synthetic */ ca f7319a;
ba(ca caVar) {
this.f7319a = caVar;
}
/* renamed from: a */
public final b apply(BaseResponse<SessionIdBody> baseResponse) {
h.b(baseResponse, "it");
i a2 = this.f7319a.f7321a.f7363h;
SessionIdBody sessionIdBody = (SessionIdBody) baseResponse.d();
if (sessionIdBody != null) {
String b2 = sessionIdBody.b();
if (b2 != null) {
return a2.a(b2);
}
}
throw new ShouldNotHappenException("Session is empty");
}
}
|
[
"putnins@nils.digital"
] |
putnins@nils.digital
|
4d1c9f72c4c2cf770113767b68cf5e30c91e1c96
|
f49bdb7eddb533cd39e6d6f158c2c58ebef59504
|
/open-metadata-implementation/frameworks/open-connector-framework/src/main/java/org/odpi/openmetadata/frameworks/connectors/properties/AssetConnections.java
|
74d760ea584e9861257f084c45320d43832a4e2a
|
[
"CC-BY-4.0",
"Apache-2.0"
] |
permissive
|
animeshinvinci/egeria
|
51e33f382d5ebddb01049072c223d94e614d7e7d
|
92e113518d1b040b71511afedcf8963c66adfdc6
|
refs/heads/master
| 2021-04-23T08:56:19.953757
| 2020-03-24T18:21:48
| 2020-03-24T18:21:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,104
|
java
|
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.frameworks.connectors.properties;
import org.odpi.openmetadata.frameworks.connectors.ffdc.OCFErrorCode;
import org.odpi.openmetadata.frameworks.connectors.ffdc.OCFRuntimeException;
import java.util.Iterator;
/**
* Connections supports an iterator over a list of connections. Callers can use it to step through the list
* just once. If they want to parse the list again, they could use the copy/clone constructor to create
* a new iterator.
*/
public abstract class AssetConnections extends AssetPropertyIteratorBase implements Iterator<ConnectionProperties>
{
/**
* Typical Constructor creates an iterator with the supplied list of elements.
*
* @param parentAsset descriptor of parent asset
* @param totalElementCount the total number of elements to process. A negative value is converted to 0.
* @param maxCacheSize maximum number of elements that should be retrieved from the property server and
* cached in the element list at any one time. If a number less than one is supplied, 1 is used.
*/
public AssetConnections(AssetDescriptor parentAsset,
int totalElementCount,
int maxCacheSize)
{
super(parentAsset, totalElementCount, maxCacheSize);
}
/**
* Copy/clone constructor. Used to reset iterator element pointer to 0;
*
* @param parentAsset descriptor of parent asset
* @param template type-specific iterator to copy; null to create an empty iterator
*/
public AssetConnections(AssetDescriptor parentAsset, AssetConnections template)
{
super(parentAsset, template);
}
/**
* Provides a concrete implementation of cloneElement for the specific iterator type.
*
* @param parentAsset descriptor of parent asset
* @param template object to clone
* @return new cloned object.
*/
protected AssetPropertyBase cloneElement(AssetDescriptor parentAsset, AssetPropertyBase template)
{
return new ConnectionProperties(parentAsset, (ConnectionProperties)template);
}
/**
* Clones this iterator.
*
* @param parentAsset descriptor of parent asset
* @return new cloned object.
*/
protected abstract AssetConnections cloneIterator(AssetDescriptor parentAsset);
/**
* The iterator can only be used once to step through the elements. This method returns
* a boolean to indicate if it has got to the end of the list yet.
*
* @return boolean indicating whether there are more elements.
*/
@Override
public boolean hasNext()
{
return super.pagingIterator.hasNext();
}
/**
* Return the next element in the iteration.
*
* @return Connection next element object that has been cloned.
*/
@Override
public ConnectionProperties next()
{
return (ConnectionProperties)super.pagingIterator.next();
}
/**
* Remove the current element in the iterator. (Null implementation since this iterator works off of cached
* elements from the property (metadata) server.)
*/
@Override
public void remove()
{
throw new OCFRuntimeException(OCFErrorCode.UNABLE_TO_REMOVE.getMessageDefinition(this.getParentAssetTypeName(),
this.getParentAssetName(),
this.getClass().getName()),
this.getClass().getName(),
"remove");
}
/**
* Standard toString method.
*
* @return print out of variables in a JSON-style
*/
@Override
public String toString()
{
return "AssetConnections{" +
"pagingIterator=" + pagingIterator +
'}';
}
}
|
[
"mandy_chessell@uk.ibm.com"
] |
mandy_chessell@uk.ibm.com
|
5d388136e515036f57fb91b87e413ae027b4f606
|
7c3d78ccb78c265fc38c36a81e7749cb56154120
|
/src/main/java/io/vertx/ext/shell/ShellServer.java
|
90548fb17dc84bc7539c6e8181303c7e98291162
|
[
"Apache-2.0"
] |
permissive
|
vietj/vertx-shell
|
a617a23422ed681251b816b76bd505b2936d8413
|
ca324034e9020f46d3c3ee5ac026b22df8438895
|
refs/heads/master
| 2020-04-03T15:37:52.710213
| 2019-06-17T16:25:40
| 2019-06-17T16:25:40
| 151,731,102
| 0
| 1
|
Apache-2.0
| 2018-10-05T14:14:48
| 2018-10-05T14:14:48
| null |
UTF-8
|
Java
| false
| false
| 4,685
|
java
|
/*
* Copyright 2015 Red Hat, Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* The Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php
*
* You may elect to redistribute this code under either of these licenses.
*
*
* Copyright (c) 2015 The original author or authors
* ------------------------------------------------------
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* The Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php
*
* You may elect to redistribute this code under either of these licenses.
*
*/
package io.vertx.ext.shell;
import io.vertx.codegen.annotations.Fluent;
import io.vertx.codegen.annotations.VertxGen;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vertx.ext.shell.impl.ShellServerImpl;
import io.vertx.ext.shell.command.CommandResolver;
import io.vertx.ext.shell.system.JobController;
import io.vertx.ext.shell.term.Term;
import io.vertx.ext.shell.term.TermServer;
/**
* The shell server.<p/>
*
* A shell server is associated with a collection of {@link TermServer term servers}: the {@link #registerTermServer(TermServer)}
* method registers a term server. Term servers life cycle are managed by this server.<p/>
*
* When a {@link TermServer term server} receives an incoming connection, a {@link JobController} instance is created and
* associated with this connection.<p/>
*
* The {@link #createShell()} method can be used to create {@link JobController} instance for testing purposes.
*
* @author <a href="mailto:julien@julienviet.com">Julien Viet</a>
*/
@VertxGen
public interface ShellServer {
/**
* Create a new shell server with default options.
*
* @param vertx the vertx
* @param options the options
* @return the created shell server
*/
static ShellServer create(Vertx vertx, ShellServerOptions options) {
return new ShellServerImpl(vertx, options);
}
/**
* Create a new shell server with specific options.
*
* @param vertx the vertx
* @return the created shell server
*/
static ShellServer create(Vertx vertx) {
return new ShellServerImpl(vertx, new ShellServerOptions());
}
/**
* Register a command resolver for this server.
*
* @param resolver the resolver
* @return a reference to this, so the API can be used fluently
*/
@Fluent
ShellServer registerCommandResolver(CommandResolver resolver);
/**
* Register a term server to this shell server, the term server lifecycle methods are managed by this shell server.
*
* @param termServer the term server to add
* @return a reference to this, so the API can be used fluently
*/
@Fluent
ShellServer registerTermServer(TermServer termServer);
/**
* Create a new shell, the returned shell should be closed explicitely.
*
* @param term the shell associated terminal
* @return the created shell
*/
Shell createShell(Term term);
/**
* Create a new shell, the returned shell should be closed explicitely.
*
* @return the created shell
*/
Shell createShell();
/**
* Start the shell service, this is an asynchronous start.
*/
@Fluent
default ShellServer listen() {
return listen(ar -> {});
}
/**
* Start the shell service, this is an asynchronous start.
*
* @param listenHandler handler for getting notified when service is started
*/
@Fluent
ShellServer listen(Handler<AsyncResult<Void>> listenHandler);
/**
* Close the shell server, this is an asynchronous close.
*/
default void close() {
close(ar -> {});
}
/**
* Close the shell server, this is an asynchronous close.
*
* @param completionHandler handler for getting notified when service is stopped
*/
void close(Handler<AsyncResult<Void>> completionHandler);
/**
* Called when a new shell is created. Can be used to prepopulate the shell session with objects
* or set the prompt.
*
* @param shellHandler handler for getting notified when the server creates a new shell.
*/
void shellHandler(Handler<Shell> shellHandler);
}
|
[
"julien@julienviet.com"
] |
julien@julienviet.com
|
f4cfe34e2cd5beacecd1d0e88613e7a9b0f50a7a
|
05ebbe1e4bb057a971040c8614e348b34cb95d86
|
/springboot-03/src/main/java/com/happy/service/impl/EmpInfoServiceFourImpl.java
|
94ddfb274db3e1bea1cff6b98372267d98f0ea63
|
[] |
no_license
|
weilengdeyu/Y2167New
|
e297454083d2b114a3d42ebe7b918c3b80e8206d
|
6b86bc411f47b9c7f6cfbbd1f5bd2459d977a92c
|
refs/heads/master
| 2021-01-24T08:42:23.425332
| 2018-07-13T08:37:41
| 2018-07-13T08:37:41
| 122,988,691
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 790
|
java
|
package com.happy.service.impl;/**
* Created by Happy on 2018-06-30.
*/
import com.happy.dao.IEmpInfoDAOFour;
import com.happy.entity.EmpInfo;
import com.happy.service.IEmpInfoServiceFour;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* ไฝ่
๏ผๅพฎๅท็้จ
*
* @create 2018-06-30
* ๅๅฎขๅฐๅ:www.cnblogs.com/weilengdeyu
*/
@Service("empInfoServiceFour")
public class EmpInfoServiceFourImpl implements IEmpInfoServiceFour {
@Resource(name = "empInfoDAOFourImpl")
private IEmpInfoDAOFour empInfoDAOFour;
@Override
public List<EmpInfo> findAll() {
return empInfoDAOFour.findAll();
}
@Override
public void addEmp(EmpInfo empInfo) {
empInfoDAOFour.addEmp(empInfo);
}
}
|
[
"yymqqc@126.com"
] |
yymqqc@126.com
|
792519fb636256f90b7a66896a5bc70011b20cff
|
1a83a3737292b48cd16158d2aa6a8389d6c4f38e
|
/bin/platform/ext/platformservices/src/de/hybris/platform/order/daos/DeliveryModeDao.java
|
3425005a5e2ed0d45d07672098d3c459a664788c
|
[] |
no_license
|
NathanKun/Hybris123
|
026803ba53302a1e56f2e4c79dec33948021d24c
|
7b52d802856bd265403548924f40cff1ed8d9658
|
refs/heads/master
| 2021-01-25T00:48:23.674949
| 2018-03-01T10:41:30
| 2018-03-01T10:41:30
| 123,303,717
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,615
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2017 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* license agreement you entered into with SAP.
*/
package de.hybris.platform.order.daos;
import de.hybris.platform.core.model.order.delivery.DeliveryModeModel;
import de.hybris.platform.core.model.order.payment.PaymentModeModel;
import java.util.Collection;
import java.util.List;
/**
* The {@link DeliveryModeModel} DAO.
*
* @spring.bean deliveryModeDao
*/
public interface DeliveryModeDao
{
/**
* Finds the {@link DeliveryModeModel}s with the specified code.
*
* @param code
* the delivery mode code
* @return the found {@link DeliveryModeModel}s with the specified code, or empty list if not found.
*/
List<DeliveryModeModel> findDeliveryModesByCode(final String code);
/**
* Finds all {@link DeliveryModeModel}s.
*
* @return a <code>Collection</code> of all {@link DeliveryModeModel}s, or empty list if not found.
*/
Collection<DeliveryModeModel> findAllDeliveryModes();
/**
* Finds all {@link DeliveryModeModel}s supported by given {@link PaymentModeModel}.
*
* @param paymentMode
* the payment mode
* @return a <code>Collection</code> of supported {@link DeliveryModeModel}s, or empty list if not found.
*/
Collection<DeliveryModeModel> findDeliveryModeByPaymentMode(PaymentModeModel paymentMode);
}
|
[
"nathanhejunyang@gmail.com"
] |
nathanhejunyang@gmail.com
|
7543fb16d9bfb4387f175335a3fa8374d05442ec
|
609fe3dc39c6a7f4bf20f94c6cf865ddd6d481e6
|
/vshop-common/src/test/java/com/veli/vshop/seckill/util/ZkLockUtilsTest.java
|
8555cbb18e15ca626cf6a325647a7d1533856ab8
|
[] |
no_license
|
icoding168/vshop-seckill
|
803cd28b69852d1489e8f0864c2de5c76282fcfe
|
0772aa61c88be4261554678bc0423ce25e46e598
|
refs/heads/master
| 2023-06-21T12:37:46.719505
| 2021-08-03T14:18:35
| 2021-08-03T14:18:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,543
|
java
|
package com.veli.vshop.seckill.util;
import lombok.extern.slf4j.Slf4j;
import org.junit.Before;
import org.junit.Test;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
/**
* @author yangwei
* @date 2021-02-28 15:06
*/
@Slf4j
public class ZkLockUtilsTest {
private static final ExecutorService EXECUTOR = Executors.newFixedThreadPool(5);
private static final int LOOP_COUNT = 10;
private volatile int counter = 0;
@Before
public void before() {
}
@Test
public void testZkLock() throws Exception {
ZkLockUtils.init("192.168.254.120:2181");
for (int i = 0; i < LOOP_COUNT; i++) {
final int n = i;
EXECUTOR.submit(() -> {
boolean result = ZkLockUtils.acquire(5, TimeUnit.SECONDS);
try {
counter++;
Thread currentThread = Thread.currentThread();
if (result) {
log.info(currentThread.getId() + " ่ทๅพ้ๆๅ: " + (n + 1));
} else {
log.info(currentThread.getId() + " ่ทๅพ้ๅคฑ่ดฅ: " + (n + 1));
}
TimeUtils.sleepSec(4);
} finally {
if (result) {
ZkLockUtils.release();
}
}
});
}
while (counter < LOOP_COUNT) {
TimeUtils.sleepSec(5);
}
}
}
|
[
"897900564@qq.com"
] |
897900564@qq.com
|
450211995d9db29d63e566e60a168bf4ce767179
|
5a474f4bb0bf3981d3b282e6c028ef6b2472f170
|
/node-plugin/node-plugin-attains/src/main/java/com/windsor/node/plugin/attains/fixeddomain/OrganizationIdentifierDataType.java
|
9a95ed9c6d20800dbdf8ec73dd6c4190c47269e8
|
[] |
no_license
|
jhulick/opennode2-java
|
deaf72b954516590a38e33953e2025759c33e6ae
|
37618871d4124c510887acef1cd1e17228d91ab2
|
refs/heads/master
| 2021-07-12T04:48:22.245571
| 2017-10-11T14:20:48
| 2017-10-11T14:20:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,854
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.04.09 at 07:20:00 AM PDT
//
package com.windsor.node.plugin.attains.fixeddomain;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* <p>Java class for OrganizationIdentifierDataType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="OrganizationIdentifierDataType">
* <simpleContent>
* <extension base="<http://www.w3.org/2001/XMLSchema>string">
* <attribute name="OrganizationIdentifierContext" type="{http://www.w3.org/2001/XMLSchema}string" />
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OrganizationIdentifierDataType", propOrder = {
"value"
})
@Entity(name = "OrganizationIdentifierDataType")
@Table(name = "OWIR_ORGANIZATION_IDEN_DATA_TYPE")
@Inheritance(strategy = InheritanceType.JOINED)
public class OrganizationIdentifierDataType
implements Serializable, Equals, HashCode
{
private final static long serialVersionUID = 1L;
@XmlValue
protected String value;
@XmlAttribute(name = "OrganizationIdentifierContext")
protected String organizationIdentifierContext;
@XmlTransient
protected String dbid;
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
@Basic
@Column(name = "VAL", length = 255)
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
@Transient
public boolean isSetValue() {
return (this.value!= null);
}
/**
* Gets the value of the organizationIdentifierContext property.
*
* @return
* possible object is
* {@link String }
*
*/
@Basic
@Column(name = "ORGANIZATION_IDEN_CONTEXT", length = 255)
public String getOrganizationIdentifierContext() {
return organizationIdentifierContext;
}
/**
* Sets the value of the organizationIdentifierContext property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOrganizationIdentifierContext(String value) {
this.organizationIdentifierContext = value;
}
@Transient
public boolean isSetOrganizationIdentifierContext() {
return (this.organizationIdentifierContext!= null);
}
/**
*
*
* @return
* possible object is
* {@link String }
*
*/
@Id
@Column(name = "ORGANIZATION_IDEN_DATA_TYPE_ID")
public String getDbid() {
return dbid;
}
/**
*
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDbid(String value) {
this.dbid = value;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof OrganizationIdentifierDataType)) {
return false;
}
if (this == object) {
return true;
}
final OrganizationIdentifierDataType that = ((OrganizationIdentifierDataType) object);
{
String lhsValue;
lhsValue = this.getValue();
String rhsValue;
rhsValue = that.getValue();
if (!strategy.equals(LocatorUtils.property(thisLocator, "value", lhsValue), LocatorUtils.property(thatLocator, "value", rhsValue), lhsValue, rhsValue)) {
return false;
}
}
{
String lhsOrganizationIdentifierContext;
lhsOrganizationIdentifierContext = this.getOrganizationIdentifierContext();
String rhsOrganizationIdentifierContext;
rhsOrganizationIdentifierContext = that.getOrganizationIdentifierContext();
if (!strategy.equals(LocatorUtils.property(thisLocator, "organizationIdentifierContext", lhsOrganizationIdentifierContext), LocatorUtils.property(thatLocator, "organizationIdentifierContext", rhsOrganizationIdentifierContext), lhsOrganizationIdentifierContext, rhsOrganizationIdentifierContext)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
String theValue;
theValue = this.getValue();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "value", theValue), currentHashCode, theValue);
}
{
String theOrganizationIdentifierContext;
theOrganizationIdentifierContext = this.getOrganizationIdentifierContext();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "organizationIdentifierContext", theOrganizationIdentifierContext), currentHashCode, theOrganizationIdentifierContext);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}
|
[
"twitch@nervestaple.com"
] |
twitch@nervestaple.com
|
687c8ffa7c67868bfa01657aa32717653a5cdf3f
|
22e6bf275fdf02a7ff2046e7c37282dde85bb43e
|
/plugins/shiro/src/test/java/plugin/shiro/OtherRealm.java
|
9d571d7db9b775b1fc4c08ea4f47ac505dc12503
|
[] |
no_license
|
ybz216/juzu
|
05206904eb7099abaa5a477224e4dcb4de9ed4c2
|
37612ff8b031ec55523fa4654546ab4c2536fc2c
|
refs/heads/master
| 2022-05-11T10:50:40.699471
| 2020-01-14T14:18:50
| 2020-01-29T18:27:40
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,259
|
java
|
/*
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package plugin.shiro;
import juzu.impl.common.Tools;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.SimpleAuthenticationInfo;
import org.apache.shiro.authz.AuthorizationInfo;
import org.apache.shiro.authz.SimpleAuthorizationInfo;
import org.apache.shiro.realm.AuthorizingRealm;
import org.apache.shiro.subject.PrincipalCollection;
/**
* @author <a href="mailto:haithanh0809@gmail.com">Nguyen Thanh Hai</a>
* @version $Id$
*
*/
public class OtherRealm extends AuthorizingRealm {
@Override
protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {
String username = (String)getAvailablePrincipal(principals);
if ("marry".equals(username)) {
SimpleAuthorizationInfo info = new SimpleAuthorizationInfo();
info.setRoles(Tools.set("role3"));
info.setStringPermissions(Tools.set("permission3"));
return info;
}
return null;
}
@Override
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException {
String principal = (String)token.getPrincipal();
String credentials = new String((char[])token.getCredentials());
if ("marry".equals(principal) && "foo".equals(credentials)) {
return new SimpleAuthenticationInfo(principal, credentials.toCharArray(), getName());
}
return null;
}
}
|
[
"julien@julienviet.com"
] |
julien@julienviet.com
|
a7bb44c6beec6faed53f457cc0e91592ee859ebf
|
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
|
/java/neo4j/2016/8/StoreCopyFinishedResponseDecoder.java
|
4752c3184297dc3cb6d57aa27551fa9413cb39e1
|
[] |
no_license
|
rosoareslv/SED99
|
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
|
a062c118f12b93172e31e8ca115ce3f871b64461
|
refs/heads/main
| 2023-02-22T21:59:02.703005
| 2021-01-28T19:40:51
| 2021-01-28T19:40:51
| 306,497,459
| 1
| 1
| null | 2020-11-24T20:56:18
| 2020-10-23T01:18:07
| null |
UTF-8
|
Java
| false
| false
| 1,310
|
java
|
/*
* Copyright (c) 2002-2016 "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 Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.coreedge.catchup.storecopy;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageDecoder;
import java.util.List;
public class StoreCopyFinishedResponseDecoder extends MessageToMessageDecoder<ByteBuf>
{
@Override
protected void decode( ChannelHandlerContext ctx, ByteBuf msg, List<Object> out ) throws Exception
{
out.add( new StoreCopyFinishedResponse( msg.readLong() ) );
}
}
|
[
"rodrigosoaresilva@gmail.com"
] |
rodrigosoaresilva@gmail.com
|
10d24381b26880391ddfb4d8c39f9319a68824b5
|
ba498f825f8de95fefda39528066968d99080fbe
|
/pl/best241/ccguilds/guildevents/events/GuildMemberKickEvent.java
|
b53aadc691d807889156f2a2a1799b4c7854033a
|
[] |
no_license
|
rachciachose/ccGuilds
|
0dbf02d67aaeeb682e14cd87ff7e47fb55cc3e7c
|
8adf5f6827a6c87983ce1f3b80658fccdddab88b
|
refs/heads/master
| 2022-04-13T20:29:28.398993
| 2020-04-06T08:05:36
| 2020-04-06T08:05:36
| 253,433,921
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 552
|
java
|
//
// Decompiled by Procyon v0.5.30
//
package pl.best241.ccguilds.guildevents.events;
import pl.best241.ccguilds.guildevents.EventType;
import java.util.UUID;
import pl.best241.ccguilds.guildevents.EventData;
public class GuildMemberKickEvent extends EventData
{
private UUID who;
private UUID byWhom;
public GuildMemberKickEvent(final long time, final String shortCut, final UUID who, final UUID byWhom) {
super(time, EventType.GUILD_MEMBER_KICK, shortCut);
this.byWhom = byWhom;
this.who = who;
}
}
|
[
"63228513+rachciachose@users.noreply.github.com"
] |
63228513+rachciachose@users.noreply.github.com
|
eefd5ba3dcfeef502dbef2eed256b41b43984c7d
|
e0c2efe94dad5f0cf240f4f388b1f462f2f13a5f
|
/20200701-์๋ฐ๋ฐฐ์ด/src/์๋ฐ๋ฐฐ์ด_์ฉ๋2.java
|
c898b17680e3ad5ff608212199d26f01d692ad05
|
[] |
no_license
|
achoon91/JavaStudy
|
ace03c868006c6dd53c24d9dac69bfaf17cc49ea
|
4d54caab346ccf8e77f04e5949a096fe8152b1ca
|
refs/heads/master
| 2023-02-25T05:55:38.283189
| 2021-02-12T23:19:08
| 2021-02-12T23:19:08
| 273,409,447
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,602
|
java
|
/*
* =========
* 3 6 9
* ========= int[] com={3,6,9};
*
* ====== ๊ฒฐ๊ณผ =====
* S: โโโ
* B:
* ================
* 3 9 6
* 3 6 9
*
* 3 8 7
* ====== ๊ฒฐ๊ณผ =====
* S: โ
* B:
* ================
*
* 8 7 3
* ====== ๊ฒฐ๊ณผ =====
* S:
* B: โ
* ================
*/
import java.util.*;
public class ์๋ฐ๋ฐฐ์ด_์ฉ๋2 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int[] com={3,6,9};
// ์ฌ์ฉ์๊ฐ ์
๋ ฅํ ๊ฐ ์ ์ฅ
int[] user=new int[3];
// ์
๋ ฅ ๋ฐ๊ธฐ
Scanner scan=new Scanner(System.in);
while(true)
{
System.out.print("3์๋ฆฌ ์ ์๋ฅผ ์
๋ ฅ:");// 100~999
// ์กฐ๊ฑด
int input=scan.nextInt();
if(input<100 || input>999)
{
// || => ์๋ชป๋ ์
๋ ฅ์ผ ๊ฒฝ์ฐ์ ์ฃผ๋ก ์ฒ๋ฆฌ
// && => ์ ์์ ์ผ๋ก ์
๋ ฅ์ด ๋ ๊ฒฝ์ฐ์ ์ฒ๋ฆฌ
System.out.println("์๋ชป๋ ์
๋ ฅ์
๋๋ค!!");// while ์ฒ์์ผ๋ก ์ด๋
continue; // while์ ์กฐ๊ฑด์์ผ๋ก ์ด๋
}
// ์๋ชป๋ ์
๋ ฅ
// ์ค๋ณต๋ ์๊ฐ ์์ผ๋ฉด ์๋๋ค
// ์ ์ฅ ==> 123
user[0]=input/100; // 123/100 => 1
user[1]=(input%100)/10; // 123%100 ==> 23/10 => 2
user[2]=input%10; // ํํ๋งค์ ๊ตฌํ๊ธฐ
if(user[0]==user[1]||user[1]==user[2]||user[0]==user[2])
{
System.out.println("์ค๋ณต๋ ์๋ ์ฌ์ฉํ ์ ์์ต๋๋ค!!");
continue;
}
// ๋น๊ต
int s=0,b=0;
for(int i=0;i<3;i++) // com
{
for(int j=0;j<3;j++) //user
{
if(com[i]==user[j])// ๊ฐ์ ์๊ฐ ์๋์ง ์ฌ๋ถ ํ์ธ
{
if(i==j)
s++;
else
b++;
}
}
}
// ๊ฒฐ๊ณผ๊ฐ ์ถ๋ ฅ
System.out.println("===== ๊ฒฐ๊ณผ =====");
System.out.print("S:");
for(int i=0;i<s;i++)
{
System.out.print("โ");
}
System.out.print("\nB:");
for(int i=0;i<b;i++)
{
System.out.print("โ");
}
System.out.println("\n=============");
// while ์ข
๋ฃ ์ฌ๋ถ
if(s==3)
{
System.out.println("Game Over!!");
break;
}
}
}
}
|
[
"achoon91@gmail.com"
] |
achoon91@gmail.com
|
9149e36198045ac62f71306df66ec1d21efdafaf
|
4ffef4b1e3214dfb42dc079aacc7a9df83b4e8df
|
/third_party/galago/core/src/main/java/org/lemurproject/galago/core/parse/stem/Stemmer.java
|
8db5a61256b3f606dc0ca8e753c18cb7f7159d31
|
[
"BSD-3-Clause"
] |
permissive
|
jjfiv/irene
|
55145fc6118dfac6ad449419ac342a41a96a129a
|
8713a97600cc939bddb1d66fa3bf04658c035db3
|
refs/heads/main
| 2021-08-16T18:33:51.336630
| 2021-06-15T20:23:45
| 2021-06-15T20:23:45
| 130,254,789
| 6
| 0
|
BSD-3-Clause
| 2021-04-03T01:53:18
| 2018-04-19T18:13:44
|
Kotlin
|
UTF-8
|
Java
| false
| false
| 3,617
|
java
|
/*
* BSD License (http://lemurproject.org/galago-license)
*/
package org.lemurproject.galago.core.parse.stem;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import org.lemurproject.galago.core.parse.Document;
import org.lemurproject.galago.tupleflow.error.IncompatibleProcessorException;
import org.lemurproject.galago.tupleflow.Linkage;
import org.lemurproject.galago.utility.Parameters;
import org.lemurproject.galago.tupleflow.Processor;
import org.lemurproject.galago.tupleflow.Source;
import org.lemurproject.galago.tupleflow.Step;
import org.lemurproject.galago.tupleflow.TupleFlowParameters;
import org.lemurproject.galago.tupleflow.execution.ErrorStore;
import org.lemurproject.galago.utility.reflection.ReflectUtil;
/**
*
*
* @author sjh
*/
public abstract class Stemmer implements Source<Document>, Processor<Document> {
// each create of Stemmer should have it's own lock
final Object lock = new Object();
long cacheLimit = 50000;
HashMap<String, String> cache = new HashMap<>();
public Processor<Document> processor;
@Override
public void process(Document document) throws IOException {
processor.process(stem(document));
}
@Override
public void close() throws IOException {
processor.close();
}
@Override
public void setProcessor(Step processor) throws IncompatibleProcessorException {
Linkage.link(this, processor);
}
public static void verify(TupleFlowParameters fullParameters, ErrorStore store) {
}
public static String getInputClass(TupleFlowParameters parameters) {
return Document.class.getCanonicalName();
}
public static String getOutputClass(TupleFlowParameters parameters) {
return Document.class.getCanonicalName();
}
public static String[] getOutputOrder(TupleFlowParameters parameters) {
return new String[0];
}
public Document stem(Document document) {
// new document is necessary - stemmed terms were being propagated unintentially
Document newDocument = new Document(document);
List<String> words = newDocument.terms;
for (int i = 0; i < words.size(); i++) {
String word = words.get(i);
words.set(i, stem(word));
}
return newDocument;
}
public String stem(String term) {
if (cache.containsKey(term)) {
return cache.get(term);
}
String stemmedTerm;
synchronized (lock) {
stemmedTerm = stemTerm(term);
}
if (!cache.containsKey(stemmedTerm)) {
cache.put(term, stemmedTerm);
}
if (cache.size() > cacheLimit) {
cache.clear();
}
return stemmedTerm;
}
public final String stemAsRequired(String term) {
if(term.contains("~")) {
return this.stemWindow(term);
} else {
return this.stem(term);
}
}
// This function should only be use synchronously (see 'lock')
protected abstract String stemTerm(String term);
/**
* allows stemming of windows.
*/
public String stemWindow(String term) {
StringBuilder window = new StringBuilder();
for (String t : term.split("~")) {
if (window.length() > 0) {
window.append("~");
}
window.append(stem(t));
}
return window.toString();
}
/**
* @deprecated use create instead.
*/
@Deprecated
public static Stemmer instance(Parameters p) throws ReflectiveOperationException {
return create(p);
}
public static Stemmer create(Parameters p) throws ReflectiveOperationException {
if(p.containsKey("stemmer")) {
return ReflectUtil.instantiate(p.getString("stemmer"));
}
return new NullStemmer();
}
}
|
[
"johnf@middlebury.edu"
] |
johnf@middlebury.edu
|
cee782bea59cf706e88953a5a6d94e5d9af3a90f
|
74acea1b7f2a3a509b9ead48f186c9349bf55cc8
|
/framework/src/main/java/com/enjoyf/platform/text/JsonItemProcessStragy.java
|
6718daaa7f32a8bdd333ada7371efaa59e7eaee2
|
[] |
no_license
|
liu67224657/besl-platform
|
6cd2bfcc7320a4039e61b114173d5f350345f799
|
68c126bea36c289526e0cc62b9d5ce6284353d11
|
refs/heads/master
| 2022-04-16T02:23:40.178907
| 2020-04-17T09:00:01
| 2020-04-17T09:00:01
| 109,520,110
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 262
|
java
|
package com.enjoyf.platform.text;
/**
* @Auther: <a mailto="EricLiu@staff.joyme.com">Eric Liu</a>
* Create time: 13-9-27 ไธๅ3:38
* Description:
*/
public interface JsonItemProcessStragy {
public TextJsonItem processorText(TextJsonItem jsonItem);
}
|
[
"ericliu@staff.joyme.com"
] |
ericliu@staff.joyme.com
|
fed57afad5750514616b3a68e7b8d6177b6cc770
|
d492576b6d452f1f4bc8c4f4ffc1b054f5cc5eff
|
/CargaArchivosExcel/src/co/gov/ideam/sirh/archivos/model/FuniasUnidadGeologicaConverter.java
|
58fb5dfc9ffc6df47b7997ea7d3ef6e3945e7273
|
[] |
no_license
|
Sirhv2/AppSirh
|
d5f3cb55e259c29e46f3e22a7d39ed7b01174c84
|
6074d04bc0f4deb313e7f3c73a284d51e499af4d
|
refs/heads/master
| 2021-01-15T12:04:12.129393
| 2016-09-16T21:09:30
| 2016-09-16T21:09:30
| 68,330,584
| 0
| 0
| null | null | null | null |
WINDOWS-1250
|
Java
| false
| false
| 2,416
|
java
|
package co.gov.ideam.sirh.archivos.model;
import co.gov.ideam.sirh.parametros.business.ParametrosEJB;
import co.gov.ideam.sirh.parametros.model.Lista;
import co.gov.ideam.sirh.usuarios.agua.business.UsuariosAguaEJB;
import co.gov.ideam.sirh.usuarios.agua.model.Captacion;
import co.gov.ideam.sirh.usuarios.agua.model.CaptacionTO;
import co.gov.ideam.sirh.usuarios.agua.model.SubttFunias;
import co.gov.ideam.sirh.util.ConstantesParametros;
import co.gov.ideam.sirh.util.IdeamException;
public class FuniasUnidadGeologicaConverter extends ModelConverter{
public FuniasUnidadGeologicaConverter() {
super();
}
public Object getModel(Object model)throws IdeamException {
if(model instanceof SubttFunias){
return this.getFunias( (SubttFunias)model );
}
return null;
}
private SubttFunias getFunias(SubttFunias funias)throws IdeamException{
ParametrosEJB parametrosService = this.getParametrosService();
UsuariosAguaEJB usuariosAguaService = this.getUsuariosAguaService();
String identificador = row.getCellValue("Identificador Punto").toString();
//verificar que exista una captaciรณn con el identificador del punto.
if(identificador == null || identificador.trim().equalsIgnoreCase("")){
//throw new IdeamException("Identificador de punto no valido.");
return null;
}else{
CaptacionTO captacion =
usuariosAguaService.getCaptacion(identificador, funias.getAutoridad().getId());
if(captacion == null){
//throw new IdeamException("No se encuentra captaciรณn con el identificador de punto: "+identificador);
return null;
}
funias.setIdCaptacion(captacion.getId());
}
//verificar si existe un funias para esa captaciรณn del mismo tipo
SubttFunias existeFunias = usuariosAguaService.
getFuniasByCaptacionTipoFunias(funias.getIdCaptacion(),
ConstantesParametros.LISTA_GEOLOGIA_GEOMORFOLOGIA.intValue());
if(existeFunias != null){
funias = existeFunias;
}
String unidadGeologica = row.getCellValue("Unidad Geologica").toString();
funias.setUnidadGeologica(unidadGeologica);
return funias;
}
}
|
[
"jfgc1394@gmail.com"
] |
jfgc1394@gmail.com
|
632780e140c9a6bc33bc5e5c614e4e49444ff202
|
7c377882e4789809de9a72dd54c2b0581c418474
|
/roncoo-education-system/roncoo-education-system-service/src/main/java/com/roncoo/education/system/service/biz/ApiSysMenuRoleBiz.java
|
99ced97861c89ccc6dd486c979ec19f78c95b445
|
[
"MIT"
] |
permissive
|
husend/roncoo-education
|
bcc06f177f0d369507de19e342855fb1248ffcd4
|
8a5ecc3a61bf8c5c0cfc641b4dc76532f77f23e4
|
refs/heads/master
| 2022-09-10T14:11:16.542139
| 2019-11-07T10:27:14
| 2019-11-07T10:27:14
| 220,208,745
| 0
| 0
|
MIT
| 2022-06-17T02:37:16
| 2019-11-07T10:19:18
|
Java
|
UTF-8
|
Java
| false
| false
| 202
|
java
|
package com.roncoo.education.system.service.biz;
import org.springframework.stereotype.Component;
/**
* ่ๅ่ง่ฒๅ
ณ่่กจ
*
* @author wujing
*/
@Component
public class ApiSysMenuRoleBiz {
}
|
[
"1175674846@qq.com"
] |
1175674846@qq.com
|
952904d064b3ff0cfa05b7e64ee19159562dfed9
|
9dc45ba24a53d879e4a9fe90f4120997eab1c8b0
|
/aek-data-service/src/main/java/com/aek/ebey/data/mapper/QcInspectionDataMapper.java
|
2ff5705b0f363be7ecde8ac7549cb126455c4a4d
|
[] |
no_license
|
honghuixixi/aek-data-service
|
aa465ca06fd626c64bb7ab250350923f7d6e5781
|
315079173ad06a12d82cf689023ca8e0478d0567
|
refs/heads/master
| 2020-03-21T06:50:02.720008
| 2018-06-22T02:24:53
| 2018-06-22T02:24:53
| 138,244,585
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 278
|
java
|
package com.aek.ebey.data.mapper;
import com.aek.common.core.base.BaseMapper;
import com.aek.ebey.data.model.QcInspectionData;
/**
* Mapperๆฅๅฃ
*
* @author Honghui
* @since 2018-04-16
*/
public interface QcInspectionDataMapper extends BaseMapper<QcInspectionData> {
}
|
[
"honghui@aek56.com"
] |
honghui@aek56.com
|
a4e4684f13fef706b566f873a351de4cb6306306
|
7c56c1a84fd207a00e70c784df0e79b837075837
|
/AdapterViewExam/src/main/java/com/example/adapterviewexam/MainActivity.java
|
95d6d22c8f7dcd23c76e7e4fe9d4d8b63318f78e
|
[] |
no_license
|
mingi502/android-first-book
|
00e3859bd1a5c561c38240c430df1d3c6fe5a73e
|
8e3f4ead202ab7b6b878749f9cc7ed0c279cdd83
|
refs/heads/master
| 2023-08-24T08:24:20.879357
| 2021-10-19T16:29:29
| 2021-10-19T16:29:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,371
|
java
|
package com.example.adapterviewexam;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;
import java.util.ArrayList;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// ์๋ฃ
// ArrayList<String> data = new ArrayList<>();
// for (int i = 0; i < 30; i++) {
// data.add("data " + i);
// }
ArrayList<Weather> data = new ArrayList<>();
data.add(new Weather("์์", "25๋", "๋ง์"));
data.add(new Weather("์์ธ", "26๋", "๋น"));
data.add(new Weather("์์", "24๋", "๊ตฌ๋ฆ"));
data.add(new Weather("๋ถ์ฐ", "29๋", "๊ตฌ๋ฆ"));
data.add(new Weather("์ธ์ฒ", "23๋", "๋ง์"));
data.add(new Weather("๋๊ตฌ", "28๋", "๋น"));
data.add(new Weather("์ฉ์ธ", "25๋", "๋น"));
// ์ด๋ํฐ
// ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
// android.R.layout.simple_list_item_1, data);
MyFirstAdapter adapter = new MyFirstAdapter(data);
// ๋ทฐ
ListView listView = (ListView) findViewById(R.id.list_view);
listView.setAdapter(adapter);
}
}
|
[
"a811219@gmail.com"
] |
a811219@gmail.com
|
7783e812ceafbc1f9d34d0802c4e416a7f172a75
|
ca030864a3a1c24be6b9d1802c2353da4ca0d441
|
/classes9.dex_source_from_JADX/com/facebook/adinterfaces/protocol/FetchAdPreviewFeedUnitMethod.java
|
838fa87bdbb62cb5a78452cfe8c5bf47020655e6
|
[] |
no_license
|
pxson001/facebook-app
|
87aa51e29195eeaae69adeb30219547f83a5b7b1
|
640630f078980f9818049625ebc42569c67c69f7
|
refs/heads/master
| 2020-04-07T20:36:45.758523
| 2018-03-07T09:04:57
| 2018-03-07T09:04:57
| 124,208,458
| 4
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,886
|
java
|
package com.facebook.adinterfaces.protocol;
import com.facebook.adinterfaces.error.AdInterfacesErrorReporter;
import com.facebook.adinterfaces.model.CreativeAdModel;
import com.facebook.adinterfaces.protocol.AdInterfacesAdPreviewQueryModels.AdInterfacesAdPreviewFeedUnitQueryModel;
import com.facebook.common.callercontext.CallerContext;
import com.facebook.graphql.executor.GraphQLQueryExecutor;
import com.facebook.graphql.executor.GraphQLQueryFuture;
import com.facebook.graphql.executor.GraphQLRequest;
import com.facebook.graphql.executor.GraphQLResult;
import com.fasterxml.jackson.databind.ObjectMapper;
import javax.annotation.Nullable;
import javax.inject.Inject;
/* compiled from: Warning */
public class FetchAdPreviewFeedUnitMethod {
private AdInterfacesErrorReporter f22335a;
private ObjectMapper f22336b;
private final GraphQLQueryExecutor f22337c;
private final AdInterfacesQueryBuilder f22338d;
@Inject
public FetchAdPreviewFeedUnitMethod(AdInterfacesErrorReporter adInterfacesErrorReporter, ObjectMapper objectMapper, GraphQLQueryExecutor graphQLQueryExecutor, AdInterfacesQueryBuilder adInterfacesQueryBuilder) {
this.f22335a = adInterfacesErrorReporter;
this.f22336b = objectMapper;
this.f22337c = graphQLQueryExecutor;
this.f22338d = adInterfacesQueryBuilder;
}
@Nullable
public final GraphQLQueryFuture<GraphQLResult<AdInterfacesAdPreviewFeedUnitQueryModel>> m24096a(String str, CreativeAdModel creativeAdModel) {
try {
GraphQLRequest a = this.f22338d.m23055a(str, this.f22336b.a(creativeAdModel.m22866h()));
a.a(CallerContext.a(getClass()));
return this.f22337c.a(a);
} catch (Throwable e) {
this.f22335a.m22727a(FetchAdPreviewFeedUnitMethod.class, "Error converting ad creative", e);
return null;
}
}
}
|
[
"son.pham@jmango360.com"
] |
son.pham@jmango360.com
|
11e2c4f2a1c97c71015bd3f9b10ca6e6fa6201ff
|
565f95f207f49d987bdc372cd80942be95451731
|
/java/ejb/net/spy/consult/Consultant.java
|
df1076116006821173428223e2facc38924690fc
|
[] |
no_license
|
dustin/snippets
|
76724c2131546bddd35a80da16921a44a49e2262
|
5be535890f9e71e298fec601d55c469c542ea330
|
refs/heads/master
| 2023-08-18T22:01:39.546961
| 2022-12-29T07:39:40
| 2022-12-29T07:39:40
| 18,840
| 18
| 4
| null | 2013-01-06T08:10:39
| 2008-05-22T07:58:19
|
C
|
UTF-8
|
Java
| false
| false
| 741
|
java
|
// Copyright (c) 2000 Dustin Sallings <dustin@spy.net>
//
// $Id: Consultant.java,v 1.1 2000/01/22 09:45:15 dustin Exp $
package net.spy.consult;
import javax.ejb.*;
import java.rmi.RemoteException;
public interface Consultant extends EJBObject {
// Name
public String firstName() throws RemoteException;
public void setFirstName(String to) throws RemoteException;
public String lastName() throws RemoteException;
public void setLastName(String to) throws RemoteException;
// Social Security Number
public String SSN() throws RemoteException;
public void setSSN(String to) throws RemoteException;
// Address info
public Address address() throws RemoteException;
public void setAddress(Address to) throws RemoteException;
}
|
[
"dustin@spy.net"
] |
dustin@spy.net
|
d0b4e9379b9e869a712805ae2deaa5560c92aca0
|
cca87c4ade972a682c9bf0663ffdf21232c9b857
|
/com/tencent/mm/plugin/accountsync/model/c.java
|
bd64efcd448c514d91a7a2a96483a1de9e87fb17
|
[] |
no_license
|
ZoranLi/wechat_reversing
|
b246d43f7c2d7beb00a339e2f825fcb127e0d1a1
|
36b10ef49d2c75d69e3c8fdd5b1ea3baa2bba49a
|
refs/heads/master
| 2021-07-05T01:17:20.533427
| 2017-09-25T09:07:33
| 2017-09-25T09:07:33
| 104,726,592
| 12
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,050
|
java
|
package com.tencent.mm.plugin.accountsync.model;
import com.tencent.mm.network.j;
import com.tencent.mm.network.p;
import com.tencent.mm.protocal.c.axy;
import com.tencent.mm.protocal.c.axz;
import com.tencent.mm.y.b;
import com.tencent.mm.y.b.a;
import com.tencent.mm.y.e;
import com.tencent.mm.y.k;
public final class c extends k implements j {
private final b gUA;
private e gUD = null;
public c(axy com_tencent_mm_protocal_c_axy) {
a aVar = new a();
aVar.hsm = com_tencent_mm_protocal_c_axy;
aVar.hsn = new axz();
aVar.uri = "/cgi-bin/micromsg-bin/sendphoto2fbwall";
aVar.hsl = 433;
aVar.hso = 0;
aVar.hsp = 0;
this.gUA = aVar.BE();
}
public final int a(com.tencent.mm.network.e eVar, e eVar2) {
this.gUD = eVar2;
return a(eVar, this.gUA, this);
}
public final int getType() {
return 433;
}
public final void a(int i, int i2, int i3, String str, p pVar, byte[] bArr) {
this.gUD.a(i2, i3, str, this);
}
}
|
[
"lizhangliao@xiaohongchun.com"
] |
lizhangliao@xiaohongchun.com
|
664b73d586c5c30ddcfbc542bbd3d75b39da128c
|
ca72e2e7966ee58db893ca4807bf716806be5c04
|
/javaๆกๆถ/springbootๆกๆถ/untitled/itcast-eureka/src/main/java/cn/itcast/eureka/ItcastEurekaApplication.java
|
88b22512bed254534e60674850ce364f2c7ca50a
|
[] |
no_license
|
qwd1998/repo-framework
|
83ad660cfccb9e1becdb62a60e12322ff9bb802e
|
66de9654f0fdc9a7cb2fe4fada511cb260252b5b
|
refs/heads/main
| 2023-03-24T03:58:01.884524
| 2021-03-16T05:37:19
| 2021-03-16T05:37:19
| 321,057,001
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 416
|
java
|
package cn.itcast.eureka;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
@SpringBootApplication
@EnableEurekaServer
public class ItcastEurekaApplication {
public static void main(String[] args) {
SpringApplication.run(ItcastEurekaApplication.class, args);
}
}
|
[
"641770222@qq.com"
] |
641770222@qq.com
|
f6e6edf2e35676af3b5d58de0749fcebf656251e
|
a90cc77fd5dbce39ebb643e41fa6dc1f4ebfb04f
|
/src/task/task06/task0611/StringHelper.java
|
c434d337cc430503ecc5298a45766c5a103b3bbe
|
[] |
no_license
|
Borislove/JavaRush
|
e8b6e43ece6b18323dff75086d845f18f33894a5
|
76600418cf8e590f6c96493e02b71769a9fcab52
|
refs/heads/master
| 2021-05-26T10:20:30.262452
| 2020-06-17T18:41:54
| 2020-06-17T18:41:54
| 254,093,677
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,626
|
java
|
package task.task06.task0611;
/*ะกะดะตะปะฐัั ะบะปะฐัั StringHelper, ั ะบะพัะพัะพะณะพ ะฑัะดัั 2 ััะฐัะธัะตัะบะธั
ะผะตัะพะดะฐ:
String multiply(String s, int count) - ะฒะพะทะฒัะฐัะฐะตั ัััะพะบั ะฟะพะฒัะพัะตะฝะฝัั count ัะฐะท.
String multiply(String s) - ะฒะพะทะฒัะฐัะฐะตั ัััะพะบั ะฟะพะฒัะพัะตะฝะฝัั 5 ัะฐะท.
ะัะธะผะตั:
ะะผะธะณะพ -> ะะผะธะณะพะะผะธะณะพะะผะธะณะพะะผะธะณะพะะผะธะณะพ
ะขัะตะฑะพะฒะฐะฝะธั:
โข ะัะพะณัะฐะผะผะฐ ะฝะต ะดะพะปะถะฝะฐ ััะธััะฒะฐัั ะดะฐะฝะฝัะต ั ะบะปะฐะฒะธะฐัััั.
โข ะะตัะพะดั ะบะปะฐััะฐ StringHelper ะดะพะปะถะฝั ะฒะพะทะฒัะฐัะฐัั ัััะพะบั.
โข ะะตัะพะดั ะบะปะฐััะฐ StringHelper ะดะพะปะถะฝั ะฑััั ััะฐัะธัะตัะบะธะผะธ.
โข ะะตัะพะดั ะบะปะฐััะฐ StringHelper ะดะพะปะถะฝั ะฑััั public.
โข ะะตัะพะด multiply(String s, int count) ะดะพะปะถะตะฝ ะฒะพะทะฒัะฐัะฐัั ัััะพะบั ะฟะพะฒัะพัะตะฝะฝัั count ัะฐะท.
โข ะะตัะพะด multiply(String s) ะดะพะปะถะตะฝ ะฒะพะทะฒัะฐัะฐัั ัััะพะบั ะฟะพะฒัะพัะตะฝะฝัั 5 ัะฐะท.*/
/*
ะะปะฐัั StringHelper
*/
public class StringHelper {
public static String multiply(String s) {
String result = "";
//ะฝะฐะฟะธัะธัะต ััั ะฒะฐั ะบะพะด
for (int i = 0; i < 5; i++) {
result +=s;
}
return result;
}
public static String multiply(String s, int count) {
String result = "";
//ะฝะฐะฟะธัะธัะต ััั ะฒะฐั ะบะพะด
for (int i = 0; i < count; i++) {
result +=s;
}
return result;
}
public static void main(String[] args) {
}
}
|
[
"abirme@yandex.ru"
] |
abirme@yandex.ru
|
ff51743605d4923416da5c778d8e79c5fea66863
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-14263-13-21-FEMO-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/api/Document_ESTest.java
|
361810c1c573aed40c4b493dbda80939d70b0c86
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 540
|
java
|
/*
* This file was automatically generated by EvoSuite
* Sun Apr 05 03:55:22 UTC 2020
*/
package com.xpn.xwiki.api;
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 Document_ESTest extends Document_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
4e2eed64fb4e65e454cc0c7546b0544a8ba5b6cb
|
f82c3abfa98d8363aaa8806f3fa75c74c44e3b39
|
/src/main/java/domain/listen/entity/SchoolEntity.java
|
9df20aea542203644a46e0da366c696eca896b6e
|
[] |
no_license
|
jsyunzhan/WeChatgyjyjtkxt
|
122f6a2da75268c73f04e659f9fc573d74eaeea5
|
49d35a972808529a05c9e0032fb1b947703b165e
|
refs/heads/master
| 2020-03-17T16:59:54.211384
| 2018-06-13T07:45:11
| 2018-06-13T07:45:11
| 133,770,784
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 475
|
java
|
package domain.listen.entity;
import domain.base.entity.AbstractEntity;
import lombok.Getter;
import lombok.Setter;
/**
* ๅญฆๆ กๅฎไฝ็ฑป
*/
@Getter
@Setter
public class SchoolEntity extends AbstractEntity{
//ๅญฆๆ ก็ฑปๅID
private Long schoolTypeId;
//ๅญฆๆ ก็ฑปๅๅ็งฐ
private String schoolTypeName;
//่ก้ID
private Long streetId;
//่ก้ๅ็งฐ
private String streetName;
//ๅญฆๆ กๅ็งฐ
private String schoolName;
}
|
[
"chen@qq.com"
] |
chen@qq.com
|
ef991bc679717666323b307393b2f31d26504c31
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/13/13_a26443665f644c9131de695e6f0b836c3f5ab494/CreateAccountHandler/13_a26443665f644c9131de695e6f0b836c3f5ab494_CreateAccountHandler_t.java
|
0ff82ee01ef698780d819748078f0d55ff4455d6
|
[] |
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,019
|
java
|
package il.technion.ewolf.server.jsonDataHandlers;
import static il.technion.ewolf.server.EWolfResponse.RES_BAD_REQUEST;
import static il.technion.ewolf.server.EWolfResponse.RES_GENERIC_ERROR;
import org.apache.commons.configuration.ConfigurationException;
import il.technion.ewolf.server.EWolfResponse;
import il.technion.ewolf.server.ServerResources;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
public class CreateAccountHandler implements JsonDataHandler {
private String configFile;
public CreateAccountHandler(String configFile) {
this.configFile = configFile;
}
private static class JsonReqCreateAccountParams {
String username;
String name;
String password;
}
static class CreateAccountResponse extends EWolfResponse {
public CreateAccountResponse(String result) {
super(result);
}
public CreateAccountResponse() {
}
}
@Override
public Object handleData(JsonElement jsonReq) {
Gson gson = new Gson();
JsonReqCreateAccountParams jsonReqParams;
try {
jsonReqParams = gson.fromJson(jsonReq, JsonReqCreateAccountParams.class);
} catch (Exception e) {
e.printStackTrace();
return new CreateAccountResponse(RES_BAD_REQUEST);
}
if (jsonReqParams.username == null || jsonReqParams.name == null
|| jsonReqParams.password == null) {
return new CreateAccountResponse(RES_BAD_REQUEST +
": must specify username, name and password.");
}
if (!jsonReqParams.username.matches("[a-zA-z0-9]+")) {
return new CreateAccountResponse(RES_BAD_REQUEST +
":username can contain only digits and letters.");
}
try {
ServerResources.setUserConfigurations(configFile, jsonReqParams.username,
jsonReqParams.name, jsonReqParams.password);
} catch (ConfigurationException e) {
e.printStackTrace();
return new CreateAccountResponse(RES_GENERIC_ERROR +
": Error while loading the properties file");
}
return new CreateAccountResponse();
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
ace812ae4d3fec4124c434a4bb051d8a73be5b0c
|
6dcaefc38e6b6c16578ff5e68702ceb7da21dfb0
|
/bansystem-bungeecord/src/main/java/ch/dkrieger/bansystem/bungeecord/BungeeCordNetwork.java
|
a7e5375a5fd217f716f72d54f1d74cf3181faada
|
[
"Apache-2.0"
] |
permissive
|
JustinSGD/DKBans
|
0c110eb533b0a9d8b803cd5cc1c8376523e5dcc9
|
b9928ed9887fc8236f198909c86fdc8a62566d5f
|
refs/heads/master
| 2020-04-19T00:56:48.434957
| 2019-01-27T16:06:00
| 2019-01-27T16:06:00
| 167,859,870
| 0
| 0
|
Apache-2.0
| 2019-01-27T21:18:49
| 2019-01-27T21:18:49
| null |
UTF-8
|
Java
| false
| false
| 5,534
|
java
|
/*
* (C) Copyright 2018 The DKBans Project (Davide Wietlisbach)
*
* @author Davide Wietlisbach
* @since 30.12.18 14:39
* @Website https://github.com/DevKrieger/DKBans
*
* The DKBans Project is 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 ch.dkrieger.bansystem.bungeecord;
import ch.dkrieger.bansystem.bungeecord.event.ProxiedDKBansSettingUpdateEvent;
import ch.dkrieger.bansystem.lib.BanSystem;
import ch.dkrieger.bansystem.lib.DKNetwork;
import ch.dkrieger.bansystem.lib.JoinMe;
import ch.dkrieger.bansystem.lib.broadcast.Broadcast;
import ch.dkrieger.bansystem.lib.player.NetworkPlayer;
import ch.dkrieger.bansystem.lib.player.OnlineNetworkPlayer;
import ch.dkrieger.bansystem.lib.utils.Document;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.ProxyServer;
import net.md_5.bungee.api.chat.TextComponent;
import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import java.util.*;
public class BungeeCordNetwork implements DKNetwork {
private Map<UUID,JoinMe> joinme;
private SubServerConnection connection;
public BungeeCordNetwork(SubServerConnection connection) {
this.connection = connection;
this.joinme = new LinkedHashMap<>();
}
@Override
public JoinMe getJoinMe(OnlineNetworkPlayer player) {
return getJoinMe(player.getUUID());
}
@Override
public JoinMe getJoinMe(NetworkPlayer player) {
return getJoinMe(player.getUUID());
}
@Override
public JoinMe getJoinMe(UUID uuid) {
return this.joinme.get(uuid);
}
@Override
public void broadcast(String message) {
broadcast(new TextComponent(ChatColor.translateAlternateColorCodes('&',message)));
}
@Override
public void broadcast(TextComponent component) {
ProxyServer.getInstance().broadcast(component);
}
@Override
public void broadcast(Broadcast broadcast) {
broadcastLocal(broadcast);
}
@Override
public void broadcastLocal(Broadcast broadcast) {
BungeeCordBanSystemBootstrap.getInstance().sendLocalBroadcast(broadcast);
}
@Override
public void sendJoinMe(JoinMe joinMe) {
this.joinme.put(joinMe.getUUID(),joinMe);
List<TextComponent> components = joinMe.create();
for(ProxiedPlayer player : ProxyServer.getInstance().getPlayers()){
for(TextComponent component : components) player.sendMessage(component);
}
}
@Override
public void sendTeamMessage(String message) {
sendTeamMessage(new TextComponent(message));
}
@Override
public void sendTeamMessage(String message, boolean onlyLogin) {
sendTeamMessage(new TextComponent(message),onlyLogin);
}
@Override
public void sendTeamMessage(TextComponent component) {
sendTeamMessage(component,false);
}
@Override
public void sendTeamMessage(TextComponent component, boolean onlyLogin) {
for(ProxiedPlayer player : ProxyServer.getInstance().getPlayers()){
if(player.hasPermission("dkbans.team")){//set right permission
NetworkPlayer networkPlayer = BanSystem.getInstance().getPlayerManager().getPlayer(player.getUniqueId());
if(networkPlayer != null && (!onlyLogin || networkPlayer.isTeamChatLoggedIn())) player.sendMessage(component);
}
}
}
@Override
public List<String> getPlayersOnServer(String server) {
ServerInfo serverInfo = ProxyServer.getInstance().getServerInfo(server);
List<String> players = new ArrayList<>();
if(serverInfo != null) for(ProxiedPlayer player : serverInfo.getPlayers()) players.add(player.getName());
return players;
}
@Override
public List<String> getGroupServers(String group) {
List<String> servers = new LinkedList<>();
for(ServerInfo server : ProxyServer.getInstance().getServers().values()){
int cid = 0, creplace = 0;
for(char c : server.getName().toCharArray()){
cid++;
if(c == BanSystem.getInstance().getConfig().serverGroupSplit) creplace = cid-1;
}
if(group.equalsIgnoreCase(creplace>0?server.getName().substring(0,creplace):server.getName())) servers.add(server.getName());
}
return servers;
}
@Override
public void reloadFilter() {
BanSystem.getInstance().getFilterManager().reloadLocal();
connection.sendToAll("reloadFilter",new Document());
}
@Override
public void reloadBroadcast() {
BanSystem.getInstance().getBroadcastManager().reloadLocal();
connection.sendToAll("reloadBroadcast",new Document());
}
@Override
public void syncSetting(String name) {
ProxyServer.getInstance().getPluginManager().callEvent(new ProxiedDKBansSettingUpdateEvent(
name,System.currentTimeMillis(),false));
connection.sendToAll("syncSetting",new Document().append("name",name));
}
}
|
[
"davide.wietlisbach@icloud.com"
] |
davide.wietlisbach@icloud.com
|
2ac1d5686433124fbc5e3f48bf6d61089a920034
|
46e3415499f5823445c0314b774343ac9cc99c74
|
/gulimall-search/src/main/java/com/whut/gulimall/search/vo/SearchParam.java
|
d90795becec438e09e4df7b9956777cb98d9b39a
|
[] |
no_license
|
fyun123/gulimall
|
8bd5b53bd0dd6baa290216d20c44d9e5e8c3b2c8
|
7b68865c0cef10d77f77e299337982de3c8dbc15
|
refs/heads/main
| 2023-04-16T08:20:37.190500
| 2021-04-08T05:34:56
| 2021-04-08T05:34:56
| 331,545,895
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 854
|
java
|
package com.whut.gulimall.search.vo;
import lombok.Data;
import java.util.List;
/**
* ๅฐ่ฃ
้กต้ขๆๆๅฏ่ฝ
*/
@Data
public class SearchParam {
private String keyword; //ๅ
จๆๅน้
ๅ
ณ้ฎๅญ
private Long catalog3Id;//ไธ็บงๅ็ฑปid
/**
* sort=saleCount_asc/desc
* sort=skuPrice_asc_desc
* sort=hotScore_asc_desc
*/
private String sort;//ๆๅบๆกไปถ
/**
* hasStock=0/1
* skuPrice=1_500/_500/500_
* brandId=1
* attrs=1_ๅ
ถไป:ๅฎๅ
*/
private Integer hasStock; // ๆฏๅฆๆๅบๅญ
private String skuPrice; // ไปทๆ ผๅบ้ด
private List<Long> brandId; // ๆ็
งๅ็่ฟ่กๆฅ่ฏข๏ผๅฏไปฅๅค้
private List<String> attrs; // ๆ็
งๅฑๆง่ฟ่ก็ญ้
private Integer pageNum = 1; //้กต็
private String queryString; // ๅ็็ๆๆๆฅ่ฏขๆกไปถ
}
|
[
"1184384017@qq.com"
] |
1184384017@qq.com
|
4d21f330de1aec4ab30bf7b454a2abe21299d254
|
df5d6a911400cbc26a990349891310f2ee118ef1
|
/smoothcsv-swing/src/main/java/com/smoothcsv/swing/gridsheet/model/GridSheetCell.java
|
334d0d82803738b8bccfe5d612b05306b6cd1eb5
|
[
"Apache-2.0"
] |
permissive
|
k-hatano/smoothcsv
|
8df0eb4a9d66e24e08b547f5aa20d6cbb2b8254c
|
ab37ddd2c9f45d05872c8bf1d43ff49e3de2c18a
|
refs/heads/master
| 2022-05-22T17:35:16.465561
| 2020-06-06T01:28:18
| 2020-06-06T01:39:45
| 204,708,583
| 1
| 0
| null | 2019-08-27T22:24:14
| 2019-08-27T13:24:13
| null |
UTF-8
|
Java
| false
| false
| 830
|
java
|
/*
* Copyright 2016 kohii
*
* 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.smoothcsv.swing.gridsheet.model;
/**
* @author kohii
*/
public class GridSheetCell {
public final int row;
public final int column;
public GridSheetCell(int row, int column) {
this.row = row;
this.column = column;
}
}
|
[
"kohii.git@gmail.com"
] |
kohii.git@gmail.com
|
dc070f0e7c61f8c58e3a177f70fee9ae72107b6a
|
3efa417c5668b2e7d1c377c41d976ed31fd26fdc
|
/src/br/com/mind5/business/orderStatusChange/model/action/OrdugeVisiNodePartnerL1.java
|
50781d47fd78d6c5ee4761791dd9dceebaec2a69
|
[] |
no_license
|
grazianiborcai/Agenda_WS
|
4b2656716cc49a413636933665d6ad8b821394ef
|
e8815a951f76d498eb3379394a54d2aa1655f779
|
refs/heads/master
| 2023-05-24T19:39:22.215816
| 2023-05-15T15:15:15
| 2023-05-15T15:15:15
| 109,902,084
| 0
| 0
| null | 2022-06-29T19:44:56
| 2017-11-07T23:14:21
|
Java
|
UTF-8
|
Java
| false
| false
| 900
|
java
|
package br.com.mind5.business.orderStatusChange.model.action;
import java.util.List;
import br.com.mind5.business.orderStatusChange.info.OrdugeInfo;
import br.com.mind5.business.orderStatusChange.model.decisionTree.OrdugeNodePartnerL1;
import br.com.mind5.model.action.ActionVisitorTemplateAction;
import br.com.mind5.model.decisionTree.DeciTree;
import br.com.mind5.model.decisionTree.DeciTreeOption;
public final class OrdugeVisiNodePartnerL1 extends ActionVisitorTemplateAction<OrdugeInfo, OrdugeInfo> {
public OrdugeVisiNodePartnerL1(DeciTreeOption<OrdugeInfo> option) {
super(option, OrdugeInfo.class, OrdugeInfo.class);
}
@Override protected Class<? extends DeciTree<OrdugeInfo>> getTreeClassHook() {
return OrdugeNodePartnerL1.class;
}
@Override protected List<OrdugeInfo> toBaseClassHook(List<OrdugeInfo> baseInfos, List<OrdugeInfo> results) {
return results;
}
}
|
[
"mmaciel@mind5.com"
] |
mmaciel@mind5.com
|
d154d0e7184c1978fb5ea08576afdfa02d7d64fc
|
dc4497107e1e5750b4f64380fbde4cb0df4b273d
|
/Workspace/src/workspace/service/server/web/SrvServerCommand.java
|
a96a13f0271dcfd66f3a795cbfd92018a31055d7
|
[] |
no_license
|
M6C/workspace-neon
|
2c28ed019a8f9b3fbf1a30799ff2007dcf63ffef
|
23ea1b195dbd32eee715dac3ac07f6dada1b9e09
|
refs/heads/master
| 2022-10-24T16:23:40.743804
| 2022-10-18T14:37:26
| 2022-10-18T14:37:26
| 67,446,351
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,421
|
java
|
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: SrvServerCommand.java
package workspace.service.server.web;
import framework.beandata.BeanGenerique;
import framework.ressource.util.UtilString;
import framework.service.SrvGenerique;
import framework.trace.Trace;
import java.io.*;
import java.net.*;
import javax.servlet.ServletContext;
import javax.servlet.http.*;
import org.w3c.dom.Document;
import workspace.adaptateur.application.AdpXmlApplication;
import workspace.adaptateur.application.AdpXmlServer;
public class SrvServerCommand extends SrvGenerique
{
public SrvServerCommand()
{
}
public void execute(HttpServletRequest request, HttpServletResponse response, BeanGenerique bean)
throws Exception
{
HttpSession session = request.getSession();
ServletContext context = session.getServletContext();
BeanGenerique beanAuthentification = (BeanGenerique)session.getAttribute("BeanAuthentification");
String application = (String)bean.getParameterDataByName("application");
String command = (String)bean.getParameterDataByName("command");
String packagename = (String)bean.getParameterDataByName("package");
Document domXml = (Document)session.getAttribute("resultDom");
if(UtilString.isNotEmpty(application) && UtilString.isNotEmpty(command) && UtilString.isNotEmpty(packagename) && domXml != null) {
try
{
String msgText = null;
String filePathMain = AdpXmlApplication.getFormatedPathMain(context, domXml, application);
String szCommand = AdpXmlServer.getCommandByName(context, domXml, application, "WebApplication", command);
String szServerDeploy = AdpXmlServer.getPathByName(context, domXml, application, "WebApplication", "RootDeploy");
String szFilename = AdpXmlApplication.getPackageFileNameByName(context, domXml, application, "War", packagename);
String szWebApp = (new File(szServerDeploy, szFilename)).toURL().toString();
szCommand = (new StringBuilder(String.valueOf(szCommand))).append(URLEncoder.encode(szWebApp)).toString();
System.out.println(szCommand);
if(UtilString.isNotEmpty(szCommand))
msgText = sendHttpRequest(szCommand);
request.setAttribute("msgText", msgText);
}
catch(Exception ex)
{
Trace.ERROR(this, ex);
throw ex;
}
}
}
private String sendHttpRequest(String request)
throws IOException
{
StringBuffer response = new StringBuffer();
URL url = new URL(request);
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.connect();
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String line;
while((line = reader.readLine()) != null)
{
response.append(line);
response.append("\n");
}
int code = connection.getResponseCode();
connection.disconnect();
return (new StringBuilder(String.valueOf(code))).append("\n").append(response.toString()).toString();
}
}
|
[
"david.roca@free.fr"
] |
david.roca@free.fr
|
45b174dc16e0263086574436a315ea2b623e7159
|
a7b61632de3d80ca7c29a25d5eb0cbfa17fa01d9
|
/src/main/java/com/watson/mandlovutakeaways/restclient/pizzas/SteakPizzaController.java
|
366713059fc958f09343e93d6cc3052d213fa38e
|
[] |
no_license
|
Watson9023/Mandlovu_Takeaways_App
|
1e491699b96586efd7750b4e678c203bb9e22d90
|
5fab71f4cb107162abd00d1292967a71ea644813
|
refs/heads/master
| 2021-06-23T20:02:08.109146
| 2017-08-14T18:03:56
| 2017-08-14T18:03:56
| 100,290,257
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,386
|
java
|
package com.watson.mandlovutakeaways.restclient.pizzas;
import com.watson.mandlovutakeaways.domain.pizzas.SteakPizza;
import com.watson.mandlovutakeaways.services.pizzas.SteakPizzaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
/**
* Created by Long on 8/14/2017.
*/
@RestController
public class SteakPizzaController
{
@Autowired
private SteakPizzaService service;
/*
CREATE
*/
@RequestMapping(value = "/steakPizza/",
method = RequestMethod.POST,
consumes = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<SteakPizza> createColdDrink(@RequestBody SteakPizza chickenGatsby) {
service.create(chickenGatsby);
return new ResponseEntity<SteakPizza>(chickenGatsby, HttpStatus.CREATED);
}
/*
READ SINGLE Drink
* */
@RequestMapping(value = "/steakPizza/{id}",
method = RequestMethod.GET,
produces = MediaType.APPLICATION_JSON_VALUE
)
public ResponseEntity<SteakPizza> readColdDrinkByID(@PathVariable("id") long id) {
SteakPizza drink = service.readById(id);
if (drink == null) {
return new ResponseEntity<SteakPizza>(HttpStatus.INTERNAL_SERVER_ERROR);
}
return new ResponseEntity<SteakPizza>(drink, HttpStatus.OK);
}
/*
READ ALL
*/
@RequestMapping(value = "/steakPizzas/",
method = RequestMethod.GET,
produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<Iterable<SteakPizza>> findAllColdDrinks() {
Iterable<SteakPizza> coldBeverages = service.readAll();
if (coldBeverages == null) {
return new ResponseEntity<Iterable<SteakPizza>>(HttpStatus.INTERNAL_SERVER_ERROR);
}
return new ResponseEntity<Iterable<SteakPizza>>(coldBeverages, HttpStatus.OK);
}
/*
UPDATE
* */
@RequestMapping(value = "/steakPizza/{id}",
method = RequestMethod.PUT,
consumes = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<SteakPizza> updateColdDrink(@PathVariable("id") long id, @RequestBody SteakPizza chickenGatsby)
{
SteakPizza currentBurger = service.readById(id);
if(currentBurger == null)
{
return new ResponseEntity<SteakPizza>(HttpStatus.INTERNAL_SERVER_ERROR);
}
SteakPizza update = new SteakPizza.Builder()
.copy(currentBurger)
.name(chickenGatsby.getName())
.price(chickenGatsby.getPrice())
.build();
service.update(update);
return new ResponseEntity<SteakPizza>(update,HttpStatus.OK);
}
/*
DELETE Burger
* */
@RequestMapping(value = "/steakPizza/{id}",
method = RequestMethod.DELETE)
public ResponseEntity<SteakPizza> deleteColdDrink(@PathVariable("id") long id)
{
SteakPizza burger = service.readById(id);
if(burger == null)
{
return new ResponseEntity<SteakPizza>(HttpStatus.INTERNAL_SERVER_ERROR);
}
service.delete(burger);
return new ResponseEntity<SteakPizza>(HttpStatus.NO_CONTENT);
}
}
|
[
"matunhirewendy@gmail.com"
] |
matunhirewendy@gmail.com
|
e4a3a35cb5770aaf870692f046f7a70f3b7abf4a
|
4cfdf239af078f5dd8f8f3c224b74f842043626e
|
/Java/JavaChatB07/src/MultiClient5.java
|
547a0e10919b9a939c0b85678fc08601d826dbfa
|
[] |
no_license
|
WalkingWhale/Practices
|
f8a37d46a015fc959c9809da10b9fe09d4fa901e
|
eb4031950b109ec1189d4ad37dbe9768054cc2fb
|
refs/heads/master
| 2020-09-11T02:56:00.361074
| 2019-11-15T14:51:43
| 2019-11-15T14:51:43
| 221,917,953
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,160
|
java
|
/*์ฝ์ ๋ฉํฐ์ฑํ
ํด๋ผ์ด์ธํธ ํ๋ก๊ทธ๋จ ver3*/
/*์ฐ๋๋ ์ฌ์ฉ*/
import java.io.*;
import java.net.*;
import java.util.Scanner;
public class MultiClient5 {
public static void main(String[] args) throws UnknownHostException,
IOException
{
System.out.println("์ด๋ฆ์ ์
๋ ฅํด ์ฃผ์ธ์.");
Scanner sc = new Scanner(System.in);
String sName = sc.nextLine();
try{
//String ServerIP = "localhost";
String ServerIP = args[0];
Socket socket = new Socket(ServerIP, 9999);
System.out.println("์๋ฒ์ ์ฐ๊ฒฐ์ด ๋์์ต๋๋ค......");
// ์๋ฒ์์ ๋ณด๋ด๋ ๋ฉ์์ง๋ฅผ ์ฌ์ฉ์์ ์ฝ์์ ์ถ๋ ฅํ๋ ์ค๋ ๋
Thread receiver = new Receiver5(socket);
receiver.start();
// ์ฌ์ฉ์๋ก๋ถํฐ ์ป์ ๋ฌธ์์ด์ ์๋ฒ๋ก ์ ์กํด์ฃผ๋ ์ค๋ ๋
Thread sender = new Sender5(socket,sName);
sender.start();
} catch (Exception e){ // try ๋
System.out.println("์์ธ[MultiClient class] : " + e);
} // catch ๋
}// main ๋
}
|
[
"taejun4001@gmail.com"
] |
taejun4001@gmail.com
|
b88f12ac6b2f3cdf4f9a21ef16c19e5298db0aa9
|
43893769c7fb594f0e199f7fec482fced2e205a6
|
/src/main/java/com/aek56/microservice/auth/AuthApplication.java
|
62d72f89539b941c764a584613970369343fbd60
|
[] |
no_license
|
honghuixixi/zbzx-auth-service
|
4314158e24f820772db229ae0c0a14b1993b60af
|
5d35b4f475bc5cd9c445961f3b761858c13b42ce
|
refs/heads/master
| 2020-03-21T06:59:21.262644
| 2018-06-22T04:16:15
| 2018-06-22T04:16:15
| 138,253,863
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 769
|
java
|
/**u
*
*/
package com.aek56.microservice.auth;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@SpringBootApplication
@EnableEurekaClient
@EnableScheduling
@EnableFeignClients
@EnableSwagger2
@EnableAutoConfiguration
public class AuthApplication {
public static void main(String[] args) {
SpringApplication.run(AuthApplication.class, args);
}
}
|
[
"honghui@aek56.com"
] |
honghui@aek56.com
|
9bb50f804ef35a4cb6b1759c65ebb3f8328f0d84
|
eb2e3de02e7fc8846bc3c0ec70bf442a46ea0dbb
|
/testbili/app/src/main/java/bili/bl/bye.java
|
ccc380bb287525882a34b27b16b2f493a9e65c37
|
[] |
no_license
|
aheadlcx/myapp
|
54ded518fa703145bb7093f110b36e457ce77fa3
|
53b4090e961bc50877a9447e7da367527f6c1ff7
|
refs/heads/master
| 2020-03-17T18:22:37.666462
| 2018-06-12T12:19:27
| 2018-06-12T12:19:27
| 133,820,582
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,500
|
java
|
package bili.bl;
import android.support.annotation.NonNull;
import com.bilibili.bilibililive.followingcard.api.entity.OriginalUser;
import com.bilibili.bilibililive.followingcard.api.entity.cardBean.MusicCard;
/* compiled from: BL */
public class bye implements bws<MusicCard> {
public /* synthetic */ OriginalUser a(@NonNull Object obj) {
return f((MusicCard) obj);
}
public /* synthetic */ int b(@NonNull Object obj) {
return e((MusicCard) obj);
}
public /* synthetic */ String c(@NonNull Object obj) {
return d((MusicCard) obj);
}
public /* synthetic */ String d(@NonNull Object obj) {
return c((MusicCard) obj);
}
public /* synthetic */ String e(@NonNull Object obj) {
return b((MusicCard) obj);
}
public /* synthetic */ String f(@NonNull Object obj) {
return a((MusicCard) obj);
}
public String a(@NonNull MusicCard musicCard) {
return musicCard.intro;
}
public String b(@NonNull MusicCard musicCard) {
return musicCard.cover;
}
public String c(@NonNull MusicCard musicCard) {
return musicCard.title;
}
public String d(@NonNull MusicCard musicCard) {
return musicCard.upper;
}
public int e(@NonNull MusicCard musicCard) {
return musicCard.replyCnt;
}
public OriginalUser f(@NonNull MusicCard musicCard) {
return new OriginalUser(musicCard.upId, musicCard.upper, musicCard.upperAvatar);
}
}
|
[
"ahead2008@gmail.com"
] |
ahead2008@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.