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
33a87dc09683cde407969fd6f2907f24235f1a73
fbadaeab2f78ede5d91013e77817836f319c56c3
/src/magic/card/Reprisal.java
29e31aa21d3aae214b1cdfa5cf4396489681be26
[]
no_license
neoedmund/neoedmund-magarena
181b340fc3a25cf8e99ebd21fb4dd05de727708c
abe5f43288b88286a4a539fb0357bac8201b2568
refs/heads/master
2016-09-06T05:17:18.761950
2012-03-20T12:51:52
2012-03-20T12:51:52
32,125,604
0
1
null
null
null
null
UTF-8
Java
false
false
1,984
java
package magic.card; import magic.model.MagicGame; import magic.model.MagicPayedCost; import magic.model.MagicPermanent; import magic.model.MagicPermanentState; import magic.model.MagicPlayer; import magic.model.action.MagicChangeStateAction; import magic.model.action.MagicDestroyAction; import magic.model.action.MagicMoveCardAction; import magic.model.action.MagicPermanentAction; import magic.model.choice.MagicTargetChoice; import magic.model.event.MagicEvent; import magic.model.event.MagicSpellCardEvent; import magic.model.stack.MagicCardOnStack; import magic.model.target.MagicDestroyTargetPicker; public class Reprisal { public static final MagicSpellCardEvent S = new MagicSpellCardEvent() { @Override public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) { final MagicPlayer player = cardOnStack.getController(); return new MagicEvent( cardOnStack.getCard(), player, MagicTargetChoice.NEG_TARGET_CREATURE_POWER_4_OR_MORE, new MagicDestroyTargetPicker(true), new Object[]{cardOnStack}, this, "Destroy target creature$ with power 4 or greater. It can't be regenerated."); } @Override public void executeEvent( final MagicGame game, final MagicEvent event, final Object[] data, final Object[] choiceResults) { game.doAction(new MagicMoveCardAction((MagicCardOnStack)data[0])); event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() { public void doAction(final MagicPermanent permanent) { game.doAction(new MagicChangeStateAction(permanent,MagicPermanentState.CannotBeRegenerated,true)); game.doAction(new MagicDestroyAction(permanent)); } }); } }; }
[ "neoedmund@gmail.com" ]
neoedmund@gmail.com
ea880b3395e72900822ee62477e4b0bfad7e7ff9
ec9bf57a07b7b06134ec7a21407a11f69cc644f7
/src/com/ubercab/rider/realtime/object/ObjectTripPendingRatingVehicle.java
c7a0a6cc0b680e95ef3263b27f5a98f6836f3d3c
[]
no_license
jzarca01/com.ubercab
f95c12cab7a28f05e8f1d1a9d8a12a5ac7fbf4b1
e6b454fb0ad547287ae4e71e59d6b9482369647a
refs/heads/master
2020-06-21T04:37:43.723581
2016-07-19T16:30:34
2016-07-19T16:30:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
328
java
package com.ubercab.rider.realtime.object; import com.ubercab.shape.Shape; import naj; @Shape abstract class ObjectTripPendingRatingVehicle implements naj {} /* Location: * Qualified Name: com.ubercab.rider.realtime.object.ObjectTripPendingRatingVehicle * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
0559fa514e7fb13ad7d9a21a05623582f9afc03d
2a91fb51f7dd40b8873e26f5a5f0bef631f99332
/testsuite/integration/src/test/java/io/smallrye/faulttolerance/vertx/retry/fallback/AsyncRetryFallbackOnVertxThreadTest.java
0a74859bc3a13d952aa72d55db37f14cc5f2d97a
[ "Apache-2.0" ]
permissive
adalberti/smallrye-fault-tolerance
8cbfc5a9c8f546880f99d78a41f07ef78f9d76db
278e4541380ddaddaca08e15c911ab2c25e9046c
refs/heads/main
2023-03-28T00:59:58.225836
2021-03-29T05:35:59
2021-03-29T08:50:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,256
java
package io.smallrye.faulttolerance.vertx.retry.fallback; import static org.assertj.core.api.Assertions.assertThat; import static org.awaitility.Awaitility.await; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicReference; import org.junit.jupiter.api.Test; import io.smallrye.faulttolerance.vertx.AbstractVertxTest; public class AsyncRetryFallbackOnVertxThreadTest extends AbstractVertxTest { @Test public void nonblockingRetryFallback(MyService myService) { AtomicReference<Object> result = new AtomicReference<>(null); runOnVertx(() -> { myService.hello().whenComplete((value, error) -> { result.set(error == null ? value : error); }); }); await().atMost(5, TimeUnit.SECONDS).until(() -> result.get() != null); assertThat(result.get()).isEqualTo("Hello fallback!"); assertThat(MyService.invocationThreads).hasSize(12); // 1 initial invocation + 10 retries + 1 fallback assertThat(MyService.invocationThreads).allSatisfy(thread -> { assertThat(thread).contains("vert.x-eventloop"); }); assertThat(MyService.invocationThreads).containsOnly(MyService.invocationThreads.peek()); } }
[ "ladicek@gmail.com" ]
ladicek@gmail.com
35c2b7bbf8c3e715024ce1157fd86c6b4d2389eb
7c1430c53b4d66ad0e96dd9fc7465a5826fdfb77
/common-support-0.0.1/src/cn/edu/sdu/common/reportdog/USheetParameter.java
b7664b7484621ed44f5b4b63e4435a18f8b88906
[]
no_license
wang3624270/online-learning-server
ef97fb676485f2bfdd4b479235b05a95ad62f841
2d81920fef594a2d0ac482efd76669c8d95561f1
refs/heads/master
2020-03-20T04:33:38.305236
2019-05-22T06:31:05
2019-05-22T06:31:05
137,187,026
1
0
null
null
null
null
UTF-8
Java
false
false
450
java
package cn.edu.sdu.common.reportdog; import java.io.Serializable; import jxl.write.WritableCellFormat; import jxl.write.WritableSheet; import jxl.write.WritableWorkbook; public class USheetParameter implements Serializable { public WritableWorkbook book; public WritableSheet sheet; public int columnNum = 0; public int row, col = 0; public WritableCellFormat defaultFormat = new WritableCellFormat(); public boolean isEmbedTable = false; }
[ "3624270@qq.com" ]
3624270@qq.com
924b48f9a59885918706bdfe6a46e7705abf051d
f87bf7001040cf7720ca74507ea894cd2bc45104
/experiments/commons-primitives/arraybooleanlist/org.apache.commons.collections.primitives.ArrayBooleanList.add(boolean)/initial_scenario/InitialScenario.java
4da969b40646ba46c285ceda67734f24c61a6aca
[]
no_license
andreamattavelli/sbes-experiments
a1e55bbfa3ce64e8a62b2a7f8d0e52b174af22f8
7f49095dafe523368cf019f30855daa914476e86
refs/heads/master
2021-03-24T13:16:56.955325
2017-03-18T11:55:28
2017-03-18T11:55:28
62,624,376
0
0
null
null
null
null
UTF-8
Java
false
false
965
java
/* * File contenente lo scenario iniziale, generato manualmente * */ package org.apache.commons.collections.primitives; import static org.junit.Assert.*; import org.junit.Test; import org.apache.commons.collections.primitives.ArrayBooleanList; public class InitialScenario{ @Test public void test0() throws Throwable { //Lo scenario iniziale rappresenta l'uso generale di un metodo //Non uso la classe astratta, ma quella concreta ArrayBooleanList collection0 = new ArrayBooleanList(); //Boolean boolean0 = new Boolean(true); /* Proviamo a mettere false perché il problema è che add(boolean) ritorna un boolean mentre add(int, boolean) no. SBES prova a mettere p0 (un ipotetico valore usato come input a add(int x, boolean p0)) ma non è semanticamente corretto. Proviamo a mettere nello scenario iniziale false, e vediamo cosa fa SBES. */ Boolean boolean0 = new Boolean(false); boolean add0 = collection0.add(boolean0); } }
[ "andreamattavelli@gmail.com" ]
andreamattavelli@gmail.com
b27fb875dd83bd93de50a76cfb183c12f4f0908b
49dab7bbffcebe53329e1aee76c230d2396babf2
/server/MyNabaztag/net/violet/mynabaztag/action/MyMessagesVocalAction.java
09954f5c28b97bdf55d51385cd7cf362d7f613ad
[ "MIT" ]
permissive
bxbxbx/nabaztag-source-code
42870b0e91cf794728a20378e706c338ecedb7ba
65197ea668e40fadb35d8ebd0aeb512311f9f547
refs/heads/master
2021-05-29T07:06:19.794006
2015-08-06T16:08:30
2015-08-06T16:08:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,260
java
package net.violet.mynabaztag.action; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import net.violet.mynabaztag.form.MyMessagesVocalForm; import net.violet.platform.datamodel.User; import net.violet.platform.struts.ActionWithLog; import net.violet.platform.util.SessionTools; import net.violet.platform.util.StringShop; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; public class MyMessagesVocalAction extends ActionWithLog { @Override protected ActionForward doExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) { // initialisation des objets final MyMessagesVocalForm myForm = (MyMessagesVocalForm) form; final User user = SessionTools.getUserFromSession(request); /** * Check if the user really exists */ if (user == null) { return mapping.findForward("login"); } // save de la lang myForm.setLangUser(Long.toString(user.getLang().getId())); // Récupère un id unique myForm.setIdMp3(user.getId() + StringShop.UNDERSCORE + System.currentTimeMillis()); return mapping.getInputForward(); } }
[ "sebastien@yoozio.com" ]
sebastien@yoozio.com
76b48c1ddd6b6ef560e16de3edbfddfc866e78f5
75c4712ae3f946db0c9196ee8307748231487e4b
/src/main/java/com/alipay/api/domain/BlockChainTransactionApiDO.java
aae5cb4cb67e9959040c0ad23938fe055d337b85
[ "Apache-2.0" ]
permissive
yuanbaoMarvin/alipay-sdk-java-all
70a72a969f464d79c79d09af8b6b01fa177ac1be
25f3003d820dbd0b73739d8e32a6093468d9ed92
refs/heads/master
2023-06-03T16:54:25.138471
2021-06-25T14:48:21
2021-06-25T14:48:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,030
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 交易明细 * * @author auto create * @since 1.0, 2019-12-02 22:32:37 */ public class BlockChainTransactionApiDO extends AlipayObject { private static final long serialVersionUID = 7219948977977826112L; /** * 区块链ID */ @ApiField("block_chain_id") private String blockChainId; /** * 块hash */ @ApiField("block_hash") private String blockHash; /** * 块高 */ @ApiField("block_height") private Long blockHeight; /** * 智能科技统一客户ID */ @ApiField("cid") private String cid; /** * 起始账户 */ @ApiField("from_account") private String fromAccount; /** * gas消耗 */ @ApiField("gas_used") private Long gasUsed; /** * 目标账户 */ @ApiField("to_account") private String toAccount; /** * 交易hash */ @ApiField("transaction_hash") private String transactionHash; /** * 交易时间戳 */ @ApiField("transaction_timestamp") private Long transactionTimestamp; /** * 交易类型 */ @ApiField("transaction_type") private Long transactionType; /** * 交易金额 */ @ApiField("value") private Long value; public String getBlockChainId() { return this.blockChainId; } public void setBlockChainId(String blockChainId) { this.blockChainId = blockChainId; } public String getBlockHash() { return this.blockHash; } public void setBlockHash(String blockHash) { this.blockHash = blockHash; } public Long getBlockHeight() { return this.blockHeight; } public void setBlockHeight(Long blockHeight) { this.blockHeight = blockHeight; } public String getCid() { return this.cid; } public void setCid(String cid) { this.cid = cid; } public String getFromAccount() { return this.fromAccount; } public void setFromAccount(String fromAccount) { this.fromAccount = fromAccount; } public Long getGasUsed() { return this.gasUsed; } public void setGasUsed(Long gasUsed) { this.gasUsed = gasUsed; } public String getToAccount() { return this.toAccount; } public void setToAccount(String toAccount) { this.toAccount = toAccount; } public String getTransactionHash() { return this.transactionHash; } public void setTransactionHash(String transactionHash) { this.transactionHash = transactionHash; } public Long getTransactionTimestamp() { return this.transactionTimestamp; } public void setTransactionTimestamp(Long transactionTimestamp) { this.transactionTimestamp = transactionTimestamp; } public Long getTransactionType() { return this.transactionType; } public void setTransactionType(Long transactionType) { this.transactionType = transactionType; } public Long getValue() { return this.value; } public void setValue(Long value) { this.value = value; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
b2b56db6ab550d47ee44c2d04f61041b171d285f
4e678f6967745c3da2a3e8899204e34d99fc3be0
/diwali-lights/Solution.java
e5a463655fc0e90129ff206326ed19d1bc47e906
[]
no_license
pratikshah1701/hackerrank
bf689a583b462c0fde697abd536ae0638d14ced9
73fde2a0d9dc063e1c06d42f0572ce01f5dd04b9
refs/heads/master
2021-01-19T18:47:15.278811
2017-04-13T09:16:27
2017-04-13T09:16:27
88,381,516
1
1
null
2017-04-16T00:20:00
2017-04-16T00:20:00
null
UTF-8
Java
false
false
492
java
import java.util.Scanner; public class Solution { static final int MODULUS = 100000; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); for (int tc = 0; tc < T; tc++) { int N = sc.nextInt(); System.out.println(solve(N)); } sc.close(); } static int solve(int N) { int result = 1; for (int i = 0; i < N; i++) { result = result * 2 % MODULUS; } result = (result - 1 + MODULUS) % MODULUS; return result; } }
[ "charles.wangkai@gmail.com" ]
charles.wangkai@gmail.com
cecf560d39fe70f1f5d84b0aa310ef922bb92b29
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/29/29_eaec57f77afb85fc477fadad82f440a98a259876/MIEmmetCountyParser/29_eaec57f77afb85fc477fadad82f440a98a259876_MIEmmetCountyParser_s.java
e44a538e98161b64f9676cc9f25258f6bd946e35
[]
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
3,523
java
package net.anei.cadpage.parsers.MI; import net.anei.cadpage.parsers.MsgInfo.Data; import net.anei.cadpage.parsers.dispatch.DispatchOSSIParser; /* Emmet County, MI CCE Central Dispatch also servers Charlevoix and Cheboygan Counties Contact: Greg Clark <gclark@cce911.com> System: Pagegate CAD:Msg:FYI: ;PERSONAL INJURY ACCIDENT;RBFR;409 N DIVISION RD/SUMMIT PARK DR;2 VEH PI. ONE VEH INTO THE TREES [07/24/12 11:46:46 KMATELSKI]<10><13><10> CAD:Msg:FYI: ;MEDIC TRANSPORT;AEAM;416 CONNABLE AV;GOING TO CHEBOYGAN HOSPIC [07/24/2012 11:57:20 KHEWITT]<10><13><10> CAD:Msg:Update: ;AMBULANCE;EJAM;5632 RICHARDS RD;[Medical Priority Info] PROBLEM: HUSBAND FEELING FAINT 82YM # PATS: 1 AGE: 82 SEX: Male CONSCIOUS: Yes BREATHING: Yes [07/24/12 12:15:28 KMATELSKI]<10>[Medical Priority Info] RESPONSE: Ambula<13><10> CAD:FYI: ;FIRE ASSIST OTHER AGENCY;RBFD;2499 RESORT PIKE RD/INTERTOWN RD;Event spawned from PROPERTY DAMAGE ACCIDENT. [07/24/2012 13:51:20 VNOBLE]<10>SEMI TRUCK TIPPED OVER, NO OTHER VEHS ARE SEEN. DRIVER APPEARS TO BE OUT WALKING AROUND. IT IS JUST THE TRAILER THAT TIPPED<13><10> CAD:Msg:FYI: ;AMBULANCE;AEAM;450 BAY ST;INMATE CUT HIS LEFT ARM. RESPOND TO THE SALLY PORT [07/21/12 15:20:08 EMCKINLEY]<10><13><10> CAD:Msg:FYI: ;FIRE ASSIST OTHER AGENCY;PEFD;450 BAY ST;Event spawned from AMBULANCE. [07/21/2012 15:22:28 EMCKINLEY]<10>INMATE CUT HIS LEFT ARM. RESPOND TO THE SALLY PORT [07/21/12 15:20:08 EMCKINLEY]<10><13><10> CAD:Msg:FYI: ;WATER ICE RESCUE;AEAM;6425 N LAKE SHORE DR;BROKEN CELL UNABLE TO HEAR CALLER WPH2 [07/21/12 16:07:38 BTACHE]<10>ON CB PHONE RANG AND WENT TO NON PERSONALIZED VM [07/21/12 16:08:55 BTACHE]<10>15 YOM ON BEACH VOMITING AND HARD TIME BREATHING. ONE<13><10> CAD:Msg:Update: ;PERSONAL INJURY ACCIDENT;EMSH;1115 N US-31 HWY;STATES A MALE CAME IN ALL BLOODY AND HARDLY WALKING TOLD HER HE WAS HIT BY A DEER ON HIS BICYCLE, SHE ASKED IF SHE WANTED HIM TO CALL 911 FOR EMS AND HE SAID LET ME THINK ABOUT IT THEN HE WALKED OUT O<13><10> CAD:Msg:FYI: ;ACCIDENT UNK INJURY;CCE;1399 LEARS RD/US-131 HWY;RP CALLING FROM WALMART. REPORTING A 2 VEH ACCIDENT AT THE ABOVE INTERSECTION. UNK FURTHER [07/22/12 01:18:48 JBRECHT]<10><13><10> CAD:Msg:FYI: ;VEHICLE FIRE;HSFD;5049 COOK AV/HEYDEY ST;FLAMES SHOWING. RP NOT INVOVLED, SAID THE PPL ARE TRYING TO GET THINGS OUT OF VEH INSTEAD OF GETTING AWAY [07/22/12 11:25:38 BTACHE]<10><13><10> CAD:Msg:FYI: ;BRUSH FIRE;CXFD;11550 SEQUANOTA HEIGHTS DR;STATES THERE ARE ASHES AND SMOKE COMING IN HER YARD UNK WHERE FROM BELIEVES ON SEQUANOTA HEIGHTS...NO BURNING PER DNR WEB SITE [07/22/12 21:38:39 JLEE]<10><13><10> CAD:Msg:FYI: ;AMBULANCE;BCAM;223 SILVER ST;[Medical Priority Info] PROBLEM: FEMALE WITH CHEST PAIN # PATS: 1 AGE: 49 SEX: Female CONSCIOUS: Yes BREATHING: Yes [07/23/12 09:15:45 KMATELSKI]<10><13><10> */ public class MIEmmetCountyParser extends DispatchOSSIParser { public MIEmmetCountyParser() { this("EMMET COUNTY", "MI"); } MIEmmetCountyParser(String defCity, String defState) { super(defCity, defState, "FYI CALL SRC! ADDR INFO+"); } @Override protected boolean parseMsg(String body, Data data) { body = body.replace("CAD:MSG", "CAD:"); return super.parseMsg(body, data); } @Override public Field getField(String name) { if (name.equals("SRC")) return new SourceField("[A-Z]{3,4}", true); return super.getField(name); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
4f34adc01033abf31f6ee060982868dfca3ce0bc
03df23efee13d92b845ae47cfe293c9d13b00a73
/src/main/java/org/blendee/sql/SQLDecorator.java
2b23e118197300514776e5c0254f43bcad63f4fb
[ "MIT" ]
permissive
blendee/blendee
ff394b8711d5a675db792813790cad1bfb12640d
ffb5fd81637714b5d8d3ec7359bcca516dd5a8cc
refs/heads/master
2021-08-22T11:54:36.588983
2021-08-21T16:03:08
2021-08-21T16:03:08
77,333,384
0
0
null
null
null
null
UTF-8
Java
false
false
596
java
package org.blendee.sql; /** * SQL 文を各データベース向けに微調整したり拡張する機能を定義したインターフェイスです。 * @author 千葉 哲嗣 * @see SQLQueryBuilder#addDecorator(SQLDecorator...) */ @FunctionalInterface public interface SQLDecorator { /** * {@link SQLDecorator} の空配列 */ SQLDecorator[] EMPTY_ARRAY = {}; /** * Blendee が生成した SQL 文を、カスタマイズした SQL 文に変換します。 * @param sql 元になる SQL 文 * @return カスタマイズした SQL 文 */ String decorate(String sql); }
[ "ats.t.chiba@gmail.com" ]
ats.t.chiba@gmail.com
6c676e8eb81e81e7a34fe5d9eb7746bcb442e783
2e53b1e78ceb2014acb99dfbdd4e5af671da7971
/app/src/main/java/com/meiku/dev/bean/RuleBean.java
2d8ca26cf41ad09f91d1e355e57ed871daa25e3e
[]
no_license
hs5240leihuang/MrrckApplication
7960cb2278a1a8098c5bc908b3c5d7b241869c5d
aef126d4876e3e45b0984c1b829c38aa326ba598
refs/heads/master
2021-01-12T02:47:13.236711
2017-01-05T11:13:11
2017-01-05T11:14:05
78,102,342
0
0
null
null
null
null
UTF-8
Java
false
false
3,528
java
package com.meiku.dev.bean; public class RuleBean { private String activePrize; private String activeRule; private String applyEndDate; private String applyMaxNum; private String applyNum; private String chainURL; private String clientActivePrizeUrl; private String clientActiveRuleUrl; private String clientImgUrl; private String createDate; private String delStatus; private String endDate; private String id; private String imgUrl; private String isChain; private String postsId; private String signupFlag; private String startDate; private String updateDate; private String userId; private String voteFlag; public String getActivePrize() { return activePrize; } public void setActivePrize(String activePrize) { this.activePrize = activePrize; } public String getActiveRule() { return activeRule; } public void setActiveRule(String activeRule) { this.activeRule = activeRule; } public String getApplyEndDate() { return applyEndDate; } public void setApplyEndDate(String applyEndDate) { this.applyEndDate = applyEndDate; } public String getApplyMaxNum() { return applyMaxNum; } public void setApplyMaxNum(String applyMaxNum) { this.applyMaxNum = applyMaxNum; } public String getApplyNum() { return applyNum; } public void setApplyNum(String applyNum) { this.applyNum = applyNum; } public String getChainURL() { return chainURL; } public void setChainURL(String chainURL) { this.chainURL = chainURL; } public String getClientActivePrizeUrl() { return clientActivePrizeUrl; } public void setClientActivePrizeUrl(String clientActivePrizeUrl) { this.clientActivePrizeUrl = clientActivePrizeUrl; } public String getClientActiveRuleUrl() { return clientActiveRuleUrl; } public void setClientActiveRuleUrl(String clientActiveRuleUrl) { this.clientActiveRuleUrl = clientActiveRuleUrl; } public String getClientImgUrl() { return clientImgUrl; } public void setClientImgUrl(String clientImgUrl) { this.clientImgUrl = clientImgUrl; } public String getCreateDate() { return createDate; } public void setCreateDate(String createDate) { this.createDate = createDate; } public String getDelStatus() { return delStatus; } public void setDelStatus(String delStatus) { this.delStatus = delStatus; } public String getEndDate() { return endDate; } public void setEndDate(String endDate) { this.endDate = endDate; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getImgUrl() { return imgUrl; } public void setImgUrl(String imgUrl) { this.imgUrl = imgUrl; } public String getIsChain() { return isChain; } public void setIsChain(String isChain) { this.isChain = isChain; } public String getPostsId() { return postsId; } public void setPostsId(String postsId) { this.postsId = postsId; } public String getSignupFlag() { return signupFlag; } public void setSignupFlag(String signupFlag) { this.signupFlag = signupFlag; } public String getStartDate() { return startDate; } public void setStartDate(String startDate) { this.startDate = startDate; } public String getUpdateDate() { return updateDate; } public void setUpdateDate(String updateDate) { this.updateDate = updateDate; } public String getUserId() { return userId; } public void setUserId(String userId) { this.userId = userId; } public String getVoteFlag() { return voteFlag; } public void setVoteFlag(String voteFlag) { this.voteFlag = voteFlag; } }
[ "837851174@qq.com" ]
837851174@qq.com
3302fe74152f6f612ee20331a8b2e1d87f0cd6ee
88f60611ea3ec5e7c8f83ab7746fe185563de396
/src/flow/MP/EnviaEmail/AssuntoComunicacaoList.java
eff64ae6d41f1143a72e5e475f21b88f9f9ed048
[]
no_license
gtau/WSTeste
ac6b8bcba4d002a2b70ac94c71940742e89c9ca2
998359cc9346e9f4a614a8552a59f5b9ce5bcf3d
refs/heads/master
2021-01-01T04:06:50.085131
2016-04-27T01:49:30
2016-04-27T01:49:30
57,174,030
0
0
null
null
null
null
UTF-8
Java
false
false
2,059
java
package flow.MP.EnviaEmail; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for AssuntoComunicacaoList complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="AssuntoComunicacaoList"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="assunto-comunicacao" type="{http://ebo.multiplusfidelidade.com.br/v1}AssuntoComunicacao" maxOccurs="unbounded" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "AssuntoComunicacaoList", propOrder = { "assuntoComunicacao" }) public class AssuntoComunicacaoList { @XmlElement(name = "assunto-comunicacao") protected List<AssuntoComunicacao> assuntoComunicacao; /** * Gets the value of the assuntoComunicacao property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the assuntoComunicacao property. * * <p> * For example, to add a new item, do as follows: * <pre> * getAssuntoComunicacao().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link AssuntoComunicacao } * * */ public List<AssuntoComunicacao> getAssuntoComunicacao() { if (assuntoComunicacao == null) { assuntoComunicacao = new ArrayList<AssuntoComunicacao>(); } return this.assuntoComunicacao; } }
[ "gabrieltau@365ti.com.br" ]
gabrieltau@365ti.com.br
9943aea23b5d226378ee5c18c658cb0b9cda364b
0ef39091c0560f294dee8d818b6a4dbb3bec75de
/src/com/yunguanshi/auth/CustomCaptchaMatcher.java
a3fad7948ea41cc87fe775e36b478237805b5d7f
[]
no_license
dounine/yunguanshi
c35e930ca49c88c8d991b3d887483c709f618ab4
2637458a6e4467041c90c58f59d96bffdc4c9624
refs/heads/master
2021-01-12T15:41:26.230398
2015-11-25T10:00:32
2015-11-25T10:00:32
71,852,661
1
0
null
null
null
null
UTF-8
Java
false
false
1,604
java
package com.yunguanshi.auth; import org.apache.shiro.authc.AuthenticationInfo; import org.apache.shiro.authc.AuthenticationToken; import org.apache.shiro.authc.UsernamePasswordToken; import org.apache.shiro.authc.credential.SimpleCredentialsMatcher; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * shiro重写密码验证方式. * @author huanghuanlai * */ public class CustomCaptchaMatcher extends SimpleCredentialsMatcher { private static final Logger logger = LoggerFactory.getLogger(CustomCaptchaMatcher.class); @Override public boolean doCredentialsMatch(AuthenticationToken authcToken, AuthenticationInfo info) { String inputPassword = getUserPassword(authcToken);//用户输入的密码 Object accountCredentials = getCredentials(info); //将密码加密与系统加密后的密码校验,内容一致就返回true,不一致就返回false boolean result = false; try { if(inputPassword.equals(accountCredentials.toString())){ logger.info("hash密码验证成功"); result = true; }else{ result = PasswordHash.validatePassword(inputPassword, accountCredentials.toString()); logger.info("hash密码验证成功"); } } catch (Exception e) { logger.info("密码对比异常"); } return result; } private String getUserPassword(AuthenticationToken authcToken) { UsernamePasswordToken token = (UsernamePasswordToken) authcToken; return String.valueOf(token.getPassword()); } }
[ "102535481@qq.com" ]
102535481@qq.com
fc3fa8aaf161d5d74b14b060fdcc44961e93ae09
29268c08d68b83c661ae4a2aa22a9d26a209f157
/api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/influx/prettyprint/PrettyFilter.java
2d7ade81a4e97465b8ebf73073576e280a6ef8aa
[ "Apache-2.0" ]
permissive
cazacugmihai/hawkular-metrics
6f94df2d61ffe86bb8743c96affa5be5bc49d49f
c141952c1775aabc7a1b2cb5edca2f4308fa4109
refs/heads/master
2021-01-16T18:13:10.367554
2016-06-23T20:04:04
2016-06-23T20:04:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,751
java
/* * Copyright 2014-2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.hawkular.metrics.api.jaxrs.influx.prettyprint; import java.io.IOException; import javax.ws.rs.container.ContainerRequestContext; import javax.ws.rs.container.ContainerRequestFilter; import javax.ws.rs.core.UriInfo; import javax.ws.rs.ext.Provider; /** * Check if the request targets the Influx endpoint and the <em>pretty</em> query parameter is set to true. In this * case, the {@link #PRETTY_PRINT} context property is set to {@link Boolean#TRUE}. * * @author Thomas Segismont * @see PrettyInterceptor * @deprecated as of 0.17 */ @Deprecated @Provider public class PrettyFilter implements ContainerRequestFilter { static final String PRETTY_PRINT = PrettyFilter.class.getName(); @Override public void filter(ContainerRequestContext requestContext) throws IOException { UriInfo uriInfo = requestContext.getUriInfo(); if (!uriInfo.getPath().startsWith("/db")) { return; } requestContext.setProperty(PRETTY_PRINT, Boolean.valueOf(uriInfo.getQueryParameters().getFirst("pretty"))); } }
[ "tsegismo@redhat.com" ]
tsegismo@redhat.com
d41d4a9e674b5cfc65ad09786db8133edbf6f6af
83d781a9c2ba33fde6df0c6adc3a434afa1a7f82
/OrderFulfillment/OrderFulfillment.ServiceOrder/src/main/java/com/servicelive/orderfulfillment/group/command/SOGroupLoggingForTierRoutingCmd.java
44d69a813f795548f5e5a6a843d658c1d7861f0e
[]
no_license
ssriha0/sl-b2b-platform
71ab8ef1f0ccb0a7ad58b18f28a2bf6d5737fcb6
5b4fcafa9edfe4d35c2dcf1659ac30ef58d607a2
refs/heads/master
2023-01-06T18:32:24.623256
2020-11-05T12:23:26
2020-11-05T12:23:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,642
java
package com.servicelive.orderfulfillment.group.command; import com.servicelive.orderfulfillment.common.ProcessVariableUtil; import com.servicelive.orderfulfillment.domain.RoutedProvider; import com.servicelive.orderfulfillment.domain.ServiceOrder; import com.servicelive.orderfulfillment.domain.type.AutoRoutingBehavior; import com.servicelive.orderfulfillment.domain.type.ProviderResponseType; import org.apache.commons.lang.StringUtils; import java.util.HashMap; import java.util.Map; public class SOGroupLoggingForTierRoutingCmd extends SOGroupLoggingCmd { protected void logServiceOrderActivity(ServiceOrder so, Map<String, Object> processVariables) { AutoRoutingBehavior behavior = ProcessVariableUtil.getAutoRoutingBehavior(processVariables); Integer currentTier = null; if(processVariables.containsKey(ProcessVariableUtil.AUTO_ROUTING_TIER)){ currentTier = (Integer)processVariables.get(ProcessVariableUtil.AUTO_ROUTING_TIER); } if(!behavior.equals(AutoRoutingBehavior.Tier) || (behavior.equals(AutoRoutingBehavior.Tier) && null == currentTier)){ super.logServiceOrderActivity(so, processVariables); } } @Override protected void addValuesToDataMap(ServiceOrder so, HashMap<String,Object> soLogDataMap, Map<String, Object> processVariables){ super.addValuesToDataMap(so, soLogDataMap, processVariables); int count = 0; logger.info("Inside addValuesToDataMap SOGroupLoggingForTierRoutingCmd - before for loop"); for (RoutedProvider provider : so.getRoutedResources()) { logger.info("Inside addValuesToDataMap SOGroupLoggingForTierRoutingCmd- Inside for loop"); if (provider.getProviderResponse() == null) { logger.info("Inside addValuesToDataMap SOGroupLoggingForTierRoutingCmd- provider.getProviderResponse() : "); count++; logger.info("A Count - Count : " + count ); } else if(!(provider.getProviderResponse().equals(ProviderResponseType.REJECTED) || provider.getProviderResponse().equals(ProviderResponseType.RELEASED) || provider.getProviderResponse().equals(ProviderResponseType.RELEASED_BY_FIRM))){ logger.info("Inside addValuesToDataMap SOGroupLoggingForTierRoutingCmd- provider.getProviderResponse() : " + provider.getProviderResponse()); count++; logger.info("B Count - Count : " + count ); } } logger.info("Final Count Inside addValuesToDataMap SOGroupLoggingForTierRoutingCmd - Count : " + count ); soLogDataMap.put("PROVIDER_LIST_COUNT", count); } }
[ "Kunal.Pise@transformco.com" ]
Kunal.Pise@transformco.com
ef9ed1f8de82145c2a97539e4e1bd132ec0f4201
bcab114fea9fbd7657ed00f1c1ae127a0424ce9c
/src/main/java/com/qjx/leetcode/bfs/Template.java
c5dda9763017d181ffbe1a0414edb5b60b65896d
[]
no_license
qincasin/leetcode
e20bd0c8d4c7131b3a8a5ba78eb1562b22244f43
06e7b4a364914bfd122c5f46c6763f1ccca46fe0
refs/heads/master
2023-08-17T17:39:39.301248
2023-08-12T02:31:47
2023-08-12T02:31:47
148,297,838
4
1
null
2022-11-16T00:53:33
2018-09-11T10:04:38
Java
UTF-8
Java
false
false
1,631
java
package com.qjx.leetcode.bfs; import com.qjx.leetcode.common.Node; import java.util.Queue; import java.util.Set; /** * Created by qincasin on 2021/3/1. */ public class Template { /** * 队列 q 就不说了,BFS 的核心数据结构; * cur.adj() 泛指 cur 相邻的节点,比如说二维数组中,cur 上下左右四面的位置就是相邻节点; * visited 的主要作用是防止走回头路,大部分时候都是必须的,但是像一般的二叉树结构,没有子节点到父节点的指针,不会走回头路就不需要 visited。 */ // 计算从起点 start 到终点 target 的最近距离 // int BFS(Node start, Node target) { // Queue<Node> q; // 核心数据结构 // Set<Node> visited; // 避免走回头路 // q.offer(start); // 将起点加入队列 // visited.add(start); // int step = 0; // 记录扩散的步数 // while (!q.isEmpty()) { // int sz = q.size(); // /* 将当前队列中的所有节点向四周扩散 */ // for (int i = 0; i < sz; i++) { // Node cur = q.poll(); // /* 划重点:这里判断是否到达终点 */ // if (cur is target) // return step; // /* 将 cur 的相邻节点加入队列 */ // for (Node x : cur.adj()) // if (x not in visited) { // q.offer(x); // visited.add(x); // } // } /* 划重点:更新步数在这里 */ // step++; // } // } }
[ "qincasin@163.com" ]
qincasin@163.com
8db38b0c4c630a2ba0c4d2de7b585a8bb3c122d4
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project84/src/test/java/org/gradle/test/performance84_4/Test84_304.java
8e7c5a5196bf2261c88278218a475667b76d2945
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
292
java
package org.gradle.test.performance84_4; import static org.junit.Assert.*; public class Test84_304 { private final Production84_304 production = new Production84_304("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
dde57297a61467532d17c363d0b9dbdd7d2706fa
fe69b579fc2d07c3fc8cc139cc36c2a656550bf8
/app/src/main/java/com/faisal/peoplentech/lecture/splashscreen/SplashScreen.java
4bd24161ea20f50e9bb62da3218fc3f39a7579ae
[]
no_license
nirzonpop192/SplashScreen
b884691ec4ff15dd2d39c6cafc6b84160cbecd74
e72fadaee7acae97045b93bf2c51bbf4ddffc949
refs/heads/master
2023-01-01T05:09:33.910255
2020-10-24T08:46:59
2020-10-24T08:46:59
306,841,995
0
0
null
null
null
null
UTF-8
Java
false
false
937
java
package com.faisal.peoplentech.lecture.splashscreen; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; public class SplashScreen extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash_screen); /* New Handler to start the Menu-Activity * and close this Splash-Screen after some seconds.*/ new Handler().postDelayed(new Runnable(){ @Override public void run() { /* Create an Intent that will start the Menu-Activity. */ Intent mainIntent = new Intent(SplashScreen.this,MainActivity.class); SplashScreen.this.startActivity(mainIntent); SplashScreen.this.finish(); } }, 3000); } }
[ "nirzon192@gmail.com" ]
nirzon192@gmail.com
cc4c2814ca14800dfc0bc01b91b20fe0603fc5d6
7653e008384de73b57411b7748dab52b561d51e6
/SrcGame/dwo/gameserver/network/game/clientpackets/DummyPacket.java
423027faf5ea7f0cb8e333846a6a3a5452a3a439
[]
no_license
BloodyDawn/Ertheia
14520ecd79c38acf079de05c316766280ae6c0e8
d90d7f079aa370b57999d483c8309ce833ff8af0
refs/heads/master
2021-01-11T22:10:19.455110
2017-01-14T12:15:56
2017-01-14T12:15:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
972
java
/* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package dwo.gameserver.network.game.clientpackets; /** * @author zabbix * Lets drink to code! */ public class DummyPacket extends L2GameClientPacket { @Override protected void readImpl() { } @Override public void runImpl() { } @Override public String getType() { return "DummyPacket"; } }
[ "echipachenko@gmail.com" ]
echipachenko@gmail.com
42632b1ab6fed5c335e78025cdbf86db41be21f6
5665bbf1a0351e7e29b7aab6a213b1620eb39cf2
/CODECPS/cps-web/src/main/java/com/heb/operations/ui/framework/taglib/IfInRoleTag.java
bb3ad5deba72c6bbe25b7c92679a889c0671275e
[]
no_license
khoale22/spingBootJPA
ff18bdee136c0cb1ba311ca8ad1a6f1befbdb255
0806423cd7718f1487cb7062f91fadfe45259beb
refs/heads/master
2020-04-28T04:26:06.810574
2019-03-29T04:42:59
2019-03-29T04:42:59
174,978,539
0
0
null
null
null
null
UTF-8
Java
false
false
656
java
package com.heb.operations.ui.framework.taglib; import javax.servlet.http.HttpServletRequest; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.TagSupport; public class IfInRoleTag extends TagSupport { private String role; @Override public int doStartTag() throws JspException { if(role == null){ throw new JspException("role attribute is required"); } boolean inRole = ((HttpServletRequest)pageContext.getRequest()).isUserInRole(role); return inRole ? EVAL_BODY_INCLUDE : SKIP_BODY; } public String getRole() { return role; } public void setRole(String role) { this.role = role; } }
[ "tran.than@heb.com" ]
tran.than@heb.com
b69e5617561ccc26e108f7f8277c16eb5e95f746
421f0a75a6b62c5af62f89595be61f406328113b
/generated_tests/model_seeding/2_a4j-net.kencochrane.a4j.beans.Lists-0.5-3/net/kencochrane/a4j/beans/Lists_ESTest_scaffolding.java
72321993d0caf0ca493a6bd48b24690c61773b9b
[]
no_license
tigerqiu712/evosuite-model-seeding-empirical-evaluation
c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6
11a920b8213d9855082d3946233731c843baf7bc
refs/heads/master
2020-12-23T21:04:12.152289
2019-10-30T08:02:29
2019-10-30T08:02:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
537
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Tue Oct 29 10:23:43 GMT 2019 */ package net.kencochrane.a4j.beans; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; import org.evosuite.runtime.sandbox.Sandbox; import org.evosuite.runtime.sandbox.Sandbox.SandboxMode; @EvoSuiteClassExclude public class Lists_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pderakhshanfar@bsr01.win.tue.nl" ]
pderakhshanfar@bsr01.win.tue.nl
ad89a1654798ec2bef9e154cda23c0454324189d
a6923e1e56cdbc8bc354cba3e4f699c5f132ae1a
/api/payment/payment-dm/payment-dm-model/src/main/java/com/fenlibao/p2p/model/dm/vo/HXBalanceVO.java
e0228c4d5530a0b6ada39d345588268d7a4eb582
[]
no_license
mddonly/modules
851b8470069aca025ea63db4b79ad281e384216f
22dd100304e86a17bea733a8842a33123f892312
refs/heads/master
2020-03-28T03:26:51.960201
2018-05-11T02:24:37
2018-05-11T02:24:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
974
java
package com.fenlibao.p2p.model.dm.vo; import java.math.BigDecimal; /** * Created by zcai on 2016/11/30. */ public class HXBalanceVO { private BigDecimal balance;//账户余额 private BigDecimal available;//可用余额 private BigDecimal frozen;//冻结金额 public HXBalanceVO() {} public HXBalanceVO(BigDecimal balance, BigDecimal available, BigDecimal frozen) { this.balance = balance; this.available = available; this.frozen = frozen; } public BigDecimal getBalance() { return balance; } public void setBalance(BigDecimal balance) { this.balance = balance; } public BigDecimal getAvailable() { return available; } public void setAvailable(BigDecimal available) { this.available = available; } public BigDecimal getFrozen() { return frozen; } public void setFrozen(BigDecimal frozen) { this.frozen = frozen; } }
[ "13632415004@163.com" ]
13632415004@163.com
f85849dfa4c2d186e89022349e7dffd8a0315ecf
6a61e393dfad6a6cefdf4f06798917c3a7aee971
/tests/61_packages/packages_25_default_pack_2.java/packages_25_default_pack_2.java
81eaa42bde6c9f50acd6f0a3eced87fdb98bfc77
[]
no_license
kframework/java-semantics
388bead15b594f3b2478441a5d95c02d7a0ccbf6
f27067ee7a38d236499992eed1b48064e70680fa
refs/heads/master
2021-09-22T20:42:43.662165
2021-09-15T19:53:33
2021-09-15T19:53:33
11,711,471
14
7
null
2016-03-16T22:03:02
2013-07-27T21:42:38
Java
UTF-8
Java
false
false
333
java
/* Main and two classes A and B are in the default package. The same classes are in the package pack. Test the classes from package pack, by simple name, from another class in pack. */ public class packages_25_default_pack_2 { public static void main(String[] args) { new pack.Test(); System.out.println("Done!"); } }
[ "denis.bogdanas@gmail.com" ]
denis.bogdanas@gmail.com
f78907164a054259605e6a798d07a48168cd95b5
6a95484a8989e92db07325c7acd77868cb0ac3bc
/modules/dfa_axis/src/main/java/com/google/api/ads/dfa/axis/v1_20/Agreement.java
333d8531716f53bea7d291b377119a7f3c5c1a8b
[ "Apache-2.0" ]
permissive
popovsh6/googleads-java-lib
776687dd86db0ce785b9d56555fe83571db9570a
d3cabb6fb0621c2920e3725a95622ea934117daf
refs/heads/master
2020-04-05T23:21:57.987610
2015-03-12T19:59:29
2015-03-12T19:59:29
33,672,406
1
0
null
2015-04-09T14:06:00
2015-04-09T14:06:00
null
UTF-8
Java
false
false
7,142
java
/** * Agreement.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.dfa.axis.v1_20; public class Agreement extends com.google.api.ads.dfa.axis.v1_20.Base implements java.io.Serializable { private java.lang.String description; private java.lang.String emailAddress; private boolean executed; private java.util.Calendar executionDate; public Agreement() { } public Agreement( long id, java.lang.String name, java.lang.String description, java.lang.String emailAddress, boolean executed, java.util.Calendar executionDate) { super( id, name); this.description = description; this.emailAddress = emailAddress; this.executed = executed; this.executionDate = executionDate; } /** * Gets the description value for this Agreement. * * @return description */ public java.lang.String getDescription() { return description; } /** * Sets the description value for this Agreement. * * @param description */ public void setDescription(java.lang.String description) { this.description = description; } /** * Gets the emailAddress value for this Agreement. * * @return emailAddress */ public java.lang.String getEmailAddress() { return emailAddress; } /** * Sets the emailAddress value for this Agreement. * * @param emailAddress */ public void setEmailAddress(java.lang.String emailAddress) { this.emailAddress = emailAddress; } /** * Gets the executed value for this Agreement. * * @return executed */ public boolean isExecuted() { return executed; } /** * Sets the executed value for this Agreement. * * @param executed */ public void setExecuted(boolean executed) { this.executed = executed; } /** * Gets the executionDate value for this Agreement. * * @return executionDate */ public java.util.Calendar getExecutionDate() { return executionDate; } /** * Sets the executionDate value for this Agreement. * * @param executionDate */ public void setExecutionDate(java.util.Calendar executionDate) { this.executionDate = executionDate; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof Agreement)) return false; Agreement other = (Agreement) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = super.equals(obj) && ((this.description==null && other.getDescription()==null) || (this.description!=null && this.description.equals(other.getDescription()))) && ((this.emailAddress==null && other.getEmailAddress()==null) || (this.emailAddress!=null && this.emailAddress.equals(other.getEmailAddress()))) && this.executed == other.isExecuted() && ((this.executionDate==null && other.getExecutionDate()==null) || (this.executionDate!=null && this.executionDate.equals(other.getExecutionDate()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = super.hashCode(); if (getDescription() != null) { _hashCode += getDescription().hashCode(); } if (getEmailAddress() != null) { _hashCode += getEmailAddress().hashCode(); } _hashCode += (isExecuted() ? Boolean.TRUE : Boolean.FALSE).hashCode(); if (getExecutionDate() != null) { _hashCode += getExecutionDate().hashCode(); } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(Agreement.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.doubleclick.net/dfa-api/v1.20", "Agreement")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("description"); elemField.setXmlName(new javax.xml.namespace.QName("", "description")); elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("emailAddress"); elemField.setXmlName(new javax.xml.namespace.QName("", "emailAddress")); elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("executed"); elemField.setXmlName(new javax.xml.namespace.QName("", "executed")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("executionDate"); elemField.setXmlName(new javax.xml.namespace.QName("", "executionDate")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } /** * Get Custom Serializer */ public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanSerializer( _javaType, _xmlType, typeDesc); } /** * Get Custom Deserializer */ public static org.apache.axis.encoding.Deserializer getDeserializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanDeserializer( _javaType, _xmlType, typeDesc); } }
[ "jradcliff@google.com" ]
jradcliff@google.com
a8d6a47e431f49240a5c6c13729a92858e40078a
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-13303-4-3-MOEAD-WeightedSum:TestLen:CallDiversity/org/xwiki/display/internal/DocumentContentDisplayer_ESTest.java
0f70dc3208368b130b8b8f769c08e3d5b3bb8144
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
581
java
/* * This file was automatically generated by EvoSuite * Tue Apr 07 21:59:31 UTC 2020 */ package org.xwiki.display.internal; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class DocumentContentDisplayer_ESTest extends DocumentContentDisplayer_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
a984a33d0f619d6f7bbf47c2d26b20a4183ef16b
e1e5bd6b116e71a60040ec1e1642289217d527b0
/H5/L2jSunrise_com/L2jSunrise_com_2019_09_16/L2J_SunriseProject_Core/java/l2r/gameserver/model/conditions/ConditionPlayerPledgeClass.java
cd58fa4021245889c449d692299fe5835017d7aa
[]
no_license
serk123/L2jOpenSource
6d6e1988a421763a9467bba0e4ac1fe3796b34b3
603e784e5f58f7fd07b01f6282218e8492f7090b
refs/heads/master
2023-03-18T01:51:23.867273
2020-04-23T10:44:41
2020-04-23T10:44:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,579
java
/* * Copyright (C) 2004-2015 L2J Server * * This file is part of L2J Server. * * L2J Server 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. * * L2J Server 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 l2r.gameserver.model.conditions; import l2r.gameserver.model.stats.Env; /** * The Class ConditionPlayerPledgeClass. * @author MrPoke */ public final class ConditionPlayerPledgeClass extends Condition { private final int _pledgeClass; /** * Instantiates a new condition player pledge class. * @param pledgeClass the pledge class */ public ConditionPlayerPledgeClass(int pledgeClass) { _pledgeClass = pledgeClass; } /** * Test impl. * @param env the env * @return true, if successful */ @Override public boolean testImpl(Env env) { if ((env.getPlayer() == null) || (env.getPlayer().getClan() == null)) { return false; } return (_pledgeClass == -1) ? env.getPlayer().isClanLeader() : (env.getPlayer().getPledgeClass() >= _pledgeClass); } }
[ "64197706+L2jOpenSource@users.noreply.github.com" ]
64197706+L2jOpenSource@users.noreply.github.com
161d85c8fe733e4f184a206d1e8c6b5f32ba8bc2
e7ff61da5ab7ae901064860a73e92f9138d100e2
/third_api/src/main/java/com/tuhanbao/thirdapi/cache/redis/RedisResource.java
7bfc17de17a307c16e6092c2c9eeb40d43837655
[]
no_license
tuhanbao/tuhanbao
ddd502a131f1c141e88ad742678f3064a524f43a
831c3e182ccd686e426e78fb423ccd415f6fda1a
refs/heads/master
2023-07-29T00:31:22.523008
2023-07-18T06:07:42
2023-07-18T06:07:42
96,409,057
4
1
null
2022-12-16T01:55:17
2017-07-06T08:49:37
Java
UTF-8
Java
false
false
4,828
java
package com.tuhanbao.thirdapi.cache.redis; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Map.Entry; import com.alibaba.fastjson.JSONObject; import com.tuhanbao.base.dataservice.IDataGroup; import com.tuhanbao.base.util.exception.MyException; import com.tuhanbao.base.util.json.JsonUtil; import com.tuhanbao.thirdapi.cache.CacheResource; import redis.clients.jedis.Jedis; /** * redis的hget和hset有两级key,但是无法做到expire控制 * * 所以很多两级相关的方法对于设置过期的IDataGroup来说无效 * * @author Administrator * */ public class RedisResource extends CacheResource { private Jedis jedis; private static final String OK = "OK"; public RedisResource(RedisResourceManager manager, Jedis jedis) { super(manager); this.jedis = jedis; } @Override public int set(IDataGroup<?> dg, Object key, Object value) { Object jsonObject = JsonUtil.toJSON(value); int expireTime = getExpireTime(dg); if (expireTime > 0) { return setex(dg, key.toString(), expireTime, jsonObject.toString()); } else { return (int)jedis.hset(dg.getName(), key.toString(), jsonObject.toString()).longValue(); } } @Override public void release() { jedis.close(); super.release(); } @Override public int setex(IDataGroup<?> dg, Object key, int seconds, Object value) { Object jsonObject = JsonUtil.toJSON(value); if (seconds > 0) { String result = jedis.setex(getKey(dg, key.toString()), seconds, jsonObject.toString()); return isSuccess(result) ? 1 : -1; } throw new MyException("you cannot expire a value for a not expire ICacheKey"); } @Override public int del(IDataGroup<?> dg, Object key) { if (isExpire(dg)) { return (int)jedis.del(getKey(dg, key.toString())).longValue(); } else { return (int)jedis.hdel(dg.getName(), key.toString()).longValue(); } } @Override public Object get(IDataGroup<?> dg, Object key) { if (getExpireTime(dg) > 0) { return jedis.get(getKey(dg, key.toString())); } else { Class<?> modelClassName = dg.getModelClassName(); if (modelClassName != null) { return get(dg, key, modelClassName); } else { return jedis.hget(dg.getName(), key.toString()); } } } @Override public <T> T get(IDataGroup<?> dg, Object key, Class<T> clazz) { Object result = get(dg, key); if (result == null) return null; return JsonUtil.getBean(JSONObject.parseObject(result.toString()), clazz); } @Override public boolean exists(IDataGroup<?> dg, Object key) { if (isExpire(dg)) { return jedis.exists(getKey(dg, key.toString())); } else { return jedis.hexists(dg.getName(), key.toString()); } } @Override public int len(IDataGroup<?> dg) { if (isExpire(dg)) { throw new MyException("you cannot get length for a expire ICacheKey"); } else { //重写父类会节约很多性能 return (int)jedis.hlen(dg.getName()).longValue(); } } @Override public List<Object> get(IDataGroup<?> dg) { if (isExpire(dg)) { throw new MyException("you cannot get length for a expire ICacheKey"); } else { Map<String, String> result = jedis.hgetAll(dg.getName()); List<Object> list = new ArrayList<>(result.size()); for (Entry<String, String> entry : result.entrySet()) { Class<?> modelClassName = dg.getModelClassName(); if (modelClassName == null) { list.add(JSONObject.parseObject(entry.getValue())); } else { Object object = JsonUtil.getBean(JSONObject.parseObject(entry.getValue()), modelClassName); list.add(object); } } return list; } } @Override public boolean hasCacheDataGroup(IDataGroup<?> dg) { return jedis.exists(dg.getName()); } private static boolean isSuccess(String result) { return OK.equals(result); } private static final String getKey(IDataGroup<?> ck, String key) { return ck.getName() + "_" + key; } @Override public void destroy() { this.release(); } @Override public void recreateResource() throws Exception { this.jedis = ((RedisResourceManager)manager).jedisPool.getResource(); } }
[ "tuhanbao@foxmail.com" ]
tuhanbao@foxmail.com
6131f4317f64abbe571b7bd4775d8e8f24fe0460
9f394e1e92907e53aa08d704a74ce4ffe0274af1
/gs/src/main/java/org/mmocore/gameserver/skills/effects/EffectNegateMusic.java
9be958a303abecf4b18054d147ca9af90b6cd5f3
[]
no_license
forzec/l-all
47371658728deb59c22fef1b2f9d180cf874c8d4
fb98c98b2bc0fe8f99d8ba9d38286388818bf768
refs/heads/master
2021-01-10T11:39:14.017480
2016-04-03T12:47:18
2016-04-03T12:47:18
54,064,490
0
2
null
null
null
null
UTF-8
Java
false
false
574
java
package org.mmocore.gameserver.skills.effects; import org.mmocore.gameserver.model.Effect; import org.mmocore.gameserver.stats.Env; public class EffectNegateMusic extends Effect { public EffectNegateMusic(Env env, EffectTemplate template) { super(env, template); } @Override public void onStart() { super.onStart(); } @Override public void onExit() { super.onExit(); } @Override public boolean onActionTime() { for(Effect e : _effected.getEffectList().getAllEffects()) if(e.getSkill().getTemplate().isMusic()) e.exit(); return false; } }
[ "yurii.barbeu@gmail.com" ]
yurii.barbeu@gmail.com
400b3352eadfdedf17bcd098339bfc0d602b3971
64311e44ae1d1947289a5b7712bbb97459e37150
/HuiMvp/app/src/main/java/com/walke/huimvp/simple4/LoginPresenter_4.java
ebc5716e6c4efcfe324beda924cd06d2cada8b63
[]
no_license
walkeZ/Learning
02cb71579726064a751a0a53daef1e85906ffa48
b240c500650fc672f2802a18167572f1253ef471
refs/heads/master
2023-03-15T17:22:07.079824
2023-03-08T09:30:16
2023-03-08T09:30:16
126,297,890
0
0
null
null
null
null
UTF-8
Java
false
false
1,126
java
package com.walke.huimvp.simple4; import com.walke.huimvp.login.model.ILoginModel; import com.walke.huimvp.simple4.base.BasePresenter_4; /** * Created by walke.Z on 2018/1/8. * P层:特点: * ①:持有M层引用--直接new * ②:持有V层引用--构造器传入 * ③:对M层和V层进行关联 */ public class LoginPresenter_4 extends BasePresenter_4<ILoginView_4> { private LoginModel_4 mLoginModel; public LoginPresenter_4() { mLoginModel = new LoginModel_4(); } public void loggin(String userName,String password){ mLoginModel.login(userName, password, new ILoginModel() { @Override public void getDataSuccess() { if (getIView()!=null) { getIView().onLoginResult("data : example:text=登录成功,code=1-- LoginPresenter_5"); } } @Override public void getDataFail() { if (getIView()!=null) getIView().onLoginResult("data : example:text=登录失败,code=-1-- LoginPresenter_5") ; } }); } }
[ "1126648815@qq.com" ]
1126648815@qq.com
d2657efbe1ac962bdcba96906dc776d844a79b98
79943487f9311a0886a2cc2e5f1732f32c1b04ff
/engine/src/main/java/org/entando/entando/aps/system/services/guifragment/api/GuiFragmentResponse.java
195d97cff55c3512c752e6d6aed5a509cbd69643
[]
no_license
Denix80/entando-core
f3b8827f9fe0789169f6e6cc160fbc2c6f322d45
c861199d39d28edb2d593203450d43a8ecaad7b4
refs/heads/master
2021-01-17T21:28:57.188088
2015-09-21T10:56:40
2015-09-21T10:56:40
42,932,167
0
0
null
2015-09-22T12:26:06
2015-09-22T12:26:06
null
UTF-8
Java
false
false
1,502
java
/* * Copyright 2013-Present Entando Corporation (http://www.entando.com) All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package org.entando.entando.aps.system.services.guifragment.api; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import org.entando.entando.aps.system.services.api.model.AbstractApiResponse; import org.entando.entando.aps.system.services.api.model.AbstractApiResponseResult; /** * @author E.Santoboni */ @XmlRootElement(name = "response") public class GuiFragmentResponse extends AbstractApiResponse { @Override @XmlElement(name = "result", required = true) public GuiFragmentResponseResult getResult() { return (GuiFragmentResponseResult) super.getResult(); } public void setResult(GuiFragmentResponseResult result) { super.setResult(result); } @Override protected AbstractApiResponseResult createResponseResultInstance() { return new GuiFragmentResponseResult(); } }
[ "eugenio.santoboni@gmail.com" ]
eugenio.santoboni@gmail.com
7e7e7a97677eaa26ec2f7bcd612a860d39e63b42
f94510f053eeb8dd18ea5bfde07f4bf6425401c2
/app/src/main/java/com/zhiyicx/thinksnsplus/utils/LocationUtils.java
796b4a7b37a8931b9495dc3cab3cf47897878661
[]
no_license
firwind/3fou_com_android
e13609873ae030f151c62dfaf836a858872fa44c
717767cdf96fc2f89238c20536fa4b581a22d9aa
refs/heads/master
2020-03-28T09:02:56.431407
2018-09-07T02:14:54
2018-09-07T02:14:54
148,009,743
1
0
null
null
null
null
UTF-8
Java
false
false
2,478
java
package com.zhiyicx.thinksnsplus.utils; import android.content.Context; import com.amap.api.services.geocoder.GeocodeAddress; import com.amap.api.services.geocoder.GeocodeQuery; import com.amap.api.services.geocoder.GeocodeResult; import com.amap.api.services.geocoder.GeocodeSearch; import com.amap.api.services.geocoder.RegeocodeResult; import com.zhiyicx.common.utils.ToastUtils; import com.zhiyicx.common.utils.log.LogUtils; /** * @Describe * @Author zl * @Date 2017/8/16 * @Contact master.jungle68@gmail.com */ public class LocationUtils { public static void getLatlon(String address, Context context,GeocodeSearch.OnGeocodeSearchListener l) { GeocodeSearch geocodeSearch = new GeocodeSearch(context); geocodeSearch.setOnGeocodeSearchListener(l); // geocodeSearch.setOnGeocodeSearchListener(new GeocodeSearch.OnGeocodeSearchListener() { // @Override // public void onRegeocodeSearched(RegeocodeResult regeocodeResult, int i) { // // } // // @Override // public void onGeocodeSearched(GeocodeResult geocodeResult, int i) { // // if (i == 1000) { // if (geocodeResult != null && geocodeResult.getGeocodeAddressList() != null && // geocodeResult.getGeocodeAddressList().size() > 0) { // // GeocodeAddress geocodeAddress = geocodeResult.getGeocodeAddressList().get(0); // double latitude = geocodeAddress.getLatLonPoint().getLatitude();//纬度 // double longititude = geocodeAddress.getLatLonPoint().getLongitude();//经度 // String adcode = geocodeAddress.getAdcode();//区域编码 // // // LogUtils.e("地理编码"+ geocodeAddress.getAdcode() + ""); // LogUtils.e("纬度latitude"+latitude + ""); // LogUtils.e("经度longititude"+ longititude + ""); // // } else { // LogUtils.e("地址名出错"); // } // } // } // }); String cityNmae = address; try { String[] data = address.split(" "); cityNmae = data[data.length - 1]; } catch (Exception e) { } GeocodeQuery geocodeQuery = new GeocodeQuery(address.trim(), cityNmae); geocodeSearch.getFromLocationNameAsyn(geocodeQuery); } }
[ "1428907383@qq.com" ]
1428907383@qq.com
51b6df24320a4b77428029ddd7f45952521344c1
af58eabf5360cb82082e1b0590696b627118d5a3
/marketing-data/src/main/java/com/zhongmei/bty/basemodule/orderdish/bean/ReadonlySetmealShopcartItem.java
e84bd79b1ebe24ce3a39cdea10290f18a357e6a1
[]
no_license
sengeiou/marketing-app
f4b670f3996ba190decd2f1b8e4a276eb53b8b2a
278f3da95584e2ab7d97dff1a067db848e70a9f3
refs/heads/master
2020-06-07T01:51:25.743676
2019-06-20T08:58:28
2019-06-20T08:58:28
192,895,799
0
1
null
2019-06-20T09:59:09
2019-06-20T09:59:08
null
UTF-8
Java
false
false
1,612
java
package com.zhongmei.bty.basemodule.orderdish.bean; import java.math.BigDecimal; import java.util.List; import com.zhongmei.bty.basemodule.orderdish.utils.ShopcartItemUtils; import com.zhongmei.yunfu.db.entity.trade.TradeItem; import com.zhongmei.yunfu.db.entity.trade.TradeReasonRel; /** * @version: 1.0 * @date 2015年9月20日 */ public class ReadonlySetmealShopcartItem extends ReadonlyShopcartItemBase implements ISetmealShopcartItem { private final ReadonlyShopcartItem parent; private final BigDecimal singleQty; public ReadonlySetmealShopcartItem(TradeItem tradeItem, ReadonlyShopcartItem parent) { super(tradeItem); this.parent = parent; singleQty = ShopcartItemUtils.computeSingleQty(tradeItem.getQuantity(), parent); } @Override public ReadonlyShopcartItemBase getParent() { return parent; } @Override public void setProperties(List<ReadonlyOrderProperty> properties) { super.setProperties(properties); } @Override public void setExtraItems(List<ReadonlyExtraShopcartItem> extraItems) { super.setExtraItems(extraItems); } @Override public BigDecimal getSingleQty() { return singleQty; } @Override public Long getSetmealGroupId() { return tradeItem.getDishSetmealGroupId(); } @Override public TradeReasonRel getReturnQtyReason() { return null; } @Override public void setDiscountReasonRel(TradeReasonRel reasonRel) { } @Override public TradeReasonRel getDiscountReasonRel() { return null; } }
[ "yangyuanping_cd@shishike.com" ]
yangyuanping_cd@shishike.com
71b03785c8d517d71a722b35449b2a97afc12707
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/6/6_04d975efb00a1898af9cf3ce85b3c85a398ed08e/TableOperationsHelper/6_04d975efb00a1898af9cf3ce85b3c85a398ed08e_TableOperationsHelper_s.java
91b2028fada881dee61596f38c7203f70caddf45
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
6,785
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.accumulo.core.client.admin; import java.util.EnumSet; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.TreeMap; import org.apache.accumulo.core.client.AccumuloException; import org.apache.accumulo.core.client.AccumuloSecurityException; import org.apache.accumulo.core.client.IteratorSetting; import org.apache.accumulo.core.client.TableNotFoundException; import org.apache.accumulo.core.conf.Property; import org.apache.accumulo.core.iterators.IteratorUtil.IteratorScope; public abstract class TableOperationsHelper implements TableOperations { @Override public void attachIterator(String tableName, IteratorSetting setting) throws AccumuloSecurityException, AccumuloException, TableNotFoundException { checkIteratorConflicts(tableName, setting); for (IteratorScope scope : setting.getScopes()) { String root = String.format("%s%s.%s", Property.TABLE_ITERATOR_PREFIX, scope.name().toLowerCase(), setting.getName()); this.setProperty(tableName, root, setting.getPriority() + "," + setting.getIteratorClass()); for (Entry<String,String> prop : setting.getProperties().entrySet()) { this.setProperty(tableName, root + ".opt." + prop.getKey(), prop.getValue()); } } } @Override public void removeIterator(String tableName, String name, EnumSet<IteratorScope> scopes) throws AccumuloSecurityException, AccumuloException, TableNotFoundException { Map<String,String> copy = new HashMap<String,String>(); for (Entry<String,String> property : this.getProperties(tableName)) { copy.put(property.getKey(), property.getValue()); } for (IteratorScope scope : scopes) { String root = String.format("%s%s.%s", Property.TABLE_ITERATOR_PREFIX, scope.name().toLowerCase(), name); for (Entry<String,String> property : copy.entrySet()) { if (property.getKey().equals(root) || property.getKey().startsWith(root + ".opt.")) this.removeProperty(tableName, property.getKey()); } } } @Override public IteratorSetting getIteratorSetting(String tableName, String name, IteratorScope scope) throws AccumuloSecurityException, AccumuloException, TableNotFoundException { int priority = -1; String classname = null; Map<String,String> settings = new HashMap<String,String>(); String root = String.format("%s%s.%s", Property.TABLE_ITERATOR_PREFIX, scope.name().toLowerCase(), name); String opt = root + ".opt."; for (Entry<String,String> property : this.getProperties(tableName)) { if (property.getKey().equals(root)) { String parts[] = property.getValue().split(","); if (parts.length != 2) { throw new AccumuloException("Bad value for iterator setting: " + property.getValue()); } priority = Integer.parseInt(parts[0]); classname = parts[1]; } else if (property.getKey().startsWith(opt)) { settings.put(property.getKey().substring(opt.length()), property.getValue()); } } if (priority <= 0 || classname == null) { return null; } return new IteratorSetting(priority, name, classname, EnumSet.of(scope), settings); } @Override public Set<String> listIterators(String tableName) throws AccumuloSecurityException, AccumuloException, TableNotFoundException { Set<String> result = new HashSet<String>(); Set<String> lifecycles = new HashSet<String>(); for (IteratorScope scope : IteratorScope.values()) lifecycles.add(scope.name().toLowerCase()); for (Entry<String,String> property : this.getProperties(tableName)) { String name = property.getKey(); String[] parts = name.split("\\."); if (parts.length == 4) { if (parts[0].equals("table") && parts[1].equals("iterator") && lifecycles.contains(parts[2])) result.add(parts[3]); } } return result; } @Override public void checkIteratorConflicts(String tableName, IteratorSetting setting) throws AccumuloException, TableNotFoundException { for (IteratorScope scope : setting.getScopes()) { String scopeStr = String.format("%s%s", Property.TABLE_ITERATOR_PREFIX, scope.name().toLowerCase()); String nameStr = String.format("%s.%s", scopeStr, setting.getName()); String optStr = String.format("%s.opt.", nameStr); Map<String,String> optionConflicts = new TreeMap<String,String>(); for (Entry<String,String> property : this.getProperties(tableName)) { if (property.getKey().startsWith(scopeStr)) { if (property.getKey().equals(nameStr)) throw new IllegalArgumentException("iterator name conflict for " + setting.getName() + ": " + property.getKey() + "=" + property.getValue()); if (property.getKey().startsWith(optStr)) optionConflicts.put(property.getKey(), property.getValue()); if (property.getKey().contains(".opt.")) continue; String parts[] = property.getValue().split(","); if (parts.length != 2) throw new AccumuloException("Bad value for existing iterator setting: " + property.getKey() + "=" + property.getValue()); try { if (Integer.parseInt(parts[0]) == setting.getPriority()) throw new IllegalArgumentException("iterator priority conflict: " + property.getKey() + "=" + property.getValue()); } catch (NumberFormatException e) { throw new AccumuloException("Bad value for existing iterator setting: " + property.getKey() + "=" + property.getValue()); } } } if (optionConflicts.size() > 0) throw new IllegalArgumentException("iterator options conflict for " + setting.getName() + ": " + optionConflicts); } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
7b9aa2fc0dc55292af60ca8f14fee6f046882242
5e0a70caf18c913b246cbfbfc390cd9cbc74d66d
/gs-assistant-core/src/main/java/com/fbee/modules/bean/payment/GatewayPrepayInfo.java
30cc2ca6ea7cafb6f5582bdd9c99c747a89f06ed
[]
no_license
lzcrwxl/gs-assistant
7c42fa0d5c139750993c76086ea813350799322e
41a20bfee84101564559b8f6619e6a1bd534ff49
refs/heads/master
2021-09-07T23:06:10.776268
2018-01-24T01:53:58
2018-01-24T01:53:58
118,696,129
0
1
null
null
null
null
UTF-8
Java
false
false
8,059
java
package com.fbee.modules.bean.payment; import com.fbee.modules.bean.consts.PaymentConst; import com.fbee.modules.core.config.Global; import org.apache.commons.lang3.RandomStringUtils; import java.io.Serializable; import java.math.BigDecimal; import java.net.InetAddress; import java.net.UnknownHostException; /** * 支付网关 预支付对象 * Created by gaoyan on 17/07/2017. * SortedMap<String, String> map = Maps.newTreeMap(); * map.put("service", "pay.weixin.jspay"); * map.put("version", version); * map.put("charset", charset); * map.put("sign_type", sign_type); * <p> * map.put("mch_id", SwiftpassConfig.mch_id); * map.put("notify_url", SwiftpassConfig.notify_url); * map.put("nonce_str", RandomStringUtils.random(32,true,true)); * <p> * map.put("body",onlineOrderInfo.getOrderDesc()); * map.put("mch_create_ip","127.0.0.1"); * map.put("is_raw","1"); * map.put("out_trade_no", pay_no); * map.put("sub_openid", SessionManager.getUser().getOpenId()); * map.put("sub_appid", Constants.APPID); * map.put("total_fee",Math.round(onlineOrderInfo.getAmount()*100)+""); */ public class GatewayPrepayInfo implements Serializable { private String service; //接口类型 private String version; //版本号 private String charset; //字符集 private String signType; //签名方式 private String mchId; //商户号 private String notifyUrl; //通知地址 private String nonceStr; //随机字符串 private String mchCreateIp; //终端IP private String timeStart; //订单生成时间 private String transaNo; //商户订单号 private String outTradeNo; //商户订单号 private String totalFee; //总金额 private String isRaw; //是否原生态 private String subAppid; //appid private String subOpenid; //openid private String deviceInfo; //设备号 private String body; //商品描述 private String attach; //附加信息 private String limitCreditPay; //是否限制信用卡 private String timeExpire; //超时时间 private String opUserId; //操作员 private String goodsTag; //商品标记 private String productId; //商品ID private String sign; //签名 public static GatewayPrepayInfo getWxJsPayInfo(String outTradeNo,BigDecimal amount, String openId, String body) { GatewayPrepayInfo info = new GatewayPrepayInfo(); info.init(); info.setService(PaymentConst.TradeChannel.WX_JS_PAY.getService()); info.setIsRaw("1"); info.setOutTradeNo(outTradeNo); info.setSubOpenid(openId); info.setSubAppid(Global.getConfig("wechat.appid")); info.setTotalFee(Math.round(amount.doubleValue()*100)+""); info.setBody(body); return info; } public static GatewayPrepayInfo getWxQRPay(String outTradeNo,BigDecimal amount, String body) { GatewayPrepayInfo info = new GatewayPrepayInfo(); info.init(); info.setService(PaymentConst.TradeChannel.WECHATPAY.getService()); info.setTotalFee(Math.round(amount.doubleValue()*100)+""); info.setOutTradeNo(outTradeNo); info.setBody(body); return info; } public static GatewayPrepayInfo getAliQRPay(String outTradeNo, BigDecimal amount, String body) { GatewayPrepayInfo info = new GatewayPrepayInfo(); info.init(); info.setService(PaymentConst.TradeChannel.ALIPAY.getService()); info.setTotalFee(Math.round(amount.doubleValue()*100)+""); info.setOutTradeNo(outTradeNo); info.setBody(body); return info; } public static GatewayPrepayInfo getQueryRequest(String outTradeNo) { GatewayPrepayInfo info = new GatewayPrepayInfo(); info.init(); //info.setService(OrderConst.TradeChannel.QUERY_STATUS.getService()); info.setOutTradeNo(outTradeNo); //info.setSubAppid(Constants.APPID); return info; } public void init() { this.version = "1.1"; //版本号 this.charset = "UTF-8"; //字符集 this.signType = "MD5"; //签名方式 this.mchId = SwiftpassConfig.mch_id; //商户号 this.notifyUrl = SwiftpassConfig.notify_url; //通知地址 this.nonceStr = RandomStringUtils.random(32, true, true); //随机字符串 try { this.mchCreateIp = InetAddress.getLocalHost().getHostAddress(); } catch (UnknownHostException e) { this.mchCreateIp = "127.0.0.1"; } } public String getSubOpenid() { return subOpenid; } public void setSubOpenid(String subOpenid) { this.subOpenid = subOpenid; } public String getIsRaw() { return isRaw; } public void setIsRaw(String isRaw) { this.isRaw = isRaw; } public String getSubAppid() { return subAppid; } public void setSubAppid(String subAppid) { this.subAppid = subAppid; } public String getService() { return service; } public void setService(String service) { this.service = service; } public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } public String getCharset() { return charset; } public void setCharset(String charset) { this.charset = charset; } public String getSignType() { return signType; } public void setSignType(String signType) { this.signType = signType; } public String getMchId() { return mchId; } public void setMchId(String mchId) { this.mchId = mchId; } public String getOutTradeNo() { return outTradeNo; } public void setOutTradeNo(String outTradeNo) { this.outTradeNo = outTradeNo; } public String getDeviceInfo() { return deviceInfo; } public void setDeviceInfo(String deviceInfo) { this.deviceInfo = deviceInfo; } public String getBody() { return body; } public void setBody(String body) { this.body = body; } public String getAttach() { return attach; } public void setAttach(String attach) { this.attach = attach; } public String getTotalFee() { return totalFee; } public void setTotalFee(String totalFee) { this.totalFee = totalFee; } public String getMchCreateIp() { return mchCreateIp; } public void setMchCreateIp(String mchCreateIp) { this.mchCreateIp = mchCreateIp; } public String getNotifyUrl() { return notifyUrl; } public void setNotifyUrl(String notifyUrl) { this.notifyUrl = notifyUrl; } public String getLimitCreditPay() { return limitCreditPay; } public void setLimitCreditPay(String limitCreditPay) { this.limitCreditPay = limitCreditPay; } public String getTimeStart() { return timeStart; } public void setTimeStart(String timeStart) { this.timeStart = timeStart; } public String getTimeExpire() { return timeExpire; } public void setTimeExpire(String timeExpire) { this.timeExpire = timeExpire; } public String getOpUserId() { return opUserId; } public void setOpUserId(String opUserId) { this.opUserId = opUserId; } public String getGoodsTag() { return goodsTag; } public void setGoodsTag(String goodsTag) { this.goodsTag = goodsTag; } public String getProductId() { return productId; } public void setProductId(String productId) { this.productId = productId; } public String getNonceStr() { return nonceStr; } public void setNonceStr(String nonceStr) { this.nonceStr = nonceStr; } public String getSign() { return sign; } public void setSign(String sign) { this.sign = sign; } }
[ "lzcrwxl@163.com" ]
lzcrwxl@163.com
39624622f36f112742109228909d89d50ad059fd
45736204805554b2d13f1805e47eb369a8e16ec3
/com/mysql/cj/protocol/x/XpluginStatementCommand.java
ea2e8ac92fb4b263afdbc2b489cf2595ac746ed2
[]
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
795
java
/* * Decompiled with CFR 0.150. */ package com.mysql.cj.protocol.x; public enum XpluginStatementCommand { XPLUGIN_STMT_CREATE_COLLECTION("create_collection"), XPLUGIN_STMT_CREATE_COLLECTION_INDEX("create_collection_index"), XPLUGIN_STMT_DROP_COLLECTION("drop_collection"), XPLUGIN_STMT_DROP_COLLECTION_INDEX("drop_collection_index"), XPLUGIN_STMT_MODIFY_COLLECTION_OPTIONS("modify_collection_options"), XPLUGIN_STMT_PING("ping"), XPLUGIN_STMT_LIST_OBJECTS("list_objects"), XPLUGIN_STMT_ENABLE_NOTICES("enable_notices"), XPLUGIN_STMT_DISABLE_NOTICES("disable_notices"), XPLUGIN_STMT_LIST_NOTICES("list_notices"); public String commandName; private XpluginStatementCommand(String commandName) { this.commandName = commandName; } }
[ "67242784+KrOySi@users.noreply.github.com" ]
67242784+KrOySi@users.noreply.github.com
df3f03e0c05f15bfa38263e056ae718638f2a657
169c5a955c43d888119449dd59d711f561242e16
/modules/cpr/src/main/java/org/atmosphere/container/JettyWebSocketHandler.java
afe101777b8e190a4125fdcc89060e77dcf530c5
[]
no_license
Atmosphere/atmosphere
3cb9f51e1507e558784b79638cbdbe6adbda94b5
70b5449af09b7a4de6778cddeb76a6daa54861c1
refs/heads/atmosphere-2.7.x
2023-07-04T22:28:27.792373
2023-04-17T13:39:00
2023-04-17T13:39:00
749,137
2,286
584
null
2023-09-12T10:04:22
2010-06-30T14:26:23
Java
UTF-8
Java
false
false
4,795
java
/* * Copyright 2008-2022 Async-IO.org * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package org.atmosphere.container; import org.atmosphere.container.version.Jetty8WebSocket; import org.atmosphere.cpr.AtmosphereFramework; import org.atmosphere.cpr.AtmosphereRequest; import org.atmosphere.cpr.AtmosphereResponseImpl; import org.atmosphere.websocket.WebSocket; import org.atmosphere.websocket.WebSocketEventListener; import org.atmosphere.websocket.WebSocketProcessor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.UnsupportedEncodingException; import static org.atmosphere.websocket.WebSocketEventListener.WebSocketEvent.TYPE.CONTROL; import static org.atmosphere.websocket.WebSocketEventListener.WebSocketEvent.TYPE.HANDSHAKE; /** * Jetty 7 & 8 WebSocket support. */ public class JettyWebSocketHandler implements org.eclipse.jetty.websocket.WebSocket, org.eclipse.jetty.websocket.WebSocket.OnFrame, org.eclipse.jetty.websocket.WebSocket.OnBinaryMessage, org.eclipse.jetty.websocket.WebSocket.OnTextMessage, org.eclipse.jetty.websocket.WebSocket.OnControl { private static final Logger logger = LoggerFactory.getLogger(JettyWebSocketHandler.class); private final AtmosphereRequest request; private final AtmosphereFramework framework; private final WebSocketProcessor webSocketProcessor; private WebSocket webSocket; public JettyWebSocketHandler(AtmosphereRequest request, AtmosphereFramework framework, WebSocketProcessor webSocketProcessor) { this.request = request; this.framework = framework; this.webSocketProcessor = webSocketProcessor; } @Override public void onMessage(byte[] data, int offset, int length) { logger.trace("WebSocket.onMessage (bytes)"); webSocketProcessor.invokeWebSocketProtocol(webSocket, data, offset, length); } @Override public boolean onControl(byte controlCode, byte[] data, int offset, int length) { logger.trace("WebSocket.onControl."); try { webSocketProcessor.notifyListener(webSocket, new WebSocketEventListener.WebSocketEvent(new String(data, offset, length, "UTF-8"), CONTROL, webSocket)); } catch (UnsupportedEncodingException e) { logger.warn("UnsupportedEncodingException", e); } return false; } @Override public boolean onFrame(byte flags, byte opcode, byte[] data, int offset, int length) { logger.trace("WebSocket.onFrame."); // TODO: onMessage is always invoked after that method gets called, so no need to enable for now. // webSocketProcessor.broadcast(data, offset, length); /* try { webSocketProcessor.notifyListener(new WebSocketEventListener.WebSocketEvent(new String(data, offset, length, "UTF-8"), MESSAGE, webSocketProcessor.webSocket())); } catch (UnsupportedEncodingException e) { logger.warn("UnsupportedEncodingException", e); }*/ return false; } @Override public void onHandshake(org.eclipse.jetty.websocket.WebSocket.FrameConnection connection) { logger.trace("WebSocket.onHandshake"); webSocket = new Jetty8WebSocket(connection, framework.getAtmosphereConfig()); webSocketProcessor.notifyListener(webSocket, new WebSocketEventListener.WebSocketEvent("", HANDSHAKE, webSocket)); } @Override public void onMessage(String data) { logger.trace("WebSocket.onMessage"); webSocketProcessor.invokeWebSocketProtocol(webSocket, data); } @Override public void onOpen(org.eclipse.jetty.websocket.WebSocket.Connection connection) { logger.trace("WebSocket.onOpen {}", connection); try { webSocketProcessor.open(webSocket, request, AtmosphereResponseImpl.newInstance(framework.getAtmosphereConfig(), request, webSocket)); } catch (Exception e) { logger.warn("Failed to connect to WebSocket", e); } } @Override public void onClose(int closeCode, String message) { logger.trace("onClose {}:{}", closeCode, message); try { webSocketProcessor.close(webSocket, closeCode); } finally { request.destroy(); } } }
[ "jfarcand@apache.org" ]
jfarcand@apache.org
754efc624d35b5e1d0db4601caf24840ffdc4af4
a700f7f94a9fd18d7785da2f02d0011d3cf7fb12
/cli/src/main/java/com/liferay/blade/cli/util/ProcessesUtil.java
450c554a936c575f692bdf6f6d17e73b03c1d296
[ "Apache-2.0" ]
permissive
isabella232/liferay-blade-cli
e0d2aa2f8c31d5ac993c8f9289defa8c7bb1fa17
2720f7ce10cec41a1bdf348957aee870037bf857
refs/heads/master
2023-03-31T23:47:11.941216
2021-04-05T20:26:37
2021-04-05T20:26:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,352
java
/** * Copyright (c) 2000-present Liferay, 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.liferay.blade.cli.util; import java.lang.management.ManagementFactory; import java.lang.management.RuntimeMXBean; import java.util.ArrayList; import java.util.List; import java.util.Scanner; /** * @author Seiphon Wang */ public class ProcessesUtil { public static List<Long> getAllProcessIds() { List<Long> processIds = new ArrayList<>(); try { String os = System.getProperty("os.name"); if (os.startsWith("Win")) { ProcessBuilder processBuilder = new ProcessBuilder("tasklist.exe", "/fo", "csv", "/nh"); Process process = processBuilder.start(); try (Scanner scanner = new Scanner(process.getInputStream())) { if (scanner.hasNextLine()) { scanner.nextLine(); } while (scanner.hasNextLine()) { String line = scanner.nextLine(); String[] parts = line.split(","); String pid = parts[1].substring(1); processIds.add(Long.parseLong(pid.replaceFirst(".$", ""))); } } } else { ProcessBuilder processBuilder = new ProcessBuilder("ps", "-e"); Process process = processBuilder.start(); try (Scanner scanner = new Scanner(process.getInputStream())) { if (scanner.hasNextLine()) { scanner.nextLine(); } while (scanner.hasNextLine()) { String line = scanner.nextLine(); line = line.trim(); processIds.add(Long.parseLong(line.substring(0, line.indexOf(" ")))); } } } } catch (Exception e) { } return processIds; } public static long getCurrentProcessId() { RuntimeMXBean runtimeMXBean = ManagementFactory.getRuntimeMXBean(); String vmName = runtimeMXBean.getName(); return Long.parseLong(vmName.substring(0, vmName.indexOf("@"))); } }
[ "gregory.amerson@liferay.com" ]
gregory.amerson@liferay.com
dd6633e2093316a90dd479bf068d6cd9e13ec29b
362a0de0e6eaa3e459a0e78a7ea7b1d93babcb67
/src/main/java/com/mycompany/myapp/config/ApplicationProperties.java
5b3a84a906ed6b27e2ffc98f50417ce2e6d43d67
[]
no_license
KennzyLeonamCardoso/consultorio2
30b5d5d7e2f2ab682defaa7d70e588570837f82e
db932eced7d879549844f117a9ff29243029a3b1
refs/heads/master
2022-12-25T13:09:24.929612
2019-09-23T21:46:13
2019-09-23T21:46:13
210,457,273
0
0
null
2022-12-16T05:05:51
2019-09-23T21:37:38
Java
UTF-8
Java
false
false
433
java
package com.mycompany.myapp.config; import org.springframework.boot.context.properties.ConfigurationProperties; /** * Properties specific to Consultorio 2. * <p> * Properties are configured in the {@code 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
4042de46c79fee964eb1bb235535f7c50dfb1886
8de0190ba91403621d09cdb0855612d00d8179b2
/leetcode-algorithm-java/src/main/java/johnny/leetcode/algorithm/Solution546.java
a6ee083abbe70e5ef47df8be3c3854117d7b6d9a
[]
no_license
156420591/algorithm-problems-java
e2494831becba9d48ab0af98b99fca138aaa1ca8
1aec8a6e128763b1c1378a957d270f2a7952b81a
refs/heads/master
2023-03-04T12:36:06.143086
2021-02-05T05:38:15
2021-02-05T05:38:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,717
java
package johnny.leetcode.algorithm; /** * Remove Boxes * <p> * Given several boxes with different colors represented by different positive * numbers. * You may experience several rounds to remove boxes until there is no box * left. Each time you can choose some continuous boxes with the same color * {@code (composed of k boxes, k >= 1)}, remove them and get k*k points. * Find the maximum points you can get. * <p> * Example 1: * Input: * [1, 3, 2, 2, 2, 3, 4, 3, 1] * <p> * Output: * 23 * <p> * Explanation: * {@code * [1, 3, 2, 2, 2, 3, 4, 3, 1] * ----> [1, 3, 3, 4, 3, 1] (3*3=9 points) * ----> [1, 3, 3, 3, 1] (1*1=1 points) * ----> [1, 1] (3*3=9 points) * ----> [] (2*2=4 points) * } * <p> * Note: The number of boxes n would not exceed 100. * * @author Johnny */ public class Solution546 { public int removeBoxes(int[] boxes) { int n = boxes.length; int[][][] dp = new int[n][n][n]; return removeBoxesSub(boxes, 0, n - 1, 0, dp); } private int removeBoxesSub(int[] boxes, int i, int j, int k, int[][][] dp) { if (i > j) return 0; if (dp[i][j][k] > 0) return dp[i][j][k]; for (; i + 1 <= j && boxes[i + 1] == boxes[i]; i++, k++) ; // optimization: all boxes of the same color counted continuously from the first box should be grouped together int res = (k + 1) * (k + 1) + removeBoxesSub(boxes, i + 1, j, 0, dp); for (int m = i + 1; m <= j; m++) { if (boxes[i] == boxes[m]) { res = Math.max(res, removeBoxesSub(boxes, i + 1, m - 1, 0, dp) + removeBoxesSub(boxes, m, j, k + 1, dp)); } } dp[i][j][k] = res; return res; } }
[ "jojozhuang@gmail.com" ]
jojozhuang@gmail.com
f60b3d6d6b08d0073e6b96d7120096c756d64887
87c12bd26186e41ed6197437e0b1b15bfcc68fda
/csharp-impl/src/org/mustbe/consulo/csharp/ide/highlight/check/impl/CS1511.java
fe53ca37c7cb369a332c2b7bb3d7ab48e5531cf9
[ "Apache-2.0" ]
permissive
electrowolff/consulo-csharp
660c784441f8b2fc1c4d536bd9bb80cb4dd68a4a
99b54761b24b394d3fd18650de3a5f112a52aa9a
refs/heads/master
2021-01-22T14:29:07.054813
2016-07-30T09:19:51
2016-07-30T09:19:51
65,971,141
0
0
null
2016-08-18T06:27:38
2016-08-18T06:27:37
null
UTF-8
Java
false
false
2,010
java
/* * Copyright 2013-2015 must-be.org * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.mustbe.consulo.csharp.ide.highlight.check.impl; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.mustbe.consulo.RequiredReadAction; import org.mustbe.consulo.csharp.ide.highlight.CSharpHighlightContext; import org.mustbe.consulo.csharp.ide.highlight.check.CompilerCheck; import org.mustbe.consulo.csharp.lang.psi.CSharpReferenceExpression; import org.mustbe.consulo.csharp.module.extension.CSharpLanguageVersion; import org.mustbe.consulo.dotnet.psi.DotNetModifier; import org.mustbe.consulo.dotnet.psi.DotNetModifierListOwner; import org.mustbe.consulo.dotnet.psi.DotNetQualifiedElement; import com.intellij.psi.util.PsiTreeUtil; /** * @author VISTALL * @since 01.01.15 */ public class CS1511 extends CompilerCheck<CSharpReferenceExpression> { @RequiredReadAction @Nullable @Override public HighlightInfoFactory checkImpl(@NotNull CSharpLanguageVersion languageVersion, @NotNull CSharpHighlightContext highlightContext, @NotNull CSharpReferenceExpression element) { if(element.kind() == CSharpReferenceExpression.ResolveToKind.BASE) { DotNetModifierListOwner modifierListOwner = (DotNetModifierListOwner) PsiTreeUtil.getParentOfType(element, DotNetQualifiedElement.class); if(modifierListOwner == null || modifierListOwner.hasModifier(DotNetModifier.STATIC)) { return newBuilder(element, "base"); } } return null; } }
[ "vistall.valeriy@gmail.com" ]
vistall.valeriy@gmail.com
83b0eb117118c4cf15b4300f0fd4dec169b453db
324fea83bc8135ab591f222f4cefa19b43d30944
/src/main/java/ru/lanbilling/webservice/wsdl/SoapUserOnline.java
a815515c60decee445b3aecee9501bcf0404591b
[ "MIT" ]
permissive
kanonirov/lanb-client
2c14fac4d583c1c9f524634fa15e0f7279b8542d
bfe333cf41998e806f9c74ad257c6f2d7e013ba1
refs/heads/master
2021-01-10T08:47:46.996645
2015-10-26T07:51:35
2015-10-26T07:51:35
44,953,384
0
0
null
null
null
null
UTF-8
Java
false
false
3,912
java
package ru.lanbilling.webservice.wsdl; import javax.annotation.Generated; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for soapUserOnline complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="soapUserOnline"&gt; * &lt;complexContent&gt; * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; * &lt;sequence&gt; * &lt;element name="online" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/&gt; * &lt;element name="ismanager" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/&gt; * &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; * &lt;/sequence&gt; * &lt;/restriction&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "soapUserOnline", propOrder = { "online", "ismanager", "name" }) @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11") public class SoapUserOnline { @XmlElement(defaultValue = "0") @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11") protected Long online; @XmlElement(defaultValue = "0") @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11") protected Long ismanager; @XmlElement(defaultValue = "") @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11") protected String name; /** * Gets the value of the online property. * * @return * possible object is * {@link Long } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11") public Long getOnline() { return online; } /** * Sets the value of the online property. * * @param value * allowed object is * {@link Long } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11") public void setOnline(Long value) { this.online = value; } /** * Gets the value of the ismanager property. * * @return * possible object is * {@link Long } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11") public Long getIsmanager() { return ismanager; } /** * Sets the value of the ismanager property. * * @param value * allowed object is * {@link Long } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11") public void setIsmanager(Long value) { this.ismanager = value; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11") public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11") public void setName(String value) { this.name = value; } }
[ "kio@iteratia.com" ]
kio@iteratia.com
3e0b127be024682d7f5d4f22ed9789b56c096494
109c4c52376d99febddc8ece6de0e40d4b6a4044
/yuanwei_manage_boot/src/main/java/cn/com/yuanwei/center/web/EnterpriseController.java
3113136a20cbae8becda3c5eef3082f0ef86334f
[]
no_license
izbk/swj
2190bcf6e620116cf77e113522545849fa252907
6baf2fa5a5783f9bc0a64f5e5a5127d21f1154df
refs/heads/master
2020-03-24T02:37:38.700747
2018-07-26T03:34:02
2018-07-26T03:34:02
142,384,295
2
0
null
null
null
null
UTF-8
Java
false
false
6,706
java
package cn.com.yuanwei.center.web; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.jeecgframework.poi.excel.ExcelImportUtil; import org.jeecgframework.poi.excel.entity.ExportParams; import org.jeecgframework.poi.excel.entity.ImportParams; import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartHttpServletRequest; import cn.com.yuanwei.center.annotation.Auth; import cn.com.yuanwei.center.entity.Enterprise; import cn.com.yuanwei.center.service.EnterpriseService; import cn.com.yuanwei.center.util.ExcelUtils; import cn.com.yuanwei.center.web.request.EnterpriseReq; import cn.com.yuanwei.center.web.response.EnterpriseLtResp; import cn.com.yuanwei.center.web.response.base.Result; import io.swagger.annotations.Api; @Api(value = "enterprise", description = "限上企业信息表", produces = MediaType.APPLICATION_JSON_VALUE) @Controller @RequestMapping("/enterprises") public class EnterpriseController { @Autowired private EnterpriseService enterpriseService; /** * Desc: 新增处理 * @param req * @throws Exception * @return Result * @author zbk * @date 2017-06-16 14:55:57 */ @PostMapping @ResponseBody @Auth public Result createEnterprise(@RequestBody Enterprise req) throws Exception{ return new Result(enterpriseService.save(req)); } /** * Desc:编辑处理 * @param req * @throws Exception * @return Result * @author zbk * @date 2017-06-16 14:55:57 */ @PutMapping @ResponseBody @Auth public Result editEnterprise(@RequestBody Enterprise req) throws Exception{ return new Result(enterpriseService.update(req)); } /** * Desc:删除处理 * @param req * @throws Exception * @return Result * @author zbk * @date 2017-06-16 14:55:57 */ @DeleteMapping @ResponseBody @Auth public Result delEnterprise(@RequestParam(value="ids") List<Integer> ids) throws Exception{ return new Result(enterpriseService.delete(ids)); } /** * Desc:查询列表 * @param req * @throws Exception * @return Result * @author zbk * @date 2017-06-16 14:55:57 */ @GetMapping @ResponseBody @Auth public Result getEnterpriseList(EnterpriseReq req) throws Exception{ EnterpriseLtResp resp= enterpriseService.queryList(req); Result re = new Result(resp.getEnterpriseLt()); re.setCount(resp.getCount()); return re; } /** * Desc:查询详情 * @param id * @throws Exception * @return Result * @author zbk * @date 2017-06-16 14:55:57 */ @GetMapping(value="id") @ResponseBody public Result getEnterprise(Integer id) throws Exception{ Enterprise enterprise = enterpriseService.queryById(id); Result re = new Result(enterprise); re.setCount(1L); return re; } /** * Excel文件导入 * @param request * @param response * @return Result * @throws Exception * @author zbk * @date 2017-06-16 14:55:57 */ @PostMapping(value="import") @ResponseBody public Result importExcel(HttpServletRequest request, HttpServletResponse response) throws Exception{ Result result = new Result(); MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { MultipartFile file = entity.getValue();// 获取上传文件对象 ImportParams params = new ImportParams(); params.setTitleRows(2); params.setHeadRows(1); params.setNeedSave(false); try { List<Enterprise> enterprises = ExcelImportUtil.importExcel(file.getInputStream(),Enterprise.class,params); for (Enterprise enterprise : enterprises) { enterpriseService.save(enterprise); } } catch (Exception e) { throw new Exception("导入数据错误"); }finally{ try { file.getInputStream().close(); } catch (IOException e) { e.printStackTrace(); } } } return result; } /** * 导出excel数据 * @param req * @param request * @param response * @return * @throws Exception * @author zbk * @date 2017-06-16 14:55:57 */ @GetMapping(value="export") public void exportXls(EnterpriseReq req,HttpServletRequest request, HttpServletResponse response) throws Exception { //重置分页参数 req.setPage(1); req.setItemcount(Integer.MAX_VALUE); //获取数据 EnterpriseLtResp resp= enterpriseService.queryList(req); Map<String, Object> model = new HashMap<String,Object>(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); model.put(NormalExcelConstants.FILE_NAME,"限上企业信息表"); model.put(NormalExcelConstants.CLASS,Enterprise.class); model.put(NormalExcelConstants.PARAMS,new ExportParams("限上企业信息表", "导出时间:"+sdf.format(new Date()),"导出信息")); model.put(NormalExcelConstants.DATA_LIST,resp.getEnterpriseLt()); ExcelUtils.exportDataToSingleExcel(model, request, response); } /** * 导出excel模板 * @param request * @param response * @return * @throws Exception * @author zbk * @date 2017-06-16 14:55:57 */ @GetMapping(value="exportTpl") public void exportXlsByT(HttpServletRequest request, HttpServletResponse response) throws Exception { Map<String, Object> model = new HashMap<String,Object>(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); model.put(NormalExcelConstants.FILE_NAME,"限上企业信息表模板"); model.put(NormalExcelConstants.CLASS,Enterprise.class); model.put(NormalExcelConstants.PARAMS,new ExportParams("限上企业信息表模板", "导出时间:"+sdf.format(new Date()),"导出信息")); model.put(NormalExcelConstants.DATA_LIST,new ArrayList<Object>()); ExcelUtils.exportDataToSingleExcel(model, request, response); } }
[ "izbk@163.com" ]
izbk@163.com
4ec841a5539a38e8fab8192aa898fd30049a1ba5
19df84932cf3686cfcdd2900860effa4bfe8634d
/vpro-shared-jackson2/src/test/java/nl/vpro/jackson2/GuavaRangeModuleTest.java
0fcbeafbe35d0ebeb57eec705ce9eaf1c14f3f16
[ "Apache-2.0" ]
permissive
vpro/vpro-shared
75bfca171634f5c2d1efbcf64b96b09699a0b0f8
d74b60fe2bbc8505bc79981116859910f0627fed
refs/heads/main
2023-08-31T15:16:33.370412
2023-08-30T13:16:56
2023-08-30T13:16:56
144,847,197
1
0
Apache-2.0
2023-09-08T12:25:07
2018-08-15T11:55:26
Java
UTF-8
Java
false
false
2,711
java
package nl.vpro.jackson2; import java.time.Instant; import org.junit.jupiter.api.Test; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.google.common.collect.Range; import static org.assertj.core.api.Assertions.assertThat; class GuavaRangeModuleTest { ObjectMapper mapper = new ObjectMapper(); { mapper.registerModule(new DateModule()); mapper.registerModule(new GuavaRangeModule()); } static class WithoutSerializer { @JsonProperty Range<Integer> range; @JsonProperty int anotherField = 1; } static class WithIntegerRange { @JsonSerialize(using = GuavaRangeModule.Serializer.class) Range<Integer> range; } static class WithInstantRange { @JsonSerialize(using = GuavaRangeModule.Serializer.class) Range<Instant> range; } @Test public void without() throws JsonProcessingException { WithoutSerializer a = new WithoutSerializer(); a.range = Range.closedOpen(1, 2); String example = "{\"range\":{\"lowerEndpoint\":1,\"lowerBoundType\":\"CLOSED\",\"upperEndpoint\":2,\"upperBoundType\":\"OPEN\",\"type\":\"java.lang.Integer\"},\"anotherField\":1}"; assertThat(mapper.writeValueAsString(a)).isEqualTo(example); WithoutSerializer ab = mapper.readValue(example, WithoutSerializer.class); assertThat(ab.range).isEqualTo(a.range); } @Test public void empty() throws JsonProcessingException { WithIntegerRange a = new WithIntegerRange(); assertThat(mapper.writeValueAsString(a)).isEqualTo("{\"range\":null}"); } @Test public void filled() throws JsonProcessingException { WithIntegerRange a = new WithIntegerRange(); a.range = Range.closedOpen(1, 10); assertThat(mapper.writeValueAsString(a)).isEqualTo("{\"range\":{\"lowerEndpoint\":1,\"lowerBoundType\":\"CLOSED\",\"upperEndpoint\":10,\"upperBoundType\":\"OPEN\",\"type\":\"java.lang.Integer\"}}"); } @Test public void instant() throws JsonProcessingException { WithInstantRange a = new WithInstantRange(); a.range = Range.closedOpen( Instant.parse("2021-12-24T10:00:00Z"), Instant.parse("2021-12-25T10:00:00Z") ); assertThat(mapper.writeValueAsString(a)).isEqualTo( "{\"range\":{\"lowerEndpoint\":1640340000000,\"lowerBoundType\":\"CLOSED\",\"upperEndpoint\":1640426400000,\"upperBoundType\":\"OPEN\",\"type\":\"java.time.Instant\"}}"); } }
[ "git@meeuw.org" ]
git@meeuw.org
0a3aebdf9e7bb71f74c1e0acc8c273a3cdbb7939
d85eea278f53c2d60197a0b479c074b5a52bdf1e
/Services/msk-entity/src/main/java/com/msk/core/entity/CommConstant.java
0e079aec0172a5b8b1a84f458449fd8a086288eb
[]
no_license
YuanChenM/xcdv1.5
baeaab6e566236d0f3e170ceae186b6d2999c989
77bf0e90102f5704fe186140e1792396b7ade91d
refs/heads/master
2021-05-26T04:51:12.441499
2017-08-14T03:06:07
2017-08-14T03:06:07
100,221,981
1
2
null
null
null
null
UTF-8
Java
false
false
2,555
java
/* * 2014/09/23 自动生成 新規作成 * * (c) 江苏润和. */ package com.msk.core.entity; /** * <p>表comm_constant对应的CommConstant。</p> * * @author 自动生成 * @version 1.00 */ public class CommConstant extends BaseEntity{ /** * */ private static final long serialVersionUID = 1L; /** 常量ID */ private Long id; /** 分CodeMaster和Status */ private String constantType; /** 常量类型名称 */ private String constantTypeName; /** 常量定义名称 */ private String constantName; /** 常量定义值 */ private String constantValue; /** * <p>默认构造函数。</p> */ public CommConstant() { } /** * <p>常量ID。</p> * * @return the 常量ID */ public Long getId() { return id; } /** * <p>常量ID。</p> * * @param id 常量ID。 */ public void setId(Long id) { this.id = id; } /** * <p>分CodeMaster和Status。</p> * * @return the 分CodeMaster和Status */ public String getConstantType() { return constantType; } /** * <p>分CodeMaster和Status。</p> * * @param constantType 分CodeMaster和Status。 */ public void setConstantType(String constantType) { this.constantType = constantType; } /** * <p>常量类型名称。</p> * * @return the 常量类型名称 */ public String getConstantTypeName() { return constantTypeName; } /** * <p>常量类型名称。</p> * * @param constantTypeName 常量类型名称。 */ public void setConstantTypeName(String constantTypeName) { this.constantTypeName = constantTypeName; } /** * <p>常量定义名称。</p> * * @return the 常量定义名称 */ public String getConstantName() { return constantName; } /** * <p>常量定义名称。</p> * * @param constantName 常量定义名称。 */ public void setConstantName(String constantName) { this.constantName = constantName; } /** * <p>常量定义值。</p> * * @return the 常量定义值 */ public String getConstantValue() { return constantValue; } /** * <p>常量定义值。</p> * * @param constantValue 常量定义值。 */ public void setConstantValue(String constantValue) { this.constantValue = constantValue; } }
[ "yuan_chen1@hoperun.com" ]
yuan_chen1@hoperun.com
b6dad36c8416e6290616fc3e362e16b582817ef6
564e9aff2cad3a4c6c48ee562008cb564628e8e8
/src/net/minecraft/PacketPlayOutWindowItems.java
692d235e5047502896af4fda7ce5c1ad88fa3ff9
[]
no_license
BeYkeRYkt/MinecraftServerDec
efbafd774cf5c68bde0dd60b7511ac91d3f1bd8e
cfb5b989abb0e68112f7d731d0d79e0d0021c94f
refs/heads/master
2021-01-10T19:05:30.104737
2014-09-28T10:42:47
2014-09-28T10:42:47
23,732,504
1
0
null
2014-09-28T10:32:16
2014-09-06T10:46:05
Java
UTF-8
Java
false
false
1,160
java
package net.minecraft; import java.io.IOException; import java.util.List; public class PacketPlayOutWindowItems implements Packet<PlayOutPacketListener> { private int windowId; private ItemStack[] items; public PacketPlayOutWindowItems() { } public PacketPlayOutWindowItems(int windowId, List<ItemStack> items) { this.windowId = windowId; this.items = new ItemStack[items.size()]; for (int i = 0; i < this.items.length; ++i) { ItemStack item = items.get(i); this.items[i] = item == null ? null : item.getCopy(); } } public void readData(PacketDataSerializer serializer) throws IOException { this.windowId = serializer.readUnsignedByte(); short count = serializer.readShort(); this.items = new ItemStack[count]; for (int var3 = 0; var3 < count; ++var3) { this.items[var3] = serializer.readItemStack(); } } public void writeData(PacketDataSerializer serializer) { serializer.writeByte(this.windowId); serializer.writeShort(this.items.length); for (ItemStack item : items) { serializer.writeItemStack(item); } } public void handlePacket(PlayOutPacketListener listener) { listener.handle(this); } }
[ "Shev4ik.den@gmail.com" ]
Shev4ik.den@gmail.com
685390bfff5ab947258e0ace26a89b74eb03d4d6
30188024f1ba726ef1d3672628ecee34f3d55a98
/src/main/java/interfaces/exercise/E06_InterfacePublicMethods.java
94b08c1d35ea10f903099573cfbc2a841edbf40f
[]
no_license
javase/think-in-java
97052b787fc70d45732a3b7687bad01428b268a9
693fb0328982f1b961257c074b18c77690ba636b
refs/heads/master
2021-01-22T07:57:32.965499
2020-05-07T04:55:42
2020-05-07T04:55:42
92,586,027
0
0
null
2020-10-12T17:35:00
2017-05-27T08:55:34
Java
UTF-8
Java
false
false
582
java
package interfaces.exercise; import interfaces.exercise.ownpackage.AnInterface; /** * 接口内所有方法都是自动public的 */ public class E06_InterfacePublicMethods implements AnInterface { // Each of these produces a compile-time error message, // stating that you cannot reduce the access of the // base class public method in a derived class. // ! void f() {} //! void g() {} //! void h() {} // Compiles OK: @Override public void f() { } @Override public void g() { } @Override public void h() { } public static void main(String args[]) { } }
[ "limenghua@wondersgroup.com" ]
limenghua@wondersgroup.com
d5d8bf5be96e2606e1ef763bb8ab41e501587f96
8055e173be46d1b863e5441b9fbf099e872e8dcf
/relationships/src/main/java/io/costax/relationships/onetomany/Scene.java
f3d36e65b71cc1780c11439b33987a69b6ebe635
[ "MIT" ]
permissive
jlmc/hibernate-tunings
5dbe03a32b88c34a8d8f32b23328501659971a3e
de9215b5b22fce8209ec951f49b87213ebb11cc5
refs/heads/master
2023-04-02T13:56:41.753877
2022-05-29T22:39:38
2022-06-20T08:59:32
149,929,972
7
1
MIT
2023-03-31T15:07:35
2018-09-22T23:19:19
Java
UTF-8
Java
false
false
1,310
java
package io.costax.relationships.onetomany; import jakarta.persistence.Entity; import jakarta.persistence.GeneratedValue; import jakarta.persistence.GenerationType; import jakarta.persistence.Id; import jakarta.persistence.SequenceGenerator; import java.util.Objects; @Entity public class Scene { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "scene_id_generator") @SequenceGenerator(name="scene_id_generator", sequenceName = "scene_seq", allocationSize = 10, initialValue = 1) private Integer id; public String description; private int li = 0; protected Scene() {} private Scene(final int li, final String description) { this.description = description; this.li = li; } public static Scene of(int li, final String description) { return new Scene(li, description); } @Override public boolean equals(final Object o) { if (this == o) return true; if (!(o instanceof Scene)) return false; final Scene scene = (Scene) o; return this.id != null && Objects.equals(id, scene.id); } @Override public int hashCode() { return 31; } public int getLi() { return li; } public String getDescription() { return description; } }
[ "costajlmpp@gmail.com" ]
costajlmpp@gmail.com
4e2d369600a93385a379724449afb18c81738ec3
ef6ae671580eff7107cd528b58b7d729d9d4f6a8
/src/main/java/org/snpeff/stats/ObservedOverExpected.java
6c3e9915b3f456bbc0723c6f645d75e41f0fed9a
[ "MIT" ]
permissive
pcingola/SnpEff
2f0e81209478cc109f50e35f77641acbbb0706cf
f1d6aaa22e753368a78ca287dbf476dc8ed56810
refs/heads/master
2023-09-04T04:45:18.356606
2023-08-19T19:50:31
2023-08-19T19:50:31
16,422,517
194
83
NOASSERTION
2023-06-20T14:10:58
2014-01-31T22:22:33
Java
UTF-8
Java
false
false
3,592
java
package org.snpeff.stats; import org.snpeff.interval.Exon; import org.snpeff.interval.Gene; import org.snpeff.interval.Transcript; import org.snpeff.util.GprSeq; /** * Observed over expected values (o/e) ratios * E.g.: CpG dinucleotides in a sequence * * @author pcingola * */ public abstract class ObservedOverExpected { /** * Expected number of sequences (average between plus and minus strand) * @param e : Exon * @return */ public double expected(Exon e) { String seq = e.getSequence(); double eplus = expected(seq); double eminus = expected(GprSeq.reverseWc(seq)); return (eplus + eminus) / 2; } /** * Expected number of sequences (average between plus and minus strand) * @param t : Transcript * @return */ public double expected(Gene g) { double eplus = 0; double eminus = 0; for( Transcript t : g ) { for( Exon e : t ) { String seq = e.getSequence(); eplus += expected(seq); eminus += expected(GprSeq.reverseWc(seq)); } } return (eplus + eminus) / 2; } public abstract double expected(String sequence); /** * Expected number of sequences (average between plus and minus strand) * @param t : Transcript * @return */ public double expected(Transcript t) { double eplus = 0; double eminus = 0; for( Exon e : t ) { String seq = e.getSequence(); eplus += expected(seq); eminus += expected(GprSeq.reverseWc(seq)); } return (eplus + eminus) / 2; } /** * Observed sequence (average between plus and minus strand) * @param e : Exon * @return */ public int observed(Exon e) { String seq = e.getSequence(); int oplus = observed(seq); int ominus = observed(GprSeq.reverseWc(seq)); return (oplus + ominus) / 2; } /** * Observed sequence (average between plus and minus strand) * @param g : Gene * @return */ public int observed(Gene g) { int oplus = 0; int ominus = 0; for( Transcript t : g ) { for( Exon e : t ) { String seq = e.getSequence(); oplus += observed(seq); ominus += observed(GprSeq.reverseWc(seq)); } } return (oplus + ominus) / 2; } public abstract int observed(String sequence); /** * Observed sequence (average between plus and minus strand) * @param t : Transcript * @return */ public int observed(Transcript t) { int oplus = 0; int ominus = 0; for( Exon e : t ) { String seq = e.getSequence(); oplus += observed(seq); ominus += observed(GprSeq.reverseWc(seq)); } return (oplus + ominus) / 2; } /** * Count the number of CHG in this sequence * @param sequence * @return */ public int observedChg(String sequence) { int count = 0; // Count CHH in this sequence char bases[] = sequence.toUpperCase().toCharArray(); for( int i = 0; i < bases.length - 2; i++ ) if( (bases[i] == 'C') && (bases[i + 1] != 'G') && (bases[i + 2] == 'G') ) count++; return count; } /** * Observed over expected ratio * @param Exon * @return */ public double oe(Exon e) { return observed(e) / expected(e); } /** * Observed over expected ratio * @param Gene * @return */ public double oe(Gene g) { double exp = expected(g); return exp > 0 ? observed(g) / exp : 0; } /** * Observed over expected ratio * @param sequence * @return */ public double oe(String sequence) { double exp = expected(sequence); return exp > 0 ? observed(sequence) / exp : 0; } /** * Observed over expected ratio * @param Transcript * @return */ public double oe(Transcript t) { double exp = expected(t); return exp > 0 ? observed(t) / exp : 0; } }
[ "pablo.e.cingolani@gmail.com" ]
pablo.e.cingolani@gmail.com
ea21ea9bd0f15c853b2363c519a551551a21ff81
cec628def1aad94ccbefa814d2a0dbd51588e9bd
/performance.java/test/qa-functional/data/PerformanceTestFoldersData/src/folders/javaFolder1000/SampleJavaClass749.java
4e0d13c6226f41114a4d7bec13fe7ddc837a64e1
[]
no_license
emilianbold/netbeans-releases
ad6e6e52a896212cb628d4522a4f8ae685d84d90
2fd6dc84c187e3c79a959b3ddb4da1a9703659c7
refs/heads/master
2021-01-12T04:58:24.877580
2017-10-17T14:38:27
2017-10-17T14:38:27
78,269,363
30
15
null
2020-10-13T08:36:08
2017-01-07T09:07:28
null
UTF-8
Java
false
false
3,335
java
/* * Copyright (c) 2010, Oracle. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the distribution. * * Neither the name of Oracle nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package folders.javaFolder1000; /** * Implementation of the logic for the Anagram Game application. */ public class SampleJavaClass749 extends Object { private static final String[] WORD_LIST = { "abstraction", "ambiguous", "arithmetic", "backslash", "bitmap", "circumstance", "combination", "consequently", "traditional"}; private static final String[] SCRAMBLED_WORD_LIST = { "batsartcoin", "maibuguos", "ratimhteci", "abkclssha", "ibmtpa", "iccrmutsnaec", "ocbmnitaoni", "ocsnqeeutnyl", "rtdatioialn" }; /** * Gets the word at a given index. * * @param idx index of required word * @return word at that index in its natural form */ public String getWord(int idx) { return WORD_LIST[idx]; } /** * Gets the word at a given index in its scrambled form. * * @param idx index of required word * @return word at that index in its scrambled form */ public String getScrambledWord(int idx) { return SCRAMBLED_WORD_LIST[idx]; } /** * Gets the number of words in the library. * * @return the total number of plain/scrambled word pairs in the library */ public int getSize() { return WORD_LIST.length; } /** * Checks whether a user's guess for a word at the given index is correct. * * @param idx index of the word guessed * @param userGuess the user's guess for the actual word * @return true if the guess was correct; false otherwise */ public boolean isCorrect(int idx, String userGuess) { return userGuess.equals(getWord(idx)); } }
[ "jskrivanek@netbeans.org" ]
jskrivanek@netbeans.org
e7de7e5d1526495fe342992243d461cec10b48cb
b761ee9c0940728545884c7e5f46afcd06b928ff
/data-exchange-center-monitor/src/main/java/data/exchange/center/monitor/service/CaseManageService.java
efa0915ee067aabab1147c963adfee4dca1c2e84
[]
no_license
fendaq/data-exchange-center
a55b04335966905b7a26e94bac344d2a4380d301
57c112d37c75ea40ac6c2465c6a7e9c5626f1be7
refs/heads/master
2020-06-22T16:21:12.555502
2018-11-08T08:49:08
2018-11-08T08:49:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
538
java
package data.exchange.center.monitor.service; import java.util.List; import data.exchange.center.monitor.domain.FileList; /** * * Description: * <p>Company: xinya </p> * <p>Date:2017年7月24日 下午5:18:04</p> * @author Wen.Yuguang * @version 1.0 * */ public interface CaseManageService { /** * * @function 根据案件标识获取文件列表 * @author wenyuguang * @creaetime 2017年8月1日 下午3:45:36 * @param ajbs * @return */ List<FileList> getFileList(String ajbs); }
[ "yuguang wen" ]
yuguang wen
4c9d5debb21fe86ba373ff08387da7a2c8aea784
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
/genny_JavaWithoutLambdasApi21/applicationModule/src/main/java/applicationModulepackageJava11/Foo397.java
a9596f0ea13c13725170d812528f92113247d48b
[]
no_license
NikitaKozlov/generated-project-for-desugaring
0bc1443ab3ddc84cd289331c726761585766aea7
81506b3711004185070ca4bb9a93482b70011d36
refs/heads/master
2020-03-20T00:35:06.996525
2018-06-12T09:30:37
2018-06-12T09:30:37
137,049,317
0
0
null
null
null
null
UTF-8
Java
false
false
348
java
package applicationModulepackageJava11; public class Foo397 { public void foo0() { new applicationModulepackageJava11.Foo396().foo5(); } public void foo1() { foo0(); } public void foo2() { foo1(); } public void foo3() { foo2(); } public void foo4() { foo3(); } public void foo5() { foo4(); } }
[ "nikita.e.kozlov@gmail.com" ]
nikita.e.kozlov@gmail.com
7579d539a6af2c8e594e9ea62a3b504b6e284491
774d36285e48bd429017b6901a59b8e3a51d6add
/sources/p118io/presage/core/llIlllIl.java
d7e263e38a9cfd919d79b7725c855413fe8ab46b
[]
no_license
jorge-luque/hb
83c086851a409e7e476298ffdf6ba0c8d06911db
b467a9af24164f7561057e5bcd19cdbc8647d2e5
refs/heads/master
2023-08-25T09:32:18.793176
2020-10-02T11:02:01
2020-10-02T11:02:01
300,586,541
0
0
null
null
null
null
UTF-8
Java
false
false
319
java
package p118io.presage.core; import java.util.Set; /* renamed from: io.presage.core.llIlllIl */ public class llIlllIl { public IIllllII IIIIIIII; public Set<llIllIll> IIIIIIIl; public llIlllIl(IIllllII iIllllII, Set<llIllIll> set) { this.IIIIIIII = iIllllII; this.IIIIIIIl = set; } }
[ "jorge.luque@taiger.com" ]
jorge.luque@taiger.com
55dde741c1b906e2a8eb33e3d1ad3cf69f79c72e
b9a3860622a88cb4a825c45870b8d95a901581d5
/Spring06_AOP/src/com/test06/MTest.java
e770548079856142bc1de6ab0b467f42e104eae6
[]
no_license
KOKOPA/Spring_Study
de1a51f7091672c37f899b6a9cbd63cdcdbf2e63
1a67765c5345a027d28beb645b856eedbfdb3eb0
refs/heads/master
2022-12-26T16:27:26.760596
2019-09-03T12:46:52
2019-09-03T12:46:52
203,728,437
0
0
null
2022-12-16T01:03:26
2019-08-22T06:26:40
Java
UTF-8
Java
false
false
607
java
package com.test06; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import com.test06.Person; public class MTest { public static void main(String[] args) { ApplicationContext beans = new ClassPathXmlApplicationContext("com/test06/beans.xml"); System.out.println("여학생 입장"); Person w = (Person)beans.getBean("woman"); w.classWork(); System.out.println("------------"); System.out.println("남학생 입장"); Person m = (Person)beans.getBean("man"); m.classWork(); } }
[ "user2@user2-PC" ]
user2@user2-PC
a40c82f14954600046a6306b7c0f3178e648b7cd
3eca6278418d9eef7f5f850b23714a8356ef525f
/tumi/SocioEJB/ejbModule/pe/com/tumi/credito/socio/creditos/bo/CreditoTipoGarantiaSituacionLaboralBO.java
30bcd9745acfcda57fa2649e7bcfc7ffca68a5d1
[]
no_license
cdelosrios88/tumiws-bizarq
2728235b3f3239f12f14b586bb6349e2f9b8cf4f
7b32fa5765a4384b8d219c5f95327b2e14dd07ac
refs/heads/master
2021-01-23T22:53:21.052873
2014-07-05T05:19:58
2014-07-05T05:19:58
32,641,875
0
0
null
null
null
null
ISO-8859-3
Java
false
false
4,892
java
package pe.com.tumi.credito.socio.creditos.bo; import java.util.HashMap; import java.util.List; import pe.com.tumi.credito.socio.creditos.dao.CreditoTipoGarantiaSituacionLaboralDao; import pe.com.tumi.credito.socio.creditos.dao.impl.CreditoTipoGarantiaSituacionLaboralDaoIbatis; import pe.com.tumi.credito.socio.creditos.domain.CreditoTipoGarantiaId; import pe.com.tumi.credito.socio.creditos.domain.SituacionLaboralTipoGarantia; import pe.com.tumi.credito.socio.creditos.domain.SituacionLaboralTipoGarantiaId; import pe.com.tumi.framework.negocio.exception.BusinessException; import pe.com.tumi.framework.negocio.exception.DAOException; import pe.com.tumi.framework.negocio.factory.TumiFactory; public class CreditoTipoGarantiaSituacionLaboralBO { private CreditoTipoGarantiaSituacionLaboralDao dao = (CreditoTipoGarantiaSituacionLaboralDao)TumiFactory.get(CreditoTipoGarantiaSituacionLaboralDaoIbatis.class); public SituacionLaboralTipoGarantia grabar(SituacionLaboralTipoGarantia o) throws BusinessException{ SituacionLaboralTipoGarantia dto = null; try{ dto = dao.grabar(o); }catch(DAOException e){ throw new BusinessException(e); }catch(Exception e) { throw new BusinessException(e); } return dto; } public SituacionLaboralTipoGarantia modificar(SituacionLaboralTipoGarantia o) throws BusinessException{ SituacionLaboralTipoGarantia dto = null; try{ dto = dao.modificar(o); }catch(DAOException e){ throw new BusinessException(e); }catch(Exception e) { throw new BusinessException(e); } return dto; } public SituacionLaboralTipoGarantia getCreditoSituacionLaboralPorPK(SituacionLaboralTipoGarantiaId pPK) throws BusinessException{ SituacionLaboralTipoGarantia domain = null; List<SituacionLaboralTipoGarantia> lista = null; try{ HashMap mapa = new HashMap(); mapa.put("intPersEmpresaPk", pPK.getIntPersEmpresaPk()); mapa.put("intParaTipoCreditoCod", pPK.getIntParaTipoCreditoCod()); mapa.put("intItemCredito", pPK.getIntItemCredito()); mapa.put("intParaTipoGarantiaCod", pPK.getIntParaTipoGarantiaCod()); mapa.put("intItemCreditoGarantia", pPK.getIntItemCreditoGarantia()); mapa.put("intItemGarantiaTipo", pPK.getIntItemGarantiaTipo()); mapa.put("intParaSituacionLaboralCod",pPK.getIntParaSituacionLaboralCod()); lista = dao.getListaSituacionLaboralTipoGarantiaPorPK(mapa); if(lista!=null){ if(lista.size()==1){ domain = lista.get(0); }else if(lista.size()==0){ domain = null; }else{ throw new BusinessException("Obtención de mas de un registro coincidente"); } } }catch(DAOException e){ throw new BusinessException(e); }catch(BusinessException e){ throw e; }catch(Exception e) { throw new BusinessException(e); } return domain; } public List<SituacionLaboralTipoGarantia> getListaSituacionLaboralPorPKCreditoTipoGarantia(CreditoTipoGarantiaId pCreditoGarantia) throws BusinessException{ List<SituacionLaboralTipoGarantia> lista = null; try{ HashMap<String, Object> mapa = new HashMap<String, Object>(); mapa.put("intPersEmpresaPk", pCreditoGarantia.getIntPersEmpresaPk()); mapa.put("intParaTipoCreditoCod", pCreditoGarantia.getIntParaTipoCreditoCod()); mapa.put("intItemCredito", pCreditoGarantia.getIntItemCredito()); mapa.put("intParaTipoGarantiaCod", pCreditoGarantia.getIntParaTipoGarantiaCod()); mapa.put("intItemCreditoGarantia", pCreditoGarantia.getIntItemCreditoGarantia()); mapa.put("intItemGarantiaTipo", pCreditoGarantia.getIntItemGarantiaTipo()); lista = dao.getListaSituacionLaboralTipoGarantiaPorCreditoTipoGarantia(mapa); }catch(DAOException e){ throw new BusinessException(e); }catch(Exception e) { throw new BusinessException(e); } return lista; } public List<SituacionLaboralTipoGarantia> getListaSituacionLaboralPorCreditoTipoGarantia(CreditoTipoGarantiaId pCreditoGarantia) throws BusinessException{ List<SituacionLaboralTipoGarantia> lista = null; try{ HashMap<String, Object> mapa = new HashMap<String, Object>(); mapa.put("intPersEmpresaPk", pCreditoGarantia.getIntPersEmpresaPk()); mapa.put("intParaTipoCreditoCod", pCreditoGarantia.getIntParaTipoCreditoCod()); mapa.put("intItemCredito", pCreditoGarantia.getIntItemCredito()); mapa.put("intParaTipoGarantiaCod", pCreditoGarantia.getIntParaTipoGarantiaCod()); mapa.put("intItemCreditoGarantia", pCreditoGarantia.getIntItemCreditoGarantia()); mapa.put("intItemGarantiaTipo", pCreditoGarantia.getIntItemGarantiaTipo()); lista = dao.getListaSituacionLaboralPorCreditoTipoGarantia(mapa); }catch(DAOException e){ throw new BusinessException(e); }catch(Exception e) { throw new BusinessException(e); } return lista; } }
[ "cdelosrios@bizarq.com@b3a863b4-f5f8-5366-a268-df30542ed8c1" ]
cdelosrios@bizarq.com@b3a863b4-f5f8-5366-a268-df30542ed8c1
d365ab2e4e5db3605aab01c6bae12b02ef0eef83
e962b2ab36cb75a3baf106ec5e6dc5d2e0478f53
/QuanLyPhongGym/src/Gym/Controller/ControllerCongNoKH.java
6d5acdf1cf157ca2829ca5ec415f3169e131b388
[]
no_license
QuangThuanLion/Gym_management-application
9a3fa954675423e9010bfb3557c21e95c47cfb5a
e41953d59210c21d67ea0c334e1ba23ea956a908
refs/heads/master
2020-11-25T08:57:00.993085
2019-12-17T09:47:26
2019-12-17T09:47:26
228,582,600
0
0
null
null
null
null
UTF-8
Java
false
false
5,726
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package Gym.Controller; import java.sql.PreparedStatement; import java.sql.Connection; import java.sql.ResultSet; import java.util.ArrayList; import Gym.Model.KhachHang; import Controller.connectDB; import Gym.Model.ThongTinKhachHang; import java.sql.Date; import java.sql.SQLException; import java.util.List; import javax.swing.JOptionPane; import Gym.Model.QuanlyCongNoKH; import Gym.Model.CongNoKhachHang; /** * * @author Admin */ public class ControllerCongNoKH { public static PreparedStatement pst = null;// đây là biến thực thi sql public static Connection conn = null; //lấy từ lớp cơ bản đến kết nối java public static ResultSet rs = null; // câu lệnh trả về một giá trị hay một dòng hay một bảng dữ liệu CongNoKhachHang congNoKhachHang = null; QuanlyCongNoKH quanlyCongNoKH = null; public List<ThongTinKhachHang> LoadKhachHang(){ List<ThongTinKhachHang> listKhachHang = new ArrayList<ThongTinKhachHang>(); String sql = "SELECT * FROM View_DangKiKhachHang";// tạo câu lệnh truy vấn try{ conn = connectDB.connectSQLServer();// mở phương thức kết nối pst = conn.prepareStatement(sql);// chuẩn bị truy vấn rs = pst.executeQuery();// thực hiện truy vấn ThongTinKhachHang kh; while(rs.next()){ //trả về dữ liệu, show ra dữ liệu kh = new ThongTinKhachHang(); kh.setMaKH(rs.getString("MaKH")); kh.setHoTenKH(rs.getString("Hoten")); kh.setNgaySinh(rs.getDate("Ngaysinh")); kh.setGioiTinh(rs.getBoolean("Gioitinh")); kh.setMaGoi(rs.getString("MaGoiDk")); kh.setTenGoi(rs.getString("Tengoi")); kh.setNgayDK(rs.getDate("NgayDK")); kh.setNgayHHDK(rs.getDate("NgayHetHanDk")); kh.setSoDienThoai(rs.getInt("Sodienthoai")); kh.setDiaChi(rs.getString("Diachi")); kh.setEmail(rs.getString("Email")); listKhachHang.add(kh); } return listKhachHang; } catch(Exception e){ e.printStackTrace(); } return null; } public boolean addNewCongNoKH(CongNoKhachHang cnkh){ String sql = "INSERT INTO CONGNOKHACHHANG(MaKH,Hoten,MaSP,Sotienno,Ghichu) VALUES (?,?,?,?,?)"; //chuỗi truy vấn sql try { conn = connectDB.connectSQLServer(); pst = conn.prepareStatement(sql); pst.setString(1, cnkh.getMaKH()); pst.setString(2, cnkh.getHoTen()); pst.setString(3, cnkh.getMaSP()); pst.setInt(4, cnkh.getSoTienNo()); pst.setString(5, cnkh.getGhiChu()); pst.executeUpdate(); conn.close(); pst.close(); return true; } catch(Exception e) { e.printStackTrace(); return false; } } //load data lên bảng chi tiết công nợ public List<QuanlyCongNoKH> LoadBangCongNoKH(){ List<QuanlyCongNoKH> listCongNoKH = new ArrayList<QuanlyCongNoKH>(); String sql = "SELECT * FROM View_CongNoKhachHang";// tạo câu lệnh truy vấn try{ conn = connectDB.connectSQLServer();// mở phương thức kết nối pst = conn.prepareStatement(sql);// chuẩn bị truy vấn rs = pst.executeQuery();// thực hiện truy vấn ThongTinKhachHang kh; while(rs.next()){ //trả về dữ liệu, show ra dữ liệu quanlyCongNoKH = new QuanlyCongNoKH(); quanlyCongNoKH.setMaKH(rs.getString("MaKH")); quanlyCongNoKH.setTenKH(rs.getString("Hoten")); quanlyCongNoKH.setMaSP(rs.getString("MaSP")); quanlyCongNoKH.setTenSP(rs.getString("TenSP")); quanlyCongNoKH.setSoTienNo(rs.getInt("Sotienno")); quanlyCongNoKH.setGhiChu(rs.getString("Ghichu")); listCongNoKH.add(quanlyCongNoKH); } return listCongNoKH; } catch(Exception e){ e.printStackTrace(); } return null; } //delete from bang cong no khach hang public boolean deleteCongNoKhachHang(String MaKH){ String sql = "DELETE FROM CONGNOKHACHHANG WHERE MaKH = ?"; try { conn = connectDB.connectSQLServer(); pst = conn.prepareStatement(sql); pst.setString(1, MaKH); pst.executeUpdate(); pst.close(); conn.close(); return true; } catch(Exception e) { e.printStackTrace(); return false; } } }
[ "=" ]
=
2bf9a028332a0a53ace600c63c31c1834dd6565a
d271fbec63636ac8eb928894079d01803e100510
/classlib/src/main/java/org/teavm/classlib/impl/unicode/TimeZoneLocalizationGenerator.java
d75965b186011d48f8d1ce96a873fccac80c2dc0
[ "Apache-2.0" ]
permissive
cooboyno111/teavm
41a5d22e7d3e24e022505d295aef9445b640e948
fcf0394214e26f76beb2bbba4aeacd0165a82054
refs/heads/master
2021-01-15T14:47:43.701923
2016-09-19T19:34:16
2016-09-19T19:34:16
68,708,319
2
0
null
2016-09-20T12:11:43
2016-09-20T12:11:43
null
UTF-8
Java
false
false
2,087
java
/* * Copyright 2015 Alexey Andreev. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.teavm.classlib.impl.unicode; import java.util.Map; import org.teavm.model.MethodReference; import org.teavm.platform.metadata.*; /** * * @author Alexey Andreev */ public class TimeZoneLocalizationGenerator implements MetadataGenerator { @Override public Resource generateMetadata(MetadataGeneratorContext context, MethodReference method) { CLDRReader cldr = context.getService(CLDRReader.class); ResourceMap<TimeZoneLocalization> localizations = context.createResourceMap(); for (Map.Entry<String, CLDRLocale> locale : cldr.getKnownLocales().entrySet()) { TimeZoneLocalization localization = context.createResource(TimeZoneLocalization.class); ResourceMap<ResourceMap<StringResource>> map = context.createResourceMap(); localization.setTimeZones(map); localizations.put(locale.getKey(), localization); for (CLDRTimeZone tz : locale.getValue().getTimeZones()) { ResourceMap<StringResource> area; if (!map.has(tz.getArea())) { area = context.createResourceMap(); map.put(tz.getArea(), area); } area = map.get(tz.getArea()); StringResource name = context.createResource(StringResource.class); name.setValue(tz.getName()); area.put(tz.getLocation(), name); } } return localizations; } }
[ "konsoletyper@gmail.com" ]
konsoletyper@gmail.com
cc5ef7687bc1c8c7f775532910cbd42756a0e635
6eb6a995e1759021a484a8b16cfdbef5dd7b7e9e
/src/main/java/com/qgailab/designer/createmode/prototype/ShallowCloneObj.java
60352852457823fdef5853566fab4179407480fc
[]
no_license
linux5396/DESIGNER
21162caf6e6aef03c513c6038fc1b8d53bec9041
2fbe06b487eade9ed4f86d9d7a7c5443a6eb9b42
refs/heads/master
2020-12-14T21:19:30.519094
2020-02-29T06:53:07
2020-02-29T06:53:07
234,871,884
5
0
null
null
null
null
UTF-8
Java
false
false
1,715
java
package com.qgailab.designer.createmode.prototype; /** * @author linxu * @date 2020/1/19 * <tip>take care of yourself.everything is no in vain.</tip> * clone方法是在Object种定义的,而且是protected型的,只有实现了这个接口, * 才可以在该类的实例上调用clone方法,否则会抛出CloneNotSupportException。 * Object中默认的实现是一个浅拷贝,也就是表面拷贝,如果需要实现深层次拷贝的话,必须对类中可变域生成新的实例。 */ public class ShallowCloneObj implements Cloneable { private Ref strRef; public ShallowCloneObj(Ref strRef) { this.strRef = strRef; } @Override protected Object clone() throws CloneNotSupportedException { return super.clone(); } public static void main(String[] args) throws Exception { Ref ref=new Ref("i am ref."); ShallowCloneObj originObj = new ShallowCloneObj(ref); ShallowCloneObj cloneObj = (ShallowCloneObj) originObj.clone(); System.out.println(originObj.strRef.getRefStr() + "----"); System.out.println(cloneObj.strRef.getRefStr() + "++++"); //change ref ref.setRefStr("new ref str."); System.out.println("=================================================="); System.out.println(originObj.strRef.getRefStr() + "----"); System.out.println(cloneObj.strRef.getRefStr() + "++++"); } static class Ref{ String refStr; public String getRefStr() { return refStr; } public void setRefStr(String refStr) { this.refStr = refStr; } public Ref(String refStr) { this.refStr = refStr; } } }
[ "929159338@qq.com" ]
929159338@qq.com
e1d134fbdb857ee18d712b6a82653a92a8bddeb5
fc5f16c7dd1cd7aee2d2ca0eb414860b5ad6d384
/src/src/minecraft_server/net/minecraft/src/CommandDefaultGameMode.java
86b2f498c0bf62bf31eefef9570e1728b8790d50
[]
no_license
Nickorama21/Minecraft--TI-Nspire-CX-Port
44eeca7a742d199e223d712866352a9e12b3290c
95acc13c310f519ed8d4ed5a755ef70712da532f
refs/heads/master
2020-05-17T11:31:43.456900
2012-09-01T17:24:47
2012-09-01T17:24:52
5,623,326
4
1
null
null
null
null
UTF-8
Java
false
false
1,160
java
package net.minecraft.src; import net.minecraft.server.MinecraftServer; public class CommandDefaultGameMode extends CommandGameMode { public String getCommandName() { return "defaultgamemode"; } public String getCommandUsage(ICommandSender par1ICommandSender) { return par1ICommandSender.translateString("commands.defaultgamemode.usage", new Object[0]); } public void processCommand(ICommandSender par1ICommandSender, String[] par2ArrayOfStr) { if (par2ArrayOfStr.length > 0) { EnumGameType var3 = this.getGameModeFromCommand(par1ICommandSender, par2ArrayOfStr[0]); this.func_71541_a(var3); String var4 = StatCollector.translateToLocal("gameMode." + var3.getName()); func_71522_a(par1ICommandSender, "commands.defaultgamemode.success", new Object[] {var4}); } else { throw new WrongUsageException("commands.defaultgamemode.usage", new Object[0]); } } protected void func_71541_a(EnumGameType par1EnumGameType) { MinecraftServer.getServer().setGameMode(par1EnumGameType); } }
[ "nickparker.stl@gmail.com" ]
nickparker.stl@gmail.com
3924d496d6035cd650862b617ef2da922486f511
af71555e266b2173aa5da91734d46122bf986897
/robobinding/src/main/java/org/robobinding/viewattribute/property/PropertyViewAttributeBinderProvider.java
d41ca85d7db86d6eedf13aa8668e83b52a53a6f8
[ "Apache-2.0" ]
permissive
403462630/RoboBinding
de73581252540b76ec570245710c174aad8718b1
bfedc1ea56bbcc53833eb82e2b6b2a66e520bce4
refs/heads/master
2021-01-25T00:29:41.574975
2014-08-03T13:16:16
2014-08-03T13:16:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
306
java
package org.robobinding.viewattribute.property; import android.view.View; /** * * @since 1.0 * @version $Revision: 1.0 $ * @author Cheng Wei */ public interface PropertyViewAttributeBinderProvider<T extends View> { PropertyViewAttributeBinder<T, ?> create(Class<?> propertyType); }
[ "weicheng112@gmail.com" ]
weicheng112@gmail.com
ab185ceb7c6bcf0f04f340fd383b43cef0f952fb
256a3596eb3a9c694d2015b173c51b4e20b82ae0
/DailyRhythmPortal/primary-source/src/test/java/com/bestbuy/bbym/ise/drp/domain/BbyAccountFactory.java
67dd834f2e6f0bcdae661c3c38d5e10154763f0c
[]
no_license
sellasiyer/maven-drp
a8487325586bb6018d08a6cdb4078ce0ef5d5989
cbbab7027e1ee64cdaf9956a82c6ad964bb9ec86
refs/heads/master
2021-01-01T19:15:47.427243
2012-11-03T13:04:14
2012-11-03T13:04:14
5,146,773
0
0
null
null
null
null
UTF-8
Java
false
false
836
java
package com.bestbuy.bbym.ise.drp.domain; import java.util.UUID; /** * Factory used to create dummy and mock {@link BbyAccount} objects for testing. */ public abstract class BbyAccountFactory { private BbyAccountFactory() { // This class is not meant to be extended or instantiated } /** * Builds mock data used for testing */ public static BbyAccount getBbyAccount() { String dataSharingKey = UUID.randomUUID().toString(); String bbymAccountAddressId = UUID.randomUUID().toString(); Address address1 = new Address(bbymAccountAddressId, "55435", "7081 Penn Ave S", "Suite 110", "Richfield", "MN", "a175157", "a175157"); BbyAccount bbymAccount1 = new BbyAccount(dataSharingKey, "Sri", "Sid", "4102221212", "aa@a.com", "1234567890", address1, "a175157", "a175157"); return bbymAccount1; } }
[ "sella.s.iyer@gmail.com" ]
sella.s.iyer@gmail.com
02d33cf76896a7100f162e2c46baf8da84696382
a9ba9a03d440e2f78da6a3afb2670432564a43ad
/euvouromper-web/WEB-INF/src/br/com/orlandoburli/euvouromper/web/servlets/geral/ecommerce/cliente/ClienteVideoPlayerView.java
cd59c54cd1a0a5ce99341f84b12286c711621d86
[]
no_license
orlandoburli/euvouromper
20529cb6ca90af6f997bc08355e55fdce10c1294
fe64fa8ce8fad941b8cd01627e1c1ae3bda3b837
refs/heads/master
2021-03-27T12:36:25.247849
2014-07-23T01:24:13
2014-07-23T01:24:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,377
java
package br.com.orlandoburli.euvouromper.web.servlets.geral.ecommerce.cliente; import java.io.IOException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.security.spec.InvalidKeySpecException; import java.text.SimpleDateFormat; import javax.crypto.BadPaddingException; import javax.crypto.IllegalBlockSizeException; import javax.crypto.NoSuchPaddingException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import br.com.orlandoburli.euvouromper.model.be.ecommerce.ItemPedidoBe; import br.com.orlandoburli.euvouromper.model.be.ecommerce.ProdutoBe; import br.com.orlandoburli.euvouromper.model.be.ecommerce.cliente.ClienteSaldoBe; import br.com.orlandoburli.euvouromper.model.be.online.VideoBe; import br.com.orlandoburli.euvouromper.model.domains.SimNao; import br.com.orlandoburli.euvouromper.model.vo.ecommerce.ItemPedidoVo; import br.com.orlandoburli.euvouromper.model.vo.ecommerce.ProdutoVo; import br.com.orlandoburli.euvouromper.model.vo.ecommerce.cliente.ClienteVo; import br.com.orlandoburli.euvouromper.model.vo.online.VideoVo; import br.com.orlandoburli.euvouromper.web.servlets.utils.WebUtils; import br.com.orlandoburli.framework.core.be.exceptions.persistence.ListException; import br.com.orlandoburli.framework.core.dao.DAOManager; import br.com.orlandoburli.framework.core.log.Log; import br.com.orlandoburli.framework.core.utils.Constants; import br.com.orlandoburli.framework.core.utils.Criptografia; import br.com.orlandoburli.framework.core.utils.Utils; @WebServlet("/aluno.free.video.page") public class ClienteVideoPlayerView extends HttpServlet { private static final long serialVersionUID = 1L; @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { ClienteVo cliente = (ClienteVo) req.getSession().getAttribute(Constants.Session.CLIENTE); DAOManager manager = DAOManager.getDAOManager(); try { // Menus WebUtils.buildMenus(req, manager); // Videos Gratuitos req.setAttribute("videos", new VideoBe(manager).getListaGratuitosHome()); Integer idVideo = null; try { idVideo = Integer.parseInt(req.getParameter("v")); } catch (NumberFormatException | NullPointerException e) { idVideo = null; } if (idVideo == null) { Log.warning("Parametro [v] está vazio."); WebUtils.goHome(req, resp); return; } if (cliente == null) { WebUtils.goTo(req, resp, "/entrar?redir=/video/free/" + idVideo); return; } VideoVo video = new VideoBe(manager).get(idVideo); req.setAttribute("video", video); Integer idItemPedido = null; try { idItemPedido = Integer.parseInt(req.getParameter("i")); } catch (NumberFormatException | NullPointerException e) { idItemPedido = null; } Log.info("idItemPedido 2 = " + idItemPedido); Integer idModulo = null; try { idModulo = Integer.parseInt(req.getParameter("m")); } catch (NumberFormatException | NullPointerException e) { idModulo = null; } req.setAttribute("idModulo", idModulo); // Verifica se o video foi comprado invidividualmente boolean compraIndividual = new ClienteSaldoBe(manager).checkIndividual(cliente, video) != null; if (idItemPedido == null && !compraIndividual && !video.getGratuito().equals(SimNao.SIM)) { // Item ainda nao foi comprado, dar opcao de compra somente // daquele video // Log.warning("Parametro [i] está vazio."); // // // Seta o produto de video individual para compra. // req.setAttribute("produto", new // ProdutoBe(manager).getProdutoVideoIndividual()); // // req.getRequestDispatcher("/web/pages/ecommerce/cliente/cliente_free_video.jsp").forward(req, // resp); return; } Integer idProduto = null; try { idProduto = Integer.parseInt(req.getParameter("p")); } catch (NullPointerException | NumberFormatException e) { idProduto = null; } ItemPedidoVo item = new ItemPedidoBe(manager).get(idItemPedido, cliente); if (video != null) { // Gera URL Temporaria na sessao String dataHoraVideo = new SimpleDateFormat("ddMMyyyy-hhmmss").format(Utils.getNow()); String codigoItem = Utils.fillString(video.getIdVideo(), "0", 20, 1); String itemPedido = ""; if (item != null) { itemPedido = Utils.fillString(item.getIdItemPedido(), "0", 20, 1); } else { itemPedido = Utils.fillString("0", "0", 20, 1); } ProdutoVo produto = new ProdutoBe(manager).get(idProduto); String idProdutoStr = ""; if (produto != null) { idProdutoStr = produto.getIdProduto().toString(); } idProdutoStr = Utils.fillString(idProdutoStr, "0", 20, 1); String url = dataHoraVideo + "-" + codigoItem + "-" + itemPedido + "-" + idProdutoStr; String urlCripto = Utils.toBase64(Criptografia.newInstance(Constants.CHAVE_CRIPTO).cripto(url)); req.getSession().setAttribute(url, urlCripto); req.setAttribute("urlVideo", urlCripto); if (item != null) { req.setAttribute("item", item.getIdItemPedido()); } else { req.setAttribute("item", "0"); } req.setAttribute("nomeCliente64", Utils.toBase64(cliente.getNome())); req.setAttribute("cpfCliente64", Utils.toBase64(cliente.getCpf())); } else { if (video == null) { Log.warning("Video de id " + idVideo + " não encontrado!"); } if (item == null) { Log.warning("Item pedido id " + idItemPedido + " não encontrado!"); } } } catch (ListException e) { Log.error(e); } catch (InvalidKeyException e) { Log.critical(e); } catch (IllegalBlockSizeException e) { Log.critical(e); } catch (BadPaddingException e) { Log.critical(e); } catch (NoSuchAlgorithmException e) { Log.critical(e); } catch (NoSuchPaddingException e) { Log.critical(e); } catch (InvalidKeySpecException e) { Log.critical(e); } finally { manager.commit(); } req.getRequestDispatcher("/web/pages/ecommerce/cliente/cliente_free_video_ver.jsp").forward(req, resp); } @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); } }
[ "orlando.developermaster@gmail.com" ]
orlando.developermaster@gmail.com
133afd3986cfc38e3d9db6796d2bdb86a28df568
4c304a7a7aa8671d7d1b9353acf488fdd5008380
/src/main/java/com/alipay/api/domain/AlipayIserviceCognitiveOcrDriverlicenseQueryModel.java
a44148e08615f9f4822033b4c52a173dcc7d206e
[ "Apache-2.0" ]
permissive
zhaorongxi/alipay-sdk-java-all
c658983d390e432c3787c76a50f4a8d00591cd5c
6deda10cda38a25dcba3b61498fb9ea839903871
refs/heads/master
2021-02-15T19:39:11.858966
2020-02-16T10:44:38
2020-02-16T10:44:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
695
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 驾驶证信息识别 * * @author auto create * @since 1.0, 2019-04-26 12:38:15 */ public class AlipayIserviceCognitiveOcrDriverlicenseQueryModel extends AlipayObject { private static final long serialVersionUID = 5566492526686913833L; /** * 驾驶证图片base64加密后内容,大小控制在1.5M以内 */ @ApiField("image_content") private String imageContent; public String getImageContent() { return this.imageContent; } public void setImageContent(String imageContent) { this.imageContent = imageContent; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
04705376397f480b160d24d6a305d2653cdc0a92
679f1a2a4e48fca5b1f8f332a20609a2ff82ff84
/sourceanalysis/AOS/aos1.0/aos/java/cn/osworks/aos/web/tag/impl/ext/form/field/TextFieldTag.java
faa40d82a0d26b9f01eb4ec17df98020bfcf320e
[]
no_license
tangjiquan/projectsources
6c75f17d0ccee742fc1c301c035f0bd90dcfe7a8
c0a266953ef896816d98f3b9e62376e800448272
refs/heads/master
2021-01-21T04:48:27.485587
2016-06-04T07:28:10
2016-06-04T07:28:10
52,531,594
0
0
null
null
null
null
UTF-8
Java
false
false
1,978
java
package cn.osworks.aos.web.tag.impl.ext.form.field; import java.io.IOException; import javax.servlet.jsp.JspException; import cn.osworks.aos.core.typewrap.Dto; import cn.osworks.aos.web.tag.asset.Xtypes; import cn.osworks.aos.web.tag.core.model.TagDto; import cn.osworks.aos.web.tag.impl.ext.FormItemTagSupport; /** * <b>TextField标签实现类</b> * * @author OSWorks-XC * @date 2014-04-14 */ public class TextFieldTag extends FormItemTagSupport { private static final long serialVersionUID = 1L; private String maxLength; private String minLength; /** * 预处理和标签逻辑校验 * * @throws JspException */ public void doPrepare() throws JspException { super.doPrepare(); setXtype(Xtypes.TEXTFIELD); resetListenerContainer(); } /** * 开始标签 */ public int doStartTag() throws JspException { doPrepare(); return EVAL_BODY_INCLUDE; } /** * 结束标签 */ public int doEndTag() throws JspException { Dto tagDto = new TagDto(); super.pkgProperties(tagDto); tagDto.put("maxLength", getMaxLength()); tagDto.put("minLength", getMinLength()); String jspString = mergeFileTemplate(EXTVM + "form/textFieldTag.vm", tagDto); try { pageContext.getOut().write(jspString); } catch (IOException e) { throw new JspException(e); } super.addTotalColWidth4FormRow(); addCur2ParentItems(); doClear(); return EVAL_PAGE; } /** * 后处理标签现场 * * @throws JspException */ private void doClear() throws JspException { setId(null); } /** * 释放资源 */ public void release() { super.release(); } public String getMaxLength() { return maxLength; } public void setMaxLength(String maxLength) { this.maxLength = maxLength; } public String getMinLength() { return minLength; } public void setMinLength(String minLength) { this.minLength = minLength; } }
[ "2495527426@qq.com" ]
2495527426@qq.com
ccf8d5bf939c8fc843463c749bfe0be11d35dc7e
230e7531bf56ec2a5287ffa4c28d579b7d7dedb4
/src/main/java/pet/bazaar/service/DeliveryService.java
52d1df0906d3553ce11f72a13d5cf712bf39c576
[]
no_license
Keos99/Market
7675fdbf61620b86d6ec0e330f101590a13966a8
b054e7548bf6a7edae79d166c6ff40279ce53662
refs/heads/master
2023-06-24T14:37:46.631844
2021-07-26T12:06:00
2021-07-26T12:06:00
389,611,994
0
0
null
null
null
null
UTF-8
Java
false
false
128
java
package pet.bazaar.service; import pet.bazaar.entity.Delivery; public interface DeliveryService extends Service<Delivery> { }
[ "keos99@bk.ru" ]
keos99@bk.ru
98a1499ac6fdb0b704e43473876d4e156a1dc49e
e75bc637c8a8bbe11dd3ecf861594476bd3a5022
/src/com/mf/bsnsmng/entity/BsnsApplydtl.java
aa5618f038c21f94158518f3aa857178453004ed
[]
no_license
atomicworld/finance
220fc00563368dcd154ca5984e3f2afb22c33d74
ba2ec82334d7654b3edcea35b6eae40bf1917493
refs/heads/master
2021-01-23T04:34:12.684005
2018-03-29T09:45:49
2018-03-29T09:45:49
86,209,158
0
0
null
null
null
null
UTF-8
Java
false
false
7,035
java
/* * Powered By [yc_genetrator] * version 1.0 * Since 2013 - 2015 */ package com.mf.bsnsmng.entity; import java.math.BigDecimal; /** * @author yangchao * @2015-01-08 * @Email: bobiy@foxmail.com * @version 1.0 * @param <T> */ public class BsnsApplydtl { //alias public static final String TABLE_ALIAS = "BsnsApplydtl"; public static final String ALIAS_RCRDID = "记录id"; public static final String ALIAS_CLNTNO = "客户编号"; public static final String ALIAS_CLNTNM = "客户姓名"; public static final String ALIAS_APPLYNO = "申请编号"; public static final String ALIAS_SRLNO = "流水号"; public static final String ALIAS_KNDNO = "业务种类编号"; public static final String ALIAS_LNTMDY = "贷款期限(天)"; public static final String ALIAS_GRTWAY = "担保类型"; public static final String ALIAS_APPLYAMNT = "贷款金额"; public static final String ALIAS_REGOPNO = "登记人编号"; public static final String ALIAS_REGOPNM = "登记人姓名"; public static final String ALIAS_DEPNO = "部门编号"; public static final String ALIAS_SUBDATE = "申请提交日期"; public static final String ALIAS_CURSTEP = "当前审批步骤"; public static final String ALIAS_APPRVSTT = "当前审批状态"; public static final String ALIAS_APPRVTYP = "审批类型"; public static final String ALIAS_APPRVPRCSSNO = "审批流程编号"; public static final String ALIAS_APPRVPRCSS = "审批流程"; public static final String ALIAS_REMARK = "备注"; public static final String ALIAS_TRMYR = "期限(年)"; public static final String ALIAS_TRMMNTH = "期限(月)"; public static final String ALIAS_TRMDAY = "期限(日)"; //date formats public BsnsApplydtl(){ } public BsnsApplydtl( java.lang.Long rcrdid ){ this.rcrdid = rcrdid; } //columns START /**记录id==>db_column: RCRDID*/ private java.lang.Long rcrdid; /**客户编号==>db_column: CLNTNO*/ private java.lang.String clntno; /**客户姓名==>db_column: CLNTNM*/ private java.lang.String clntnm; /**申请编号==>db_column: APPLYNO*/ private java.lang.String applyno; /**流水号==>db_column: SRLNO*/ private java.lang.String srlno; /**业务种类编号==>db_column: KNDNO*/ private java.lang.String kndno; /**贷款期限(天)==>db_column: LNTMDY*/ private java.lang.String lntmdy; /**担保类型==>db_column: GRTWAY*/ private java.lang.String grtway; /**贷款金额==>db_column: APPLYAMNT*/ private BigDecimal applyamnt; /**登记人编号==>db_column: REGOPNO*/ private java.lang.String regopno; /**登记人姓名==>db_column: REGOPNM*/ private java.lang.String regopnm; /**部门编号==>db_column: DEPNO*/ private java.lang.String depno; /**申请提交日期==>db_column: SUBDATE*/ private java.lang.String subdate; /**当前审批步骤==>db_column: CURSTEP*/ private java.lang.String curstep; /**当前审批状态==>db_column: APPRVSTT*/ private java.lang.String apprvstt; /**审批类型==>db_column: APPRVTYP*/ private java.lang.String apprvtyp; /**审批流程编号==>db_column: APPRVPRCSSNO*/ private java.lang.String apprvprcssno; /**审批流程==>db_column: APPRVPRCSS*/ private java.lang.String apprvprcss; /**备注==>db_column: REMARK*/ private java.lang.String remark; /**期限(年)==>db_column: TRMYR*/ private Integer trmyr; /**期限(月)==>db_column: TRMMNTH*/ private Integer trmmnth; /**期限(日)==>db_column: TRMDAY*/ private Integer trmday; //columns END //系统框架字段 start private java.lang.String sort; private java.lang.String direction; public java.lang.String getSort() { return sort; } public void setSort(java.lang.String sort) { this.sort = sort; } public java.lang.String getDirection() { return direction; } public void setDirection(java.lang.String direction) { this.direction = direction; } //系统框架字段 end public void setRcrdid(java.lang.Long value) { this.rcrdid = value; } public java.lang.Long getRcrdid() { return this.rcrdid; } public void setClntno(java.lang.String value) { this.clntno = value; } public java.lang.String getClntno() { return this.clntno; } public void setClntnm(java.lang.String value) { this.clntnm = value; } public java.lang.String getClntnm() { return this.clntnm; } public void setApplyno(java.lang.String value) { this.applyno = value; } public java.lang.String getApplyno() { return this.applyno; } public void setSrlno(java.lang.String value) { this.srlno = value; } public java.lang.String getSrlno() { return this.srlno; } public void setKndno(java.lang.String value) { this.kndno = value; } public java.lang.String getKndno() { return this.kndno; } public void setLntmdy(java.lang.String value) { this.lntmdy = value; } public java.lang.String getLntmdy() { return this.lntmdy; } public void setGrtway(java.lang.String value) { this.grtway = value; } public java.lang.String getGrtway() { return this.grtway; } public void setApplyamnt(BigDecimal value) { this.applyamnt = value; } public BigDecimal getApplyamnt() { return this.applyamnt; } public void setRegopno(java.lang.String value) { this.regopno = value; } public java.lang.String getRegopno() { return this.regopno; } public void setRegopnm(java.lang.String value) { this.regopnm = value; } public java.lang.String getRegopnm() { return this.regopnm; } public void setDepno(java.lang.String value) { this.depno = value; } public java.lang.String getDepno() { return this.depno; } public void setSubdate(java.lang.String value) { this.subdate = value; } public java.lang.String getSubdate() { return this.subdate; } public void setCurstep(java.lang.String value) { this.curstep = value; } public java.lang.String getCurstep() { return this.curstep; } public void setApprvstt(java.lang.String value) { this.apprvstt = value; } public java.lang.String getApprvstt() { return this.apprvstt; } public void setApprvtyp(java.lang.String value) { this.apprvtyp = value; } public java.lang.String getApprvtyp() { return this.apprvtyp; } public void setApprvprcssno(java.lang.String value) { this.apprvprcssno = value; } public java.lang.String getApprvprcssno() { return this.apprvprcssno; } public void setApprvprcss(java.lang.String value) { this.apprvprcss = value; } public java.lang.String getApprvprcss() { return this.apprvprcss; } public void setRemark(java.lang.String value) { this.remark = value; } public java.lang.String getRemark() { return this.remark; } public void setTrmyr(Integer value) { this.trmyr = value; } public Integer getTrmyr() { return this.trmyr; } public void setTrmmnth(Integer value) { this.trmmnth = value; } public Integer getTrmmnth() { return this.trmmnth; } public void setTrmday(Integer value) { this.trmday = value; } public Integer getTrmday() { return this.trmday; } }
[ "huangwen9@wanda.cn" ]
huangwen9@wanda.cn
5d3d3c41ddfd454cccaad001bfbf12946b87427a
5d886e65dc224924f9d5ef4e8ec2af612529ab93
/sources/com/android/systemui/bubbles/BubbleIconFactory.java
00966938b3ae764fe74bda6f5112d52af60a208d
[]
no_license
itz63c/SystemUIGoogle
99a7e4452a8ff88529d9304504b33954116af9ac
f318b6027fab5deb6a92e255ea9b26f16e35a16b
refs/heads/master
2022-05-27T16:12:36.178648
2020-04-30T04:21:56
2020-04-30T04:21:56
260,112,526
3
1
null
null
null
null
UTF-8
Java
false
false
2,709
java
package com.android.systemui.bubbles; import android.app.Notification.BubbleMetadata; import android.content.Context; import android.content.pm.LauncherApps; import android.content.pm.ShortcutInfo; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.graphics.drawable.Icon; import com.android.launcher3.icons.BaseIconFactory; import com.android.launcher3.icons.BitmapInfo; import com.android.launcher3.icons.R$dimen; import com.android.launcher3.icons.ShadowGenerator; import com.android.systemui.C2009R$dimen; public class BubbleIconFactory extends BaseIconFactory { protected BubbleIconFactory(Context context) { super(context, context.getResources().getConfiguration().densityDpi, context.getResources().getDimensionPixelSize(C2009R$dimen.individual_bubble_size)); } /* access modifiers changed from: 0000 */ public int getBadgeSize() { return this.mContext.getResources().getDimensionPixelSize(R$dimen.profile_badge_size); } /* access modifiers changed from: 0000 */ public Drawable getBubbleDrawable(Context context, ShortcutInfo shortcutInfo, BubbleMetadata bubbleMetadata) { if (shortcutInfo != null) { return ((LauncherApps) context.getSystemService("launcherapps")).getShortcutIconDrawable(shortcutInfo, context.getResources().getConfiguration().densityDpi); } Icon bubbleIcon = bubbleMetadata.getBubbleIcon(); if (bubbleIcon == null) { return null; } if (bubbleIcon.getType() == 4 || bubbleIcon.getType() == 6) { context.grantUriPermission(context.getPackageName(), bubbleIcon.getUri(), 1); } return bubbleIcon.loadDrawable(context); } /* access modifiers changed from: 0000 */ public BitmapInfo getBadgeBitmap(Drawable drawable) { Bitmap createIconBitmap = createIconBitmap(drawable, 1.0f, getBadgeSize()); Canvas canvas = new Canvas(); ShadowGenerator shadowGenerator = new ShadowGenerator(getBadgeSize()); canvas.setBitmap(createIconBitmap); shadowGenerator.recreateIcon(Bitmap.createBitmap(createIconBitmap), canvas); return createIconBitmap(createIconBitmap); } /* access modifiers changed from: 0000 */ public BitmapInfo getBubbleBitmap(Drawable drawable, BitmapInfo bitmapInfo) { BitmapInfo createBadgedIconBitmap = createBadgedIconBitmap(drawable, null, true); badgeWithDrawable(createBadgedIconBitmap.icon, (Drawable) new BitmapDrawable(this.mContext.getResources(), bitmapInfo.icon)); return createBadgedIconBitmap; } }
[ "itz63c@statixos.com" ]
itz63c@statixos.com
a53b05baeea31d11bad64a9a2bce190e24dbddba
208ba847cec642cdf7b77cff26bdc4f30a97e795
/aj/af/src/main/java/org.wp.af/models/ReaderPostDiscoverData.java
d4c80a01777c1a84dc920e4d76ac920abf0c4083
[]
no_license
kageiit/perf-android-large
ec7c291de9cde2f813ed6573f706a8593be7ac88
2cbd6e74837a14ae87c1c4d1d62ac3c35df9e6f8
refs/heads/master
2021-01-12T14:00:19.468063
2016-09-27T13:10:42
2016-09-27T13:10:42
69,685,305
0
0
null
2016-09-30T16:59:49
2016-09-30T16:59:48
null
UTF-8
Java
false
false
6,195
java
package org.wp.af.models; import android.content.Context; import android.text.Html; import android.text.Spanned; import android.text.TextUtils; import org.json.JSONArray; import org.json.JSONObject; import org.wp.af.R; import org.wp.af.WordPress; import org.wp.af.util.JSONUtils; import org.wp.af.util.StringUtils; /** * additional data for "discover" posts in the reader - these are posts chosen by * Editorial which highlight other posts or sites - the reader shows an attribution * line for these posts, and when tapped they open the original post - the like * and comment counts come from the original post */ public class ReaderPostDiscoverData { public enum DiscoverType { EDITOR_PICK, SITE_PICK, OTHER } private String authorName; private String authorUrl; private String blogName; private String blogUrl; private String avatarUrl; private final String permaLink; private long blogId; private long postId; private int numLikes; private int numComments; private DiscoverType discoverType = DiscoverType.OTHER; /* * passed JSONObject is the "discover_metadata" section of a reader post */ public ReaderPostDiscoverData( JSONObject json) { permaLink = json.optString("permalink"); JSONObject jsonAttribution = json.optJSONObject("attribution"); if (jsonAttribution != null) { authorName = jsonAttribution.optString("author_name"); authorUrl = jsonAttribution.optString("author_url"); blogName = jsonAttribution.optString("blog_name"); blogUrl = jsonAttribution.optString("blog_url"); avatarUrl = jsonAttribution.optString("avatar_url"); } JSONObject jsonWpcomData = json.optJSONObject("featured_post_wpcom_data"); if (jsonWpcomData != null) { blogId = jsonWpcomData.optLong("blog_id"); postId = jsonWpcomData.optLong("post_id"); numLikes = jsonWpcomData.optInt("like_count"); numComments = jsonWpcomData.optInt("comment_count"); } // walk the post formats array until we find one we know we should handle differently // - image-pick, quote-pick, and standard-pick all display as editors picks // - site-pick displays as a site pick // - collection + feature can be ignored because those display the same as normal posts JSONArray jsonPostFormats = json.optJSONArray("discover_fp_post_formats"); if (jsonPostFormats != null) { for (int i = 0; i < jsonPostFormats.length(); i++) { String slug = JSONUtils.getString(jsonPostFormats.optJSONObject(i), "slug"); if (slug.equals("site-pick")) { discoverType = DiscoverType.SITE_PICK; break; } else if (slug.equals("standard-pick") || slug.equals("image-pick") || slug.equals("quote-pick")) { discoverType = DiscoverType.EDITOR_PICK; break; } } } } public long getBlogId() { return blogId; } public long getPostId() { return postId; } private String getAuthorName() { return StringUtils.notNullStr(authorName); } private String getAuthorUrl() { return StringUtils.notNullStr(authorUrl); } public String getBlogName() { return StringUtils.notNullStr(blogName); } public String getBlogUrl() { return StringUtils.notNullStr(blogUrl); } public String getAvatarUrl() { return StringUtils.notNullStr(avatarUrl); } public String getPermaLink() { return StringUtils.notNullStr(permaLink); } public boolean hasBlogUrl() { return !TextUtils.isEmpty(blogUrl); } public boolean hasBlogName() { return !TextUtils.isEmpty(blogName); } private boolean hasAuthorName() { return !TextUtils.isEmpty(authorName); } public boolean hasPermalink() { return !TextUtils.isEmpty(permaLink); } public boolean hasAvatarUrl() { return !TextUtils.isEmpty(avatarUrl); } public DiscoverType getDiscoverType() { return discoverType; } /* * returns the spanned html for the attribution line */ private transient Spanned attributionHtml; public Spanned getAttributionHtml() { if (attributionHtml == null) { String html; String author = "<strong>" + getAuthorName() + "</strong>"; String blog = "<strong>" + getBlogName() + "</strong>"; Context context = WordPress.getContext(); switch (getDiscoverType()) { case EDITOR_PICK: if (hasBlogName() && hasAuthorName()) { // "Originally posted by [AuthorName] on [BlogName]" html = String.format(context.getString(R.string.reader_discover_attribution_author_and_blog), author, blog); } else if (hasBlogName()) { // "Originally posted on [BlogName]" html = String.format(context.getString(R.string.reader_discover_attribution_blog), blog); } else if (hasAuthorName()) { // "Originally posted by [AuthorName]" html = String.format(context.getString(R.string.reader_discover_attribution_author), author); } else { return null; } break; case SITE_PICK: if (blogId != 0 && hasBlogName()) { // "Visit [BlogName]" - opens blog preview when tapped html = String.format(context.getString(R.string.reader_discover_visit_blog), blog); } else { return null; } break; default: return null; } attributionHtml = Html.fromHtml(html); } return attributionHtml; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
b853efe33515fbfd63578dda467d0cce99792701
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project57/src/main/java/org/gradle/test/performance57_5/Production57_433.java
1e3a4decfc6e82e731fb8f003c4fbef7d52c9001
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
305
java
package org.gradle.test.performance57_5; public class Production57_433 extends org.gradle.test.performance15_5.Production15_433 { private final String property; public Production57_433() { this.property = "foo"; } public String getProperty() { return property; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
f71b9f296d5eeb53fd168a6e4afeb7fb26f34b9a
d2e260a70df4a494227ab04ded1ba70959f1fc0a
/ok-http-jersey1-client/src/test/java/com/github/tomakehurst/okhttpjersey1/OkHttpJerseyClientTest.java
c70786303a038e96b1efdf6935323b89883f8648
[ "Apache-2.0" ]
permissive
tomakehurst/ok-http-jersey1-client
1db476370faa83738a01032668c3d9c9e9d56a5d
fbf636357a0130f0b28194f05258907415fa4f39
refs/heads/master
2016-09-06T08:11:47.299691
2013-11-28T17:43:18
2013-11-28T17:43:18
13,923,173
2
2
null
null
null
null
UTF-8
Java
false
false
8,084
java
package com.github.tomakehurst.okhttpjersey1; import com.github.tomakehurst.wiremock.client.MappingBuilder; import com.github.tomakehurst.wiremock.client.RequestPatternBuilder; import com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder; import com.github.tomakehurst.wiremock.http.HttpHeader; import com.github.tomakehurst.wiremock.http.RequestMethod; import com.github.tomakehurst.wiremock.junit.WireMockClassRule; import com.github.tomakehurst.wiremock.verification.LoggedRequest; import com.sun.jersey.api.client.Client; import com.sun.jersey.api.client.ClientResponse; import com.sun.jersey.api.client.WebResource; import org.junit.Before; import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import java.io.File; import java.net.URISyntaxException; import java.net.URL; import java.util.List; import static com.github.tomakehurst.okhttpjersey1.OkHttpJerseyClientBuilder.okHttpBackedJerseyClient; import static com.github.tomakehurst.wiremock.client.WireMock.*; import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.wireMockConfig; import static com.github.tomakehurst.wiremock.http.RequestMethod.*; import static javax.ws.rs.core.HttpHeaders.CONTENT_TYPE; import static org.hamcrest.Matchers.hasItems; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; public class OkHttpJerseyClientTest { @Rule public WireMockClassRule wm = new WireMockClassRule(wireMockConfig().httpsPort(8081) .keystorePath(fullPathToTestKeystore())); private Client client; @Before public void init() throws Exception { client = okHttpBackedJerseyClient() .sslTrustKeystore(getTestKeystoreResource(), "password".toCharArray()) .build(); } @Test public void supportsBasicGet() { stubGetWillReturn( aResponse() .withStatus(200) .withHeader(CONTENT_TYPE, "text/plain") .withBody("Hello world")); ClientResponse response = resource().get(ClientResponse.class); assertThat(response.getStatus(), is(200)); assertThat(response.getEntity(String.class), is("Hello world")); } @Test public void supportsSingleValuedResponseHeaders() { stubGetWillReturn(aResponse().withStatus(200).withHeader("X-Some-Header", "hello-header")); ClientResponse response = resource().get(ClientResponse.class); assertThat(response.getHeaders().getFirst("X-Some-Header"), is("hello-header")); } @Test public void supportsSingleValuedRequestHeaders() { stubGetWillReturn(aResponse().withStatus(200)); resource().header("X-Request-Header", "request-value").get(ClientResponse.class); verify(getRequestedFor(urlEqualTo("/something")).withHeader("X-Request-Header", equalTo("request-value"))); } @Ignore("There seems to be a bug in URLConnectionClientHandler resulting in incorrect behaviour in this case") @Test public void supportsMultiValuedRequestHeaders() { stubGetWillReturn(aResponse().withStatus(200)); resource().header("X-Multi-Request-Header", "request-value-1") .header("X-Multi-Request-Header", "request-value-2") .header("X-Multi-Request-Header", "request-value-3") .get(ClientResponse.class); List<LoggedRequest> requests = findAll(getRequestedFor(urlEqualTo("/something"))); HttpHeader header = requests.get(0).getHeaders().getHeader("X-Multi-Request-Header"); assertThat(header.values(), hasItems("request-value-1", "request-value-2", "request-value-3")); } @Test public void supportsHead() { testSupportFor(HEAD); } @Test public void supportsDelete() { testSupportFor(DELETE); } @Test public void supportsOptions() { testSupportFor(OPTIONS); } @Test public void supportsPost() { testSupportFor(POST, "Post body"); } @Test public void supportsPut() { testSupportFor(PUT, "Put body"); } @Test public void sendsContentLengthHeaderOnPost() { stubWillReturn(POST, aResponse().withStatus(200)); handleWithBody(POST, "TEST"); verify(postRequestedFor(urlEqualTo("/something")).withHeader("Content-Length", equalTo("4"))); } @Test public void sendsChunkedBodyOnPostWhenTransferEncodingHeaderPresentAndChunkSizeSet() { stubWillReturn(POST, aResponse().withStatus(200)); resource().header("Transfer-Encoding", "chunked").post(ClientResponse.class, "TEST"); verify(postRequestedFor(urlEqualTo("/something")).withHeader("Transfer-Encoding", equalTo("chunked"))); } @Test public void supportsHttps() { stubGetWillReturn(aResponse().withStatus(200)); ClientResponse response = client.resource("https://localhost:8081/something").get(ClientResponse.class); assertThat(response.getStatus(), is(200)); } private static String fullPathToTestKeystore() { try { return new File(getTestKeystoreResource().toURI()).getAbsolutePath(); } catch (URISyntaxException e) { throw new RuntimeException(e); } } private static URL getTestKeystoreResource() { return OkHttpJerseyClientTest.class.getResource("/test-keystore.jks"); } private void testSupportFor(RequestMethod method) { stubWillReturn(method, aResponse() .withStatus(200) .withHeader("X-Request-Header", "req-header-value")); ClientResponse response = handle(method); assertThat(response.getStatus(), is(200)); assertThat(response.getHeaders().getFirst("X-Request-Header"), is("req-header-value")); } private void testSupportFor(RequestMethod method, String body) { stubWillReturn(method, aResponse() .withStatus(200) .withHeader("X-Request-Header", "req-header-value")); ClientResponse response = handleWithBody(method, body); assertThat(response.getStatus(), is(200)); assertThat(response.getHeaders().getFirst("X-Request-Header"), is("req-header-value")); List<LoggedRequest> requests = findAll(new RequestPatternBuilder(ANY, urlEqualTo("/something"))); assertThat(requests.get(0).getBodyAsString(), is(body)); } private ClientResponse handle(RequestMethod method) { switch (method) { case GET: return resource().get(ClientResponse.class); case POST: return resource().post(ClientResponse.class); case PUT: return resource().put(ClientResponse.class); case DELETE: return resource().delete(ClientResponse.class); case HEAD: return resource().head(); case OPTIONS: return resource().options(ClientResponse.class); default: throw new IllegalArgumentException("Unable to execute " + method); } } private ClientResponse handleWithBody(RequestMethod method, String body) { switch (method) { case POST: return resource().post(ClientResponse.class, body); case PUT: return resource().put(ClientResponse.class, body); default: throw new IllegalArgumentException("Unable to execute " + method); } } private void stubGetWillReturn(ResponseDefinitionBuilder response) { stubWillReturn(GET, response); } private WebResource resource() { return client.resource("http://localhost:8080/something"); } private void stubWillReturn(RequestMethod method, ResponseDefinitionBuilder response) { stubFor(new MappingBuilder(method, urlEqualTo("/something")).willReturn(response)); } }
[ "t.m.akehurst@googlemail.com" ]
t.m.akehurst@googlemail.com
ef1d827dfb69b333936204af68ac5f8fa1263c6f
420e476fb21f4cc162f0ff642064fb8e93f646f0
/JavaWorks/src/com/training/sdet/day2/Car.java
5df4f842d34bfe5da7f94de50b1506e818074e74
[]
no_license
adithnaveen/sdet-dec2018
785fdcad04f28d7d8a73f9c101fca05b18c472c7
2878ea1f38cdd2ae853527bf6472aa88084ebc03
refs/heads/master
2020-04-10T00:43:48.648830
2018-12-07T21:17:50
2018-12-07T21:17:50
160,694,466
1
0
null
null
null
null
UTF-8
Java
false
false
623
java
package com.training.sdet.day2; public class Car extends Vehicle{ private int doors; private int capacity; public Car(int doors, int capacity, int speed) { super(speed); this.doors = doors; this.capacity = capacity; } public void doors() { System.out.println("My car has " + this.doors +" doors"); } public void fuelCapacity() { System.out.println("Car has " + this.capacity+" lts capacity"); } @Override public void move() { System.out.println("My Car is Moving @ Speed " + this.getSpeed()); } @Override public void brake() { System.out.println("Car applies break.. "); } }
[ "adith.naveen@gmail.com" ]
adith.naveen@gmail.com
937b519718b8a62c94087fa3feef355b9116f588
5f14a75cb6b80e5c663daa6f7a36001c9c9b778c
/src/bzg.java
85f97d1f3e3d7210fd89803e26802c9d957c1b57
[]
no_license
MaTriXy/com.ubercab
37b6f6d3844e6a63dc4c94f8b6ba6bb4eb0118fb
ccd296d27e0ecf5ccb46147e8ec8fb70d2024b2c
refs/heads/master
2021-01-22T11:16:39.511861
2016-03-19T20:58:25
2016-03-19T20:58:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,124
java
import java.util.HashMap; import java.util.Map; public final class bzg implements bzw { private static Map a = new HashMap(); private static Map b = new HashMap(); public bzg() { a.put(bzv.a, "Cancelar"); a.put(bzv.b, "American Express"); a.put(bzv.c, "Discover"); a.put(bzv.d, "JCB"); a.put(bzv.e, "MasterCard"); a.put(bzv.f, "Visa"); a.put(bzv.g, "Concluído"); a.put(bzv.h, "CVV"); a.put(bzv.i, "CEP"); a.put(bzv.j, "Vencimento"); a.put(bzv.k, "MM/AA"); a.put(bzv.l, "Posicionar cartão aqui.\nEle será digitalizado automaticamente."); a.put(bzv.m, "Teclado…"); a.put(bzv.n, "Número do Cartão"); a.put(bzv.o, "Dados do cartão"); a.put(bzv.p, "Este dispositivo não pode usar a câmera para ler números de cartão."); a.put(bzv.q, "A câmera do dispositivo não está disponível."); a.put(bzv.r, "O dispositivo sofreu um erro inesperado ao abrir a câmera."); } public final String a() { return "pt_BR"; } } /* Location: * Qualified Name: bzg * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
a44eab4c026cb761456aef3e15e178d95645eade
3a81339ee39494fbd0250df6abc6411f386907f9
/src/test/java/playground/AsyncClass.java
7b47dcdaa4e445c64212817bcd83ea12d59b3f17
[ "Apache-2.0" ]
permissive
zhaoyancong/actframework
cafba5687d78bbf78e4834b46168b1bd73e2a193
d910531793047a75e7067fcaacbf7caebe58132c
refs/heads/master
2021-01-13T05:01:11.170769
2017-02-07T07:40:46
2017-02-07T07:40:46
81,185,396
1
0
null
2017-02-07T08:34:16
2017-02-07T08:34:16
null
UTF-8
Java
false
false
484
java
package playground; import act.app.App; import act.util.Async; import java.util.Map; public class AsyncClass { @Async public void doIt(final String a, final Map<String, Object> b, int i) { App.instance().eventBus().trigger("playground.AsyncClass.doIt_async", a, b, i); } private void doIt_async(String a, Map<String, Object> b, int i) { if (b.containsKey(a)) { b.remove(a); } else { b.put(a, i); } } }
[ "greenlaw110@gmail.com" ]
greenlaw110@gmail.com
1877f55df373552cf3ea1ec1f6da3ea056db48f6
4e7c597e78f01fe1c14fc4cbb67dc4379a8c5939
/mambo-protocol/src/main/java/org/mambo/protocol/messages/StorageObjectRemoveMessage.java
4261d082550ca04ae9889a124bb0bab0b6dd9272
[]
no_license
Guiedo/Mambo
c24e4836f20a1028e61cb7987ad6371348aaf0fe
8fb946179b6b00798010bda8058430789644229d
refs/heads/master
2021-01-18T11:29:43.048990
2013-05-25T17:33:37
2013-05-25T17:33:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
995
java
// Generated on 05/08/2013 19:37:57 package org.mambo.protocol.messages; import java.util.*; import org.mambo.protocol.types.*; import org.mambo.protocol.enums.*; import org.mambo.protocol.*; import org.mambo.core.io.*; public class StorageObjectRemoveMessage extends NetworkMessage { public static final int MESSAGE_ID = 5648; @Override public int getNetworkMessageId() { return MESSAGE_ID; } public int objectUID; public StorageObjectRemoveMessage() { } public StorageObjectRemoveMessage(int objectUID) { this.objectUID = objectUID; } @Override public void serialize(Buffer buf) { buf.writeInt(objectUID); } @Override public void deserialize(Buffer buf) { objectUID = buf.readInt(); if (objectUID < 0) throw new RuntimeException("Forbidden value on objectUID = " + objectUID + ", it doesn't respect the following condition : objectUID < 0"); } }
[ "blackrushx@gmail.com" ]
blackrushx@gmail.com
88cdfa2d322ac94e141d435d6bc60403b3b47fb9
fecdc7fca1f357af2b8067ed9765f0f576e81aac
/app/src/main/java/zhijian/com/taobaobishe/bean/Category.java
354570a33526e98f6d56713d365d83c0d05bf2e0
[]
no_license
tiejiang/Taobao-trading-system
19df756ffaf28f4807a5c5eb1ab5900149e85960
01c432d4d3c0caace2da87987dfc373cd511af7e
refs/heads/master
2021-01-20T08:07:17.051439
2017-06-24T14:36:27
2017-06-24T14:36:27
90,100,159
2
0
null
null
null
null
UTF-8
Java
false
false
440
java
package zhijian.com.taobaobishe.bean; public class Category extends BaseBean { public Category() { } public Category(String name) { this.name = name; } public Category(long id ,String name) { this.id = id; this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } private String name; }
[ "315904145@qq.com" ]
315904145@qq.com
922a8d0190b02e023fbb2e266405f6a5542da6e0
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/Graylog2--graylog2-server/1a372952dc5faa06ee5e300f45555db169c6b1c1/before/AMQP.java
42f416efd671a2c4f8175ef91db4e8197a35003c
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
1,336
java
/** * Copyright 2011 Lennart Koopmann <lennart@socketfeed.com> * * This file is part of Graylog2. * * Graylog2 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. * * Graylog2 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 Graylog2. If not, see <http://www.gnu.org/licenses/>. * */ package org.graylog2.messagehandlers.amqp; import java.util.Properties; /** * AMQP.java: Jan 21, 2011 8:41:51 PM * * Utility class for AMQP. * * @author: Lennart Koopmann <lennart@socketfeed.com> */ public class AMQP { /** * Is AMQP subscribing enabled? Decision based on /etc/graylog2.conf * "use_amqp" parameter. * * @return boolean */ public static boolean isEnabled(Properties config) { if(config.getProperty("amqp_enabled") == null) { return false; } return config.getProperty("amqp_enabled").equals("true"); } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
7770ca598e55b4488e5e7c4dfb9276ca30769e46
32b72e1dc8b6ee1be2e80bb70a03a021c83db550
/ast_results/cybro_PalmCalc/actionbarsherlock/src/com/actionbarsherlock/app/SherlockListFragment.java
57ab80fd5d6ff6e8870e747c9e142c780cb19fcc
[]
no_license
cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning
d90c41a17e88fcd99d543124eeb6e93f9133cb4a
0564143d92f8024ff5fa6b659c2baebf827582b1
refs/heads/master
2020-07-13T13:53:40.297493
2019-01-11T11:51:18
2019-01-11T11:51:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,111
java
// isComment package com.actionbarsherlock.app; import android.app.Activity; import android.support.v4.app.ListFragment; import com.actionbarsherlock.internal.view.menu.MenuItemWrapper; import com.actionbarsherlock.internal.view.menu.MenuWrapper; import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuInflater; import com.actionbarsherlock.view.MenuItem; import static android.support.v4.app.Watson.OnCreateOptionsMenuListener; import static android.support.v4.app.Watson.OnOptionsItemSelectedListener; import static android.support.v4.app.Watson.OnPrepareOptionsMenuListener; public class isClassOrIsInterface extends ListFragment implements OnCreateOptionsMenuListener, OnPrepareOptionsMenuListener, OnOptionsItemSelectedListener { private SherlockFragmentActivity isVariable; public SherlockFragmentActivity isMethod() { return isNameExpr; } @Override public void isMethod(Activity isParameter) { if (!(isNameExpr instanceof SherlockFragmentActivity)) { throw new IllegalStateException(isMethod().isMethod() + "isStringConstant"); } isNameExpr = (SherlockFragmentActivity) isNameExpr; super.isMethod(isNameExpr); } @Override public void isMethod() { isNameExpr = null; super.isMethod(); } @Override public final void isMethod(android.view.Menu isParameter, android.view.MenuInflater isParameter) { isMethod(new MenuWrapper(isNameExpr), isNameExpr.isMethod()); } @Override public void isMethod(Menu isParameter, MenuInflater isParameter) { // isComment } @Override public final void isMethod(android.view.Menu isParameter) { isMethod(new MenuWrapper(isNameExpr)); } @Override public void isMethod(Menu isParameter) { // isComment } @Override public final boolean isMethod(android.view.MenuItem isParameter) { return isMethod(new MenuItemWrapper(isNameExpr)); } @Override public boolean isMethod(MenuItem isParameter) { // isComment return true; } }
[ "matheus@melsolucoes.net" ]
matheus@melsolucoes.net
6e8815f83181e61f1e45d3e40073e870dbd8af8f
54ce49f27a04fbdabe76ec7b43471134909932d3
/chapter_001/src/test/java/ru/job4j/array/ArrayCharTest.java
52b64f1089bd4046bf5919be0c074f56d67c6c40
[ "Apache-2.0" ]
permissive
IvanPJF/job4j
a3c8ce587fad7f42d58e6614455c48608d4df9f0
1451f98bbbe70ab1afdb5f8c625e810680620989
refs/heads/master
2022-09-19T16:32:18.492530
2020-03-01T17:42:54
2020-03-01T17:42:54
147,117,520
0
0
Apache-2.0
2022-09-08T01:00:16
2018-09-02T20:00:51
Java
UTF-8
Java
false
false
969
java
package ru.job4j.array; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /**Тест Проверка начала слова в определенной последовательности. *@author IvanPJF (teaching-light@yandex.ru) *@since 14.09.2018 *@version 0.1 */ public class ArrayCharTest { /** * Тест Совпадение префикса со словом. */ @Test public void whenStartWithPrefixThenTrue() { ArrayChar word = new ArrayChar("Hello"); boolean result = word.startWith("He"); assertThat(result, is(true)); } /** * Тест Отсутствует совпадение префикса со словом. */ @Test public void whenNotStartWithPrefixThenFalse() { ArrayChar word = new ArrayChar("Hello"); boolean result = word.startWith("Hi"); assertThat(result, is(false)); } }
[ "teaching-light@yandex.ru" ]
teaching-light@yandex.ru
928c6c0f4f2105cf7668ed37608b08189ee3c40d
bd04f017114ef09a71bdf0efc0a5a83d0c07db83
/spring-cloud-commons/src/test/java/org/springframework/cloud/client/serviceregistry/endpoint/ServiceRegistryEndpointNoRegistrationTests.java
bcdff79bd99dcca9a08e217e68d064501e8fdfbe
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
qqqqqcjq/spring-cloud-commons-2.2.6.RELEASE
0090ffd604707ec94730bb79129653e01dd99a28
d56eb0b72736a0bdb9dc9b58631269698b7e3429
refs/heads/master
2023-03-20T21:20:20.757354
2021-03-22T09:30:15
2021-03-22T09:30:15
350,282,055
0
0
null
null
null
null
UTF-8
Java
false
false
3,244
java
/* * Copyright 2012-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.cloud.client.serviceregistry.endpoint; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.actuate.autoconfigure.endpoint.EndpointAutoConfiguration; import org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfiguration; import org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration; import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.cloud.client.serviceregistry.ServiceRegistry; import org.springframework.cloud.client.serviceregistry.endpoint.ServiceRegistryEndpointTests.TestServiceRegistry; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.web.servlet.MockMvc; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; /** * @author Spencer Gibb */ @RunWith(SpringRunner.class) @SpringBootTest( classes = ServiceRegistryEndpointNoRegistrationTests.TestConfiguration.class) @AutoConfigureMockMvc public class ServiceRegistryEndpointNoRegistrationTests { @Autowired private MockMvc mvc; @Test public void testGet() throws Exception { this.mvc.perform(get("/service-registry/instance-status")) .andExpect(status().isNotFound()); } @Test public void testPost() throws Exception { this.mvc.perform(post("/service-registry/instance-status").content("newstatus")) .andExpect(status().isNotFound()); } @Import({ JacksonAutoConfiguration.class, HttpMessageConvertersAutoConfiguration.class, EndpointAutoConfiguration.class, WebMvcAutoConfiguration.class // ManagementServerPropertiesAutoConfiguration.class }) @Configuration(proxyBeanMethods = false) public static class TestConfiguration { @Bean ServiceRegistryEndpoint serviceRegistryEndpoint() { return new ServiceRegistryEndpoint(serviceRegistry()); } @Bean ServiceRegistry serviceRegistry() { return new TestServiceRegistry(); } } }
[ "caverspark@163.com" ]
caverspark@163.com
b556c4c43a8a875491903772e2e408895f367601
b0669e664b7f8802930b05c2b0a6667ca1e925f0
/super-devops-iam/super-devops-iam-security/src/main/java/com/wl4g/devops/iam/sns/support/OAuth2GrantType.java
7284465421557c0073a64544e40527736196110e
[ "Apache-2.0" ]
permissive
zhangzhizhong520/super-devops
8626d3d5fc091b0e91223a557e782c85e5c94a1d
31379ba623d8c81b1543d99534365b1c5e3daf75
refs/heads/master
2020-06-29T18:23:21.755752
2019-08-02T10:40:36
2019-08-02T10:40:36
200,590,748
1
0
Apache-2.0
2019-08-05T05:52:54
2019-08-05T05:52:54
null
UTF-8
Java
false
false
2,487
java
/* * Copyright 2017 ~ 2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.wl4g.devops.iam.sns.support; /** * OAuth2 supports two types of authorization flow, typically referred to as * "Client-side" and "Server-side". Use of implicit grant is discouraged unless * there is no other option available. * * @author Roy Clarkson */ public enum OAuth2GrantType { /** * Authorization code mode (i.e. first login to get code, then token) */ AUTHORIZATION_CODE(true), /** * Simplified mode (passing token in redirect_uri Hash; Auth client running * in browsers, such as JS, Flash) */ IMPLICIT_GRANT, /** * Password mode (Pass user name, password, get token directly) */ PASSWORD, /** * Client mode (no user, the user registers with the client, and the client * obtains resources from the server in its own name).<br/> * <br/> * Note: WeChat public platform, the parameter * <font color=red>grant_type=client_credential</font> in get access_token * of the basic API (instead of <font color=red>client_credentials)</font>. * See:<a href= * "https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140183">https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140183</a> */ CLIENT_CREDENTIALS, /** * Refresh access_token */ REFRESH_TOKEN; private boolean isDefault = false; private OAuth2GrantType() { } private OAuth2GrantType(boolean isDefault) { this.isDefault = isDefault; } public boolean isDefault() { return isDefault; } public static OAuth2GrantType getDefault() { OAuth2GrantType defaultGrantType = null; for (OAuth2GrantType gt : values()) { if (gt.isDefault()) { if (defaultGrantType != null) { throw new IllegalStateException("There can only be one default value"); } defaultGrantType = gt; } } return defaultGrantType; } }
[ "983708408@qq.com" ]
983708408@qq.com
126df37dd446c89d3dea20087037c4b695c2a241
c8de7488ed6b5181eb49954002eac5f4f2311eaa
/Sources/MiniGame/GoldHunter/src/main/java/pl/north93/northplatform/minigame/goldhunter/effect/DivineShieldEffect.java
14c97555312314e33222f490f19c9519588a165e
[]
no_license
northpl93/NorthPlatform
9a72b4c071444b6de408a5e4b2b2bdd54092a448
94808b22cf905c792df850dd0e179bbe9152257c
refs/heads/master
2023-07-10T06:22:34.018751
2021-08-06T19:17:42
2021-08-06T19:17:42
151,781,268
39
1
null
null
null
null
UTF-8
Java
false
false
236
java
package pl.north93.northplatform.minigame.goldhunter.effect; import pl.north93.northplatform.minigame.goldhunter.player.Effect; public class DivineShieldEffect extends Effect { { setBarColor(EffectBarColor.GREEN); } }
[ "northpl93@gmail.com" ]
northpl93@gmail.com
e1972f71cff8e3638f588778e692a1cfec2eff51
6baf1fe00541560788e78de5244ae17a7a2b375a
/hollywood/com.oculus.socialplatform-base/sources/com/facebook/msys/mcd/PendingUploadCategory.java
669bee944f7067911c720aa1058431ecf0432808
[]
no_license
phwd/quest-tracker
286e605644fc05f00f4904e51f73d77444a78003
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
refs/heads/main
2023-03-29T20:33:10.959529
2021-04-10T22:14:11
2021-04-10T22:14:11
357,185,040
4
2
null
2021-04-12T12:28:09
2021-04-12T12:28:08
null
UTF-8
Java
false
false
196
java
package com.facebook.msys.mcd; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.SOURCE) public @interface PendingUploadCategory { }
[ "cyuubiapps@gmail.com" ]
cyuubiapps@gmail.com
0e5009d58e1796d0d4acd887b4fcb5af8b26abb7
a00326c0e2fc8944112589cd2ad638b278f058b9
/src/main/java/000/141/950/CWE643_Xpath_Injection__Environment_52a.java
73486707f85444e94669c8eb89300094946eb095
[]
no_license
Lanhbao/Static-Testing-for-Juliet-Test-Suite
6fd3f62713be7a084260eafa9ab221b1b9833be6
b095b11c7cb6d4a5bb2b76181e35d6ee00e96e68
refs/heads/master
2020-08-24T13:34:04.004149
2019-10-25T09:26:00
2019-10-25T09:26:00
216,822,684
0
1
null
2019-11-08T09:51:54
2019-10-22T13:37:13
Java
UTF-8
Java
false
false
2,193
java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE643_Xpath_Injection__Environment_52a.java Label Definition File: CWE643_Xpath_Injection.label.xml Template File: sources-sinks-52a.tmpl.java */ /* * @description * CWE: 643 Xpath Injection * BadSource: Environment Read data from an environment variable * GoodSource: A hardcoded string * Sinks: * GoodSink: validate input through StringEscapeUtils * BadSink : user input is used without validate * Flow Variant: 52 Data flow: data passed as an argument from one method to another to another in three different classes in the same package * * */ public class CWE643_Xpath_Injection__Environment_52a extends AbstractTestCase { public void bad() throws Throwable { String data; /* get environment variable ADD */ /* POTENTIAL FLAW: Read data from an environment variable */ data = System.getenv("ADD"); (new CWE643_Xpath_Injection__Environment_52b()).badSink(data ); } public void good() throws Throwable { goodG2B(); goodB2G(); } /* goodG2B() - use goodsource and badsink */ private void goodG2B() throws Throwable { String data; /* FIX: Use a hardcoded string */ data = "foo"; (new CWE643_Xpath_Injection__Environment_52b()).goodG2BSink(data ); } /* goodB2G() - use badsource and goodsink */ private void goodB2G() throws Throwable { String data; /* get environment variable ADD */ /* POTENTIAL FLAW: Read data from an environment variable */ data = System.getenv("ADD"); (new CWE643_Xpath_Injection__Environment_52b()).goodB2GSink(data ); } /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException { mainFromParent(args); } }
[ "anhtluet12@gmail.com" ]
anhtluet12@gmail.com
1644d616329a6ac87c17f553cbd7c5c3b0662861
73308ecf567af9e5f4ef8d5ff10f5e9a71e81709
/tt_prjoikesb7euqf/src/main/java/com/example/tt_prjoikesb7euqf/TtPrjoikesb7euqfApplication.java
570636e4d70da9e2f1ce08de4cdeac92a6e24b5f
[]
no_license
yukihane/stackoverflow-qa
bfaf371e3c61919492e2084ed4c65f33323d7231
ba5e6a0d51f5ecfa80bb149456adea49de1bf6fb
refs/heads/main
2023-08-03T06:54:32.086724
2023-07-26T20:02:07
2023-07-26T20:02:07
194,699,870
3
3
null
2023-03-02T23:37:45
2019-07-01T15:34:08
Java
UTF-8
Java
false
false
342
java
package com.example.tt_prjoikesb7euqf; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class TtPrjoikesb7euqfApplication { public static void main(String[] args) { SpringApplication.run(TtPrjoikesb7euqfApplication.class, args); } }
[ "yukihane.feather@gmail.com" ]
yukihane.feather@gmail.com
cc15a4d471e2801e972e254a226f863aafa30dc6
f22d380b3a43f7d6116077699deda4a23487c4c1
/resource/de.db.osb.osb-parent/client/src/main/java/db/training/osb/dao/PhaseDaoImpl.java
7761ce143daedcce4aebb71d4c728e800a537d18
[]
no_license
HorstDerPfer/mygitrepo
93f170a3de3ecc28592b24eeda2b1a2e65e1bcda
92af0a8d9818239dd7ede2059bb1643aa2dab8cb
refs/heads/master
2020-05-29T17:34:36.256004
2011-04-14T08:30:35
2011-04-14T08:30:35
1,584,395
2
0
null
null
null
null
UTF-8
Java
false
false
360
java
package db.training.osb.dao; import java.io.Serializable; import org.hibernate.SessionFactory; import db.training.easy.common.BasicDaoImp; import db.training.osb.model.babett.Phase; public class PhaseDaoImpl extends BasicDaoImp<Phase, Serializable> implements PhaseDao { public PhaseDaoImpl(SessionFactory instance) { super(Phase.class, instance); } }
[ "felix.michels@accel-gmbh.de" ]
felix.michels@accel-gmbh.de
36c0e7d1946ebd4853f47a63ebd6da0b385fec2f
8d1c7fba7cd15f8a1e33fd27d11eefd1c67d579f
/src/main/java/com/google/devtools/build/lib/io/ProcessPackageDirectoryException.java
4cc6ea5df1bd26049d1aa69f08801a91a3c7c266
[ "Apache-2.0" ]
permissive
bazelbuild/bazel
5896162455f032efc899b8de60aa39b9d2cad4a6
171aae3f9c57b41089e25ec61fc84c35baa3079d
refs/heads/master
2023-08-22T22:52:48.714735
2023-08-22T18:01:53
2023-08-22T18:01:53
20,773,773
20,294
4,383
Apache-2.0
2023-09-14T18:38:44
2014-06-12T16:00:38
Java
UTF-8
Java
false
false
2,161
java
// Copyright 2021 The Bazel Authors. 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.google.devtools.build.lib.io; import com.google.devtools.build.lib.server.FailureDetails; import com.google.devtools.build.lib.skyframe.DetailedException; import com.google.devtools.build.lib.util.DetailedExitCode; import com.google.devtools.build.lib.vfs.RootedPath; /** * Exception indicating that {@link com.google.devtools.build.lib.skyframe.ProcessPackageDirectory} * failed due to an {@link InconsistentFilesystemException}. Wraps {@link * InconsistentFilesystemException} so that we have a {@link DetailedException} for top-level * reporting. */ public final class ProcessPackageDirectoryException extends Exception implements DetailedException { private final DetailedExitCode detailedExitCode; public ProcessPackageDirectoryException(RootedPath directory, InconsistentFilesystemException e) { super( "Directory '" + directory.asPath().getPathString() + "' could not be processed: " + e.getMessage(), e); this.detailedExitCode = DetailedExitCode.of( FailureDetails.FailureDetail.newBuilder() .setMessage(getMessage()) .setPackageLoading( FailureDetails.PackageLoading.newBuilder() .setCode( FailureDetails.PackageLoading.Code .TRANSIENT_INCONSISTENT_FILESYSTEM_ERROR)) .build()); } @Override public DetailedExitCode getDetailedExitCode() { return detailedExitCode; } }
[ "copybara-worker@google.com" ]
copybara-worker@google.com
88ee3fc89e330428d88de0f0bb9e22337859123b
5c1851278cc7c2cf232d9970c855e948b1a695db
/src/main/java/com/panev/heroes/service/factories/HeroesFactory.java
5b747af3d586d3b17e8da3d153329ff3c27fd9e7
[]
no_license
hristopanev/Heroes
ea49e5892603ceaa179ba358a197d290ccf8034b
78c8aed9e85a160d7c32f0f3f8efe3b86f1eb3db
refs/heads/master
2020-09-09T11:14:45.046741
2019-12-04T20:39:56
2019-12-04T20:39:56
221,432,152
0
0
null
null
null
null
UTF-8
Java
false
false
212
java
package com.panev.heroes.service.factories; import com.panev.heroes.data.models.Gender; import com.panev.heroes.data.models.Hero; public interface HeroesFactory { Hero create(String name, Gender gender); }
[ "hristopanef@gmail.com" ]
hristopanef@gmail.com
9ca48366b5bce8edde4a47aa62a0947f1f32c005
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/33/33_b1fa267bfaa4ad64a3e12c937a10836f39d97a4c/Property/33_b1fa267bfaa4ad64a3e12c937a10836f39d97a4c_Property_t.java
7a1579a89b8099212837784ff8d52517b20763df
[]
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
963
java
package de.hackerspacebremen.data.entities; import com.googlecode.objectify.annotation.Cache; import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.annotation.Index; import de.hackerspacebremen.data.annotations.Entity; import de.hackerspacebremen.data.annotations.FormatPart; @Entity(name="Property") @com.googlecode.objectify.annotation.Entity @Cache public final class Property implements BasicEntity{ @Id @FormatPart(key="P1") private Long id; @Index @FormatPart(key="P2") private String key; @FormatPart(key="P3") private String value; @Override public Long getId() { return id; } @Override public void setId(final Long id) { this.id = id; } public String getKey() { return key; } public void setKey(String key) { this.key = key; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
c088705a020a0ccde029fd7af7934b5a4316cfa9
0e457dc6cf7c2c62ca8e38b931436b56b9598d7c
/src/test/java/de/plushnikov/intellij/plugin/action/LombokLightActionTestCase.java
9260ac672dbdf53d0252ef763e8f61a791d09c22
[ "BSD-3-Clause" ]
permissive
lessonz/lombok-intellij-plugin
6a50c427f3382192712d76fbe0f69751467828cd
77e0ceb2963b6a8f1ec3a48021ce794a6868ee4b
refs/heads/master
2021-01-24T09:51:19.704532
2016-03-26T20:30:59
2016-03-26T20:30:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,297
java
package de.plushnikov.intellij.plugin.action; import com.intellij.ide.DataManager; import com.intellij.openapi.actionSystem.ActionManager; import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.DataContext; import com.intellij.openapi.fileEditor.FileDocumentManager; import com.intellij.openapi.util.AsyncResult; import de.plushnikov.intellij.plugin.LombokLightCodeInsightTestCase; public abstract class LombokLightActionTestCase extends LombokLightCodeInsightTestCase { protected void doTest() throws Exception { myFixture.configureByFile(getBasePath() + "/before" + getTestName(false) + ".java"); performActionTest(); checkResultByFile(getBasePath() + "/after" + getTestName(false) + ".java"); } protected void performActionTest() { AnAction anAction = getAction(); AsyncResult<DataContext> contextResult = DataManager.getInstance().getDataContextFromFocus(); AnActionEvent anActionEvent = new AnActionEvent(null, contextResult.getResult(), "", anAction.getTemplatePresentation(), ActionManager.getInstance(), 0); anAction.actionPerformed(anActionEvent); FileDocumentManager.getInstance().saveAllDocuments(); } protected abstract AnAction getAction(); }
[ "michail@plushnikov.de" ]
michail@plushnikov.de
4144762aa15d149cc2f589054ab20d61d8a68095
258de8e8d556901959831bbdc3878af2d8933997
/utopia-service/utopia-crm/utopia-crm-impl/src/main/java/com/voxlearning/utopia/service/crm/impl/loader/crm/CrmProductFeedbackRecordLoaderImpl.java
c203723718e893d6fb57eb17394c69f48b6f45c3
[]
no_license
Explorer1092/vox
d40168b44ccd523748647742ec376fdc2b22160f
701160b0417e5a3f1b942269b0e7e2fd768f4b8e
refs/heads/master
2020-05-14T20:13:02.531549
2019-04-17T06:54:06
2019-04-17T06:54:06
181,923,482
0
4
null
2019-04-17T15:53:25
2019-04-17T15:53:25
null
UTF-8
Java
false
false
579
java
package com.voxlearning.utopia.service.crm.impl.loader.crm; import com.alibaba.dubbo.config.annotation.Service; import com.voxlearning.alps.annotation.remote.ExposeService; import com.voxlearning.utopia.service.crm.api.loader.crm.CrmProductFeedbackRecordLoader; import javax.inject.Named; /** * Created by yaguang.wang * on 2017/3/3. */ @Named @Service(interfaceClass = CrmProductFeedbackRecordLoader.class) @ExposeService(interfaceClass = CrmProductFeedbackRecordLoader.class) public class CrmProductFeedbackRecordLoaderImpl implements CrmProductFeedbackRecordLoader { }
[ "wangahai@300.cn" ]
wangahai@300.cn
55818cb40c2031a59c1f5f415c7b04cb93b65139
6d1e7a32d510e7c7d6335b0e541318fd3dcd2829
/trunk/Dorian/src/fr/dorian/model/Mail.java
fe299d5a9fafa2b7a8d42d990318781508eaf24f
[]
no_license
BGCX262/zut-svn-to-git
40175d73cfd6dda94ba0e26941b4ce022b1278a5
720db40f50167314c6e727f1d7dfdd6b38d5aef3
refs/heads/master
2016-09-08T00:37:50.399139
2015-08-23T06:49:04
2015-08-23T06:49:04
41,251,338
0
0
null
null
null
null
UTF-8
Java
false
false
2,706
java
package fr.dorian.model; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.Table; import org.apache.commons.lang.builder.ToStringBuilder; import fr.dorian.model.enums.TemplateTypeEnum; import fr.dorian.model.superclasses.BaseEntity; @Entity @Table(name = "mail") @NamedQueries({ @NamedQuery(name = "Mail.findAll", query = "SELECT m FROM Mail m"), @NamedQuery(name = "Mail.findById", query = "SELECT m FROM Mail m WHERE m.id = :id"), @NamedQuery(name = "Mail.findByType", query = "SELECT m FROM Mail m WHERE m.templateType = :type") }) public class Mail extends BaseEntity implements Serializable { private static final long serialVersionUID = -6660032042334640090L; // PROPERTIES /////////////////////////////////////////////////////////////////////////////////////////////// @Column(name = "destination", nullable = false) private String destination; @Column(name = "sender", nullable = true) private String sender; @Enumerated(EnumType.STRING) @Column(name = "template_type", nullable = false) private TemplateTypeEnum templateType; @Column(name = "object", nullable = true) private String object; @Column(name = "body", nullable = true) private String body; // CONSTRUCTORS /////////////////////////////////////////////////////////////////////////////////////////////// public Mail() { super(); } // ACCESSORS /////////////////////////////////////////////////////////////////////////////////////////////// public String getDestination() {return destination;} public void setDestination(String destination) {this.destination = destination;} public String getSender() {return sender;} public void setSender(String sender) {this.sender = sender;} public TemplateTypeEnum getTemplateType() {return templateType;} public void setTemplateType(TemplateTypeEnum templateType) {this.templateType = templateType;} public String getBody() {return body;} public void setBody(String body) {this.body = body;} public String getObject() {return object;} public void setObject(String object) {this.object = object;} // HELPER /////////////////////////////////////////////////////////////////////////////////////////////// @Override public String toString() { return new ToStringBuilder(this) .append("id", this.id) .append("from", this.sender) .append("to", this.destination) .append("type", this.templateType) .toString(); } }
[ "you@example.com" ]
you@example.com
c389a787a584f86222945610d2f8c8e7bb3449c5
4cfda4f1b4d7703e1b460359012082c158103476
/miliconvert/xsmt/branches/xsmt-1.0.0/org.miliconvert.xsmt.functions/src/org/miliconvert/xsmt/functions/math/Soustraction.java
03ce26d02bb9b57494c5169573ca3b1d5d6883ce
[]
no_license
opensourcejavadeveloper/military_xml_project_miliconvert
e62dee54499fdb8abaa76a9d44ed97ace19dc887
bb0276970c243ec3acc07fd4b255673d6d7dd080
refs/heads/master
2022-01-10T18:11:39.021413
2018-08-20T12:45:02
2018-08-20T12:45:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,711
java
/* ***** BEGIN LICENSE BLOCK ***** * Version: GPL 2.0 * * The contents of this file are subject to the GNU General Public * License Version 2 or later (the "GPL"). * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Initial Developer of the Original Code is * BT Global Services / Etat français Ministre de la Défense * * ***** END LICENSE BLOCK ***** */ package org.miliconvert.xsmt.functions.math; import org.miliconvert.xsmt.tmodel.AbstractFunctionImpl; import org.miliconvert.xsmt.tmodel.TModelException; import org.miliconvert.xsmt.tmodel.Variable; public class Soustraction extends AbstractFunctionImpl { public Soustraction() { super(); variables.add(new Variable("a")); //$NON-NLS-1$ variables.add(new Variable("b")); //$NON-NLS-1$ } public String getName() { return Messages.Subtraction_label_name; } /** * Subtract a and b * * @param a * @param b * @return the subtraction of a and b */ private Integer sub(Integer a, Integer b) { return a - b; } /** * Subtract a and b * * @param a * @param b * @return the subtraction of a and b * @throws TModelException * when one of the parameters is null */ public Integer execute(Integer a, Integer b) throws TModelException { if (a == null || b == null) { throw new TModelException( "One parameter of the subtraction function is null: " //$NON-NLS-1$ + ": a=" + a + ", " + "b=" + b); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } else return sub(a, b); } }
[ "you@example.com" ]
you@example.com
de215ce60a392f542d2bcd99c28acfe28384667b
249d2ec159a37488ecdf22b3f7ac0d7c5426c651
/gchbpm - 副本/src/main/java/com/buss/user/entity/TVipLevelEntity.java
83e30eb7bb9f7b1240fc9174189d82eef6eec75b
[]
no_license
chenxh23/sell
a3d38390bd68074fa7d5854a0a9033ba1005b150
a3e91ad9bacb189625c8427db54f579bd005463e
refs/heads/master
2022-11-09T22:13:17.182490
2018-01-19T09:05:46
2018-01-19T09:05:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,911
java
package com.buss.user.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Where; import org.jeecgframework.poi.excel.annotation.Excel; /** * @Title: Entity * @Description: 顾客VIP等级 * @author onlineGenerator * @date 2016-03-29 14:23:15 * @version V1.0 * */ @Entity @Table(name = "t_vip_level", schema = "") @Where(clause = " status = 'A' ") @SuppressWarnings("serial") public class TVipLevelEntity implements java.io.Serializable { /**主键*/ private java.lang.String id; /**创建人名称*/ private java.lang.String createName; /**创建人登录名称*/ private java.lang.String createBy; /**创建日期*/ private java.util.Date createDate; /**更新人名称*/ private java.lang.String updateName; /**更新人登录名称*/ private java.lang.String updateBy; /**更新日期*/ private java.util.Date updateDate; /**状态*/ private java.lang.String status; /**VIP编码*/ @Excel(name="VIP编码") private java.lang.String vipCode; /**VIP名称*/ @Excel(name="VIP名称") private java.lang.String vipName; /**所属省*/ private java.lang.String provinceId; /**所属市*/ private java.lang.String cityId; /**所属零售商*/ private java.lang.String retailerId; /**折扣*/ @Excel(name="折扣") private java.math.BigDecimal discount; /** *方法: 取得java.lang.String *@return: java.lang.String 主键 */ @Id @GeneratedValue(generator = "paymentableGenerator") @GenericGenerator(name = "paymentableGenerator", strategy = "uuid") @Column(name ="ID",nullable=false,length=36) public java.lang.String getId(){ return this.id; } /** *方法: 设置java.lang.String *@param: java.lang.String 主键 */ public void setId(java.lang.String id){ this.id = id; } /** *方法: 取得java.lang.String *@return: java.lang.String 创建人名称 */ @Column(name ="CREATE_NAME",nullable=true,length=50) public java.lang.String getCreateName(){ return this.createName; } /** *方法: 设置java.lang.String *@param: java.lang.String 创建人名称 */ public void setCreateName(java.lang.String createName){ this.createName = createName; } /** *方法: 取得java.lang.String *@return: java.lang.String 创建人登录名称 */ @Column(name ="CREATE_BY",nullable=true,length=50) public java.lang.String getCreateBy(){ return this.createBy; } /** *方法: 设置java.lang.String *@param: java.lang.String 创建人登录名称 */ public void setCreateBy(java.lang.String createBy){ this.createBy = createBy; } /** *方法: 取得java.util.Date *@return: java.util.Date 创建日期 */ @Column(name ="CREATE_DATE",nullable=true,length=20) public java.util.Date getCreateDate(){ return this.createDate; } /** *方法: 设置java.util.Date *@param: java.util.Date 创建日期 */ public void setCreateDate(java.util.Date createDate){ this.createDate = createDate; } /** *方法: 取得java.lang.String *@return: java.lang.String 更新人名称 */ @Column(name ="UPDATE_NAME",nullable=true,length=50) public java.lang.String getUpdateName(){ return this.updateName; } /** *方法: 设置java.lang.String *@param: java.lang.String 更新人名称 */ public void setUpdateName(java.lang.String updateName){ this.updateName = updateName; } /** *方法: 取得java.lang.String *@return: java.lang.String 更新人登录名称 */ @Column(name ="UPDATE_BY",nullable=true,length=50) public java.lang.String getUpdateBy(){ return this.updateBy; } /** *方法: 设置java.lang.String *@param: java.lang.String 更新人登录名称 */ public void setUpdateBy(java.lang.String updateBy){ this.updateBy = updateBy; } /** *方法: 取得java.util.Date *@return: java.util.Date 更新日期 */ @Column(name ="UPDATE_DATE",nullable=true,length=20) public java.util.Date getUpdateDate(){ return this.updateDate; } /** *方法: 设置java.util.Date *@param: java.util.Date 更新日期 */ public void setUpdateDate(java.util.Date updateDate){ this.updateDate = updateDate; } /** *方法: 取得java.lang.String *@return: java.lang.String 状态 */ @Column(name ="STATUS",nullable=true,length=1) public java.lang.String getStatus(){ return this.status; } /** *方法: 设置java.lang.String *@param: java.lang.String 状态 */ public void setStatus(java.lang.String status){ this.status = status; } /** *方法: 取得java.lang.String *@return: java.lang.String VIP编码 */ @Column(name ="VIP_CODE",nullable=true,length=32) public java.lang.String getVipCode(){ return this.vipCode; } /** *方法: 设置java.lang.String *@param: java.lang.String VIP编码 */ public void setVipCode(java.lang.String vipCode){ this.vipCode = vipCode; } /** *方法: 取得java.lang.String *@return: java.lang.String VIP名称 */ @Column(name ="VIP_NAME",nullable=true,length=32) public java.lang.String getVipName(){ return this.vipName; } /** *方法: 设置java.lang.String *@param: java.lang.String VIP名称 */ public void setVipName(java.lang.String vipName){ this.vipName = vipName; } /** *方法: 取得java.lang.String *@return: java.lang.String 所属省 */ @Column(name ="PROVINCE_ID",nullable=true,length=36) public java.lang.String getProvinceId(){ return this.provinceId; } /** *方法: 设置java.lang.String *@param: java.lang.String 所属省 */ public void setProvinceId(java.lang.String provinceId){ this.provinceId = provinceId; } /** *方法: 取得java.lang.String *@return: java.lang.String 所属市 */ @Column(name ="CITY_ID",nullable=true,length=36) public java.lang.String getCityId(){ return this.cityId; } /** *方法: 设置java.lang.String *@param: java.lang.String 所属市 */ public void setCityId(java.lang.String cityId){ this.cityId = cityId; } /** *方法: 取得java.lang.String *@return: java.lang.String 所属零售商 */ @Column(name ="RETAILER_ID",nullable=true,length=36) public java.lang.String getRetailerId(){ return this.retailerId; } /** *方法: 设置java.lang.String *@param: java.lang.String 所属零售商 */ public void setRetailerId(java.lang.String retailerId){ this.retailerId = retailerId; } /** *方法: 取得java.math.BigDecimal *@return: java.math.BigDecimal 折扣 */ @Column(name ="DISCOUNT",nullable=true,scale=2,length=5) public java.math.BigDecimal getDiscount(){ return this.discount; } /** *方法: 设置java.math.BigDecimal *@param: java.math.BigDecimal 折扣 */ public void setDiscount(java.math.BigDecimal discount){ this.discount = discount; } }
[ "cxh231196@163.com" ]
cxh231196@163.com
c4b2c1dfa8b282665b4c33fb12d1a501fb978a1a
e21ec0dd8153cb67d4832c5a938f48c35d4ab3ae
/chrome/android/java/src/org/chromium/chrome/browser/widget/ContextMenuDialog.java
d67b0aa335baf3ba529fde0c32b662f91f5869e5
[ "BSD-3-Clause" ]
permissive
xiaowei0828/chromium
e65c8c2fbf2060c46334fc33f98a0ad98706f97c
5167a68813ef5edb1445e205e5489059285e3885
refs/heads/master
2023-02-21T13:03:51.224567
2017-06-27T23:19:35
2017-06-27T23:19:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,908
java
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.widget; import android.app.Activity; import android.graphics.Color; import android.graphics.Rect; import android.graphics.drawable.ColorDrawable; import android.support.v4.view.animation.LinearOutSlowInInterpolator; import android.view.MotionEvent; import android.view.View; import android.view.View.OnLayoutChangeListener; import android.view.ViewGroup; import android.view.ViewGroup.LayoutParams; import android.view.Window; import android.view.animation.Animation; import android.view.animation.Animation.AnimationListener; import android.view.animation.ScaleAnimation; import org.chromium.chrome.browser.contextmenu.TabularContextMenuViewPager; import org.chromium.content.browser.RenderCoordinates; import javax.annotation.Nullable; /** * ContextMenuDialog is a subclass of AlwaysDismissedDialog that ensures that the proper scale * animation is played upon calling {@link #show()} and {@link #dismiss()}. */ public class ContextMenuDialog extends AlwaysDismissedDialog { private static final long ENTER_ANIMATION_DURATION_MS = 250; // Exit animation duration should be set to 60% of the enter animation duration. private static final long EXIT_ANIMATION_DURATION_MS = 150; private final Activity mActivity; private final View mContentView; private final float mTouchPointXPx; private final float mTouchPointYPx; private final RenderCoordinates mRenderCoordinates; private float mContextMenuSourceXPx; private float mContextMenuSourceYPx; private int mContextMenuFirstLocationYPx; /** * Creates an instance of the ContextMenuDialog. * @param ownerActivity The activity in which the dialog should run * @param theme A style resource describing the theme to use for the window, or {@code 0} to use * the default dialog theme * @param touchPointXPx The x-coordinate of the touch that triggered the context menu. * @param touchPointYPx The y-coordinate of the touch that triggered the context menu. * @param contentView The The {@link TabularContextMenuViewPager} to display on the dialog. * @param renderCoordinates The render coordinates to get the y offset of the window. This could * be null if ContentViewCore is not available. */ public ContextMenuDialog(Activity ownerActivity, int theme, float touchPointXPx, float touchPointYPx, View contentView, @Nullable RenderCoordinates renderCoordinates) { super(ownerActivity, theme); mActivity = ownerActivity; mTouchPointXPx = touchPointXPx; mTouchPointYPx = touchPointYPx; mContentView = contentView; mRenderCoordinates = renderCoordinates; } @Override public void show() { Window dialogWindow = getWindow(); dialogWindow.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); dialogWindow.setLayout(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); mContentView.setVisibility(View.INVISIBLE); mContentView.addOnLayoutChangeListener(new OnLayoutChangeListener() { @Override public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) { ViewGroup group = (ViewGroup) v; for (int i = 0; i < group.getChildCount(); i++) { if (group.getChildAt(i).getMeasuredHeight() == 0 && group.getChildAt(i).getVisibility() == View.VISIBLE) { // Return early because not all the views have been measured, so animation // pivots will be off. return; } } mContentView.setVisibility(View.VISIBLE); startEnterAnimation(); mContentView.removeOnLayoutChangeListener(this); } }); super.show(); } private void startEnterAnimation() { Rect rectangle = new Rect(); Window window = mActivity.getWindow(); window.getDecorView().getWindowVisibleDisplayFrame(rectangle); float xOffsetPx = rectangle.left; float contentOffsetYPx = mRenderCoordinates != null ? mRenderCoordinates.getContentOffsetYPix() : 0; float yOffsetPx = rectangle.top + contentOffsetYPx; int[] currentLocationOnScreenPx = new int[2]; mContentView.getLocationOnScreen(currentLocationOnScreenPx); mContextMenuFirstLocationYPx = currentLocationOnScreenPx[1]; mContextMenuSourceXPx = mTouchPointXPx - currentLocationOnScreenPx[0] + xOffsetPx; mContextMenuSourceYPx = mTouchPointYPx - currentLocationOnScreenPx[1] + yOffsetPx; Animation animation = getScaleAnimation(true, mContextMenuSourceXPx, mContextMenuSourceYPx); mContentView.startAnimation(animation); } @Override public void dismiss() { int[] contextMenuFinalLocationPx = new int[2]; mContentView.getLocationOnScreen(contextMenuFinalLocationPx); // Recalculate mContextMenuDestinationY because the context menu's final location may not be // the same as its first location if it changed in height. float contextMenuDestinationYPx = mContextMenuSourceYPx + (mContextMenuFirstLocationYPx - contextMenuFinalLocationPx[1]); Animation exitAnimation = getScaleAnimation(false, mContextMenuSourceXPx, contextMenuDestinationYPx); exitAnimation.setAnimationListener(new AnimationListener() { @Override public void onAnimationStart(Animation animation) {} @Override public void onAnimationRepeat(Animation animation) {} @Override public void onAnimationEnd(Animation animation) { ContextMenuDialog.super.dismiss(); } }); mContentView.startAnimation(exitAnimation); } @Override public boolean onTouchEvent(MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_DOWN) { dismiss(); return true; } return false; } /** * @param isEnterAnimation Whether the animation to be returned is for showing the context menu * as opposed to hiding it. * @param pivotX The X coordinate of the point about which the object is being scaled, specified * as an absolute number where 0 is the left edge. * @param pivotY The Y coordinate of the point about which the object is being scaled, specified * as an absolute number where 0 is the top edge. * @return Returns the scale animation for the context menu. */ public Animation getScaleAnimation(boolean isEnterAnimation, float pivotX, float pivotY) { float fromX = isEnterAnimation ? 0f : 1f; float toX = isEnterAnimation ? 1f : 0f; float fromY = fromX; float toY = toX; ScaleAnimation animation; if (mRenderCoordinates == null) { animation = new ScaleAnimation(fromX, toX, fromY, toY, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); } else { animation = new ScaleAnimation( fromX, toX, fromY, toY, Animation.ABSOLUTE, pivotX, Animation.ABSOLUTE, pivotY); } long duration = isEnterAnimation ? ENTER_ANIMATION_DURATION_MS : EXIT_ANIMATION_DURATION_MS; animation.setDuration(duration); animation.setInterpolator(new LinearOutSlowInInterpolator()); return animation; } }
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
dcd492ef98d5f58c95ec592c11816495bf4876d4
8d82584016079aa61497cbf770f1990ed540e8ac
/UsedPustakAppUpload/src/com/tssc/usedpustak/Constants.java
1ba4aad680904f5fe195e256188b0c198b9c5800
[]
no_license
usha6669/UsedPustakApp
d3e56e09c828a1ccf97ff35196d63e5caf2bfc8b
407074926ef2155080b61a1988bca4226f50bae5
refs/heads/master
2020-03-22T00:39:56.192967
2018-06-30T15:44:10
2018-06-30T15:44:10
139,257,651
0
0
null
null
null
null
UTF-8
Java
false
false
214
java
package com.tssc.usedpustak; public class Constants { public static final String ACCESS_KEY_ID = "AKIAJYTBALIAMS7Y772A"; public static final String SECRET_KEY = "8g3H8DY6DOjQl1wGBicYaFOHYNX+SxBe36cle2cP"; }
[ "you@example.com" ]
you@example.com
9246e9773cbff0d36ba48ce6639e01b64ee50b0e
16504a03630a0986521fb05528ef6200b4c1da35
/project-manager/project-common-demo/src/main/java/com/liuty/maven/basicfeature/entity/Trader.java
1b1c5348cef5e8675beaa2b9bab7e8b2edbf4713
[]
no_license
ltybjeagle/project-ltydemo
6e7f1a34454c4da8b56db5f6afb668a095c8b49f
6bbb2ea24ea93ffdec33505d6cfaf20e39bb6c68
refs/heads/master
2023-09-02T18:24:03.740531
2023-08-19T11:54:54
2023-08-19T11:54:54
153,546,679
3
2
null
2023-01-30T06:16:51
2018-10-18T01:40:29
Java
UTF-8
Java
false
false
537
java
package com.liuty.maven.basicfeature.entity; public class Trader { private final String name; private final String city; public Trader(String name, String city) { this.name = name; this.city = city; } public String getName() { return name; } public String getCity() { return city; } @Override public String toString() { return "Trader{" + "name='" + name + '\'' + ", city='" + city + '\'' + '}'; } }
[ "lty.bjeagle.net@163.com" ]
lty.bjeagle.net@163.com
b31b89273d3ae653c0902c9f986da5eb2d9f8635
5b4c34e24964cbd818c13541ff65150c6360da74
/src/test/java/ma/marioaliaga/system/security/DomainUserDetailsServiceIntTest.java
1d6650574ae76463570cc5813be225dd01b45cfa
[]
no_license
maliaga/heinekenwebapp
909e0493703b9fa7a168a6a62eda9ebc28cfaee0
df9ed39b51ce5707684ea85d690377066ef1f3e8
refs/heads/master
2021-05-26T05:39:29.476340
2018-04-01T23:08:56
2018-04-01T23:08:56
127,678,675
0
1
null
2020-09-18T10:17:57
2018-04-01T23:08:52
Java
UTF-8
Java
false
false
4,671
java
package ma.marioaliaga.system.security; import ma.marioaliaga.system.HeinekenwebappApp; import ma.marioaliaga.system.domain.User; import ma.marioaliaga.system.repository.UserRepository; import org.apache.commons.lang3.RandomStringUtils; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; import java.util.Locale; import static org.assertj.core.api.Assertions.assertThat; /** * Test class for DomainUserDetailsService. * * @see DomainUserDetailsService */ @RunWith(SpringRunner.class) @SpringBootTest(classes = HeinekenwebappApp.class) @Transactional public class DomainUserDetailsServiceIntTest { private static final String USER_ONE_LOGIN = "test-user-one"; private static final String USER_ONE_EMAIL = "test-user-one@localhost"; private static final String USER_TWO_LOGIN = "test-user-two"; private static final String USER_TWO_EMAIL = "test-user-two@localhost"; private static final String USER_THREE_LOGIN = "test-user-three"; private static final String USER_THREE_EMAIL = "test-user-three@localhost"; @Autowired private UserRepository userRepository; @Autowired private UserDetailsService domainUserDetailsService; private User userOne; private User userTwo; private User userThree; @Before public void init() { userOne = new User(); userOne.setLogin(USER_ONE_LOGIN); userOne.setPassword(RandomStringUtils.random(60)); userOne.setActivated(true); userOne.setEmail(USER_ONE_EMAIL); userOne.setFirstName("userOne"); userOne.setLastName("doe"); userOne.setLangKey("en"); userRepository.save(userOne); userTwo = new User(); userTwo.setLogin(USER_TWO_LOGIN); userTwo.setPassword(RandomStringUtils.random(60)); userTwo.setActivated(true); userTwo.setEmail(USER_TWO_EMAIL); userTwo.setFirstName("userTwo"); userTwo.setLastName("doe"); userTwo.setLangKey("en"); userRepository.save(userTwo); userThree = new User(); userThree.setLogin(USER_THREE_LOGIN); userThree.setPassword(RandomStringUtils.random(60)); userThree.setActivated(false); userThree.setEmail(USER_THREE_EMAIL); userThree.setFirstName("userThree"); userThree.setLastName("doe"); userThree.setLangKey("en"); userRepository.save(userThree); } @Test @Transactional public void assertThatUserCanBeFoundByLogin() { UserDetails userDetails = domainUserDetailsService.loadUserByUsername(USER_ONE_LOGIN); assertThat(userDetails).isNotNull(); assertThat(userDetails.getUsername()).isEqualTo(USER_ONE_LOGIN); } @Test @Transactional public void assertThatUserCanBeFoundByLoginIgnoreCase() { UserDetails userDetails = domainUserDetailsService.loadUserByUsername(USER_ONE_LOGIN.toUpperCase(Locale.ENGLISH)); assertThat(userDetails).isNotNull(); assertThat(userDetails.getUsername()).isEqualTo(USER_ONE_LOGIN); } @Test @Transactional public void assertThatUserCanBeFoundByEmail() { UserDetails userDetails = domainUserDetailsService.loadUserByUsername(USER_TWO_EMAIL); assertThat(userDetails).isNotNull(); assertThat(userDetails.getUsername()).isEqualTo(USER_TWO_LOGIN); } @Test @Transactional public void assertThatUserCanBeFoundByEmailIgnoreCase() { UserDetails userDetails = domainUserDetailsService.loadUserByUsername(USER_TWO_EMAIL.toUpperCase(Locale.ENGLISH)); assertThat(userDetails).isNotNull(); assertThat(userDetails.getUsername()).isEqualTo(USER_TWO_LOGIN); } @Test @Transactional public void assertThatEmailIsPrioritizedOverLogin() { UserDetails userDetails = domainUserDetailsService.loadUserByUsername(USER_ONE_EMAIL.toUpperCase(Locale.ENGLISH)); assertThat(userDetails).isNotNull(); assertThat(userDetails.getUsername()).isEqualTo(USER_ONE_LOGIN); } @Test(expected = UserNotActivatedException.class) @Transactional public void assertThatUserNotActivatedExceptionIsThrownForNotActivatedUsers() { domainUserDetailsService.loadUserByUsername(USER_THREE_LOGIN); } }
[ "jhipster-bot@users.noreply.github.com" ]
jhipster-bot@users.noreply.github.com
c2189e8f262f592a27e8a9017950a32a5f2ef876
d7c5121237c705b5847e374974b39f47fae13e10
/airspan.netspan/src/main/java/Netspan/NBI_17_5/Lte/SyncProfileCloneResponse.java
6b1f36813502708fde5e210f8702712729c08ad5
[]
no_license
AirspanNetworks/SWITModules
8ae768e0b864fa57dcb17168d015f6585d4455aa
7089a4b6456621a3abd601cc4592d4b52a948b57
refs/heads/master
2022-11-24T11:20:29.041478
2020-08-09T07:20:03
2020-08-09T07:20:03
184,545,627
1
0
null
2022-11-16T12:35:12
2019-05-02T08:21:55
Java
UTF-8
Java
false
false
1,794
java
package Netspan.NBI_17_5.Lte; 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; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType&gt; * &lt;complexContent&gt; * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; * &lt;sequence&gt; * &lt;element name="SyncProfileCloneResult" type="{http://Airspan.Netspan.WebServices}ProfileResponse" minOccurs="0"/&gt; * &lt;/sequence&gt; * &lt;/restriction&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "syncProfileCloneResult" }) @XmlRootElement(name = "SyncProfileCloneResponse") public class SyncProfileCloneResponse { @XmlElement(name = "SyncProfileCloneResult") protected ProfileResponse syncProfileCloneResult; /** * Gets the value of the syncProfileCloneResult property. * * @return * possible object is * {@link ProfileResponse } * */ public ProfileResponse getSyncProfileCloneResult() { return syncProfileCloneResult; } /** * Sets the value of the syncProfileCloneResult property. * * @param value * allowed object is * {@link ProfileResponse } * */ public void setSyncProfileCloneResult(ProfileResponse value) { this.syncProfileCloneResult = value; } }
[ "ggrunwald@airspan.com" ]
ggrunwald@airspan.com
9f4d8d94ee0d255210325f56ba367b0f93a0a771
41162b3219995251392442ad0d55c6982fbc397d
/app/src/main/java/com/lichao/chaomei/model/home/HomeMainModel.java
92977426fd7e676ba8bdba2c49d4d8eceb5a9a5c
[]
no_license
lichao3140/ChaoMei
6c0c39a8fa877e2721280a9fb0b2b5df16cb8b95
2765a532a27620b85d4559a18544fd942ae4009f
refs/heads/master
2020-03-16T08:49:37.467274
2018-05-30T10:41:13
2018-05-30T10:41:13
132,602,983
0
0
null
null
null
null
UTF-8
Java
false
false
614
java
package com.lichao.chaomei.model.home; import android.support.annotation.NonNull; import com.lichao.chaomei.base.BaseModel; import com.lichao.chaomei.contract.home.HomeMainContract; /** * Created by ChaoLi on 2018/5/14 0014 - 11:21 * Email: lichao3140@gmail.com * Version: v1.0 */ public class HomeMainModel extends BaseModel implements HomeMainContract.IHomeMainModel { @NonNull public static HomeMainModel newInstance() { return new HomeMainModel(); } @Override public String[] getTabs() { return new String[]{"知乎日报", "热点新闻", "微信精选"}; } }
[ "396229938@qq.com" ]
396229938@qq.com
f9712454f25f24ffdc3beb33fa4d9bcc70831320
410bc448a659394f367a84a72272f6e54fa08dc3
/backend/CompanyServiceApplication/src/main/java/com/aditya/companyservice/application/mapper/IpoMapper.java
965a235ed483c1eff0e2de420427cf4475c132c0
[]
no_license
webclinic017/Stock-Market-Charting-Application
cc9c13b99c4bbe433cf776b579c76417053ce5df
49c68cae8129d7ff70fa5698a28605fd15b076bc
refs/heads/master
2022-11-24T15:32:08.998631
2020-08-07T08:06:58
2020-08-07T08:06:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,103
java
package com.aditya.companyservice.application.mapper; import java.util.Arrays; import java.util.List; import org.modelmapper.ModelMapper; import org.modelmapper.convention.MatchingStrategies; import org.springframework.stereotype.Component; import com.aditya.companyservice.application.dto.IpoDto; import com.aditya.companyservice.application.model.Ipo; @Component public class IpoMapper { public IpoDto toIpoDto(Ipo ipo) { ModelMapper mapper = new ModelMapper(); mapper.getConfiguration().setMatchingStrategy(MatchingStrategies.STRICT); IpoDto ipoDto = mapper.map(ipo, IpoDto.class); return ipoDto; } public Ipo toIpo(IpoDto ipoDto) { ModelMapper mapper = new ModelMapper(); mapper.getConfiguration().setMatchingStrategy(MatchingStrategies.STRICT); Ipo ipo = mapper.map(ipoDto, Ipo.class); return ipo; } public List<IpoDto> toIpoDtos(List<Ipo> ipos) { ModelMapper mapper = new ModelMapper(); mapper.getConfiguration().setMatchingStrategy(MatchingStrategies.STRICT); List<IpoDto> ipoDtos = Arrays.asList(mapper.map(ipos, IpoDto[].class)); return ipoDtos; } }
[ "adikshettri1623@gmail.com" ]
adikshettri1623@gmail.com
a04f546a286bb7a681fe30cb14552b94460cc5c4
c458fe10e1d8aef4c53d0f6e3cacaf7617ca4e9d
/AdvanceJava_ntaj114_Final/WAOne-Context1/src/com/nt/servlet/FirstServlet.java
e0654ef9ce2fe07bbeff5363e3804a63f0da7edd
[]
no_license
aakulasaikiran/AdvanceJava
53c64c75eaf7f8581bcf8f067f828402c4a3a6a8
b702d4295b93ae82748cc2ca6052841c794208e6
refs/heads/master
2020-03-23T17:50:39.602290
2018-07-22T08:45:02
2018-07-22T08:45:02
141,878,302
0
0
null
null
null
null
UTF-8
Java
false
false
1,466
java
package com.nt.servlet; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.RequestDispatcher; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class FirstServlet extends HttpServlet { @Override public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { PrintWriter pw=null; int value=0; int square=0; ServletContext sc1=null,sc2=null; RequestDispatcher rd=null; //general settings pw=res.getWriter(); res.setContentType("text/html"); //read form data value=Integer.parseInt(req.getParameter("t1")); //calculuate square value square=value*value; pw.println("<b>FirstServlet::"+square); //for Cross context communication //get SerlvetContext obj of WAOne(current) web application sc1=getServletContext(); //get SerlvetContext obj of WATwo(Dest) web application sc2=sc1.getContext("/WATwo-Context2"); //create RequestDispatcher pointing to SecondServlet rd=sc2.getRequestDispatcher("/secondurl"); rd.include(req,res); //close stream pw.close(); }//doGet(-,-) @Override public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { doGet(req,res); } }//class
[ "aakulasaikiran@gmail.com" ]
aakulasaikiran@gmail.com