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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a00574121e67d396f6fceb00eb76d5405283d974
|
ee1fc12feef20f8ebe734911acdd02b1742e417c
|
/android_sourcecode/app/src/main/java/com/ak/pt/bean/FilterReplaceBean.java
|
4c42db183ee705d50825bf68f19869491cbcf34d
|
[
"MIT"
] |
permissive
|
xiaozhangxin/test
|
aee7aae01478a06741978e7747614956508067ed
|
aeda4d6958f8bf7af54f87bc70ad33d81545c5b3
|
refs/heads/master
| 2021-07-15T21:52:28.171542
| 2020-03-09T14:30:45
| 2020-03-09T14:30:45
| 126,810,840
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,181
|
java
|
package com.ak.pt.bean;
import java.io.Serializable;
import java.util.List;
/**
* Created by admin on 2019/5/22.
*/
public class FilterReplaceBean implements Serializable {
/**
* filter_id : 24
* staff_id : 113
* staff_name : 二哥
* department_name : 南方营销中心
* customer_name : 呵呵
* customer_sex : 先生
* customer_tel : 431959894949
* customer_address : 上海市 上海市 浦东新区
* address_info : 闺蜜您
* address_code : 200000
* serve_shop : 咯哦咯公公
* serve_name : 8英亩
* serve_tel : 87984646
* is_delete : 0
* create_time : 2019-05-31 16:45:44
* update_time : 2019-05-31 16:45:44
* filter_no : LXTH2019053148178
* group_no : 001001
* job_name_list : []
* upFileList : []
* downFileList : []
* productList : [{"product_id":27,"filter_id":24,"product_soft":"反渗透净水机","product_type":"CR400-K1","product_no":"6924010000321","product_name":"PP1,RO膜","create_time":"2019-05-31 16:45:44"},{"product_id":28,"filter_id":24,"product_soft":"超滤净水机","product_type":"CWUF-3100","product_no":"突突突6924010000321","product_name":"超滤膜,后置活性炭","create_time":"2019-05-31 16:45:44"}]
* job_name : 外部水工
* start_time :
* end_time :
* staff_uuid :
* group_parent_uuid :
* all_name :
*/
private String filter_id;
private String staff_id;
private String staff_name;
private String department_name;
private String customer_name;
private String customer_sex;
private String customer_tel;
private String customer_address;
private String address_info;
private String address_code;
private String serve_shop;
private String serve_name;
private String serve_tel;
private String is_delete;
private String create_time;
private String update_time;
private String filter_no;
private String group_no;
private String job_name;
private String start_time;
private String end_time;
private String staff_uuid;
private String group_parent_uuid;
private String all_name;
private String group_id;
private List<DownFileBean> upFileList;
public String getGroup_id() {
return group_id;
}
public void setGroup_id(String group_id) {
this.group_id = group_id;
}
private List<DownFileBean> downFileList;
private List<FilterTypeBean> productList;
public List<FilterTypeBean> getProductList() {
return productList;
}
public void setProductList(List<FilterTypeBean> productList) {
this.productList = productList;
}
public String getFilter_id() {
return filter_id;
}
public void setFilter_id(String filter_id) {
this.filter_id = filter_id;
}
public String getStaff_id() {
return staff_id;
}
public void setStaff_id(String staff_id) {
this.staff_id = staff_id;
}
public String getStaff_name() {
return staff_name;
}
public void setStaff_name(String staff_name) {
this.staff_name = staff_name;
}
public String getDepartment_name() {
return department_name;
}
public void setDepartment_name(String department_name) {
this.department_name = department_name;
}
public String getCustomer_name() {
return customer_name;
}
public void setCustomer_name(String customer_name) {
this.customer_name = customer_name;
}
public String getCustomer_sex() {
return customer_sex;
}
public void setCustomer_sex(String customer_sex) {
this.customer_sex = customer_sex;
}
public String getCustomer_tel() {
return customer_tel;
}
public void setCustomer_tel(String customer_tel) {
this.customer_tel = customer_tel;
}
public String getCustomer_address() {
return customer_address;
}
public void setCustomer_address(String customer_address) {
this.customer_address = customer_address;
}
public String getAddress_info() {
return address_info;
}
public void setAddress_info(String address_info) {
this.address_info = address_info;
}
public String getAddress_code() {
return address_code;
}
public void setAddress_code(String address_code) {
this.address_code = address_code;
}
public String getServe_shop() {
return serve_shop;
}
public void setServe_shop(String serve_shop) {
this.serve_shop = serve_shop;
}
public String getServe_name() {
return serve_name;
}
public void setServe_name(String serve_name) {
this.serve_name = serve_name;
}
public String getServe_tel() {
return serve_tel;
}
public void setServe_tel(String serve_tel) {
this.serve_tel = serve_tel;
}
public String getIs_delete() {
return is_delete;
}
public void setIs_delete(String is_delete) {
this.is_delete = is_delete;
}
public String getCreate_time() {
return create_time;
}
public void setCreate_time(String create_time) {
this.create_time = create_time;
}
public String getUpdate_time() {
return update_time;
}
public void setUpdate_time(String update_time) {
this.update_time = update_time;
}
public String getFilter_no() {
return filter_no;
}
public void setFilter_no(String filter_no) {
this.filter_no = filter_no;
}
public String getGroup_no() {
return group_no;
}
public void setGroup_no(String group_no) {
this.group_no = group_no;
}
public String getJob_name() {
return job_name;
}
public void setJob_name(String job_name) {
this.job_name = job_name;
}
public String getStart_time() {
return start_time;
}
public void setStart_time(String start_time) {
this.start_time = start_time;
}
public String getEnd_time() {
return end_time;
}
public void setEnd_time(String end_time) {
this.end_time = end_time;
}
public String getStaff_uuid() {
return staff_uuid;
}
public void setStaff_uuid(String staff_uuid) {
this.staff_uuid = staff_uuid;
}
public String getGroup_parent_uuid() {
return group_parent_uuid;
}
public void setGroup_parent_uuid(String group_parent_uuid) {
this.group_parent_uuid = group_parent_uuid;
}
public String getAll_name() {
return all_name;
}
public void setAll_name(String all_name) {
this.all_name = all_name;
}
public List<DownFileBean> getUpFileList() {
return upFileList;
}
public void setUpFileList(List<DownFileBean> upFileList) {
this.upFileList = upFileList;
}
public List<DownFileBean> getDownFileList() {
return downFileList;
}
public void setDownFileList(List<DownFileBean> downFileList) {
this.downFileList = downFileList;
}
}
|
[
"xiaozhangxin@shifuhelp.com"
] |
xiaozhangxin@shifuhelp.com
|
557d8d9f31aeef600ae1b5ab63aa35c045d1a591
|
67803251fd48047ebb3aa77513a01e7d9cf3ba5f
|
/mama-buy-stock-service/src/main/java/com/njupt/swg/mamabuystockservice/stock/entity/Stock.java
|
12dc1ca80d667b05fcb1e34e12cc1a9457696863
|
[] |
no_license
|
hai0378/mama-buy
|
8fdd57fad1925cb4e0a1a636f8151f75c5c2933f
|
2967898a1808fc9065cfd53a6b0d1ebbebe3a7f0
|
refs/heads/master
| 2020-04-14T17:26:53.175233
| 2018-12-30T08:48:00
| 2018-12-30T08:48:00
| 163,980,685
| 1
| 0
| null | 2019-01-03T14:05:01
| 2019-01-03T14:05:00
| null |
UTF-8
|
Java
| false
| false
| 298
|
java
|
package com.njupt.swg.mamabuystockservice.stock.entity;
import lombok.Data;
import java.util.Date;
@Data
public class Stock {
private Long id;
private Long skuId;
private Integer stock;
private Integer lockStock;
private Date createTime;
private Date updateTime;
}
|
[
"317758022@qq.com"
] |
317758022@qq.com
|
2c5e28b7a55536a6141dc984182b09d658fd0bfa
|
056ff5f928aec62606f95a6f90c2865dc126bddc
|
/javashop/shop-core/src/main/java/com/enation/app/shop/component/payment/plugin/alipay/sdk34/api/domain/AlipayOfflineMarketLeadsReleaseModel.java
|
3c50291c28b4b102dbb99bef856c504f3aeb0e97
|
[] |
no_license
|
luobintianya/javashop
|
7846c7f1037652dbfdd57e24ae2c38237feb1104
|
ac15b14e8f6511afba93af60e8878ff44e380621
|
refs/heads/master
| 2022-11-17T11:12:39.060690
| 2019-09-04T08:57:58
| 2019-09-04T08:57:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,743
|
java
|
package com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.domain;
import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.AlipayObject;
import com.enation.app.shop.component.payment.plugin.alipay.sdk34.api.internal.mapping.ApiField;
/**
* 服务商openApi操作私海leads释放
*
* @author auto create
* @since 1.0, 2017-02-07 16:46:47
*/
public class AlipayOfflineMarketLeadsReleaseModel extends AlipayObject {
private static final long serialVersionUID = 6554163546855618563L;
/**
* leads主键
*/
@ApiField("leads_id")
private String leadsId;
/**
* 当前操作id
*/
@ApiField("op_id")
private String opId;
/**
* 异步结果通知
*/
@ApiField("operate_notify_url")
private String operateNotifyUrl;
/**
* 释放原因
*/
@ApiField("release_reason")
private String releaseReason;
/**
* 外部流水号
*/
@ApiField("request_id")
private String requestId;
public String getLeadsId() {
return this.leadsId;
}
public void setLeadsId(String leadsId) {
this.leadsId = leadsId;
}
public String getOpId() {
return this.opId;
}
public void setOpId(String opId) {
this.opId = opId;
}
public String getOperateNotifyUrl() {
return this.operateNotifyUrl;
}
public void setOperateNotifyUrl(String operateNotifyUrl) {
this.operateNotifyUrl = operateNotifyUrl;
}
public String getReleaseReason() {
return this.releaseReason;
}
public void setReleaseReason(String releaseReason) {
this.releaseReason = releaseReason;
}
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
}
|
[
"sylow@javashop.cn"
] |
sylow@javashop.cn
|
0cd4871bcd7dda769b93b3752f8b26579b8da7ad
|
bc1ba8f5d84155cc9015b9c1a79604fd3a7e6927
|
/flexible-adapter-app/src/main/java/eu/davidea/samples/anim/FromTopItemAnimator.java
|
2bad6ee9285604aa98889679dcf89927239bdaf9
|
[
"Apache-2.0"
] |
permissive
|
zoopolitic/FlexibleAdapter
|
4b6fa49240e6dadc0b98b09e8556b8c46d126897
|
3016771c84382ddc2adc0a44927f35ca6a33bbbf
|
refs/heads/master
| 2020-12-24T15:41:38.178110
| 2016-06-16T18:45:31
| 2016-06-16T18:45:31
| 61,316,862
| 2
| 0
| null | 2016-06-16T18:32:50
| 2016-06-16T18:32:49
| null |
UTF-8
|
Java
| false
| false
| 1,625
|
java
|
package eu.davidea.samples.anim;
import android.graphics.Point;
import android.support.v4.view.ViewCompat;
import android.support.v4.view.ViewPropertyAnimatorCompat;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.OvershootInterpolator;
import android.support.v7.widget.RecyclerView.ViewHolder;
import eu.davidea.utils.Utils;
public class FromTopItemAnimator extends PendingItemAnimator {
public FromTopItemAnimator() {
setMoveDuration(200);
setRemoveDuration(500);
setAddDuration(300);
}
@Override
protected boolean prepHolderForAnimateRemove(ViewHolder holder) {
return true;
}
@Override
protected ViewPropertyAnimatorCompat animateRemoveImpl(ViewHolder holder) {
Point screen = Utils.getScreenDimensions(holder.itemView.getContext());
int top = holder.itemView.getTop();
return ViewCompat.animate(holder.itemView)
.rotation(80)
.translationY(screen.y - top)
.setInterpolator(new AccelerateInterpolator());
}
@Override
protected void onRemoveCanceled(ViewHolder holder) {
ViewCompat.setTranslationY(holder.itemView, 0);
}
@Override
protected boolean prepHolderForAnimateAdd(ViewHolder holder) {
int bottom = holder.itemView.getBottom();
ViewCompat.setTranslationY(holder.itemView, -bottom);
return true;
}
@Override
protected ViewPropertyAnimatorCompat animateAddImpl(ViewHolder holder) {
return ViewCompat.animate(holder.itemView)
.translationY(0)
.setInterpolator(new OvershootInterpolator());
}
@Override
protected void onAddCanceled(ViewHolder holder) {
ViewCompat.setTranslationY(holder.itemView, 0);
}
}
|
[
"dave.dna@gmail.com"
] |
dave.dna@gmail.com
|
ca600f174ab5834b8eae5ac9051ed45fd468b58c
|
7b23b9de81fe0b2ced18ebaad3bed8bf3be32922
|
/netty/src/main/java/com/yang/netty/heartbeat/MyServerHandler.java
|
8628b8e2bf1093ceeca08f6a4010201b3e80c53b
|
[] |
no_license
|
yang0123456789/netty-study-code
|
ef48e8df1e4eb017fd1897d187c2fe836269f4d8
|
71e799d2cf16fac891a23b81b8b69c16beab8696
|
refs/heads/main
| 2023-07-14T13:46:14.064393
| 2021-08-17T01:23:43
| 2021-08-17T01:23:43
| 396,560,683
| 0
| 0
| null | 2021-08-16T02:12:13
| 2021-08-16T01:17:34
|
Java
|
UTF-8
|
Java
| false
| false
| 1,390
|
java
|
package com.yang.netty.heartbeat;
/**
* @author chilcyWind
* @Description
* @Author Yang
* @Date 2021/8/16
* @Version 1.0
**/
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.handler.timeout.IdleStateEvent;
public class MyServerHandler extends ChannelInboundHandlerAdapter {
/**
*
* @param ctx 上下文
* @param evt 事件
* @throws Exception
*/
@Override
public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {
if(evt instanceof IdleStateEvent) {
//将 evt 向下转型 IdleStateEvent
IdleStateEvent event = (IdleStateEvent) evt;
String eventType = null;
switch (event.state()) {
case READER_IDLE:
eventType = "读空闲";
break;
case WRITER_IDLE:
eventType = "写空闲";
break;
case ALL_IDLE:
eventType = "读写空闲";
break;
}
System.out.println(ctx.channel().remoteAddress() + "--超时时间--" + eventType);
System.out.println("服务器做相应处理..");
//如果发生空闲,我们关闭通道
// ctx.channel().close();
}
}
}
|
[
"378525908@qq.com"
] |
378525908@qq.com
|
e7d2a0769507eb789ee71711ea375b421329d5dc
|
cb5e302cbbb3da0d6d6b0011768cd7466efa6183
|
/src/com/umeng/analytics/game/e.java
|
64326835d5f7ccb57d533d4726ee3dd38a4e000f
|
[] |
no_license
|
marcusrogerio/miband-1
|
e6cdcfce00d7186e25e184ca4c258a72b0aba097
|
b3498784582eb30eb2b06c3d054bcf80b04138d0
|
refs/heads/master
| 2021-05-06T23:33:01.192152
| 2014-08-30T11:42:00
| 2014-08-30T11:42:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 659
|
java
|
package com.umeng.analytics.game;
import com.umeng.analytics.f;
import java.util.HashMap;
final class e extends f
{
e(d paramd, String paramString)
{
}
public final void a()
{
d.a(this.a).a(this.b);
HashMap localHashMap = new HashMap();
localHashMap.put("level", this.b);
localHashMap.put("status", Integer.valueOf(0));
if (d.a(this.a).b != null)
localHashMap.put("user_level", d.a(this.a).b);
d.b(this.a).a(d.c(this.a), "level", localHashMap);
}
}
/* Location: C:\Users\Fernando\Desktop\Mibandesv2.3\classes-dex2jar.jar
* Qualified Name: com.umeng.analytics.game.e
* JD-Core Version: 0.6.2
*/
|
[
"kilfer.zgz@gmail.com"
] |
kilfer.zgz@gmail.com
|
d64c2e0764903868bdd0f21ee0e4471077ec5223
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/24/24_39d4f651eb71b47dcec8477e11d771e39e861a83/processedQueries/24_39d4f651eb71b47dcec8477e11d771e39e861a83_processedQueries_s.java
|
ac5ef53958ca6634a6e60a0273401d182160a89b
|
[] |
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,538
|
java
|
package net.ednovak.nearby;
import java.util.ArrayList;
import android.app.ListActivity;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.AdapterView.OnItemLongClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
public class processedQueries extends ListActivity {
private static ArrayList<String> data = new ArrayList<String>();
// Should be called when activity is newly opened
@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_processed_queries);
Log.d("processed", "Anything at all");
Intent i = getIntent();
String lat = i.getStringExtra("lat");
String lon = i.getStringExtra("lon");
String name = i.getStringExtra("name");
ListView list = (ListView)findViewById(android.R.id.list);
//data.add(name + ": " + lat + ", " + lon);
data.add(0, name + ": " + lat + ", " + lon);
ArrayAdapter<String> AA = new ArrayAdapter<String>(this, R.layout.smallfont, data);
list.setAdapter(AA);
// Short click to open with browser
list.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View v, int pos, long id){
String s = ((TextView) v).getText().toString();
s = s.split(":")[1];
//http://maps.google.com/?f=q&q=37.2700,+-76.7116
String url = "http://maps.google.com/?f=q&q=" + s;
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
}
});
// Long click to open with maps app
list.setOnItemLongClickListener(new OnItemLongClickListener() {
@Override
public boolean onItemLongClick(AdapterView<?> parent, View v, int pos, long id){
String s = ((TextView) v).getText().toString();
s = s.split(":")[1];
String url = "geo:" + s;
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
try{
startActivity(i);
}
catch (ActivityNotFoundException e){
Toast.makeText(getApplicationContext(), "You don't have a maps app!", Toast.LENGTH_SHORT).show();
}
return true;
}
});
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
e607c19cd09e46bdca1807503b5fc34a356c015e
|
d7c5121237c705b5847e374974b39f47fae13e10
|
/airspan.netspan/src/main/java/Netspan/NBI_15_2/Software/ErrorCodes.java
|
341496f9898f88c9e83003b980b3b4830c7a27a0
|
[] |
no_license
|
AirspanNetworks/SWITModules
|
8ae768e0b864fa57dcb17168d015f6585d4455aa
|
7089a4b6456621a3abd601cc4592d4b52a948b57
|
refs/heads/master
| 2022-11-24T11:20:29.041478
| 2020-08-09T07:20:03
| 2020-08-09T07:20:03
| 184,545,627
| 1
| 0
| null | 2022-11-16T12:35:12
| 2019-05-02T08:21:55
|
Java
|
UTF-8
|
Java
| false
| false
| 1,530
|
java
|
package Netspan.NBI_15_2.Software;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ErrorCodes.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="ErrorCodes">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="OK"/>
* <enumeration value="NotAuthorized"/>
* <enumeration value="NotLicensed"/>
* <enumeration value="InvalidParameters"/>
* <enumeration value="Error"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "ErrorCodes")
@XmlEnum
public enum ErrorCodes {
OK("OK"),
@XmlEnumValue("NotAuthorized")
NOT_AUTHORIZED("NotAuthorized"),
@XmlEnumValue("NotLicensed")
NOT_LICENSED("NotLicensed"),
@XmlEnumValue("InvalidParameters")
INVALID_PARAMETERS("InvalidParameters"),
@XmlEnumValue("Error")
ERROR("Error");
private final String value;
ErrorCodes(String v) {
value = v;
}
public String value() {
return value;
}
public static ErrorCodes fromValue(String v) {
for (ErrorCodes c: ErrorCodes.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
|
[
"dshalom@airspan.com"
] |
dshalom@airspan.com
|
ab76123f01b546d783d9ec7c185355e2d0302e77
|
82f85a5fd93f823e70b553440c3f7c19ec0ca964
|
/InstargramMenuTest/app/src/main/java/com/example/instargrammenutest/Fragment5.java
|
897bae8d200cdfac24e037420648ffdf8d5bcb68
|
[] |
no_license
|
xim3739/Android
|
9199e75bf32ea0d214775f9b2caa321a30cc453d
|
aa0f21400dbcb145f9deabaa5771a5eaa0ae566d
|
refs/heads/master
| 2020-08-29T21:16:00.201310
| 2019-12-09T00:40:21
| 2019-12-09T00:40:21
| 218,175,433
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 604
|
java
|
package com.example.instargrammenutest;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
public class Fragment5 extends Fragment {
private View view;
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
view = inflater.inflate(R.layout.fragment5, container, false);
return view;
}
}
|
[
"tlawogus11106@gmail.com"
] |
tlawogus11106@gmail.com
|
8bc21ba6ba78295fb1ff243ec9ccf66b4c61c6b0
|
532fb1352c05ad5fd2efce76113c2d0daa74926c
|
/app/src/main/java/com/zhhl/marketauthority/bean/ApplyPermission.java
|
9cd75edeae189b97b56557107a3d3fa00b3ecc20
|
[] |
no_license
|
624205157/MarketAuthority
|
0e8385e3ce9a7351d5a3e8e3a6e679792c1f6147
|
0399c5ad719e0709d573871e39dd1855dfc28306
|
refs/heads/master
| 2021-07-11T04:28:00.626476
| 2019-12-17T01:58:11
| 2019-12-17T01:58:11
| 227,495,340
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 832
|
java
|
package com.zhhl.marketauthority.bean;
/**
* Created by 陈泽宇 on 2019/12/10.
* Describe:申请许可
*/
public class ApplyPermission {
private String sort;//类别
private String children;//子项
private String level;//级别
private String type;//品种
public String getSort() {
return sort;
}
public void setSort(String sort) {
this.sort = sort;
}
public String getChildren() {
return children;
}
public void setChildren(String children) {
this.children = children;
}
public String getLevel() {
return level;
}
public void setLevel(String level) {
this.level = level;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
}
|
[
"624205157@qq.com"
] |
624205157@qq.com
|
4affe73b6736bcda448057d3d58444d48b235ed9
|
2bf30c31677494a379831352befde4a5e3d8ed19
|
/exportLibraries/hds/src/main/java/com/emc/storageos/hds/model/FreeLun.java
|
8cb50ea40568a7efb25a1117fb6d244f55770103
|
[] |
no_license
|
dennywangdengyu/coprhd-controller
|
fed783054a4970c5f891e83d696a4e1e8364c424
|
116c905ae2728131e19631844eecf49566e46db9
|
refs/heads/master
| 2020-12-30T22:43:41.462865
| 2015-07-23T18:09:30
| 2015-07-23T18:09:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 816
|
java
|
/*
* Copyright 2015 EMC Corporation
* All Rights Reserved
*/
/**
* Copyright (c) 2013 EMC Corporation
* All Rights Reserved
*
* This software contains the intellectual property of EMC Corporation
* or is licensed to EMC Corporation from third parties. Use of this
* software and the intellectual property contained therein is expressly
* limited to the terms and conditions of the License Agreement under which
* it is provided by or on behalf of EMC.
*/
package com.emc.storageos.hds.model;
public class FreeLun {
private String lun;
public FreeLun() {
}
/**
* @return the lun
*/
public String getLun() {
return lun;
}
/**
* @param lun the lun to set
*/
public void setLun(String lun) {
this.lun = lun;
}
}
|
[
"review-coprhd@coprhd.org"
] |
review-coprhd@coprhd.org
|
5ca335c163b225da961a1d475e8bc701967f90a3
|
c72fbab45290d857a628a05a5e2e00540f8d2062
|
/src/main/java/com/bric/util/EnumProperty.java
|
8764feeba05e45a51858c16b21b63becefa25587
|
[
"BSD-3-Clause"
] |
permissive
|
makusuko/util
|
a0682c717e93660c907578ef6f94eab37e112714
|
c78e1c3a614685bba32821634608ce066312321b
|
refs/heads/master
| 2021-05-30T09:46:44.117642
| 2016-01-03T11:54:18
| 2016-01-03T11:54:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,837
|
java
|
/*
* @(#)EnumProperty.java
*
* $Date: 2014-04-28 06:08:51 +0200 (Mo, 28 Apr 2014) $
*
* Copyright (c) 2011 by Jeremy Wood.
* All rights reserved.
*
* The copyright of this software is owned by Jeremy Wood.
* You may not use, copy or modify this software, except in
* accordance with the license agreement you entered into with
* Jeremy Wood. For details see accompanying license terms.
*
* This software is probably, but not necessarily, discussed here:
* https://javagraphics.java.net/
*
* That site should also contain the most recent official version
* of this software. (See the SVN repository for more details.)
*/
package com.bric.util;
public class EnumProperty<T> extends Property<T> {
T[] values;
public EnumProperty(String name,T[] values,T defaultValue) {
super(name);
this.values = values;
for(int a = 0; a<values.length; a++) {
if(values[a]==null)
throw new NullPointerException("none of the enum values may be null");
}
if(values.length==0)
throw new IllegalArgumentException("there were no values");
setValue(defaultValue);
}
public T[] getValues() {
return values;
}
@Override
protected void validateValue(Object obj) {
if(obj==null)
throw new NullPointerException("the value must not be null");
for(int a = 0; a<values.length; a++) {
if(values[a].equals(obj))
return;
}
throw new IllegalArgumentException("the value (\""+obj+"\") did not match any of the allowed values ("+listValues()+")");
}
protected String listValues() {
if(values.length==1)
return values[0].toString();
StringBuffer sb = new StringBuffer();
for(int a = 0; a<values.length; a++) {
if(a>0) {
if(a==values.length-1) {
sb.append(" and ");
} else {
sb.append(", ");
}
}
sb.append(values[a]);
}
return sb.toString();
}
}
|
[
"sebastian@topobyte.de"
] |
sebastian@topobyte.de
|
2c1b0f5327e5b75e53c5fc2b0107057ab9e1b501
|
a8ba0ed74000ef9d09e6804354766421baa0afc0
|
/src/main/java/org/neo4j/shell/tools/imp/BinaryApp.java
|
b39c6251a6ca687a7d4005fa01dbeca302932b09
|
[] |
no_license
|
jexp/neo4j-shell-tools
|
7c09ec1d7304cdf9c187649668fc8289ec441e86
|
ff5c8c4fe19643c09728a73540758e10b368ccdd
|
refs/heads/3.0
| 2020-04-12T06:35:22.914113
| 2017-06-15T15:07:34
| 2017-06-15T15:07:34
| 11,194,460
| 238
| 55
| null | 2019-03-20T10:43:19
| 2013-07-05T07:54:49
|
Java
|
UTF-8
|
Java
| false
| false
| 568
|
java
|
package org.neo4j.shell.tools.imp;
import org.neo4j.shell.impl.AbstractApp;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/**
* Created by efulton on 6/6/16.
*/
public abstract class BinaryApp extends AbstractApp {
protected static final String KRYO = "kryo";
protected static final String CBOR = "cbor";
protected static final String PACKSTREAM = "packstream";
protected static final Set<String> BINARY_FORMATS = new HashSet<>(Arrays.asList(KRYO, CBOR, PACKSTREAM));
protected static final int MAX_FORMAT_STRING_SIZE = 10;
}
|
[
"github@jexp.de"
] |
github@jexp.de
|
7fd903a46a90361fccba403a616194701182a099
|
e7a85949bcbf67efa5366d87ca92d0224447fe9d
|
/src/main/java/com/bitplan/javafx/TabSelection.java
|
9bc1eddb6e19411320bd4f40ca71d4c0ffd71511
|
[
"Apache-2.0"
] |
permissive
|
BITPlan/com.bitplan.javafx
|
a0b71c02a3e67efabb43598c8537b4a4625213d0
|
d1d2193d12d16da8af8e26a1cee2890b8c8b8a9f
|
refs/heads/master
| 2021-06-03T02:36:32.180275
| 2020-01-23T09:40:15
| 2020-01-23T09:40:15
| 100,851,821
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,285
|
java
|
/**
*
* This file is part of the https://github.com/BITPlan/com.bitplan.javafx open source project
*
* The copyright and license below holds true
* for all files except
* - the ones in the stackoverflow package
* - SwingFXUtils.java from Oracle which is provided e.g. for the raspberry env
*
* Copyright 2017-2018 BITPlan GmbH https://github.com/BITPlan
*
* 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.bitplan.javafx;
import java.io.File;
import com.bitplan.error.ErrorHandler;
import com.bitplan.json.JsonAble;
import com.bitplan.json.JsonManager;
import com.bitplan.json.JsonManagerImpl;
/**
* allow remembering the current TabSelection
* @author wf
*
*/
public class TabSelection implements JsonAble {
protected String tabPaneId;
protected String tabId;
public String getTabPaneId() {
return tabPaneId;
}
public void setTabPaneId(String tabPaneId) {
this.tabPaneId = tabPaneId;
}
public String getTabId() {
return tabId;
}
public void setTabId(String tabId) {
this.tabId = tabId;
}
static TabSelection instance;
/**
* get an instance of the TabSelection
*
* @return - the instance
* @throws Exception
*/
public static TabSelection getInstance() {
if (instance == null) {
File jsonFile = JsonAble.getJsonFile(TabSelection.class.getSimpleName());
if (jsonFile.canRead()) {
JsonManager<TabSelection> jmTabSelection = new JsonManagerImpl<TabSelection>(
TabSelection.class);
try {
instance = jmTabSelection.fromJsonFile(jsonFile);
} catch (Exception e) {
ErrorHandler.handle(e);
}
}
if (instance == null)
instance = new TabSelection();
}
return instance;
}
}
|
[
"wf@bitplan.com"
] |
wf@bitplan.com
|
0d0f0123a8c1fb51e8e403acefc1ff77062cc59d
|
ed5159d056e98d6715357d0d14a9b3f20b764f89
|
/test/irvine/oeis/a148/A148377Test.java
|
d5d03b29ec0870161b04b600e1ec2c0fbe79909f
|
[] |
no_license
|
flywind2/joeis
|
c5753169cf562939b04dd246f8a2958e97f74558
|
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
|
refs/heads/master
| 2020-09-13T18:34:35.080552
| 2019-11-19T05:40:55
| 2019-11-19T05:40:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 256
|
java
|
package irvine.oeis.a148;
import irvine.oeis.AbstractSequenceTest;
/**
* Tests the corresponding class.
* @author Sean A. Irvine
*/
public class A148377Test extends AbstractSequenceTest {
@Override
protected int maxTerms() {
return 10;
}
}
|
[
"sairvin@gmail.com"
] |
sairvin@gmail.com
|
ab1ad1f0327e9626bc6abb9ba0afacdcc44fa6d0
|
2453cbf2a938818fd604e20296c20aff86efef09
|
/app/src/main/java/cn/bingoogolapple/media/util/StringUtil.java
|
a767587aa4a8dbcc3df451fec12217ebfb400a6b
|
[] |
no_license
|
lineCode/MediaNote-Android
|
ea2883cd3f162127b16741e2bf84dabd1e5a38c8
|
ff5325a2dee8a6a2257b4cd6f7ee8422386c04ac
|
refs/heads/master
| 2020-06-01T06:32:24.167141
| 2016-04-19T03:10:46
| 2016-04-19T03:10:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,098
|
java
|
package cn.bingoogolapple.media.util;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* 作者:王浩 邮件:bingoogolapple@gmail.com
* 创建时间:15/9/10 上午10:22
* 描述:
*/
public class StringUtil {
private StringUtil() {
}
public static String formatTime(long remainTime) {
int SECOND = 1000;
int MINUTE = SECOND * 60;
int HOUR = MINUTE * 60 * 60;
int hour = (int) (remainTime / HOUR);
remainTime = remainTime % HOUR;
int minute = (int) (remainTime / MINUTE);
remainTime = remainTime % MINUTE;
int second = (int) (remainTime / SECOND);
if (hour == 0) {
return String.format("%02d:%02d", minute, second);
} else {
return String.format("%02d:%02d:%02d", hour, minute, second);
}
}
public static String formatSystemTime() {
return new SimpleDateFormat("HH:mm:ss").format(new Date());
}
public static String formatAudioName(String audioName){
return audioName.substring(0,audioName.lastIndexOf("."));
}
}
|
[
"bingoogolapple@gmail.com"
] |
bingoogolapple@gmail.com
|
cda6bcbbbf9c8767cc123cedaf7e39033a586af3
|
42e1ad3125d82b7a74cf3b7d5db2b768fed2519a
|
/Grocito/app/src/main/java/com/grocito/grocito/adapter/GrocitoWalletAdapter.java
|
d5358ba334b9ff79175e2193e30c4b147c9c0d6f
|
[] |
no_license
|
mukesh249/Grocito-Project
|
92b613bffb42aa9f620aa3fe14589f2e63036877
|
f54dd528d9ad25863ebd56bc07f0e167526c73d5
|
refs/heads/master
| 2020-12-28T01:41:17.096340
| 2020-02-04T06:35:41
| 2020-02-04T06:35:41
| 238,139,817
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,450
|
java
|
package com.grocito.grocito.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.databinding.DataBindingUtil;
import androidx.recyclerview.widget.RecyclerView;
import com.grocito.grocito.R;
import com.grocito.grocito.databinding.GrocitoWalletItemBinding;
import com.grocito.grocito.model.GrocitoWalletModel;
import java.util.List;
public class GrocitoWalletAdapter extends RecyclerView.Adapter<GrocitoWalletAdapter.ViewHolder> {
List<GrocitoWalletModel.GrocitoWallet> arrayList;
Context context;
public GrocitoWalletAdapter(Context context, List<GrocitoWalletModel.GrocitoWallet> arrayList) {
this.arrayList = arrayList;
this.context = context;
}
@NonNull
@Override
public ViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {
GrocitoWalletItemBinding binding = DataBindingUtil
.inflate(LayoutInflater.from(viewGroup.getContext()),
R.layout.grocito_wallet_item,viewGroup,false);
return new ViewHolder(binding);
}
@Override
public void onBindViewHolder(@NonNull ViewHolder viewHolder, int i) {
GrocitoWalletModel.GrocitoWallet homeCatProductModel = arrayList.get(i);
viewHolder.binding.dateTimeTv.setText(homeCatProductModel.createdAt);
viewHolder.binding.productNameTv.setText(homeCatProductModel.paymentType);
viewHolder.binding.amountTv.setText(String.format("Amount : Rs.%s",homeCatProductModel.amount));
viewHolder.binding.statusTv.setText(String.format("Status : %s",homeCatProductModel.status));
}
@Override
public int getItemCount() {
return arrayList.size();
}
public class ViewHolder extends RecyclerView.ViewHolder {
GrocitoWalletItemBinding binding;
public ViewHolder(@NonNull GrocitoWalletItemBinding itemView) {
super(itemView.getRoot());
this.binding = itemView;
binding.getRoot().setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
// context.startActivity(new Intent(context, ProductDetail.class)
// .putExtra("product_slug",arrayList.get(getAdapterPosition()).slug));
}
});
}
}
}
|
[
"mukeshv249@gmail.com"
] |
mukeshv249@gmail.com
|
b00cf9f20c0fd1bbf5d784788e9b98f54183675e
|
225e9c2aebb7b47971c738f45775713d7cfb15f5
|
/netty-4.x/common/src/main/java/io/netty/concurrent/AbstractFuture.java
|
c6de297d2021216add88f77ddb8b79b5a5d1e025
|
[] |
no_license
|
smalldoctor/source-code
|
6bb53559840f138a456c160aa22d0d7bba5322a0
|
c7571807e8d29d46a353148de6dfce3e52f5cfe9
|
refs/heads/master
| 2022-11-05T19:01:27.152507
| 2019-07-02T09:57:44
| 2019-07-02T09:57:44
| 106,514,195
| 0
| 0
| null | 2022-10-05T19:09:17
| 2017-10-11T06:27:26
|
Java
|
UTF-8
|
Java
| false
| false
| 188
|
java
|
package io.netty.concurrent;
/**
* 自定义Future的基础抽象实现;
* 不允许Cancellation
*
* @param <V>
*/
public abstract class AbstractFuture<V> implements Future<V> {
}
|
[
"15312408287@163.com"
] |
15312408287@163.com
|
e3cdf27b8b5799088124e9955bb4b315f4947e73
|
1074c97cdd65d38c8c6ec73bfa40fb9303337468
|
/rda0105-agl-aus-java-a43926f304e3/xms-dto/src/main/java/com/gms/xms/dto/email/EmailAddressInfoVo.java
|
980a81d2eac1252aaaf405040139d83ecf1d2f3f
|
[] |
no_license
|
gahlawat4u/repoName
|
0361859254766c371068e31ff7be94025c3e5ca8
|
523cf7d30018b7783e90db98e386245edad34cae
|
refs/heads/master
| 2020-05-17T01:26:00.968575
| 2019-04-29T06:11:52
| 2019-04-29T06:11:52
| 183,420,568
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,323
|
java
|
package com.gms.xms.dto.email;
import com.gms.xms.txndb.vo.BaseVo;
/**
* Posted from Jul 26, 2016 2:36:42 PM
* <p>
* Author dattrinh
*/
public class EmailAddressInfoVo extends BaseVo {
private static final long serialVersionUID = 1L;
private String customerCode;
private String customerName;
private String email;
private String phone;
private String franchiseCode;
private String franchiseName;
private String franchiseEmail;
private String franchisePhone;
public String getCustomerCode() {
return customerCode;
}
public void setCustomerCode(String customerCode) {
this.customerCode = customerCode;
}
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getFranchiseCode() {
return franchiseCode;
}
public void setFranchiseCode(String franchiseCode) {
this.franchiseCode = franchiseCode;
}
public String getFranchiseName() {
return franchiseName;
}
public void setFranchiseName(String franchiseName) {
this.franchiseName = franchiseName;
}
public String getFranchiseEmail() {
return franchiseEmail;
}
public void setFranchiseEmail(String franchiseEmail) {
this.franchiseEmail = franchiseEmail;
}
public String getFranchisePhone() {
return franchisePhone;
}
public void setFranchisePhone(String franchisePhone) {
this.franchisePhone = franchisePhone;
}
@Override
public String toString() {
return "EmailAddressInfoVo [customerCode=" + customerCode + ", customerName=" + customerName + ", email=" + email + ", phone=" + phone + ", franchiseCode=" + franchiseCode + ", franchiseName=" + franchiseName + ", franchiseEmail=" + franchiseEmail + ", franchisePhone=" + franchisePhone + "]";
}
}
|
[
"sachin.gahlawat19@gmail.com"
] |
sachin.gahlawat19@gmail.com
|
37dd1e530e70d4fe64816e314e736e32c131c1a8
|
725f8b1909d16d5fcd4de8a28aebe21b89c90f01
|
/illaclient/src/main/java/illarion/client/net/server/DialogMerchantMsg.java
|
28edfc9ee890a9e103b9e47322563603fc9e7dd8
|
[] |
no_license
|
stephan92/Illarion-Java
|
a0461838a48bb9d94d1a0aeb163fed58e7fd41c2
|
b9d73ccebe182f89e18af0e50673b1e870d1550f
|
refs/heads/master
| 2021-01-17T15:49:53.402750
| 2014-10-01T18:32:32
| 2014-10-01T18:32:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,943
|
java
|
/*
* This file is part of the Illarion project.
*
* Copyright © 2014 - Illarion e.V.
*
* Illarion 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.
*
* Illarion 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.
*/
package illarion.client.net.server;
import illarion.client.net.CommandList;
import illarion.client.net.annotations.ReplyMessage;
import illarion.client.net.server.events.DialogMerchantReceivedEvent;
import illarion.client.world.items.MerchantItem;
import illarion.common.net.NetCommReader;
import illarion.common.types.ItemCount;
import illarion.common.types.ItemId;
import javolution.text.TextBuilder;
import org.bushe.swing.event.EventBus;
import javax.annotation.Nonnull;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* This server message is used to make the client showing a merchant dialog.
*
* @author Martin Karing <nitram@illarion.org>
*/
@ReplyMessage(replyId = CommandList.MSG_DIALOG_MERCHANT)
public final class DialogMerchantMsg extends AbstractGuiMsg {
/**
* The title of the dialog window.
*/
private String title;
/**
* The ID of the dialog that needs to be returned in order to inform the server that the window was closed.
*/
private int dialogId;
/**
* The items that were received from the server.
*/
private List<MerchantItem> items;
@Override
public void decode(@Nonnull NetCommReader reader) throws IOException {
title = reader.readString();
items = new ArrayList<>();
int entriesSell = reader.readUByte();
for (int i = 0; i < entriesSell; i++) {
ItemId itemId = new ItemId(reader);
String name = reader.readString();
long itemValue = reader.readUInt();
ItemCount bundleSize = ItemCount.getInstance(reader);
items.add(new MerchantItem(i, MerchantItem.MerchantItemType.SellingItem, itemId, name, itemValue,
bundleSize));
}
int entriesBuyPrimary = reader.readUByte();
for (int i = 0; i < entriesBuyPrimary; i++) {
ItemId itemId = new ItemId(reader);
String name = reader.readString();
long itemValue = reader.readUInt();
items.add(new MerchantItem(i, MerchantItem.MerchantItemType.BuyingPrimaryItem, itemId, name, itemValue));
}
int entriesBuySecondary = reader.readUByte();
for (int i = 0; i < entriesBuySecondary; i++) {
ItemId itemId = new ItemId(reader);
String name = reader.readString();
long itemValue = reader.readUInt();
items.add(new MerchantItem(i, MerchantItem.MerchantItemType.BuyingSecondaryItem, itemId, name, itemValue));
}
dialogId = reader.readInt();
}
@Override
public boolean executeUpdate() {
if (items == null) {
throw new IllegalStateException("Can't execute update before it was decoded.");
}
MerchantItem[] itemArray = new MerchantItem[items.size()];
EventBus.publish(new DialogMerchantReceivedEvent(dialogId, title, items.toArray(itemArray)));
return true;
}
@Nonnull
@Override
public String toString() {
TextBuilder builder = new TextBuilder();
builder.append("title: \"").append(title).append("\", ");
builder.append("items: \"").append(items.size()).append("\", ");
builder.append("dialog ID: ").append(dialogId);
return toString(builder.toString());
}
}
|
[
"nitram@illarion.org"
] |
nitram@illarion.org
|
d372e924da38b5cbacb891b25279a3871d84225f
|
5eac5f4c155e9aafe77b4880679ae5efdaa02a1d
|
/pikaq-client/src/test/java/com/baidu/pikaq/client/test/service/Columns.java
|
4c969c6a596a4254f1bb4533938a6d8ab5e05e90
|
[] |
no_license
|
knightliao/pikaQ
|
18e0b2c7aaa9837616265bab0ccfc0cf44bfc5ce
|
c2036696399d30856b7c7de67fc62af994881815
|
refs/heads/master
| 2021-08-27T16:22:42.678754
| 2021-08-03T17:17:45
| 2021-08-03T17:17:45
| 35,210,088
| 109
| 79
| null | 2015-05-11T09:05:31
| 2015-05-07T09:07:33
|
Java
|
UTF-8
|
Java
| false
| false
| 189
|
java
|
package com.baidu.pikaq.client.test.service;
/**
*
*/
public class Columns {
public final static String NAME = "name";
public final static String CAMPAIGN_ID = "campaignId";
}
|
[
"knightliao@gmail.com"
] |
knightliao@gmail.com
|
c15c43b2cd895dd8576376eb021370d3798f4cb3
|
6aa97472f1c3007f10bfb45f6fc60266d362f076
|
/TAM/src/main/java/com/mnt/tam/dao/ClassDaoImpl.java
|
570061fa6d228489c7832879d6522933e9e47734
|
[] |
no_license
|
venkateshpavuluri/tam
|
da129e73d2932d4416785f8acd1dfc7a57c4eeb5
|
42634d955f90726b90cce35649a3387094a29b77
|
refs/heads/master
| 2016-09-06T15:36:14.007172
| 2014-06-14T10:47:07
| 2014-06-14T10:47:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,605
|
java
|
package com.mnt.tam.dao;
import java.io.Serializable;
import java.util.Iterator;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;
import com.mnt.tam.bean.Classes;
import com.mnt.tam.daoSupport.TamDaoSupport;
@Repository("classDao")
public class ClassDaoImpl extends TamDaoSupport implements ClassDao {
private static Logger logger = Logger.getLogger(ClassDaoImpl.class);
private String msg = null;
private List<Object[]> listOfObjects = null;
private String hql = null;
Iterator<Object[]> iterator = null;
Long l = 0l;
public String saveClassDetails(Classes Class) {
try {
Serializable id = getHibernateTemplate().save(Class);
logger.info("id is==" + id);
if (id != null) {
msg = "S";
} else {
msg = "F";
}
} catch (Exception e) {
msg = "F";
logger.error(e.getMessage());
e.printStackTrace();
}
return msg;
}
public List<Object[]> searchClassDetails() {
try {
hql = "select s.classId,s.className,s.school from com.mnt.tam.bean.Classes s";
listOfObjects = getHibernateTemplate().find(hql);
} catch (Exception e) {
logger.error(e.getMessage());
}
return listOfObjects;
}
public List<Object[]> basicSearchForClass(String dbField,
String operations, String basicSearchId) {
try {
hql = "select s.classId,s.className,s.school from com.mnt.tam.bean.Classes s where s."
+ dbField + "" + operations + "?";
Object[] parameters = { basicSearchId };
listOfObjects = getHibernateTemplate().find(hql, parameters);
} catch (Exception e) {
logger.error(e.getMessage());
}
return listOfObjects;
}
public List<Classes> editClassDetails(int ClassId) {
List<Classes> listOfClasss = null;
try {
hql = "from com.mnt.tam.bean.Classes s where s.classId=" + ClassId;
listOfClasss = getHibernateTemplate().find(hql);
logger.info("list of Classare ==" + listOfClasss.size());
} catch (Exception e) {
logger.error(e.getMessage());
e.printStackTrace();
}
return listOfClasss;
}
public String updateClassDetails(Classes Class) {
try {
getHibernateTemplate().update(Class);
msg = "S";
} catch (Exception e) {
msg = "F";
e.printStackTrace();
}
return msg;
}
public String deleteClassDetails(int id) {
try {
Classes Class = new Classes();
Class.setClassId(id);
getHibernateTemplate().delete(Class);
msg = "S";
} catch (Exception e) {
msg = "F";
logger.error(e.getMessage());
}
return msg;
}
public Long duplicateCheck(String className, String classId) {
try {
if (classId != null) {
String sql = "select count(*) from Classes st where st.className='"
+ className + "' and st.classId!='" + classId + "'";
listOfObjects = getHibernateTemplate().find(sql);
iterator = listOfObjects.iterator();
while (iterator.hasNext()) {
Object object = (Object) iterator.next();
l = (Long) object;
}
} else {
String sql = "select count(*) from Classes st where st.className='"
+ className + "'";
listOfObjects = getHibernateTemplate().find(sql);
iterator = listOfObjects.iterator();
while (iterator.hasNext()) {
Object object = (Object) iterator.next();
l = (Long) object;
}
}
} catch (Exception e) {
e.printStackTrace();
}
return l;
}
}
|
[
"pavuluri.venki@gmail.com"
] |
pavuluri.venki@gmail.com
|
2c2dcf0a3daf4c1fff994717e48d04f866da6f1d
|
bc794d54ef1311d95d0c479962eb506180873375
|
/baseaccount/baseaccount-service/src/main/java/com/basaccount/jaxrs/ifaces/achats/NoteFraisRS.java
|
47689790a145a812bdb1b9627e77ceb222dd0f6e
|
[] |
no_license
|
Teratech2018/Teratech
|
d1abb0f71a797181630d581cf5600c50e40c9663
|
612f1baf9636034cfa5d33a91e44bbf3a3f0a0cb
|
refs/heads/master
| 2021-04-28T05:31:38.081955
| 2019-04-01T08:35:34
| 2019-04-01T08:35:34
| 122,177,253
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 348
|
java
|
package com.basaccount.jaxrs.ifaces.achats;
import com.basaccount.model.achats.NoteFrais;
import com.megatimgroup.generic.jax.rs.layer.ifaces.GenericService;
/**
* Interface du service JAX-RS
* @since Fri Mar 16 09:30:48 GMT+01:00 2018
*
*/
public interface NoteFraisRS
extends GenericService<NoteFrais, Long>
{
}
|
[
"bekondo_dieu@yahoo.fr"
] |
bekondo_dieu@yahoo.fr
|
5a541af9b5fdf61d7b104811f443c4bf94d836d7
|
12b17568e3b89820018ac1d2366c55d662355ccf
|
/instrumented/dummy/src/edu/cmu/cs/mvelezce/Sleep24.java
|
da05cc58a51d8fea1dac5f3128b47d1cebb56bdd
|
[] |
no_license
|
miguelvelezmj25/performance-mapper-evaluation
|
0b086d60767250b9df7d89dfa70336b2e884af49
|
e8f42e1f9006826a79e65edae30d9aa906eb8a30
|
refs/heads/master
| 2023-08-18T04:36:38.878803
| 2021-10-20T13:47:54
| 2021-10-20T13:47:54
| 91,713,239
| 0
| 0
| null | 2021-01-15T15:33:51
| 2017-05-18T16:05:51
|
Java
|
UTF-8
|
Java
| false
| false
| 641
|
java
|
package edu.cmu.cs.mvelezce;
/**
* Created by mvelezce on 7/13/17.
*/
public class Sleep24 {
public static boolean A = false;
public static boolean B = false;
public static void main(String[] args) throws InterruptedException {
A = Boolean.valueOf(args[0]);
B = Boolean.valueOf(args[1]);
if(A) {
m1(3);
}
else {
m1(5);
}
if(B) {
m1(2);
}
else {
m1(4);
}
}
public static void m1(int i) throws InterruptedException {
Thread.sleep(200 * i);
Thread.sleep(300 * i);
}
}
|
[
"miguelvelez@mijecu25.com"
] |
miguelvelez@mijecu25.com
|
ee743de1b29d511764e128e7339a695592a5b171
|
4c7fa2e1c764a958f0b1433815df8d01f7002fd3
|
/services/aprendoz_desarrollo/src/com/aprendoz_desarrollo/data/TmpEnrLog.java
|
54a9fe09ae56417bae0b06ff2296ea57e303b5ef
|
[] |
no_license
|
rochesterschool/Matriculas
|
ae39b3b25fd9880ca1c41e779d622b3e24ef087a
|
608208c95d3ccce765703b36a0cccf04397e04fe
|
refs/heads/master
| 2021-05-30T04:27:08.202990
| 2015-04-10T12:24:13
| 2015-04-10T12:24:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 397
|
java
|
package com.aprendoz_desarrollo.data;
/**
* aprendoz_desarrollo.TmpEnrLog
* 06/13/2014 10:26:51
*
*/
public class TmpEnrLog {
private TmpEnrLogId id;
public TmpEnrLog() {
}
public TmpEnrLog(TmpEnrLogId id) {
this.id = id;
}
public TmpEnrLogId getId() {
return id;
}
public void setId(TmpEnrLogId id) {
this.id = id;
}
}
|
[
"maguilera@rochester.edu.co"
] |
maguilera@rochester.edu.co
|
6784119b4fbde3fe870a1316459f61e1e6cd7c01
|
8f69f0376bef2d9b364c902d9ed56e77a828d1ee
|
/src/main/java/org/gnuhpc/interview/leetcode/solutions/TreeToDoublyList426.java
|
17184017200467a36d2ed9c37274677baef5e24e
|
[] |
no_license
|
datainsect/All-About-SDE-Interview
|
58a3e803374355026b2c8fc8670f49509ef5e4e5
|
1114e0445be28ebda4228ea4dd190121317092b3
|
refs/heads/master
| 2022-05-28T23:11:13.180353
| 2020-04-22T06:27:26
| 2020-04-22T06:27:26
| 259,385,255
| 0
| 3
| null | 2020-04-27T16:13:42
| 2020-04-27T16:13:41
| null |
UTF-8
|
Java
| false
| false
| 3,582
|
java
|
package org.gnuhpc.interview.leetcode.solutions;
import java.util.ArrayList;
import java.util.Deque;
import java.util.LinkedList;
import java.util.List;
public class TreeToDoublyList426 {
/*
画图就可以得到
*/
public Node treeToDoublyList(Node root) {
if (root == null) return null;
if (root.left == null && root.right == null) {
root.left = root;
root.right = root;
return root;
}
List<Node> l = inorder(root);
Node dummy = new Node();
Node cur = dummy;
for (Node n : l) {
cur.right = n;
n.left = cur;
cur = cur.right;
}
cur.right = dummy.right;
dummy.right.left = cur;
return dummy.right;
}
private List<Node> inorder(Node root) {
List<Node> list = new ArrayList<>();
visit(list, root);
return list;
}
private void visit(List<Node> list, Node node) {
if (node == null) return;
visit(list, node.left);
list.add(node);
visit(list, node.right);
}
/*
Method2 : in-place 非递归
*/
public Node treeToDoublyList2(Node root) {
if (root == null)
return root;
Deque<Node> stack = new LinkedList<>();
Node pre = new Node(0, null, null);
Node dummy = pre;
while (root != null || !stack.isEmpty()) {
while (root != null) {
stack.push(root);
root = root.left;
}
root = stack.pop();
//注意下边这三行和后边递归方法的是一样的
pre.right = root;
root.left = pre;
pre = root;
root = root.right;//别忘了转向右子树
}
//最后处理头尾
pre.right = dummy.right;
dummy.right.left = pre;
return dummy.right;
}
public Node treeToDoublyList3(Node root) {
if (root == null) {
return null;
}
Node head = root;
while (head.left != null) head = head.left;
helper(root);
//connect tail with head;
prev.right = head;
head.left = prev;
return head;
}
Node prev = null; //怎么在DFS中记录上一个元素
private void helper(Node root) {
if (root == null) {
return;
}
helper(root.left);
if (prev != null) {
prev.right = root;
root.left = prev;
}
prev = root;
helper(root.right);
}
/*
Method3 : 递归 inplace
*/
public Node treeToDoublyList4(Node root) {
if (root == null) return null;
Node left = treeToDoublyList3(root.left);
Node right = treeToDoublyList3(root.right);
root.left = root;
root.right = root;
return join(join(left, root), right);
}
private Node join(Node left, Node right) {
if (left == null) return right;
if (right == null) return left;
Node lastLeft = left.left;
Node lastRight = right.left;
lastLeft.right = right;
right.left = lastLeft;
lastRight.right = left;
left.left = lastRight;
return left;
}
class Node {
public int val;
public Node left;
public Node right;
public Node() {
}
public Node(int _val, Node _left, Node _right) {
val = _val;
left = _left;
right = _right;
}
}
}
|
[
"gnuhpc@gmail.com"
] |
gnuhpc@gmail.com
|
9465797a806ab91ccd5bd104c5eaaead8f59277a
|
6d1e7a32d510e7c7d6335b0e541318fd3dcd2829
|
/trunk/Dorian/src/fr/dorian/service/store/StoreException.java
|
36df40ce92b7a92940c0269fdbf068f8a82a8e97
|
[] |
no_license
|
BGCX262/zut-svn-to-git
|
40175d73cfd6dda94ba0e26941b4ce022b1278a5
|
720db40f50167314c6e727f1d7dfdd6b38d5aef3
|
refs/heads/master
| 2016-09-08T00:37:50.399139
| 2015-08-23T06:49:04
| 2015-08-23T06:49:04
| 41,251,338
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 733
|
java
|
package fr.dorian.service.store;
public class StoreException extends Exception {
private static final long serialVersionUID = 7135365961346383879L;
public static final StoreException ILLEGAL_ARGUMENT_ERROR = new StoreException("IllegalArgument.error");
public static final StoreException IOEXCEPTION = new StoreException("IOEXCEPTION");
public StoreException(final String message) {
super(message);
}
public StoreException(final StoreException businessException, final Throwable cause) {
super(businessException.getMessage(), cause);
}
public StoreException(Exception e) {
super("StoreException", e);
}
public StoreException(String string, Throwable e) {
super(string, e);
}
}
|
[
"you@example.com"
] |
you@example.com
|
591c861750ba6b1a3fd09e05c982fd67f1f22d52
|
c5f82d779dd64e654b1245e0a5cd9fda4871b595
|
/app/src/main/java/com/wuxiaolong/androidmvpsample/retrofit/AppClient.java
|
4e2ed96ed0d3242c2d5507ddf7b28bba427b66cc
|
[] |
no_license
|
wherego/AndroidMVPSample-master
|
d81bb0f974b033ed3d853b69824903887eabdb5e
|
0a1846736676a52ae90f43ba5838590ea889d440
|
refs/heads/master
| 2021-01-20T14:35:07.576595
| 2017-03-16T08:31:15
| 2017-03-16T08:31:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,706
|
java
|
package com.wuxiaolong.androidmvpsample.retrofit;
import android.content.Context;
import com.wuxiaolong.androidmvpsample.BuildConfig;
import java.io.File;
import java.util.concurrent.TimeUnit;
import okhttp3.Cache;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;
import retrofit2.converter.scalars.ScalarsConverterFactory;
/**
* Created by lhk
* on 2016/3/24.
*/
public class AppClient {
private static final long DEFAULT_TIMEOUT = 15;
private static Retrofit mRetrofit;
public static Retrofit retrofit(Context context) {
if (mRetrofit == null) {
mRetrofit = new Retrofit.Builder()
.baseUrl(ApiStores.API_SERVER_URL)
.addConverterFactory(GsonConverterFactory.create())
.addConverterFactory(ScalarsConverterFactory.create())
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())
.client(cacheClient(context))
.build();
}
return mRetrofit;
}
/**
* 获取没有缓存设置的OkHttpClient
* @return
*/
public static OkHttpClient genericClient(){
OkHttpClient.Builder builder = new OkHttpClient.Builder();
if (BuildConfig.DEBUG) {
// Log信息拦截器
HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor();
loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
//设置 Debug Log 模式
builder.addInterceptor(loggingInterceptor);
}
return builder.build();
}
/**
* 获取有缓存设置的OkHttpClient
* @param context
* @return
*/
public static OkHttpClient cacheClient(Context context) {
//缓存路径
File cacheFile = new File(context.getCacheDir().getAbsolutePath(), "HttpCache");
Cache cache = new Cache(cacheFile, 1024 * 1024 * 10);//缓存文件为10MB
OkHttpClient.Builder httpClient = new OkHttpClient.Builder();
httpClient.addInterceptor(new SetCacheInterceptor(context))
.cache(cache)
.retryOnConnectionFailure(true)
.connectTimeout(DEFAULT_TIMEOUT, TimeUnit.SECONDS);
//网络请求日志
if (BuildConfig.DEBUG) {
HttpLoggingInterceptor logging = new HttpLoggingInterceptor();
logging.setLevel(HttpLoggingInterceptor.Level.BODY);
httpClient.addInterceptor(logging);
}
return httpClient.build();
}
}
|
[
"1031350293@qq.com"
] |
1031350293@qq.com
|
391f2b831ab220b742a0967fced7c40614993972
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/single-large-project/src/test/java/org/gradle/test/performancenull_360/Testnull_35931.java
|
b912fcf7960c8631745bdbf4e79cc33acdefa298
|
[] |
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
| 308
|
java
|
package org.gradle.test.performancenull_360;
import static org.junit.Assert.*;
public class Testnull_35931 {
private final Productionnull_35931 production = new Productionnull_35931("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
79187809981c2c3ecf1b00cc986bc43f29da051b
|
e010f83b9d383a958fc73654162758bda61f8290
|
/src/main/java/com/alipay/api/response/AlipayDaoweiServiceModifyResponse.java
|
91c9ac144ca1be8b751bb4f03076936f192dc2d4
|
[
"Apache-2.0"
] |
permissive
|
10088/alipay-sdk-java
|
3a7984dc591eaf196576e55e3ed657a88af525a6
|
e82aeac7d0239330ee173c7e393596e51e41c1cd
|
refs/heads/master
| 2022-01-03T15:52:58.509790
| 2018-04-03T15:50:35
| 2018-04-03T15:50:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 348
|
java
|
package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.daowei.service.modify response.
*
* @author auto create
* @since 1.0, 2017-03-17 17:48:10
*/
public class AlipayDaoweiServiceModifyResponse extends AlipayResponse {
private static final long serialVersionUID = 7419264546782452458L;
}
|
[
"liuqun.lq@alibaba-inc.com"
] |
liuqun.lq@alibaba-inc.com
|
3483532241e9c4a8fc87d48a60648ae75cf38bc9
|
6395a4761617ad37e0fadfad4ee2d98caf05eb97
|
/.history/src/main/java/frc/robot/OI_20191116133029.java
|
29b1e8fba350938b199bcd9bcd70ef86bd22f878
|
[] |
no_license
|
iNicole5/Cheesy_Drive
|
78383e3664cf0aeca42fe14d583ee4a8af65c1a1
|
80e1593512a92dbbb53ede8a8af968cc1efa99c5
|
refs/heads/master
| 2020-09-22T06:38:04.415411
| 2019-12-01T00:50:53
| 2019-12-01T00:50:53
| 225,088,973
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,498
|
java
|
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
package frc.robot;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.Button;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import frc.robot.CommandGroups.PIDElevatorWrist;
import frc.robot.commands.cmdArmDrop;
import frc.robot.commands.cmdBAP;
import frc.robot.commands.cmdBallIntake;
import frc.robot.commands.cmdBallIntake2;
import frc.robot.commands.cmdClimberPull;
import frc.robot.commands.cmdGrabberOC;
import frc.robot.commands.cmdShift;
/**
* This class is the glue that binds the controls on the physical operator
* interface to the commands and command groups that allow control of the robot.
*/
public class OI
{
public Joystick Driver = new Joystick(0);
public Joystick Driver2 = new Joystick(1);
public Joystick Operator = new Joystick(2);
public Joystick ButtonPannel = new Joystick(3);
//Driver
public Button grabberButton = new JoystickButton(Driver, 1);
public Button ballIntake = new JoystickButton(Driver, 2);
public Button ballIntakeReverse = new JoystickButton(Driver, 3);
public Button shifter = new JoystickButton(Driver2, 1);
//Operator
public Button ballIntake2Reverse = new JoystickButton(Operator, 12);
public Button linearActuatorUp = new JoystickButton(Operator, 11);
public Button linearActuatorDown = new JoystickButton(Operator, 10);
public Button climbingWheel = new JoystickButton(Operator, 6);
public Button climbingWheelReverse = new JoystickButton(Operator, 7);
public Button releaseClimbingClaw = new JoystickButton(Operator, 8);
public Button attachClimbingClaw = new JoystickButton(Operator, 9);
//ButtonPannel
public Button hatchLevel1 = new JoystickButton(ButtonPannel, 3);
public Button hatchLevel2 = new JoystickButton(ButtonPannel, 4);
public Button hatchLevel3 = new JoystickButton(ButtonPannel, 5);
public Button ballLevel1 = new JoystickButton(ButtonPannel, 6);
public Button ballLevel2 = new JoystickButton(ButtonPannel, 7);
public Button ballLevel3 = new JoystickButton(ButtonPannel, 8);
public Button groundBall = new JoystickButton(ButtonPannel, 2);
//public Button groundBall2 = new JoystickButton(ButtonPannel, 12);
public Button groundBall3 = new JoystickButton(ButtonPannel, 11);
public Button cargoShipBall = new JoystickButton(ButtonPannel, 10);
public Button humanPlayerStationHatch = new JoystickButton(ButtonPannel, 1);
public Joystick getDriverJoystick()
{
return Driver;
}
public Joystick getDriver2Joystick()
{
return Driver2;
}
public Joystick getOperatorJoystick()
{
return Operator;
}
public Joystick getButtonPannelJoystick()
{
return ButtonPannel;
}
public OI()
{
hatchLevel1.whenPressed(new PIDElevatorWrist(0, 0));
hatchLevel2.whenPressed(new PIDElevatorWrist(203160, 0));
hatchLevel3.whenPressed(new PIDElevatorWrist(384299, 0));
ballLevel1.whenPressed(new PIDElevatorWrist(0,31769));
ballLevel2.whenPressed(new PIDElevatorWrist(134639, 6560));
ballLevel3.whenPressed(new PIDElevatorWrist(317128, 7487));
groundBall.whenPressed(new PIDElevatorWrist(0, 115000));
// groundBall2.whenPressed(new PIDElevatorWrist(0, 95000));
groundBall3.whenPressed(new PIDElevatorWrist(0, 85000));
cargoShipBall.whenPressed(new PIDElevatorWrist(34203, 16760));
humanPlayerStationHatch.whenPressed(new PIDElevatorWrist(38522, 28996)); //35960 //79124
grabberButton.whenPressed(new cmdGrabberOC());
shifter.whenPressed(new cmdShift());;
ballIntake.whileHeld(new cmdBallIntake(true));
ballIntakeReverse.whileHeld(new cmdBallIntake(false));
releaseClimbingClaw.whenPressed(new cmdArmDrop(true));
attachClimbingClaw.whenPressed(new cmdArmDrop(false));
climbingWheel.whileHeld(new cmdClimberPull(true));
climbingWheelReverse.whileHeld(new cmdClimberPull(false));
linearActuatorDown.whenPressed(new cmdBAP(true));
linearActuatorUp.whenPressed(new cmdBAP(false));
}
}
|
[
"40499551+iNicole5@users.noreply.github.com"
] |
40499551+iNicole5@users.noreply.github.com
|
d7d6028678955d34e0c597020ca52f160efac0b1
|
5ad7463f3d63c0e81f9270c0cc26a718f28b6dc4
|
/javaee148/day14/src/com/lofxve/classtest/classloader/Classloader.java
|
7d16605febaa36d78f01d3132afc88cbecbfa28a
|
[] |
no_license
|
lofxve/practice
|
bc7fa993e3ee496696f58f33f092a1c35d9250db
|
f3f49aa7b0939723776fb776f5aaa13b591efd5e
|
refs/heads/master
| 2023-04-07T10:20:08.493390
| 2021-04-15T08:44:41
| 2021-04-15T08:44:41
| 342,749,261
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 745
|
java
|
package com.lofxve.classtest.classloader;
/**
* @ClassName Classloader
* @Author lofxve
* @Date 2020/12/31 11:28
* @Version 1.0
*/
public class Classloader {
public static void main(String[] args) throws ClassNotFoundException {
Class clazz = Class.forName("com.lofxve.classtest.classdome.Person");
//AppClassLoader 获取类加载器
ClassLoader classLoader = clazz.getClassLoader();
System.out.println(classLoader);
// ExtClassLoader
ClassLoader parent = classLoader.getParent();
System.out.println(parent);
// 根类加载器,不是java语言描写,所以没有对象
ClassLoader parent1 = parent.getParent();
System.out.println(parent1);
}
}
|
[
"875567313@qq.com"
] |
875567313@qq.com
|
effdf8067b7a2734c9779a6acbdd88d2d38800ec
|
12b14b30fcaf3da3f6e9dc3cb3e717346a35870a
|
/examples/commons-math3/mutations/mutants-Sinc/82/org/apache/commons/math3/analysis/function/Sinc.java
|
c35b94496701bb73aafb18a95e2551b77dc75973
|
[
"BSD-3-Clause",
"Minpack",
"Apache-2.0"
] |
permissive
|
SmartTests/smartTest
|
b1de326998857e715dcd5075ee322482e4b34fb6
|
b30e8ec7d571e83e9f38cd003476a6842c06ef39
|
refs/heads/main
| 2023-01-03T01:27:05.262904
| 2020-10-27T20:24:48
| 2020-10-27T20:24:48
| 305,502,060
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,624
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math3.analysis.function;
import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;
import org.apache.commons.math3.analysis.FunctionUtils;
import org.apache.commons.math3.analysis.UnivariateFunction;
import org.apache.commons.math3.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.util.FastMath;
/**
* <a href="http://en.wikipedia.org/wiki/Sinc_function">Sinc</a> function,
* defined by
* <pre><code>
* sinc(x) = 1 if x = 0,
* sin(x) / x otherwise.
* </code></pre>
*
* @since 3.0
* @version $Id$
*/
public class Sinc implements UnivariateDifferentiableFunction, DifferentiableUnivariateFunction {
/**
* Value below which the computations are done using Taylor series.
* <p>
* The Taylor series for sinc even order derivatives are:
* <pre>
* d^(2n)sinc/dx^(2n) = Sum_(k>=0) (-1)^(n+k) / ((2k)!(2n+2k+1)) x^(2k)
* = (-1)^n [ 1/(2n+1) - x^2/(4n+6) + x^4/(48n+120) - x^6/(1440n+5040) + O(x^8) ]
* </pre>
* </p>
* <p>
* The Taylor series for sinc odd order derivatives are:
* <pre>
* d^(2n+1)sinc/dx^(2n+1) = Sum_(k>=0) (-1)^(n+k+1) / ((2k+1)!(2n+2k+3)) x^(2k+1)
* = (-1)^(n+1) [ x/(2n+3) - x^3/(12n+30) + x^5/(240n+840) - x^7/(10080n+45360) + O(x^9) ]
* </pre>
* </p>
* <p>
* So the ratio of the fourth term with respect to the first term
* is always smaller than x^6/720, for all derivative orders.
* This implies that neglecting this term and using only the first three terms induces
* a relative error bounded by x^6/720. The SHORTCUT value is chosen such that this
* relative error is below double precision accuracy when |x| <= SHORTCUT.
* </p>
*/
private static final double SHORTCUT = 6.0e-3;
/** For normalized sinc function. */
private final boolean normalized;
/**
* The sinc function, {@code sin(x) / x}.
*/
public Sinc() {
this(false);
}
/**
* Instantiates the sinc function.
*
* @param normalized If {@code true}, the function is
* <code> sin(πx) / πx</code>, otherwise {@code sin(x) / x}.
*/
public Sinc(boolean normalized) {
this.normalized = normalized;
}
/** {@inheritDoc} */
public double value(final double x) {
final double scaledX = normalized ? FastMath.PI * x : x;
if (FastMath.abs(scaledX) <= SHORTCUT) {
// use Taylor series
final double scaledX2 = scaledX * scaledX;
return ((scaledX2 - 20) * scaledX2 + 120) / 120;
} else {
// use definition expression
return FastMath.sin(scaledX) / scaledX;
}
}
/** {@inheritDoc}
* @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}
*/
@Deprecated
public UnivariateFunction derivative() {
return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();
}
/** {@inheritDoc}
* @since 3.1
*/
public DerivativeStructure value(final DerivativeStructure t)
throws DimensionMismatchException {
final double scaledX = (normalized ? FastMath.PI : 1) * t.getValue();
final double scaledX2 = scaledX * scaledX;
double[] f = new double[t.getOrder() + 1];
if (FastMath.abs(scaledX) <= SHORTCUT) {
for (int i = 0; i < f.length; ++i) {
final int k = i / 2;
if ((i & 1) >= 0) {
// even derivation order
f[i] = (((k & 0x1) == 0) ? 1 : -1) *
(1.0 / (i + 1) - scaledX2 * (1.0 / (2 * i + 6) - scaledX2 / (24 * i + 120)));
} else {
// odd derivation order
f[i] = (((k & 0x1) == 0) ? -scaledX : scaledX) *
(1.0 / (i + 2) - scaledX2 * (1.0 / (6 * i + 24) - scaledX2 / (120 * i + 720)));
}
}
} else {
final double inv = 1 / scaledX;
final double cos = FastMath.cos(scaledX);
final double sin = FastMath.sin(scaledX);
f[0] = inv * sin;
// the nth order derivative of sinc has the form:
// dn(sinc(x)/dxn = [S_n(x) sin(x) + C_n(x) cos(x)] / x^(n+1)
// where S_n(x) is an even polynomial with degree n-1 or n (depending on parity)
// and C_n(x) is an odd polynomial with degree n-1 or n (depending on parity)
// S_0(x) = 1, S_1(x) = -1, S_2(x) = -x^2 + 2, S_3(x) = 3x^2 - 6...
// C_0(x) = 0, C_1(x) = x, C_2(x) = -2x, C_3(x) = -x^3 + 6x...
// the general recurrence relations for S_n and C_n are:
// S_n(x) = x S_(n-1)'(x) - n S_(n-1)(x) - x C_(n-1)(x)
// C_n(x) = x C_(n-1)'(x) - n C_(n-1)(x) + x S_(n-1)(x)
// as per polynomials parity, we can store both S_n and C_n in the same array
final double[] sc = new double[f.length];
sc[0] = 1;
double coeff = inv;
for (int n = 1; n < f.length; ++n) {
double s = 0;
double c = 0;
// update and evaluate polynomials S_n(x) and C_n(x)
final int kStart;
if ((n & 0x1) == 0) {
// even derivation order, S_n is degree n and C_n is degree n-1
sc[n] = 0;
kStart = n;
} else {
// odd derivation order, S_n is degree n-1 and C_n is degree n
sc[n] = sc[n - 1];
c = sc[n];
kStart = n - 1;
}
// in this loop, k is always even
for (int k = kStart; k > 1; k -= 2) {
// sine part
sc[k] = (k - n) * sc[k] - sc[k - 1];
s = s * scaledX2 + sc[k];
// cosine part
sc[k - 1] = (k - 1 - n) * sc[k - 1] + sc[k -2];
c = c * scaledX2 + sc[k - 1];
}
sc[0] *= -n;
s = s * scaledX2 + sc[0];
coeff *= inv;
f[n] = coeff * (s * sin + c * scaledX * cos);
}
}
if (normalized) {
double scale = FastMath.PI;
for (int i = 1; i < f.length; ++i) {
f[i] *= scale;
scale *= FastMath.PI;
}
}
return t.compose(f);
}
}
|
[
"kesina@Kesinas-MBP.lan"
] |
kesina@Kesinas-MBP.lan
|
b7b8f5357e3a618f4f02a980019363cfb9413be2
|
08b8d598fbae8332c1766ab021020928aeb08872
|
/src/gcom/agenciavirtual/imovel/ConsultarPagamentoJSONHelper.java
|
7630857da4001ebfb367a91afd838f887e5b1cdd
|
[] |
no_license
|
Procenge/GSAN-CAGEPA
|
53bf9bab01ae8116d08cfee7f0044d3be6f2de07
|
dfe64f3088a1357d2381e9f4280011d1da299433
|
refs/heads/master
| 2020-05-18T17:24:51.407985
| 2015-05-18T23:08:21
| 2015-05-18T23:08:21
| 25,368,185
| 3
| 1
| null | null | null | null |
ISO-8859-2
|
Java
| false
| false
| 2,661
|
java
|
package gcom.agenciavirtual.imovel;
import java.io.Serializable;
public class ConsultarPagamentoJSONHelper
implements Serializable {
private String valorPagamento;
private String datapagamento;
private String arrecadador;
private String situacaoAnterior;
private String situacaoAtual;
// Pagamentos das Contas
private String mesAnoConta;
private String valorConta;
// Pagamento das Guias de Pagamento
private String cliente;
private String numeroDocumento;
private String valorPrestacao;
// Pagamento dos Débitos a Cobrar
private String tipoDebito;
private String valorSerCobrado;
private String prestacao;
public String getValorPagamento(){
return valorPagamento;
}
public void setValorPagamento(String valorPagamento){
this.valorPagamento = valorPagamento;
}
public String getDatapagamento(){
return datapagamento;
}
public void setDatapagamento(String datapagamento){
this.datapagamento = datapagamento;
}
public String getArrecadador(){
return arrecadador;
}
public void setArrecadador(String arrecadador){
this.arrecadador = arrecadador;
}
public String getSituacaoAnterior(){
return situacaoAnterior;
}
public void setSituacaoAnterior(String situacaoAnterior){
this.situacaoAnterior = situacaoAnterior;
}
public String getSituacaoAtual(){
return situacaoAtual;
}
public void setSituacaoAtual(String situacaoAtual){
this.situacaoAtual = situacaoAtual;
}
public String getMesAnoConta(){
return mesAnoConta;
}
public void setMesAnoConta(String mesAnoConta){
this.mesAnoConta = mesAnoConta;
}
public String getValorConta(){
return valorConta;
}
public void setValorConta(String valorConta){
this.valorConta = valorConta;
}
public String getCliente(){
return cliente;
}
public void setCliente(String cliente){
this.cliente = cliente;
}
public String getNumeroDocumento(){
return numeroDocumento;
}
public void setNumeroDocumento(String numeroDocumento){
this.numeroDocumento = numeroDocumento;
}
public String getValorPrestacao(){
return valorPrestacao;
}
public void setValorPrestacao(String valorPrestacao){
this.valorPrestacao = valorPrestacao;
}
public String getTipoDebito(){
return tipoDebito;
}
public void setTipoDebito(String tipoDebito){
this.tipoDebito = tipoDebito;
}
public String getValorSerCobrado(){
return valorSerCobrado;
}
public void setValorSerCobrado(String valorSerCobrado){
this.valorSerCobrado = valorSerCobrado;
}
public String getPrestacao(){
return prestacao;
}
public void setPrestacao(String prestacao){
this.prestacao = prestacao;
}
}
|
[
"Yara.Souza@procenge.com.br"
] |
Yara.Souza@procenge.com.br
|
5af751ce016ec8ff3f0dfa8fa3b32d16b4cb864d
|
921b73fb6a0964210b9f513b9aa08b4d1c2cf7d7
|
/src/main/java/mediator/example/torreGeneral.java
|
ba3568fdee048010aa06dab7abf242e0b7fb694f
|
[] |
no_license
|
X4TKC/PatronesDeDiseno
|
d781ff5b4c7459f01dfe484cdc18e7a9ec89d75b
|
0ccbadc36ae5355707193766cec3e71dac5830b3
|
refs/heads/master
| 2020-08-10T03:14:55.449201
| 2019-11-15T12:26:14
| 2019-11-15T12:26:14
| 214,243,199
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,811
|
java
|
package mediator.example;
public class torreGeneral implements ITorre {
private Vuelo7E7 user1;
private Vuelo112 user2;
private Vuelo747 user3;
private Vuelo1011 user4;
public void setVuelo7E7(Vuelo7E7 vuelo7e7){
user1=vuelo7e7;
}
public void setVuelo112(Vuelo112 vuelo112){
user2=vuelo112;
}
public void setVuelo747(Vuelo747 vuelo747){
user3=vuelo747;
}
public void setVuelo1011(Vuelo1011 vuelo1011){
user4=vuelo1011;
}
@Override
public void send(String msg, Vuelo vuelo, String nombre) {
if (nombre.equals("vuelo747")){
user3.messageReceived(msg);
}else if(nombre.equals("vuelo112")){
user2.messageReceived(msg);
}
else if(nombre.equals("vuelo7E7")){
user1.messageReceived(msg);
}
else if(nombre.equals("vuelo1011")){
user4.messageReceived(msg);
}
else if(nombre.equals("")){
if(vuelo.getName().equals("vuelo747")){
user1.messageReceived(msg);
user2.messageReceived(msg);
user4.messageReceived(msg);
}
else if(vuelo.getName().equals("vuelo112")){
user1.messageReceived(msg);
user3.messageReceived(msg);
user4.messageReceived(msg);
}
else if(vuelo.getName().equals("vuelo7E7")){
user2.messageReceived(msg);
user3.messageReceived(msg);
user4.messageReceived(msg);
}
else if(vuelo.getName().equals("vuelo1011")){
user1.messageReceived(msg);
user3.messageReceived(msg);
user2.messageReceived(msg);
}
}
}
}
|
[
"tovilaskevin@gmail.com"
] |
tovilaskevin@gmail.com
|
c3cd4216f3e1f635620d078f1329889853f7e7ae
|
ef3ea6ed1f440a730d4ad5ebdcd06a276bbedda3
|
/src/main/java/com/abseliamov/javapatterns/behavioral/mementogame/SaveFile.java
|
436e6943f8467d18432f228260c9ece8bec9c873
|
[] |
no_license
|
AbseliamovEnver/javacorepatterns
|
a3b0f158fb892336b3c5988a35df5bde9b18e0c4
|
7ad3ba22df66c47e830292590037e8b196270fd5
|
refs/heads/master
| 2020-07-03T21:06:25.857646
| 2019-08-13T02:47:46
| 2019-08-13T02:47:46
| 202,049,414
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 236
|
java
|
package com.abseliamov.javapatterns.behavioral.mementogame;
public class SaveFile {
private Save save;
public Save getSave() {
return save;
}
public void setSave(Save save) {
this.save = save;
}
}
|
[
"a.enver.com@gmail.com"
] |
a.enver.com@gmail.com
|
42d722ec465029fd75976a98757b56da85f8af68
|
38ee0271dd601420dba9dd133343a6d06a2880d7
|
/EasyTest/src/main/java/com/guava/MutliMapTest.java
|
ec142bfaae85b655cee2c864e2eb98af5ae68d63
|
[] |
no_license
|
tankmyb/EasyProject
|
c630ba69f458fe13449c0ff5b88d797bb46e90cf
|
e699826d41c034d1ca1f8092463e7426e85778b3
|
refs/heads/master
| 2016-09-06T02:36:59.128880
| 2015-02-17T02:03:51
| 2015-02-17T02:03:51
| 30,898,342
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,282
|
java
|
package com.guava;
import java.util.Collection;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Multimap;
public class MutliMapTest {
public static void main(String... args) {
Multimap<String, String> myMultimap = ArrayListMultimap.create();
// Adding some key/value
myMultimap.put("Fruits", "Bannana");
myMultimap.put("Fruits", "Apple");
myMultimap.put("Fruits", "Pear");
myMultimap.put("Vegetables", "Carrot");
// Getting the size
int size = myMultimap.size();
System.out.println(size); // 4
// Getting values
Collection<String> fruits = myMultimap.get("Fruits");
System.out.println(fruits); // [Bannana, Apple, Pear]
Collection<String> vegetables = myMultimap.get("Vegetables");
System.out.println(vegetables); // [Carrot]
// Iterating over entire Mutlimap
for(String value : myMultimap.values()) {
System.out.println(value);
}
// Removing a single value
myMultimap.remove("Fruits","Pear");
System.out.println(myMultimap.get("Fruits")); // [Bannana, Pear]
// Remove all values for a key
myMultimap.removeAll("Fruits");
System.out.println(myMultimap.get("Fruits")); // [] (Empty Collection!)
}
}
|
[
"="
] |
=
|
0517c604d6b8033c0fe7fc37c8e5dc10cc3121f5
|
db77908c40c076bb713c1b00fd633457658964a3
|
/common/ifs-resources/src/main/java/org/innovateuk/ifs/competition/builder/PreviousCompetitionSearchResultItemBuilder.java
|
627b9de0ed50921788fd19627c1762d02278e4fb
|
[
"MIT"
] |
permissive
|
InnovateUKGitHub/innovation-funding-service
|
e3807613fd3c398931918c6cc773d13874331cdc
|
964969b6dc9c78750738ef683076558cc897c1c8
|
refs/heads/development
| 2023-08-04T04:04:05.501037
| 2022-11-11T14:48:30
| 2022-11-11T14:48:30
| 87,336,871
| 30
| 20
|
MIT
| 2023-07-19T21:23:46
| 2017-04-05T17:20:38
|
Java
|
UTF-8
|
Java
| false
| false
| 1,617
|
java
|
package org.innovateuk.ifs.competition.builder;
import org.innovateuk.ifs.competition.resource.search.PreviousCompetitionSearchResultItem;
import java.util.List;
import java.util.function.BiConsumer;
import static java.util.Collections.emptyList;
import static org.innovateuk.ifs.base.amend.BaseBuilderAmendFunctions.setField;
import static org.innovateuk.ifs.base.amend.BaseBuilderAmendFunctions.uniqueIds;
public class PreviousCompetitionSearchResultItemBuilder extends CompetitionSearchResultItemBuilder<PreviousCompetitionSearchResultItem, PreviousCompetitionSearchResultItemBuilder> {
private PreviousCompetitionSearchResultItemBuilder(List<BiConsumer<Integer, PreviousCompetitionSearchResultItem>> newMultiActions) {
super(newMultiActions);
}
public static PreviousCompetitionSearchResultItemBuilder newPreviousCompetitionSearchResultItem() {
return new PreviousCompetitionSearchResultItemBuilder(emptyList()).with(uniqueIds());
}
public PreviousCompetitionSearchResultItemBuilder openDate(Integer... projectsCounts) {
return withArray((projectsCount, competition) -> setField("projectsCount", projectsCount, competition), projectsCounts);
}
@Override
protected PreviousCompetitionSearchResultItemBuilder createNewBuilderWithActions(List<BiConsumer<Integer, PreviousCompetitionSearchResultItem>> actions) {
return new PreviousCompetitionSearchResultItemBuilder(actions);
}
@Override
protected PreviousCompetitionSearchResultItem createInitial() {
return newInstance(PreviousCompetitionSearchResultItem.class);
}
}
|
[
"markd@iuk.ukri.org"
] |
markd@iuk.ukri.org
|
cd257aef99c2fde25b926e484dd223f7748571cc
|
0646dc0b27df66abb3c6d840000d45610932c26b
|
/src/main/java/com/scarlatti/plugin/intellij/PluginAction.java
|
099fb0e37b3f50743e37a8031ac4ad05107c9683
|
[] |
no_license
|
alessandroscarlatti/intellij-plugin-template
|
7f00ede08f0d2db7cbe60c7208b5f73960af9a9f
|
62487011b6f8c64e8b6cd268b51e1cea3fd1db71
|
refs/heads/master
| 2020-03-26T13:01:03.616879
| 2018-08-16T01:03:01
| 2018-08-16T01:03:01
| 144,918,785
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,160
|
java
|
package com.scarlatti.plugin.intellij;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.components.ServiceManager;
import javax.swing.*;
/**
* ~ _____ __
* ~ (, / | /) /) (__/ ) /) ,
* ~ /---| // _ _ _ _ __ _(/ __ ___ / _ _ __ // _ _/_/_
* ~ ) / |(/_(//_)/_)(_(/ ((_(_/ ((_) ) / (_(_(/ ((/_(_((_(__(_
* ~ (_/ (_/
* ~ Wednesday, 11/8/2017
*/
public class PluginAction extends AnAction {
public PluginAction() {
super("Perform Plugin Action...");
}
/**
* A very simple experiment to try to show a message pane
* when the action is performed.
*/
@Override
public void actionPerformed(AnActionEvent anActionEvent) {
PluginStateWrapper pluginStateWrapper = ServiceManager.getService(PluginStateWrapper.class);
JOptionPane.showMessageDialog(null, pluginStateWrapper.getState());
}
@Override
public boolean displayTextInToolbar() {
return true;
}
}
|
[
"violanotesnoextras@gmail.com"
] |
violanotesnoextras@gmail.com
|
c19efde473b330b93fc019f64365e40e63417202
|
3de3dae722829727edfdd6cc3b67443a69043475
|
/edexOsgi/com.raytheon.uf.edex.registry.ebxml/src/com/raytheon/uf/edex/registry/ebxml/services/cataloger/package-info.java
|
e8f24580ca7c70f97ec8d61c7271924b47d46ea7
|
[
"LicenseRef-scancode-public-domain",
"Apache-2.0"
] |
permissive
|
Unidata/awips2
|
9aee5b7ec42c2c0a2fa4d877cb7e0b399db74acb
|
d76c9f96e6bb06f7239c563203f226e6a6fffeef
|
refs/heads/unidata_18.2.1
| 2023-08-18T13:00:15.110785
| 2023-08-09T06:06:06
| 2023-08-09T06:06:06
| 19,332,079
| 161
| 75
|
NOASSERTION
| 2023-09-13T19:06:40
| 2014-05-01T00:59:04
|
Java
|
UTF-8
|
Java
| false
| false
| 138
|
java
|
/**
* This package contains the cataloger service implementation(s)
*/
package com.raytheon.uf.edex.registry.ebxml.services.cataloger;
|
[
"mjames@unidata.ucar.edu"
] |
mjames@unidata.ucar.edu
|
edc5ad5c86207d426ef4f749317914b5b7fd6b46
|
94445f7ad3d19d2b02bf813349421f6911ca8d70
|
/src/main/java/oasis/names/specification/ubl/schema/xsd/commonbasiccomponents_2/SplitConsignmentIndicatorType.java
|
bf65eb5d08d6d28412f84a9933d2131d8523e5bd
|
[
"Apache-2.0"
] |
permissive
|
project-smartlog/smartlog-client
|
f7ef19f203db7a696de4137163d1fe00a5736ed5
|
b59b90b70fca4fef39f44854c07458dad8d821f0
|
refs/heads/master
| 2020-04-25T03:48:42.214719
| 2019-02-25T12:05:15
| 2019-02-25T12:05:15
| 172,489,812
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,324
|
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.11.17 at 03:30:58 PM EET
//
package oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2;
import oasis.names.specification.ubl.schema.xsd.unqualifieddatatypes_2.IndicatorType;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for SplitConsignmentIndicatorType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="SplitConsignmentIndicatorType">
* <simpleContent>
* <extension base="<urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-2>IndicatorType">
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SplitConsignmentIndicatorType")
public class SplitConsignmentIndicatorType
extends IndicatorType
{
}
|
[
"sami.hongisto@cygate.fi"
] |
sami.hongisto@cygate.fi
|
e7e70e79d79f3d573a65c22dffb532ea44e2580f
|
2fd1b33dd3110777e9b41ee1371daf12a749a9ee
|
/Chap5/Listing_5_12.java
|
3b587a9fe10820d0bc95ba916eeeeed88561be4b
|
[] |
no_license
|
HULLZHU/eclipse-workspace
|
04c474c3cdfdfc79567342974ef04c037e684fae
|
3989116abd9a994336e649af11650761693e92c3
|
refs/heads/master
| 2021-06-09T18:34:17.479825
| 2019-11-05T20:39:05
| 2019-11-05T20:39:05
| 145,763,364
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 308
|
java
|
public class Listing_5_12 {
public static void main(String[] args) {
int sum = 0;
int num = 0;
while ( num < 20 && sum<=100)
{
num++;
sum+= num;
}
System.out.println("The number is "+num);
System.out.println("The sume is " + sum);
// TODO Auto-generated method stub
}
}
|
[
"42597991+HULLZHU@users.noreply.github.com"
] |
42597991+HULLZHU@users.noreply.github.com
|
686bdac67f016920ac073e714fcd61ab11cf2c62
|
890af51efbc9b8237e0fd09903f78fe2bb9caadd
|
/general/hr/com/hd/agent/hr/service/impl/SigninServiceImpl.java
|
3370b5a74994f7ac102f18377621ecc33e72bb2a
|
[] |
no_license
|
1045907427/project
|
815fb0c5b4b44bf5d8365acfde61b6f68be6e52a
|
6eaecf09cd3414295ccf91454f62cf4d619cdbf2
|
refs/heads/master
| 2020-04-14T19:17:54.310613
| 2019-01-14T10:49:11
| 2019-01-14T10:49:11
| 164,052,678
| 0
| 5
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,412
|
java
|
/**
* @(#)SigninServiceImpl.java
*
* @author limin
*
* 版本历史
* -------------------------------------------------------------------------
* 时间 作者 内容
* -------------------------------------------------------------------------
* 2014-9-18 limin 创建版本
*/
package com.hd.agent.hr.service.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.hd.agent.basefiles.model.DepartMent;
import com.hd.agent.common.service.impl.BaseServiceImpl;
import com.hd.agent.common.util.PageData;
import com.hd.agent.common.util.PageMap;
import com.hd.agent.hr.dao.SigninMapper;
import com.hd.agent.hr.model.Signin;
import com.hd.agent.hr.service.ISigninService;
import org.apache.commons.lang3.StringUtils;
/**
*
*
* @author limin
*/
public class SigninServiceImpl extends BaseServiceImpl implements ISigninService {
private SigninMapper signinMapper;
public SigninMapper getSigninMapper() {
return signinMapper;
}
public void setSigninMapper(SigninMapper signinMapper) {
this.signinMapper = signinMapper;
}
@Override
public PageData selectSigninList(PageMap map) throws Exception {
int cnt = signinMapper.selectSigninListCount(map);
List<Signin> list = (List<Signin>)signinMapper.selectSigninList(map);
for(Signin signin : list) {
String deptid = signin.getDeptid();
if(StringUtils.isNotEmpty(deptid)) {
DepartMent dept = getDepartmentByDeptid(deptid);
if (dept != null) {
signin.setDeptname(dept.getName());
}
}
}
PageData data = new PageData(cnt, list, map);
return data;
}
@Override
public Signin selectSigninInfo(String id) throws Exception {
Signin signin = signinMapper.selectSigninInfo(id);
return signin;
}
@Override
public Map deleteSignin(String ids) throws Exception {
String[] idArr = ids.split(",");
int success = 0;
String successIds = "";
int failure = 0;
for(String id : idArr) {
int ret = signinMapper.deleteSignin(id);
if(ret == 0) {
failure++;
} else {
success++;
successIds = successIds + "," + id;
}
}
Map map = new HashMap();
map.put("success", success);
map.put("failure", failure);
map.put("successIds", successIds.length() > 0 ? successIds.substring(1) : "");
return map;
}
}
|
[
"1045907427@qq.com"
] |
1045907427@qq.com
|
a35e2cf48beed320872cf34807d3a412206e7ed7
|
180e78725121de49801e34de358c32cf7148b0a2
|
/dataset/protocol1/repairnator/learning/5106/InspectJobs.java
|
2ff369d0f819c38169e5e21cdd6e0e769d5555f3
|
[] |
no_license
|
ASSERT-KTH/synthetic-checkstyle-error-dataset
|
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
|
40c057e1669584bfc6fecf789b5b2854660222f3
|
refs/heads/master
| 2023-03-18T12:50:55.410343
| 2019-01-25T09:54:39
| 2019-01-25T09:54:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,213
|
java
|
package fr.inria.spirals.repairnator.realtime;
import fr.inria.jtravis.entities.v2.JobV2;
import fr.inria.spirals.repairnator.config.RepairnatorConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.List;
import java.util.Optional;
/**
* This class is launched in a dedicated thread to interrogate regularly the /job endpoint of Travis CI
*/
public class InspectJobs implements Runnable {
private static final Logger LOGGER = LoggerFactory.getLogger(InspectJobs.class);
public static final int JOB_SLEEP_TIME = 60;
private RTScanner rtScanner;
private int sleepTime;
private boolean shouldStop;
public InspectJobs(RTScanner scanner) {
this.rtScanner = scanner;
this.sleepTime = RepairnatorConfig.getInstance().getJobSleepTime();
}
/**
* This is used to stop the thread execution.
*/
public void switchOff() {
this.shouldStop = true;
}
@Override
public void run() {
LOGGER.debug("Start running inspect Jobs...");
if (sleepTime == -1) {
throw new RuntimeException("Sleep time has to be set before running this.");
}
while (!shouldStop) {
Optional<List<JobV2>> jobListOpt = RepairnatorConfig.getInstance().getJTravis().job().allFromV2();
if (jobListOpt.isPresent()) {
List<JobV2> jobList = jobListOpt.get();
LOGGER.info("Retrieved "+jobList.size()+" jobs");
for (JobV2 job : jobList) {
if (this.rtScanner.isRepositoryInteresting(job.getRepositoryId())) {
this.rtScanner.submitWaitingBuild(job.getBuildId());
}
}
}
if (this.rtScanner.getInspectBuilds().maxSubmittedBuildsReached() || !jobListOpt.isPresent()) {
LOGGER.debug("Max number of submitted builds reached. Sleep for "+sleepTime+" seconds.");
try {
Thread.sleep(sleepTime * 1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
LOGGER.info("This will now stop.");
}
}
|
[
"bloriot97@gmail.com"
] |
bloriot97@gmail.com
|
76699165f78c6794728cc8e40bd4ef5ba7941468
|
ddcf14f5681a2b511749017f4ff5514748c93940
|
/family_service_platform/src/main/java/com/msb/bean/WyVegetationInformation.java
|
d5aaa02cf47d9fffb3156ea08c2370d78ddf90b3
|
[] |
no_license
|
leiyungit/property-server
|
f811f61c7bb1a57c90de340089a5a9cdd8b3393d
|
a28934935c6d029df54f45affa0c26bef7e0bc98
|
refs/heads/main
| 2023-01-06T12:36:35.742747
| 2020-11-14T14:36:59
| 2020-11-14T14:36:59
| 305,880,106
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,464
|
java
|
package com.msb.bean;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
/**
* <p>
* 植被信息
* </p>
*
* @author leiy
* @since 2020-10-21
*/
public class WyVegetationInformation implements Serializable {
private static final long serialVersionUID=1L;
/**
* 植被编号
*/
@TableId(value = "vegetation_id", type = IdType.AUTO)
private String vegetationId;
/**
* 植被名称
*/
private String vegetationName;
/**
* 种类
*/
private String vegetationType;
/**
* 树龄
*/
private Integer vegetationAge;
/**
* 数量
*/
private Integer vegetationNumber;
/**
* 单位
*/
private String vegetationUnit;
/**
* 习性
*/
private String vegetationHabit;
/**
* 特点
*/
private String vegetationFeature;
/**
* 备注
*/
private String remark;
/**
* 所属公司
*/
private String company;
public String getVegetationId() {
return vegetationId;
}
public void setVegetationId(String vegetationId) {
this.vegetationId = vegetationId;
}
public String getVegetationName() {
return vegetationName;
}
public void setVegetationName(String vegetationName) {
this.vegetationName = vegetationName;
}
public String getVegetationType() {
return vegetationType;
}
public void setVegetationType(String vegetationType) {
this.vegetationType = vegetationType;
}
public Integer getVegetationAge() {
return vegetationAge;
}
public void setVegetationAge(Integer vegetationAge) {
this.vegetationAge = vegetationAge;
}
public Integer getVegetationNumber() {
return vegetationNumber;
}
public void setVegetationNumber(Integer vegetationNumber) {
this.vegetationNumber = vegetationNumber;
}
public String getVegetationUnit() {
return vegetationUnit;
}
public void setVegetationUnit(String vegetationUnit) {
this.vegetationUnit = vegetationUnit;
}
public String getVegetationHabit() {
return vegetationHabit;
}
public void setVegetationHabit(String vegetationHabit) {
this.vegetationHabit = vegetationHabit;
}
public String getVegetationFeature() {
return vegetationFeature;
}
public void setVegetationFeature(String vegetationFeature) {
this.vegetationFeature = vegetationFeature;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public String getCompany() {
return company;
}
public void setCompany(String company) {
this.company = company;
}
@Override
public String toString() {
return "WyVegetationInformation{" +
"vegetationId=" + vegetationId +
", vegetationName=" + vegetationName +
", vegetationType=" + vegetationType +
", vegetationAge=" + vegetationAge +
", vegetationNumber=" + vegetationNumber +
", vegetationUnit=" + vegetationUnit +
", vegetationHabit=" + vegetationHabit +
", vegetationFeature=" + vegetationFeature +
", remark=" + remark +
", company=" + company +
"}";
}
}
|
[
"744561873@qq.com"
] |
744561873@qq.com
|
26f1088e4c1ec9cdf5514d008c62197fe3ac0bab
|
83593598f21cba234f08eca4dec44d2f73a6052d
|
/prj/otc/web-specialmember/src/main/java/gnnt/MEBS/common/model/OnLineUser.java
|
7d682ea5042b01964dc534240b8aeeb12f624f27
|
[
"Apache-2.0"
] |
permissive
|
bigstar18/prjs
|
23a04309a51b0372ddf6c391ee42270e640ec13c
|
c29da4d0892ce43e074d9e9831f1eedf828cd9d8
|
refs/heads/master
| 2021-05-31T19:55:16.217893
| 2016-06-24T02:35:31
| 2016-06-24T02:35:31
| 42,025,473
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,024
|
java
|
package gnnt.MEBS.common.model;
import gnnt.MEBS.base.model.Clone;
import java.io.Serializable;
public class OnLineUser
extends Clone
{
private String userId;
private String logonTime;
private String logonIp;
private long sessionId;
public long getSessionId()
{
return this.sessionId;
}
public void setSessionId(long sessionId)
{
this.sessionId = sessionId;
}
public String getLogonIp()
{
return this.logonIp;
}
public void setLogonIp(String logonIp)
{
this.logonIp = logonIp;
}
public String getLogonTime()
{
return this.logonTime;
}
public void setLogonTime(String logonTime)
{
this.logonTime = logonTime;
}
public String getUserId()
{
return this.userId;
}
public void setUserId(String userId)
{
this.userId = userId;
}
public <T extends Serializable> T getId()
{
return this.userId;
}
public void setPrimary(String arg0) {}
}
|
[
"hxx@hxx-PC"
] |
hxx@hxx-PC
|
558fc6b888d1d7f51f5675eba5ea6a29aaf7d049
|
a63d907ad63ba6705420a6fb2788196d1bd3763c
|
/src/dataflow/unified-computing/stream/flink-code/src/main/java/com/tencent/bk/base/dataflow/flink/source/FlinkKafkaConsumer.java
|
688e365d5bf6ee3e09f49312182ca21366458d47
|
[
"MIT"
] |
permissive
|
Tencent/bk-base
|
a38461072811667dc2880a13a5232004fe771a4b
|
6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2
|
refs/heads/master
| 2022-07-30T04:24:53.370661
| 2022-04-02T10:30:55
| 2022-04-02T10:30:55
| 381,257,882
| 101
| 51
|
NOASSERTION
| 2022-04-02T10:30:56
| 2021-06-29T06:10:01
|
Python
|
UTF-8
|
Java
| false
| false
| 4,484
|
java
|
/*
* Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
*
* License for BK-BASE 蓝鲸基础平台:
* --------------------------------------------------------------------
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial
* portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
* LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
* NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package com.tencent.bk.base.dataflow.flink.source;
import com.tencent.bk.base.dataflow.core.topo.SourceNode;
import com.tencent.bk.base.dataflow.core.topo.Topology;
import com.tencent.bk.base.dataflow.core.types.AvroMessage;
import com.tencent.bk.base.dataflow.flink.checkpoint.FlinkCodeCheckpointManager;
import com.tencent.bk.base.dataflow.kafka.consumer.IConsumer;
import com.tencent.bk.base.dataflow.kafka.consumer.utils.ByteOffsetSourceKafka;
import java.io.IOException;
import java.util.Properties;
import org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer010;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class FlinkKafkaConsumer implements IConsumer<FlinkKafkaConsumer010<AvroMessage>> {
private static final long serialVersionUID = 1L;
private static final Logger LOGGER = LoggerFactory.getLogger(FlinkKafkaConsumer.class);
private String topic;
private Properties properties;
// flink source struct
private FlinkKafkaConsumer010<AvroMessage> consumer;
private String startPosition;
/**
* source的构造方法
*
* @param node rt
* @throws IOException exception
*/
public FlinkKafkaConsumer(SourceNode node, FlinkCodeCheckpointManager checkpointManager, Topology topology) {
this.topic = String.format("table_%s", node.getNodeId());
this.properties = new Properties();
this.startPosition = checkpointManager.getStartPosition();
String inputInfo = node.getInput().getInputInfo().toString();
initProperties(properties, inputInfo, topology);
}
/**
* 获取 kafka consumer
* TODO: 根据 checkpointManager 配置处理对应的逻辑
*
* @return kafka consumer
*/
@Override
public FlinkKafkaConsumer010 getConsumer() {
consumer = new FlinkKafkaConsumer010<AvroMessage>(
topic,
new ByteOffsetSourceKafka(),
properties);
// 判断是否从最新位置开始消费数据
if ("from_tail".equalsIgnoreCase(this.startPosition)) {
consumer.setStartFromLatest();
LOGGER.info("read latest data from kafka!!!!");
} else if ("continue".equalsIgnoreCase(this.startPosition)) {
// 继续消费
consumer.setStartFromGroupOffsets();
LOGGER.info("continue to read data.");
} else {
consumer.setStartFromEarliest();
LOGGER.info("read earliest data from kafka!!!");
}
return consumer;
}
private void initProperties(Properties properties, String inputInfo, Topology topology) {
properties.setProperty("bootstrap.servers", inputInfo);
String groupId;
if ("product".equals(topology.getRunMode())) {
groupId = String.format("%s-%s-%s", "calculate", "flink", topology.getJobId());
} else {
groupId = String.format("%s-%s", "calculate", "flink-debug");
}
properties.setProperty("group.id", groupId);
}
}
|
[
"terrencehan@tencent.com"
] |
terrencehan@tencent.com
|
df0efb8e88619e23f5d1fc61ff9fe01d4266bab0
|
005553bcc8991ccf055f15dcbee3c80926613b7f
|
/generated/com/guidewire/_generated/typekey/LedgerSideInternalAccess.java
|
5b333342af31a90382aae4138a528890287ab6e0
|
[] |
no_license
|
azanaera/toggle-isbtf
|
5f14209cd87b98c123fad9af060efbbee1640043
|
faf991ec3db2fd1d126bc9b6be1422b819f6cdc8
|
refs/heads/master
| 2023-01-06T22:20:03.493096
| 2020-11-16T07:04:56
| 2020-11-16T07:04:56
| 313,212,938
| 0
| 0
| null | 2020-11-16T08:48:41
| 2020-11-16T06:42:23
| null |
UTF-8
|
Java
| false
| false
| 676
|
java
|
package com.guidewire._generated.typekey;
@javax.annotation.processing.Generated(value = "com.guidewire.pl.metadata.codegen.Codegen", comments = "LedgerSide.eti;LedgerSide.eix;LedgerSide.etx")
@java.lang.SuppressWarnings(value = {"deprecation", "unchecked"})
public class LedgerSideInternalAccess {
public static final com.guidewire.pl.system.internal.FriendAccessor<com.guidewire.pl.persistence.code.TypeKeyFriendAccess<typekey.LedgerSide>> FRIEND_ACCESSOR = new com.guidewire.pl.system.internal.FriendAccessor<com.guidewire.pl.persistence.code.TypeKeyFriendAccess<typekey.LedgerSide>>(typekey.LedgerSide.class);
private LedgerSideInternalAccess() {
}
}
|
[
"azanaera691@gmail.com"
] |
azanaera691@gmail.com
|
9e931ec7c00dc971b4fb8ade479b1567b78586d9
|
1b9a6b5ee02cac0c0979cb5c78c53d26cadd8507
|
/app/src/main/java/br/com/aplication/Phones.java
|
0f61e69873e5508bcadd32bae59b30b146d51b8a
|
[] |
no_license
|
MarioJunio/WHERESAPP-MOB
|
7f4a60bb503392a532ceb277d8c003ae945de172
|
a62015bfa8d5ffd2c499bbbaca41321020ebda42
|
refs/heads/master
| 2020-12-30T13:21:19.096202
| 2016-03-14T17:41:15
| 2016-03-14T17:41:15
| 91,207,604
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,710
|
java
|
package br.com.aplication;
import android.content.Context;
import android.telephony.TelephonyManager;
import android.util.Log;
import java.security.NoSuchAlgorithmException;
import java.util.Set;
import com.br.wheresapp.R;
import br.com.model.domain.Contact;
import br.com.service.PhoneFormatTextWatcher;
import br.com.util.Utils;
/**
* Created by MarioJ on 08/05/15.
*/
public class Phones {
public static final String INTERNATIONAL_IDENTIFIER = "+";
private static final String TAG = "Phones";
public static String formatNumber(String phone) {
phone = phone.replaceAll("[^\\d" + INTERNATIONAL_IDENTIFIER + "]", "").trim();
while (phone.startsWith("0")) {
phone = phone.replaceFirst("0", "");
}
return phone;
}
public static String extractDDD(String phoneNumber, String countryISO) {
String phone;
int index;
if (countryISO.equals("BR")) {
phone = phoneNumber.replaceAll("[^\\d]", "");
index = 2;
} else {
phone = PhoneFormatTextWatcher.formatNumber(phoneNumber, countryISO).replaceAll("[^\\d\\s]", "");
index = phone.indexOf(" ");
}
if (index > 0)
return phone.substring(0, index);
else
return "";
}
public static String parseNumber(String ddi, String ddd, String number) {
number = formatNumber(number);
// if not starts with '+', check whether starts with DDD or DDI local
if (!number.startsWith(INTERNATIONAL_IDENTIFIER) && !number.startsWith(ddi + ddd)) {
String tmpNumber = INTERNATIONAL_IDENTIFIER;
if (number.startsWith(ddd) || ddd.isEmpty())
tmpNumber += ddi + number;
else
tmpNumber += ddi + ddd + number;
return tmpNumber.substring(INTERNATIONAL_IDENTIFIER.length());
}
return number.replace(INTERNATIONAL_IDENTIFIER, "");
}
public static String getPhoneCountryISO(Context context) {
return ((TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE)).getSimCountryIso();
}
public static String getCountryCode(Context context, String countryISO) {
String[] countries = context.getResources().getStringArray(R.array.countries);
for (String country : countries) {
String[] tokens = country.split(",");
if (countryISO.equalsIgnoreCase(tokens[1]))
return tokens[0];
}
return null;
}
public static String getCountryISO(Context context, String countryCode) {
String[] countries = context.getResources().getStringArray(R.array.countries);
for (String country : countries) {
String tokens[] = country.split(",");
if (countryCode.equals(tokens[0]))
return tokens[1];
}
return null;
}
public static String getPhoneNumber(Context context, String countryCode) {
TelephonyManager telemamanger = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
String line1Number = telemamanger.getLine1Number();
if (line1Number != null && !line1Number.isEmpty()) {
return line1Number.replaceFirst(countryCode, "");
}
return "";
}
public static String getContactsCheckSum(Set<Contact> contacts) throws NoSuchAlgorithmException {
String phones = "";
if (contacts != null && !contacts.isEmpty()) {
for (Contact c : contacts)
phones += c.getPhone();
return Utils.sha1(phones).toString();
}
return null;
}
}
|
[
"mario.mj.95@gmail.com"
] |
mario.mj.95@gmail.com
|
3ccc9f46525993a965f572eb5f6f2f15456397d0
|
8dc84558f0058d90dfc4955e905dab1b22d12c08
|
/third_party/android_tools/sdk/sources/android-25/android/net/metrics/ApfStats.java
|
8451e539a7f677beb71c293a1c5d0d321c4fbbed
|
[
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] |
permissive
|
meniossin/src
|
42a95cc6c4a9c71d43d62bc4311224ca1fd61e03
|
44f73f7e76119e5ab415d4593ac66485e65d700a
|
refs/heads/master
| 2022-12-16T20:17:03.747113
| 2020-09-03T10:43:12
| 2020-09-03T10:43:12
| 263,710,168
| 1
| 0
|
BSD-3-Clause
| 2020-05-13T18:20:09
| 2020-05-13T18:20:08
| null |
UTF-8
|
Java
| false
| false
| 3,966
|
java
|
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.net.metrics;
import android.annotation.SystemApi;
import android.os.Parcel;
import android.os.Parcelable;
/**
* An event logged for an interface with APF capabilities when its IpManager state machine exits.
* {@hide}
*/
@SystemApi
public final class ApfStats implements Parcelable {
public final long durationMs; // time interval in milliseconds these stastistics covers
public final int receivedRas; // number of received RAs
public final int matchingRas; // number of received RAs matching a known RA
public final int droppedRas; // number of received RAs ignored due to the MAX_RAS limit
public final int zeroLifetimeRas; // number of received RAs with a minimum lifetime of 0
public final int parseErrors; // number of received RAs that could not be parsed
public final int programUpdates; // number of APF program updates
public final int maxProgramSize; // maximum APF program size advertised by hardware
/** {@hide} */
public ApfStats(long durationMs, int receivedRas, int matchingRas, int droppedRas,
int zeroLifetimeRas, int parseErrors, int programUpdates, int maxProgramSize) {
this.durationMs = durationMs;
this.receivedRas = receivedRas;
this.matchingRas = matchingRas;
this.droppedRas = droppedRas;
this.zeroLifetimeRas = zeroLifetimeRas;
this.parseErrors = parseErrors;
this.programUpdates = programUpdates;
this.maxProgramSize = maxProgramSize;
}
private ApfStats(Parcel in) {
this.durationMs = in.readLong();
this.receivedRas = in.readInt();
this.matchingRas = in.readInt();
this.droppedRas = in.readInt();
this.zeroLifetimeRas = in.readInt();
this.parseErrors = in.readInt();
this.programUpdates = in.readInt();
this.maxProgramSize = in.readInt();
}
@Override
public void writeToParcel(Parcel out, int flags) {
out.writeLong(durationMs);
out.writeInt(receivedRas);
out.writeInt(matchingRas);
out.writeInt(droppedRas);
out.writeInt(zeroLifetimeRas);
out.writeInt(parseErrors);
out.writeInt(programUpdates);
out.writeInt(maxProgramSize);
}
@Override
public int describeContents() {
return 0;
}
@Override
public String toString() {
return new StringBuilder("ApfStats(")
.append(String.format("%dms ", durationMs))
.append(String.format("%dB RA: {", maxProgramSize))
.append(String.format("%d received, ", receivedRas))
.append(String.format("%d matching, ", matchingRas))
.append(String.format("%d dropped, ", droppedRas))
.append(String.format("%d zero lifetime, ", zeroLifetimeRas))
.append(String.format("%d parse errors, ", parseErrors))
.append(String.format("%d program updates})", programUpdates))
.toString();
}
public static final Parcelable.Creator<ApfStats> CREATOR = new Parcelable.Creator<ApfStats>() {
public ApfStats createFromParcel(Parcel in) {
return new ApfStats(in);
}
public ApfStats[] newArray(int size) {
return new ApfStats[size];
}
};
}
|
[
"arnaud@geometry.ee"
] |
arnaud@geometry.ee
|
34c4c5f66b997a955cb5c78819ed12351d98c8c0
|
380c81f3fd877c7d1347b973a3c43c46a8d110a9
|
/merchandise.web/src/test/java/de/mq/merchandise/subject/support/ConditionToContainerConverterTest.java
|
2a424d6bcb8e635fe9eeac9fba94e409569f3ccf
|
[] |
no_license
|
mquasten/merchandise
|
f5a84293b154bee371f2e6cbe12e51210ad8b0c9
|
3e2b7ec0bc9faea98e15d63ad94eafa67ce19010
|
refs/heads/master
| 2016-09-06T04:39:44.389367
| 2016-03-08T20:49:49
| 2016-03-08T20:49:49
| 8,311,547
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,904
|
java
|
package de.mq.merchandise.subject.support;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Optional;
import org.hibernate.proxy.HibernateProxy;
import org.hibernate.proxy.LazyInitializer;
import org.junit.Assert;
import org.junit.Test;
import org.mockito.Mockito;
import org.springframework.beans.BeanUtils;
import org.springframework.core.convert.converter.Converter;
import org.springframework.test.util.ReflectionTestUtils;
import com.vaadin.data.Container;
import com.vaadin.data.Item;
import de.mq.merchandise.subject.Condition;
public class ConditionToContainerConverterTest {
private static final String CONDITION_QUALITY = "Quality";
private static final long ID = 19680528L;
private final Converter<Collection<Condition>, Container> converter = new ConditionToContainerConverter();
@Test
public final void convert() {
final Collection<Condition> conditions = new ArrayList<>();
final Condition condition = new ConditionImpl(Mockito.mock(SubjectImpl.class), CONDITION_QUALITY, ConditionDataType.String);
ReflectionTestUtils.setField(condition, "id", ID);
conditions.add(condition);
final Container results = converter.convert(conditions);
Assert.assertEquals(1, results.getItemIds().size());
final Optional<?> id = (Optional<?>) results.getItemIds().stream().findFirst();
Assert.assertTrue(id.isPresent());
final Item item = results.getItem(id.get());
Assert.assertEquals(condition.id().get(), item.getItemProperty(ConditionCols.Id).getValue());
Assert.assertEquals(condition.conditionDataType(), item.getItemProperty(ConditionCols.DataType).getValue());
Assert.assertEquals(condition.conditionType(), item.getItemProperty(ConditionCols.ConditionType).getValue());
}
@Test
public final void convertNulls() {
final Collection<Condition> conditions = new ArrayList<>();
final Condition condition = BeanUtils.instantiateClass(ConditionImpl.class);
conditions.add(condition);
final Container results = converter.convert(conditions);
Assert.assertEquals(1, results.getItemIds().size());
final Optional<?> id = (Optional<?>) results.getItemIds().stream().findFirst();
Assert.assertTrue(id.isPresent());
final Item item = results.getItem(id.get());
Arrays.asList(ConditionCols.values()).stream().forEach(col -> Assert.assertEquals(col.nvl(), item.getItemProperty(col).getValue()));
}
@SuppressWarnings("unchecked")
@Test
public final void convertHibernateProxy() {
final HibernateProxy proxy = Mockito.mock(HibernateProxy.class);
final LazyInitializer lazyInitializer = Mockito.mock(LazyInitializer.class);
final Condition condition = new ConditionImpl(Mockito.mock(SubjectImpl.class), CONDITION_QUALITY, ConditionDataType.String);
ReflectionTestUtils.setField(condition, "id", ID);
Mockito.when(lazyInitializer.getImplementation()).thenReturn(condition);
Mockito.when(proxy.getHibernateLazyInitializer()).thenReturn(lazyInitializer);
@SuppressWarnings("rawtypes")
final Collection conditions = new ArrayList<>();
conditions.add( proxy);
final Container results = converter.convert(conditions);
Assert.assertEquals(1, results.getItemIds().size());
final Optional<?> id = (Optional<?>) results.getItemIds().stream().findFirst();
Assert.assertTrue(id.isPresent());
final Item item = results.getItem(id.get());
Assert.assertEquals(condition.id().get(), item.getItemProperty(ConditionCols.Id).getValue());
Assert.assertEquals(condition.conditionDataType(), item.getItemProperty(ConditionCols.DataType).getValue());
Assert.assertEquals(condition.conditionType(), item.getItemProperty(ConditionCols.ConditionType).getValue());
Mockito.verify(proxy).getHibernateLazyInitializer();
Mockito.verify(lazyInitializer).getImplementation();
}
}
|
[
"manfred.quasten@arcor.de"
] |
manfred.quasten@arcor.de
|
ca86be202529c9822b388fc316659e3f0a75165a
|
8ecd7816544483fa7680966e70a3bb6fb7fb09d0
|
/CoreGame/src/main/java/com/game/manager/DBServiceManager.java
|
347bdad33b80ba68f6e6e967fc4c87bd300e2302
|
[] |
no_license
|
billee1011/LGameQiPai
|
d99fc66bdab8fd9c60378b6b95a829a4c2679ef4
|
67c91f888ba7c0b9c636c608b8c0d7d3fb72f2eb
|
refs/heads/master
| 2021-04-09T17:03:55.541135
| 2017-07-24T01:49:27
| 2017-07-24T01:49:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,376
|
java
|
package com.game.manager;
import com.game.core.dao.mysql.ServerService;
import com.game.core.dao.mysql.UserDao;
import com.game.core.dao.redis.GameRedis;
import com.game.core.dao.redis.UserRedis;
import com.game.core.service.UserService;
import com.game.core.service.impl.UserServiceImpl;
import com.lgame.util.comm.StringTool;
import com.lgame.util.file.PropertiesTool;
import com.lgame.util.json.JsonUtil;
import com.logger.log.SystemLogger;
import com.lsocket.config.SocketConfig;
import com.lsocket.core.ICommon;
import com.lsocket.module.IP;
import com.lsocket.util.SocketConstant;
import com.module.GameServer;
import com.module.ServerGroup;
import com.mysql.impl.SqlPool;
import com.redis.impl.RedisConnectionManager;
import java.util.Enumeration;
import java.util.Properties;
/**
* Created by Administrator on 2017/4/14.
*/
public class DBServiceManager extends ICommon {
private static DBServiceManager dbServiceManager = null;
private DBServiceManager(){
}
public synchronized static DBServiceManager getInstance(){
if(dbServiceManager != null){
return dbServiceManager;
}
dbServiceManager = new DBServiceManager();
return dbServiceManager;
}
private SqlPool commUserPool;//用户中心数据连接池
private SqlPool commGamePool;//游戏数据连接池
private GameServer gameServer;
private ServerGroup serverGroup;
private ServerService serverService;
private UserRedis userRedis;
private GameRedis gameRedis;
private UserService userService;
// private UserDao userDao;
private Properties getProperties(SqlPool.DataSourceType sourceType){
if(sourceType == SqlPool.DataSourceType.Druid){
return PropertiesTool.loadProperty("druid_db.properties");
}
return PropertiesTool.loadProperty("hikari_db.properties");
}
private Properties resetProper(Properties dbProper) {
dbProper.setProperty("username",serverGroup.getSqlUserName());
dbProper.setProperty("password",serverGroup.getSqlPwd());
if(StringTool.isNotNull(dbProper.getProperty("jdbcUrl"))){
dbProper.setProperty("jdbcUrl",serverGroup.getSqlUrl());
}else {
dbProper.setProperty("url",serverGroup.getSqlUrl());
}
return dbProper;
}
private void loadConfig(){
SocketConfig socketConfig = SocketConfig.getInstance();
SqlPool.DataSourceType sourceType = SqlPool.DataSourceType.valueOf(socketConfig.getDbType());
if(sourceType == null){
throw new RuntimeException(socketConfig.getDbType()+" can not find in DataSourceType");
}
Properties dbProper = getProperties(sourceType);
commUserPool = new SqlPool(sourceType,dbProper);
serverService = new ServerService(commUserPool);
gameServer = serverService.getServerById(socketConfig.getServerId());
if(gameServer == null){
throw new RuntimeException(socketConfig.getServerId()+" cant find from db");
}else {
SystemLogger.info(this.getClass(),"localhost:"+gameServer.getIp()+" serverType:"+gameServer.getServerType());
}
/* if(gameServer.getServerType() != GameServer.ServerType.gate){
throw new RuntimeException(socketConfig.getServerId()+" serverType:"+gameServer.getServerType());
}*/
serverGroup = serverService.getServerGroup(gameServer.getGroupNum());
if(serverGroup == null){
throw new RuntimeException("can not find goupNum:"+gameServer.getGroupNum() + " in serverGroup db");
}
dbProper = resetProper(dbProper);
commGamePool = new SqlPool(sourceType,dbProper);
SocketConstant.init(new IP(gameServer.getIp(),gameServer.getPort()),socketConfig.getMaxSocketLength(),socketConfig.getMaxQuqueVistor(),socketConfig.getSameIpMaxConnections());
}
protected void initService(){
loadConfig();
Properties redisProperties = PropertiesTool.loadProperty("redis.properties");
RedisConnectionManager redisUserConnectionManager = new RedisConnectionManager(redisProperties);
userRedis = new UserRedis(redisUserConnectionManager);
this.userService = new UserServiceImpl(new UserDao(commUserPool,commGamePool),userRedis);
Properties masterProperties = new Properties(redisProperties);
masterProperties.setProperty("url",serverGroup.getRedisUrl()+"/"+(StringTool.isEmpty(serverGroup.getRedisPwd())?"":serverGroup.getRedisPwd()));
RedisConnectionManager gameRedisConnectionManager = new RedisConnectionManager(masterProperties);
gameRedis = new GameRedis(gameRedisConnectionManager);
}
@Override
protected void check() {
}
public SqlPool getCommUserPool() {
return commUserPool;
}
public SqlPool getCommGamePool() {
return commGamePool;
}
public GameServer getGameServer() {
return gameServer;
}
public ServerGroup getServerGroup() {
return serverGroup;
}
public ServerService getServerService() {
return serverService;
}
public UserService getUserService() {
return userService;
}
public UserRedis getUserRedis() {
return userRedis;
}
public GameRedis getGameRedis() {
return gameRedis;
}
}
|
[
"wlvxiaohui@163.com"
] |
wlvxiaohui@163.com
|
2e5640fc9d66d098203f4fac62e0945b299b2de0
|
bfdfa7da398a9d95cb38d4c7148f5c43565718ff
|
/integration/boofcv-swing/src/main/java/boofcv/gui/image/SaveImageOnClick.java
|
c42d2d79c2cca25e3d92d4aaedd99044071e8c55
|
[
"Apache-2.0",
"LicenseRef-scancode-takuya-ooura"
] |
permissive
|
tandygong/BoofCV
|
85d1e2946f235ce509b0caefc6921ccfeae0a303
|
d6aec5817db6b7efad5da4701487ceddf18da9c4
|
refs/heads/master
| 2021-05-09T07:38:22.957727
| 2018-01-20T16:05:36
| 2018-01-20T16:05:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,279
|
java
|
/*
* Copyright (c) 2011-2017, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* 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 boofcv.gui.image;
import boofcv.io.image.UtilImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;
/**
* Renders what's currently visible in the component and saves to disk. Opens a dialog to let the user know what's going
* on and provides the open to silently save in the future.
*
* @author Peter Abeles
*/
public class SaveImageOnClick extends MouseAdapter {
private static int saveCounter = 0;
private static boolean hideSaveDialog = false;
Component parent;
public SaveImageOnClick(Component parent) {
this.parent = parent;
}
@Override
public void mouseClicked(MouseEvent e) {
boolean clicked = SwingUtilities.isMiddleMouseButton(e);
if( clicked ) {
String fileName = String.format("saved_image%03d.png",saveCounter++);
System.out.println("Image saved to "+fileName);
BufferedImage output = getBufferedImage();
UtilImageIO.saveImage(output, fileName);
if( hideSaveDialog )
return;
Object[] options = {"Hide in Future","OK"};
int n = JOptionPane.showOptionDialog(parent,
"Saved image to "+fileName,
"Middle Mouse Click Image Saving",
JOptionPane.OK_CANCEL_OPTION,
JOptionPane.QUESTION_MESSAGE,
null,
options,
options[1]);
if( n == 0 )
hideSaveDialog = true;
}
}
protected BufferedImage getBufferedImage() {
BufferedImage output = new BufferedImage(parent.getWidth(),parent.getHeight(), BufferedImage.TYPE_INT_BGR);
parent.paint(output.createGraphics());
return output;
}
}
|
[
"peter.abeles@gmail.com"
] |
peter.abeles@gmail.com
|
096867fade1eef55c40c159a7c605367bb70f1e8
|
ca7da6499e839c5d12eb475abe019370d5dd557d
|
/spring-web/src/main/java/org/springframework/http/converter/xml/AbstractJaxb2HttpMessageConverter.java
|
b7b77730a24ec239762845460268a8f52606b467
|
[
"Apache-2.0"
] |
permissive
|
yangfancoming/spring-5.1.x
|
19d423f96627636a01222ba747f951a0de83c7cd
|
db4c2cbcaf8ba58f43463eff865d46bdbd742064
|
refs/heads/master
| 2021-12-28T16:21:26.101946
| 2021-12-22T08:55:13
| 2021-12-22T08:55:13
| 194,103,586
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,531
|
java
|
package org.springframework.http.converter.xml;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import org.springframework.http.converter.HttpMessageConversionException;
import org.springframework.util.Assert;
/**
* Abstract base class for {@link org.springframework.http.converter.HttpMessageConverter HttpMessageConverters}
* that use JAXB2. Creates {@link JAXBContext} object lazily.
*
* @author Arjen Poutsma
*
* @since 3.0
* @param <T> the converted object type
*/
public abstract class AbstractJaxb2HttpMessageConverter<T> extends AbstractXmlHttpMessageConverter<T> {
private final ConcurrentMap<Class<?>, JAXBContext> jaxbContexts = new ConcurrentHashMap<>(64);
/**
* Create a new {@link Marshaller} for the given class.
* @param clazz the class to create the marshaller for
* @return the {@code Marshaller}
* @throws HttpMessageConversionException in case of JAXB errors
*/
protected final Marshaller createMarshaller(Class<?> clazz) {
try {
JAXBContext jaxbContext = getJaxbContext(clazz);
Marshaller marshaller = jaxbContext.createMarshaller();
customizeMarshaller(marshaller);
return marshaller;
}
catch (JAXBException ex) {
throw new HttpMessageConversionException(
"Could not create Marshaller for class [" + clazz + "]: " + ex.getMessage(), ex);
}
}
/**
* Customize the {@link Marshaller} created by this
* message converter before using it to write the object to the output.
* @param marshaller the marshaller to customize
* @since 4.0.3
* @see #createMarshaller(Class)
*/
protected void customizeMarshaller(Marshaller marshaller) {
}
/**
* Create a new {@link Unmarshaller} for the given class.
* @param clazz the class to create the unmarshaller for
* @return the {@code Unmarshaller}
* @throws HttpMessageConversionException in case of JAXB errors
*/
protected final Unmarshaller createUnmarshaller(Class<?> clazz) {
try {
JAXBContext jaxbContext = getJaxbContext(clazz);
Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
customizeUnmarshaller(unmarshaller);
return unmarshaller;
}
catch (JAXBException ex) {
throw new HttpMessageConversionException(
"Could not create Unmarshaller for class [" + clazz + "]: " + ex.getMessage(), ex);
}
}
/**
* Customize the {@link Unmarshaller} created by this
* message converter before using it to read the object from the input.
* @param unmarshaller the unmarshaller to customize
* @since 4.0.3
* @see #createUnmarshaller(Class)
*/
protected void customizeUnmarshaller(Unmarshaller unmarshaller) {
}
/**
* Return a {@link JAXBContext} for the given class.
* @param clazz the class to return the context for
* @return the {@code JAXBContext}
* @throws HttpMessageConversionException in case of JAXB errors
*/
protected final JAXBContext getJaxbContext(Class<?> clazz) {
Assert.notNull(clazz, "Class must not be null");
JAXBContext jaxbContext = this.jaxbContexts.get(clazz);
if (jaxbContext == null) {
try {
jaxbContext = JAXBContext.newInstance(clazz);
this.jaxbContexts.putIfAbsent(clazz, jaxbContext);
}
catch (JAXBException ex) {
throw new HttpMessageConversionException(
"Could not instantiate JAXBContext for class [" + clazz + "]: " + ex.getMessage(), ex);
}
}
return jaxbContext;
}
}
|
[
"34465021+jwfl724168@users.noreply.github.com"
] |
34465021+jwfl724168@users.noreply.github.com
|
d7a64b56685686023fc88d76989c3d2618464b3d
|
78693f4e722d5c23e2124613a8c22d6101d35702
|
/aptina/aptina-beans/src/main/java/org/seasar/aptina/beans/JavaBean.java
|
5a62fbc65b5af20433091c4b88ca8a988ce08426
|
[
"Apache-2.0"
] |
permissive
|
seasarorg/aptina
|
febc9802b4f0c00ee9c89087bce6c5afbe2cfa95
|
a454c22094d82a1c9be90a10f47c78fc6fa556c7
|
refs/heads/master
| 2021-01-23T22:39:12.510250
| 2013-10-04T02:32:22
| 2013-10-04T02:32:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,007
|
java
|
/*
* Copyright 2004-2010 the Seasar Foundation and the Others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
package org.seasar.aptina.beans;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Aptina Beans によって {@link BeanState} で注釈されたクラスから生成された JavaBeans であることを示す注釈です.
* <p>
* 生成される Bean クラスは状態クラスと同じパッケージに生成されます. Bean クラスの名前は次のようになります.
* </p>
* <dl>
* <dt>状態クラスの名前が {@code Abstract} で始まっている場合</dt>
* <dd>状態クラスの名前の先頭から {@code Abstract} を除去した名前になります.</dd>
* <dt>状態クラスの名前が {@code State} で終わっている場合</dt>
* <dd>状態クラスの名前の末尾から {@code State} を除去した名前になります.</dd>
* <dt>状態クラスの名前が {@code Bean} で終わっている場合</dt>
* <dd>状態クラスの名前の末尾に {@code Impl} を付加した名前になります.</dd>
* <dt>その他の場合</dt>
* <dd>状態クラスの名前の末尾に {@code Bean} を付加した名前になります.</dd>
* </dl>
* <p>
* 例
* </p>
* <table border="1">
* <tr>
* <th>状態クラスの名前</th>
* <th>生成される Bean クラスの名前</th>
* </tr>
* <tr>
* <td>{@code AbstractHogeBean}</td>
* <td>{@code HogeBean}</td>
* </tr>
* <tr>
* <td>{@code HogeBeanState}</td>
* <td>{@code HogeBean}</td>
* </tr>
* <tr>
* <td>{@code HogeBean}</td>
* <td>{@code HogeBeanImpl}</td>
* </tr>
* <tr>
* <td>{@code Hoge}</td>
* <td>{@code HogeBean}</td>
* </tr>
* </table>
* <h3>プロパティ</h3>
* <p>
* Bean クラスは, 状態クラスのフィールドに対する getter/setter メソッドを持ちます.
* </p>
* <h3>コンストラクタ</h3>
* <p>
* Bean クラスは状態クラスの非 {@code private} コンストラクタを引き継ぎます.
* 引き継ぐことのできるコンストラクタが一つもない場合はエラーとなります.
* </p>
*
* @author koichik
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
@Documented
public @interface JavaBean {
}
|
[
"koichik@improvement.jp"
] |
koichik@improvement.jp
|
13a194a7b866c611841da81e697ca676544e01ab
|
33a40d1cd5e52c9ec96514c68d5384505d9f0202
|
/achilles-core/src/test/java/info/archinnov/achilles/junit/AchillesTestResourceTest.java
|
0ae45d1e47b3d002022f57d8d6bd3ec1d7e01bed
|
[
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] |
permissive
|
mboudraa/Achilles
|
87271fc1c8a141aac8dca1b540d1dcd1beb7c472
|
80d1ee7baa04e11fad17eff152175dcda5c816bc
|
refs/heads/master
| 2021-01-20T11:50:10.246889
| 2013-09-03T20:32:17
| 2013-09-03T20:32:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,177
|
java
|
package info.archinnov.achilles.junit;
import static org.fest.assertions.api.Assertions.assertThat;
import info.archinnov.achilles.junit.AchillesTestResource.Steps;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
@RunWith(MockitoJUnitRunner.class)
public class AchillesTestResourceTest {
private AchillesTestResource resource;
@Test
public void should_trigger_before_and_after_when_steps_is_both() throws Throwable
{
final StringBuilder witness = new StringBuilder();
resource = new AchillesTestResource(Steps.BOTH, "table")
{
@Override
protected void truncateTables() {
witness.append("called");
}
};
resource.before();
assertThat(witness.toString()).isEqualTo("called");
witness.delete(0, witness.length());
resource.after();
assertThat(witness.toString()).isEqualTo("called");
}
@Test
public void should_trigger_only_before_when_steps_is_before() throws Throwable
{
final StringBuilder witness = new StringBuilder();
resource = new AchillesTestResource(Steps.BEFORE_TEST, "table")
{
@Override
protected void truncateTables() {
witness.append("called");
}
};
resource.before();
assertThat(witness.toString()).isEqualTo("called");
witness.delete(0, witness.length());
resource.after();
assertThat(witness.toString()).isEmpty();
}
@Test
public void should_trigger_only_after_when_steps_is_after() throws Throwable
{
final StringBuilder witness = new StringBuilder();
resource = new AchillesTestResource(Steps.AFTER_TEST, "table")
{
@Override
protected void truncateTables() {
witness.append("called");
}
};
resource.after();
assertThat(witness.toString()).isEqualTo("called");
witness.delete(0, witness.length());
resource.before();
assertThat(witness.toString()).isEmpty();
}
}
|
[
"doanduyhai@gmail.com"
] |
doanduyhai@gmail.com
|
39a9b1d727e5a5dedcf950b9d335212a466b797c
|
a1b80a8b99dc9dda23690382a27043fa7c38ee04
|
/src/main/java/de/fraunhofer/iais/eis/AppStoreBuilder.java
|
0874799a00b845502fd07469e3ad00035c56f1be
|
[] |
no_license
|
ashokkumarta/infomodel
|
35cbf78847f835f9cc16fa37949ef8bd81a16078
|
475c1d8c081024e439763e9044785ade427831a9
|
refs/heads/main
| 2023-06-24T14:21:10.937026
| 2021-07-17T09:17:54
| 2021-07-17T09:17:54
| 386,892,021
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,661
|
java
|
package de.fraunhofer.iais.eis;
import de.fraunhofer.iais.eis.util.*;
import de.fraunhofer.iais.eis.*;
import javax.xml.datatype.XMLGregorianCalendar;
import java.lang.String;
import java.math.BigInteger;
import java.net.URL;
import java.net.URI;
import java.util.*;
import javax.validation.constraints.*;
import java.util.Arrays;
import java.io.Serializable;
import javax.validation.constraints.*;
import com.fasterxml.jackson.annotation.*;
public class AppStoreBuilder {
private AppStoreImpl appStoreImpl;
public AppStoreBuilder() {
appStoreImpl = new AppStoreImpl();
}
public AppStoreBuilder(@javax.validation.constraints.NotNull URI id) {
this();
appStoreImpl.id = id;
}
final public AppStoreBuilder _hasEndpoint_(java.util.ArrayList<? extends ConnectorEndpoint> _hasEndpoint_) {
this.appStoreImpl._hasEndpoint = _hasEndpoint_;
return this;
}
final public AppStoreBuilder _hasAgent_(java.util.ArrayList<? extends URI> _hasAgent_) {
this.appStoreImpl._hasAgent = _hasAgent_;
return this;
}
final public AppStoreBuilder _resourceCatalog_(java.util.ArrayList<? extends ResourceCatalog> _resourceCatalog_) {
this.appStoreImpl._resourceCatalog = _resourceCatalog_;
return this;
}
final public AppStoreBuilder _hasDefaultEndpoint_(ConnectorEndpoint _hasDefaultEndpoint_) {
this.appStoreImpl._hasDefaultEndpoint = _hasDefaultEndpoint_;
return this;
}
final public AppStoreBuilder _authInfo_(AuthInfo _authInfo_) {
this.appStoreImpl._authInfo = _authInfo_;
return this;
}
final public AppStoreBuilder _securityProfile_(SecurityProfile _securityProfile_) {
this.appStoreImpl._securityProfile = _securityProfile_;
return this;
}
final public AppStoreBuilder _extendedGuarantee_(java.util.ArrayList<? extends SecurityGuarantee> _extendedGuarantee_) {
this.appStoreImpl._extendedGuarantee = _extendedGuarantee_;
return this;
}
final public AppStoreBuilder _maintainer_(URI _maintainer_) {
this.appStoreImpl._maintainer = _maintainer_;
return this;
}
final public AppStoreBuilder _curator_(URI _curator_) {
this.appStoreImpl._curator = _curator_;
return this;
}
final public AppStoreBuilder _inboundModelVersion_(java.util.ArrayList<? extends String> _inboundModelVersion_) {
this.appStoreImpl._inboundModelVersion = _inboundModelVersion_;
return this;
}
final public AppStoreBuilder _outboundModelVersion_(String _outboundModelVersion_) {
this.appStoreImpl._outboundModelVersion = _outboundModelVersion_;
return this;
}
final public AppStoreBuilder _physicalLocation_(Location _physicalLocation_) {
this.appStoreImpl._physicalLocation = _physicalLocation_;
return this;
}
final public AppStoreBuilder _componentCertification_(ComponentCertification _componentCertification_) {
this.appStoreImpl._componentCertification = _componentCertification_;
return this;
}
final public AppStoreBuilder _publicKey_(PublicKey _publicKey_) {
this.appStoreImpl._publicKey = _publicKey_;
return this;
}
final public AppStoreBuilder _version_(String _version_) {
this.appStoreImpl._version = _version_;
return this;
}
final public AppStoreBuilder _title_(java.util.ArrayList<? extends de.fraunhofer.iais.eis.util.TypedLiteral> _title_) {
this.appStoreImpl._title = _title_;
return this;
}
final public AppStoreBuilder _description_(java.util.ArrayList<? extends de.fraunhofer.iais.eis.util.TypedLiteral> _description_) {
this.appStoreImpl._description = _description_;
return this;
}
public final AppStore build() throws ConstraintViolationException {
VocabUtil.getInstance().validate(appStoreImpl);
return appStoreImpl;
}
}
|
[
"ashokkumar.ta@gmail.com"
] |
ashokkumar.ta@gmail.com
|
c99c3b3c507eb6d3c4cec62926d7fd38e30991c7
|
dbc38acf22abe431d7dc4d5a5631dfb4ced23c19
|
/src/main/java/aka/jmetaagents/main/tmdb/movies/moviestranslations/JMoviestranslationsResponseJacksonMapper.java
|
e2e7077f20b771d19e4c1d0fa3bdc92aaacfd166
|
[] |
no_license
|
welle/JMetaAgents
|
8cdca7f7ed08a1e38babe20cb929920fb987b789
|
8e9b15f0699f05a77889e1ed3204f89082ad3283
|
refs/heads/master
| 2021-06-12T00:17:06.075117
| 2018-10-23T05:17:07
| 2018-10-23T05:17:07
| 96,074,007
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,007
|
java
|
package aka.jmetaagents.main.tmdb.movies.moviestranslations;
import java.io.IOException;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.ObjectMapper;
/**
* This is a generated file.
*
* @author Welle
*/
public final class JMoviestranslationsResponseJacksonMapper {
/**
* Method to deserialize JSON content into a non-container type.
*
* @param jsonString
* JSon string to be deserialize.
* @return JMoviestranslationsResponse.
* @throws IOException
* @throws JsonParseException
* when non-well-formed content (content that does not conform
* to JSON syntax as per specification) is encountered.
*/
@Nullable
public static JMoviestranslationsResponse readValue(@NonNull final String jsonString) throws JsonParseException, IOException {
JMoviestranslationsResponse result = null;
if (jsonString.trim().length() > 0) {
final ObjectMapper objectMapper = new ObjectMapper();
final JsonFactory jsonFactory = new JsonFactory();
final JsonParser jp = jsonFactory.createParser(jsonString);
result = objectMapper.readValue(jp, JMoviestranslationsResponse.class);
}
return result;
}
/**
* Method that can be used to serialize given object as a JSon String.
*
* @param object
* Object to be serialize.
* @return JSon String.
* @throws IOException
* signal fatal problems with mapping of content.
*/
@Nullable
public static String writeValue(@NonNull final JMoviestranslationsResponse object) throws IOException {
final ObjectMapper objectMapper = new ObjectMapper();
return objectMapper.writeValueAsString(object);
}
}
|
[
"charlottewelle@yahoo.fr"
] |
charlottewelle@yahoo.fr
|
11769d1030fdec6e56399695f376c7cc06d20d13
|
369fb1910ab0aee739a247b5b5ffcea04bf54da5
|
/component-orm/src/main/java/com/fty1/orm/extension/injector/methods/LogicDeleteByMap.java
|
1a9aed116734ae89ed3b2bb5ca33ec3cc3fbfa06
|
[] |
no_license
|
Cray-Bear/starters
|
f0318e30c239fefd1a5079a45faf1bcc0cf34d39
|
b6537789af56988bcb1d617cc4e6e1a1ef7dfc92
|
refs/heads/master
| 2020-04-08T11:27:42.993024
| 2019-03-24T15:15:17
| 2019-03-24T15:15:17
| 159,306,956
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,842
|
java
|
/*
* Copyright (c) 2011-2019, hubin (jobob@qq.com).
* <p>
* 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
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* 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.fty1.orm.extension.injector.methods;
import com.fty1.orm.core.enums.SqlMethod;
import com.fty1.orm.core.metadata.TableInfo;
import com.fty1.orm.extension.injector.AbstractLogicMethod;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.mapping.SqlSource;
import java.util.Map;
/**
* 根据 map 条件删除
*
* @author hubin
* @since 2018-06-13
*/
public class LogicDeleteByMap extends AbstractLogicMethod {
@Override
public MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelClass, TableInfo tableInfo) {
String sql;
SqlMethod sqlMethod = SqlMethod.LOGIC_DELETE_BY_MAP;
if (tableInfo.isLogicDelete()) {
sql = String.format(sqlMethod.getSql(), tableInfo.getTableName(), sqlLogicSet(tableInfo), sqlWhereByMap(tableInfo));
} else {
sqlMethod = SqlMethod.DELETE_BY_MAP;
sql = String.format(sqlMethod.getSql(), tableInfo.getTableName(), this.sqlWhereByMap(tableInfo));
}
SqlSource sqlSource = languageDriver.createSqlSource(configuration, sql, Map.class);
return addUpdateMappedStatement(mapperClass, Map.class, sqlMethod.getMethod(), sqlSource);
}
}
|
[
"1798900899@qq.com"
] |
1798900899@qq.com
|
b3a1ccc8168b3baa6b4d71bfa373c26dce21d419
|
32b72e1dc8b6ee1be2e80bb70a03a021c83db550
|
/ast_results/guardianproject_Gibberbot/src/info/guardianproject/util/Version.java
|
d1e22c28ea7cb2c23e10fa44a4f652bf82a37128
|
[] |
no_license
|
cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning
|
d90c41a17e88fcd99d543124eeb6e93f9133cb4a
|
0564143d92f8024ff5fa6b659c2baebf827582b1
|
refs/heads/master
| 2020-07-13T13:53:40.297493
| 2019-01-11T11:51:18
| 2019-01-11T11:51:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,868
|
java
|
// isComment
package info.guardianproject.util;
public class isClassOrIsInterface implements Comparable<Version> {
private String isVariable;
public isConstructor(String isParameter) {
if (isNameExpr == null)
throw new IllegalArgumentException("isStringConstant");
if (!isNameExpr.isMethod("isStringConstant"))
throw new IllegalArgumentException("isStringConstant");
this.isFieldAccessExpr = isNameExpr;
}
@Override
public int isMethod(Version isParameter) {
if (isNameExpr == null)
return isIntegerConstant;
String[] isVariable = isNameExpr.isMethod("isStringConstant");
String[] isVariable = isNameExpr.isFieldAccessExpr.isMethod("isStringConstant");
int isVariable = isNameExpr.isMethod(isNameExpr.isFieldAccessExpr, isNameExpr.isFieldAccessExpr);
for (int isVariable = isIntegerConstant; isNameExpr < isNameExpr; isNameExpr++) {
int isVariable = isNameExpr < isNameExpr.isFieldAccessExpr ? isNameExpr.isMethod(isNameExpr[isNameExpr]) : isIntegerConstant;
int isVariable = isNameExpr < isNameExpr.isFieldAccessExpr ? isNameExpr.isMethod(isNameExpr[isNameExpr]) : isIntegerConstant;
if (isNameExpr < isNameExpr)
return -isIntegerConstant;
if (isNameExpr > isNameExpr)
return isIntegerConstant;
}
return isIntegerConstant;
}
@Override
public boolean isMethod(Object isParameter) {
if (this == isNameExpr)
return true;
if (isNameExpr == null)
return true;
if (this.isMethod() != isNameExpr.isMethod())
return true;
return this.isMethod((Version) isNameExpr) == isIntegerConstant;
}
@Override
public String isMethod() {
return isNameExpr;
}
}
|
[
"matheus@melsolucoes.net"
] |
matheus@melsolucoes.net
|
95a4824df65241d0d1bd08191c90b38a88fcf298
|
022980735384919a0e9084f57ea2f495b10c0d12
|
/src/ext_cttdt_ca/ext-impl/src/com/nss/portlet/nss_don_vi_thu_tuc/search/DonViThuTucDisplayTerms.java
|
f5f4bdaf3f25c007402e0073f9c6b0f0cbdc06c6
|
[] |
no_license
|
thaond/nsscttdt
|
474d8e359f899d4ea6f48dd46ccd19bbcf34b73a
|
ae7dacc924efe578ce655ddfc455d10c953abbac
|
refs/heads/master
| 2021-01-10T03:00:24.086974
| 2011-02-19T09:18:34
| 2011-02-19T09:18:34
| 50,081,202
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 969
|
java
|
package com.nss.portlet.nss_don_vi_thu_tuc.search;
import javax.portlet.PortletRequest;
import com.liferay.portal.kernel.dao.search.DisplayTerms;
import com.liferay.portal.kernel.util.ParamUtil;
public class DonViThuTucDisplayTerms extends DisplayTerms {
public static final String TEN_DON_VI_THU_TUC = "tenDonViThuTuc";
public static final String MO_TA = "moTa";
protected String tenDonViThuTuc;
protected String moTa;
public DonViThuTucDisplayTerms(PortletRequest portletRequest) {
super(portletRequest);
tenDonViThuTuc = ParamUtil.getString(portletRequest, TEN_DON_VI_THU_TUC);
moTa = ParamUtil.getString(portletRequest, MO_TA);
}
public String getTenDonViThuTuc() {
return tenDonViThuTuc;
}
public void setTenDonViThuTuc(String tenDonViThuTuc) {
this.tenDonViThuTuc = tenDonViThuTuc;
}
public String getMoTa() {
return moTa;
}
public void setMoTa(String moTa) {
this.moTa = moTa;
}
}
|
[
"nguyentanmo@843501e3-6f96-e689-5e61-164601347e4e"
] |
nguyentanmo@843501e3-6f96-e689-5e61-164601347e4e
|
85dbc39db3595618f7bdd0a4aa519bf3dd65cf9d
|
4ddf0512874b6833c1d39d954a90e83b235a1ac1
|
/api/src/main/java/com/api/common/controller/DjItrnAkpController.java
|
dfeefb5a12752dce3c73032dbdedf1a2c8a89e21
|
[] |
no_license
|
looooogan/icomp-4gb-api
|
a6a77882408077e6c65212f7b077c55ab83d49ab
|
4fd701c5ca694abecb05a13f2e32ab890cad3269
|
refs/heads/master
| 2020-03-17T20:11:58.057762
| 2018-06-28T09:02:26
| 2018-06-28T09:02:26
| 133,897,691
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,453
|
java
|
package com.api.common.controller;
import com.api.base.controller.BaseController;
import com.common.pojo.DjItrnAkp;
import com.common.vo.DjItrnAkpVO;
import com.service.common.IDjItrnAkpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.HashMap;
import java.util.Map;
/**
*
* @ClassName DjItrnAkpController
* @Description DjItrnAkpController控制器
* @author Jivoin
*/
@Controller
@RequestMapping("djItrnAkp")
public class DjItrnAkpController extends BaseController{
@Autowired
private IDjItrnAkpService djItrnAkpService;
/**
* @Title: add
* @Description: 添加DjItrnAkp
* @param djItrnAkp
* @throws Exception
* @return: void
*/
@RequestMapping(value = "add",method = RequestMethod.POST)
@ResponseBody
public void add(@RequestBody DjItrnAkp djItrnAkp) throws Exception{
this.djItrnAkpService.addDjItrnAkp(djItrnAkp);
}
/**
* @Title: update
* @Description: 修改DjItrnAkp
* @param djItrnAkp
* @throws Exception
* @return: void
*/
@RequestMapping(value = "upd",method = RequestMethod.POST)
@ResponseBody
public void update(@RequestBody DjItrnAkp djItrnAkp) throws Exception{
this.djItrnAkpService.updDjItrnAkp(djItrnAkp);
}
/**
* @Title: del
* @Description: 删除DjItrnAkp
* @param djItrnAkp
* @throws Exception
* @return: void
*/
@RequestMapping(value = "del",method = RequestMethod.POST)
@ResponseBody
public void del(@RequestBody DjItrnAkp djItrnAkp) throws Exception{
this.djItrnAkpService.delDjItrnAkpForLogic(djItrnAkp);
}
/**
* @Title: getDjItrnAkpByVo
* @Description: 根据查询条件查询
* @param djItrnAkpVO
* @throws Exception
* @return: void
*/
@RequestMapping(value = "search",method = RequestMethod.POST)
@ResponseBody
public DjItrnAkp getDjItrnAkpByVo(@RequestBody DjItrnAkpVO djItrnAkpVO) throws Exception{
return this.djItrnAkpService.getDjItrnAkp(djItrnAkpVO);
}
/**
* @Title: getDjItrnAkpByPage
* @Description: 根据查询条件查询
* @param djItrnAkpVO
* @throws Exception
* @return: void
*/
@RequestMapping(value = "list",method = RequestMethod.POST)
@ResponseBody
public Map<String, Object> getDjItrnAkpByPage(@RequestBody DjItrnAkpVO djItrnAkpVO) throws Exception{
Map<String,Object> result = new HashMap<>();
result.put("data",this.djItrnAkpService.getDjItrnAkpByPage(djItrnAkpVO));
result.put("vo",djItrnAkpVO);
return result;
}
/**
* @Title: toListPage
* @Description: 跳转到列表页面
* @throws Exception
* @return: void
*/
@RequestMapping("toListPage")
public String toListPage() throws Exception{
return "/djItrnAkp/djItrnAkpList";
}
/**
* @Title: toInsAndUpdPage
* @Description: 跳转到添加 修改页面
* @throws Exception
* @return: void
*/
@RequestMapping("toInsAndUpdPage")
public String toInsAndUpdPage() throws Exception{
return "/djItrnAkp/djItrnAkpInsAndUpd";
}
}
|
[
"logan.box2016@gmail.com"
] |
logan.box2016@gmail.com
|
cd944948155bf826da78886fcf4d35f3bb866f95
|
1f2693e57a8f6300993aee9caa847d576f009431
|
/testleo/myfaces-skins2/trinidad-core-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/base/desktop/GlobalButtonRenderer.java
|
47a01671574837e04053a24e2eccb649a9e9acc8
|
[
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] |
permissive
|
mr-sobol/myfaces-csi
|
ad80ed1daadab75d449ef9990a461d9c06d8c731
|
c142b20012dda9c096e1384a46915171bf504eb8
|
refs/heads/master
| 2021-01-10T06:11:13.345702
| 2009-01-05T09:46:26
| 2009-01-05T09:46:26
| 43,557,323
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,133
|
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.myfaces.trinidadinternal.ui.laf.base.desktop;
import java.io.IOException;
import javax.faces.context.ResponseWriter;
import org.apache.myfaces.trinidadinternal.ui.UINode;
import org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext;
import org.apache.myfaces.trinidadinternal.ui.action.ClientAction;
import org.apache.myfaces.trinidadinternal.ui.action.ClientActionUtils;
import org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.LinkUtils;
import org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.XhtmlLafUtils;
/**
* Renderer for global buttons
*
* @version $Name: $ ($Revision$) $Date$
* @deprecated This class comes from the old Java 1.2 UIX codebase and should not be used anymore.
*/
@Deprecated
public class GlobalButtonRenderer extends HtmlLafRenderer
{
/**
*
*/
@Override
protected void prerender(UIXRenderingContext context, UINode node)
throws IOException
{
// If we've got a ClientAction, let it write its dependencies
// before we start rendering the link
ClientAction action = ClientActionUtils.getPrimaryClientAction(context,
node);
if (action != null)
action.writeDependencies(context, node);
super.prerender(context, node);
Object iconURI = node.getAttributeValue(context, ICON_ATTR);
// Okay - now we can render. Get our other render attributes
Object text = getText(context, node);
Object styleClass = getStyleClass(context, node);
Object destination = getDestination(context, node);
Object shortDesc = getShortDesc(context, node);
if ( shortDesc == null )
shortDesc = text;
boolean isLink = (destination != null);
ResponseWriter writer = context.getResponseWriter();
writer.startElement(LINK_ELEMENT, null);
renderID(context, node);
super.renderEventHandlers(context, node);
renderStyleClassAttribute(context, styleClass);
if (isLink)
{
renderEncodedActionURI(context, HREF_ATTRIBUTE, destination);
renderAttribute(context, node,
TARGET_FRAME_ATTRIBUTE, TARGET_FRAME_ATTR);
}
if ( iconURI != null )
{
writer.startElement(IMAGE_ELEMENT, null);
renderStyleClassAttribute(context, AF_MENU_BUTTONS_IMAGE_STYLE_CLASS);
renderEncodedResourceURI(context, SOURCE_ATTRIBUTE, iconURI);
renderAltAndTooltipForImage(context, shortDesc);
renderAttribute(context, BORDER_ATTRIBUTE, 0);
renderAttribute(context, node, WIDTH_ATTRIBUTE, WIDTH_ATTR);
renderAttribute(context, node, HEIGHT_ATTRIBUTE, HEIGHT_ATTR);
writer.endElement(IMAGE_ELEMENT);
}
if (text != null)
writer.writeText(text, TEXT_ATTR.getAttributeName());
writer.endElement(LINK_ELEMENT);
}
@Override
protected void renderContent(
UIXRenderingContext context,
UINode node
)
{
// Don't bother with renderContent - it's all done in the prerender
}
/*
* @todo added basic fireAction support, didn't do the part commented out
* about _getPartialChangeScript if action is null
*/
@Override
protected Object getOnClick(
UIXRenderingContext context,
UINode node
)
{
// Disabled is already checked before we render
if (isSelected(context, node))
return null;
// We build up the actual onclick handler by chaining the value the
// ONCLICK_ATTR with the script of the PRIMARY_CLIENT_ACTION_ATTR.
// Since we get the onclick handler multiple times (getDestination(),
// which is called multiple times, and renderEventHandlers()), and
// since building up the handler can be expensive, we store the
// script in a local property, so that this work does not need to
// be repeated.
Object prop = context.getLocalProperty(0,
_LOCAL_ON_CLICK_KEY,
_NONE);
if (prop != _NONE)
return prop;
Object onClick = super.getOnClick(context, node);
ClientAction action = ClientActionUtils.getPrimaryClientAction(context,
node);
String actionScript = null;
if (action != null)
{
if (action.renderAsEvent(context, node) &&
(getDestinationAttr(context, node) == null))
{
// We must ignore actionScript if there is a destination or else the
// destination will never execute because the onclick will run first.
actionScript = action.getScript(context, node, Boolean.FALSE);
}
}
/*
else
{
// If we don't have a ClientAction, check to see if we've got
// partial targets provided by an ancestor link container.
actionScript = _getPartialChangeScript(context, node);
}
*/
Object chainedScript = null;
if ((onClick != null) || (actionScript != null))
{
chainedScript = XhtmlLafUtils.getChainedJS(onClick,
actionScript,
true);
}
// Store away the script for next time
context.setLocalProperty(_LOCAL_ON_CLICK_KEY, chainedScript);
return chainedScript;
}
protected Object getDestination(
UIXRenderingContext context,
UINode node
)
{
if (isDisabled(context, node) || isSelected(context, node))
return null;
Object destination;
if (supportsNavigation(context))
destination = node.getAttributeValue(context, DESTINATION_ATTR);
else
destination = null;
// If we have an onclick handler, always provide a destination
if ((destination == null) &&
supportsIntrinsicEvents(context))
{
Object onClick = getOnClick(context, node);
if (onClick != null)
{
destination = "#";
}
}
return destination;
}
protected final String getDestinationAttr(
UIXRenderingContext context,
UINode node
)
{
return XhtmlLafUtils.getLocalTextAttribute(context,
node,
DESTINATION_ATTR);
}
protected static boolean isSelected(
UIXRenderingContext context,
UINode node
)
{
boolean selectedAttr = Boolean.TRUE.equals(node.getAttributeValue(context, SELECTED_ATTR));
boolean linkProp = LinkUtils.isSelected(context);
return (selectedAttr || linkProp);
}
@Override
protected Object getStyleClass(
UIXRenderingContext context,
UINode node
)
{
Object styleClass = super.getStyleClass(context, node);
if (styleClass == null)
{
styleClass = (isSelected(context, node))
? AF_MENU_BUTTONS_TEXT_SELECTED_STYLE_CLASS
: (isDisabled(context, node))
? AF_MENU_BUTTONS_TEXT_DISABLED_STYLE_CLASS
: AF_MENU_BUTTONS_TEXT_STYLE_CLASS;
}
return styleClass;
}
// object indicating that there is no local property
private static final Object _NONE = new Object();
// object used to store the local copy of the onClick handler
private static final Object _LOCAL_ON_CLICK_KEY = new Object();
}
|
[
"lu4242@ea1d4837-9632-0410-a0b9-156113df8070"
] |
lu4242@ea1d4837-9632-0410-a0b9-156113df8070
|
c1a6268d1ec361d4cde2085aa03aa3fd941f67d6
|
09d0ddd512472a10bab82c912b66cbb13113fcbf
|
/TestApplications/TF-BETA-THERMATK-v5.7.1/DecompiledCode/Procyon/src/main/java/com/google/android/exoplayer2/text/webvtt/Mp4WebvttSubtitle.java
|
e6afd9dc4608c27b34327901ef3f6a9c5f81607a
|
[] |
no_license
|
sgros/activity_flow_plugin
|
bde2de3745d95e8097c053795c9e990c829a88f4
|
9e59f8b3adacf078946990db9c58f4965a5ccb48
|
refs/heads/master
| 2020-06-19T02:39:13.865609
| 2019-07-08T20:17:28
| 2019-07-08T20:17:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,198
|
java
|
//
// Decompiled by Procyon v0.5.34
//
package com.google.android.exoplayer2.text.webvtt;
import com.google.android.exoplayer2.util.Assertions;
import java.util.Collections;
import com.google.android.exoplayer2.text.Cue;
import java.util.List;
import com.google.android.exoplayer2.text.Subtitle;
final class Mp4WebvttSubtitle implements Subtitle
{
private final List<Cue> cues;
public Mp4WebvttSubtitle(final List<Cue> list) {
this.cues = Collections.unmodifiableList((List<? extends Cue>)list);
}
@Override
public List<Cue> getCues(final long n) {
List<Cue> list;
if (n >= 0L) {
list = this.cues;
}
else {
list = Collections.emptyList();
}
return list;
}
@Override
public long getEventTime(final int n) {
Assertions.checkArgument(n == 0);
return 0L;
}
@Override
public int getEventTimeCount() {
return 1;
}
@Override
public int getNextEventTimeIndex(final long n) {
int n2;
if (n < 0L) {
n2 = 0;
}
else {
n2 = -1;
}
return n2;
}
}
|
[
"crash@home.home.hr"
] |
crash@home.home.hr
|
6890215e4366f3eb40d461cf39cca3201337eddd
|
4373f806dbd2ad3465c77f1ca03828b9a589abc1
|
/core/src/org/javarosa/core/model/SubmissionProfile.java
|
b74bedca769c7c1956d5580c676a7748e05e95cf
|
[
"Apache-2.0"
] |
permissive
|
wpride/javarosa
|
18e00154e36cdb18ace3df195c5a79241cc85955
|
4a22fecc295c23a088410d2ca65177fbb1866a6b
|
refs/heads/master
| 2020-04-15T13:49:32.928238
| 2014-07-23T19:11:57
| 2014-07-23T19:11:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,404
|
java
|
/**
*
*/
package org.javarosa.core.model;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.util.Hashtable;
import org.javarosa.core.util.externalizable.DeserializationException;
import org.javarosa.core.util.externalizable.ExtUtil;
import org.javarosa.core.util.externalizable.ExtWrapMap;
import org.javarosa.core.util.externalizable.ExtWrapTagged;
import org.javarosa.core.util.externalizable.Externalizable;
import org.javarosa.core.util.externalizable.PrototypeFactory;
/**
* A Submission Profile is a class which is responsible for
* holding and processing the details of how a submission
* should be handled.
*
* @author ctsims
*
*/
public class SubmissionProfile implements Externalizable {
IDataReference ref;
String method;
String action;
String mediaType;
Hashtable<String,String> attributeMap;
public SubmissionProfile() {
}
public SubmissionProfile(IDataReference ref, String method, String action, String mediatype) {
this(ref, method, action, mediatype, new Hashtable<String, String>());
}
public SubmissionProfile(IDataReference ref, String method, String action, String mediatype, Hashtable<String,String> attributeMap) {
this.method = method;
this.ref = ref;
this.action = action;
this.mediaType = mediatype;
this.attributeMap = attributeMap;
}
public IDataReference getRef() {
return ref;
}
public String getMethod() {
return method;
}
public String getAction() {
return action;
}
public String getMediaType() {
return mediaType;
}
public String getAttribute(String name) {
return attributeMap.get(name);
}
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException {
ref = (IDataReference)ExtUtil.read(in, new ExtWrapTagged(IDataReference.class));
method = ExtUtil.readString(in);
action = ExtUtil.readString(in);
mediaType = ExtUtil.nullIfEmpty(ExtUtil.readString(in));
attributeMap = (Hashtable<String, String>)ExtUtil.read(in, new ExtWrapMap(String.class, String.class));
}
public void writeExternal(DataOutputStream out) throws IOException {
ExtUtil.write(out, new ExtWrapTagged(ref));
ExtUtil.writeString(out, method);
ExtUtil.writeString(out, action);
ExtUtil.writeString(out, ExtUtil.emptyIfNull(mediaType));
ExtUtil.write(out, new ExtWrapMap(attributeMap));
}
}
|
[
"wpride@dimagi.com"
] |
wpride@dimagi.com
|
e75e3a20d39e0c92613652e6d9ecc2e7be056a6a
|
78a0dc1be47877910f61dcbac065b318db389ed7
|
/src/main/java/cn/ibdsr/web/modular/platform/cash/transfer/WithdrawalQueryDTO.java
|
48decc78a6f4f84d545ba8e957e0cf3c8611b3e3
|
[] |
no_license
|
wangdeming/eshop-admin
|
1d3f4b5062bafd8a8a3a3349f5768e8e98be1ea0
|
d2112ca85236ab812d8f9bbb5e78333db73e99e9
|
refs/heads/master
| 2022-09-19T16:04:35.420487
| 2020-06-04T03:12:46
| 2020-06-04T03:12:46
| 269,248,516
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 704
|
java
|
package cn.ibdsr.web.modular.platform.cash.transfer;
/**
* @Description: 提现列表查询DTO
* @Version: V1.0
* @CreateDate: 2019-04-22 16:53:11
*
* Date Author Description
* ----------------------------------------------------------
* 2019-04-22 16:53:11 XuZhipeng 类说明
*
*/
public class WithdrawalQueryDTO extends QueryDTO {
/**
* 提现状态(1-待审核;2-审核通过待打款;3-提现成功;4-审核不通过;)
*/
private Integer wdStatus;
public Integer getWdStatus() {
return wdStatus;
}
public void setWdStatus(Integer wdStatus) {
this.wdStatus = wdStatus;
}
}
|
[
"774555916@qq.com"
] |
774555916@qq.com
|
d7092ef341b62b7b652346ba0d519562c8270c1b
|
620c1306f8b7bc3f5943018aea8e273a058a3c32
|
/src/main/java/joshie/enchiridion/gui/book/features/recipe/RecipeHandlerFurnace.java
|
ee632e00b78b8797ba70cf1d9c649c5a0f82334a
|
[
"MIT"
] |
permissive
|
Searge-DP/Enchiridion
|
48f4d74dceb4bc56bd374b9956eddae0561f8eca
|
4c8110980b5fed8bf5b350f30707cc38efee2f28
|
refs/heads/master
| 2021-01-21T19:01:33.848747
| 2016-03-01T23:30:22
| 2016-03-01T23:30:22
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,514
|
java
|
package joshie.enchiridion.gui.book.features.recipe;
import java.util.List;
import java.util.Map;
import joshie.enchiridion.api.EnchiridionAPI;
import joshie.enchiridion.api.recipe.IRecipeHandler;
import net.minecraft.client.Minecraft;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.FurnaceRecipes;
public class RecipeHandlerFurnace extends RecipeHandlerBase {
private static WrappedFuelStack fuels;
public RecipeHandlerFurnace() {}
public RecipeHandlerFurnace(ItemStack output, ItemStack input) {
stackList.add(new WrappedStack(output, 110D, 32D, 2.5F));
stackList.add(new WrappedStack(input, 0D, 0D, 2.5F));
if (fuels == null) fuels = new WrappedFuelStack(0D, 65D, 2.5F);
stackList.add(fuels);
addToUnique(Item.itemRegistry.getNameForObject(input.getItem()));
addToUnique(input.getItemDamage());
}
@Override
public void addRecipes(ItemStack output, List<IRecipeHandler> list) {
Map<ItemStack, ItemStack> smeltingList = FurnaceRecipes.instance().getSmeltingList();
for (ItemStack key : smeltingList.keySet()) {
ItemStack stack = smeltingList.get(key);
if (stack == null) continue;
if (stack.isItemEqual(output)) {
list.add(new RecipeHandlerFurnace(stack, key));
}
}
}
@Override
public String getRecipeName() {
return "VanillaFurnace";
}
@Override
public double getHeight(double width) {
return width * 1.1D;
}
@Override
public double getWidth(double width) {
return width;
}
@Override
public float getSize(double width) {
return (float) (width / 110D);
}
private int burnTime = 0;
private int getBurnTimeRemainingScaled(int scale) {
if (burnTime == 0) {
burnTime = 2000;
} else burnTime--;
return burnTime * scale / 2000;
}
private double getHeightForScaled(int i1) {
return i1;
}
protected void drawBackground() {
Minecraft.getMinecraft().getTextureManager().bindTexture(location);
EnchiridionAPI.draw.drawTexturedRectangle(55D, 38D, 1, 63, 20, 14, 1.75F);
int i1 = getBurnTimeRemainingScaled(13);
EnchiridionAPI.draw.drawTexturedReversedRectangle(44D, 56D, 0, 85, 14, 14, 1.75F);
EnchiridionAPI.draw.drawTexturedReversedRectangle(44D, 46D + 12D, 14, 98 - i1, 14, i1 + 1, 1.75F);
}
}
|
[
"joshjackwildman@gmail.com"
] |
joshjackwildman@gmail.com
|
62d038f3d40c5918c33464fa9866a0fdd521940f
|
6ffd590dbf461bd5bc68c75ed8357c3bc85a2bea
|
/dl4j-eclipse/src/deeplearning4j_core/src/test/java/org/deeplearning4j/eval/EvaluationToolsTests.java
|
ad59c22a1bf0a70afca8dd469d619bff50bc9a65
|
[] |
no_license
|
nagyistge/dl4j_for_eclipse
|
e017fcfd545c879e18f91d36c15d46872fba390f
|
8fb1a2d813dd064d7b46e24e8b696c364d84c6b6
|
refs/heads/master
| 2021-06-14T16:11:23.572374
| 2017-02-13T07:15:41
| 2017-02-13T07:15:41
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,560
|
java
|
package deeplearning4j_core.src.test.java.org.deeplearning4j.eval;
//import org.deeplearning4j.datasets.iterator.impl.IrisDataSetIterator;
//import org.deeplearning4j.evaluation.EvaluationTools;
//import org.deeplearning4j.nn.conf.MultiLayerConfiguration;
//import org.deeplearning4j.nn.conf.NeuralNetConfiguration;
//import org.deeplearning4j.nn.conf.layers.DenseLayer;
//import org.deeplearning4j.nn.conf.layers.OutputLayer;
//import org.deeplearning4j.nn.multilayer.MultiLayerNetwork;
//import org.deeplearning4j.nn.weights.WeightInit;
import java.util.Arrays;
import org.junit.Test;
import org.nd4j.linalg.activations.Activation;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.dataset.api.DataSet;
import org.nd4j.linalg.dataset.api.iterator.DataSetIterator;
import org.nd4j.linalg.dataset.api.preprocessor.NormalizerStandardize;
import org.nd4j.linalg.factory.Nd4j;
import org.nd4j.linalg.lossfunctions.LossFunctions;
import deeplearning4j_core.src.main.java.org.deeplearning4j.datasets.iterator.impl.IrisDataSetIterator;
import deeplearning4j_core.src.main.java.org.deeplearning4j.evaluation.EvaluationTools;
import deeplearning4j_nn.src.main.java.org.deeplearning4j.eval.ROC;
import deeplearning4j_nn.src.main.java.org.deeplearning4j.eval.ROCMultiClass;
import deeplearning4j_nn.src.main.java.org.deeplearning4j.nn.conf.MultiLayerConfiguration;
import deeplearning4j_nn.src.main.java.org.deeplearning4j.nn.conf.NeuralNetConfiguration;
import deeplearning4j_nn.src.main.java.org.deeplearning4j.nn.conf.layers.DenseLayer;
import deeplearning4j_nn.src.main.java.org.deeplearning4j.nn.conf.layers.OutputLayer;
import deeplearning4j_nn.src.main.java.org.deeplearning4j.nn.multilayer.MultiLayerNetwork;
import deeplearning4j_nn.src.main.java.org.deeplearning4j.nn.weights.WeightInit;
/**
* Created by Alex on 07/01/2017.
*/
public class EvaluationToolsTests {
@Test
public void testRocHtml() throws Exception {
DataSetIterator iter = new IrisDataSetIterator(150, 150);
MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()
.weightInit(WeightInit.XAVIER)
.list()
.layer(0, new DenseLayer.Builder().nIn(4).nOut(4).activation(Activation.TANH).build())
.layer(1, new OutputLayer.Builder().nIn(4).nOut(2).activation(Activation.SOFTMAX).lossFunction(LossFunctions.LossFunction.MCXENT).build())
.build();
MultiLayerNetwork net = new MultiLayerNetwork(conf);
net.init();
NormalizerStandardize ns = new NormalizerStandardize();
DataSet ds = iter.next();
ns.fit(ds);
ns.transform(ds);
INDArray newLabels = Nd4j.create(150,2);
newLabels.getColumn(0).assign(ds.getLabels().getColumn(0));
newLabels.getColumn(0).addi(ds.getLabels().getColumn(1));
newLabels.getColumn(1).assign(ds.getLabels().getColumn(2));
ds.setLabels(newLabels);
for( int i=0; i<30; i++ ) {
net.fit(ds);
}
ROC roc = new ROC(20);
iter.reset();
INDArray f = ds.getFeatures();
INDArray l = ds.getLabels();
INDArray out = net.output(f);
roc.eval(l, out);
String str = EvaluationTools.rocChartToHtml(roc);
// System.out.println(str);
}
@Test
public void testRocMultiToHtml() throws Exception {
DataSetIterator iter = new IrisDataSetIterator(150, 150);
MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()
.weightInit(WeightInit.XAVIER)
.list()
.layer(0, new DenseLayer.Builder().nIn(4).nOut(4).activation(Activation.TANH).build())
.layer(1, new OutputLayer.Builder().nIn(4).nOut(3).activation(Activation.SOFTMAX).lossFunction(LossFunctions.LossFunction.MCXENT).build())
.build();
MultiLayerNetwork net = new MultiLayerNetwork(conf);
net.init();
NormalizerStandardize ns = new NormalizerStandardize();
DataSet ds = iter.next();
ns.fit(ds);
ns.transform(ds);
for( int i=0; i<30; i++ ) {
net.fit(ds);
}
ROCMultiClass roc = new ROCMultiClass(20);
iter.reset();
INDArray f = ds.getFeatures();
INDArray l = ds.getLabels();
INDArray out = net.output(f);
roc.eval(l, out);
String str = EvaluationTools.rocChartToHtml(roc, Arrays.asList("setosa", "versicolor", "virginica"));
// System.out.println(str);
}
}
|
[
"iamlamd@yahoo.co.jp"
] |
iamlamd@yahoo.co.jp
|
ea8f71c43153f7306d7665cce55ea094a219cd50
|
f55e0f08bbbbde3bbf06b83c822a93d54819b1e8
|
/livebody_verify_lib/src/main/java/com/jqsoft/livebody_verify_lib/certificateCamera/CameraPreview.java
|
83e392e205ae6d2f93c1be2c2d377a43b02f779b
|
[] |
no_license
|
moshangqianye/nursing
|
27e58e30a51424502f1b636ae47b60b81a3b2ca0
|
20cd5aace59555ef9d708df0fb03639b2fc843d0
|
refs/heads/master
| 2020-09-08T13:39:55.939252
| 2020-03-20T09:55:34
| 2020-03-20T09:55:34
| 221,147,807
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,481
|
java
|
package com.jqsoft.livebody_verify_lib.certificateCamera;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.Configuration;
import android.hardware.Camera;
import android.os.Build;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import java.util.List;
/**
* Created by smartown on 2018/2/24 11:46.
* <br>
* Desc:
* <br>
* 相机预览封装
*/
public class CameraPreview extends SurfaceView implements SurfaceHolder.Callback {
private static String TAG = CameraPreview.class.getName();
private Camera camera;
public CameraPreview(Context context) {
super(context);
init();
}
public CameraPreview(Context context, AttributeSet attrs) {
super(context, attrs);
init();
}
public CameraPreview(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
init();
}
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public CameraPreview(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
init();
}
private void init() {
SurfaceHolder surfaceHolder = getHolder();
surfaceHolder.addCallback(this);
surfaceHolder.setKeepScreenOn(true);
surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
}
public void surfaceCreated(SurfaceHolder holder) {
camera = CameraUtils.openCamera();
if (camera != null) {
try {
camera.setPreviewDisplay(holder);
Camera.Parameters parameters = camera.getParameters();
if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
//竖屏拍照时,需要设置旋转90度,否者看到的相机预览方向和界面方向不相同
camera.setDisplayOrientation(90);
parameters.setRotation(90);
} else {
camera.setDisplayOrientation(0);
parameters.setRotation(0);
}
Camera.Size bestSize = getBestSize(parameters.getSupportedPreviewSizes());
if (bestSize != null) {
parameters.setPreviewSize(bestSize.width, bestSize.height);
parameters.setPictureSize(bestSize.width, bestSize.height);
} else {
parameters.setPreviewSize(1920, 1080);
parameters.setPictureSize(1920, 1080);
}
camera.setParameters(parameters);
camera.startPreview();
focus();
} catch (Exception e) {
Log.d(TAG, "Error setting camera preview: " + e.getMessage());
try {
Camera.Parameters parameters = camera.getParameters();
if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
//竖屏拍照时,需要设置旋转90度,否者看到的相机预览方向和界面方向不相同
camera.setDisplayOrientation(90);
parameters.setRotation(90);
} else {
camera.setDisplayOrientation(0);
parameters.setRotation(0);
}
camera.setParameters(parameters);
camera.startPreview();
focus();
} catch (Exception e1) {
e.printStackTrace();
camera = null;
}
}
}
}
public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {
//因为设置了固定屏幕方向,所以在实际使用中不会触发这个方法
}
public void surfaceDestroyed(SurfaceHolder holder) {
//回收释放资源
release();
}
/**
* Android相机的预览尺寸都是4:3或者16:9,这里遍历所有支持的预览尺寸,得到16:9的最大尺寸,保证成像清晰度
*
* @param sizes
* @return 最佳尺寸
*/
private Camera.Size getBestSize(List<Camera.Size> sizes) {
Camera.Size bestSize = null;
for (Camera.Size size : sizes) {
if ((float) size.width / (float) size.height == 16.0f / 9.0f) {
if (bestSize == null) {
bestSize = size;
} else {
if (size.width > bestSize.width) {
bestSize = size;
}
}
}
}
return bestSize;
}
/**
* 释放资源
*/
private void release() {
if (camera != null) {
camera.stopPreview();
camera.release();
camera = null;
}
}
/**
* 对焦,在CameraActivity中触摸对焦
*/
public void focus() {
if (camera != null) {
camera.autoFocus(null);
}
}
/**
* 开关闪光灯
*
* @return 闪光灯是否开启
*/
public boolean switchFlashLight() {
if (camera != null) {
try {
Camera.Parameters parameters = camera.getParameters();
if (TextUtils.equals(parameters.getFlashMode(),Camera.Parameters.FLASH_MODE_OFF)) {
parameters.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);
camera.setParameters(parameters);
return true;
} else {
parameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);
camera.setParameters(parameters);
return false;
}
}catch (Exception e){
e.printStackTrace();
}
}
return false;
}
/**
* 拍摄照片
*
* @param pictureCallback 在pictureCallback处理拍照回调
*/
public void takePhoto(Camera.PictureCallback pictureCallback) {
if (camera != null) {
camera.takePicture(null, null, pictureCallback);
}
}
public void startPreview() {
if (camera != null) {
camera.startPreview();
}
}
}
|
[
"123456"
] |
123456
|
e89ca78f3ff20f0a9360382a3d6bc393b2b1196d
|
5841ebcb90abaad976c31e1929f72de86a30397b
|
/likp_ai/trunk/webproject/src/main/java/com/lkp/dao/TlkUserwechatinfoEntityDao.java
|
ceec62215524900266cd4a5f58b6d37326401036
|
[] |
no_license
|
JustForMyDream/lkp_ai
|
4e95a375f07449221ef0111e5cfa787d93800bfc
|
96f8b24abe9fc6f67814a7eab2a139677df952e0
|
refs/heads/master
| 2021-07-09T12:24:47.790259
| 2017-10-08T08:57:29
| 2017-10-08T08:57:29
| 106,161,465
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 382
|
java
|
package com.lkp.dao;
import com.lkp.entity.TlkUserwechatinfoEntity;
/**
*
* 用户微信信息dao
*/
public interface TlkUserwechatinfoEntityDao extends BaseDao<TlkUserwechatinfoEntity> {
/**
* 通过openid获取用户和微信信息的关联
* @param openid
* @return
*/
TlkUserwechatinfoEntity getTlkUserwechatinfoEntityByOpenid(String openid);
}
|
[
"2589475332@qq.com"
] |
2589475332@qq.com
|
ba7c9ec8fa02e581648e924226c0a9a60aafa537
|
cc35bbc9bda475fc3809c30b573ee2f0ffaeb06b
|
/EASy-Standalone/EASyCommandLine/src/de/uni_hildesheim/sse/easy/cmd/ModelLoadDefinition.java
|
a12ac08545c32a7687cef23ac8e8ba4cf7927cca
|
[
"Apache-2.0"
] |
permissive
|
ahmedjaved2109/EASyProducer
|
833afd006feb6d2a1f1fcc9eb82b79db2aa51ae7
|
c08f831599a9f5993ed1bd144ccdadab3d1d97ed
|
refs/heads/master
| 2021-01-18T11:09:08.843648
| 2016-03-17T20:29:40
| 2016-03-17T20:29:40
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,544
|
java
|
package de.uni_hildesheim.sse.easy.cmd;
import de.uni_hildesheim.sse.utils.modelManagement.IModelData;
import de.uni_hildesheim.sse.utils.modelManagement.Version;
import de.uni_hildesheim.sse.utils.modelManagement.VersionFormatException;
/**
* Datatype for loading a IModel, i.e. a {@link de.uni_hildesheim.sse.model.varModel.Project}
* or {@link de.uni_hildesheim.sse.easy_producer.instantiator.model.buildlangModel.Script},
* while using only String parameters.
* @author El-Sharkawy
*
*/
public class ModelLoadDefinition implements IModelData {
private String modelName;
private Version version;
/**
* Sole constructor for this datatype.
* @param modelName The name of the IModel which shall be loaded (Must not be <tt>null</tt>).
* @param version The Version of the IModel, which shall be loaded (can be <tt>null</tt>).
* @throws VersionFormatException In case of format problems
* @throws NullPointerException If the modelName is <tt>null</tt>.
*/
public ModelLoadDefinition(String modelName, String version) throws VersionFormatException {
if (null == modelName) {
throw new NullPointerException("Model name must not be null");
}
this.modelName = modelName;
this.version = null != version ? new Version(version) : null;
}
@Override
public String getName() {
return modelName;
}
@Override
public Version getVersion() {
return version;
}
}
|
[
"elscha@sse.uni-hildesheim.de"
] |
elscha@sse.uni-hildesheim.de
|
e9b56f2ad732b9b0744a99c3ea7e4236d09154e9
|
74e94b19b8a9748558bbaa2b86d4e7c6db835e2f
|
/core/redirector/src/com/comcast/redirector/core/balancer/serviceprovider/StaticServiceProviderFactory.java
|
32dd9a8bd41c13fa5f179ecb81d21c5b54fe3dbe
|
[
"Apache-2.0"
] |
permissive
|
Comcast/redirector
|
b236567e2bae687e0189c2cdc45731dd8c055a1a
|
6770fe01383bc7ea110c7c8e14c137212ebc0ba1
|
refs/heads/master
| 2021-03-27T20:48:38.988332
| 2019-09-26T08:39:18
| 2019-09-26T08:39:18
| 80,451,996
| 10
| 13
|
Apache-2.0
| 2019-09-26T08:39:19
| 2017-01-30T18:50:31
|
Java
|
UTF-8
|
Java
| false
| false
| 6,650
|
java
|
/**
* Copyright 2017 Comcast Cable Communications Management, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @author Alexander Binkovsky (abinkovski@productengine.com)
*/
package com.comcast.redirector.core.balancer.serviceprovider;
import com.comcast.redirector.api.model.xrestack.HostIPs;
import com.comcast.redirector.api.model.xrestack.XreStackPath;
import com.comcast.tvx.cloud.MetaData;
import com.comcast.redirector.core.config.ZKConfig;
import com.comcast.redirector.core.balancer.serviceprovider.weight.InstanceWeigher;
import com.comcast.redirector.core.balancer.util.ServiceProviderUtils;
import org.apache.curator.x.discovery.*;
import org.apache.curator.x.discovery.details.InstanceProvider;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.util.*;
class StaticServiceProviderFactory implements IStaticServiceProviderFactory {
private ProviderStrategy<MetaData> providerStrategy;
private ZKConfig config;
StaticServiceProviderFactory(ProviderStrategy<MetaData> providerStrategy, ZKConfig config) {
this.providerStrategy = providerStrategy;
this.config = config;
}
@Override
public IFilteredServiceProvider createServiceProvider(XreStackPath servicePath, List<HostIPs> hosts) {
return new StackServiceProvider(
new StaticServiceProvider(providerStrategy, servicePath.getServiceName(), hosts, config),
servicePath);
}
private static class StaticServiceProvider implements ServiceProvider<MetaData> {
private static Logger log = LoggerFactory.getLogger(StaticServiceProvider.class);
private final ProviderStrategy<MetaData> providerStrategy;
private final InstanceProvider<MetaData> instanceProvider;
/**
* @param providerStrategy strategy of selecting particular service instance (host)
* @param serviceName name of service served by the provider, e.g. xreGuide
* @param serviceInstances list of serviceInstances ([host]:[port]) running particular service
*/
StaticServiceProvider(ProviderStrategy<MetaData> providerStrategy, String serviceName,
List<HostIPs> serviceInstances, ZKConfig config) {
this.providerStrategy = providerStrategy;
this.instanceProvider = new StaticInstanceProvider(serviceName, serviceInstances, config);
}
@Override
public void start() throws Exception {
throw new UnsupportedOperationException("no need to start offline service provider");
}
@Override
public ServiceInstance<MetaData> getInstance() throws Exception {
return providerStrategy.getInstance(instanceProvider);
}
@Override
public Collection<ServiceInstance<MetaData>> getAllInstances() throws Exception {
return instanceProvider.getInstances();
}
@Override
public void noteError(ServiceInstance<MetaData> instance) {
throw new UnsupportedOperationException("noteError is not supported");
}
@Override
public void close() throws IOException {
try {
instanceProvider.getInstances().clear();
} catch (Exception e) {
log.error("Can't close provider ", e);
}
}
/**
* Provider holds static list {@link org.apache.curator.x.discovery.ServiceInstance} objects
*/
private static class StaticInstanceProvider implements InstanceProvider<MetaData> {
private final List<ServiceInstance<MetaData>> instances;
private final ZKConfig config;
private final InstanceWeigher weigher;
/**
* @param serviceName name of service served by the provider, e.g. xreGuide
* @param instances list of service ids this provider holds. Service id is [ip address]:[port]
*/
StaticInstanceProvider(String serviceName, List<HostIPs> instances, ZKConfig config) {
this.config = config;
this.instances = new ArrayList<>(getFinalInstancesSize(instances));
this.weigher = new InstanceWeigher(config);
try {
for (HostIPs instance : instances) {
ServiceInstanceBuilder<MetaData> builder = new LiteServiceInstanceBuilder();
ServiceInstance<MetaData> serviceInstance = builder.id(instance.getIpV4Address()) // id is <ip address>:<port>
.name(serviceName)
.address(instance.getIpV4Address()) // get address from instance id
.payload(ServiceProviderUtils.getMetaDataFromHost(instance))
.build();
int weight = weigher.getWeight(serviceInstance);
if (weight > 0) {
for (int i = 0; i < weight; i++) {
this.instances.add(serviceInstance);
}
}
else {
log.warn("No traffic will be sent to the host: IPv4={} IPv6={}, because its weight is {}, but should be above 0.",
String.valueOf(instance.getIpV4Address()), String.valueOf(instance.getIpV4Address()), instance.getWeight());
}
}
Collections.shuffle(this.instances, new Random(System.currentTimeMillis()));
} catch (Exception e) {
log.error("failed to build offline instance provider", e);
}
}
@Override
public List<ServiceInstance<MetaData>> getInstances() throws Exception {
return instances;
}
private int getFinalInstancesSize(List<HostIPs> instances) {
return instances.size() > 0 ? instances.size() * config.getDefaultWeightOfTheNode() : 0;
}
}
}
}
|
[
"mailtojp@gmail.com"
] |
mailtojp@gmail.com
|
08b587491b3e51612a655e6040051815dfbd0eea
|
a040e8a7f3e30586cf9436000f1c544ead4afb20
|
/src/main/java/de/flapdoodle/mongomapper/DBCollectionAsMongoCollectionImpl.java
|
89412a3190d8f45bc1445854594c584afda4fcdf
|
[
"Apache-2.0"
] |
permissive
|
isabella232/de.flapdoodle.mongomapper
|
043118c36aac07543fa82a5baf7aea2f59a86372
|
fdbdd35337112c5b7e227478d8b63fdc63371515
|
refs/heads/master
| 2023-03-15T19:17:51.744395
| 2014-10-29T07:02:06
| 2014-10-29T07:02:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,120
|
java
|
package de.flapdoodle.mongomapper;
import java.util.logging.Logger;
import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
import com.mongodb.DBCollection;
import com.mongodb.DBCursor;
import com.mongodb.DBObject;
import com.mongodb.WriteResult;
public class DBCollectionAsMongoCollectionImpl implements MongoCollection {
private static final Logger LOG=LogFactory.logger();
private final DBCollection collection;
public DBCollectionAsMongoCollectionImpl(DBCollection collection) {
this.collection = Preconditions.checkNotNull(collection,"collection is null");
}
@Override
public void ensureIndex(DBObject asIndexKeys, DBObject asIndexOptions) {
collection.ensureIndex(asIndexKeys, asIndexOptions);
}
@Override
public WriteResult insert(DBObject dbObject) {
return collection.insert(dbObject);
}
@Override
public WriteResult save(DBObject dbObject) {
return collection.save(dbObject);
}
@Override
public WriteResult update(DBObject query, DBObject dbObject) {
return collection.update(query,dbObject);
}
@Override
public WriteResult remove(DBObject dbObject) {
return collection.remove(dbObject);
}
@Override
public DBCursor find(DBObject dbObject) {
return collection.find(dbObject);
}
@Override
public void apply(SchemaMigration migration) {
LOG.warning("Starting "+migration);
long changes=0;
long entries=0;
DBObject query = migration.query();
LOG.warning("Starting "+migration+" with query: "+query);
DBCursor cursor = collection.find(query);
for (DBObject entry : cursor) {
entries++;
Optional<DBObject> rewritten=migration.change(entry);
if (rewritten.isPresent()) {
collection.save(rewritten.get());
changes++;
}
}
LOG.warning("Done "+migration+" with "+changes+" changes for "+entries+" entries");
}
}
|
[
"michael@mosmann.de"
] |
michael@mosmann.de
|
ddae2a09b7926c48d4e5d304b0ab07779a4ce468
|
e4e224ba614efadf979fab28499ed2ad4f4ada66
|
/src/main/java/ch/hearc/clientsservice/application/configuration/SwaggerConfiguration.java
|
d7d3d9af7ad230d5660eb473e61641bfd7c7e2df
|
[] |
no_license
|
Cours-HE-ARC/clients-service
|
a6a26c0a28a8104ea16163ce429087bf39acddff
|
cb2e3d20e58967d0cd0f9f2839a939923a70b3ee
|
refs/heads/master
| 2020-04-10T21:39:33.984505
| 2018-12-12T14:24:11
| 2018-12-12T14:24:11
| 161,302,380
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 884
|
java
|
package ch.hearc.clientsservice.application.configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@Configuration
@EnableSwagger2
public class SwaggerConfiguration {
@Bean
public Docket api() {
return new Docket(DocumentationType.SWAGGER_2)
.select()
.apis(RequestHandlerSelectors.any())
.paths(PathSelectors.any())
.build();
}
}
|
[
"seb.chevre@gmail.com"
] |
seb.chevre@gmail.com
|
8618759e5f211786801bfae7ffe37661867abbd0
|
bf37576ef74315f532c9949cf36a42fb5c2f66b5
|
/cc.creativecomputing/demo/cc/creativecomputing/demo/font/CCTextTest.java
|
1555147cb831b651df8689291a640ea4670aaa85
|
[] |
no_license
|
nickvido/creativecomputing
|
bd95d060e9b0e86e531c0dd017e2a034e7277252
|
109148ffd342e5f6ab241b858c89a1c2778d900f
|
refs/heads/master
| 2020-04-09T17:24:35.926062
| 2012-01-23T10:31:50
| 2012-01-23T10:31:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,910
|
java
|
package cc.creativecomputing.demo.font;
import java.util.ArrayList;
import java.util.List;
import cc.creativecomputing.CCApp;
import cc.creativecomputing.CCApplicationManager;
import cc.creativecomputing.events.CCKeyEvent;
import cc.creativecomputing.graphics.font.CCCharSet;
import cc.creativecomputing.graphics.font.CCFont;
import cc.creativecomputing.graphics.font.CCFontIO;
import cc.creativecomputing.graphics.font.CCVectorFont;
import cc.creativecomputing.graphics.font.CCGlutFont.CCGlutFontType;
import cc.creativecomputing.graphics.font.text.CCLineBreakMode;
import cc.creativecomputing.graphics.font.text.CCText;
import cc.creativecomputing.graphics.font.util.CCLoremIpsumGenerator;
import cc.creativecomputing.math.CCVector2f;
import cc.creativecomputing.math.CCVector2i;
public class CCTextTest extends CCApp {
CCVectorFont _myVectorFont;
private List<CCText> _myTexts = new ArrayList<CCText>();
private int _myTextID = 0;
private String _myText = "";
public void setup() {
frameRate(30);
String myFont = "arial";
float mySize = 24;
_myText = CCLoremIpsumGenerator.generate(400);
_myTexts.add(createText("GLUT",CCFontIO.createGlutFont(CCGlutFontType.BITMAP_TIMES_ROMAN_24, CCCharSet.EXTENDED_CHARSET)));
_myTexts.add(createText("OUTLINE",CCFontIO.createOutlineFont(myFont, mySize, true, CCCharSet.EXTENDED_CHARSET, 30)));
_myTexts.add(createText("VECTOR",CCFontIO.createVectorFont(myFont, mySize, true, CCCharSet.EXTENDED_CHARSET)));
_myTexts.add(createText("TEXTURE MAP",CCFontIO.createTextureMapFont(myFont, mySize, true, CCCharSet.EXTENDED_CHARSET)));
}
private CCText createText(final String theType, final CCFont<?> theFont) {
CCText myText = new CCText(theFont);
myText.position(-300,300);
myText.dimension(300, 400);
myText.text("As TEXONE"+theType +"\n" + _myText);
myText.lineBreak(CCLineBreakMode.BLOCK);
return myText;
}
public void draw() {
g.clear();
g.color(255);
_myTexts.get(_myTextID).draw(g);
g.color(255,50);
_myTexts.get(_myTextID).boundingBox().draw(g);
_myTexts.get(_myTextID).textGrid().drawGrid(g);
int myIndex = _myTexts.get(_myTextID).textGrid().gridIndex(new CCVector2f(mouseX - width/2, height/2 - mouseY));
CCVector2f myPos = _myTexts.get(_myTextID).textGrid().gridPosition(myIndex);
g.color(255,0,0);
g.line(myPos.x, myPos.y, myPos.x, myPos.y - 20);
g.line(-width/2, 300, width/2, 300);
}
@Override
public void keyPressed(final CCKeyEvent theEvent) {
switch (theEvent.keyCode()) {
case CCKeyEvent.VK_UP:
_myTextID++;
_myTextID %= _myTexts.size();
break;
case CCKeyEvent.VK_DOWN:
_myTextID--;
if(_myTextID < 0)_myTextID += _myTexts.size();
break;
}
}
public static void main(String[] args) {
final CCApplicationManager myManager = new CCApplicationManager(CCTextTest.class);
myManager.settings().size(800, 800);
myManager.start();
}
}
|
[
"info@texone.org"
] |
info@texone.org
|
0d4e60a2e1662cf96e0f60d751ae5ce125534c93
|
d703afa0a4047bbe02f66936d10bcdecb9a939a5
|
/src/main/java/cl/cc/zcsclient/voice/CallFeature.java
|
7ae39668140f4cece81981a4734d77037efb5670
|
[
"Apache-2.0"
] |
permissive
|
CyberCastle/ZimbraClient
|
9e514d0e91dfca7074ad6f541fa74b72595d2afb
|
8f4028732e695b9ac1c4c69d8948b379bd3ea7f1
|
refs/heads/master
| 2020-03-17T19:22:02.652019
| 2018-05-17T19:23:17
| 2018-05-17T19:23:17
| 133,857,393
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,331
|
java
|
package cl.cc.zcsclient.voice;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>
* Java class for callFeature complex type.
*
* <p>
* The following schema fragment specifies the expected content contained within
* this class.
*
* <pre>
* <complexType name="callFeature">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* </sequence>
* <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "callFeature")
public class CallFeature {
@XmlAttribute(name = "name", required = true)
protected String name;
/**
* 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;
}
}
|
[
"CyberCastle@gmail.com"
] |
CyberCastle@gmail.com
|
7c24652b3afdf73f077c5b71750c199673572dc4
|
5e596a96e3203c56522e7ad3199d791312d95acf
|
/Session11/src/co/edureka/model/Address.java
|
eff97c65ad08dbd1e13cc87eae7d05dff94a11f0
|
[] |
no_license
|
ishantk/EdurekaJava10Aug2019
|
e515fdda11e75d7b1558ff863f583210f85f291c
|
bcd6539b96c57c6e1a88a3080724745b7e26e890
|
refs/heads/master
| 2020-07-03T04:06:09.959729
| 2019-09-22T17:46:22
| 2019-09-22T17:46:22
| 201,777,742
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,363
|
java
|
package co.edureka.model;
public class Address {
Integer aid;
String adrsLine;
String city;
String state;
Integer zipCode;
Person person; // HAS-A Relationship | One to One | One Address has One Person
public Address() {
}
public Address(Integer aid, String adrsLine, String city, String state, Integer zipCode, Person person) {
this.aid = aid;
this.adrsLine = adrsLine;
this.city = city;
this.state = state;
this.zipCode = zipCode;
this.person = person;
}
public Integer getAid() {
return aid;
}
public void setAid(Integer aid) {
this.aid = aid;
}
public String getAdrsLine() {
return adrsLine;
}
public void setAdrsLine(String adrsLine) {
this.adrsLine = adrsLine;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public Integer getZipCode() {
return zipCode;
}
public void setZipCode(Integer zipCode) {
this.zipCode = zipCode;
}
public Person getPerson() {
return person;
}
public void setPerson(Person person) {
this.person = person;
}
@Override
public String toString() {
return "Address [aid=" + aid + ", adrsLine=" + adrsLine + ", city=" + city + ", state=" + state + ", zipCode="
+ zipCode + "]";
}
}
|
[
"er.ishant@gmail.com"
] |
er.ishant@gmail.com
|
d91488ba5ea68c1cc9b39598f58e7b15575c4795
|
bdf28391864f024cb841ea4a9e0182c45836500e
|
/api/src/main/java/com/yanzhenjie/andserver/framework/mapping/Addition.java
|
30732030bfb760bc2d2541f439b5e240c021d760
|
[
"Apache-2.0"
] |
permissive
|
yanzhenjie/AndServer
|
3d48624d8fecc7f27e24c31c6a6ef85ba6add974
|
23a7c15512f5a70a9ce517710a5d04c06a4d57c9
|
refs/heads/master
| 2023-09-02T01:10:18.569605
| 2023-06-07T07:58:41
| 2023-06-07T07:58:41
| 61,079,960
| 3,675
| 795
|
Apache-2.0
| 2023-06-07T07:58:42
| 2016-06-14T00:52:52
|
Java
|
UTF-8
|
Java
| false
| false
| 2,635
|
java
|
/*
* Copyright 2018 Zhenjie Yan.
*
* 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.yanzhenjie.andserver.framework.mapping;
import androidx.annotation.NonNull;
/**
* Created by Zhenjie Yan on 2018/9/9.
*/
public class Addition {
private String[] stringType;
private boolean[] booleanType;
private int[] intType;
private long[] longType;
private short[] shortType;
private float[] floatType;
private double[] doubleType;
private byte[] byteType;
private char[] charType;
public Addition() {
}
@NonNull
public String[] getStringType() {
return stringType;
}
public void setStringType(String[] stringType) {
this.stringType = stringType;
}
@NonNull
public boolean[] getBooleanType() {
return booleanType;
}
public void setBooleanType(boolean[] booleanType) {
this.booleanType = booleanType;
}
@NonNull
public int[] getIntType() {
return intType;
}
public void setIntType(int[] intType) {
this.intType = intType;
}
@NonNull
public long[] getLongType() {
return longType;
}
public void setLongType(long[] longType) {
this.longType = longType;
}
@NonNull
public short[] getShortType() {
return shortType;
}
public void setShortType(short[] shortType) {
this.shortType = shortType;
}
@NonNull
public float[] getFloatType() {
return floatType;
}
public void setFloatType(float[] floatType) {
this.floatType = floatType;
}
@NonNull
public double[] getDoubleType() {
return doubleType;
}
public void setDoubleType(double[] doubleType) {
this.doubleType = doubleType;
}
@NonNull
public byte[] getByteType() {
return byteType;
}
public void setByteType(byte[] byteType) {
this.byteType = byteType;
}
@NonNull
public char[] getCharType() {
return charType;
}
public void setCharType(char[] charType) {
this.charType = charType;
}
}
|
[
"im.yanzhenjie@gmail.com"
] |
im.yanzhenjie@gmail.com
|
1d0e5cef2f554f6759c3f70c1afea63a980f5534
|
4f08bcb953fd6a6dea9166c1ce22e5755222c4c1
|
/src/main/java/com/ele/mapper/MenuMapper.java
|
31a9ec0da3dd107f7b967310a49006711033d1d6
|
[] |
no_license
|
Fish-Fan/ele-spring
|
0ecceff712c37599b3da48adc04c5a9e69cbaea9
|
93be5fc079619c6ad1e6bf8178ade84d96d7f048
|
refs/heads/master
| 2020-12-03T02:00:43.959439
| 2017-07-21T01:55:20
| 2017-07-21T01:55:20
| 95,892,741
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 534
|
java
|
package com.ele.mapper;
import com.ele.pojo.MenuTypeReal;
import com.ele.pojo.Shop;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* Created by Administrator on 2017/7/12 0012.
*/
@Component
public interface MenuMapper {
/**
* 将商家添加到Menu
* @param
* @param menuTypeReal
*/
void insertShopToMenu(MenuTypeReal menuTypeReal);
/**
* 根据菜单查找商家
* @param
* @param
*/
List<Shop> selectShopFoodByMenuTypeId(Integer shopId);
}
|
[
"fanyank@126.com"
] |
fanyank@126.com
|
57ee238ba62c47c173beea11c20b8392be65b619
|
9018ef82fb62b44b542e04084542ce26c95d4382
|
/src/examples/jpf2017/bankaccount/withdraw/BankAccount_12c.java
|
3f135229d4521fbf94eb0621eddf19d2f40aa9e4
|
[
"Apache-2.0"
] |
permissive
|
hub-se/jpf-shadow
|
3c4f6a559c3bb7f400f79e5f5c4b83c22b8f69cd
|
1042c18e14be64b0f89991edc1d71cb4638ef0e5
|
refs/heads/master
| 2021-06-17T22:37:37.795524
| 2019-09-11T08:08:03
| 2019-09-11T08:08:03
| 103,697,964
| 8
| 2
|
MIT
| 2018-06-25T13:02:16
| 2017-09-15T20:22:05
|
Java
|
UTF-8
|
Java
| false
| false
| 947
|
java
|
package jpf2017.bankaccount.withdraw;
public class BankAccount_12c {
public int change(int oldVal, int newVal) {
return oldVal;
}
public float change(float oldVal, float newVal) {
return oldVal;
}
public double change(double oldVal, double newVal) {
return oldVal;
}
public boolean change(boolean oldVal, boolean newVal) {
return oldVal;
}
public long change(long oldVal, long newVal) {
return oldVal;
}
public boolean execute(boolean executionMode) {
return executionMode;
};
private int balance;
public BankAccount_12c(int amount) {
super();
balance = amount;
}
public void withdraw(int amount, int numberOfWithdrawals) {
if (amount > balance) {
return;
}
if (numberOfWithdrawals >= 5) {
assert (false);
return;
}
balance = change((balance - amount), balance);
}
public static void main(String[] args) {
BankAccount_12c b = new BankAccount_12c(0);
b.withdraw(-1, 1);
}
}
|
[
"nolleryc@gmail.com"
] |
nolleryc@gmail.com
|
732db76d4d39e9364b301198ea3e8b314665a713
|
92eb4a6174243e7e050c811960b308690c924613
|
/app/src/main/java/com/pplab/songhua2/androidstudy/pActivity/pApplication.java
|
aa9ec13b206cc71d2192ca49834f875cad60a186
|
[] |
no_license
|
shcalm/AndroidStudy
|
3ba3c66f29739eba5cb4090ccb695187ba1382e6
|
9a442ba07dbdc536f8e7dac0375c6da498c05eaf
|
refs/heads/master
| 2021-11-11T15:44:53.358461
| 2021-11-01T06:28:28
| 2021-11-01T06:28:28
| 51,740,639
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 472
|
java
|
package com.pplab.songhua2.androidstudy.pActivity;
import com.pplab.songhua2.androidstudy.pContext.ComponentCallbacks;
import com.pplab.songhua2.androidstudy.pContext.Context;
/**
* Created by songhua2 on 2016/2/26.
*/
public class pApplication extends Context implements ComponentCallbacks{
@Override
public void onConfigurationChanged() {
}
@Override
public void onLowMemory() {
}
@Override
public void onTrimmemory() {
}
}
|
[
"test@qq.com"
] |
test@qq.com
|
7fcd83468aeb6f08e699d434103c9a2431eaaf69
|
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
|
/benchmark/training/org/apache/avro/codegentest/TestLogicalTypesWithDefaults.java
|
9b91d77998f642a407f3606f699263c81189f8d7
|
[] |
no_license
|
STAMP-project/dspot-experiments
|
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
|
121487e65cdce6988081b67f21bbc6731354a47f
|
refs/heads/master
| 2023-02-07T14:40:12.919811
| 2019-11-06T07:17:09
| 2019-11-06T07:17:09
| 75,710,758
| 14
| 19
| null | 2023-01-26T23:57:41
| 2016-12-06T08:27:42
| null |
UTF-8
|
Java
| false
| false
| 2,198
|
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.avro.codegentest;
import java.io.IOException;
import org.apache.avro.codegentest.testdata.LogicalTypesWithDefaults;
import org.joda.time.LocalDate;
import org.junit.Assert;
import org.junit.Test;
public class TestLogicalTypesWithDefaults extends AbstractSpecificRecordTest {
private static final LocalDate DEFAULT_VALUE = LocalDate.parse("1973-05-19");
@Test
public void testDefaultValueOfNullableField() throws IOException {
LogicalTypesWithDefaults instanceOfGeneratedClass = LogicalTypesWithDefaults.newBuilder().setNonNullDate(LocalDate.now()).build();
verifySerDeAndStandardMethods(instanceOfGeneratedClass);
}
@Test
public void testDefaultValueOfNonNullField() throws IOException {
LogicalTypesWithDefaults instanceOfGeneratedClass = LogicalTypesWithDefaults.newBuilder().setNullableDate(LocalDate.now()).build();
Assert.assertEquals(TestLogicalTypesWithDefaults.DEFAULT_VALUE, instanceOfGeneratedClass.getNonNullDate());
verifySerDeAndStandardMethods(instanceOfGeneratedClass);
}
@Test
public void testWithValues() throws IOException {
LogicalTypesWithDefaults instanceOfGeneratedClass = LogicalTypesWithDefaults.newBuilder().setNullableDate(LocalDate.now()).setNonNullDate(LocalDate.now()).build();
verifySerDeAndStandardMethods(instanceOfGeneratedClass);
}
}
|
[
"benjamin.danglot@inria.fr"
] |
benjamin.danglot@inria.fr
|
9fc74f8774d955bebd1eec35d8621489baa9998f
|
ebafbaaf156fe563f565301704b88ad64719aef4
|
/controllersvc/src/main/java/com/emc/storageos/volumecontroller/impl/plugins/discovery/smis/processor/ibm/xiv/XIVStorageConfigurationCapabilitiesProcessor.java
|
efd05dcf6b9faf08e589323eac24749a27553f5f
|
[] |
no_license
|
SuzyWu2014/coprhd-controller
|
086ae1043c2c0fefd644e7d4192c982ffbeda533
|
5a5e0ecc1d54cd387514f588768e2a918c819aa7
|
refs/heads/master
| 2021-01-21T09:42:31.339289
| 2016-09-30T19:21:02
| 2016-09-30T19:21:02
| 46,948,031
| 1
| 0
| null | 2015-11-26T21:45:46
| 2015-11-26T21:45:46
| null |
UTF-8
|
Java
| false
| false
| 3,667
|
java
|
/*
* Copyright (c) 2008-2014 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.volumecontroller.impl.plugins.discovery.smis.processor.ibm.xiv;
import java.util.Arrays;
import java.util.Iterator;
import java.util.Map;
import javax.cim.CIMInstance;
import javax.cim.UnsignedInteger16;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.emc.storageos.db.client.DbClient;
import com.emc.storageos.db.client.model.StorageSystem;
import com.emc.storageos.db.client.model.StorageSystem.SupportedProvisioningTypes;
import com.emc.storageos.plugins.AccessProfile;
import com.emc.storageos.plugins.BaseCollectionException;
import com.emc.storageos.plugins.common.Constants;
import com.emc.storageos.plugins.common.Processor;
import com.emc.storageos.plugins.common.domainmodel.Operation;
public class XIVStorageConfigurationCapabilitiesProcessor extends Processor {
private Logger _logger = LoggerFactory
.getLogger(XIVStorageConfigurationCapabilitiesProcessor.class);
private static final String SUPPORTED_ELEMENT_TYPES = "SupportedStorageElementTypes";
private static final String THIN_VOLUME_SUPPORTED = "5";
private static final String THICK_VOLUME_SUPPORTED = "2";
private DbClient _dbClient;
private AccessProfile _profile = null;
@Override
public void processResult(Operation operation, Object resultObj,
Map<String, Object> keyMap) throws BaseCollectionException {
@SuppressWarnings("unchecked")
final Iterator<CIMInstance> it = (Iterator<CIMInstance>) resultObj;
_profile = (AccessProfile) keyMap.get(Constants.ACCESSPROFILE);
_dbClient = (DbClient) keyMap.get(Constants.dbClient);
try {
StorageSystem system = _dbClient.queryObject(StorageSystem.class,
_profile.getSystemId());
while (it.hasNext()) {
CIMInstance storageConfigurationInstance = it.next();
UnsignedInteger16[] supportedElementTypeArr = (UnsignedInteger16[]) storageConfigurationInstance
.getPropertyValue(SUPPORTED_ELEMENT_TYPES);
String supportedElementTypes = Arrays
.toString(supportedElementTypeArr);
if (_logger.isDebugEnabled()) {
_logger.debug("Capability:" + supportedElementTypes);
}
if (supportedElementTypes.contains(THIN_VOLUME_SUPPORTED)
&& supportedElementTypes
.contains(THICK_VOLUME_SUPPORTED)) {
system.setSupportedProvisioningType(SupportedProvisioningTypes.THIN_AND_THICK
.name());
} else if (supportedElementTypes
.contains(THIN_VOLUME_SUPPORTED)) {
system.setSupportedProvisioningType(SupportedProvisioningTypes.THIN
.name());
} else if (supportedElementTypes
.contains(THICK_VOLUME_SUPPORTED)) {
system.setSupportedProvisioningType(SupportedProvisioningTypes.THICK
.name());
} else {
system.setSupportedProvisioningType(SupportedProvisioningTypes.NONE
.name());
}
break; // should have only one instance
}
_dbClient.persistObject(system);
} catch (Exception e) {
_logger.error(
"Finding out Storage System Capability on Volume Creation failed: ",
e);
}
}
}
|
[
"review-coprhd@coprhd.org"
] |
review-coprhd@coprhd.org
|
87786bce499eb966a7514a291852ddd66c3013f5
|
53d677a55e4ece8883526738f1c9d00fa6560ff7
|
/com/tencent/tinker/c/a/c/a$2.java
|
c6b8820a6791159564bb46b9c8bf9d2215402664
|
[] |
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
| 534
|
java
|
package com.tencent.tinker.c.a.c;
import com.tencent.tinker.a.a.b.b;
import java.io.ByteArrayOutputStream;
public final class a$2
implements b
{
public a$2(a parama, ByteArrayOutputStream paramByteArrayOutputStream)
{
}
public final void writeByte(int paramInt)
{
this.AyW.write(paramInt);
}
}
/* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes8-dex2jar.jar
* Qualified Name: com.tencent.tinker.c.a.c.a.2
* JD-Core Version: 0.6.2
*/
|
[
"172601673@qq.com"
] |
172601673@qq.com
|
740aa56a2e3f9a22461c69fe9f6e6d48d84addfb
|
747a9fbd3ea6a3d3e469d63ade02b7620d970ca6
|
/gmsm/src/main/java/com/getui/gmsm/bouncycastle/asn1/InMemoryRepresentable.java
|
7b1a7b4510ce7eb860981cd535aaa3caf52493ea
|
[] |
no_license
|
xievxin/GitWorkspace
|
3b88601ebb4718dc34a2948c673367ba79c202f0
|
81f4e7176daa85bf8bf5858ca4462e9475227aba
|
refs/heads/master
| 2021-01-21T06:18:33.222406
| 2019-01-31T01:28:50
| 2019-01-31T01:28:50
| 95,727,159
| 3
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 175
|
java
|
package com.getui.gmsm.bouncycastle.asn1;
import java.io.IOException;
public interface InMemoryRepresentable
{
DERObject getLoadedObject()
throws IOException;
}
|
[
"xiex@getui.com"
] |
xiex@getui.com
|
89176b4d5bf909c0a23d16c57458c25e9dfefced
|
d9ac3b55d13ab95edcfdc2b9382eb59be36286ef
|
/exsytext/src/easytext.gui/module-info.java
|
01f3b05092d7b9d19b30aa3b4933cbe9f0b964ab
|
[] |
no_license
|
lanen/java9demo
|
e39a493366a611e6fbc9b54d092c4673e9a14f2b
|
fc5b086b6722834f34567601bfca9644b0d942cd
|
refs/heads/master
| 2020-04-18T18:01:10.909121
| 2019-01-27T09:44:33
| 2019-01-27T09:44:33
| 167,671,875
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 207
|
java
|
module easytext.gui {
requires easytext.algorithm.api;
requires javafx.graphics;
requires javafx.controls;
exports com.buyou.easytext.gui to javafx.graphics;
uses com.buyou.easytext.api.Analyzer;
}
|
[
"cppmain@gmail.com"
] |
cppmain@gmail.com
|
78d9c0b14f8d14207cd91cc8c4de9edf5f9e0a2c
|
25dee894857f760cc7539781e3124cf16ecc5940
|
/aiueo/src/main/java/twitter4j/examples/signin/CallbackServlet.java
|
03e66e1b9ae09b9c2f6aa70af9847e2c6ad1ff3f
|
[] |
no_license
|
megascus/deathmar.ch
|
b460dd70b89487aff020bbb3d871988818bf7db3
|
c81418c52e70cd23a0062a2b8677972675a8aa02
|
refs/heads/master
| 2020-12-29T02:46:12.731601
| 2012-09-13T02:47:01
| 2012-09-13T02:47:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,943
|
java
|
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the Yusuke Yamamoto nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY Yusuke Yamamoto ``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 Yusuke Yamamoto BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package twitter4j.examples.signin;
import ch.deathmar.CountYusuke;
import ch.deathmar.Store;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;
import twitter4j.auth.RequestToken;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class CallbackServlet extends HttpServlet {
private static final long serialVersionUID = 1657390011452788111L;
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
RequestToken requestToken = (RequestToken) Store.getTemporal(request.getParameter("oauth_token"));
String verifier = request.getParameter("oauth_verifier");
try {
Twitter twitter = new TwitterFactory().getInstance();
twitter.getOAuthAccessToken(requestToken, verifier);
CountYusuke countYusuke = new CountYusuke();
countYusuke.count(twitter);
request.getSession().setAttribute("twitter", twitter);
request.getSession().setAttribute("progress", countYusuke);
request.getSession().removeAttribute("requestToken");
} catch (TwitterException e) {
throw new ServletException(e);
}
response.sendRedirect(request.getContextPath() + "/");
}
}
|
[
"yusuke@mac.com"
] |
yusuke@mac.com
|
0b5b5688ab0de3b48bd584d2e96d6fbb6a8a05f1
|
536337573310799f98241dc784f24d2af7f25422
|
/src/bi1226day12/TicketDemo.java
|
0b7430c1f7ac9fefb392187114c1325631bab6f4
|
[] |
no_license
|
ltt19921124/learnjava_2
|
349cd7b44003dcf84ca07055b8434d0989139301
|
d2bbba21e2e3ca13667e74188d7129cee4a38d86
|
refs/heads/master
| 2020-12-25T18:44:12.183914
| 2017-12-28T04:29:26
| 2017-12-28T04:29:26
| 93,992,331
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,910
|
java
|
package bi1226day12;
/*
需求:卖票。
*/
/*
线程安全问题产生的原因:
1,多个线程在操作共享的数据。
2,操作共享数据的线程代码有多条。
当一个线程在执行操作共享数据的多条代码过程中,其他线程参与了运算。
就会导致线程安全问题的产生。
解决思路;
就是将多条操作共享数据的线程代码封装起来,当有线程在执行这些代码的时候,
其他线程时不可以参与运算的。
必须要当前线程把这些代码都执行完毕后,其他线程才可以参与运算。
在java中,用同步代码块就可以解决这个问题。
同步代码块的格式:
synchronized(对象)
{
需要被同步的代码 ;
}
同步的好处:解决了线程的安全问题。
同步的弊端:相对降低了效率,因为同步外的线程的都会判断同步锁。
同步的前提:同步中必须有多个线程并使用同一个锁。
*/
class Ticket1 implements Runnable//extends Thread
{
private int num = 100;
Object obj = new Object();
public void run()
{
while(true)
{
synchronized(obj)
{
if(num>0)
{
try{Thread.sleep(10);}catch (InterruptedException e){}
System.out.println(Thread.currentThread().getName()+".....sale...."+num--);
}
}
}
}
}
class TicketDemo
{
public static void main(String[] args)
{
Ticket1 t = new Ticket1();//创建一个线程任务对象。
Thread t1 = new Thread(t);
Thread t2 = new Thread(t);
Thread t3 = new Thread(t);
Thread t4 = new Thread(t);
t1.start();
t2.start();
t3.start();
t4.start();
/*
Ticket t1 = new Ticket();
// Ticket t2 = new Ticket();
// Ticket t3 = new Ticket();
// Ticket t4 = new Ticket();
t1.start();
t1.start();//一个线程不能开启两次,会抛出无效线程状态异常
t1.start();
t1.start();
*/
}
}
|
[
"ltt19921124@163.com"
] |
ltt19921124@163.com
|
7483e971347926e3f0f43bbaf21f58b2df7b7105
|
02eeeb2180b9db5ec3c413775034c0b37b52e9a1
|
/taotao-portal/src/main/java/com/taotao/portal/pojo/Item.java
|
c9116f2684e0cc96e80fc1602677e28407987948
|
[] |
no_license
|
asurajava/taotao
|
fa713463ad8fb39dab8c78f9c114b927e05d6603
|
ede5727ab2efea3ebf2be0a3d448c10e8db90ac0
|
refs/heads/master
| 2021-01-19T09:18:21.348663
| 2017-04-20T05:20:19
| 2017-04-20T05:20:19
| 87,746,799
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,485
|
java
|
package com.taotao.portal.pojo;
/**
* Created by Asura on 2017/3/18.
*/
public class Item {
private String id;
private String title;
private String sell_point;
private long price;
private String image;
private String category_name;
private String item_des;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getSell_point() {
return sell_point;
}
public void setSell_point(String sell_point) {
this.sell_point = sell_point;
}
public long getPrice() {
return price;
}
public void setPrice(long price) {
this.price = price;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public String getCategory_name() {
return category_name;
}
public void setCategory_name(String category_name) {
this.category_name = category_name;
}
public String getItem_des() {
return item_des;
}
public void setItem_des(String item_des) {
this.item_des = item_des;
}
public String[] getImages(){
if(image!=null){
String[] images = image.split(",");
return images;
}
return null;
}
}
|
[
"2830849518@qq.com"
] |
2830849518@qq.com
|
b29cebf6e5ec102238973def41aa3e77781e7886
|
321b4ed83b6874eeb512027eaa0b17b0daf3c289
|
/81/81.search-in-rotated-sorted-array-ii.9063871.Accepted.leetcode.java
|
3f6dce8c283450f27b47252b946ebf2e6a3e50bd
|
[] |
no_license
|
huangyingw/submissions
|
7a610613bdb03f1223cdec5f6ccc4391149ca618
|
bfac1238ecef8b03e54842b852f6fec111abedfa
|
refs/heads/master
| 2023-07-25T09:56:46.814504
| 2023-07-16T07:38:36
| 2023-07-16T07:38:36
| 143,352,065
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 747
|
java
|
public class Solution {
public boolean search(int[] A, int target) {
int left = 0;
int right = A.length - 1;
while (left <= right) {
int mid = left + (right - left) / 2;
if (A[mid] == target) {
return true;
}
if (A[left] < A[mid]) {
if (A[left] <= target && target < A[mid]) {
right = mid - 1;
}
else {
left = mid + 1;
}
}
else if (A[left] > A[mid]) {
if (A[mid] < target && target <= A[right]) {
left = mid + 1;
}
else {
right = mid - 1;
}
}
else {
left++;
}
}
return false;
}
}
|
[
"huangyingw@gmail.com"
] |
huangyingw@gmail.com
|
5777d43e92ff296dfbbad0aeca2863ed50b30d04
|
3dd35c0681b374ce31dbb255b87df077387405ff
|
/generated/com/guidewire/_generated/entity/GL7LineExclCostInternal.java
|
d98e9c4f08e73d568a8d1d18aa1510ef34d0cf70
|
[] |
no_license
|
walisashwini/SBTBackup
|
58b635a358e8992339db8f2cc06978326fed1b99
|
4d4de43576ec483bc031f3213389f02a92ad7528
|
refs/heads/master
| 2023-01-11T09:09:10.205139
| 2020-11-18T12:11:45
| 2020-11-18T12:11:45
| 311,884,817
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 870
|
java
|
package com.guidewire._generated.entity;
@javax.annotation.Generated(value = "com.guidewire.pl.metadata.codegen.Codegen", comments = "GL7LineExclCost.eti;GL7LineExclCost.eix;GL7LineExclCost.etx")
@java.lang.SuppressWarnings(value = {"deprecation", "unchecked"})
public interface GL7LineExclCostInternal extends com.guidewire._generated.entity.GL7CostInternal, com.guidewire._generated.entity.CostInternal, gw.api.domain.financials.CostAdapter {
/**
* Gets the value of the LineExclusion field.
*/
@gw.internal.gosu.parser.ExtendedProperty
public entity.GL7LineExcl getLineExclusion();
public gw.pl.persistence.core.Key getLineExclusionID();
/**
* Sets the value of the LineExclusion field.
*/
public void setLineExclusion(entity.GL7LineExcl value);
public void setLineExclusionID(gw.pl.persistence.core.Key value);
}
|
[
"ashwini@cruxxtechnologies.com"
] |
ashwini@cruxxtechnologies.com
|
040eb4a4c4da666f692b818f316cedcc37d7924e
|
d71e879b3517cf4fccde29f7bf82cff69856cfcd
|
/ExtractedJars/PACT_com.pactforcure.app/javafiles/com/fasterxml/jackson/databind/jsonFormatVisitors/JsonStringFormatVisitor.java
|
60bb08b104b6007998988816cbcd190841f6fdf5
|
[
"MIT"
] |
permissive
|
Andreas237/AndroidPolicyAutomation
|
b8e949e072d08cf6c6166c3f15c9c63379b8f6ce
|
c1ed10a2c6d4cf3dfda8b8e6291dee2c2a15ee8a
|
refs/heads/master
| 2020-04-10T02:14:08.789751
| 2019-05-16T19:29:11
| 2019-05-16T19:29:11
| 160,739,088
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 691
|
java
|
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.fasterxml.jackson.databind.jsonFormatVisitors;
// Referenced classes of package com.fasterxml.jackson.databind.jsonFormatVisitors:
// JsonValueFormatVisitor
public interface JsonStringFormatVisitor
extends JsonValueFormatVisitor
{
public static class Base extends JsonValueFormatVisitor.Base
implements JsonStringFormatVisitor
{
public Base()
{
// 0 0:aload_0
// 1 1:invokespecial #11 <Method void JsonValueFormatVisitor$Base()>
// 2 4:return
}
}
}
|
[
"silenta237@gmail.com"
] |
silenta237@gmail.com
|
735b55bd226832c2f6e76a267913902bdb8d71b4
|
4d6f449339b36b8d4c25d8772212bf6cd339f087
|
/netreflected/src/Framework/System,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089/system/componentmodel/design/IComponentInitializer.java
|
86b58b291ec03708020c356644d03396f2e7be1d
|
[
"MIT"
] |
permissive
|
lvyitian/JCOReflector
|
299a64550394db3e663567efc6e1996754f6946e
|
7e420dca504090b817c2fe208e4649804df1c3e1
|
refs/heads/master
| 2022-12-07T21:13:06.208025
| 2020-08-28T09:49:29
| 2020-08-28T09:49:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,848
|
java
|
/*
* MIT License
*
* Copyright (c) 2020 MASES s.r.l.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**************************************************************************************
* <auto-generated>
* This code was generated from a template using JCOReflector
*
* Manual changes to this file may cause unexpected behavior in your application.
* Manual changes to this file will be overwritten if the code is regenerated.
* </auto-generated>
*************************************************************************************/
package system.componentmodel.design;
import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
// Import section
import system.collections.IDictionary;
import system.collections.IDictionaryImplementation;
/**
* The base .NET class managing System.ComponentModel.Design.IComponentInitializer, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089. Implements {@link IJCOBridgeReflected}.
* <p>
*
* See: <a href="https://docs.microsoft.com/en-us/dotnet/api/System.ComponentModel.Design.IComponentInitializer" target="_top">https://docs.microsoft.com/en-us/dotnet/api/System.ComponentModel.Design.IComponentInitializer</a>
*/
public interface IComponentInitializer extends IJCOBridgeReflected {
/**
* Fully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
*/
public static final String assemblyFullName = "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
/**
* Assembly name: System
*/
public static final String assemblyShortName = "System";
/**
* Qualified class name: System.ComponentModel.Design.IComponentInitializer
*/
public static final String className = "System.ComponentModel.Design.IComponentInitializer";
/**
* Try to cast the {@link IJCOBridgeReflected} instance into {@link IComponentInitializer}, a cast assert is made to check if types are compatible.
*/
public static IComponentInitializer ToIComponentInitializer(IJCOBridgeReflected from) throws Throwable {
JCOBridge bridge = JCOBridgeInstance.getInstance("System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
JCType classType = bridge.GetType(className + ", " + (JCOBridgeInstance.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName));
NetType.AssertCast(classType, from);
return new IComponentInitializerImplementation(from.getJCOInstance());
}
/**
* Returns the reflected Assembly name
*
* @return A {@link String} representing the Fullname of reflected Assembly
*/
public String getJCOAssemblyName();
/**
* Returns the reflected Class name
*
* @return A {@link String} representing the Fullname of reflected Class
*/
public String getJCOClassName();
/**
* Returns the reflected Class name used to build the object
*
* @return A {@link String} representing the name used to allocated the object
* in CLR context
*/
public String getJCOObjectName();
/**
* Returns the instantiated class
*
* @return An {@link Object} representing the instance of the instantiated Class
*/
public Object getJCOInstance();
/**
* Returns the instantiated class Type
*
* @return A {@link JCType} representing the Type of the instantiated Class
*/
public JCType getJCOType();
// Methods section
public void InitializeExistingComponent(IDictionary defaultValues) throws Throwable;
public void InitializeNewComponent(IDictionary defaultValues) throws Throwable;
// Properties section
// Instance Events section
}
|
[
"mario.mastrodicasa@masesgroup.com"
] |
mario.mastrodicasa@masesgroup.com
|
154b819ff183705afe2cb798677324164dd7250d
|
3ac5fe5aaf98149e4e4f6add52081ab01c07596b
|
/SpringBootTwoMap/src/main/java/com/picc/riskctrl/map/vo/response/Province.java
|
86abec37c6747838778139927dbf590fee3fca00
|
[] |
no_license
|
18753377299/SpringBootTwoTest
|
7ce7cd6f577d70c6a950365dae070537b40e53b2
|
70306d47ccea8687fd36d80bac714d8d377f0e55
|
refs/heads/master
| 2023-05-03T03:30:31.976820
| 2021-05-13T11:37:51
| 2021-05-13T11:37:51
| 307,751,481
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,257
|
java
|
package com.picc.riskctrl.map.vo.response;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class Province implements Serializable{
/**
* 序列化
*/
private static final long serialVersionUID = 1L;
/*省级中心点经度X*/
private String provinceX;
/*省级中心点纬度Y*/
private String provinceY;
/*中心点级别*/
private String provinceFlag;
/*省级名称*/
private String provinceName;
/*省级对应市级的集合*/
List<City> cityList=new ArrayList<City>();
public String getProvinceX() {
return provinceX;
}
public void setProvinceX(String provinceX) {
this.provinceX = provinceX;
}
public String getProvinceY() {
return provinceY;
}
public void setProvinceY(String provinceY) {
this.provinceY = provinceY;
}
public String getProvinceFlag() {
return provinceFlag;
}
public void setProvinceFlag(String provinceFlag) {
this.provinceFlag = provinceFlag;
}
public List<City> getCityList() {
return cityList;
}
public void setCityList(List<City> cityList) {
this.cityList = cityList;
}
public String getProvinceName() {
return provinceName;
}
public void setProvinceName(String provinceName) {
this.provinceName = provinceName;
}
}
|
[
"1733856225@qq.com"
] |
1733856225@qq.com
|
610a0d70310ca64839b71074135c781f1ee809e5
|
c6407afa348a0d8165ecd70927342f79a4fd9194
|
/src/main/java/com/twilio/ee/cdi/doers/UsageReporter.java
|
c87644c751439153f9a23abd9fbd10887669c1c6
|
[] |
no_license
|
twilio-java-ee/twilio-java-ee
|
822e23d0cc40baa948bb543a76b4f4d67fda6b96
|
6e27ae08cb1b3b2354f0a42f9109790ebba7c46e
|
refs/heads/master
| 2020-03-28T01:02:42.189415
| 2013-11-26T18:29:30
| 2013-11-26T18:29:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 589
|
java
|
package com.twilio.ee.cdi.doers;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.inject.Named;
import com.twilio.ee.cdi.doers.simple.SimpleUsageReporter;
import com.twilio.ee.inject.configuration.TwilioAccountSid;
import com.twilio.ee.inject.configuration.TwilioAuthToken;
@Named
@RequestScoped
public class UsageReporter extends SimpleUsageReporter
{
@Inject
public UsageReporter(@TwilioAccountSid String accountSid, @TwilioAuthToken String authToken)
{
super(accountSid, authToken);
}
public UsageReporter()
{
}
}
|
[
"fiorenzino@gmail.com"
] |
fiorenzino@gmail.com
|
912a580b8acdafe370000a670b3c11fade91156d
|
0726327c12f5bd04b20b25e1db03c2110b9a9a3d
|
/src/main/java/com/trl/springsecurityldap/repository/entity/UserEntity.java
|
ed96a9e1941751397c07c602fbdaa3bfbf8fbd4b
|
[] |
no_license
|
spring-framework-practices/spring-security-ldap
|
6b93c06c93cd917f3e6bd0e8dfcf871625297f99
|
9bf0b13a9b83110de7dea2ef979189ad99597bbd
|
refs/heads/master
| 2022-12-13T11:26:33.855381
| 2020-09-08T00:33:37
| 2020-09-08T00:33:37
| 293,488,619
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,200
|
java
|
package com.trl.springsecurityldap.repository.entity;
import com.trl.springsecurityldap.service.UserRole;
import java.util.Objects;
import java.util.Set;
public class UserEntity {
private Long id;
private String firstName;
private String lastName;
private String userName;
private String email;
private String password;
private Boolean accountNonExpired;
private Boolean accountNonLocked;
private Boolean credentialsNonExpired;
private Boolean enabled;
private Set<UserRole> authorities;
public UserEntity() {
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public Boolean getAccountNonExpired() {
return accountNonExpired;
}
public void setAccountNonExpired(Boolean accountNonExpired) {
this.accountNonExpired = accountNonExpired;
}
public Boolean getAccountNonLocked() {
return accountNonLocked;
}
public void setAccountNonLocked(Boolean accountNonLocked) {
this.accountNonLocked = accountNonLocked;
}
public Boolean getCredentialsNonExpired() {
return credentialsNonExpired;
}
public void setCredentialsNonExpired(Boolean credentialsNonExpired) {
this.credentialsNonExpired = credentialsNonExpired;
}
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
public Set<UserRole> getAuthorities() {
return authorities;
}
public void setAuthorities(Set<UserRole> authorities) {
this.authorities = authorities;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UserEntity that = (UserEntity) o;
return Objects.equals(id, that.id) &&
Objects.equals(firstName, that.firstName) &&
Objects.equals(lastName, that.lastName) &&
Objects.equals(userName, that.userName) &&
Objects.equals(email, that.email) &&
Objects.equals(password, that.password) &&
Objects.equals(accountNonExpired, that.accountNonExpired) &&
Objects.equals(accountNonLocked, that.accountNonLocked) &&
Objects.equals(credentialsNonExpired, that.credentialsNonExpired) &&
Objects.equals(enabled, that.enabled) &&
Objects.equals(authorities, that.authorities);
}
@Override
public int hashCode() {
return Objects.hash(id, firstName, lastName, userName, email, password, accountNonExpired, accountNonLocked, credentialsNonExpired, enabled, authorities);
}
@Override
public String toString() {
return "UserEntity{" +
"id=" + id +
", firstName='" + firstName + '\'' +
", lastName='" + lastName + '\'' +
", userName='" + userName + '\'' +
", email='" + email + '\'' +
", password='" + password + '\'' +
", accountNonExpired=" + accountNonExpired +
", accountNonLocked=" + accountNonLocked +
", credentialsNonExpired=" + credentialsNonExpired +
", enabled=" + enabled +
", authorities=" + authorities +
'}';
}
}
|
[
"tsyupryk.roman@gmail.com"
] |
tsyupryk.roman@gmail.com
|
007cf625b836e53bd8f8e0567a8c2cb98e26b61f
|
2256e4ad6fcb35d6e84ee610a6b11df0e4122ccd
|
/src/java/com/viettel/im/client/bean/AppParamsBean.java
|
75d0ceebb070a4717566315fdd76e4f184789b5f
|
[] |
no_license
|
tuanns/bccs_sm
|
cd9ae4da6dc410e4c71909b21c2ae1cf35864fc2
|
60476a905db7d4e7422061423fe93f7713eebf9c
|
refs/heads/master
| 2022-06-21T05:52:49.165156
| 2020-05-06T19:02:56
| 2020-05-06T19:02:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 692
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.viettel.im.client.bean;
/**
*
* @author User
*/
public class AppParamsBean implements java.io.Serializable {
private String code;
private String name;
public AppParamsBean() {
}
public AppParamsBean(String code, String name) {
this.code = code;
this.name = name;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
[
"xuanbac1611@gmail.com"
] |
xuanbac1611@gmail.com
|
1a6d0619da496dace45d90f512764ef6f5fe41c8
|
a634abe28714c187057cdf9e0b469a6de1b3647e
|
/app/src/main/java/org/jboss/hal/client/accesscontrol/GroupColumn.java
|
464639585f8604969eef948d14ef9e0e74b98baa
|
[
"Apache-2.0"
] |
permissive
|
hal/console
|
23328a2ee8dd640e53cff81eaf1c519e3a98f024
|
32cbfefaa7ca9254e439dbd787bda58d8490b6e7
|
refs/heads/main
| 2023-08-21T11:06:39.446971
| 2023-08-16T06:17:17
| 2023-08-16T06:17:17
| 38,317,187
| 31
| 105
|
Apache-2.0
| 2023-09-14T21:26:53
| 2015-06-30T15:26:19
|
Java
|
UTF-8
|
Java
| false
| false
| 2,227
|
java
|
/*
* Copyright 2022 Red Hat
*
* 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.jboss.hal.client.accesscontrol;
import javax.inject.Inject;
import javax.inject.Provider;
import org.jboss.hal.config.User;
import org.jboss.hal.core.accesscontrol.AccessControl;
import org.jboss.hal.core.accesscontrol.Principal;
import org.jboss.hal.core.finder.ColumnActionFactory;
import org.jboss.hal.core.finder.Finder;
import org.jboss.hal.dmr.dispatch.Dispatcher;
import org.jboss.hal.flow.Progress;
import org.jboss.hal.resources.Ids;
import org.jboss.hal.resources.Resources;
import org.jboss.hal.spi.AsyncColumn;
import org.jboss.hal.spi.Footer;
import org.jboss.hal.spi.Requires;
import com.google.web.bindery.event.shared.EventBus;
import static org.jboss.hal.client.accesscontrol.AddressTemplates.EXCLUDE_ADDRESS;
import static org.jboss.hal.client.accesscontrol.AddressTemplates.INCLUDE_ADDRESS;
@AsyncColumn(Ids.GROUP)
@Requires({ INCLUDE_ADDRESS, EXCLUDE_ADDRESS })
public class GroupColumn extends PrincipalColumn {
@Inject
public GroupColumn(Finder finder,
ColumnActionFactory columnActionFactory,
Dispatcher dispatcher,
EventBus eventBus,
@Footer Provider<Progress> progress,
User currentUser,
AccessControl accessControl,
AccessControlTokens tokens,
AccessControlResources accessControlResources,
Resources resources) {
super(finder, Ids.GROUP, resources.constants().group(), Principal.Type.GROUP,
columnActionFactory, dispatcher, eventBus, progress, currentUser, accessControl, tokens,
accessControlResources, resources);
}
}
|
[
"harald.pehl@gmail.com"
] |
harald.pehl@gmail.com
|
c8e9391dcdc54fdc88185032971356e20afafe69
|
6dd240858d413bcaff8ea544677525d70ba6c774
|
/src/org/unclesniper/puppeteer/config/SCPCopyToWordEmitter.java
|
0cab61094313bf511b990008bb8e1588131efa0a
|
[] |
no_license
|
UncleSniper/puppeteer
|
31829e5c7a94f44befd7a5fa9efd896e7b0ae1dd
|
9379ace198c1292eddf2b2b9ec680cee498a916b
|
refs/heads/master
| 2022-11-14T16:06:43.691015
| 2020-07-07T22:32:26
| 2020-07-07T22:32:26
| 264,326,276
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 856
|
java
|
package org.unclesniper.puppeteer.config;
import java.util.function.Consumer;
import org.unclesniper.puppeteer.CopySlave;
import org.unclesniper.puppeteer.PuppetException;
import org.unclesniper.puppeteer.util.ShorthandName;
import org.unclesniper.puppeteer.AbstractCopyToWordEmitter;
@ShorthandName("scpCopyToWord")
public class SCPCopyToWordEmitter extends AbstractCopyToWordEmitter {
private SSHConfig config;
public SCPCopyToWordEmitter() {}
public SCPCopyToWordEmitter(SSHConfig config) {
this.config = config;
}
public SSHConfig getConfig() {
return config;
}
public void setConfig(SSHConfig config) {
this.config = config;
}
@Override
protected void buildArgvImpl(CopySlave.CopyToInfo info, Consumer<String> sink) throws PuppetException {
AbstractSSHConfig.buildSCPCommand(config, info.machine, info.execHost, sink);
}
}
|
[
"simon@bausch-alfdorf.de"
] |
simon@bausch-alfdorf.de
|
b753ca9064a5db53911d0c389d113cec67a637c3
|
447520f40e82a060368a0802a391697bc00be96f
|
/apks/playstore_apps/de_number26_android/source/android/support/v4/view/v.java
|
4f72d24a027fc80a4bf6d04dd018f05a3d90b25e
|
[
"Apache-2.0"
] |
permissive
|
iantal/AndroidPermissions
|
7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465
|
d623b732734243590b5f004d167e542e2e2ae249
|
refs/heads/master
| 2023-07-19T01:29:26.689186
| 2019-09-30T19:01:42
| 2019-09-30T19:01:42
| 107,239,248
| 0
| 0
|
Apache-2.0
| 2023-07-16T07:41:38
| 2017-10-17T08:22:57
| null |
UTF-8
|
Java
| false
| false
| 1,025
|
java
|
package android.support.v4.view;
import android.os.Build.VERSION;
import android.support.a.a.a;
import android.view.ViewGroup;
public final class v
{
static final c a = new c();
static
{
if (Build.VERSION.SDK_INT >= 21)
{
a = new b();
return;
}
if (Build.VERSION.SDK_INT >= 18)
{
a = new a();
return;
}
}
public static boolean a(ViewGroup paramViewGroup)
{
return a.a(paramViewGroup);
}
static class a
extends v.c
{
a() {}
}
static class b
extends v.a
{
b() {}
public boolean a(ViewGroup paramViewGroup)
{
return paramViewGroup.isTransitionGroup();
}
}
static class c
{
c() {}
public boolean a(ViewGroup paramViewGroup)
{
Boolean localBoolean = (Boolean)paramViewGroup.getTag(a.a.tag_transition_group);
return ((localBoolean != null) && (localBoolean.booleanValue())) || (paramViewGroup.getBackground() != null) || (t.m(paramViewGroup) != null);
}
}
}
|
[
"antal.micky@yahoo.com"
] |
antal.micky@yahoo.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.