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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b9e4edb174860abd7a51e3f6ead123f2f3bc4cf4
|
61602d4b976db2084059453edeafe63865f96ec5
|
/org/android/spdy/SslPermData.java
|
8d5bd701d1defc43e0c5ab2be519bd03ba84cb06
|
[] |
no_license
|
ZoranLi/thunder
|
9d18fd0a0ec0a5bb3b3f920f9413c1ace2beb4d0
|
0778679ef03ba1103b1d9d9a626c8449b19be14b
|
refs/heads/master
| 2020-03-20T23:29:27.131636
| 2018-06-19T06:43:26
| 2018-06-19T06:43:26
| 137,848,886
| 12
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 192
|
java
|
package org.android.spdy;
public class SslPermData {
public int genrequest;
public int invalidkey;
public int keyrequest;
public int requestnum;
public int requesttime;
}
|
[
"lizhangliao@xiaohongchun.com"
] |
lizhangliao@xiaohongchun.com
|
46a51cd735456d6f9973ddca0c2607ab7e420878
|
bc6eb21303f8363f3a24fee5258a106bb891621b
|
/app/src/main/java/com/Asgts/awt/ImageObserver.java
|
9d69328f28b05332151dc08ca392a68e4b91f292
|
[] |
no_license
|
sakachin2/Asgts
|
183fa779f64158bf6db70bde3d37507f35447447
|
355230ac27e588513f7cec3238a255afb9b049db
|
refs/heads/master
| 2021-06-24T03:13:33.858145
| 2017-08-15T02:51:44
| 2017-08-15T02:51:44
| 100,328,632
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,155
|
java
|
package com.Asgts.awt; //~2C26R~//+3213R~
public interface ImageObserver //~1308R~
{ //~1308I~
public boolean imageUpdate(Image img, int infoflags, //~1215I~
int x, int y, int width, int height); //~1215I~
//~1215I~
public static final int WIDTH = 1; //~1215I~
public static final int HEIGHT = 2; //~1215I~
public static final int PROPERTIES = 4; //~1215I~
public static final int SOMEBITS = 8; //~1215I~
public static final int FRAMEBITS = 16; //~1215I~
public static final int ALLBITS = 32; //~1215I~
public static final int ERROR = 64; //~1215I~
public static final int ABORT = 128; //~1215I~
} //~1215I~
|
[
"sakachin2@yahoo.co.jp"
] |
sakachin2@yahoo.co.jp
|
4dcfab6a06906ec3fc069850d96fd20ddad2c85c
|
50c407c3dfdaf4e40319352472a487614f167f7a
|
/JMPatrol/app/src/main/java/com/ecity/cswatersupply/adapter/HistoryRecordListAdapter.java
|
8304af20a2679c1674215f3d4fbaa06fa84ccde8
|
[] |
no_license
|
TonyTong1993/JiangMenPatrol
|
e8e966da912e993c3b6c99998968b79385f7b534
|
cae541cde1e5254efe6ecc3a7647912893d4d2c5
|
refs/heads/master
| 2020-03-27T17:42:19.462460
| 2018-09-07T10:16:12
| 2018-09-07T10:16:12
| 146,868,143
| 0
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,738
|
java
|
package com.ecity.cswatersupply.adapter;
import java.util.List;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.ecity.cswatersupply.R;
public class HistoryRecordListAdapter extends BaseAdapter{
private LayoutInflater inflater;
private List<String> items;
public HistoryRecordListAdapter(Context context, List<String> items) {
this.inflater = LayoutInflater.from(context);
this.items = items;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder viewHolder;
if (null == convertView) {
convertView = inflater.inflate(R.layout.activity_poi_search_history_item, null);
viewHolder = new ViewHolder(convertView);
convertView.setTag(viewHolder);
} else {
viewHolder = (ViewHolder) convertView.getTag();
}
viewHolder.addressname.setText(items.get(position).toString());
return convertView;
}
private class ViewHolder {
private TextView addressname;
public ViewHolder(View v) {
addressname = (TextView)v.findViewById(R.id.addressname);
}
}
@Override
public int getCount() {
return items.size();
}
@Override
public Object getItem(int position) {
return items.get(position);
}
@Override
public long getItemId(int position) {
return position;
}
public void setItems(List<String> items) {
this.items = items;
}
}
|
[
"zzht@ZZHTdeiMac.lan"
] |
zzht@ZZHTdeiMac.lan
|
03a932381816789152b92648fa522d2a141c8219
|
e820097c99fb212c1c819945e82bd0370b4f1cf7
|
/gwt-sh/src/main/java/com/skynet/spms/client/gui/partcatalog/salesCatalog/salesPrice/OtherChargeListGrid.java
|
132c9cdca4f7db9429c6b32a4a5fe6ed64edc17a
|
[] |
no_license
|
jayanttupe/springas-train-example
|
7b173ca4298ceef543dc9cf8ae5f5ea365431453
|
adc2e0f60ddd85d287995f606b372c3d686c3be7
|
refs/heads/master
| 2021-01-10T10:37:28.615899
| 2011-12-20T07:47:31
| 2011-12-20T07:47:31
| 36,887,613
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,678
|
java
|
package com.skynet.spms.client.gui.partcatalog.salesCatalog.salesPrice;
import java.util.ArrayList;
import java.util.List;
import com.skynet.spms.client.entity.DataInfo;
import com.skynet.spms.client.feature.data.DataSourceTool;
import com.skynet.spms.client.feature.data.DataSourceTool.PostDataSourceInit;
import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.types.SelectionAppearance;
import com.smartgwt.client.types.SelectionStyle;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.grid.ListGridField;
/*
* 其他费用
*/
public class OtherChargeListGrid extends ListGrid {
private DataInfo dataInfo;
private String salesPriceId;
public String getSalesPriceId() {
return salesPriceId;
}
public void setSalesPriceId(String salesPriceId) {
this.salesPriceId = salesPriceId;
}
public DataInfo getDataInfo() {
return dataInfo;
}
public OtherChargeListGrid() {
DataSourceTool dataSourceTool = new DataSourceTool();
dataSourceTool.onCreateDataSource("partCatalog.sales","otherCharge_dataSource", new PostDataSourceInit() {
@Override
public void doPostOper(DataSource dataSource, DataInfo dataInfo) {
OtherChargeListGrid.this.dataInfo = dataInfo;
drawOtherPriceDataListGrid(dataSource);
}
});
}
private void drawOtherPriceDataListGrid(DataSource dataSource){
setDataSource(dataSource);
setAutoFetchData(true);
setCanRemoveRecords(true);
setRemoveFieldTitle("删除");
setShowAllRecords(true);
setSelectionType(SelectionStyle.SIMPLE);
setSelectionAppearance(SelectionAppearance.CHECKBOX);
setCanEdit(true);
setHoverWidth(200);
setHoverHeight(20);
setCellHeight(22);
this.setAutoSaveEdits(false);
List<ListGridField> fieldList = new ArrayList<ListGridField>();
//其费用代码
ListGridField listOtherChargeCode=new ListGridField("m_OtherChargeCode");
fieldList.add(listOtherChargeCode);
//其他费用金额
ListGridField listOtherChargeAmount=new ListGridField("otherChargeAmount");
fieldList.add(listOtherChargeAmount);
//币种
ListGridField listCurrencyCode=new ListGridField("m_InternationalCurrencyCode");
fieldList.add(listCurrencyCode);
//备注
ListGridField listRemarkText=new ListGridField("remarkText");
fieldList.add(listRemarkText);
ListGridField[] fields = new ListGridField[fieldList.size()];
fieldList.toArray(fields);
setFields(fields);
}
}
|
[
"usedtolove@3b6edebd-8678-f8c2-051a-d8e859c3524d"
] |
usedtolove@3b6edebd-8678-f8c2-051a-d8e859c3524d
|
630f5db36e7bdb6c88230d57cd6076c3192f6dd4
|
6635387159b685ab34f9c927b878734bd6040e7e
|
/src/android/support/v4/view/ViewConfigurationCompat.java
|
6c9006e8c31530c972604b594caabec72b88e4d1
|
[] |
no_license
|
RepoForks/com.snapchat.android
|
987dd3d4a72c2f43bc52f5dea9d55bfb190966e2
|
6e28a32ad495cf14f87e512dd0be700f5186b4c6
|
refs/heads/master
| 2021-05-05T10:36:16.396377
| 2015-07-16T16:46:26
| 2015-07-16T16:46:26
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,631
|
java
|
package android.support.v4.view;
import android.os.Build.VERSION;
import android.view.ViewConfiguration;
public final class ViewConfigurationCompat
{
static final ViewConfigurationVersionImpl IMPL = new BaseViewConfigurationVersionImpl();
static
{
if (Build.VERSION.SDK_INT >= 14)
{
IMPL = new IcsViewConfigurationVersionImpl();
return;
}
if (Build.VERSION.SDK_INT >= 11)
{
IMPL = new HoneycombViewConfigurationVersionImpl();
return;
}
if (Build.VERSION.SDK_INT >= 8)
{
IMPL = new FroyoViewConfigurationVersionImpl();
return;
}
}
public static int getScaledPagingTouchSlop(ViewConfiguration paramViewConfiguration)
{
return IMPL.getScaledPagingTouchSlop(paramViewConfiguration);
}
private static boolean hasPermanentMenuKey(ViewConfiguration paramViewConfiguration)
{
return IMPL.hasPermanentMenuKey(paramViewConfiguration);
}
static class BaseViewConfigurationVersionImpl
implements ViewConfigurationCompat.ViewConfigurationVersionImpl
{
public int getScaledPagingTouchSlop(ViewConfiguration paramViewConfiguration)
{
return paramViewConfiguration.getScaledTouchSlop();
}
public boolean hasPermanentMenuKey(ViewConfiguration paramViewConfiguration)
{
return true;
}
}
static class FroyoViewConfigurationVersionImpl
extends ViewConfigurationCompat.BaseViewConfigurationVersionImpl
{
public final int getScaledPagingTouchSlop(ViewConfiguration paramViewConfiguration)
{
return ViewConfigurationCompatFroyo.getScaledPagingTouchSlop(paramViewConfiguration);
}
}
static class HoneycombViewConfigurationVersionImpl
extends ViewConfigurationCompat.FroyoViewConfigurationVersionImpl
{
public boolean hasPermanentMenuKey(ViewConfiguration paramViewConfiguration)
{
return false;
}
}
static final class IcsViewConfigurationVersionImpl
extends ViewConfigurationCompat.HoneycombViewConfigurationVersionImpl
{
public final boolean hasPermanentMenuKey(ViewConfiguration paramViewConfiguration)
{
return ViewConfigurationCompatICS.hasPermanentMenuKey(paramViewConfiguration);
}
}
static abstract interface ViewConfigurationVersionImpl
{
public abstract int getScaledPagingTouchSlop(ViewConfiguration paramViewConfiguration);
public abstract boolean hasPermanentMenuKey(ViewConfiguration paramViewConfiguration);
}
}
/* Location:
* Qualified Name: android.support.v4.view.ViewConfigurationCompat
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
37629a186dbd7f56348bd24538d5e1f53f79c519
|
d4934bd5dd7d5ab6d70ed03992d8af3d235b468d
|
/src/rush/recursos/adicionais/BloquearPlacas.java
|
3ebcc360e62f45af5150b89679c09821f0f89733
|
[] |
no_license
|
Animexpvp/System
|
06983be597b49cd5343e244f8fde24bd6680ca16
|
e7864d4f1f94e0999b9c3a2ee2119eff4cccd121
|
refs/heads/master
| 2020-03-21T03:37:24.858434
| 2018-05-15T15:15:12
| 2018-05-15T15:15:12
| null | 0
| 0
| null | null | null | null |
WINDOWS-1252
|
Java
| false
| false
| 1,373
|
java
|
package rush.recursos.adicionais;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.SignChangeEvent;
import rush.utils.ConfigManager;
public class BloquearPlacas implements Listener {
@EventHandler
public void aoUsarPlaca(SignChangeEvent e) {
Player p = e.getPlayer();
if (!(p.hasPermission("system.bypass.placabloqueada"))) {
if (ConfigManager.getConfig("settings").getBoolean("Bloquear-Todas-As-Palavras")) {
e.setCancelled(true);
e.getPlayer().sendMessage(ConfigManager.getConfig("mensagens").getString("Placas.Palavras-Desativadas-Na-Placa").replace("&", "§"));
return;
}
if (ConfigManager.getConfig("settings").getBoolean("Bloquear-Apenas-Algumas-Palavras")) {
String[] linhas;
int j = (linhas = e.getLines()).length;
for (int i = 0; i < j; i++) {
String s = linhas[i];
for (String palavra : ConfigManager.getConfig("settings").getStringList("Lista-Das-Palavras-Bloqueadas")) {
if (s.toLowerCase().contains(palavra.toLowerCase())) {
e.setCancelled(true);
e.getPlayer().sendMessage((ConfigManager.getConfig("mensagens").getString("Placas.Palavra-Bloqueada-Na-Placa")).replace("&", "§").replace("%palavra%", palavra));
e.getBlock().breakNaturally();
return;
}
}
}
}
}
}
}
|
[
"eduardo-mior@hotmail.com"
] |
eduardo-mior@hotmail.com
|
827c288d4c63143902a42ec2a2657562764347f7
|
647eef4da03aaaac9872c8b210e4fc24485e49dc
|
/TestMemory/wandoujia/src/main/java/com/wandoujia/base/models/BaseInt$Builder.java
|
3de969d2eeefb36093c0a4396a28c48e842a3101
|
[] |
no_license
|
AlbertSnow/git_workspace
|
f2d3c68a7b6e62f41c1edcd7744f110e2bf7f021
|
a0b2cd83cfa6576182f440a44d957a9b9a6bda2e
|
refs/heads/master
| 2021-01-22T17:57:16.169136
| 2016-12-05T15:59:46
| 2016-12-05T15:59:46
| 28,154,580
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 746
|
java
|
package com.wandoujia.base.models;
import com.squareup.wire.Message.Builder;
public final class BaseInt$Builder extends Message.Builder<BaseInt>
{
public Integer val;
public BaseInt$Builder()
{
}
public BaseInt$Builder(BaseInt paramBaseInt)
{
super(paramBaseInt);
if (paramBaseInt == null)
return;
this.val = paramBaseInt.val;
}
public final BaseInt build()
{
checkRequiredFields();
return new BaseInt(this, null);
}
public final Builder val(Integer paramInteger)
{
this.val = paramInteger;
return this;
}
}
/* Location: C:\WorkSpace\WandDouJiaNotificationBar\WanDou1.jar
* Qualified Name: com.wandoujia.base.models.BaseInt.Builder
* JD-Core Version: 0.6.0
*/
|
[
"zhaojialiang@conew.com"
] |
zhaojialiang@conew.com
|
1d309d3added725e1ae5c0d95b43aa97a1e97ae0
|
42fcf1d879cb75f08225137de5095adfdd63fa21
|
/src/main/java/org/jooq/tables/records/CatgryRecord.java
|
95ebf56a674f25dadabee97303b4a058f0ee5780
|
[] |
no_license
|
mpsgit/JOOQTest
|
e10e9c8716f2688c8bf0160407b1244f9e70e8eb
|
6af2922bddc55f591e94a5a9a6efd1627747d6ad
|
refs/heads/master
| 2021-01-10T06:11:40.862153
| 2016-02-28T09:09:34
| 2016-02-28T09:09:34
| 52,711,455
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,446
|
java
|
/**
* This class is generated by jOOQ
*/
package org.jooq.tables.records;
import java.math.BigDecimal;
import java.sql.Date;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record8;
import org.jooq.Row8;
import org.jooq.impl.UpdatableRecordImpl;
import org.jooq.tables.Catgry;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.7.2"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CatgryRecord extends UpdatableRecordImpl<CatgryRecord> implements Record8<BigDecimal, String, BigDecimal, String, Date, String, Date, String> {
private static final long serialVersionUID = -823279912;
/**
* Setter for <code>WETRN.CATGRY.CATGRY_ID</code>.
*/
public void setCatgryId(BigDecimal value) {
setValue(0, value);
}
/**
* Getter for <code>WETRN.CATGRY.CATGRY_ID</code>.
*/
public BigDecimal getCatgryId() {
return (BigDecimal) getValue(0);
}
/**
* Setter for <code>WETRN.CATGRY.CATGRY_NM</code>.
*/
public void setCatgryNm(String value) {
setValue(1, value);
}
/**
* Getter for <code>WETRN.CATGRY.CATGRY_NM</code>.
*/
public String getCatgryNm() {
return (String) getValue(1);
}
/**
* Setter for <code>WETRN.CATGRY.BUS_ID</code>.
*/
public void setBusId(BigDecimal value) {
setValue(2, value);
}
/**
* Getter for <code>WETRN.CATGRY.BUS_ID</code>.
*/
public BigDecimal getBusId() {
return (BigDecimal) getValue(2);
}
/**
* Setter for <code>WETRN.CATGRY.CREAT_USER_ID</code>.
*/
public void setCreatUserId(String value) {
setValue(3, value);
}
/**
* Getter for <code>WETRN.CATGRY.CREAT_USER_ID</code>.
*/
public String getCreatUserId() {
return (String) getValue(3);
}
/**
* Setter for <code>WETRN.CATGRY.CREAT_TS</code>.
*/
public void setCreatTs(Date value) {
setValue(4, value);
}
/**
* Getter for <code>WETRN.CATGRY.CREAT_TS</code>.
*/
public Date getCreatTs() {
return (Date) getValue(4);
}
/**
* Setter for <code>WETRN.CATGRY.LAST_UPDT_USER_ID</code>.
*/
public void setLastUpdtUserId(String value) {
setValue(5, value);
}
/**
* Getter for <code>WETRN.CATGRY.LAST_UPDT_USER_ID</code>.
*/
public String getLastUpdtUserId() {
return (String) getValue(5);
}
/**
* Setter for <code>WETRN.CATGRY.LAST_UPDT_TS</code>.
*/
public void setLastUpdtTs(Date value) {
setValue(6, value);
}
/**
* Getter for <code>WETRN.CATGRY.LAST_UPDT_TS</code>.
*/
public Date getLastUpdtTs() {
return (Date) getValue(6);
}
/**
* Setter for <code>WETRN.CATGRY.DLTD_IND</code>.
*/
public void setDltdInd(String value) {
setValue(7, value);
}
/**
* Getter for <code>WETRN.CATGRY.DLTD_IND</code>.
*/
public String getDltdInd() {
return (String) getValue(7);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Record1<BigDecimal> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Record8 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public Row8<BigDecimal, String, BigDecimal, String, Date, String, Date, String> fieldsRow() {
return (Row8) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public Row8<BigDecimal, String, BigDecimal, String, Date, String, Date, String> valuesRow() {
return (Row8) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public Field<BigDecimal> field1() {
return Catgry.CATGRY.CATGRY_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field2() {
return Catgry.CATGRY.CATGRY_NM;
}
/**
* {@inheritDoc}
*/
@Override
public Field<BigDecimal> field3() {
return Catgry.CATGRY.BUS_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field4() {
return Catgry.CATGRY.CREAT_USER_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Date> field5() {
return Catgry.CATGRY.CREAT_TS;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field6() {
return Catgry.CATGRY.LAST_UPDT_USER_ID;
}
/**
* {@inheritDoc}
*/
@Override
public Field<Date> field7() {
return Catgry.CATGRY.LAST_UPDT_TS;
}
/**
* {@inheritDoc}
*/
@Override
public Field<String> field8() {
return Catgry.CATGRY.DLTD_IND;
}
/**
* {@inheritDoc}
*/
@Override
public BigDecimal value1() {
return getCatgryId();
}
/**
* {@inheritDoc}
*/
@Override
public String value2() {
return getCatgryNm();
}
/**
* {@inheritDoc}
*/
@Override
public BigDecimal value3() {
return getBusId();
}
/**
* {@inheritDoc}
*/
@Override
public String value4() {
return getCreatUserId();
}
/**
* {@inheritDoc}
*/
@Override
public Date value5() {
return getCreatTs();
}
/**
* {@inheritDoc}
*/
@Override
public String value6() {
return getLastUpdtUserId();
}
/**
* {@inheritDoc}
*/
@Override
public Date value7() {
return getLastUpdtTs();
}
/**
* {@inheritDoc}
*/
@Override
public String value8() {
return getDltdInd();
}
/**
* {@inheritDoc}
*/
@Override
public CatgryRecord value1(BigDecimal value) {
setCatgryId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CatgryRecord value2(String value) {
setCatgryNm(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CatgryRecord value3(BigDecimal value) {
setBusId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CatgryRecord value4(String value) {
setCreatUserId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CatgryRecord value5(Date value) {
setCreatTs(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CatgryRecord value6(String value) {
setLastUpdtUserId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CatgryRecord value7(Date value) {
setLastUpdtTs(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CatgryRecord value8(String value) {
setDltdInd(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public CatgryRecord values(BigDecimal value1, String value2, BigDecimal value3, String value4, Date value5, String value6, Date value7, String value8) {
value1(value1);
value2(value2);
value3(value3);
value4(value4);
value5(value5);
value6(value6);
value7(value7);
value8(value8);
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached CatgryRecord
*/
public CatgryRecord() {
super(Catgry.CATGRY);
}
/**
* Create a detached, initialised CatgryRecord
*/
public CatgryRecord(BigDecimal catgryId, String catgryNm, BigDecimal busId, String creatUserId, Date creatTs, String lastUpdtUserId, Date lastUpdtTs, String dltdInd) {
super(Catgry.CATGRY);
setValue(0, catgryId);
setValue(1, catgryNm);
setValue(2, busId);
setValue(3, creatUserId);
setValue(4, creatTs);
setValue(5, lastUpdtUserId);
setValue(6, lastUpdtTs);
setValue(7, dltdInd);
}
}
|
[
"krisztian.koller@gmail.com"
] |
krisztian.koller@gmail.com
|
dcac1dfb46ece2bb03ebd1b68aa09a039a1becce
|
5f56e84aa190d65ae984e24cc833fdca36fbf330
|
/StorageRest/src/main/java/com/fxdigital/syncclient/util/VideoConverter.java
|
52334bce6580d658b40597b43bbec803b1a65a17
|
[] |
no_license
|
hetao0921/tt
|
71a57b5964cc114d9a59194beb46fbf6bf2a3224
|
5ca6b233718ed832087485c38154e5f89a9ec458
|
refs/heads/master
| 2020-04-05T23:04:40.604232
| 2016-01-29T09:38:17
| 2016-01-29T09:38:17
| 37,107,666
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,473
|
java
|
package com.fxdigital.syncclient.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.LineNumberReader;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.apache.log4j.Logger;
public class VideoConverter {
private static final Logger logger = Logger.getLogger(VideoConverter.class);
/**
* Convert Video for hint
*
* @param filePath
* like /usr/local/movies/001.mp4
* @return convert message
*/
public static String Convert(String filePath) {
String cmd = "/usr/local/bin/MP4Box -hint " + filePath;
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
logger.info(cmd);
return execStr(cmd);
}
private static String exec(String cmd) {
logger.info("开始执行" + cmd);
StringBuffer sb = new StringBuffer();
try {
String[] cmdA = { "/bin/sh", "-c", cmd };
Process process = Runtime.getRuntime().exec(cmdA);
LineNumberReader br = new LineNumberReader(new InputStreamReader(
process.getInputStream()));
String line;
while ((line = br.readLine()) != null) {
logger.info(line);
logger.info(line);
sb.append(line).append("\n");
}
logger.info(sb.toString());
} catch (Exception e) {
logger.info("file convert exception :" + e);
e.printStackTrace();
}
logger.info("结束执行" + cmd);
return sb.toString();
}
/**
*
* @param str
* @return
*/
public static String execStr(String str) {
logger.info("开始执行" + str);
StringBuffer sb = new StringBuffer();
try {
ProcessBuilder builder = new ProcessBuilder("/bin/sh", "-c", str);
builder.redirectErrorStream(true);
Process process = builder.start();
InputStream is = process.getInputStream();
InputStreamReader isr = new InputStreamReader(is, "UTF-8");
BufferedReader br = new BufferedReader(isr);
String line;
while ((line = br.readLine()) != null) {
logger.info(line);
logger.info(line);
sb.append(line).append("\n");
}
} catch (Exception e) {
logger.info("file convert exception :" + e);
e.printStackTrace();
}
logger.info("结束执行" + str);
return sb.toString();
}
/**
*
* @param str
* @return
*/
public static List<String> execStrList(String str) {
logger.info("开始执行" + str);
StringBuffer sb = new StringBuffer();
List<String> result=null;
try {
ProcessBuilder builder = new ProcessBuilder("/bin/sh", "-c", str);
builder.redirectErrorStream(true);
Process process = builder.start();
InputStream is = process.getInputStream();
InputStreamReader isr = new InputStreamReader(is, "UTF-8");
BufferedReader br = new BufferedReader(isr);
String line;
result=new ArrayList<String>();
while ((line = br.readLine()) != null) {
logger.info(line);
sb.append(line).append("\n");
result.add(line);
}
} catch (Exception e) {
logger.info("file convert exception :" + e);
e.printStackTrace();
}
logger.info("结束执行" + str);
return result;
}
/**
* 获取文件名称
*
* @return
*/
public static String getFileName() {
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
String fileName = "/usr/local/movies/storage/" + sdf.format(new Date())
+ ".mp4";
return fileName;
}
}
|
[
"hetao0921@126.com"
] |
hetao0921@126.com
|
19efe6f5b363f5d163c92d48112d2da93a906265
|
e4de5a56be7d3bbace4925933d7109d1096deb53
|
/src/dk/brics/tajs/analysis/nativeobjects/JSBoolean.java
|
13c0d83f06e1ef1a9faddcd429534de5d8b8cdff
|
[
"Apache-2.0"
] |
permissive
|
bthallion/TAJS
|
025b97831527d6e9b76be591cedc41b973df8629
|
c2aae6f5c6ca7052a2a0ef10b4dc55c9f4ceeb13
|
refs/heads/master
| 2021-05-29T16:03:55.766826
| 2015-10-26T14:05:19
| 2015-10-27T14:17:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,578
|
java
|
/*
* Copyright 2009-2015 Aarhus University
*
* 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 dk.brics.tajs.analysis.nativeobjects;
import dk.brics.tajs.analysis.Conversion;
import dk.brics.tajs.analysis.FunctionCalls.CallInfo;
import dk.brics.tajs.analysis.InitialStateBuilder;
import dk.brics.tajs.analysis.NativeFunctions;
import dk.brics.tajs.analysis.Solver;
import dk.brics.tajs.lattice.ObjectLabel;
import dk.brics.tajs.lattice.ObjectLabel.Kind;
import dk.brics.tajs.lattice.State;
import dk.brics.tajs.lattice.UnknownValueResolver;
import dk.brics.tajs.lattice.Value;
/**
* 15.6 native Boolean functions.
*/
public class JSBoolean {
private JSBoolean() {
}
/**
* Evaluates the given native function.
*/
public static Value evaluate(ECMAScriptObjects nativeobject, CallInfo call, State state, Solver.SolverInterface c) {
if (nativeobject != ECMAScriptObjects.BOOLEAN)
if (NativeFunctions.throwTypeErrorIfConstructor(call, state, c))
return Value.makeNone();
switch (nativeobject) {
case BOOLEAN: {
NativeFunctions.expectParameters(nativeobject, call, c, 0, 1);
Value b = Conversion.toBoolean(NativeFunctions.readParameter(call, state, 0));
if (call.isConstructorCall()) { // 15.6.2
ObjectLabel objlabel = new ObjectLabel(call.getSourceNode(), Kind.BOOLEAN);
state.newObject(objlabel);
state.writeInternalValue(objlabel, b);
state.writeInternalPrototype(objlabel, Value.makeObject(InitialStateBuilder.BOOLEAN_PROTOTYPE));
return Value.makeObject(objlabel);
} else // 15.6.1
return b;
}
case BOOLEAN_TOSTRING: { // 15.6.4.2
NativeFunctions.expectParameters(nativeobject, call, c, 0, 0);
if (NativeFunctions.throwTypeErrorIfWrongKindOfThis(nativeobject, call, state, c, Kind.BOOLEAN))
return Value.makeNone();
Value val = state.readInternalValue(state.readThisObjects());
val = UnknownValueResolver.getRealValue(val, c.getCurrentState());
Value result = Value.makeNone();
if (val.isMaybeTrue()) {
result = result.joinStr("true");
}
if (val.isMaybeFalse()) {
result = result.joinStr("false");
}
// TODO: treat {"true","false"} specially in Value?
return result;
}
case BOOLEAN_VALUEOF: { // 15.6.4.3
NativeFunctions.expectParameters(nativeobject, call, c, 0, 0);
if (NativeFunctions.throwTypeErrorIfWrongKindOfThis(nativeobject, call, state, c, Kind.BOOLEAN))
return Value.makeNone();
return state.readInternalValue(state.readThisObjects());
}
default:
return null;
}
}
}
|
[
"amoeller@cs.au.dk"
] |
amoeller@cs.au.dk
|
fa2f55abf2e7a5afd72e5f77597357b092e434a3
|
88ed30ae68858ad6365357d4b0a95ad07594c430
|
/agent/arcus-zw-controller/src/main/java/com/iris/agent/zw/spy/actions/SendNifToolPlugin.java
|
21ca6ce835c9b8987ccea9aa288555ad47db5f5a
|
[
"Apache-2.0"
] |
permissive
|
Diffblue-benchmarks/arcusplatform
|
686f58654d2cdf3ca3c25bc475bf8f04db0c4eb3
|
b95cb4886b99548a6c67702e8ba770317df63fe2
|
refs/heads/master
| 2020-05-23T15:41:39.298441
| 2019-05-01T03:56:47
| 2019-05-01T03:56:47
| 186,830,996
| 0
| 0
|
Apache-2.0
| 2019-05-30T11:13:52
| 2019-05-15T13:22:26
|
Java
|
UTF-8
|
Java
| false
| false
| 1,272
|
java
|
/*
* Copyright 2019 Arcus Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.iris.agent.zw.spy.actions;
import javax.servlet.http.HttpServletRequest;
import com.iris.agent.spy.SpyPlugIn;
import com.iris.agent.zw.ZWServices;
import com.iris.agent.zw.spy.ZWSpy;
public class SendNifToolPlugin implements SpyPlugIn {
@Override
public Object apply(HttpServletRequest input) {
ZWServices.INSTANCE.getNetwork().requentSendNif();
ZWSpy.INSTANCE.toolUsed("Request controller to send NIF");
return "";
}
@Override
public boolean showLink() {
return false;
}
@Override
public String pageName() {
return "zipsendnif";
}
@Override
public String title() {
return null;
}
}
|
[
"b@yoyo.com"
] |
b@yoyo.com
|
9b3adcb7efd6b7d6efda01aa9940d0e9e0e0a8b8
|
cd2149faec90309745f582511e4b433e8892e7d2
|
/src/main/java/com/rfs/fe/v43/mr/ObjectType.java
|
db84b7ef879cc42178d049878cfcf8d973727333
|
[] |
no_license
|
alvarogrojas/facturaelectronica
|
061abfc4779cba8cffba09607f2f34dc3bbf115b
|
cc16ef4eea5469a0509f0f145af28d6e9a66a064
|
refs/heads/master
| 2023-01-21T12:09:49.725655
| 2020-12-05T14:09:36
| 2020-12-05T14:09:36
| 288,523,997
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,128
|
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: 2019.06.09 at 11:07:40 AM CST
//
package com.rfs.fe.v43.mr;
import org.w3c.dom.Element;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.ArrayList;
import java.util.List;
/**
* <p>Java class for ObjectType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ObjectType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence maxOccurs="unbounded" minOccurs="0">
* <any processContents='lax'/>
* </sequence>
* <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
* <attribute name="MimeType" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="Encoding" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ObjectType", propOrder = {
"content"
})
public class ObjectType {
@XmlMixed
@XmlAnyElement(lax = true)
protected List<Object> content;
@XmlAttribute(name = "Id")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String id;
@XmlAttribute(name = "MimeType")
protected String mimeType;
@XmlAttribute(name = "Encoding")
@XmlSchemaType(name = "anyURI")
protected String encoding;
/**
* Gets the value of the content property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Element }
* {@link Object }
* {@link String }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
return this.content;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the mimeType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMimeType() {
return mimeType;
}
/**
* Sets the value of the mimeType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMimeType(String value) {
this.mimeType = value;
}
/**
* Gets the value of the encoding property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEncoding() {
return encoding;
}
/**
* Sets the value of the encoding property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEncoding(String value) {
this.encoding = value;
}
}
|
[
"aagonzalezrojas@gmail.com"
] |
aagonzalezrojas@gmail.com
|
d86f97c78587e87f5ff4fad85f336400572a00be
|
527e63ae8b0048eb6faeba5165ec57b2cb775d6c
|
/src/main/java/com/fish/pojo/CashApply.java
|
45d80dd92f0533cdcd6b9ce91ba2d7be97d3a87e
|
[] |
no_license
|
flyingdou/fishBoot
|
656413e4df8f0606b3095b3b58573105bee8d27c
|
fade641a5972857fb95be70ff14b9fa151c53b2f
|
refs/heads/master
| 2020-03-28T10:26:17.656992
| 2018-09-10T08:48:39
| 2018-09-10T08:48:39
| 143,684,772
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,468
|
java
|
package com.fish.pojo;
import java.math.BigDecimal;
import java.util.Date;
/**
*
* @author dou
* 提现申请(tb_cash_apply)
*
*/
public class CashApply {
private Integer id;
/**
* 提现用户
*/
private Integer user;
/**
* 提现金额
*/
private BigDecimal money;
/**
* 提现账号
*/
private String account;
/**
* 提现状态
*/
private Integer status;
/**
* 提现时间
*/
private Date autoDate;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUser() {
return user;
}
public void setUser(Integer user) {
this.user = user;
}
public BigDecimal getMoney() {
return money;
}
public void setMoney(BigDecimal money) {
this.money = money;
}
public String getAccount() {
return account;
}
public void setAccount(String account) {
this.account = account == null ? null : account.trim();
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Date getAutoDate() {
return autoDate;
}
public void setAutoDate(Date autoDate) {
this.autoDate = autoDate;
}
}
|
[
"1576883859@qq.com"
] |
1576883859@qq.com
|
024bed91a5b61d08fb07b04c34a0f001fa9e7954
|
96de0517142285c3545d47a57ed09695cad5fa71
|
/MPChartLib/src/main/java/com/gxl/mikephil/charting/jobs/ViewPortJob.java
|
616496b7b82b516e54d3584bc5afeeb79178f9b0
|
[] |
no_license
|
guoxuliang/seekbar
|
891fc52a950c123ed3a937c27cb9cd50430c20f5
|
6e3c69e064d24a283dafecfb97cb5a9551e04fad
|
refs/heads/master
| 2020-11-26T23:43:42.111400
| 2019-12-20T09:27:31
| 2019-12-20T09:27:31
| 229,232,913
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,350
|
java
|
package com.gxl.mikephil.charting.jobs;
import android.view.View;
import com.gxl.mikephil.charting.utils.ObjectPool;
import com.gxl.mikephil.charting.utils.Transformer;
import com.gxl.mikephil.charting.utils.ViewPortHandler;
/**
* Runnable that is used for viewport modifications since they cannot be
* executed at any time. This can be used to delay the execution of viewport
* modifications until the onSizeChanged(...) method of the chart-view is called.
* This is especially important if viewport modifying methods are called on the chart
* directly after initialization.
*
* @author Philipp Jahoda
*/
public abstract class ViewPortJob extends ObjectPool.Poolable implements Runnable {
protected float[] pts = new float[2];
protected ViewPortHandler mViewPortHandler;
protected float xValue = 0f;
protected float yValue = 0f;
protected Transformer mTrans;
protected View view;
public ViewPortJob(ViewPortHandler viewPortHandler, float xValue, float yValue,
Transformer trans, View v) {
this.mViewPortHandler = viewPortHandler;
this.xValue = xValue;
this.yValue = yValue;
this.mTrans = trans;
this.view = v;
}
public float getXValue() {
return xValue;
}
public float getYValue() {
return yValue;
}
}
|
[
"632977592@qq.com"
] |
632977592@qq.com
|
56fffbd47443ee0aecd826c0dc1dfb26914dd30e
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XCOMMONS-928-1-27-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/xwiki/extension/repository/internal/installed/DefaultInstalledExtensionRepository_ESTest_scaffolding.java
|
1a2f19e771658bc789aca39b6ba320911b1bbb7a
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 489
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sun Apr 05 14:42:18 UTC 2020
*/
package org.xwiki.extension.repository.internal.installed;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class DefaultInstalledExtensionRepository_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
f196c486db90d79058df334b22d34aed283f9cbc
|
e91453fb0587d41be9f6aa3b51429e386759b1b4
|
/src/test/java/util/DateUtil.java
|
39a6cdc5baf10d604aaf6da7abe3a9cc59e8191c
|
[] |
no_license
|
jameshardison2/seleniumprojectanswers
|
30fa5bf23dfe0a7081aecc3c9ff4f76a03205eaf
|
59cc976a65f563c2a377b31dddc1bbe61385cd97
|
refs/heads/master
| 2022-10-22T10:23:01.698996
| 2020-05-10T00:47:14
| 2020-05-10T00:47:14
| 272,564,238
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 751
|
java
|
package util;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
public class DateUtil {
public static List<String> createTimeLine(int incrementBy, int futureHours) {
List<String> timeline = new ArrayList<>();
timeline.add("Now");
SimpleDateFormat format = new SimpleDateFormat("ha");
Calendar cl = Calendar.getInstance();
for (int i = 0; i < futureHours; i++) {
cl.add(Calendar.HOUR_OF_DAY, incrementBy);
Date date = cl.getTime();
String TimeAfterTwoHours = format.format(date).toLowerCase();
timeline.add(TimeAfterTwoHours);
}
return timeline;
}
}
|
[
"sharma.deepak8616@gmail.com"
] |
sharma.deepak8616@gmail.com
|
1cfb487eaf2e72f97f40d7c4bef691841981e75b
|
a3d41b62bd018896c8c0fd84aa9f620943346bf4
|
/app/src/main/java/com/zbxn/bean/adapter/SwitchCompanyAdapter.java
|
67b88daca1fe82ad6dc6ffd21b11db61157c84da
|
[] |
no_license
|
zhuanao/android_ZBXMOBILE
|
f4d73645affddbdd32672e740c36d8e3fbdc5fb8
|
8a0c758d77ac2cd3ce9dc3684e300beaa43950af
|
refs/heads/master
| 2020-03-22T08:47:05.934380
| 2017-07-10T10:51:54
| 2017-07-10T10:51:54
| 139,790,670
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,153
|
java
|
package com.zbxn.bean.adapter;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.zbxn.activity.login.LoginActivity;
import com.zbxn.R;
import com.zbxn.pub.bean.ZmsCompanyListBean;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
import utils.PreferencesUtils;
/**
* Created by Administrator on 2016/9/30.
*/
public class SwitchCompanyAdapter extends BaseAdapter {
private Context mContext;
private List<ZmsCompanyListBean> mList;
public SwitchCompanyAdapter(Context mContext, List<ZmsCompanyListBean> mList) {
this.mContext = mContext;
this.mList = mList;
}
@Override
public int getCount() {
return mList.size();
}
@Override
public Object getItem(int position) {
return mList.get(position);
}
@Override
public long getItemId(int position) {
return position;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder holder;
if (convertView == null) {
convertView = View.inflate(mContext, R.layout.list_item_switchcompany, null);
holder = new ViewHolder(convertView);
convertView.setTag(holder);
} else {
holder = (ViewHolder) convertView.getTag();
}
ZmsCompanyListBean item = mList.get(position);
holder.myRemind.setText(item.getCompanyname());
String zmsCompanyId = PreferencesUtils.getString(mContext, LoginActivity.FLAG_ZMSCOMPANYID);
if (zmsCompanyId.equals(item.getId())) {
holder.mImageview.setVisibility(View.VISIBLE);
} else {
holder.mImageview.setVisibility(View.INVISIBLE);
}
return convertView;
}
class ViewHolder {
@BindView(R.id.myRemind)
TextView myRemind;
@BindView(R.id.mImageview)
ImageView mImageview;
ViewHolder(View view) {
ButterKnife.bind(this, view);
}
}
}
|
[
"18410133533@163.com"
] |
18410133533@163.com
|
97f27c3bddc3a921e5e28e4b417ef0f7a37a273f
|
592b0e0ad07e577e2510723519c0c603d3eb2808
|
/src/main/java/com/jst/prodution/account/dubbo/service/AcctFrozenDuService.java
|
f72d334c8e2311126779c172d10d52a4221991c3
|
[] |
no_license
|
huangleisir/api-js180323
|
494d7a1d9b07385fc95e9927195e70727e626e53
|
7cc5d16e12cbe6c56b48831bab3736e8477d7360
|
refs/heads/master
| 2021-04-15T05:25:32.061201
| 2018-06-30T15:12:31
| 2018-06-30T15:12:31
| 126,464,555
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 228
|
java
|
package com.jst.prodution.account.dubbo.service;
import com.jst.prodution.base.service.BaseService;
/**
* dubbo 暴露的接口:账户冻结
* @author
*
*/
public interface AcctFrozenDuService extends BaseService{
}
|
[
"lei.huang@jieshunpay.cn"
] |
lei.huang@jieshunpay.cn
|
148274a0cfa477e5815ef2245a0a092f506adc62
|
690f0664defa1146607e2cf86ba70f8a67b5b57e
|
/faceclient/src/main/java/com/dragonforest/app/faceclient/arcsoft/util/ConfigUtil.java
|
5628d814c1373f28f1245f19d59e1711c0a68b54
|
[] |
no_license
|
dragonforestgroup/App_FaceSearchClient
|
e8e57910a4dc9118a4deaaa5a3bed0f30b68f8b3
|
33b42109c60fd732d6699186766ec9669092cb05
|
refs/heads/master
| 2020-07-11T05:45:18.330806
| 2019-08-26T11:20:37
| 2019-08-26T11:20:37
| 204,459,249
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,667
|
java
|
package com.dragonforest.app.faceclient.arcsoft.util;
import android.content.Context;
import android.content.SharedPreferences;
import com.arcsoft.face.FaceEngine;
public class ConfigUtil {
private static final String APP_NAME = "ArcFaceDemo";
private static final String TRACK_ID = "trackID";
private static final String FT_ORIENT = "ftOrient";
public static void setTrackId(Context context, int trackId) {
if (context == null) {
return;
}
SharedPreferences sharedPreferences = context.getSharedPreferences(APP_NAME, Context.MODE_PRIVATE);
sharedPreferences.edit()
.putInt(TRACK_ID, trackId)
.apply();
}
public static int getTrackId(Context context){
if (context == null){
return 0;
}
SharedPreferences sharedPreferences = context.getSharedPreferences(APP_NAME,Context.MODE_PRIVATE);
return sharedPreferences.getInt(TRACK_ID,0);
}
public static void setFtOrient(Context context, int ftOrient) {
if (context == null) {
return;
}
SharedPreferences sharedPreferences = context.getSharedPreferences(APP_NAME, Context.MODE_PRIVATE);
sharedPreferences.edit()
.putInt(FT_ORIENT, ftOrient)
.apply();
}
public static int getFtOrient(Context context){
if (context == null){
return FaceEngine.ASF_OP_270_ONLY;
}
SharedPreferences sharedPreferences = context.getSharedPreferences(APP_NAME,Context.MODE_PRIVATE);
return sharedPreferences.getInt(FT_ORIENT, FaceEngine.ASF_OP_270_ONLY);
}
}
|
[
"1501295534@qq.com"
] |
1501295534@qq.com
|
9f7fb13b4a7f6aaa4037e485dafc877588cec839
|
d41035a16e5df37dfe88e5f40cb08b427746b5f1
|
/com/sun/corba/se/PortableActivationIDL/ServerProxyHelper.java
|
2fdbf76825084da7f51c5b2838aab48a45ae26ec
|
[] |
no_license
|
XJ2017/JavaSource
|
8b3ac45d087b146b7738177bd99a6c65c481bdb8
|
fbe4f5c5ff76942380390356cc644ad1e72f99db
|
refs/heads/master
| 2021-01-19T03:35:17.235001
| 2016-06-16T12:56:49
| 2016-06-16T12:56:49
| 60,250,989
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,131
|
java
|
package com.sun.corba.se.PortableActivationIDL;
/**
* com/sun/corba/se/PortableActivationIDL/ServerProxyHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from d:/re/puppet/workspace/8-2-build-windows-amd64-cygwin/jdk8u73/6086/corba/src/share/classes/com/sun/corba/se/PortableActivationIDL/activation.idl
* Friday, January 29, 2016 5:40:18 PM PST
*/
/** Server callback interface, passed to Activator in registerServer method.
*/
abstract public class ServerProxyHelper
{
private static String _id = "IDL:PortableActivationIDL/ServerProxy:1.0";
public static void insert (org.omg.CORBA.Any a, com.sun.corba.se.PortableActivationIDL.ServerProxy that)
{
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
a.type (type ());
write (out, that);
a.read_value (out.create_input_stream (), type ());
}
public static com.sun.corba.se.PortableActivationIDL.ServerProxy extract (org.omg.CORBA.Any a)
{
return read (a.create_input_stream ());
}
private static org.omg.CORBA.TypeCode __typeCode = null;
synchronized public static org.omg.CORBA.TypeCode type ()
{
if (__typeCode == null)
{
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (com.sun.corba.se.PortableActivationIDL.ServerProxyHelper.id (), "ServerProxy");
}
return __typeCode;
}
public static String id ()
{
return _id;
}
public static com.sun.corba.se.PortableActivationIDL.ServerProxy read (org.omg.CORBA.portable.InputStream istream)
{
return narrow (istream.read_Object (_ServerProxyStub.class));
}
public static void write (org.omg.CORBA.portable.OutputStream ostream, com.sun.corba.se.PortableActivationIDL.ServerProxy value)
{
ostream.write_Object ((org.omg.CORBA.Object) value);
}
public static com.sun.corba.se.PortableActivationIDL.ServerProxy narrow (org.omg.CORBA.Object obj)
{
if (obj == null)
return null;
else if (obj instanceof com.sun.corba.se.PortableActivationIDL.ServerProxy)
return (com.sun.corba.se.PortableActivationIDL.ServerProxy)obj;
else if (!obj._is_a (id ()))
throw new org.omg.CORBA.BAD_PARAM ();
else
{
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
com.sun.corba.se.PortableActivationIDL._ServerProxyStub stub = new com.sun.corba.se.PortableActivationIDL._ServerProxyStub ();
stub._set_delegate(delegate);
return stub;
}
}
public static com.sun.corba.se.PortableActivationIDL.ServerProxy unchecked_narrow (org.omg.CORBA.Object obj)
{
if (obj == null)
return null;
else if (obj instanceof com.sun.corba.se.PortableActivationIDL.ServerProxy)
return (com.sun.corba.se.PortableActivationIDL.ServerProxy)obj;
else
{
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
com.sun.corba.se.PortableActivationIDL._ServerProxyStub stub = new com.sun.corba.se.PortableActivationIDL._ServerProxyStub ();
stub._set_delegate(delegate);
return stub;
}
}
}
|
[
"504283451@qq.com"
] |
504283451@qq.com
|
57c4e24e7eeefd319958d2089fe06b0cbca20a8c
|
163e37c8899cd6689828980baa6d058a064dc98e
|
/src/CommonClasses/MathConstant.java
|
c7dc8263725419e3cee47f542a3998c4fdfdfa3a
|
[] |
no_license
|
sh2268411762/Java
|
f4ffb76decac318d99334251615c5b26bee86b99
|
1d6e89338e02dddb67056b5353eb498876ef381c
|
refs/heads/master
| 2023-01-09T10:51:23.847574
| 2020-11-11T11:24:51
| 2020-11-11T11:24:51
| 257,934,424
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 387
|
java
|
/**
*
*/
package CommonClasses;
/**
* @Description Math类
* @author 孙豪
* @version 版本
* @Date 2020年10月3日下午1:49:41
*/
public class MathConstant
{
public static void main(String[] args)
{
System.out.println("double类型,圆周率PI:" + Math.PI);
System.out.println("double类型,自然对数底数:" + Math.E);
}
}
|
[
"2268411762@qq.com"
] |
2268411762@qq.com
|
7fc3ab4ad55b5d8b049f507c126abc807e219e94
|
ca95555a6ce6410807699face40f070f92d41d20
|
/LQian-learn-RxJava/src/main/java/com/zl/lqian/Observer/Defender.java
|
1a7427056bf93afcde5d42e3332658a28aeb7712
|
[] |
no_license
|
SaberSola/LQian
|
0000adef39a0940c2771f76e69790643acc6c892
|
b8a42ffe46d37968ecdbf70b402f7b1b09549f55
|
refs/heads/master
| 2022-12-20T23:43:19.657158
| 2021-12-27T13:18:45
| 2021-12-27T13:18:45
| 144,002,792
| 9
| 3
| null | 2022-12-16T04:33:33
| 2018-08-08T11:15:53
|
Java
|
UTF-8
|
Java
| false
| false
| 333
|
java
|
package com.zl.lqian.Observer;
/**
* @Author zl
* @Date 2018-12-12
* @Des ${todo}
*/
public class Defender implements ObserverMode<PositionAndStrategy>{
@Override
public void update(PositionAndStrategy positionAndStrategy) {
System.out.println("后卫:" + positionAndStrategy.getDefenderStrategy() );
}
}
|
[
"1198902364@qq.com"
] |
1198902364@qq.com
|
5e2e0988190fc81678e329aa4a562dd32767c0cd
|
97b46ff38b675d934948ff3731cf1607a1cc0fc9
|
/Server/java/pk/elfo/gameserver/network/serverpackets/ConfirmDlg.java
|
63492c014ef20ce218b0e32f8e85d7edc84f74aa
|
[] |
no_license
|
l2brutal/pk-elfo_H5
|
a6703d734111e687ad2f1b2ebae769e071a911a4
|
766fa2a92cb3dcde5da6e68a7f3d41603b9c037e
|
refs/heads/master
| 2020-12-28T13:33:46.142303
| 2016-01-20T09:53:10
| 2016-01-20T09:53:10
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,976
|
java
|
package pk.elfo.gameserver.network.serverpackets;
import pk.elfo.gameserver.model.actor.L2Character;
import pk.elfo.gameserver.model.actor.L2Npc;
import pk.elfo.gameserver.model.actor.L2Summon;
import pk.elfo.gameserver.model.actor.instance.L2PcInstance;
import pk.elfo.gameserver.model.actor.templates.L2NpcTemplate;
import pk.elfo.gameserver.model.effects.L2Effect;
import pk.elfo.gameserver.model.items.L2Item;
import pk.elfo.gameserver.model.items.instance.L2ItemInstance;
import pk.elfo.gameserver.model.skills.L2Skill;
import pk.elfo.gameserver.network.SystemMessageId;
import javolution.util.FastList;
public class ConfirmDlg extends L2GameServerPacket
{
private final int _messageId;
private int _skillLvL = 1;
private static final int TYPE_ZONE_NAME = 7;
private static final int TYPE_SKILL_NAME = 4;
private static final int TYPE_ITEM_NAME = 3;
private static final int TYPE_NPC_NAME = 2;
private static final int TYPE_NUMBER = 1;
private static final int TYPE_TEXT = 0;
private final FastList<CnfDlgData> _info = new FastList<>();
private int _time = 0;
private int _requesterId = 0;
private static class CnfDlgData
{
protected final int type;
protected final Object value;
protected CnfDlgData(int t, Object val)
{
type = t;
value = val;
}
}
public ConfirmDlg(int messageId)
{
_messageId = messageId;
}
public ConfirmDlg(SystemMessageId messageId)
{
_messageId = messageId.getId();
}
public ConfirmDlg addString(String text)
{
_info.add(new CnfDlgData(TYPE_TEXT, text));
return this;
}
public ConfirmDlg addNumber(int number)
{
_info.add(new CnfDlgData(TYPE_NUMBER, number));
return this;
}
public ConfirmDlg addCharName(L2Character cha)
{
if (cha instanceof L2Npc)
{
return addNpcName((L2Npc) cha);
}
if (cha instanceof L2PcInstance)
{
return addPcName((L2PcInstance) cha);
}
if (cha instanceof L2Summon)
{
return addNpcName((L2Summon) cha);
}
return addString(cha.getName());
}
public ConfirmDlg addPcName(L2PcInstance pc)
{
return addString(pc.getAppearance().getVisibleName());
}
public ConfirmDlg addNpcName(L2Npc npc)
{
return addNpcName(npc.getTemplate());
}
public ConfirmDlg addNpcName(L2Summon npc)
{
return addNpcName(npc.getNpcId());
}
public ConfirmDlg addNpcName(L2NpcTemplate tpl)
{
if (tpl.isCustom())
{
return addString(tpl.getName());
}
return addNpcName(tpl.getNpcId());
}
public ConfirmDlg addNpcName(int id)
{
_info.add(new CnfDlgData(TYPE_NPC_NAME, id));
return this;
}
public ConfirmDlg addItemName(L2ItemInstance item)
{
return addItemName(item.getItem().getItemId());
}
public ConfirmDlg addItemName(L2Item item)
{
// TODO: template id for items
return addItemName(item.getItemId());
}
public ConfirmDlg addItemName(int id)
{
_info.add(new CnfDlgData(TYPE_ITEM_NAME, id));
return this;
}
public ConfirmDlg addZoneName(int x, int y, int z)
{
Integer[] coord =
{
x,
y,
z
};
_info.add(new CnfDlgData(TYPE_ZONE_NAME, coord));
return this;
}
public ConfirmDlg addSkillName(L2Effect effect)
{
return addSkillName(effect.getSkill());
}
public ConfirmDlg addSkillName(L2Skill skill)
{
if (skill.getId() != skill.getDisplayId())
{
return addString(skill.getName());
}
return addSkillName(skill.getId(), skill.getLevel());
}
public ConfirmDlg addSkillName(int id)
{
return addSkillName(id, 1);
}
public ConfirmDlg addSkillName(int id, int lvl)
{
_info.add(new CnfDlgData(TYPE_SKILL_NAME, id));
_skillLvL = lvl;
return this;
}
public ConfirmDlg addTime(int time)
{
_time = time;
return this;
}
public ConfirmDlg addRequesterId(int id)
{
_requesterId = id;
return this;
}
@Override
protected final void writeImpl()
{
writeC(0xf3);
writeD(_messageId);
if (_info.isEmpty())
{
writeD(0x00);
writeD(_time);
writeD(_requesterId);
}
else
{
writeD(_info.size());
// TODO: Verify this i bet its same like SystemMessage
for (CnfDlgData data : _info)
{
writeD(data.type);
switch (data.type)
{
case TYPE_TEXT:
writeS((String) data.value);
break;
case TYPE_NUMBER:
case TYPE_NPC_NAME:
case TYPE_ITEM_NAME:
writeD((Integer) data.value);
break;
case TYPE_SKILL_NAME:
writeD((Integer) data.value); // Skill Id
writeD(_skillLvL); // Skill lvl
break;
case TYPE_ZONE_NAME:
Integer[] array = (Integer[]) data.value;
writeD(array[0]);
writeD(array[1]);
writeD(array[2]);
break;
}
}
if (_time != 0)
{
writeD(_time);
}
if (_requesterId != 0)
{
writeD(_requesterId);
}
}
}
}
|
[
"PkElfo@13720c4f-9a1f-4619-977f-b36a0ac534ba"
] |
PkElfo@13720c4f-9a1f-4619-977f-b36a0ac534ba
|
0e64e82c3d2e1a4ff98209130a75064005ab2c01
|
09d0ddd512472a10bab82c912b66cbb13113fcbf
|
/TestApplications/TF-BETA-THERMATK-v5.7.1/DecompiledCode/JADX/src/main/java/org/telegram/messenger/C3398-$$Lambda$FileLoadOperation$pLwgbN71WnWYsTs7i_Ie2IK-Sjs.java
|
f004020bd51df7bff5a9589cae84ac0a886f7cfb
|
[] |
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,022
|
java
|
package org.telegram.messenger;
import org.telegram.tgnet.RequestDelegate;
import org.telegram.tgnet.TLObject;
import org.telegram.tgnet.TLRPC.TL_error;
/* compiled from: lambda */
/* renamed from: org.telegram.messenger.-$$Lambda$FileLoadOperation$pLwgbN71WnWYsTs7i_Ie2IK-Sjs */
public final /* synthetic */ class C3398-$$Lambda$FileLoadOperation$pLwgbN71WnWYsTs7i_Ie2IK-Sjs implements RequestDelegate {
private final /* synthetic */ FileLoadOperation f$0;
private final /* synthetic */ RequestInfo f$1;
private final /* synthetic */ TLObject f$2;
public /* synthetic */ C3398-$$Lambda$FileLoadOperation$pLwgbN71WnWYsTs7i_Ie2IK-Sjs(FileLoadOperation fileLoadOperation, RequestInfo requestInfo, TLObject tLObject) {
this.f$0 = fileLoadOperation;
this.f$1 = requestInfo;
this.f$2 = tLObject;
}
public final void run(TLObject tLObject, TL_error tL_error) {
this.f$0.lambda$startDownloadRequest$12$FileLoadOperation(this.f$1, this.f$2, tLObject, tL_error);
}
}
|
[
"crash@home.home.hr"
] |
crash@home.home.hr
|
4a7d9dd55e31c66a97551f93220416d66b71f703
|
eb97ee5d4f19d7bf028ae9a400642a8c644f8fe3
|
/tags/2012-05-19/seasar2-2.4.46/s2-tiger/src/test/java/org/seasar/extension/dxo/Aaa.java
|
b2f55f8c343c2f6e3ed895805761aecb3a0892b9
|
[
"Apache-2.0"
] |
permissive
|
svn2github/s2container
|
54ca27cf0c1200a93e1cb88884eb8226a9be677d
|
625adc6c4e1396654a7297d00ec206c077a78696
|
refs/heads/master
| 2020-06-04T17:15:02.140847
| 2013-08-09T09:38:15
| 2013-08-09T09:38:15
| 10,850,644
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,069
|
java
|
/*
* Copyright 2004-2012 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.extension.dxo;
import java.util.List;
/**
* @author koichik
*/
public class Aaa {
/** */
public Integer[] prop1;
private List<Integer> prop2;
/**
* @return
*/
public List<Integer> getProp2() {
return prop2;
}
/**
* @param prop2
*/
public void setProp2(List<Integer> prop2) {
this.prop2 = prop2;
}
}
|
[
"koichik@319488c0-e101-0410-93bc-b5e51f62721a"
] |
koichik@319488c0-e101-0410-93bc-b5e51f62721a
|
f53db430f0cea16b0d516197e403f2628064323d
|
3758d3e44e9cb41231d162beeddfaca8d85dc6cc
|
/src/main/java/com/adms/batch/sales/domain/DdopMapping2ndResult.java
|
0b576f4f745e9e22f1d6ce88a13745b9e8eae206
|
[] |
no_license
|
mothpc/batchSalesData
|
d94fb8cbbff1b2785a1ba23aafaf7fab5ce51dfe
|
fc560290d2f1ecadecbd2e32a7749896935f91ce
|
refs/heads/master
| 2021-01-10T06:08:53.674865
| 2016-02-26T09:09:16
| 2016-02-26T09:09:16
| 52,253,444
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,124
|
java
|
package com.adms.batch.sales.domain;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedNativeQueries;
import javax.persistence.NamedNativeQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import com.adms.common.domain.BaseAuditDomain;
@Entity
@Table(name = "DDOP_MAPPING_2ND_RESULT")
@NamedNativeQueries({ @NamedNativeQuery(name = "findDdopMapping2ndResultByxReference", query = "select * from DDOP_MAPPING_2ND_RESULT where X_REFERENCE = ?", resultClass = DdopMapping2ndResult.class),
})
public class DdopMapping2ndResult extends BaseAuditDomain {
private static final long serialVersionUID = -2366384577250740833L;
@Id
@Column(name = "ID")
@GeneratedValue(strategy = javax.persistence.GenerationType.IDENTITY)
private Long id;
@ManyToOne
@JoinColumn(name = "IMPORT_ID")
private FileImport fileImport;
@ManyToOne
@JoinColumn(name = "X_REFERENCE", referencedColumnName = "X_REFERENCE")
private Sales xReference;
@Column(name = "REJECT_DATE")
@Temporal(TemporalType.DATE)
private Date rejectDate;
@Column(name = "LAST_4_DIGIT_DEBIT_CARD")
private String last4DigitDebitCard;
@Column(name = "LAST_4_DIGIT_DEBIT_CARD_NEW")
private String last4DigitDebitCardNew;
@Column(name = "REMARK")
private String remark;
@Column(name = "COMM_STATUS")
private String commStatus;
public Long getId()
{
return id;
}
public void setId(Long id)
{
this.id = id;
}
public FileImport getFileImport()
{
return fileImport;
}
public void setFileImport(FileImport fileImport)
{
this.fileImport = fileImport;
}
public Sales getxReference()
{
return xReference;
}
public void setxReference(Sales xReference)
{
this.xReference = xReference;
}
public Date getRejectDate()
{
return rejectDate;
}
public void setRejectDate(Date rejectDate)
{
this.rejectDate = rejectDate;
}
public String getLast4DigitDebitCard()
{
return last4DigitDebitCard;
}
public void setLast4DigitDebitCard(String last4DigitDebitCard)
{
this.last4DigitDebitCard = last4DigitDebitCard;
}
public String getLast4DigitDebitCardNew()
{
return last4DigitDebitCardNew;
}
public void setLast4DigitDebitCardNew(String last4DigitDebitCardNew)
{
this.last4DigitDebitCardNew = last4DigitDebitCardNew;
}
public String getRemark()
{
return remark;
}
public void setRemark(String remark)
{
this.remark = remark;
}
public String getCommStatus()
{
return commStatus;
}
public void setCommStatus(String commStatus)
{
this.commStatus = commStatus;
}
@Override
public String toString()
{
return "DdopMapping2ndResult [id=" + id + ", fileImport=" + fileImport + ", xReference=" + xReference + ", rejectDate=" + rejectDate + ", last4DigitDebitCard=" + last4DigitDebitCard + ", last4DigitDebitCardNew=" + last4DigitDebitCardNew + ", remark=" + remark + ", commStatus=" + commStatus + "]";
}
}
|
[
"moth.pc@gmail.com"
] |
moth.pc@gmail.com
|
cbda17acab3021c8b66397c7f156541a538471a7
|
d3bf4dfd7b48597f13f656a1f28eca1e79c1cb2a
|
/smipay-service/src/main/java/com/smi/pay/service/request/OrderType.java
|
2ef311d79395394827a54993c79f958b526f2b56
|
[] |
no_license
|
zengchi/project
|
6a5b0d71ec6e7bcc8d32380509b34d9eebbe1ed7
|
a72c4aabb260bca8d2e340f2262d2f6c53f98898
|
refs/heads/master
| 2021-04-08T14:37:56.661873
| 2017-12-23T02:42:31
| 2017-12-23T02:42:31
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 491
|
java
|
package com.smi.pay.service.request;
/**
* 订单类型
*/
public enum OrderType {
/**
* 虚拟卡消费
*/
VIRTUALCARD(1, "虚拟卡消费");
private int code;
private String name;
private OrderType(int code, String name) {
this.code = code;
this.name = name;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
[
"32216688+henry90821@users.noreply.github.com"
] |
32216688+henry90821@users.noreply.github.com
|
f0eb232bfb728c1f5b9d136b0be4f6fca3012a71
|
14c7f7347822f0a91ca71147c388eee4048b59ba
|
/manifold-deps-parent/manifold-yaml-test/src/test/java/manifold/api/yaml/YamlTest.java
|
3525dfa2a1ac3eb930afb89c3406460730f4a0c2
|
[
"Apache-2.0"
] |
permissive
|
0xflotus/manifold
|
a45f6c3577fa4d6e1a0c6c5680b7f538c65bdea4
|
89cc8551bc85b4c0fd94ec4bbf4938e58c3bd639
|
refs/heads/master
| 2021-06-22T12:22:25.550684
| 2019-05-05T13:31:17
| 2019-05-05T13:31:17
| 185,033,416
| 0
| 0
|
NOASSERTION
| 2021-02-09T22:37:48
| 2019-05-05T13:14:12
|
Java
|
UTF-8
|
Java
| false
| false
| 4,571
|
java
|
/*
* Copyright (c) 2019 - Manifold Systems 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.
*/
package manifold.api.yaml;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.time.LocalDate;
import java.util.List;
import javax.script.Bindings;
import junit.framework.TestCase;
import manifold.api.json.Yaml;
import manifold.util.JsonUtil;
import manifold.util.StreamUtil;
import abc.yaml.Invoice;
import abc.yaml.Contact;
public class YamlTest extends TestCase
{
public void testYaml() throws IOException
{
Bindings bindings = (Bindings) Yaml.fromYaml( StreamUtil.getContent( new InputStreamReader( getClass().getResourceAsStream( "/abc/yaml/Invoice.yaml" ) ) ) );
System.out.println( JsonUtil.toJson( bindings ) );
}
public void testSampleYaml() throws FileNotFoundException
{
Invoice invoice = Invoice.load().fromYamlUrl( getClass().getResource( "/abc/yaml/Invoice.yaml" ) );
Integer invoiceId = invoice.getInvoice();
assertEquals( 34843, invoiceId.intValue() );
String date = invoice.getDate();
assertEquals( "2001-01-23", date );
Invoice.bill_to bill_to = invoice.getBill_to();
String given = bill_to.getGiven();
assertEquals( "Chris", given );
String family = bill_to.getFamily();
assertEquals( "Dumars", family );
Invoice.bill_to.address address = bill_to.getAddress();
String lines = address.getLines();
assertEquals( "458 Walkman Dr.\nSuite #292\n", lines );
String city = address.getCity();
assertEquals( "Royal Oak", city );
String state = address.getState();
assertEquals( "MI", state );
Integer postal = address.getPostal();
assertEquals( 48046, postal.intValue() );
Invoice.ship_to ship_to = invoice.getShip_to();
String given2 = ship_to.getGiven();
String family2 = ship_to.getFamily();
Invoice.ship_to.address address2 = ship_to.getAddress();
String lines2 = address2.getLines();
String city2 = address2.getCity();
String state2 = address2.getState();
Integer postal2 = address2.getPostal();
Invoice.product products = (Invoice.product) invoice.getProduct();
Invoice.product.productItem product = products.get(0);
String sku = product.getSku();
Integer quantity = product.getQuantity();
String description = product.getDescription();
Double price = product.getPrice();
Double tax = invoice.getTax();
Double total = invoice.getTotal();
assertEquals( 4443.52, Math.round( total * 100d )/100d );
String comments = invoice.getComments();
assertEquals( "Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338.", comments );
}
public void testJsonSchemaYaml()
{
Contact contact = Contact.builder()
.withName("Scott McKinney")
.withDateOfBirth( LocalDate.of(1986, 8, 9))
.withPrimaryAddress(Contact.Address.create("111 Main St.", "Cupertino", "CA")).build();
Contact.Address primaryAddress = contact.getPrimaryAddress();
assertEquals( "111 Main St.", primaryAddress.getStreet_address() );
assertEquals( "Cupertino", primaryAddress.getCity() );
assertEquals( "CA", primaryAddress.getState() );
assertEquals( "Scott McKinney", contact.getName() );
assertEquals( LocalDate.of(1986, 8, 9), contact.getDateOfBirth() );
assertEquals( "{\n" +
" \"Name\": \"Scott McKinney\",\n" +
" \"DateOfBirth\": \"1986-08-09\",\n" +
" \"PrimaryAddress\": {\n" +
" \"street_address\": \"111 Main St.\",\n" +
" \"city\": \"Cupertino\",\n" +
" \"state\": \"CA\"\n" +
" }\n" +
"}", contact.write().toJson() );
assertEquals( "Name: Scott McKinney\n" +
"DateOfBirth: 1986-08-09\n" +
"PrimaryAddress:\n" +
" street_address: 111 Main St.\n" +
" city: Cupertino\n" +
" state: CA\n", contact.write().toYaml() );
}
}
|
[
"rsmckinney@hotmail.com"
] |
rsmckinney@hotmail.com
|
e400f5741536058f88cc9795dc53286a38ab81b0
|
c37ef54d151f8e70b6d521575f0b3b300b55525c
|
/core/cas-server-core-authentication-attributes/src/test/java/org/apereo/cas/services/ScriptedRegisteredServiceAttributeReleasePolicyTests.java
|
066bb2120c477dface22b6567a8180000bdbbcdb
|
[
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] |
permissive
|
viswatejan/cas
|
f29c02f4b4ccfe73800012439f06dfdf9e2bffcc
|
671ffd44cd8ebee06c3815502b73cbd56fa46b5b
|
refs/heads/master
| 2020-03-22T18:27:33.912304
| 2018-07-10T19:36:28
| 2018-07-10T19:36:28
| 140,461,569
| 0
| 0
|
Apache-2.0
| 2018-07-10T16:42:51
| 2018-07-10T16:42:50
| null |
UTF-8
|
Java
| false
| false
| 1,062
|
java
|
package org.apereo.cas.services;
import lombok.val;
import lombok.extern.slf4j.Slf4j;
import org.apereo.cas.CoreAttributesTestUtils;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import java.util.Collections;
import static org.junit.Assert.*;
/**
* This is {@link ScriptedRegisteredServiceAttributeReleasePolicyTests}.
*
* @author Misagh Moayyed
* @since 5.1.0
*/
@RunWith(JUnit4.class)
@Slf4j
public class ScriptedRegisteredServiceAttributeReleasePolicyTests {
@Test
public void verifyInlineScript() {
val p = new ScriptedRegisteredServiceAttributeReleasePolicy();
p.setScriptFile("groovy { return attributes }");
val principal = CoreAttributesTestUtils.getPrincipal("cas",
Collections.singletonMap("attribute", "value"));
val attrs = p.getAttributes(principal,
CoreAttributesTestUtils.getService(),
CoreAttributesTestUtils.getRegisteredService());
assertEquals(attrs.size(), principal.getAttributes().size());
}
}
|
[
"mmoayyed@unicon.net"
] |
mmoayyed@unicon.net
|
bda476aa956bc266348eb4bfe0919afda0e5ea15
|
a715e8312a90d099b72c24e5b7da1372c9fe67fb
|
/android/android/src/com/android/tools/idea/editors/strings/table/StringsCellEditor.java
|
055fa461ff4cd9c7c0afcd6c2a15bbe88eef0c7d
|
[
"Apache-2.0"
] |
permissive
|
wiltonlazary/bugvm-studio
|
ff98c1beca1f890013aa05ecd67f137a14a70c32
|
5861389424a51181c58178576c78cf35c0ceb1b5
|
refs/heads/master
| 2021-01-24T20:58:41.730805
| 2015-12-18T19:34:14
| 2015-12-18T19:34:14
| 56,322,614
| 2
| 1
| null | 2016-04-15T13:34:56
| 2016-04-15T13:34:56
| null |
UTF-8
|
Java
| false
| false
| 3,099
|
java
|
/*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.tools.idea.editors.strings.table;
import com.android.tools.idea.editors.strings.FontUtil;
import com.intellij.ui.components.JBTextField;
import com.intellij.util.ui.AbstractTableCellEditor;
import javax.swing.*;
import javax.swing.table.TableModel;
import java.awt.*;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.util.EventObject;
public class StringsCellEditor extends AbstractTableCellEditor {
private final JBTextField myTextField;
public StringsCellEditor() {
myTextField = new JBTextField();
myTextField.addKeyListener(new KeyAdapter() {
@Override
public void keyPressed(KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_ENTER) {
stopCellEditing();
e.consume();
}
else {
super.keyPressed(e);
}
}
});
}
@Override
public boolean isCellEditable(EventObject e) {
boolean doubleClick =
e instanceof MouseEvent && ((MouseEvent)e).getClickCount() == 2 && ((MouseEvent)e).getButton() == MouseEvent.BUTTON1;
boolean returnKeyPressed = e instanceof KeyEvent && ((KeyEvent)e).getKeyCode() == KeyEvent.VK_ENTER;
if (!doubleClick && !returnKeyPressed) {
return false;
}
if (!(e.getSource() instanceof JTable)) {
return false;
}
JTable source = ((JTable)e.getSource());
if (source.getSelectedRowCount() != 1 || source.getSelectedColumnCount() != 1) {
return false;
}
int row = source.getSelectedRow();
int col = source.getSelectedColumn();
if (col == ConstantColumn.KEY.ordinal()) {
return false; // TODO: keys are not editable, we want them to be refactor operations
}
StringResourceTableModel model = (StringResourceTableModel)source.getModel();
String value = (String)model.getValueAt(row, col);
// multi line values cannot be edited inline
return !StringsCellRenderer.shouldClip(value);
}
@Override
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
StringResourceTableModel model = (StringResourceTableModel)table.getModel();
String v = (String)model.getValueAt(row, column);
myTextField.setText(v);
myTextField.setFont(FontUtil.getFontAbleToDisplay(v, myTextField.getFont()));
return myTextField;
}
@Override
public Object getCellEditorValue() {
return myTextField.getText();
}
}
|
[
"github@ibinti.com"
] |
github@ibinti.com
|
f7f46f6b4f4eccab28530080005f6bf309460065
|
8237de403ac1ec61a8d8e20ee9813f33a5a15282
|
/service/src/main/java/com/voronovich/service/impl/LocationService.java
|
384df8aa8f4e9c31a0c0a5bc78efd5e3c5fe07d8
|
[] |
no_license
|
ddvoron/crm_b
|
7449e23f2d51d4a28de7011fe6bd4f7fb321f843
|
ea4790852b1d47027164909dfef94f81fa14cc04
|
refs/heads/master
| 2021-05-08T18:38:40.962836
| 2018-01-30T11:26:18
| 2018-01-30T11:26:18
| 119,525,409
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,992
|
java
|
package com.voronovich.service.impl;
import com.voronovich.dao.ILocationDao;
import com.voronovich.exception.DaoException;
import com.voronovich.model.Location;
import com.voronovich.service.ILocationService;
import com.voronovich.service.exception.ServiceException;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.io.Serializable;
@Service("locationService")
@Transactional
public class LocationService implements ILocationService {
private static Logger log = Logger.getLogger(LocationService.class);
@Autowired
private ILocationDao dao;
@Override
public int save(Location location) throws ServiceException {
try {
return dao.save(location);
} catch (DaoException e) {
log.error("Error location save in LocationService: " + e);
throw new ServiceException(e);
}
}
@Override
public void update(Location location) throws ServiceException {
try {
dao.update(location);
} catch (DaoException e) {
log.error("Error location update in LocationService: " + e);
throw new ServiceException(e);
}
}
@Override
public void delete(Location location) throws ServiceException {
try {
dao.delete(location);
} catch (DaoException e) {
log.error("Error location delete in LocationService: " + e);
throw new ServiceException(e);
}
}
@Override
public Location get(Serializable id) throws ServiceException {
Location location = null;
try {
location = dao.get(id);
return location;
} catch (DaoException e) {
log.error("Error getting location by id in LocationService: " + e);
throw new ServiceException(e);
}
}
}
|
[
"dd.versus@gmail.com"
] |
dd.versus@gmail.com
|
24bc4f3683619df84f6d09687ab2debd6a657400
|
68323428647d25764d25711aadc2c15ed42b3e35
|
/CTFAInciRedesign/inci-app/src/main/java/com/proximo/inci/component/common/security/user/UserFormLayout.java
|
9ee31628dfac9ee16cfdfcd9534849a3add1a95e
|
[] |
no_license
|
dgutu/java
|
5bbb312f1325c7c05b15a28151365a26d934490f
|
322198a43f4021cb30c607bc6e20768b1f6c2a93
|
refs/heads/master
| 2021-01-20T05:49:23.583392
| 2017-08-08T18:42:44
| 2017-08-08T19:14:28
| 89,797,988
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,881
|
java
|
/** Copyright 2012 to present by the Personal Care Products Council, Inc
The copyright to the computer program(s) herein is the property of
the Personal Care Products Council, Inc. The program(s) may be used and/or
copied only with the written permission of the Personal Care Products Council, Inc
or in accordance with the terms and conditions stipulated in the
agreement/contract under which the program(s) have been supplied.*/
package com.proximo.inci.component.common.security.user;
import com.proximo.inci.component.AbstractInciComponentLayout;
import com.proximo.inci.component.util.ComponentUtil;
import com.proximo.inci.service.security.user.User;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.VerticalLayout;
public class UserFormLayout extends AbstractInciComponentLayout<VerticalLayout> {
private User user;
private boolean editable = true;
private UserFormTitleLayout userFormTitleLayout;
private UserForm userForm;
public UserFormLayout() {
build();
}
@Override
protected VerticalLayout createMainComponentInstance() {
return new VerticalLayout();
}
@Override
protected void init() {
mainComponent.setSpacing(false);
userFormTitleLayout = new UserFormTitleLayout();
userForm = new UserForm(this);
}
@Override
protected void addContent() {
addComponent(userFormTitleLayout, Alignment.MIDDLE_CENTER);
addSpacing(ComponentUtil.NORMAL_FORM_SPACING_PX);
addComponent(userForm);
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public boolean isEditable() {
return editable;
}
public void setEditable(boolean editable) {
this.editable = editable;
}
}
|
[
"gda.dumitru@gmail.com"
] |
gda.dumitru@gmail.com
|
5f85e417ab76968fb907e910dd1ea22088d7ef01
|
c908e0d326442b9b41aaa54504c16689f10f9bd0
|
/lib/src/main/java/org/xclcharts/chart/AreaData.java
|
bf2dc3b4f249463483bc67cdda1dafad7d2125e9
|
[
"Apache-2.0"
] |
permissive
|
wwmengtao/XCL-Charts
|
d18eaf1c28b18583b9e690266b793d43eaacdd24
|
1906e2c1d9358e997804272ef8842f34163db324
|
refs/heads/master
| 2020-06-13T02:39:23.200830
| 2019-06-30T11:51:52
| 2019-06-30T11:51:52
| 194,504,237
| 0
| 0
|
Apache-2.0
| 2019-06-30T10:40:29
| 2019-06-30T10:40:28
| null |
UTF-8
|
Java
| false
| false
| 4,542
|
java
|
/**
* Copyright 2014 XCL-Charts
*
* 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.
*
* @Project XCL-Charts
* @Description Android图表基类库
* @author XiongChuanLiang<br/>(xcl_168@aliyun.com)
* @license http://www.apache.org/licenses/ Apache v2 License
* @version 1.0
*/
package org.xclcharts.chart;
import java.util.List;
import org.xclcharts.renderer.XEnum;
import android.graphics.Color;
import android.graphics.Shader;
/**
* @ClassName AreaData
* @Description 面积图数据传输类
* @author XiongChuanLiang<br/>(xcl_168@aliyun.com)
*
*/
public class AreaData extends LineData {
private int mAreaFillColor = -999; // 255;
//是否应用渲染模式
private boolean mApplayGradient = false;
private int mAreaBeginColor = Color.WHITE;
private int mAreaEndColor = Color.WHITE;
private Shader.TileMode mTileMode = Shader.TileMode.MIRROR;
private XEnum.Direction mDirection = XEnum.Direction.VERTICAL;
public AreaData()
{
super();
}
/**
*
* @param key key值
* @param linecolor 线颜色
* @param dataSeries 数据序列
*/
public AreaData(String key,int linecolor,List<Double> dataSeries)
{
super();
}
/**
*
* @param key key值
* @param dataSeries 数据序列
* @param lineColor 线颜色
* @param areaColor 区域填充颜色
*/
public AreaData(String key,List<Double> dataSeries,int lineColor,int areaColor)
{
setLabel(key);
setDataSet(dataSeries);
setLineColor(lineColor);
setAreaFillColor(areaColor);
setAreaBeginColor(areaColor);
setAreaEndColor(Color.WHITE);
}
public AreaData(String key,List<Double> dataSeries,int lineColor,
int areaBeginColor,int areaEndColor)
{
setLabel(key);
setDataSet(dataSeries);
setLineColor(lineColor);
setAreaFillColor(areaBeginColor);
setApplayGradient(true);
setAreaBeginColor(areaBeginColor);
setAreaEndColor(areaEndColor);
}
/**
*
* @param key key值
* @param dataSeries 数据序列
* @param color 线颜色
* @param dotStyle 坐标点绘制类型
*/
public AreaData(String key,
List<Double> dataSeries,
int color,
XEnum.DotStyle dotStyle)
{
setLabel(key);
setLineColor(color);
setDataSet(dataSeries);
setDotStyle(dotStyle);
setAreaFillColor(color);
setAreaBeginColor(color);
setAreaEndColor(Color.WHITE);
}
/**
* 设置区域填充颜色
* @param color 区域填充颜色
*/
public void setAreaFillColor(int color)
{
mAreaFillColor = color;
}
/**
* 返回区域填充颜色
* @return 区域填充颜色
*/
public int getAreaFillColor() {
return mAreaFillColor;
}
/**
* 设置 是否应用渲染模式
*/
public void setApplayGradient(boolean status)
{
mApplayGradient = status;
}
/**
* 返回是否应用渲染模式
* @return 状态
*/
public boolean getApplayGradient()
{
return mApplayGradient;
}
/**
* 设置渐变渲染方向
* @param direction 方向
*/
public void setGradientDirection(XEnum.Direction direction)
{
mDirection = direction;
}
/**
* 返回渐变渲染方向
* @return 方向
*/
public XEnum.Direction getGradientDirection()
{
return mDirection;
}
/**
* 设置渲染模式
* @param tm 渲染模式
*/
public void setGradientMode(Shader.TileMode tm)
{
mTileMode = tm;
}
/**
* 返回渲染模式
* @return 渲染模式
*/
public Shader.TileMode getGradientMode()
{
return mTileMode;
}
/**
* 设置起始颜色
* @param color 颜色
*/
public void setAreaBeginColor(int color)
{
mAreaBeginColor = color;
}
/**
* 设置结束颜色
* @param color 颜色
*/
public void setAreaEndColor(int color)
{
mAreaEndColor = color;
}
/**
* 返回起始颜色
* @return 颜色
*/
public int getAreaBeginColor()
{
return mAreaBeginColor;
}
/**
* 返回结束颜色
* @return 颜色
*/
public int getAreaEndColor()
{
return mAreaEndColor;
}
}
|
[
"xcl_168@aliyun.com"
] |
xcl_168@aliyun.com
|
9ece95a9faa2cbb93381703323e227a745a1082d
|
1c5e8605c1a4821bc2a759da670add762d0a94a2
|
/easrc/fdc/basedata/app/AbstractProjectIndexDataRptFacadeControllerBean.java
|
4e9c884ee16a4fa84a2563a44197422f80a622ac
|
[] |
no_license
|
shxr/NJG
|
8195cfebfbda1e000c30081399c5fbafc61bb7be
|
1b60a4a7458da48991de4c2d04407c26ccf2f277
|
refs/heads/master
| 2020-12-24T06:51:18.392426
| 2016-04-25T03:09:27
| 2016-04-25T03:09:27
| 19,804,797
| 0
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,292
|
java
|
package com.kingdee.eas.fdc.basedata.app;
import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;
public abstract class AbstractProjectIndexDataRptFacadeControllerBean extends FDCBIRptBaseFacadeControllerBean implements ProjectIndexDataRptFacadeController
{
protected AbstractProjectIndexDataRptFacadeControllerBean()
{
}
protected BOSObjectType getBOSType()
{
return new BOSObjectType("00B6323B");
}
}
|
[
"shxr_code@126.com"
] |
shxr_code@126.com
|
c317daf31d3f292b867b9370dccb80acefdec6b6
|
2e4f59046d958653147442d6e062ce1fd5fc8794
|
/src/compiler/command/Command.java
|
b3561df9d35ddd4d81e4edac2f3fc1148b8a4553
|
[] |
no_license
|
tylkahn/Kitteh2
|
2fa235f4b5316d39b184989f8deef89b2bf6aab1
|
f17727866ddac373c3dd793e616f6f5d6aff214c
|
refs/heads/master
| 2020-06-13T22:17:38.233576
| 2016-12-04T15:22:35
| 2016-12-04T15:22:35
| 75,546,923
| 0
| 0
| null | 2016-12-04T15:45:06
| 2016-12-04T15:45:05
| null |
UTF-8
|
Java
| false
| false
| 1,892
|
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package compiler.command;
import compiler.Context;
import compiler.tac.IREmitter;
import java.util.stream.Stream;
/**
*
* @author leijurv
*/
public abstract class Command {
protected final Context context;
protected Command(Context context) {
this.context = context;
}
protected abstract void generateTAC0(IREmitter emit);
public final void generateTAC(IREmitter emit) {
emit.updateContext(context);
int before = emit.mostRecentLineNumber();
generateTAC0(emit);
int after = emit.mostRecentLineNumber();
int actualLen = after - before;
if (actualLen != getTACLength()) {
//this exception really means: I actually wrote a different amount of tac statements than expected
//this check is 100% worth it, because otherwise it's super hard to debug
//i speak from experience
//it messes up all the jump destinations in a really subtle way =/
throw new IllegalStateException("i am being body shamed. my tack size is too " + (actualLen > getTACLength() ? "big" : "small") + ", according to societal norms " + this + " " + actualLen + " " + getTACLength());
}
//this is only here to make life difficult for everyone. don't remove it.
emit.clearContext();//actually, remove it. i dare you
}
protected abstract int calculateTACLength();
private Integer taclen = null;
public int getTACLength() {
if (taclen == null) {
taclen = calculateTACLength();
}
return taclen;
}
public abstract void staticValues();
public Stream<String> getAllVarsModified() {
return Stream.empty();
}
}
|
[
"leijurv@gmail.com"
] |
leijurv@gmail.com
|
109a37c78fe0ea7e769f0f463878cb7489758deb
|
35477fae0c6e9161e00c8010a04b5afb9e6a7c9c
|
/org.eclipse.photran.core.vpg/parser/org/eclipse/photran/internal/core/parser/ASTGotoStmtNode.java
|
5475139f177e6aa0ae79de02d33800763f7c5452
|
[] |
no_license
|
cemeyer2/fruit
|
959693aada218b7552ab73c89413cd2746c9182a
|
8a661d80b443efb928950553ef81277d5a0bf3a6
|
refs/heads/master
| 2021-01-19T19:31:09.379404
| 2014-05-13T14:36:48
| 2014-05-13T14:36:48
| 19,291,788
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,568
|
java
|
/*******************************************************************************
* Copyright (c) 2007 University of Illinois at Urbana-Champaign and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* UIUC - Initial API and implementation
*******************************************************************************/
package org.eclipse.photran.internal.core.parser;
import java.io.PrintStream;
import java.util.Iterator;
import java.util.List;
import org.eclipse.photran.internal.core.parser.Parser.ASTNode;
import org.eclipse.photran.internal.core.parser.Parser.ASTNodeWithErrorRecoverySymbols;
import org.eclipse.photran.internal.core.parser.Parser.IASTListNode;
import org.eclipse.photran.internal.core.parser.Parser.IASTNode;
import org.eclipse.photran.internal.core.parser.Parser.IASTVisitor;
import org.eclipse.photran.internal.core.lexer.Token;
import org.eclipse.photran.internal.core.lexer.*; import org.eclipse.photran.internal.core.analysis.binding.ScopingNode;
public class ASTGotoStmtNode extends ASTNode implements IActionStmt
{
org.eclipse.photran.internal.core.lexer.Token label; // in ASTGotoStmtNode
org.eclipse.photran.internal.core.lexer.Token hiddenTGo; // in ASTGotoStmtNode
org.eclipse.photran.internal.core.lexer.Token hiddenTTo; // in ASTGotoStmtNode
org.eclipse.photran.internal.core.lexer.Token hiddenTGoto; // in ASTGotoStmtNode
ASTLblRefNode gotoLblRef; // in ASTGotoStmtNode
org.eclipse.photran.internal.core.lexer.Token hiddenTEos; // in ASTGotoStmtNode
public org.eclipse.photran.internal.core.lexer.Token getLabel()
{
return this.label;
}
public void setLabel(org.eclipse.photran.internal.core.lexer.Token newValue)
{
this.label = newValue;
}
public ASTLblRefNode getGotoLblRef()
{
return this.gotoLblRef;
}
public void setGotoLblRef(ASTLblRefNode newValue)
{
this.gotoLblRef = newValue;
}
public void accept(IASTVisitor visitor)
{
visitor.visitASTGotoStmtNode(this);
visitor.visitIActionStmt(this);
visitor.visitASTNode(this);
}
@Override protected int getNumASTFields()
{
return 6;
}
@Override protected IASTNode getASTField(int index)
{
switch (index)
{
case 0: return this.label;
case 1: return this.hiddenTGo;
case 2: return this.hiddenTTo;
case 3: return this.hiddenTGoto;
case 4: return this.gotoLblRef;
case 5: return this.hiddenTEos;
default: return null;
}
}
@Override protected void setASTField(int index, IASTNode value)
{
switch (index)
{
case 0: this.label = (org.eclipse.photran.internal.core.lexer.Token)value; return;
case 1: this.hiddenTGo = (org.eclipse.photran.internal.core.lexer.Token)value; return;
case 2: this.hiddenTTo = (org.eclipse.photran.internal.core.lexer.Token)value; return;
case 3: this.hiddenTGoto = (org.eclipse.photran.internal.core.lexer.Token)value; return;
case 4: this.gotoLblRef = (ASTLblRefNode)value; return;
case 5: this.hiddenTEos = (org.eclipse.photran.internal.core.lexer.Token)value; return;
default: throw new IllegalArgumentException("Invalid index");
}
}
}
|
[
"cmeyer@homeaway.com"
] |
cmeyer@homeaway.com
|
f0a26cef70b404d52508d31c23dfc85938d2dc6a
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/29/29_7c22899f329bae70aa5487347e8d5f48f4d28c27/EncryptedInputStream/29_7c22899f329bae70aa5487347e8d5f48f4d28c27_EncryptedInputStream_t.java
|
2ad3590239b52e4cb58d924c46dab56328442276
|
[] |
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
| 6,032
|
java
|
/**
* Copyright (C) 2009 HungryHobo@mail.i2p
*
* The GPG fingerprint for HungryHobo@mail.i2p is:
* 6DD3 EAA2 9990 29BC 4AD2 7486 1E2C 7B61 76DC DC12
*
* This file is part of I2P-Bote.
* I2P-Bote is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* I2P-Bote is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with I2P-Bote. If not, see <http://www.gnu.org/licenses/>.
*/
package i2p.bote.fileencryption;
import static i2p.bote.fileencryption.FileEncryptionConstants.BLOCK_SIZE;
import static i2p.bote.fileencryption.FileEncryptionConstants.FORMAT_VERSION;
import static i2p.bote.fileencryption.FileEncryptionConstants.SALT_LENGTH;
import static i2p.bote.fileencryption.FileEncryptionConstants.START_OF_FILE;
import i2p.bote.Util;
import java.io.ByteArrayInputStream;
import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.security.GeneralSecurityException;
import java.util.Arrays;
import net.i2p.I2PAppContext;
import net.i2p.data.SessionKey;
/**
* Decrypts data written via {@link EncryptedOutputStream}.
*/
public class EncryptedInputStream extends FilterInputStream {
private ByteArrayInputStream decryptedData;
/**
* Creates a new <code>EncryptedInputStream</code>, reads and decrypts
* the entire underlying <code>InputStream</code>, and buffers it internally.
* @param upstream
* @param passwordHolder
* @throws IOException
* @throws GeneralSecurityException
* @throws PasswordException
*/
public EncryptedInputStream(InputStream upstream, PasswordHolder passwordHolder) throws IOException, GeneralSecurityException, PasswordException {
super(upstream);
byte[] password = passwordHolder.getPassword();
if (password == null)
throw new PasswordException();
DerivedKey cachedKey = passwordHolder.getKey();
byte[] bytes = readInputStream(upstream, password, cachedKey);
decryptedData = new ByteArrayInputStream(bytes);
}
public EncryptedInputStream(InputStream upstream, byte[] password) throws IOException, GeneralSecurityException, PasswordException {
super(upstream);
byte[] bytes = readInputStream(upstream, password, null);
decryptedData = new ByteArrayInputStream(bytes);
}
/**
* If <code>cachedKey</code> is not <code>null</code>, this method assumes the
* key has been generated from a valid password.
* @param inputStream
* @param password
* @param cachedKey
* @return the decrypted data
* @throws IOException
* @throws GeneralSecurityException
* @throws PasswordException
*/
@SuppressWarnings("deprecation") // for net.i2p.crypto.AESEngine
private byte[] readInputStream(InputStream inputStream, byte[] password, DerivedKey cachedKey) throws IOException, GeneralSecurityException, PasswordException {
byte[] startOfFile = new byte[START_OF_FILE.length];
inputStream.read(startOfFile);
if (!Arrays.equals(START_OF_FILE, startOfFile))
throw new IOException("Invalid header bytes: " + Arrays.toString(startOfFile) + ", expected: " + Arrays.toString(START_OF_FILE));
int format = inputStream.read();
if (format != FORMAT_VERSION)
throw new IOException("Invalid file format identifier: " + format + ", expected: " + FORMAT_VERSION);
SCryptParameters scryptParams = new SCryptParameters(inputStream);
byte[] salt = new byte[SALT_LENGTH];
inputStream.read(salt);
// use the cached key if it is suitable, otherwise compute the key
byte[] keyBytes;
if (cachedKey!=null && Arrays.equals(salt, cachedKey.salt) && scryptParams.equals(cachedKey.scryptParams))
keyBytes = cachedKey.key;
else
keyBytes = FileEncryptionUtil.getEncryptionKey(password, salt, scryptParams);
byte iv[] = new byte[BLOCK_SIZE];
inputStream.read(iv);
byte[] encryptedData = Util.readBytes(inputStream);
SessionKey key = new SessionKey(keyBytes);
I2PAppContext appContext = I2PAppContext.getGlobalContext();
byte[] decryptedData = appContext.aes().safeDecrypt(encryptedData, key, iv);
// null from safeDecrypt() means failure
if (decryptedData == null)
if (cachedKey == null)
throw new PasswordException();
else
// If a derived key was supplied but decryption failed, the encrypted
// data is corrupt or it was encrypted with a different password than
// the key corresponds to, so don't throw a PasswordException because
// we're assuming password and key are correct.
throw new GeneralSecurityException("Can't decrypt using cached key.");
return decryptedData;
}
@Override
public int read() {
return decryptedData.read();
}
@Override
public int read(byte[] b, int off, int len) {
return decryptedData.read(b, off, len);
}
@Override
public int available() {
return decryptedData.available();
}
@Override
public void mark(int readLimit) {
decryptedData.mark(readLimit);
}
@Override
public void reset() {
decryptedData.reset();
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
266ff67f83ea26f30dfdcf973627ef7e97d6ebf9
|
be25b2c018dbacd8147a8fbfbc66f257b050ea1f
|
/languages/languageDesign/editor/source_gen/jetbrains/mps/lang/editor/behavior/QueryFunction_NodeFactory_BehaviorDescriptor.java
|
1372ddf597313723d669be55c1e344926d26f14f
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
blutkind/MPS
|
f5bef8c27c3cb65940ba74a5d1942fdab35ee096
|
cac72cce91d98dec40bbadf7a049ed9dbbc18231
|
refs/heads/master
| 2020-04-08T01:22:10.782234
| 2011-12-09T20:58:07
| 2011-12-09T20:58:07
| 2,950,220
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 445
|
java
|
package jetbrains.mps.lang.editor.behavior;
/*Generated by MPS */
import jetbrains.mps.baseLanguage.behavior.ConceptFunction_BehaviorDescriptor;
public class QueryFunction_NodeFactory_BehaviorDescriptor extends ConceptFunction_BehaviorDescriptor {
public QueryFunction_NodeFactory_BehaviorDescriptor() {
}
@Override
public String getConceptFqName() {
return "jetbrains.mps.lang.editor.structure.QueryFunction_NodeFactory";
}
}
|
[
"Timur.Abishev@jetbrains.com"
] |
Timur.Abishev@jetbrains.com
|
a4b363bd0289857f9e18abd61ea92fc6401cd6fc
|
139960e2d7d55e71c15e6a63acb6609e142a2ace
|
/mobile_app1/module314/src/main/java/module314packageJava0/Foo84.java
|
22703cc272b51cc2c623d5dc5a3f25873288834f
|
[
"Apache-2.0"
] |
permissive
|
uber-common/android-build-eval
|
448bfe141b6911ad8a99268378c75217d431766f
|
7723bfd0b9b1056892cef1fef02314b435b086f2
|
refs/heads/master
| 2023-02-18T22:25:15.121902
| 2023-02-06T19:35:34
| 2023-02-06T19:35:34
| 294,831,672
| 83
| 7
|
Apache-2.0
| 2021-09-24T08:55:30
| 2020-09-11T23:27:37
|
Java
|
UTF-8
|
Java
| false
| false
| 292
|
java
|
package module314packageJava0;
import java.lang.Integer;
public class Foo84 {
Integer int0;
public void foo0() {
new module314packageJava0.Foo83().foo3();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
}
|
[
"oliviern@uber.com"
] |
oliviern@uber.com
|
452df02a08f2ca6196b422266cd633b1043d14cc
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/1/1_4153e208d310abfd3bdfe8b9884a0ec0bab57b80/PersistedFormDocument/1_4153e208d310abfd3bdfe8b9884a0ec0bab57b80_PersistedFormDocument_t.java
|
5d6c5a4612a9d6ec719913a6f984b47071ba5103
|
[] |
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,389
|
java
|
package com.idega.xformsmanager.business;
import java.io.InputStream;
import java.io.StringWriter;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.w3c.dom.Document;
import com.idega.idegaweb.IWMainApplication;
import com.idega.util.IOUtil;
import com.idega.util.StringHandler;
import com.idega.util.xml.XmlUtil;
import com.idega.xformsmanager.util.FormManagerUtil;
/**
* @author <a href="mailto:civilis@idega.com">Vytautas Čivilis</a>
* @version $Revision: 1.2 $
*
* Last modified: $Date: 2008/12/28 11:53:45 $ by $Author: civilis $
*/
public class PersistedFormDocument {
private Document xformsDocument;
private Long formId;
private String formType;
private Integer version;
private boolean outputReplaced;
public Document getXformsDocument() {
return xformsDocument;
}
public void setXformsDocument(Document xformsDocument) {
if (!outputReplaced && IWMainApplication.getDefaultIWMainApplication().getSettings().getBoolean("xforms_idega_output", Boolean.FALSE)) {
String xformInString = null;
InputStream xformStream = null;
try {
// Replacing buggy "xf:output" to "idega:output"
StringWriter sw = new StringWriter();
XmlUtil.prettyPrintDOM(xformsDocument, sw);
xformInString = sw.toString();
xformInString = StringHandler.replace(xformInString, "xf:output", FormManagerUtil.output_tag);
xformInString = StringHandler.replace(xformInString, "idega:output ref=\".\"", "xf:output ref=\".\"");
// Re-building XML document
xformStream = StringHandler.getStreamFromString(xformInString);
xformsDocument = XmlUtil.getDocumentBuilder().parse(xformStream);
} catch (Exception e) {
Logger.getLogger(getClass().getName()).log(Level.WARNING, "Error converting String to XForm:\n" + xformInString, e);
} finally {
IOUtil.close(xformStream);
outputReplaced = true;
}
}
this.xformsDocument = xformsDocument;
}
public Long getFormId() {
return formId;
}
public void setFormId(Long formId) {
this.formId = formId;
}
public String getFormType() {
return formType;
}
public void setFormType(String formType) {
this.formType = formType;
}
public Integer getVersion() {
return version;
}
public void setVersion(Integer version) {
this.version = version;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
0e0f2e8ffdea4700373abcc630b02bc89b3a7f30
|
3e9722a447f947ba71ffd5781c7fbb1b35afbb93
|
/net/minecraft/client/resources/SimpleReloadableResourceManager.java
|
b500d4412413540c882f6d689237945fc7427d31
|
[] |
no_license
|
shawndeprey/bms
|
9188833152dcedaf91ebe064b02bcdb902ba4baa
|
2003336458f5454462657a04dac8294f61f99564
|
refs/heads/master
| 2020-09-13T08:56:31.814253
| 2013-09-09T02:46:14
| 2013-09-09T02:46:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,286
|
java
|
package net.minecraft.client.resources;
import com.google.common.base.Joiner;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.data.MetadataSerializer;
import net.minecraft.util.ResourceLocation;
@SideOnly(Side.CLIENT)
public class SimpleReloadableResourceManager implements ReloadableResourceManager
{
private static final Joiner field_130074_a = Joiner.on(", ");
private final Map field_110548_a = Maps.newHashMap();
private final List field_110546_b = Lists.newArrayList();
private final Set field_135057_d = Sets.newLinkedHashSet();
private final MetadataSerializer field_110547_c;
public SimpleReloadableResourceManager(MetadataSerializer par1MetadataSerializer)
{
this.field_110547_c = par1MetadataSerializer;
}
public void func_110545_a(ResourcePack par1ResourcePack)
{
FallbackResourceManager fallbackresourcemanager;
for (Iterator iterator = par1ResourcePack.func_110587_b().iterator(); iterator.hasNext(); fallbackresourcemanager.func_110538_a(par1ResourcePack))
{
String s = (String)iterator.next();
this.field_135057_d.add(s);
fallbackresourcemanager = (FallbackResourceManager)this.field_110548_a.get(s);
if (fallbackresourcemanager == null)
{
fallbackresourcemanager = new FallbackResourceManager(this.field_110547_c);
this.field_110548_a.put(s, fallbackresourcemanager);
}
}
}
public Set func_135055_a()
{
return this.field_135057_d;
}
public Resource func_110536_a(ResourceLocation par1ResourceLocation) throws IOException
{
ResourceManager resourcemanager = (ResourceManager)this.field_110548_a.get(par1ResourceLocation.func_110624_b());
if (resourcemanager != null)
{
return resourcemanager.func_110536_a(par1ResourceLocation);
}
else
{
throw new FileNotFoundException(par1ResourceLocation.toString());
}
}
public List func_135056_b(ResourceLocation par1ResourceLocation) throws IOException
{
ResourceManager resourcemanager = (ResourceManager)this.field_110548_a.get(par1ResourceLocation.func_110624_b());
if (resourcemanager != null)
{
return resourcemanager.func_135056_b(par1ResourceLocation);
}
else
{
throw new FileNotFoundException(par1ResourceLocation.toString());
}
}
private void func_110543_a()
{
this.field_110548_a.clear();
this.field_135057_d.clear();
}
public void func_110541_a(List par1List)
{
this.func_110543_a();
Minecraft.getMinecraft().getLogAgent().logInfo("Reloading ResourceManager: " + field_130074_a.join(Iterables.transform(par1List, new SimpleReloadableResourceManagerINNER1(this))));
Iterator iterator = par1List.iterator();
while (iterator.hasNext())
{
ResourcePack resourcepack = (ResourcePack)iterator.next();
this.func_110545_a(resourcepack);
}
this.func_110544_b();
}
public void func_110542_a(ResourceManagerReloadListener par1ResourceManagerReloadListener)
{
this.field_110546_b.add(par1ResourceManagerReloadListener);
par1ResourceManagerReloadListener.func_110549_a(this);
}
private void func_110544_b()
{
Iterator iterator = this.field_110546_b.iterator();
while (iterator.hasNext())
{
ResourceManagerReloadListener resourcemanagerreloadlistener = (ResourceManagerReloadListener)iterator.next();
resourcemanagerreloadlistener.func_110549_a(this);
}
}
}
|
[
"shawndeprey@gmail.com"
] |
shawndeprey@gmail.com
|
741b5e10fe419e60fb47a56fc0026e165c459dc9
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Chart/2/org/jfree/chart/plot/MeterPlot_getRange_322.java
|
d7bfe571a8f80ab42a2adb33597f4ba0758f274b
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 1,562
|
java
|
org jfree chart plot
plot displai singl form needl dial
defin rang 'normal' 'warning' 'critical'
highlight dial
meter plot meterplot plot serializ cloneabl
return rang dial
rang code code
set rang setrang rang
rang rang getrang
rang
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
e04a501cdee0517b5724f068fffc3dfc467c472d
|
4c50f39f7412125204d2514693dcfb08162d656e
|
/src/org/prom5/framework/models/hlprocess/gui/HLChoiceGui.java
|
baee091907a2fb13fda5692e25a5855d5f5867af
|
[] |
no_license
|
alex-fedorov-012088/SMD
|
7e956d92701835bbac3f584a2dea05690c201a94
|
9b2a025b9124639d8262331487ee136d56b9b93b
|
refs/heads/master
| 2023-03-15T19:15:15.273499
| 2015-03-30T01:31:44
| 2015-03-30T01:31:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,515
|
java
|
/***********************************************************
* This software is part of the ProM package *
* http://www.processmining.org/ *
* *
* Copyright (c) 2003-2007 TU/e Eindhoven *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by Eindhoven University of Technology *
* Department of Information Systems *
* http://is.tm.tue.nl *
* *
**********************************************************/
package org.prom5.framework.models.hlprocess.gui;
import java.awt.Dimension;
import java.util.HashMap;
import java.util.Iterator;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JPanel;
import org.deckfour.slickerbox.util.SlickerSwingUtils;
import org.prom5.framework.models.hlprocess.HLActivity;
import org.prom5.framework.models.hlprocess.HLChoice;
import org.prom5.framework.models.hlprocess.HLCondition;
import org.prom5.framework.models.hlprocess.HLID;
import org.prom5.framework.models.hlprocess.HLProcess;
import org.prom5.framework.models.hlprocess.HLTypes.ChoiceEnum;
import org.prom5.framework.util.GUIPropertyListEnumeration;
import org.prom5.framework.util.GuiDisplayable;
import org.prom5.framework.util.GuiNotificationTarget;
/**
* Gui class for high-level choice objects.
* <br>
* Allows to view and edit the choice characteristics
* through a graphical user interface.
*
* @see HLProcessGui
*/
public class HLChoiceGui implements GuiDisplayable, GuiNotificationTarget {
// The actual choice object reflected by this Gui object
protected HLChoice hlChoice;
// maps activity ids onto condition guis
protected HashMap<HLID, HLConditionGui> conditions;
// GUI attributes
protected JPanel myPanel;
protected GUIPropertyListEnumeration configuration;
/**
* Creates a new Gui object that allows to view and manipulate the choice
* object.
* @param choice the choice object reflected by this gui object
*/
public HLChoiceGui(HLChoice choice, HLProcess proc) {
hlChoice = choice;
// configuration
ChoiceEnum current = choice.getChoiceConfiguration();
configuration = new GUIPropertyListEnumeration("Choice based on",
"Indicates which information is used to choose an alternative path",
ChoiceEnum.getAllTypes(), this, 200);
configuration.setValue(current);
// target guis
conditions = new HashMap<HLID, HLConditionGui>();
for (HLID actID : hlChoice.getChoiceTargetIDs()) {
HLCondition cond = hlChoice.getCondition(actID);
HLActivity hlAct = proc.getActivity(actID);
conditions.put(actID, new HLConditionGui(cond, hlAct));
}
}
/**
* Retrieves the underlying high level choice object.
* @return the high level choice object for this gui object
*/
public HLChoice getHLChoice() {
return hlChoice;
}
/*
* (non-Javadoc)
* @see org.processmining.framework.util.GuiDisplayable#getPanel()
*/
public JPanel getPanel() {
if (myPanel == null) {
myPanel = new JPanel();
myPanel.setLayout(new BoxLayout(myPanel, BoxLayout.LINE_AXIS));
updateGUI();
}
return myPanel;
}
/*
* (non-Javadoc)
* @see org.processmining.framework.util.GuiNotificationTarget#updateGUI()
*/
public void updateGUI() {
// the configuration might have been updated
hlChoice.setChoiceConfiguration((ChoiceEnum) configuration.getValue());
// update gui too
myPanel.removeAll();
JPanel content = new JPanel();
// configuration
content.setLayout(new BoxLayout(content, BoxLayout.PAGE_AXIS));
content.add(configuration.getPropertyPanel());
content.add(Box.createRigidArea(new Dimension(0, 15)));
// condition targets
Iterator<HLConditionGui> condIt = conditions.values().iterator();
while (condIt.hasNext()) {
HLConditionGui condGui = condIt.next();
GuiDisplayable condObj = condGui.getConditionView(hlChoice.getChoiceConfiguration());
if (condObj != null) {
content.add(condObj.getPanel());
}
}
myPanel.add(Box.createHorizontalGlue());
myPanel.add(content);
myPanel.add(Box.createHorizontalGlue());
SlickerSwingUtils.injectTransparency(myPanel);
myPanel.validate();
myPanel.repaint();
}
/*
* (non-Javadoc)
* @see java.lang.Object#toString()
*/
public String toString() {
return hlChoice.getName();
}
}
|
[
"apromore@gmail.com"
] |
apromore@gmail.com
|
7f959257614a9c8cdd333dcbde02169be2d4f629
|
40859c61600c89825b7b1511f2345211a2399cab
|
/src/main/java/org/spongepowered/api/registry/AdditionalCatalogRegistryModule.java
|
833fbf36141eccee8910e751a126fdd8d3203ab7
|
[
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] |
permissive
|
adam6806/SpongeAPI
|
a1ebe0eacacdc9f51b889ae8787b51094cdcc52e
|
6eb292fde2722433eabaaa859c5e797f60c7e002
|
refs/heads/stable-7
| 2023-04-13T00:08:15.859409
| 2018-08-18T09:52:21
| 2018-11-28T11:53:47
| 162,800,754
| 0
| 0
|
MIT
| 2023-04-03T23:45:50
| 2018-12-22T10:04:48
|
Java
|
UTF-8
|
Java
| false
| false
| 1,691
|
java
|
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.spongepowered.api.registry;
import org.spongepowered.api.CatalogType;
public interface AdditionalCatalogRegistryModule<T extends CatalogType> extends CatalogRegistryModule<T> {
/**
* Performs additional registration after initial registration of
* the pertaining {@link CatalogType}.
*
* @param extraCatalog The extra catalog to register
*/
void registerAdditionalCatalog(T extraCatalog);
}
|
[
"gabizou@me.com"
] |
gabizou@me.com
|
fad930a6fd4f04bb49ec4bd2d196c91b1eec5706
|
47fa77e1936ef72b53885a0ed3de3fa960db65ec
|
/workspace/jdpract/src/byHimanshu/Dcoder (2020_11_23 15_04_39 UTC).java
|
3337288a3171f90c23a34afffa62e8d3d102bfe2
|
[] |
no_license
|
Himanshu-abc/Eclipse_workspaces_2018
|
afded2cf43831494df02861ee4e515c7e24f00f8
|
87d744ad74b5908cb51d2dea044056ee8f8a5e55
|
refs/heads/master
| 2023-07-03T20:48:55.594079
| 2021-08-14T16:52:17
| 2021-08-14T16:52:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,533
|
java
|
package byHimanshu;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public class Dcoder {
public static void main(String[] args) {
String name="john";
String password="cena";
String email="john_cena@email.com";
String country="america";
/*String url="jdbc:oracle:thin:@localhost:1521:xe";*/
Employee e=new Employee();
e.setName(name);
e.setPassword(password);
e.setEmail(email);
e.setCountry(country);
try {
/*Class.forName("oracle.jdbc.OracleDriver");
Connection con=DriverManager.getConnection(url,"system","apocalypse");*/
/*Connection con=Dao.getConnection();
PreparedStatement pst=con.prepareStatement("insert into user905 (name,password,email,country) values (?,?,?,?)");
pst.setString(1, e.getName());
pst.setString(2, e.getPassword());
pst.setString(3, e.getEmail());
pst.setString(4, e.getCountry());
int res=pst.executeUpdate();*/
int res=Dao.save(e);
if(res>0) {
System.out.println(res+" rows updated");
}
/*PreparedStatement pst=con.prepareStatement("Select * from user905");
ResultSet rs=pst.executeQuery();
while(rs.next()) {
System.out.println(rs.getInt(1)+" "+rs.getString(2)+" "+rs.getString(3)+" "+rs.getString(4)+" "+rs.getString(5));
}*/
/*pst.close();
con.close();*/
}catch (Exception ex) {
ex.printStackTrace();
}
}
}
|
[
"himanshupatidar663@gmail.com"
] |
himanshupatidar663@gmail.com
|
d5796359b51eed0e2d5bba17b87d2b42f03c39e9
|
5168ef2911634e97356d85d6cc015734e3fc1aa6
|
/src/main/java/com/roamtech/uc/client/UserVolumeData.java
|
01309fbddf2f6200d66be0b91f0268b9f5dee548
|
[
"Apache-2.0"
] |
permissive
|
caibinglong1987/ucserver
|
5056eac12fdb2f13b50e2e4fabe5bd3e744fd450
|
68075a9e275bf26c17bf7a39305196803d572918
|
refs/heads/master
| 2021-01-22T07:42:41.211856
| 2017-05-27T05:48:03
| 2017-05-27T05:48:03
| 92,573,725
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 991
|
java
|
package com.roamtech.uc.client;
import java.io.Serializable;
@SuppressWarnings("serial")
public class UserVolumeData implements Serializable {
private String country;
private Long volume;
private Long startVolume;
private String expirationDate;
private String countryIsoCode;
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public Long getVolume() {
return volume;
}
public void setVolume(Long volume) {
this.volume = volume;
}
public Long getStartVolume() {
return startVolume;
}
public void setStartVolume(Long startVolume) {
this.startVolume = startVolume;
}
public String getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(String expirationDate) {
this.expirationDate = expirationDate;
}
public String getCountryIsoCode() {
return countryIsoCode;
}
public void setCountryIsoCode(String countryIsoCode) {
this.countryIsoCode = countryIsoCode;
}
}
|
[
"caibinglong1987@gmail.com"
] |
caibinglong1987@gmail.com
|
bc393bb102cf3808f90b3751a3346f3633ce35b1
|
4a19037e1a7dbfcb5f76126875e592777682e03b
|
/SYNCCrowdTracker.v.09.1/src/com/google/appinventor/components/runtime/EmailAddressAdapter.java
|
e82e7cbb9a5c339b44b15c2109db0d8bf89ee13e
|
[] |
no_license
|
jcbacong/SYNCCrowdTracker
|
405a99d4070fcbfa29b423703c04cecadde3a328
|
58d71c547b1c18b9529764db2fe144d8c9f78dcf
|
refs/heads/master
| 2021-01-10T08:57:33.052247
| 2016-02-11T15:04:55
| 2016-02-11T15:04:55
| 51,518,827
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,810
|
java
|
package com.google.appinventor.components.runtime;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.database.DatabaseUtils;
import android.net.Uri;
import android.provider.Contacts.ContactMethods;
import android.text.TextUtils;
import android.text.util.Rfc822Token;
import android.view.View;
import android.widget.ResourceCursorAdapter;
import android.widget.TextView;
import com.google.appinventor.components.runtime.util.HoneycombMR1Util;
import com.google.appinventor.components.runtime.util.SdkLevel;
public class EmailAddressAdapter
extends ResourceCursorAdapter
{
private static final boolean DEBUG = false;
private static final String[] POST_HONEYCOMB_PROJECTION = HoneycombMR1Util.getEmailAdapterProjection();
public static final int PRE_HONEYCOMB_DATA_INDEX = 2;
public static final int PRE_HONEYCOMB_NAME_INDEX = 1;
private static final String[] PRE_HONEYCOMB_PROJECTION = { "_id", "name", "data" };
private static String SORT_ORDER;
private static final String TAG = "EmailAddressAdapter";
private ContentResolver contentResolver;
private Context context;
public EmailAddressAdapter(Context paramContext)
{
super(paramContext, 17367050, null);
this.contentResolver = paramContext.getContentResolver();
this.context = paramContext;
if (SdkLevel.getLevel() >= 12)
{
SORT_ORDER = HoneycombMR1Util.getTimesContacted() + " DESC, " + HoneycombMR1Util.getDisplayName();
return;
}
SORT_ORDER = "times_contacted DESC, name";
}
private final String makeDisplayString(Cursor paramCursor)
{
int j = paramCursor.getColumnIndex(HoneycombMR1Util.getDisplayName());
int k = paramCursor.getColumnIndex(HoneycombMR1Util.getEmailAddress());
StringBuilder localStringBuilder = new StringBuilder();
int i = 0;
String str;
if (SdkLevel.getLevel() >= 12) {
str = paramCursor.getString(j);
}
for (paramCursor = paramCursor.getString(k);; paramCursor = paramCursor.getString(2))
{
if (!TextUtils.isEmpty(str))
{
localStringBuilder.append(str);
i = 1;
}
if (i != 0) {
localStringBuilder.append(" <");
}
localStringBuilder.append(paramCursor);
if (i != 0) {
localStringBuilder.append(">");
}
return localStringBuilder.toString();
str = paramCursor.getString(1);
}
}
public final void bindView(View paramView, Context paramContext, Cursor paramCursor)
{
((TextView)paramView).setText(makeDisplayString(paramCursor));
}
public final String convertToString(Cursor paramCursor)
{
int i = paramCursor.getColumnIndex(HoneycombMR1Util.getDisplayName());
int j = paramCursor.getColumnIndex(HoneycombMR1Util.getEmailAddress());
String str;
if (SdkLevel.getLevel() >= 12) {
str = paramCursor.getString(i);
}
for (paramCursor = paramCursor.getString(j);; paramCursor = paramCursor.getString(2))
{
return new Rfc822Token(str, paramCursor, null).toString();
str = paramCursor.getString(1);
}
}
public Cursor runQueryOnBackgroundThread(CharSequence paramCharSequence)
{
Uri localUri = null;
StringBuilder localStringBuilder = new StringBuilder();
if (paramCharSequence != null)
{
paramCharSequence = DatabaseUtils.sqlEscapeString(paramCharSequence.toString() + '%');
if (SdkLevel.getLevel() < 12) {
break label153;
}
localUri = HoneycombMR1Util.getDataContentUri();
localStringBuilder.append("(" + HoneycombMR1Util.getDataMimeType() + "='" + HoneycombMR1Util.getEmailType() + "')");
localStringBuilder.append(" AND ");
localStringBuilder.append("(display_name LIKE ");
localStringBuilder.append(paramCharSequence);
localStringBuilder.append(")");
}
for (;;)
{
paramCharSequence = localStringBuilder.toString();
if (SdkLevel.getLevel() < 12) {
break;
}
return this.contentResolver.query(localUri, POST_HONEYCOMB_PROJECTION, paramCharSequence, null, SORT_ORDER);
label153:
localUri = Contacts.ContactMethods.CONTENT_EMAIL_URI;
localStringBuilder.append("(name LIKE ");
localStringBuilder.append(paramCharSequence);
localStringBuilder.append(") OR (display_name LIKE ");
localStringBuilder.append(paramCharSequence);
localStringBuilder.append(")");
}
return this.contentResolver.query(localUri, PRE_HONEYCOMB_PROJECTION, paramCharSequence, null, SORT_ORDER);
}
}
/* Location: /home/nelmntrx/Desktop/SYNCCrowdTracker/dex2jar-2.0/classes-dex2jar.jar!/com/google/appinventor/components/runtime/EmailAddressAdapter.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"bacong.junelle@gmail.com"
] |
bacong.junelle@gmail.com
|
12744fd6244bcdf21ff5546e432149e4e7c08ffe
|
4aa90348abcb2119011728dc067afd501f275374
|
/app/src/main/java/com/tencent/mm/protocal/c$ch.java
|
e84a614db76c640f3a29ae051e6afd5fe1fce427
|
[] |
no_license
|
jambestwick/HackWechat
|
0d4ceb2d79ccddb45004ca667e9a6a984a80f0f6
|
6a34899c8bfd50d19e5a5ec36a58218598172a6b
|
refs/heads/master
| 2022-01-27T12:48:43.446804
| 2021-12-29T10:36:30
| 2021-12-29T10:36:30
| 249,366,791
| 0
| 0
| null | 2020-03-23T07:48:32
| 2020-03-23T07:48:32
| null |
UTF-8
|
Java
| false
| false
| 185
|
java
|
package com.tencent.mm.protocal;
import com.tencent.mm.protocal.c.g;
public class c$ch extends g {
public c$ch() {
super("getSearchAvatarList", "", 10000, false);
}
}
|
[
"malin.myemail@163.com"
] |
malin.myemail@163.com
|
b723cb97c00c66e3add39fb139f1569d1b176cc3
|
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
|
/methods/Method_1009406.java
|
007c100db31085f1b22ee19d890f689b0bb631ce
|
[] |
no_license
|
P79N6A/icse_20_user_study
|
5b9c42c6384502fdc9588430899f257761f1f506
|
8a3676bc96059ea2c4f6d209016f5088a5628f3c
|
refs/heads/master
| 2020-06-24T08:25:22.606717
| 2019-07-25T15:31:16
| 2019-07-25T15:31:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 157
|
java
|
public ToggleButtonBuilt tip(String tipText){
Tooltip tooltip=new Tooltip(tipText);
Tooltip.install(toggleButton.getGraphic(),tooltip);
return this;
}
|
[
"sonnguyen@utdallas.edu"
] |
sonnguyen@utdallas.edu
|
faaf5d5c2eb57d3e6696633a26366c33e8adff6d
|
4967bb251feed304d483147c90111e882529923a
|
/MODDBEntities/src/main/java/com/jgg/sdp/domain/session/SESArbol.java
|
3d91d1485e01ace0735b325acdaaa551c2319e9d
|
[] |
no_license
|
Grandez/SDP_Java
|
ad8ceca95a0fa5f7e7d8d6af0822c1975f2143d7
|
6f1ae50b2d085836cf532d13deb3b78356d6ebae
|
refs/heads/master
| 2021-01-19T04:37:36.781643
| 2018-02-16T14:13:52
| 2018-02-16T14:13:52
| 84,433,389
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,300
|
java
|
package com.jgg.sdp.domain.session;
import java.io.Serializable;
import java.sql.Timestamp;
import javax.persistence.*;
@Entity
@Table(name="SES_ARBOL")
@NamedQueries({
@NamedQuery(name="SESArbol.find",
query="SELECT a FROM SESArbol a " +
" WHERE a.idSesion = ?1 " +
" AND a.idCalling = ?2 " +
" AND a.idCalled = ?3")
})
public class SESArbol implements Serializable {
private static final long serialVersionUID = -2191023343802831092L;
@Id
@Column(name="idSesion")
private String idSesion;
@Id
@Column(name="idCalling")
private Long idCalling;
@Id
@Column(name="idCalled")
private Long idCalled;
@Id
@Column(name="nombre")
private String nombre;
@Column(name="veces")
private Long veces;
@Column(name="totElapsed")
private Long totElapsed;
@Column(name="totCpu")
private Long totCpu;
@Column(name="totSuspend")
private Long totSuspend;
@Column(name="avgElapsed")
private Long avgElapsed;
@Column(name="avgCpu")
private Long avgCpu;
@Column(name="avgSuspend")
private Long avgSuspend;
@Column(name="tms")
private Timestamp tms;
public String getIdSesion() {
return idSesion;
}
public void setIdSesion(String idSesion) {
this.idSesion = idSesion;
}
public Long getIdCalling() {
return idCalling;
}
public void setIdCalling(Long idCalling) {
this.idCalling = idCalling;
}
public Long getIdCalled() {
return idCalled;
}
public void setIdCalled(Long idCalled) {
this.idCalled = idCalled;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public Long getVeces() {
return veces;
}
public void setVeces(Long veces) {
this.veces = veces;
}
public Long getTotElapsed() {
return totElapsed;
}
public void setTotElapsed(Long totElapsed) {
this.totElapsed = totElapsed;
}
public Long getTotCpu() {
return totCpu;
}
public void setTotCpu(Long totCpu) {
this.totCpu = totCpu;
}
public Long getTotSuspend() {
return totSuspend;
}
public void setTotSuspend(Long totSuspend) {
this.totSuspend = totSuspend;
}
public Long getAvgElapsed() {
return avgElapsed;
}
public void setAvgElapsed(Long avgElapsed) {
this.avgElapsed = avgElapsed;
}
public Long getAvgCpu() {
return avgCpu;
}
public void setAvgCpu(Long avgCpu) {
this.avgCpu = avgCpu;
}
public Long getAvgSuspend() {
return avgSuspend;
}
public void setAvgSuspend(Long avgSuspend) {
this.avgSuspend = avgSuspend;
}
public Timestamp getTms() {
return tms;
}
public void setTms(Timestamp tms) {
this.tms = tms;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((avgCpu == null) ? 0 : avgCpu.hashCode());
result = prime * result
+ ((avgElapsed == null) ? 0 : avgElapsed.hashCode());
result = prime * result
+ ((avgSuspend == null) ? 0 : avgSuspend.hashCode());
result = prime * result + ((idCalled == null) ? 0 : idCalled.hashCode());
result = prime * result + ((idCalling == null) ? 0 : idCalling.hashCode());
result = prime * result + ((idSesion == null) ? 0 : idSesion.hashCode());
result = prime * result + ((nombre == null) ? 0 : nombre.hashCode());
result = prime * result + ((tms == null) ? 0 : tms.hashCode());
result = prime * result + ((totCpu == null) ? 0 : totCpu.hashCode());
result = prime * result
+ ((totElapsed == null) ? 0 : totElapsed.hashCode());
result = prime * result
+ ((totSuspend == null) ? 0 : totSuspend.hashCode());
result = prime * result + ((veces == null) ? 0 : veces.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
SESArbol other = (SESArbol) obj;
if (avgCpu == null) {
if (other.avgCpu != null)
return false;
} else if (!avgCpu.equals(other.avgCpu))
return false;
if (avgElapsed == null) {
if (other.avgElapsed != null)
return false;
} else if (!avgElapsed.equals(other.avgElapsed))
return false;
if (avgSuspend == null) {
if (other.avgSuspend != null)
return false;
} else if (!avgSuspend.equals(other.avgSuspend))
return false;
if (idCalled == null) {
if (other.idCalled != null)
return false;
} else if (!idCalled.equals(other.idCalled))
return false;
if (idCalling == null) {
if (other.idCalling != null)
return false;
} else if (!idCalling.equals(other.idCalling))
return false;
if (idSesion == null) {
if (other.idSesion != null)
return false;
} else if (!idSesion.equals(other.idSesion))
return false;
if (nombre == null) {
if (other.nombre != null)
return false;
} else if (!nombre.equals(other.nombre))
return false;
if (tms == null) {
if (other.tms != null)
return false;
} else if (!tms.equals(other.tms))
return false;
if (totCpu == null) {
if (other.totCpu != null)
return false;
} else if (!totCpu.equals(other.totCpu))
return false;
if (totElapsed == null) {
if (other.totElapsed != null)
return false;
} else if (!totElapsed.equals(other.totElapsed))
return false;
if (totSuspend == null) {
if (other.totSuspend != null)
return false;
} else if (!totSuspend.equals(other.totSuspend))
return false;
if (veces == null) {
if (other.veces != null)
return false;
} else if (!veces.equals(other.veces))
return false;
return true;
}
}
|
[
"javier.gonzalez.grandez@gmail.com"
] |
javier.gonzalez.grandez@gmail.com
|
b3d2c94eb7a0f825fe6fd0a82d4006750284eac5
|
f9caed2a83812b8f5bb8aaac5445718e98bf3706
|
/MW Chen CSE148 Lecture 21 Exam 2 Review/src/p6/Grade.java
|
e36facad3d4b9ef2820c6bc202abd633c6e67274
|
[] |
no_license
|
abrarabdur/CSE148
|
117905149ca8476d160273defc960a8920fdc869
|
e8621b02da66cc854bea3d4fb07225ff6fec3647
|
refs/heads/master
| 2021-08-23T21:37:33.579834
| 2017-12-06T17:06:20
| 2017-12-06T17:06:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 723
|
java
|
package p6;
import java.io.Serializable;
public class Grade implements Serializable{
private String courseNumber;
private String letterGrade;
public Grade(String courseNumber, String letterGrade) {
super();
this.courseNumber = courseNumber;
this.letterGrade = letterGrade;
}
public String getCourseNumber() {
return courseNumber;
}
public void setCourseNumber(String courseNumber) {
this.courseNumber = courseNumber;
}
public String getLetterGrade() {
return letterGrade;
}
public void setLetterGrade(String letterGrade) {
this.letterGrade = letterGrade;
}
@Override
public String toString() {
return "Grade [courseNumber=" + courseNumber + ", letterGrade=" + letterGrade + "]";
}
}
|
[
"chenb@sunysuffolk.edu"
] |
chenb@sunysuffolk.edu
|
e19ee0fc9a57ea2c7b6fab1ac5ec68ac3defba52
|
f0dd9f392ec81b6b45d1bd87f1359113ee584e19
|
/src/main/java/kz/ecc/isbp/admin/fnd/webapi/DictResourceImpl.java
|
dfe51503e446b83cd56397ed1e092312713b7534
|
[] |
no_license
|
eugenenew80/admin
|
87152ed787a383aeb6d4799e1d4e8ba756429155
|
45d3be2271b52ade272d06852dc4d4f7af5a4fad
|
refs/heads/master
| 2021-01-11T10:49:32.291242
| 2016-12-31T11:57:27
| 2016-12-31T11:57:27
| 76,180,787
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,669
|
java
|
package kz.ecc.isbp.admin.fnd.webapi;
import static javax.servlet.http.HttpServletResponse.*;
import java.util.*;
import java.util.stream.Collectors;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.ws.rs.*;
import javax.ws.rs.core.*;
import kz.ecc.isbp.admin.fnd.dto.DictDto;
import kz.ecc.isbp.admin.fnd.entity.Dict;
import kz.ecc.isbp.admin.fnd.service.DictService;
import static kz.ecc.isbp.admin.common.dto.mapper.Mapper.*;
@RequestScoped
@Path("/dicts")
@Produces({"application/json;charset=utf-8", "application/xml;charset=utf-8"})
@Consumes({"application/json;charset=utf-8", "application/xml;charset=utf-8"})
public class DictResourceImpl {
@GET
public Response getAll() {
List<DictDto> dictListDto = dictService.findAll().stream()
.map(toDictDto)
.collect(Collectors.toList());
return Response.ok()
.entity(new GenericEntity<Collection<DictDto>>(dictListDto){})
.build();
}
@GET
@Path("{dictId : \\d+}")
public Response get(@PathParam("dictId") Long dictId) {
Optional<Dict> dict = Optional.ofNullable(dictService.findById(dictId));
return Response.ok()
.entity( dict.map(toDictDto).orElseThrow( () -> new WebApplicationException(SC_NOT_FOUND)) )
.build();
}
@GET
@Path("{dictName}")
public Response getByName(@PathParam("dictName") String dictName) {
Optional<Dict> dict = Optional.ofNullable(dictService.findByName(dictName));
return Response.ok()
.entity( dict.map(toDictDto).orElseThrow( () -> new WebApplicationException(SC_NOT_FOUND)) )
.build();
}
@Inject private DictService dictService;
}
|
[
"eugenenew80@gmail.com"
] |
eugenenew80@gmail.com
|
42559abcf6c9a39226e0d2562126e25f4191ef80
|
08852eb3392eb5f8e71850aba9fb36b24d250521
|
/one/src/main/java/com/skysport/inerfaces/model/info/material/impl/helper/MaterialUnitServiceHelper.java
|
465439ba2dce9f45ba90c292e6ea6519dc3fca82
|
[
"Apache-2.0"
] |
permissive
|
FashtimeDotCom/open-erp
|
28fa870cbf8102d5123a1e34aa4803e88b538c30
|
3068a28e430a9f91519b13fa7a84c140f5b34df0
|
refs/heads/master
| 2021-01-22T12:25:56.037722
| 2016-04-21T02:52:23
| 2016-04-21T02:52:23
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 746
|
java
|
package com.skysport.inerfaces.model.info.material.impl.helper;
import com.skysport.core.bean.system.SelectItem2;
import com.skysport.core.bean.SpringContextHolder;
import com.skysport.core.cache.SystemBaseInfoCachedMap;
import com.skysport.inerfaces.model.info.material.impl.MaterialUnitServiceImpl;
import java.util.List;
/**
* 类说明:
* Created by zhangjh on 2015/7/7.
*/
public enum MaterialUnitServiceHelper {
SINGLETONE;
public void refreshSelect() {
MaterialUnitServiceImpl materialUnitService = SpringContextHolder.getBean("materialUnitService");
List<SelectItem2> unitItems = materialUnitService.querySelectList(null);
SystemBaseInfoCachedMap.SINGLETONE.pushBom("unitItems", unitItems);
}
}
|
[
"firebata@gmail.com"
] |
firebata@gmail.com
|
82bf0d7878cc34546453777af6442290f17f4deb
|
29196e2d4adfb14ddd7c2ca8c1e60f8c10c26dad
|
/src/main/java/it/csi/siac/siacbilser/frontend/webservice/msg/LeggiClassificatoriBilByIdPadreResponse.java
|
e342bb8e39583253e05d59aaf31270539e9b4f39
|
[] |
no_license
|
unica-open/siacbilitf
|
bbeef5ceca40e9fb83d5b1176e7f54e8d84592bf
|
85f3254c05c719a0016fe55cea1a105bcb6b89b2
|
refs/heads/master
| 2021-01-06T14:51:17.786934
| 2020-03-03T13:27:47
| 2020-03-03T13:27:47
| 241,366,581
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,183
|
java
|
/*
*SPDX-FileCopyrightText: Copyright 2020 | CSI Piemonte
*SPDX-License-Identifier: EUPL-1.2
*/
package it.csi.siac.siacbilser.frontend.webservice.msg;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlType;
import it.csi.siac.siacbilser.frontend.webservice.BILSvcDictionary;
import it.csi.siac.siacbilser.model.CategoriaTipologiaTitolo;
import it.csi.siac.siacbilser.model.ClassificazioneCofog;
import it.csi.siac.siacbilser.model.Macroaggregato;
import it.csi.siac.siacbilser.model.Programma;
import it.csi.siac.siacbilser.model.TipologiaTitolo;
import it.csi.siac.siaccorser.frontend.webservice.msg.LeggiClassificatoriByIdPadreResponse;
/**
* Messaggio di risposta per la lista dei classificatori ricercati per: anno, idEnteProprietario e idPadre (es: ricerco i programmi per l'idMissione)
*
* ritorna una mappa con Key= TipologiaClassificatore (enum che contiene i codici dei tipi dei classificatori)
* Value = la lista di classificatori associata alla TipologiaClassificatore
* @author rmontuori
*
*/
@XmlType(namespace = BILSvcDictionary.NAMESPACE)
public class LeggiClassificatoriBilByIdPadreResponse extends LeggiClassificatoriByIdPadreResponse {
private List<Programma> classificatoriProgramma = new ArrayList<Programma>();
private List<Macroaggregato> classificatoriMacroaggregato = new ArrayList<Macroaggregato>();
private List<ClassificazioneCofog> classificatoriClassificazioneCofog = new ArrayList<ClassificazioneCofog>();
private List<TipologiaTitolo> classificatoriTipologiaTitolo = new ArrayList<TipologiaTitolo>();
private List<CategoriaTipologiaTitolo> classificatoriCategoriaTipologiaTitolo = new ArrayList<CategoriaTipologiaTitolo>();
public List<Programma> getClassificatoriProgramma() {
return classificatoriProgramma;
}
public void setClassificatoriProgramma(List<Programma> classificatoriProgramma) {
this.classificatoriProgramma = classificatoriProgramma;
}
public List<Macroaggregato> getClassificatoriMacroaggregato() {
return classificatoriMacroaggregato;
}
public void setClassificatoriMacroaggregato(
List<Macroaggregato> classificatoriMacroaggregato) {
this.classificatoriMacroaggregato = classificatoriMacroaggregato;
}
public List<ClassificazioneCofog> getClassificatoriClassificazioneCofog() {
return classificatoriClassificazioneCofog;
}
public void setClassificatoriClassificazioneCofog(
List<ClassificazioneCofog> classificatoriCofog) {
this.classificatoriClassificazioneCofog = classificatoriCofog;
}
public List<TipologiaTitolo> getClassificatoriTipologiaTitolo() {
return classificatoriTipologiaTitolo;
}
public void setClassificatoriTipologiaTitolo(List<TipologiaTitolo> classificatoriTipologiaTitolo) {
this.classificatoriTipologiaTitolo = classificatoriTipologiaTitolo;
}
public List<CategoriaTipologiaTitolo> getClassificatoriCategoriaTipologiaTitolo() {
return classificatoriCategoriaTipologiaTitolo;
}
public void setClassificatoriCategoriaTipologiaTitolo(List<CategoriaTipologiaTitolo> classificatoriCategoriaTipologiaTitolo) {
this.classificatoriCategoriaTipologiaTitolo = classificatoriCategoriaTipologiaTitolo;
}
}
|
[
"barbara.malano@csi.it"
] |
barbara.malano@csi.it
|
93aba4299ccbac91e4a20fa3cf6204c996e9d416
|
63e36d35f51bea83017ec712179302a62608333e
|
/framework/android/opengl/GLU.java
|
6843768834ec9aa61ca3e7fc693b93e1d9269cc7
|
[] |
no_license
|
hiepgaf/oneplus_blobs_decompiled
|
672aa002fa670bdcba8fdf34113bc4b8e85f8294
|
e1ab1f2dd111f905ff1eee18b6a072606c01c518
|
refs/heads/master
| 2021-06-26T11:24:21.954070
| 2017-08-26T12:45:56
| 2017-08-26T12:45:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,805
|
java
|
package android.opengl;
import javax.microedition.khronos.opengles.GL10;
public class GLU
{
private static final float[] sScratch = new float[32];
public static String gluErrorString(int paramInt)
{
switch (paramInt)
{
default:
return null;
case 0:
return "no error";
case 1280:
return "invalid enum";
case 1281:
return "invalid value";
case 1282:
return "invalid operation";
case 1283:
return "stack overflow";
case 1284:
return "stack underflow";
}
return "out of memory";
}
public static void gluLookAt(GL10 paramGL10, float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4, float paramFloat5, float paramFloat6, float paramFloat7, float paramFloat8, float paramFloat9)
{
synchronized (sScratch)
{
Matrix.setLookAtM(???, 0, paramFloat1, paramFloat2, paramFloat3, paramFloat4, paramFloat5, paramFloat6, paramFloat7, paramFloat8, paramFloat9);
paramGL10.glMultMatrixf(???, 0);
return;
}
}
public static void gluOrtho2D(GL10 paramGL10, float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
{
paramGL10.glOrthof(paramFloat1, paramFloat2, paramFloat3, paramFloat4, -1.0F, 1.0F);
}
public static void gluPerspective(GL10 paramGL10, float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
{
paramFloat1 = paramFloat3 * (float)Math.tan(paramFloat1 * 0.008726646259971648D);
float f = -paramFloat1;
paramGL10.glFrustumf(f * paramFloat2, paramFloat1 * paramFloat2, f, paramFloat1, paramFloat3, paramFloat4);
}
public static int gluProject(float paramFloat1, float paramFloat2, float paramFloat3, float[] paramArrayOfFloat1, int paramInt1, float[] paramArrayOfFloat2, int paramInt2, int[] paramArrayOfInt, int paramInt3, float[] paramArrayOfFloat3, int paramInt4)
{
synchronized (sScratch)
{
Matrix.multiplyMM(???, 0, paramArrayOfFloat2, paramInt2, paramArrayOfFloat1, paramInt1);
???[16] = paramFloat1;
???[17] = paramFloat2;
???[18] = paramFloat3;
???[19] = 1.0F;
Matrix.multiplyMV(???, 20, ???, 0, ???, 16);
paramFloat1 = ???[23];
if (paramFloat1 == 0.0F) {
return 0;
}
paramFloat1 = 1.0F / paramFloat1;
paramArrayOfFloat3[paramInt4] = (paramArrayOfInt[paramInt3] + paramArrayOfInt[(paramInt3 + 2)] * (???[20] * paramFloat1 + 1.0F) * 0.5F);
paramArrayOfFloat3[(paramInt4 + 1)] = (paramArrayOfInt[(paramInt3 + 1)] + paramArrayOfInt[(paramInt3 + 3)] * (???[21] * paramFloat1 + 1.0F) * 0.5F);
paramArrayOfFloat3[(paramInt4 + 2)] = ((???[22] * paramFloat1 + 1.0F) * 0.5F);
return 1;
}
}
public static int gluUnProject(float paramFloat1, float paramFloat2, float paramFloat3, float[] paramArrayOfFloat1, int paramInt1, float[] paramArrayOfFloat2, int paramInt2, int[] paramArrayOfInt, int paramInt3, float[] paramArrayOfFloat3, int paramInt4)
{
synchronized (sScratch)
{
Matrix.multiplyMM(???, 0, paramArrayOfFloat2, paramInt2, paramArrayOfFloat1, paramInt1);
boolean bool = Matrix.invertM(???, 16, ???, 0);
if (!bool) {
return 0;
}
???[0] = ((paramFloat1 - paramArrayOfInt[(paramInt3 + 0)]) * 2.0F / paramArrayOfInt[(paramInt3 + 2)] - 1.0F);
???[1] = ((paramFloat2 - paramArrayOfInt[(paramInt3 + 1)]) * 2.0F / paramArrayOfInt[(paramInt3 + 3)] - 1.0F);
???[2] = (2.0F * paramFloat3 - 1.0F);
???[3] = 1.0F;
Matrix.multiplyMV(paramArrayOfFloat3, paramInt4, ???, 16, ???, 0);
return 1;
}
}
}
/* Location: /Users/joshua/Desktop/system_framework/classes-dex2jar.jar!/android/opengl/GLU.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"joshuous@gmail.com"
] |
joshuous@gmail.com
|
d83fe075065b9b05926816f1d4cea9b5ad735214
|
40d844c1c780cf3618979626282cf59be833907f
|
/src/testcases/CWE191_Integer_Underflow/s04/CWE191_Integer_Underflow__short_rand_postdec_54b.java
|
1e2a2c405ca3dfb383ea15d353673a8a7a5cfe9f
|
[] |
no_license
|
rubengomez97/juliet
|
f9566de7be198921113658f904b521b6bca4d262
|
13debb7a1cc801977b9371b8cc1a313cd1de3a0e
|
refs/heads/master
| 2023-06-02T00:37:24.532638
| 2021-06-23T17:22:22
| 2021-06-23T17:22:22
| 379,676,259
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,407
|
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__short_rand_postdec_54b.java
Label Definition File: CWE191_Integer_Underflow.label.xml
Template File: sources-sinks-54b.tmpl.java
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: rand Set data to result of rand()
* GoodSource: A hardcoded non-zero, non-min, non-max, even number
* Sinks: decrement
* GoodSink: Ensure there will not be an underflow before decrementing data
* BadSink : Decrement data, which can cause an Underflow
* Flow Variant: 54 Data flow: data passed as an argument from one method through three others to a fifth; all five functions are in different classes in the same package
*
* */
package testcases.CWE191_Integer_Underflow.s04;
import testcasesupport.*;
public class CWE191_Integer_Underflow__short_rand_postdec_54b
{
public void badSink(short data ) throws Throwable
{
(new CWE191_Integer_Underflow__short_rand_postdec_54c()).badSink(data );
}
/* goodG2B() - use goodsource and badsink */
public void goodG2BSink(short data ) throws Throwable
{
(new CWE191_Integer_Underflow__short_rand_postdec_54c()).goodG2BSink(data );
}
/* goodB2G() - use badsource and goodsink */
public void goodB2GSink(short data ) throws Throwable
{
(new CWE191_Integer_Underflow__short_rand_postdec_54c()).goodB2GSink(data );
}
}
|
[
"you@example.com"
] |
you@example.com
|
16da389d9e4175c4187202ae9dbf40d26c3a549c
|
d18af2a6333b1a868e8388f68733b3fccb0b4450
|
/java/src/com/afollestad/materialdialogs/BuildConfig.java
|
a4d90bc9e2b9e81c30c1a94cc502b09048a9f84b
|
[] |
no_license
|
showmaxAlt/showmaxAndroid
|
60576436172495709121f08bd9f157d36a077aad
|
d732f46d89acdeafea545a863c10566834ba1dec
|
refs/heads/master
| 2021-03-12T20:01:11.543987
| 2015-08-19T20:31:46
| 2015-08-19T20:31:46
| 41,050,587
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 622
|
java
|
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.afollestad.materialdialogs;
public final class BuildConfig
{
public static final String APPLICATION_ID = "com.afollestad.materialdialogs";
public static final String BUILD_TYPE = "release";
public static final boolean DEBUG = false;
public static final String FLAVOR = "";
public static final int VERSION_CODE = 1;
public static final String VERSION_NAME = "0.7.3.1";
public BuildConfig()
{
}
}
|
[
"invisible@example.com"
] |
invisible@example.com
|
919fceefb05cc206c51330d7702a617526631153
|
cee2f0af1bda14a5fa59059d7805b6a225071b99
|
/grouptec/src/main/java/com/zbmf/StockGTec/view/LoadingLayoutProxy.java
|
34d5594dd17733eedb447b3b3bb2bb4a29272359
|
[] |
no_license
|
pengqun1123/StockGroup
|
a30a6ea170d16300a3d2cae3e5a49933aeebbc19
|
64de8dbc188232f4b6277a56f61279d238b17776
|
refs/heads/master
| 2021-10-01T00:33:33.087802
| 2018-11-26T09:38:17
| 2018-11-26T09:38:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,030
|
java
|
package com.zbmf.StockGTec.view;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import com.zbmf.StockGTec.interna.LoadingLayout;
import java.util.HashSet;
public class LoadingLayoutProxy implements ILoadingLayout{
private final HashSet<LoadingLayout> mLoadingLayouts;
LoadingLayoutProxy() {
mLoadingLayouts = new HashSet<LoadingLayout>();
}
/**
* This allows you to add extra LoadingLayout instances to this proxy. This
* is only necessary if you keep your own instances, and want to have them
* included in any
* {@link PullToRefreshBase#createLoadingLayoutProxy(boolean, boolean)
* createLoadingLayoutProxy(...)} calls.
*
* @param layout - LoadingLayout to have included.
*/
public void addLayout(LoadingLayout layout) {
if (null != layout) {
mLoadingLayouts.add(layout);
}
}
@Override
public void setLastUpdatedLabel(CharSequence label) {
for (LoadingLayout layout : mLoadingLayouts) {
layout.setLastUpdatedLabel(label);
}
}
@Override
public void setLoadingDrawable(Drawable drawable) {
for (LoadingLayout layout : mLoadingLayouts) {
layout.setLoadingDrawable(drawable);
}
}
@Override
public void setRefreshingLabel(CharSequence refreshingLabel) {
for (LoadingLayout layout : mLoadingLayouts) {
layout.setRefreshingLabel(refreshingLabel);
}
}
@Override
public void setPullLabel(CharSequence label) {
for (LoadingLayout layout : mLoadingLayouts) {
layout.setPullLabel(label);
}
}
@Override
public void setReleaseLabel(CharSequence label) {
for (LoadingLayout layout : mLoadingLayouts) {
layout.setReleaseLabel(label);
}
}
public void setTextTypeface(Typeface tf) {
for (LoadingLayout layout : mLoadingLayouts) {
layout.setTextTypeface(tf);
}
}
}
|
[
"lulu.natan@gmail.com"
] |
lulu.natan@gmail.com
|
1795a3484a1c0591bcdba1af8300c4d33970cd79
|
7df84ffd084caff7f89e4f9bfe4ea92531148568
|
/src/com/thinkinginjava/holding_objects/example/chapter11_13/ArrayIsNotIterable.java
|
5af5c03fe869bda7d7d8d4beca578e44bcde9dc8
|
[] |
no_license
|
MonikaSophin/myproject
|
ece1fb8d0406867a67b5e2b53291973e20843c9e
|
679ae00ff5533f7d502b1e4fead60eff462ced1d
|
refs/heads/master
| 2022-06-25T22:50:55.316203
| 2020-12-02T07:22:07
| 2020-12-02T07:22:07
| 152,444,035
| 0
| 1
| null | 2022-06-21T03:27:24
| 2018-10-10T15:12:07
|
Java
|
UTF-8
|
Java
| false
| false
| 704
|
java
|
package com.thinkinginjava.holding_objects.example.chapter11_13;
import java.util.Arrays;
/**
* @Author: monika
* @Date: 2018/12/22 14:55
* @Version: 1.0
* @Description:
* 1.因为把数组当作成Iterable是错误的,不存在任何从数组到Iterable的自动转换。
* 所以需要手工执行这种转换。
*/
public class ArrayIsNotIterable {
static <T> void test(Iterable<T> ib) {
for (T t : ib)
System.out.print(t + " ");
}
public static void main(String[] args) {
test(Arrays.asList(1, 2, 3));
String[] strings = {"A", "B", "C"};
//! test(strings);
test(Arrays.asList(strings));
}
}
/**output:
* 1 2 3 A B C
*/
|
[
"43468391+MonikaSophin@users.noreply.github.com"
] |
43468391+MonikaSophin@users.noreply.github.com
|
54b29dc52c236dba57055557b432ab67e69987c4
|
b4be6ce60105b72d01e32754d07782d141b201b1
|
/baymax-common/baymax-common-webmvc/src/main/java/com/info/baymax/common/webmvc/servlet/result/ServletFilterFieldsHandlerResultHandler.java
|
1bc6b16cbecd5b0aadba636f15e91f5548443501
|
[] |
no_license
|
cgb-datav/woven-dsp
|
62a56099987cc2e08019aceb6e914e538607ca28
|
b0b2ebd6af3ac42b71d6d9eedc5c6dfa9bd4e316
|
refs/heads/master
| 2023-08-28T02:55:19.375074
| 2021-07-05T04:02:57
| 2021-07-05T04:02:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,252
|
java
|
package com.info.baymax.common.webmvc.servlet.result;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.info.baymax.common.config.serialize.jackson.fieldFilter.FilterFieldsJsonSerializer;
import com.info.baymax.common.core.annotation.JsonBodys;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.core.MethodParameter;
import org.springframework.http.MediaType;
import org.springframework.http.server.ServletServerHttpRequest;
import org.springframework.http.server.ServletServerHttpResponse;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.request.NativeWebRequest;
import org.springframework.web.method.support.HandlerMethodReturnValueHandler;
import org.springframework.web.method.support.ModelAndViewContainer;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter;
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* 说明:json返回结果处理器. <br>
*
* @author jingwei.yang
* @date 2017年11月25日 上午10:26:19
*/
public class ServletFilterFieldsHandlerResultHandler implements HandlerMethodReturnValueHandler, BeanPostProcessor {
List<ResponseBodyAdvice<Object>> advices = new ArrayList<>();
private ObjectMapper objectMapper;
public ServletFilterFieldsHandlerResultHandler(ObjectMapper objectMapper) {
this.objectMapper = objectMapper;
}
// 判断是否有JsonBody或Json注解
@Override
public boolean supportsReturnType(MethodParameter returnType) {
// 该Controller类上面存在RestController注解或者该方法上面存在ResponseBody注解,并且该方法上面存在JsonBody注解(过滤所有,暂时不需要判断是否存在JsonBody注解)
Class<?> declaringClass = returnType.getMethod().getDeclaringClass();
return (declaringClass.isAnnotationPresent(RestController.class) || returnType.hasMethodAnnotation(ResponseBody.class)) && returnType.hasMethodAnnotation(JsonBodys.class);
}
// 有的话就会执行这个方法
@Override
public void handleReturnValue(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) throws Exception {
mavContainer.setRequestHandled(true);
for (ResponseBodyAdvice<Object> ad : advices) {
if (ad.supports(returnType, null)) {
returnValue = ad.beforeBodyWrite(returnValue, returnType, MediaType.APPLICATION_JSON, null,
new ServletServerHttpRequest(webRequest.getNativeRequest(HttpServletRequest.class)),
new ServletServerHttpResponse(webRequest.getNativeResponse(HttpServletResponse.class)));
}
}
HttpServletResponse response = webRequest.getNativeResponse(HttpServletResponse.class);
Annotation[] annos = returnType.getMethodAnnotations();
// 调用
FilterFieldsJsonSerializer jsonSerializer = new FilterFieldsJsonSerializer(objectMapper);
// 如果是JsonBody就循环调用
Arrays.asList(annos).forEach(a -> {
if (a instanceof JsonBodys) {
JsonBodys body = (JsonBodys) a;
Arrays.asList(body.value()).forEach(json -> {
jsonSerializer.filter(json);
});
}
});
response.setContentType(MediaType.APPLICATION_JSON_VALUE);
// 转换成json返回
String json = jsonSerializer.toJson(returnValue);
response.getWriter().write(json);
}
@Override
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
return bean;
}
@SuppressWarnings("unchecked")
@Override
public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
if (bean instanceof ResponseBodyAdvice) {
advices.add((ResponseBodyAdvice<Object>) bean);
} else if (bean instanceof RequestMappingHandlerAdapter) {
List<HandlerMethodReturnValueHandler> handlers = new ArrayList<>(((RequestMappingHandlerAdapter) bean).getReturnValueHandlers());
ServletFilterFieldsHandlerResultHandler jsonHandler = null;
for (int i = 0; i < handlers.size(); i++) {
HandlerMethodReturnValueHandler handler = handlers.get(i);
if (handler instanceof ServletFilterFieldsHandlerResultHandler) {
jsonHandler = (ServletFilterFieldsHandlerResultHandler) handler;
break;
}
}
if (jsonHandler != null) {
handlers.remove(jsonHandler);
handlers.add(0, jsonHandler);
((RequestMappingHandlerAdapter) bean).setReturnValueHandlers(handlers);
}
}
return bean;
}
}
|
[
"760374564@qq.com"
] |
760374564@qq.com
|
8e2a4e9c2c7357986f45ea5d2acf0a91478f70a4
|
d2eee6e9a3ad0b3fd2899c3d1cf94778615b10cb
|
/PROMISE/archives/camel/1.6/org/apache/camel/bam/model/ProcessDefinition.java
|
2a252fc89a5158720ea6ef0726b7388b0ebb5f87
|
[] |
no_license
|
hvdthong/DEFECT_PREDICTION
|
78b8e98c0be3db86ffaed432722b0b8c61523ab2
|
76a61c69be0e2082faa3f19efd76a99f56a32858
|
refs/heads/master
| 2021-01-20T05:19:00.927723
| 2018-07-10T03:38:14
| 2018-07-10T03:38:14
| 89,766,606
| 5
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,989
|
java
|
package org.apache.camel.bam.model;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import org.apache.camel.util.ObjectHelper;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.orm.jpa.JpaTemplate;
/**
* @version $Revision: 697660 $
*/
@Entity
@Table(
name = "PROCESSDEFINITION",
uniqueConstraints = @UniqueConstraint(columnNames = {"name"})
)
public class ProcessDefinition extends EntitySupport {
private static final transient Log LOG = LogFactory.getLog(ProcessDefinition.class);
private String name;
@Override
@Id
@GeneratedValue
public Long getId() {
return super.getId();
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public static ProcessDefinition getRefreshedProcessDefinition(JpaTemplate template, ProcessDefinition definition) {
ObjectHelper.notNull(definition, "definition");
Long id = definition.getId();
if (id == null) {
LOG.warn("No primary key is available!");
return findOrCreateProcessDefinition(template, definition.getName());
}
definition = template.find(ProcessDefinition.class, id);
return definition;
}
public static ProcessDefinition findOrCreateProcessDefinition(JpaTemplate template, String processName) {
List<ProcessDefinition> list = template.find("select x from " + ProcessDefinition.class.getName() + " x where x.name = ?1", processName);
if (!list.isEmpty()) {
return list.get(0);
} else {
ProcessDefinition answer = new ProcessDefinition();
answer.setName(processName);
template.persist(answer);
return answer;
}
}
}
|
[
"hvdthong@github.com"
] |
hvdthong@github.com
|
f3c27ba45722bbe051378c4ae5813133c4042691
|
838fe21048f4da4ba6a2ec1679e2a9e3aff188c9
|
/Renters Block Phase-2/RB Converted Code/app/src/main/java/com/smaat/renterblock/sqlite/DatabaseManager.java
|
4f4d6a9b459791fb967ee1032dfb6fce38d1b9dd
|
[] |
no_license
|
PrithivDharmarajan/Projects
|
03b162e0666dc08888d73bd3c6fa7771525677c7
|
1548b60025adc4f7a0570d51950c144a1cacce3a
|
refs/heads/master
| 2020-03-30T22:36:22.465572
| 2018-11-12T16:39:01
| 2018-11-12T16:39:01
| 151,672,600
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,464
|
java
|
package com.smaat.renterblock.sqlite;
import java.util.concurrent.atomic.AtomicInteger;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
public class DatabaseManager {
private static DatabaseManager instance;
private static RentersBlockDatabase mDatabaseHelper;
private AtomicInteger mOpenCounter = new AtomicInteger();
private SQLiteDatabase mDatabase;
public static synchronized void initialize(Context context, RentersBlockDatabase helper) {
if (instance == null) {
instance = new DatabaseManager();
mDatabaseHelper = helper;
}
}
public static synchronized DatabaseManager getInstance() {
if (instance == null) {
throw new IllegalStateException(DatabaseManager.class.getSimpleName() +
" is not initialized, call initialize(..) method first.");
}
return instance;
}
public SQLiteDatabase getDatabase() {
return mDatabaseHelper.getWritableDatabase();
}
public synchronized SQLiteDatabase openDatabase() {
if(mOpenCounter.incrementAndGet() == 1) {
// Opening new database
mDatabase = mDatabaseHelper.getWritableDatabase();
}
return mDatabase;
}
public synchronized void closeDatabase() {
if(mOpenCounter.decrementAndGet() == 0) {
// Closing database
mDatabase.close();
}
}
}
|
[
"prithiviraj@smaatapps.com"
] |
prithiviraj@smaatapps.com
|
7c7ace51cbc5dced904d68dbb273ae180da99cd8
|
b3d9de772e9d86059fbb05012f5d86473b34d079
|
/apache-maven-3.8.3/maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchainsBuilder.java
|
3ae3b7388201c2fe1ebb06a7efdf52c058f06e0a
|
[
"Apache-2.0"
] |
permissive
|
sudhansu133/Testing
|
08f4b3b8b624df4f5a3af7d06336bc75fe99d3b4
|
b9a7bfa0e8289716d41ec56572cfb9b6acef6fd6
|
refs/heads/master
| 2023-08-30T20:44:55.930466
| 2021-10-12T18:40:30
| 2021-10-12T18:40:30
| 416,307,796
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,498
|
java
|
package org.apache.maven.toolchain;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.toolchain.model.PersistedToolchains;
import org.apache.maven.toolchain.model.io.xpp3.MavenToolchainsXpp3Reader;
import org.codehaus.plexus.component.annotations.Component;
import org.codehaus.plexus.component.annotations.Requirement;
import org.codehaus.plexus.logging.Logger;
import org.codehaus.plexus.util.ReaderFactory;
import java.io.File;
import java.io.Reader;
/**
* @author Benjamin Bentmann
* @deprecated instead use {@link org.apache.maven.toolchain.building.DefaultToolchainsBuilder}
*/
@Deprecated
@Component( role = ToolchainsBuilder.class, hint = "default" )
public class DefaultToolchainsBuilder
implements ToolchainsBuilder
{
@Requirement
private Logger logger;
public PersistedToolchains build( File userToolchainsFile )
throws MisconfiguredToolchainException
{
PersistedToolchains toolchains = null;
if ( userToolchainsFile != null && userToolchainsFile.isFile() )
{
try ( Reader in = ReaderFactory.newXmlReader( userToolchainsFile ) )
{
toolchains = new MavenToolchainsXpp3Reader().read( in );
}
catch ( Exception e )
{
throw new MisconfiguredToolchainException(
"Cannot read toolchains file at " + userToolchainsFile.getAbsolutePath(), e );
}
}
else if ( userToolchainsFile != null )
{
logger.debug( "Toolchains configuration was not found at " + userToolchainsFile );
}
return toolchains;
}
}
|
[
"sudhansu133@gmail.com"
] |
sudhansu133@gmail.com
|
6abaf85f4ca5fb671ea725ceeb2f105130992eeb
|
d2984ba2b5ff607687aac9c65ccefa1bd6e41ede
|
/src/net/datenwerke/rs/grideditor/client/grideditor/vp/RowValueProviderString.java
|
c2435e5c6d11c3bdfad580cc155afc9a64ca3afb
|
[] |
no_license
|
bireports/ReportServer
|
da979eaf472b3e199e6fbd52b3031f0e819bff14
|
0f9b9dca75136c2bfc20aa611ebbc7dc24cfde62
|
refs/heads/master
| 2020-04-18T10:18:56.181123
| 2019-01-25T00:45:14
| 2019-01-25T00:45:14
| 167,463,795
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,705
|
java
|
/*
* ReportServer
* Copyright (c) 2018 InfoFabrik GmbH
* http://reportserver.net/
*
*
* This file is part of ReportServer.
*
* ReportServer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.datenwerke.rs.grideditor.client.grideditor.vp;
import net.datenwerke.rs.grideditor.client.grideditor.dto.GridEditorRecordDto;
import net.datenwerke.rs.grideditor.client.grideditor.dto.GridEditorRecordEntryDto;
public class RowValueProviderString extends RowValueProvider<String> {
public RowValueProviderString(int index) {
super(index);
}
@Override
public String getValue(GridEditorRecordDto object) {
GridEditorRecordEntryDto entry = object.getData().get(index);
if(entry.isEntryNull())
return null;
return entry.getStringValue();
}
@Override
public void setValue(GridEditorRecordDto object, String value) {
GridEditorRecordEntryDto entry = object.getData().get(index);
if(null == value)
entry.setEntryNull(true);
else {
entry.setEntryNull(false);
entry.setStringValue(value);
}
}
}
|
[
"srbala@gmail.com"
] |
srbala@gmail.com
|
cc08eea6bc1af65854285e2a81aa89d3e80a74f5
|
cbcbde37d796165438fe81c203850996359d7448
|
/src/main/java/com/mugnol/cursomc/dto/CategoriaDTO.java
|
77f5f3a7e6cc09c8bf14a30765a1a2bf325e0f8b
|
[] |
no_license
|
mugnol/spring-boot-ionic-backend
|
c6d22f05c711d9f65971e9b969e343818636c3cf
|
bc2116147c3559a4adcace4d5191449773599a1d
|
refs/heads/master
| 2020-12-08T20:47:40.535895
| 2020-01-13T15:04:01
| 2020-01-13T15:04:01
| 233,057,586
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 984
|
java
|
package com.mugnol.cursomc.dto;
import java.io.Serializable;
import javax.validation.constraints.NotEmpty;
import org.hibernate.validator.constraints.Length;
import com.mugnol.cursomc.domain.Categoria;
import com.mugnol.cursomc.services.validation.CategoriaInsert;
import com.mugnol.cursomc.services.validation.CategoriaUpdate;
@CategoriaInsert
@CategoriaUpdate
public class CategoriaDTO implements Serializable{
private static final long serialVersionUID = 1L;
private Integer id;
@NotEmpty(message="Preenchimento obrigatório.")
@Length(min=5, max=80, message="O tamanho deve ser entre 5 e 80 caracteres.")
private String nome;
public CategoriaDTO() {
}
public CategoriaDTO(Categoria obj) {
setId(obj.getId());
setNome(obj.getNome());
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
}
|
[
"="
] |
=
|
3b2ee39c4efa22c2de7d3d1ca08eb6f11813dea2
|
385708bc194c2372dfe981baf7fb065fbce97c81
|
/gulimall-coupon/src/main/java/com/atguigu/gulimall/coupon/service/SkuLadderService.java
|
b637dda6452beba9ca793bd7d3e3a331210679eb
|
[
"Apache-2.0"
] |
permissive
|
clown14/gulimall
|
07c2b6060127d93ec63b4e766171070334275fd9
|
29dfc52d136a0a756faa2c3d944235880e734a8d
|
refs/heads/main
| 2023-02-25T14:02:51.045603
| 2021-02-08T07:27:24
| 2021-02-08T07:27:24
| 310,208,507
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 465
|
java
|
package com.atguigu.gulimall.coupon.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.coupon.entity.SkuLadderEntity;
import java.util.Map;
/**
* 商品阶梯价格
*
* @author clown
* @email 785613198@qq.com
* @date 2020-11-07 14:26:43
*/
public interface SkuLadderService extends IService<SkuLadderEntity> {
PageUtils queryPage(Map<String, Object> params);
}
|
[
"785613198@qq.com"
] |
785613198@qq.com
|
8124a04aef95b9c58186db27f1fb438ab01673c1
|
eaaf0d39c99e25c77bd2905646f08f306a5c66b0
|
/src/main/java/com/pr/sepp/work/gantt/controller/GanttController.java
|
52c37f5453c8f88bd85590039825f6d85f9adbfe
|
[
"MIT"
] |
permissive
|
testAutoResearch/seppb
|
ae67b793f53814e1dd400dadfb6551e27497ccbf
|
b6388a28e39f97c8abec626080a2949ea55e7ad7
|
refs/heads/master
| 2020-11-23T18:47:27.667704
| 2019-12-12T08:46:55
| 2019-12-12T08:46:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,317
|
java
|
package com.pr.sepp.work.gantt.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.pr.sepp.work.gantt.service.GanttService;
@RestController
@ResponseBody
public class GanttController {
@Autowired
private GanttService ganttService;
@RequestMapping(value = "/gantt/mission_query", method = RequestMethod.POST)
public List<Map<String, Object>> ganttMissionQuery(HttpServletRequest request) throws Exception {
Map<String, Object> dataMap = new HashMap<>();
dataMap.put("planBeginBegin", request.getParameter("planBeginBegin") + " 00:00:00");
dataMap.put("planBeginEnd", request.getParameter("planBeginEnd") + " 23:59:59");
dataMap.put("planEndBegin", request.getParameter("planEndBegin") + " 00:00:00");
dataMap.put("planEndEnd", request.getParameter("planEndEnd") + " 23:59:59");
dataMap.put("productId", request.getParameter("productId"));
return ganttService.ganttMissionQuery(dataMap);
}
}
|
[
"yijiubasi@163.com"
] |
yijiubasi@163.com
|
bb55859fd279c989d6de88475ade20ab8b59c086
|
723b46305bdbe146cbe5af25344b8c63b254d80e
|
/Tic-Tac-Toe/Problems/Triples/src/Main.java
|
c5b4823834d51e1c9003c44b92905af1919297ef
|
[] |
no_license
|
Alex-Golub/hyperskill-projects
|
76c88342c3c4f03a881b924fa4ce194f0fdec01b
|
01a2e55f7d6d7b0533184886818a1feb8df324ca
|
refs/heads/master
| 2023-01-01T07:26:39.548081
| 2020-10-29T14:35:07
| 2020-10-29T14:35:07
| 265,616,621
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 837
|
java
|
import java.util.Scanner;
class Main {
static final Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int[] arr = getArray();
int result = countTriples(arr, arr.length);
System.out.println(result);
}
private static int countTriples(int[] arr, int len) {
int counter = 0;
for (int i = 0; i < len - 2; ++i) {
int n1 = arr[i];
int n2 = arr[i + 1];
int n3 = arr[i + 2];
if (n3 - n2 == 1 && n2 - n1 == 1) {
counter++;
}
}
return counter;
}
private static int[] getArray() {
int size = sc.nextInt();
int[] arr = new int[size];
for (int i = 0; i < size; ++i) {
arr[i] = sc.nextInt();
}
return arr;
}
}
|
[
"55350522+Alex-Golub@users.noreply.github.com"
] |
55350522+Alex-Golub@users.noreply.github.com
|
2787f4a98ccdf897f129d7d536087e1eed51a676
|
553ef1329bd05860cbc413919120e912576d4a7c
|
/nebua/src/main/java/com/nebula/view/refreshlayout/BGADivider.java
|
79ebb613a6e46284d7087d28cc536d0340d1a9e7
|
[] |
no_license
|
qydq/nebula
|
a7b1a9610c076012ed306ef056a08160596c79e9
|
e4e9dd91c1d59e09004e162cddc33d6b5f26f211
|
refs/heads/master
| 2020-03-15T20:47:11.273363
| 2018-05-06T13:39:14
| 2018-05-06T13:39:14
| 132,340,938
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,844
|
java
|
package com.nebula.view.refreshlayout;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.nebula.R;
public class BGADivider extends RecyclerView.ItemDecoration {
private Drawable mDividerDrawable;
public BGADivider(Context context) {
mDividerDrawable = context.getResources().getDrawable(R.mipmap.base_list_divider);
}
// 如果等于分割线的宽度或高度的话可以不用重写该方法
@Override
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
if (parent.getChildAdapterPosition(view) == parent.getAdapter().getItemCount() - 1) {
outRect.set(0, 0, 0, 0);
} else {
outRect.set(0, 0, 0, mDividerDrawable.getIntrinsicHeight());
}
}
@Override
public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) {
drawVertical(c, parent);
}
public void drawVertical(Canvas c, RecyclerView parent) {
int left = parent.getPaddingLeft();
int right = parent.getWidth() - parent.getPaddingRight();
View child;
RecyclerView.LayoutParams layoutParams;
int top;
int bottom;
int childCount = parent.getChildCount();
for (int i = 0; i < childCount - 1; i++) {
child = parent.getChildAt(i);
layoutParams = (RecyclerView.LayoutParams) child.getLayoutParams();
top = child.getBottom() + layoutParams.bottomMargin;
bottom = top + mDividerDrawable.getIntrinsicHeight();
mDividerDrawable.setBounds(left, top, right, bottom);
mDividerDrawable.draw(c);
}
}
}
|
[
"qyddai@163.com"
] |
qyddai@163.com
|
e671c4e25205f4762cd1a8482c7d38870312736b
|
ff64ca70ecbb2d631609166723a73ea34b35e2fe
|
/src/main/java/cn/core/framework/exception/ExceptionResolver.java
|
8e7f9875242464cc926ad1c834153606b78b7ed8
|
[] |
no_license
|
chengaoying/ICB2B
|
11197e4d0517c7ee81c0053b36dcb63290bd6ff3
|
0b8de757afbd443ed56941bcfe53a0c9e2101be1
|
refs/heads/master
| 2021-01-20T22:26:16.431223
| 2016-05-29T02:26:22
| 2016-05-29T02:26:22
| 59,879,349
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,735
|
java
|
package cn.core.framework.exception;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframework.web.servlet.ModelAndView;
/**
* 统一异常处理
* @author jc
* @date 2015-8-1
*/
public class ExceptionResolver implements HandlerExceptionResolver{
private static final Log log = LogFactory.getLog(ExceptionResolver.class);
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public ModelAndView resolveException(HttpServletRequest req,
HttpServletResponse res, Object obj, Exception ex) {
Map model = new HashMap();
StringPrintWriter strintPrintWriter = new StringPrintWriter();
ex.printStackTrace(strintPrintWriter);
model.put("error", ex.getMessage());
log.error(strintPrintWriter.getString());
//log.error(ex.getMessage());
return new ModelAndView("error",model);
}
/**
* 内部类:异常信息输出转换
* @author JC
* @date 2015-8-1
*/
private class StringPrintWriter extends PrintWriter{
public StringPrintWriter(){
super(new StringWriter());
}
public StringPrintWriter(int initialSize) {
super(new StringWriter(initialSize));
}
public String getString() {
flush();
return ((StringWriter) this.out).toString();
}
@Override
public String toString() {
return getString();
}
}
}
|
[
"1"
] |
1
|
a6571430d3ddfa06f4990adab147213f6e9b79c0
|
d82acd125fb7d6570e58a522ed1b8f28af11123a
|
/ui/data/RD findbugs/model/src/edu/umd/cs/findbugs/ba/heap/LoadDataflow.java
|
17c997294cf66ebab0c296a7ea2b7bdc2f607c65
|
[
"Apache-2.0"
] |
permissive
|
fetteradler/Getaviz
|
dba3323060d3bca81d2d93a2c1a19444ca406e16
|
9e80d842312f55b798044c069a1ef297e64da86f
|
refs/heads/master
| 2020-03-22T11:34:46.963754
| 2018-08-29T14:19:09
| 2018-08-29T14:19:09
| 139,980,787
| 0
| 0
|
Apache-2.0
| 2018-07-06T12:16:17
| 2018-07-06T12:16:17
| null |
UTF-8
|
Java
| false
| false
| 1,164
|
java
|
/*
* FindBugs - Find Bugs in Java programs
* Copyright (C) 2005, University of Maryland
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package edu.umd.cs.findbugs.ba.heap;
import edu.umd.cs.findbugs.ba.AbstractDataflow;
import edu.umd.cs.findbugs.ba.CFG;
/**
* @author David Hovemeyer
*/
public class LoadDataflow extends AbstractDataflow<FieldSet, LoadAnalysis> {
public LoadDataflow(CFG cfg, LoadAnalysis analysis) {
super(cfg, analysis);
}
}
|
[
"david.baum@uni-leipzig.de"
] |
david.baum@uni-leipzig.de
|
c2eb5c86bbd26b95a3585f4483f021b00e1a69a3
|
41eb18ea27e7ed88b705454d0115b113ffc656d4
|
/app/src/main/java/com/is90/Reader3/ui/menu/NavAboutActivity.java
|
b1220fd55cb86b1f1da5620a377478e9e25492f7
|
[] |
no_license
|
kiefer0815/reader3
|
16b98ee43db7e9ed0f029fde50b4c5f983cac3fd
|
966dfc9c6b2fe14f22b3c6f643d54c980cefce98
|
refs/heads/master
| 2020-04-07T09:55:18.136373
| 2018-03-07T08:23:54
| 2018-03-07T08:23:54
| 124,201,878
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,674
|
java
|
package com.is90.Reader3.ui.menu;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.bumptech.glide.Glide;
import com.is90.Reader3.AppContext;
import com.is90.Reader3.R;
import com.is90.Reader3.base.BaseDataBindingActivity;
import com.is90.Reader3.component.download.UpdateManager;
import com.is90.Reader3.databinding.ActivityNavAboutBinding;
import com.is90.Reader3.utils.CommonUtils;
public class NavAboutActivity extends BaseDataBindingActivity<ActivityNavAboutBinding> {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_nav_about);
showContentView();
setTitle("关于电子书阅读器");
bindingView.tvVersionName.setText("当前版本 V" + CommonUtils.getVersionCode(AppContext.applicationContext));
// 直接写在布局文件里会很耗内存
Glide.with(this).load(R.mipmap.ic_launcher).into(bindingView.ivIcon);
initListener();
}
private void initListener() {
bindingView.tvNewVersion.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
UpdateManager.getInstance().checkUpdate(true);
}
});
}
public static void start(Context mContext) {
Intent intent = new Intent(mContext, NavAboutActivity.class);
mContext.startActivity(intent);
}
@Override
public void onResume() {
super.onResume();
}
@Override
public void onPause() {
super.onPause();
}
}
|
[
"xiezhanghuan@ruoshui.me"
] |
xiezhanghuan@ruoshui.me
|
2c96a2d914108f6710c88fe4fbe8a3edfa7c4f53
|
399086d542359a85ca68fe122efd3321cb9cefdd
|
/spring-security/src/main/java/com/whl/controller/BookController.java
|
7150adcda91c7bd2a4b4b6e726e66e8c294768e7
|
[] |
no_license
|
wuhlcom/springSimpleSample
|
356cfb8286601e91af32deae191425b9252ebc6e
|
ff426beb2e9f049637077625a911cd1e4810b927
|
refs/heads/master
| 2020-05-22T07:18:22.627568
| 2019-05-12T14:08:10
| 2019-05-12T14:08:10
| 186,262,796
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 754
|
java
|
package com.whl.controller;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/book")
public class BookController {
@PreAuthorize("hasAuthority('BookList')")
@GetMapping("/list.html")
public String list() {
return "book/list";
}
@PreAuthorize("hasAuthority('BookAdd')")
@GetMapping("/add.html")
public String add() {
return "book/add";
}
@PreAuthorize("hasAuthority('BookDetail')")
@GetMapping("/detail.html")
public String detail() {
return "book/detail";
}
}
|
[
"wuhlcom@qq.com"
] |
wuhlcom@qq.com
|
55a053ed2e23233d00f48da08dcc2091df681567
|
613d589e45fffe0f0440b251a6a0ae90ca7d404f
|
/src/edu/washington/cse/concerto/interpreter/exception/UnrecognizedIntrinsicException.java
|
5663c872490e5b095205d3ecd2fd2ab2d2a8b97a
|
[
"MIT"
] |
permissive
|
uwplse/concerto
|
bac6eda9d99465c42b2fd6d2b6f703409220ad3a
|
a23d35eae9f6be8c0c1e8e0e4adac5aa3386c1df
|
refs/heads/master
| 2021-09-24T16:29:37.771129
| 2018-10-10T18:17:40
| 2018-10-11T23:46:40
| 96,581,483
| 5
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 221
|
java
|
package edu.washington.cse.concerto.interpreter.exception;
public class UnrecognizedIntrinsicException extends InterpreterException {
public UnrecognizedIntrinsicException(final String message) {
super(message);
}
}
|
[
"jtoman@cs.washington.edu"
] |
jtoman@cs.washington.edu
|
c0892f5a3609751d2f60b2e68d5f63ba4c3000a1
|
44915907c7344bc62be44385653cefa813321de5
|
/easymock-classextension/src/test/java/org/easymock/classextension/tests2/PartialMockingTest.java
|
2d2e0e71a8b8c8cb7a538cd8d9ccca7d92334024
|
[
"Apache-2.0"
] |
permissive
|
facebookarchive/easymock
|
470597f32aa45c247ff235a72285e88a41ad97ba
|
d57989c6110209e5c831508da938592fa6e08c89
|
refs/heads/master
| 2023-06-01T09:53:24.629039
| 2018-06-11T17:18:14
| 2018-06-11T17:18:14
| 14,701,867
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,287
|
java
|
/**
* Copyright 2003-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.easymock.classextension.tests2;
import static org.easymock.EasyMock.*;
import static org.junit.Assert.*;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.ArrayList;
import org.easymock.classextension.ConstructorArgs;
import org.junit.Test;
/**
* @author Henri Tremblay
*/
@SuppressWarnings("deprecation")
public class PartialMockingTest {
public static abstract class A {
public String s;
public int i;
protected A(final String s) {
this.s = s;
}
@SuppressWarnings("unused")
private A(final int i) {
this.i = i;
}
protected abstract int foo();
}
@SuppressWarnings("unchecked")
@Test
public void testPartialMock_PublicConstructor() throws Exception {
final Constructor<?> cstr = ArrayList.class.getConstructor(Integer.TYPE);
final ConstructorArgs constructorArgs = new ConstructorArgs(cstr, 3);
final ArrayList<String> list = createMock(ArrayList.class, constructorArgs,
new Method[0]);
list.add("test"); // shouldn't crash since constructor was called
}
@Test
public void testPartialMock_ProtectedConstructor() throws Exception {
final Constructor<?> cstr = A.class.getDeclaredConstructor(String.class);
final ConstructorArgs constructorArgs = new ConstructorArgs(cstr, "test");
final A a = createMock(A.class, constructorArgs, new Method[0]);
assertEquals("test", a.s); // make sure constructor was called
// Check that abstract method is mocked by default
expect(a.foo()).andReturn(3);
replay(a);
assertEquals(3, a.foo());
verify(a);
}
@Test(expected = RuntimeException.class)
public void testPartialMock_ConstructorNotFound() throws Exception {
final Constructor<?> cstr = ArrayList.class.getConstructor(Integer.TYPE);
final ConstructorArgs constructorArgs = new ConstructorArgs(cstr, 2.0);
try {
createMock(ArrayList.class, constructorArgs, new Method[0]);
} catch (final RuntimeException e) {
assertEquals("Failed to find constructor for param types", e
.getMessage());
throw e;
}
}
@Test(expected = IllegalArgumentException.class)
public void testPartialMock_InvalidParams() throws Exception {
final Constructor<?> cstr = ArrayList.class.getConstructor(Integer.TYPE);
final ConstructorArgs constructorArgs = new ConstructorArgs(cstr, "test");
createMock(ArrayList.class, constructorArgs, new Method[0]);
}
@Test(expected = RuntimeException.class)
public void testPartialMock_ExceptionInConstructor() throws Exception {
final Constructor<?> cstr = ArrayList.class.getConstructor(Integer.TYPE);
final ConstructorArgs constructorArgs = new ConstructorArgs(cstr, -5);
try {
createMock(ArrayList.class, constructorArgs, new Method[0]);
} catch (final RuntimeException e) {
assertEquals(
"Failed to instantiate mock calling constructor: Exception in constructor",
e.getMessage());
throw e;
}
}
/*
* @Test public void testDelegateOnTemplatePattern() { A a =
* createMock(A.class); expect(a.foo()).andDelegateTo(new A(5) {
*
* @Override protected int foo() { return i; } }); replay(a);
* assertEquals(5, a.foo()); verify(a); }
*/
}
|
[
"henri.tremblay@gmail.com"
] |
henri.tremblay@gmail.com
|
89fba75c28c440d26083a0704fd1266ae0b49ae7
|
fb41c04a4ead3b79625d0eb30ca85f0fd1c2d4c9
|
/integration/boofcv-WebcamCapture/examples/boofcv/examples/ExampleCollectImages.java
|
42c1777fe06064cb2d1fb02272aa4980a891f9bd
|
[
"Apache-2.0",
"LicenseRef-scancode-takuya-ooura"
] |
permissive
|
thhart/BoofCV
|
899dcf1b4302bb9464520c36a9e54c6fe35969c7
|
43f25488673dc27590544330323c676f61c1a17a
|
refs/heads/SNAPSHOT
| 2023-08-18T10:19:50.269999
| 2023-07-15T23:13:25
| 2023-07-15T23:13:25
| 90,468,259
| 0
| 0
|
Apache-2.0
| 2018-10-26T08:47:44
| 2017-05-06T14:24:01
|
Java
|
UTF-8
|
Java
| false
| false
| 2,031
|
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.examples;
import boofcv.gui.image.ImagePanel;
import boofcv.gui.image.ShowImages;
import boofcv.io.image.UtilImageIO;
import boofcv.io.webcamcapture.UtilWebcamCapture;
import com.github.sarxos.webcam.Webcam;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;
/**
* View images from a webcam and save them by clicking on the image with a mouse
*
* @author Peter Abeles
*/
public class ExampleCollectImages {
public static volatile boolean saveImage = false;
public static void main(String[] args) {
// Open a webcam at a resolution close to 640x480
Webcam webcam = Webcam.getWebcams().get(0);
UtilWebcamCapture.adjustResolution(webcam,640,480);
webcam.open();
// Create the panel used to display the image
ImagePanel gui = new ImagePanel();
gui.setPreferredSize(webcam.getViewSize());
gui.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
saveImage = true;
}
});
ShowImages.showWindow(gui,"Webcam",true);
int total = 0;
while( true ) {
BufferedImage image = webcam.getImage();
if( saveImage ) {
System.out.println("Saving image "+total);
saveImage = false;
UtilImageIO.saveImage(image,String.format("image%04d.png",(total++)));
}
gui.setImageUI(image);
}
}
}
|
[
"peter.abeles@gmail.com"
] |
peter.abeles@gmail.com
|
5ccdf3b772f3c445143117ba5fe3bbebbf3a15cc
|
206d15befecdfb67a93c61c935c2d5ae7f6a79e9
|
/mmbook/src/cn/mmbook/platform/action/site/SubjectContentRealAction.java
|
9d61b624c408f9798e552a7600dd0ac0be08b09d
|
[] |
no_license
|
MarkChege/micandroid
|
2e4d2884929548a814aa0a7715727c84dc4dcdab
|
0b0a6dee39cf7e258b6f54e1103dcac8dbe1c419
|
refs/heads/master
| 2021-01-10T19:15:34.994670
| 2013-05-16T05:56:21
| 2013-05-16T05:56:21
| 34,704,029
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,142
|
java
|
package cn.mmbook.platform.action.site;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javacommon.util.extjs.ExtJsPageHelper;
import javacommon.util.extjs.ListRange;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.commons.lang.StringUtils;
import cn.org.rapid_framework.page.Page;
import cn.org.rapid_framework.page.PageRequest;
import cn.mmbook.platform.model.site.SubjectContentReal;
import com.opensymphony.xwork2.Preparable;
import com.opensymphony.xwork2.ModelDriven;
import static javacommon.util.extjs.Struts2JsonHelper.*;
import java.util.*;
import javacommon.base.*;
import javacommon.util.*;
import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;
import cn.mmbook.platform.model.site.*;
import cn.mmbook.platform.dao.site.*;
import cn.mmbook.platform.service.site.impl.*;
import cn.mmbook.platform.service.site.*;
/**
* <p> SubjectContentRealAction<br>
* <p> <br>
* @author admin,
* @version 1.0. 2010-07-08
*
*/
public class SubjectContentRealAction extends BaseStruts2Action implements Preparable,ModelDriven{
//默认多列排序,example: username desc,createTime asc
protected static final String DEFAULT_SORT_COLUMNS = null;
private SubjectContentRealManager subjectContentRealManager;
private SubjectContentReal subjectContentReal;
java.lang.Integer id = null;
private String[] items;
/**
* 自动获取对象
* @exception Exception
*/
public void prepare() throws Exception {
if (isNullOrEmptyString(id)) {
subjectContentReal = new SubjectContentReal();
} else {
subjectContentReal = (SubjectContentReal)subjectContentRealManager.getById(id);
}
}
/**
* 对象通过spring自动注入
* @param manager SubjectContentRealManager
*
*/
public void setSubjectContentRealManager(SubjectContentRealManager manager) {
this.subjectContentRealManager = manager;
}
/**
* struts 自动把页面提交数据转换成数据类对象赋值
* @return SubjectContentReal subjectContentReal
*/
public Object getModel() {
return subjectContentReal;
}
public void setId(java.lang.Integer val) {
this.id = val;
}
public void setItems(String[] items) {
this.items = items;
}
/**
* 分页显示数据,通过JSON串返回给页面
* @author admin,
* @version 1.0. 2010-07-08
* @throws IOException
*/
public void list() throws IOException
{
/**自动获取页面数据存在PageRequest对象里*/
PageRequest<Map> pageRequest = ExtJsPageHelper.createPageRequestForExtJs(getRequest(), DEFAULT_SORT_COLUMNS);
/**分页查询数据封装在Page对象里*/
Page pages = subjectContentRealManager.findByPageRequest(pageRequest);
/**取出 model 数据类 LIST*/
List<SubjectContentReal> SubjectContentReallist = (List) pages.getResult();
ListRange<SubjectContentReal> resultList = new ListRange<SubjectContentReal>();
/**加载LIST数据*/
resultList.setList(SubjectContentReallist);
/**加载记录数*/
resultList.setTotalSize(pages.getTotalCount());
/**加载页面提示信息*/
resultList.setMessage("ok");
/**加载功能状态*/
resultList.setSuccess(true);
/**返回页面 JSOM 串 */
outJson(resultList);
}
/**
* 返回所有数据
* @author admin,
* @version 1.0. 2010-07-08
* @throws IOException
*/
public void findAll() throws IOException
{
/**查询所有数据*/
ArrayList<SubjectContentReal> SubjectContentReallist = (ArrayList)subjectContentRealManager.findAll();
ListRange<SubjectContentReal> resultList = new ListRange<SubjectContentReal>();
resultList.setList(SubjectContentReallist);
/**加载页面提示信息*/
resultList.setMessage("ok");
/**加载功能状态*/
resultList.setSuccess(true);
/**返回页面 JSOM 串 */
outJson(resultList);
}
/**
* 保存数据
* 系统自动把页面提交数据,封装到 SubjectContentReal 对象
* @author admin,
* @version 1.0. 2010-07-08
* @throws IOException
*/
public void save() throws IOException
{
Map<String, Object> result = new HashMap<String, Object>();
try
{
/**保存数据*/
subjectContentRealManager.save(subjectContentReal);
/**加载操作状态*/
result.put("success", true);
/**加载页面提示信息*/
result.put("msg", "数据添加成功!");
}
catch (Exception e)
{
result.put("failure", true);
result.put("msg", "数据添加失败!");
e.printStackTrace();
}
outJson(result);
}
/**
* 修改数据
* 系统自动把页面提交数据,封装到 SubjectContentReal 对象
* @author admin,
* @version 1.0. 2010-07-08
* @throws IOException
*/
public void update() throws IOException
{
Map<String, Object> result = new HashMap<String, Object>();
if(null != subjectContentReal){
try
{
/**修改数据*/
subjectContentRealManager.update(subjectContentReal);
/**加载操作状态*/
result.put("success", true);
/**加载页面提示信息*/
result.put("msg", "数据修改成功!");
}
catch (Exception e)
{
result.put("failure", true);
result.put("msg", "数据修改失败!");
e.printStackTrace();
}
}else{
result.put("failure", true);
result.put("msg", "数据不存在!");
}
outJson(result);
}
/**
* 删除单条或多条数据
* 页面把需要删除的数据的ID存放在 参数 ids 中。
* Action 把IDS 分割,得到要删除对象主键ID进行删除
* @author admin,
* @version 1.0. 2010-07-08
* @throws IOException
*/
public void delete() throws IOException
{
String ids = getRequest().getParameter("ids");
String[] idarray = ids.split(",");
Map<String, Object> result = new HashMap<String, Object>();
try
{
for (int i = 0; i < idarray.length; i++)
{
java.lang.Integer id = new java.lang.Integer((String)idarray[i]);
subjectContentRealManager.removeById(id);
}
result.put("success", true);
result.put("msg", "数据删除成功");
}
catch (Exception e)
{
result.put("failure", true);
result.put("msg", "数据删除失败!");
e.printStackTrace();
}
outJson(result);
}
/**
* 下拉框所用
* 返回格式: ['1','name1'],['2','name2'],['3','kep']
* @author admin,
* @version 1.0. 2010-07-08
* @throws IOException
*/
public void getComboBox() throws IOException
{
String result =null;
List list = subjectContentRealManager.getList(subjectContentReal);
for (int i = 0; list != null && i < list.size(); i++) {
subjectContentReal = (SubjectContentReal)list.get(i);
/**两个都是getId,把后者改成你要取的数*/
if(i==0){
result="[['"+subjectContentReal.getId()+"','"+subjectContentReal.getId()+"']";
}else{
result+=",['"+subjectContentReal.getId()+"','"+subjectContentReal.getId()+"']";
}
}
if (!"".equals(result)) {
result+="]";
}
outJsonString(result);
}
/**
* 多表关联查询
* 分页显示数据
* 列表
* @author admin,
* @version 1.0. 2010-07-08
* @throws IOException
*/
public void listAnyTable() throws IOException
{
PageRequest<Map> pr = ExtJsPageHelper.createPageRequestForExtJs(getRequest(), DEFAULT_SORT_COLUMNS);
Page page = subjectContentRealManager.listPageAnyTable(pr);
List<SubjectContentReal> SubjectContentReallist = (List) page.getResult();
ListRange<SubjectContentReal> resultList = new ListRange<SubjectContentReal>();
resultList.setList(SubjectContentReallist);
resultList.setTotalSize(page.getTotalCount());
resultList.setMessage("ok");
resultList.setSuccess(true);
outJson(resultList);
}
}
|
[
"zoopnin@29cfa68c-37ae-8048-bc30-ccda835e92b1"
] |
zoopnin@29cfa68c-37ae-8048-bc30-ccda835e92b1
|
46f5842091ece4d65fa9149383e0e1d7bef58451
|
25346f238005b26857afb2a635c325ffa24a95d7
|
/amems/src/main/java/com/eray/thjw/project2/po/ProductionOrderPlane.java
|
eb0e1a2acedd2ef26cbf7d8cb4820641c9260a47
|
[] |
no_license
|
xyd104449/amems
|
93491ff8fcf1d0650a9af764fa1fa38d7a25572a
|
74a0ef8dc31d27ee5d1a0e91ff4d74af47b08778
|
refs/heads/master
| 2021-09-15T03:21:15.399980
| 2018-05-25T03:15:58
| 2018-05-25T03:15:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,547
|
java
|
package com.eray.thjw.project2.po;
import java.util.Date;
/**
* @Description 生产指令飞机关系 b_g2_01402
* @CreateTime 2018年4月28日 上午9:59:50
* @CreateBy 徐勇
*/
public class ProductionOrderPlane {
private String id;
private String mainid;
private Short xc;
private String fjzch;
private String whdwid;
private String whrid;
private Date whsj;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id == null ? null : id.trim();
}
public String getMainid() {
return mainid;
}
public void setMainid(String mainid) {
this.mainid = mainid == null ? null : mainid.trim();
}
public Short getXc() {
return xc;
}
public void setXc(Short xc) {
this.xc = xc;
}
public String getFjzch() {
return fjzch;
}
public void setFjzch(String fjzch) {
this.fjzch = fjzch == null ? null : fjzch.trim();
}
public String getWhdwid() {
return whdwid;
}
public void setWhdwid(String whdwid) {
this.whdwid = whdwid == null ? null : whdwid.trim();
}
public String getWhrid() {
return whrid;
}
public void setWhrid(String whrid) {
this.whrid = whrid == null ? null : whrid.trim();
}
public Date getWhsj() {
return whsj;
}
public void setWhsj(Date whsj) {
this.whsj = whsj;
}
}
|
[
"903654879@qq.com"
] |
903654879@qq.com
|
3001d5060f6d2c762327648af09886b00fe92b1e
|
9254e7279570ac8ef687c416a79bb472146e9b35
|
/ocr-20191230/src/main/java/com/aliyun/ocr20191230/models/RecognizeBankCardResponseBody.java
|
b173b4e67d12913d5545ff1f5f59b0069b232eb2
|
[
"Apache-2.0"
] |
permissive
|
lquterqtd/alibabacloud-java-sdk
|
3eaa17276dd28004dae6f87e763e13eb90c30032
|
3e5dca8c36398469e10cdaaa34c314ae0bb640b4
|
refs/heads/master
| 2023-08-12T13:56:26.379027
| 2021-10-19T07:22:15
| 2021-10-19T07:22:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,266
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ocr20191230.models;
import com.aliyun.tea.*;
public class RecognizeBankCardResponseBody extends TeaModel {
@NameInMap("RequestId")
public String requestId;
@NameInMap("Data")
public RecognizeBankCardResponseBodyData data;
public static RecognizeBankCardResponseBody build(java.util.Map<String, ?> map) throws Exception {
RecognizeBankCardResponseBody self = new RecognizeBankCardResponseBody();
return TeaModel.build(map, self);
}
public RecognizeBankCardResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public RecognizeBankCardResponseBody setData(RecognizeBankCardResponseBodyData data) {
this.data = data;
return this;
}
public RecognizeBankCardResponseBodyData getData() {
return this.data;
}
public static class RecognizeBankCardResponseBodyData extends TeaModel {
@NameInMap("CardNumber")
public String cardNumber;
@NameInMap("ValidDate")
public String validDate;
@NameInMap("BankName")
public String bankName;
public static RecognizeBankCardResponseBodyData build(java.util.Map<String, ?> map) throws Exception {
RecognizeBankCardResponseBodyData self = new RecognizeBankCardResponseBodyData();
return TeaModel.build(map, self);
}
public RecognizeBankCardResponseBodyData setCardNumber(String cardNumber) {
this.cardNumber = cardNumber;
return this;
}
public String getCardNumber() {
return this.cardNumber;
}
public RecognizeBankCardResponseBodyData setValidDate(String validDate) {
this.validDate = validDate;
return this;
}
public String getValidDate() {
return this.validDate;
}
public RecognizeBankCardResponseBodyData setBankName(String bankName) {
this.bankName = bankName;
return this;
}
public String getBankName() {
return this.bankName;
}
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
c1f693b84a9ac8b087bb18580654e98210332dec
|
656ce78b903ef3426f8f1ecdaee57217f9fbc40e
|
/src/retrofit/RestMethodInfo$RequestType.java
|
86674ed592ef4c60bc773a8c8296c30a46451b55
|
[] |
no_license
|
zhuharev/periscope-android-source
|
51bce2c1b0b356718be207789c0b84acf1e7e201
|
637ab941ed6352845900b9d465b8e302146b3f8f
|
refs/heads/master
| 2021-01-10T01:47:19.177515
| 2015-12-25T16:51:27
| 2015-12-25T16:51:27
| 48,586,306
| 8
| 10
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,055
|
java
|
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package retrofit;
// Referenced classes of package retrofit:
// RestMethodInfo
static final class extends Enum
{
private static final FORM_URL_ENCODED $VALUES[];
public static final FORM_URL_ENCODED FORM_URL_ENCODED;
public static final FORM_URL_ENCODED MULTIPART;
public static final FORM_URL_ENCODED SIMPLE;
public static valueOf(String s)
{
return ()Enum.valueOf(retrofit/RestMethodInfo$RequestType, s);
}
public static [] values()
{
return ([])$VALUES.clone();
}
static
{
SIMPLE = new <init>("SIMPLE", 0);
MULTIPART = new <init>("MULTIPART", 1);
FORM_URL_ENCODED = new <init>("FORM_URL_ENCODED", 2);
$VALUES = (new .VALUES[] {
SIMPLE, MULTIPART, FORM_URL_ENCODED
});
}
private (String s, int i)
{
super(s, i);
}
}
|
[
"hostmaster@zhuharev.ru"
] |
hostmaster@zhuharev.ru
|
39e7838e745aea55359ca562b5907aac71edf61f
|
8dc84558f0058d90dfc4955e905dab1b22d12c08
|
/third_party/android_tools/sdk/sources/android-25/com/android/server/notification/ZenModeConditions.java
|
40b0be2991f6b1933844e386a6eda5dfeecedf21
|
[
"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
| 7,624
|
java
|
/**
* Copyright (c) 2015, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.server.notification;
import android.content.ComponentName;
import android.net.Uri;
import android.service.notification.Condition;
import android.service.notification.IConditionListener;
import android.service.notification.IConditionProvider;
import android.service.notification.ZenModeConfig;
import android.service.notification.ZenModeConfig.ZenRule;
import android.util.ArrayMap;
import android.util.ArraySet;
import android.util.Log;
import java.io.PrintWriter;
import java.util.Objects;
public class ZenModeConditions implements ConditionProviders.Callback {
private static final String TAG = ZenModeHelper.TAG;
private static final boolean DEBUG = ZenModeHelper.DEBUG;
private final ZenModeHelper mHelper;
private final ConditionProviders mConditionProviders;
private final ArrayMap<Uri, ComponentName> mSubscriptions = new ArrayMap<>();
private boolean mFirstEvaluation = true;
public ZenModeConditions(ZenModeHelper helper, ConditionProviders conditionProviders) {
mHelper = helper;
mConditionProviders = conditionProviders;
if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.COUNTDOWN_PATH)) {
mConditionProviders.addSystemProvider(new CountdownConditionProvider());
}
if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.SCHEDULE_PATH)) {
mConditionProviders.addSystemProvider(new ScheduleConditionProvider());
}
if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.EVENT_PATH)) {
mConditionProviders.addSystemProvider(new EventConditionProvider());
}
mConditionProviders.setCallback(this);
}
public void dump(PrintWriter pw, String prefix) {
pw.print(prefix); pw.print("mSubscriptions="); pw.println(mSubscriptions);
}
public void evaluateConfig(ZenModeConfig config, boolean processSubscriptions) {
if (config == null) return;
if (config.manualRule != null && config.manualRule.condition != null
&& !config.manualRule.isTrueOrUnknown()) {
if (DEBUG) Log.d(TAG, "evaluateConfig: clearing manual rule");
config.manualRule = null;
}
final ArraySet<Uri> current = new ArraySet<>();
evaluateRule(config.manualRule, current, processSubscriptions);
for (ZenRule automaticRule : config.automaticRules.values()) {
evaluateRule(automaticRule, current, processSubscriptions);
updateSnoozing(automaticRule);
}
final int N = mSubscriptions.size();
for (int i = N - 1; i >= 0; i--) {
final Uri id = mSubscriptions.keyAt(i);
final ComponentName component = mSubscriptions.valueAt(i);
if (processSubscriptions) {
if (!current.contains(id)) {
mConditionProviders.unsubscribeIfNecessary(component, id);
mSubscriptions.removeAt(i);
}
}
}
mFirstEvaluation = false;
}
@Override
public void onBootComplete() {
// noop
}
@Override
public void onUserSwitched() {
// noop
}
@Override
public void onServiceAdded(ComponentName component) {
if (DEBUG) Log.d(TAG, "onServiceAdded " + component);
mHelper.setConfig(mHelper.getConfig(), "zmc.onServiceAdded");
}
@Override
public void onConditionChanged(Uri id, Condition condition) {
if (DEBUG) Log.d(TAG, "onConditionChanged " + id + " " + condition);
ZenModeConfig config = mHelper.getConfig();
if (config == null) return;
boolean updated = updateCondition(id, condition, config.manualRule);
for (ZenRule automaticRule : config.automaticRules.values()) {
updated |= updateCondition(id, condition, automaticRule);
updated |= updateSnoozing(automaticRule);
}
if (updated) {
mHelper.setConfig(config, "conditionChanged");
}
}
private void evaluateRule(ZenRule rule, ArraySet<Uri> current, boolean processSubscriptions) {
if (rule == null || rule.conditionId == null) return;
final Uri id = rule.conditionId;
boolean isSystemCondition = false;
for (SystemConditionProviderService sp : mConditionProviders.getSystemProviders()) {
if (sp.isValidConditionId(id)) {
mConditionProviders.ensureRecordExists(sp.getComponent(), id, sp.asInterface());
rule.component = sp.getComponent();
isSystemCondition = true;
}
}
if (!isSystemCondition) {
final IConditionProvider cp = mConditionProviders.findConditionProvider(rule.component);
if (DEBUG) Log.d(TAG, "Ensure external rule exists: " + (cp != null) + " for " + id);
if (cp != null) {
mConditionProviders.ensureRecordExists(rule.component, id, cp);
}
}
if (rule.component == null) {
Log.w(TAG, "No component found for automatic rule: " + rule.conditionId);
rule.enabled = false;
return;
}
if (current != null) {
current.add(id);
}
if (processSubscriptions) {
if (mConditionProviders.subscribeIfNecessary(rule.component, rule.conditionId)) {
mSubscriptions.put(rule.conditionId, rule.component);
} else {
rule.condition = null;
if (DEBUG) Log.d(TAG, "zmc failed to subscribe");
}
}
if (rule.condition == null) {
rule.condition = mConditionProviders.findCondition(rule.component, rule.conditionId);
if (rule.condition != null && DEBUG) Log.d(TAG, "Found existing condition for: "
+ rule.conditionId);
}
}
private boolean isAutomaticActive(ComponentName component) {
if (component == null) return false;
final ZenModeConfig config = mHelper.getConfig();
if (config == null) return false;
for (ZenRule rule : config.automaticRules.values()) {
if (component.equals(rule.component) && rule.isAutomaticActive()) {
return true;
}
}
return false;
}
private boolean updateSnoozing(ZenRule rule) {
if (rule != null && rule.snoozing && (mFirstEvaluation || !rule.isTrueOrUnknown())) {
rule.snoozing = false;
if (DEBUG) Log.d(TAG, "Snoozing reset for " + rule.conditionId);
return true;
}
return false;
}
private boolean updateCondition(Uri id, Condition condition, ZenRule rule) {
if (id == null || rule == null || rule.conditionId == null) return false;
if (!rule.conditionId.equals(id)) return false;
if (Objects.equals(condition, rule.condition)) return false;
rule.condition = condition;
return true;
}
}
|
[
"arnaud@geometry.ee"
] |
arnaud@geometry.ee
|
812b2a41f748d5ab3983a425fc5a7a1d0c103102
|
96dfa17f4ae4d7f5bd5196a3a22d9792441d3070
|
/social_sdk_library_project/src/main/java/com/midian/UMengUtils/Constant.java
|
6374f1a24dbfd481fff18c23db37384445e466e6
|
[] |
no_license
|
StormFeng/qinziyou
|
773957c5cdcbfea1025c9b4eb192b29ab5a87e62
|
66a1d4781ba223d5a851b767c120f15df9fb6091
|
refs/heads/master
| 2021-05-02T16:48:41.976306
| 2016-11-07T10:24:24
| 2016-11-07T10:24:24
| 67,026,031
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 862
|
java
|
package com.midian.UMengUtils;
public class Constant {
// public final static String APIKEY = "SGU4OeMo6tHluRlRG9Da3HxG";//在清单文件填
// public static String weixinAppId = "wx0fee1e5eb2065c77";//PP选址微信 APP id
// public static String weixinAppSecret = "5a1037c45a807459efdb26d9c86b6104";//PP选址微信 APP key
// public static String weiboAppId = "2060668017";// PP选址微博appid在友盟后台填
// public static String weiboAppSecret = "0f411a1064bfc6fca2ee5bb660b62038";//pp选址微博secret 在友盟后台填
public static String qqAppId = "1105617978";//未来宝贝QQ APP id
public static String qqAppKEY = "U9N7NQne0tMIcaS0";//未来宝贝QQ APP key
public static String weixinAppId = "wx6ec4b95185411c3c";//微信 APP id
public static String weixinAppSecret = "e27867f76bca1a55204d97ef785237d1";//微信 APP key
}
|
[
"1170017470@qq.com"
] |
1170017470@qq.com
|
34e25491ae1a076a48ef49d21f494d0510455688
|
a98cacc4444099636823d17286c71bc5eb5d39d3
|
/ReforgedCore/src/main/java/com/conquestreforged/core/block/Rail.java
|
b1e536b43494c30d58a5e77fde0375c1db9b36e4
|
[] |
no_license
|
reevadere-codes/ReforgedMod
|
55f2c9ef46cf03d912b38866f3a6eb800a2bf40b
|
b652999b98b518f3659ccabc77b95dc6cf7fe30c
|
refs/heads/master
| 2020-09-21T09:33:58.913294
| 2019-11-25T13:06:13
| 2019-11-25T13:06:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 449
|
java
|
package com.conquestreforged.core.block;
import net.minecraft.block.BlockState;
import net.minecraft.block.RailBlock;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IWorldReader;
public class Rail extends RailBlock {
public Rail(Properties properties) {
super(properties);
}
@Override
public boolean isValidPosition(BlockState state, IWorldReader reader, BlockPos pos) {
return true;
}
}
|
[
"dags@dags.me"
] |
dags@dags.me
|
634b66a97f65061eafde2d21ac81ed911289a4dc
|
f378ddd47c8b7de6e9cf1d4228c84f73e9dc59f1
|
/projetos/tsubunomi/src/jp/katahirado/android/tsubunomi/SharedManager.java
|
3928147757a0b819fe983036a51c079e759f365e
|
[] |
no_license
|
charles-marques/dataset-375
|
29e2f99ac1ba323f8cb78bf80107963fc180487c
|
51583daaf58d5669c69d8208b8c4ed4e009001a5
|
refs/heads/master
| 2023-01-20T07:23:09.445693
| 2020-11-27T22:35:49
| 2020-11-27T22:35:49
| 283,315,149
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,737
|
java
|
package jp.katahirado.android.tsubunomi;
import android.content.SharedPreferences;
import twitter4j.TwitterAPIConfiguration;
import twitter4j.User;
import twitter4j.auth.AccessToken;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
/**
* Created with IntelliJ IDEA.
* Author: yuichi_katahira
*/
public class SharedManager {
private SharedPreferences sharedPreferences;
public SharedManager(SharedPreferences preferences) {
sharedPreferences = preferences;
}
public boolean isConnected() {
return getPrefString(Const.PREF_KEY_TOKEN, null) != null;
}
public void saveOAuth(AccessToken accessToken) {
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putString(Const.PREF_KEY_TOKEN, accessToken.getToken());
editor.putString(Const.PREF_KEY_SECRET, accessToken.getTokenSecret());
editor.putString(Const.PREF_SCREEN_NAME, accessToken.getScreenName());
editor.commit();
}
public void removeOAuth() {
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.remove(Const.PREF_KEY_TOKEN);
editor.remove(Const.PREF_KEY_SECRET);
editor.remove(Const.PREF_SCREEN_NAME);
editor.commit();
}
public void setTwitterAPIConfiguration(TwitterAPIConfiguration configuration) {
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putLong(Const.CHECK_CONFIG_MILLI_SECOND, System.currentTimeMillis());
editor.putInt(Const.CHARACTERS_RESERVED_PER_MEDIA, configuration.getCharactersReservedPerMedia());
editor.putInt(Const.SHORT_URL_LENGTH, configuration.getShortURLLength());
editor.putInt(Const.SHORT_URL_LENGTH_HTTPS, configuration.getShortURLLengthHttps());
editor.putInt(Const.MAX_MEDIA_PER_UPLOAD, configuration.getMaxMediaPerUpload());
editor.putInt(Const.PHOTO_SIZE_LIMIT, configuration.getPhotoSizeLimit());
editor.commit();
}
public boolean isCheckConfigTime() {
boolean result = false;
Date lastCheckTime = new Date(sharedPreferences.getLong(Const.CHECK_CONFIG_MILLI_SECOND, 0));
Calendar calendar = Calendar.getInstance();
calendar.setTime(lastCheckTime);
calendar.add(Calendar.DATE, 1);
Date targetTime = calendar.getTime();
Date currentTime = new Date(System.currentTimeMillis());
int i = currentTime.compareTo(targetTime);
if (i > 0) {
result = true;
}
return result;
}
public ArrayList<String> getScreenNames() {
ArrayList<String> names = new ArrayList<String>();
if (getPrefString(Const.SCREEN_NAMES, null) != null) {
String[] stringArray = getPrefString(Const.SCREEN_NAMES, null).split(",");
for (String s : stringArray) {
names.add(s.trim());
}
}
return names;
}
public void setScreenNames(ArrayList<String> list) {
String listString = list.toString();
String saveString = listString.substring(1, listString.length() - 1);
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putString(Const.SCREEN_NAMES, saveString);
editor.commit();
}
public String getPrefString(String prefKey, String s) {
return sharedPreferences.getString(prefKey, s);
}
public int getPrefInt(String prefKey, int i) {
return sharedPreferences.getInt(prefKey, i);
}
public void setCurrentUser(User user) {
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putString(Const.PREF_SCREEN_NAME, user.getScreenName());
editor.commit();
}
}
|
[
"suporte@localhost.localdomain"
] |
suporte@localhost.localdomain
|
a9bfc81a3da373f7a50a7705266f9a37f57bb6ad
|
1fc89c80068348031fdd012453d081bac68c85b0
|
/FEST/org/fest/swing/driver/JListSelectionValuesQuery.java
|
95e9285fcec6ac5270688e3346e4365e8b960ac3
|
[] |
no_license
|
Jose-R-Vieira/WorkspaceEstudosJava
|
e81858e295972928d3463f23390d5d5ee67966c9
|
7ba374eef760ba2c3ee3e8a69657a96f9adec5c1
|
refs/heads/master
| 2020-03-26T16:47:26.846023
| 2018-08-17T14:06:57
| 2018-08-17T14:06:57
| 145,123,028
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,689
|
java
|
/*
* Created on Nov 1, 2008
*
* 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.
*
* Copyright @2008-2010 the original author or authors.
*/
package org.fest.swing.driver;
import static org.fest.swing.edt.GuiActionRunner.execute;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JList;
import org.fest.swing.annotation.RunsInEDT;
import org.fest.swing.cell.JListCellReader;
import org.fest.swing.edt.GuiQuery;
/**
* Understands an action, executed in the event dispatch thread, that returns an array of <code>String</code>s that
* represents the selection of a given <code>{@link JList}</code>
*
* @author Alex Ruiz
*/
final class JListSelectionValuesQuery {
@RunsInEDT
static List<String> selectionValues(final JList list, final JListCellReader cellReader) {
return execute(new GuiQuery<List<String>>() {
protected List<String> executeInEDT() {
List<String> values = new ArrayList<String>();
int[] selectedIndices = list.getSelectedIndices();
for (int index : selectedIndices)
values.add(cellReader.valueAt(list, index));
return values;
}
});
}
private JListSelectionValuesQuery() {}
}
|
[
"jose.rodrigues@rsinet.com.br"
] |
jose.rodrigues@rsinet.com.br
|
10616ec7d7c70db682399d959da970d625fcdcae
|
f2d73011c978d3116877335190386bcc93b31da0
|
/util/src/main/java/org/femtoframework/bean/annotation/AnySetter.java
|
cae0bb76f3084f421cbb2d08847bd95691e5dfd1
|
[
"Apache-2.0"
] |
permissive
|
femtoframework/femto-util
|
df6d56faac4d2b4ba4864232e64b4bb8b9613c5c
|
45523a7d61585b13d27214c90efa53f4950ba12e
|
refs/heads/master
| 2021-06-27T12:44:45.138623
| 2019-11-25T00:52:34
| 2019-11-25T00:52:34
| 161,094,498
| 0
| 0
|
Apache-2.0
| 2020-10-13T11:12:43
| 2018-12-10T00:21:31
|
Java
|
UTF-8
|
Java
| false
| false
| 900
|
java
|
package org.femtoframework.bean.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Marker annotation that can be used to define a non-static, two-argument method (first argument name of property, second value to set),
* to be used as a "fallback" handler for all otherwise unrecognized properties found from JSON content.
* It is similar to XmlAnyElement in behavior; and can only be used to denote a single property per type.
* If used, all otherwise unmapped key-value pairs from JSON Object values are added to the property (of type Map or bean).
*
* JsonAnySetter
*/
@Target(value={ANNOTATION_TYPE,METHOD})
@Retention(value=RUNTIME)
public @interface AnySetter {
}
|
[
"shaoxt@gmail.com"
] |
shaoxt@gmail.com
|
47c22e0d191fcb5bbc636ff59b2b4d45b7ed9958
|
6baf1fe00541560788e78de5244ae17a7a2b375a
|
/hollywood/com.oculus.socialplatform-base/sources/androidx/constraintlayout/widget/Group.java
|
7976f106ff13721806d0e61a2848f7143816b216
|
[] |
no_license
|
phwd/quest-tracker
|
286e605644fc05f00f4904e51f73d77444a78003
|
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
|
refs/heads/main
| 2023-03-29T20:33:10.959529
| 2021-04-10T22:14:11
| 2021-04-10T22:14:11
| 357,185,040
| 4
| 2
| null | 2021-04-12T12:28:09
| 2021-04-12T12:28:08
| null |
UTF-8
|
Java
| false
| false
| 937
|
java
|
package androidx.constraintlayout.widget;
import X.AnonymousClass2a3;
import android.content.Context;
import android.util.AttributeSet;
public class Group extends AnonymousClass2a3 {
@Override // X.AnonymousClass2a3
public final void onAttachedToWindow() {
super.onAttachedToWindow();
A05();
}
public void setElevation(float f) {
super.setElevation(f);
A05();
}
public void setVisibility(int i) {
super.setVisibility(i);
A05();
}
@Override // X.AnonymousClass2a3
public final void A06(AttributeSet attributeSet) {
super.A06(attributeSet);
}
public Group(Context context) {
super(context);
}
public Group(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
}
public Group(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
}
}
|
[
"cyuubiapps@gmail.com"
] |
cyuubiapps@gmail.com
|
8872eb6aeb752c11b6606d78710ab9f435bbdd29
|
ab1be1b43edc31a969a4eba4344ddea2eb9219bb
|
/integracion/SNR/Copia_Simple_PDFV2/Proyecto/SrvIntConsultaCopiaSimplePDFV2/src/main/java/com/koghi/nodo/snr/procesadores/srvIntConsultaCopiaSimplePDFV2/PrcRespuestaServicioSOAP.java
|
72068c3ec6ab7561f0279459f2dccff6fe8ac38e
|
[] |
no_license
|
jarivera94/esb
|
ada170f09615de1efdd862e5e8b838b82d7f6fce
|
0f8855d491e25a5b359a2867e7abfb189516ddc4
|
refs/heads/master
| 2020-04-05T00:42:22.636179
| 2018-11-06T15:45:35
| 2018-11-06T15:45:35
| 156,407,140
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,414
|
java
|
package com.koghi.nodo.snr.procesadores.srvIntConsultaCopiaSimplePDFV2;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.json.JSONArray;
import org.json.JSONObject;
import org.json.XML;
public class PrcRespuestaServicioSOAP implements Processor {
public void process (Exchange ex) throws Exception {
String inBody = ex.getIn().getBody() != null ? ex.getIn().getBody(String.class) : "";
String operacionCANT = ex.getIn().getHeader("operationName", String.class);
String respuestaServicio = "";
JSONObject jsonRespuesta = XML.toJSONObject(inBody);
jsonRespuesta = jsonRespuesta.getJSONObject("S:Envelope");
jsonRespuesta = jsonRespuesta.getJSONObject("S:Body");
jsonRespuesta = jsonRespuesta.has("ns0:obtenerConsultaJuridicaResponse") ? jsonRespuesta.getJSONObject("ns0:obtenerConsultaJuridicaResponse") :
jsonRespuesta.getJSONObject("ns2:obtenerConsultaJuridicaResponse");
respuestaServicio = jsonRespuesta.getJSONObject("return").toString();
System.out.println("-----------------------------------------------------------");
System.out.println("-------------------- Body de respuesta --------------------");
System.out.println(inBody);
System.out.println("-----------------------------------------------------------");
System.out.println("JSON Respuesta:\n" + respuestaServicio);
ex.getOut().setBody(respuestaServicio);
}
}
|
[
"jrivera@koghi.com"
] |
jrivera@koghi.com
|
4d6f2471fa678500f797536885f92c6f69d89e4e
|
c156463cf82d43fff75cd484b0884a6b99404aa2
|
/ZeroToHero1/src/ACCESSMODIFIERS/Modifier_Test.java
|
9e18bec05bab445675cd0c3e7993a327c93798ef
|
[] |
no_license
|
bamboo1991/ZeroToHero1
|
39d71380d5e8f96beb4c4301cb3571b759d48a55
|
84402e09e63e176d5129f0460fd6087d218dabd8
|
refs/heads/master
| 2022-07-10T19:30:33.958922
| 2020-04-04T04:33:01
| 2020-04-04T04:33:01
| 241,712,319
| 0
| 1
| null | 2020-10-13T20:23:23
| 2020-02-19T19:56:37
|
Java
|
UTF-8
|
Java
| false
| false
| 230
|
java
|
package ACCESSMODIFIERS;
public class Modifier_Test {
public static void main(String[] args) {
ModifiersPractice md = new ModifiersPractice();
md.sum(22);
System.out.println(md.name);
}
}
|
[
"stamovuber@gmail.com"
] |
stamovuber@gmail.com
|
31b2a8962d4b5f4ace9ef32e81fa9b3ea324d870
|
d504110d2237650b4a445417c80131915f303fe0
|
/netbeans/gas/common_ui/test/unit/src/com/gas/common/ui/util/CipherUtilTest.java
|
07471e01a432afdd24f9e33796464e650f3dda19
|
[] |
no_license
|
duncan1201/VF
|
ab8741163bbff03962818cc1076cc35c1252bb03
|
095478313d2580925f7417dae6eb083d09636a30
|
refs/heads/master
| 2021-03-22T00:26:13.276478
| 2016-09-08T11:48:01
| 2016-09-08T11:48:01
| 32,251,044
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 694
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.gas.common.ui.util;
import java.util.Arrays;
import org.junit.Test;
/**
*
* @author dq
*/
public class CipherUtilTest {
//@Test
public void testShift(){
System.out.println(8 >> 2);
System.out.println(15 & 0x0f);
}
@Test
public void testToHex(){
System.out.println();
byte[] bs = {1, '2', 'b', 'a', 127};
String hex = CipherUtil.toHex(bs);
byte[] bs2 = CipherUtil.toBytes(hex);
boolean same = Arrays.equals(bs, bs2);
System.out.println(same);
System.out.println(0xf);
}
}
|
[
"dunqiang.liao@vectorfriends.com"
] |
dunqiang.liao@vectorfriends.com
|
b1a12ecfe7ddf293bde2932c050244fd14edb2ac
|
04dde5b0072744d24f29b50703b8c038b7740cac
|
/src/main/java/com/csx/queue/MazeWithQueue.java
|
9090e5adb0d310e8cb1f2098b11b583ac18a7eda
|
[] |
no_license
|
chensongxian/BIDS
|
345d37709d782fd9293bddf8812870ed32e9205f
|
639e219940724a6c8e374e375cd20e4207614c6b
|
refs/heads/master
| 2020-05-16T19:23:08.357207
| 2019-04-24T15:46:12
| 2019-04-24T15:46:12
| 183,258,269
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,503
|
java
|
package com.csx.queue;
import com.csx.stack.Status;
import java.util.*;
/**
* Created with IntelliJ IDEA.
*
* @Description: TODO
* @author: csx
* @Date: 2019-04-17
*/
public class MazeWithQueue {
public static void main(String[] args) {
int m = 5;
int n = 7;
// 未访问过标记
char unvisited = '0';
// 访问过标记
char visited = 'V';
// 迷宫字符数组
char[][] maze = {
{'*', '*', '*', '*', '*', '*', '*'},
{'*', '0', '*', '0', '0', '0', '*'},
{'*', '0', '*', '0', '*', '0', '*'},
{'*', '0', '0', '0', '*', '0', '*'},
{'*', '*', '*', '*', '*', '*', '*'}
};
// 可行方向总数
int d = 4;
Point[] delta = {new Point(0, 1), new Point(1, 0), new Point(0, -1), new Point(-1, 0)};
Point source = new Point(1, 1);
Point destination = new Point(3, 5);
// 用户保存父亲所在位置
Point[][] parent = new Point[m][n];
// 搜索时所用队列
Queue<Point> q = new ArrayDeque<>();
// 保存最终路径
Stack<Point> p = new Stack<>();
// 初始点设为出口点
q.offer(destination);
boolean solved = false;
int length = 0;
while (!q.isEmpty()) {
// length每次增量为increment,如果有新点入队则increment为1
int increment = 0;
for (int i = 0; i < d;++i) {
Point neighbor = new Point(q.peek().x + delta[i].x, q.peek().y + delta[i].y);
if (maze[neighbor.x][neighbor.y] == unvisited) {
increment = 1;
maze[neighbor.x][neighbor.y] = visited;
parent[neighbor.x][neighbor.y] = q.peek();
q.offer(neighbor);
if (neighbor.x == source.x && neighbor.y == source.y) {
solved = true;
break;
}
}
}
length += increment;
if (solved) {
p.push(source);
while (p.peek().x != destination.x || p.peek().y != destination.y) {
p.push(parent[p.peek().x][p.peek().y]);
}
break;
}
q.poll();
}
for (Point point : p) {
System.out.println(point.x + "----" + point.y);
}
}
}
|
[
"1164077611@qq.com"
] |
1164077611@qq.com
|
222856e598649f1fb472ad11ea0aabecfb848a28
|
826f6314f31c21cf3bdbf2fbf6bf97db49adeb11
|
/src/test/java/cucumber/examples/java/calculator/RunCukesTest.java
|
efeb8f439328935abba8c9e505a442a9678add09
|
[
"Apache-2.0"
] |
permissive
|
extent-framework/extentreports-cucumber4-adapter
|
4a18a8266a3aa72843d8c0625d340415c25b5a92
|
63d125e08bfd43a54342aad912a97d4141c72f77
|
refs/heads/master
| 2021-06-25T18:22:39.007542
| 2020-08-11T07:28:13
| 2020-08-11T07:28:13
| 156,274,758
| 41
| 27
|
Apache-2.0
| 2020-11-19T16:20:13
| 2018-11-05T19:56:52
|
Java
|
UTF-8
|
Java
| false
| false
| 347
|
java
|
package cucumber.examples.java.calculator;
import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@CucumberOptions(plugin = {"com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:", "json:target/cucumber-report.json"})
public class RunCukesTest {
}
|
[
"anshooarora@gmail.com"
] |
anshooarora@gmail.com
|
3d9ace90a62ae9778f8d4102118d2b84692a6316
|
0f68c0f88c5cbccd421449ea960db31a798ebf38
|
/src/main/java/cn/com/hh/service/biz/impl/UnblockMemberDayUnlockRecordBizServiceImpl.java
|
a24c255e1a7524b094f13588b275bc8a12895fe4
|
[] |
no_license
|
leimu222/exchange
|
0e5c72658f5986d99dc96a6e860444e2624e90e2
|
e22bfc530a230ba23088a36b6d86a9a380d7a8ef
|
refs/heads/master
| 2023-01-31T16:19:37.498040
| 2020-12-08T10:30:46
| 2020-12-08T10:30:46
| 319,348,177
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,627
|
java
|
package com.common.api.service.impl;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Objects;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import com.common.api.dao.UnblockMemberDayUnlockRecordMapper;
import com.common.api.model.UnblockMemberDayUnlockRecord;
import com.common.api.service.IUnblockMemberDayUnlockRecordService;
/**
* @author Gavin Lee
* @version 1.0
* @date 2020-12-08 18:16:09
* Description: [unblockBiz服务实现]
*/
@Service
public class UnblockMemberDayUnlockRecordBizServiceImpl extends CommonService implements IUnblockMemberDayUnlockRecordBizService {
@Autowired
private IUnblockMemberDayUnlockRecordService unblockMemberDayUnlockRecordService;
/**
* 查询unblock
*
* @param id unblockID
* @return unblock
*/
@Override
public UnblockMemberDayUnlockRecord selectUnblockMemberDayUnlockRecordById(Long id) {
return unblockMemberDayUnlockRecordService.selectUnblockMemberDayUnlockRecordById(id);
}
/**
* 查询unblock列表
*
* @param unblockMemberDayUnlockRecord unblock
* @return unblock
*/
@Override
public List<UnblockMemberDayUnlockRecord> selectUnblockMemberDayUnlockRecordList(UnblockMemberDayUnlockRecord unblockMemberDayUnlockRecord) {
return unblockMemberDayUnlockRecordService.selectUnblockMemberDayUnlockRecordList(unblockMemberDayUnlockRecord);
}
/**
* 新增unblock
*
* @param unblockMemberDayUnlockRecord unblock
* @return 结果
*/
@Override
public int insertUnblockMemberDayUnlockRecord(UnblockMemberDayUnlockRecord unblockMemberDayUnlockRecord) {
return unblockMemberDayUnlockRecordService.insertUnblockMemberDayUnlockRecord(unblockMemberDayUnlockRecord);
}
/**
* 修改unblock
*
* @param unblockMemberDayUnlockRecord unblock
* @return 结果
*/
@Override
public int updateUnblockMemberDayUnlockRecord(UnblockMemberDayUnlockRecord unblockMemberDayUnlockRecord) {
return unblockMemberDayUnlockRecordService.updateUnblockMemberDayUnlockRecord(unblockMemberDayUnlockRecord);
}
/**
* 批量删除unblock
*
* @param ids 需要删除的unblockID
* @return 结果
*/
@Override
public int deleteUnblockMemberDayUnlockRecordByIds(Long[] ids) {
return unblockMemberDayUnlockRecordService.deleteUnblockMemberDayUnlockRecordByIds(ids);
}
/**
* 删除unblock信息
*
* @param id unblockID
* @return 结果
*/
@Override
public int deleteUnblockMemberDayUnlockRecordById(Long id) {
return unblockMemberDayUnlockRecordService.deleteUnblockMemberDayUnlockRecordById(id);
}
}
|
[
"2165456@qq.com"
] |
2165456@qq.com
|
4b0074822645ce6f2089b0dbc708d2d96825c5d8
|
221a4f8138ea6c294a8e33cc6d4200610a9d2b1d
|
/BCEL/src/de/fub/bytecode/generic/BIPUSH.java
|
9846ce6743cb9839e952d4e5a180d9a5f000aeac
|
[] |
no_license
|
dougxc/skvm
|
804890fec4eb10a124964997eaeec151f7fe475c
|
13ed14fec6fc89715f5a974b371eefe989b849ee
|
refs/heads/master
| 2022-12-19T02:48:30.935756
| 2020-09-29T09:54:48
| 2020-09-29T09:54:48
| 299,573,572
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,887
|
java
|
package de.fub.bytecode.generic;
import java.io.*;
import de.fub.bytecode.util.ByteSequence;
/**
* BIPUSH - Push byte on stack
*
* <PRE>Stack: ... -> ..., value</PRE>
*
* @version $Id: BIPUSH.java,v 1.1.1.1 2002/05/21 20:38:49 dougxc Exp $
* @author <A HREF="http://www.inf.fu-berlin.de/~dahm">M. Dahm</A>
*/
public class BIPUSH extends Instruction implements ConstantPushInstruction {
private byte b;
/**
* Empty constructor needed for the Class.newInstance() statement in
* Instruction.readInstruction(). Not to be used otherwise.
*/
BIPUSH() {}
/** Push byte on stack
*/
public BIPUSH(byte b) {
super(de.fub.bytecode.Constants.BIPUSH, (short)2);
this.b = b;
}
/**
* Dump instruction as byte code to stream out.
*/
public void dump(DataOutputStream out) throws IOException {
super.dump(out);
out.writeByte(b);
}
/**
* @return mnemonic for instruction
*/
public String toString(boolean verbose) {
return super.toString(verbose) + " " + b;
}
/**
* Read needed data (e.g. index) from file.
*/
protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException
{
length = 2;
b = bytes.readByte();
}
public Number getValue() { return new Integer(b); }
/** @return Type.BYTE
*/
public Type getType(ConstantPoolGen cp) {
return Type.BYTE;
}
/**
* Call corresponding visitor method(s). The order is:
* Call visitor methods of implemented interfaces first, then
* call methods according to the class hierarchy in descending order,
* i.e., the most specific visitXXX() call comes last.
*
* @param v Visitor object
*/
public void accept(Visitor v) {
v.visitPushInstruction(this);
v.visitStackProducer(this);
v.visitTypedInstruction(this);
v.visitConstantPushInstruction(this);
v.visitBIPUSH(this);
}
}
|
[
"doug.simon@oracle.com"
] |
doug.simon@oracle.com
|
f493a97fa4bcc015bc454217c7984a458810b457
|
ef1b72abf5554c94661c495a0bf0a6aded89e37c
|
/src/net/minecraft/src/byi.java
|
f40e148d5c31e37c051cbbf8fa76c1f03b065bde
|
[] |
no_license
|
JimmyZJX/MC1.8_source
|
ad459b12d0d01db28942b9af87c86393011fd626
|
25f56c7884a320cbf183b23010cccecb5689d707
|
refs/heads/master
| 2016-09-10T04:26:40.951576
| 2014-11-29T06:22:02
| 2014-11-29T06:22:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,434
|
java
|
package net.minecraft.src;
/* 1: */ public class byi
/* 2: */ implements buv
/* 3: */ {
/* 4: */ private final bsr b;
/* 5: */ private final String c;
/* 6: */ private final bug d;
/* 7: */ private final bug e;
private final byf a;
/* 8: */
/* 9: */ private byi(byf parambyf, bsr parambsr)
/* 10: */ {
a=parambyf;
/* 11: 95 */ this.b = parambsr;
/* 12: 96 */ this.c = cwc.a(parambsr.g(), new Object[0]);
/* 13: 97 */ this.d = new bug(0, 0, 0, 75, 18, cwc.a(parambsr.g(), new Object[0]));
/* 14: 98 */ this.e = new bug(0, 0, 0, 50, 18, cwc.a("controls.reset", new Object[0]));
/* 15: */ }
/* 16: */
/* 17: */ public void a(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, int paramInt7, boolean paramBoolean)
/* 18: */ {
/* 19:103 */ int i = byf.b(this.a).f == this.b ? 1 : 0;
/* 20:104 */ byf.a(this.a).k.a(this.c, paramInt2 + 90 - byf.c(this.a), paramInt3 + paramInt5 / 2 - byf.a(this.a).k.a / 2, 16777215);
/* 21: */
/* 22:106 */ this.e.h = (paramInt2 + 190);
/* 23:107 */ this.e.i = paramInt3;
/* 24:108 */ this.e.l = (this.b.i() != this.b.h());
/* 25:109 */ this.e.a(byf.a(this.a), paramInt6, paramInt7);
/* 26: */
/* 27:111 */ this.d.h = (paramInt2 + 105);
/* 28:112 */ this.d.i = paramInt3;
/* 29:113 */ this.d.j = bto.c(this.b.i());
/* 30: */
/* 31:115 */ int j = 0;
/* 32:117 */ if (this.b.i() != 0) {
/* 33:118 */ for (bsr localbsr : byf.a(this.a).t.at) {
/* 34:119 */ if ((localbsr != this.b) && (localbsr.i() == this.b.i()))
/* 35: */ {
/* 36:120 */ j = 1;
/* 37:121 */ break;
/* 38: */ }
/* 39: */ }
/* 40: */ }
/* 41:126 */ if (i != 0) {
/* 42:127 */ this.d.j = (a.p + "> " + a.o + this.d.j + a.p + " <");
/* 43:128 */ } else if (j != 0) {
/* 44:129 */ this.d.j = (a.m + this.d.j);
/* 45: */ }
/* 46:132 */ this.d.a(byf.a(this.a), paramInt6, paramInt7);
/* 47: */ }
/* 48: */
/* 49: */ public boolean a(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6)
/* 50: */ {
/* 51:137 */ if (this.d.c(byf.a(this.a), paramInt2, paramInt3))
/* 52: */ {
/* 53:138 */ byf.b(this.a).f = this.b;
/* 54:139 */ return true;
/* 55: */ }
/* 56:140 */ if (this.e.c(byf.a(this.a), paramInt2, paramInt3))
/* 57: */ {
/* 58:141 */ byf.a(this.a).t.a(this.b, this.b.h());
/* 59:142 */ bsr.b();
/* 60:143 */ return true;
/* 61: */ }
/* 62:145 */ return false;
/* 63: */ }
/* 64: */
/* 65: */ public void b(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6)
/* 66: */ {
/* 67:150 */ this.d.a(paramInt2, paramInt3);
/* 68:151 */ this.e.a(paramInt2, paramInt3);
/* 69: */ }
/* 70: */
/* 71: */ public void a(int paramInt1, int paramInt2, int paramInt3) {}
byi(byf arg0, bsr arg1, byg arg2) {this(arg0,arg1);}
/* 72: */ }
/* Location: C:\Minecraft1.7.5\.minecraft\versions\1.8\1.8.jar
* Qualified Name: byi
* JD-Core Version: 0.7.0.1
*/
|
[
"604590822@qq.com"
] |
604590822@qq.com
|
69f579a7ea9ebe881d0017570642d17e0ade5c57
|
ffeaf567e9b1aadb4c00d95cd3df4e6484f36dcd
|
/Hotgram/com/google/android/gms/common/images/Size.java
|
18e25dc06b57cb01243cad4b4459f2bfcccb10da
|
[] |
no_license
|
danielperez9430/Third-party-Telegram-Apps-Spy
|
dfe541290c8512ca366e401aedf5cc5bfcaa6c3e
|
f6fc0f9c677bd5d5cd3585790b033094c2f0226d
|
refs/heads/master
| 2020-04-11T23:26:06.025903
| 2018-12-18T10:07:20
| 2018-12-18T10:07:20
| 162,166,647
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,999
|
java
|
package com.google.android.gms.common.images;
public final class Size {
private final int zzps;
private final int zzpt;
public Size(int arg1, int arg2) {
super();
this.zzps = arg1;
this.zzpt = arg2;
}
public final boolean equals(Object arg5) {
if(arg5 == null) {
return 0;
}
if(this == (((Size)arg5))) {
return 1;
}
if(((arg5 instanceof Size)) && this.zzps == ((Size)arg5).zzps && this.zzpt == ((Size)arg5).zzpt) {
return 1;
}
return 0;
}
public final int getHeight() {
return this.zzpt;
}
public final int getWidth() {
return this.zzps;
}
public final int hashCode() {
return this.zzpt ^ (this.zzps << 16 | this.zzps >>> 16);
}
public static Size parseSize(String arg3) {
if(arg3 != null) {
int v0 = arg3.indexOf(42);
if(v0 < 0) {
v0 = arg3.indexOf(120);
}
if(v0 >= 0) {
try {
return new Size(Integer.parseInt(arg3.substring(0, v0)), Integer.parseInt(arg3.substring(v0 + 1)));
}
catch(NumberFormatException ) {
throw Size.zzi(arg3);
}
}
throw Size.zzi(arg3);
}
throw new IllegalArgumentException("string must not be null");
}
public final String toString() {
int v0 = this.zzps;
int v1 = this.zzpt;
StringBuilder v2 = new StringBuilder(23);
v2.append(v0);
v2.append("x");
v2.append(v1);
return v2.toString();
}
private static NumberFormatException zzi(String arg3) {
StringBuilder v2 = new StringBuilder(String.valueOf(arg3).length() + 16);
v2.append("Invalid Size: \"");
v2.append(arg3);
v2.append("\"");
throw new NumberFormatException(v2.toString());
}
}
|
[
"dpefe@hotmail.es"
] |
dpefe@hotmail.es
|
a4e18ecd165e47a8bf1b822beb5ba41dbab5f68c
|
de17aa3c79c4d4c65f3166caef3dec851fc30920
|
/Java Swing实现/sale-manage/src/org/ariescat/main/Entrance.java
|
4346be8e35f8aa7df5d74a47ee9c759a32277af8
|
[] |
no_license
|
RFQ733/sale-manage
|
eec81cafac6605d6549b036865d8946ec6a74ac1
|
e80c8afb1de7fe8083de9cdf3272bc537f2fcb78
|
refs/heads/master
| 2023-08-20T08:19:48.321576
| 2021-10-30T16:18:45
| 2021-10-30T16:18:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 672
|
java
|
package org.ariescat.main;
import javax.swing.UIManager;
import org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper;
import org.ariescat.module.view.LoginJFrame;
/**
* 程序一开始执行的类
*
* @author Administrator
*
*/
public class Entrance {
public static void main(String[] args) {
try {
// 设置窗口边框样式
BeautyEyeLNFHelper.frameBorderStyle = BeautyEyeLNFHelper.FrameBorderStyle.translucencyAppleLike;
org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper.launchBeautyEyeLNF();
// 隐藏设置按钮
UIManager.put("RootPane.setupButtonVisible", false);
} catch (Exception e) {
}
// 初始化登陆窗口
new LoginJFrame();
}
}
|
[
"1275563227@qq.com"
] |
1275563227@qq.com
|
9fb413aea3c8de4501268431878a2473184e42ca
|
3869b9cb9b10985685cf4b2f7318d272f3b647ab
|
/src/main/java/com/juma/tgm/manage/waybill/controller/SupplementDeliveryController.java
|
640803422b973146715088742da57c66a1a97651
|
[] |
no_license
|
SunGitShine/tgm-manage
|
a9c8f2846dde23cdadf0e8dc56d648258107025c
|
d7f7b690d682feddcf82663f808d269547b3c74f
|
refs/heads/master
| 2022-07-02T06:35:56.264430
| 2019-08-23T02:02:44
| 2019-08-23T02:02:44
| 203,905,254
| 0
| 0
| null | 2022-06-29T17:35:38
| 2019-08-23T02:01:37
|
Java
|
UTF-8
|
Java
| false
| false
| 1,819
|
java
|
package com.juma.tgm.manage.waybill.controller;
import com.giants.common.tools.Page;
import com.giants.common.tools.PageCondition;
import com.juma.auth.employee.domain.LoginEmployee;
import com.juma.tgm.manage.web.controller.BaseController;
import com.juma.tgm.user.domain.CurrentUser;
import com.juma.tgm.waybill.domain.vo.WaybillQueryVo;
import com.juma.tgm.waybill.service.DeliveryPointSupplementService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
/**
* @ClassName SupplementDeliveryController.java
* @Description 修改路线
* @author Libin.Wei
* @Date 2017年6月21日 下午7:02:08
* @version 1.0.0
* @Copyright 2016 www.jumapeisong.com Inc. All rights reserved.
*/
@Controller
@RequestMapping("supplement/delivery")
public class SupplementDeliveryController extends BaseController {
@Resource
private DeliveryPointSupplementService deliveryPointSupplementService;
@ResponseBody
@RequestMapping(value = "search", method = RequestMethod.POST)
public Page<WaybillQueryVo> search(PageCondition pageCondition, LoginEmployee loginEmployee) {
this.formatAreaCodeToList(pageCondition, true);
return deliveryPointSupplementService.search(pageCondition,loginEmployee);
}
/**
* 能否修改路线
*/
@Deprecated
@ResponseBody
@RequestMapping(value = "{waybillId}/can/update/address", method = RequestMethod.GET)
public void canUpdateAddress(@PathVariable Integer waybillId, CurrentUser currentUser,
LoginEmployee loginEmployee) {
}
}
|
[
"xieqiang02@jumapeisong.com"
] |
xieqiang02@jumapeisong.com
|
6c52d72f65b2082fcdca981b8a0e16cef65cf405
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/elastic--elasticsearch/705c7e2469546fcb241f119570265a76262eac75/after/RestIndexDeleteAliasesAction.java
|
961df8af2e75d10ae70714976a9cedf18a7afc09
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003
| 2018-11-30T13:00:57
| 2018-11-30T13:00:57
| 87,353,478
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,540
|
java
|
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.rest.action.admin.indices.alias.delete;
import org.elasticsearch.action.admin.indices.alias.IndicesAliasesRequest;
import org.elasticsearch.action.admin.indices.alias.IndicesAliasesResponse;
import org.elasticsearch.client.Client;
import org.elasticsearch.common.Strings;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.rest.*;
import org.elasticsearch.rest.action.support.AcknowledgedRestListener;
import static org.elasticsearch.rest.RestRequest.Method.DELETE;
/**
*/
public class RestIndexDeleteAliasesAction extends BaseRestHandler {
@Inject
public RestIndexDeleteAliasesAction(Settings settings, Client client, RestController controller) {
super(settings, client);
controller.registerHandler(DELETE, "/{index}/_alias/{name}", this);
controller.registerHandler(DELETE, "/{index}/_aliases/{name}", this);
}
@Override
public void handleRequest(final RestRequest request, final RestChannel channel) {
final String[] indices = Strings.splitStringByCommaToArray(request.param("index"));
final String[] aliases = Strings.splitStringByCommaToArray(request.param("name"));
IndicesAliasesRequest indicesAliasesRequest = new IndicesAliasesRequest();
indicesAliasesRequest.timeout(request.paramAsTime("timeout", indicesAliasesRequest.timeout()));
indicesAliasesRequest.removeAlias(indices, aliases);
indicesAliasesRequest.masterNodeTimeout(request.paramAsTime("master_timeout", indicesAliasesRequest.masterNodeTimeout()));
client.admin().indices().aliases(indicesAliasesRequest, new AcknowledgedRestListener<IndicesAliasesResponse>(channel));
}
}
|
[
"fraczwojciech@gmail.com"
] |
fraczwojciech@gmail.com
|
e0cf86ad9416d332a231ff6a3e7c95bba4292cde
|
6b7eb768dca5c960868d2c8ce790731a1a0a80dc
|
/server-jee/src/main/java/org/jboss/capedwarf/server/jee/env/impl/GenericEnvironment.java
|
ccd94c613e8d39eec05e98be81457ca8a27424f7
|
[] |
no_license
|
mstruk/capedwarf-green
|
90ec85b0d9e8fe8c4e373eb31b02ede287c165cc
|
267da3dfcd9b00141f0a017e9cfb4b920753b5ae
|
refs/heads/master
| 2020-12-25T16:02:04.489117
| 2014-06-12T10:59:28
| 2014-06-12T10:59:28
| 3,027,786
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,517
|
java
|
/*
* JBoss, Home of Professional Open Source
* Copyright $today.year Red Hat Inc. and/or its affiliates and other
* contributors as indicated by the @author tags. All rights reserved.
* See the copyright.txt in the distribution for a full listing of
* individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.capedwarf.server.jee.env.impl;
import javax.mail.Session;
import javax.transaction.TransactionManager;
import java.util.logging.Logger;
/**
* Generic environment
*
* @author <a href="mailto:ales.justin@jboss.org">Ales Justin</a>
*/
public class GenericEnvironment extends AbstractEnvironment {
private static Logger log = Logger.getLogger(GenericEnvironment.class.getName());
/**
* JNDI locations for TransactionManagers we know of
*/
private static String[][] knownJNDIManagers =
{
{"java:/TransactionManager", "JBoss"},
{"java:appserver/TransactionManager", "Glassfish"},
{"javax.transaction.TransactionManager", "BEA WebLogic"},
{"java:comp/UserTransaction", "Resin, Orion, JOnAS (JOTM)"},
};
public TransactionManager lookupTxManager() throws Exception {
for (String[] jndiManagerName : knownJNDIManagers) {
try {
TransactionManager tm = doLookup(jndiManagerName[0], TransactionManager.class);
log.info("Found Tx manager for " + jndiManagerName[1]);
return tm;
} catch (Exception ignored) {
}
}
throw new IllegalArgumentException("No Tx manager found!");
}
public Session lookupMailSession() throws Exception {
return doLookup(true, Session.class, "java:/Mail", "mail/Session");
}
}
|
[
"ales.justin@gmail.com"
] |
ales.justin@gmail.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.