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
abfdbb074f79cee77ad79644aa888761e5306013
95c49f466673952b465e19a5ee3ae6eff76bee00
/src/main/java/com/xiaomi/push/service/C8987bu.java
f286d95a38d4e9ebb2ac6c67e6ee8d3b252b3ad2
[]
no_license
Phantoms007/zhihuAPK
58889c399ae56b16a9160a5f48b807e02c87797e
dcdbd103436a187f9c8b4be8f71bdf7813b6d201
refs/heads/main
2023-01-24T01:34:18.716323
2020-11-25T17:14:55
2020-11-25T17:14:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,374
java
package com.xiaomi.push.service; import android.content.Context; import com.xiaomi.p913a.p914a.p915a.AbstractC8508c; import com.xiaomi.push.C8760ez; import com.xiaomi.push.C8832hg; import com.xiaomi.push.service.XMPushService; /* renamed from: com.xiaomi.push.service.bu */ final class C8987bu extends XMPushService.AbstractC8921i { /* renamed from: a */ final /* synthetic */ XMPushService f38617a; /* renamed from: b */ final /* synthetic */ C8832hg f38618b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ C8987bu(int i, XMPushService xMPushService, C8832hg hgVar) { super(i); this.f38617a = xMPushService; this.f38618b = hgVar; } @Override // com.xiaomi.push.service.XMPushService.AbstractC8921i /* renamed from: a */ public void mo54791a() { try { C8832hg a = C8984br.m53043a((Context) this.f38617a, this.f38618b); a.mo55265m().mo55040a("message_obsleted", "1"); C8992bz.m53085a(this.f38617a, a); } catch (C8760ez e) { AbstractC8508c.m50234a(e); this.f38617a.mo55689a(10, e); } } @Override // com.xiaomi.push.service.XMPushService.AbstractC8921i /* renamed from: b */ public String mo54792b() { return "send ack message for obsleted message."; } }
[ "seasonpplp@qq.com" ]
seasonpplp@qq.com
99d6597cd7f8e9185f5ad3ae521b26429bd7d99d
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/23/23_fdcef309b3dce7482fe2f9dcfb087c8276219cf5/DyeAction/23_fdcef309b3dce7482fe2f9dcfb087c8276219cf5_DyeAction_s.java
6485091eee53bdb42976cb7ade219378f7b6e5e5
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
2,156
java
/* * This file is part of aion-unique <www.aion-unique.org>. * * aion-unique 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. * * aion-unique 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 aion-unique. If not, see <http://www.gnu.org/licenses/>. */ package com.aionemu.gameserver.itemengine.actions; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlType; import com.aionemu.gameserver.model.gameobjects.Item; import com.aionemu.gameserver.model.gameobjects.player.Player; import com.aionemu.gameserver.network.aion.serverpackets.SM_UPDATE_PLAYER_APPEARANCE; import com.aionemu.gameserver.services.ItemService; import com.aionemu.gameserver.utils.PacketSendUtility; /** * @author IceReaper * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DyeAction") public class DyeAction extends AbstractItemAction { @XmlAttribute(name = "color") protected String color; @Override public void act(Player player, Item parentItem, Item targetItem, ItemService itemService) { if (targetItem.getItemTemplate().isItemDyePermitted()) { int rgb = Integer.parseInt(color, 16); int bgra = 0xFF | ((rgb & 0xFF) << 24) | ((rgb & 0xFF00) << 8) | ((rgb & 0xFF0000) >>> 8); targetItem.setItemColor(bgra); PacketSendUtility.sendPacket(player, new SM_UPDATE_PLAYER_APPEARANCE(player.getObjectId(), player.getEquipment().getEquippedItems())); player.getInventory().removeFromBagByObjectId(parentItem.getObjectId(), 1); } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
b71bd5b80728ccc54ac9b285d2616cb4fe001625
732a6fa36e14baf7f828ef19a62b515312f9a109
/qa-project/channels/Mind-AllianceAutomationFramework/src/com/mindalliance/functionaltestsripts/HP003_PlansAvailable.java
956cc30cf5e883a7d22757c39bc2a22c9200ed8b
[]
no_license
gauravbvt/test
4e991ad3e7dd5ea670ab88f3a74fe8a42418ec20
04e48c87ff5c2209fc4bc703795be3f954909c3a
refs/heads/master
2020-11-24T02:43:32.565109
2014-10-07T23:47:39
2014-10-07T23:47:39
100,468,202
0
0
null
null
null
null
UTF-8
Java
false
false
4,592
java
package com.mindalliance.functionaltestsripts; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.ui.Select; import com.mindalliance.globallibrary.ApplicationFunctionLibrary; import com.mindalliance.globallibrary.GenericFunctionLibrary; import com.mindalliance.globallibrary.GlobalVariables; import com.mindalliance.globallibrary.LogFunctions; import com.mindalliance.globallibrary.ReportFunctions; public class HP003_PlansAvailable { public HP003_PlansAvailable() { try { GlobalVariables.sTestCaseId = "HP003_PlansAvailable"; GlobalVariables.sDescription = "Testcase: " + GlobalVariables.sTestCaseId + " execution started"; LogFunctions.writeLogs(GlobalVariables.sDescription); System.out.println(GlobalVariables.sDescription); // Call login() GlobalVariables.bIsSuccess = ApplicationFunctionLibrary.login(); if (GlobalVariables.bIsSuccess) { // Select the plan from 'Switch to Plan' drop down, located on the top right corner GlobalVariables.iStepNo++ ; GlobalVariables.sDescription = "Switch to plan"; GlobalVariables.oDropDown = new Select(GlobalVariables.oDriver.findElement(By.name("switch-plan:plan-sel"))); List <WebElement> options = GlobalVariables.oDropDown.getOptions(); for(WebElement option : options) { if(GlobalVariables.testData.get("New Plan v.1 (dev)").equals(option.getText())){ option.setSelected(); // Write Results LogFunctions.writeLogs(GlobalVariables.sDescription); LogFunctions.writeResults(GlobalVariables.sTestCaseId, GlobalVariables.iStepNo, GlobalVariables.sDescription, GlobalVariables.sPassed, GlobalVariables.sBlank, GlobalVariables.sBlank); break; } } // WebElement Synchronization Thread.currentThread(); Thread.sleep(5000); // Call logout() GlobalVariables.iStepNo++ ; GlobalVariables.sDescription = "Logout is successful"; GlobalVariables.oDriver.findElement(By.xpath(GlobalVariables.home.get("sXpathLogoutHomePage"))).click(); // Write Results LogFunctions.writeLogs(GlobalVariables.sDescription); LogFunctions.writeResults(GlobalVariables.sTestCaseId, GlobalVariables.iStepNo, GlobalVariables.sDescription, GlobalVariables.sPassed, GlobalVariables.sBlank, GlobalVariables.sBlank); // WebElement Synchronization Thread.currentThread(); Thread.sleep(3000); GlobalVariables.oDriver.quit(); LogFunctions.writeLogs("Testcase: " + GlobalVariables.sTestCaseId + " execution completed"); System.out.println("Testcase: " + GlobalVariables.sTestCaseId + " execution completed"); } else LogFunctions.writeResults(GlobalVariables.sTestCaseId, GlobalVariables.iStepNo, GlobalVariables.sDescription, GlobalVariables.sFailed, GlobalVariables.sBlank, GlobalVariables.sBlank); } catch (Exception e) { if (GlobalVariables.oDriver.getTitle().equals(GlobalVariables.sInternalErrorPageTitle)) { LogFunctions.writeResults(GlobalVariables.sTestCaseId, GlobalVariables.iStepNo, GlobalVariables.sDescription, GlobalVariables.sFailed, e.getMessage(),GlobalVariables.sErrorLogSubDirectoryPath + "\\" + GlobalVariables.sTestCaseId + ".logs"); GlobalVariables.oElement = GlobalVariables.oDriver.findElement(By.id("stackTrace")); LogFunctions.writeErrorLogs(GlobalVariables.oElement.getText()); GlobalVariables.oDriver.findElement(By.xpath(GlobalVariables.home.get("sXpathLogoutHomePage"))).click(); GlobalVariables.oDriver.quit(); } else { LogFunctions.writeResults(GlobalVariables.sTestCaseId, GlobalVariables.iStepNo, GlobalVariables.sDescription, GlobalVariables.sFailed, e.getMessage(),GlobalVariables.sBlank); GlobalVariables.oDriver.findElement(By.xpath(GlobalVariables.home.get("sXpathLogoutHomePage"))).click(); GlobalVariables.oDriver.quit(); } System.out.println("Testcase: " + GlobalVariables.sTestCaseId + " execution failed"); } } public static void main(String args[]) { try { GenericFunctionLibrary.initializeTestData(); GenericFunctionLibrary.loadObjectRepository(); new HP003_PlansAvailable(); GenericFunctionLibrary.tearDownTestData(); ReportFunctions.generateAutomationReport(); } catch (Exception oException) { // TODO Auto-generated catch block oException.printStackTrace(); } } }
[ "afourtech@baad322d-9929-0410-88f0-f92e8ff3e1bd" ]
afourtech@baad322d-9929-0410-88f0-f92e8ff3e1bd
5f55210387ff2ca580b987390bf892806930247a
f626efaccacda9289a404601d60233b5c3eebb44
/tools/snapci-analyser/src/main/java/kuona/snapci/analyser/utils/Utils.java
f2774822f291b6107b4cbe0b2d81a4f8a5bfc4eb
[]
no_license
ffafara/kuona
905c71364b0f23d562f60bdf22b79f6ae2e0315f
0cf1df2e53dee4d69941f863c6b2ccd3782f9f23
refs/heads/master
2020-05-30T07:19:49.547076
2015-11-19T20:15:29
2015-11-19T20:29:53
43,386,310
0
0
null
2015-09-29T18:29:10
2015-09-29T18:29:10
null
UTF-8
Java
false
false
150
java
package kuona.snapci.analyser.utils; public class Utils { public static void puts(String message) { System.out.println(message); } }
[ "graham@grahambrooks.com" ]
graham@grahambrooks.com
3371360441b0e00b66e84fe2795f998f08daae80
2120011c1558b1d5f580d28406b9ad868f714dda
/gulp-foundations/src/com/azul/gulp/sources/Source.java
ae16f8a931aed187c9e89d3a1fdb03ec97efe840
[]
no_license
dougqh/gulp
7d0894f16d086f1abb04e6c8f2afe176f0f09bc5
8856656b6edc65bb543d949e3ae7b77433950ec8
refs/heads/master
2020-04-01T20:58:46.088636
2019-07-23T12:05:13
2019-07-23T12:05:13
153,630,409
3
1
null
null
null
null
UTF-8
Java
false
false
1,396
java
package com.azul.gulp.sources; import java.util.ArrayList; import java.util.Collections; import java.util.List; import com.azul.gulp.LogProcessingException; import com.azul.gulp.Processor; import com.azul.gulp.nexus.Nexus; public abstract class Source<T> { volatile List<T> prefetched = null; public abstract Class<T> coreType(); public final void forEach(final Processor<? super T> processor) throws Exception { List<T> prefetched = this.prefetched; if ( prefetched != null ) { for ( T prefetchedElement: prefetched ) { try { processor.process(prefetchedElement); } catch ( Exception e ) { throw new LogProcessingException(e); } } } else { this.forEachImpl(processor); } } protected abstract void forEachImpl(final Processor<? super T> processor) throws Exception; public abstract <V> Converter<T, V> converterFor(final Nexus nexus, final Class<V> type); protected void prefetch() throws Exception { List<T> prefetched = this.prefetched; if ( prefetched == null ) { int DEFAULT_CAPACITY = 1_000; ArrayList<T> loading = new ArrayList<>(DEFAULT_CAPACITY); this.forEachImpl(loading::add); if ( loading.size() < DEFAULT_CAPACITY / 2 ) { loading.trimToSize(); } this.prefetched = Collections.unmodifiableList(loading); } } }
[ "dougqh@gmail.com" ]
dougqh@gmail.com
68efd17eda0000aa59da5e948d3e7f6b11441061
a000c530b596c8647a020dcbead79947efafc019
/crossecore-java/src/eurent/EurentValidator.java
ddc9f9401937afaa7c0a75beb75cdd7904a42eaf
[]
no_license
crossecore/examples-eurent
a170d90bbac5d82eb85566c2e80aa69c3904dfce
af53ff4bae1c03a092a88e04451ac247aa29cc52
refs/heads/master
2020-03-12T22:30:01.509708
2018-05-07T08:29:52
2018-05-07T08:29:52
130,848,378
0
0
null
null
null
null
UTF-8
Java
false
false
5,403
java
package eurent; import org.eclipse.emf.ecore.util.EObjectValidator; import org.eclipse.emf.common.util.DiagnosticChain; import org.eclipse.emf.ecore.EClass; import java.util.Map; public class EurentValidator extends EObjectValidator { public static final EurentValidator INSTANCE = new EurentValidator(); public static final String DIAGNOSTIC_SOURCE = "eurent"; protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object, Object> context) { switch (classifierID) { case EurentPackageImpl.CAR: return validateCar((Car)value, diagnostics, context); case EurentPackageImpl.CARGROUP: return validateCarGroup((CarGroup)value, diagnostics, context); case EurentPackageImpl.CUSTOMER: return validateCustomer((Customer)value, diagnostics, context); case EurentPackageImpl.BRANCH: return validateBranch((Branch)value, diagnostics, context); case EurentPackageImpl.RENTAL: return validateRental((Rental)value, diagnostics, context); case EurentPackageImpl.BLACKLISTED: return validateBlackListed((BlackListed)value, diagnostics, context); case EurentPackageImpl.RENTALAGREEMENT: return validateRentalAgreement((RentalAgreement)value, diagnostics, context); case EurentPackageImpl.QUOTE: return validateQuote((Quote)value, diagnostics, context); default: return true; } } public boolean validateCar(Car obj, DiagnosticChain diagnostics, Map<Object, Object> context) { return validate_EveryDefaultConstraint(obj, diagnostics, context); } public boolean validateCarGroup(CarGroup obj, DiagnosticChain diagnostics, Map<Object, Object> context) { return validate_EveryDefaultConstraint(obj, diagnostics, context); } public boolean validateCustomer(Customer obj, DiagnosticChain diagnostics, Map<Object, Object> context) { return validate_EveryDefaultConstraint(obj, diagnostics, context); } public boolean validateBranch(Branch obj, DiagnosticChain diagnostics, Map<Object, Object> context) { return validate_EveryDefaultConstraint(obj, diagnostics, context); } public boolean validateRental(Rental obj, DiagnosticChain diagnostics, Map<Object, Object> context) { return validate_EveryDefaultConstraint(obj, diagnostics, context); } public boolean validateBlackListed(BlackListed obj, DiagnosticChain diagnostics, Map<Object, Object> context) { if (!validate_NoCircularContainment(obj, diagnostics, context)) return false; boolean result = validate_EveryMultiplicityConforms(obj, diagnostics, context); if (result || diagnostics != null) result &= validate_EveryDataValueConforms(obj, diagnostics, context); if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(obj, diagnostics, context); if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(obj, diagnostics, context); if (result || diagnostics != null) result &= validate_EveryProxyResolves(obj, diagnostics, context); if (result || diagnostics != null) result &= validate_UniqueID(obj, diagnostics, context); if (result || diagnostics != null) result &= validate_EveryKeyUnique(obj, diagnostics, context); if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(obj, diagnostics, context); if (result || diagnostics != null) result &= validateBlackListed_NoRentalsBlacklisted(obj, diagnostics, context); return result; } public boolean validateBlackListed_NoRentalsBlacklisted(BlackListed obj, DiagnosticChain diagnostics, Map<Object, Object> context) { return obj.NoRentalsBlacklisted(diagnostics, context); } public boolean validateRentalAgreement(RentalAgreement obj, DiagnosticChain diagnostics, Map<Object, Object> context) { return validate_EveryDefaultConstraint(obj, diagnostics, context); } public boolean validateQuote(Quote obj, DiagnosticChain diagnostics, Map<Object, Object> context) { if (!validate_NoCircularContainment(obj, diagnostics, context)) return false; boolean result = validate_EveryMultiplicityConforms(obj, diagnostics, context); if (result || diagnostics != null) result &= validate_EveryDataValueConforms(obj, diagnostics, context); if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(obj, diagnostics, context); if (result || diagnostics != null) result &= validate_EveryBidirectionalReferenceIsPaired(obj, diagnostics, context); if (result || diagnostics != null) result &= validate_EveryProxyResolves(obj, diagnostics, context); if (result || diagnostics != null) result &= validate_UniqueID(obj, diagnostics, context); if (result || diagnostics != null) result &= validate_EveryKeyUnique(obj, diagnostics, context); if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(obj, diagnostics, context); if (result || diagnostics != null) result &= validateQuote_QuoteOverZero(obj, diagnostics, context); return result; } public boolean validateQuote_QuoteOverZero(Quote obj, DiagnosticChain diagnostics, Map<Object, Object> context) { return obj.QuoteOverZero(diagnostics, context); } }
[ "schwicht@mail.upb.de" ]
schwicht@mail.upb.de
53f02015a3335034638d381923831f50145cde2f
bacde5bb0effd64aa061a729d73e07642d876368
/vnp/ChickenMerryChristmas/src/com/vnpgame/undersea/score/adapters/ScoreAdapter.java
5255f13a6dd793e2db7925f9f4f3d8f6a0d50dfe
[]
no_license
fordream/store-vnp
fe10d74acd1a780fb88f90e4854d15ce44ecb68c
6ca37dd4a69a63ea65d601aad695150e70f8d603
refs/heads/master
2020-12-02T15:05:14.994903
2015-10-23T13:52:51
2015-10-23T13:52:51
null
0
0
null
null
null
null
UTF-8
Java
false
false
977
java
package com.vnpgame.undersea.score.adapters; import java.util.ArrayList; import java.util.List; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import com.vnpgame.chickenmerrychristmas.R; import com.vnpgame.chickenmerrychristmas.Score; import com.vnpgame.undersea.score.views.ScoreItemView; public class ScoreAdapter extends ArrayAdapter<Score> { private List<Score> listData = new ArrayList<Score>(); public ScoreAdapter(Context context, List<Score> objects) { super(context, R.layout.scoreitem, objects); this.listData = objects; } public View getView(int position, View convertView, ViewGroup parent) { View workView = convertView; if (workView == null) { workView = new ScoreItemView(getContext()); } final Score item = listData.get(position); ScoreItemView view = ((ScoreItemView) workView); if (item != null) { view.setData(item); } return workView; } }
[ "truongvv@atmarkcafe.org" ]
truongvv@atmarkcafe.org
e512c6872547b828a5f9dfea0e906c061e10cee2
bbfd3058f560ee3d440a78bfc73763f34371be33
/src/main/java/com/kunyao/assistant/web/controller/member/CollectionController.java
dd56d0172227833f712949e4cac1126646807bff
[]
no_license
xiaoniao/temp
34ff1a3670699aca679dc3ab1d9f1979c26eb15b
1bb437c2a2b2b03cbd6b74190bff9b05de57ea29
refs/heads/master
2021-04-26T22:27:52.144518
2018-03-06T15:15:52
2018-03-06T15:15:52
124,095,885
0
0
null
null
null
null
UTF-8
Java
false
false
1,899
java
package com.kunyao.assistant.web.controller.member; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import com.kunyao.assistant.core.dto.GroupCrossInfoDto; import com.kunyao.assistant.core.dto.Result; import com.kunyao.assistant.core.dto.ResultFactory; import com.kunyao.assistant.core.model.Collection; import com.kunyao.assistant.web.service.CollectionService; @Controller @RequestMapping(value = "/mc/collection") @ResponseBody public class CollectionController { @Resource private CollectionService collectionService; /** * 收藏金鹰列表 */ @RequestMapping(value = "/list") public Result collectionList(Integer userId) { List<GroupCrossInfoDto> list = collectionService.findList(userId); return ResultFactory.createJsonSuccess(list); } /** * 是否收藏金鹰 */ @RequestMapping(value = "/isCollection") public Result isCollection(Integer userId, Integer crossUserId) { return ResultFactory.createJsonSuccess(collectionService.isCollection(userId, crossUserId)); } /** * 收藏金鹰 */ @RequestMapping(value = "/addCollection") @ResponseBody public Result addCollection(Integer userId, Integer crossUserId) { Collection collection = collectionService.addCollection(userId, crossUserId); return ResultFactory.createJsonSuccess(collection); } /** * 取消收藏金鹰 */ @RequestMapping(value = "/removeCollection") public Result removeCollection(Integer userId, Integer crossUserId) { try { collectionService.removeCollection(userId, crossUserId); } catch (Exception e) { return ResultFactory.createJsonSuccess(false); } return ResultFactory.createJsonSuccess(true); } }
[ "401111207@qq.com" ]
401111207@qq.com
0fd69ecd176c7d425b9dbc5b8787c07146e4114a
a31b7b7b1697964799b7b2845110e0845fddb78f
/livegoods_pojo/src/main/java/yimin/livegoods/search/pojo/Banner.java
4c4eabbd33075df36a4f815bc22cefeba0753ff9
[]
no_license
yimin12/House_Rent
ea5c5a20207ede065bc1db82019d0064368966dd
af76d2c6693f528b4beafa0cced19ecc01d8dfd9
refs/heads/master
2023-01-09T05:19:13.458388
2020-10-18T23:59:57
2020-10-18T23:59:57
305,219,615
0
0
null
null
null
null
UTF-8
Java
false
false
999
java
package yimin.livegoods.search.pojo; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import lombok.ToString; import java.util.Date; /* * @Author : Yimin Huang * @Contact : hymlaucs@gmail.com * @Date : 2020/10/11 18:11 * @Description : * */ @Data @NoArgsConstructor @EqualsAndHashCode @ToString public class Banner { /** * Banner real entity * The optional properties should be numerous. * 1、 轮播图生效时间, 当系统时间大于等于生效时间的时候,轮播图生效,可被查询。 * 2、 有效时长|失效时间。当系统时间大于等于失效时间的时候,轮播图不可查询。 * 3、 优先级。 根据具体情况,排序查询。 * 4、 随机算法。 代码逻辑实现 */ // We query the data form mongo db private String id; // logical primary key private String url; // url of the picture private Date createTime; // create timestamp }
[ "hymlaucs@gmail.com" ]
hymlaucs@gmail.com
64ab81fb6dff2ba803c82816ff3a5a9efdd73e45
7f785360d78bb5bb91c50e788c0ad6f3081741f2
/results/jGenProg+MinImpact/EvoSuite Tests/Math/Math28/seed20/generatedTests/org/apache/commons/math3/optimization/linear/SimplexSolver_ESTest.java
ec18e7e8a4e851d57ce4ffd9920731969347bd62
[]
no_license
Spirals-Team/test4repair-experiments
390a65cca4e2c0d3099423becfdc47bae582c406
5bf4dabf0ccf941d4c4053b6a0909f106efa24b5
refs/heads/master
2021-01-13T09:47:18.746481
2020-01-27T03:26:15
2020-01-27T03:26:15
69,664,991
5
6
null
2020-10-13T05:57:11
2016-09-30T12:28:13
Java
UTF-8
Java
false
false
6,417
java
/* * This file was automatically generated by EvoSuite * Fri Jan 20 00:37:50 GMT 2017 */ package org.apache.commons.math3.optimization.linear; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import java.util.LinkedList; import org.apache.commons.math3.linear.RealVector; import org.apache.commons.math3.linear.RealVectorAbstractTest; import org.apache.commons.math3.optimization.GoalType; import org.apache.commons.math3.optimization.PointValuePair; import org.apache.commons.math3.optimization.linear.LinearConstraint; import org.apache.commons.math3.optimization.linear.LinearObjectiveFunction; import org.apache.commons.math3.optimization.linear.SimplexSolver; import org.apache.commons.math3.optimization.linear.SimplexTableau; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true) public class SimplexSolver_ESTest extends SimplexSolver_ESTest_scaffolding { @Test(timeout = 4000) public void test0() throws Throwable { SimplexSolver simplexSolver0 = new SimplexSolver(); double[] doubleArray0 = new double[2]; LinearObjectiveFunction linearObjectiveFunction0 = new LinearObjectiveFunction(doubleArray0, (double) 100); LinkedList<LinearConstraint> linkedList0 = new LinkedList<LinearConstraint>(); GoalType goalType0 = GoalType.MINIMIZE; SimplexTableau simplexTableau0 = new SimplexTableau(linearObjectiveFunction0, linkedList0, goalType0, true, 0.3936265707015991, 100); simplexSolver0.solvePhase1(simplexTableau0); assertEquals(100, simplexSolver0.getMaxIterations()); } @Test(timeout = 4000) public void test1() throws Throwable { SimplexSolver simplexSolver0 = new SimplexSolver(); // Undeclared exception! try { simplexSolver0.solvePhase1((SimplexTableau) null); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.math3.optimization.linear.SimplexSolver", e); } } @Test(timeout = 4000) public void test2() throws Throwable { SimplexSolver simplexSolver0 = new SimplexSolver(); // Undeclared exception! try { simplexSolver0.doOptimize(); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("java.util.Collections$UnmodifiableCollection", e); } } @Test(timeout = 4000) public void test3() throws Throwable { SimplexSolver simplexSolver0 = new SimplexSolver(2256.415, 10); double[] doubleArray0 = new double[15]; LinearObjectiveFunction linearObjectiveFunction0 = new LinearObjectiveFunction(doubleArray0, 2256.415); LinkedList<LinearConstraint> linkedList0 = new LinkedList<LinearConstraint>(); GoalType goalType0 = GoalType.MAXIMIZE; PointValuePair pointValuePair0 = simplexSolver0.optimize(linearObjectiveFunction0, linkedList0, goalType0, false); PointValuePair pointValuePair1 = simplexSolver0.doOptimize(); assertNotSame(pointValuePair1, pointValuePair0); } @Test(timeout = 4000) public void test4() throws Throwable { SimplexSolver simplexSolver0 = new SimplexSolver(2256.415, 10); double[] doubleArray0 = new double[15]; doubleArray0[0] = (double) 100; LinearObjectiveFunction linearObjectiveFunction0 = new LinearObjectiveFunction(doubleArray0, 2256.415); LinkedList<LinearConstraint> linkedList0 = new LinkedList<LinearConstraint>(); GoalType goalType0 = GoalType.MAXIMIZE; SimplexTableau simplexTableau0 = new SimplexTableau(linearObjectiveFunction0, linkedList0, goalType0, false, 2256.415); try { simplexSolver0.doIteration(simplexTableau0); fail("Expecting exception: IllegalStateException"); } catch(IllegalStateException e) { // // unbounded solution // verifyException("org.apache.commons.math3.optimization.linear.SimplexSolver", e); } } @Test(timeout = 4000) public void test5() throws Throwable { SimplexSolver simplexSolver0 = new SimplexSolver(2256.415, 10); double[] doubleArray0 = new double[15]; LinearObjectiveFunction linearObjectiveFunction0 = new LinearObjectiveFunction(doubleArray0, 2256.415); LinkedList<LinearConstraint> linkedList0 = new LinkedList<LinearConstraint>(); GoalType goalType0 = GoalType.MAXIMIZE; SimplexTableau simplexTableau0 = new SimplexTableau(linearObjectiveFunction0, linkedList0, goalType0, false, 2256.415); // Undeclared exception! try { simplexSolver0.doIteration(simplexTableau0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("org.apache.commons.math3.optimization.linear.SimplexSolver", e); } } @Test(timeout = 4000) public void test6() throws Throwable { SimplexSolver simplexSolver0 = new SimplexSolver(); double[] doubleArray0 = new double[19]; doubleArray0[5] = (double) 100; RealVectorAbstractTest.RealVectorTestImpl realVectorAbstractTest_RealVectorTestImpl0 = new RealVectorAbstractTest.RealVectorTestImpl(doubleArray0); LinearObjectiveFunction linearObjectiveFunction0 = new LinearObjectiveFunction((RealVector) realVectorAbstractTest_RealVectorTestImpl0, 0.0); LinkedList<LinearConstraint> linkedList0 = new LinkedList<LinearConstraint>(); GoalType goalType0 = GoalType.MINIMIZE; try { simplexSolver0.optimize(linearObjectiveFunction0, linkedList0, goalType0, false); fail("Expecting exception: IllegalStateException"); } catch(IllegalStateException e) { // // unbounded solution // verifyException("org.apache.commons.math3.optimization.linear.SimplexSolver", e); } } }
[ "martin.monperrus@gnieh.org" ]
martin.monperrus@gnieh.org
3346f9f195412571388b2d6a26d2cf18cd29d87b
44896ae384f87f0a258c5b09f68475032d75a522
/applicate/src/test/java/it/amattioli/applicate/serviceFactory/EntitySelectorFactoryTest.java
6127ad8683bcc53a936aac2bf389eb50ac3a8d77
[]
no_license
andyglick/javATE
ecfd3f4e2c2451afd79844811cda3a3b838da295
195534d21c58851963b2e8a5a8c1f0723f5b19be
refs/heads/master
2023-07-08T12:43:32.430134
2013-08-04T15:40:48
2013-08-04T15:40:48
98,358,214
0
0
null
null
null
null
UTF-8
Java
false
false
1,379
java
package it.amattioli.applicate.serviceFactory; import it.amattioli.applicate.browsing.EntitySelector; import it.amattioli.applicate.commands.EntityEditorCommand; import it.amattioli.dominate.EntityImpl; import it.amattioli.dominate.resolver.EntityRegistry; import junit.framework.TestCase; public class EntitySelectorFactoryTest extends TestCase { public void testKnowsService() { EntitySelectorFactory factory = createFactory(); assertTrue(factory.knowsService("FakeEntityEntitySelector")); } public void testUnknownService() { EntitySelectorFactory factory = createFactory(); assertFalse(factory.knowsService("FakeEntitySelector")); } public void testUnknownEntity() { EntitySelectorFactory factory = createFactory(); assertFalse(factory.knowsService("NoEntityEntitySelector")); } public void testServiceConstruction() { EntitySelectorFactory factory = createFactory(); Object brw = factory.createService("FakeEntityEntitySelector"); assertTrue(brw instanceof EntitySelector); } private EntitySelectorFactory createFactory() { EntityRegistry resolver = new EntityRegistry(); resolver.register("FakeEntity", FakeEntity.class); EntitySelectorFactory factory = new EntitySelectorFactory(resolver); return factory; } public static class FakeEntity extends EntityImpl { } }
[ "andreamattioli@yahoo.it" ]
andreamattioli@yahoo.it
9e0df6ecac14045c2596f67042d2a3350e3ddba5
e124c06aa37b93502a84f8931e1e792539883b9d
/divinerpg/client/render/entity/twilight/model/ModelAngryBunny.java
2413996a0a02fe70cf836f60ad60e9694f699fd6
[]
no_license
m-shayanshafi/FactRepositoryProjects
12d7b65505c1e0a8e0ec3577cf937a1e3d17c417
1d45d667b454064107d78213e8cd3ec795827b41
refs/heads/master
2020-06-13T12:04:53.891793
2016-12-02T11:30:49
2016-12-02T11:30:49
75,389,381
1
0
null
null
null
null
UTF-8
Java
false
false
6,470
java
package net.divinerpg.client.render.entity.twilight.model; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; import net.minecraft.util.MathHelper; public class ModelAngryBunny extends ModelBase { ModelRenderer Head; ModelRenderer Body; ModelRenderer Leg1; ModelRenderer Leg2; ModelRenderer Leg3; ModelRenderer Leg4; ModelRenderer Ear1; ModelRenderer Ear2; ModelRenderer Tail; ModelRenderer Shape1; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape4; public ModelAngryBunny() { this.textureWidth = 64; this.textureHeight = 32; this.Head = new ModelRenderer(this, 0, 0); this.Head.addBox(-3.0F, -3.0F, -2.0F, 6, 6, 4); this.Head.setRotationPoint(-1.0F, 13.5F, -7.0F); this.Head.setTextureSize(64, 32); this.Head.mirror = true; this.setRotation(this.Head, 0.0F, 0.0F, 0.0F); this.Body = new ModelRenderer(this, 18, 14); this.Body.addBox(-4.0F, -2.0F, -3.0F, 6, 9, 6); this.Body.setRotationPoint(0.0F, 14.0F, -3.0F); this.Body.setTextureSize(64, 32); this.Body.mirror = true; this.setRotation(this.Body, ((float)Math.PI / 2F), 0.0F, 0.0F); this.Leg1 = new ModelRenderer(this, 0, 18); this.Leg1.addBox(-1.0F, 0.0F, -1.0F, 2, 8, 2); this.Leg1.setRotationPoint(-2.5F, 16.0F, 3.0F); this.Leg1.setTextureSize(64, 32); this.Leg1.mirror = true; this.setRotation(this.Leg1, 0.0F, 0.0F, 0.0F); this.Leg2 = new ModelRenderer(this, 0, 18); this.Leg2.addBox(-1.0F, 0.0F, -1.0F, 2, 8, 2); this.Leg2.setRotationPoint(0.5F, 16.0F, 3.0F); this.Leg2.setTextureSize(64, 32); this.Leg2.mirror = true; this.setRotation(this.Leg2, 0.0F, 0.0F, 0.0F); this.Leg3 = new ModelRenderer(this, 0, 18); this.Leg3.addBox(-1.0F, 0.0F, -1.0F, 2, 8, 2); this.Leg3.setRotationPoint(-2.5F, 16.0F, -4.0F); this.Leg3.setTextureSize(64, 32); this.Leg3.mirror = true; this.setRotation(this.Leg3, 0.0F, 0.0F, 0.0F); this.Leg4 = new ModelRenderer(this, 0, 18); this.Leg4.addBox(-1.0F, 0.0F, -1.0F, 2, 8, 2); this.Leg4.setRotationPoint(0.5F, 16.0F, -4.0F); this.Leg4.setTextureSize(64, 32); this.Leg4.mirror = true; this.setRotation(this.Leg4, 0.0F, 0.0F, 0.0F); this.Ear1 = new ModelRenderer(this, 16, 14); this.Ear1.addBox(-3.0F, -5.0F, 0.0F, 2, 2, 1); this.Ear1.setRotationPoint(-1.0F, 13.5F, -7.0F); this.Ear1.setTextureSize(64, 32); this.Ear1.mirror = true; this.setRotation(this.Ear1, 0.0F, 0.0F, 0.0F); this.Ear2 = new ModelRenderer(this, 16, 14); this.Ear2.addBox(1.0F, -5.0F, 0.0F, 2, 2, 1); this.Ear2.setRotationPoint(-1.0F, 13.5F, -7.0F); this.Ear2.setTextureSize(64, 32); this.Ear2.mirror = true; this.setRotation(this.Ear2, 0.0F, 0.0F, 0.0F); this.Tail = new ModelRenderer(this, 6, 0); this.Tail.addBox(0.0F, 0.0F, 0.0F, 2, 2, 1); this.Tail.setRotationPoint(-2.0F, 13.0F, 4.0F); this.Tail.setTextureSize(64, 32); this.Tail.mirror = true; this.setRotation(this.Tail, 0.0F, 0.0F, 0.0F); this.Shape1 = new ModelRenderer(this, 50, 18); this.Shape1.addBox(0.0F, 0.0F, 0.0F, 2, 2, 2); this.Shape1.setRotationPoint(0.0F, 9.0F, 0.0F); this.Shape1.setTextureSize(64, 32); this.Shape1.mirror = true; this.setRotation(this.Shape1, 0.0F, 0.0F, 0.0F); this.Shape2 = new ModelRenderer(this, 50, 18); this.Shape2.addBox(0.0F, 0.0F, 0.0F, 2, 2, 2); this.Shape2.setRotationPoint(-4.0F, 9.0F, 0.0F); this.Shape2.setTextureSize(64, 32); this.Shape2.mirror = true; this.setRotation(this.Shape2, 0.0F, 0.0F, 0.0F); this.Shape3 = new ModelRenderer(this, 50, 18); this.Shape3.addBox(0.0F, 0.0F, 0.0F, 2, 2, 2); this.Shape3.setRotationPoint(0.0F, 9.0F, -4.0F); this.Shape3.setTextureSize(64, 32); this.Shape3.mirror = true; this.setRotation(this.Shape3, 0.0F, 0.0F, 0.0F); this.Shape4 = new ModelRenderer(this, 50, 18); this.Shape4.addBox(0.0F, 0.0F, 0.0F, 2, 2, 2); this.Shape4.setRotationPoint(-4.0F, 9.0F, -4.0F); this.Shape4.setTextureSize(64, 32); this.Shape4.mirror = true; this.setRotation(this.Shape4, 0.0F, 0.0F, 0.0F); } /** * Sets the models various rotation angles then renders the model. */ @Override public void render(Entity var1, float var2, float var3, float var4, float var5, float var6, float var7) { super.render(var1, var2, var3, var4, var5, var6, var7); this.setRotationAngles(var2, var3, var4, var5, var6, var7); this.Head.render(var7); this.Body.render(var7); this.Leg1.render(var7); this.Leg2.render(var7); this.Leg3.render(var7); this.Leg4.render(var7); this.Ear1.render(var7); this.Ear2.render(var7); this.Tail.render(var7); this.Shape1.render(var7); this.Shape2.render(var7); this.Shape3.render(var7); this.Shape4.render(var7); } private void setRotation(ModelRenderer var1, float var2, float var3, float var4) { var1.rotateAngleX = var2; var1.rotateAngleY = var3; var1.rotateAngleZ = var4; } public void setRotationAngles(float var1, float var2, float var3, float var4, float var5, float var6) { this.Head.rotateAngleX = var5 / (180F / (float)Math.PI); this.Head.rotateAngleY = var4 / (180F / (float)Math.PI); this.Ear1.rotateAngleX = var5 / (180F / (float)Math.PI); this.Ear1.rotateAngleY = var4 / (180F / (float)Math.PI); this.Ear2.rotateAngleX = var5 / (180F / (float)Math.PI); this.Ear2.rotateAngleY = var4 / (180F / (float)Math.PI); this.Body.rotateAngleX = ((float)Math.PI / 2F); this.Leg1.rotateAngleX = MathHelper.cos(var1 * 0.6662F) * 1.4F * var2; this.Leg2.rotateAngleX = MathHelper.cos(var1 * 0.6662F + (float)Math.PI) * 1.4F * var2; this.Leg3.rotateAngleX = MathHelper.cos(var1 * 0.6662F + (float)Math.PI) * 1.4F * var2; this.Leg4.rotateAngleX = MathHelper.cos(var1 * 0.6662F) * 1.4F * var2; } }
[ "mshayanshafi@gmail.com" ]
mshayanshafi@gmail.com
1e7b152750eddf8fbd98448d890e2ea939f65cd0
558ad220e0f4d1ba45be0305dc801c564c0caf18
/src/main/java/org/lndroid/framework/usecases/user/GetWalletInfo.java
65d6f665dafaeb2147e7361e83fdb27a99e183c6
[ "MIT" ]
permissive
lndroid/lndroid-framework
759401d45309fe642bf8d92265aa4a0c93cac559
605911507b6ef1ea621605786851c2c09f3d3767
refs/heads/master
2020-12-29T16:59:14.134320
2020-03-25T08:02:07
2020-03-25T08:02:07
238,676,143
2
1
null
null
null
null
UTF-8
Java
false
false
896
java
package org.lndroid.framework.usecases.user; import java.io.IOException; import java.lang.reflect.Type; import org.lndroid.framework.WalletData; import org.lndroid.framework.client.IPluginClient; import org.lndroid.framework.common.IPluginData; import org.lndroid.framework.defaults.DefaultPlugins; import org.lndroid.framework.usecases.GetData; public class GetWalletInfo extends GetData<WalletData.WalletInfo, Long> { public GetWalletInfo(IPluginClient client){ super(client, DefaultPlugins.GET_WALLET_INFO); } @Override protected WalletData.WalletInfo getData(IPluginData in) { in.assignDataType(WalletData.WalletInfo.class); try { return in.getData(); } catch (IOException e) { return null; } } @Override protected Type getRequestType() { return WalletData.GetRequestLong.class; } }
[ "brugeman.artur@gmail.com" ]
brugeman.artur@gmail.com
5185a58f62e995082b6dfcc2c7e234064cda215b
aafdc711689797a76bada418d022714495b7894c
/Workspaces/intelij/work/AE_SEM_CS_Interface/ESPInterface/src/main/java/net/aconite/affina/espinterface/workflow/engine/StandardWorkflow.java
506a92e668d5702158df084a53232750d0bf64f0
[]
no_license
wakmo/WakWork
07561a1f9d7e089b6ae6a59c33d4187a033ddfbc
b062b35f71721b9d10ca2cf93cc5740e277cb001
refs/heads/master
2020-06-04T10:02:31.843536
2014-09-16T13:56:14
2014-09-16T13:56:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,321
java
package net.aconite.affina.espinterface.workflow.engine; /** * User: wakkir * Date: 07/03/14 * Time: 23:23 */ import java.util.ArrayList; import java.util.List; import java.util.Map; import net.aconite.affina.espinterface.workflow.context.StandardContext; import net.aconite.affina.espinterface.workflow.service.IContext; import net.aconite.affina.espinterface.workflow.service.IWorkflow; import net.aconite.affina.espinterface.workflow.service.IWorkflowAction; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class StandardWorkflow implements IWorkflow//, ApplicationContextAware { private static final Logger logger = LoggerFactory.getLogger(StandardWorkflow.class.getName()); private Map<String, List<IWorkflowAction>> workflowActions; @Override public List<Object> processWorkflow(String workflofName, Map<String, Object> parameters) { List<Object> objList = new ArrayList<Object>(); IContext context = new StandardContext(parameters); List<IWorkflowAction> actions = getWorkflowActions(workflofName); for (IWorkflowAction action : actions) { try { objList.add(action.doAction(context)); } catch (Exception e) { StringBuilder message = new StringBuilder("Failed to complete action:" + action.toString()); message.append('\n'); message.append(e.getMessage()); logger.error(message.toString()); return objList; } } return objList; } private List<IWorkflowAction> getWorkflowActions(String actionName) { List<IWorkflowAction> actions = workflowActions.get(actionName); if (actions == null || actions.isEmpty()) { logger.error("There is no defined action for " + actionName); throw new IllegalArgumentException("There is no defined action for " + actionName); } return actions; } // Getter/Setter public Map<String, List<IWorkflowAction>> getWorkflowActions() { return workflowActions; } public void setWorkflowActions(Map<String, List<IWorkflowAction>> workflowActions) { this.workflowActions = workflowActions; } }
[ "wakkir@yahoo.com" ]
wakkir@yahoo.com
9529d6b5e5f4aebc9dc01de5a310a6fda312fc2a
ab28d71738209b4c020bfa6505093f89cc59640f
/src/main/java/ru/javawebinar/topjava/util/DateTimeUtil.java
fccbc9b4ddcf2fd863f70694c93d1223d6d7d27c
[]
no_license
iizdebski/W4
4c6f327eaaa918ca982b299fcad33d5f924d6aee
8545c5d5b9ebd8242455153971b44095b65116ec
refs/heads/master
2022-09-30T10:04:36.758786
2019-10-10T10:33:57
2019-10-10T10:33:57
214,154,189
0
0
null
2022-09-08T01:03:13
2019-10-10T10:31:55
Java
UTF-8
Java
false
false
1,576
java
package ru.javawebinar.topjava.util; import org.springframework.lang.Nullable; import org.springframework.util.StringUtils; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; import java.time.format.DateTimeFormatter; import java.util.Date; public class DateTimeUtil { private static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"); // DataBase doesn't support LocalDate.MIN/MAX private static final LocalDate MIN_DATE = LocalDate.of(1, 1, 1); private static final LocalDate MAX_DATE = LocalDate.of(3000, 1, 1); private DateTimeUtil(){ } public static LocalDateTime adjustStartDateTime(LocalDate localDate) { return adjustDateTime(localDate, MIN_DATE, LocalTime.MIN); } public static LocalDateTime adjustEndDateTime(LocalDate localDate) { return adjustDateTime(localDate, MAX_DATE, LocalTime.MAX); } private static LocalDateTime adjustDateTime(LocalDate localDate, LocalDate defaultDate, LocalTime adjustTime) { return LocalDateTime.of(localDate != null ? localDate : defaultDate, adjustTime); } public static String toString(LocalDateTime ldt) { return ldt == null ? "" : ldt.format(DATE_TIME_FORMATTER); } public static LocalDate parseLocalDate(@Nullable String str){ return StringUtils.isEmpty(str) ? null : LocalDate.parse(str); } public static LocalTime parseLocalTime(@Nullable String str){ return StringUtils.isEmpty(str) ? null : LocalTime.parse(str); } }
[ "iizdepskyy112@gmail.com" ]
iizdepskyy112@gmail.com
cdab5088681002dd2aaa48175a4b63bccce74436
16a2a86288141bf93f0aaa69477ac85c37f73314
/spark-gremlin/src/main/java/org/apache/tinkerpop/gremlin/spark/process/computer/SparkMessenger.java
a3b11c86c95719db06cd287712ceac7a7e83a18f
[ "Apache-2.0", "MIT" ]
permissive
leemit/incubator-tinkerpop
89852da8afcdc9bcb807c02c07937295b1809661
be3ebc194e7f2975b8a3d4ac36ea0168e691923f
refs/heads/master
2021-01-20T19:06:39.197827
2016-02-11T19:44:59
2016-02-11T19:44:59
51,625,528
0
0
null
2016-02-13T01:30:06
2016-02-13T00:38:07
Java
UTF-8
Java
false
false
3,796
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.tinkerpop.gremlin.spark.process.computer; import org.apache.tinkerpop.gremlin.process.computer.MessageScope; import org.apache.tinkerpop.gremlin.process.computer.Messenger; import org.apache.tinkerpop.gremlin.process.traversal.Traversal; import org.apache.tinkerpop.gremlin.process.traversal.step.map.VertexStep; import org.apache.tinkerpop.gremlin.process.traversal.step.sideEffect.StartStep; import org.apache.tinkerpop.gremlin.process.traversal.util.TraversalHelper; import org.apache.tinkerpop.gremlin.structure.Direction; import org.apache.tinkerpop.gremlin.structure.Edge; import org.apache.tinkerpop.gremlin.structure.Vertex; import org.apache.tinkerpop.gremlin.util.iterator.IteratorUtils; import scala.Tuple2; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /** * @author Marko A. Rodriguez (http://markorodriguez.com) */ public final class SparkMessenger<M> implements Messenger<M> { private Vertex vertex; private Iterable<M> incomingMessages; private List<Tuple2<Object, M>> outgoingMessages = new ArrayList<>(); public void setVertexAndIncomingMessages(final Vertex vertex, final Iterable<M> incomingMessages) { this.vertex = vertex; this.incomingMessages = incomingMessages; this.outgoingMessages = new ArrayList<>(); } public List<Tuple2<Object, M>> getOutgoingMessages() { return this.outgoingMessages; } @Override public Iterator<M> receiveMessages() { return IteratorUtils.removeOnNext(this.incomingMessages.iterator()); } @Override public void sendMessage(final MessageScope messageScope, final M message) { if (messageScope instanceof MessageScope.Local) { final MessageScope.Local<M> localMessageScope = (MessageScope.Local) messageScope; final Traversal.Admin<Vertex, Edge> incidentTraversal = SparkMessenger.setVertexStart(localMessageScope.getIncidentTraversal().get(), this.vertex); final Direction direction = SparkMessenger.getOppositeDirection(incidentTraversal); incidentTraversal.forEachRemaining(edge -> this.outgoingMessages.add(new Tuple2<>(edge.vertices(direction).next().id(), message))); } else { ((MessageScope.Global) messageScope).vertices().forEach(v -> this.outgoingMessages.add(new Tuple2<>(v.id(), message))); } } /////////// private static <T extends Traversal.Admin<Vertex, Edge>> T setVertexStart(final Traversal<Vertex, Edge> incidentTraversal, final Vertex vertex) { incidentTraversal.asAdmin().addStep(0, new StartStep<>(incidentTraversal.asAdmin(), vertex)); return (T) incidentTraversal; } private static Direction getOppositeDirection(final Traversal.Admin<Vertex, Edge> incidentTraversal) { final VertexStep step = TraversalHelper.getLastStepOfAssignableClass(VertexStep.class, incidentTraversal).get(); return step.getDirection().opposite(); } }
[ "okrammarko@gmail.com" ]
okrammarko@gmail.com
7bc6bffbc9510774206631cfa007ff31e2f14379
dc5459ac2dfd8647cdbed41b2f41607f7007e660
/app/src/main/java/com/vvm/sh/repositorios/VersaoAppRepositorio.java
f3840a6a8da3329637004e6e57e92b60441df6ba
[]
no_license
ArtemisSoftware/VVM-SH
5961540712193620291ecf3427181579bb6229b9
d433a6821bcd4c4f9a41ab25f664e72251b83d63
refs/heads/master
2021-07-05T06:57:05.535395
2021-02-22T15:53:14
2021-02-22T15:54:10
237,837,228
0
0
null
null
null
null
UTF-8
Java
false
false
633
java
package com.vvm.sh.repositorios; import androidx.annotation.NonNull; import com.vvm.sh.api.SegurancaAlimentarApi; import com.vvm.sh.api.SegurancaHigieneApi; import com.vvm.sh.api.modelos.VersaoApp; import io.reactivex.Single; public class VersaoAppRepositorio { private final SegurancaHigieneApi api; public VersaoAppRepositorio(@NonNull SegurancaHigieneApi api) { this.api = api; } /** * Metodo que permite obter a atualizacao da app * @return a versao */ public Single<VersaoApp> obterAtualizacao() { return api.obterAtualizacao(SegurancaAlimentarApi.HEADER); } }
[ "gustavo.maia@b2b.com.pt" ]
gustavo.maia@b2b.com.pt
be3b3f0a680f978af044130e887e9bac308ac8a6
d2e4e2bf91acc262c600817689f301adb11cd21b
/珠海市数字档案馆/档案资源管理系统/iarchives/src/main/java/com/wisdom/web/repository/PlaceOrderRepository.java
e109315e506e5ccf997f7ec1eb736328f4727b4f
[]
no_license
moweipeng32577/xdarchives
e94969964f843ae5cebca5ab8f22c93a80f08d97
a9fcc8d2dbd964206b378414aeea8e28a3759ffd
refs/heads/master
2023-03-21T13:30:47.729610
2021-03-16T07:31:41
2021-03-16T07:31:41
348,184,413
0
0
null
null
null
null
UTF-8
Java
false
false
1,892
java
package com.wisdom.web.repository; import com.wisdom.web.entity.Tb_place_order; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Query; import java.util.List; /** * Created by Administrator on 2020/4/28. */ public interface PlaceOrderRepository extends JpaRepository<Tb_place_order,String>,JpaSpecificationExecutor<Tb_place_order> { Tb_place_order findById(String id); List<Tb_place_order> findByPlaceid(String placeid); //根据placeManger的id查找Tb_place_order @Query(value = "select t from Tb_place_order t where t.placeid = ?1 and t.state!=?2") Page<Tb_place_order> findByPlaceIds(String placeid,String state, Pageable pageable); List<Tb_place_order> findByIdIn(String[] Orderids); List<Tb_place_order> findByPlaceidInAndState(String[] ids,String state); int deleteByIdIn(String[] orderids); @Query(value = "select b from Tb_place_order b where b.ordercode in (select msgid from Tb_flows where taskid=?1)") Tb_place_order getPlaceOrderByTaskid(String taskid); @Query(value = "select b from Tb_place_order b where b.id=?1 and b.returnstate=?2 and b.state=?3") Tb_place_order getPlaceOrderByIdAndReturnstateAndState(String id,String returnstate,String state); List<Tb_place_order> findByStateInOrderByOrdertimeDesc(String[] state); @Query(value = "select t from Tb_place_order t where t.placeid = ?1 and (( t.starttime >= ?2 and t.starttime < ?3 ) or ( t.endtime<= ?3 and t.endtime > ?2) or ( t.starttime < ?2 and t.endtime > ?3 )) and t.state!=?4") Page<Tb_place_order> findByPlaceIdsAndTimelimit(String placeid,String starttime,String endtime,String state, Pageable pageable); }
[ "347020380@qq.com" ]
347020380@qq.com
efa074d56b925890ead01c72138993e1fc7d14c6
1c61e49225691a4c46cac4997cbf40cf0d3f8964
/demo-full-authen-in-gateway-and-communication-with-JSON-RPC/service-config/src/main/java/com/lethanh98/config/ConfigApp.java
7dff18e49c8d1c4cdd83eb79916504cac609870f
[]
no_license
solitarysp/demo-microservice
e4d70bae371101be4de56d196ab04cdbc153b86b
974e59b69cc725733678dee18c76045633ed39ec
refs/heads/master
2020-09-04T07:47:54.855241
2019-12-31T11:03:01
2019-12-31T11:03:01
219,688,400
0
0
null
null
null
null
UTF-8
Java
false
false
573
java
package com.lethanh98.config; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.cloud.config.server.EnableConfigServer; /** * author lethanh9398 <p> * email lethanh9398@gmail.com <p> * create Date 12/10/2019 9:14 AM <p> * document : <p> * <p>- vi : * <p>- en : */ @SpringBootApplication @EnableConfigServer public class ConfigApp { public static void main(String[] args) { new SpringApplicationBuilder(ConfigApp.class).run(args); } }
[ "lethanh9398@gmail.com" ]
lethanh9398@gmail.com
ca421ae7410ba6b5a9e6063b8ef2b539d616ffd0
eec13544246a39cfe64aa8a10089dd5db7adc1a9
/src/main/java/com/easyway/java/basic/syncdb/Syncdb.java
b98890a9fe7ecf78a51495c82b2995a1d02a6615
[]
no_license
LonggangBai/java-basic
323ba811f3afacc0977f4d1ba266088ec492805f
f761218b596558d9696eb04a18143529f0984c85
refs/heads/master
2022-07-06T16:50:17.064997
2019-11-25T07:09:44
2019-11-25T07:09:44
29,512,547
0
1
null
2022-06-29T19:30:20
2015-01-20T04:56:44
Java
UTF-8
Java
false
false
136
java
/** * */ package com.easyway.java.basic.syncdb; /** * @author longgangbai * 2015-1-20 下午4:03:06 */ public class Syncdb { }
[ "Administrator@WIN-20140718QRT" ]
Administrator@WIN-20140718QRT
50dea55a36399d1d7404129776e5a999af6dfc77
447520f40e82a060368a0802a391697bc00be96f
/apks/playstore_apps/de_number26_android/source/com/google/auto/value/processor/SimpleNameFunction.java
bb78a5c89487407f9b45f74c404f806331b935c7
[ "Apache-2.0" ]
permissive
iantal/AndroidPermissions
7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465
d623b732734243590b5f004d167e542e2e2ae249
refs/heads/master
2023-07-19T01:29:26.689186
2019-09-30T19:01:42
2019-09-30T19:01:42
107,239,248
0
0
Apache-2.0
2023-07-16T07:41:38
2017-10-17T08:22:57
null
UTF-8
Java
false
false
216
java
package com.google.auto.value.processor; import b.a.a.a.b.a.d; import javax.lang.model.element.Element; enum SimpleNameFunction implements d<Element, String> { INSTANCE; private SimpleNameFunction() {} }
[ "antal.micky@yahoo.com" ]
antal.micky@yahoo.com
b6d2c238210937a81722193ffd8312b6e727a5f9
c35ece4cf94dfbb21b00564109db1360858b6a05
/CloudTrack/src/main/java/com/ly/cloudstorage/utils/Logger.java
9e1769f63490fb7f01c587b77e86c410e1033387
[]
no_license
haikuowuya/MobileSafe
a45fbbf976e0eff96056f9cb332f72d04ca7eb4a
f37d274b78db2d0f2f3a6dbf9688307cbff68b68
refs/heads/master
2021-01-18T12:10:56.928137
2015-05-03T15:26:27
2015-05-03T15:26:27
40,104,214
1
0
null
2015-08-03T03:59:20
2015-08-03T03:59:20
null
UTF-8
Java
false
false
1,761
java
package com.ly.cloudstorage.utils; import android.util.Log; public class Logger { private static final int VERBOSE = 5; private static final int DEBUG = 4; private static final int INFO = 3; private static final int WARN = 2; private static final int ERROR = 1; public static int DEBUG_LEVEL = 6;// 屏蔽log,修改为0 public static int v(String tag, String msg) { if (DEBUG_LEVEL > VERBOSE) { return Log.v(tag, msg); } else { return 0; } } public static int v(String tag, String msg, Throwable e) { if (DEBUG_LEVEL > VERBOSE) { return Log.v(tag, msg, e); } else { return 0; } } public static int d(String tag, String msg) { if (DEBUG_LEVEL > DEBUG) { return Log.d(tag, msg); } else { return 0; } } public static int d(String tag, String msg, Throwable e) { if (DEBUG_LEVEL > DEBUG) { return Log.d(tag, msg, e); } else { return 0; } } public static int i(String tag, String msg) { if (DEBUG_LEVEL > INFO) { return Log.i(tag, msg); } else { return 0; } } public static int i(String tag, String msg, Throwable e) { if (DEBUG_LEVEL > INFO) { return Log.i(tag, msg, e); } else { return 0; } } public static int w(String tag, String msg) { if (DEBUG_LEVEL > WARN) { return Log.w(tag, msg); } else { return 0; } } public static int w(String tag, String msg, Throwable e) { if (DEBUG_LEVEL > WARN) { return Log.w(tag, msg, e); } else { return 0; } } public static int e(String tag, String msg) { if (DEBUG_LEVEL > ERROR) { return Log.e(tag, msg); } else { return 0; } } public static int e(String tag, String msg, Throwable e) { if (DEBUG_LEVEL > ERROR) { return Log.e(tag, msg, e); } else { return 0; } } }
[ "986417576@qq.com" ]
986417576@qq.com
1245a307636150d29e5246ab916ae5ed6a2f6f2b
694db6a1cde437ec6763dd045434417f7ad8b8e5
/src/main/java/com/conquestreforged/core/init/InitEventsServer.java
12bb0596441c8e2252bb273c0860df262bb05c0e
[]
no_license
reevadere-codes/ReforgedCore
0dd0912d8bbacff3d78242763f20502c2c450203
fe171912b16cdf5297d77ece2bc6aa23d3672014
refs/heads/master
2020-09-21T09:35:52.699544
2019-10-15T21:03:43
2019-10-15T21:03:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,567
java
package com.conquestreforged.core.init; import com.conquestreforged.core.asset.pack.PackFinder; import com.conquestreforged.core.proxy.Proxies; import com.conquestreforged.core.proxy.Side; import com.conquestreforged.core.proxy.impl.ServerProxy; import com.conquestreforged.core.util.Log; import net.minecraft.profiler.IProfiler; import net.minecraft.resources.IFutureReloadListener; import net.minecraft.resources.IResourceManager; import net.minecraft.resources.ResourcePackType; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.server.FMLServerAboutToStartEvent; import net.minecraftforge.fml.event.server.FMLServerStartedEvent; import net.minecraftforge.fml.event.server.FMLServerStoppingEvent; import java.io.File; import java.io.IOException; import java.util.concurrent.CompletableFuture; import java.util.concurrent.Executor; @Mod.EventBusSubscriber public class InitEventsServer { @SubscribeEvent public static void starting(FMLServerAboutToStartEvent event) { Log.info("server init"); Proxies.set(Side.SERVER, new ServerProxy(event.getServer()).registerListeners()); PackFinder.getInstance(ResourcePackType.SERVER_DATA).register(); } @SubscribeEvent public static void started(FMLServerStartedEvent event) { Log.info("server started"); Init.runStage(Stage.SERVER_STARTED); } @SubscribeEvent public static void stopping(FMLServerStoppingEvent event) { Log.info("server stopping"); } }
[ "dags@dags.me" ]
dags@dags.me
90dd430a88b142ec0caca6afdb36a3eb3e5265de
231a828518021345de448c47c31f3b4c11333d0e
/src/pdf/bouncycastle/math/ec/custom/sec/SecT409K1Curve.java
675f4fc13416c924eabb050e114afd3ea667c353
[]
no_license
Dynamit88/PDFBox-Java
f39b96b25f85271efbb3a9135cf6a15591dec678
480a576bc97fc52299e1e869bb80a1aeade67502
refs/heads/master
2020-05-24T14:58:29.287880
2019-05-18T04:25:21
2019-05-18T04:25:21
187,312,933
0
0
null
null
null
null
UTF-8
Java
false
false
3,936
java
package pdf.bouncycastle.math.ec.custom.sec; import java.math.BigInteger; import pdf.bouncycastle.math.ec.ECCurve; import pdf.bouncycastle.math.ec.ECCurve.AbstractF2m; import pdf.bouncycastle.math.ec.ECFieldElement; import pdf.bouncycastle.math.ec.ECLookupTable; import pdf.bouncycastle.math.ec.ECMultiplier; import pdf.bouncycastle.math.ec.ECPoint; import pdf.bouncycastle.math.ec.WTauNafMultiplier; import pdf.bouncycastle.math.raw.Nat448; import pdf.bouncycastle.util.encoders.Hex; public class SecT409K1Curve extends AbstractF2m { private static final int SecT409K1_DEFAULT_COORDS = COORD_LAMBDA_PROJECTIVE; protected SecT409K1Point infinity; public SecT409K1Curve() { super(409, 87, 0, 0); this.infinity = new SecT409K1Point(this, null, null); this.a = fromBigInteger(BigInteger.valueOf(0)); this.b = fromBigInteger(BigInteger.valueOf(1)); this.order = new BigInteger(1, Hex.decode("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE5F83B2D4EA20400EC4557D5ED3E3E7CA5B4B5C83B8E01E5FCF")); this.cofactor = BigInteger.valueOf(4); this.coord = SecT409K1_DEFAULT_COORDS; } protected ECCurve cloneCurve() { return new SecT409K1Curve(); } public boolean supportsCoordinateSystem(int coord) { switch (coord) { case COORD_LAMBDA_PROJECTIVE: return true; default: return false; } } protected ECMultiplier createDefaultMultiplier() { return new WTauNafMultiplier(); } public int getFieldSize() { return 409; } public ECFieldElement fromBigInteger(BigInteger x) { return new SecT409FieldElement(x); } protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, boolean withCompression) { return new SecT409K1Point(this, x, y, withCompression); } protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) { return new SecT409K1Point(this, x, y, zs, withCompression); } public ECPoint getInfinity() { return infinity; } public boolean isKoblitz() { return true; } public int getM() { return 409; } public boolean isTrinomial() { return true; } public int getK1() { return 87; } public int getK2() { return 0; } public int getK3() { return 0; } public ECLookupTable createCacheSafeLookupTable(ECPoint[] points, int off, final int len) { final int FE_LONGS = 7; final long[] table = new long[len * FE_LONGS * 2]; { int pos = 0; for (int i = 0; i < len; ++i) { ECPoint p = points[off + i]; Nat448.copy64(((SecT409FieldElement)p.getRawXCoord()).x, 0, table, pos); pos += FE_LONGS; Nat448.copy64(((SecT409FieldElement)p.getRawYCoord()).x, 0, table, pos); pos += FE_LONGS; } } return new ECLookupTable() { public int getSize() { return len; } public ECPoint lookup(int index) { long[] x = Nat448.create64(), y = Nat448.create64(); int pos = 0; for (int i = 0; i < len; ++i) { long MASK = ((i ^ index) - 1) >> 31; for (int j = 0; j < FE_LONGS; ++j) { x[j] ^= table[pos + j] & MASK; y[j] ^= table[pos + FE_LONGS + j] & MASK; } pos += (FE_LONGS * 2); } return createRawPoint(new SecT409FieldElement(x), new SecT409FieldElement(y), false); } }; } }
[ "vtuse@mail.ru" ]
vtuse@mail.ru
e939e30535b477544d4796b1ec82b0e882b94cb0
1a2de6cfe062dc756137ccff77a19e48109e185d
/common/src/main/java/com/blockadm/common/bean/params/AddLiveLessonsParams.java
7dbc785b7b7e69d4b23794ea3630d7db28601114
[]
no_license
KrisQin/NewsFlashProject
e4f36ef94386ef99ad3e86a55a9e8903a56e1309
f1132823187268ac367a936247b198058fdc00bb
refs/heads/master
2020-06-18T00:30:56.731856
2019-07-10T09:49:13
2019-07-10T09:49:13
196,110,762
1
0
null
null
null
null
UTF-8
Java
false
false
3,018
java
package com.blockadm.common.bean.params; /** * Created by Kris on 2019/5/20 * * @Describe TODO { } */ public class AddLiveLessonsParams { /** * accessPwd : 访问密码 * accessStatus : 0 免费、1:付费、2:密码 * content : 简介 * coverImgs : 封面图 * lessonsTime : 开课时间 * liveStatus : 0 直播中、1:预备中(未开始)、2:已结束 默认1 * money : 0 * status : 0 上架、1:下架、2:删除 默认 1 * sysTypeId : 类型 * title : 标题 */ private String accessPwd; private String accessStatus; private String content; private String coverImgs; private String lessonsTime; private String liveStatus; private int money; private String status; private String sysTypeId; private String title; public AddLiveLessonsParams(String accessPwd, String accessStatus, String content, String coverImgs, String lessonsTime, String liveStatus, int money, String status, String sysTypeId, String title) { this.accessPwd = accessPwd; this.accessStatus = accessStatus; this.content = content; this.coverImgs = coverImgs; this.lessonsTime = lessonsTime; this.liveStatus = liveStatus; this.money = money; this.status = status; this.sysTypeId = sysTypeId; this.title = title; } public String getAccessPwd() { return accessPwd; } public void setAccessPwd(String accessPwd) { this.accessPwd = accessPwd; } public String getAccessStatus() { return accessStatus; } public void setAccessStatus(String accessStatus) { this.accessStatus = accessStatus; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public String getCoverImgs() { return coverImgs; } public void setCoverImgs(String coverImgs) { this.coverImgs = coverImgs; } public String getLessonsTime() { return lessonsTime; } public void setLessonsTime(String lessonsTime) { this.lessonsTime = lessonsTime; } public String getLiveStatus() { return liveStatus; } public void setLiveStatus(String liveStatus) { this.liveStatus = liveStatus; } public int getMoney() { return money; } public void setMoney(int money) { this.money = money; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public String getSysTypeId() { return sysTypeId; } public void setSysTypeId(String sysTypeId) { this.sysTypeId = sysTypeId; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } }
[ "qmdluck@163.com" ]
qmdluck@163.com
eee4d64aeace9840f0c1aafacc4fa57cfddcb030
76e574615c61dc1b967696ae526d73123beebc05
/ksghi-manageSystem/src/main/java/com/itech/ups/app/business/ccxbd/application/service/CcxbdService.java
7eb2152c453b8d0b7c9e004838c1e45e04dcd880
[]
no_license
happyjianguo/ksghi
10802f386d82b97e530bfcf3a4f765cb654a411c
6df11c7453883c7b0dd1763de5bb11ff02dba8ce
refs/heads/master
2022-11-08T18:54:06.289842
2020-05-17T08:23:47
2020-05-17T08:23:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
641
java
package com.itech.ups.app.business.ccxbd.application.service; import com.itech.ups.app.ccxbd.application.domain.Ccxbd; import com.itech.ups.app.business.ccxbd.action.CcxbdImportData; import java.util.List; import java.util.Map; public interface CcxbdService { public Ccxbd addCcxbd(Ccxbd ccxbd); public void addCcxbds(List<CcxbdImportData> list); public void deleteCcxbd(String id); public Ccxbd editCcxbd(Ccxbd ccxbd); public List<Ccxbd> findCcxbd(Map<String, Object> params, int rowStart, int rowEnd); public Ccxbd findCcxbdById(String id); public long findCcxbdCount(Map<String, Object> params); }
[ "weiliejun@163.com" ]
weiliejun@163.com
badf960b8d1dab6084f6fa34f03552985bf878f7
10f50940a4b940dcc5c8af940f0e4d411c43f121
/src/main/java/com/github/davidmoten/rx/Actions.java
ed39e1abb44e3cd6f6a1215e405037f9966d7773
[ "Apache-2.0" ]
permissive
pranaypatel512/rxjava-extras
9d6b924de07baeb16de6bb1f0ad0442c53c67456
2d1c8dda3a3f14c6f93ad896bf86a1cb722a3677
refs/heads/master
2021-01-16T00:10:11.016147
2016-03-16T07:22:43
2016-03-16T07:22:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,005
java
package com.github.davidmoten.rx; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicLong; import java.util.concurrent.atomic.AtomicReference; import rx.Subscription; import rx.functions.Action0; import rx.functions.Action1; import rx.functions.Action2; import rx.functions.Action3; public final class Actions { private Actions() { //prevent instantiation } public static Action1<Integer> setAtomic(final AtomicInteger a) { return new Action1<Integer>() { @Override public void call(Integer t) { a.set(t); } }; } public static Action1<Long> setAtomic(final AtomicLong a) { return new Action1<Long>() { @Override public void call(Long t) { a.set(t); } }; } public static Action1<Boolean> setAtomic(final AtomicBoolean a) { return new Action1<Boolean>() { @Override public void call(Boolean t) { a.set(t); } }; } public static <T> Action1<T> setAtomic(final AtomicReference<T> a) { return new Action1<T>() { @Override public void call(T t) { a.set(t); } }; } private static class HolderDoNothing0 { static final Action0 INSTANCE = new Action0() { @Override public void call() { // do nothing } }; } public static Action0 doNothing0() { return HolderDoNothing0.INSTANCE; } private static class HolderDoNothing1 { static final Action1<Object> INSTANCE = new Action1<Object>() { @Override public void call(Object t) { // do Nothing } }; } @SuppressWarnings("unchecked") public static <T> Action1<T> doNothing1() { return (Action1<T>) HolderDoNothing1.INSTANCE; } private static class HolderDoNothing2 { static final Action2<Object, Object> INSTANCE = new Action2<Object, Object>() { @Override public void call(Object t, Object t2) { // do Nothing } }; } @SuppressWarnings("unchecked") public static <T, R> Action2<T, R> doNothing2() { return (Action2<T, R>) HolderDoNothing2.INSTANCE; } private static class HolderDoNothing3 { static final Action3<Object, Object, Object> INSTANCE = new Action3<Object, Object, Object>() { @Override public void call(Object t, Object t2, Object t3) { // do Nothing } }; } @SuppressWarnings("unchecked") public static <T, R, S> Action3<T, R, S> doNothing3() { return (Action3<T, R, S>) HolderDoNothing3.INSTANCE; } public static Action0 unsubscribe(final Subscription subscription) { return new Action0() { @Override public void call() { subscription.unsubscribe(); } }; } public static <T> Action1<T> increment1(final AtomicInteger count) { return new Action1<T>() { @Override public void call(T t) { count.incrementAndGet(); } }; } public static Action0 increment0(final AtomicInteger count) { return new Action0() { @Override public void call() { count.incrementAndGet(); } }; } public static <T> Action1<T> decrement1(final AtomicInteger count) { return new Action1<T>() { @Override public void call(T t) { count.incrementAndGet(); } }; } public static Action0 decrement0(final AtomicInteger count) { return new Action0() { @Override public void call() { count.incrementAndGet(); } }; } public static Action1<Long> addTo(final AtomicLong value) { return new Action1<Long>() { @Override public void call(Long t) { value.addAndGet(t); } }; } public static <T> Action1<T> println() { return new Action1<T>() { @Override public void call(T t) { System.out.println(t); } }; } public static <T> Action1<T> setToTrue1(final AtomicBoolean ref) { return new Action1<T>() { @Override public void call(T t) { ref.set(true); } }; } public static Action0 setToTrue0(final AtomicBoolean ref) { return new Action0() { @Override public void call() { ref.set(true); } }; } }
[ "davidmoten@gmail.com" ]
davidmoten@gmail.com
ff8a8b1963be16dd0ea2b81a332ef6bb0fae17f2
6a26cc43997dfbe59d390644cf73bcbfb1aa6730
/SpaceInvaders/src/main/java/com/almasb/fxglgames/spaceinvaders/components/OwnerComponent.java
4f318e3d9a5f7bbd1bdde23f6ca120c86f52bb18
[ "MIT" ]
permissive
AlmasB/FXGLGames
c45ad85d4e004920f8c879ffe626ff32b2fb4ca1
3a3e7983b31d0d734d7359ceefd52560fb26db77
refs/heads/master
2023-08-31T07:52:31.969830
2023-08-26T09:32:56
2023-08-26T09:32:56
48,744,267
787
399
MIT
2023-08-26T09:32:58
2015-12-29T11:24:49
Java
UTF-8
Java
false
false
1,519
java
/* * The MIT License (MIT) * * FXGL - JavaFX Game Library * * Copyright (c) 2015-2017 AlmasB (almaslvl@gmail.com) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package com.almasb.fxglgames.spaceinvaders.components; import com.almasb.fxgl.entity.components.ObjectComponent; /** * @author Almas Baimagambetov (AlmasB) (almaslvl@gmail.com) */ public class OwnerComponent extends ObjectComponent<Object> { public OwnerComponent(Object entity) { super(entity); } }
[ "almaslvl@gmail.com" ]
almaslvl@gmail.com
99365fc431f84146eb177cc07223b25afa8ff249
b66bdee811ed0eaea0b221fea851f59dd41e66ec
/src/com/urbanairship/UrbanAirshipProvider.java
daa5e5b8095783736fbe51508a7b0a4790cac96c
[]
no_license
reverseengineeringer/com.grubhub.android
3006a82613df5f0183e28c5e599ae5119f99d8da
5f035a4c036c9793483d0f2350aec2997989f0bb
refs/heads/master
2021-01-10T05:08:31.437366
2016-03-19T20:41:23
2016-03-19T20:41:23
54,286,207
0
0
null
null
null
null
UTF-8
Java
false
false
6,579
java
package com.urbanairship; import android.content.ContentProvider; import android.content.ContentValues; import android.content.Context; import android.content.UriMatcher; import android.database.Cursor; import android.net.Uri; import com.urbanairship.util.DataManager; import java.util.List; public final class UrbanAirshipProvider extends ContentProvider { public static final String DELETE_ACTION = "delete"; public static final String INSERT_ACTION = "insert"; public static final String KEYS_DELIMITER = "|"; private static final int KEYS_LOCATION = 1; private static final UriMatcher MATCHER = new UriMatcher(-1); static final String MULTIPLE_SUFFIX = "vnd.urbanairship.cursor.dir/"; static final String PREFERENCES_CONTENT_ITEM_TYPE = "vnd.urbanairship.cursor.item/preference"; static final String PREFERENCES_CONTENT_TYPE = "vnd.urbanairship.cursor.dir/preference"; private static final int PREFERENCES_URI_TYPE = 2; private static final int PREFERENCE_URI_TYPE = 3; private static final int RICHPUSH_MESSAGES_URI_TYPE = 0; private static final int RICHPUSH_MESSAGE_URI_TYPE = 1; static final String RICH_PUSH_CONTENT_ITEM_TYPE = "vnd.urbanairship.cursor.item/richpush"; static final String RICH_PUSH_CONTENT_TYPE = "vnd.urbanairship.cursor.dir/richpush"; static final String SINGLE_SUFFIX = "vnd.urbanairship.cursor.item/"; public static final String UPDATE_ACTION = "update"; private static String authorityString; private UrbanAirshipProvider.DatabaseModel preferencesModel; private UrbanAirshipProvider.DatabaseModel richPushModel; public static String getAuthorityString() { if (authorityString == null) { String str = UAirship.getPackageName(); authorityString = str + ".urbanairship.provider"; } return authorityString; } private UrbanAirshipProvider.DatabaseModel getDatabaseModel(Uri paramUri) { switch (MATCHER.match(paramUri)) { default: throw new IllegalArgumentException("Invalid URI: " + paramUri); case 0: case 1: return getRichPushModel(); } return getPreferencesModel(); } private String[] getKeys(Uri paramUri) { try { paramUri = ((String)paramUri.getPathSegments().get(1)).split("\\|"); return paramUri; } catch (IndexOutOfBoundsException paramUri) {} return new String[0]; } public static Uri getPreferencesContentUri() { return Uri.parse("content://" + getAuthorityString() + "/preferences"); } private UrbanAirshipProvider.DatabaseModel getPreferencesModel() { if (preferencesModel == null) { preferencesModel = UrbanAirshipProvider.DatabaseModel.createPreferencesModel(getContext()); } return preferencesModel; } public static Uri getRichPushContentUri() { return Uri.parse("content://" + getAuthorityString() + "/richpush"); } private UrbanAirshipProvider.DatabaseModel getRichPushModel() { if (richPushModel == null) { richPushModel = UrbanAirshipProvider.DatabaseModel.createRichPushModel(getContext()); } return richPushModel; } static void init() { MATCHER.addURI(getAuthorityString(), "richpush", 0); MATCHER.addURI(getAuthorityString(), "richpush/*", 1); MATCHER.addURI(getAuthorityString(), "preferences", 2); MATCHER.addURI(getAuthorityString(), "preferences/*", 3); } public int bulkInsert(Uri paramUri, ContentValues[] paramArrayOfContentValues) { paramUri = getDatabaseModel(paramUri); paramArrayOfContentValues = dataManager.bulkInsert(table, paramArrayOfContentValues); String[] arrayOfString = new String[paramArrayOfContentValues.size()]; int i = 0; while (i < arrayOfString.length) { arrayOfString[i] = ((ContentValues)paramArrayOfContentValues.get(i)).getAsString(notificationColumnId); i += 1; } paramUri.notifyDatabaseChange(getContext(), arrayOfString, "insert"); return paramArrayOfContentValues.size(); } public int delete(Uri paramUri, String paramString, String[] paramArrayOfString) { UrbanAirshipProvider.DatabaseModel localDatabaseModel = getDatabaseModel(paramUri); int i = dataManager.delete(table, paramString, paramArrayOfString); localDatabaseModel.notifyDatabaseChange(getContext(), getKeys(paramUri), "delete"); return i; } public String getType(Uri paramUri) { switch (MATCHER.match(paramUri)) { default: throw new IllegalArgumentException("Invalid Uri: " + paramUri); case 0: return "vnd.urbanairship.cursor.dir/richpush"; case 1: return "vnd.urbanairship.cursor.item/richpush"; case 2: return "vnd.urbanairship.cursor.dir/preference"; } return "vnd.urbanairship.cursor.item/preference"; } public Uri insert(Uri paramUri, ContentValues paramContentValues) { UrbanAirshipProvider.DatabaseModel localDatabaseModel = getDatabaseModel(paramUri); if (dataManager.insert(table, paramContentValues) != -1L) { paramContentValues = paramContentValues.getAsString(notificationColumnId); localDatabaseModel.notifyDatabaseChange(getContext(), new String[] { paramContentValues }, "insert"); return Uri.withAppendedPath(paramUri, paramContentValues); } return null; } public boolean onCreate() { return true; } public Cursor query(Uri paramUri, String[] paramArrayOfString1, String paramString1, String[] paramArrayOfString2, String paramString2) { UrbanAirshipProvider.DatabaseModel localDatabaseModel = getDatabaseModel(paramUri); paramArrayOfString1 = dataManager.query(table, paramArrayOfString1, paramString1, paramArrayOfString2, paramString2); if (paramArrayOfString1 != null) { paramArrayOfString1.setNotificationUri(getContext().getContentResolver(), paramUri); } return paramArrayOfString1; } public void shutdown() { getRichPushModeldataManager.close(); getPreferencesModeldataManager.close(); } public int update(Uri paramUri, ContentValues paramContentValues, String paramString, String[] paramArrayOfString) { UrbanAirshipProvider.DatabaseModel localDatabaseModel = getDatabaseModel(paramUri); int i = dataManager.update(table, paramContentValues, paramString, paramArrayOfString); if (i != -1) { localDatabaseModel.notifyDatabaseChange(getContext(), getKeys(paramUri), "update"); } return i; } } /* Location: * Qualified Name: com.urbanairship.UrbanAirshipProvider * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
e511c8b06a015386eedbcaa7d334cf9c412adb63
68884f1d7df6612b8b02765fa024228be11ae0e7
/app/src/main/java/com/example/travelmantics/FirebaseUtility.java
603d662106edb90d8cab8029a66630772af16fa9
[]
no_license
SALMISAMIR/Travelmantics
dd968df50123bf581897cc896ffe8c5c0c278c85
59fffef0f1456420eca741d581aff8c4da62f48e
refs/heads/master
2020-06-30T03:37:45.297973
2019-08-05T23:53:22
2019-08-05T23:53:22
200,711,760
0
0
null
null
null
null
UTF-8
Java
false
false
2,453
java
package com.example.travelmantics; import android.app.Activity; import android.support.annotation.NonNull; import com.firebase.ui.auth.AuthUI; import com.google.firebase.auth.FirebaseAuth; import com.google.firebase.database.DatabaseReference; import com.google.firebase.database.FirebaseDatabase; import com.google.firebase.storage.FirebaseStorage; import com.google.firebase.storage.StorageReference; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class FirebaseUtility { private static final int RC_SIGN_IN = 123; public static FirebaseDatabase mFirebaseDatabase; public static DatabaseReference mDatabaseReference; public static FirebaseUtility firebaseUtility; public static FirebaseAuth mFirebaseAuth; public static FirebaseAuth.AuthStateListener mAuthListener; public static Activity caller; public static ArrayList<TravelDeal> mDeals; private FirebaseUtility(){} public static void openFbReference(String ref, final Activity callerActivity){ if(firebaseUtility==null){ firebaseUtility = new FirebaseUtility(); mFirebaseDatabase = FirebaseDatabase.getInstance(); mFirebaseAuth = FirebaseAuth.getInstance(); caller = callerActivity; mAuthListener = new FirebaseAuth.AuthStateListener() { @Override public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) { if(firebaseAuth.getCurrentUser()==null){ FirebaseUtility.signIn(); } } }; } mDeals = new ArrayList<>(); mDatabaseReference = mFirebaseDatabase.getReference().child(ref); } public static void attackListener(){ mFirebaseAuth.addAuthStateListener(mAuthListener); } public static void detachListener(){ mFirebaseAuth.removeAuthStateListener(mAuthListener); } private static void signIn(){ List<AuthUI.IdpConfig> providers = Arrays.asList( new AuthUI.IdpConfig.EmailBuilder().build(), new AuthUI.IdpConfig.GoogleBuilder().build()); caller. startActivityForResult( AuthUI.getInstance() .createSignInIntentBuilder() .setAvailableProviders(providers) .build(), RC_SIGN_IN); } }
[ "root@localhost.localdomain" ]
root@localhost.localdomain
d57767499a0fc1a7bf6b43e60545f0cd9a854bd7
6c54cef9b967db9afb823f09400a914755ad97ea
/BPMN_Modeler/src/org/netbeans/jbpmn/spec/TMessageFlowAssociation.java
89f3b8fa4f518855077f1f0418cc1249f0537546
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jGauravGupta/jBPMNSuite
2c05d9bde80bcdf092fca2a1243137bbcfbbaad8
2aec5ec66063f525834bfb48677aa9032ab0d879
refs/heads/master
2021-01-10T10:26:20.858429
2016-03-31T03:38:17
2016-03-31T03:38:17
52,782,538
6
1
null
null
null
null
UTF-8
Java
false
false
2,928
java
/** Copyright [2014] Gaurav Gupta * *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.netbeans.jbpmn.spec; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlType; import javax.xml.namespace.QName; /** * <p>Java class for tMessageFlowAssociation complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="tMessageFlowAssociation"> * <complexContent> * <extension base="{http://www.omg.org/spec/BPMN/20100524/MODEL}tBaseElement"> * <attribute name="innerMessageFlowRef" use="required" type="{http://www.w3.org/2001/XMLSchema}QName" /> * <attribute name="outerMessageFlowRef" use="required" type="{http://www.w3.org/2001/XMLSchema}QName" /> * <anyAttribute processContents='lax' namespace='##other'/> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "tMessageFlowAssociation") public class TMessageFlowAssociation extends TBaseElement { @XmlAttribute(required = true) protected QName innerMessageFlowRef; @XmlAttribute(required = true) protected QName outerMessageFlowRef; /** * Gets the value of the innerMessageFlowRef property. * * @return * possible object is * {@link QName } * */ public QName getInnerMessageFlowRef() { return innerMessageFlowRef; } /** * Sets the value of the innerMessageFlowRef property. * * @param value * allowed object is * {@link QName } * */ public void setInnerMessageFlowRef(QName value) { this.innerMessageFlowRef = value; } /** * Gets the value of the outerMessageFlowRef property. * * @return * possible object is * {@link QName } * */ public QName getOuterMessageFlowRef() { return outerMessageFlowRef; } /** * Sets the value of the outerMessageFlowRef property. * * @param value * allowed object is * {@link QName } * */ public void setOuterMessageFlowRef(QName value) { this.outerMessageFlowRef = value; } }
[ "gaurav.gupta.jc@gmail.com" ]
gaurav.gupta.jc@gmail.com
d4b2f8075b9a1c7bcf233728868a07c3d00a6769
8388d3009c0be9cb4e3ea25abbce7a0ad6f9b299
/business/agriclaim/agriclaim-api/src/main/java/com/sinosoft/agriclaim/api/common/dto/RequestQueyRateDto.java
39fe0be2b4fd03954522d8e680d407ea54a84003
[]
no_license
foxhack/NewAgri2018
a182bd34d0c583a53c30d825d5e2fa569f605515
be8ab05e0784c6e7e7f46fea743debb846407e4f
refs/heads/master
2021-09-24T21:58:18.577979
2018-10-15T11:24:21
2018-10-15T11:24:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
395
java
package com.sinosoft.agriclaim.api.common.dto; public class RequestQueyRateDto { private String policyNo; private String registNo; public String getPolicyNo() { return policyNo; } public void setPolicyNo(String policyNo) { this.policyNo = policyNo; } public String getRegistNo() { return registNo; } public void setRegistNo(String registNo) { this.registNo = registNo; } }
[ "vicentdk77@users.noreply.github.com" ]
vicentdk77@users.noreply.github.com
54080db51d4ad7dba016a4cdcc3e1c625142e61d
97e8970383c75a31a7b35cea202f17809ac9f980
/com/google/android/exoplayer2/source/UnrecognizedInputFormatException.java
4343e489d1891ddf77ffff08446b5b9e7abc7fbe
[]
no_license
tgapps/android
27116d389c48bd3a55804c86e9a7c2e0cf86a86c
d061b97e4bb0f532cc141ac5021e3329f4214202
refs/heads/master
2018-11-13T20:41:30.297252
2018-09-03T16:09:46
2018-09-03T16:09:46
113,666,719
9
2
null
null
null
null
UTF-8
Java
false
false
352
java
package com.google.android.exoplayer2.source; import android.net.Uri; import com.google.android.exoplayer2.ParserException; public class UnrecognizedInputFormatException extends ParserException { public final Uri uri; public UnrecognizedInputFormatException(String message, Uri uri) { super(message); this.uri = uri; } }
[ "telegram@daniil.it" ]
telegram@daniil.it
28f42aa5054ac92c152216af6ac8e73ab7db1afe
4ed25daac502f6aa2901cd0d83b9610e4e3764b8
/src/main/java/ch/alpine/owl/bot/kl/KlotskiGoalAdapter.java
14e3e0e78caf799dcfbf8989da96f1c2ca868d93
[]
no_license
datahaki/owl
d84a9e667b306013b9f3c320f61c767df60f2ce5
7b46b080e0dd55ee578af413461f9d6c34ff1de6
refs/heads/master
2023-08-17T10:42:42.790051
2023-08-04T16:17:13
2023-08-04T16:17:13
342,946,447
2
0
null
2022-06-19T11:08:59
2021-02-27T19:59:43
Java
UTF-8
Java
false
false
1,305
java
// code by jph package ch.alpine.owl.bot.kl; import java.util.List; import java.util.Optional; import ch.alpine.owl.glc.core.GlcNode; import ch.alpine.owl.glc.core.GoalInterface; import ch.alpine.owl.math.state.StateTime; import ch.alpine.tensor.RealScalar; import ch.alpine.tensor.Scalar; import ch.alpine.tensor.Tensor; import ch.alpine.tensor.nrm.Vector1Norm; /* package */ class KlotskiGoalAdapter implements GoalInterface { private final KlotskiGoalRegion klotskiGoalRegion; private final Tensor goal_xy; /** Example: for Huarong Tensors.vector(0, 4, 2) * * @param stone */ public KlotskiGoalAdapter(Tensor stone) { klotskiGoalRegion = new KlotskiGoalRegion(stone); this.goal_xy = stone.extract(1, 3); } @Override // from HeuristicFunction public Scalar minCostToGoal(Tensor x) { return Vector1Norm.between(x.get(0).extract(1, 3), goal_xy); } @Override public Scalar costIncrement(GlcNode glcNode, List<StateTime> trajectory, Tensor flow) { return RealScalar.ONE; } @Override // from TrajectoryRegionQuery public Optional<StateTime> firstMember(List<StateTime> trajectory) { return trajectory.stream().filter(this::test).findFirst(); } @Override public boolean test(StateTime x) { return klotskiGoalRegion.test(x.state()); } }
[ "jan.hakenberg@gmail.com" ]
jan.hakenberg@gmail.com
145ec3219d55e020a9557a7da9fbbb01aa0cc849
f832f100ac8567f3ef53b52b7145481e79607ca4
/chapter2/src/test/java/com/rabbitwfly/Chapter2ApplicationTests.java
f9261ee3353e48a154b776bc4c423a91c1d9821c
[]
no_license
RabbitWFly/SpringBoot-demos
4231c3f1dc4e70a8645a562742ce8a1304af3b14
7fbb56e86793441b17f3ba1c3ef7d021c29bf269
refs/heads/master
2022-07-03T19:24:22.464859
2020-01-02T16:52:02
2020-01-02T16:52:02
172,825,226
0
0
null
2022-06-17T02:15:58
2019-02-27T02:10:24
JavaScript
UTF-8
Java
false
false
342
java
package com.rabbitwfly; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class Chapter2ApplicationTests { @Test public void contextLoads() { } }
[ "chentao@daokoudai.com" ]
chentao@daokoudai.com
98e4bf3a4045fd0c44130fd83b719d99818f9182
aaabffe8bf55973bfb1390cf7635fd00ca8ca945
/src/main/java/com/microsoft/graph/requests/extensions/WorkbookFunctionsPercentRank_IncRequest.java
bdd2bb793edc08fb72a09a02f281b9dd4c164b32
[ "MIT" ]
permissive
rgrebski/msgraph-sdk-java
e595e17db01c44b9c39d74d26cd925b0b0dfe863
759d5a81eb5eeda12d3ed1223deeafd108d7b818
refs/heads/master
2020-03-20T19:41:06.630857
2018-03-16T17:31:43
2018-03-16T17:31:43
137,648,798
0
0
null
2018-06-17T11:07:06
2018-06-17T11:07:05
null
UTF-8
Java
false
false
1,576
java
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ package com.microsoft.graph.requests.extensions; import com.microsoft.graph.concurrency.*; import com.microsoft.graph.core.*; import com.microsoft.graph.models.extensions.*; import com.microsoft.graph.models.generated.*; import com.microsoft.graph.http.*; import com.microsoft.graph.requests.extensions.*; import com.microsoft.graph.requests.generated.*; import com.microsoft.graph.options.*; import com.microsoft.graph.serializer.*; import java.util.Arrays; import java.util.EnumSet; // This file is available for extending, afterwards please submit a pull request. /** * The class for the Workbook Functions Percent Rank_Inc Request. */ public class WorkbookFunctionsPercentRank_IncRequest extends BaseWorkbookFunctionsPercentRank_IncRequest implements IWorkbookFunctionsPercentRank_IncRequest { /** * The request for this WorkbookFunctionsPercentRank_Inc * * @param requestUrl the request URL * @param client the service client * @param requestOptions the options for this request */ public WorkbookFunctionsPercentRank_IncRequest(final String requestUrl, final IBaseClient client, final java.util.List<? extends Option> requestOptions) { super(requestUrl, client, requestOptions); } }
[ "caitbal@microsoft.com" ]
caitbal@microsoft.com
bce7f94f7739bf9a96fb5b7114c5003d323d54fd
9235aa9243528c4d208bcabe48dad0280bc50092
/module_2/src/exeption_and_debug/bai_tap/Triangle.java
99fefbe219560c5f1fd8617335e6bf7c0572ad7c
[]
no_license
duong1007/C1020G1-LeQuangDuong
26b1e14c5c2572a7fe57a1f2f560e36424f1eb4c
d8e240d4ab48d9282406f4981bd03aa2f8c78250
refs/heads/master
2023-04-10T20:20:17.926929
2021-04-07T01:28:54
2021-04-07T01:28:54
307,271,412
1
0
null
null
null
null
UTF-8
Java
false
false
547
java
package exeption_and_debug.bai_tap; public class Triangle { private int side_1; private int side_2; private int side_3; public Triangle(int side_1, int side_2, int side_3) throws IllegalTriangleException { if (side_1 < 0 || side_2 < 0 || side_3< 0 || side_1 + side_2 < side_3 || side_1 + side_3 < side_2 || side_3 + side_2 < side_1 ) { throw new IllegalTriangleException("cạnh không phù hợp"); } this.side_1 = side_1; this.side_2 = side_2; this.side_3 = side_3; } }
[ "maybiluyena@gmail.com" ]
maybiluyena@gmail.com
30b8c44f5be01d1c11313473d2dbe3e58eaf2128
7b0defe41f8bdf8dbf5dc534b69b533c808c2b92
/AdpFinalBakeryWithUI/src/test/java/com/howtodoinjava/demo/controller/MP/ProductBreadControllerTest.java
5ee2d4a2873ddfb81c7016c435f134f4bde34447
[]
no_license
MugammadRihaad/AdpFinalProjectUI
ca7c3fa4b5d9dfa100eace01e02b8d6771031f04
4d89a25969ec205f1b4b101d5c945d8c70ede16d
refs/heads/master
2020-08-21T22:21:57.009326
2019-10-20T17:23:47
2019-10-20T17:23:47
216,259,207
0
0
null
null
null
null
UTF-8
Java
false
false
2,821
java
package com.howtodoinjava.demo.controller.MP; import com.howtodoinjava.demo.domain.MP.ProductBread; import com.howtodoinjava.demo.factory.MP.FactoryProductBread; 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.boot.test.web.client.TestRestTemplate; import org.springframework.http.*; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.web.client.HttpClientErrorException; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) @RunWith(SpringRunner.class) public class ProductBreadControllerTest { @Autowired private TestRestTemplate restTemplate; private String baseURL="http://localhost:8080/cakes"; public void testGetAccountantById() { ProductBread cakes = restTemplate.getForObject(baseURL + "/cakes/1", ProductBread.class); System.out.println(cakes.getProductBreadId()); assertNotNull(cakes); } @Test public void create() { ProductBread bellStaff = FactoryProductBread.getProductBread("drinks",3000); bellStaff.setProductBreadId("newId"); ResponseEntity<ProductBread> postResponse = restTemplate.postForEntity(baseURL + "/new", bellStaff, ProductBread.class); assertNotNull(postResponse); assertNotNull(postResponse.getBody()); } @Test public void update() { int id = 1; ProductBread prodCakes = restTemplate.getForObject(baseURL + "/cakes/" + id, ProductBread.class); restTemplate.put(baseURL + "/cakes/" + id, prodCakes); ProductBread cakes = restTemplate.getForObject(baseURL + "/cakes/" + id, ProductBread.class); assertNotNull(cakes); } @Test public void delete() { int id = 2; ProductBread prodCakes = restTemplate.getForObject(baseURL + "/cakes/" + id, ProductBread.class); assertNotNull(prodCakes); restTemplate.delete(baseURL + "/cakes/" + id); try { prodCakes = restTemplate.getForObject(baseURL + "/cakes/" + id, ProductBread.class); } catch (final HttpClientErrorException e) { assertEquals(e.getStatusCode(), HttpStatus.NOT_FOUND); } } @Test public void read() { } @Test public void getAll() { HttpHeaders headers = new HttpHeaders(); HttpEntity<String> entity = new HttpEntity<String>(null, headers); ResponseEntity<String> response = restTemplate.exchange(baseURL + "/read/all", HttpMethod.GET, entity, String.class); assertNotNull(response.getBody()); } }
[ "mugammadrihaadvanblerck@gmail.com" ]
mugammadrihaadvanblerck@gmail.com
072439af244ca7d341866bf95eb601994baa8edd
e47d2faa2d5ee992ba5d2da965dcba19deb092e6
/processor/src/main/java/react4j/processor/Step.java
ecc1d59b29c2cef8376584046c21d1a85e47b09a
[ "Apache-2.0" ]
permissive
react4j/react4j
95e13c276126973f67b0e4888c2eb4b7775d9efc
dadbc3283943cd2c5bc78420e38f8ac4e6888dfe
refs/heads/master
2023-02-07T19:26:30.934517
2023-01-31T02:16:47
2023-01-31T02:16:47
104,152,070
35
0
Apache-2.0
2023-01-23T05:07:51
2017-09-20T01:55:55
Java
UTF-8
Java
false
false
837
java
package react4j.processor; import com.squareup.javapoet.TypeName; import java.util.ArrayList; import java.util.List; import javax.annotation.Nonnull; final class Step { private final int _index; @Nonnull private final List<StepMethod> _methods = new ArrayList<>(); Step( final int index ) { _index = index; } int getIndex() { return _index; } void addMethod( @Nonnull final InputDescriptor input, @Nonnull final StepMethodType stepMethodType ) { getMethods().add( new StepMethod( input, stepMethodType ) ); } void addTerminalMethod( @Nonnull final String name, @Nonnull final String key, @Nonnull final TypeName type ) { getMethods().add( new StepMethod( name, key, type, null, StepMethodType.TERMINATE ) ); } @Nonnull List<StepMethod> getMethods() { return _methods; } }
[ "peter@realityforge.org" ]
peter@realityforge.org
c54efa71f6f579bba18501a9b29eb96227d74567
978cb510121474947ba76caba3e578eb6df7a934
/src/org/pepstock/charba/showcase/client/cases/miscellaneous/HoverStyleOnStackedAreaCase.java
8fa4a5675330992fdcc542d19d786dbfd7c4e9bb
[ "Apache-2.0" ]
permissive
jackerxff/Charba-Showcase
76dc40a9e5efd2cd16098b252dfaa960c5cd763b
4af87937436230f4ad86a440a8595d036767fac5
refs/heads/master
2023-09-04T21:36:48.342804
2021-11-25T08:53:45
2021-11-25T08:53:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,942
java
package org.pepstock.charba.showcase.client.cases.miscellaneous; import java.util.List; import org.pepstock.charba.client.colors.GoogleChartColor; import org.pepstock.charba.client.colors.IsColor; import org.pepstock.charba.client.colors.Pattern; import org.pepstock.charba.client.colors.PatternBuilder; import org.pepstock.charba.client.configuration.CartesianCategoryAxis; import org.pepstock.charba.client.configuration.CartesianLinearAxis; import org.pepstock.charba.client.data.Dataset; import org.pepstock.charba.client.data.LineDataset; import org.pepstock.charba.client.enums.Fill; import org.pepstock.charba.client.enums.InteractionMode; import org.pepstock.charba.client.enums.Position; import org.pepstock.charba.client.gwt.ImagesHelper; import org.pepstock.charba.client.gwt.widgets.StackedAreaChartWidget; import org.pepstock.charba.showcase.client.cases.commons.BaseComposite; import org.pepstock.charba.showcase.client.resources.Images; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.uibinder.client.UiHandler; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.Widget; public class HoverStyleOnStackedAreaCase extends BaseComposite { private static ViewUiBinder uiBinder = GWT.create(ViewUiBinder.class); interface ViewUiBinder extends UiBinder<Widget, HoverStyleOnStackedAreaCase> { } @UiField StackedAreaChartWidget chart; public HoverStyleOnStackedAreaCase() { initWidget(uiBinder.createAndBindUi(this)); chart.getOptions().setResponsive(true); chart.getOptions().getLegend().setPosition(Position.TOP); chart.getOptions().getTitle().setDisplay(true); chart.getOptions().getTitle().setText("Hover styles on stacked area chart"); chart.getOptions().getTooltips().setMode(InteractionMode.NEAREST); chart.getOptions().getTooltips().setIntersect(true); chart.getOptions().getHover().setMode(InteractionMode.DATASET); LineDataset dataset1 = chart.newDataset(); dataset1.setLabel("dataset 1"); IsColor color1 = GoogleChartColor.values()[0]; dataset1.setBackgroundColor(color1.alpha(0.5D)); dataset1.setBorderColor(color1.toHSL()); dataset1.setData(getRandomDigits(months, false)); dataset1.setFill(Fill.ORIGIN); dataset1.setBorderWidth(5); dataset1.setHoverBackgroundColor(color1.brighter()); dataset1.setHoverBorderColor(color1.darker()); dataset1.setPointHoverBackgroundColor("#fff"); LineDataset dataset2 = chart.newDataset(); dataset2.setLabel("dataset 2"); IsColor color2 = GoogleChartColor.values()[1]; dataset2.setBackgroundColor(color2.alpha(0.5D)); dataset2.setBorderColor(color2.toHex()); dataset2.setData(getRandomDigits(months, false)); dataset2.setFill(Fill.ORIGIN); dataset2.setBorderWidth(5); Pattern pattern = PatternBuilder.create(ImagesHelper.toImg(Images.INSTANCE.pattern())).build(); dataset2.setHoverBackgroundColor(pattern); dataset2.setHoverBorderColor(color2.darker()); dataset2.setPointHoverBackgroundColor("#fff"); CartesianCategoryAxis axis1 = new CartesianCategoryAxis(chart); axis1.setDisplay(true); axis1.getTitle().setDisplay(true); axis1.getTitle().setText("Month"); CartesianLinearAxis axis2 = new CartesianLinearAxis(chart); axis2.setDisplay(true); axis2.getTitle().setDisplay(true); axis2.getTitle().setText("Value"); chart.getOptions().getScales().setAxes(axis1, axis2); chart.getData().setLabels(getLabels()); chart.getData().setDatasets(dataset1, dataset2); } @UiHandler("randomize") protected void handleRandomize(ClickEvent event) { for (Dataset dataset : chart.getData().getDatasets()) { dataset.setData(getRandomDigits(months, false)); } chart.update(); } @UiHandler("add_dataset") protected void handleAddDataset(ClickEvent event) { List<Dataset> datasets = chart.getData().getDatasets(); LineDataset dataset = chart.newDataset(); dataset.setLabel("dataset " + (datasets.size() + 1)); IsColor color = GoogleChartColor.values()[datasets.size()]; dataset.setBackgroundColor(color.alpha(0.5D)); dataset.setBorderColor(color.toHex()); dataset.setHoverBackgroundColor(color.brighter()); dataset.setHoverBorderColor(color.darker()); dataset.setPointHoverBackgroundColor("#fff"); dataset.setFill(Fill.ORIGIN); dataset.setData(getRandomDigits(months, false)); datasets.add(dataset); chart.update(); } @UiHandler("remove_dataset") protected void handleRemoveDataset(ClickEvent event) { removeDataset(chart); } @UiHandler("add_data") protected void handleAddData(ClickEvent event) { addData(chart, false); } @UiHandler("remove_data") protected void handleRemoveData(ClickEvent event) { removeData(chart); } @UiHandler("source") protected void handleViewSource(ClickEvent event) { Window.open(getUrl(), "_blank", ""); } }
[ "stocki.nail@gmail.com" ]
stocki.nail@gmail.com
9d39041af7e4b0066738784a17803895528f04c0
95e944448000c08dd3d6915abb468767c9f29d3c
/sources/com/p280ss/android/ugc/aweme/profile/p1487ui/C36457el.java
ee59f69f4f1058418720cf1a3949c4b4d3d4bf11
[]
no_license
xrealm/tiktok-src
261b1faaf7b39d64bb7cb4106dc1a35963bd6868
90f305b5f981d39cfb313d75ab231326c9fca597
refs/heads/master
2022-11-12T06:43:07.401661
2020-07-04T20:21:12
2020-07-04T20:21:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
750
java
package com.p280ss.android.ugc.aweme.profile.p1487ui; import com.p280ss.android.ugc.aweme.base.component.AnalysisStayTimeFragmentComponent.C23292a; import com.p280ss.android.ugc.aweme.metrics.C33248at; /* renamed from: com.ss.android.ugc.aweme.profile.ui.el */ final /* synthetic */ class C36457el implements C23292a { /* renamed from: a */ private final UserProfileFragment f95640a; /* renamed from: b */ private final String f95641b; C36457el(UserProfileFragment userProfileFragment, String str) { this.f95640a = userProfileFragment; this.f95641b = str; } /* renamed from: a */ public final C33248at mo60578a(C33248at atVar) { return this.f95640a.mo92369a(this.f95641b, atVar); } }
[ "65450641+Xyzdesk@users.noreply.github.com" ]
65450641+Xyzdesk@users.noreply.github.com
cffe914995e2931c65ad9b0900422285de7e7e46
5cb5d1fc80c1f68ade44f0a26a02d1aeb118c64d
/ink-msgcenter/ink-msgcenter-core/src/main/java/com/ink/msgcenter/core/po/SmsMongoLog.java
8d9a094a8e1da23d76255a692aa820cac60c460d
[]
no_license
gspandy/zx-parent
4350d1ef851d05eabdcf8c6c7049a46593e3c22e
5cdc52e645537887e86e5cbc117139ca1a56f55d
refs/heads/master
2023-08-31T15:29:50.763388
2016-08-11T09:17:29
2016-08-11T09:20:51
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,261
java
package com.ink.msgcenter.core.po; import java.io.Serializable; import java.util.Date; import com.ink.base.BaseEntity; import com.ink.base.util.DateConvertUtils; /** * mogodb 日志bean * Created by aiyungui on 2016/5/24. */ public class SmsMongoLog extends BaseEntity implements Serializable{ private static final long serialVersionUID = 1044759010499159319L; public static final String FORMAT_SUBMIT_TIME = DATE_TIME_FORMAT; public static final String FORMAT_SEND_TIME = DATE_TIME_FORMAT; public static final String FORMAT_FIX_TIME = DATE_TIME_FORMAT; public static final String FORMAT_REPORT_TIME = DATE_TIME_FORMAT; private String id; //merctId private Long merctId; //merctCode private String merctCode; //chnId private Long chnId; //chnCode private String chnCode; //tempId private Long tempId; //mobile private String mobile; //smsMsg private String smsMsg; //infoCode private String infoCode; //smsCode private String smsCode; //priority private Integer priority; //smsId private String smsId; //taskId private String taskId; //sendStatus private String sendStatus; //responseCode private String responseCode; //smsType private String smsType; //reportStatus private String reportStatus; //submitTime private Date submitTime; //sendTime private Date sendTime; //fixTime private Date fixTime; //reportTime private Date reportTime; private String upUrl; private String reportUrl; //sendException private String sendException; public String getId() { return id; } public void setId(String id) { this.id = id; } public Long getMerctId() { return merctId; } public void setMerctId(Long merctId) { this.merctId = merctId; } public String getMerctCode() { return merctCode; } public void setMerctCode(String merctCode) { this.merctCode = merctCode; } public Long getChnId() { return chnId; } public void setChnId(Long chnId) { this.chnId = chnId; } public String getChnCode() { return chnCode; } public void setChnCode(String chnCode) { this.chnCode = chnCode; } public Long getTempId() { return tempId; } public void setTempId(Long tempId) { this.tempId = tempId; } public String getMobile() { return mobile; } public void setMobile(String mobile) { this.mobile = mobile; } public String getSmsMsg() { return smsMsg; } public void setSmsMsg(String smsMsg) { this.smsMsg = smsMsg; } public String getInfoCode() { return infoCode; } public void setInfoCode(String infoCode) { this.infoCode = infoCode; } public String getSmsCode() { return smsCode; } public void setSmsCode(String smsCode) { this.smsCode = smsCode; } public Integer getPriority() { return priority; } public void setPriority(Integer priority) { this.priority = priority; } public String getSmsId() { return smsId; } public void setSmsId(String smsId) { this.smsId = smsId; } public String getTaskId() { return taskId; } public void setTaskId(String taskId) { this.taskId = taskId; } public String getSendStatus() { return sendStatus; } public void setSendStatus(String sendStatus) { this.sendStatus = sendStatus; } public String getResponseCode() { return responseCode; } public void setResponseCode(String responseCode) { this.responseCode = responseCode; } public String getSmsType() { return smsType; } public void setSmsType(String smsType) { this.smsType = smsType; } public String getReportStatus() { return reportStatus; } public void setReportStatus(String reportStatus) { this.reportStatus = reportStatus; } public Date getSubmitTime() { return submitTime; } public void setSubmitTime(Date submitTime) { this.submitTime = submitTime; } public Date getSendTime() { return sendTime; } public void setSendTime(Date sendTime) { this.sendTime = sendTime; } public Date getFixTime() { return fixTime; } public void setFixTime(Date fixTime) { this.fixTime = fixTime; } public Date getReportTime() { return reportTime; } public void setReportTime(Date reportTime) { this.reportTime = reportTime; } public String getSendException() { return sendException; } public void setSendException(String sendException) { this.sendException = sendException; } public String getSubmitTimeString() { return DateConvertUtils.format(getSubmitTime(), FORMAT_SUBMIT_TIME); } public void setSubmitTimeString(String value) { setSubmitTime(DateConvertUtils.parse(value, FORMAT_SUBMIT_TIME,java.util.Date.class)); } public String getSendTimeString() { return DateConvertUtils.format(getSendTime(), FORMAT_SEND_TIME); } public void setSendTimeString(String value) { setSendTime(DateConvertUtils.parse(value, FORMAT_SEND_TIME,java.util.Date.class)); } public String getFixTimeString() { return DateConvertUtils.format(getFixTime(), FORMAT_FIX_TIME); } public void setFixTimeString(String value) { setFixTime(DateConvertUtils.parse(value, FORMAT_FIX_TIME,java.util.Date.class)); } public String getReportTimeString() { return DateConvertUtils.format(getReportTime(), FORMAT_REPORT_TIME); } public void setReportTimeString(String value) { setReportTime(DateConvertUtils.parse(value, FORMAT_REPORT_TIME,java.util.Date.class)); } public String getUpUrl() { return upUrl; } public void setUpUrl(String upUrl) { this.upUrl = upUrl; } public String getReportUrl() { return reportUrl; } public void setReportUrl(String reportUrl) { this.reportUrl = reportUrl; } }
[ "zxzhouxiang123@163.com" ]
zxzhouxiang123@163.com
0bccabf6569865197658d5a134ad6eb3ff58854d
1c5fd654b46d3fb018032dc11aa17552b64b191c
/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/web/servlet/WebMvcMetricsAutoConfigurationTests.java
f02f8c3a5d6db53e95b46166cb76f9e67aaaccae
[ "Apache-2.0" ]
permissive
yangfancoming/spring-boot-build
6ce9b97b105e401a4016ae4b75964ef93beeb9f1
3d4b8cbb8fea3e68617490609a68ded8f034bc67
refs/heads/master
2023-01-07T11:10:28.181679
2021-06-21T11:46:46
2021-06-21T11:46:46
193,871,877
0
0
Apache-2.0
2022-12-27T14:52:46
2019-06-26T09:19:40
Java
UTF-8
Java
false
false
3,793
java
package org.springframework.boot.actuate.autoconfigure.web.servlet; import java.util.Collections; import java.util.EnumSet; import javax.servlet.DispatcherType; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import io.micrometer.core.instrument.MeterRegistry; import io.micrometer.core.instrument.Tag; import io.micrometer.core.instrument.simple.SimpleMeterRegistry; import org.junit.Test; import org.springframework.boot.actuate.autoconfigure.metrics.web.servlet.WebMvcMetricsAutoConfiguration; import org.springframework.boot.actuate.metrics.web.servlet.DefaultWebMvcTagsProvider; import org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter; import org.springframework.boot.actuate.metrics.web.servlet.WebMvcTagsProvider; import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.test.context.runner.WebApplicationContextRunner; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.Ordered; import static org.assertj.core.api.Assertions.assertThat; /** * Tests for {@link WebMvcMetricsAutoConfiguration}. * * @author Andy Wilkinson */ public class WebMvcMetricsAutoConfigurationTests { private WebApplicationContextRunner contextRunner = new WebApplicationContextRunner() .withConfiguration( AutoConfigurations.of(WebMvcMetricsAutoConfiguration.class)); @Test public void backsOffWhenMeterRegistryIsMissing() { this.contextRunner.run((context) -> assertThat(context) .doesNotHaveBean(WebMvcMetricsAutoConfiguration.class)); } @Test public void definesTagsProviderAndFilterWhenMeterRegistryIsPresent() { this.contextRunner.withUserConfiguration(MeterRegistryConfiguration.class) .run((context) -> { assertThat(context).hasSingleBean(DefaultWebMvcTagsProvider.class); assertThat(context).hasSingleBean(FilterRegistrationBean.class); assertThat(context.getBean(FilterRegistrationBean.class).getFilter()) .isInstanceOf(WebMvcMetricsFilter.class); }); } @Test public void tagsProviderBacksOff() { this.contextRunner.withUserConfiguration(MeterRegistryConfiguration.class, TagsProviderConfiguration.class).run((context) -> { assertThat(context).doesNotHaveBean(DefaultWebMvcTagsProvider.class); assertThat(context).hasSingleBean(TestWebMvcTagsProvider.class); }); } @Test public void filterRegistrationHasExpectedDispatcherTypesAndOrder() { this.contextRunner.withUserConfiguration(MeterRegistryConfiguration.class) .run((context) -> { FilterRegistrationBean<?> registration = context .getBean(FilterRegistrationBean.class); assertThat(registration).hasFieldOrPropertyWithValue( "dispatcherTypes", EnumSet.of(DispatcherType.REQUEST, DispatcherType.ASYNC)); assertThat(registration.getOrder()) .isEqualTo(Ordered.HIGHEST_PRECEDENCE + 1); }); } @Configuration static class MeterRegistryConfiguration { @Bean public MeterRegistry meterRegistry() { return new SimpleMeterRegistry(); } } @Configuration static class TagsProviderConfiguration { @Bean public TestWebMvcTagsProvider tagsProvider() { return new TestWebMvcTagsProvider(); } } private static final class TestWebMvcTagsProvider implements WebMvcTagsProvider { @Override public Iterable<Tag> getTags(HttpServletRequest request, HttpServletResponse response, Object handler, Throwable exception) { return Collections.emptyList(); } @Override public Iterable<Tag> getLongRequestTags(HttpServletRequest request, Object handler) { return Collections.emptyList(); } } }
[ "34465021+jwfl724168@users.noreply.github.com" ]
34465021+jwfl724168@users.noreply.github.com
7d44c7767aaeb9e2e4f1cbaac74fc71ea0627833
de7220d3ff5312b495b88ce633b60f9d4bf16c80
/src/main/java/sagex/phoenix/image/OverlayTransform.java
ff7e7d8fb2c7349d76d638bbee44523ef8a4f096
[ "Apache-2.0" ]
permissive
stuckless/sagetv-phoenix-core
29faa56ba3994a03f9c2f800f29308922580f9b4
64c6d37b053b3cc09d1c689cdf50b5c36cb04573
refs/heads/master
2022-11-26T20:20:17.085576
2022-11-09T18:24:46
2022-11-09T18:24:46
16,001,631
2
9
Apache-2.0
2022-11-09T18:24:47
2014-01-17T14:24:40
Java
UTF-8
Java
false
false
1,262
java
package sagex.phoenix.image; import java.awt.AlphaComposite; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import sagex.phoenix.util.Loggers; public class OverlayTransform implements IBufferedTransform { private float opacity = 0; private String filename; private int x; private int y; public OverlayTransform(String filename, float opacity, int x, int y) { this.filename = filename; this.opacity = opacity; this.x = x; this.y = y; } public BufferedImage transform(BufferedImage image) { BufferedImage mask = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_INT_ARGB); Graphics2D g2d = mask.createGraphics(); g2d.drawImage(image, 0, 0, null); g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, opacity)); BufferedImage imgOver; try { imgOver = ImageUtil.readImage(new File(filename)); g2d.drawImage(imgOver, x, y, null); g2d.dispose(); } catch (IOException e) { Loggers.LOG.warn("Failed to process image overlay using file " + filename, e); } return mask; } }
[ "sean.stuckless@gmail.com" ]
sean.stuckless@gmail.com
3272635b43b4a5282160b8dfae0b47a141c3c0e3
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
/sources/com/google/android/gms/internal/vision/zzbr.java
b8d8e298f97acb60f40a1bb32565d786a2d1a76a
[]
no_license
Auch-Auch/avito_source
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
76fdcc5b7e036c57ecc193e790b0582481768cdc
refs/heads/master
2023-05-06T01:32:43.014668
2021-05-25T10:19:22
2021-05-25T10:19:22
370,650,685
0
0
null
null
null
null
UTF-8
Java
false
false
242
java
package com.google.android.gms.internal.vision; import android.content.Context; import javax.annotation.Nullable; public abstract class zzbr { public abstract Context zzaa(); @Nullable public abstract zzdf<zzcy<zzbe>> zzab(); }
[ "auchhunter@gmail.com" ]
auchhunter@gmail.com
1ab37a12519d568bc49a4b697c2a02e1d6fb47c3
327d615dbf9e4dd902193b5cd7684dfd789a76b1
/base_source_from_JADX/sources/com/google/android/gms/internal/ads/zzdmr.java
92f0faa66be6667135e6d574911146c22a9758d8
[]
no_license
dnosauro/singcie
e53ce4c124cfb311e0ffafd55b58c840d462e96f
34d09c2e2b3497dd452246b76646b3571a18a100
refs/heads/main
2023-01-13T23:17:49.094499
2020-11-20T10:46:19
2020-11-20T10:46:19
314,513,307
0
0
null
null
null
null
UTF-8
Java
false
false
577
java
package com.google.android.gms.internal.ads; final class zzdmr implements zzcyn<zzchc> { private final /* synthetic */ zzdmo zzhgm; zzdmr(zzdmo zzdmo) { this.zzhgm = zzdmo; } public final /* synthetic */ void onSuccess(Object obj) { zzchc zzchc = (zzchc) obj; synchronized (this.zzhgm) { zzchc unused = this.zzhgm.zzhgi = zzchc; this.zzhgm.zzhgi.zzajj(); } } public final void zzarx() { synchronized (this.zzhgm) { zzchc unused = this.zzhgm.zzhgi = null; } } }
[ "dno_sauro@yahoo.it" ]
dno_sauro@yahoo.it
a8f7062c046f44e2d42da0f58acd78af629c243a
9d2809ee4669e3701884d334c227c68a24c5787f
/virtualwealthcenter/virtualwealth-mop-api/src/main/java/com/mockuai/virtualwealthcenter/mop/api/action/AddWithdrawalsMopAction.java
a10ce36eed65b9603a862ee0befdd294dd674dd7
[]
no_license
vinfai/hy_project
5370367876fe6bcb4109f2af9391b9d817c320b5
8fd99f23cf83b1b3f7bec9560fbd2edc46621d0b
refs/heads/master
2021-01-19T00:58:26.436196
2017-03-01T16:47:22
2017-03-01T16:49:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,025
java
package com.mockuai.virtualwealthcenter.mop.api.action; import static com.mockuai.virtualwealthcenter.common.constant.ActionEnum.ADD_WD_SUBMIT; import com.mockuai.mop.common.constant.ActionAuthLevel; import com.mockuai.mop.common.constant.HttpMethodLimit; import com.mockuai.mop.common.constant.MopRespCode; import com.mockuai.mop.common.service.action.MopResponse; import com.mockuai.virtualwealthcenter.common.api.BaseRequest; import com.mockuai.virtualwealthcenter.common.api.Request; import com.mockuai.virtualwealthcenter.common.api.Response; public class AddWithdrawalsMopAction extends BaseAction{ //提现申请 public String getName() { return "/myaccount/withdrawals/apply"; } public ActionAuthLevel getAuthLevel() { return ActionAuthLevel.AUTH_LOGIN; } public HttpMethodLimit getMethodLimit() { return HttpMethodLimit.ONLY_POST; } public MopResponse execute(com.mockuai.mop.common.service.action.Request request) { Long userId = (Long)request.getAttribute("user_id"); //Long userId = Long.valueOf((String)request.getParam("user_id")); String withdrawals_amount = (String) request.getParam("withdrawals_amount"); String withdrawals_no = (String) request.getParam("withdrawals_no"); String appKey = (String) request.getParam("app_key"); Request marketReq = new BaseRequest(); marketReq.setCommand(ADD_WD_SUBMIT.getActionName()); marketReq.setParam("userId", userId); marketReq.setParam("withdrawals_amount", withdrawals_amount); marketReq.setParam("withdrawals_no", withdrawals_no); marketReq.setParam("appKey", appKey); Response marketResp = getVirtualWealthService().execute(marketReq); MopResponse response; if (marketResp.isSuccess()) { response = new MopResponse(marketResp.getModule()); } else { response = new MopResponse(marketResp.getResCode(), marketResp.getMessage()); } return response; } }
[ "1147478866@qq.com" ]
1147478866@qq.com
80ff6f02c2f8c1ab6cafd2ef612c4ed2d54efee0
09e03ba73062c62c1d3389cdecb94f68430cd82d
/storage/db/src/main/java/org/artifactory/storage/db/fs/entity/Node.java
8b0bb30e5994cd9d0966374ab567069a9441b6da
[ "Apache-2.0" ]
permissive
alancnet/artifactory
1ee6183301b581e60f67691d7fa025b0fb44b118
7ac3ea76471a00543eaf60e82b554d8edd894c0f
refs/heads/master
2021-01-10T14:58:53.769805
2015-10-07T16:46:14
2015-10-07T16:46:14
43,829,862
3
6
null
2016-03-09T18:30:58
2015-10-07T16:38:51
Java
UTF-8
Java
false
false
4,547
java
/* * Artifactory is a binaries repository manager. * Copyright (C) 2012 JFrog Ltd. * * Artifactory is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Artifactory is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with Artifactory. If not, see <http://www.gnu.org/licenses/>. */ package org.artifactory.storage.db.fs.entity; /** * Represents a node in the nodes table. * * @author Yossi Shaul */ public class Node { private final long nodeId; private final boolean file; private final String repo; private final String path; private final String name; private final short depth; private final long created; private final String createdBy; private final long modified; private final String modifiedBy; private final long updated; // file only attributes private final long length; private final String sha1Actual; private final String sha1Original; private final String md5Actual; private final String md5Original; public Node(long nodeId, boolean file, String repo, String path, String name, short depth, long created, String createdBy, long modified, String modifiedBy, long updated, long length, String sha1Actual, String sha1Original, String md5Actual, String md5Original) { this.nodeId = nodeId; this.file = file; this.repo = repo; this.path = path; this.name = name; this.depth = depth; this.created = created; this.createdBy = createdBy; this.modified = modified; this.modifiedBy = modifiedBy; this.updated = updated; this.length = length; this.sha1Actual = sha1Actual; this.sha1Original = sha1Original; this.md5Actual = md5Actual; this.md5Original = md5Original; } public long getNodeId() { return nodeId; } public boolean isFile() { return file; } public String getRepo() { return repo; } public String getPath() { return path; } public String getName() { return name; } public short getDepth() { return depth; } public long getCreated() { return created; } public String getCreatedBy() { return createdBy; } public long getModified() { return modified; } public String getModifiedBy() { return modifiedBy; } public long getUpdated() { return updated; } public long getLength() { return length; } public String getSha1Actual() { return sha1Actual; } public String getSha1Original() { return sha1Original; } public String getMd5Actual() { return md5Actual; } public String getMd5Original() { return md5Original; } public NodePath getNodePath() { return new NodePath(repo, path, name, file); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Node node = (Node) o; if (!name.equals(node.name)) { return false; } if (!path.equals(node.path)) { return false; } if (!repo.equals(node.repo)) { return false; } return true; } @Override public int hashCode() { int result = repo.hashCode(); result = 31 * result + path.hashCode(); result = 31 * result + name.hashCode(); return result; } @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("Node"); sb.append("{nodeId=").append(nodeId); sb.append(", file=").append(file); sb.append(", repo='").append(repo).append('\''); sb.append(", path='").append(path).append('\''); sb.append(", name='").append(name).append('\''); sb.append('}'); return sb.toString(); } }
[ "github@alanc.net" ]
github@alanc.net
4b33f18fab9cbdfb33baf69fbe2c17a8ee8fd1c6
872147bec4452dbdc6786cc04010a1455e08590d
/JavaBase/Task/src/Test9_8/Test01.java
f5a6bf5df584ebfc91a082173e885223069efcfb
[]
no_license
yuanyyb/JavaStudy
f3eb26bf0383c9f8a327322987bd711cd7544319
5595b7ad893d11212a59e5c6c2d5ce12d0e91a3f
refs/heads/master
2022-12-02T00:42:21.787688
2020-07-30T10:15:10
2020-07-30T10:15:10
283,765,631
0
0
null
null
null
null
UTF-8
Java
false
false
1,178
java
package Test9_8; import java.io.FileReader; import java.io.IOException; import java.nio.charset.Charset; import java.util.Map; import java.util.Properties; import java.util.Set; /*后缀为properties的文件是一种属性文件,这种文件以key=value的格式存储内容,可以使用Properties类来读取这个文件, Properties可以保存到流中或从流中加载。已知在当前模块目录下,有一个user.properties文件(直接准备好即可), 内容如下: username=heima001 passworld=123456 url=http://www.itheima.com subjectName=javaee 请编写程序,将文件中的内容以键值对的形式存储到Properties集合中,并遍历查看结果。*/ public class Test01 { public static void main(String[] args) throws IOException { Properties ps = new Properties(); FileReader fr = new FileReader("Task\\src\\Test9_8\\a.properties", Charset.forName("UTF-8")); ps.load(fr); Set<Map.Entry<Object,Object>> entries = ps.entrySet(); entries.stream().forEach(a-> System.out.println(a.getKey()+":"+a.getValue())); fr.close(); } }
[ "yuanyyb@hotmail.com" ]
yuanyyb@hotmail.com
3d2c182da3c97582bc43f5ee237a9b7cc5ba612d
01f42cfde33bca228d2bbe4c82818f39a353a57e
/12. Metube-workshop/me-tube-workshop/src/main/java/app/domain/model/service/TubesServiceModel.java
7183dbfac9db47f92c4e281e5898f3b497af0090
[]
no_license
vdjalov/Java-Web
31f43518d0f3437179d7848247e036311ba3bea9
db8a629023cba586978025772f6266e39b9f8fa6
refs/heads/master
2022-07-05T01:55:02.466511
2020-01-24T17:55:52
2020-01-24T17:55:52
228,460,601
0
0
null
2022-06-21T02:39:44
2019-12-16T19:32:35
Java
UTF-8
Java
false
false
588
java
package app.domain.model.service; import app.domain.entity.User; public class TubesServiceModel { private String title; private String youTubeId; private User uploader; public TubesServiceModel() { } public String getYouTubeId() { return youTubeId; } public void setYouTubeId(String youTubeId) { this.youTubeId = youTubeId; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public User getUploader() { return uploader; } public void setUploader(User uploader) { this.uploader = uploader; } }
[ "vdjalov@gmail.com" ]
vdjalov@gmail.com
bb6cadd17d307ba2ea0811eb6cd2491d75b0133d
e2cbc475e26a5357c212cd2f951ece1f9d7d9cea
/workspace/DBtutorial/src/com/example/dbtutorial/DisplayContact.java
5f8ee18aa38ea94c425964e68edf4d972655eea8
[]
no_license
arjunmehta1992/backup
b2ff86c92b48ec8c11f54efb14e94bde179932f9
d38c91905bc0c1515a0350ce09c323e1681dfb56
refs/heads/master
2016-09-10T19:42:00.552121
2015-09-09T09:42:16
2015-09-09T09:42:16
41,653,939
0
0
null
null
null
null
UTF-8
Java
false
false
6,511
java
package com.example.dbtutorial; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; public class DisplayContact extends Activity{ int from_Where_I_Am_Coming = 0; private DBHelper mydb ; TextView name; TextView phone; TextView email; TextView street; TextView place; int id_To_Update = 0; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_display_contact); name = (TextView) findViewById(R.id.editTextName); phone = (TextView) findViewById(R.id.editTextPhone); email = (TextView) findViewById(R.id.editTextStreet); street = (TextView) findViewById(R.id.editTextEmail); place = (TextView) findViewById(R.id.editTextCity); mydb = new DBHelper(this); Bundle extras = getIntent().getExtras(); if(extras !=null) { int Value = extras.getInt("id"); if(Value>0){ //means this is the view part not the add contact part. Cursor rs = mydb.getData(Value); id_To_Update = Value; rs.moveToFirst(); String nam = rs.getString(rs.getColumnIndex(DBHelper.CONTACTS_COLUMN_NAME)); String phon = rs.getString(rs.getColumnIndex(DBHelper.CONTACTS_COLUMN_PHONE)); String emai = rs.getString(rs.getColumnIndex(DBHelper.CONTACTS_COLUMN_EMAIL)); String stree = rs.getString(rs.getColumnIndex(DBHelper.CONTACTS_COLUMN_STREET)); String plac = rs.getString(rs.getColumnIndex(DBHelper.CONTACTS_COLUMN_CITY)); if (!rs.isClosed()) { rs.close(); } Button b = (Button)findViewById(R.id.button1); b.setVisibility(View.INVISIBLE); name.setText((CharSequence)nam); name.setFocusable(false); name.setClickable(false); phone.setText((CharSequence)phon); phone.setFocusable(false); phone.setClickable(false); email.setText((CharSequence)emai); email.setFocusable(false); email.setClickable(false); street.setText((CharSequence)stree); street.setFocusable(false); street.setClickable(false); place.setText((CharSequence)plac); place.setFocusable(false); place.setClickable(false); } } } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. Bundle extras = getIntent().getExtras(); if(extras !=null) { int Value = extras.getInt("id"); if(Value>0){ getMenuInflater().inflate(R.menu.display_contact, menu); } else{ getMenuInflater().inflate(R.menu.main, menu); } } return true; } public boolean onOptionsItemSelected(MenuItem item) { super.onOptionsItemSelected(item); switch(item.getItemId()) { case R.id.Edit_Contact: Button b = (Button)findViewById(R.id.button1); b.setVisibility(View.VISIBLE); name.setEnabled(true); name.setFocusableInTouchMode(true); name.setClickable(true); phone.setEnabled(true); phone.setFocusableInTouchMode(true); phone.setClickable(true); email.setEnabled(true); email.setFocusableInTouchMode(true); email.setClickable(true); street.setEnabled(true); street.setFocusableInTouchMode(true); street.setClickable(true); place.setEnabled(true); place.setFocusableInTouchMode(true); place.setClickable(true); return true; case R.id.Delete_Contact: AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(R.string.deleteContact) .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { mydb.deleteContact(id_To_Update); Toast.makeText(getApplicationContext(), "Deleted Successfully", Toast.LENGTH_SHORT).show(); Intent intent = new Intent(getApplicationContext(),MainActivity.class); startActivity(intent); } }) .setNegativeButton(R.string.no, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // User cancelled the dialog } }); AlertDialog d = builder.create(); d.setTitle("Are you sure"); d.show(); return true; default: return super.onOptionsItemSelected(item); } } public void run(View view) { Bundle extras = getIntent().getExtras(); if(extras !=null) { int Value = extras.getInt("id"); if(Value>0){ if(mydb.updateContact(id_To_Update,name.getText().toString(), phone.getText().toString(), email.getText().toString(), street.getText().toString(), place.getText().toString())){ Toast.makeText(getApplicationContext(), "Updated", Toast.LENGTH_SHORT).show(); Intent intent = new Intent(getApplicationContext(),MainActivity.class); startActivity(intent); } else{ Toast.makeText(getApplicationContext(), "not Updated", Toast.LENGTH_SHORT).show(); } } else{ if(mydb.insertContact(name.getText().toString(), phone.getText().toString(), email.getText().toString(), street.getText().toString(), place.getText().toString())){ Toast.makeText(getApplicationContext(), "done", Toast.LENGTH_SHORT).show(); } else{ Toast.makeText(getApplicationContext(), "not done", Toast.LENGTH_SHORT).show(); } Intent intent = new Intent(getApplicationContext(),MainActivity.class); startActivity(intent); } } } }
[ "arjun@zapserver.com" ]
arjun@zapserver.com
f794d0bdf72b27c9f1f227428c0b2952aa2558ac
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project8/src/test/java/org/gradle/test/performance8_5/Test8_412.java
0372d868700e6283d2a3f113d1fa461ed44dea61
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
288
java
package org.gradle.test.performance8_5; import static org.junit.Assert.*; public class Test8_412 { private final Production8_412 production = new Production8_412("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
3a769a8f23f394d54450c06739fe65aec1c06f92
29b6a856a81a47ebab7bfdba7fe8a7b845123c9e
/dingtalk/java/src/main/java/com/aliyun/dingtalkim_1_0/models/QueryGroupMemberByMemberAuthResponseBody.java
1eee5841a10fc286b7f2d81458ac8da84f37bb57
[ "Apache-2.0" ]
permissive
aliyun/dingtalk-sdk
f2362b6963c4dbacd82a83eeebc223c21f143beb
586874df48466d968adf0441b3086a2841892935
refs/heads/master
2023-08-31T08:21:14.042410
2023-08-30T08:18:22
2023-08-30T08:18:22
290,671,707
22
9
null
2021-08-12T09:55:44
2020-08-27T04:05:39
PHP
UTF-8
Java
false
false
2,782
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.dingtalkim_1_0.models; import com.aliyun.tea.*; public class QueryGroupMemberByMemberAuthResponseBody extends TeaModel { @NameInMap("groupMemberList") public java.util.List<QueryGroupMemberByMemberAuthResponseBodyGroupMemberList> groupMemberList; public static QueryGroupMemberByMemberAuthResponseBody build(java.util.Map<String, ?> map) throws Exception { QueryGroupMemberByMemberAuthResponseBody self = new QueryGroupMemberByMemberAuthResponseBody(); return TeaModel.build(map, self); } public QueryGroupMemberByMemberAuthResponseBody setGroupMemberList(java.util.List<QueryGroupMemberByMemberAuthResponseBodyGroupMemberList> groupMemberList) { this.groupMemberList = groupMemberList; return this; } public java.util.List<QueryGroupMemberByMemberAuthResponseBodyGroupMemberList> getGroupMemberList() { return this.groupMemberList; } public static class QueryGroupMemberByMemberAuthResponseBodyGroupMemberList extends TeaModel { @NameInMap("groupNickName") public String groupNickName; @NameInMap("orgName") public String orgName; @NameInMap("profilePhotoUrl") public String profilePhotoUrl; @NameInMap("userId") public String userId; public static QueryGroupMemberByMemberAuthResponseBodyGroupMemberList build(java.util.Map<String, ?> map) throws Exception { QueryGroupMemberByMemberAuthResponseBodyGroupMemberList self = new QueryGroupMemberByMemberAuthResponseBodyGroupMemberList(); return TeaModel.build(map, self); } public QueryGroupMemberByMemberAuthResponseBodyGroupMemberList setGroupNickName(String groupNickName) { this.groupNickName = groupNickName; return this; } public String getGroupNickName() { return this.groupNickName; } public QueryGroupMemberByMemberAuthResponseBodyGroupMemberList setOrgName(String orgName) { this.orgName = orgName; return this; } public String getOrgName() { return this.orgName; } public QueryGroupMemberByMemberAuthResponseBodyGroupMemberList setProfilePhotoUrl(String profilePhotoUrl) { this.profilePhotoUrl = profilePhotoUrl; return this; } public String getProfilePhotoUrl() { return this.profilePhotoUrl; } public QueryGroupMemberByMemberAuthResponseBodyGroupMemberList setUserId(String userId) { this.userId = userId; return this; } public String getUserId() { return this.userId; } } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
d547350b6ef906d03fe18072094d8dd1eb5f9e97
d74ae31c66c8493260e4dbf8b3cc87581337174c
/src/main/java/hello/repo/Customer188Repository.java
9ea23728f58f9cea3b232327822b4f32d9bb2e79
[]
no_license
scratches/spring-data-gazillions
72e36c78a327f263f0de46fcee991473aa9fb92c
858183c99841c869d688cdbc4f2aa0f431953925
refs/heads/main
2021-06-07T13:20:08.279099
2018-08-16T12:13:37
2018-08-16T12:13:37
144,152,360
0
0
null
2021-04-26T17:19:34
2018-08-09T12:53:18
Java
UTF-8
Java
false
false
279
java
package hello.repo; import hello.model.Customer188; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer188Repository extends CrudRepository<Customer188, Long> { List<Customer188> findByLastName(String lastName); }
[ "dsyer@pivotal.io" ]
dsyer@pivotal.io
4d63b9833b9124d05ddcbdbcb27f3f3fc7230aea
3e5ffd5de1b836ebfe14c4da335a90f2df3f52f3
/jeecg-boot/jeecg-boot-module-activiti/src/main/java/org/jeecg/modules/es/entity/Entry.java
92348b395b38b255ed5e722a6314c169778664b0
[ "MIT" ]
permissive
wanddy/activiti-jeecg-boot
a6ca34e12e9dcaa852e00eced3303d76d080207a
c158aa1fec38c09ddd66fb5360326eeaa21b6076
refs/heads/main
2023-08-25T15:06:50.421885
2021-11-03T09:20:09
2021-11-03T09:20:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,355
java
package org.jeecg.modules.es.entity; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.Date; /** * Entry * * @author dongjb * @version v1.0 * @since 2021-09-04 */ @Data @Builder @NoArgsConstructor @AllArgsConstructor public class Entry implements Serializable { private static final long serialVersionUID = -8076851446078143653L; /** * 主键 */ private String entryId; /** * 词条标题 */ private String entryTitle; /** * 词条简介 */ private String entryDesc; /** * 图片。多个以逗号分隔 */ private String imgIds; /** * 类型 */ private String entryType; /** * 状态:在用1,失效0 */ private String entryStatus; /** * 关键字。多个以逗号分隔 */ private String keyword; /** * 权重(数字) */ private Integer weight; /** * 创建人 */ private String createStaffId; /** * 创建时间 */ private Date createTime; /** * 更新人 */ private String updateStaffId; /** * 更新时间 */ private Date updateTime; /** * 备注 */ private String remark; }
[ "dongjb@asiainfo.com" ]
dongjb@asiainfo.com
afe55f2774641c5c86a5ccee61caeaf05a6597cf
39bb67d27c696a47e82ced53bb77a8cce9b87d7f
/src/design_mode/observer/entity_nonliving/Phone.java
8af36387f723885fa52047c7220024589a83cf6b
[]
no_license
Automannn/designMode
1976a3b64c105c089cb847de9774f98180e7357a
a5d2516f1c583afabacac6b617eb14091ddfa6f4
refs/heads/master
2020-03-30T12:27:54.029735
2018-10-02T09:11:41
2018-10-02T09:12:20
151,225,471
0
0
null
null
null
null
UTF-8
Java
false
false
1,406
java
package design_mode.observer.entity_nonliving; import java.util.ArrayList; import java.util.List; /** * @author automannn@163.com * @time 2018/9/17 23:15 */ public class Phone { //手机牌子 private String name; private final List<Part> coreParts = new ArrayList<>(); private final List<Part> otherParts = new ArrayList<>(); private Part shell; public Phone(String name) { this.name = name; } public Part getShell() { return shell; } public void setShell(Part shell) { this.shell = shell; } public void addCorePart(Part part){ this.coreParts.add(part); } public void addOtherParts(Part part){ this.otherParts.add(part); } public void run(){ System.out.println("这是一个"+ name+"手机:它由三部分组成:核心部件,其它部件,以及外壳"); System.out.println("核心部件有:"+coreParts.toString()); System.out.println("其它部件有:"+ otherParts.toString()); System.out.println("外壳是:"+ getShell().toString()); } public static class Part{ private String name; public Part(String name) { this.name = name; } public String getName() { return name; } @Override public String toString() { return name; } } }
[ "Automannn@163.com" ]
Automannn@163.com
43534bf1a4ec467470f381ea601dcd28edd2582f
b9b4c177c85ecfc24cc2d3f6f103e3f048476ff4
/src/main/java/edu/scripps/p3/quantitative/QuantTrendFinder.java
d43b27f256dce43ada3e2887a20983f1237dcd98
[]
no_license
proteomicsyates/P3
58e4d0a7644b71b0c7035e500dfe592287ca100b
6a3f1e9ed79c2806dd1cf50a2c788939bcd7ea82
refs/heads/master
2019-08-11T04:47:53.421508
2019-05-28T19:33:47
2019-05-28T19:33:47
66,299,082
0
0
null
null
null
null
UTF-8
Java
false
false
5,444
java
/** * diego Jun 14, 2013 */ package edu.scripps.p3.quantitative; import java.io.File; import java.util.ArrayList; import java.util.List; import javax.swing.ProgressMonitor; import edu.scripps.p3.experimentallist.Differential; import edu.scripps.p3.experimentallist.Interactome; import edu.scripps.p3.experimentallist.network.Network; import edu.scripps.p3.experimentallist.network.interaction.Interaction; import edu.scripps.p3.io.MyFileChooser; import gnu.trove.list.array.TDoubleArrayList; /** * @author diego * */ public class QuantTrendFinder { private final List<List<Interactome>> interactomes; private final List<Differential> qlist; private final File logdir; private StringBuffer log; private double tlevel; private List<TDoubleArrayList> matrix; private ProgressMonitor progressMonitor; private static int progress = 0; /** * @param qlist * @param interactomes * @param logdir */ public QuantTrendFinder(List<Differential> qlist, List<List<Interactome>> interactomes, File logdir) { this.interactomes = interactomes; this.qlist = qlist; this.logdir = logdir; } /** * @param quantitativeLevel */ public void setLevel(double quantitativeLevel) { tlevel = quantitativeLevel; if (tlevel < 1 || tlevel > 5) { tlevel = 3; } } private int getFullSize() { int size = 0; for (int k = 0; k < qlist.size(); k++) { size += qlist.get(k).getQlist().size(); } return size; } /** * */ public void run() { log = new StringBuffer(); log.append("Creating q complexes\n"); final int fullsize = getFullSize(); final StringBuilder qlog = new StringBuilder(); progressMonitor = new ProgressMonitor(null, "Calculating Quantitative Trends", "Initializing", 0, fullsize); progress = 0; progressMonitor.setProgress(progress); for (int baitIndex = 0; baitIndex < qlist.size(); baitIndex++) { initializeMatrix(qlist.get(baitIndex).getQlist().size()); for (int i = 0; i < qlist.get(baitIndex).getQlist().size(); i++) { fillMatrix(i, baitIndex); } getTrends(baitIndex); qlog.append("Condition " + baitIndex + "\n"); for (final String qname : qlist.get(baitIndex).getQlist()) { qlog.append(qname + "\t" + qlist.get(baitIndex).getDiffValue(qname) + "\n"); } } progressMonitor.close(); final MyFileChooser dIO = new MyFileChooser(); dIO.writeLog(logdir, log, "QuantTrend"); dIO.writeLog(logdir, qlog, "QuantValues"); } private void getTrends(int bait_id) { double val; String protein1, protein2; final Differential differential = qlist.get(bait_id); for (int i = 0; i < differential.getQlist().size(); i++) { protein1 = differential.getQlist().get(i); progressMonitor.setNote("Working on " + protein1); for (int j = 0; j < differential.getQlist().size(); j++) { protein2 = differential.getQlist().get(j); val = matrix.get(i).get(j); val = Math.pow(val, tlevel); final String proteinPairKey = protein1 + "_" + protein2; if (val > 0.1) { for (final Interactome interactome : interactomes.get(bait_id)) { if (interactome.isNetworkinSystem(protein1)) { log.append(proteinPairKey + "\t" + val + "\n"); if (protein2.equals("PRP43")) { System.out.println("ASDF"); } final Network net = interactome.getNetwork(protein1); if (net.getInteractorsNames().contains(protein2)) { final Interaction inter = net.getInteractionByInteractorName(protein2); inter.setQuant_score(val); } else { final Interaction inter = new Interaction(protein2); inter.setQuant_score(val); net.addInteraction(protein2, inter); } } else { log.append(proteinPairKey + "\t" + val + "\tno with bait\n"); } } } else { log.append(proteinPairKey + "\t" + val + "\tdiscarded\n"); // } } progress++; progressMonitor.setProgress(progress); } } private void fillMatrix(int id, int bait_id) { final int size = qlist.get(bait_id).getQlist().size(); double v1; double v2; final TDoubleArrayList column = new TDoubleArrayList(); v1 = getProteinRatio(id, bait_id); // System.out.println(qlist.get(bait_id).getQlist().get(id) + "\t" + // v1); for (int j = 0; j < size; j++) { v2 = getProteinRatio(j, bait_id); final double proteinRatioDistance = getProteinRatioDistance(v1, v2); column.add(proteinRatioDistance); } addColumn(column); } private void addColumn(TDoubleArrayList column) { matrix.add(column); } private double getProteinRatioDistance(double v1, double v2) { double distance = 0; double ratio = 1; if (v1 < 1) { v1 = 1.0 / v1; } if (v2 < 1) { v2 = 1.0 / v2; } if (v1 > v2) { ratio = v1 / v2; } else { ratio = v2 / v1; } final double floor = Math.floor(ratio); final double ceil = Math.ceil(ratio); final double min = Math.min(ratio - floor, ceil - ratio); distance = 1 - (min * 2); return distance; } private double getProteinRatio(int proteinIndex, int bait_id) { final String proteinKey = qlist.get(bait_id).getQlist().get(proteinIndex); final double val = qlist.get(bait_id).getData().get(proteinKey); return val; } private void initializeMatrix(int size) { matrix = new ArrayList<TDoubleArrayList>(); } /** * @return */ public List<List<Interactome>> getInteractomes() { return interactomes; } }
[ "salvador@scripps.edu" ]
salvador@scripps.edu
66a138db09cf9f3320aa19f15b23e2d7245423ba
91297ffb10fb4a601cf1d261e32886e7c746c201
/refactoring.java/src/org/netbeans/modules/refactoring/java/ui/ReplaceConstructorWithBuilderUI.java
dfc4905faa5337833cd6cdabbfbbae061b38c695
[]
no_license
JavaQualitasCorpus/netbeans-7.3
0b0a49d8191393ef848241a4d0aa0ecc2a71ceba
60018fd982f9b0c9fa81702c49980db5a47f241e
refs/heads/master
2023-08-12T09:29:23.549956
2019-03-16T17:06:32
2019-03-16T17:06:32
167,005,013
0
0
null
null
null
null
UTF-8
Java
false
false
7,644
java
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2012 Oracle and/or its affiliates. All rights reserved. * * Oracle and Java are registered trademarks of Oracle and/or its affiliates. * Other names may be trademarks of their respective owners. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common * Development and Distribution License("CDDL") (collectively, the * "License"). You may not use this file except in compliance with the * License. You can obtain a copy of the License at * http://www.netbeans.org/cddl-gplv2.html * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the * specific language governing permissions and limitations under the * License. When distributing the software, include this License Header * Notice in each file and include the License file at * nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the GPL Version 2 section of the License file that * accompanied this code. If applicable, add the following below the * License Header, with the fields enclosed by brackets [] replaced by * your own identifying information: * "Portions Copyrighted [year] [name of copyright owner]" * * If you wish your version of this file to be governed by only the CDDL * or only the GPL Version 2, indicate your decision by adding * "[Contributor] elects to include this software in this distribution * under the [CDDL or GPL Version 2] license." If you do not indicate a * single choice of license, a recipient has the option to distribute * your version of this file under either the CDDL, the GPL Version 2 or * to extend the choice of license to its licensees as provided above. * However, if you add GPL Version 2 code and therefore, elected the GPL * Version 2 license, then the option applies only if the new code is * made subject to such option by the copyright holder. * * Contributor(s): * * Portions Copyrighted 2012 Sun Microsystems, Inc. */ package org.netbeans.modules.refactoring.java.ui; import com.sun.source.tree.ArrayTypeTree; import org.netbeans.modules.refactoring.java.api.ReplaceConstructorWithBuilderRefactoring; import com.sun.source.tree.MethodTree; import com.sun.source.tree.Tree; import com.sun.source.tree.VariableTree; import com.sun.source.util.TreePath; import java.util.ArrayList; import java.util.EnumSet; import java.util.List; import java.util.Set; import javax.lang.model.element.Element; import javax.lang.model.element.ElementKind; import javax.lang.model.element.ExecutableElement; import javax.lang.model.element.Modifier; import javax.lang.model.element.TypeElement; import javax.swing.event.ChangeListener; import org.netbeans.api.fileinfo.NonRecursiveFolder; import org.netbeans.api.java.source.CompilationInfo; import org.netbeans.api.java.source.TreePathHandle; import org.netbeans.modules.refactoring.api.AbstractRefactoring; import org.netbeans.modules.refactoring.api.Problem; import org.netbeans.modules.refactoring.spi.ui.CustomRefactoringPanel; import org.netbeans.modules.refactoring.spi.ui.RefactoringUI; import org.openide.filesystems.FileObject; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; /** * * @author Jan Becicka */ public class ReplaceConstructorWithBuilderUI implements RefactoringUI, JavaRefactoringUIFactory { private ReplaceConstructorWithBuilderRefactoring refactoring; private String builderFQN; private ReplaceConstructorWithBuilderPanel panel; private String name; private List <String> paramaterNames; private List <String> parameterTypes; private ReplaceConstructorWithBuilderUI(TreePathHandle constructor, CompilationInfo info) { this.refactoring = new ReplaceConstructorWithBuilderRefactoring(constructor); ExecutableElement contructorElement = (ExecutableElement) constructor.resolveElement(info); this.name = contructorElement.getSimpleName().toString(); MethodTree constTree = (MethodTree) constructor.resolve(info).getLeaf(); paramaterNames = new ArrayList(); parameterTypes = new ArrayList(); boolean varargs = contructorElement.isVarArgs(); List<? extends VariableTree> parameters = constTree.getParameters(); for (int i = 0; i < parameters.size(); i++) { VariableTree var = parameters.get(i); paramaterNames.add(var.getName().toString()); String type = var.getType().toString(); if(varargs && i+1 == parameters.size()) { if(var.getType().getKind() == Tree.Kind.ARRAY_TYPE) { ArrayTypeTree att = (ArrayTypeTree) var.getType(); type = att.getType().toString(); type += "..."; //NOI18N } } parameterTypes.add(type); } builderFQN = ((TypeElement) contructorElement.getEnclosingElement()).getQualifiedName().toString(); } private ReplaceConstructorWithBuilderUI() { } @Override public String getName() { return NbBundle.getMessage(ReplaceConstructorWithBuilderUI.class, "ReplaceConstructorWithBuilderName"); } @Override public String getDescription() { return NbBundle.getMessage(ReplaceConstructorWithBuilderUI.class, "ReplaceConstructorWithBuilderDescription", name ,builderFQN); } @Override public boolean isQuery() { return false; } @Override public CustomRefactoringPanel getPanel(final ChangeListener parent) { if (panel == null) { panel = new ReplaceConstructorWithBuilderPanel(parent, builderFQN + "Builder", paramaterNames, parameterTypes); } return panel; } @Override public Problem setParameters() { refactoring.setSetters(panel.getSetters()); refactoring.setBuilderName(panel.getBuilderName()); return refactoring.checkParameters(); } @Override public Problem checkParameters() { refactoring.setSetters(panel.getSetters()); refactoring.setBuilderName(panel.getBuilderName()); return refactoring.fastCheckParameters(); } @Override public boolean hasParameters() { return true; } @Override public AbstractRefactoring getRefactoring() { return refactoring; } @Override public HelpCtx getHelpCtx() { return new HelpCtx(ReplaceConstructorWithBuilderUI.class); } @Override public RefactoringUI create(CompilationInfo info, TreePathHandle[] handles, FileObject[] files, NonRecursiveFolder[] packages) { assert handles.length == 1; TreePath path = handles[0].resolve(info); Set<Tree.Kind> treeKinds = EnumSet.of( Tree.Kind.NEW_CLASS, Tree.Kind.METHOD); while (path != null && !treeKinds.contains(path.getLeaf().getKind())) { path = path.getParentPath(); } if (path != null && treeKinds.contains(path.getLeaf().getKind())) { Element selected = info.getTrees().getElement(path); if (selected.getKind() == ElementKind.CONSTRUCTOR && selected.getEnclosingElement().getKind() != ElementKind.ENUM) { return new ReplaceConstructorWithBuilderUI(TreePathHandle.create(selected, info), info); } } return null; } public static JavaRefactoringUIFactory factory() { return new ReplaceConstructorWithBuilderUI(); } }
[ "taibi@sonar-scheduler.rd.tut.fi" ]
taibi@sonar-scheduler.rd.tut.fi
c8ab7344c44a4b2c4c517b9118e5a857a526b08a
5dd03cebfa97460e1fc00884bfbb6fa301191ce6
/src/main/java/com/company/common/base/db/ConnectionFactory.java
67e8f1645e57d5778bbc1e1dbbbe612076d66806
[]
no_license
JeffRisberg/JPA02
53547b8757db5198951f1e825d7a6137f9c87b81
60ee8832c557780309d56fed2a742d52038fbd27
refs/heads/master
2022-11-02T09:25:15.392475
2022-10-31T04:55:49
2022-10-31T04:55:49
115,038,203
0
0
null
null
null
null
UTF-8
Java
false
false
1,545
java
package com.company.common.base.db; import javax.sql.DataSource; import java.io.Closeable; import java.sql.Connection; import java.sql.SQLException; /** * Create AdHoc DB Connection. You are responsible for managing the connection lifecycle. */ public interface ConnectionFactory extends Closeable { /** * Get the DBType. * * @return DBType. */ DBType getDBType(); /** * Get or create the connection pool. * * @return DataSource */ DataSource getOrCreateDataSource(); /** * Get a Connection from the connection pool. The client is responsible for closing the Connection. * * @return DataSource. */ Connection getConnection() throws SQLException; /** * Get an un-pooled Connection. The client is responsible for closing the Connection. * * @return Connection. * @throws SQLException */ Connection getUnPooledConnection() throws SQLException; /** * Get a Connection. If the specified useConnectionPool is true, the Connection will be retrieved * from the connection pool (if the connection pool has not been created, it will be created). * Otherwise, a fresh un-pooled Connection will be returned. * <p> * The client is responsible for closing the Connection. * * @param useConnectionPool if true, the Connection is returned from the connection pool. * @return Connection. * @throws SQLException */ Connection getConnection(boolean useConnectionPool) throws SQLException; /** * Close the connection factory. */ void close(); }
[ "jrisberg@aol.com" ]
jrisberg@aol.com
a6658e66136de9a8dd43b897c8df029cca3b56b5
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/16/16_2b54daf202c5b1806982904051a34aafa327583f/RomeTest/16_2b54daf202c5b1806982904051a34aafa327583f_RomeTest_t.java
35d4c281b7e4fa48e9b5444ace0d423575f1669a
[]
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
492
java
package com.spreadthesource.tapestry.rome.integration; import org.apache.tapestry5.test.SeleniumTestCase; import org.testng.annotations.Test; public class RomeTest extends SeleniumTestCase { @Test public void atom() { open("/index:atom"); assertTrue(getBodyText().contains("my Atom feed")); } @Test public void rss() { open("/index:rss"); assertTrue(getBodyText().contains("my RSS feed")); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
37fcb8f5c53f726db1e766c3ada3c60425aa549e
0493ffe947dad031c7b19145523eb39209e8059a
/OpenJdk8uTest/src/test/sun/security/pkcs11/Cipher/TestRawRSACipher.java
8dd155895b96a41a6f77e7f5902329a03a373f07
[]
no_license
thelinh95/Open_Jdk8u_Test
7612f1b63b5001d1df85c1df0d70627b123de80f
4df362a71e680dbd7dfbb28c8922e8f20373757a
refs/heads/master
2021-01-16T19:27:30.506632
2017-08-13T23:26:05
2017-08-13T23:26:05
100,169,775
0
1
null
null
null
null
UTF-8
Java
false
false
3,320
java
package test.sun.security.pkcs11.Cipher; /* * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code 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 * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /** * @test * @bug 6994008 * @summary basic test for RSA/ECB/NoPadding cipher * @author Valerie Peng * @library .. */ import java.security.GeneralSecurityException; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.Provider; import java.util.Arrays; import java.util.Random; import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec; import test.java.io.*; import test.java.security.*; import test.java.util.*; import test.javax.crypto.*; public class TestRawRSACipher extends PKCS11Test { public void main(Provider p) throws Exception { try { Cipher.getInstance("RSA/ECB/NoPadding", p); } catch (GeneralSecurityException e) { System.out.println("Not supported by provider, skipping"); return; } final int KEY_LEN = 1024; KeyPairGenerator kpGen = KeyPairGenerator.getInstance("RSA", p); kpGen.initialize(KEY_LEN); KeyPair kp = kpGen.generateKeyPair(); Random random = new Random(); byte[] plainText, cipherText, recoveredText; plainText = new byte[KEY_LEN/8]; random.nextBytes(plainText); plainText[0] = 0; // to ensure that it's less than modulus Cipher c1 = Cipher.getInstance("RSA/ECB/NoPadding", p); Cipher c2 = Cipher.getInstance("RSA/ECB/NoPadding", "SunJCE"); c1.init(Cipher.ENCRYPT_MODE, kp.getPublic()); c2.init(Cipher.DECRYPT_MODE, kp.getPrivate()); cipherText = c1.doFinal(plainText); recoveredText = c2.doFinal(cipherText); if (!Arrays.equals(plainText, recoveredText)) { throw new RuntimeException("E/D Test against SunJCE Failed!"); } c2.init(Cipher.ENCRYPT_MODE, kp.getPublic()); c1.init(Cipher.DECRYPT_MODE, kp.getPrivate()); cipherText = c2.doFinal(plainText); recoveredText = c1.doFinal(cipherText); if (!Arrays.equals(plainText, recoveredText)) { throw new RuntimeException("D/E Test against SunJCE Failed!"); } System.out.println("Test Passed"); } public static void main(String[] args) throws Exception { main(new TestRawRSACipher()); } }
[ "truongthelinh95@gmail.com" ]
truongthelinh95@gmail.com
5044205fec2a754ff02bf85ab4a8b3a21976786d
108b4ebcd420adbf743e308fe1a792d397a5755e
/Patrimonio/src/java/com/t2tierp/patrimonio/cliente/PatrimTipoMovimentacaoGrid.java
c4ccc76ad2bdae6974362b8a5d579e7737eb7e64
[ "MIT" ]
permissive
DeveloperMobile/T2Ti-ERP-1.0-Java
19565ba429cf751a4e845f20c7809426352db655
3a91981d0a11e5ff258d09df6fee73f5b6d1cb07
refs/heads/master
2023-03-15T13:58:24.144105
2019-09-03T00:54:56
2019-09-03T00:54:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,323
java
package com.t2tierp.patrimonio.cliente; import org.openswing.swing.client.GridControl; import org.openswing.swing.mdi.client.InternalFrame; /** * <p>Title: T2Ti ERP</p> * <p>Description: Tela PatrimTipoMovimentacaoGrid.</p> * * <p>The MIT License</p> * * <p>Copyright: Copyright (C) 2010 T2Ti.COM * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * * The author may be contacted at: * t2ti.com@gmail.com</p> * * @author Claudio de Barros (t2ti.com@gmail.com) * @version 1.0 */ public class PatrimTipoMovimentacaoGrid extends InternalFrame { public PatrimTipoMovimentacaoGrid(PatrimTipoMovimentacaoGridController controller) { initComponents(); gridControl1.setController(controller); gridControl1.setGridDataLocator(controller); } public GridControl getGrid1() { return gridControl1; } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; jPanel1 = new javax.swing.JPanel(); insertButton1 = new org.openswing.swing.client.InsertButton(); deleteButton1 = new org.openswing.swing.client.DeleteButton(); reloadButton1 = new org.openswing.swing.client.ReloadButton(); navigatorBar1 = new org.openswing.swing.client.NavigatorBar(); gridControl1 = new org.openswing.swing.client.GridControl(); comboColumn1 = new org.openswing.swing.table.columns.client.ComboColumn(); textColumn4 = new org.openswing.swing.table.columns.client.TextColumn(); textColumn5 = new org.openswing.swing.table.columns.client.TextColumn(); setTitle("T2Ti ERP - Controle Patrimonial"); setPreferredSize(new java.awt.Dimension(700, 400)); getContentPane().setLayout(new java.awt.GridBagLayout()); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Patrim Tipo Movimentacao")); jPanel1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT)); jPanel1.add(insertButton1); jPanel1.add(deleteButton1); jPanel1.add(reloadButton1); jPanel1.add(navigatorBar1); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; getContentPane().add(jPanel1, gridBagConstraints); gridControl1.setDeleteButton(deleteButton1); gridControl1.setFunctionId("patrimTipoMovimentacao"); gridControl1.setInsertButton(insertButton1); gridControl1.setNavBar(navigatorBar1); gridControl1.setReloadButton(reloadButton1); gridControl1.setValueObjectClassName("com.t2tierp.patrimonio.java.PatrimTipoMovimentacaoVO"); gridControl1.getColumnContainer().setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT)); comboColumn1.setColumnName("tipo"); comboColumn1.setDomainId("patrimTipoMovimentacao"); comboColumn1.setHeaderColumnName("Tipo"); comboColumn1.setHeaderFont(new java.awt.Font("Arial", 1, 11)); // NOI18N gridControl1.getColumnContainer().add(comboColumn1); textColumn4.setColumnName("nome"); textColumn4.setHeaderColumnName("Nome"); textColumn4.setHeaderFont(new java.awt.Font("Arial", 1, 11)); // NOI18N textColumn4.setPreferredWidth(150); gridControl1.getColumnContainer().add(textColumn4); textColumn5.setColumnName("descricao"); textColumn5.setHeaderColumnName("Descricao"); textColumn5.setHeaderFont(new java.awt.Font("Arial", 1, 11)); // NOI18N textColumn5.setPreferredWidth(300); gridControl1.getColumnContainer().add(textColumn5); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; getContentPane().add(gridControl1, gridBagConstraints); pack(); }// </editor-fold>//GEN-END:initComponents // Variables declaration - do not modify//GEN-BEGIN:variables private org.openswing.swing.table.columns.client.ComboColumn comboColumn1; private org.openswing.swing.client.DeleteButton deleteButton1; private org.openswing.swing.client.GridControl gridControl1; private org.openswing.swing.client.InsertButton insertButton1; private javax.swing.JPanel jPanel1; private org.openswing.swing.client.NavigatorBar navigatorBar1; private org.openswing.swing.client.ReloadButton reloadButton1; private org.openswing.swing.table.columns.client.TextColumn textColumn4; private org.openswing.swing.table.columns.client.TextColumn textColumn5; // End of variables declaration//GEN-END:variables }
[ "claudiobsi@gmail.com" ]
claudiobsi@gmail.com
56af9a3aab18b2d6ccbfc97fcc1149d29b8a2f49
700fb98a5c15e8e0319a1c6a86a3f5e504e50714
/app/src/main/java/com/electrocraft/nirzo/pluse/model/dba/PatientUser.java
142afb19cff88fe2ffe8c40964f96021bc7b9c95
[]
no_license
pulse-service/app
7a5e7e7d724b813df569846a0856d97ea8faa7d4
9683de08d384bc4c25314d75503e7150d6dbf823
refs/heads/master
2020-03-13T06:51:55.917418
2018-06-18T10:22:59
2018-06-18T10:22:59
131,013,469
0
0
null
null
null
null
UTF-8
Java
false
false
676
java
package com.electrocraft.nirzo.pluse.model.dba; import com.activeandroid.Model; import com.activeandroid.annotation.Column; import com.activeandroid.annotation.Table; /** * Created by nirzo on 3/10/2018. */ @Table(name = "PatientUser") public class PatientUser extends Model { @Column(name = "pri_PTID") public String pri_PTID = ""; @Column(name = "pri_PTName") public String pri_PTName = ""; @Column(name = "acs_CountryCode") public String acs_CountryCode = ""; @Column(name = "pri_Phone") public String pri_Phone = ""; @Column(name = "pri_Email") public String pri_Email = ""; public PatientUser() { super(); } }
[ "nirzon192@gmail.com" ]
nirzon192@gmail.com
4297ad6af0800abd0bbe97aff3b833acc4a936e0
6bc3bc88443e4edb13b11e1b66015b7fcfbdd547
/WEEK05_29272/app/src/main/java/umn/ac/id/week05_29272/MainActivity.java
d0be0fefa4021e2353641b1b54380712d6f48adc
[]
no_license
QueenVirginia/Mobile-Application-Programming
1d38e5a04a0884aec5eee5aab806b804b1c8ddeb
96f861b6b4885fbbe551d19aa823155f8cc192e6
refs/heads/master
2023-04-19T10:00:15.755722
2021-05-07T06:59:49
2021-05-07T06:59:49
337,677,838
0
0
null
null
null
null
UTF-8
Java
false
false
3,328
java
package umn.ac.id.week05_29272; import android.graphics.Color; import android.os.Bundle; import android.widget.ImageButton; import android.widget.RadioButton; import android.widget.RadioGroup; import android.widget.SeekBar; import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { private SeekBar sbRed, sbGreen, sbBlue; private RadioGroup rgBentuk; private RadioButton rbPilih; private ImageButton btnWarna; private CustomView customView; private int red = 0; private int green = 0; private int blue = 0; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); sbRed = findViewById(R.id.sbRed); sbGreen = findViewById(R.id.sbGreen); sbBlue = findViewById(R.id.sbBlue); btnWarna = findViewById(R.id.btnWarna); rgBentuk = findViewById(R.id.rgBentuk); customView = findViewById(R.id.customView); customView = new CustomView(this); rgBentuk.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { @Override public void onCheckedChanged(RadioGroup group, int checkedId) { int intRb = rgBentuk.getCheckedRadioButtonId(); rbPilih = findViewById(intRb); String bentuk = rbPilih.getText().toString(); customView.gantiBentuk((bentuk)); } }); sbRed.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { @Override public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { } @Override public void onStartTrackingTouch(SeekBar seekBar) { } @Override public void onStopTrackingTouch(SeekBar seekBar) { red = sbRed.getProgress(); customView.gantiWarna(red, green, blue); btnWarna.setBackgroundColor(Color.rgb(red, green, blue)); } }); sbGreen.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { @Override public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { } @Override public void onStartTrackingTouch(SeekBar seekBar) { } @Override public void onStopTrackingTouch(SeekBar seekBar) { green = sbGreen.getProgress(); customView.gantiWarna(red, green, blue); btnWarna.setBackgroundColor(Color.rgb(red, green, blue)); } }); sbBlue.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { @Override public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { } @Override public void onStartTrackingTouch(SeekBar seekBar) { } @Override public void onStopTrackingTouch(SeekBar seekBar) { blue = sbBlue.getProgress(); customView.gantiWarna(red, green, blue); btnWarna.setBackgroundColor(Color.rgb(red, green, blue)); } }); } }
[ "you@example.com" ]
you@example.com
d3b2b329a95a4d397e538fa458723934a0444d05
cfde0bf8aafae8f43285b0e2b8ef37282a2e26e0
/src/main/java/com/dell/isg/smi/virtualnetwork/validation/ValidatedInet4Address.java
65866ed9062396563adfe0860a8c78a7eb965b62
[ "Apache-2.0" ]
permissive
nortonluo/smi-lib-virtualnetwork
283f14618a77ffba24ee132b30b85b468cc41372
73dc8a210bde5c3dc169e7ed60cda003d6de175e
refs/heads/master
2021-05-09T06:23:11.368688
2018-01-31T07:49:45
2018-01-31T07:49:45
119,329,167
0
1
null
2018-01-31T07:49:45
2018-01-29T03:54:39
Java
WINDOWS-1252
Java
false
false
3,458
java
/** * Copyright © 2017 DELL Inc. or its subsidiaries. All Rights Reserved. */ package com.dell.isg.smi.virtualnetwork.validation; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.dell.isg.smi.commons.elm.exception.BusinessValidationException; import com.dell.isg.smi.virtualnetwork.exception.ErrorCodeEnum; /** * The Class ValidatedInet4Address. */ public class ValidatedInet4Address implements Comparable<ValidatedInet4Address> { private static final Logger logger = LoggerFactory.getLogger(ValidatedInet4Address.class); private long address; /** * Instantiates a new validated inet 4 address. * * @param addressString the address string * @throws BusinessValidationException the business validation exception */ public ValidatedInet4Address(String addressString) { address = Inet4ConverterValidator.convertIpStringToLong(addressString); } /** * Instantiates a new validated inet 4 address. * * @param value the value * @throws BusinessValidationException the business validation exception */ public ValidatedInet4Address(long value) { if (Inet4ConverterValidator.isValidIpAddress(value)) { address = value; } else { logger.debug("Invalid IP Address; entered IPAddress format is not correct"); BusinessValidationException businessValidationException = new BusinessValidationException(ErrorCodeEnum.INVALID_IPADDRESS_CODE); businessValidationException.addAttribute(String.valueOf(value)); throw businessValidationException; } } /** * Gets the address. * * @return the address */ public long getAddress() { return address; } /* (non-Javadoc) * @see java.lang.Object#toString() */ @Override public String toString() { return Inet4ConverterValidator.convertIpValueToString(address); } /* (non-Javadoc) * @see java.lang.Comparable#compareTo(java.lang.Object) */ @Override public int compareTo(ValidatedInet4Address o) { if (this.getAddress() < o.getAddress()) { return -1; } else if (this.getAddress() == o.getAddress()) { return 0; } return 1; } /* (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object o) { if (o instanceof ValidatedInet4Address) { ValidatedInet4Address other = (ValidatedInet4Address) o; return other.getAddress() == this.address; } return false; } /* (non-Javadoc) * @see java.lang.Object#hashCode() */ @Override public int hashCode() { Long hasher = Long.valueOf(address); return hasher.hashCode(); } /** * Gets the network prefix. * * @param mask the mask * @return the network prefix */ public ValidatedInet4Address getNetworkPrefix(ValidatedInet4SubnetMask mask) { long prefix = address & mask.getValue(); return new ValidatedInet4Address(prefix); } /** * Gets the host part. * * @param mask the mask * @return the host part */ public ValidatedInet4Address getHostPart(ValidatedInet4SubnetMask mask) { long host = address & (~mask.getValue()); return new ValidatedInet4Address(host); } }
[ "Michael_Hepfer@dell.com" ]
Michael_Hepfer@dell.com
fe683cd083a49f3da7fb5442e3b605664ba75cee
0af8b92686a58eb0b64e319b22411432aca7a8f3
/api-vs-impl-small/core/src/main/java/org/gradle/testcore/performancenull_14/Productionnull_1372.java
04b1679c8510b71c71b721915a18e27d941cf8b0
[]
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
589
java
package org.gradle.testcore.performancenull_14; public class Productionnull_1372 { private final String property; public Productionnull_1372(String param) { this.property = param; } public String getProperty() { return property; } private String prop0; public String getProp0() { return prop0; } public void setProp0(String value) { prop0 = value; } private String prop1; public String getProp1() { return prop1; } public void setProp1(String value) { prop1 = value; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
47fdf8e39ba6799bb2577125cfb746e6df342174
139960e2d7d55e71c15e6a63acb6609e142a2ace
/mobile_app1/module1128/src/main/java/module1128packageJava0/Foo5.java
c1163256d57d2cbd35e6e2839d025b38fa0fc020
[ "Apache-2.0" ]
permissive
uber-common/android-build-eval
448bfe141b6911ad8a99268378c75217d431766f
7723bfd0b9b1056892cef1fef02314b435b086f2
refs/heads/master
2023-02-18T22:25:15.121902
2023-02-06T19:35:34
2023-02-06T19:35:34
294,831,672
83
7
Apache-2.0
2021-09-24T08:55:30
2020-09-11T23:27:37
Java
UTF-8
Java
false
false
332
java
package module1128packageJava0; import java.lang.Integer; public class Foo5 { Integer int0; public void foo0() { new module1128packageJava0.Foo4().foo4(); } public void foo1() { foo0(); } public void foo2() { foo1(); } public void foo3() { foo2(); } public void foo4() { foo3(); } }
[ "oliviern@uber.com" ]
oliviern@uber.com
5a3371a590f103fe1796aed90fcd92e1b5073668
094642ba71e1bc701c7725ce1b4d836efadac0c1
/yunpukeji/src/main/java/com/zhiluo/android/yunpu/statistics/order/adapter/JiCiRecoderAdapter.java
edcf939af34b4f4a0468b768beae4e32c4a62e52
[]
no_license
czq080/Trunk
80a521bab8c6cc8482b55a291a79e8be634ae1d6
dcfcb5d6be83a87620c74d4092455bf844ff99d7
refs/heads/master
2023-03-17T20:01:14.790638
2020-03-25T06:26:10
2020-03-25T06:26:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,560
java
package com.zhiluo.android.yunpu.statistics.order.adapter; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.zhiluo.android.yunpu.R; import com.zhiluo.android.yunpu.statistics.order.bean.TimesConsumeOrderBean; import com.zhiluo.android.yunpu.statistics.order.bean.TimesGoodDetailBean; import com.zhiluo.android.yunpu.utils.Decima2KeeplUtil; /** * Created by ${YSL} on 2018-06-02. */ public class JiCiRecoderAdapter extends RecyclerView.Adapter<JiCiRecoderAdapter.MyHolder> { private Context mContext; private TimesConsumeOrderBean.DataBean.DataListBean bean; public JiCiRecoderAdapter(Context mContext, TimesConsumeOrderBean.DataBean.DataListBean bean) { this.mContext = mContext; this.bean = bean; } @Override public JiCiRecoderAdapter.MyHolder onCreateViewHolder(ViewGroup parent, int viewType) { View view = LayoutInflater.from(mContext).inflate(R.layout.item_inwaredetail_jici, null); JiCiRecoderAdapter.MyHolder myHolder = new JiCiRecoderAdapter.MyHolder(view); return myHolder; } @Override public void onBindViewHolder(JiCiRecoderAdapter.MyHolder holder, int position) { holder.tvGoodsName.setText(bean.getWouldOrderDetail().get(position).getSG_Name() == null ? "" : bean.getWouldOrderDetail().get(position).getSG_Name()); holder.tvInCount.setText("" + bean.getWouldOrderDetail().get(position).getWOD_UseNumber()); holder.tvThisSinglePrice.setText(Decima2KeeplUtil.stringToDecimal((bean.getWouldOrderDetail().get(position).getWOD_ResidueDegree() + ""))); holder.ivGoodsImg.setImageResource(R.drawable.ysl_goods); } @Override public int getItemCount() { return bean == null ? 0 : bean.getWouldOrderDetail().size(); } class MyHolder extends RecyclerView.ViewHolder { private ImageView ivGoodsImg;//商品图标 private TextView tvThisSinglePrice; private TextView tvInCount; private TextView tvGoodsName; public MyHolder(View itemView) { super(itemView); tvThisSinglePrice = itemView.findViewById(R.id.tv_this_single_price); tvInCount = itemView.findViewById(R.id.tv_in_count); ivGoodsImg = itemView.findViewById(R.id.iv_goods_img); tvGoodsName = itemView.findViewById(R.id.tv_goods_name); } } }
[ "guting@kuaimashi.com" ]
guting@kuaimashi.com
c9537123f0219788d2d5491881dbf386ad5b15ae
bbe34278f3ed99948588984c431e38a27ad34608
/sources/android/support/wearable/notifications/IBridgingManagerService.java
d317f7ca6fb4a87a49053bfec1054a2e54f310c6
[]
no_license
sapardo10/parcial-pruebas
7af500f80699697ab9b9291388541c794c281957
938a0ceddfc8e0e967a1c7264e08cd9d1fe192f0
refs/heads/master
2020-04-28T02:07:08.766181
2019-03-10T21:51:36
2019-03-10T21:51:36
174,885,553
0
0
null
null
null
null
UTF-8
Java
false
false
2,181
java
package android.support.wearable.notifications; import android.os.Bundle; import android.os.IBinder; import android.os.IInterface; import android.os.Parcel; import android.os.RemoteException; import android.support.wearable.internal.aidl.BaseProxy; import android.support.wearable.internal.aidl.BaseStub; import android.support.wearable.internal.aidl.Codecs; public interface IBridgingManagerService extends IInterface { public static abstract class Stub extends BaseStub implements IBridgingManagerService { private static final String DESCRIPTOR = "android.support.wearable.notifications.IBridgingManagerService"; static final int TRANSACTION_setBridgingConfig = 1; public static class Proxy extends BaseProxy implements IBridgingManagerService { Proxy(IBinder remote) { super(remote, Stub.DESCRIPTOR); } public void setBridgingConfig(Bundle bridgingConfig) throws RemoteException { Parcel data = obtainAndWriteInterfaceToken(); Codecs.writeParcelable(data, bridgingConfig); transactAndReadExceptionReturnVoid(1, data); } } public Stub() { attachInterface(this, DESCRIPTOR); } public static IBridgingManagerService asInterface(IBinder obj) { if (obj == null) { return null; } IInterface iin = obj.queryLocalInterface(DESCRIPTOR); if (iin instanceof IBridgingManagerService) { return (IBridgingManagerService) iin; } return new Proxy(obj); } public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException { if (routeToSuperOrEnforceInterface(code, data, reply, flags)) { return true; } if (code != 1) { return false; } setBridgingConfig((Bundle) Codecs.createParcelable(data, Bundle.CREATOR)); reply.writeNoException(); return true; } } void setBridgingConfig(Bundle bundle) throws RemoteException; }
[ "sa.pardo10@uniandes.edu.co" ]
sa.pardo10@uniandes.edu.co
337c639caa3794f190b6dc7dc49bf6f83efffcc0
e41507592722fd1549a9b43d7545b4d6d5d256ed
/src/main/java/org/fhir/pojo/StructureMapParameter.java
39119e57da4cb6790a2f749d8fc4e8e08e797525
[ "MIT" ]
permissive
gmai2006/fhir
a91636495409615ab41cc2a01e296cddc64159ee
8613874a4a93a108c8520f8752155449464deb48
refs/heads/master
2021-05-02T07:11:25.129498
2021-02-26T00:17:15
2021-02-26T00:17:15
120,861,248
2
0
null
2020-01-14T22:16:55
2018-02-09T05:29:57
Java
UTF-8
Java
false
false
6,037
java
/* * #%L * FHIR Implementation * %% * Copyright (C) 2018 DataScience 9 LLC * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ /** * This code is 100% AUTO generated. Please do not modify it DIRECTLY * If you need new features or function or changes please update the templates * then submit the template through our web interface. */ package org.fhir.pojo; import org.fhir.entity.StructureMapParameterModel; import com.fasterxml.jackson.annotation.JsonInclude; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; /** * "A Map of relationships between 2 structures that can be used to transform data." * generated on 07/14/2018 */ @JsonInclude(JsonInclude.Include.NON_NULL) @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) public class StructureMapParameter extends BackboneElement { /** * Description: "Parameter value - variable or literal." */ @javax.validation.constraints.Pattern(regexp="[A-Za-z0-9\\-\\.]{1,64}") protected String valueId; /** * Description: "Extensions for valueId" */ protected transient Element _valueId; /** * Description: "Parameter value - variable or literal." */ protected String valueString; /** * Description: "Extensions for valueString" */ protected transient Element _valueString; /** * Description: "Parameter value - variable or literal." */ protected Boolean valueBoolean; /** * Description: "Extensions for valueBoolean" */ protected transient Element _valueBoolean; /** * Description: "Parameter value - variable or literal." */ @javax.validation.constraints.Pattern(regexp="-?([0]|([1-9][0-9]*))") protected Float valueInteger; /** * Description: "Extensions for valueInteger" */ protected transient Element _valueInteger; /** * Description: "Parameter value - variable or literal." */ @javax.validation.constraints.Pattern(regexp="-?([0]|([1-9][0-9]*))(\\.[0-9]+)?") protected Float valueDecimal; /** * Description: "Extensions for valueDecimal" */ protected transient Element _valueDecimal; public StructureMapParameter() { } public StructureMapParameter(StructureMapParameterModel o) { this.id = o.getId(); if (null != o.getValueId()) { this.valueId = o.getValueId(); } if (null != o.getValueString()) { this.valueString = o.getValueString(); } if (null != o.getValueBoolean()) { this.valueBoolean = o.getValueBoolean(); } if (null != o.getValueInteger()) { this.valueInteger = o.getValueInteger(); } if (null != o.getValueDecimal()) { this.valueDecimal = o.getValueDecimal(); } } public void setValueId( String value) { this.valueId = value; } public String getValueId() { return this.valueId; } public void set_valueId( Element value) { this._valueId = value; } public Element get_valueId() { return this._valueId; } public void setValueString( String value) { this.valueString = value; } public String getValueString() { return this.valueString; } public void set_valueString( Element value) { this._valueString = value; } public Element get_valueString() { return this._valueString; } public void setValueBoolean( Boolean value) { this.valueBoolean = value; } public Boolean getValueBoolean() { return this.valueBoolean; } public void set_valueBoolean( Element value) { this._valueBoolean = value; } public Element get_valueBoolean() { return this._valueBoolean; } public void setValueInteger( Float value) { this.valueInteger = value; } public Float getValueInteger() { return this.valueInteger; } public void set_valueInteger( Element value) { this._valueInteger = value; } public Element get_valueInteger() { return this._valueInteger; } public void setValueDecimal( Float value) { this.valueDecimal = value; } public Float getValueDecimal() { return this.valueDecimal; } public void set_valueDecimal( Element value) { this._valueDecimal = value; } public Element get_valueDecimal() { return this._valueDecimal; } @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("[StructureMapParameter]:" + "\n"); if(this.valueId != null) builder.append("valueId" + "->" + this.valueId.toString() + "\n"); if(this._valueId != null) builder.append("_valueId" + "->" + this._valueId.toString() + "\n"); if(this.valueString != null) builder.append("valueString" + "->" + this.valueString.toString() + "\n"); if(this._valueString != null) builder.append("_valueString" + "->" + this._valueString.toString() + "\n"); if(this.valueBoolean != null) builder.append("valueBoolean" + "->" + this.valueBoolean.toString() + "\n"); if(this._valueBoolean != null) builder.append("_valueBoolean" + "->" + this._valueBoolean.toString() + "\n"); if(this.valueInteger != null) builder.append("valueInteger" + "->" + this.valueInteger.toString() + "\n"); if(this._valueInteger != null) builder.append("_valueInteger" + "->" + this._valueInteger.toString() + "\n"); if(this.valueDecimal != null) builder.append("valueDecimal" + "->" + this.valueDecimal.toString() + "\n"); if(this._valueDecimal != null) builder.append("_valueDecimal" + "->" + this._valueDecimal.toString() + "\n"); ; return builder.toString(); } }
[ "gmai2006@gmail.com" ]
gmai2006@gmail.com
83a91f9e912492e7c6e87a85ad9a80e6d46b5f90
0f11a58f4f8957d611e03b6a7ba200105332bcca
/oiscn-application/src/test/java/com/varian/oiscn/application/resources/OspTokenValidateMonitorThreadTest.java
4d026cca065d4869e291a22bf70eafb62ba9b33f
[]
no_license
yugezi-gjw/SDCH-server-release-2
955c82dac6c888c2c69e80146476245607af1237
d78aa8a0ee0376aaf688201688ef009ec4179b65
refs/heads/master
2020-03-25T04:11:43.980187
2018-08-03T07:04:45
2018-08-03T07:04:45
143,382,229
0
1
null
null
null
null
UTF-8
Java
false
false
1,730
java
package com.varian.oiscn.application.resources; import com.varian.oiscn.application.util.MockDtoUtil; import com.varian.oiscn.base.user.AuthenticationCache; import com.varian.oiscn.config.Configuration; import com.varian.oiscn.core.user.OspLogin; import com.varian.oiscn.core.user.UserContext; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Matchers; import org.powermock.api.mockito.PowerMockito; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; /** * Created by gbt1220 on 7/27/2017. */ @RunWith(PowerMockRunner.class) @PrepareForTest(OspTokenValidateThread.class) public class OspTokenValidateMonitorThreadTest { private AuthenticationCache cache; private Configuration configuration; @Test public void givenCacheWhenRunMonitorThreadThenRun() throws Exception { OspTokenValidateThread ospTokenValidateThread = PowerMockito.mock(OspTokenValidateThread.class); PowerMockito.whenNew(OspTokenValidateThread.class).withArguments(configuration, Matchers.anyListOf(OspLogin.class)).thenReturn(ospTokenValidateThread); PowerMockito.doNothing().when(ospTokenValidateThread).run(); cache = new AuthenticationCache(10); configuration = new Configuration(); configuration.setOspTokenValidationInterval(10); cache.put("token", new UserContext(MockDtoUtil.givenALogin(), MockDtoUtil.givenAnOspLogin())); OspTokenValidateMonitorThread monitorThread = new OspTokenValidateMonitorThread(cache, configuration); try { monitorThread.run(); } catch (Exception e) { Assert.fail(); } } }
[ "gbt1220@varian.com" ]
gbt1220@varian.com
3e9ebae6f0504872bf329092ec70532d4cf2de2d
a35e16a787a1b348d8d3f05e5b1a0dda046d3a0c
/androiddemo/src/main/java/com/ty/example_unit_2/opengl_2/sensormanager/AccelerometerActivity.java
1283f3996cd191b0d8d1b1f66aa6929b1e0b5d8a
[]
no_license
tangyong3g/Android-Road
e6161c7198dda1f8bb6bfd99e5a1777594cc38ae
43e7c2ac8f0b4639105cb5a8b86099a83fbe9da7
refs/heads/master
2020-04-15T06:48:55.288998
2016-07-09T08:13:59
2016-07-09T08:13:59
8,734,686
5
2
null
null
null
null
UTF-8
Java
false
false
1,795
java
package com.ty.example_unit_2.opengl_2.sensormanager; import android.app.Activity; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.os.Bundle; import android.util.Log; import android.widget.TextView; /** * 重力传感器 * * @author tangyong * */ public class AccelerometerActivity extends Activity implements SensorEventListener{ TextView view = null; SensorManager sensorManager ; Sensor sensor ; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); view = new TextView(this); setContentView(view); sensorManager = (SensorManager)getSystemService(SENSOR_SERVICE); sensor = sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); } @Override protected void onResume() { super.onResume(); //注册传感器 sensorManager.registerListener ( this, //eventListener sensor, // sensor SensorManager.SENSOR_DELAY_GAME //delay type ); } @Override protected void onPause() { super.onPause(); sensorManager.unregisterListener(this); } @Override public void onSensorChanged(SensorEvent event) { Log.i("tyler.tang","onSensorChanged"); float x = event.values[0]; float y = event.values[1]; float z = event.values[2]; StringBuffer sb = new StringBuffer(); sb.append("X方向加速度:\t"); sb.append(x); sb.append("\n"); sb.append("Y方向加速度:\t"); sb.append(y); sb.append("\n"); sb.append("Z方向加速度:\t"); sb.append(z); sb.append("\n"); view.setText(sb.toString()); } @Override public void onAccuracyChanged(Sensor sensor, int accuracy) { } }
[ "ty_sany@163.com" ]
ty_sany@163.com
781c3fffc4c76f528f742995a7f0f495f793c8b7
b38b7e67b23807bc04b004314d36331e14a3a299
/src/main/java/org/javamoney/adopjsr/Conversions.java
d707a80be386af4275e4770c976e49f82d8df2ed
[ "Apache-2.0" ]
permissive
SylvesterLoreto/moneymachine
2c9d9e9dc17823ecb24efe9c9453ad6fcce0ba42
6eec08dd739f8bfafd83fbae06659fd33798a6f1
refs/heads/master
2022-05-21T17:56:06.441794
2014-06-28T11:26:43
2014-06-28T11:26:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,827
java
/* * Copyright (c) 2012, 2013, Credit Suisse (Anatole Tresch). 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. Contributors: Anatole Tresch - initial version. */ package org.javamoney.adopjsr; import javax.money.CurrencyUnit; import javax.money.MonetaryAmount; import javax.money.convert.ConversionContext; import javax.money.convert.ExchangeRate; import javax.money.convert.ProviderContext; /** * API test class that allows to test out the API for currency conversion. Hint the available providers can be * evaluated by calling {@link javax.money.convert.MonetaryConversions#getProviderNames()}, by default the moneta * reference implementation comes with the following providers: * <ul> * <li>IMF - International Monetary Fonds (current day rates).</li> * <li>ECB - European Central Bank (current day rates)</li> * <li>ECB-HIST90 - European Central Bank (historic rates, back to 1990).</li> * </ul> * Created by Anatole on 21.03.14. * * @see javax.money.convert.MonetaryConversions */ public class Conversions{ /** * Get the corresponding exchange rate provided by the International Monetary Fonds (IMF). * * @param src the source/base {@link javax.money.CurrencyUnit}, not null * @param tgt the target {@link javax.money.CurrencyUnit}, not null * @return the rate found. * @see javax.money.convert.MonetaryConversions * @see javax.money.convert.ExchangeRateProvider */ public ExchangeRate getExchangeRateFromIMF(CurrencyUnit src, CurrencyUnit tgt){ throw new UnsupportedOperationException(); } /** * Get the an exchange rate provided by the International Monetary Fonds (IMF) for a given UTC timestamp. * * @param src the source/base {@link javax.money.CurrencyUnit}, not null * @param tgt the target {@link javax.money.CurrencyUnit}, not null * @param timestamp The target UTC timestamp * @return the rate found. * @see javax.money.convert.MonetaryConversions * @see javax.money.convert.ExchangeRateProvider */ public ExchangeRate getExchangeRateWithTime(CurrencyUnit src, CurrencyUnit tgt, long timestamp){ throw new UnsupportedOperationException(); } /** * Converts an amount to the given target currency, using the current default conversion. * * @param tgt The target currency * @param amount the amount to be converted * @return the converted amount, not null. * @see javax.money.convert.MonetaryConversions * @see javax.money.convert.CurrencyConversion * @see javax.money.MonetaryOperator */ public MonetaryAmount convertAmountDefault(CurrencyUnit tgt, MonetaryAmount amount){ throw new UnsupportedOperationException(); } /** * Evaluate the current default Conversion Context. * * @param src the source/base {@link javax.money.CurrencyUnit}, not null * @param tgt the target {@link javax.money.CurrencyUnit}, not null * @return the converted amount, not null. * @see javax.money.convert.MonetaryConversions * @see javax.money.convert.CurrencyConversion * @see javax.money.MonetaryOperator */ public ConversionContext getDefaultConversionContext(CurrencyUnit src, CurrencyUnit tgt){ throw new UnsupportedOperationException(); } /** * Evaluate the Provider Context of the IMF provider. Optionally print the details to the console. * * @return the ConversionContext, not null. * @see javax.money.convert.MonetaryConversions * @see javax.money.convert.ExchangeRateProvider */ public ProviderContext getIMFProviderContext(){ throw new UnsupportedOperationException(); } /** * Evaluate the Provider Context of the ECB provider. Optionally print the details to the console. * * @return the ConversionContext, not null. * @see javax.money.convert.MonetaryConversions * @see javax.money.convert.ExchangeRateProvider */ public ProviderContext getECBProviderContext(){ throw new UnsupportedOperationException(); } /** * Evaluate the Provider Context of the ECB provider. Optionally print the details to the console. * * @return the ConversionContext, not null. * @see javax.money.convert.MonetaryConversions * @see javax.money.convert.ExchangeRateProvider */ public ProviderContext getDefaultProviderContext(){ throw new UnsupportedOperationException(); } /** * Converts an amount to the given target currency, based on the given timestamp. * * @param tgt The target currency * @param amount the amount to be converted * @param timestamp the target timestamp * @return the converted amount, not null. * @see javax.money.convert.MonetaryConversions * @see javax.money.convert.CurrencyConversion * @see javax.money.MonetaryOperator */ public MonetaryAmount convertAmount(CurrencyUnit tgt, MonetaryAmount amount, long timestamp){ throw new UnsupportedOperationException(); } /** * Get the default provider chain. <p/> * <b>Hint: </b>This is not an API specific target. It is based on the current RI. Nevertheless we might * discuss, if standardizing this mechanism would make sense. Or if we even would add an additional method * on {@link javax.money.convert.ExchangeRateProvider} for evaluating this. * * @return the provider ID, the test will check, if the provider is correctly registered. * @see javax.money.convert.MonetaryConversions * @see javax.money.convert.ExchangeRateProvider */ public String[] getDefaultProviderChain(){ throw new UnsupportedOperationException(); } /** * Register your own custom {@link }ExchangeRateProvider} implementation and return the according provider ID. * The test will check, if the provider is visible and print out the according {@link javax.money.convert * .ProviderContext}. * * @return the provider ID, the test will check, if the provider is correctly registered. * @see javax.money.convert.MonetaryConversions * @see javax.money.convert.ExchangeRateProvider */ public String getNewProviderName(){ throw new UnsupportedOperationException(); } }
[ "atsticks@gmail.com" ]
atsticks@gmail.com
28748839d64c5835c3e2f049ac6c7d2c3dc6f75b
79d081703d7516e474be2da97ee6419a5320b6ff
/src/swordToOffer/firstUniqChar/Solution.java
de3decf0e982bbbd2cb02417a7ae0bc2b677511d
[]
no_license
ITrover/Algorithm
e22494ca4c3b2e41907cc606256dcbd1d173886d
efa4eecc7e02754078d284269556657814cb167c
refs/heads/master
2022-05-26T01:48:28.956693
2022-04-01T11:58:24
2022-04-01T11:58:24
226,656,770
1
0
null
null
null
null
UTF-8
Java
false
false
597
java
package swordToOffer.firstUniqChar; import java.util.HashMap; /** * 使用hash表 * 时间复杂度 o(n) * 空间复杂度 o(1),最多也就那么多个字符 */ class Solution { public char firstUniqChar(String s) { HashMap<Character, Integer> map = new HashMap<>(); for (int i = 0; i < s.length(); i++) { map.put(s.charAt(i),map.getOrDefault(s.charAt(i),0) + 1); } for (int i = 0; i < s.length(); i++) { if(map.get(s.charAt(i)).equals(1)){ return s.charAt(i); } } return ' '; } }
[ "1172610139@qq.com" ]
1172610139@qq.com
0b02c668d013acb98948a7d638dd1907d54a1e81
fd8ceaf0149bce82501bcfffca48d626d46bc2e7
/src/main/java/com/mastercard/pts/integrated/issuing/pages/customer/cardmanagement/OtherTransactionsPage.java
d11907aac6456facf246f2e50d27164940746518
[]
no_license
scalpovich/TechLarning
4f8281a5a94af65733968a7f5dae88eaac3d311b
c9d13ed0dcd5c51a521d42e6c96e3150cb473e6f
refs/heads/feature/pavan/hotfix
2021-10-10T23:20:56.181769
2019-01-18T06:08:16
2019-01-18T06:08:16
358,985,640
0
1
null
2021-04-17T21:26:23
2021-04-17T21:26:22
null
UTF-8
Java
false
false
2,021
java
package com.mastercard.pts.integrated.issuing.pages.customer.cardmanagement; import java.util.Arrays; import java.util.Collection; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.ui.ExpectedCondition; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import com.mastercard.pts.integrated.issuing.pages.AbstractBasePage; import com.mastercard.pts.integrated.issuing.pages.navigation.annotation.Navigation; import com.mastercard.pts.integrated.issuing.utils.WebElementUtils; import com.mastercard.testing.mtaf.bindings.element.ElementsBase.FindBy; import com.mastercard.testing.mtaf.bindings.element.MCWebElement; import com.mastercard.testing.mtaf.bindings.page.PageElement; @Component @Navigation(tabTitle = CardManagementNav.TAB_CARD_MANAGEMENT, treeMenuItems = { CardManagementNav.L1_ACTIVITY, CardManagementNav.L2_TRANSACTION_MANAGEMENT, CardManagementNav.L3_TRANSACTION, CardManagementNav.L4_OTHER_TRANSACTIONS }) public class OtherTransactionsPage extends AbstractBasePage { private static final Logger logger = LoggerFactory.getLogger(OtherTransactionsPage.class); @PageElement(findBy = FindBy.CSS, valueToFind = "[fld_fqn=remittanceNumber]") private MCWebElement remittanceNumber; @PageElement(findBy = FindBy.CSS, valueToFind = "[fld_fqn=remittanceSequence]") private MCWebElement remittanceSequence; @PageElement(findBy = FindBy.NAME, valueToFind = "searchDiv:rows:2:componentList:0:componentPanel:input:dropdowncomponent") private MCWebElement transactionType; public void verifyUiOperationStatus() { logger.info("Other Transaction"); verifyUiOperationNoEdit("Add Other Transaction"); } @Override protected Collection<ExpectedCondition<WebElement>> isLoadedConditions() { return Arrays.asList( WebElementUtils.elementToBeClickable(remittanceNumber), WebElementUtils.elementToBeClickable(remittanceSequence), WebElementUtils.elementToBeClickable(transactionType) ); } }
[ "ravi.hargunani@mastercard.com" ]
ravi.hargunani@mastercard.com
979262f74e4b7eb2254b88b50159ffa6418bfc96
dac8a56ee2c38c3a48f7a38677cc252fd0b5f94a
/Lectures/2021/Feb/15Feb/Program1/NestedDemo.java
33fca6f9d88a8477c85ebd5ccbb0c4f05e113e9a
[]
no_license
nikitasanjaypatil/Java9
64dbc0ec8b204c54bfed128d9517ea0fb00e97a4
fd92b1b13d767e5ee48d88fe22f0260d3d1ac391
refs/heads/master
2023-03-15T03:44:34.347450
2021-02-28T17:13:01
2021-02-28T17:13:01
281,289,978
0
1
null
null
null
null
UTF-8
Java
false
false
1,082
java
class NestedDemo { public static void main(String[] args) { try { System.out.println("In Outer Try"); try { System.out.println("Inside Inner Try"); System.out.println(10/0); }catch(ArithmeticException ae) { System.out.println("Inside Inner class(try)"); } }catch(NullPointerException npe) { System.out.println("In Outer catch"); try { System.out.println("Inside Outer Try"); }catch(ArithmeticException ae) { System.out.println("Inside Inner class(catch)"); } } finally { System.out.println("In Finally"); try { System.out.println("Inside Try(Finally)"); }catch(ArithmeticException ae) { System.out.println("Inside catch(finally)"); } } } } /* * Output:- * In Outer Try * Inside Inner Try * Inside Inner class(try) * In Finally * Inside Try(Finally) */
[ "nikitaspatilaarvi@gmail.com" ]
nikitaspatilaarvi@gmail.com
31de474c337ef5aee4403506aba82a1239a42fa2
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/25/25_4642126b1b070a949c83dc31b4c1a878c7255a7b/IncidentCountsRepositoryTest/25_4642126b1b070a949c83dc31b4c1a878c7255a7b_IncidentCountsRepositoryTest_s.java
92b45fb77a7cc4657635359b528453e434bc24b0
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
2,280
java
package com.github.kolorobot.icm.dashboard; import com.github.kolorobot.icm.config.TestDataSourceConfig; import com.github.kolorobot.icm.incident.Incident; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import javax.inject.Inject; import static org.fest.assertions.Assertions.assertThat; import static org.fest.assertions.MapAssert.entry; @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = TestDataSourceConfig.class) public class IncidentCountsRepositoryTest { @Inject private JdbcTemplate jdbcTemplate; private IncidentCountsRepository incidentCountsRepository; @Before public void setUp() throws Exception { incidentCountsRepository = new IncidentCountsRepository(jdbcTemplate); } @Test public void incidentCounts() { IncidentCounts result = incidentCountsRepository.incidentCounts(); assertThat(result.all()).as("Count all").isEqualTo(3); assertThat(result.createdToday()).as("Count by today").isEqualTo(0); assertThat(result.byStatus()).as("Count by status") .includes(entry(Incident.Status.NEW, 2)) .includes(entry(Incident.Status.CONFIRMED, 1)) .includes(entry(Incident.Status.NOT_CONFIRMED, 0)) .includes(entry(Incident.Status.SOLVED, 0)) .includes(entry(Incident.Status.CLOSED, 0)); } @Test public void auditCounts() { IncidentCounts result = incidentCountsRepository.auditCounts(); assertThat(result.all()).as("Count all").isEqualTo(0); assertThat(result.createdToday()).as("Count by today").isEqualTo(0); assertThat(result.byStatus()).as("Count by status") .includes(entry(Incident.Status.NEW, 0)) .includes(entry(Incident.Status.CONFIRMED, 0)) .includes(entry(Incident.Status.NOT_CONFIRMED, 0)) .includes(entry(Incident.Status.SOLVED, 0)) .includes(entry(Incident.Status.CLOSED, 0)); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
94b79877d0d87674d98a14ec3d31284bb8b8d6e0
a03d118249c2e3244687acbe62e056976cf83380
/src/java/com/bytecode/entities/Installments.java
0256afb53baf4327f7d08cd830c7f02cff607e9e
[]
no_license
hangshisitu/BankingCore
62a5bc96412b4b6771cac304aa78fa3ac98bc9ab
280b34675fe08fcc038562d5c90cf386e0a62235
refs/heads/master
2020-12-24T02:31:25.033287
2016-09-27T13:07:40
2016-09-27T13:07:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,418
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 com.bytecode.entities; import java.io.Serializable; import java.util.Date; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; import javax.xml.bind.annotation.XmlRootElement; /** * * @author Ahmed */ @Entity @Table(name = "installments") @XmlRootElement @NamedQueries({ @NamedQuery(name = "Installments.findAll", query = "SELECT i FROM Installments i"), @NamedQuery(name = "Installments.findByInstallmentId", query = "SELECT i FROM Installments i WHERE i.installmentId = :installmentId"), @NamedQuery(name = "Installments.findByAmount", query = "SELECT i FROM Installments i WHERE i.amount = :amount"), @NamedQuery(name = "Installments.findByChequeNumber", query = "SELECT i FROM Installments i WHERE i.chequeNumber = :chequeNumber"), @NamedQuery(name = "Installments.findByPresentationDate", query = "SELECT i FROM Installments i WHERE i.presentationDate = :presentationDate"), @NamedQuery(name = "Installments.findByAppuser", query = "SELECT i FROM Installments i WHERE i.appuser = :appuser"), @NamedQuery(name = "Installments.findByInterest", query = "SELECT i FROM Installments i WHERE i.interest = :interest"), @NamedQuery(name = "Installments.findByTotal", query = "SELECT i FROM Installments i WHERE i.total = :total"), @NamedQuery(name = "Installments.findByStatus", query = "SELECT i FROM Installments i WHERE i.status = :status")}) public class Installments implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Basic(optional = false) @Column(name = "installmentId") private Integer installmentId; @Column(name = "amount") private String amount; @Column(name = "chequeNumber") private String chequeNumber; @Column(name = "presentationDate") @Temporal(TemporalType.TIMESTAMP) private Date presentationDate; @Column(name = "appuser") private Integer appuser; @Column(name = "interest") private String interest; @Column(name = "total") private String total; @Column(name = "status") private String status; @JoinColumn(name = "loanId", referencedColumnName = "loanid") @ManyToOne private Loanapllication loanId; public Installments() { } public Installments(Integer installmentId) { this.installmentId = installmentId; } public Integer getInstallmentId() { return installmentId; } public void setInstallmentId(Integer installmentId) { this.installmentId = installmentId; } public String getAmount() { return amount; } public void setAmount(String amount) { this.amount = amount; } public String getChequeNumber() { return chequeNumber; } public void setChequeNumber(String chequeNumber) { this.chequeNumber = chequeNumber; } public Date getPresentationDate() { return presentationDate; } public void setPresentationDate(Date presentationDate) { this.presentationDate = presentationDate; } public Integer getAppuser() { return appuser; } public void setAppuser(Integer appuser) { this.appuser = appuser; } public String getInterest() { return interest; } public void setInterest(String interest) { this.interest = interest; } public String getTotal() { return total; } public void setTotal(String total) { this.total = total; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public Loanapllication getLoanId() { return loanId; } public void setLoanId(Loanapllication loanId) { this.loanId = loanId; } @Override public int hashCode() { int hash = 0; hash += (installmentId != null ? installmentId.hashCode() : 0); return hash; } @Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof Installments)) { return false; } Installments other = (Installments) object; if ((this.installmentId == null && other.installmentId != null) || (this.installmentId != null && !this.installmentId.equals(other.installmentId))) { return false; } return true; } @Override public String toString() { return "com.bytecode.entities.Installments[ installmentId=" + installmentId + " ]"; } }
[ "ahmed.oladele@vanso.com" ]
ahmed.oladele@vanso.com
5c7774af9928093dfe02da1245e2ef118a43ec70
fbf27d453d933352a2c8ef76e0445f59e6b5d304
/boss/src/com/fy/boss/platform/lenovo/LenovoSavingCallBackServlet.java
31f0c64f78b391fe5bdc643237818202ec728b25
[]
no_license
JoyPanda/wangxian_server
0996a03d86fa12a5a884a4c792100b04980d3445
d4a526ecb29dc1babffaf607859b2ed6947480bb
refs/heads/main
2023-06-29T05:33:57.988077
2021-04-06T07:29:03
2021-04-06T07:29:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,436
java
package com.fy.boss.platform.lenovo; import java.io.IOException; import java.net.URLDecoder; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; import com.fy.boss.authorize.service.PassportManager; import com.fy.boss.finance.model.OrderForm; import com.fy.boss.finance.service.OrderFormManager; import com.fy.boss.finance.service.PlatformSavingCenter; import com.fy.boss.platform.qq.QQConstants; import com.fy.boss.tools.JacksonManager; import com.xuanzhi.tools.text.FileUtils; import com.xuanzhi.tools.text.StringUtil; public class LenovoSavingCallBackServlet extends HttpServlet { private static final String SECRETKEY = "8c55352dd2efe601637a"; //更新相关的订单状态 protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { long startTime = System.currentTimeMillis(); req.setCharacterEncoding("utf-8"); String orderId = req.getParameter("orderId"); String openid = req.getParameter("openid"); String amount = req.getParameter("amount"); String actualAmount = req.getParameter("actualAmount"); String cpOrderId = URLDecoder.decode(req.getParameter("extraInfo"),"utf-8"); String success = req.getParameter("success"); String msg = req.getParameter("msg"); String sign = req.getParameter("sign"); //去掉sign标记 得到所有参数 String signStr = "orderId="+orderId+"&openid=" + openid + "&amount=" +amount + "&actualAmount=" +actualAmount+ "&success=" +success+"&extraInfo="+cpOrderId+"&secret="+SECRETKEY; String my_sign = StringUtil.hash(signStr); //验证sign if(my_sign.equalsIgnoreCase(sign)) { OrderFormManager orderFormManager = OrderFormManager.getInstance(); //查询订单 OrderForm orderForm = orderFormManager.getOrderForm(cpOrderId); //通过orderId查订单 if(orderForm != null) { synchronized(orderForm) { if(orderForm.getResponseResult() != OrderForm.RESPONSE_NOBACK) { PlatformSavingCenter.logger.error("[充值回调] [充值平台:乐逗] [失败:订单已经回调过了] [LENOVO订单id:"+orderId+"] [order id:"+orderForm.getId()+"] [my orderId:"+orderForm.getOrderId()+"] [交易金额:"+amount+"] [实际金额:"+actualAmount+"] [订单中原金额:"+orderForm.getPayMoney()+"] [costs:"+(System.currentTimeMillis()-startTime)+"]"); res.getWriter().write("ok"); return; } } orderForm.setResponseTime(System.currentTimeMillis()); orderForm.setMemo2("[外部订单号:"+orderId+"] [交易金额:"+amount+"] [实际交易金额:"+actualAmount+"] [交易结果:"+success+"] [sign:"+sign+"]"); orderForm.setResponseDesp("乐逗回调充值接口成功"); if(Math.round(Double.valueOf(actualAmount) * 100) != orderForm.getPayMoney()) { PlatformSavingCenter.logger.warn("[充值回调] [充值平台:乐逗] [警告:传回的充值金额和订单存储的金额不一致] [order id:"+orderForm.getId()+"] [my orderId:"+orderForm.getOrderId()+"] [充值金额:"+amount+"] [传入实际金额:"+actualAmount+"] [订单中原金额:"+orderForm.getPayMoney()+"] [costs:"+(System.currentTimeMillis()-startTime)+"]"); } if(success.trim().equals("0")) { orderForm.setHandleResult(OrderForm.HANDLE_RESULT_SUCC); orderForm.setResponseResult(OrderForm.RESPONSE_SUCC); orderForm.setPayMoney(Math.round(Double.valueOf(actualAmount) * 100)); if(PlatformSavingCenter.logger.isInfoEnabled()) PlatformSavingCenter.logger.info("[充值回调] [充值平台:乐逗] [成功] [充值成功] [传入乐逗ORDERID:"+orderId+"] [order id:"+orderForm.getId()+"] [my orderId:"+orderForm.getOrderId()+"] [充值金额:"+amount+"] [扣完手续费传入实际金额:"+actualAmount+"] [更新入订单的金额:"+Math.round(Double.valueOf(actualAmount) * 100)+"] [订单中原金额:"+orderForm.getPayMoney()+"] [乐逗用户:"+openid+"] [costs:"+(System.currentTimeMillis()-startTime)+"]"); } else { orderForm.setResponseResult(OrderForm.RESPONSE_FAILED); orderForm.setResponseDesp("乐逗交易失败"); PlatformSavingCenter.logger.warn("[充值回调] [充值平台:乐逗] [成功] [充值失败] [传入乐逗ORDERID:"+orderId+"] [order id:"+orderForm.getId()+"] [my orderId:"+orderForm.getOrderId()+"] [充值金额:"+amount+"] [扣完手续费传入实际金额:"+actualAmount+"] [更新入订单的金额:"+Math.round(Double.valueOf(actualAmount) * 100)+"] [订单中原金额:"+orderForm.getPayMoney()+"] [乐逗用户:"+openid+"] [返回结果:"+success+"] [错误信息:"+msg+"] [costs:"+(System.currentTimeMillis()-startTime)+"]"); } try { orderFormManager.update(orderForm); } catch (Exception e) { PlatformSavingCenter.logger.error("[充值回调] [充值平台:乐逗] [失败:更新订单出错] [传入乐逗ORDERID:"+orderId+"] [order id:"+orderForm.getId()+"] [my orderId:"+orderForm.getOrderId()+"] [充值金额:"+amount+"] [扣完手续费传入实际金额:"+actualAmount+"] [更新入订单的金额:"+Math.round(Double.valueOf(actualAmount) * 100)+"] [订单中原金额:"+orderForm.getPayMoney()+"] [乐逗用户:"+openid+"] [返回结果:"+success+"] [错误信息:"+msg+"] [costs:"+(System.currentTimeMillis()-startTime)+"]",e); res.getWriter().write("failure"); return; } res.getWriter().write("ok"); return; } else { PlatformSavingCenter.logger.warn("[充值回调] [充值平台:乐逗] [成功] [查找订单失败] [传入乐逗ORDERID:"+orderId+"] [传入orderId:"+cpOrderId+"] [充值金额:"+amount+"] [扣完手续费传入实际金额:"+actualAmount+"] [更新入订单的金额:"+Math.round(Double.valueOf(actualAmount) * 100)+"] [乐逗用户:"+openid+"] [costs:"+(System.currentTimeMillis()-startTime)+"]"); res.getWriter().write("failure"); return; } } else { PlatformSavingCenter.logger.error("[充值回调] [充值平台:乐逗] [失败:签名验证失败] [准备用于签名的字符串:"+signStr+"] [传入的sign:"+sign+"] [my sign:"+my_sign+"] [costs:"+(System.currentTimeMillis()-startTime)+"]"); res.getWriter().write("failure"); return; } } }
[ "1414464063@qq.com" ]
1414464063@qq.com
02d7bdf7c2ed22e7ceb119e87441b70d3ea978f7
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/MATH-38b-5-16-MOEAD-WeightedSum:TestLen:CallDiversity/org/apache/commons/math/optimization/direct/BaseAbstractMultivariateOptimizer_ESTest.java
cf0a6498382be27e2900bef5a5a09d1dec7d09bd
[]
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
1,160
java
/* * This file was automatically generated by EvoSuite * Sun Jan 19 20:02:44 UTC 2020 */ package org.apache.commons.math.optimization.direct; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import org.apache.commons.math.analysis.SumSincFunction; import org.apache.commons.math.optimization.GoalType; import org.apache.commons.math.optimization.direct.BOBYQAOptimizer; 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 BaseAbstractMultivariateOptimizer_ESTest extends BaseAbstractMultivariateOptimizer_ESTest_scaffolding { @Test(timeout = 4000) public void test0() throws Throwable { BOBYQAOptimizer bOBYQAOptimizer0 = new BOBYQAOptimizer(10); SumSincFunction sumSincFunction0 = new SumSincFunction(10); GoalType goalType0 = GoalType.MAXIMIZE; double[] doubleArray0 = new double[4]; // Undeclared exception! bOBYQAOptimizer0.optimize(10, sumSincFunction0, goalType0, doubleArray0); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
7017af9d50a65e13b8d65886607139b72417eef7
7d50d2d40f13b51d356c20c942ca3b0ef1da3a2c
/src/main/java/com/jadbit/jhipstertest/web/rest/vm/LoginVM.java
1d616a7fca58debcd4cb3a78e8c20a643de4fa87
[]
no_license
armandotaglieri/jhipstertest
ba9a73b3a2f1d11fa7e2d919ef7964f136be1c68
401a377c2596f216e193ef6bc844892918807570
refs/heads/master
2021-04-12T09:50:26.148245
2018-03-25T21:33:16
2018-03-25T21:33:16
126,742,165
0
0
null
null
null
null
UTF-8
Java
false
false
1,122
java
package com.jadbit.jhipstertest.web.rest.vm; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; /** * View Model object for storing a user's credentials. */ public class LoginVM { @NotNull @Size(min = 1, max = 50) private String username; @NotNull @Size(min = ManagedUserVM.PASSWORD_MIN_LENGTH, max = ManagedUserVM.PASSWORD_MAX_LENGTH) private String password; private Boolean rememberMe; public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public Boolean isRememberMe() { return rememberMe; } public void setRememberMe(Boolean rememberMe) { this.rememberMe = rememberMe; } @Override public String toString() { return "LoginVM{" + "username='" + username + '\'' + ", rememberMe=" + rememberMe + '}'; } }
[ "jhipster-bot@users.noreply.github.com" ]
jhipster-bot@users.noreply.github.com
d1f3ac354a037fce52e79278b481e7968a8269b1
b4652206bbb4bfa3a2c43dc735ec4626da466b8a
/jining/customermanage/customermanage-api/src/main/java/com/xinhai/caiyun/customermanage/api/IntentionCustomerFollowUpService.java
f31c8bf1bf73472f0a24fd06bbc557263a79cbc7
[]
no_license
likungithub/jining
7dce8d11ade69fc1bf5c74f9ec385427422af024
46c814831471970792c0ad3306b242129fad4f34
refs/heads/master
2022-12-25T07:43:53.554141
2019-12-14T11:27:26
2019-12-14T11:27:26
228,010,689
1
0
null
2022-12-16T02:44:25
2019-12-14T11:21:01
Java
UTF-8
Java
false
false
2,345
java
package com.xinhai.caiyun.customermanage.api; import org.springframework.stereotype.Service; import java.util.Date; import java.util.List; /** * 意向客户跟进接口 * Created by 王硕 on 2018/4/11 0011. */ @Service public interface IntentionCustomerFollowUpService { /** * 新增共享客户(职员) * @param shareCustomer */ void addShareCustomer(ShareCustomer shareCustomer); /** * 查看共享员工(职员) * @param yxid * @param dljgBm * @return */ List<ShareCustomer> findByYxId(String yxid, String dljgBm); void deleteShareCustomer(String yxid, String dljgBm, String currentZydm, Date date); /** * 新增跟进内容 * @param followUpInfo */ void addFollowUpContent(FollowUpInfo followUpInfo); /** * 新增跟进附件 * @param followUpFile */ void addFollowUpFiles(FollowUpFile followUpFile); FollowUpInfo findFollowInfoById(String id); void updateFollowUpContent(FollowUpInfo followUpInfo, String id); void updateFollowUpFiles(FollowUpFile followUpFile, String id); /** * 获取当前跟进客户的跟进信息 * @param dljgBm * @param intentionCode * @return */ List<FollowUpInfo> findFollowUpInfoByAgencyCodeAndIntentionCode(String dljgBm, String intentionCode); /** * 获取当前跟进客户的跟进信息附件 * @param dljgBm * @param gjId * @return */ List<FollowUpFile> findFollowUpFilesByAgencyCodeAndIntentionCode(String dljgBm, String gjId); /** * 删除文件 * @param id */ void deleteFile(String id); /** * 删除跟新信息 * @param id */ void deleteFollowUpInfo(String id); /** * 通过跟进id 查询跟进信息 * @param id * @return */ FollowUpInfo findFollowInfoBygjId(String id); String findByYxIdForLrry_dm(String yxid, String id); String findByGjidForLrry_dm(String gjId); /** * 通过跟进id查询文件 * @param id * @return */ List<FollowUpFile> findByGjId(String id); /** * 通过跟进id 删除跟进信息 * @param id * @param inputPeopleCode * @param date */ void deleteFollowUpInfoByGjId(String id, String inputPeopleCode, Date date); }
[ "m15234101946@163.com" ]
m15234101946@163.com
ca0b3e36b3bb30f480b20408fbe1b1bce4829804
4ddf0512874b6833c1d39d954a90e83b235a1ac1
/apiClient/src/main/java/com/apiclient/vo/DownCuttingToolVO.java
247bbce9d0be71e2743aa9e5da07e0fbc39306c8
[]
no_license
looooogan/icomp-4gb-api
a6a77882408077e6c65212f7b077c55ab83d49ab
4fd701c5ca694abecb05a13f2e32ab890cad3269
refs/heads/master
2020-03-17T20:11:58.057762
2018-06-28T09:02:26
2018-06-28T09:02:26
133,897,691
0
0
null
null
null
null
UTF-8
Java
false
false
1,075
java
package com.apiclient.vo; /** * Created by logan on 2018/4/30. */ public class DownCuttingToolVO { private String downCode; private Integer downCount; private Integer downLostCount; private String downRfidCode; private Integer lost; public Integer getLost() { return lost; } public void setLost(Integer lost) { this.lost = lost; } public String getDownRfidCode() { return downRfidCode; } public void setDownRfidCode(String downRfidCode) { this.downRfidCode = downRfidCode; } public Integer getDownLostCount() { return downLostCount; } public void setDownLostCount(Integer downLostCount) { this.downLostCount = downLostCount; } public String getDownCode() { return downCode; } public void setDownCode(String downCode) { this.downCode = downCode; } public Integer getDownCount() { return downCount; } public void setDownCount(Integer downCount) { this.downCount = downCount; } }
[ "logan.box2016@gmail.com" ]
logan.box2016@gmail.com
4e055163d8174268f89cbb96dcbdb044c98a41b5
4c51292d71ad74bd9262bfcc4c53d262e2dd9a94
/app/src/main/java/com/example/mayikang/wowallet/adapter/ConfirmOrderTicketAdapter.java
1bfb0431bc8eb66937988af83a1cfd2aa39c4964
[]
no_license
lifuyuan123/User
7487fbfa68ec96fc93e9fbace4a6b364d336e84d
95329d66405ff44b6185c7daaee6769594d68832
refs/heads/master
2021-08-11T08:34:49.026191
2017-11-13T12:05:58
2017-11-13T12:05:58
110,540,318
0
0
null
null
null
null
UTF-8
Java
false
false
5,342
java
package com.example.mayikang.wowallet.adapter; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.EditText; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import com.alibaba.android.vlayout.DelegateAdapter; import com.alibaba.android.vlayout.LayoutHelper; import com.example.mayikang.wowallet.R; import java.util.ArrayList; import java.util.HashMap; import butterknife.BindView; import butterknife.ButterKnife; /** * Created by lifuy on 2017/9/28. */ public class ConfirmOrderTicketAdapter extends DelegateAdapter.Adapter<ConfirmOrderTicketAdapter.MyViewHolder> { public static final int TYPE_1 = 1; public static final int TYPE_2 = 2; public static final int TYPE_3 = 3; private Context mContext; private ArrayList<HashMap<String, Object>> data = new ArrayList<>(); private LayoutInflater inflater; private int type = 0; private LayoutHelper helper; private RecyclerView.LayoutParams params; public ConfirmOrderTicketAdapter(Context mContext, ArrayList<HashMap<String, Object>> data, int type, LayoutHelper helper, RecyclerView.LayoutParams params) { this.mContext = mContext; this.data = data; this.type = type; this.helper = helper; this.params = params; this.inflater = (LayoutInflater) this.mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } public ConfirmOrderTicketAdapter(Context mContext, ArrayList<HashMap<String, Object>> data, int type, LayoutHelper helper) { this(mContext, data, type, helper, new RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); } @Override public int getItemViewType(int position) { switch (type) { case 1: return TYPE_1; case 2: return TYPE_2; case 3: return TYPE_3; default: return -1; } } @Override public MyViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { View mView = null; switch (i) { case TYPE_1: mView = inflater.inflate(R.layout.confirm_order_ticket_lay_a, viewGroup, false); break; case TYPE_2: mView = inflater.inflate(R.layout.confirm_order_ticjet_lay_b, viewGroup, false); break; case TYPE_3: mView = inflater.inflate(R.layout.confirm_order_ticket_lay_c, viewGroup, false); break; } return new MyViewHolder(mView, i); } @Override public void onBindViewHolder(MyViewHolder myViewHolder, int i) { int itemViewType = getItemViewType(i); switch (itemViewType) { case TYPE_1: break; case TYPE_2: break; case TYPE_3: break; } } @Override public int getItemCount() { return data.size(); } @Override public LayoutHelper onCreateLayoutHelper() { return helper; } class MyViewHolder extends RecyclerView.ViewHolder { //type=1 TextView conOrderTicketLayAStoreName; //type=2 ImageView conOrderTicketLayBImg; TextView conOrderTicketLayBMsg; TextView conOrderTicketLayBPrice; TextView conOrderTicketLayBNumber; LinearLayout conOrderTicketLayBLayout; //type=3 TextView conOrderTicketLayCPayWay; EditText conOrderTicketLayCEdt; TextView conOrderTicketLayCNumber; TextView conOrderTicketLayCPrice; public MyViewHolder(View itemView, int type) { super(itemView); ButterKnife.bind(this, itemView); switch (type) { case TYPE_1: conOrderTicketLayAStoreName= (TextView) itemView.findViewById(R.id.con_order_ticket_lay_a_StoreName); break; case TYPE_2: conOrderTicketLayBImg= (ImageView) itemView.findViewById(R.id.con_order_ticket_lay_b_img); conOrderTicketLayBMsg= (TextView) itemView.findViewById(R.id.con_order_ticket_lay_b_msg); conOrderTicketLayBPrice= (TextView) itemView.findViewById(R.id.con_order_ticket_lay_b_Price); conOrderTicketLayBNumber= (TextView) itemView.findViewById(R.id.con_order_ticket_lay_b_number); conOrderTicketLayBLayout= (LinearLayout) itemView.findViewById(R.id.con_order_ticket_lay_b_layout); break; case TYPE_3: conOrderTicketLayCPayWay= (TextView) itemView.findViewById(R.id.con_order_ticket_lay_c_payWay); conOrderTicketLayCEdt= (EditText) itemView.findViewById(R.id.con_order_ticket_lay_c_edt); conOrderTicketLayCNumber= (TextView) itemView.findViewById(R.id.con_order_ticket_lay_c_number); conOrderTicketLayCPrice= (TextView) itemView.findViewById(R.id.con_order_ticket_lay_c_price); break; } } } }
[ "446960231@qq.com" ]
446960231@qq.com
1ac6eea8de561224ea520e77cdcedd947593a67f
c70148e6e0f5a23309dbb78c74e6f9a7f4edeeaa
/org.modeldriven.alf/src/org/modeldriven/alf/fuml/mapping/expressions/SequenceAccessExpressionMapping.java
d191db58107c70c6492fb9eb9b3b5ea0f517bf60
[]
no_license
lschuetze/Alf-Reference-Implementation
9fdf03c23e8c98a97a216a5df0c6e9857395ff52
c1390c5898a16862af38b1413050ce9b3b294692
refs/heads/master
2021-01-17T09:31:48.014486
2016-02-22T20:02:08
2016-02-22T20:02:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,179
java
/******************************************************************************* * Copyright 2011, 2012 Data Access Technologies, Inc. (Model Driven Solutions) * All rights reserved worldwide. This program and the accompanying materials * are made available for use under the terms of the GNU General Public License * (GPL) version 3 that accompanies this distribution and is available at * http://www.gnu.org/licenses/gpl-3.0.html. For alternative licensing terms, * contact Model Driven Solutions. *******************************************************************************/ package org.modeldriven.alf.fuml.mapping.expressions; import org.modeldriven.alf.mapping.Mapping; import org.modeldriven.alf.mapping.MappingError; import org.modeldriven.alf.syntax.expressions.Expression; import org.modeldriven.alf.syntax.expressions.InvocationExpression; import org.modeldriven.alf.syntax.expressions.SequenceAccessExpression; import org.modeldriven.alf.uml.*; public class SequenceAccessExpressionMapping extends BehaviorInvocationExpressionMapping { private InvocationExpression invocation = null; private ActivityNode indexSource = null; /* * A sequence access expression is mapped to a call to the primitive * behavior Alf::Library::PrimitiveBehaviors::SequenceFunctions::At. The * result source element of the primary expression of the sequence access * expression is connected by an object flow to the first argument input pin * of the call behavior action. The result source element of the index * expression is connected by an object flow to the second argument input * pin. The result output pin of the call behavior action is the result * source element for the sequence access expression. */ @Override public Action mapAction() throws MappingError { Action action = super.mapAction(); /** * Add a fork node that allows the result of the index expression to also * be used in the mapping of a left-hand side corresponding to this * sequence access expression, as in an inout argument, increment/decrement * expression or compound assignment. */ InputPin inputPin = action.getInput().get(1); this.indexSource = this.graph.addForkNode("Fork(" + inputPin.getName() + ")"); ActivityEdge flow = inputPin.getIncoming().get(0); inputPin.removeIncoming(flow); flow.setTarget(this.indexSource); this.graph.addObjectFlow(this.indexSource, inputPin); return action; } @Override public InvocationExpression getInvocationExpression() { if (this.invocation == null) { // The getInvocation operation returns the equivalent At function // invocation for the sequence access expression. this.invocation = this.getSequenceAccessExpression().getImpl().getInvocation(); } return this.invocation; } @Override public ActivityNode getIndexSource() throws MappingError { this.getAction(); return this.indexSource; } @Override public ActivityNode getObjectSource() throws MappingError { SequenceAccessExpression expression = this.getSequenceAccessExpression(); Expression primary = expression.getPrimary(); if (primary == null) { return null; } else { Mapping mapping = primary.getImpl().getMapping(); return mapping instanceof ExpressionMapping? ((ExpressionMapping)mapping).getObjectSource(): null; } } public SequenceAccessExpression getSequenceAccessExpression() { return (SequenceAccessExpression) this.getSource(); } @Override public void print(String prefix) { super.print(prefix); if (this.indexSource != null) { System.out.println(prefix + " indexSource: " + this.indexSource); } } } // SequenceAccessExpressionMapping
[ "ed-s@modeldriven.com" ]
ed-s@modeldriven.com
8c0c791d780ddcc14e5a04b0fc3e9d7bd9e92772
5ae7518785cd5ee7409fa6e104d90596a39e7b47
/src/main/java/com/jns/libraryapi/api/service/ScheduleService.java
ff31b4905499e13fb765fe1b8accb83b0a109623
[]
no_license
jairosousa/library-api
0a96e419eab6210c7de721eaa6efb3048f957f09
25a0c696fc7b5933698fc5034cd13e5f49b1702b
refs/heads/master
2021-05-23T10:53:02.358475
2020-05-29T19:03:02
2020-05-29T19:03:02
253,254,364
0
0
null
null
null
null
UTF-8
Java
false
false
1,023
java
package com.jns.libraryapi.api.service; import com.jns.libraryapi.api.model.entity.Loan; import lombok.RequiredArgsConstructor; import org.springframework.beans.factory.annotation.Value; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Service; import java.util.List; import java.util.stream.Collectors; @Service @RequiredArgsConstructor public class ScheduleService { @Value("${application.mail.lateLoans.message}") private String message; private static final String CRON_LATE_LOANS = "0 0 0 1/1 * ?"; private final LoanService loanService; private final EmailService emailService; @Scheduled(cron = CRON_LATE_LOANS) public void sendMailToLateLeans() { List<Loan> allLateLoans = loanService.getAllLateLoans(); final List<String> emails = allLateLoans.stream() .map(loan -> loan.getCustumerEmail()) .collect(Collectors.toList()); emailService.sendMails(message, emails); } }
[ "jaironsousa@gmail.com" ]
jaironsousa@gmail.com
0ccd58812d6c02885a9935c6637a3a964b82155e
810ac51c0b7e601c3623f05d7d74555854c134e2
/Ejercicios/01_Procedural/Ejercicio42.java
af9ab46554666be8f04f9b0b012451d4791b93bd
[]
no_license
ecaroa/ADA-8va-backend-maniana
01bd15bcd5dc764f98725714174c283671d08b44
9fcba5b2f36752302427d98dc68ebd3a597a2dce
refs/heads/master
2020-07-31T12:40:06.384498
2019-09-24T11:57:36
2019-09-24T11:57:36
210,607,175
0
1
null
2019-09-24T13:15:50
2019-09-24T13:15:45
null
UTF-8
Java
false
false
1,266
java
import java.util.Scanner; /** * Ejercicio42 */ public class Ejercicio42 { public static Scanner Entrada = new Scanner(System.in); public static void main(String[] args) { int hora, tiempo, resultado; System.out.println("Ingresar hora en formato hhmmss: "); hora = Entrada.nextInt(); System.out.println("Ingresar tiempo en formato hhmmss: "); tiempo = Entrada.nextInt(); resultado = sumar_hora(hora, tiempo); System.out.println( "\nLa nueva hora es: " + resultado / 10000 + ":" + resultado / 100 % 100 + ":" + (resultado % 100)); } public static int sumar_hora(int h, int t) { int h_h = h / 10000; int h_m = h / 100 % 100; int h_s = h % 100; int t_h = t / 10000; int t_m = t / 100 % 100; int t_s = t % 100; int res_s = h_s + t_s; int res_m = h_m + t_m; int res_h = h_h + t_h; int res; if (res_s >= 60) { res_s -= 60; res_m++; } if (res_m >= 60) { res_m -= 60; res_h++; } if (res_h >= 24) { res_h -= 24; } res = res_h * 10000 + res_m * 100 + res_s; return res; } }
[ "shadowdrone@hotmail.com" ]
shadowdrone@hotmail.com
3a88729ebe1f3ec4402c5363797722b85010e701
eb35cd207b47bb6da73e93e753a17b7005df3506
/MINDAYSRET/Main.java
28a93cb6babf350f870adb5cd100feb50e8bcb29
[]
no_license
charles-wangkai/codechef
5bbf0b92c118056fdf7759600462832868a5d162
f56f0246063219af988629ce526f5ae8bafb5068
refs/heads/master
2022-08-31T06:03:31.576605
2022-01-30T05:38:12
2022-01-30T05:38:12
152,749,980
82
42
null
2023-06-12T17:29:39
2018-10-12T12:51:09
Java
UTF-8
Java
false
false
388
java
import java.util.Scanner; public class Main { 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(); int K = sc.nextInt(); System.out.println(solve(N, K)); } sc.close(); } static int solve(int N, int K) { return (N + K - 1) / K; } }
[ "charles.wangkai@gmail.com" ]
charles.wangkai@gmail.com
c279b954109e67b5c1496f348a7a0250e07ecf6c
c4b56742efe25b0fb6ab64b4445351adc0493ffd
/casta-searchengine/casta-searchengine/org/castafiore/reconcilliation/matching/MatchingModel.java
d080b058552baec8dfd1804ff8e994b0fb596899
[]
no_license
nuving/castafioreframework
459332ad67554617445b3476471c89803ce5b0ab
775a4c535d7910a7335aa8cddebcd1b7c95c5e13
refs/heads/master
2021-01-15T19:22:25.042926
2013-09-08T16:43:36
2013-09-08T16:43:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,549
java
package org.castafiore.reconcilliation.matching; import java.util.Map; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; import org.castafiore.reconcilliation.ReconciliationUtil; import org.castafiore.ui.Container; import org.castafiore.ui.UIException; import org.castafiore.ui.engine.ClientProxy; import org.castafiore.ui.events.Event; import org.castafiore.ui.ex.EXContainer; import org.castafiore.ui.ex.form.button.EXIconButton; import org.castafiore.ui.ex.form.button.Icons; import org.castafiore.ui.ex.form.table.CellRenderer; import org.castafiore.ui.ex.form.table.EXTable; import org.castafiore.ui.ex.form.table.TableModel; public class MatchingModel implements TableModel, CellRenderer ,Event{ String[] labels = new String[]{"Original entry", "Invoice", "Amount","Bank Name", "Account Number", "Name", "Action"}; Sheet match; public MatchingModel() throws Exception{ super(); match = ReconciliationUtil.getMatchSheet(); } @Override public Class<?> getColumnClass(int columnIndex) { return String.class; } @Override public int getColumnCount() { return labels.length; } @Override public String getColumnNameAt(int index) { return labels[index]; } @Override public int getRowCount() { Row r = match.getRow(0); if(r== null){ return 0; } int last = match.getLastRowNum(); int roe = r.getRowNum(); return match.getLastRowNum()+1; } @Override public int getRowsPerPage() { return 10; } @Override public Object getValueAt(int col, int row, int page) { int rrow = row + (page*getRowsPerPage()); Row r = match.getRow(rrow); return r; } @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return false; } @Override public Container getComponentAt(int row, int column, int page, TableModel model, EXTable table) { Row r = (Row)model.getValueAt(column, row, page); if(column == 0){ return new EXContainer("original", "span").setText(r==null?"": r.getCell(0).getStringCellValue()); }else if(column == 1){ return new EXContainer("invoice", "span").setText(r==null?"":r.getCell(6).getStringCellValue()); }else if(column == 2){ return new EXContainer("amount", "span").setText(r==null?"":r.getCell(7).getStringCellValue()); }else if(column == 3){ return new EXContainer("bank", "span").setText(r==null?"":r.getCell(8).getStringCellValue()); }else if(column == 4){ return new EXContainer("accountNumber", "span").setText(r==null?"":r.getCell(9).getStringCellValue()); }else if(column == 5){ return new EXContainer("name", "span").setText(r==null?"":r.getCell(10).getStringCellValue()); }else{ return new EXIconButton("delete", Icons.ICON_CIRCLESMALL_MINUS).setAttribute("title", "Delete rule").addEvent(this, Event.CLICK).setAttribute("row", r==null?"0":r.getRowNum() + ""); } } @Override public void onChangePage(Container component, int row, int column, int page, TableModel model, EXTable table) { Row r = (Row)model.getValueAt(column, row, page); if(column == 0){ component.setText(r==null?"":r.getCell(1).getStringCellValue()); }else if(column == 1){ component.setText(r==null?"":r.getCell(7).getStringCellValue()); }else if(column == 2){ component.setText(r==null?"":r.getCell(8).getStringCellValue()); }else if(column == 3){ component.setText(r==null?"":r.getCell(9).getStringCellValue()); }else if(column == 4){ component.setText(r==null?"":r.getCell(10).getStringCellValue()); }else if(column == 5){ component.setText(r==null?"":r.getCell(11).getStringCellValue()); }else{ component.setAttribute("row", r==null?"0":r.getRowNum() + ""); } } @Override public void ClientAction(ClientProxy container) { container.mask().makeServerRequest(this); } @Override public boolean ServerAction(Container container, Map<String, String> request) throws UIException { try{ int row = Integer.parseInt(container.getAttribute("row")); Row r = match.getRow(row); match.removeRow(r); Workbook wb = match.getWorkbook(); ReconciliationUtil.saveMatchSheet(wb); }catch(Exception e){ throw new UIException(e); } return true; } @Override public void Success(ClientProxy container, Map<String, String> request) throws UIException { // TODO Auto-generated method stub } }
[ "kureem@gmail.com" ]
kureem@gmail.com
379feff4049266c9613b08ef69ddf1bd38b63601
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
/methods/Method_26416.java
8b57e76c5e0a7159434d30e943090aae1795914d
[]
no_license
P79N6A/icse_20_user_study
5b9c42c6384502fdc9588430899f257761f1f506
8a3676bc96059ea2c4f6d209016f5088a5628f3c
refs/heads/master
2020-06-24T08:25:22.606717
2019-07-25T15:31:16
2019-07-25T15:31:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
832
java
private static boolean hasValidJavaTimeDurationOverload(MethodInvocationTree tree,VisitorState state){ MethodSymbol methodSymbol=getSymbol(tree); if (methodSymbol == null) { return false; } Type durationType=state.getTypeFromString(JAVA_DURATION); Set<MethodSymbol> durationOverloads=ASTHelpers.findMatchingMethods(methodSymbol.name,input -> !input.equals(methodSymbol) && input.isStatic() == methodSymbol.isStatic() && input.getParameters().size() == 1 && isSameType(input.getParameters().get(0).asType(),durationType,state),ASTHelpers.enclosingClass(methodSymbol).asType(),state.getTypes()); if (durationOverloads.isEmpty()) { return false; } MethodTree t=state.findEnclosing(MethodTree.class); if (t == null) { return true; } return durationOverloads.stream().noneMatch(getSymbol(t)::equals); }
[ "sonnguyen@utdallas.edu" ]
sonnguyen@utdallas.edu
6feb286bfda5d1cc5b580d19b41aa71185199bf2
42786befcc2abf65082812618f1bb8596c7fb7e4
/src/main/java/jpuppeteer/cdp/client/entity/target/AttachToTargetRequest.java
ea7c8d856ac89ab4818b808c0964ef57edfa6bb8
[ "Apache-2.0" ]
permissive
sunshinex/jpuppeteer
3e30fcd434d7ddedabd0d9eeb35620707cd5bd87
0b60d1800e31decf309311671ee5f9262ea22ca5
refs/heads/2.0
2023-07-20T14:27:19.565745
2023-07-12T17:32:48
2023-07-12T17:32:48
203,903,640
33
7
Apache-2.0
2023-07-12T17:34:26
2019-08-23T01:49:32
Java
UTF-8
Java
false
false
1,013
java
package jpuppeteer.cdp.client.entity.target; /** */ public class AttachToTargetRequest { /** */ private String targetId; /** * Enables "flat" access to the session via specifying sessionId attribute in the commands. We plan to make this the default, deprecate non-flattened mode, and eventually retire it. See crbug.com/991325. */ private Boolean flatten; public void setTargetId (String targetId) { this.targetId = targetId; } public String getTargetId() { return this.targetId; } public void setFlatten (Boolean flatten) { this.flatten = flatten; } public Boolean getFlatten() { return this.flatten; } public AttachToTargetRequest(String targetId, Boolean flatten) { this.targetId = targetId; this.flatten = flatten; } public AttachToTargetRequest(String targetId) { this.targetId = targetId; this.flatten = null; } public AttachToTargetRequest() { } }
[ "jarvis.xu@vipshop.com" ]
jarvis.xu@vipshop.com
6f47efa9238268ae8869bf5cd93623cabf657962
a2d2d0aa328d5d9242dc1b779bf2893af001ddfd
/ERP/src/java/com/t2tierp/compras/java/CompraCotacaoPedidoDetalheVO.java
4896e27cb3c6edde71a388fcac5865cf6b854978
[]
no_license
joaovitorpina/maica-erp
f0fc4e85a588478c4d43f11b94d95d4c75f01e5f
e55fad8238f6ef8b87910476c221d9c2f1c47b59
refs/heads/master
2021-05-28T10:22:12.274751
2014-04-14T14:46:59
2014-04-14T14:46:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,695
java
package com.t2tierp.compras.java; import java.io.Serializable; import java.math.BigDecimal; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import org.openswing.swing.message.receive.java.ValueObjectImpl; /** * <p>Title: T2Ti ERP</p> * <p>Description: VO relacionado a tabela [COMPRA_COTACAO_PEDIDO_DETALHE]</p> * * <p>The MIT License</p> * * <p>Copyright: Copyright (C) 2010 T2Ti.COM * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * * The author may be contacted at: * t2ti.com@gmail.com</p> * * @author Claudio de Barros (t2ti.com@gmail.com) * @version 1.0 */ @Entity @Table(name = "COMPRA_COTACAO_PEDIDO_DETALHE") public class CompraCotacaoPedidoDetalheVO extends ValueObjectImpl implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Basic(optional = false) @Column(name = "ID") private Integer id; @Column(name = "QUANTIDADE_PEDIDA") private BigDecimal quantidadePedida; @JoinColumn(name = "ID_COMPRA_COTACAO_DETALHE", referencedColumnName = "ID") @ManyToOne(optional = false) private CompraCotacaoDetalheVO compraCotacaoDetalhe; @JoinColumn(name = "ID_COMPRA_PEDIDO", referencedColumnName = "ID") @ManyToOne(optional = false) private CompraPedidoVO compraPedido; public CompraCotacaoPedidoDetalheVO() { } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public BigDecimal getQuantidadePedida() { return quantidadePedida; } public void setQuantidadePedida(BigDecimal quantidadePedida) { this.quantidadePedida = quantidadePedida; } public CompraCotacaoDetalheVO getCompraCotacaoDetalhe() { return compraCotacaoDetalhe; } public void setCompraCotacaoDetalhe(CompraCotacaoDetalheVO compraCotacaoDetalhe) { this.compraCotacaoDetalhe = compraCotacaoDetalhe; } public CompraPedidoVO getCompraPedido() { return compraPedido; } public void setCompraPedido(CompraPedidoVO compraPedido) { this.compraPedido = compraPedido; } @Override public String toString() { return "com.t2tierp.compras.java.CompraCotacaoPedidoDetalheVO[id=" + id + "]"; } }
[ "aureliomaica@gmail.com@ad18e148-4fa2-a8d7-3c0d-fede52b83961" ]
aureliomaica@gmail.com@ad18e148-4fa2-a8d7-3c0d-fede52b83961
4b99562225c48c58f818603b8372081831656110
e3536f8b9d1e018ab3b3702fb6ed94e83391e282
/TamagoFramework/framework/src/tamago/ext/aca/DefQuad.java
b30e4c1dc21161118fb31e6b30395980f5fe2be5
[]
no_license
HakimB/tamago
2fbf423af909bfc6a0343ef45ccc27099d55e2ae
34620100a04dfca3bd00fc8c102e5f0ef843e545
refs/heads/master
2021-01-23T20:46:23.400832
2013-07-16T11:21:37
2013-07-16T11:21:37
33,568,554
0
0
null
null
null
null
UTF-8
Java
false
false
1,318
java
/** * */ package tamago.ext.aca; /** * @author hakim * */ public class DefQuad implements Quad { private String role; private String user; private String org; /** * */ public DefQuad() { } public DefQuad(String user, String role, String org) { this.role = role; this.user = user; this.org = org; } /** * @see tamago.ext.aca.Quad#role_Is(java.lang.String) */ @Override public boolean role_Is(String role) { return role.equals(this.role); } /** * @see tamago.ext.aca.Quad#role_IsNot(java.lang.String) */ @Override public boolean role_IsNot(String role) { return !role.equals(this.role); } /** * @see tamago.ext.aca.Quad#user_Is(java.lang.String) */ @Override public boolean user_Is(String user) { return user.equals(this.user); } /** * @see tamago.ext.aca.Quad#user_IsNot(java.lang.String) */ @Override public boolean user_IsNot(String user) { return !user.equals(this.user); } /** * @see tamago.ext.aca.Quad#org_Is(java.lang.String) */ @Override public boolean org_Is(String org) { return org.equals(org); } /** * @see tamago.ext.aca.Quad#org_IsNot(java.lang.String) */ @Override public boolean org_IsNot(String org) { return !org.equals(org); } }
[ "aliquandohb@gmail.com@69474d8d-b9df-4164-16d5-29f8cee7c292" ]
aliquandohb@gmail.com@69474d8d-b9df-4164-16d5-29f8cee7c292
3592b85c74cbdabfefef4d8a9933131caa3f4435
2ae0e35e43c43eee630eebc219f38404176a7111
/water/src/main/java/com/zzwl/ias/service/info/ClientInfo.java
b97395843461e7b0a67208ada3213e20f7d7352d
[]
no_license
lanshitou/water_service
6988461433b3ea21fcb2ee20decc7f30c3f4b9a1
e52a2d391bcaa743426c200dffb3ec57d7108ad5
refs/heads/master
2020-04-13T11:05:40.249363
2018-12-26T11:10:07
2018-12-26T11:10:07
163,163,413
0
0
null
null
null
null
UTF-8
Java
false
false
697
java
package com.zzwl.ias.service.info; import com.zzwl.ias.domain.InfoArticleDO; import com.zzwl.ias.dto.info.InfoArticleWarpDTO; import com.zzwl.ias.dto.info.InfoPreviewDTO; import com.zzwl.ias.dto.info.InfoPreviewWarpDTO; import com.zzwl.ias.dto.info.InfoSubjectDTO; import java.util.List; public interface ClientInfo { //获取推荐列表 List<InfoPreviewWarpDTO> getInfoList(); //获取文章内容 InfoArticleWarpDTO getArticleContent(Integer id); //获取文章 InfoPreviewDTO getArticlePreview(Integer id); //获取专题内容 InfoSubjectDTO getSubjectContent(Integer id); //举报文章 void reportArticle(Integer articleId, String content); }
[ "444858933@qq.com" ]
444858933@qq.com
219afdd3940053bf88c15d0cd37437d3d30667c7
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/12/12_7671a34710742c22b1ae04b200c200516722b83c/ApplicationRunnerServlet/12_7671a34710742c22b1ae04b200c200516722b83c_ApplicationRunnerServlet_t.java
1d820808ae374c9bd00a4114268c7f61a2a36392
[]
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,976
java
package com.vaadin.terminal.gwt.server; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.vaadin.Application; @SuppressWarnings("serial") public class ApplicationRunnerServlet extends AbstractApplicationServlet { /** * The name of the application class currently used. Only valid within one * request. */ private String[] defaultPackages; private ThreadLocal<HttpServletRequest> request = new ThreadLocal<HttpServletRequest>(); @Override public void init(ServletConfig servletConfig) throws ServletException { super.init(servletConfig); String initParameter = servletConfig .getInitParameter("defaultPackages"); if (initParameter != null) { defaultPackages = initParameter.split(","); } } @Override protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { this.request.set(request); super.service(request, response); this.request.set(null); } @Override URL getApplicationUrl(HttpServletRequest request) throws MalformedURLException { URL url = super.getApplicationUrl(request); String path = url.toString(); path += getApplicationRunnerApplicationClassName(request); path += "/"; return new URL(path); } @Override protected Application getNewApplication(HttpServletRequest request) throws ServletException { // Creates a new application instance try { final Application application = (Application) getApplicationClass() .newInstance(); return application; } catch (final IllegalAccessException e) { throw new ServletException(e); } catch (final InstantiationException e) { throw new ServletException(e); } catch (final ClassNotFoundException e) { throw new ServletException( new InstantiationException( "Failed to load application class: " + getApplicationRunnerApplicationClassName(request))); } } private String getApplicationRunnerApplicationClassName( HttpServletRequest request) { return getApplicationRunnerURIs(request).applicationClassname; } private static class URIS { String staticFilesPath; String applicationURI; String context; String runner; String applicationClassname; } /** * Parses application runner URIs. * * If request URL is e.g. * http://localhost:8080/vaadin/run/com.vaadin.demo.Calc then * <ul> * <li>context=vaadin</li> * <li>Runner servlet=run</li> * <li>Vaadin application=com.vaadin.demo.Calc</li> * </ul> * * @param request * @return string array containing widgetset URI, application URI and * context, runner, application classname */ private static URIS getApplicationRunnerURIs(HttpServletRequest request) { final String[] urlParts = request.getRequestURI().toString().split( "\\/"); String context = null; String runner = null; URIS uris = new URIS(); String applicationClassname = null; String contextPath = request.getContextPath(); if (urlParts[1].equals(contextPath.replaceAll("\\/", ""))) { // class name comes after web context and runner application context = urlParts[1]; runner = urlParts[2]; if (urlParts.length == 3) { throw new IllegalArgumentException("No application specified"); } applicationClassname = urlParts[3]; uris.staticFilesPath = "/" + context; uris.applicationURI = "/" + context + "/" + runner + "/" + applicationClassname; uris.context = context; uris.runner = runner; uris.applicationClassname = applicationClassname; } else { // no context context = ""; runner = urlParts[1]; if (urlParts.length == 2) { throw new IllegalArgumentException("No application specified"); } applicationClassname = urlParts[2]; uris.staticFilesPath = "/"; uris.applicationURI = "/" + runner + "/" + applicationClassname; uris.context = context; uris.runner = runner; uris.applicationClassname = applicationClassname; } return uris; } // @Override @Override protected Class getApplicationClass() throws ClassNotFoundException { // TODO use getClassLoader() ? Class<? extends Application> appClass = null; String baseName = getApplicationRunnerApplicationClassName(request .get()); try { appClass = (Class<? extends Application>) getClass() .getClassLoader().loadClass(baseName); return appClass; } catch (Exception e) { // if (defaultPackages != null) { for (int i = 0; i < defaultPackages.length; i++) { try { appClass = (Class<? extends Application>) getClass() .getClassLoader().loadClass( defaultPackages[i] + "." + baseName); } catch (Exception e2) { // TODO: handle exception e2.printStackTrace(); } if (appClass != null) { return appClass; } } } } throw new ClassNotFoundException(); } @Override String getRequestPathInfo(HttpServletRequest request) { String path = request.getPathInfo(); if (path == null) { return null; } path = path.substring(1 + getApplicationRunnerApplicationClassName( request).length()); return path; } @Override String getStaticFilesLocation(HttpServletRequest request) { URIS uris = getApplicationRunnerURIs(request); String staticFilesPath = uris.staticFilesPath; if (staticFilesPath.equals("/")) { staticFilesPath = ""; } return staticFilesPath; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
48606a25cc3aaec45b9cef53f2148e3c94567989
2229d7f59cf882ded1ba2a3542139951088f6f72
/src/main/java/com/bdlz/junituserregi/TestEmailIds.java
f999d0ed35fa036d7734d844e4a41db050c4f0e2
[]
no_license
ramakrishnavelisetti/Junit-User-Registration
4fd27e2f0c6817798ac46d485668c5572a933d83
00a3f6a0e141096ee0970ca74275a2b2fe2b5a75
refs/heads/master
2023-08-18T03:34:11.640753
2021-09-17T19:48:27
2021-09-17T19:48:27
407,295,136
0
0
null
null
null
null
UTF-8
Java
false
false
985
java
package com.bdlz.junituserregi; import java.util.regex.Matcher; import java.util.regex.Pattern; import static com.bdlz.junituserregi.JunitUserRegistration.regex; public class TestEmailIds { // "abc@yahoo.com", "abc-100@yahoo.com", "abc.100@yahoo.com", // "abc111@abc.com", "abc-100@abc.net", "abc.100@abc.com.au", // "abc@1.com", "abc@gmail.com.com", "abc+100@gmail.com" // "abc", "abc@.com.my","abc123@gmail.a", "abc123@.com", // "abc123@.com.com", ".abc@abc.com", "abc()*@gmail.com", // "abc@%*.com", "abc..2002@gmail.com", "abc.@gmail.com", // "abc@abc@gmail.com", "abc@gmail.com.1a", "abc@gmail.com.aa.au" public boolean emailIdValidator(String emailIds) { String regex = "^[a-zA-Z0-9]+([._+-][0-9A-Za-z]+)*@[a-zA-Z0-9]+.[a-zA-Z]{2,4}([.][a-z]{2,4})?$"; Pattern pattern = Pattern.compile(regex); Matcher matcher = pattern.matcher(emailIds); return matcher.matches(); } }
[ "ramakrishna96.velisetti@gmail.com" ]
ramakrishna96.velisetti@gmail.com
cf866d2af6648917fce428aeca8793f79f0c67ea
a3402d5ffe3ab9040dcb2cb7160782f32f6e97a0
/modules/proxy/src/flex/messaging/services/http/proxy/ProxyContext.java
f63de729d3a48d9093eb8bce15931e19c77a44b8
[ "Apache-2.0", "Apache-1.0" ]
permissive
charithdesilva/flex-blazeds
aa152ec0289b52b4f5c86d8a0530e39a018c0511
0e3be5953d9f6fe8fd7f093c086e0fcac131c744
refs/heads/master
2021-01-21T19:01:44.467350
2015-07-02T04:28:59
2015-07-02T04:28:59
38,409,303
0
0
null
2015-07-02T03:35:04
2015-07-02T03:35:04
null
UTF-8
Java
false
false
7,262
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 flex.messaging.services.http.proxy; import flex.messaging.services.http.ExternalProxySettings; import flex.messaging.services.http.HTTPProxyAdapter; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpConnectionManager; import org.apache.commons.httpclient.HttpMethodBase; import org.apache.commons.httpclient.UsernamePasswordCredentials; import org.apache.commons.httpclient.protocol.Protocol; import java.util.HashSet; import java.util.Map; import java.util.Set; import org.apache.commons.httpclient.Cookie; /** * @exclude * Store all the information needed for a proxy request. * * @author Brian Deitte * @author Peter Farland */ public class ProxyContext extends SharedProxyContext { private HttpMethodBase httpMethod; private HttpClient httpClient; private String contentType; private String url; private Target target; private Object body; private Map headers; private ExternalProxySettings externalProxySettings; private int cookieLimit = HTTPProxyAdapter.DEFAULT_COOKIE_LIMIT; private boolean allowLaxSSL; private boolean contentChunked; private String credentialsHeader; // set up by ProxtContextFilter private UsernamePasswordCredentials proxyCredentials; private HttpConnectionManager connectionManager; private Protocol protocol; // the status code from the response private int statusCode = 200; // TODO: Decide whether responses will always be Strings private boolean streamResponseToClient; private boolean recordHeaders; private Map requestHeaders; private Map responseHeaders; private Object response; // We need to record the request cookies private Set requestCookies; /* PROXY COMMUNICATION */ public HttpConnectionManager getConnectionManager() { return connectionManager; } public void setConnectionManager(HttpConnectionManager connectionManager) { this.connectionManager = connectionManager; } public HttpMethodBase getHttpMethod() { return httpMethod; } public void setHttpMethod(HttpMethodBase httpMethod) { this.httpMethod = httpMethod; } public HttpClient getHttpClient() { return httpClient; } public void setHttpClient(HttpClient httpClient) { this.httpClient = httpClient; } /* INPUT */ public Map getHeaders() { return headers; } public void setHeaders(Map headers) { this.headers = headers; } public String getContentType() { return contentType; } public void setContentType(String type) { contentType = type; } public String getUrl() { return url; } public void setUrl(String s) { url = s; } public Target getTarget() { return target; } public void setTarget(Target target) { this.target = target; } public Protocol getProtocol() { return protocol; } public void setProtocol(Protocol protocol) { this.protocol = protocol; } public Object getBody() { return body; } public void setBody(Object body) { this.body = body; } public String getCredentialsHeader() { return credentialsHeader; } public void setCredentialsHeader(String credentialsHeader) { this.credentialsHeader = credentialsHeader; } public UsernamePasswordCredentials getProxyCredentials() { return proxyCredentials; } public void setProxyCredentials(UsernamePasswordCredentials proxyCredentials) { this.proxyCredentials = proxyCredentials; } public int getCookieLimit() { return cookieLimit; } public void setCookieLimit(int cookieLimit) { this.cookieLimit = cookieLimit; } public boolean allowLaxSSL() { return allowLaxSSL; } public void setAllowLaxSSL(boolean allowLaxSSL) { this.allowLaxSSL = allowLaxSSL; } public ExternalProxySettings getExternalProxySettings() { return externalProxySettings; } public void setExternalProxySettings(ExternalProxySettings externalProxySettings) { this.externalProxySettings = externalProxySettings; } public boolean getRecordHeaders() { return recordHeaders; } public void setRecordHeaders(boolean recordHeaders) { this.recordHeaders = recordHeaders; } public boolean getContentChunked() { return contentChunked; } public void setContentChunked(boolean value) { contentChunked = value; } /* OUTPUT */ public int getStatusCode() { return statusCode; } public void setStatusCode(int originalStatusCode) { this.statusCode = originalStatusCode; } public Object getResponse() { return response; } public void setResponse(Object r) { response = r; } public boolean streamResponseToClient() { return streamResponseToClient; } public void setStreamResponseToClient(boolean s) { this.streamResponseToClient = s; } public Map getRequestHeaders() { return requestHeaders; } public void setRequestHeaders(Map requestHeaders) { this.requestHeaders = requestHeaders; } public Map getResponseHeaders() { return responseHeaders; } public void setResponseHeaders(Map responseHeaders) { this.responseHeaders = responseHeaders; } public void clearRequestCookies() { requestCookies = null; } public void addRequestCookie(Cookie cookie) { if (requestCookies == null) requestCookies = new HashSet(); requestCookies.add(cookie); } public Set getRequestCookies() { return requestCookies; } }
[ "aharui@apache.org" ]
aharui@apache.org
cdbc7a66bf004b85ec39eabadf1b00a690c1647b
930c207e245c320b108e9699bbbb036260a36d6a
/BRICK-Jackson-JsonLd/generatedCode/src/main/java/brickschema/org/schema/_1_0_2/Brick/AHU_Run_Request_Command.java
ea02ab9e01abb76c34936ddf882ad0bfe61be3d8
[]
no_license
InnovationSE/BRICK-Generated-By-OLGA
24d278f543471e1ce622f5f45d9e305790181fff
7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2
refs/heads/master
2021-07-01T14:13:11.302860
2017-09-21T12:44:17
2017-09-21T12:44:17
104,251,784
1
0
null
null
null
null
UTF-8
Java
false
false
1,708
java
/** * This file is automatically generated by OLGA * @author OLGA * @version 1.0 */ package brickschema.org.schema._1_0_2.Brick; import java.util.ArrayList; import java.util.List; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldId; import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldProperty; import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldType; import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldLink; import ioinformarics.oss.jackson.module.jsonld.annotation.JsonldPropertyType; import brick.jsonld.util.RefId; import brickschema.org.schema._1_0_2.Brick.Run_Request_Command; import brickschema.org.schema._1_0_2.Brick.Request_Command; import brickschema.org.schema._1_0_2.Brick.Command; import brickschema.org.schema._1_0_2.Brick.Point; import brickschema.org.schema._1_0_2.BrickFrame.TagSet; public class AHU_Run_Request_Command implements IAHU_Run_Request_Command { Map<String, List<RefId>> relations; public AHU_Run_Request_Command(String id) { super(); this.id = "https://brickschema.org/schema/1.0.2/Brick#" + id; relations = new HashMap<String, List<RefId>>(); } @JsonldId public String id; @JsonIgnore public RefId getRefId() { return new RefId(id); } @JsonInclude(Include.NON_NULL) @JsonProperty("@type") public String getType() { return "https://brickschema.org/schema/1.0.2/Brick#AHU_Run_Request_Command"; } }
[ "Andre.Ponnouradjane@non.schneider-electric.com" ]
Andre.Ponnouradjane@non.schneider-electric.com
a94b0ef26e5856a25e9df4185542f45c8e51953c
ea8013860ed0b905c64f449c8bce9e0c34a23f7b
/SystemUIGoogle/sources/com/google/common/collect/CompactHashing.java
3c82d96c795a4e07c6624ba727e776190ab91689
[]
no_license
TheScarastic/redfin_b5
5efe0dc0d40b09a1a102dfb98bcde09bac4956db
6d85efe92477576c4901cce62e1202e31c30cbd2
refs/heads/master
2023-08-13T22:05:30.321241
2021-09-28T12:33:20
2021-09-28T12:33:20
411,210,644
1
0
null
null
null
null
UTF-8
Java
false
false
3,581
java
package com.google.common.collect; import com.google.common.base.Objects; import java.util.Arrays; /* loaded from: classes2.dex */ final class CompactHashing { /* access modifiers changed from: package-private */ public static int getHashPrefix(int i, int i2) { return i & (~i2); } /* access modifiers changed from: package-private */ public static int getNext(int i, int i2) { return i & i2; } /* access modifiers changed from: package-private */ public static int maskCombine(int i, int i2, int i3) { return (i & (~i3)) | (i2 & i3); } /* access modifiers changed from: package-private */ public static int newCapacity(int i) { return (i < 32 ? 4 : 2) * (i + 1); } /* access modifiers changed from: package-private */ public static int tableSize(int i) { return Math.max(4, Hashing.closedTableSize(i + 1, 1.0d)); } /* access modifiers changed from: package-private */ public static Object createTable(int i) { if (i < 2 || i > 1073741824 || Integer.highestOneBit(i) != i) { throw new IllegalArgumentException("must be power of 2 between 2^1 and 2^30: " + i); } else if (i <= 256) { return new byte[i]; } else { if (i <= 65536) { return new short[i]; } return new int[i]; } } /* access modifiers changed from: package-private */ public static void tableClear(Object obj) { if (obj instanceof byte[]) { Arrays.fill((byte[]) obj, (byte) 0); } else if (obj instanceof short[]) { Arrays.fill((short[]) obj, (short) 0); } else { Arrays.fill((int[]) obj, 0); } } /* access modifiers changed from: package-private */ public static int tableGet(Object obj, int i) { if (obj instanceof byte[]) { return ((byte[]) obj)[i] & 255; } if (obj instanceof short[]) { return ((short[]) obj)[i] & 65535; } return ((int[]) obj)[i]; } /* access modifiers changed from: package-private */ public static void tableSet(Object obj, int i, int i2) { if (obj instanceof byte[]) { ((byte[]) obj)[i] = (byte) i2; } else if (obj instanceof short[]) { ((short[]) obj)[i] = (short) i2; } else { ((int[]) obj)[i] = i2; } } /* access modifiers changed from: package-private */ public static int remove(Object obj, Object obj2, int i, Object obj3, int[] iArr, Object[] objArr, Object[] objArr2) { int i2; int i3; int smearedHash = Hashing.smearedHash(obj); int i4 = smearedHash & i; int tableGet = tableGet(obj3, i4); if (tableGet == 0) { return -1; } int hashPrefix = getHashPrefix(smearedHash, i); int i5 = -1; while (true) { i2 = tableGet - 1; i3 = iArr[i2]; if (getHashPrefix(i3, i) != hashPrefix || !Objects.equal(obj, objArr[i2]) || (objArr2 != null && !Objects.equal(obj2, objArr2[i2]))) { int next = getNext(i3, i); if (next == 0) { return -1; } i5 = i2; tableGet = next; } } int next2 = getNext(i3, i); if (i5 == -1) { tableSet(obj3, i4, next2); } else { iArr[i5] = maskCombine(iArr[i5], next2, i); } return i2; } }
[ "warabhishek@gmail.com" ]
warabhishek@gmail.com
39b0d9243a22aefa326105243cc1e85ea94c16c8
7bf2c371766e70e11260d2ee767bbc2f2753802b
/app/src/main/java/com/ysxsoft/utest/ui/activity/Test103Activity.java
a76c35f8d8c0320de39ecc51c91e56771b9843f8
[]
no_license
Sincerly/UTest
d71303661db48a1dde640d7fe9ba4f1514bebb64
d07d6e11b4d1a9fcce3221c5244c3ca427ed6ad6
refs/heads/master
2020-07-16T10:04:24.812001
2019-09-02T03:17:23
2019-09-02T03:17:23
205,768,795
0
0
null
null
null
null
UTF-8
Java
false
false
3,657
java
package com.ysxsoft.utest.ui.activity; import android.os.Bundle; import android.view.View; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import com.alibaba.android.arouter.facade.annotation.Route; import com.alibaba.android.arouter.launcher.ARouter; import com.ysxsoft.common_base.base.BaseActivity; import com.ysxsoft.common_base.utils.JsonUtils; import com.ysxsoft.common_base.utils.SharedPreferencesUtils; import com.zhy.http.okhttp.OkHttpUtils; import com.zhy.http.okhttp.callback.StringCallback; import com.ysxsoft.utest.ARouterPath; import com.ysxsoft.utest.R; import com.ysxsoft.utest.models.response.Test103Response; import com.ysxsoft.utest.net.Api; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; import okhttp3.Call; /** * 测试页面103 * create by Sincerly on 9999/9/9 0009 **/ @Route(path = "/main/Test103Activity") public class Test103Activity extends BaseActivity { @BindView(R.id.statusBar) View statusBar; @BindView(R.id.backWithText) TextView backWithText; @BindView(R.id.back) ImageView back; @BindView(R.id.backLayout) LinearLayout backLayout; @BindView(R.id.title) TextView title; @BindView(R.id.customCenterTabView) LinearLayout customCenterTabView; @BindView(R.id.rightWithIcon) TextView rightWithIcon; @BindView(R.id.bg) LinearLayout bg; @BindView(R.id.bottomLineView) View bottomLineView; @BindView(R.id.parent) LinearLayout parent; public static void start(){ ARouter.getInstance().build(ARouterPath.getTest103Activity()).navigation(); } @Override protected int getLayoutId() { return R.layout.activity_test103; } @Override public void doWork() { super.doWork(); initTitle(); } private void initTitle() { bg.setBackgroundColor(getResources().getColor(R.color.colorWhite)); backLayout.setVisibility(View.VISIBLE); back.setImageResource(R.mipmap.icon_gray_back); title.setText("测试103"); } @OnClick(R.id.backLayout) public void onViewClicked() { backToActivity(); } public void request() { showLoadingDialog("请求中"); OkHttpUtils.post() .url(Api.GET_TEST103) .addParams("uid", SharedPreferencesUtils.getUid(Test103Activity.this)) .tag(this) .build() .execute(new StringCallback() { @Override public void onError(Call call, Exception e, int id) { hideLoadingDialog(); } @Override public void onResponse(String response, int id) { hideLoadingDialog(); Test103Response resp = JsonUtils.parseByGson(response,Test103Response.class); if (resp != null) { // if (HttpResponse.SUCCESS.equals(resp.getCode())) { // //请求成功 // List<Test103Response.DataBean> data = resp.getData(); // manager.setData(data); // } else { // //请求失败 // showToast(resp.getMsg()); // } } else { showToast("获取测试页面103失败"); } } }); } }
[ "1475590636@qq.com" ]
1475590636@qq.com