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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
06cd0753d9e41d5de6567d070b23930890ee0438
|
7df62a93d307a01b1a42bb858d6b06d65b92b33b
|
/src/com/afunms/application/model/PSTypeVo.java
|
6b956e2d639440ed0c59ba63d33316c4af03e754
|
[] |
no_license
|
wu6660563/afunms_fd
|
79ebef9e8bca4399be338d1504faf9630c42a6e1
|
3fae79abad4f3eb107f1558199eab04e5e38569a
|
refs/heads/master
| 2021-01-10T01:54:38.934469
| 2016-01-05T09:16:38
| 2016-01-05T09:16:38
| 48,276,889
| 0
| 1
| null | null | null | null |
WINDOWS-1252
|
Java
| false
| false
| 1,992
|
java
|
package com.afunms.application.model;
import com.afunms.common.base.BaseVo;
public class PSTypeVo extends BaseVo
{
private int id;
private String ipaddress;
private String port;
private String portdesc;
private int monflag;
private int flag;
private int timeout;
private String bid;
private String sendmobiles;
private String sendemail;
private String sendphone;
private int status;
private int supperid;//¹©Ó¦ÉÌid snow add at 2010-5-21
public int getSupperid() {
return supperid;
}
public void setSupperid(int supperid) {
this.supperid = supperid;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getIpaddress() {
return ipaddress;
}
public void setIpaddress(String ipaddress) {
this.ipaddress = ipaddress;
}
public String getPort() {
return port;
}
public void setPort(String port) {
this.port = port;
}
public String getPortdesc() {
return portdesc;
}
public void setPortdesc(String portdesc) {
this.portdesc = portdesc;
}
public int getMonflag() {
return monflag;
}
public void setMonflag(int monflag) {
this.monflag = monflag;
}
public int getFlag() {
return flag;
}
public void setFlag(int flag) {
this.flag = flag;
}
public int getTimeout() {
return timeout;
}
public void setTimeout(int timeout) {
this.timeout = timeout;
}
public String getBid() {
return bid;
}
public void setBid(String bid) {
this.bid = bid;
}
public String getSendmobiles() {
return sendmobiles;
}
public void setSendmobiles(String sendmobiles) {
this.sendmobiles = sendmobiles;
}
public String getSendemail() {
return sendemail;
}
public void setSendemail(String sendemail) {
this.sendemail = sendemail;
}
public String getSendphone() {
return sendphone;
}
public void setSendphone(String sendphone) {
this.sendphone = sendphone;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
}
|
[
"nick@comprame.com"
] |
nick@comprame.com
|
b82127cd4d2b5d0ade2ed5db55cfc2a8d18adea8
|
dbd405eed0f4a621d2ebcf5d8a879aaee69136e8
|
/main/user-refs/src/main/java/org/osforce/connect/dao/discussion/TopicCategoryDao.java
|
b6831e5623bfa5756f4808b821941c010c476e34
|
[] |
no_license
|
shengang1978/AA
|
a39fabd54793d0c77a64ad94d8e3dda3f0cd6951
|
d7b98b8998d33b48f60514457a873219776d9f38
|
refs/heads/master
| 2022-12-24T02:42:04.489183
| 2021-04-28T03:26:09
| 2021-04-28T03:26:09
| 33,310,666
| 0
| 1
| null | 2022-12-16T02:29:57
| 2015-04-02T13:36:05
|
Java
|
UTF-8
|
Java
| false
| false
| 362
|
java
|
package org.osforce.connect.dao.discussion;
import org.osforce.connect.entity.discussion.TopicCategory;
import org.osforce.spring4me.dao.BaseDao;
/**
*
* @author gavin
* @since 1.0.0
* @create Feb 12, 2011 - 8:10:46 AM
* <a href="http://www.opensourceforce.org">开源力量</a>
*/
public interface TopicCategoryDao extends BaseDao<TopicCategory> {
}
|
[
"shengang1978@hotmail.com"
] |
shengang1978@hotmail.com
|
e8d1aa10af3745f6c2a8e9a87408b6197f919537
|
ff7e44516bf81dae4c803f6f6f62ea05d33f9177
|
/slaesvenky/src/main/java/com/mnt/esales/bean/ReportBean.java
|
ba9fda84d869716fa2357a827cee1cf21479da58
|
[] |
no_license
|
venkateshpavuluri/esales
|
8e461ee6bab493d361434f28cdac74bd45cc395f
|
dac0f65187b8ebe258e2705df15f32dbcfe9c8c1
|
refs/heads/master
| 2016-09-16T02:56:34.248773
| 2014-08-10T13:11:31
| 2014-08-10T13:11:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,447
|
java
|
/**
*
*/
package com.mnt.esales.bean;
/**
* @author Devi
*
*/
public class ReportBean {
private String date;
//daily Sales Report loc wise
private String sdate;
private String branchId;
private String billId;
private String billDate;
private String mobileNo;
private String totalMrp;
private String totalRate;
private String totalDiscount;
private String netAmt;
private String totalPayment;
private String returnChange;
private String total_Quantiy;
private String billDetailId;
private String prodDesc;
private String pdRate;
private String pdQuantity;
private String pdDiscount;
private String vat;
private String pdAmount;
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public String getSdate() {
return sdate;
}
public void setSdate(String sdate) {
this.sdate = sdate;
}
public String getBranchId() {
return branchId;
}
public void setBranchId(String branchId) {
this.branchId = branchId;
}
public String getBillId() {
return billId;
}
public void setBillId(String billId) {
this.billId = billId;
}
public String getBillDate() {
return billDate;
}
public void setBillDate(String billDate) {
this.billDate = billDate;
}
public String getMobileNo() {
return mobileNo;
}
public void setMobileNo(String mobileNo) {
this.mobileNo = mobileNo;
}
public String getTotalMrp() {
return totalMrp;
}
public void setTotalMrp(String totalMrp) {
this.totalMrp = totalMrp;
}
public String getTotalRate() {
return totalRate;
}
public void setTotalRate(String totalRate) {
this.totalRate = totalRate;
}
public String getTotalDiscount() {
return totalDiscount;
}
public void setTotalDiscount(String totalDiscount) {
this.totalDiscount = totalDiscount;
}
public String getNetAmt() {
return netAmt;
}
public void setNetAmt(String netAmt) {
this.netAmt = netAmt;
}
public String getTotalPayment() {
return totalPayment;
}
public void setTotalPayment(String totalPayment) {
this.totalPayment = totalPayment;
}
public String getReturnChange() {
return returnChange;
}
public void setReturnChange(String returnChange) {
this.returnChange = returnChange;
}
public String getTotal_Quantiy() {
return total_Quantiy;
}
public void setTotal_Quantiy(String total_Quantiy) {
this.total_Quantiy = total_Quantiy;
}
public String getBillDetailId() {
return billDetailId;
}
public void setBillDetailId(String billDetailId) {
this.billDetailId = billDetailId;
}
public String getProdDesc() {
return prodDesc;
}
public void setProdDesc(String prodDesc) {
this.prodDesc = prodDesc;
}
public String getPdRate() {
return pdRate;
}
public void setPdRate(String pdRate) {
this.pdRate = pdRate;
}
public String getPdQuantity() {
return pdQuantity;
}
public void setPdQuantity(String pdQuantity) {
this.pdQuantity = pdQuantity;
}
public String getPdDiscount() {
return pdDiscount;
}
public void setPdDiscount(String pdDiscount) {
this.pdDiscount = pdDiscount;
}
public String getVat() {
return vat;
}
public void setVat(String vat) {
this.vat = vat;
}
public String getPdAmount() {
return pdAmount;
}
public void setPdAmount(String pdAmount) {
this.pdAmount = pdAmount;
}
}
|
[
"pavuluri.venki@gmail.com"
] |
pavuluri.venki@gmail.com
|
4d4a4821f6aa1026659b361ef9120db277bdfc2b
|
f2f8ef12fdb58c4965ab7594543c3bad9c522992
|
/src/main/java/com/tinkerpop/blueprints/pgm/impls/tg/TinkerElement.java
|
dcbcf67515dccac0f9008f4d82537800d1023931
|
[
"BSD-3-Clause"
] |
permissive
|
germanviscuso/blueprints
|
7c08e7f6db7930cd549e92f63ea4c5ba6b4f8a8d
|
1e04d2bc7be0835aed19130d8525f2fc9f81782c
|
refs/heads/master
| 2020-05-20T13:11:38.546867
| 2011-04-06T23:54:04
| 2011-04-06T23:54:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,733
|
java
|
package com.tinkerpop.blueprints.pgm.impls.tg;
import com.tinkerpop.blueprints.pgm.Edge;
import com.tinkerpop.blueprints.pgm.Element;
import com.tinkerpop.blueprints.pgm.impls.StringFactory;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* @author Marko A. Rodriguez (http://markorodriguez.com)
*/
public abstract class TinkerElement implements Element {
protected Map<String, Object> properties = new HashMap<String, Object>();
protected final String id;
protected final TinkerGraph graph;
protected TinkerElement(final String id, final TinkerGraph graph) {
this.graph = graph;
this.id = id;
}
public Set<String> getPropertyKeys() {
return this.properties.keySet();
}
public Object getProperty(final String key) {
return this.properties.get(key);
}
public void setProperty(final String key, final Object value) {
if (key.equals(StringFactory.ID) || (key.equals(StringFactory.LABEL) && this instanceof Edge))
throw new RuntimeException(key + StringFactory.PROPERTY_EXCEPTION_MESSAGE);
Object oldValue = this.properties.put(key, value);
for (TinkerAutomaticIndex index : this.graph.getAutoIndices()) {
index.autoUpdate(key, value, oldValue, this);
}
}
public Object removeProperty(final String key) {
Object oldValue = this.properties.remove(key);
for (TinkerAutomaticIndex index : this.graph.getAutoIndices()) {
index.autoRemove(key, oldValue, this);
}
return oldValue;
}
public int hashCode() {
return this.getId().hashCode();
}
public String getId() {
return this.id;
}
}
|
[
"okrammarko@gmail.com"
] |
okrammarko@gmail.com
|
7ccdc1c2ea2f3dd69ff1393afadfdfd78f02cbbe
|
7ced4b8259a5d171413847e3e072226c7a5ee3d2
|
/Workspace/InterviewBit/Two Pointers/remove-duplicates-from-sorted-array.java
|
3e2168101ebb41c583cab45c7c30a450a55d626d
|
[] |
no_license
|
tanishq9/Data-Structures-and-Algorithms
|
8d4df6c8a964066988bcf5af68f21387a132cd4d
|
f6f5dec38d5e2d207fb29ad4716a83553924077a
|
refs/heads/master
| 2022-12-13T03:57:39.447650
| 2020-09-05T13:16:55
| 2020-09-05T13:16:55
| 119,425,479
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 355
|
java
|
public class Solution {
public int removeDuplicates(ArrayList<Integer> a) {
int i,j,ival=a.get(0),jval=a.get(0);
for(i=1,j=1;j<a.size();j++){
jval=a.get(j);
if(ival!=jval){
a.set(i,jval);
i++;
ival=jval;
}
}
return i;
}
}
|
[
"tanishqsaluja18@gmail.com"
] |
tanishqsaluja18@gmail.com
|
2deb07e2b0dc512eaf893ffbe3f55cbbae603a85
|
fe1c558c833798ccbff90b215705612ef7aae3cb
|
/shiro-example-chapter23-client/src/main/java/com/github/zhangkaitao/shiro/chapter23/client/ClientRealm.java
|
a6800a2be98006de71884c3c48300149ff25ae77
|
[] |
no_license
|
rulinggbc/shiro-example
|
66af0e82f2cb9507afd93864c8d9ef1cc73df2b0
|
74deebfd5605445e21c351095f3779e7c62d1449
|
refs/heads/master
| 2021-01-21T07:45:19.756250
| 2014-03-14T07:45:54
| 2014-03-14T07:46:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,677
|
java
|
package com.github.zhangkaitao.shiro.chapter23.client;
import com.github.zhangkaitao.shiro.chapter23.remote.PermissionContext;
import com.github.zhangkaitao.shiro.chapter23.remote.RemoteServiceInterface;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authz.AuthorizationInfo;
import org.apache.shiro.authz.SimpleAuthorizationInfo;
import org.apache.shiro.realm.AuthorizingRealm;
import org.apache.shiro.subject.PrincipalCollection;
/**
* <p>User: Zhang Kaitao
* <p>Date: 14-3-13
* <p>Version: 1.0
*/
public class ClientRealm extends AuthorizingRealm {
private RemoteServiceInterface remoteService;
private String appKey;
public void setRemoteService(RemoteServiceInterface remoteService) {
this.remoteService = remoteService;
}
public void setAppKey(String appKey) {
this.appKey = appKey;
}
@Override
protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {
String username = (String) principals.getPrimaryPrincipal();
SimpleAuthorizationInfo authorizationInfo = new SimpleAuthorizationInfo();
PermissionContext context = remoteService.getPermissions(appKey, username);
authorizationInfo.setRoles(context.getRoles());
authorizationInfo.setStringPermissions(context.getPermissions());
return authorizationInfo;
}
@Override
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException {
//永远不会被调用
return null;
}
}
|
[
"zhangkaitao0503@gmail.com"
] |
zhangkaitao0503@gmail.com
|
642470397be210cd562640578c0b6ed0cbc27868
|
b8662467ce3c2e583b929e5e34b64eac7f4d3b84
|
/src/main/java/be/aga/dominionSimulator/cards/SacrificeCard.java
|
cac133507ebe89675ba6f3b44c04badbd44d70a5
|
[
"MIT"
] |
permissive
|
Geronimoo/DominionSim
|
2c6d913aabde60b28435a1d6a273d0960e159670
|
6dca3383be3ec9ca7ee140c0e9c4b71ca1c0a26e
|
refs/heads/master
| 2022-07-22T23:26:17.572128
| 2022-07-20T10:07:54
| 2022-07-20T10:07:54
| 66,362,907
| 44
| 21
|
MIT
| 2020-10-13T07:25:10
| 2016-08-23T11:58:23
|
Java
|
UTF-8
|
Java
| false
| false
| 3,629
|
java
|
package be.aga.dominionSimulator.cards;
import be.aga.dominionSimulator.DomCard;
import be.aga.dominionSimulator.enums.DomCardName;
import be.aga.dominionSimulator.enums.DomCardType;
import java.util.ArrayList;
import java.util.Collections;
public class SacrificeCard extends DomCard {
public SacrificeCard() {
super( DomCardName.Sacrifice);
}
public void play() {
DomCard theCardToTrash = null;
if (owner.getCardsInHand().isEmpty())
return;
if (owner.isHumanOrPossessedByHuman()) {
ArrayList<DomCardName> theChooseFrom = new ArrayList<DomCardName>();
for (DomCard theCard : owner.getCardsInHand()) {
theChooseFrom.add(theCard.getName());
}
theCardToTrash = owner.getCardsFromHand(owner.getEngine().getGameFrame().askToSelectOneCard("Trash a card", theChooseFrom, "Mandatory!")).get(0);
} else {
theCardToTrash = findCardToTrash();
if (theCardToTrash == null) {
//this is needed when card is played with Throne Room effect
Collections.sort(owner.getCardsInHand(), SORT_FOR_TRASHING);
theCardToTrash = owner.getCardsInHand().get(0);
}
}
boolean isAction = theCardToTrash.hasCardType(DomCardType.Action);
boolean isTreasure = theCardToTrash.hasCardType(DomCardType.Treasure);
boolean isVictory = theCardToTrash.hasCardType(DomCardType.Victory);
owner.trash(owner.removeCardFromHand( theCardToTrash ));
if (isAction) {
owner.addActions(2);
owner.drawCards(2);
}
if (isTreasure)
owner.addAvailableCoins(2);
if (isVictory)
owner.addVP(2);
}
private DomCard findCardToTrash() {
Collections.sort( owner.getCardsInHand(), SORT_FOR_TRASHING);
DomCard theCardToTrash = owner.getCardsInHand().get( 0 );
if (!theCardToTrash.hasCardType(DomCardType.Action) && owner.getActionsAndVillagersLeft()==0 && !owner.getCardsFromHand(DomCardType.Action).isEmpty() && owner.getCardsFromHand(DomCardType.Action).get(0).getName()!=DomCardName.Market_Square)
theCardToTrash=owner.getCardsFromHand(DomCardType.Action).get(0);
return theCardToTrash;
}
@Override
public int getPlayPriority() {
if (owner.getActionsAndVillagersLeft()==1 && owner.getCardsFromHand(DomCardType.Action).size()>1) {
for (DomCard theCard : owner.getCardsFromHand(DomCardType.Action)){
if (theCard!=this && theCard.getTrashPriority()<=getTrashPriority())
return 15;
}
}
return super.getPlayPriority();
}
public boolean wantsToBePlayed() {
for (DomCard theCard : owner.getCardsInHand()) {
if (theCard==this)
continue;
if (theCard.getName()==DomCardName.Sacrifice)
return true;
if (theCard!=this && theCard.getTrashPriority()<16 )
return true;
}
return false;
}
@Override
public boolean wantsToBeMultiplied() {
int count = 0;
for (DomCard theCard : owner.getCardsInHand()) {
if (theCard!=this && theCard.getTrashPriority()<16 )
count++;
}
if (owner.count(DomCardName.King$s_Court)>0)
return count>2;
return count>1;
}
@Override
public boolean hasCardType(DomCardType aType) {
if (aType==DomCardType.Treasure && owner != null && owner.hasBuiltProject(DomCardName.Capitalism))
return true;
return super.hasCardType(aType);
}
}
|
[
"jeroen_aga@yahoo.com"
] |
jeroen_aga@yahoo.com
|
ba53b93c6577e14d2595265f80d186dbb9fdc680
|
7e1a576f0f6121ebad169a51703adf903790e2b2
|
/output/PPerformanceMeasure.java
|
eb4dbeca04a759f03c7f88df0bafd4cc5ee6b564
|
[
"Apache-2.0"
] |
permissive
|
thuhiensp/Generator
|
5e118d868bb68b96070bc07d8f97108b87c18fcd
|
808cf825247825a0ca8efeb7a46a66ca394f3a97
|
refs/heads/master
| 2022-05-26T22:49:35.910572
| 2019-09-27T16:02:56
| 2019-09-27T16:02:56
| 211,355,898
| 0
| 0
| null | 2022-05-20T21:10:04
| 2019-09-27T16:03:41
|
Java
|
UTF-8
|
Java
| false
| false
| 1,089
|
java
|
/*
* Copyright 2019 SmartTrade Technologies
* Pony SDK
*
* 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.ponysdk.core.ui2;
import com.ponysdk.core.model.ServerToClientModel;
import com.ponysdk.core.writer.ModelWriter;
import com.ponysdk.core.server.application.UIContext;
public class PPerformanceMeasure extends PPerformanceEntry {
private PPerformanceMeasure(){
}
@Override
protected PLeafTypeNoArgs widgetNoArgs() {
return null;
}
@Override
protected PLeafTypeWithArgs widgetWithArgs() {
return null;
}
}
|
[
"hle@smart-trade.net"
] |
hle@smart-trade.net
|
96aaa4f1ffc0dc2e0505b695ff063bae53bab5fc
|
460b2f0def829ceb74f95f3f6270bf325990bd27
|
/app/src/main/java/de/java/testtodelete/SecondActivity.java
|
2f521ccac0be83245bcb8ba2d20786b505018a14
|
[] |
no_license
|
AIRAT1/Android2DZ1
|
7360244cb1bc898278df7f742889f2d9c487db3c
|
ecc166620ac952ead9083543d93f7fcd4519d229
|
refs/heads/master
| 2016-09-01T15:41:31.370162
| 2016-02-21T09:16:31
| 2016-02-21T09:16:31
| 51,813,932
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,119
|
java
|
package de.java.testtodelete;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.ContentValues;
import android.content.DialogInterface;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.ListView;
import java.util.ArrayList;
import java.util.List;
import data.DBHelper;
public class SecondActivity extends Activity implements View.OnClickListener,AdapterView.OnItemLongClickListener{
private EditText editText;
private LinearLayout linearLayoutRoot;
private Button button;
private ListView listView;
private List<String> list;
private Animation animation;
private ArrayAdapter<String> adapter;
private String companyName;
static DBHelper dbHelper;
static SQLiteDatabase db;
private ContentValues cv;
private Cursor cursor;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main_activity);
init();
button.setOnClickListener(this);
}
void init() {
editText = (EditText)findViewById(R.id.editText);
companyName = getIntent().getStringExtra(MainActivity.COMPANY_NAME);
editText.setHint(getResources().getString(R.string.enter_person_from) + " "
+ companyName + " " + getString(R.string.here));
linearLayoutRoot = (LinearLayout)findViewById(R.id.linearLayoutRoot);
linearLayoutRoot.setBackgroundColor(getResources().getColor(R.color.linearLayoutRoot));
editText.setBackgroundColor(getResources().getColor(R.color.linearLayoutRoot));
listView = (ListView)findViewById(R.id.listView);
listView.setBackgroundColor(getResources().getColor(R.color.linearLayoutRoot));
button = (Button)findViewById(R.id.button);
load();
adapter = new ArrayAdapter<>(SecondActivity.this, android.R.layout.simple_list_item_1, list);
listView.setAdapter(adapter);
listView.setOnItemLongClickListener(this);
}
@Override
protected void onPause() {
super.onPause();
save();
}
private void save() {
db = dbHelper.getWritableDatabase();
db.delete(DBHelper.TABLE_NAME, null, null);
cv = new ContentValues();
for (String s : list) {
cv.put(DBHelper.COLUMN_NAME, s);
db.insert(DBHelper.TABLE_NAME, null, cv);
}
db.close();
cv.clear();
}
private List<String> load() {
dbHelper = new DBHelper(this, DBHelper.DB_NAME + companyName, null, 1);
db = dbHelper.getWritableDatabase();
cursor = db.query(DBHelper.TABLE_NAME, null,
null, null, null, null, null);
list = new ArrayList<>();
for (cursor.moveToFirst(); !cursor.isAfterLast(); cursor.moveToNext()) {
list.add(cursor.getString(cursor.getColumnIndex(DBHelper.COLUMN_NAME)));
}
db.close();
cursor.close();
return list;
}
@Override
public void onClick(View v) {
animation = AnimationUtils.loadAnimation(SecondActivity.this, R.anim.rotate);
button.setBackgroundColor(getResources().getColor(R.color.green));
button.setAnimation(animation);
list.add(0, editText.getText().toString());
adapter.notifyDataSetChanged();
editText.setText("");
}
@Override
public boolean onItemLongClick(final AdapterView<?> parent, View view, final int position, long id) {
final AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle(R.string.delete)
.setMessage(R.string.are_you_really_want_to_delete_this)
.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.cancel();
}
})
.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
animation = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.rotate_backward);
button.setBackgroundColor(getResources().getColor(R.color.red));
button.startAnimation(animation);
adapter.remove(parent.getItemAtPosition(position).toString());
adapter.notifyDataSetChanged();
if (list.size() == 0) button.setBackgroundColor(getResources().getColor(R.color.base_color));
}
}).create().show();
return true;
}
}
|
[
"ayrat1@mail.ru"
] |
ayrat1@mail.ru
|
473f413c7ecb0850258c13e76d8e54eff31784f5
|
58c0529be1ee5ad274292184cc0fc19c7d0e0fd2
|
/HHTask/.svn/pristine/b4/b4b5584acf333a139aa7c575feb0afd7bb3d9058.svn-base
|
fe6b28f8a0e03ddd31fb8b73dc9d33519b8b86ec
|
[] |
no_license
|
hbliyafei/nianfojishu
|
6dc348fdca415d2e7aa328c76f0cbfb9b3aba9c3
|
0a8a125e661f0d582245a4c2586d57f85e496399
|
refs/heads/master
| 2023-03-17T15:03:03.247703
| 2019-05-14T07:56:20
| 2019-05-14T07:56:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,586
|
package com.task.entity.menjin;
import java.io.Serializable;
/**
* 门禁历史记录表
*
* @author Li_Cong 表名 ta_mj_AccessRecords 所有进出记录(后台自动添加)
*/
public class AccessRecords implements Serializable {
private static final long serialVersionUID = 1L;
private Integer id;
private String recordType;// 开门验证类型(车牌/验证码/员工卡)
private String recordContents;// 开门验证内容(记录的验证码,卡号或车牌)
private String recordisIn;// 是否内部车辆(内部/来访/常访)
private String recordStatus;// 开门状态(已识别/已开门/已通过)
private String openTime;// 开门时间
private String enterTime;// 通过时间
private String openType;// 开门类型(进门/出门)
private String equipmentDaoType;// (人行道/车行道)
private String outOfPosition;// 进出位置
private Integer asWeam_id;// 开门摄像头ID
private Integer asEqt_id;// 对应设备ID
private String asWeam_ip;// 开门摄像头IP
private String asEqt_ip;// 对应设备IP
private String addTime;// 添加时间
private String recordPass;// 通过方式(由外向内/由内向外)(CC/DD)
private String inCode;// 员工工号
private String inDept;// 员工部门
private Integer inId;// 内部员工Id
private String inName;// 员工姓名
private String inmarkId;// 进出内部员工卡号
private String waitCheck;// 待检(待检查,已检查)(紧急)
private String checkName;// 检车人名称卡号
private String urgentCar;// (紧急)
private Integer banciId;// 是否要添加考勤(不为空代表有班次,有班次就代表要添加考勤)
private String isKong;// 此车卡号需要控制灯
// 请假加班id
private String entityName;// 对应实体类名称
private Integer entityId;// 对应实体类id
// get set
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getRecordType() {
return recordType;
}
public void setRecordType(String recordType) {
this.recordType = recordType;
}
public String getRecordContents() {
return recordContents;
}
public void setRecordContents(String recordContents) {
this.recordContents = recordContents;
}
public String getRecordStatus() {
return recordStatus;
}
public void setRecordStatus(String recordStatus) {
this.recordStatus = recordStatus;
}
public String getOpenTime() {
return openTime;
}
public void setOpenTime(String openTime) {
this.openTime = openTime;
}
public String getEnterTime() {
return enterTime;
}
public void setEnterTime(String enterTime) {
this.enterTime = enterTime;
}
public String getOpenType() {
return openType;
}
public void setOpenType(String openType) {
this.openType = openType;
}
public String getIsKong() {
return isKong;
}
public void setIsKong(String isKong) {
this.isKong = isKong;
}
public String getOutOfPosition() {
return outOfPosition;
}
public void setOutOfPosition(String outOfPosition) {
this.outOfPosition = outOfPosition;
}
public Integer getAsWeam_id() {
return asWeam_id;
}
public void setAsWeam_id(Integer asWeamId) {
asWeam_id = asWeamId;
}
public String getAddTime() {
return addTime;
}
public void setAddTime(String addTime) {
this.addTime = addTime;
}
public Integer getAsEqt_id() {
return asEqt_id;
}
public void setAsEqt_id(Integer asEqtId) {
asEqt_id = asEqtId;
}
public String getAsWeam_ip() {
return asWeam_ip;
}
public void setAsWeam_ip(String asWeamIp) {
asWeam_ip = asWeamIp;
}
public String getAsEqt_ip() {
return asEqt_ip;
}
public void setAsEqt_ip(String asEqtIp) {
asEqt_ip = asEqtIp;
}
public String getRecordisIn() {
return recordisIn;
}
public void setRecordisIn(String recordisIn) {
this.recordisIn = recordisIn;
}
public String getEquipmentDaoType() {
return equipmentDaoType;
}
public void setEquipmentDaoType(String equipmentDaoType) {
this.equipmentDaoType = equipmentDaoType;
}
public String getRecordPass() {
return recordPass;
}
public void setRecordPass(String recordPass) {
this.recordPass = recordPass;
}
public String getInCode() {
return inCode;
}
public void setInCode(String inCode) {
this.inCode = inCode;
}
public String getInDept() {
return inDept;
}
public void setInDept(String inDept) {
this.inDept = inDept;
}
public Integer getInId() {
return inId;
}
public void setInId(Integer inId) {
this.inId = inId;
}
public String getInName() {
return inName;
}
public void setInName(String inName) {
this.inName = inName;
}
public String getWaitCheck() {
return waitCheck;
}
public void setWaitCheck(String waitCheck) {
this.waitCheck = waitCheck;
}
public String getUrgentCar() {
return urgentCar;
}
public void setUrgentCar(String urgentCar) {
this.urgentCar = urgentCar;
}
public String getInmarkId() {
return inmarkId;
}
public void setInmarkId(String inmarkId) {
this.inmarkId = inmarkId;
}
public Integer getBanciId() {
return banciId;
}
public void setBanciId(Integer banciId) {
this.banciId = banciId;
}
public String getCheckName() {
return checkName;
}
public void setCheckName(String checkName) {
this.checkName = checkName;
}
public String getEntityName() {
return entityName;
}
public void setEntityName(String entityName) {
this.entityName = entityName;
}
public Integer getEntityId() {
return entityId;
}
public void setEntityId(Integer entityId) {
this.entityId = entityId;
}
}
|
[
"horsexming.sina.com"
] |
horsexming.sina.com
|
|
b4c4cd8111fafe1381eaa339e1fee90bf5845dec
|
cceb4e618ce4ccf7a20ae1e6a2a0b53cf5924a19
|
/src/main/java/cn/bestsec/dcms/platform/api/model/Statistics_QueryFileListRequest.java
|
b20964748efcfbe2e694afab595cf54166fd5e89
|
[] |
no_license
|
zhanght86/dcms
|
9843663cb278ebafb6f26bc662b385b713f2058d
|
8e51ec3434ffb1784d9ea5d748e8972dc8fc629b
|
refs/heads/master
| 2021-06-24T16:14:09.891624
| 2017-09-08T08:18:39
| 2017-09-08T08:18:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 612
|
java
|
package cn.bestsec.dcms.platform.api.model;
import cn.bestsec.dcms.platform.api.support.CommonRequestFieldsSupport;
/**
* 自动生成的API请求/响应Model类,不要手动修改
*/
public class Statistics_QueryFileListRequest extends CommonRequestFieldsSupport {
private String token;
public Statistics_QueryFileListRequest() {
}
public Statistics_QueryFileListRequest(String token) {
this.token = token;
}
/**
*
*/
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
}
|
[
"liu@gmail.com"
] |
liu@gmail.com
|
3e0654e4b18bc7c0a211b1b772580aa97702ed50
|
a60b6afcc5afa48babfa1574255dd90861791047
|
/microservice-bibliotheque/src/main/java/fr/oc/bibliotheque/microservicebibliotheque/MicroserviceBibliothequeApplication.java
|
d568180fe52fc13e8e6bcf5393ccf7ab12da4416
|
[] |
no_license
|
YoannR09/microservice_bibliotheque
|
346a28b00281a9a1a9ae2c1ca7022dd72e2169d8
|
0550e097f3c1319451df36ad72a3c614e85b3221
|
refs/heads/master
| 2020-06-08T18:11:52.985312
| 2019-06-24T09:29:33
| 2019-06-24T09:29:33
| 193,279,912
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 372
|
java
|
package fr.oc.bibliotheque.microservicebibliotheque;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class MicroserviceBibliothequeApplication {
public static void main(String[] args) {
SpringApplication.run(MicroserviceBibliothequeApplication.class, args);
}
}
|
[
"el-rambo-poto@hotmail.fr"
] |
el-rambo-poto@hotmail.fr
|
788e41cb11e0fd2dd55eab56209c1064461d91d8
|
ca030864a3a1c24be6b9d1802c2353da4ca0d441
|
/classes5.dex_source_from_JADX/com/facebook/graphql/model/GraphQLEventTicketActionLink__JsonHelper.java
|
d3121efa1814a7ff1ce5f4829029b07345c084d6
|
[] |
no_license
|
pxson001/facebook-app
|
87aa51e29195eeaae69adeb30219547f83a5b7b1
|
640630f078980f9818049625ebc42569c67c69f7
|
refs/heads/master
| 2020-04-07T20:36:45.758523
| 2018-03-07T09:04:57
| 2018-03-07T09:04:57
| 124,208,458
| 4
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,773
|
java
|
package com.facebook.graphql.model;
import com.facebook.debug.fieldusage.FieldAccessQueryTracker;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
/* compiled from: image_uri */
public final class GraphQLEventTicketActionLink__JsonHelper {
public static boolean m7292a(GraphQLEventTicketActionLink graphQLEventTicketActionLink, String str, JsonParser jsonParser) {
String str2 = null;
if ("event".equals(str)) {
GraphQLEvent a;
if (jsonParser.g() != JsonToken.VALUE_NULL) {
a = GraphQLEvent__JsonHelper.m7344a(FieldAccessQueryTracker.a(jsonParser, "event"));
}
graphQLEventTicketActionLink.f3670d = a;
FieldAccessQueryTracker.a(jsonParser, graphQLEventTicketActionLink, "event", graphQLEventTicketActionLink.a_, 0, true);
return true;
} else if ("title".equals(str)) {
if (!(jsonParser.g() == JsonToken.VALUE_NULL || jsonParser.g() == JsonToken.VALUE_NULL)) {
str2 = jsonParser.o();
}
graphQLEventTicketActionLink.f3671e = str2;
FieldAccessQueryTracker.a(jsonParser, graphQLEventTicketActionLink, "title", graphQLEventTicketActionLink.B_(), 1, false);
return true;
} else if (!"url".equals(str)) {
return false;
} else {
if (!(jsonParser.g() == JsonToken.VALUE_NULL || jsonParser.g() == JsonToken.VALUE_NULL)) {
str2 = jsonParser.o();
}
graphQLEventTicketActionLink.f3672f = str2;
FieldAccessQueryTracker.a(jsonParser, graphQLEventTicketActionLink, "url", graphQLEventTicketActionLink.B_(), 2, false);
return true;
}
}
}
|
[
"son.pham@jmango360.com"
] |
son.pham@jmango360.com
|
421b1ce0456e84b8e166591f3a54e457c156df88
|
1a83f3f213dca04890764ac096ba3613f50e5665
|
/src/main/java/io/server/game/event/impl/NpcClickEvent.java
|
c8ba020c25e6604dfcb112de9afb3372638ee3dc
|
[] |
no_license
|
noveltyps/NewRunityRebelion
|
52dfc757d6f784cce4d536c509bcdd6247ae57ef
|
6b0e5c0e7330a8a9ee91c691fb150cb1db567457
|
refs/heads/master
| 2020-05-20T08:44:36.648909
| 2019-05-09T17:23:50
| 2019-05-09T17:23:50
| 185,468,893
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 389
|
java
|
package io.server.game.event.impl;
import io.server.game.event.Event;
import io.server.game.world.entity.mob.npc.Npc;
public class NpcClickEvent implements Event {
private final int type;
private final Npc npc;
public NpcClickEvent(int type, Npc npc) {
this.type = type;
this.npc = npc;
}
public int getType() {
return type;
}
public Npc getNpc() {
return npc;
}
}
|
[
"43006455+donvlee97@users.noreply.github.com"
] |
43006455+donvlee97@users.noreply.github.com
|
1a36c8581b043c6410581e31f380fba23bf223c1
|
220f30c1619d3c0eae10ecb6b721dfb13b18bc23
|
/app/src/main/java/com/cuileikun/androidbase/javaactivity/twenty/day20_DiGui/DiGuiDemo.java
|
1e91bc33dbf692a2b7b09263e5e118af212a5347
|
[] |
no_license
|
cuileikun/AndroidBase
|
d07d484b7c84e3538baeb9bf9a58c063788fb7ea
|
376e8f6f6d2b34c70167ea788dd67013db2cb306
|
refs/heads/master
| 2021-01-20T00:56:20.937349
| 2017-07-03T13:48:05
| 2017-07-03T13:48:05
| 89,213,523
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,603
|
java
|
package com.cuileikun.androidbase.javaactivity.twenty.day20_DiGui;
/*
* 递归:方法定义中调用方法本身的现象
*
* 方法的嵌套调用,这不是递归。
* Math.max(Math.max(a,b),c);
*
* public void show(int n) {
* if(n <= 0) {
* System.exit(0);
* }
* System.out.println(n);
* show(--n);
* }
*
* 注意事项:
* A:递归一定要有出口,否则就是死递归
* B:递归的次数不能太多,否则就内存溢出
* C:构造方法不能递归使用
*
* 举例:
* A:从前有座山,山里有座庙,庙里有个老和尚和小和尚,老和尚在给小和尚讲故事,故事是:
* 从前有座山,山里有座庙,庙里有个老和尚和小和尚,老和尚在给小和尚讲故事,故事是:
* 从前有座山,山里有座庙,庙里有个老和尚和小和尚,老和尚在给小和尚讲故事,故事是:
* 从前有座山,山里有座庙,庙里有个老和尚和小和尚,老和尚在给小和尚讲故事,故事是:
* ...
* 庙挂了,或者山崩了
* B:学编程 -- 高薪就业 -- 挣钱 -- 娶媳妇 -- 生娃娃 -- 放羊 -- 挣学费
* 学编程 -- 高薪就业 -- 挣钱 -- 娶媳妇 -- 生娃娃 -- 放羊 -- 挣学费
* 学编程 -- 高薪就业 -- 挣钱 -- 娶媳妇 -- 生娃娃 -- 放羊 -- 挣学费
* 学编程 -- 高薪就业 -- 挣钱 -- 娶媳妇 -- 生娃娃 -- 放羊 -- 挣学费
* ...
* 娶不到媳妇或者生不了娃娃
*/
public class DiGuiDemo {
// public DiGuiDemo() {
// DiGuiDemo();
// }
}
|
[
"583271702@qq.com"
] |
583271702@qq.com
|
e6195c4887b95bdc7ccbd7974d0560bf4cdfcb30
|
6fbcc1482880f94fd9cffaf680d963910290a1ec
|
/uitest/src/com/vaadin/tests/components/combobox/ComboBoxLargeIconsTest.java
|
407ab7aa048ab38ab10a97a8d82841beba6251c6
|
[
"Apache-2.0"
] |
permissive
|
allanim/vaadin
|
4cf4c6b51cd81cbcb265cdb0897aad92689aec04
|
b7f9b2316bff98bc7d37c959fa6913294d9608e4
|
refs/heads/master
| 2021-01-17T10:17:00.920299
| 2015-09-04T02:40:29
| 2015-09-04T02:40:29
| 28,844,118
| 2
| 0
|
Apache-2.0
| 2020-01-26T02:24:48
| 2015-01-06T03:04:44
|
Java
|
UTF-8
|
Java
| false
| false
| 2,044
|
java
|
package com.vaadin.tests.components.combobox;
import org.junit.Test;
import org.openqa.selenium.Keys;
import org.openqa.selenium.interactions.Actions;
import com.vaadin.testbench.By;
import com.vaadin.testbench.elements.NativeSelectElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
import com.vaadin.tests.tb3.newelements.ComboBoxElement;
public class ComboBoxLargeIconsTest extends MultiBrowserTest {
@Override
protected Class<?> getUIClass() {
return com.vaadin.tests.components.combobox.Comboboxes.class;
}
@Test
public void testComboBoxIcons() throws Exception {
openTestURL();
NativeSelectElement iconSelect = $(NativeSelectElement.class).first();
iconSelect.selectByText("16x16");
ComboBoxElement cb = $(ComboBoxElement.class).caption(
"Undefined wide select with 50 items").first();
cb.openPopup();
compareScreen("icons-16x16-page1");
cb.openNextPage();
compareScreen("icons-16x16-page2");
cb.findElement(By.vaadin("#popup/item0")).click();
compareScreen("icons-16x16-selected-1-3-5-9");
iconSelect.selectByText("32x32");
cb.openPopup();
compareScreen("icons-32x32-page2");
// Closes the popup
cb.openPopup();
iconSelect.selectByText("64x64");
ComboBoxElement pageLength0cb = $(ComboBoxElement.class).caption(
"Pagelength 0").first();
pageLength0cb.openPopup();
pageLength0cb.findElement(By.vaadin("#popup/item1")).click();
ComboBoxElement cb200px = $(ComboBoxElement.class).caption(
"200px wide select with 50 items").first();
cb200px.openPopup();
cb200px.findElement(By.vaadin("#popup/item1")).click();
ComboBoxElement cb150px = $(ComboBoxElement.class).caption(
"150px wide select with 5 items").first();
new Actions(driver).sendKeys(cb150px, Keys.DOWN).perform();
compareScreen("icons-64x64-page1-highlight-first");
}
}
|
[
"review@vaadin.com"
] |
review@vaadin.com
|
b9d542d55160379c30ef2f7f9e701e91b91bb648
|
d16f17f3b9d0aa12c240d01902a41adba20fad12
|
/src/leetcode/leetcode13xx/leetcode1310/Solution.java
|
319747df2cb5c50a52fa1afbb4c5c6f36fa44abd
|
[] |
no_license
|
redsun9/leetcode
|
79f9293b88723d2fd123d9e10977b685d19b2505
|
67d6c16a1b4098277af458849d352b47410518ee
|
refs/heads/master
| 2023-06-23T19:37:42.719681
| 2023-06-09T21:11:39
| 2023-06-09T21:11:39
| 242,967,296
| 38
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 488
|
java
|
package leetcode.leetcode13xx.leetcode1310;
public class Solution {
public int[] xorQueries(int[] arr, int[][] queries) {
for (int i = 1; i < arr.length; i++) {
arr[i] ^= arr[i - 1];
}
int[] ans = new int[queries.length];
for (int i = 0; i < queries.length; i++) {
if (queries[i][0] != 0) ans[i] = arr[queries[i][0] - 1] ^ arr[queries[i][1]];
else ans[i] = arr[queries[i][1]];
}
return ans;
}
}
|
[
"mokeev.vladimir@gmail.com"
] |
mokeev.vladimir@gmail.com
|
2bef6ecc635468f7b7af6a3352289baaf54f818d
|
ef2aaf0c359a9487f269d792c53472e4b41689a6
|
/documentation/design/essn/SubjectRegistry/edu/duke/cabig/c3pr/webservice/iso21090/TELEmail.java
|
4db9843cf8d79b61f74bba650e221172bc1d8e50
|
[] |
no_license
|
NCIP/c3pr-docs
|
eec40451ac30fb5fee55bb2d22c10c6ae400845e
|
5adca8c04fcb47adecbb4c045be98fcced6ceaee
|
refs/heads/master
| 2016-09-05T22:56:44.805679
| 2013-03-08T19:59:03
| 2013-03-08T19:59:03
| 7,276,330
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 830
|
java
|
package edu.duke.cabig.c3pr.webservice.iso21090;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TEL.Email complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="TEL.Email">
* <complexContent>
* <restriction base="{uri:iso.org:21090}TEL.Person">
* <sequence>
* <element name="useablePeriod" type="{uri:iso.org:21090}QSET_TS" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TEL.Email")
public class TELEmail
extends TELPerson
{
}
|
[
"kruttikagarwal@gmail.com"
] |
kruttikagarwal@gmail.com
|
26948984df709e87e850e0c1ee31fe6206286a1a
|
333ade37fa73f481dbabde1bbc6e84db2909aa75
|
/nqs-common/src/main/java/com/acsno/common/service/impl/ProbeUpgradePackageServiceImpl.java
|
1df947604190f63a67a90254e7e6767dc619fcb7
|
[] |
no_license
|
sunjiyongtc0/cloud-nqs-web
|
3eeba476c615a2513833396d30d37f908546fa47
|
1fd93ea34089114b9a160224e38bc71782c45150
|
refs/heads/master
| 2023-01-31T14:12:25.374502
| 2020-12-04T06:34:39
| 2020-12-04T06:34:39
| 304,198,315
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 952
|
java
|
package com.acsno.common.service.impl;
import com.acsno.common.dao.ProbeUpgradePackageDao;
import com.acsno.common.entity.ProbeUpgradePackageEntity;
import com.acsno.common.service.ProbeUpgradePackageService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* 探针升级包
*
*/
@Service("ProbeUpgradePackageService")
public class ProbeUpgradePackageServiceImpl extends ServiceImpl<ProbeUpgradePackageDao, ProbeUpgradePackageEntity> implements ProbeUpgradePackageService {
public IPage<ProbeUpgradePackageEntity> findByPageService(Page<ProbeUpgradePackageEntity> page, QueryWrapper<ProbeUpgradePackageEntity> wrapper){
return baseMapper.findPage(page,wrapper);
}
}
|
[
"315541219@qq.com"
] |
315541219@qq.com
|
84a2a77ddea91afa52eb39edfd68a5b661e0ec52
|
c474b03758be154e43758220e47b3403eb7fc1fc
|
/apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/facebook/ads/internal/view/C3377i.java
|
13151e96bfc1ffa166c31a5fea26efc5c1b4aba7
|
[] |
no_license
|
EstebanDalelR/tinderAnalysis
|
f80fe1f43b3b9dba283b5db1781189a0dd592c24
|
941e2c634c40e5dbf5585c6876ef33f2a578b65c
|
refs/heads/master
| 2020-04-04T09:03:32.659099
| 2018-11-23T20:41:28
| 2018-11-23T20:41:28
| 155,805,042
| 0
| 0
| null | 2018-11-18T16:02:45
| 2018-11-02T02:44:34
| null |
UTF-8
|
Java
| false
| false
| 6,564
|
java
|
package com.facebook.ads.internal.view;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.widget.RelativeLayout.LayoutParams;
import com.facebook.ads.AudienceNetworkActivity;
import com.facebook.ads.internal.adapters.C1352b;
import com.facebook.ads.internal.adapters.C3272q;
import com.facebook.ads.internal.adapters.C3273r;
import com.facebook.ads.internal.p034a.C1348a;
import com.facebook.ads.internal.p034a.C1349b;
import com.facebook.ads.internal.p041h.C1425f;
import com.facebook.ads.internal.p041h.C3288g;
import com.facebook.ads.internal.p047k.C1481b;
import com.facebook.ads.internal.p047k.C1481b.C1479a;
import com.facebook.ads.internal.p047k.C1482c;
import com.facebook.ads.internal.p047k.C1490h;
import com.facebook.ads.internal.p047k.C1491i;
import com.facebook.ads.internal.view.C1604d.C1603a;
import com.facebook.ads.internal.view.C3365c.C1560b;
import java.util.HashMap;
import java.util.Map;
/* renamed from: com.facebook.ads.internal.view.i */
public class C3377i implements C1604d {
/* renamed from: a */
private static final String f10265a = "i";
/* renamed from: b */
private final C1603a f10266b;
/* renamed from: c */
private final C3365c f10267c;
/* renamed from: d */
private final C3273r f10268d;
/* renamed from: e */
private C3272q f10269e;
/* renamed from: f */
private long f10270f = System.currentTimeMillis();
/* renamed from: g */
private long f10271g;
/* renamed from: h */
private C1479a f10272h;
/* renamed from: com.facebook.ads.internal.view.i$2 */
class C33762 extends C1352b {
/* renamed from: a */
final /* synthetic */ C3377i f10264a;
C33762(C3377i c3377i) {
this.f10264a = c3377i;
}
/* renamed from: d */
public void mo1683d() {
this.f10264a.f10266b.mo1646a("com.facebook.ads.interstitial.impression.logged");
}
}
public C3377i(final AudienceNetworkActivity audienceNetworkActivity, final C1425f c1425f, C1603a c1603a) {
this.f10266b = c1603a;
this.f10267c = new C3365c(audienceNetworkActivity, new C1560b(this) {
/* renamed from: c */
final /* synthetic */ C3377i f10262c;
/* renamed from: d */
private long f10263d = 0;
/* renamed from: a */
public void mo1651a() {
this.f10262c.f10268d.m12585b();
}
/* renamed from: a */
public void mo1652a(int i) {
}
/* renamed from: a */
public void mo1653a(String str, Map<String, String> map) {
Uri parse = Uri.parse(str);
if ("fbad".equals(parse.getScheme()) && "close".equals(parse.getAuthority())) {
audienceNetworkActivity.finish();
return;
}
long j = this.f10263d;
this.f10263d = System.currentTimeMillis();
if (this.f10263d - j >= 1000) {
if ("fbad".equals(parse.getScheme()) && C1349b.m4702a(parse.getAuthority())) {
this.f10262c.f10266b.mo1646a("com.facebook.ads.interstitial.clicked");
}
C1348a a = C1349b.m4701a(audienceNetworkActivity, c1425f, this.f10262c.f10269e.mo1728D(), parse, map);
if (a != null) {
try {
this.f10262c.f10272h = a.mo1717a();
this.f10262c.f10271g = System.currentTimeMillis();
a.mo1718b();
} catch (Throwable e) {
Log.e(C3377i.f10265a, "Error executing action", e);
}
}
}
}
/* renamed from: b */
public void mo1654b() {
this.f10262c.f10268d.m4716a();
}
}, 1);
this.f10267c.setLayoutParams(new LayoutParams(-1, -1));
this.f10268d = new C3273r(audienceNetworkActivity, this.f10267c, this.f10267c.getViewabilityChecker(), new C33762(this));
c1603a.mo1645a(this.f10267c);
}
/* renamed from: a */
public void mo1823a(Intent intent, Bundle bundle, AudienceNetworkActivity audienceNetworkActivity) {
if (bundle == null || !bundle.containsKey("dataModel")) {
this.f10269e = C3272q.m12568b(intent);
if (this.f10269e != null) {
this.f10268d.m12583a(this.f10269e);
this.f10267c.loadDataWithBaseURL(C1491i.m5258a(), this.f10269e.m12572a(), AudienceNetworkActivity.WEBVIEW_MIME_TYPE, AudienceNetworkActivity.WEBVIEW_ENCODING, null);
this.f10267c.m12960a(this.f10269e.m12577e(), this.f10269e.m12578f());
}
return;
}
this.f10269e = C3272q.m12566a(bundle.getBundle("dataModel"));
if (this.f10269e != null) {
this.f10267c.loadDataWithBaseURL(C1491i.m5258a(), this.f10269e.m12572a(), AudienceNetworkActivity.WEBVIEW_MIME_TYPE, AudienceNetworkActivity.WEBVIEW_ENCODING, null);
this.f10267c.m12960a(this.f10269e.m12577e(), this.f10269e.m12578f());
}
}
/* renamed from: a */
public void mo1824a(Bundle bundle) {
if (this.f10269e != null) {
bundle.putBundle("dataModel", this.f10269e.m12579g());
}
}
/* renamed from: h */
public void mo1825h() {
this.f10267c.onPause();
}
/* renamed from: i */
public void mo1826i() {
if (!(this.f10271g <= 0 || this.f10272h == null || this.f10269e == null)) {
C1482c.m5218a(C1481b.m5213a(this.f10271g, this.f10272h, this.f10269e.m12576d()));
}
this.f10267c.onResume();
}
public void onDestroy() {
if (this.f10269e != null) {
C1482c.m5218a(C1481b.m5213a(this.f10270f, C1479a.XOUT, this.f10269e.m12576d()));
if (!TextUtils.isEmpty(this.f10269e.mo1728D())) {
Map hashMap = new HashMap();
this.f10267c.getViewabilityChecker().m5350a(hashMap);
hashMap.put("touch", C1490h.m5244a(this.f10267c.getTouchData()));
C3288g.m12671a(this.f10267c.getContext()).mo1753g(this.f10269e.mo1728D(), hashMap);
}
}
C1491i.m5259a(this.f10267c);
this.f10267c.destroy();
}
public void setListener(C1603a c1603a) {
}
}
|
[
"jdguzmans@hotmail.com"
] |
jdguzmans@hotmail.com
|
d8abbe3171da0cce4dc77d8faccb6b281c08b2cd
|
5ce71c5202e7c77c53d3fbc447912fe30ad3ccdc
|
/src/main/java/net/ymate/platform/module/wechat/message/MusicOutMessage.java
|
0d5d26d435403a526610b1939430a579e41e1ace
|
[
"Apache-2.0"
] |
permissive
|
suninformation/ymate-module-wechat
|
4cb526214198f611cb28579f2d8690788782ea6d
|
42e31e770d857f7f3cf3af3c7adfd5fe33c7cabf
|
refs/heads/master
| 2021-01-18T22:09:25.664111
| 2017-07-27T03:18:42
| 2017-07-27T03:18:42
| 17,754,253
| 3
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,405
|
java
|
/*
* Copyright 2007-2107 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 net.ymate.platform.module.wechat.message;
import net.ymate.platform.module.wechat.WeChat;
import com.alibaba.fastjson.JSONObject;
import com.thoughtworks.xstream.annotations.XStreamAlias;
/**
* <p>
* MusicOutMessage
* </p>
* <p>
*
* </p>
*
* @author 刘镇(suninformation@163.com)
* @version 0.0.0
* <table style="border:1px solid gray;">
* <tr>
* <th width="100px">版本号</th><th width="100px">动作</th><th
* width="100px">修改人</th><th width="100px">修改时间</th>
* </tr>
* <!-- 以 Table 方式书写修改历史 -->
* <tr>
* <td>0.0.0</td>
* <td>创建类</td>
* <td>刘镇</td>
* <td>2014年3月15日下午1:05:13</td>
* </tr>
* </table>
*/
@XStreamAlias("xml")
public class MusicOutMessage extends OutMessage {
/**
*
*/
private static final long serialVersionUID = 7875350513434771269L;
@XStreamAlias("Music")
private MediaId music;
/**
* 构造器
*
* @param toUserName
*/
public MusicOutMessage(String toUserName) {
super(toUserName, WeChat.WX_MESSAGE.TYPE_MUSIC);
}
public MediaId getMusic() {
return music;
}
public void setMusic(MediaId music) {
this.music = music;
}
@Override
protected void __doSetJsonContent(JSONObject parent) throws Exception {
JSONObject _music = new JSONObject();
if (this.getMusic() != null) {
_music.put("title", this.getMusic().getTitle());
_music.put("description", this.getMusic().getDescription());
_music.put("musicurl", this.getMusic().getMusicUrl());
_music.put("hqmusicurl", this.getMusic().getHqMusicUrl());
_music.put("thumb_media_id", this.getMusic().getThumbMediaId());
}
parent.put("music", _music);
}
}
|
[
"suninformation@163.com"
] |
suninformation@163.com
|
4362ddc3024c8a2da2542462c02ef68bd022545a
|
377e5e05fb9c6c8ed90ad9980565c00605f2542b
|
/bin/platform/ext/platformservices/src/de/hybris/platform/order/daos/impl/DefaultZoneDeliveryModeDao.java
|
e06a9bac876b8abb9a59616fc0f5811fca82f079
|
[] |
no_license
|
automaticinfotech/HybrisProject
|
c22b13db7863e1e80ccc29774f43e5c32e41e519
|
fc12e2890c569e45b97974d2f20a8cbe92b6d97f
|
refs/heads/master
| 2021-07-20T18:41:04.727081
| 2017-10-30T13:24:11
| 2017-10-30T13:24:11
| 108,957,448
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,924
|
java
|
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 SAP SE
* All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* Hybris ("Confidential Information"). You shall not disclose such
* Confidential Information and shall use it only in accordance with the
* terms of the license agreement you entered into with SAP Hybris.
*/
package de.hybris.platform.order.daos.impl;
import de.hybris.platform.core.model.ItemModel;
import de.hybris.platform.core.model.c2l.CountryModel;
import de.hybris.platform.core.model.c2l.CurrencyModel;
import de.hybris.platform.core.model.link.LinkModel;
import de.hybris.platform.deliveryzone.model.ZoneDeliveryModeModel;
import de.hybris.platform.deliveryzone.model.ZoneDeliveryModeValueModel;
import de.hybris.platform.deliveryzone.model.ZoneModel;
import de.hybris.platform.order.daos.ZoneDeliveryModeDao;
import de.hybris.platform.servicelayer.internal.dao.AbstractItemDao;
import de.hybris.platform.servicelayer.search.FlexibleSearchQuery;
import de.hybris.platform.servicelayer.search.SearchResult;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Default implementation of the {@link ZoneDeliveryModeDao}.
*/
public class DefaultZoneDeliveryModeDao extends AbstractItemDao implements ZoneDeliveryModeDao
{
@Override
public List<ZoneModel> findZonesByCode(final String code)
{
final StringBuilder query = new StringBuilder("SELECT {").append(ZoneModel.PK);
query.append("} FROM {").append(ZoneModel._TYPECODE);
query.append("} WHERE {").append(ZoneModel.CODE).append("}=?").append(ZoneModel.CODE);
query.append(" ORDER BY {").append(ZoneModel.CREATIONTIME).append("} ASC , {").append(ZoneModel.PK).append("} ASC");
final Map<String, Object> params = new HashMap<String, Object>();
params.put(ZoneModel.CODE, code);
final List<ZoneModel> zones = doSearch(query.toString(), params, null);
return zones;
}
@Override
public Collection<ZoneModel> findAllZones()
{
final StringBuilder query = new StringBuilder("SELECT {").append(ZoneModel.PK);
query.append("} FROM {").append(ZoneModel._TYPECODE);
query.append("} ORDER BY {").append(ZoneModel.CREATIONTIME).append("} DESC , {").append(ZoneModel.PK).append("} ASC");
final List<ZoneModel> zones = doSearch(query.toString(), null, null);
return zones;
}
@Override
public Collection<ZoneModel> findZonesByZoneDeliveryMode(final ZoneDeliveryModeModel zoneDeliveryMode)
{
final StringBuilder query = new StringBuilder("SELECT DISTINCT {").append(ZoneDeliveryModeValueModel.ZONE);
query.append("} FROM {").append(ZoneDeliveryModeValueModel._TYPECODE).append("} WHERE {");
query.append(ZoneDeliveryModeValueModel.DELIVERYMODE).append("}=?").append(ZoneDeliveryModeValueModel.DELIVERYMODE);
final Map<String, Object> params = new HashMap<String, Object>();
params.put(ZoneDeliveryModeValueModel.DELIVERYMODE, zoneDeliveryMode);
final List<ZoneModel> zones = doSearch(query.toString(), params, null);
return zones;
}
@Override
public List<List<ItemModel>> findZonesAndCountriesByZones(final Set<ZoneModel> zones)
{
final StringBuilder query = new StringBuilder("SELECT {").append(LinkModel.SOURCE).append("}, {");
query.append(LinkModel.TARGET).append("} FROM {").append(CountryModel._ZONECOUNTRYRELATION);
query.append("} WHERE {").append(LinkModel.SOURCE).append("} IN (?").append(CountryModel.ZONES).append(")");
final Map<String, Object> params = new HashMap<String, Object>();
params.put(CountryModel.ZONES, zones);
final List<Class> resultClasses = new ArrayList<Class>();
resultClasses.add(ZoneModel.class);
resultClasses.add(CountryModel.class);
final List<List<ItemModel>> zonesAndCountries = doSearch(query.toString(), params, resultClasses);
return zonesAndCountries;
}
@Override
public Collection<CurrencyModel> findCurrencies(final ZoneModel zone, final ZoneDeliveryModeModel zoneDeliveryMode)
{
final StringBuilder query = new StringBuilder("SELECT DISTINCT {").append(ZoneDeliveryModeValueModel.CURRENCY);
query.append("} FROM {").append(ZoneDeliveryModeValueModel._TYPECODE);
query.append("} WHERE {").append(ZoneDeliveryModeValueModel.DELIVERYMODE);
query.append("}=?").append(ZoneDeliveryModeValueModel.DELIVERYMODE).append(" AND {");
query.append(ZoneDeliveryModeValueModel.ZONE).append("}=?").append(ZoneDeliveryModeValueModel.ZONE);
final Map<String, Object> params = new HashMap<String, Object>();
params.put(ZoneDeliveryModeValueModel.ZONE, zone);
params.put(ZoneDeliveryModeValueModel.DELIVERYMODE, zoneDeliveryMode);
final List<CurrencyModel> currencies = doSearch(query.toString(), params, null);
return currencies;
}
@Override
public Map<Double, Double> findDeliveryValues(final CurrencyModel currency, final ZoneModel zone,
final ZoneDeliveryModeModel zoneDeliveryMode)
{
final StringBuilder query = new StringBuilder("SELECT {").append(ZoneDeliveryModeValueModel.MINIMUM);
query.append("}, {").append(ZoneDeliveryModeValueModel.VALUE).append("} FROM {");
query.append(ZoneDeliveryModeValueModel._TYPECODE).append("} WHERE {");
query.append(ZoneDeliveryModeValueModel.DELIVERYMODE).append("}=?").append(ZoneDeliveryModeValueModel.DELIVERYMODE);
query.append(" AND {").append(ZoneDeliveryModeValueModel.CURRENCY).append("}=?");
query.append(ZoneDeliveryModeValueModel.CURRENCY).append(" AND {").append(ZoneDeliveryModeValueModel.ZONE).append("}=?");
query.append(ZoneDeliveryModeValueModel.ZONE);
final Map<String, Object> params = new HashMap<String, Object>();
params.put(ZoneDeliveryModeValueModel.CURRENCY, currency);
params.put(ZoneDeliveryModeValueModel.ZONE, zone);
params.put(ZoneDeliveryModeValueModel.DELIVERYMODE, zoneDeliveryMode);
final List<Class> resultClasses = new ArrayList<Class>();
resultClasses.add(Double.class);
resultClasses.add(Double.class);
//rows consists of threshold value and delivery cost
final List<List<Double>> rows = doSearch(query.toString(), params, resultClasses);
if (rows.isEmpty())
{
return Collections.EMPTY_MAP;
}
else
{
final Map<Double, Double> deliveryValues = new HashMap<Double, Double>(rows.size());
for (final List<Double> row : rows)
{
deliveryValues.put(row.get(0), row.get(1));
}
return deliveryValues;
}
}
private <T> List<T> doSearch(final String query, final Map<String, Object> params, final List<Class> resultClasses)
{
final FlexibleSearchQuery fQuery = new FlexibleSearchQuery(query);
if (params != null)
{
fQuery.addQueryParameters(params);
}
if (resultClasses != null)
{
fQuery.setResultClassList(resultClasses);
}
final SearchResult<T> result = getFlexibleSearchService().search(fQuery);
final List<T> elements = result.getResult();
return elements;
}
}
|
[
"santosh.kshirsagar@automaticinfotech.com"
] |
santosh.kshirsagar@automaticinfotech.com
|
8448030cfa6cb6e5e0efcbda37424f2b5eb818e0
|
3c73a700a7d89b1028f6b5f907d4d0bbe640bf9a
|
/android/src/main/kotlin/lib/org/bouncycastle/crypto/params/RSAKeyParameters.java
|
eaf48750637cc689477ac43f6345863bf82f6e28
|
[] |
no_license
|
afterlogic/flutter_crypto_stream
|
45efd60802261faa28ab6d10c2390a84231cf941
|
9d5684d5a7e63d3a4b2168395d454474b3ca4683
|
refs/heads/master
| 2022-11-02T02:56:45.066787
| 2021-03-25T17:45:58
| 2021-03-25T17:45:58
| 252,140,910
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,791
|
java
|
package lib.org.bouncycastle.crypto.params;
import java.math.BigInteger;
public class RSAKeyParameters
extends AsymmetricKeyParameter
{
private static final BigInteger ONE = BigInteger.valueOf(1);
private BigInteger modulus;
private BigInteger exponent;
public RSAKeyParameters(
boolean isPrivate,
BigInteger modulus,
BigInteger exponent)
{
super(isPrivate);
if (!isPrivate)
{
if ((exponent.intValue() & 1) == 0)
{
throw new IllegalArgumentException("RSA publicExponent is even");
}
}
this.modulus = validate(modulus);
this.exponent = exponent;
}
private BigInteger validate(BigInteger modulus)
{
if ((modulus.intValue() & 1) == 0)
{
throw new IllegalArgumentException("RSA modulus is even");
}
// the value is the product of the 132 smallest primes from 3 to 751
if (!modulus.gcd(new BigInteger("145188775577763990151158743208307020242261438098488931355057091965" +
"931517706595657435907891265414916764399268423699130577757433083166" +
"651158914570105971074227669275788291575622090199821297575654322355" +
"049043101306108213104080801056529374892690144291505781966373045481" +
"8359472391642885328171302299245556663073719855")).equals(ONE))
{
throw new IllegalArgumentException("RSA modulus has a small prime factor");
}
// TODO: add additional primePower/Composite test - expensive!!
return modulus;
}
public BigInteger getModulus()
{
return modulus;
}
public BigInteger getExponent()
{
return exponent;
}
}
|
[
"princesakenny98@gmail.com"
] |
princesakenny98@gmail.com
|
6a4e73a1c774e745c7345f3cb1239e7c6018f110
|
11e6f9b6f6daf350e64ff45614602ed59879fe14
|
/SpringDemo2/src/main/java/com/example/Student.java
|
40c7d10137ee6e1801f968bf14d6c3d804fe6428
|
[] |
no_license
|
alrha486/SIST-Spring
|
cbecd05404a3a5991b67dfe7737a255d8b49a036
|
7e77f968ccf13c89bffee01d5c12a2c4dcf49bd9
|
refs/heads/master
| 2020-04-08T19:03:12.801882
| 2018-12-28T09:01:39
| 2018-12-28T09:01:39
| 159,637,181
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 655
|
java
|
package com.example;
import java.util.ArrayList;
public class Student {
private String name;
private int age;
private ArrayList<String> hobbies;
private double height;
private double weight;
public Student(String name, int age, ArrayList<String> hobbies) {
this.name = name;
this.age = age;
this.hobbies = hobbies;
}
public void setHeight(double height) {
this.height = height;
}
public void setWeight(double weight) {
this.weight = weight;
}
@Override
public String toString() {
return "Student [name=" + name + ", age=" + age + ", hobbies=" + hobbies + ", height=" + height + ", weight="
+ weight + "]";
}
}
|
[
"alrha486@naver.com"
] |
alrha486@naver.com
|
6ed847f68526e965c103af83a3ad844a88626d87
|
e135c80892fe5cf75e31ba70a9cb869fd2c20c07
|
/02.Databases_Fundamentals_2016/02.Databases_Advanced_Hibernate/06.Hibernate_Midterm_Exam/mass-defect-exam/src/main/java/massdefect/app/repositories/PlanetRepository.java
|
0dec10bde11da393e70052104c73ab3532f20208
|
[] |
no_license
|
NikolayShaliavski/SoftUni
|
444f3ec76886af21e84d472631ca56c958453570
|
08b8b345ebbef8de87db777ad59fb7c5044f1003
|
refs/heads/master
| 2021-06-22T00:30:49.970663
| 2021-01-08T15:20:44
| 2021-01-08T15:20:44
| 63,480,683
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 604
|
java
|
package massdefect.app.repositories;
import massdefect.app.domain.entities.planets.Planet;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface PlanetRepository extends JpaRepository<Planet,Long> {
Planet findByName(String name);
@Query(value = "SELECT pl FROM Anomaly AS a " +
"RIGHT OUTER JOIN a.originPlanet AS pl " +
"WHERE a.originPlanet IS NULL")
List<Planet> findPlanetsWithoutTeleports();
}
|
[
"nshaliavski@gmail.com"
] |
nshaliavski@gmail.com
|
1653ebcfb11070361cb2e24f61362d14b1aa3280
|
4347a963d792ac9633d052fc9cddb24b62c7f9f4
|
/JavaClass/src/ch06/Add1.java
|
260e0381181a169661413f8657e65266fa6e4755
|
[] |
no_license
|
parkjaewon1/JavaClass
|
629ca103525ab4402b9876c7bfe79ccaf08d17de
|
54bf2c6428e803ca1e4847499352898682ace53d
|
refs/heads/master
| 2023-04-10T08:32:49.127689
| 2021-04-15T14:21:31
| 2021-04-15T14:21:31
| 350,326,556
| 0
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 624
|
java
|
package ch06;
class B1 {
static void multiply( int x, int y) {
System.out.printf("%d * %d = %d\n",x,y,x*+y);
}
}
public class Add1 {
void add(int x, int y) {
System.out.printf("%d + %d = %d\n",x,y,x+y);
}
static void minus(int x, int y) {
System.out.printf("%d - %d = %d\n",x,y,x-y);
}
public static void main(String[] args) {
Add1 a1 = new Add1();
a1.add(10, 20); // main에서 사용할 때는 반드 객체를 생성하고 사용
Add1.minus(12, 4);
// 사용하려는 클래스명과 main(실행)문이 있는 클래스와 같을 경우에는 생략 가능
minus(17, 6);
B1.multiply(12, 7);
}
}
|
[
"48577510+parkjaewon1@users.noreply.github.com"
] |
48577510+parkjaewon1@users.noreply.github.com
|
baf0ac592289aab1bea103f5c16bf42445daa129
|
aaa9751e4ed70a7b3b41fa2025900dd01205518a
|
/org.eclipse.rcpl.libs/src2/org/apache/poi/hwpf/model/PieceDescriptor.java
|
93416496375c5815c976f962463857ef82078bb8
|
[] |
no_license
|
rassisi/rcpl
|
596f0c0aeb4b4ae838f001ad801f9a9c42e31759
|
93b4620bb94a45d0f42666b0bf6ffecae2c0d063
|
refs/heads/master
| 2022-09-20T19:57:54.802738
| 2020-05-10T20:54:01
| 2020-05-10T20:54:01
| 141,136,917
| 0
| 0
| null | 2022-09-01T23:00:59
| 2018-07-16T12:40:18
|
Java
|
UTF-8
|
Java
| false
| false
| 4,105
|
java
|
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
package org.apache.poi.hwpf.model;
import org.apache.poi.util.BitField;
import org.apache.poi.util.BitFieldFactory;
import org.apache.poi.util.Internal;
import org.apache.poi.util.LittleEndian;
@Internal
public final class PieceDescriptor
{
short descriptor;
private static BitField fNoParaLast = BitFieldFactory.getInstance(0x01);
private static BitField fPaphNil = BitFieldFactory.getInstance(0x02);
private static BitField fCopied = BitFieldFactory.getInstance(0x04);
int fc;
PropertyModifier prm;
boolean unicode;
public PieceDescriptor(byte[] buf, int offset)
{
descriptor = LittleEndian.getShort(buf, offset);
offset += LittleEndian.SHORT_SIZE;
fc = LittleEndian.getInt(buf, offset);
offset += LittleEndian.INT_SIZE;
prm = new PropertyModifier( LittleEndian.getShort(buf, offset));
// see if this piece uses unicode.
if ((fc & 0x40000000) == 0)
{
unicode = true;
}
else
{
unicode = false;
fc &= ~(0x40000000);//gives me FC in doc stream
fc /= 2;
}
}
public int getFilePosition()
{
return fc;
}
public void setFilePosition(int pos)
{
fc = pos;
}
public boolean isUnicode()
{
return unicode;
}
public PropertyModifier getPrm()
{
return prm;
}
protected byte[] toByteArray()
{
// set up the fc
int tempFc = fc;
if (!unicode)
{
tempFc *= 2;
tempFc |= (0x40000000);
}
int offset = 0;
byte[] buf = new byte[8];
LittleEndian.putShort(buf, offset, descriptor);
offset += LittleEndian.SHORT_SIZE;
LittleEndian.putInt(buf, offset, tempFc);
offset += LittleEndian.INT_SIZE;
LittleEndian.putShort(buf, offset, prm.getValue());
return buf;
}
public static int getSizeInBytes()
{
return 8;
}
@Override
public int hashCode()
{
final int prime = 31;
int result = 1;
result = prime * result + descriptor;
result = prime * result + ( ( prm == null ) ? 0 : prm.hashCode() );
result = prime * result + ( unicode ? 1231 : 1237 );
return result;
}
@Override
public boolean equals( Object obj )
{
if ( this == obj )
return true;
if ( obj == null )
return false;
if ( getClass() != obj.getClass() )
return false;
PieceDescriptor other = (PieceDescriptor) obj;
if ( descriptor != other.descriptor )
return false;
if ( prm == null )
{
if ( other.prm != null )
return false;
}
else if ( !prm.equals( other.prm ) )
return false;
if ( unicode != other.unicode )
return false;
return true;
}
@Override
public String toString()
{
return "PieceDescriptor (pos: " + getFilePosition() + "; "
+ ( isUnicode() ? "unicode" : "non-unicode" ) + "; prm: "
+ getPrm() + ")";
}
}
|
[
"Ramin@DESKTOP-69V2J7P.fritz.box"
] |
Ramin@DESKTOP-69V2J7P.fritz.box
|
a208ad94a8bfe053f97b568d861eb6b8230fd401
|
fec6faf83e30461ba0003c3bc0506571d97df390
|
/src/main/java/com/okta/developer/social/domain/AbstractAuditingEntity.java
|
486570b6a5e665a48fc6e0861314c3c4de78c2d2
|
[
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
oktadev/okta-spring-boot-social-login-example
|
1cfe3a6dbefc33bac66541d283a4f2f69f15fe4d
|
60e0f987724efecf0ee36f9b627d874f55945d2b
|
refs/heads/master
| 2023-01-28T07:33:08.234914
| 2020-12-04T23:26:47
| 2020-12-04T23:26:47
| 169,480,824
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,222
|
java
|
package com.okta.developer.social.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.hibernate.envers.Audited;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import java.io.Serializable;
import java.time.Instant;
import javax.persistence.Column;
import javax.persistence.EntityListeners;
import javax.persistence.MappedSuperclass;
/**
* Base abstract class for entities which will hold definitions for created, last modified by and created,
* last modified by date.
*/
@MappedSuperclass
@Audited
@EntityListeners(AuditingEntityListener.class)
public abstract class AbstractAuditingEntity implements Serializable {
private static final long serialVersionUID = 1L;
@CreatedBy
@Column(name = "created_by", nullable = false, length = 50, updatable = false)
@JsonIgnore
private String createdBy;
@CreatedDate
@Column(name = "created_date", updatable = false)
@JsonIgnore
private Instant createdDate = Instant.now();
@LastModifiedBy
@Column(name = "last_modified_by", length = 50)
@JsonIgnore
private String lastModifiedBy;
@LastModifiedDate
@Column(name = "last_modified_date")
@JsonIgnore
private Instant lastModifiedDate = Instant.now();
public String getCreatedBy() {
return createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public Instant getCreatedDate() {
return createdDate;
}
public void setCreatedDate(Instant createdDate) {
this.createdDate = createdDate;
}
public String getLastModifiedBy() {
return lastModifiedBy;
}
public void setLastModifiedBy(String lastModifiedBy) {
this.lastModifiedBy = lastModifiedBy;
}
public Instant getLastModifiedDate() {
return lastModifiedDate;
}
public void setLastModifiedDate(Instant lastModifiedDate) {
this.lastModifiedDate = lastModifiedDate;
}
}
|
[
"matt.raible@okta.com"
] |
matt.raible@okta.com
|
9b4b90ba97816235f42dba174734884ecbbddb33
|
408b3acf76f6e22b7620ee3e912748b6d0d715f4
|
/wakfu.common/src/com/ankamagames/framework/fileFormat/html/parser/lexer/impl/TokenTagImpl.java
|
148d5f4cb06168e4e13558496abd1c7c5b55be6c
|
[] |
no_license
|
brunorcunha/wakfu-dirty-legacy
|
537dad1950f4518050941ff2711a2faffa48f1a4
|
a3f2edf829e4b690e350eed1962d5d0d9bba25ed
|
refs/heads/master
| 2021-06-18T08:43:52.395945
| 2015-05-04T14:58:56
| 2015-05-04T14:58:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,392
|
java
|
package com.ankamagames.framework.fileFormat.html.parser.lexer.impl;
import com.ankamagames.framework.fileFormat.html.parser.*;
import com.ankamagames.framework.fileFormat.html.parser.datasource.*;
import java.util.*;
public class TokenTagImpl implements TokenTag
{
private List<TagAttribute> attrs;
private StringBuffer tagName;
private StringBuffer rawHtml;
private boolean isClosed;
private boolean endClosed;
private PageSource pageSource;
private int startIndex;
private int endIndex;
private int tokenIndex;
TokenTagImpl() {
super();
this.attrs = null;
this.tagName = null;
this.rawHtml = null;
this.isClosed = false;
this.endClosed = false;
this.pageSource = null;
this.startIndex = -1;
this.endIndex = -1;
this.tokenIndex = -1;
}
void initValue() {
if (this.attrs == null) {
this.attrs = new ArrayList<TagAttribute>();
}
this.attrs.clear();
this.tagName = new StringBuffer("");
this.rawHtml = new StringBuffer("");
this.isClosed = false;
this.endClosed = false;
this.pageSource = null;
this.startIndex = -1;
this.endIndex = -1;
}
@Override
public List<TagAttribute> getAttrs() {
return this.attrs;
}
void setAttribute(final List<TagAttribute> attrs) {
this.attrs = attrs;
}
void addAttribute(final TagAttribute attr) {
if (this.attrs == null) {
this.attrs = new ArrayList<TagAttribute>();
}
this.attrs.add(attr);
}
void addAttribute(final String attrName, final String attrValue) {
if (this.attrs == null) {
this.attrs = new ArrayList<TagAttribute>();
}
this.attrs.add(new TagAttribute(attrName, attrValue));
}
@Override
public String getTagName() {
return this.tagName.toString();
}
void setTagName(final String tagName) {
this.tagName = new StringBuffer(tagName);
}
void appendTagName(final char ch) {
this.tagName.append(ch);
}
@Override
public boolean isClosedTag() {
return this.isClosed;
}
void setCloseTag(final boolean closed) {
this.isClosed = closed;
}
@Override
public boolean isEndClosed() {
return this.endClosed;
}
void setEndClosed(final boolean endClosed) {
this.endClosed = endClosed;
}
@Override
public int getEndPosition() {
return this.endIndex;
}
void setEndPosition(final int position) {
this.endIndex = position;
}
@Override
public PageSource getPage() {
return this.pageSource;
}
void setPageSource(final PageSource ps) {
this.pageSource = ps;
}
@Override
public int getStartPosition() {
return this.startIndex;
}
void setStartPosition(final int position) {
this.endIndex = position;
}
@Override
public String toHtml() {
String strRet = "<";
if (this.isClosed) {
strRet += "/";
}
strRet += this.tagName;
if (this.attrs != null && this.attrs.size() > 0) {
for (final TagAttribute attr : this.attrs) {
strRet = strRet + " " + attr.getAttrName() + "=\"" + attr.getAttrValue() + "\"";
}
}
if (this.endClosed) {
strRet += "/";
}
return strRet + ">";
}
void setToHtml(final String rawHtml) {
this.rawHtml = new StringBuffer(rawHtml);
}
@Override
public String toString() {
String retString = "[TAG]";
if (this.isClosed) {
retString += "/";
}
retString = retString + this.tagName + "(";
if (this.attrs != null) {
for (final TagAttribute tAttr : this.attrs) {
retString = retString + tAttr.getAttrName() + ":" + tAttr.getAttrValue() + " ";
}
}
retString = retString.trim();
retString += ")";
return retString;
}
void setIndex(final int idx) {
this.tokenIndex = idx;
}
@Override
public int getIndex() {
return this.tokenIndex;
}
}
|
[
"hussein.aitlahcen@gmail.com"
] |
hussein.aitlahcen@gmail.com
|
75c6909b6a4ea2d7cd7ddddc985a191d96406661
|
65a6345a544888bcbdbc5c04aa4942a3c201e219
|
/src/main/java/mayday/Reveal/filter/gui/RuleSetEditorItem.java
|
02dcebaeef7321346085fe610b2b9b4d029dd0f7
|
[] |
no_license
|
Integrative-Transcriptomics/Mayday-level2
|
e7dd61ba68d149bed845b173cced4db012ba55b1
|
46a28829e8ead11794951fbae6d61e7ff37cad4a
|
refs/heads/master
| 2023-01-11T21:57:47.943395
| 2016-04-25T12:59:01
| 2016-04-25T12:59:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,114
|
java
|
package mayday.Reveal.filter.gui;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import mayday.Reveal.data.SNVList;
import mayday.core.gui.properties.items.AbstractPropertiesItem;
@SuppressWarnings("serial")
public class RuleSetEditorItem extends AbstractPropertiesItem {
public RuleSetEditorItem() {
super("SNP Rule Set");
}
private SNVList snpList;
private RuleEditorPanel rep;
public RuleSetEditorItem(SNVList snpList) {
this();
setLayout(new BorderLayout());
this.snpList = snpList;
rep = new RuleEditorPanel(snpList);
add(rep, BorderLayout.CENTER);
}
@Override
public Object getValue() {
return null;
}
@Override
public void setValue(Object value) {}
@Override
public boolean hasChanged() {
return false;
}
public void apply() {
rep.doExternalApply();
}
protected class OpenEditorAction extends AbstractAction {
public OpenEditorAction() {
super( "Open Rule Set Editor" );
}
public void actionPerformed( ActionEvent event ) {
new RuleEditorDialog(snpList).setVisible(true);
}
}
}
|
[
"adrian.geissler@student.uni-tuebingen.de"
] |
adrian.geissler@student.uni-tuebingen.de
|
762ac95f9c1b072cb465be6a7df2f0512feffde9
|
ddce6aa9aa6ac13312376ec08e6b0453d3412e57
|
/alternativmud-server/src/main/java/net/alternativmud/logic/game/commands/Time.java
|
3158139298cb25c6812b178eb5de6f88fd76b115
|
[
"MIT"
] |
permissive
|
Jblew/alternativ-mud
|
d5cc1a587d462eeb3d01b809e80fd4205ff5083a
|
7845d89b3c92aa3d41704dde628c391bfe1cb264
|
refs/heads/master
| 2021-01-01T17:05:05.206726
| 2019-06-23T11:24:10
| 2019-06-23T11:24:10
| 15,583,256
| 2
| 1
|
MIT
| 2020-10-23T22:06:26
| 2014-01-02T12:37:40
|
Java
|
UTF-8
|
Java
| false
| false
| 433
|
java
|
package net.alternativmud.logic.game.commands;
import net.alternativmud.App;
import net.alternativmud.logic.game.Gameplay;
/**
* @author noosekpl
*/
public class Time implements Command {
@Override
public String execute(Gameplay game, String[] parts) {
return "Czas(dla twojej strefy): "+ App.getApp().getWorld().getTimeMachine()
.getString(game.getCharacter().getLocationCoordinates());
}
}
|
[
"jedrzejblew@gmail.com"
] |
jedrzejblew@gmail.com
|
c9e8c12974ea07d655e140b3a71fbeec05b91941
|
6794781fe38222a9f4c19f48dfb908103657be4a
|
/src/Learn/ArrayAndString/MinimumSizeSubarraySum.java
|
faba98a7d987e66102d046db4581714f12a03a3a
|
[] |
no_license
|
zt19994/leetcode
|
6856a4106cad448d091e52b32406e2ee5dd16828
|
ed695b82b136a5d2dd91624eccadf5d79a21c1f0
|
refs/heads/master
| 2020-03-27T14:46:05.160037
| 2019-04-20T06:01:24
| 2019-04-20T06:01:24
| 146,677,694
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,571
|
java
|
package Learn.ArrayAndString;
import org.junit.Test;
/**
* 最小长度数组和
*
* @author zhongtao on 2018/9/19
*/
public class MinimumSizeSubarraySum {
/**
* 两层for循环,有点慢
*/
public int minSubArrayLen(int s, int[] nums) {
int result = Integer.MAX_VALUE;
int k = 0;
for (int i = 0; i < nums.length; i++) {
int sum = 0;
for (int j = i; j < nums.length; j++) {
sum += nums[j];
if (sum >= s) {
k = j - i + 1;
result = k < result ? k : result;
break;
}
}
}
return result < Integer.MAX_VALUE ? result : 0;
}
/**
* 双指针,快速
*/
public int minSubArrayLen1(int s, int[] nums) {
int result = 0;
int start = 0;
int sum = 0;
for (int i = 0; i < nums.length; i++) {
sum += nums[i];
while (sum - nums[start] >= s) {
sum -= nums[start];
start++;
}
//获取最小值
if (sum >= s) {
if (result == 0 || result > i - start + 1) {
result = i - start + 1;
}
}
}
return result;
}
/**
* 测试
*/
@Test
public void test() {
int[] nums = {2, 3, 1, 2, 4, 3, 7};
int i = minSubArrayLen(7, nums);
int j = minSubArrayLen1(7, nums);
System.out.println(i + " " + j);
}
}
|
[
"zt191610942@163.com"
] |
zt191610942@163.com
|
057fa359fa10bf43dc380572648bb79fc82e2d7e
|
14aacd43c9e52e53b762071bfb2b8b16366ed84a
|
/unalcol/optimization/unalcol/optimization/real/ScaledHyperCube.java
|
fe64cacf57a5230d3cfef312d4ccb8a55ec6216d
|
[] |
no_license
|
danielrcardenas/unalcol
|
26ff523a80a4b62b687e2b2286523fa2adde69c4
|
b56ee54145a7c5bcc0faf187c09c69b7587f6ffe
|
refs/heads/master
| 2021-01-15T17:15:02.732499
| 2019-04-28T05:18:09
| 2019-04-28T05:18:09
| 203,480,783
| 0
| 0
| null | 2019-08-21T01:19:47
| 2019-08-21T01:19:47
| null |
UTF-8
|
Java
| false
| false
| 1,305
|
java
|
package unalcol.optimization.real;
import unalcol.search.multilevel.CodeDecodeMap;
import unalcol.real.Array;
import unalcol.real.array.LinealScale;
public class ScaledHyperCube extends CodeDecodeMap<double[], double[]> {
protected LinealScale scale = null;
public ScaledHyperCube( double[] min, double[] max ){
this.scale = new LinealScale(min, max);
}
public ScaledHyperCube( HyperCube space ){
this.scale = new LinealScale(space.min, space.max);
}
/**
* Generates a thing from the given genome
* @param genome Genome of the thing to be expressed
* @return A thing expressed from the genome
*/
public double[] decode(double[] genome) {
return scale.inverse(genome);
}
/**
* Generates a genome from the given thing
* @param thing A thing expressed from the genome
* @return Genome of the thing
*/
public double[] code(double[] thing) {
return scale.apply(thing);
}
public static void main( String[] args){
ScaledHyperCube scale = new ScaledHyperCube(Array.create(5, -10.0), Array.create(5, 10.0));
for( int i=-10; i<=10; i++){
double[] x = scale.code(Array.create(5, i));
for( int k=0; k<x.length; k++ ){
System.out.print(" "+x[k]);
}
System.out.println();
}
}
}
|
[
"jgomezpe@unal.edu.co"
] |
jgomezpe@unal.edu.co
|
36c5a7de7dd5f57c236720a26ac08eec23bc9ea1
|
b9637a722bc82e04be6e2fa6c28cdf62570ab840
|
/Demo_Hibernate_App/src/entities/Category.java
|
e256b33a3bc42b7e845c70c802a1377ed23cd2aa
|
[] |
no_license
|
VinhMark/SEM-4-STRUST
|
6d81929b900fb59ef232bfac0867a04c954c83fd
|
f5005785ed9dbac9a7273e141c38ddbecea15c79
|
refs/heads/master
| 2021-08-08T20:06:40.458180
| 2017-11-11T02:42:28
| 2017-11-11T02:42:28
| 110,311,589
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,434
|
java
|
package entities;
// Generated Aug 3, 2017 10:05:26 AM by Hibernate Tools 5.2.3.Final
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
/**
* Category generated by hbm2java
*/
@Entity
@Table(name = "Category", catalog = "mydemo")
public class Category implements java.io.Serializable {
private int id;
private String name;
private Set<Product> products = new HashSet<Product>(0);
public Category() {
}
public Category(int id) {
this.id = id;
}
public Category(int id, String name, Set<Product> products) {
this.id = id;
this.name = name;
this.products = products;
}
@Id
@GeneratedValue(strategy= GenerationType.IDENTITY)
@Column(name = "id", unique = true, nullable = false)
public int getId() {
return this.id;
}
public void setId(int id) {
this.id = id;
}
@Column(name = "name", length = 50)
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
@OneToMany(fetch = FetchType.LAZY, mappedBy = "category")
public Set<Product> getProducts() {
return this.products;
}
public void setProducts(Set<Product> products) {
this.products = products;
}
}
|
[
"="
] |
=
|
8648295115c795a25c60761bf87118a2adf4d7c6
|
b2f07f3e27b2162b5ee6896814f96c59c2c17405
|
/com/sun/org/apache/xml/internal/serializer/Serializer.java
|
9c81bf7c3e5d0c439f4f2c01194b88f79731ddc3
|
[] |
no_license
|
weiju-xi/RT-JAR-CODE
|
e33d4ccd9306d9e63029ddb0c145e620921d2dbd
|
d5b2590518ffb83596a3aa3849249cf871ab6d4e
|
refs/heads/master
| 2021-09-08T02:36:06.675911
| 2018-03-06T05:27:49
| 2018-03-06T05:27:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 944
|
java
|
package com.sun.org.apache.xml.internal.serializer;
import java.io.IOException;
import java.io.OutputStream;
import java.io.Writer;
import java.util.Properties;
import org.xml.sax.ContentHandler;
public abstract interface Serializer
{
public abstract void setOutputStream(OutputStream paramOutputStream);
public abstract OutputStream getOutputStream();
public abstract void setWriter(Writer paramWriter);
public abstract Writer getWriter();
public abstract void setOutputFormat(Properties paramProperties);
public abstract Properties getOutputFormat();
public abstract ContentHandler asContentHandler()
throws IOException;
public abstract DOMSerializer asDOMSerializer()
throws IOException;
public abstract boolean reset();
}
/* Location: C:\Program Files\Java\jdk1.7.0_79\jre\lib\rt.jar
* Qualified Name: com.sun.org.apache.xml.internal.serializer.Serializer
* JD-Core Version: 0.6.2
*/
|
[
"yuexiahandao@gmail.com"
] |
yuexiahandao@gmail.com
|
2df86134690f03b13bc5c5d8fbd598cb94412b35
|
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
|
/java/mockito/2016/12/DoesNothing.java
|
9287ae76c5e7260b187b8823c6c4a5e363dd58a1
|
[] |
no_license
|
rosoareslv/SED99
|
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
|
a062c118f12b93172e31e8ca115ce3f871b64461
|
refs/heads/main
| 2023-02-22T21:59:02.703005
| 2021-01-28T19:40:51
| 2021-01-28T19:40:51
| 306,497,459
| 1
| 1
| null | 2020-11-24T20:56:18
| 2020-10-23T01:18:07
| null |
UTF-8
|
Java
| false
| false
| 885
|
java
|
/*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.internal.stubbing.answers;
import java.io.Serializable;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
import org.mockito.stubbing.ValidableAnswer;
import static org.mockito.internal.exceptions.Reporter.onlyVoidMethodsCanBeSetToDoNothing;
public class DoesNothing implements Answer<Object>, ValidableAnswer, Serializable {
private static final long serialVersionUID = 4840880517740698416L;
public Object answer(InvocationOnMock invocation) throws Throwable {
return null;
}
@Override
public void validateFor(InvocationOnMock invocation) {
if (!new InvocationInfo(invocation).isVoid()) {
throw onlyVoidMethodsCanBeSetToDoNothing();
}
}
}
|
[
"rodrigosoaresilva@gmail.com"
] |
rodrigosoaresilva@gmail.com
|
d357fee2cbd52488cbde659efb6533e7a0b50e08
|
45736204805554b2d13f1805e47eb369a8e16ec3
|
/com/mysql/cj/xdevapi/SqlResult.java
|
59433b258135c529beded6d2535166fc2715f282
|
[] |
no_license
|
KrOySi/ArchWare-Source
|
9afc6bfcb1d642d2da97604ddfed8048667e81fd
|
46cdf10af07341b26bfa704886299d80296320c2
|
refs/heads/main
| 2022-07-30T02:54:33.192997
| 2021-08-08T23:36:39
| 2021-08-08T23:36:39
| 394,089,144
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 546
|
java
|
/*
* Decompiled with CFR 0.150.
*/
package com.mysql.cj.xdevapi;
import com.mysql.cj.xdevapi.InsertResult;
import com.mysql.cj.xdevapi.Result;
import com.mysql.cj.xdevapi.RowResult;
import com.mysql.cj.xdevapi.XDevAPIError;
public interface SqlResult
extends Result,
InsertResult,
RowResult {
default public boolean nextResult() {
return false;
}
@Override
default public Long getAutoIncrementValue() {
throw new XDevAPIError("Method getAutoIncrementValue() is allowed only for insert statements.");
}
}
|
[
"67242784+KrOySi@users.noreply.github.com"
] |
67242784+KrOySi@users.noreply.github.com
|
416f2321eada782a480e95a9cde8939b6dccbde2
|
a2440dbe95b034784aa940ddc0ee0faae7869e76
|
/modules/lwjgl/bgfx/src/generated/java/org/lwjgl/bgfx/BGFXProfilerBeginI.java
|
be51af3b26ac9e2facdb0b48d5ccb4ec173ead76
|
[
"LGPL-2.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
LWJGL/lwjgl3
|
8972338303520c5880d4a705ddeef60472a3d8e5
|
67b64ad33bdeece7c09b0f533effffb278c3ecf7
|
refs/heads/master
| 2023-08-26T16:21:38.090410
| 2023-08-26T16:05:52
| 2023-08-26T16:05:52
| 7,296,244
| 4,835
| 1,004
|
BSD-3-Clause
| 2023-09-10T12:03:24
| 2012-12-23T15:40:04
|
Java
|
UTF-8
|
Java
| false
| false
| 2,136
|
java
|
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.bgfx;
import org.lwjgl.system.*;
import org.lwjgl.system.libffi.*;
import static org.lwjgl.system.APIUtil.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.libffi.LibFFI.*;
/**
* Profiler region begin.
*
* <h3>Type</h3>
*
* <pre><code>
* void (*{@link #invoke}) (
* bgfx_callback_interface_t *_this,
* char const *_name,
* uint32_t _abgr,
* char const *_filePath,
* uint16_t _line
* )</code></pre>
*/
@FunctionalInterface
@NativeType("void (*) (bgfx_callback_interface_t *, char const *, uint32_t, char const *, uint16_t)")
public interface BGFXProfilerBeginI extends CallbackI {
FFICIF CIF = apiCreateCIF(
FFI_DEFAULT_ABI,
ffi_type_void,
ffi_type_pointer, ffi_type_pointer, ffi_type_uint32, ffi_type_pointer, ffi_type_uint16
);
@Override
default FFICIF getCallInterface() { return CIF; }
@Override
default void callback(long ret, long args) {
invoke(
memGetAddress(memGetAddress(args)),
memGetAddress(memGetAddress(args + POINTER_SIZE)),
memGetInt(memGetAddress(args + 2 * POINTER_SIZE)),
memGetAddress(memGetAddress(args + 3 * POINTER_SIZE)),
memGetShort(memGetAddress(args + 4 * POINTER_SIZE))
);
}
/**
* Will be called when a profiler region begins.
*
* <p>Not thread safe and it can be called from any thread.</p>
*
* @param _this the callback interface
* @param _name region name, contains dynamic string
* @param _abgr color of profiler region
* @param _filePath file path where {@code profiler_begin} was called
* @param _line line where {@code profiler_begin} was called
*/
void invoke(@NativeType("bgfx_callback_interface_t *") long _this, @NativeType("char const *") long _name, @NativeType("uint32_t") int _abgr, @NativeType("char const *") long _filePath, @NativeType("uint16_t") short _line);
}
|
[
"iotsakp@gmail.com"
] |
iotsakp@gmail.com
|
097deaab19e0bb305ed3d7b2abd427ad3bb7868b
|
1fcb62696ec7413cc6a2e5c8c67d430d51a665c7
|
/src/iso-tc211-xml/src/generated/java/org/isotc211/iso19139/gts/impl/GTSFactoryImpl.java
|
b95eb2e8997ccbb4a5e0390e46f661ac6eb5af6d
|
[
"BSD-2-Clause",
"BSD-3-Clause"
] |
permissive
|
florianesser/excel-adapter
|
cd1836dad969e6b481396997a3f4abd4e38029e9
|
16b98486da3702ee958c5c0155a77520a0722906
|
refs/heads/master
| 2021-01-08T08:11:40.938728
| 2019-05-24T10:02:34
| 2019-05-24T10:02:34
| 241,966,970
| 0
| 0
|
NOASSERTION
| 2020-02-20T19:06:34
| 2020-02-20T19:06:34
| null |
UTF-8
|
Java
| false
| false
| 2,812
|
java
|
/**
*/
package org.isotc211.iso19139.gts.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import org.isotc211.iso19139.gts.*;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
* @generated
*/
public class GTSFactoryImpl extends EFactoryImpl implements GTSFactory
{
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static GTSFactory init()
{
try
{
GTSFactory theGTSFactory = (GTSFactory)EPackage.Registry.INSTANCE.getEFactory(GTSPackage.eNS_URI);
if (theGTSFactory != null)
{
return theGTSFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new GTSFactoryImpl();
}
/**
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GTSFactoryImpl()
{
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass)
{
switch (eClass.getClassifierID())
{
case GTSPackage.TM_PERIOD_DURATION_PROPERTY_TYPE: return createTMPeriodDurationPropertyType();
case GTSPackage.TM_PRIMITIVE_PROPERTY_TYPE: return createTMPrimitivePropertyType();
case GTSPackage.DOCUMENT_ROOT: return createDocumentRoot();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TMPeriodDurationPropertyType createTMPeriodDurationPropertyType()
{
TMPeriodDurationPropertyTypeImpl tmPeriodDurationPropertyType = new TMPeriodDurationPropertyTypeImpl();
return tmPeriodDurationPropertyType;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TMPrimitivePropertyType createTMPrimitivePropertyType()
{
TMPrimitivePropertyTypeImpl tmPrimitivePropertyType = new TMPrimitivePropertyTypeImpl();
return tmPrimitivePropertyType;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DocumentRoot createDocumentRoot()
{
DocumentRootImpl documentRoot = new DocumentRootImpl();
return documentRoot;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GTSPackage getGTSPackage()
{
return (GTSPackage)getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @deprecated
* @generated
*/
@Deprecated
public static GTSPackage getPackage()
{
return GTSPackage.eINSTANCE;
}
} //GTSFactoryImpl
|
[
"fe@bespire.de"
] |
fe@bespire.de
|
5636a475255a88a9f1839422593af79e0130e7dc
|
9eaa2480c7625ab50b47cf1962f8cfc79dda69bf
|
/contextawareness-android-sdk/src/main/java/io/github/contextawareness/accessibility/WindowChangeEventProvider.java
|
3b09fc8777315e3c297afcc2e3ce17fc0a8271c5
|
[] |
no_license
|
xinyu1118/ContextAwareness
|
8991cd553ffacfd8adcb9a1bc022a9df260e7a45
|
097a9d65d73ddf6d63332af9a96c7cc97389b87f
|
refs/heads/master
| 2020-04-17T20:32:52.425327
| 2019-07-25T09:53:53
| 2019-07-25T09:53:53
| 166,385,631
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 761
|
java
|
package io.github.contextawareness.accessibility;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;
class WindowChangeEventProvider extends AccEventProvider {
public void handleAccessibilityEvent(AccessibilityEvent event, AccessibilityNodeInfo rootNode){
int eventType = event.getEventType();
if (eventType == AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED
|| eventType == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED
|| eventType == AccessibilityEvent.TYPE_WINDOWS_CHANGED
|| eventType == AccessibilityEvent.TYPE_VIEW_TEXT_SELECTION_CHANGED)
{
this.output(new AccEvent(event, rootNode));
}
}
}
|
[
"yangxycl@163.com"
] |
yangxycl@163.com
|
938890b6a129778350218491771be460a539c8f0
|
3a59bd4f3c7841a60444bb5af6c859dd2fe7b355
|
/sources/kotlin/experimental/ExperimentalTypeInference.java
|
9881d90cd83b0a96a4243498e7fffa54a7965495
|
[] |
no_license
|
sengeiou/KnowAndGo-android-thunkable
|
65ac6882af9b52aac4f5a4999e095eaae4da3c7f
|
39e809d0bbbe9a743253bed99b8209679ad449c9
|
refs/heads/master
| 2023-01-01T02:20:01.680570
| 2020-10-22T04:35:27
| 2020-10-22T04:35:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,137
|
java
|
package kotlin.experimental;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
import kotlin.Experimental;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.annotation.AnnotationRetention;
import kotlin.annotation.AnnotationTarget;
import kotlin.annotation.MustBeDocumented;
import kotlin.annotation.Retention;
import kotlin.annotation.Target;
@MustBeDocumented
@SinceKotlin(version = "1.3")
@Target(allowedTargets = {AnnotationTarget.ANNOTATION_CLASS})
@Retention(AnnotationRetention.BINARY)
@Documented
@java.lang.annotation.Target({ElementType.ANNOTATION_TYPE})
@Experimental(level = Experimental.Level.ERROR)
@Metadata(mo39784bv = {1, 0, 3}, mo39785d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\b\u0002\u0018\u00002\u00020\u0001B\u0000¨\u0006\u0002"}, mo39786d2 = {"Lkotlin/experimental/ExperimentalTypeInference;", "", "kotlin-stdlib"}, mo39787k = 1, mo39788mv = {1, 1, 15})
@java.lang.annotation.Retention(RetentionPolicy.CLASS)
/* compiled from: inferenceMarker.kt */
public @interface ExperimentalTypeInference {
}
|
[
"joshuahj.tsao@gmail.com"
] |
joshuahj.tsao@gmail.com
|
7643e2978d36ef68786582d76249333a9be8e93e
|
7c29eb22c9d4a55b87c1cb4c9e31b04c2a9b2b31
|
/dwp/cimiss2-decode/src/main/java/cma/cimiss2/dpc/decoder/bean/agme/Soilchn.java
|
4a0909613eb7447b0b72571a2c7ab3908b7aa1d0
|
[] |
no_license
|
523499159/kettle-web
|
afa9f60958c86a3119bba406edf434d63a3d3c4a
|
d55c8a38c572cf58d34d3fee243a9026bb4b5b69
|
refs/heads/master
| 2023-03-17T22:50:28.851262
| 2020-08-31T07:02:53
| 2020-08-31T07:02:53
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,820
|
java
|
package cma.cimiss2.dpc.decoder.bean.agme;
import lombok.Data;
import java.math.BigDecimal;
import java.sql.Timestamp;
@Data
public class Soilchn {
private String dRecordId;//记录标识
private Timestamp dIymdhm;//入库时间
private String cname;//站名
private String countryname;//国家名称
private String provincename;//省名
private String cityname;//地市名
private String cntyname;//区县名
private String townname;//乡镇名
private BigDecimal q71110;//田间持水量质控码
private BigDecimal q71655010;//10cm重量含水率质控码
private BigDecimal q71655020;//20cm重量含水率质控码
private BigDecimal q71655030;//30cm重量含水率质控码
private BigDecimal q71655040;//40cm重量含水率质控码
private Timestamp dRymdhm;//收到时间
private BigDecimal q71655060;//60cm重量含水率质控码
private Timestamp dUpdateTime;//更新时间
private BigDecimal q71655080;//80cm重量含水率质控码
private Timestamp dDatetime;//资料时间
private String vFileNameSource;//原文件名
private BigDecimal q71655100;//100cm重量含水率质控码
private String qr71110;//田间持水量质控过程码
private String v01301;//区站号/观测平台标识(字符)
private String qr71655010;//10cm重量含水率质控过程码
private BigDecimal v01300;//区站号/观测平台标识(数字)
private String qr71655020;//20cm重量含水率质控过程码
private BigDecimal v05001;//纬度
private BigDecimal v06001;//经度
private String qr71655030;//30cm重量含水率质控过程码
private String qr71655040;//40cm重量含水率质控过程码
private BigDecimal v07001;//测站高度
private BigDecimal v07031;//气压传感器海拔高度
private String qr71655060;//60cm重量含水率质控过程码
private String qr71655080;//80cm重量含水率质控过程码
private BigDecimal v02001;//测站类型
private String qr71655100;//100cm重量含水率质控过程码
private BigDecimal v02301;//测站级别
private String vAcode;//中国行政区划代码
private Short v04001;//年
private Short v04002;//月
private Short v04003;//日
private Short v04004;//时
private BigDecimal v71110;//田间持水量
private BigDecimal v71655010;//10cm重量含水率
private BigDecimal v71655020;//20cm重量含水率
private BigDecimal v71655030;//30cm重量含水率
private BigDecimal v71655040;//40cm重量含水率
private BigDecimal v71655050;//60cm重量含水率
private BigDecimal v71655080;//80cm重量含水率
private BigDecimal v71655100;//100cm重量含水率
private String vBbb;//更正报标志
}
|
[
"18309292271@163.com"
] |
18309292271@163.com
|
6503f44d028ae36a202dc71c3ad2c30c76cf5deb
|
cfa9557cc5231333679735348cc2569dc2a28dcf
|
/friends-orm-newTask/src/com/enigmacamp/friends/db/repositories/PostRepository.java
|
a6a2be6a5e099c54389a03694d8b0e905a90d07f
|
[] |
no_license
|
siamsubekti/RepoGitEnigma-Java
|
2c8ac33b97382ac256daa2b50dc504f36a20eea1
|
bf03ebee415d902db914c20fe5eb0e9d56295952
|
refs/heads/master
| 2022-04-14T06:59:25.918627
| 2020-02-24T11:01:16
| 2020-02-24T11:01:16
| 242,713,679
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,664
|
java
|
package com.enigmacamp.friends.db.repositories;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.Transaction;
import org.hibernate.criterion.Restrictions;
import com.enigmacamp.friends.db.entities.Person;
import com.enigmacamp.friends.db.entities.Post;
public class PostRepository extends Repository<Post> {
public PostRepository() {
this.entity = this.query.from(Post.class);
}
public List<Post> findAll(Predicate... predicates) {
CriteriaQuery<Post> cq = this.query.select(this.entity);
cq.where(predicates);
return this.executeQuery(cq).getResultList();
}
public Post find (Integer id) {
return (Post) session.get(Post.class, id);
}
public Post findTitle (String title) {
Query query = session.createQuery("FROM Post WHERE title = :title");
query.setParameter("title", title);
List<Post> result = query.list();
return result.get(0);
}
public List<Post> findByPostDate () {
List<Post> post = new ArrayList<Post>();
Query query = session.createQuery("FROM Post order by post_date desc");
return query.list();
}
public List<Post> findByPostToday () {
List<Post> post = new ArrayList<Post>();
Query query = session.createQuery("FROM Post where day(post_date) = day(now())");
return query.list();
}
@SuppressWarnings({ "deprecation", "unchecked" })
public List<Post> listPostName(String post, String name) {
Criteria postx = session.createCriteria(Post.class);
postx.createAlias("categorys", "pr", Criteria.INNER_JOIN,
Restrictions.eq("pr.name", post));
postx.createAlias("person", "fr", Criteria.INNER_JOIN,
Restrictions.eq("fr.name", name));
return postx.list();
}
public Post create (Post post) {
Transaction trx = this.session.beginTransaction();
session.save(post);
session.getTransaction().commit();
System.out.println("Insert done" + "\n");
return post;
}
public Post update (Post post) {
Transaction trx = this.session.beginTransaction();
session.merge(post);
session.getTransaction().commit();
System.out.println("update done" + "\n");
return post;
}
public void delete (Post post) {
Transaction trx = this.session.beginTransaction();
this.session.delete(post);
session.getTransaction().commit();
System.out.println("delete done"+ "\n");
}
}
|
[
"trisiam4@gmail.com"
] |
trisiam4@gmail.com
|
449317cbffd87f2b7da51a333bb2cabc7bdbe9d5
|
4ec3bf36837420a2cb84bec4adb772d2664f6e92
|
/FrameworkDartesESP_alunosSDIS/brokerOM2M/org.eclipse.om2m/org.eclipse.om2m.commons/src/main/java/org/eclipse/om2m/commons/resource/flexcontainerspec/LiquidLevelFlexContainer.java
|
eee5a72ac2bbd0acdb218b28c9031f3e1a316efc
|
[] |
no_license
|
BaltasarAroso/SDIS_OM2M
|
1f2ce310b3c1bf64c2a95ad9d236c64bf672abb0
|
618fdb4da1aba5621a85e49dae0442cafef5ca31
|
refs/heads/master
| 2020-04-08T19:08:22.073674
| 2019-01-20T15:42:48
| 2019-01-20T15:42:48
| 159,641,777
| 0
| 2
| null | 2020-03-06T15:49:51
| 2018-11-29T09:35:02
|
C
|
UTF-8
|
Java
| false
| false
| 1,721
|
java
|
/*
********************************************************************************
* Copyright (c) 2014, 2017 Orange.
* 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
********************************************************************************
ModuleClass : LiquidLevel
This ModuleClass manages a level of liquid.
Created: 2017-09-28 17:26:40
*/
package org.eclipse.om2m.commons.resource.flexcontainerspec;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.eclipse.om2m.commons.resource.AbstractFlexContainer;
import org.eclipse.om2m.commons.resource.AbstractFlexContainerAnnc;
@XmlRootElement(name = LiquidLevelFlexContainer.SHORT_NAME, namespace = "http://www.onem2m.org/xml/protocols/homedomain")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = LiquidLevelFlexContainer.SHORT_NAME, namespace = "http://www.onem2m.org/xml/protocols/homedomain")
public class LiquidLevelFlexContainer extends AbstractFlexContainer {
public static final String LONG_NAME = "liquidLevel";
public static final String SHORT_NAME = "liqLl";
public LiquidLevelFlexContainer () {
setContainerDefinition("org.onem2m.home.moduleclass." + LiquidLevelFlexContainer.LONG_NAME);
setLongName(LONG_NAME);
setShortName(SHORT_NAME);
}
public void finalizeSerialization() {
}
public void finalizeDeserialization() {
}
}
|
[
"ba_aroso@icloud.com"
] |
ba_aroso@icloud.com
|
9dec02c81d5e2989766acbd791d438f642c64fa5
|
e95e8b2d272f136c1886ee100894bfdfbb677afd
|
/core/src/main/java/io/github/mmm/ui/api/datatype/UiSizeUnit.java
|
69a9c3569d5c5c921144e9636897bb87846ae4e6
|
[
"Apache-2.0"
] |
permissive
|
safibarri/ui-api
|
6b3443bc9f89fa9bf4d493be15ab88cb60e1c0db
|
d85b6ad5a45f7cc345b47294a8a476cf7cfbcefd
|
refs/heads/master
| 2022-11-22T17:37:03.760197
| 2020-06-29T08:01:37
| 2020-06-29T08:01:37
| 270,618,639
| 0
| 0
|
Apache-2.0
| 2020-06-08T10:04:30
| 2020-06-08T10:04:30
| null |
UTF-8
|
Java
| false
| false
| 1,605
|
java
|
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.ui.api.datatype;
/**
* This enum contains the available units for size measures.
*
* @since 1.0.0
*/
// absolute units 1in = 2.54cm = 25.4mm = 72pt = 12pc
// for font-size ~ 1em = 12pt = 16px = 100%
public enum UiSizeUnit {
/** Unit for pixels. */
PIXEL("px", "pixel"),
/** Unit for percent, relative to the parent container. At topmost the entire window. */
PERCENT("%", "percent"),
/** Unit for <em>em</em> meaning a factor relative to the current font-size. */
EM("em", "font-size");
/** @see #getArgb() */
private final String key;
/** @see #toString() */
private final String title;
/**
* The constructor.
*
* @param value - see {@link #getArgb()}.
* @param title - see {@link #toString()}.
*/
private UiSizeUnit(String value, String title) {
this.key = value;
this.title = title;
}
/**
* @return the shorthand key of this unit.
*/
public String getKey() {
return this.key;
}
/**
* @return the display title of this unit (long form).
*/
public String getTitle() {
return this.title;
}
/**
* Creates a new {@link UiSize} with this {@link UiSizeUnit} as {@link UiSize#getUnit() unit}.
*
* @param amount is the {@link UiSize#getAmount() amount}.
* @return the new {@link UiSize}.
*/
public UiSize newSize(double amount) {
return new UiSize(amount, this);
}
@Override
public String toString() {
return this.key;
}
}
|
[
"hohwille@users.sourceforge.net"
] |
hohwille@users.sourceforge.net
|
76cceadee4130ad959556d6860459b5840efd245
|
fe0184aea2e874dad369c0d49996fc5490717f58
|
/src/main/java/com/scaffy/dao/hibernate/HibernateRESTDao.java
|
02867cbbee88a5e125e0ebe1f95e155c41d5b75d
|
[
"Apache-2.0"
] |
permissive
|
smeduru/spring-scaffy
|
142e540aaecb5b5410957494d479988608279903
|
47895378477abc0ca1c07dbb0792db88afbbe04c
|
refs/heads/master
| 2020-12-25T22:48:38.948477
| 2016-01-14T20:07:09
| 2016-01-14T20:07:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,957
|
java
|
/**
*
*/
package com.scaffy.dao.hibernate;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.springframework.beans.factory.annotation.Autowired;
import com.scaffy.controller.MultipartResponse;
import com.scaffy.dao.BasicRESTDao;
import com.scaffy.dao.DaoOperationException;
import com.scaffy.dao.bean.BeanMethod;
import com.scaffy.dao.bean.BeanMethod.Method;
import com.scaffy.dao.bean.BeanTraversalException;
import com.scaffy.dao.bean.BeanVisitor;
import com.scaffy.entity.attachment.Attachment;
/**
* @author Sherief Shawky
* @Email mcrakens@gmail.com
*/
public class HibernateRESTDao extends BasicRESTDao {
@Autowired
private Session session;
@PostConstruct
public void init() {
addVisitor(BeanMethod.Method.POST, new BeanVisitor() {
public void visit(Object bean) {
session.save(bean);
}
});
addVisitor(BeanMethod.Method.PUT, new BeanVisitor() {
public void visit(Object bean) {
session.merge(bean);
}
});
addVisitor(BeanMethod.Method.DELETE, new BeanVisitor() {
public void visit(Object bean) {
bean = session.merge(bean);
session.delete(bean);
}
});
}
/* (non-Javadoc)
* @see com.scaffy.dao.RESTDao#read(java.lang.Object, java.lang.Class)
*/
public Object read(Object key, Class<?> type) throws DaoOperationException {
Transaction t = session.beginTransaction();
Object model;
try {
t.begin();
model = session.get(type, (Serializable)key);
t.commit();
return model;
} catch(RuntimeException e) {
t.rollback();
throw new DaoOperationException(e);
}
}
/* (non-Javadoc)
* @see com.scaffy.dao.BasicRESTDao#execute(java.lang.Object, com.scaffy.dao.bean.BeanMethod.Method)
*/
@Override
protected void execute(Object model, Method method)
throws BeanTraversalException, DaoOperationException {
Transaction t = session.getTransaction();
try {
t.begin();
traverse(model, method);
t.commit();
} catch(BeanTraversalException e) {
t.rollback();
throw e;
} catch (RuntimeException e) {
t.rollback();
throw new DaoOperationException(e);
}
}
/* (non-Javadoc)
* @see com.scaffy.dao.BasicRESTDao#execute(com.scaffy.controller.MultipartResponse, com.scaffy.dao.bean.BeanMethod.Method)
*/
@Override
protected void execute(MultipartResponse request, Method method)
throws BeanTraversalException, DaoOperationException {
Transaction t = session.getTransaction();
try {
t.begin();
traverse(request.getModel(), method);
for(Attachment attachment : request.getAttachments()){
traverse(attachment, method);
}
t.commit();
} catch(BeanTraversalException e) {
t.rollback();
throw e;
} catch (RuntimeException e) {
t.rollback();
throw new DaoOperationException(e);
}
}
}
|
[
"mcrakens@gmail.com"
] |
mcrakens@gmail.com
|
7fe5ed9851e2487b5d2653aa8933016212eaf2f5
|
41650d800965e07477d46e5161dd18b541067e5a
|
/src/main/java/com/dmatek/zgb/setting/directly/node/set/pack/SetNodeServerIpUdpPack.java
|
ed686ab025c0753675f958cf444e98695b2107f9
|
[] |
no_license
|
287396159/ZGBWEBSSM
|
7a9a0a53fb8423f48bbbb80c1e5bd18cc2ba95ee
|
90eccec48e2fc6bf8db9254f62ac296608d7e781
|
refs/heads/master
| 2022-07-15T11:54:47.976581
| 2019-08-27T09:01:41
| 2019-08-27T09:01:41
| 204,664,275
| 0
| 0
| null | 2022-06-21T01:45:24
| 2019-08-27T09:08:42
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 943
|
java
|
package com.dmatek.zgb.setting.directly.node.set.pack;
import com.dmatek.zgb.setting.pack.abstract_.BaseDirectlyNodeSettingUdpPack;
public class SetNodeServerIpUdpPack extends BaseDirectlyNodeSettingUdpPack {
/**
*
*/
private static final long serialVersionUID = 1L;
public static final String KEY_NAME = "SetNodeServerIp";
private static final int SIZE = 10;
private static final byte TYPE = 0x01;
@Override
public String keyName() {
// TODO Auto-generated method stub
return KEY_NAME;
}
@Override
protected int size() {
// TODO Auto-generated method stub
return SIZE;
}
@Override
protected byte type() {
// TODO Auto-generated method stub
return TYPE;
}
@Override
protected void initBytes(byte[] bytes) {
if(null != bytes && bytes.length == 4) {
System.arraycopy(bytes, 0, getBytes(), 4, 4);
}
}
@Override
public int obtainDelayMs() {
// TODO Auto-generated method stub
return 4000;
}
}
|
[
"admin@qq.com"
] |
admin@qq.com
|
580d29eb44935031f0e1c793adf918c1b35830dc
|
7aeace6f380bf09d8c821b00e4eea397f3ec6523
|
/Chalenges/src/codingfor30days/day21generics/Main.java
|
905c79d57b7cfb1d210e89d5b5b897666ae6d05b
|
[] |
no_license
|
marom/TinkeringSandbox
|
04d5de0ce8e35df2e1aaa566bef02b67348135bc
|
e266285dade9c987ace830e53f6f020f4d1cff69
|
refs/heads/master
| 2020-05-02T04:44:39.247401
| 2019-06-09T09:28:31
| 2019-06-09T09:28:31
| 177,757,037
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,324
|
java
|
package codingfor30days.day21generics;
import java.util.Scanner;
public class Main {
static class Printer <T> {
public void printArray(T[] param) {
for (T element : param) {
System.out.println(element);
}
}
/**
* Method Name: printArray
* Print each element of the generic array on a new line. Do not return anything.
* @param A generic array
**/
// Write your code here
}
public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
Integer[] intArray = new Integer[n];
for (int i = 0; i < n; i++) {
intArray[i] = scanner.nextInt();
}
n = scanner.nextInt();
String[] stringArray = new String[n];
for (int i = 0; i < n; i++) {
stringArray[i] = scanner.next();
}
Printer<Integer> intPrinter = new Printer<>();
Printer<String> stringPrinter = new Printer<>();
intPrinter.printArray( intArray );
stringPrinter.printArray( stringArray );
if(Printer.class.getDeclaredMethods().length > 1){
System.out.println("The Printer class should only have 1 method named printArray.");
}
}
}
|
[
"maro.muszynski@gmail.com"
] |
maro.muszynski@gmail.com
|
6c0b8b133d8e473cc29056fb12e41ae168e6be11
|
43c012a9cdea1df74ddeaf16f7850ccaaedf0782
|
/CCP/plugin/network_service/fermat-ccp-plugin-network-service-crypto-addresses-bitdubai/src/main/java/com/bitdubai/fermat_ccp_plugin/layer/network_service/crypto_addresses/developer/bitdubai/version_1/exceptions/CantReceiveRequestException.java
|
8366edb323cb4244dc07adec421bf85689092408
|
[
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] |
permissive
|
franklinmarcano1970/fermat
|
ef08d8c46740ac80ebeec96eca85936ce36d3ee8
|
c5239a0d4c97414881c9baf152243e6311c9afd5
|
refs/heads/develop
| 2020-04-07T04:12:39.745585
| 2016-05-23T21:20:37
| 2016-05-23T21:20:37
| 52,887,265
| 1
| 22
| null | 2016-08-23T12:58:03
| 2016-03-01T15:26:55
|
Java
|
UTF-8
|
Java
| false
| false
| 1,149
|
java
|
package com.bitdubai.fermat_ccp_plugin.layer.network_service.crypto_addresses.developer.bitdubai.version_1.exceptions;
import com.bitdubai.fermat_api.FermatException;
/**
* The exception <code>com.bitdubai.fermat_ccp_plugin.layer.network_service.crypto_addresses.developer.bitdubai.version_1.exceptions.CantReceiveRequestException</code>
* is thrown when there is an error trying to receive a, address exchange request.
* <p>
* Created by Leon Acosta - (laion.cj91@gmail.com) on 17/10/2015.
*/
public class CantReceiveRequestException extends FermatException {
private static final String DEFAULT_MESSAGE = "CANT' RECEIVE REQUEST EXCEPTION";
public CantReceiveRequestException(String message, Exception cause, String context, String possibleReason) {
super(message, cause, context, possibleReason);
}
public CantReceiveRequestException(Exception cause, String context, String possibleReason) {
this(DEFAULT_MESSAGE, cause, context, possibleReason);
}
public CantReceiveRequestException(String context, String possibleReason) {
this(DEFAULT_MESSAGE, null, context, possibleReason);
}
}
|
[
"laion.cj91@gmail.com"
] |
laion.cj91@gmail.com
|
40b624179cf26c62cd4c3b26c722dd7ad6bb1256
|
460cb5b4e42f83f92a41181712fc34b047542ec5
|
/core/src/main/java/com/github/edgar615/sql/InsertBuilder.java
|
989d08d80777f22a8d7b50df7c98fc2e252cf284
|
[] |
no_license
|
edgar615/jdbc
|
87dae7b17ce6957a217f245392a0a76ee90b65f9
|
a86af37b3da05b0c557f3e1358a972ceafc38ae5
|
refs/heads/master
| 2022-07-01T18:12:38.146174
| 2021-03-08T09:05:03
| 2021-03-08T09:05:03
| 230,420,090
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,341
|
java
|
package com.github.edgar615.sql;
import com.google.common.base.Joiner;
import com.google.common.collect.Maps;
import java.util.ArrayList;
import java.util.List;
import java.util.Map.Entry;
import java.util.stream.Collectors;
public class InsertBuilder implements SqlBuilder {
private final String table;
private List<Entry<String, Object>> columns = new ArrayList<>();
private InsertBuilder(String table) {
this.table = table;
}
@Override
public SQLBindings build() {
List<String> prepare = columns.stream()
.map(c -> "?")
.collect(Collectors.toList());
List<String> fields = columns.stream()
.map(c -> c.getKey())
.collect(Collectors.toList());
List<Object> values = columns.stream()
.map(c -> c.getValue())
.collect(Collectors.toList());
StringBuilder sql = new StringBuilder("insert into ").append(table).append("(")
.append(Joiner.on(",").join(fields))
.append(") values(")
.append(Joiner.on(",").join(prepare))
.append(")");
return SQLBindings.create(sql.toString(), values);
}
public static InsertBuilder create(String table) {
return new InsertBuilder(table);
}
public InsertBuilder set(String column, Object value) {
columns.add(Maps.immutableEntry(column, value));
return this;
}
}
|
[
"edgar615@gmail.com"
] |
edgar615@gmail.com
|
76551d834062e3cba5c0c491467bcc89281f9fd7
|
e414a9b753b954de8d11425f8f282e314e330740
|
/src/main/java/com/impactsure/artnook/service/config/LoggingConfiguration.java
|
9deef084f667d1c7e2f7723582917125159037e3
|
[] |
no_license
|
infinitysiddhu/artnook-service
|
0a2cf39eb5ccc670219e843ba14c981647e12cb2
|
bbbb2c1595ca54447f7f1aef021a8f42006dac1a
|
refs/heads/master
| 2022-03-22T01:50:05.750633
| 2020-03-27T14:28:31
| 2020-03-27T14:28:31
| 250,555,840
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,332
|
java
|
package com.impactsure.artnook.service.config;
import static io.github.jhipster.config.logging.LoggingUtils.*;
import ch.qos.logback.classic.LoggerContext;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.github.jhipster.config.JHipsterProperties;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.info.BuildProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
/*
* Configures the console and Logstash log appenders from the app properties
*/
@Configuration
@RefreshScope
public class LoggingConfiguration {
public LoggingConfiguration(
@Value("${spring.application.name}") String appName,
@Value("${server.port}") String serverPort,
JHipsterProperties jHipsterProperties,
ObjectProvider<BuildProperties> buildProperties,
ObjectMapper mapper
)
throws JsonProcessingException {
LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
Map<String, String> map = new HashMap<>();
map.put("app_name", appName);
map.put("app_port", serverPort);
buildProperties.ifAvailable(it -> map.put("version", it.getVersion()));
String customFields = mapper.writeValueAsString(map);
JHipsterProperties.Logging loggingProperties = jHipsterProperties.getLogging();
JHipsterProperties.Logging.Logstash logstashProperties = loggingProperties.getLogstash();
if (loggingProperties.isUseJsonFormat()) {
addJsonConsoleAppender(context, customFields);
}
if (logstashProperties.isEnabled()) {
addLogstashTcpSocketAppender(context, customFields, logstashProperties);
}
if (loggingProperties.isUseJsonFormat() || logstashProperties.isEnabled()) {
addContextListener(context, customFields, loggingProperties);
}
if (jHipsterProperties.getMetrics().getLogs().isEnabled()) {
setMetricsMarkerLogbackFilter(context, loggingProperties.isUseJsonFormat());
}
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
7e5e08938026dc8d620855b095f0f3cbc77b62c6
|
1c08b1b5a9d5efb1e82a5d57abaa1b2551c20d01
|
/oauth-client-user/src/test/java/com/md/saas/oauthclientuser/OauthClientUserApplicationTests.java
|
f877bba0d03ef1e2f7187990c4ea499592bb893c
|
[] |
no_license
|
afterchj/spring-cloud-demo
|
15b95f8bf15f2f369bb7949e205889f3c636c08e
|
a3cb72e3f11d21da6aa7be5b4095de1fbf8d205d
|
refs/heads/master
| 2023-04-14T19:27:18.580602
| 2023-03-30T13:37:30
| 2023-03-30T13:37:30
| 160,455,369
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 228
|
java
|
package com.md.saas.oauthclientuser;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class OauthClientUserApplicationTests {
@Test
void contextLoads() {
}
}
|
[
"766256898@qq.com"
] |
766256898@qq.com
|
aadf418772d4d74b7c811e8f7c66283fcbfaae7a
|
ed3cb95dcc590e98d09117ea0b4768df18e8f99e
|
/project_1_2/src/e/e/g/Calc_1_2_4469.java
|
49e3fe07aa2e0af288b00eaeec6247bfc3376069
|
[] |
no_license
|
chalstrick/bigRepo1
|
ac7fd5785d475b3c38f1328e370ba9a85a751cff
|
dad1852eef66fcec200df10083959c674fdcc55d
|
refs/heads/master
| 2016-08-11T17:59:16.079541
| 2015-12-18T14:26:49
| 2015-12-18T14:26:49
| 48,244,030
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 131
|
java
|
package e.e.g;
public class Calc_1_2_4469 {
/** @return the sum of a and b */
public int add(int a, int b) {
return a+b;
}
}
|
[
"christian.halstrick@sap.com"
] |
christian.halstrick@sap.com
|
d7b83d86ac2a71071507ed46ef0351fa31a4d03a
|
0917a6cefcc3c3d6766080e58e83cd027522d0a8
|
/src/main/java/leetcode/MoveZeroes.java
|
ea0d55798880164bb10ddbaa446a66a8edaa4e35
|
[] |
no_license
|
lyk4411/untitled1_intellij
|
19bb583c8e631c4fab5826573fe30a61dff9d2d4
|
7a3e9ff784faa03c04a40cfdc0ba53af3344bb09
|
refs/heads/master
| 2022-12-22T13:58:32.218291
| 2020-01-22T08:58:04
| 2020-01-22T08:58:04
| 62,300,156
| 0
| 0
| null | 2022-12-16T03:16:30
| 2016-06-30T09:56:05
|
Java
|
UTF-8
|
Java
| false
| false
| 826
|
java
|
package leetcode;
import java.util.stream.Stream;
/**
* Created by lyk on 2017/2/23.
* Package name: leetcode
* Porject name: untitled1
*/
public class MoveZeroes {
public static void main(String[] args){
MoveZeroes mz = new MoveZeroes();
int[] a = new int[]{1,0,3,0,9,8,0,0,0,6,5,4};
mz.moveZeroes(a);
Integer[] ll = new Integer[a.length];
for(int i=0;i<a.length;i++){
ll[i] = a[i];
}
Stream.of(ll).forEach(System.out::println);
}
public void moveZeroes(int[] nums) {
if (nums == null || nums.length == 0) return;
int insertPos = 0;
for (int num: nums) {
if (num != 0) nums[insertPos++] = num;
}
while (insertPos < nums.length) {
nums[insertPos++] = 0;
}
}}
|
[
"moneyflying_2006@hotmail.com"
] |
moneyflying_2006@hotmail.com
|
0fa39e924fed799acdc04323957d96bc359b90dd
|
1a4770c215544028bad90c8f673ba3d9e24f03ad
|
/second/quark/src/main/java/com/ucpro/services/e/g.java
|
0b308d584fee34ddad8eb43b0fbf231fd6a41766
|
[] |
no_license
|
zhang1998/browser
|
e480fbd6a43e0a4886fc83ea402f8fbe5f7c7fce
|
4eee43a9d36ebb4573537eddb27061c67d84c7ba
|
refs/heads/master
| 2021-05-03T06:32:24.361277
| 2018-02-10T10:35:36
| 2018-02-10T10:35:36
| 120,590,649
| 8
| 10
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 233
|
java
|
package com.ucpro.services.e;
/* compiled from: ProGuard */
final class g implements Runnable {
final /* synthetic */ a a;
g(a aVar) {
this.a = aVar;
}
public final void run() {
this.a.b();
}
}
|
[
"2764207312@qq.com"
] |
2764207312@qq.com
|
d433ff781d855b507ae7983628b84e82625ca56c
|
0e2ed2adeabb458111e99a90c5872cb1189825c0
|
/app/src/main/java/com/mrtecks/epickmartclient/loginPOJO/loginBean.java
|
9f4d4826a38a34353257eb0fcab26b6faed30a51
|
[] |
no_license
|
mukulraw/epickclient
|
012a6da552882e8d1f642583a4fb51ff5b1c8727
|
813792edce254a3c3c302cca67b3c43c32d46f16
|
refs/heads/master
| 2020-08-18T05:59:40.661196
| 2019-11-05T12:55:06
| 2019-11-05T12:55:06
| 215,755,446
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 789
|
java
|
package com.mrtecks.epickmartclient.loginPOJO;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class loginBean {
@SerializedName("status")
@Expose
private String status;
@SerializedName("message")
@Expose
private String message;
@SerializedName("data")
@Expose
private Data data;
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public Data getData() {
return data;
}
public void setData(Data data) {
this.data = data;
}
}
|
[
"mukulraw199517@gmail.com"
] |
mukulraw199517@gmail.com
|
c8ba7fc091ca50905c49b6d780f224e8eb8f268c
|
e59b853b28a02d4417296064ba6b7594bb2decb0
|
/src/main/java/com/liujun/search/common/constant/SymbolMsg.java
|
f304e376eb3893b224cfa351378a134fef394621
|
[] |
no_license
|
miloluojia/searchEngine
|
b68c61177e10f9a20bda2a1c7a97a57d37096f43
|
a8b3efa5ec9a2fa3b917ffe499b497c66b49eefa
|
refs/heads/master
| 2023-04-22T05:56:24.891316
| 2021-12-24T05:59:55
| 2021-12-24T05:59:55
| 265,804,839
| 0
| 0
| null | 2020-05-21T09:14:55
| 2020-05-21T09:14:54
| null |
UTF-8
|
Java
| false
| false
| 930
|
java
|
package com.liujun.search.common.constant;
/**
* 系统符号信息
*
* @author liujun
* @version 0.0.1
* @date 2019/03/03
*/
public class SymbolMsg {
/** 换行符 */
public static final String LINE = "\n";
/** 换行标识的byte表示的值 */
public static final byte LINE_INT = 10;
/** 逗号 */
public static final String COMMA = ",";
/** 分号 */
public static final String SEMICOLON = ";";
/** 行数据结束标识 */
public static final String LINE_OVER = "\n\f\r\t";
/** 数据列分隔符 */
public static final String DATA_COLUMN = "\t";
/** 减号 */
public static final String MINUS = "-";
/** 路径分隔符 */
public static final String PATH = "/";
/** 下划细 */
public static final String UNDER_LINE = "_";
/** 左尖括号 */
public static final String LEFT_OPEN_ANGLE = "<";
/** 右尖括号 */
public static final String RIGHT_ANGLE = ">";
}
|
[
"422134235@qq.com"
] |
422134235@qq.com
|
3194b061b655de6eed30a7039c64ff2fe78d847d
|
6c69998676e9df8be55e28f6d63942b9f7cef913
|
/src/com/insigma/siis/local/business/helperUtil/GridRowNumColumnTag.java
|
ebeea503813c931af5e922b33916bafe3b625e2c
|
[] |
no_license
|
HuangHL92/ZHGBSYS
|
9dea4de5931edf5c93a6fbcf6a4655c020395554
|
f2ff875eddd569dca52930d09ebc22c4dcb47baf
|
refs/heads/master
| 2023-08-04T04:37:08.995446
| 2021-09-15T07:35:53
| 2021-09-15T07:35:53
| 406,219,162
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,211
|
java
|
package com.insigma.siis.local.business.helperUtil;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyTagSupport;
import org.apache.struts.util.ResponseUtils;
public class GridRowNumColumnTag
extends BodyTagSupport
{
private String _$3;
private String _$2;
private String _$1;
public String getHeader()
{
return this._$3;
}
public void setHeader(String paramString)
{
this._$3 = paramString;
}
public String getSortable()
{
return this._$2;
}
public void setSortable(String paramString)
{
this._$2 = paramString;
}
public String getWidth()
{
return this._$1;
}
public void setWidth(String paramString)
{
this._$1 = paramString;
}
public int doStartTag()
throws JspException
{
StringBuffer localStringBuffer = new StringBuffer();
localStringBuffer.append("new Ext.grid.RowNumberer({locked:true,");
localStringBuffer.append("header:'" + (this._$3==null?"":this._$3) + "',");
localStringBuffer.append("sortable:" + this._$2 + ",");
localStringBuffer.append("width:" + ((this._$1 == null) || (this._$1.equals("")) ? "23" : this._$1));
localStringBuffer.append("}),");
ResponseUtils.write(this.pageContext, localStringBuffer.toString());
return 0;
}
}
|
[
"351036848@qq.com"
] |
351036848@qq.com
|
779e8e492a69f1795e02208f836711ae56e61479
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/21/21_df656446c7e709e2bf4d6ac32f4149f2e8bd09c4/Link/21_df656446c7e709e2bf4d6ac32f4149f2e8bd09c4_Link_s.java
|
9623c71f63be308035380a2fe694078b6514cab1
|
[] |
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
| 968
|
java
|
package models.data;
import java.net.URL;
import java.net.MalformedURLException;
/**
* This clas represents a Link, as the combination of a name and a URL.
* @author Felix Van der Jeugt
*/
public class Link {
private String name;
private String url;
/**
* Creates a new link. This method links the given name to a URL created
* from the given string.
* @param name The name of the link.
* @param url The url as a String.
* @throws MalformedURLException If the given url is malformed.
*/
public Link(String name, String url) {
this.name = name;
this.url = url;
}
/**
* Returns the name of this link.
* @return The name of the link.
*/
public String getName() {
return name;
}
/**
* Return the URL this link points to.
* @return The URL.
*/
public String getUrl() {
return url;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
d93948264012df4eb6dcde73b5a5449cfc8a45dd
|
f0ef082568f43e3dbc820e2a5c9bb27fe74faa34
|
/com/google/android/gms/fitness/result/DataReadResult.java
|
21455eec192877891811915f06df3e662ebb235a
|
[] |
no_license
|
mzkh/Taxify
|
f929ea67b6ad12a9d69e84cad027b8dd6bdba587
|
5c6d0854396b46995ddd4d8b2215592c64fbaecb
|
refs/heads/master
| 2020-12-03T05:13:40.604450
| 2017-05-20T05:19:49
| 2017-05-20T05:19:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,460
|
java
|
package com.google.android.gms.fitness.result;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.google.android.gms.common.api.Result;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.common.internal.zzw;
import com.google.android.gms.fitness.data.Bucket;
import com.google.android.gms.fitness.data.DataSet;
import com.google.android.gms.fitness.data.DataSource;
import com.google.android.gms.fitness.data.DataSource.Builder;
import com.google.android.gms.fitness.data.DataType;
import com.google.android.gms.fitness.data.RawBucket;
import com.google.android.gms.fitness.data.RawDataSet;
import com.google.android.gms.fitness.request.DataReadRequest;
import com.google.android.gms.games.Games;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class DataReadResult implements Result, SafeParcelable {
public static final Creator<DataReadResult> CREATOR;
private final int zzFG;
private final Status zzHb;
private final List<DataSet> zzYD;
private final List<DataSource> zzYN;
private final List<Bucket> zzabM;
private int zzabN;
private final List<DataType> zzabO;
static {
CREATOR = new zzb();
}
DataReadResult(int versionCode, List<RawDataSet> dataSets, Status status, List<RawBucket> buckets, int batchCount, List<DataSource> uniqueDataSources, List<DataType> uniqueDataTypes) {
this.zzFG = versionCode;
this.zzHb = status;
this.zzabN = batchCount;
this.zzYN = uniqueDataSources;
this.zzabO = uniqueDataTypes;
this.zzYD = new ArrayList(dataSets.size());
for (RawDataSet dataSet : dataSets) {
this.zzYD.add(new DataSet(dataSet, (List) uniqueDataSources));
}
this.zzabM = new ArrayList(buckets.size());
for (RawBucket bucket : buckets) {
this.zzabM.add(new Bucket(bucket, (List) uniqueDataSources));
}
}
public DataReadResult(List<DataSet> dataSets, List<Bucket> buckets, Status status) {
this.zzFG = 5;
this.zzYD = dataSets;
this.zzHb = status;
this.zzabM = buckets;
this.zzabN = 1;
this.zzYN = new ArrayList();
this.zzabO = new ArrayList();
}
public static DataReadResult zza(Status status, DataReadRequest dataReadRequest) {
List arrayList = new ArrayList();
for (DataSource create : dataReadRequest.getDataSources()) {
arrayList.add(DataSet.create(create));
}
for (DataType dataType : dataReadRequest.getDataTypes()) {
arrayList.add(DataSet.create(new Builder().setDataType(dataType).setType(1).setName("Default").build()));
}
return new DataReadResult(arrayList, Collections.emptyList(), status);
}
private void zza(Bucket bucket, List<Bucket> list) {
for (Bucket bucket2 : list) {
if (bucket2.zzb(bucket)) {
for (DataSet zza : bucket.getDataSets()) {
zza(zza, bucket2.getDataSets());
}
return;
}
}
this.zzabM.add(bucket);
}
private void zza(DataSet dataSet, List<DataSet> list) {
for (DataSet dataSet2 : list) {
if (dataSet2.getDataSource().equals(dataSet.getDataSource())) {
dataSet2.zzb(dataSet.getDataPoints());
return;
}
}
list.add(dataSet);
}
private boolean zzc(DataReadResult dataReadResult) {
return this.zzHb.equals(dataReadResult.zzHb) && zzw.equal(this.zzYD, dataReadResult.zzYD) && zzw.equal(this.zzabM, dataReadResult.zzabM);
}
public int describeContents() {
return 0;
}
public boolean equals(Object that) {
return this == that || ((that instanceof DataReadResult) && zzc((DataReadResult) that));
}
public List<Bucket> getBuckets() {
return this.zzabM;
}
public DataSet getDataSet(DataSource dataSource) {
for (DataSet dataSet : this.zzYD) {
if (dataSource.equals(dataSet.getDataSource())) {
return dataSet;
}
}
throw new IllegalArgumentException(String.format("Attempting to read data for %s, which was not requested", new Object[]{dataSource.getStreamIdentifier()}));
}
public DataSet getDataSet(DataType dataType) {
for (DataSet dataSet : this.zzYD) {
if (dataType.equals(dataSet.getDataType())) {
return dataSet;
}
}
throw new IllegalArgumentException(String.format("Attempting to read data for %s, which was not requested", new Object[]{dataType.getName()}));
}
public List<DataSet> getDataSets() {
return this.zzYD;
}
public Status getStatus() {
return this.zzHb;
}
int getVersionCode() {
return this.zzFG;
}
public int hashCode() {
return zzw.hashCode(this.zzHb, this.zzYD, this.zzabM);
}
public String toString() {
return zzw.zzk(this).zza(Games.EXTRA_STATUS, this.zzHb).zza("dataSets", this.zzYD.size() > 5 ? this.zzYD.size() + " data sets" : this.zzYD).zza("buckets", this.zzabM.size() > 5 ? this.zzabM.size() + " buckets" : this.zzabM).toString();
}
public void writeToParcel(Parcel dest, int flags) {
zzb.zza(this, dest, flags);
}
public void zzb(DataReadResult dataReadResult) {
for (DataSet zza : dataReadResult.getDataSets()) {
zza(zza, this.zzYD);
}
for (Bucket zza2 : dataReadResult.getBuckets()) {
zza(zza2, this.zzabM);
}
}
List<DataSource> zzlx() {
return this.zzYN;
}
public int zzmn() {
return this.zzabN;
}
List<RawBucket> zzmo() {
List<RawBucket> arrayList = new ArrayList(this.zzabM.size());
for (Bucket rawBucket : this.zzabM) {
arrayList.add(new RawBucket(rawBucket, this.zzYN, this.zzabO));
}
return arrayList;
}
List<RawDataSet> zzmp() {
List<RawDataSet> arrayList = new ArrayList(this.zzYD.size());
for (DataSet rawDataSet : this.zzYD) {
arrayList.add(new RawDataSet(rawDataSet, this.zzYN, this.zzabO));
}
return arrayList;
}
List<DataType> zzmq() {
return this.zzabO;
}
}
|
[
"mozammil.khan@webyog.com"
] |
mozammil.khan@webyog.com
|
d114b56b4983a5933154c7dd27c8c15039265b80
|
3f5577dcc04b882e9fcdc73dc1846bd7f1c3a367
|
/twister2/resource-scheduler/src/java/edu/iu/dsc/tws/rsched/schedulers/mesos/mpi/MesosMPISlaveStarter.java
|
4cb03aba8185432d2167ef35fea4e9a653a00540
|
[
"Apache-2.0"
] |
permissive
|
twister2/twister2
|
0e1e967d3752fcc25b38226f355f5e4dde742168
|
c6ab9a5563a9e43d3fd1a16e5337da4edae71224
|
refs/heads/master
| 2020-03-24T08:12:41.481151
| 2018-07-27T15:24:33
| 2018-07-27T15:24:33
| 142,587,382
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,900
|
java
|
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package edu.iu.dsc.tws.rsched.schedulers.mesos.mpi;
import java.net.Inet4Address;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
import edu.iu.dsc.tws.common.config.Config;
import edu.iu.dsc.tws.common.config.ConfigLoader;
import edu.iu.dsc.tws.common.discovery.WorkerNetworkInfo;
import edu.iu.dsc.tws.master.client.JobMasterClient;
import edu.iu.dsc.tws.proto.system.job.JobAPI;
import edu.iu.dsc.tws.rsched.bootstrap.ZKContext;
import edu.iu.dsc.tws.rsched.schedulers.mesos.MesosWorkerController;
import edu.iu.dsc.tws.rsched.utils.JobUtils;
public final class MesosMPISlaveStarter {
public static final Logger LOG = Logger.getLogger(MesosMPISlaveStarter.class.getName());
private static Config config;
private static String jobName;
private static JobMasterClient jobMasterClient;
private static int workerID;
private static int numberOfWorkers;
private MesosMPISlaveStarter() { }
public static void main(String[] args) throws Exception {
Thread.sleep(5000);
workerID = Integer.parseInt(System.getenv("WORKER_ID"));
jobName = System.getenv("JOB_NAME");
String twister2Home = Paths.get("").toAbsolutePath().toString();
String configDir = "twister2-job/mesos/";
config = ConfigLoader.loadConfig(twister2Home, configDir);
//MesosWorkerLogger logger = new MesosWorkerLogger(config,
// "/persistent-volume/logs", "worker" + workerID);
//logger.initLogging();
MesosWorkerController workerController = null;
List<WorkerNetworkInfo> workerNetworkInfoList = new ArrayList<>();
try {
JobAPI.Job job = JobUtils.readJobFile(null, "twister2-job/"
+ jobName + ".job");
workerController = new MesosWorkerController(config, job,
Inet4Address.getLocalHost().getHostAddress(), 2022, workerID);
LOG.info("Initializing with zookeeper ");
workerController.initializeWithZooKeeper();
LOG.info("Waiting for all workers to join");
workerNetworkInfoList = workerController.waitForAllWorkersToJoin(
ZKContext.maxWaitTimeForAllWorkersToJoin(config));
LOG.info("Everyone has joined");
//container.init(worker.config, id, null, workerController, null);
} catch (Exception e) {
e.printStackTrace();
}
Thread.sleep(10000);
}
}
|
[
"vibhatha@gmail.com"
] |
vibhatha@gmail.com
|
90dab838eb0ba2fb288404fcb1f9492de5438b20
|
ea3648110899f7c34c98fb3650cc2fd3d8a16170
|
/main/java/dqmIII/blocks/decorate/render/DqmTileEntityRenderOokiihasiranakaNB.java
|
57cd68f56869a0d6498354b380c8346b520bb5fe
|
[] |
no_license
|
azelDqm/MC1.7.10_DQMIIINext
|
51392175b412bd7fa977b9663060bb169980928e
|
af65ee394fe42103655a3ef8ba052765d2934fd0
|
refs/heads/master
| 2021-01-25T05:22:11.733236
| 2015-03-24T15:23:55
| 2015-03-24T15:23:55
| 29,433,818
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,566
|
java
|
package dqmIII.blocks.decorate.render;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import dqmIII.blocks.decorate.model.DqmModelOokiihasiranaka;
import dqmIII.blocks.decorate.tileEntity.DqmTileEntityOokiihasiranakaNB;
@SideOnly(Side.CLIENT)
public class DqmTileEntityRenderOokiihasiranakaNB extends TileEntitySpecialRenderer
{
private DqmModelOokiihasiranaka model = new DqmModelOokiihasiranaka();
public void renderTileEntityAt(TileEntity var1, double var2, double var4, double var6, float var8)
{
DqmTileEntityOokiihasiranakaNB var9 = (DqmTileEntityOokiihasiranakaNB)var1;
GL11.glPushMatrix();
GL11.glTranslatef((float)var2 + 0.5F, (float)var4 + 1.5F, (float)var6 + 0.5F);
GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);
if (var9.getBlockMetadata() == 1)
{
GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
}
if (var9.getBlockMetadata() == 2)
{
GL11.glRotatef(-180.0F, 0.0F, 1.0F, 0.0F);
}
if (var9.getBlockMetadata() == 3)
{
GL11.glRotatef(270.0F, 0.0F, 1.0F, 0.0F);
}
this.bindTexture(new ResourceLocation("dqm:textures/model/OokiihasiraNB.png"));
GL11.glPushMatrix();
this.model.modelRender(0.0625F);
GL11.glPopMatrix();
GL11.glPopMatrix();
}
}
|
[
"azel.trancer@gmail.com"
] |
azel.trancer@gmail.com
|
d4809d85094abc5ad78f4cdeb575c2c9c7b61545
|
55042d6a62a329d6e2ab268f00c80663d868aeb5
|
/src/chap14/BookServlet.java
|
503efc1d1f4e4c3b3972d68d7af5bf206aa5984e
|
[] |
no_license
|
wkdalswn11/jsp20201103
|
92e38add2490ef35396d15a72b22a1e083f892cb
|
6dd2d410401fadd423d7d037435bef2d21c78b21
|
refs/heads/master
| 2023-01-20T07:42:37.676515
| 2020-12-02T08:52:48
| 2020-12-02T08:52:48
| 309,549,728
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,256
|
java
|
package chap14;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet implementation class BookServlet
*/
@WebServlet("/sample/book")
public class BookServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* @see HttpServlet#HttpServlet()
*/
public BookServlet() {
super();
// TODO Auto-generated constructor stub
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
response.getWriter().append("Served at: ").append(request.getContextPath());
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// request 파라미터 urt-8 처리
request.setCharacterEncoding("utf-8");
// 파라미터 얻기
String title = request.getParameter("title");
String body = request.getParameter("body");
String sql = "INSERT INTO book "
+ "(title, body, inserted) "
+ "VALUES (?, ?, SYSDATE) ";
String url = "jdbc:oracle:thin:@localhost:1521:orcl";
String user = "c##mydbms";
String password = "admin";
// 1.드라이버 로딩
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
// 2.연결생성
Connection con = DriverManager.getConnection(url, user, password);
// 3.statement 생성
PreparedStatement pstmt = con.prepareStatement(sql);
pstmt.setString(1, title);
pstmt.setString(2, body);
// 4. 쿼리실행
pstmt.executeQuery();
// 5. 결과 처리
// 6. statment, 연결 닫기
pstmt.close();
con.close();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
|
[
"wkdalswn133@naver.com"
] |
wkdalswn133@naver.com
|
3f773dc744e314acd4f871fb150b81d36a2a8523
|
ade60a0cd4d5ce7ce7d3ecc0ca9e1c599219705c
|
/app-fw/app-base/src/main/java/org/yy/base/dao/dynamic2/Expression.java
|
91c68334256d90ceb2a5eab6e092eee0a3aa6737
|
[
"Apache-2.0"
] |
permissive
|
yyitsz/myjavastudio
|
bc7d21ed8ece3eccc07cb0fbc6bbad0be04a7f60
|
f5563d45c36d1a0b0a7ce1f5a360ff6017f068e8
|
refs/heads/master
| 2021-06-11T23:04:43.228001
| 2017-03-24T10:05:27
| 2017-03-24T10:05:27
| 17,080,356
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 361
|
java
|
package org.yy.base.dao.dynamic2;
import java.util.ArrayList;
import java.util.List;
public abstract class Expression
{
protected List<Expression> lists = new ArrayList<Expression>();
public void Append(Expression exp)
{
lists.add(exp);
}
public abstract String Eval(ExpressionContext ctx);
}
|
[
"yyitsz@163.com"
] |
yyitsz@163.com
|
571319eeb7c721bbe79a7967651093f196aea873
|
0b4844d550c8e77cd93940e4a1d8b06d0fbeabf7
|
/JavaSource/dream/req/work/service/spring/MaWoReqDetailServiceImpl.java
|
ab9c41fced7217cd45d8a99a3aabaca88d750fdf
|
[] |
no_license
|
eMainTec-DREAM/DREAM
|
bbf928b5c50dd416e1d45db3722f6c9e35d8973c
|
05e3ea85f9adb6ad6cbe02f4af44d941400a1620
|
refs/heads/master
| 2020-12-22T20:44:44.387788
| 2020-01-29T06:47:47
| 2020-01-29T06:47:47
| 236,912,749
| 0
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 7,222
|
java
|
package dream.req.work.service.spring;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import common.bean.MwareConfig;
import common.bean.User;
import common.util.CommonUtil;
import common.util.MailUtil;
import dream.mgr.message.service.MgrMessageTransDetailService;
import dream.req.work.dao.MaWoReqDetailDAO;
import dream.req.work.dao.MaWoReqResDetailDAO;
import dream.req.work.dto.MaWoReqCommonDTO;
import dream.req.work.dto.MaWoReqDetailDTO;
import dream.req.work.service.MaWoReqDetailService;
import dream.work.alarm.req.dto.WorkAlarmReqDTO;
import dream.work.alarm.req.service.WorkAlarmReqService;
/**
* 작업요청서 - 상세 serviceimpl
* @author kim21017
* @version $Id:$
* @since 1.0
* @spring.bean id="maWoReqDetailServiceTarget"
* @spring.txbn id="maWoReqDetailService"
* @spring.property name="maWoReqDetailDAO" ref="maWoReqDetailDAO"
* @spring.property name="maWoReqResDetailDAO" ref="maWoReqResDetailDAO"
* @spring.property name="mgrMessageTransDetailService" ref="mgrMessageTransDetailService"
*/
public class MaWoReqDetailServiceImpl implements MaWoReqDetailService
{
private MaWoReqDetailDAO maWoReqDetailDAO = null;
private MaWoReqResDetailDAO maWoReqResDetailDAO = null;
private MgrMessageTransDetailService mgrMessageTransDetailService = null;
public MaWoReqResDetailDAO getMaWoReqResDetailDAO()
{
return maWoReqResDetailDAO;
}
public void setMaWoReqResDetailDAO(MaWoReqResDetailDAO maWoReqResDetailDAO)
{
this.maWoReqResDetailDAO = maWoReqResDetailDAO;
}
public MaWoReqDetailDAO getMaWoReqDetailDAO()
{
return maWoReqDetailDAO;
}
public void setMaWoReqDetailDAO(MaWoReqDetailDAO maWoReqDetailDAO)
{
this.maWoReqDetailDAO = maWoReqDetailDAO;
}
public MgrMessageTransDetailService getMgrMessageTransDetailService()
{
return mgrMessageTransDetailService;
}
public void setMgrMessageTransDetailService(
MgrMessageTransDetailService mgrMessageTransDetailService)
{
this.mgrMessageTransDetailService = mgrMessageTransDetailService;
}
public MaWoReqDetailDTO findDetail(MaWoReqCommonDTO maWoReqCommonDTO, User loginUser)throws Exception
{
return maWoReqDetailDAO.findDetail(maWoReqCommonDTO, loginUser);
}
public List findWoRecReport(MaWoReqDetailDTO maWoReqDetailDTO, User user) {
Map<String, Object> reportMap = null;
List<Map<String, Object>> reportList = new ArrayList<Map<String, Object>>();
List detailList = maWoReqDetailDAO.findWoRecReport(maWoReqDetailDTO,user);
reportMap = (Map)detailList.get(0);
reportList.add((Map)reportMap);
return reportList;
}
public int updateDetail(final MaWoReqDetailDTO maWoReqDetailDTO, final User user) throws Exception
{
int resultCnt = 0;
String oldRecBy = maWoReqDetailDAO.getRecBy(maWoReqDetailDTO, user);
String newRecBy = maWoReqDetailDTO.getRecEmpId();
boolean isChangedRecBy = false;
if(!"".equals(newRecBy)&&!oldRecBy.equals(newRecBy)){
isChangedRecBy = true;
}
resultCnt = maWoReqDetailDAO.updateDetail(maWoReqDetailDTO,user);
if ("Y".equals(MwareConfig.getIsUseMailService())&&isChangedRecBy){
//변경된 작업처리자에게 메일 보내기.
MailUtil.sendMail("RQC20", maWoReqDetailDTO.getWoReqId(), user);
}
return resultCnt;
}
public int insertDetail(MaWoReqDetailDTO maWoReqDetailDTO, User user) throws Exception
{
int resultCnt = 0;
resultCnt = maWoReqDetailDAO.insertDetail(maWoReqDetailDTO, user);
// 설비Alarm 에서 작업요청 신규 생성 할 경우(TAALARAMREQ에 INSERT)
if(!"".equals(maWoReqDetailDTO.getAlarmListId()) || maWoReqDetailDTO.getAlarmListId() != null) {
WorkAlarmReqService workAlarmReqService = (WorkAlarmReqService)CommonUtil.getBean("workAlarmReqService", user);
WorkAlarmReqDTO workAlarmReqDTO = new WorkAlarmReqDTO();
workAlarmReqDTO.setAlarmListId(maWoReqDetailDTO.getAlarmListId());
workAlarmReqDTO.setWoReqId(maWoReqDetailDTO.getWoReqId());
workAlarmReqService.insertDetail(workAlarmReqDTO, user);
}
return resultCnt;
}
@Override
public int updateStatus(final MaWoReqDetailDTO maWoReqDetailDTO, final User user) throws Exception
{
int resultCnt = 0;
resultCnt = maWoReqDetailDAO.updateStatus(maWoReqDetailDTO,user);
MailUtil.sendMail("RQC10", maWoReqDetailDTO.getWoReqId(), user);
return resultCnt;
}
@Override
public int updateIncStatus(final MaWoReqDetailDTO maWoReqDetailDTO, final User user) throws Exception
{
int resultCnt = 0;
resultCnt = maWoReqDetailDAO.updateIncStatus(maWoReqDetailDTO,user);
MailUtil.sendMail("RQC10", maWoReqDetailDTO.getWoReqId(), user);
return resultCnt;
}
@Override
public int updateReqStatus(final MaWoReqDetailDTO maWoReqDetailDTO, final User user) throws Exception
{
int resultCnt = 0;
resultCnt = maWoReqDetailDAO.updateReqStatus(maWoReqDetailDTO, user);
return resultCnt;
}
@Override
public String checkValidRecDept(MaWoReqDetailDTO maWoReqDetailDTO, User user) throws Exception
{
return maWoReqDetailDAO.checkValidRecDept(maWoReqDetailDTO, user);
}
@Override
public String checkStatus(MaWoReqCommonDTO maWoReqCommonDTO, User user) throws Exception
{
String status = "";
int chkCount = chkExistCnt(maWoReqCommonDTO, user);
if(chkCount != 0) {
status = "WRK";
} else {
status = "COM";
}
maWoReqDetailDAO.changeHdrStatus(maWoReqCommonDTO.getWoReqId(), status, user);
if(!"".equals(maWoReqCommonDTO.getWoReqResId())) {
maWoReqResDetailDAO.setWoResStatus(maWoReqCommonDTO, status, user);
}
return status;
}
@Override
public int chkExistCnt(MaWoReqCommonDTO maWoReqCommonDTO, User user) throws Exception
{
int chkCount = 0;
String woReqId = maWoReqCommonDTO.getWoReqId();
String chkWoExistCnt = maWoReqDetailDAO.chkWoExistCnt(woReqId, user, "WO");
String chkInvtExistCnt = maWoReqDetailDAO.chkInvtExistCnt(woReqId, user, "INVT");
if(!"0".equals(chkWoExistCnt) || !"0".equals(chkInvtExistCnt)) {
int chkInvtStCnt = Integer.parseInt(maWoReqDetailDAO.chkInvtStCnt(woReqId, user, "INVT"));
int chkWoStCnt = Integer.parseInt(maWoReqDetailDAO.chkWoStCnt(woReqId, user, "WO"));
chkCount = chkInvtStCnt + chkWoStCnt;
} else {
chkCount = 1;
}
return chkCount;
}
}
|
[
"HN4741@10.31.0.185"
] |
HN4741@10.31.0.185
|
2089b97d28aacc20d5c9dc4bbdf9d614079356f7
|
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
|
/java/lucene-solr/2017/8/FloatPointField.java
|
c70655ad26bbb3adb149ce481093ad122f935f72
|
[] |
no_license
|
rosoareslv/SED99
|
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
|
a062c118f12b93172e31e8ca115ce3f871b64461
|
refs/heads/main
| 2023-02-22T21:59:02.703005
| 2021-01-28T19:40:51
| 2021-01-28T19:40:51
| 306,497,459
| 1
| 1
| null | 2020-11-24T20:56:18
| 2020-10-23T01:18:07
| null |
UTF-8
|
Java
| false
| false
| 6,494
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.solr.schema;
import java.util.Collection;
import org.apache.lucene.document.FloatPoint;
import org.apache.lucene.document.StoredField;
import org.apache.lucene.index.DocValuesType;
import org.apache.lucene.index.IndexableField;
import org.apache.lucene.queries.function.ValueSource;
import org.apache.lucene.queries.function.valuesource.FloatFieldSource;
import org.apache.lucene.queries.function.valuesource.MultiValuedFloatFieldSource;
import org.apache.lucene.search.MatchNoDocsQuery;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.SortField;
import org.apache.lucene.search.SortedNumericSelector;
import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.BytesRefBuilder;
import org.apache.lucene.util.NumericUtils;
import org.apache.solr.search.QParser;
import org.apache.solr.uninverting.UninvertingReader.Type;
/**
* {@code PointField} implementation for {@code Float} values.
* @see PointField
* @see FloatPoint
*/
public class FloatPointField extends PointField implements FloatValueFieldType {
public FloatPointField() {
type = NumberType.FLOAT;
}
@Override
public Object toNativeType(Object val) {
if (val == null) return null;
if (val instanceof Number) return ((Number) val).floatValue();
if (val instanceof String) return Float.parseFloat((String) val);
return super.toNativeType(val);
}
@Override
public Query getPointRangeQuery(QParser parser, SchemaField field, String min, String max, boolean minInclusive,
boolean maxInclusive) {
float actualMin, actualMax;
if (min == null) {
actualMin = Float.NEGATIVE_INFINITY;
} else {
actualMin = parseFloatFromUser(field.getName(), min);
if (!minInclusive) {
if (actualMin == Float.POSITIVE_INFINITY) return new MatchNoDocsQuery();
actualMin = FloatPoint.nextUp(actualMin);
}
}
if (max == null) {
actualMax = Float.POSITIVE_INFINITY;
} else {
actualMax = parseFloatFromUser(field.getName(), max);
if (!maxInclusive) {
if (actualMax == Float.NEGATIVE_INFINITY) return new MatchNoDocsQuery();
actualMax = FloatPoint.nextDown(actualMax);
}
}
return FloatPoint.newRangeQuery(field.getName(), actualMin, actualMax);
}
@Override
public Object toObject(SchemaField sf, BytesRef term) {
return FloatPoint.decodeDimension(term.bytes, term.offset);
}
@Override
public Object toObject(IndexableField f) {
final Number val = f.numericValue();
if (val != null) {
if (f.fieldType().stored() == false && f.fieldType().docValuesType() == DocValuesType.NUMERIC) {
return Float.intBitsToFloat(val.intValue());
} else if (f.fieldType().stored() == false && f.fieldType().docValuesType() == DocValuesType.SORTED_NUMERIC) {
return NumericUtils.sortableIntToFloat(val.intValue());
} else {
return val;
}
} else {
throw new AssertionError("Unexpected state. Field: '" + f + "'");
}
}
@Override
protected Query getExactQuery(SchemaField field, String externalVal) {
return FloatPoint.newExactQuery(field.getName(), parseFloatFromUser(field.getName(), externalVal));
}
@Override
public Query getSetQuery(QParser parser, SchemaField field, Collection<String> externalVal) {
assert externalVal.size() > 0;
if (!field.indexed()) {
return super.getSetQuery(parser, field, externalVal);
}
float[] values = new float[externalVal.size()];
int i = 0;
for (String val:externalVal) {
values[i] = parseFloatFromUser(field.getName(), val);
i++;
}
return FloatPoint.newSetQuery(field.getName(), values);
}
@Override
protected String indexedToReadable(BytesRef indexedForm) {
return Float.toString(FloatPoint.decodeDimension(indexedForm.bytes, indexedForm.offset));
}
@Override
public void readableToIndexed(CharSequence val, BytesRefBuilder result) {
result.grow(Float.BYTES);
result.setLength(Float.BYTES);
FloatPoint.encodeDimension(parseFloatFromUser(null, val.toString()), result.bytes(), 0);
}
@Override
public SortField getSortField(SchemaField field, boolean top) {
field.checkSortability();
Object missingValue = null;
boolean sortMissingLast = field.sortMissingLast();
boolean sortMissingFirst = field.sortMissingFirst();
if (sortMissingLast) {
missingValue = top ? Float.NEGATIVE_INFINITY : Float.POSITIVE_INFINITY;
} else if (sortMissingFirst) {
missingValue = top ? Float.POSITIVE_INFINITY : Float.NEGATIVE_INFINITY;
}
SortField sf = new SortField(field.getName(), SortField.Type.FLOAT, top);
sf.setMissingValue(missingValue);
return sf;
}
@Override
public Type getUninversionType(SchemaField sf) {
if (sf.multiValued()) {
return null;
} else {
return Type.FLOAT_POINT;
}
}
@Override
public ValueSource getValueSource(SchemaField field, QParser qparser) {
field.checkFieldCacheSource();
return new FloatFieldSource(field.getName());
}
@Override
protected ValueSource getSingleValueSource(SortedNumericSelector.Type choice, SchemaField f) {
return new MultiValuedFloatFieldSource(f.getName(), choice);
}
@Override
public IndexableField createField(SchemaField field, Object value) {
float floatValue = (value instanceof Number) ? ((Number) value).floatValue() : Float.parseFloat(value.toString());
return new FloatPoint(field.getName(), floatValue);
}
@Override
protected StoredField getStoredField(SchemaField sf, Object value) {
return new StoredField(sf.getName(), (Float) this.toNativeType(value));
}
}
|
[
"rodrigosoaresilva@gmail.com"
] |
rodrigosoaresilva@gmail.com
|
5e14992454b7d11b55ae37e7e440825724e9430e
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/1/1_1ea8df8c2c857a7bff27312249a5bd3f8d43c9f4/PlayGameActivity/1_1ea8df8c2c857a7bff27312249a5bd3f8d43c9f4_PlayGameActivity_t.java
|
416bc19de3a2537d9f9769f8be29358b775dbc0d
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 4,451
|
java
|
/*
* PlayGameActivity;
*
* The Activity in which the game takes place.
* Extras can be passed to this Activity
* Including:
*
* EXTRA_PUZZLE_COLUMNS - The number of columns in puzzle
* EXTRA_PUZZLE_ROWS - number of rows in puzzle
* EXTRA_IMAGE_PATH - image path location
*
* Values that aren't passed will be defaulted to the values in GameConst.java
*
* -TT
*/
package edu.csun.comp380.group2.islide.engine;
import org.andengine.engine.camera.Camera;
import org.andengine.engine.handler.IUpdateHandler;
import org.andengine.engine.options.EngineOptions;
import org.andengine.engine.options.ScreenOrientation;
import org.andengine.engine.options.resolutionpolicy.RatioResolutionPolicy;
import org.andengine.entity.scene.IOnSceneTouchListener;
import org.andengine.entity.scene.Scene;
import org.andengine.entity.scene.background.Background;
import org.andengine.entity.sprite.AnimatedSprite;
import org.andengine.entity.sprite.Sprite;
import org.andengine.entity.sprite.TiledSprite;
import org.andengine.entity.util.FPSLogger;
import org.andengine.input.touch.TouchEvent;
import org.andengine.opengl.texture.Texture;
import org.andengine.opengl.texture.TextureOptions;
import org.andengine.opengl.texture.atlas.bitmap.BitmapTextureAtlas;
import org.andengine.opengl.texture.atlas.bitmap.BitmapTextureAtlasTextureRegionFactory;
import org.andengine.opengl.texture.atlas.bitmap.BuildableBitmapTextureAtlas;
import org.andengine.opengl.texture.region.ITiledTextureRegion;
import org.andengine.opengl.texture.region.TextureRegion;
import org.andengine.opengl.texture.region.TextureRegionFactory;
import org.andengine.ui.activity.SimpleBaseGameActivity;
import edu.csun.comp380.group2.islide.entity.PuzzleManager;
import edu.csun.comp380.group2.islide.entity.SlideTile;
import edu.csun.comp380.group2.islide.util.GameConst;
import android.os.Bundle;
public class PlayGameActivity extends SimpleBaseGameActivity {
//Need to make dynamic at some point....
private final int CAMERA_WIDTH = GameConst.getInstance()
.getDefaultCameraWidth();
private final int CAMER_HEIGHT = GameConst.getInstance()
.getDefaultCameraHeight();
private Scene mScene;
private Camera mCamera;
BitmapTextureAtlas mGameImage;
ITiledTextureRegion mTile;
Bundle extras;
PuzzleManager puzzle;
private int puzzleRows;
private int puzzleColumns;
private String imagePath;
//This important to determine if the image we are using is an
//Asset (we provide it) or a File location
private boolean useAssetImage;
@Override
public EngineOptions onCreateEngineOptions() {
mCamera = new Camera(0, 0, CAMERA_WIDTH, CAMER_HEIGHT);
EngineOptions engineOptions = new EngineOptions(true,
ScreenOrientation.PORTRAIT_FIXED, new RatioResolutionPolicy(
CAMERA_WIDTH, CAMER_HEIGHT), mCamera);
return engineOptions;
}
@Override
protected void onCreateResources() {
extras = this.getIntent().getExtras();
if (extras != null) {
puzzleColumns = extras.getInt("EXTRA_PUZZLE_COLUMNS");
puzzleRows = extras.getInt("EXTRA_PUZZLE_ROWS");
//May require reworking when we get more default images
if(getIntent().hasExtra("EXTRA_IMAGE_PATH"))
{
imagePath = extras.getString("EXTRA_IMAGE_PATH");
useAssetImage = false;
}
else
{
imagePath = GameConst.getInstance().getDefaultImagePath();
useAssetImage = true;
}
}
else
{
puzzleColumns = GameConst.getInstance().getDefaultPuzzleColumns();
puzzleRows = GameConst.getInstance().getDefaultPuzzleRows();
imagePath = GameConst.getInstance().getDefaultImagePath();
}
mGameImage = new BitmapTextureAtlas(this.getTextureManager(), 512, 512);
puzzle = new PuzzleManager(GameConst.getInstance().getPuzzleWidth(),
GameConst.getInstance().getPuzzleHeight(), puzzleColumns,
puzzleRows, mGameImage, this, imagePath);
}
@Override
protected Scene onCreateScene() {
mScene = new Scene();
//Allows the puzzle to update every frame
mScene.registerUpdateHandler(this.puzzle);
mScene.setBackground(new Background(0, 125, 58));
SlideTile[][] tiles = puzzle.getTiles();
for (int i = 0 ; i < tiles.length; i++) {
for(int j = 0; j < tiles[0].length; j++ ){
mScene.registerTouchArea(tiles[i][j]);
mScene.attachChild(tiles[i][j]);
}
}
return mScene;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
4a7d66e41fee43a45a6fa80b9e29c735a6467599
|
1632025c49257123c32636b054bf4cd2b7d530b4
|
/src/main/java/br/com/zupacademy/guilhermesantos/transacao/dto/ModelEstabelecimentoResponseDTO.java
|
8e109c9c1c910001e85c6828aba39e7abee29d70
|
[
"Apache-2.0"
] |
permissive
|
GuilhermeJWT/orange-talents-04-template-transacao
|
21bf0bdc13e90a3f8953d97747af6e0d0aacaa83
|
fc04aeda740ff4e261ca47df555bfd29d45dc90c
|
refs/heads/main
| 2023-05-05T03:55:45.076536
| 2021-05-28T20:36:10
| 2021-05-28T20:36:10
| 371,147,955
| 0
| 0
|
Apache-2.0
| 2021-05-26T19:29:45
| 2021-05-26T19:29:44
| null |
UTF-8
|
Java
| false
| false
| 571
|
java
|
package br.com.zupacademy.guilhermesantos.transacao.dto;
import br.com.zupacademy.guilhermesantos.transacao.model.ModelEstabelecimento;
public class ModelEstabelecimentoResponseDTO {
private String nome;
private String cidade;
private String endereco;
public ModelEstabelecimento converte(){
return new ModelEstabelecimento(nome, cidade, endereco);
}
public String getNome() {
return nome;
}
public String getCidade() {
return cidade;
}
public String getEndereco() {
return endereco;
}
}
|
[
"guiromanno@gmail.com"
] |
guiromanno@gmail.com
|
d76425300cdb51926458cbfced801f52496d3e7c
|
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
|
/java/neo4j/2019/12/DatabaseLogProvider.java
|
f83ca68322df6f303e32e41da09248e916880525
|
[] |
no_license
|
rosoareslv/SED99
|
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
|
a062c118f12b93172e31e8ca115ce3f871b64461
|
refs/heads/main
| 2023-02-22T21:59:02.703005
| 2021-01-28T19:40:51
| 2021-01-28T19:40:51
| 306,497,459
| 1
| 1
| null | 2020-11-24T20:56:18
| 2020-10-23T01:18:07
| null |
UTF-8
|
Java
| false
| false
| 1,729
|
java
|
/*
* Copyright (c) 2002-2019 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.logging.internal;
import org.neo4j.logging.AbstractLogProvider;
import org.neo4j.logging.LogProvider;
import org.neo4j.logging.NullLogProvider;
public class DatabaseLogProvider extends AbstractLogProvider<DatabaseLog>
{
private final DatabaseLogContext logContext;
private final LogProvider delegate;
public DatabaseLogProvider( DatabaseLogContext logContext, LogProvider delegate )
{
this.logContext = logContext;
this.delegate = delegate;
}
public static DatabaseLogProvider nullDatabaseLogProvider()
{
return new DatabaseLogProvider( null, NullLogProvider.getInstance() );
}
@Override
protected DatabaseLog buildLog( Class<?> loggingClass )
{
return new DatabaseLog( logContext, delegate.getLog( loggingClass ) );
}
@Override
protected DatabaseLog buildLog( String name )
{
return new DatabaseLog( logContext, delegate.getLog( name ) );
}
}
|
[
"rodrigosoaresilva@gmail.com"
] |
rodrigosoaresilva@gmail.com
|
afa1f5d013dce2461ad18822c96da7f91f9c984e
|
9254e7279570ac8ef687c416a79bb472146e9b35
|
/imm-20170906/src/main/java/com/aliyun/imm20170906/models/GetOfficeEditURLResponse.java
|
4b809157892ff8676292076d39764519b212d343
|
[
"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
| 1,070
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.imm20170906.models;
import com.aliyun.tea.*;
public class GetOfficeEditURLResponse extends TeaModel {
@NameInMap("headers")
@Validation(required = true)
public java.util.Map<String, String> headers;
@NameInMap("body")
@Validation(required = true)
public GetOfficeEditURLResponseBody body;
public static GetOfficeEditURLResponse build(java.util.Map<String, ?> map) throws Exception {
GetOfficeEditURLResponse self = new GetOfficeEditURLResponse();
return TeaModel.build(map, self);
}
public GetOfficeEditURLResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public GetOfficeEditURLResponse setBody(GetOfficeEditURLResponseBody body) {
this.body = body;
return this;
}
public GetOfficeEditURLResponseBody getBody() {
return this.body;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
a640e8798009887c0716a239663655db358ddc1d
|
fedb6e46c292a1049021d4e13449921b624ae7f7
|
/src/main/java/games/bevs/core/module/chat/types/FilteredWords.java
|
395bbf5682b704805c666e39e02fd07d2c470e24
|
[] |
no_license
|
CyberFlameGO/BevsCore
|
b99957d4f59895bc81bac0515a0b8f78a05d4138
|
d9bac09d360b9e67d64b57e98b29190c5456fa4c
|
refs/heads/master
| 2022-06-22T08:19:27.265877
| 2019-09-17T12:42:43
| 2019-09-17T12:42:43
| 233,333,934
| 0
| 0
| null | 2022-05-20T21:51:59
| 2020-01-12T03:43:23
| null |
UTF-8
|
Java
| false
| false
| 454
|
java
|
package games.bevs.core.module.chat.types;
import java.util.Arrays;
import java.util.HashSet;
import lombok.Getter;
public class FilteredWords
{
@Getter
private HashSet<String> words = new HashSet<>();
public boolean isFiltered(String word)
{
return words.contains(word);
}
public void populate()
{
words.addAll(
Arrays.asList(
new String[]
{
"hypixel",
"mineplex",
}
)
);
}
}
|
[
"github@heathlogancampbell.com"
] |
github@heathlogancampbell.com
|
67b324230c099e911f1dc48769e69f610f0d8094
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/27/27_bce304985cd16aa360a07a4b49041ef49e05bbb4/IJavaBreakpoint/27_bce304985cd16aa360a07a4b49041ef49e05bbb4_IJavaBreakpoint_t.java
|
f337726603c0945d830da1789f1e253d150e1311
|
[] |
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
| 5,862
|
java
|
package org.eclipse.jdt.debug.core;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.model.IBreakpoint;
import org.eclipse.jdt.core.IType;
/**
* IJavaBreakpoints extend IBreakpoint by adding
* the following notions:
* <ul>
* <li>hit count - a number of times that this breakpoint
* will be "hit" before it suspends execution
* <li>type - the type the given breakpoint is installed in
* <li>installed - whether the given breakpoint is installed
* in a debug target. when a breakpoint is installed in a debug
* target, it may cause the suspension of that target
*
* Clients are not intended to implement this interface
*/
public interface IJavaBreakpoint extends IBreakpoint {
/**
* Suspend policy constant indicating a breakpoint will
* suspend the target VM when hit.
*/
public static final int SUSPEND_VM = 1;
/**
* Default suspend policy constant indicating a breakpoint will
* suspend only the thread in which it occurred.
*/
public static final int SUSPEND_THREAD = 2;
/**
* Returns whether this breakpoint is installed in at least
* one debug target.
*
* @return whether this breakpoint is installed
* @exception CoreException if a <code>CoreException</code> is
* thrown accessing this breakpoint's underlying marker
*/
public boolean isInstalled() throws CoreException;
/**
* Returns the fully qualified name of type this breakpoint
* is located in, or <code>null</code> is this breakpoint
* is not located in a type - for example, a pattern breakpoint
*
* @return the fully qualified name of the type this breakpoint
* is located in, or <code>null</code>
* @exception CoreException if a <code>CoreException</code> is
* thrown accessing this breakpoint's underlying marker
*/
public String getTypeName() throws CoreException;
/**
* Returns this breakpoint's hit count or, -1 if this
* breakpoint does not have a hit count.
*
* @return this breakpoint's hit count, or -1
* @exception CoreException if a <code>CoreException</code> is
* thrown accessing this breakpoint's underlying marker
*/
public int getHitCount() throws CoreException;
/**
* Sets the hit count attribute of this breakpoint.
* If this breakpoint is currently disabled and the hit count
* is set greater than -1, the breakpoint is enabled.
*
* @param count the new hit count
* @exception CoreException if a <code>CoreException</code> is
* thrown accessing this breakpoint's underlying marker
*/
public void setHitCount(int count) throws CoreException;
/**
* Sets whether all threads in the target VM will be suspended
* when this breakpoint is hit. When <code>SUSPEND_VM</code> the target
* VM is suspended, and when <code>SUSPEND_THREAD</code> only the thread
* in which the breakpoint occurred is suspended.
*
* @param suspendPolicy one of <code>SUSPEND_VM</code> or
* <code>SUSPEND_THREAD</code>
* @exception CoreException if a <code>CoreException</code> is
* thrown accessing this breakpoint's underlying marker
*/
public void setSuspendPolicy(int suspendPolicy) throws CoreException;
/**
* Returns the suspend policy used by this breakpoint, one of
* <code>SUSPEND_VM</code> or <code>SUSPEND_THREAD</code>.
*
* @return one of <code>SUSPEND_VM</code> or <code>SUSPEND_THREAD</code>
* @exception CoreException if a <code>CoreException</code> is
* thrown accessing this breakpoint's underlying marker
*/
public int getSuspendPolicy() throws CoreException;
/**
* Set the given threads as the thread in which this
* breakpoint is enabled. The previous thread filter, if
* any, is lost.
*
* A thread filter applies to a single debug target and is not persisted
* across invokations.
*
* While this breakpoint has a thread filter,
* it will only suspend in the filtered thread.
*
* @exception CoreException if a <code>CoreException</code> is
* thrown accessing this breakpoint's underlying marker
*/
public void setThreadFilter(IJavaThread thread) throws CoreException;
/**
* Removes this breakpoint's thread filter in the given target, if any.
* Has no effect if this breakpoint does not have a filter in the given target.
*
* While this breakpoint has a thread filter in the given target,
* it will only suspend threads which are filtered.
*
* @param target the target whose thread filter will be removed
* @exception CoreException if a <code>CoreException</code> is
* thrown accessing this breakpoint's underlying marker
*/
public void removeThreadFilter(IJavaDebugTarget target) throws CoreException;
/**
* Returns the thread in the given target in which this breakpoint
* is enabled or <code>null</code> if this breakpoint is enabled in
* all threads in the given target.
*
* @return the thread in the given target that this breakpoint is enabled for
* @exception CoreException if a <code>CoreException</code> is
* thrown accessing this breakpoint's underlying marker
*/
public IJavaThread getThreadFilter(IJavaDebugTarget target) throws CoreException;
/**
* Returns the threads in which this breakpoint is enabled or an empty array
* if this breakpoint is enabled in all threads.
*
* @return the threads that this breakpoint is enabled for
* @exception CoreException if a <code>CoreException</code> is
* thrown accessing this breakpoint's underlying marker
*/
public IJavaThread[] getThreadFilters() throws CoreException;
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
f38bf0dcc6a696e714bcc9255c5937e53f242e28
|
cb91955a8a42f3084170c80f600ab98c17611201
|
/test/de/jungblut/datastructure/AsyncBufferedOutputStreamTest.java
|
c6cfc3c92958d23828ca4d4a1f7a06bb0084daad
|
[
"Apache-2.0"
] |
permissive
|
EtashGuha/thomasjungblut-common
|
bb4c5279feb95e2127295b328b86d74d069b2bb8
|
26c694dfbf43259394f95a0e88b7114b1b89122a
|
refs/heads/master
| 2020-03-28T07:24:04.294149
| 2017-07-01T16:46:50
| 2017-07-01T16:46:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,621
|
java
|
package de.jungblut.datastructure;
import static org.junit.Assert.assertEquals;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Arrays;
import org.junit.Test;
public class AsyncBufferedOutputStreamTest {
@Test
public void testHugeWrites() throws Exception {
Path tmpDir = Files.createTempDirectory("tmp");
File tempFile = File.createTempFile("async_test_huge", "tmp",
tmpDir.toFile());
tempFile.deleteOnExit();
byte[] ones = new byte[513 * 1024];
Arrays.fill(ones, (byte) 1);
try (AsyncBufferedOutputStream out = new AsyncBufferedOutputStream(
new FileOutputStream(tempFile), 512 * 1024)) {
// write a few small data to prefill the buffer
out.write(25);
out.write(22);
out.write(ones, 0, ones.length);
}
try (BufferedInputStream in = new BufferedInputStream(new FileInputStream(
tempFile))) {
int numItems = 513 * 1024;
assertEquals(25, in.read());
assertEquals(22, in.read());
for (int i = 0; i < numItems; i++) {
assertEquals(1, in.read());
}
}
}
@Test
public void testOverflowWrites() throws Exception {
File tempFile = File.createTempFile("async_test_overflow", "tmp", new File(
"/tmp/"));
tempFile.deleteOnExit();
byte[] ones = new byte[32];
Arrays.fill(ones, (byte) 1);
byte[] zeros = new byte[32];
int numItems = 200;
// only 20 bytes buffered
try (AsyncBufferedOutputStream out = new AsyncBufferedOutputStream(
new FileOutputStream(tempFile), 20)) {
// test write 32 bytes 1s, and 32 bytes 0s
for (int i = 0; i < numItems; i++) {
out.write(ones);
out.write(zeros);
}
}
try (BufferedInputStream in = new BufferedInputStream(new FileInputStream(
tempFile))) {
byte[] buf = new byte[32];
for (int i = 0; i < numItems; i++) {
int read = in.read(buf);
assertEquals(32, read);
for (int x = 0; x < 32; x++) {
assertEquals(1, buf[x]);
}
read = in.read(buf);
assertEquals(32, read);
for (int x = 0; x < 32; x++) {
assertEquals(0, buf[x]);
}
}
}
}
@Test
public void testWrites() throws Exception {
File tempFile = File.createTempFile("async_test", "tmp", new File("/tmp/"));
tempFile.deleteOnExit();
byte[] ones = new byte[32];
Arrays.fill(ones, (byte) 1);
byte[] zeros = new byte[32];
int numItems = 10000;
try (AsyncBufferedOutputStream out = new AsyncBufferedOutputStream(
new FileOutputStream(tempFile), 2 * 1024)) {
// test write 32 bytes 1s, and 32 bytes 0s
for (int i = 0; i < numItems; i++) {
out.write(ones);
out.write(zeros);
}
}
try (BufferedInputStream in = new BufferedInputStream(new FileInputStream(
tempFile))) {
byte[] buf = new byte[32];
for (int i = 0; i < numItems; i++) {
int read = in.read(buf);
assertEquals(32, read);
for (int x = 0; x < 32; x++) {
assertEquals(1, buf[x]);
}
read = in.read(buf);
assertEquals(32, read);
for (int x = 0; x < 32; x++) {
assertEquals(0, buf[x]);
}
}
}
}
@Test
public void testRaceWrites() throws Exception {
File tempFile = File.createTempFile("async_test_race_writes", "tmp",
new File("/tmp/"));
tempFile.deleteOnExit();
byte[] ones = new byte[32];
Arrays.fill(ones, (byte) 1);
byte[] zeros = new byte[32];
int numItems = 2500;
AsyncBufferedOutputStream out = new AsyncBufferedOutputStream(
new FileOutputStream(tempFile), 512 * 1024);
// test write 32 bytes 1s, and 32 bytes 0s for 1gb
for (int i = 0; i < numItems; i++) {
out.write(ones);
out.write(zeros);
}
// we wait ~2s before all items are written asynchronously
Thread.sleep(2000L);
// now close would wait for an item to add infinitely
out.close();
try (BufferedInputStream in = new BufferedInputStream(new FileInputStream(
tempFile))) {
byte[] buf = new byte[32];
for (int i = 0; i < numItems; i++) {
int read = in.read(buf);
assertEquals(32, read);
for (int x = 0; x < 32; x++)
assertEquals(1, buf[x]);
read = in.read(buf);
assertEquals(32, read);
for (int x = 0; x < 32; x++)
assertEquals(0, buf[x]);
}
}
}
}
|
[
"thomas.jungblut@gmail.com"
] |
thomas.jungblut@gmail.com
|
df518445a86620e2ff9d09666a2ae88cf9861472
|
7e28cd735b9c64230851d8714e0dbf18354eff6c
|
/chapter_002/src/main/java/io/socket/EchoServer.java
|
05abc1c8f0e3d2291f15a51062b8a936e4c49fdf
|
[] |
no_license
|
Sekator778/job4j_design
|
9d91a34b8ff32ddcf37e23df54b83a1bd790663d
|
815313e3b4794fd3bd89a780b077834946576cf2
|
refs/heads/master
| 2023-05-24T22:18:50.692202
| 2022-04-07T14:06:20
| 2022-04-07T14:06:20
| 246,309,323
| 6
| 0
| null | 2020-10-13T20:15:05
| 2020-03-10T13:33:10
|
Java
|
UTF-8
|
Java
| false
| false
| 1,906
|
java
|
package io.socket;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
/**
* msg=Hello > Hello.
*
* msg=Exit > Завершить работу сервера.
*
* msg=Any > Any.
* где any такой вывод я хз там чето поусловию было сервер https://curl.haxx.se
* прысылал такого типа меседж ыаауа= вауму
* вообщем если надо то тут где Any поменять формат вывода на свой
*/
public class EchoServer {
public static void main(String[] args) throws IOException {
try (ServerSocket server = new ServerSocket(9000)) {
while (!server.isClosed()) {
Socket socket = server.accept();
try (OutputStream out = socket.getOutputStream();
BufferedReader in = new BufferedReader(
new InputStreamReader(socket.getInputStream()))) {
String str = in.readLine();
while (!(str.isEmpty())) {
if (str.contains("exit")) {
out.write("Server close\n".getBytes());
server.close();
} else if (str.contains("hello")) {
out.write("Hello, dear friend.\n".getBytes());
break;
} else {
str = str.substring(str.indexOf("=") + 1);
int x = str.indexOf("H");
str = str.substring(0, x);
out.write(str.getBytes());
out.write("\r\n".getBytes());
break;
}
str = in.readLine();
}
}
}
}
}
}
|
[
"sekator778@gmail.com"
] |
sekator778@gmail.com
|
30d186f9dfecc844c618e5414752190bd9931519
|
9103a7d70263a86e72945663cfa01254f62316ef
|
/jakarta/graph-janus/src/main/java/org/jnosql/endgame/jakarta/janus/HRSRepositoryApp.java
|
f28e5aa076d8693451559e86462f16401348f95e
|
[
"Apache-2.0"
] |
permissive
|
ThirumlaDevi/nosql-endgame
|
857c17af14fd62e30ca89df842c91cd3e3b79d3d
|
3e18abef02001b19793c29ab2c1f58c1bcaa2979
|
refs/heads/master
| 2023-02-03T17:22:51.214593
| 2020-12-18T13:17:39
| 2020-12-18T13:17:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,324
|
java
|
/*
* Copyright (c) 2017 Otávio Santana and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php.
*
* You may elect to redistribute this code under either of these licenses.
*
* Contributors:
*
* Otavio Santana
* Werner Keil
*/
package org.jnosql.endgame.jakarta.janus;
import org.eclipse.jnosql.artemis.DatabaseQualifier;
import org.jnosql.endgame.jakarta.janus.model.Person;
import org.jnosql.endgame.jakarta.janus.repository.PersonRepository;
import javax.enterprise.inject.se.SeContainer;
import javax.enterprise.inject.se.SeContainerInitializer;
public final class HRSRepositoryApp {
private HRSRepositoryApp() {
}
@SuppressWarnings("unused")
public static void main(String[] args) {
try (SeContainer container = SeContainerInitializer.newInstance().initialize()) {
PersonRepository repository = container.select(PersonRepository.class, DatabaseQualifier.ofGraph()).get();
Person bruce = repository.save(Person.builder().withAge(30).withName("Bruce")
.withOccupation("Developer").withSalary(3_000D).build());
Person natalia = repository.save(Person.builder().withAge(32).withName("Natalia")
.withOccupation("Developer").withSalary(5_000D).build());
Person pepper = repository.save(Person.builder().withAge(40).withName("Pepper")
.withOccupation("Design").withSalary(1_000D).build());
Person tony = repository.save(Person.builder().withAge(22).withName("Tony")
.withOccupation("Developer").withSalary(4_500D).build());
System.out.println("findByOccupationAndSalaryGreaterThan");
repository.findByOccupationAndSalaryGreaterThan("Developer", 3_000D)
.forEach(System.out::println);
System.out.println("findByAgeBetween");
repository.findByAgeBetween(20, 30)
.forEach(System.out::println);
}
}
}
|
[
"werner.keil@gmx.net"
] |
werner.keil@gmx.net
|
0e7e0ee0e88c6e83affc45ec21ef11a84ff61022
|
178a95f3466dc8261d490598c120f67d6bc5120b
|
/src/test/java/cn/cerc/summer/sample/UtilsExample.java
|
50bad24191b28d2652412e59089bebcbce6c3948
|
[] |
no_license
|
itjun/java-redis-proxy
|
986bfa953105179a47b75cd800e5472d7ac62aaf
|
50a6ac1d6fdb9b9e72f0222f21ab56b5c07630a8
|
refs/heads/main
| 2023-07-06T10:58:56.453753
| 2021-08-14T07:33:34
| 2021-08-14T07:33:34
| 386,809,445
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,508
|
java
|
package cn.cerc.summer.sample;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import cn.cerc.core.DataSet;
import cn.cerc.core.Record;
import cn.cerc.core.TDate;
import cn.cerc.core.TDateTime;
import cn.cerc.core.Utils;
/**
* 框架自带工具简单的使用范例
*/
public class UtilsExample {
private static final Logger log = LoggerFactory.getLogger(UtilsExample.class);
public static void main(String[] args) {
// 时间工具类 TDateTime
log.info("当前时间 {}", TDateTime.now());
log.info("今日日期 {}", TDate.today());
// 数学工具类 Utils
log.info("随机数字 {}", Utils.getNumRandom(12));
log.info("随机字符 {}", Utils.getStrRandom(32));
// DataSet 范例说明
DataSet dataSet = new DataSet();
Record head = dataSet.getHead();
head.setField("tbNo", "AB201903270001");
head.setField("tDate", TDateTime.now());
log.info("dataSet 头部信息 {}", head);
for (int i = 0; i < 2; i++) {
dataSet.append();
dataSet.setField("code_", "code_" + i);
dataSet.setField("name_", "name_" + i);
}
log.info("dataSet 完整信息 {}", dataSet);
// 遍历dataSet数据集获取每个元素的数据
while (dataSet.fetch()) {
String code = dataSet.getString("code_");
String name = dataSet.getString("name_");
log.info("{}, {}", code, name);
}
}
}
|
[
"l1091462907@gmail.com"
] |
l1091462907@gmail.com
|
a957047a3cc617f90f87c19499591b295d217982
|
22fa8e9fc974254ee1e14660d21b4254f347706b
|
/samples/sunflow/build/classes/org/sunflow/image/XYZColor.java
|
9db72f605ba2926b135ea0dbe00e6f0148853db9
|
[
"BSD-3-Clause",
"MIT"
] |
permissive
|
pl-eco/ECO
|
35aa0391dcb564bd35da8d1151dbde3c3e7c03d4
|
d207aa257ab02ee5b918bb4321fcac3dbd30d479
|
refs/heads/master
| 2016-09-03T07:25:27.488921
| 2015-03-04T16:07:40
| 2015-03-04T16:07:40
| 17,924,190
| 2
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,717
|
java
|
package org.sunflow.image;
public final class XYZColor {
private float X;
private float Y;
private float Z;
public XYZColor() { super(); }
public XYZColor(float X, float Y, float Z) { super();
this.X = X;
this.Y = Y;
this.Z = Z; }
public final float getX() { return X; }
public final float getY() { return Y; }
public final float getZ() { return Z; }
public final XYZColor mul(float s) { X *= s;
Y *= s;
Z *= s;
return this; }
public final void normalize() { float XYZ = X + Y + Z;
if (XYZ < 1.0E-6F) return;
float s = 1 / XYZ;
X *= s;
Y *= s;
Z *= s; }
public final String toString() { return String.format("(%.3f, %.3f, %.3f)",
X,
Y,
Z); }
public static final String jlc$CompilerVersion$jl7 = "2.6.1";
public static final long jlc$SourceLastModified$jl7 = 1425485134000L;
public static final String jlc$ClassType$jl7 = ("H4sIAAAAAAAAAK0YW2xcxXX22l4/4mT9ILFrEsdxHISTdG/TCiowTZtYDnG6" +
"JFYcomQRMeO7s+ubzH3k3ll749RtiIQc5SNAayCg4I8qEa9AUNWIVggpPy0g" +
"+AGhVv0oVP0pAvKRj1JUWuDMzH3t3fVCJK80587OnHPmnDnPey9fRw2ug7bY" +
"Fj1RoBZLkxJLH6V3pNkJm7jpPZk7xrDjktwwxa57ANYmtP5XU59/+dhUm4KS" +
"WdSJTdNimOmW6e4nrkWnSS6DUuHqCCWGy1Bb5iiexmqR6VTN6C4byqAVEVKG" +
"BjK+CCqIoIIIqhBB3RFiAdFKYhaNYU6BTeYeR79EiQxK2hoXj6EN5Uxs7GDD" +
"YzMmNAAOTfz/QVBKEJcc1BfoLnWuUPiJLerCU0fafleHUlmU0s1xLo4GQjA4" +
"JItaDWJMEsfdkcuRXBa1m4TkxomjY6rPCrmzqMPVCyZmRYcEl8QXizZxxJnh" +
"zbVqXDenqDHLCdTL64Tm/H8NeYoLoOuaUFep4S6+Dgq26CCYk8ca8Unqj+lm" +
"jqH1cYpAx4GfAwKQNhqETVnBUfUmhgXUIW1HsVlQx5mjmwVAbbCKcApDPUsy" +
"5XdtY+0YLpAJhrrjeGNyC7CaxUVwEoZWx9EEJ7BST8xKEftc33vPuZPmblMR" +
"MueIRrn8TUDUGyPaT/LEIaZGJGHr5syTeM0bZxSEAHl1DFnivPaLGz/b2nvt" +
"LYlzaxWcfZNHicYmtIuTq95bOzx4Vx0Xo8m2XJ0bv0xz4f5j3s5QyYbIWxNw" +
"5Jtpf/Pa/j8fPvUi+VRBLaMoqVm0aIAftWuWYeuUOPcSkziYkdwoaiZmbljs" +
"j6JGmGd0k8jVffm8S9goqqdiKWmJ/3BFeWDBr6gR5rqZt/y5jdmUmJdshNBK" +
"GKgDRh2SP/FkaK86ZRlExRo2ddNSwXcJdrQplWiW6mLDpmA1t2jmqTWjuo6m" +
"Wk4h+K8bYHL10OEsSGw5ae5X9rJzLHEd2mYSCbjetfHgphAXuy2aI86EtlDc" +
"OXLjlYl3lMDZPe3BreGMtHdGWpyR9s9AiYRgfQs/S1oN7vwYRC/ktdbB8Qf3" +
"PHSmH+6qZM/Uw4UpgNoPmngCjGjWcBjioyKRaeBn3b99YD79xXM/lX6mLp2P" +
"q1Kja+dnHj74qx8oSClPrFwhWGrh5GM8HQZpbyAeUNX4puY//vzKk3NWGFpl" +
"mdqL+EpKHrH98at3LI3kIAeG7Df34asTb8wNKKge0gCkPobBVSGr9MbPKIvc" +
"IT8Lcl0aQOG85RiY8i0/dbWwKceaCVeET6wS83Ywygruyp0wkp5viyff7bQ5" +
"vEX6ELdyTAuRZXf98drTV5/ZcpcSTcipSIkbJ0yGd3voJAccQmD97+fHfvPE" +
"9fkHhIcAxsZqBwxwOAzBDiaDa33kreN/++jDix8ogVclGFS94iTVtRLwuC08" +
"BVyUQjrith+43zSsnJ7X8SQl3Dn/l9q07epn59qkNSms+M6w9dsZhOvf24lO" +
"vXPkP72CTULjpSjUPESTF9AZct7hOPgEl6P08Pvrnn4TPwuZErKTq88SkXCQ" +
"0AyJq1eFqTYLmI7tbeOgz67YEws9lTZu9mzcXNXGHAzETqsTHOtA/MEajZGj" +
"G5Crp71ios51fHTswscvywCOV54YMjmzcPbr9LkFJVKeN1ZUyCiNLNFC5JVS" +
"xa/hl4DxFR9cNb4gU3THsFcn+oJCYdvcUTbUEkscsetfV+Zef35uXqrRUV6d" +
"RqD5evkv/383ff4fb1dJmhAJFhY+dbcAQto7a1hyJwc/qrSkNGX3d7HCLt4b" +
"RdLof/fRydP//EJIV5EIqxgmRp9VL1/oGd7+qaAPMxKnXl+qLCfQR4a0P3zR" +
"+LfSn/yTghqzqE3zmtSDmBZ53GehMXP9zhUa2bL98iZLdhRDQcZdG/eMyLHx" +
"XBhaBOYcm89bYumvld9yD4x6LzTq46GRQGKyR5D0C7iJg9v97NNoO/o05h0w" +
"ShwKTN4mbTly8yeNcZABZoeXgdm4zywbYVaqrovCp4PceXUT06jnIR4x65bq" +
"O0W0XDy9sJjbd2mb4jn0doaamWV/n5JpQiOskpxTWRNwn+i0Q+c5+8JLr7H3" +
"ttwt427z0g4fJ3zz9Cc9B7ZPPXQTpX99TKc4yxfuu/z2vbdpv1ZQXeCDFS8P" +
"5URD5Z7X4hB42zEPlPlfb2DILn67t8JIeYZMVS+/NQzGwaFSjdxSqLGnczDJ" +
"UH2BMOm8S1STI5Uid3oidy6/yMdr7IlFKkU+fJMid3kidy2/yCdr7M1xMC1F" +
"zn43kXlwo3We2L74yyByQqatsCo9UkPueQ5OMVRnFGkkD9UQmw+0AUa/J3b/" +
"8t/0ozX2HufgLOQeUzTC0FAJtB9zMCSZ/gTsMG3puW/VpZsv9sHY6umydfl1" +
"uVBjb5GDpxhqYpb82CCwVjPUJjpJXiDTcqNK3wBk/msabz67Kz7tyM8R2iuL" +
"qaauxfv/Kl48gk8GzfDeni9SGi2hkXnSdkheF0I2y4Jqi8clhtorXhehoIin" +
"kPGiRHyeoRURRCii3iyK9BI4HiDx6WW7iu6yOSihskJlx8vWxrICIj6E+cm+" +
"KD+FTWhXFvfsPXnjzkuicjRoFM/Oci5NGdQoX6iCgrFhSW4+r+TuwS9Xvdq8" +
"yS+EqzjoiLhKRLb11V82RgybideD2T90/f6e5xY/FG873wBwC3SnoRQAAA==");
}
|
[
"anthony.canino1@gmail.com"
] |
anthony.canino1@gmail.com
|
16772d89b1e2800b6e824f2ff42617a1b9a3cddc
|
42ed12696748a102487c2f951832b77740a6b70d
|
/Mage.Sets/src/mage/sets/returntoravnica/EssenceBacklash.java
|
9e669e89f73a1f6723cbc3932c53e82af58a1f7f
|
[] |
no_license
|
p3trichor/mage
|
fcb354a8fc791be4713e96e4722617af86bd3865
|
5373076a7e9c2bdabdabc19ffd69a8a567f2188a
|
refs/heads/master
| 2021-01-16T20:21:52.382334
| 2013-05-09T21:13:25
| 2013-05-09T21:13:25
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,276
|
java
|
/*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.sets.returntoravnica;
import java.util.UUID;
import mage.Constants;
import mage.Constants.CardType;
import mage.Constants.Rarity;
import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
import mage.cards.CardImpl;
import mage.filter.FilterSpell;
import mage.filter.predicate.mageobject.CardTypePredicate;
import mage.game.Game;
import mage.game.stack.Spell;
import mage.players.Player;
import mage.target.TargetSpell;
/**
*
* @author LevelX2
*/
public class EssenceBacklash extends CardImpl<EssenceBacklash> {
private static final FilterSpell filter = new FilterSpell("creature spell");
static {
filter.add(new CardTypePredicate(CardType.CREATURE));
}
public EssenceBacklash(UUID ownerId) {
super(ownerId, 160, "Essence Backlash", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{2}{U}{R}");
this.expansionSetCode = "RTR";
this.color.setBlue(true);
this.color.setRed(true);
// Counter target creature spell. Essence Backlash deals damage equal to that spell's power to its controller.
this.getSpellAbility().addTarget(new TargetSpell(filter));
this.getSpellAbility().addEffect(new EssenceBacklashEffect());
}
public EssenceBacklash(final EssenceBacklash card) {
super(card);
}
@Override
public EssenceBacklash copy() {
return new EssenceBacklash(this);
}
}
class EssenceBacklashEffect extends OneShotEffect<EssenceBacklashEffect> {
public EssenceBacklashEffect() {
super(Constants.Outcome.Damage);
staticText = "Counter target creature spell. Essence Backlash deals damage equal to that spell's power to its controller";
}
public EssenceBacklashEffect(final EssenceBacklashEffect effect) {
super(effect);
}
@Override
public EssenceBacklashEffect copy() {
return new EssenceBacklashEffect(this);
}
@Override
public boolean apply(Game game, Ability source) {
Boolean result = false;
Spell spell = game.getStack().getSpell(source.getFirstTarget());
if (spell != null) {
Player spellController = game.getPlayer(spell.getControllerId());
result = game.getStack().counter(source.getFirstTarget(), source.getSourceId(), game);
if (spellController != null) {
spellController.damage(spell.getPower().getValue(), source.getSourceId(), game, false, true);
}
}
return result;
}
}
|
[
"ludwig.hirth@online.de"
] |
ludwig.hirth@online.de
|
bee3ca91a559230369770070b4a60295df37bda4
|
f525deacb5c97e139ae2d73a4c1304affb7ea197
|
/gitv/src/main/java/com/gala/video/lib/share/uikit/view/HScrollView.java
|
873ea55f39c521deca08e5b0e83adcd6cda15280
|
[] |
no_license
|
AgnitumuS/gitv
|
93b2359e1bf9f2b6c945298c61c5c6dbfeea49b3
|
242c9a10a0aeb41b9589de9f254e6ce9f57bd77a
|
refs/heads/master
| 2021-08-08T00:50:10.630301
| 2017-11-09T08:10:33
| 2017-11-09T08:10:33
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,932
|
java
|
package com.gala.video.lib.share.uikit.view;
import android.content.Context;
import android.util.AttributeSet;
import com.gala.video.albumlist.layout.GridLayout;
import com.gala.video.albumlist.widget.HorizontalGridView;
import com.gala.video.lib.share.uikit.contract.HScrollContract.Presenter;
import com.gala.video.lib.share.uikit.contract.HScrollContract.View;
import com.gala.video.lib.share.uikit.core.BinderViewHolder;
import java.util.Collections;
public class HScrollView extends HorizontalGridView implements IViewLifecycle<Presenter>, View {
public HScrollView(Context context) {
this(context, null);
}
public HScrollView(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}
public HScrollView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
init();
}
private void init() {
setClipToPadding(false);
setClipChildren(false);
setFocusMode(1);
setScrollRoteScale(0.8f, 1.0f, 2.5f);
setQuickFocusLeaveForbidden(true);
setFocusLeaveForbidden(83);
}
public void onBind(Presenter object) {
object.setView(this);
if (getAdapter() == null) {
setAdapter(object.getAdapter());
registerListener(object);
}
updateView(object);
}
private void registerListener(Presenter object) {
setOnScrollListener(object.getActionPolicy());
setOnItemClickListener(object.getActionPolicy());
setOnItemFocusChangedListener(object.getActionPolicy());
setOnFocusLostListener(object.getActionPolicy());
setOnItemStateChangeListener(object.getActionPolicy());
setOnFirstLayoutListener(object.getActionPolicy());
}
private void updateView(Presenter object) {
boolean z;
setHorizontalMargin(30);
if (object.getCardModel().getShowPosition() == 1) {
z = true;
} else {
z = false;
}
showPositionInfo(z);
setPadding(25, object.getCardModel().getBodyPaddingTop(), 25, 0);
GridLayout layout = new GridLayout();
layout.setNumRows(1);
layout.setItemCount(object.getAdapter().getCount());
getLayoutManager().setLayouts(Collections.singletonList(layout));
}
public void onUnbind(Presenter object) {
int first = getFirstAttachedPosition();
int last = getLastAttachedPosition();
for (int i = first; i <= last; i++) {
((BinderViewHolder) getViewHolderByPosition(i)).unbind();
}
}
public void onShow(Presenter object) {
int first = getFirstAttachedPosition();
int last = getLastAttachedPosition();
for (int i = first; i <= last; i++) {
((BinderViewHolder) getViewHolderByPosition(i)).show();
}
}
public void onHide(Presenter object) {
}
}
|
[
"liuwencai@le.com"
] |
liuwencai@le.com
|
e3322d1491f336588d3d78c23a370dc45898d0b6
|
1c71e0b1ef9490fd419ff9a260adb90faddd4994
|
/move-to-sdk/app/io/sphere/sdk/facets/BaseSelectFacet.java
|
2f2c2fdb9677a531640f793c6c8fd418b80a0533
|
[
"Apache-2.0"
] |
permissive
|
lufego/sphere-sunrise
|
8fd290cb2db8aec59298eba003a3f9742af1d985
|
ccea8d0eef548c22cf2866959056c4db4de81fbe
|
refs/heads/master
| 2021-01-17T20:57:09.631602
| 2015-09-02T13:56:29
| 2015-09-02T13:56:29
| 45,053,359
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,765
|
java
|
package io.sphere.sdk.facets;
import io.sphere.sdk.search.*;
import javax.annotation.Nullable;
import java.util.List;
import java.util.Optional;
import static java.util.Collections.emptyList;
import static java.util.Collections.singletonList;
import static java.util.stream.Collectors.toList;
abstract class BaseSelectFacet<T> extends BaseFacet<T> implements SelectFacet<T> {
private final boolean multiSelect;
private final boolean matchingAll;
private final List<String> selectedValues;
private final Optional<TermFacetResult> facetResult;
private final Optional<Long> threshold;
private final Optional<Long> limit;
protected BaseSelectFacet(final String key, final String label, final FacetType type, final UntypedSearchModel<T> searchModel,
final boolean multiSelect, final boolean matchingAll, final List<String> selectedValues,
@Nullable final TermFacetResult facetResult, @Nullable final Long threshold, @Nullable final Long limit) {
super(key, label, type, searchModel);
if (threshold != null && limit != null && threshold > limit) {
throw new InvalidSelectFacetConstraintsException(threshold, limit);
}
this.multiSelect = multiSelect;
this.matchingAll = matchingAll;
this.selectedValues = selectedValues;
this.facetResult = Optional.ofNullable(facetResult);
this.threshold = Optional.ofNullable(threshold);
this.limit = Optional.ofNullable(limit);
}
/**
* Generates the facet options according to the facet result and selected values provided.
* @return the generated facet options
*/
protected List<FacetOption> getOptions() {
return facetResult
.map(result -> result.getTerms().stream()
.map(termStats -> FacetOption.ofTermStats(termStats, selectedValues))
.collect(toList()))
.orElse(emptyList());
}
@Override
public boolean isAvailable() {
return threshold.map(threshold -> getOptions().size() >= threshold).orElse(true);
}
@Override
public List<FacetOption> getAllOptions() {
return getOptions();
}
@Override
public List<FacetOption> getLimitedOptions() {
return limit.map(limit -> getOptions().stream().limit(limit).collect(toList()))
.orElse(getOptions());
}
@Override
public boolean isMultiSelect() {
return multiSelect;
}
@Override
public boolean isMatchingAll() {
return matchingAll;
}
@Override
public List<String> getSelectedValues() {
return selectedValues;
}
@Override
public Optional<TermFacetResult> getFacetResult() {
return facetResult;
}
@Override
public Optional<Long> getThreshold() {
return threshold;
}
@Override
public Optional<Long> getLimit() {
return limit;
}
@Override
public List<FilterExpression<T>> getFilterExpressions() {
final List<FilterExpression<T>> filterExpressions;
if (selectedValues.isEmpty()) {
filterExpressions = emptyList();
} else {
if (matchingAll) {
filterExpressions = selectedValues.stream()
.map(selectedValue -> searchModel.filtered().by(selectedValue))
.collect(toList());
} else {
filterExpressions = singletonList(searchModel.filtered().by(selectedValues));
}
}
return filterExpressions;
}
@Override
public FacetExpression<T> getFacetExpression() {
return searchModel.faceted().byAllTerms();
}
}
|
[
"laura.luiz@commercetools.de"
] |
laura.luiz@commercetools.de
|
59f7d7c55960b6f3016d0a369da4cd83d8972e83
|
6392035b0421990479baf09a3bc4ca6bcc431e6e
|
/projects/hazelcast-e84e96ff/prev/hazelcast/src/main/java/com/hazelcast/client/impl/protocol/codec/DistributedObjectInfoCodec.java
|
e3b348509701391273d574bc46f8d74f25d5056a
|
[] |
no_license
|
ameyaKetkar/RMinerEvaluationTools
|
4975130072bf1d4940f9aeb6583eba07d5fedd0a
|
6102a69d1b78ae44c59d71168fc7569ac1ccb768
|
refs/heads/master
| 2020-09-26T00:18:38.389310
| 2020-05-28T17:34:39
| 2020-05-28T17:34:39
| 226,119,387
| 3
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,647
|
java
|
/*
* Copyright (c) 2008-2015, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.hazelcast.client.impl.protocol.codec;
import com.hazelcast.client.impl.client.DistributedObjectInfo;
import com.hazelcast.client.impl.protocol.ClientMessage;
import com.hazelcast.client.impl.protocol.util.ParameterUtil;
public final class DistributedObjectInfoCodec {
private DistributedObjectInfoCodec() {
}
public static DistributedObjectInfo decode(ClientMessage clientMessage) {
String serviceName = clientMessage.getStringUtf8();
String name = clientMessage.getStringUtf8();
return new DistributedObjectInfo(serviceName, name);
}
public static void encode(DistributedObjectInfo info, ClientMessage clientMessage) {
clientMessage.
set(info.getServiceName()).
set(info.getName());
}
public static int calculateDataSize(DistributedObjectInfo info) {
return ParameterUtil.calculateStringDataSize(info.getServiceName())
+ ParameterUtil.calculateStringDataSize(info.getName());
}
}
|
[
"ask1604@gmail.com"
] |
ask1604@gmail.com
|
897cda51aea933f20debd7ad8b8e1c388f36f6c4
|
df48dc6e07cdf202518b41924444635f30d60893
|
/jinx-com4j/src/main/java/com/exceljava/com4j/excel/IXPath.java
|
7604a56b0901a867fd82dc93e9e0ce4a62e48d4a
|
[
"MIT"
] |
permissive
|
ashwanikaggarwal/jinx-com4j
|
efc38cc2dc576eec214dc847cd97d52234ec96b3
|
41a3eaf71c073f1282c2ab57a1c91986ed92e140
|
refs/heads/master
| 2022-03-29T12:04:48.926303
| 2020-01-10T14:11:17
| 2020-01-10T14:11:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,235
|
java
|
package com.exceljava.com4j.excel ;
import com4j.*;
@IID("{0002447E-0001-0000-C000-000000000046}")
public interface IXPath extends Com4jObject {
// Methods:
/**
* <p>
* Getter method for the COM property "Application"
* </p>
* @return Returns a value of type com.exceljava.com4j.excel._Application
*/
@VTID(7)
com.exceljava.com4j.excel._Application getApplication();
/**
* <p>
* Getter method for the COM property "Creator"
* </p>
* @return Returns a value of type com.exceljava.com4j.excel.XlCreator
*/
@VTID(8)
com.exceljava.com4j.excel.XlCreator getCreator();
/**
* <p>
* Getter method for the COM property "Parent"
* </p>
* @return Returns a value of type com4j.Com4jObject
*/
@VTID(9)
@ReturnValue(type=NativeType.Dispatch)
com4j.Com4jObject getParent();
/**
* <p>
* Getter method for the COM property "_Default"
* </p>
* @return Returns a value of type java.lang.String
*/
@VTID(10)
@DefaultMethod
java.lang.String get_Default();
/**
* <p>
* Getter method for the COM property "Value"
* </p>
* @return Returns a value of type java.lang.String
*/
@VTID(11)
java.lang.String getValue();
/**
* <p>
* Getter method for the COM property "Map"
* </p>
* @return Returns a value of type com.exceljava.com4j.excel.XmlMap
*/
@VTID(12)
com.exceljava.com4j.excel.XmlMap getMap();
/**
* <p>
* This method uses predefined default values for the following parameters:
* </p>
* <ul>
* <li>java.lang.Object parameter selectionNamespace is set to com4j.Variant.getMissing()</li><li>java.lang.Object parameter repeating is set to com4j.Variant.getMissing()</li></ul>
* <p>
* Therefore, using this method is equivalent to
* <code>
* setValue(map, xPath, com4j.Variant.getMissing(), com4j.Variant.getMissing());
* </code>
* </p>
* @param map Mandatory com.exceljava.com4j.excel.XmlMap parameter.
* @param xPath Mandatory java.lang.String parameter.
*/
@VTID(13)
@UseDefaultValues(paramIndexMapping = {0, 1}, optParamIndex = {2, 3}, javaType = {java.lang.Object.class, java.lang.Object.class}, nativeType = {NativeType.VARIANT, NativeType.VARIANT}, variantType = {Variant.Type.VT_ERROR, Variant.Type.VT_ERROR}, literal = {"80020004", "80020004"})
void setValue(
com.exceljava.com4j.excel.XmlMap map,
java.lang.String xPath);
/**
* <p>
* This method uses predefined default values for the following parameters:
* </p>
* <ul>
* <li>java.lang.Object parameter repeating is set to com4j.Variant.getMissing()</li></ul>
* <p>
* Therefore, using this method is equivalent to
* <code>
* setValue(map, xPath, selectionNamespace, com4j.Variant.getMissing());
* </code>
* </p>
* @param map Mandatory com.exceljava.com4j.excel.XmlMap parameter.
* @param xPath Mandatory java.lang.String parameter.
* @param selectionNamespace Optional parameter. Default value is com4j.Variant.getMissing()
*/
@VTID(13)
@UseDefaultValues(paramIndexMapping = {0, 1, 2}, optParamIndex = {3}, javaType = {java.lang.Object.class}, nativeType = {NativeType.VARIANT}, variantType = {Variant.Type.VT_ERROR}, literal = {"80020004"})
void setValue(
com.exceljava.com4j.excel.XmlMap map,
java.lang.String xPath,
@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object selectionNamespace);
/**
* @param map Mandatory com.exceljava.com4j.excel.XmlMap parameter.
* @param xPath Mandatory java.lang.String parameter.
* @param selectionNamespace Optional parameter. Default value is com4j.Variant.getMissing()
* @param repeating Optional parameter. Default value is com4j.Variant.getMissing()
*/
@VTID(13)
void setValue(
com.exceljava.com4j.excel.XmlMap map,
java.lang.String xPath,
@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object selectionNamespace,
@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object repeating);
/**
*/
@VTID(14)
void clear();
/**
* <p>
* Getter method for the COM property "Repeating"
* </p>
* @return Returns a value of type boolean
*/
@VTID(15)
boolean getRepeating();
// Properties:
}
|
[
"tony@pyxll.com"
] |
tony@pyxll.com
|
4f4efe33f01fcb7cfaa89f59ef36a127e1580428
|
7dece986667a167def13934088d50fc0363b411e
|
/src/main/java/jdk/java8/stream/TestDefaultInterface.java
|
b4986cb43fc1b2c715c2061b472fee8227d746c8
|
[] |
no_license
|
dongfangding/JavaDemo
|
9c425b22224dee0c0a7fa44a721950893135bb9f
|
6a1a7d38fbd67b952fed7190f5fc8aca859241f7
|
refs/heads/master
| 2022-12-06T07:01:19.913940
| 2021-04-25T08:43:09
| 2021-04-25T08:43:09
| 193,824,392
| 1
| 0
| null | 2022-11-15T23:47:30
| 2019-06-26T03:39:56
|
Java
|
UTF-8
|
Java
| false
| false
| 227
|
java
|
package jdk.java8.stream;
public class TestDefaultInterface {
public static void main(String[] args) {
SubClass sc = new SubClass();
System.out.println(sc.getName());
MyInterface.show();
}
}
|
[
"1041765757@qq.com"
] |
1041765757@qq.com
|
b737286f9b508c3c2610fa9f435b063e29df30a1
|
cf729a7079373dc301d83d6b15e2451c1f105a77
|
/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201509/cm/BiddingErrors.java
|
32ea40cb95ce7f16dd2f39a930ec8821097b2f73
|
[] |
no_license
|
cvsogor/Google-AdWords
|
044a5627835b92c6535f807ea1eba60c398e5c38
|
fe7bfa2ff3104c77757a13b93c1a22f46e98337a
|
refs/heads/master
| 2023-03-23T05:49:33.827251
| 2021-03-17T14:35:13
| 2021-03-17T14:35:13
| 348,719,387
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,665
|
java
|
package com.google.api.ads.adwords.jaxws.v201509.cm;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
/**
*
* Represents error codes for bidding strategy entities.
*
*
* <p>Java class for BiddingErrors complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="BiddingErrors">
* <complexContent>
* <extension base="{https://adwords.google.com/api/adwords/cm/v201509}ApiError">
* <sequence>
* <element name="reason" type="{https://adwords.google.com/api/adwords/cm/v201509}BiddingErrors.Reason" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BiddingErrors", propOrder = {
"reason"
})
public class BiddingErrors
extends ApiError
{
@XmlSchemaType(name = "string")
protected BiddingErrorsReason reason;
/**
* Gets the value of the reason property.
*
* @return
* possible object is
* {@link BiddingErrorsReason }
*
*/
public BiddingErrorsReason getReason() {
return reason;
}
/**
* Sets the value of the reason property.
*
* @param value
* allowed object is
* {@link BiddingErrorsReason }
*
*/
public void setReason(BiddingErrorsReason value) {
this.reason = value;
}
}
|
[
"vacuum13@gmail.com"
] |
vacuum13@gmail.com
|
83a775ee135598ec6757324c1919d568eaaab7f0
|
68170a7ca597158ce1cd3553c6d0f018a7e30562
|
/src/it/csi/mddtools/rdbmdl/constraints/provider/IndexedColumnItemProvider.java
|
8384b502321e37476696410d4d4670c871d8a251
|
[] |
no_license
|
csipiemonte/datagen
|
a70a5ef895c80bd504744531fb63ace131c05e79
|
6686188a61b6b6a9e97ff0f27be7bb217df8ab2f
|
refs/heads/master
| 2020-08-29T11:57:45.033820
| 2019-08-23T16:01:17
| 2019-08-23T16:04:12
| 218,024,435
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,057
|
java
|
/**
* <copyright>
* (C) Copyright 2011 CSI-PIEMONTE;
* Concesso in licenza a norma dell'EUPL, esclusivamente versione 1.1;
* Non e' possibile utilizzare l'opera salvo nel rispetto della Licenza.
* E' possibile ottenere una copia della Licenza al seguente indirizzo:
*
* http://www.eupl.it/opensource/eupl-1-1
*
* Salvo diversamente indicato dalla legge applicabile o concordato per
* iscritto, il software distribuito secondo i termini della Licenza e'
* distribuito "TAL QUALE", SENZA GARANZIE O CONDIZIONI DI ALCUN TIPO,
* esplicite o implicite.
* Si veda la Licenza per la lingua specifica che disciplina le autorizzazioni
* e le limitazioni secondo i termini della Licenza.
* </copyright>
*
* $Id$
*/
package it.csi.mddtools.rdbmdl.constraints.provider;
import it.csi.mddtools.rdbmdl.constraints.ConstraintsPackage;
import it.csi.mddtools.rdbmdl.constraints.IndexedColumn;
import it.csi.mddtools.rdbmdl.provider.NamedElementItemProvider;
import it.csi.mddtools.rdbmdl.provider.RdbmdlEditPlugin;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
/**
* This is the item provider adapter for a {@link it.csi.mddtools.rdbmdl.constraints.IndexedColumn} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class IndexedColumnItemProvider
extends NamedElementItemProvider {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IndexedColumnItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
/**
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
addAscendingPropertyDescriptor(object);
addRefColumnPropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
/**
* This adds a property descriptor for the Ascending feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addAscendingPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_IndexedColumn_ascending_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_IndexedColumn_ascending_feature", "_UI_IndexedColumn_type"),
ConstraintsPackage.Literals.INDEXED_COLUMN__ASCENDING,
true,
false,
false,
ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
null,
null));
}
/**
* This adds a property descriptor for the Ref Column feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addRefColumnPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_IndexedColumn_refColumn_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_IndexedColumn_refColumn_feature", "_UI_IndexedColumn_type"),
ConstraintsPackage.Literals.INDEXED_COLUMN__REF_COLUMN,
true,
false,
true,
null,
null,
null));
}
/**
* This returns IndexedColumn.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object getImage(Object object) {
return overlayImage(object, getResourceLocator().getImage("full/obj16/IndexedColumn"));
}
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object) {
String label = ((IndexedColumn)object).getName();
return label == null || label.length() == 0 ?
getString("_UI_IndexedColumn_type") :
getString("_UI_IndexedColumn_type") + " " + label;
}
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(IndexedColumn.class)) {
case ConstraintsPackage.INDEXED_COLUMN__ASCENDING:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
}
super.notifyChanged(notification);
}
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public ResourceLocator getResourceLocator() {
return RdbmdlEditPlugin.INSTANCE;
}
}
|
[
"mauro.antonaci@csi.it"
] |
mauro.antonaci@csi.it
|
b839ecac1f61a009aa7e6d7ed77906cb256fe041
|
61c6164c22142c4369d525a0997b695875865e29
|
/base/src/main/java/com/spirit/client/CriteriaTarea.java
|
5869aa2db95be7e88a0ca5bab4d4912f1b859735
|
[] |
no_license
|
xruiz81/spirit-creacional
|
e5a6398df65ac8afa42be65886b283007d190eae
|
382ee7b1a6f63924b8eb895d4781576627dbb3e5
|
refs/heads/master
| 2016-09-05T14:19:24.440871
| 2014-11-10T17:12:34
| 2014-11-10T17:12:34
| 26,328,756
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 440
|
java
|
package com.spirit.client;
import java.io.Serializable;
import com.spirit.client.model.SpiritModel;
import com.spirit.exception.GenericBusinessException;
public abstract class CriteriaTarea implements Serializable {
public abstract String getNombreCriteria();
public abstract String getNombrePanel();
public abstract void realizarAccion() throws GenericBusinessException;
public abstract SpiritModel getPanel() ;
}
|
[
"xruiz@creacional.com"
] |
xruiz@creacional.com
|
90ebe7208d7b409eaff68d2400e0296265f4a107
|
4669ae0a9c105e8c5191de5ee4bd24816e920828
|
/network/app/src/main/java/multi/android/network/iot/IoTClientActivity.java
|
f3e80d4cac1633d2463ead47ebb0a63bfc8f67d8
|
[] |
no_license
|
kim-svadoz/Android
|
505be6a1f05ed88f1a3211eff7fc7ea176dbefdf
|
04ab4c33dea7ed1b265799d786a21ac334a78c9c
|
refs/heads/master
| 2021-05-16T22:11:10.526115
| 2020-05-25T09:49:33
| 2020-05-25T09:49:33
| 250,490,272
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,549
|
java
|
package multi.android.network.iot;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.Random;
import multi.android.network.R;
public class IoTClientActivity extends AppCompatActivity {
IoTAsyncTask asyncTaskExam;
InputStream is;
InputStreamReader isr;
BufferedReader br;
Socket socket;
OutputStream os;
PrintWriter pw;
String androidId;
int flag;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_io_t_client);
//로그인을 해서 DB에 접속한 후에 (인증 후) 발생된 id를 넘겨받아 작업
Random r = new Random();
flag =r.nextInt(2)+1;
if(flag%2==0){
androidId = "1111";
}else{
androidId = "2222";
}
asyncTaskExam = new IoTAsyncTask();
asyncTaskExam.execute(10,20);
}
public void send_msg(final View view){
new Thread(new Runnable() {
@Override
public void run() {
String message="";
if(view.getId()==R.id.led_on){
message = "led_on";
}else if(view.getId()==R.id.led_off){
message = "led_off";
}else{
message = "다른거";
}
pw.println("job/"+message+"/phone/"+androidId);
pw.flush();
}
}).start();
}
class IoTAsyncTask extends AsyncTask<Integer,String,String> {
@Override
protected String doInBackground(Integer... integers) {
try {
socket = new Socket("70.12.230.200", 12345);
if (socket != null) {
ioWork();
}
Thread t1 = new Thread(new Runnable() {
@Override
public void run() {
while (true) {
String msg;
try {
msg = br.readLine();
Log.d("myiot", "서버로 부터 수신된 메시지>>"
+ msg);
} catch (IOException e) {
try {
//2. 서버쪽에서 연결이 끊어지는 경우 사용자는 자원을 반납======
//자원반납
is.close();
isr.close();
br.close();
os.close();
pw.close();
socket.close();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
break;//반복문 빠져나가도록 설정
}
}
}
});
t1.start();
} catch (UnknownHostException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return "";
}
void ioWork(){
//최초접속할 때 서버에게 접속한 아이디에 정보 전달
try {
is = socket.getInputStream();
isr = new InputStreamReader(is);
br = new BufferedReader(isr);
os = socket.getOutputStream();
pw = new PrintWriter(os,true);
pw.println("phone/"+androidId);
pw.flush();
} catch (IOException e) {
e.printStackTrace();
}
}
}
@Override
protected void onDestroy() {
super.onDestroy();
try {
if (socket != null) socket.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
|
[
"dhkdghehfdl@gmail.com"
] |
dhkdghehfdl@gmail.com
|
22dad223d733a69f754fc9fa95b6dbc06e4d9b48
|
9254e7279570ac8ef687c416a79bb472146e9b35
|
/pai-dlc-20201203/src/main/java/com/aliyun/pai_dlc20201203/models/ListJobsShrinkRequest.java
|
b4978ce4d72a1e07237800c98048ec55ca2b8015
|
[
"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
| 4,907
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.pai_dlc20201203.models;
import com.aliyun.tea.*;
public class ListJobsShrinkRequest extends TeaModel {
// 作业显示名称,支持模糊查询
@NameInMap("DisplayName")
public String displayName;
// 作业类型
@NameInMap("JobType")
public String jobType;
// 作业状态
@NameInMap("Status")
public String status;
// 起始时间
@NameInMap("StartTime")
public String startTime;
// 截止时间
@NameInMap("EndTime")
public String endTime;
// 当前页
@NameInMap("PageNumber")
public Integer pageNumber;
// 每页返回的作业数
@NameInMap("PageSize")
public Integer pageSize;
// 按返回字段排序
@NameInMap("SortBy")
public String sortBy;
// 排序顺序
@NameInMap("Order")
public String order;
// 是否只返回当前登录者所提交的作业
@NameInMap("ShowOwn")
public Boolean showOwn;
// 工作空间ID
@NameInMap("WorkspaceId")
public String workspaceId;
// 资源组ID
@NameInMap("ResourceId")
public String resourceId;
// 作业关联用户ID
@NameInMap("BusinessUserId")
public String businessUserId;
// 调用方
@NameInMap("Caller")
public String caller;
// 自定义标签
@NameInMap("Tags")
public String tagsShrink;
// 工作流ID
@NameInMap("PipelineId")
public String pipelineId;
public static ListJobsShrinkRequest build(java.util.Map<String, ?> map) throws Exception {
ListJobsShrinkRequest self = new ListJobsShrinkRequest();
return TeaModel.build(map, self);
}
public ListJobsShrinkRequest setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public String getDisplayName() {
return this.displayName;
}
public ListJobsShrinkRequest setJobType(String jobType) {
this.jobType = jobType;
return this;
}
public String getJobType() {
return this.jobType;
}
public ListJobsShrinkRequest setStatus(String status) {
this.status = status;
return this;
}
public String getStatus() {
return this.status;
}
public ListJobsShrinkRequest setStartTime(String startTime) {
this.startTime = startTime;
return this;
}
public String getStartTime() {
return this.startTime;
}
public ListJobsShrinkRequest setEndTime(String endTime) {
this.endTime = endTime;
return this;
}
public String getEndTime() {
return this.endTime;
}
public ListJobsShrinkRequest setPageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
public Integer getPageNumber() {
return this.pageNumber;
}
public ListJobsShrinkRequest setPageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
public Integer getPageSize() {
return this.pageSize;
}
public ListJobsShrinkRequest setSortBy(String sortBy) {
this.sortBy = sortBy;
return this;
}
public String getSortBy() {
return this.sortBy;
}
public ListJobsShrinkRequest setOrder(String order) {
this.order = order;
return this;
}
public String getOrder() {
return this.order;
}
public ListJobsShrinkRequest setShowOwn(Boolean showOwn) {
this.showOwn = showOwn;
return this;
}
public Boolean getShowOwn() {
return this.showOwn;
}
public ListJobsShrinkRequest setWorkspaceId(String workspaceId) {
this.workspaceId = workspaceId;
return this;
}
public String getWorkspaceId() {
return this.workspaceId;
}
public ListJobsShrinkRequest setResourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
public String getResourceId() {
return this.resourceId;
}
public ListJobsShrinkRequest setBusinessUserId(String businessUserId) {
this.businessUserId = businessUserId;
return this;
}
public String getBusinessUserId() {
return this.businessUserId;
}
public ListJobsShrinkRequest setCaller(String caller) {
this.caller = caller;
return this;
}
public String getCaller() {
return this.caller;
}
public ListJobsShrinkRequest setTagsShrink(String tagsShrink) {
this.tagsShrink = tagsShrink;
return this;
}
public String getTagsShrink() {
return this.tagsShrink;
}
public ListJobsShrinkRequest setPipelineId(String pipelineId) {
this.pipelineId = pipelineId;
return this;
}
public String getPipelineId() {
return this.pipelineId;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
e2e766525ed8283cf17899be2f4f52d6a062aadd
|
f910a84171e04f833a415f5d9bcc36920aa8c9aa
|
/User-Registration-Module/src/main/java/nybsys/tillboxweb/entities/BusinessAddress.java
|
d6733a7b7d0dc492a034bbb2f638c63e12328808
|
[] |
no_license
|
rocky-bgta/Java_Mircoservice_Backend_With_Mosquitto
|
7ecb35ca05c1d44d5f43668ccd6c5f3bcb40e03b
|
7528f12ed35560fcd4aba40b613ff09c5032bebf
|
refs/heads/master
| 2022-11-17T23:50:42.207381
| 2020-09-18T13:53:00
| 2020-09-18T13:53:00
| 138,392,854
| 0
| 1
| null | 2022-11-16T07:30:17
| 2018-06-23T10:38:52
|
Java
|
UTF-8
|
Java
| false
| false
| 3,831
|
java
|
package nybsys.tillboxweb.entities;
import nybsys.tillboxweb.BaseEntity;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Objects;
@Entity
public class BusinessAddress extends BaseEntity {
@Id
@GeneratedValue(generator = "IdGen")
@GenericGenerator(name = "IdGen", strategy = "org.hibernate.id.enhanced.SequenceStyleGenerator",
parameters =
{
@org.hibernate.annotations.Parameter(name = "sequence_name", value = "addressID_seq"),
@org.hibernate.annotations.Parameter(name = "optimizer", value = "pooled"),
@org.hibernate.annotations.Parameter(name = "initial_value", value = "1"),
@org.hibernate.annotations.Parameter(name = "increment_size", value = "1"),
})
private Integer addressID;
private Integer businessID;
private Integer typeID;
private String address;
private String suburb;
private String state;
private Integer postCode;
private Integer country;
public Integer getAddressID() {
return addressID;
}
public void setAddressID(Integer addressID) {
this.addressID = addressID;
}
public Integer getBusinessID() {
return businessID;
}
public void setBusinessID(Integer businessID) {
this.businessID = businessID;
}
public Integer getTypeID() {
return typeID;
}
public void setTypeID(Integer typeID) {
this.typeID = typeID;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getSuburb() {
return suburb;
}
public void setSuburb(String suburb) {
this.suburb = suburb;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public Integer getPostCode() {
return postCode;
}
public void setPostCode(Integer postCode) {
this.postCode = postCode;
}
public Integer getCountry() {
return country;
}
public void setCountry(Integer country) {
this.country = country;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof BusinessAddress)) return false;
if (!super.equals(o)) return false;
BusinessAddress that = (BusinessAddress) o;
return Objects.equals(getAddressID(), that.getAddressID()) &&
Objects.equals(getBusinessID(), that.getBusinessID()) &&
Objects.equals(getTypeID(), that.getTypeID()) &&
Objects.equals(getAddress(), that.getAddress()) &&
Objects.equals(getSuburb(), that.getSuburb()) &&
Objects.equals(getState(), that.getState()) &&
Objects.equals(getPostCode(), that.getPostCode()) &&
Objects.equals(getCountry(), that.getCountry());
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode(), getAddressID(), getBusinessID(), getTypeID(), getAddress(), getSuburb(), getState(), getPostCode(), getCountry());
}
@Override
public String toString() {
return "BusinessAddress{" +
"addressID=" + addressID +
", businessID=" + businessID +
", typeID=" + typeID +
", address='" + address + '\'' +
", suburb='" + suburb + '\'' +
", state='" + state + '\'' +
", postCode=" + postCode +
", country=" + country +
'}';
}
}
|
[
"rocky.bgta@gmail.com"
] |
rocky.bgta@gmail.com
|
1474a4baf666a3ea5a0980942b58f92bf97691be
|
13c2d3db2d49c40c74c2e6420a9cd89377f1c934
|
/program_data/JavaProgramData/103/624.java
|
9c8ef03e6dc3bb59be0747f39b4ae69615fe3071
|
[
"MIT"
] |
permissive
|
qiuchili/ggnn_graph_classification
|
c2090fefe11f8bf650e734442eb96996a54dc112
|
291ff02404555511b94a4f477c6974ebd62dcf44
|
refs/heads/master
| 2021-10-18T14:54:26.154367
| 2018-10-21T23:34:14
| 2018-10-21T23:34:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,311
|
java
|
package <missing>;
public class GlobalMembers
{
public static int Main()
{
int i;
int[] a = new int[1000];
int x;
String s = new String(new char[1001]);
String tempVar = ConsoleInput.scanfRead();
if (tempVar != null)
{
s = tempVar.charAt(0);
}
x = s.length();
for (i = 0;i < 1000;i++)
{
a[i] = 1;
}
for (i = 1;i <= x;i++)
{
if ((s.charAt(i) - 'A') == (s.charAt(i - 1) - 'A' - 32))
{
a[s.charAt(i) - 'A']++;
}
else if ((s.charAt(i) - 'A' - 32) == (s.charAt(i - 1) - 'A'))
{
a[s.charAt(i) - 'A' - 32]++;
}
else if ((s.charAt(i) - '0') == (s.charAt(i - 1) - '0'))
{
if ((s.charAt(i) - '0') < 43)
{
a[s.charAt(i) - 'A']++;
}
else
{
a[s.charAt(i) - 'A' - 32]++;
}
}
else
{
if ((s.charAt(i - 1) - '0') < 43)
{
System.out.printf("(%c,%d)",s.charAt(i - 1),a[s.charAt(i - 1) - 'A']);
a[s.charAt(i - 1) - 'A'] = 1;
}
else
{
System.out.printf("(%c,%d)",s.charAt(i - 1) - 'A' - 32 + 'A',a[s.charAt(i - 1) - 'A' - 32]);
a[s.charAt(i - 1) - 'A' - 32] = 1;
}
}
}
}
}
|
[
"y.yu@open.ac.uk"
] |
y.yu@open.ac.uk
|
81131f2af32721e145cfc88e96acbb82b2f51b19
|
f252c466eccd63f619cc9622f69b945e57a6d4da
|
/src/main/java/org/ros/internal/message/field/MessageFields.java
|
9cb4a31d9ffc36e7067c36a76d9a75bc51e5a504
|
[] |
no_license
|
neocoretechs/RosJavaLiteBootstrap
|
d7f6c2cf2a558ecf2a1447d0df947301dbb51e80
|
00381871ab9d587fa772687e794af12a53206243
|
refs/heads/master
| 2021-07-09T14:16:36.224498
| 2021-04-24T18:11:31
| 2021-04-24T18:11:31
| 41,332,862
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,860
|
java
|
package org.ros.internal.message.field;
import org.ros.exception.RosRuntimeException;
import org.ros.internal.message.context.MessageContext;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author Jonathan Groff Copyright (C) NeoCoreTechs 2015,2021
*/
public class MessageFields implements Serializable {
private static final long serialVersionUID = -8375131025949194350L;
private Map<String, Field> fields;
private Map<String, Field> setters;
private Map<String, Field> getters;
private List<Field> orderedFields;
public MessageFields(MessageContext messageContext) {
fields = new HashMap<String, Field>();
setters = new HashMap<String, Field>();
getters = new HashMap<String, Field>();
orderedFields = new ArrayList<Field>();
for (String name : messageContext.getFieldNames()) {
Field field = messageContext.getFieldFactory(name).create();
fields.put(name, field);
getters.put(messageContext.getFieldGetterName(name), field);
setters.put(messageContext.getFieldSetterName(name), field);
orderedFields.add(field);
}
}
public MessageFields() {}
public Field getField(String name) {
return fields.get(name);
}
public Field getSetterField(String name) {
return setters.get(name);
}
public Field getGetterField(String name) {
return getters.get(name);
}
public List<Field> getFields() {
return Collections.unmodifiableList(orderedFields);
}
public Object getFieldValue(String name) {
Field field = fields.get(name);
if (field != null) {
return field.getValue();
}
throw new RosRuntimeException("Uknown field: " + name);
}
public void setFieldValue(String name, Object value) {
Field field = fields.get(name);
if (field != null) {
field.setValue(value);
} else {
throw new RosRuntimeException("Uknown field: " + name);
}
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((fields == null) ? 0 : fields.hashCode());
result = prime * result + ((orderedFields == null) ? 0 : orderedFields.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;
MessageFields other = (MessageFields) obj;
if (fields == null) {
if (other.fields != null)
return false;
} else if (!fields.equals(other.fields))
return false;
if (orderedFields == null) {
if (other.orderedFields != null)
return false;
} else if (!orderedFields.equals(other.orderedFields))
return false;
return true;
}
}
|
[
"groffj@neocoretechs.com"
] |
groffj@neocoretechs.com
|
a2f6b407115aef2351dfb0a96a55532a2072b5b6
|
45f87afc7fe493a3739885d39f9eb0184c96e0c9
|
/services/vautoscaling/src/main/java/com/ncloud/vautoscaling/model/GetAutoScalingGroupListRequest.java
|
50f352dc39f6bf16ec2f24eb386341c337d48f6d
|
[
"MIT"
] |
permissive
|
NaverCloudPlatform/ncloud-sdk-java
|
6635639835ed19dc82e4605c554f894a14645004
|
bb692dab5f00f94f36c1fcc622bec6d2f2c88d28
|
refs/heads/master
| 2023-05-03T07:21:03.219343
| 2023-04-19T10:56:17
| 2023-04-19T10:56:17
| 210,761,909
| 7
| 6
|
MIT
| 2023-04-19T10:56:52
| 2019-09-25T05:23:36
|
Java
|
UTF-8
|
Java
| false
| false
| 6,378
|
java
|
/*
* vautoscaling
* VPC Auto Scaling 관련 API<br/>https://ncloud.apigw.ntruss.com/vautoscaling/v2
*
* NBP corp.
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.ncloud.vautoscaling.model;
import java.util.Objects;
import java.util.ArrayList;
import java.util.List;
/**
* GetAutoScalingGroupListRequest
*/
public class GetAutoScalingGroupListRequest {
private String regionCode = null;
private List<String> autoScalingGroupNoList = null;
private List<String> autoScalingGroupNameList = null;
private Integer pageNo = null;
private Integer pageSize = null;
private String sortList = null;
private String responseFormatType = null;
public GetAutoScalingGroupListRequest regionCode(String regionCode) {
this.regionCode = regionCode;
return this;
}
/**
* REGION코드
* @return regionCode
**/
public String getRegionCode() {
return regionCode;
}
public void setRegionCode(String regionCode) {
this.regionCode = regionCode;
}
public GetAutoScalingGroupListRequest autoScalingGroupNoList(List<String> autoScalingGroupNoList) {
this.autoScalingGroupNoList = autoScalingGroupNoList;
return this;
}
public GetAutoScalingGroupListRequest addAutoScalingGroupNoListItem(String autoScalingGroupNoListItem) {
if (this.autoScalingGroupNoList == null) {
this.autoScalingGroupNoList = new ArrayList<String>();
}
this.autoScalingGroupNoList.add(autoScalingGroupNoListItem);
return this;
}
/**
* 오토스케일링그룹번호리스트
* @return autoScalingGroupNoList
**/
public List<String> getAutoScalingGroupNoList() {
return autoScalingGroupNoList;
}
public void setAutoScalingGroupNoList(List<String> autoScalingGroupNoList) {
this.autoScalingGroupNoList = autoScalingGroupNoList;
}
public GetAutoScalingGroupListRequest autoScalingGroupNameList(List<String> autoScalingGroupNameList) {
this.autoScalingGroupNameList = autoScalingGroupNameList;
return this;
}
public GetAutoScalingGroupListRequest addAutoScalingGroupNameListItem(String autoScalingGroupNameListItem) {
if (this.autoScalingGroupNameList == null) {
this.autoScalingGroupNameList = new ArrayList<String>();
}
this.autoScalingGroupNameList.add(autoScalingGroupNameListItem);
return this;
}
/**
* 오토스케일링그룹이름리스트
* @return autoScalingGroupNameList
**/
public List<String> getAutoScalingGroupNameList() {
return autoScalingGroupNameList;
}
public void setAutoScalingGroupNameList(List<String> autoScalingGroupNameList) {
this.autoScalingGroupNameList = autoScalingGroupNameList;
}
public GetAutoScalingGroupListRequest pageNo(Integer pageNo) {
this.pageNo = pageNo;
return this;
}
/**
* 페이지번호
* @return pageNo
**/
public Integer getPageNo() {
return pageNo;
}
public void setPageNo(Integer pageNo) {
this.pageNo = pageNo;
}
public GetAutoScalingGroupListRequest pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* 페이지사이즈
* @return pageSize
**/
public Integer getPageSize() {
return pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
public GetAutoScalingGroupListRequest sortList(String sortList) {
this.sortList = sortList;
return this;
}
/**
* 정렬리스트
* @return sortList
**/
public String getSortList() {
return sortList;
}
public void setSortList(String sortList) {
this.sortList = sortList;
}
public GetAutoScalingGroupListRequest responseFormatType(String responseFormatType) {
this.responseFormatType = responseFormatType;
return this;
}
/**
* responseFormatType {json, xml}
* @return responseFormatType
**/
public String getResponseFormatType() {
return responseFormatType;
}
public void setResponseFormatType(String responseFormatType) {
this.responseFormatType = responseFormatType;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetAutoScalingGroupListRequest getAutoScalingGroupListRequest = (GetAutoScalingGroupListRequest) o;
return Objects.equals(this.regionCode, getAutoScalingGroupListRequest.regionCode) &&
Objects.equals(this.autoScalingGroupNoList, getAutoScalingGroupListRequest.autoScalingGroupNoList) &&
Objects.equals(this.autoScalingGroupNameList, getAutoScalingGroupListRequest.autoScalingGroupNameList) &&
Objects.equals(this.pageNo, getAutoScalingGroupListRequest.pageNo) &&
Objects.equals(this.pageSize, getAutoScalingGroupListRequest.pageSize) &&
Objects.equals(this.sortList, getAutoScalingGroupListRequest.sortList) &&
Objects.equals(this.responseFormatType, getAutoScalingGroupListRequest.responseFormatType);
}
@Override
public int hashCode() {
return Objects.hash(regionCode, autoScalingGroupNoList, autoScalingGroupNameList, pageNo, pageSize, sortList, responseFormatType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetAutoScalingGroupListRequest {\n");
sb.append(" regionCode: ").append(toIndentedString(regionCode)).append("\n");
sb.append(" autoScalingGroupNoList: ").append(toIndentedString(autoScalingGroupNoList)).append("\n");
sb.append(" autoScalingGroupNameList: ").append(toIndentedString(autoScalingGroupNameList)).append("\n");
sb.append(" pageNo: ").append(toIndentedString(pageNo)).append("\n");
sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n");
sb.append(" sortList: ").append(toIndentedString(sortList)).append("\n");
sb.append(" responseFormatType: ").append(toIndentedString(responseFormatType)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
|
[
"lee.yongtak@navercorp.com"
] |
lee.yongtak@navercorp.com
|
d998cfbdf745bfca368d55da32d9c1a200dedb71
|
cf81ca7cd21a10680eb5de71f70ecabb3699088a
|
/src/main/java/com/xg/arctic/model/User.java
|
bd4fe05e3a3b39c8a03f9af4c4a3d31cd616907d
|
[
"Apache-2.0"
] |
permissive
|
gongmingqm10/Leonard
|
3a4c8f38611f0abfc63fb84ad29c29903518bbb8
|
455052afbf62609a32399522c545cbc0d9085b43
|
refs/heads/master
| 2020-05-30T18:44:31.924442
| 2014-08-09T08:00:35
| 2014-08-09T08:00:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 649
|
java
|
package com.xg.arctic.model;
/**
* User: gongming
* Date: 7/25/14
* Time: 9:23 AM
* Email:gongmingqm10@foxmail.com
*/
public class User {
private long id;
private String userName;
private String password;
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
}
|
[
"="
] |
=
|
cd5ad549102caa929b7f211c88a6d65984b1ba47
|
322ac84614bd8d011c79b03d96214d4ceabcf086
|
/src/main/java/com/oseasy/pie/modules/impdata/entity/ProMdApprovalError.java
|
bf05e0f797ff9a5c746ebfb057d78ee8af063608
|
[] |
no_license
|
SchuckBeta/cxcy
|
f2f953c074be5ab8ab8aeac533ade6600135d759
|
ed4ceee397fae9d470fb93579bbf6af631965eaa
|
refs/heads/master
| 2022-12-25T14:53:58.066476
| 2019-09-20T12:28:55
| 2019-09-20T12:28:55
| 209,783,634
| 1
| 0
| null | 2022-12-16T07:46:52
| 2019-09-20T12:18:07
|
Java
|
UTF-8
|
Java
| false
| false
| 7,762
|
java
|
package com.oseasy.pie.modules.impdata.entity;
import org.hibernate.validator.constraints.Length;
import com.oseasy.com.pcore.common.persistence.DataEntity;
/**
* 民大项目立项审核导入错误数据表Entity.
* @author 9527
* @version 2017-09-22
*/
public class ProMdApprovalError extends DataEntity<ProMdApprovalError> {
private static final long serialVersionUID = 1L;
private String impId; // 导入信息表主键
private String proCategory; // 申报类型
private String level; // 申报级别
private String pNumber; // 项目编号
private String pName; // 项目名称
private String leaderName; // 负责人-姓名
private String no; // 负责人-学号
private String mobile; // 负责人-手机
private String proSource; // 项目来源
private String sourceProjectName; // 来源项目名称
private String sourceProjectType; // 来源项目类别
private String teachers1; // 导师-姓名
private String teachers2; // 导师-职称
private String teachers3; // 导师-学历
private String teachers4; // 导师-工号
private String rufu; // 是否申请入孵
private String members1; // 成员-姓名
private String members2; // 成员-学号
private String members3; // 成员-手机
private String result; // 评审结果
private String proModelMdId; // 项目id
private String gnodeid; // 节点
private String sheetIndex;//所在sheet
public ProMdApprovalError() {
super();
}
public ProMdApprovalError(String id) {
super(id);
}
public String getSheetIndex() {
return sheetIndex;
}
public void setSheetIndex(String sheetIndex) {
this.sheetIndex = sheetIndex;
}
@Length(min=1, max=64, message="导入信息表主键长度必须介于 1 和 64 之间")
public String getImpId() {
return impId;
}
public void setImpId(String impId) {
this.impId = impId;
}
@Length(min=0, max=128, message="申报类型长度必须介于 0 和 128 之间")
public String getProCategory() {
return proCategory;
}
public void setProCategory(String proCategory) {
if (proCategory!=null&&proCategory.length()>128) {
return;
}
this.proCategory = proCategory;
}
@Length(min=0, max=128, message="申报级别长度必须介于 0 和 128 之间")
public String getLevel() {
return level;
}
public void setLevel(String level) {
if (level!=null&&level.length()>128) {
return;
}
this.level = level;
}
@Length(min=0, max=128, message="项目编号长度必须介于 0 和 128 之间")
public String getPNumber() {
return pNumber;
}
public void setPNumber(String pNumber) {
if (pNumber!=null&&pNumber.length()>128) {
return;
}
this.pNumber = pNumber;
}
@Length(min=0, max=128, message="项目名称长度必须介于 0 和 128 之间")
public String getPName() {
return pName;
}
public void setPName(String pName) {
if (pName!=null&&pName.length()>128) {
return;
}
this.pName = pName;
}
@Length(min=0, max=128, message="负责人-姓名长度必须介于 0 和 128 之间")
public String getLeaderName() {
return leaderName;
}
public void setLeaderName(String leaderName) {
if (leaderName!=null&&leaderName.length()>128) {
return;
}
this.leaderName = leaderName;
}
@Length(min=0, max=128, message="负责人-学号长度必须介于 0 和 128 之间")
public String getNo() {
return no;
}
public void setNo(String no) {
if (no!=null&&no.length()>128) {
return;
}
this.no = no;
}
@Length(min=0, max=128, message="负责人-手机长度必须介于 0 和 128 之间")
public String getMobile() {
return mobile;
}
public void setMobile(String mobile) {
if (mobile!=null&&mobile.length()>128) {
return;
}
this.mobile = mobile;
}
@Length(min=0, max=128, message="项目来源长度必须介于 0 和 128 之间")
public String getProSource() {
return proSource;
}
public void setProSource(String proSource) {
if (proSource!=null&&proSource.length()>128) {
return;
}
this.proSource = proSource;
}
@Length(min=0, max=128, message="来源项目名称长度必须介于 0 和 128 之间")
public String getSourceProjectName() {
return sourceProjectName;
}
public void setSourceProjectName(String sourceProjectName) {
if (sourceProjectName!=null&&sourceProjectName.length()>128) {
return;
}
this.sourceProjectName = sourceProjectName;
}
@Length(min=0, max=128, message="来源项目类别长度必须介于 0 和 128 之间")
public String getSourceProjectType() {
return sourceProjectType;
}
public void setSourceProjectType(String sourceProjectType) {
if (sourceProjectType!=null&&sourceProjectType.length()>128) {
return;
}
this.sourceProjectType = sourceProjectType;
}
@Length(min=0, max=128, message="导师-姓名长度必须介于 0 和 128 之间")
public String getTeachers1() {
return teachers1;
}
public void setTeachers1(String teachers1) {
if (teachers1!=null&&teachers1.length()>128) {
return;
}
this.teachers1 = teachers1;
}
@Length(min=0, max=128, message="导师-职称长度必须介于 0 和 128 之间")
public String getTeachers2() {
return teachers2;
}
public void setTeachers2(String teachers2) {
if (teachers2!=null&&teachers2.length()>128) {
return;
}
this.teachers2 = teachers2;
}
@Length(min=0, max=128, message="导师-学历长度必须介于 0 和 128 之间")
public String getTeachers3() {
return teachers3;
}
public void setTeachers3(String teachers3) {
if (teachers3!=null&&teachers3.length()>128) {
return;
}
this.teachers3 = teachers3;
}
@Length(min=0, max=128, message="导师-工号长度必须介于 0 和 128 之间")
public String getTeachers4() {
return teachers4;
}
public void setTeachers4(String teachers4) {
if (teachers4!=null&&teachers4.length()>128) {
return;
}
this.teachers4 = teachers4;
}
@Length(min=0, max=128, message="是否申请入孵长度必须介于 0 和 128 之间")
public String getRufu() {
return rufu;
}
public void setRufu(String rufu) {
if (rufu!=null&&rufu.length()>128) {
return;
}
this.rufu = rufu;
}
@Length(min=0, max=256, message="成员-姓名长度必须介于 0 和 256 之间")
public String getMembers1() {
return members1;
}
public void setMembers1(String members1) {
if (members1!=null&&members1.length()>256) {
return;
}
this.members1 = members1;
}
@Length(min=0, max=256, message="成员-学号长度必须介于 0 和 256 之间")
public String getMembers2() {
return members2;
}
public void setMembers2(String members2) {
if (members2!=null&&members2.length()>256) {
return;
}
this.members2 = members2;
}
@Length(min=0, max=256, message="成员-手机长度必须介于 0 和 256 之间")
public String getMembers3() {
return members3;
}
public void setMembers3(String members3) {
if (members3!=null&&members3.length()>256) {
return;
}
this.members3 = members3;
}
@Length(min=0, max=12, message="评审结果长度必须介于 0 和 12 之间")
public String getResult() {
return result;
}
public void setResult(String result) {
if (result!=null&&result.length()>12) {
return;
}
this.result = result;
}
@Length(min=0, max=64, message="项目id长度必须介于 0 和 64 之间")
public String getProModelMdId() {
return proModelMdId;
}
public void setProModelMdId(String proModelMdId) {
if (proModelMdId!=null&&proModelMdId.length()>64) {
return;
}
this.proModelMdId = proModelMdId;
}
@Length(min=0, max=64, message="节点长度必须介于 0 和 64 之间")
public String getGnodeid() {
return gnodeid;
}
public void setGnodeid(String gnodeid) {
if (gnodeid!=null&&gnodeid.length()>64) {
return;
}
this.gnodeid = gnodeid;
}
}
|
[
"chenhao@os-easy.com"
] |
chenhao@os-easy.com
|
29fa98b3ea1e885f93719bd03a4c7f69c23b4232
|
421c0da368cc4fcd01531cb3bc04b1cee5922cd4
|
/src/main/java/bf/gov/application/config/ApplicationProperties.java
|
d91b2e208f80fa1fee21e9527981f2b425ac10b0
|
[] |
no_license
|
wmmitte/einstances
|
6c72b4507f6939b59115676141a6a7fbc558dd2e
|
4826e378abfa8bf1fa970b5c8d62246bc9686d66
|
refs/heads/master
| 2020-03-30T04:36:42.710107
| 2018-09-28T14:30:08
| 2018-09-28T14:30:08
| 150,752,735
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 422
|
java
|
package bf.gov.application.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* Properties specific to Einstances.
* <p>
* Properties are configured in the application.yml file.
* See {@link io.github.jhipster.config.JHipsterProperties} for a good example.
*/
@ConfigurationProperties(prefix = "application", ignoreUnknownFields = false)
public class ApplicationProperties {
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
dc01fac07ecd795bac5f57e204c497a3ddfd3340
|
3d2905ec0a8d3283ec0059acc027de51806968d6
|
/diamond-client-3.7.0/src/main/java/com/taobao/diamond/manager/ManagerListenerAdapter.java
|
e442fda269a8c703d280d25c83d3c2d26fc970f6
|
[] |
no_license
|
jooo000hn/my-im
|
9cddd5c9ae7a0a50b9c0ae6b83748ce3bbb2f105
|
b02856db68fab0110b582d17e88fd77adbd9325f
|
refs/heads/master
| 2021-01-21T06:19:11.948931
| 2017-02-26T14:10:10
| 2017-02-26T14:10:10
| 83,211,820
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 218
|
java
|
package com.taobao.diamond.manager;
import java.util.concurrent.Executor;
public abstract class ManagerListenerAdapter implements ManagerListener {
public Executor getExecutor() {
return null;
}
}
|
[
"jooo000hn@163.com"
] |
jooo000hn@163.com
|
06583300e6d2cd133d7318a0d472e4ed79b1628d
|
f83f02b7073419251ac135bdb5893f6d0b20e64a
|
/workspace/POM/src/test/encapsulation/test.java
|
dfaea6de432c8397598208dc6e858be08f9ce06f
|
[] |
no_license
|
sheel2006/Mylearning
|
e9aebdb470bb3b0117807b4d4a8d57ff601c1402
|
b5a00623e48f4a4495ddb8fe362ac685cdb51bf7
|
refs/heads/master
| 2020-03-12T06:25:36.721299
| 2018-04-22T06:17:49
| 2018-04-22T06:17:49
| 130,484,988
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 210
|
java
|
package test.encapsulation;
public class test {
public static void main(String[] args) {
Room r = new Room();
r.space=100;
School s = new School(r);
s.teach();
System.out.println(s.r.getspace());
}
}
|
[
"sheel2006@gmail.com"
] |
sheel2006@gmail.com
|
34878b8a77bd9deebc5f82c94f276de5d6e4a540
|
a875bcbce08766672d3051584b5374913c867f89
|
/intro_to_enums/src/practice/Hobby.java
|
cf2b5f7ad4d0698985cba2e22883a656e0674c33
|
[] |
no_license
|
joshbarcher/SDEV220_fall2020
|
20f23e197231183676aea564c1c737af54234ec4
|
b72abaa05036bdb8256c56406f36cc1bf6d44136
|
refs/heads/master
| 2023-01-25T01:07:55.256227
| 2020-12-04T19:01:29
| 2020-12-04T19:01:29
| 290,044,793
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 138
|
java
|
package practice;
public enum Hobby
{
BOXING,
YOGA,
GAMING,
ROCK_CLIMBING,
VIDEO_EDITING,
PAINTING,
FLYING
}
|
[
"jarcher@greenriver.edu"
] |
jarcher@greenriver.edu
|
22faaa266941ed1aeb36dd6c1e851c9bd05875e2
|
ed3cb95dcc590e98d09117ea0b4768df18e8f99e
|
/project_1_1/src/b/i/e/c/Calc_1_1_18429.java
|
75eb97c2635cfcccd668781147ca26fc7343ca0e
|
[] |
no_license
|
chalstrick/bigRepo1
|
ac7fd5785d475b3c38f1328e370ba9a85a751cff
|
dad1852eef66fcec200df10083959c674fdcc55d
|
refs/heads/master
| 2016-08-11T17:59:16.079541
| 2015-12-18T14:26:49
| 2015-12-18T14:26:49
| 48,244,030
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 134
|
java
|
package b.i.e.c;
public class Calc_1_1_18429 {
/** @return the sum of a and b */
public int add(int a, int b) {
return a+b;
}
}
|
[
"christian.halstrick@sap.com"
] |
christian.halstrick@sap.com
|
443da46ac26c64b2bc4e763612e5cb1868af187c
|
e7d9b7ab98625538df2b0d2f7df97e4f4bc331fd
|
/commons/src/main/java/com/enliple/pudding/commons/network/vo/BaseAPI.java
|
1c7344381171a23a5d602643de946ff04c854f4b
|
[] |
no_license
|
ssang83/Pudding
|
5c9f1703c5f7101b65c63db5af604f70474fee99
|
474fa922a1bc663bd3504c852837474da32617e8
|
refs/heads/main
| 2023-03-11T10:02:06.471278
| 2021-02-24T07:07:34
| 2021-02-24T07:07:34
| 341,803,579
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 470
|
java
|
package com.enliple.pudding.commons.network.vo;
/**
* Created by Kim Joonsung on 2018-11-20.
*/
public class BaseAPI {
/**
* status : true
* message : false 인경우 메시지
*/
public boolean status;
public String message;
@Override
public String toString() {
return "BaseAPI{" +
"status=" + status +
", message='" + message + '\'' +
'}';
}
}
|
[
"js.kim@petdoc.co.kr"
] |
js.kim@petdoc.co.kr
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.