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
6a69b49e46c032d37c1414853275a8ae8c6efe27
deac36a2f8e8d4597e2e1934ab8a7dd666621b2b
/java源码的副本/src-2/org/omg/PortableInterceptor/IORInterceptor_3_0Holder.java
d50f2171f9e0f3e04b52e9ca78b9093c4f1a3734
[]
no_license
ZytheMoon/First
ff317a11f12c4ec7714367994924ee9fb4649611
9078fb8be8537a98483c50928cb92cf9835aed1c
refs/heads/master
2021-04-27T00:09:31.507273
2018-03-06T12:25:56
2018-03-06T12:25:56
123,758,924
0
1
null
null
null
null
UTF-8
Java
false
false
1,088
java
package org.omg.PortableInterceptor; /** * org/omg/PortableInterceptor/IORInterceptor_3_0Holder.java . * Generated by the IDL-to-Java compiler (portable), version "3.2" * from ../../../../src/share/classes/org/omg/PortableInterceptor/Interceptors.idl * Friday, February 3, 2012 8:32:08 PM PST */ public final class IORInterceptor_3_0Holder implements org.omg.CORBA.portable.Streamable { public org.omg.PortableInterceptor.IORInterceptor_3_0 value = null; public IORInterceptor_3_0Holder () { } public IORInterceptor_3_0Holder (org.omg.PortableInterceptor.IORInterceptor_3_0 initialValue) { value = initialValue; } public void _read (org.omg.CORBA.portable.InputStream i) { value = org.omg.PortableInterceptor.IORInterceptor_3_0Helper.read (i); } public void _write (org.omg.CORBA.portable.OutputStream o) { org.omg.PortableInterceptor.IORInterceptor_3_0Helper.write (o, value); } public org.omg.CORBA.TypeCode _type () { return org.omg.PortableInterceptor.IORInterceptor_3_0Helper.type (); } }
[ "2353653849@qq.com" ]
2353653849@qq.com
9c999b5b8c49e19f9b4f40d0c145d66d7ed3ffab
755c81ea06fe2bc34d2e4a2e4a3a14cc1f9e0fa9
/src/main/java/com/universign/universigncs/parralal/web/rest/MetaTransactionResource.java
fc9f22788606b7d097a6780256751ee63bdd8182
[]
no_license
EricLamore/jhipster-parralal
95a16afb244bb37b6ffcdbc1330647d36cdac960
14151a19316962053ff053f722a690f9960b0367
refs/heads/master
2020-04-30T02:02:35.614825
2019-03-19T17:03:38
2019-03-19T17:03:38
176,547,276
0
0
null
2019-03-19T17:03:39
2019-03-19T15:47:57
Java
UTF-8
Java
false
false
5,098
java
package com.universign.universigncs.parralal.web.rest; import com.universign.universigncs.parralal.domain.MetaTransaction; import com.universign.universigncs.parralal.repository.MetaTransactionRepository; import com.universign.universigncs.parralal.web.rest.errors.BadRequestAlertException; import com.universign.universigncs.parralal.web.rest.util.HeaderUtil; import io.github.jhipster.web.util.ResponseUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import java.net.URI; import java.net.URISyntaxException; import java.util.List; import java.util.Optional; /** * REST controller for managing MetaTransaction. */ @RestController @RequestMapping("/api") public class MetaTransactionResource { private final Logger log = LoggerFactory.getLogger(MetaTransactionResource.class); private static final String ENTITY_NAME = "metaTransaction"; private final MetaTransactionRepository metaTransactionRepository; public MetaTransactionResource(MetaTransactionRepository metaTransactionRepository) { this.metaTransactionRepository = metaTransactionRepository; } /** * POST /meta-transactions : Create a new metaTransaction. * * @param metaTransaction the metaTransaction to create * @return the ResponseEntity with status 201 (Created) and with body the new metaTransaction, or with status 400 (Bad Request) if the metaTransaction has already an ID * @throws URISyntaxException if the Location URI syntax is incorrect */ @PostMapping("/meta-transactions") public ResponseEntity<MetaTransaction> createMetaTransaction(@RequestBody MetaTransaction metaTransaction) throws URISyntaxException { log.debug("REST request to save MetaTransaction : {}", metaTransaction); if (metaTransaction.getId() != null) { throw new BadRequestAlertException("A new metaTransaction cannot already have an ID", ENTITY_NAME, "idexists"); } MetaTransaction result = metaTransactionRepository.save(metaTransaction); return ResponseEntity.created(new URI("/api/meta-transactions/" + result.getId())) .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString())) .body(result); } /** * PUT /meta-transactions : Updates an existing metaTransaction. * * @param metaTransaction the metaTransaction to update * @return the ResponseEntity with status 200 (OK) and with body the updated metaTransaction, * or with status 400 (Bad Request) if the metaTransaction is not valid, * or with status 500 (Internal Server Error) if the metaTransaction couldn't be updated * @throws URISyntaxException if the Location URI syntax is incorrect */ @PutMapping("/meta-transactions") public ResponseEntity<MetaTransaction> updateMetaTransaction(@RequestBody MetaTransaction metaTransaction) throws URISyntaxException { log.debug("REST request to update MetaTransaction : {}", metaTransaction); if (metaTransaction.getId() == null) { throw new BadRequestAlertException("Invalid id", ENTITY_NAME, "idnull"); } MetaTransaction result = metaTransactionRepository.save(metaTransaction); return ResponseEntity.ok() .headers(HeaderUtil.createEntityUpdateAlert(ENTITY_NAME, metaTransaction.getId().toString())) .body(result); } /** * GET /meta-transactions : get all the metaTransactions. * * @return the ResponseEntity with status 200 (OK) and the list of metaTransactions in body */ @GetMapping("/meta-transactions") public List<MetaTransaction> getAllMetaTransactions() { log.debug("REST request to get all MetaTransactions"); return metaTransactionRepository.findAll(); } /** * GET /meta-transactions/:id : get the "id" metaTransaction. * * @param id the id of the metaTransaction to retrieve * @return the ResponseEntity with status 200 (OK) and with body the metaTransaction, or with status 404 (Not Found) */ @GetMapping("/meta-transactions/{id}") public ResponseEntity<MetaTransaction> getMetaTransaction(@PathVariable String id) { log.debug("REST request to get MetaTransaction : {}", id); Optional<MetaTransaction> metaTransaction = metaTransactionRepository.findById(id); return ResponseUtil.wrapOrNotFound(metaTransaction); } /** * DELETE /meta-transactions/:id : delete the "id" metaTransaction. * * @param id the id of the metaTransaction to delete * @return the ResponseEntity with status 200 (OK) */ @DeleteMapping("/meta-transactions/{id}") public ResponseEntity<Void> deleteMetaTransaction(@PathVariable String id) { log.debug("REST request to delete MetaTransaction : {}", id); metaTransactionRepository.deleteById(id); return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id)).build(); } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
5c87e90c724fa01cd466d858c644d114f4d76bed
5a13f24c35c34082492ef851fb91d404827b7ddb
/src/main/java/com/alipay/api/domain/AlipayFundTransBatchCreateorderModel.java
df492fa21ebfa44d8e47a47595cae716f73c1ce1
[]
no_license
featherfly/alipay-sdk
69b2f2fc89a09996004b36373bd5512664521bfd
ba2355a05de358dc15855ffaab8e19acfa24a93b
refs/heads/master
2021-01-22T11:03:20.304528
2017-09-04T09:39:42
2017-09-04T09:39:42
102,344,436
1
0
null
null
null
null
UTF-8
Java
false
false
1,986
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 如果有创建AA收款,江湖救急等业务场景的话,创建批次后,可以调用此接口创建付款单 * * @author auto create * @since 1.0, 2017-02-13 17:30:37 */ public class AlipayFundTransBatchCreateorderModel extends AlipayObject { private static final long serialVersionUID = 5367996253777279294L; /** * 批次编号:创建批次时生成的批次号;表示这笔付款是这个批次下面的一条明细 */ @ApiField("batch_no") private String batchNo; /** * 必须是map&lt;String,String&gt;的json串,长度限制为100 */ @ApiField("ext_param") private String extParam; /** * 金额,单位为元 */ @ApiField("pay_amount") private String payAmount; /** * 收款方userId */ @ApiField("payee_id") private String payeeId; /** * 付款方userId */ @ApiField("payer_id") private String payerId; /** * token;创建批次时和批次编号一起下发的token串 */ @ApiField("token") private String token; public String getBatchNo() { return this.batchNo; } public void setBatchNo(String batchNo) { this.batchNo = batchNo; } public String getExtParam() { return this.extParam; } public void setExtParam(String extParam) { this.extParam = extParam; } public String getPayAmount() { return this.payAmount; } public void setPayAmount(String payAmount) { this.payAmount = payAmount; } public String getPayeeId() { return this.payeeId; } public void setPayeeId(String payeeId) { this.payeeId = payeeId; } public String getPayerId() { return this.payerId; } public void setPayerId(String payerId) { this.payerId = payerId; } public String getToken() { return this.token; } public void setToken(String token) { this.token = token; } }
[ "zhongj@cdmhzx.com" ]
zhongj@cdmhzx.com
f841d257f2c6ed06c2927ea6e7f4a63208aa340f
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/neo4j/2015/8/AbstractSelectorOrderer.java
9bb776738781fbd80a6f6d1336126adb59a7b591
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Java
false
false
3,546
java
/* * Copyright (c) 2002-2015 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.neo4j.kernel; import org.neo4j.graphdb.Direction; import org.neo4j.graphdb.traversal.BranchSelector; import org.neo4j.graphdb.traversal.SideSelector; import org.neo4j.graphdb.traversal.TraversalBranch; import org.neo4j.graphdb.traversal.TraversalContext; /** * @deprecated This will be moved to internal packages in the next major release. */ @Deprecated public abstract class AbstractSelectorOrderer<T> implements SideSelector { private static final BranchSelector EMPTY_SELECTOR = new BranchSelector() { @Override public TraversalBranch next( TraversalContext metadata ) { return null; } }; private final BranchSelector[] selectors; @SuppressWarnings( "unchecked" ) private final T[] states = (T[]) new Object[2]; private int selectorIndex; public AbstractSelectorOrderer( BranchSelector startSelector, BranchSelector endSelector ) { selectors = new BranchSelector[] { startSelector, endSelector }; states[0] = initialState(); states[1] = initialState(); } protected T initialState() { return null; } protected void setStateForCurrentSelector( T state ) { states[selectorIndex] = state; } protected T getStateForCurrentSelector() { return states[selectorIndex]; } protected TraversalBranch nextBranchFromCurrentSelector( TraversalContext metadata, boolean switchIfExhausted ) { return nextBranchFromSelector( metadata, selectors[selectorIndex], switchIfExhausted ); } protected TraversalBranch nextBranchFromNextSelector( TraversalContext metadata, boolean switchIfExhausted ) { return nextBranchFromSelector( metadata, nextSelector(), switchIfExhausted ); } private TraversalBranch nextBranchFromSelector( TraversalContext metadata, BranchSelector selector, boolean switchIfExhausted ) { TraversalBranch result = selector.next( metadata ); if ( result == null ) { selectors[selectorIndex] = EMPTY_SELECTOR; if ( switchIfExhausted ) { result = nextSelector().next( metadata ); if ( result == null ) { selectors[selectorIndex] = EMPTY_SELECTOR; } } } return result; } protected BranchSelector nextSelector() { selectorIndex = (selectorIndex+1)%2; BranchSelector selector = selectors[selectorIndex]; return selector; } @Override public Direction currentSide() { return selectorIndex == 0 ? Direction.OUTGOING : Direction.INCOMING; } }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
72ae3b146bc281c5416a65e071b59c9757b9e57e
19b463e046a46db4131ca866537a131ac6acb150
/qpalx-elearning-service/src/main/java/com/quaza/solutions/qpalx/elearning/service/lms/curriculum/IQPalXEMicroLessonService.java
e53201d76f554e6e2377639114d07ccf609da1df
[]
no_license
Quaza-Solutions/quaza-solutions-elearning-qpalx
49f913b4eea3d02f7097cdb40e972ae027bad17e
421501cda3cb1aa59f11e4d9a330f4b3bf6c2236
refs/heads/master
2020-04-04T07:30:09.545713
2016-12-11T04:55:29
2016-12-11T04:55:29
50,192,947
0
0
null
2016-12-11T04:55:29
2016-01-22T16:26:47
Java
UTF-8
Java
false
false
794
java
package com.quaza.solutions.qpalx.elearning.service.lms.curriculum; import com.quaza.solutions.qpalx.elearning.domain.lms.curriculum.IQPalXEMicroLessonVO; import com.quaza.solutions.qpalx.elearning.domain.lms.curriculum.QPalXELesson; import com.quaza.solutions.qpalx.elearning.domain.lms.curriculum.QPalXEMicroLesson; import java.util.List; /** * @author manyce400 */ public interface IQPalXEMicroLessonService { public QPalXEMicroLesson findByID(Long id); public List<QPalXEMicroLesson> findQPalXEMicroLessons(QPalXELesson qPalXELesson); public void createAndSaveQPalXEMicroLesson(IQPalXEMicroLessonVO iqPalXEMicroLessonVO); public boolean isMicroLessonDeletable(QPalXEMicroLesson qPalXEMicroLesson); public void delete(QPalXEMicroLesson qPalXEMicroLesson); }
[ "fallon12" ]
fallon12
3c4b76e92d334aeda5e554bf4580bb0451eba24f
d5fc1ea13e181ed4d1dd358c93733572762e9bcb
/1. JavaSyntax/src/level_04/task0416.java
5baf75ccc582708116763e90710638d2d59b4714
[]
no_license
SviatoslavExpert/JavaRush.ru_Tasks
64cacb13fdfed4971cbb770d184695b927d59497
887c351f72e792413b4ed744b5b4cdc3166bc2cf
refs/heads/master
2021-04-29T00:29:04.396540
2018-03-03T16:25:21
2018-03-03T16:25:21
121,830,630
0
0
null
null
null
null
UTF-8
Java
false
false
1,801
java
/* Переходим дорогу вслепую Работа светофора для пешеходов запрограммирована следующим образом: в начале каждого часа в течение трех минут горит зелёный сигнал, затем в течение одной минуты — желтый, а потом в течение одной минуты — красный, затем опять зелёный горит три минуты и т. д. Ввести с клавиатуры вещественное число t, означающее время в минутах, прошедшее с начала очередного часа. Определить, сигнал какого цвета горит для пешеходов в этот момент. Результат вывести на экран в следующем виде: "зелёный" - если горит зелёный цвет, "желтый" - если горит желтый цвет, "красный" - если горит красный цвет. Пример для числа 2.5: зелёный Пример для числа 3: желтый Пример для числа 4: красный Пример для числа 5: зелёный */ package level_04; import java.io.*; public class task0416 { public static void main (String []args) throws Exception { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); double t = Double.parseDouble(r.readLine())%5; if (t < 3) { System.out.println("зеленый"); } else if (t < 4) { System.out.println("желтый"); } else { System.out.println("красный"); } } }
[ "s.granovskiy@gmail.com" ]
s.granovskiy@gmail.com
3377ab69f5fe4db32c260cafca684be1540f6c0c
3f169749adceb8a84803c561467e391ef381d7d0
/workspace/services/src/view/ServerView.java
8c5525060d4d2696377ab661b21ebcad9963177e
[]
no_license
Cryzas/FHDW2
969619012ad05f455d04dce0f3413f53cedd9351
8bc31d4072cc9ed7ddf86154cdf08f0f9a55454b
refs/heads/master
2021-01-23T05:25:00.249669
2017-10-11T06:24:17
2017-10-11T06:24:17
86,296,546
3
0
null
null
null
null
UTF-8
Java
false
false
1,607
java
package view; import viewClient.*; import view.objects.*; import view.visitor.*; public interface ServerView extends Anything, Remote, AbstractViewRoot { public java.util.Vector<ServiceView> getServices()throws ModelException; public void setServices(java.util.Vector<ServiceView> newValue) throws ModelException ; public String getUserName()throws ModelException; public java.util.Vector<ErrorDisplayView> getErrors()throws ModelException; public void setErrors(java.util.Vector<ErrorDisplayView> newValue) throws ModelException ; public String getUser()throws ModelException; public void setUser(String newValue) throws ModelException ; public void accept(AnythingVisitor visitor) throws ModelException; public <R> R accept(AnythingReturnVisitor<R> visitor) throws ModelException; public <E extends view.UserException> void accept(AnythingExceptionVisitor<E> visitor) throws ModelException, E; public <R, E extends view.UserException> R accept(AnythingReturnExceptionVisitor<R, E> visitor) throws ModelException, E; public void accept(RemoteVisitor visitor) throws ModelException; public <R> R accept(RemoteReturnVisitor<R> visitor) throws ModelException; public <E extends view.UserException> void accept(RemoteExceptionVisitor<E> visitor) throws ModelException, E; public <R, E extends view.UserException> R accept(RemoteReturnExceptionVisitor<R, E> visitor) throws ModelException, E; public ServerConnection connectServer(ConnectionMaster master, final ExceptionAndEventHandler handler) throws ModelException; }
[ "jensburczyk96@gmail.com" ]
jensburczyk96@gmail.com
ed0a6a7559dbb4d454506509964ab12ad9fcf3e5
12f1d0ab0807937b1b8c1e7a5d0cff03b20d118c
/Exp/NetBeans/Chapter5/src/Circle.java
c2a407d3efc28edce2a2651fbc0ed3fbba02bd79
[]
no_license
DSapphire/JavaNotes
61b7396842c59fc5d724a3f7161bc89a657d7b88
2e31eae39629f25295ad701a9cf5ef12f9c30007
refs/heads/master
2020-04-01T13:09:55.325433
2015-06-19T00:34:02
2015-06-19T00:34:02
37,692,856
0
0
null
null
null
null
GB18030
Java
false
false
410
java
class Circle implements Shape2D,Color // 实现Circle类 { double radius; String color; public Circle(double r) // 构造方法 { radius=r; } public double area() // 定义area()的处理方式 { return (pi*radius*radius); } public void setColor(String str) { color=str; System.out.println("color="+color); } }
[ "dsapphire@126.com" ]
dsapphire@126.com
10e955c00bd2ffe1f89a7bf466ef226a59860fb5
fddce58005c3e12819941ced26ef2eecfa6e93ce
/open-metadata-implementation/integration-services/infrastructure-integrator/infrastructure-integrator-api/src/main/java/org/odpi/openmetadata/integrationservices/infrastructure/ffdc/InfrastructureIntegratorAuditCode.java
cad919ce6819e873bf40a082934f7f4664cdb884
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
odpi/egeria
6daec14555118b8fefd7fbe96b26cd564fea89a8
32b17f688a0e4e5246ed3325b0669e57db9827d6
refs/heads/main
2023-09-03T18:14:22.746706
2023-09-01T17:16:47
2023-09-01T17:16:47
135,579,677
720
335
Apache-2.0
2023-09-11T08:36:55
2018-05-31T12:18:34
Java
UTF-8
Java
false
false
7,811
java
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.integrationservices.infrastructure.ffdc; import org.odpi.openmetadata.frameworks.auditlog.messagesets.AuditLogMessageDefinition; import org.odpi.openmetadata.frameworks.auditlog.messagesets.AuditLogMessageSet; import org.odpi.openmetadata.repositoryservices.auditlog.OMRSAuditLogRecordSeverity; /** * The InfrastructureIntegratorAuditCode is used to define the message content for the OMRS Audit Log. * The 5 fields in the enum are: * <ul> * <li>Log Message Id - to uniquely identify the message</li> * <li>Severity - is this an event, decision, action, error or exception</li> * <li>Log Message Text - includes placeholder to allow additional values to be captured</li> * <li>Additional Information - further parameters and data relating to the audit message (optional)</li> * <li>SystemAction - describes the result of the situation</li> * <li>UserAction - describes how a user should correct the situation</li> * </ul> */ public enum InfrastructureIntegratorAuditCode implements AuditLogMessageSet { /** * OMIS-INFRASTRUCTURE-INTEGRATOR-0001 - The infrastructure integrator context manager is being initialized for calls to server {0} on platform {1} */ CONTEXT_INITIALIZING("OMIS-INFRASTRUCTURE-INTEGRATOR-0001", OMRSAuditLogRecordSeverity.STARTUP, "The infrastructure integrator context manager is being initialized for calls to server {0} on platform {1}", "The Infrastructure Integrator OMIS is initializing its context manager.", "Verify that the start up sequence goes on to initialize the context for each connector configured for this service."), /** * OMIS-INFRASTRUCTURE-INTEGRATOR-0002 - Creating context for integration connector {0} ({1}) connecting to third party technology {2} with permitted synchronization of {3} and service options of {4} */ CONNECTOR_CONTEXT_INITIALIZING("OMIS-INFRASTRUCTURE-INTEGRATOR-0002", OMRSAuditLogRecordSeverity.STARTUP, "Creating context for integration connector {0} ({1}) connecting to third party technology {2} with permitted synchronization of {3} and service options of {4}", "A new context is created for an integration connector. This acts as a client to the open metadata repositories " + "enabling the integration connector to synchronize open metadata with the third party technology's metadata", "Verify that this connector is being started with the correct configuration."), /** * OMIS-INFRASTRUCTURE-INTEGRATOR-0003 - The context for connector {0} has its permitted synchronization set to {1} */ PERMITTED_SYNCHRONIZATION("OMIS-INFRASTRUCTURE-INTEGRATOR-0003", OMRSAuditLogRecordSeverity.STARTUP, "The context for connector {0} has its permitted synchronization set to {1}", "The context is set up to ensure that the connector can only issue requests that support the permitted synchronization. " + "If the connector issues requests that are not permitted it is returned UserNotAuthorizedExceptions.", "Check that this permitted synchronized value is as expected. If it is not, " + "change the configuration for this connector and restart the integration daemon."), /** * OMIS-INFRASTRUCTURE-INTEGRATOR-0004 - The following exchange services are disabled in the context for connector {1}: {2} */ DISABLED_EXCHANGE_SERVICES("OMIS-INFRASTRUCTURE-INTEGRATOR-0004", OMRSAuditLogRecordSeverity.STARTUP, "The following exchange services are disabled in the context for connector {1}: {2}", "The context is set up to ensure that the connector can only issue requests to supported services. " + "If the connector issues requests that are not permitted it is returned UserNotAuthorizedExceptions.", "Check that this value is as expected. If it is not, " + "change the configuration for this connector and restart the integration daemon."), /** * OMIS-INFRASTRUCTURE-INTEGRATOR-0005 - Integration connector {0} has a null context */ NULL_CONTEXT("OMIS-INFRASTRUCTURE-INTEGRATOR-0005", OMRSAuditLogRecordSeverity.ERROR, "Integration connector {0} has a null context", "The integration connector is running but does not have a context. This is a timing issue in the integration daemon.", "Gather information about the connector's configuration, the types of metadata it was integrating, the audit log messages " + "from the integration daemon and its partner metadata server. Then contact the Egeria community to get help."), ; private final AuditLogMessageDefinition messageDefinition; /** * The constructor for InfrastructureIntegratorAuditCode expects to be passed one of the enumeration rows defined in * InfrastructureIntegratorAuditCode above. For example: * <br><br> * InfrastructureIntegratorAuditCode auditCode = InfrastructureIntegratorAuditCode.SERVER_SHUTDOWN; * <br><br> * This will expand out to the 4 parameters shown below. * * @param messageId - unique id for the message * @param severity - severity of the message * @param message - text for the message * @param systemAction - description of the action taken by the system when the condition happened * @param userAction - instructions for resolving the situation, if any */ InfrastructureIntegratorAuditCode(String messageId, OMRSAuditLogRecordSeverity severity, String message, String systemAction, String userAction) { messageDefinition = new AuditLogMessageDefinition(messageId, severity, message, systemAction, userAction); } /** * Retrieve a message definition object for logging. This method is used when there are no message inserts. * * @return message definition object. */ @Override public AuditLogMessageDefinition getMessageDefinition() { return messageDefinition; } /** * Retrieve a message definition object for logging. This method is used when there are values to be inserted into the message. * * @param params array of parameters (all strings). They are inserted into the message according to the numbering in the message text. * @return message definition object. */ @Override public AuditLogMessageDefinition getMessageDefinition(String ...params) { messageDefinition.setMessageParameters(params); return messageDefinition; } /** * toString() JSON-style * * @return string description */ @Override public String toString() { return "InfrastructureIntegratorAuditCode{" + "messageDefinition=" + messageDefinition + '}'; } }
[ "mandy.e.chessell@gmail.com" ]
mandy.e.chessell@gmail.com
b4048bb6bea73fbd78396efd8ee0ffa34556a9fa
de8b590c72c1ca28ac07e206ce87f5e2c50449be
/src/main/java/org/wilson/world/novel/NovelRoleInfo.java
e84de0f95da175f224a1f5021a8828422f65d2ea
[]
no_license
liumiaowilson/world
a513bfaacc94cbcf5b88c1a2ce5426944c7f83b4
818ee21b67edbf4961424d9d474110ac8201f591
refs/heads/master
2020-04-06T05:50:52.671982
2017-08-05T00:02:21
2017-08-05T00:02:21
62,312,015
0
0
null
null
null
null
UTF-8
Java
false
false
129
java
package org.wilson.world.novel; public class NovelRoleInfo { public int id; public String name; public String message; }
[ "mialiu@ebay.com" ]
mialiu@ebay.com
1aa9be36c53ed46c69160fe4f37c057d35b6b8ba
786f633c145a1d553fad5f5bac7fe56b883f5d3c
/bom-converter/src/main/java/com/javabom/bomconverter/dto/RequestDto.java
5c55e2accdaf325d49fe2a0b86e169f6746663e8
[]
no_license
pci2676/Spring-Boot-Lab
41cb8f65f37da2fa53a0ebbda096c8d0e875ba7a
b12b21c5d276010d26b3f31697a45b6e0d899905
refs/heads/master
2023-08-24T17:19:55.193372
2021-10-11T14:52:32
2021-10-11T14:52:32
192,370,825
0
0
null
null
null
null
UTF-8
Java
false
false
445
java
package com.javabom.bomconverter.dto; import java.time.LocalDateTime; public class RequestDto { private Long id; private LocalDateTime time; private RequestDto() { } public LocalDateTime getTime() { return time; } public void setTime(LocalDateTime time) { this.time = time; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } }
[ "pci2676@gmail.com" ]
pci2676@gmail.com
a1ada789a91ae2126e8a61572675a7de400b79fd
5b82e2f7c720c49dff236970aacd610e7c41a077
/QueryReformulation-master 2/data/processed/IWorkbenchTestSuite.java
b68e74a41728b5c3c74a2f349a891f1136b7e5e1
[]
no_license
shy942/EGITrepoOnlineVersion
4b157da0f76dc5bbf179437242d2224d782dd267
f88fb20497dcc30ff1add5fe359cbca772142b09
refs/heads/master
2021-01-20T16:04:23.509863
2016-07-21T20:43:22
2016-07-21T20:43:22
63,737,385
0
0
null
null
null
null
UTF-8
Java
false
false
644
java
/***/ package org.eclipse.ui.tests.api; import junit.framework.Test; import junit.framework.TestSuite; /** * Test the workbench. This suite was created as a * workaround for problems running the suites from the * command line. */ public class IWorkbenchTestSuite extends TestSuite { /** * Returns the suite. This is required to * use the JUnit Launcher. */ public static Test suite() { return new IWorkbenchTestSuite(); } /** * Construct the test suite. */ public IWorkbenchTestSuite() { addTest(new TestSuite(IWorkbenchTest.class)); addTest(new TestSuite(IWorkbenchWindowTest.class)); } }
[ "muktacseku@gmail.com" ]
muktacseku@gmail.com
f4592b63076afe02648c436eda37ccbcc10aca7f
22889d87384ab446202a998513397174ea2cadea
/events/api/src/main/java/org/kuali/mobility/events/util/DayTransform.java
40b1905343512aa1ed1f6f26555edeb58cd80020
[ "MIT" ]
permissive
tamerman/mobile-starting-framework
114dfe0efc45c010e844ba8d0d5f3a283947c6cb
11c70d7ff5ac36c7ad600df2f93b184a0ca79b43
refs/heads/master
2016-09-11T15:09:39.554255
2016-03-11T16:57:14
2016-03-11T16:57:14
22,442,542
1
3
null
2016-03-11T16:57:14
2014-07-30T19:59:01
Java
UTF-8
Java
false
false
1,958
java
/** * The MIT License * Copyright (c) 2011 Kuali Mobility Team * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package org.kuali.mobility.events.util; import java.util.ArrayList; import java.util.List; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.Transformer; import org.kuali.mobility.events.entity.Category; import org.kuali.mobility.events.entity.Day; import org.kuali.mobility.events.entity.DayImpl; import org.kuali.mobility.events.entity.EventImpl; public class DayTransform implements Transformer { @Override public Object transform(Object obj) { DayImpl proxy = null; if (obj instanceof Day) { proxy = (DayImpl) obj; proxy.setDate(((Day) obj).getDate()); List<EventImpl> events = new ArrayList<EventImpl>(); CollectionUtils.collect(((Day) obj).getEvents(), new EventTransform(), events); proxy.setEvents(events); } return proxy; } }
[ "charl.thiem@gmail.com" ]
charl.thiem@gmail.com
0d700b10fed42adf056fc45a6ed7e31f16b41fde
95c49f466673952b465e19a5ee3ae6eff76bee00
/src/main/java/com/zhihu/android/plugin/C23706b.java
69b18379c85c66f12fcd5c8e0edc9c1bd040eb49
[]
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
142
java
package com.zhihu.android.plugin; /* renamed from: com.zhihu.android.plugin.b */ /* compiled from: PackageHolder */ public class C23706b { }
[ "seasonpplp@qq.com" ]
seasonpplp@qq.com
e8b4ec20cb644c7cec4a7d1f503a985c9ef13703
205135c18cd7e264d5a3abd49a096930c7453970
/src/com/xfashion/client/at/bulk/BuyPriceAccessor.java
b9067c73630bf2f8a262c8caa5600aa157e3fce8
[]
no_license
archmage74/x-fashion
25f34b2fb0a76b04ae921de95facf6d576c4eaae
a72f6facd0716e3b74b42cfdeea1000d2e7fe338
refs/heads/master
2020-04-09T10:37:37.353269
2012-10-21T16:57:55
2012-10-21T16:57:55
3,690,556
0
0
null
null
null
null
UTF-8
Java
false
false
404
java
package com.xfashion.client.at.bulk; import com.xfashion.shared.ArticleTypeDTO; public class BuyPriceAccessor implements AttributeAccessor<Integer> { @Override public Integer getAttribute(ArticleTypeDTO articleType) { return articleType.getBuyPrice(); } @Override public void setAttribute(ArticleTypeDTO articleType, Integer value) { articleType.setBuyPrice(value); } }
[ "werner.puff@gmx.net" ]
werner.puff@gmx.net
16bd3c41d2d06c97478593e646cb4e3ed65adf16
3183c15317d9bb7fb2a435280c42930cfed61dcd
/ymate-platform-configuration/src/main/java/net/ymate/platform/configuration/IConfigFileParser.java
546f073c587dc1e5542997351d3bb102547ad568
[ "Apache-2.0" ]
permissive
zhiqinghuang/ymate-platform-v2
16c4d9fb8a0ed2063dd6d1abbaef15eaa3b023c3
f90601d488bc6262c770bc80e4ed3b9f5304c35f
refs/heads/master
2021-04-25T01:13:23.011398
2017-12-29T02:57:38
2017-12-29T02:57:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,218
java
/* * Copyright 2007-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package net.ymate.platform.configuration; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import java.io.File; import java.io.IOException; import java.io.OutputStream; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; /** * @author 刘镇 (suninformation@163.com) on 2017/7/31 上午12:02 * @version 1.0 */ public interface IConfigFileParser { String DEFAULT_CATEGORY_NAME = "default"; String TAG_NAME_ROOT = "properties"; String TAG_NAME_CATEGORY = "category"; String TAG_NAME_PROPERTY = "property"; String TAG_NAME_ITEM = "item"; String TAG_NAME_VALUE = "value"; String TAG_NAME_CATEGORIES = "categories"; String TAG_NAME_ATTRIBUTES = "attributes"; // IConfigFileParser load(boolean sorted); void writeTo(File targetFile) throws IOException; void writeTo(OutputStream outputStream) throws IOException; Attribute getAttribute(String key); Map<String, Attribute> getAttributes(); Category getDefaultCategory(); Category getCategory(String name); Map<String, Category> getCategories(); JSONObject toJSON(); class Category { private String name; private Map<String, Attribute> attributeMap; private Map<String, Property> propertyMap; private boolean __sorted; public Category(String name, List<Attribute> attributes, List<Property> properties, boolean sorted) { this.name = name; this.__sorted = sorted; this.attributeMap = new HashMap<String, Attribute>(); if (__sorted) { this.propertyMap = new LinkedHashMap<String, Property>(); } else { this.propertyMap = new HashMap<String, Property>(); } if (attributes != null) { for (Attribute _attr : attributes) { this.attributeMap.put(_attr.getKey(), _attr); } } if (properties != null) { for (Property _prop : properties) { this.propertyMap.put(_prop.getName(), _prop); } } } public String getName() { return name; } public Attribute getAttribute(String key) { return this.attributeMap.get(name); } public Map<String, Attribute> getAttributeMap() { return attributeMap; } public Property getProperty(String name) { return this.propertyMap.get(name); } public Map<String, Property> getPropertyMap() { return propertyMap; } public JSONObject toJSON() { JSONObject _jsonO = new JSONObject(__sorted); _jsonO.put("name", name); JSONObject _jsonATTR = new JSONObject(); for (Attribute _attr : attributeMap.values()) { _jsonATTR.put(_attr.getKey(), _attr.getValue()); } _jsonO.put("attributes", _jsonATTR); JSONArray _jsonArrayPROP = new JSONArray(); for (Property _prop : propertyMap.values()) { _jsonArrayPROP.add(_prop.toJSON()); } _jsonO.put("properties", _jsonArrayPROP); return _jsonO; } } class Property { private String name; private String content; private Map<String, Attribute> attributeMap; public Property(String name, String content, List<Attribute> attributes) { this.name = name; this.content = content; this.attributeMap = new HashMap<String, Attribute>(); if (attributes != null) { for (Attribute _attr : attributes) { this.attributeMap.put(_attr.getKey(), _attr); } } } public String getName() { return name; } public void setName(String name) { this.name = name; } public void setContent(String content) { this.content = content; } public String getContent() { return content; } public Attribute getAttribute(String key) { return this.attributeMap.get(key); } public Map<String, Attribute> getAttributeMap() { return attributeMap; } public JSONObject toJSON() { JSONObject _jsonO = new JSONObject(); _jsonO.put("name", name); _jsonO.put("content", content); JSONObject _jsonATTR = new JSONObject(); for (Attribute _attr : attributeMap.values()) { _jsonATTR.put(_attr.getKey(), _attr.getValue()); } _jsonO.put(TAG_NAME_ATTRIBUTES, _jsonATTR); return _jsonO; } } class Attribute { private String key; private String value; public Attribute(String key, String value) { this.key = key; this.value = value; } public String getKey() { return key; } public void setKey(String key) { this.key = key; } public void setValue(String value) { this.value = value; } public String getValue() { return value; } public JSONObject toJSON() { JSONObject _jsonO = new JSONObject(); _jsonO.put(key, value); return _jsonO; } } }
[ "suninformation@163.com" ]
suninformation@163.com
815facf30aea06a6ab66b8cd936eaf99f3656020
6832918e1b21bafdc9c9037cdfbcfe5838abddc4
/jdk_11_maven/cs/graphql/timbuctoo/timbuctoo-instancev4/src/main/java/nl/knaw/huygens/timbuctoo/database/tinkerpop/EdgeManipulator.java
f4af0092774b27ec557a190901661d62e2d1a35c
[ "GPL-1.0-or-later", "GPL-3.0-only", "Apache-2.0", "LGPL-2.0-or-later" ]
permissive
EMResearch/EMB
200c5693fb169d5f5462d9ebaf5b61c46d6f9ac9
092c92f7b44d6265f240bcf6b1c21b8a5cba0c7f
refs/heads/master
2023-09-04T01:46:13.465229
2023-04-12T12:09:44
2023-04-12T12:09:44
94,008,854
25
14
Apache-2.0
2023-09-13T11:23:37
2017-06-11T14:13:22
Java
UTF-8
Java
false
false
1,044
java
package nl.knaw.huygens.timbuctoo.database.tinkerpop; import org.apache.tinkerpop.gremlin.structure.Edge; import org.apache.tinkerpop.gremlin.structure.Vertex; public class EdgeManipulator { public static Edge duplicateEdge(Edge edgeToDuplicate) { Edge duplicate = createDuplicate(edgeToDuplicate); addProperties(edgeToDuplicate, duplicate); changeLatest(duplicate, edgeToDuplicate); return duplicate; } private static void changeLatest(Edge duplicate, Edge edgeToDuplicate) { duplicate.property("isLatest", true); edgeToDuplicate.property("isLatest", false); } private static Edge createDuplicate(Edge edgeToDuplicate) { Vertex sourceOfEdge = edgeToDuplicate.outVertex(); Vertex targetOfEdge = edgeToDuplicate.inVertex(); return sourceOfEdge.addEdge(edgeToDuplicate.label(), targetOfEdge); } private static void addProperties(Edge edgeToDuplicate, Edge duplicate) { edgeToDuplicate.properties() .forEachRemaining(prop -> duplicate.property(prop.key(), prop.value())); } }
[ "arcuri82@gmail.com" ]
arcuri82@gmail.com
69260decc5402cb8f9a64e0b5c805f3640ad2017
2f9a3fc0e60371a2af624b3b91f8caeaac9f83f4
/reflections/week1/exercise1/src/main/java/academy/everyonecodes/mysteriouscalculator/MysteriousAdditionConfiguration.java
9026a01898a90d39cae0b4ab0734520d2d6ad9a9
[]
no_license
Alex3m/springboot-module
49c1f08b6179286b4e752a818d2bbd5762044dd4
7d29b8065e0297eecc785033d40134fb37a62367
refs/heads/master
2022-06-23T03:49:59.106614
2020-05-07T18:31:52
2020-05-07T18:31:52
246,024,872
0
0
null
null
null
null
UTF-8
Java
false
false
447
java
package academy.everyonecodes.mysteriouscalculator; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class MysteriousAdditionConfiguration { @Bean MysteriousAddition mysteriousAdditionOne() { return new MysteriousAddition(1); } @Bean MysteriousAddition mysteriousAdditionTwo() { return new MysteriousAddition(2); } }
[ "apetrov8911@gmail.com" ]
apetrov8911@gmail.com
8f556d813b95944e9dd692f76485ff192168c061
6efda117fa845ec002a87b59ce79ebd41f859899
/src/main/java/com/lwh/rpc/serialization/serializer/impl/FastJsonSerializer.java
6fb97211c7438d98bd32a02bf66de8ef9206c0f6
[]
no_license
liwanghonggc/RPC
7f2f9566b1bf5471563c92c839ad763760824f5c
73d2a7049f183df7ae4bb56401140e104942167b
refs/heads/master
2020-04-03T01:51:49.854725
2019-03-06T05:28:23
2019-03-06T05:28:23
154,940,846
0
0
null
null
null
null
UTF-8
Java
false
false
669
java
package com.lwh.rpc.serialization.serializer.impl; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.serializer.SerializerFeature; import com.lwh.rpc.serialization.serializer.ISerializer; /** * @author lwh * @date 2018-10-27 * @desp */ public class FastJsonSerializer implements ISerializer { @Override public <T> byte[] serialize(T obj) { JSON.DEFFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss"; return JSON.toJSONString(obj, SerializerFeature.WriteDateUseDateFormat).getBytes(); } @Override public <T> T deserialize(byte[] data, Class<T> clazz) { return (T) JSON.parseObject(new String(data), clazz); } }
[ "2391519868@qq.com" ]
2391519868@qq.com
eacb4e6492e5f0e72abf9cf15dcbdcc2274cda6a
81b0bb3cfb2e9501f53451e7f03ec072ee2b0e13
/src/io/fabric/sdk/android/Fabric$Builder.java
2e552e5d93a11e458f0ae2215d16f396784d07d4
[]
no_license
reverseengineeringer/me.lyft.android
48bb85e8693ce4dab50185424d2ec51debf5c243
8c26caeeb54ffbde0711d3ce8b187480d84968ef
refs/heads/master
2021-01-19T02:32:03.752176
2016-07-19T16:30:00
2016-07-19T16:30:00
63,710,356
3
0
null
null
null
null
UTF-8
Java
false
false
2,291
java
package io.fabric.sdk.android; import android.content.Context; import android.os.Handler; import android.os.Looper; import io.fabric.sdk.android.services.common.IdManager; import io.fabric.sdk.android.services.concurrency.PriorityThreadPoolExecutor; import java.util.Arrays; import java.util.HashMap; import java.util.Map; public class Fabric$Builder { private String appIdentifier; private String appInstallIdentifier; private final Context context; private boolean debuggable; private Handler handler; private InitializationCallback<Fabric> initializationCallback; private Kit[] kits; private Logger logger; private PriorityThreadPoolExecutor threadPoolExecutor; public Fabric$Builder(Context paramContext) { if (paramContext == null) { throw new IllegalArgumentException("Context must not be null."); } context = paramContext.getApplicationContext(); } public Fabric build() { if (threadPoolExecutor == null) { threadPoolExecutor = PriorityThreadPoolExecutor.create(); } if (handler == null) { handler = new Handler(Looper.getMainLooper()); } if (logger == null) { if (debuggable) { logger = new DefaultLogger(3); } } else { if (appIdentifier == null) { appIdentifier = context.getPackageName(); } if (initializationCallback == null) { initializationCallback = InitializationCallback.EMPTY; } if (kits != null) { break label182; } } label182: for (Object localObject = new HashMap();; localObject = Fabric.access$000(Arrays.asList(kits))) { IdManager localIdManager = new IdManager(context, appIdentifier, appInstallIdentifier, ((Map)localObject).values()); return new Fabric(context, (Map)localObject, threadPoolExecutor, handler, logger, debuggable, initializationCallback, localIdManager); logger = new DefaultLogger(); break; } } public Builder kits(Kit... paramVarArgs) { if (kits != null) { throw new IllegalStateException("Kits already set."); } kits = paramVarArgs; return this; } } /* Location: * Qualified Name: io.fabric.sdk.android.Fabric.Builder * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
4b231c68ead4c84db698cbe8c97844e6e5a75661
c6c1a124eb1ff2fc561213d43d093f84d1ab2c43
/games/shhz/desktop/src/cn/javaplus/game/shhz/desktop/DesktopLauncher.java
484dd04652697fa180a211cd4288af83fcec33d3
[]
no_license
fantasylincen/javaplus
69201dba21af0973dfb224c53b749a3c0440317e
36fc370b03afe952a96776927452b6d430b55efd
refs/heads/master
2016-09-06T01:55:33.244591
2015-08-15T12:15:51
2015-08-15T12:15:51
15,601,930
3
1
null
null
null
null
UTF-8
Java
false
false
319
java
package cn.javaplus.game.shhz.desktop; import cn.javaplus.shhz.App; import com.badlogic.gdx.backends.lwjgl.LwjglApplication; public class DesktopLauncher { public static void main(String[] arg) { // new LwjglApplication(Game.createInstance(), "", 240, 160); new LwjglApplication(new App(), "", 1024, 768); } }
[ "12-2" ]
12-2
6f1de65f154db814cd8024281bd274054e6dae08
689cdf772da9f871beee7099ab21cd244005bfb2
/classes/com/cairh/app/sjkh/util/FileUploadUtil$2.java
7d6210955baa211d883604c27f2f824bfee48198
[]
no_license
waterwitness/dazhihui
9353fd5e22821cb5026921ce22d02ca53af381dc
ad1f5a966ddd92bc2ac8c886eb2060d20cf610b3
refs/heads/master
2020-05-29T08:54:50.751842
2016-10-08T08:09:46
2016-10-08T08:09:46
70,314,359
2
4
null
null
null
null
UTF-8
Java
false
false
3,243
java
package com.cairh.app.sjkh.util; import com.cairh.app.sjkh.common.WriteLogFile; import com.e.a.a.i; import java.io.PrintStream; import org.apache.http.Header; import org.json.JSONException; import org.json.JSONObject; class FileUploadUtil$2 extends i { FileUploadUtil$2(FileUploadUtil paramFileUploadUtil, String paramString) {} public void onFailure(int paramInt, Header[] paramArrayOfHeader, byte[] paramArrayOfByte, Throwable paramThrowable) { if (FileUploadUtil.access$1(this.this$0) == 1) { FileUploadUtil.access$0(this.this$0).onUploadFailure("IMAGE", "服务器无响应,请稍后再试"); paramThrowable.printStackTrace(); } switch (FileUploadUtil.access$1(this.this$0)) { default: paramArrayOfHeader = "上传照片异常,服务无响应"; } for (;;) { WriteLogFile.witeLog(paramArrayOfHeader); WriteLogFile.witeLog(paramThrowable.getMessage()); return; paramArrayOfHeader = "上传照片异常,服务无响应:" + this.val$url; continue; paramArrayOfHeader = "上传日志文件异常,服务无响应:https://sjkh.cairenhui.com/uploadlog/"; } } public void onSuccess(int paramInt, Header[] paramArrayOfHeader, byte[] paramArrayOfByte) { String str = new String(paramArrayOfByte); for (;;) { try { JSONObject localJSONObject = new JSONObject(str); paramArrayOfHeader = localJSONObject; paramArrayOfByte = localJSONObject; System.out.println("Json parse error"); } catch (JSONException paramArrayOfHeader) { try { if (localJSONObject.has("resMap")) { paramArrayOfByte = localJSONObject; paramArrayOfHeader = localJSONObject.getJSONObject("resMap"); } paramArrayOfByte = paramArrayOfHeader; if ("0".equals(paramArrayOfHeader.optString("fileType"))) { paramArrayOfByte = paramArrayOfHeader; WriteLogFile.clearLog(); return; } paramArrayOfByte = paramArrayOfHeader; paramInt = paramArrayOfHeader.getInt("errorNo"); if (paramInt != 0) { break; } FileUploadUtil.access$0(this.this$0).onUploadSuccess("IMAGE", str); return; } catch (JSONException paramArrayOfHeader) { for (;;) {} } paramArrayOfHeader = paramArrayOfHeader; paramArrayOfByte = null; } paramArrayOfHeader.printStackTrace(); if ("".equals("")) {} WriteLogFile.witeLog("解析服务响应数据异常,请检查返回的数据:" + str); paramInt = -1; paramArrayOfHeader = paramArrayOfByte; } paramArrayOfHeader = paramArrayOfHeader.optString("errorInfo"); WriteLogFile.witeLog("上传图片有响应:" + this.val$url + "\n\t但是errorNo非零:" + paramArrayOfHeader); FileUploadUtil.access$0(this.this$0).onUploadFailure("IMAGE", paramArrayOfHeader); } } /* Location: E:\apk\dazhihui2\classes-dex2jar.jar!\com\cairh\app\sjkh\util\FileUploadUtil$2.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "1776098770@qq.com" ]
1776098770@qq.com
bb7f66ef99e03f5ad02f43cb5431dd2a7764083f
aedc14e0254951efd21eb00c57955053e9f94a90
/src/main/java/com/faforever/client/io/CountingFileSystemResource.java
b034a52ba381ed252d4a08d55070aa5ea0b96300
[ "MIT" ]
permissive
JeroenDeDauw/downlords-faf-client
6b5d6a3731f8df0e1b93c7d4da30c5ff6adc4230
065b40a17c17bcc8644fbe8a6d4a9f10e7531962
refs/heads/develop
2021-01-22T05:43:06.882135
2017-02-22T20:22:03
2017-02-22T20:22:03
81,694,911
0
0
null
2017-02-12T01:26:01
2017-02-12T01:26:01
null
UTF-8
Java
false
false
1,602
java
package com.faforever.client.io; import lombok.SneakyThrows; import org.jetbrains.annotations.NotNull; import org.springframework.core.io.FileSystemResource; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.nio.file.Path; import java.util.Optional; /** * Concrete implementation of {@link FileSystemResource} that counts the number of written bytes. */ public class CountingFileSystemResource extends FileSystemResource { private ProgressListener listener; public CountingFileSystemResource(Path file, ProgressListener listener) { super(file.toFile()); this.listener = Optional.ofNullable(listener) .orElseThrow(() -> new IllegalArgumentException("'listener' must not be null")); } @Override @SneakyThrows public InputStream getInputStream() { return new CountingInputStream(getFile(), listener); } private class CountingInputStream extends FileInputStream { private final ProgressListener listener; private final long totalBytes; private long bytesDone; CountingInputStream(File file, ProgressListener listener) throws FileNotFoundException { super(file); this.listener = listener; this.totalBytes = file.length(); } @Override public int read(@NotNull byte[] buffer) throws IOException { int bytesRead = super.read(buffer); if (bytesRead != -1) { this.bytesDone += bytesRead; } this.listener.update(this.bytesDone, totalBytes); return bytesRead; } } }
[ "michel.jung89@gmail.com" ]
michel.jung89@gmail.com
df05f1761746f851d78865420b37761fddc2d7af
0085acce00bbd20658f312f30575632b6272090d
/src/algorithm/FirstBadVersion.java
4fe3d77a65c8a52fdd23f100a9ad8f0597be5b35
[]
no_license
garderobin/Leetcode
52fce8279e4963bc7824a19aae903ca6aad83867
ea10ce7fe465431399e444c6ecb0b7560b17e1e4
refs/heads/master
2021-01-17T14:43:49.423071
2018-11-12T00:55:47
2018-11-12T00:55:47
51,183,667
0
1
null
2018-11-12T00:55:48
2016-02-06T01:00:36
Java
UTF-8
Java
false
false
704
java
package algorithm; public class FirstBadVersion { public static int firstBadVersion(int n) { return getBadVersion(1, n); } private static int getBadVersion(int start, int end) { if (start == end) { return (isBadVersion(start)) ? start : -1; } else if (start > end) { return -1; } int k = (end - start) / 2 + start, m; if (isBadVersion(k)) { return ((m = getBadVersion(start, k - 1)) == -1) ? k : m; } else { return ((m = getBadVersion(k + 1, end)) == -1) ? -1 : m; } } private static boolean isBadVersion(int version) { return version >= 1150769282; } public static void main(String[] args) { System.out.println(firstBadVersion(1420736637)); } }
[ "garderobinshot@hotmail.com" ]
garderobinshot@hotmail.com
923360d81f9c4186874fff375eb6bf25a2163356
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-14599-1-9-NSGA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/extension/jar/internal/handler/JarExtensionHandler_ESTest_scaffolding.java
3e2cc3b54f441d4c8ff231b33b2c3b89bb4fd6a3
[]
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
4,878
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Fri Apr 03 02:40:12 UTC 2020 */ package org.xwiki.extension.jar.internal.handler; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; import static org.evosuite.shaded.org.mockito.Mockito.*; @EvoSuiteClassExclude public class JarExtensionHandler_ESTest_scaffolding { @org.junit.Rule public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule(); private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000); @BeforeClass public static void initEvoSuiteFramework() { org.evosuite.runtime.RuntimeSettings.className = "org.xwiki.extension.jar.internal.handler.JarExtensionHandler"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; org.evosuite.runtime.Runtime.getInstance().resetRuntime(); try { initMocksToAvoidTimeoutsInTheTests(); } catch(ClassNotFoundException e) {} } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); org.evosuite.runtime.GuiSupport.setHeadless(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); org.evosuite.runtime.agent.InstrumentingAgent.activate(); } @After public void doneWithTestCase(){ threadStopper.killAndJoinClientThreads(); org.evosuite.runtime.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(JarExtensionHandler_ESTest_scaffolding.class.getClassLoader() , "org.xwiki.classloader.ClassLoaderManager", "org.xwiki.extension.ExtensionFile", "org.xwiki.component.phase.Initializable", "org.xwiki.job.Request", "org.xwiki.component.annotation.Component", "org.xwiki.component.internal.multi.ComponentManagerManager", "org.xwiki.extension.ExtensionId", "org.xwiki.component.phase.InitializationException", "org.xwiki.extension.ExtensionException", "org.xwiki.component.annotation.Role", "org.xwiki.component.annotation.ComponentAnnotationLoader", "org.xwiki.extension.jar.internal.handler.JarExtensionHandler", "org.xwiki.extension.ExtensionScm", "org.xwiki.component.manager.CompatibilityComponentManager", "org.xwiki.component.manager.ComponentEventManager", "edu.emory.mathcs.util.classloader.ResourceHandle", "org.xwiki.extension.Extension", "org.xwiki.extension.handler.ExtensionHandler", "org.xwiki.classloader.ExtendedURLClassLoader", "org.xwiki.extension.InstalledExtension", "org.xwiki.extension.repository.ExtensionRepositoryDescriptor", "org.xwiki.extension.LocalExtension", "org.xwiki.extension.LocalExtensionFile", "org.xwiki.classloader.NamespaceURLClassLoader", "org.xwiki.extension.repository.ExtensionRepository", "org.xwiki.component.manager.ComponentManager", "org.xwiki.extension.handler.internal.AbstractExtensionHandler", "org.xwiki.extension.UninstallException", "org.xwiki.extension.InstallException", "org.xwiki.extension.ExtensionIssueManagement", "org.xwiki.classloader.URIClassLoader", "org.xwiki.extension.ExtensionDependency", "org.xwiki.extension.ExtensionAuthor", "org.xwiki.extension.ExtensionLicense" ); } private static void initMocksToAvoidTimeoutsInTheTests() throws ClassNotFoundException { mock(Class.forName("javax.inject.Provider", false, JarExtensionHandler_ESTest_scaffolding.class.getClassLoader())); mock(Class.forName("org.slf4j.Logger", false, JarExtensionHandler_ESTest_scaffolding.class.getClassLoader())); mock(Class.forName("org.xwiki.classloader.ClassLoaderManager", false, JarExtensionHandler_ESTest_scaffolding.class.getClassLoader())); mock(Class.forName("org.xwiki.classloader.NamespaceURLClassLoader", false, JarExtensionHandler_ESTest_scaffolding.class.getClassLoader())); mock(Class.forName("org.xwiki.component.internal.multi.ComponentManagerManager", false, JarExtensionHandler_ESTest_scaffolding.class.getClassLoader())); mock(Class.forName("org.xwiki.extension.InstalledExtension", false, JarExtensionHandler_ESTest_scaffolding.class.getClassLoader())); mock(Class.forName("org.xwiki.job.Request", false, JarExtensionHandler_ESTest_scaffolding.class.getClassLoader())); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
40a73c6f64d2ad5ba6696985f2b38dd181f5689e
a0dea239e224b8491fe8571de116b99a530b9b22
/source/src/com/nostra13/universalimageloader/utils/IoUtils.java
c9ae10492a0696ff7b7efa1571bfc0c6f6391616
[]
no_license
parth12/ProgrammingClubDAIICT
c413efecdce57839abc75602aa727730197c7a90
979b97222efcdf28607146df422772d83d3d5570
refs/heads/master
2021-01-10T05:22:28.079352
2015-12-22T18:40:28
2015-12-22T18:40:28
48,445,901
0
2
null
null
null
null
UTF-8
Java
false
false
1,130
java
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.nostra13.universalimageloader.utils; import java.io.Closeable; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public final class IoUtils { private static final int BUFFER_SIZE = 8192; private IoUtils() { } public static void closeSilently(Closeable closeable) { try { closeable.close(); return; } // Misplaced declaration of an exception variable catch (Closeable closeable) { return; } } public static void copyStream(InputStream inputstream, OutputStream outputstream) throws IOException { byte abyte0[] = new byte[8192]; do { int i = inputstream.read(abyte0, 0, 8192); if (i == -1) { return; } outputstream.write(abyte0, 0, i); } while (true); } }
[ "parthpanchal12196@gmail.com" ]
parthpanchal12196@gmail.com
098d157cb5db9b63dcc2c391483f70488e66db7e
0581dd75bbaaaa90a42fd62c352170b2ca6d9ae6
/src/java/com/linuxense/javadbf/Utils.java
aa0b39901afb31349ea81c81c53c5b4e513ad931
[]
no_license
TeamDeveloper2016/jom
a6cebf86f5ece8b72becdd11204b3a2affbb8e5c
a1131a741255689cd82c4ef4c40d15b675062e0c
refs/heads/master
2020-10-02T05:50:06.105396
2020-07-22T20:24:13
2020-07-22T20:24:13
227,715,196
1
1
null
null
null
null
UTF-8
Java
false
false
4,161
java
/* Utils Class for contining utility functions. This file is part of JavaDBF packege. author: anil@linuxense.com license: LGPL (http://www.gnu.org/copyleft/lesser.html) $Id: Utils.java,v 1.7 2004/03/31 16:00:34 anil Exp $ */ package com.linuxense.javadbf; import java.io.*; import java.util.*; import java.text.*; /** Miscelaneous functions required by the JavaDBF package. */ public final class Utils { public static final int ALIGN_LEFT = 10; public static final int ALIGN_RIGHT = 12; private Utils(){} public static int readLittleEndianInt( DataInput in) throws IOException { int bigEndian = 0; for( int shiftBy=0; shiftBy<32; shiftBy+=8) { bigEndian |= (in.readUnsignedByte()&0xff) << shiftBy; } return bigEndian; } public static short readLittleEndianShort( DataInput in) throws IOException { int low = in.readUnsignedByte() & 0xff; int high = in.readUnsignedByte(); return (short )(high << 8 | low); } public static byte[] trimLeftSpaces( byte [] arr) { StringBuffer t_sb = new StringBuffer( arr.length); for( int i=0; i<arr.length; i++) { if( arr[i] != ' ') { t_sb.append( (char)arr[ i]); } } return t_sb.toString().getBytes(); } public static short littleEndian( short value) { short num1 = value; short mask = (short)0xff; short num2 = (short)(num1&mask); num2<<=8; mask<<=8; num2 |= (num1&mask)>>8; return num2; } public static int littleEndian(int value) { int num1 = value; int mask = 0xff; int num2 = 0x00; num2 |= num1 & mask; for( int i=1; i<4; i++) { num2<<=8; mask <<= 8; num2 |= (num1 & mask)>>(8*i); } return num2; } public static byte[] textPadding( String text, String characterSetName, int length) throws java.io.UnsupportedEncodingException { return textPadding( text, characterSetName, length, Utils.ALIGN_LEFT); } public static byte[] textPadding( String text, String characterSetName, int length, int alignment) throws java.io.UnsupportedEncodingException { return textPadding( text, characterSetName, length, alignment, (byte)' '); } public static byte[] textPadding( String text, String characterSetName, int length, int alignment, byte paddingByte) throws java.io.UnsupportedEncodingException { if( text.length() >= length) { return text.substring( 0, length).getBytes( characterSetName); } byte byte_array[] = new byte[ length]; Arrays.fill( byte_array, paddingByte); switch( alignment) { case ALIGN_LEFT: System.arraycopy( text.getBytes( characterSetName), 0, byte_array, 0, text.length()); break; case ALIGN_RIGHT: int t_offset = length - text.length(); System.arraycopy( text.getBytes( characterSetName), 0, byte_array, t_offset, text.length()); break; } return byte_array; } public static byte[] doubleFormating( Double doubleNum, String characterSetName, int fieldLength, int sizeDecimalPart) throws java.io.UnsupportedEncodingException{ int sizeWholePart = fieldLength - (sizeDecimalPart>0?( sizeDecimalPart + 1):0); StringBuffer format = new StringBuffer( fieldLength); for( int i=0; i< sizeWholePart- 1; i++) { format.append("#"); } if( sizeDecimalPart > 0) { format.append( "0."); for( int i=0; i<sizeDecimalPart; i++) { format.append( "0"); } } NumberFormat df= NumberFormat.getCurrencyInstance(Locale.US); if (df instanceof DecimalFormat) { ((DecimalFormat) df).setDecimalSeparatorAlwaysShown(true); ((DecimalFormat) df).applyPattern(format.toString()); }; // if return textPadding( df.format( doubleNum.doubleValue()).toString(), characterSetName, fieldLength, ALIGN_RIGHT); } public static boolean contains( byte[] arr, byte value) { boolean found = false; for( int i=0; i<arr.length; i++) { if( arr[i] == value) { found = true; break; } } return found; } }
[ "team.developer@gmail.com" ]
team.developer@gmail.com
0aafee26001426614c43ed5cfd69a212341dd4f5
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
/aliyun-java-sdk-dyvms/src/main/java/com/aliyuncs/dyvms/model/v20170620/QueryVoiceFileOssUrlRequest.java
b6bb29a24e20bc5f5fcd2fd02fb91d56fd3270d2
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-java-sdk
a263fa08e261f12d45586d1b3ad8a6609bba0e91
e19239808ad2298d32dda77db29a6d809e4f7add
refs/heads/master
2023-09-03T12:28:09.765286
2023-09-01T09:03:00
2023-09-01T09:03:00
39,555,898
1,542
1,317
NOASSERTION
2023-09-14T07:27:05
2015-07-23T08:41:13
Java
UTF-8
Java
false
false
3,004
java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.aliyuncs.dyvms.model.v20170620; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; import com.aliyuncs.dyvms.Endpoint; /** * @author auto create * @version */ public class QueryVoiceFileOssUrlRequest extends RpcAcsRequest<QueryVoiceFileOssUrlResponse> { private Long resourceOwnerId; private String type; private String callerId; private String resourceOwnerAccount; private String prodCode; private Long ownerId; public QueryVoiceFileOssUrlRequest() { super("Dyvms", "2017-06-20", "QueryVoiceFileOssUrl", "dyvms"); setMethod(MethodType.POST); try { com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); } catch (Exception e) {} } public Long getResourceOwnerId() { return this.resourceOwnerId; } public void setResourceOwnerId(Long resourceOwnerId) { this.resourceOwnerId = resourceOwnerId; if(resourceOwnerId != null){ putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); } } public String getType() { return this.type; } public void setType(String type) { this.type = type; if(type != null){ putQueryParameter("Type", type); } } public String getCallerId() { return this.callerId; } public void setCallerId(String callerId) { this.callerId = callerId; if(callerId != null){ putQueryParameter("CallerId", callerId); } } public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } public void setResourceOwnerAccount(String resourceOwnerAccount) { this.resourceOwnerAccount = resourceOwnerAccount; if(resourceOwnerAccount != null){ putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); } } public String getProdCode() { return this.prodCode; } public void setProdCode(String prodCode) { this.prodCode = prodCode; if(prodCode != null){ putQueryParameter("ProdCode", prodCode); } } public Long getOwnerId() { return this.ownerId; } public void setOwnerId(Long ownerId) { this.ownerId = ownerId; if(ownerId != null){ putQueryParameter("OwnerId", ownerId.toString()); } } @Override public Class<QueryVoiceFileOssUrlResponse> getResponseClass() { return QueryVoiceFileOssUrlResponse.class; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
73e52e4b54d40fa8b71e0f3700c4e556ef15b9b3
5ebf8e5463d207b5cc17e14cc51e5a1df135ccb9
/moe.apple/moe.platform.ios/src/main/java/apple/cloudkit/CKQueryNotification.java
38e81f25a53c1ae868d0aaf5ca1ba6799e1951a2
[ "Apache-2.0", "ICU", "W3C" ]
permissive
multi-os-engine-community/moe-core
1cd1ea1c2caf6c097d2cd6d258f0026dbf679725
a1d54be2cf009dd57953c9ed613da48cdfc01779
refs/heads/master
2021-07-09T15:31:19.785525
2017-08-22T10:34:50
2017-08-22T10:59:02
101,847,137
1
0
null
2017-08-30T06:43:46
2017-08-30T06:43:46
null
UTF-8
Java
false
false
5,659
java
/* Copyright 2014-2016 Intel Corporation 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 apple.cloudkit; import apple.NSObject; import apple.foundation.NSArray; import apple.foundation.NSDictionary; import apple.foundation.NSMethodSignature; import apple.foundation.NSSet; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.moe.natj.general.Pointer; import org.moe.natj.general.ann.Generated; import org.moe.natj.general.ann.Library; import org.moe.natj.general.ann.Mapped; import org.moe.natj.general.ann.MappedReturn; import org.moe.natj.general.ann.NInt; import org.moe.natj.general.ann.NUInt; import org.moe.natj.general.ann.Owned; import org.moe.natj.general.ann.Runtime; import org.moe.natj.general.ptr.VoidPtr; import org.moe.natj.objc.Class; import org.moe.natj.objc.ObjCRuntime; import org.moe.natj.objc.SEL; import org.moe.natj.objc.ann.ObjCClassBinding; import org.moe.natj.objc.ann.Selector; import org.moe.natj.objc.map.ObjCObjectMapper; @Generated @Library("CloudKit") @Runtime(ObjCRuntime.class) @ObjCClassBinding public class CKQueryNotification extends CKNotification { static { NatJ.register(); } @Generated protected CKQueryNotification(Pointer peer) { super(peer); } @Generated @Selector("accessInstanceVariablesDirectly") public static native boolean accessInstanceVariablesDirectly(); @Generated @Owned @Selector("alloc") public static native CKQueryNotification alloc(); @Generated @Selector("allocWithZone:") @MappedReturn(ObjCObjectMapper.class) public static native Object allocWithZone(VoidPtr zone); @Generated @Selector("automaticallyNotifiesObserversForKey:") public static native boolean automaticallyNotifiesObserversForKey(String key); @Generated @Selector("cancelPreviousPerformRequestsWithTarget:") public static native void cancelPreviousPerformRequestsWithTarget(@Mapped(ObjCObjectMapper.class) Object aTarget); @Generated @Selector("cancelPreviousPerformRequestsWithTarget:selector:object:") public static native void cancelPreviousPerformRequestsWithTargetSelectorObject( @Mapped(ObjCObjectMapper.class) Object aTarget, SEL aSelector, @Mapped(ObjCObjectMapper.class) Object anArgument); @Generated @Selector("classFallbacksForKeyedArchiver") public static native NSArray<String> classFallbacksForKeyedArchiver(); @Generated @Selector("classForKeyedUnarchiver") public static native Class classForKeyedUnarchiver(); @Generated @Selector("debugDescription") public static native String debugDescription_static(); @Generated @Selector("description") public static native String description_static(); @Generated @Selector("hash") @NUInt public static native long hash_static(); @Generated @Selector("instanceMethodForSelector:") @FunctionPtr(name = "call_instanceMethodForSelector_ret") public static native NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(SEL aSelector); @Generated @Selector("instanceMethodSignatureForSelector:") public static native NSMethodSignature instanceMethodSignatureForSelector(SEL aSelector); @Generated @Selector("instancesRespondToSelector:") public static native boolean instancesRespondToSelector(SEL aSelector); @Generated @Selector("isSubclassOfClass:") public static native boolean isSubclassOfClass(Class aClass); @Generated @Selector("keyPathsForValuesAffectingValueForKey:") public static native NSSet<String> keyPathsForValuesAffectingValueForKey(String key); @Generated @Owned @Selector("new") @MappedReturn(ObjCObjectMapper.class) public static native Object new_objc(); @Generated @Selector("notificationFromRemoteNotificationDictionary:") public static native CKQueryNotification notificationFromRemoteNotificationDictionary( NSDictionary<?, ?> notificationDictionary); @Generated @Selector("resolveClassMethod:") public static native boolean resolveClassMethod(SEL sel); @Generated @Selector("resolveInstanceMethod:") public static native boolean resolveInstanceMethod(SEL sel); @Generated @Selector("setVersion:") public static native void setVersion_static(@NInt long aVersion); @Generated @Selector("superclass") public static native Class superclass_static(); @Generated @Selector("version") @NInt public static native long version_static(); @Generated @Selector("databaseScope") @NInt public native long databaseScope(); @Generated @Selector("init") public native CKQueryNotification init(); @Generated @Selector("isPublicDatabase") public native boolean isPublicDatabase(); @Generated @Selector("queryNotificationReason") @NInt public native long queryNotificationReason(); @Generated @Selector("recordFields") public native NSDictionary<String, ?> recordFields(); @Generated @Selector("recordID") public native CKRecordID recordID(); }
[ "kristof.liliom@migeran.com" ]
kristof.liliom@migeran.com
8eaa75ebdb9527cc19c8f0ca654fc97211c90261
8645c69457deede66267c99cc7b6abde29a73531
/data-center-server/src/main/java/com/dryork/service/SysRoleAuthorityService.java
766b162f591b6e15333897131f1c1bf6e48ec8e1
[]
no_license
jsen-joker/DC
139d0545eabee8fb39fbd3a8549eea740a630103
a15bfc82f4ab456971332b87acd981a85455576e
refs/heads/master
2020-04-08T23:01:45.330193
2018-11-30T10:40:54
2018-11-30T10:40:54
159,808,531
0
0
null
null
null
null
UTF-8
Java
false
false
291
java
package com.dryork.service; import com.baomidou.mybatisplus.extension.service.IService; import com.dryork.entity.SysRoleAuthority; /** * <p> * 服务类 * </p> * * @author jsen * @since 2018-04-08 */ public interface SysRoleAuthorityService extends IService<SysRoleAuthority> { }
[ "jsen1922279340@163.com" ]
jsen1922279340@163.com
5a98f2038eaf571729c38e8daa8951fdf42c7a1a
c2224db1a8dbb5d69fc9ca199a55b31b8203715e
/src/main/java/com/luiztictac/os/dtos/TecnicoDTO.java
2b483ab04ae894b954688ffa9378b6f8dce83813
[]
no_license
luiztictac/os-api
1557ff91601c78ed47fc98cfbff626619966060e
577553e215b1453e43de0a8b5fc97141003792e5
refs/heads/main
2023-06-27T17:09:04.756373
2021-08-02T21:49:26
2021-08-02T21:49:26
391,232,617
0
0
null
null
null
null
UTF-8
Java
false
false
1,199
java
package com.luiztictac.os.dtos; import java.io.Serializable; import javax.validation.constraints.NotEmpty; import org.hibernate.validator.constraints.br.CPF; import com.luiztictac.os.domain.Tecnico; public class TecnicoDTO implements Serializable { private static final long serialVersionUID = 1L; private Integer id; @NotEmpty(message = "O campo NOME é requerido") private String nome; @CPF @NotEmpty(message = "O campo CPF é requerido") private String cpf; @NotEmpty(message = "O campo TELEFONE é requerido") private String telefone; public TecnicoDTO() { super(); } public TecnicoDTO(Tecnico obj) { super(); this.id = obj.getId(); this.nome = obj.getNome(); this.cpf = obj.getCpf(); this.telefone = obj.getTelefone(); } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getNome() { return nome; } public void setNome(String nome) { this.nome = nome; } public String getCpf() { return cpf; } public void setCpf(String cpf) { this.cpf = cpf; } public String getTelefone() { return telefone; } public void setTelefone(String telefone) { this.telefone = telefone; } }
[ "=" ]
=
30161353af24d4f49d0a51137441d13f5514f8ca
e2ff875beb65a9a6b2d16f10682a01c6e92f65f8
/src/main/java/com/amap/api/navi/view/RoadOverlay.java
d0119b447e15b3ffb93918d918a79966ca863438
[]
no_license
gaoluhua99/hud20220723
3f56abce85e3348b116801a88148530ac23cd35c
803a209919d63001f998a61d17072b0f8e5c0e05
refs/heads/master
2023-03-15T23:55:24.290183
2021-03-12T04:13:37
2021-03-12T04:13:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,094
java
package com.amap.api.navi.view; import android.content.Context; import android.graphics.Typeface; import android.widget.TextView; import com.a11hud.www.R; import com.amap.api.col.stln3.rx; import com.amap.api.maps.AMap; import com.amap.api.maps.model.BitmapDescriptorFactory; import com.amap.api.maps.model.LatLng; import com.amap.api.maps.model.Marker; import com.amap.api.maps.model.MarkerOptions; import com.autonavi.ae.guide.model.NaviCongestionInfo; public class RoadOverlay { private AMap mAMap; private Context mContext; private String nextRoadName; private Marker nextRoadNameMarker = null; private LatLng tempLatlng; private TextView textNextRoadName; private Marker tmcStatusMarker = null; public RoadOverlay(Context context, AMap aMap) { this.mContext = context; this.mAMap = aMap; } private TextView getNextRoadView() { this.textNextRoadName = new TextView(this.mContext); this.textNextRoadName.setBackgroundResource(R.attr.actionModePopupWindowStyle); this.textNextRoadName.setTextColor(-1); this.textNextRoadName.setGravity(17); this.textNextRoadName.setTypeface(Typeface.defaultFromStyle(1)); this.textNextRoadName.setTextSize(16.0f); return this.textNextRoadName; } public void drawNextRoadMarker(LatLng latLng, String str) { try { if (this.tempLatlng != null && latLng.latitude == this.tempLatlng.latitude) { if (latLng.longitude == this.tempLatlng.longitude) { return; } } if (this.nextRoadName != null) { if (str.equals(this.nextRoadName)) { return; } } if (this.nextRoadNameMarker == null) { this.nextRoadNameMarker = this.mAMap.addMarker(new MarkerOptions().position(latLng).anchor(1.0f, 1.0f)); } else { this.nextRoadNameMarker.setPosition(latLng); } this.textNextRoadName = getNextRoadView(); this.textNextRoadName.setText(str); this.nextRoadNameMarker.setIcon(BitmapDescriptorFactory.fromView(this.textNextRoadName)); this.nextRoadNameMarker.setVisible(true); this.tempLatlng = latLng; this.nextRoadName = str; } catch (Throwable th) { th.printStackTrace(); rx.c(th, "RouteOverLay", "drawNextRoadMarker() "); } } public void hideNextRoadMarker() { Marker marker = this.nextRoadNameMarker; if (marker != null) { marker.setVisible(false); } } public void drawTrafficTip(LatLng latLng, NaviCongestionInfo naviCongestionInfo) { try { if (this.tmcStatusMarker == null) { this.tmcStatusMarker = this.mAMap.addMarker(new MarkerOptions().position(latLng).anchor(1.0f, 1.0f)); } else { this.tmcStatusMarker.setPosition(latLng); } this.textNextRoadName = getNextRoadView(); this.textNextRoadName.setText(naviCongestionInfo.totalRemainDist + "米 | " + naviCongestionInfo.totalTimeOfSeconds + "秒"); this.tmcStatusMarker.setIcon(BitmapDescriptorFactory.fromView(this.textNextRoadName)); this.tmcStatusMarker.setVisible(true); } catch (Throwable th) { th.printStackTrace(); rx.c(th, "RouteOverLay", "drawNextRoadMarker() "); } } public void hideStatusMarker() { Marker marker = this.tmcStatusMarker; if (marker != null) { marker.setVisible(false); } } public void removeFromMap() { Marker marker = this.nextRoadNameMarker; if (marker != null) { marker.remove(); } } public void destroy() { Marker marker = this.nextRoadNameMarker; if (marker != null) { marker.destroy(); this.nextRoadNameMarker = null; } this.textNextRoadName = null; } }
[ "tommpat163@163.com" ]
tommpat163@163.com
4217327b1f3b93987ca723cfb168f62f5f4cb15b
d44afa3570d26886894b848e0faeadffdd56d298
/plugins/connectors/editgrid/src/com/apatar/editgrid/ws/UserListRequest.java
48662a2b796bc0dbe9f4e96342a38176d5fe4f76
[]
no_license
ap0n/dynamo
9bfa6d96147448c795a19f468096f0670fa4086f
2c756fff07157af6a076416e5c0f77994c80d600
refs/heads/master
2021-01-10T13:56:07.470945
2016-03-20T07:42:10
2016-03-20T07:42:10
54,305,984
0
0
null
null
null
null
UTF-8
Java
false
false
6,179
java
/** * UserListRequest.java * * This file was auto-generated from WSDL * by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter. */ package com.apatar.editgrid.ws; public class UserListRequest implements java.io.Serializable { /** * */ private static final long serialVersionUID = -6306841070604441179L; private java.lang.String sessionKey; private java.lang.String org; private java.lang.Integer limit; private java.lang.Integer offset; public UserListRequest() { } public UserListRequest(java.lang.String sessionKey, java.lang.String org, java.lang.Integer limit, java.lang.Integer offset) { this.sessionKey = sessionKey; this.org = org; this.limit = limit; this.offset = offset; } /** * Gets the sessionKey value for this UserListRequest. * * @return sessionKey */ public java.lang.String getSessionKey() { return sessionKey; } /** * Sets the sessionKey value for this UserListRequest. * * @param sessionKey */ public void setSessionKey(java.lang.String sessionKey) { this.sessionKey = sessionKey; } /** * Gets the org value for this UserListRequest. * * @return org */ public java.lang.String getOrg() { return org; } /** * Sets the org value for this UserListRequest. * * @param org */ public void setOrg(java.lang.String org) { this.org = org; } /** * Gets the limit value for this UserListRequest. * * @return limit */ public java.lang.Integer getLimit() { return limit; } /** * Sets the limit value for this UserListRequest. * * @param limit */ public void setLimit(java.lang.Integer limit) { this.limit = limit; } /** * Gets the offset value for this UserListRequest. * * @return offset */ public java.lang.Integer getOffset() { return offset; } /** * Sets the offset value for this UserListRequest. * * @param offset */ public void setOffset(java.lang.Integer offset) { this.offset = offset; } private java.lang.Object __equalsCalc = null; @Override public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof UserListRequest)) { return false; } UserListRequest other = (UserListRequest) obj; if (obj == null) { return false; } if (this == obj) { return true; } if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((sessionKey == null && other.getSessionKey() == null) || (sessionKey != null && sessionKey .equals(other.getSessionKey()))) && ((org == null && other.getOrg() == null) || (org != null && org .equals(other.getOrg()))) && ((limit == null && other.getLimit() == null) || (limit != null && limit .equals(other.getLimit()))) && ((offset == null && other.getOffset() == null) || (offset != null && offset .equals(other.getOffset()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; @Override public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getSessionKey() != null) { _hashCode += getSessionKey().hashCode(); } if (getOrg() != null) { _hashCode += getOrg().hashCode(); } if (getLimit() != null) { _hashCode += getLimit().hashCode(); } if (getOffset() != null) { _hashCode += getOffset().hashCode(); } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc( UserListRequest.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName( "http://api.editgrid.com", "UserListRequest")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("sessionKey"); elemField.setXmlName(new javax.xml.namespace.QName("", "sessionKey")); elemField.setXmlType(new javax.xml.namespace.QName( "http://www.w3.org/2001/XMLSchema", "string")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("org"); elemField.setXmlName(new javax.xml.namespace.QName("", "org")); elemField.setXmlType(new javax.xml.namespace.QName( "http://www.w3.org/2001/XMLSchema", "string")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("limit"); elemField.setXmlName(new javax.xml.namespace.QName("", "limit")); elemField.setXmlType(new javax.xml.namespace.QName( "http://www.w3.org/2001/XMLSchema", "int")); elemField.setMinOccurs(0); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("offset"); elemField.setXmlName(new javax.xml.namespace.QName("", "offset")); elemField.setXmlType(new javax.xml.namespace.QName( "http://www.w3.org/2001/XMLSchema", "int")); elemField.setMinOccurs(0); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } /** * Get Custom Serializer */ public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanSerializer(_javaType, _xmlType, typeDesc); } /** * Get Custom Deserializer */ public static org.apache.axis.encoding.Deserializer getDeserializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType, _xmlType, typeDesc); } }
[ "anydriotis@gmail.com" ]
anydriotis@gmail.com
40db94523faef32a52e4b6a60e29eb69e700300a
c188408c9ec0425666250b45734f8b4c9644a946
/open-sphere-plugins/feature-actions/src/main/java/io/opensphere/featureactions/editor/model/SimpleFeatureAction.java
49d9951277b3fa653d3e5dd0c50439d6c737bcf5
[ "LicenseRef-scancode-free-unknown", "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
rkausch/opensphere-desktop
ef8067eb03197c758e3af40ebe49e182a450cc02
c871c4364b3456685411fddd22414fd40ce65699
refs/heads/snapshot_5.2.7
2023-04-13T21:00:00.575303
2020-07-29T17:56:10
2020-07-29T17:56:10
360,594,280
0
0
Apache-2.0
2021-04-22T17:40:38
2021-04-22T16:58:41
null
UTF-8
Java
false
false
5,120
java
package io.opensphere.featureactions.editor.model; import io.opensphere.featureactions.model.FeatureAction; import javafx.beans.property.LongProperty; import javafx.beans.property.ObjectProperty; import javafx.beans.property.SimpleLongProperty; import javafx.beans.property.SimpleObjectProperty; import javafx.beans.property.SimpleStringProperty; import javafx.beans.property.StringProperty; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.scene.paint.Color; /** * Model class representing a single feature action within the feature action * editor. */ public class SimpleFeatureAction { /** * The available columns to create a feature action for. */ private final ObservableList<String> myAvailableColumns = FXCollections.observableArrayList(); /** * The color to use for this action. */ private final ObjectProperty<Color> myColorProperty = new SimpleObjectProperty<>(); /** * The selected column. */ private final StringProperty myColumn = new SimpleStringProperty(); /** * The feature action we are editing. */ private final FeatureAction myFeatureAction; /** * The id of the icon to use for the action. */ private final LongProperty myIconId = new SimpleLongProperty(); /** * The maximum value if a range. */ private final StringProperty myMaximumValue = new SimpleStringProperty(); /** * The minimum value if a range. */ private final StringProperty myMinimumValue = new SimpleStringProperty(); /** * The selected criteria options. */ private final ObjectProperty<CriteriaOptions> myOption = new SimpleObjectProperty<>(CriteriaOptions.VALUE); /** * The criteria options. */ private final ObservableList<CriteriaOptions> myOptions = FXCollections.observableArrayList(CriteriaOptions.values()); /** * The value. */ private final StringProperty myValue = new SimpleStringProperty(); /** * Constructs a new simple feature action. * * @param action The action to edit. */ public SimpleFeatureAction(FeatureAction action) { myFeatureAction = action; } /** * The property of the color to use for this action. * * @return The color property. */ public ObjectProperty<Color> colorProperty() { return myColorProperty; } /** * The available columns to create a feature action for. * * @return the availableColumns. */ public ObservableList<String> getAvailableColumns() { return myAvailableColumns; } /** * Gets the color to use for this action. * * @return The color for the action. */ public Color getColor() { return myColorProperty.get(); } /** * The currently selected column. * * @return the column */ public StringProperty getColumn() { return myColumn; } /** * Gets the feature action we are editing. * * @return the featureAction. */ public FeatureAction getFeatureAction() { return myFeatureAction; } /** * Gets the id of the icon to use for the action. * * @return The icon id. */ public long getIconId() { return myIconId.get(); } /** * The maximum value if a range. * * @return the maximumValue. */ public StringProperty getMaximumValue() { return myMaximumValue; } /** * The minimum value if a range. * * @return the minimumValue. */ public StringProperty getMinimumValue() { return myMinimumValue; } /** * Gets the selected criteria option. * * @return the option. */ public ObjectProperty<CriteriaOptions> getOption() { return myOption; } /** * The available criteria options. * * @return the options. */ public ObservableList<CriteriaOptions> getOptions() { return myOptions; } /** * Gets the value property if value criteria options. * * @return the value. */ public StringProperty getValue() { return myValue; } /** * The property of the icon id used for the action. * * @return The icon id property. */ public LongProperty iconIdProperty() { return myIconId; } /** * Sets the color to use for this action. * * @param color The color for the action. */ public void setColor(Color color) { myColorProperty.set(color); } /** * Sets the id of the icon to use for the action. * * @param iconId The icon id. */ public void setIconId(long iconId) { myIconId.set(iconId); } }
[ "kauschr@opensphere.io" ]
kauschr@opensphere.io
245148b58c752c6add72cd60cad5d8e44b05c16f
db5b8a2900a06c599712b471c8cee0bb71758093
/src/java/org/netbeans/rest/application/config/ApplicationConfig.java
563841d4735c242b33b1a44fd686acd3760d568c
[]
no_license
jmulet/pdaweb
babcd18bee01c1f92911e2f4802f04dee58fae1c
63bf69ddffee872c883ca76eb599840e182d047d
refs/heads/master
2021-01-19T13:12:27.165996
2013-07-31T15:27:52
2013-07-31T15:27:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,218
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.netbeans.rest.application.config; import java.util.Set; import javax.ws.rs.core.Application; /** * * @author Josep */ @javax.ws.rs.ApplicationPath("webresources") public class ApplicationConfig extends Application { @Override public Set<Class<?>> getClasses() { return getRestResourceClasses(); } /** * Do not modify this method. It is automatically generated by NetBeans REST support. */ private Set<Class<?>> getRestResourceClasses() { Set<Class<?>> resources = new java.util.HashSet<Class<?>>(); resources.add(org.iesapp.web.cloudws.GenericResource.class); // following code can be used to customize Jersey 1.x JSON provider: try { Class jacksonProvider = Class.forName("org.codehaus.jackson.jaxrs.JacksonJsonProvider"); resources.add(jacksonProvider); } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE, null, ex); } return resources; } }
[ "Josep@hpjosep" ]
Josep@hpjosep
fb8a1845486140bd358cf9ad12f3871a5638a492
ea9deb97fbd3a5e0c87ac60449dbd659facb64db
/baseio-extend/src/main/java/com/generallycloud/nio/extend/HotDeploy.java
264aa3414ad1ed5f4ec0ce53023d52b0bdffad31
[]
no_license
DONGXUE1/baseio
a16f44a1da7d66fcd7991ce601ec0886269251bb
0aaed42b625cc41e6f1b5c42f372b8c6006f045b
refs/heads/master
2021-01-13T09:26:58.125086
2017-10-24T14:15:55
2017-10-24T14:15:55
72,083,553
0
0
null
2016-10-27T07:41:18
2016-10-27T07:41:17
null
UTF-8
Java
false
false
319
java
package com.generallycloud.nio.extend; import com.generallycloud.nio.extend.configuration.Configuration; public interface HotDeploy { public void prepare(ApplicationContext context, Configuration config) throws Exception; public void unload(ApplicationContext context, Configuration config) throws Exception; }
[ "8738115@qq.com" ]
8738115@qq.com
eeaa6f71317daac432742311e1561a1ef112eb9c
0031716e70b380c4564a9ba506df3c01673e4dc5
/app/src/main/java/com/douban/book/reader/util/NotificationUtils.java
73b8a5d71b03e7c38345880d52d2f7d91a7ffb97
[]
no_license
sridhar191986/DouBanYueDu
fc08c583f4ef53bb293f967de2a2772eb5b55719
fd126db0e3ed684f27a498eda7eaedb06e6c396c
refs/heads/master
2020-09-07T14:32:40.823864
2016-02-18T10:22:58
2016-02-18T10:22:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,135
java
package com.douban.book.reader.util; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Intent; import android.support.v4.app.NotificationCompat.BigTextStyle; import android.support.v4.app.NotificationCompat.Builder; import com.douban.amonsul.StatConstant; import com.douban.book.reader.R; import com.douban.book.reader.app.App; import com.douban.book.reader.constant.Constants; public class NotificationUtils { private static final int DEFAULT_NID = 0; private static final int REQUEST_CODE_DEL_NOTIFICATION = -2; private static final int REQUEST_CODE_OPEN_NOTIFICATION = -1; private static NotificationManager mNotificationManager; static { mNotificationManager = (NotificationManager) App.get().getSystemService("notification"); } public static void showMessage(String type, long nid, String title, String msg, Intent intent) { Intent forwardIntent = new Intent(Constants.ACTION_OPEN_NOTIFICATION); forwardIntent.putExtra(Constants.KEY_NOTIFICATION_ID, nid); forwardIntent.putExtra(Constants.KEY_FORWARD_INTENT, intent); PendingIntent pendingForwardIntent = PendingIntent.getBroadcast(App.get(), (int) nid, forwardIntent, 1207959552); Intent deleteIntent = new Intent(Constants.ACTION_DELETE_NOTIFICATION); deleteIntent.putExtra(Constants.KEY_NOTIFICATION_ID, nid); Notification notification = new Builder(App.get()).setSmallIcon(R.drawable.ic_push_notification).setTicker(msg).setContentIntent(pendingForwardIntent).setDeleteIntent(PendingIntent.getBroadcast(App.get(), REQUEST_CODE_DEL_NOTIFICATION, deleteIntent, 1073741824)).setContentText(msg).setContentTitle(title).setLights(Res.getColor(R.color.palette_day_blue), StatConstant.DEFAULT_MAX_EVENT_COUNT, 3000).setAutoCancel(true).setStyle(new BigTextStyle().bigText(msg)).build(); mNotificationManager.cancel(type, DEFAULT_NID); mNotificationManager.notify(type, DEFAULT_NID, notification); } public static void cancelAll() { mNotificationManager.cancelAll(); } }
[ "blankeeee@gmail.com" ]
blankeeee@gmail.com
49bf431a5cf26751c5edb123e2104201adaf047f
a65a1175cc3dadb1c3355d8350b1471b8eb3a8f5
/core/src/main/java/org/carrot2/math/mahout/list/AbstractList.java
e043a3a8a195ea4db344692d312a5a7aa43d68ae
[ "Apache-2.0", "LicenseRef-scancode-bsd-ack-carrot2", "BSD-3-Clause" ]
permissive
lunnada/carrot2
b4803ff6100a69297f461c15254a4f3b56b1dc37
dd81228091202d712f3d9ed8bfc4566c81e19db6
refs/heads/master
2020-12-01T04:19:08.582605
2019-12-17T11:28:52
2019-12-17T11:28:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,212
java
/* * Carrot2 project. * * Copyright (C) 2002-2019, Dawid Weiss, Stanisław Osiński. * All rights reserved. * * Refer to the full license file "carrot2.LICENSE" * in the root folder of the repository checkout or at: * https://www.carrot2.org/carrot2.LICENSE */ package org.carrot2.math.mahout.list; import org.carrot2.math.mahout.PersistentObject; public abstract class AbstractList extends PersistentObject { public abstract int size(); public boolean isEmpty() { return size() == 0; } protected abstract void beforeInsertDummies(int index, int length); protected static void checkRange(int index, int theSize) { if (index >= theSize || index < 0) { throw new IndexOutOfBoundsException("Index: " + index + ", Size: " + theSize); } } protected static void checkRangeFromTo(int from, int to, int theSize) { if (to == from - 1) { return; } if (from < 0 || from > to || to >= theSize) { throw new IndexOutOfBoundsException("from: " + from + ", to: " + to + ", size=" + theSize); } } public void clear() { removeFromTo(0, size() - 1); } public final void mergeSort() { mergeSortFromTo(0, size() - 1); } public abstract void mergeSortFromTo(int from, int to); public final void quickSort() { quickSortFromTo(0, size() - 1); } public abstract void quickSortFromTo(int from, int to); public void remove(int index) { removeFromTo(index, index); } public abstract void removeFromTo(int fromIndex, int toIndex); public abstract void reverse(); public void setSize(int newSize) { if (newSize < 0) { throw new IndexOutOfBoundsException("newSize:" + newSize); } int currentSize = size(); if (newSize != currentSize) { if (newSize > currentSize) { beforeInsertDummies(currentSize, newSize - currentSize); } else { removeFromTo(newSize, currentSize - 1); } } } public final void sort() { sortFromTo(0, size() - 1); } public void sortFromTo(int from, int to) { quickSortFromTo(from, to); } public void trimToSize() {} @Override public int hashCode() { throw new RuntimeException("Not implemented."); } }
[ "dawid.weiss@carrotsearch.com" ]
dawid.weiss@carrotsearch.com
0ca90c6204a9756fe339095ef9c62cbc86dabefb
0c11613c21ebe12f48d6cebb6339887e10e72219
/taobao-sdk-java/src/main/java/com/taobao/api/request/FenxiaoProductsGetRequest.java
45e20ec3ec444bb21c1099ed7b6e685a82aaf0a6
[]
no_license
mustang2247/demo
a3347a2994448086814383c67757f659208368cd
35598ed0a3900afc759420b7100a7d310db2597d
refs/heads/master
2021-05-09T17:28:22.631386
2014-06-10T12:03:26
2014-06-10T12:03:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,189
java
package com.taobao.api.request; import java.util.Date; import java.util.Map; import java.util.Date; import com.taobao.api.internal.util.TaobaoHashMap; import com.taobao.api.TaobaoRequest; /** * TOP API: taobao.fenxiao.products.get request * * @author auto create * @since 1.0, 2010-08-04 18:40:15.0 */ public class FenxiaoProductsGetRequest implements TaobaoRequest { private Long timestamp; private TaobaoHashMap textParams = new TaobaoHashMap(); /** * 结束修改时间 **/ private Date endModified; /** * 指定查询额外的信息,可选值:skus(sku数据)、images(多图),多个可选值用逗号分割。 **/ private String fields; /** * 商家编码 **/ private String outerId; /** * 页码(大于0的整数,默认1) **/ private Long pageNo; /** * 每页记录数(默认20,最大50) **/ private Long pageSize; /** * 产品ID列表(最大限制30),用逗号分割,例如:“1001,1002,1003,1004,1005” **/ private String pids; /** * 产品线ID **/ private Long productcatId; /** * 开始修改时间 **/ private Date startModified; /** * 产品状态,可选值:up(上架)、down(下架),不传默认查询所有 **/ private String status; public void setEndModified(Date endModified) { this.endModified = endModified; } public Date getEndModified() { return this.endModified; } public void setFields(String fields) { this.fields = fields; } public String getFields() { return this.fields; } public void setOuterId(String outerId) { this.outerId = outerId; } public String getOuterId() { return this.outerId; } public void setPageNo(Long pageNo) { this.pageNo = pageNo; } public Long getPageNo() { return this.pageNo; } public void setPageSize(Long pageSize) { this.pageSize = pageSize; } public Long getPageSize() { return this.pageSize; } public void setPids(String pids) { this.pids = pids; } public String getPids() { return this.pids; } public void setProductcatId(Long productcatId) { this.productcatId = productcatId; } public Long getProductcatId() { return this.productcatId; } public void setStartModified(Date startModified) { this.startModified = startModified; } public Date getStartModified() { return this.startModified; } public void setStatus(String status) { this.status = status; } public String getStatus() { return this.status; } public String getApiMethodName() { return "taobao.fenxiao.products.get"; } public Map<String, String> getTextParams() { textParams.put("end_modified", this.endModified); textParams.put("fields", this.fields); textParams.put("outer_id", this.outerId); textParams.put("page_no", this.pageNo); textParams.put("page_size", this.pageSize); textParams.put("pids", this.pids); textParams.put("productcat_id", this.productcatId); textParams.put("start_modified", this.startModified); textParams.put("status", this.status); return textParams; } public Long getTimestamp() { return timestamp; } public void setTimestamp(Long timestamp) { this.timestamp = timestamp; } }
[ "Administrator@.(none)" ]
Administrator@.(none)
d48fab990fd4d573886f9e222301509715e304b0
fe6d53a84bde14960116d32fbc6851ce79d909c6
/cj.studio.ecm.net/src/cj/studio/ecm/net/rio/http/JdkNetGraph.java
11d1a7954c8781d7792d8874d47ced7339ea4a09
[]
no_license
lai1245199086/cj.studio.ecm
850a0396fa8b171bbab2199e47ecc1fd3e43c129
e155ddfc9c301c4e0ff93c3c68199b0b10630462
refs/heads/master
2020-07-07T12:22:35.066274
2019-07-31T06:19:06
2019-07-31T06:19:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,899
java
package cj.studio.ecm.net.rio.http; import java.util.Map; import cj.studio.ecm.graph.Access; import cj.studio.ecm.graph.AnnotationProtocolFactory; import cj.studio.ecm.graph.Graph; import cj.studio.ecm.graph.GraphCreator; import cj.studio.ecm.graph.IPin; import cj.studio.ecm.graph.IProtocolFactory; import cj.studio.ecm.graph.ISink; import cj.studio.ecm.graph.SinkCreateBy; import cj.studio.ecm.net.graph.INetGraph; import cj.studio.ecm.net.nio.NetConstans; class JdkNetGraph extends Graph implements INetGraph { String name; Map<String, String> refProps; public JdkNetGraph(String name, Map<String, String> props) { // options("$graphName",name); this.name = name; refProps = props; } @Override public Object options(String key) { if (super.containsOptions(key)) return super.options(key); return refProps != null ? refProps.get(key) : null; } @Override public String name() { // TODO Auto-generated method stub return name; } @Override protected String defineAcceptProptocol() { // TODO Auto-generated method stub return ".*"; } @Override public IPin netInput() { // TODO Auto-generated method stub return in("input"); } @Override public IPin netOutput() { // TODO Auto-generated method stub return out("output"); } @Override protected GraphCreator newCreator() { return new ApacheNetGraphCreator(); } @Override protected void build(GraphCreator c) { c.newCablePin("input", Access.input).plugLast("translater", new SinkCreateBy(c)); } @Override public void dispose() { super.dispose(); } class ApacheNetGraphCreator extends GraphCreator { @Override protected IProtocolFactory newProtocol() { return AnnotationProtocolFactory.factory(NetConstans.class); } @Override protected ISink createSink(String sink) { if ("translater".equals(sink)) { return new Translater(); } return null; } } }
[ "carocean.jofers@icloud.com" ]
carocean.jofers@icloud.com
0ab0d6468e75f0413ff5b2bd171399e152d3b135
54c1dcb9a6fb9e257c6ebe7745d5008d29b0d6b6
/app/src/main/java/com/p118pd/sdk/C6095iILLII.java
f57162b882570680baa6fe70837e339359c6db94
[]
no_license
rcoolboy/guilvN
3817397da465c34fcee82c0ca8c39f7292bcc7e1
c779a8e2e5fd458d62503dc1344aa2185101f0f0
refs/heads/master
2023-05-31T10:04:41.992499
2021-07-07T09:58:05
2021-07-07T09:58:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,825
java
package com.p118pd.sdk; import com.p118pd.sdk.C9349III; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.locks.ReentrantLock; /* renamed from: com.pd.sdk.iILL丨II reason: invalid class name and case insensitive filesystem */ public final class C6095iILLII<T> implements C9349III.OooO00o<T> { public volatile IIlIIiI1 OooO00o = new IIlIIiI1(); /* renamed from: OooO00o reason: collision with other field name */ public final i11iiILl<? extends T> f17514OooO00o; /* renamed from: OooO00o reason: collision with other field name */ public final AtomicInteger f17515OooO00o = new AtomicInteger(0); /* renamed from: OooO00o reason: collision with other field name */ public final ReentrantLock f17516OooO00o = new ReentrantLock(); /* renamed from: com.pd.sdk.iILL丨II$OooO00o */ public class OooO00o implements AbstractC6153iL1l<LlIiLii> { /* renamed from: OooO00o reason: collision with other field name */ public final /* synthetic */ AbstractC9508LiLi f17517OooO00o; /* renamed from: OooO00o reason: collision with other field name */ public final /* synthetic */ AtomicBoolean f17518OooO00o; public OooO00o(AbstractC9508LiLi r2, AtomicBoolean atomicBoolean) { this.f17517OooO00o = r2; this.f17518OooO00o = atomicBoolean; } /* renamed from: OooO00o */ public void call(LlIiLii llIiLii) { try { C6095iILLII.this.OooO00o.OooO00o(llIiLii); C6095iILLII.this.OooO00o(this.f17517OooO00o, C6095iILLII.this.OooO00o); } finally { C6095iILLII.this.f17516OooO00o.unlock(); this.f17518OooO00o.set(false); } } } /* renamed from: com.pd.sdk.iILL丨II$OooO0O0 */ public class OooO0O0 extends AbstractC9508LiLi<T> { public final /* synthetic */ IIlIIiI1 OooO00o; /* renamed from: OooO00o reason: collision with other field name */ public final /* synthetic */ AbstractC9508LiLi f17520OooO00o; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public OooO0O0(AbstractC9508LiLi r2, AbstractC9508LiLi r3, IIlIIiI1 iIlIIiI1) { super(r2); this.f17520OooO00o = r3; this.OooO00o = iIlIIiI1; } public void OooO0OO() { C6095iILLII.this.f17516OooO00o.lock(); try { if (C6095iILLII.this.OooO00o == this.OooO00o) { if (C6095iILLII.this.f17514OooO00o instanceof LlIiLii) { ((LlIiLii) C6095iILLII.this.f17514OooO00o).unsubscribe(); } C6095iILLII.this.OooO00o.unsubscribe(); C6095iILLII.this.OooO00o = new IIlIIiI1(); C6095iILLII.this.f17515OooO00o.set(0); } } finally { C6095iILLII.this.f17516OooO00o.unlock(); } } @Override // com.p118pd.sdk.AbstractC5477Il11 public void onCompleted() { OooO0OO(); this.f17520OooO00o.onCompleted(); } @Override // com.p118pd.sdk.AbstractC5477Il11 public void onError(Throwable th) { OooO0OO(); this.f17520OooO00o.onError(th); } @Override // com.p118pd.sdk.AbstractC5477Il11 public void onNext(T t) { this.f17520OooO00o.onNext(t); } } /* renamed from: com.pd.sdk.iILL丨II$OooO0OO */ public class OooO0OO implements liii1l { public final /* synthetic */ IIlIIiI1 OooO00o; public OooO0OO(IIlIIiI1 iIlIIiI1) { this.OooO00o = iIlIIiI1; } @Override // com.p118pd.sdk.liii1l public void call() { C6095iILLII.this.f17516OooO00o.lock(); try { if (C6095iILLII.this.OooO00o == this.OooO00o && C6095iILLII.this.f17515OooO00o.decrementAndGet() == 0) { if (C6095iILLII.this.f17514OooO00o instanceof LlIiLii) { ((LlIiLii) C6095iILLII.this.f17514OooO00o).unsubscribe(); } C6095iILLII.this.OooO00o.unsubscribe(); C6095iILLII.this.OooO00o = new IIlIIiI1(); } } finally { C6095iILLII.this.f17516OooO00o.unlock(); } } } public C6095iILLII(i11iiILl<? extends T> i11iiill) { this.f17514OooO00o = i11iiill; } /* renamed from: OooO00o */ public void call(AbstractC9508LiLi<? super T> r3) { this.f17516OooO00o.lock(); if (this.f17515OooO00o.incrementAndGet() == 1) { AtomicBoolean atomicBoolean = new AtomicBoolean(true); try { this.f17514OooO00o.OooO0O0((AbstractC6153iL1l<? super LlIiLii>) OooO00o(r3, atomicBoolean)); } finally { if (atomicBoolean.get()) { this.f17516OooO00o.unlock(); } } } else { try { OooO00o(r3, this.OooO00o); } finally { this.f17516OooO00o.unlock(); } } } private AbstractC6153iL1l<LlIiLii> OooO00o(AbstractC9508LiLi<? super T> r2, AtomicBoolean atomicBoolean) { return new OooO00o(r2, atomicBoolean); } public void OooO00o(AbstractC9508LiLi<? super T> r3, IIlIIiI1 iIlIIiI1) { r3.add(OooO00o(iIlIIiI1)); this.f17514OooO00o.OooO0O0((AbstractC9508LiLi<? super Object>) new OooO0O0(r3, r3, iIlIIiI1)); } private LlIiLii OooO00o(IIlIIiI1 iIlIIiI1) { return C9638ill.OooO00o(new OooO0OO(iIlIIiI1)); } }
[ "593746220@qq.com" ]
593746220@qq.com
0aecf688ede06250cebe61a9fabdd44a538ac492
a2054e8dbec716aec5af2e0269128c19be9551c1
/Character_Equipment/src/net/sf/anathema/character/equipment/impl/character/model/stats/modification/HardnessModification.java
9c7a2606a7441cd921125819d01404a8c9b074c9
[]
no_license
oxford-fumble/anathema
a2cf9e1429fa875718460e6017119c4588f12ffe
2ba9b506297e1e7a413dee7bfdbcd6af80a6d9ec
refs/heads/master
2021-01-18T05:08:33.046966
2013-06-28T14:50:45
2013-06-28T14:50:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
412
java
package net.sf.anathema.character.equipment.impl.character.model.stats.modification; public class HardnessModification implements StatsModification { private final StatModifier modifier; public HardnessModification(StatModifier modifier) { this.modifier = modifier; } @Override public int getModifiedValue(int original) { int bonus = modifier.calculate(); return original + bonus; } }
[ "sandra.sieroux@googlemail.com" ]
sandra.sieroux@googlemail.com
6f55e09f7750fb74e975e441485cf35816212b12
de3eb812d5d91cbc5b81e852fc32e25e8dcca05f
/branches/crux/4.1.0/Crux/src/core/org/cruxframework/crux/core/client/db/KeyRangeFactory.java
f5b08d973a97ed127208782dc8bb734a5b9a41d5
[]
no_license
svn2github/crux-framework
7dd52a951587d4635112987301c88db23325c427
58bcb4821752b405a209cfc21fb83e3bf528727b
refs/heads/master
2016-09-06T13:33:41.975737
2015-01-22T08:03:25
2015-01-22T08:03:25
13,135,398
0
0
null
null
null
null
UTF-8
Java
false
false
2,106
java
/* * Copyright 2013 cruxframework.org. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package org.cruxframework.crux.core.client.db; /** * A factory for KeyRange objects * @author Thiago da Rosa de Bustamante * */ public interface KeyRangeFactory<K> { /** * Create a KeyRange including only the given Key * @param key * @return */ KeyRange<K> only(K key); /** * Create a KeyRange including all keys greater than the given key * @param key * @param open if true, does not include the lower bound * @return */ KeyRange<K> lowerBound(K key, boolean open); /** * Create a KeyRange including all keys greater than the given key * @param key * @return */ KeyRange<K> lowerBound(K key); /** * Create a KeyRange including all keys smaller than the given key * @param key * @param open if true, does not include the upper bound * @return */ KeyRange<K> upperBound(K key, boolean open); /** * Create a KeyRange including all keys smaller than the given key * @param key * @return */ KeyRange<K> upperBound(K key); /** * Create a KeyRange including all keys between upper and lower bound keys * @param startKey * @param endKey * @param startOpen if true, does not include the lower bound * @param endOpen if true, does not include the upper bound * @return */ KeyRange<K> bound(K startKey, K endKey, boolean startOpen, boolean endOpen); /** * Create a KeyRange including all keys between upper and lower bound keys * @param startKey * @param endKey * @return */ KeyRange<K> bound(K startKey, K endKey); }
[ "thiago@cruxframework.org@a5d2bbaa-053c-11de-b17c-0f1ef23b492c" ]
thiago@cruxframework.org@a5d2bbaa-053c-11de-b17c-0f1ef23b492c
692d9a62a7b9b0e6af5a7b58d87ccd3f19262d2f
b12218b44655c734ef72edbfbd157a774c5754ad
/aplanmis-common/src/main/java/com/augurit/aplanmis/common/mapper/AeaItemGuideSpecialsMapper.java
a24b89b62ec8fffeb1e2ccd58aa91422cda97fb3
[]
no_license
laughing1990/aplan-fork
590a0ebf520e75d1430d5ed862979f6757a6a9e8
df27f74c7421982639169cb45a814c9723d9ead9
refs/heads/master
2021-05-21T16:27:32.373425
2019-12-19T09:26:31
2019-12-19T09:26:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
982
java
package com.augurit.aplanmis.common.mapper; import com.augurit.aplanmis.common.domain.AeaItemGuideSpecials; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.List; /** * 特殊程序-Mapper数据与持久化接口类 */ @Mapper @Repository public interface AeaItemGuideSpecialsMapper { void insertAeaItemGuideSpecials(AeaItemGuideSpecials aeaItemGuideSpecials); void updateAeaItemGuideSpecials(AeaItemGuideSpecials aeaItemGuideSpecials) ; void deleteAeaItemGuideSpecials(@Param("id") String id) ; List<AeaItemGuideSpecials> listAeaItemGuideSpecials(AeaItemGuideSpecials aeaItemGuideSpecials) ; AeaItemGuideSpecials getAeaItemGuideSpecialsById(@Param("id") String id) ; void batchDeleteGuideSpecialsByItemVerId(@Param("itemVerId") String itemVerId, @Param("rootOrgId")String rootOrgId); }
[ "xiongyb@augurit.com" ]
xiongyb@augurit.com
a719c395d6b9c103097094c0646957722b09e5c7
6c5a7a2c958939f4bbfa05ac2bb2d5c1a00af4d4
/src/com/cmos/ipa/service/video_surveillance/motionDetectionV1/SetEnabledResponse.java
92a1133e377bce07cb11aa12827cf5c402405739
[]
no_license
android36524/IPA
a7c9c26ad0add9d459e993753e405520d8c750e4
0bff9c67344092bebdb42595f445de25f9e92c7e
refs/heads/master
2021-01-12T05:11:27.093674
2016-09-01T01:25:57
2016-09-01T01:25:57
null
0
0
null
null
null
null
GB18030
Java
false
false
1,420
java
package com.cmos.ipa.service.video_surveillance.motionDetectionV1; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>anonymous complex type的 Java 类。 * * <p>以下模式片段指定包含在此类中的预期内容。 * * <pre> * &lt;complexType&gt; * &lt;complexContent&gt; * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; * &lt;sequence&gt; * &lt;element name="asyncId" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/&gt; * &lt;/sequence&gt; * &lt;/restriction&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "asyncId" }) @XmlRootElement(name = "SetEnabledResponse") public class SetEnabledResponse { protected Integer asyncId; /** * 获取asyncId属性的值。 * * @return * possible object is * {@link Integer } * */ public Integer getAsyncId() { return asyncId; } /** * 设置asyncId属性的值。 * * @param value * allowed object is * {@link Integer } * */ public void setAsyncId(Integer value) { this.asyncId = value; } }
[ "wei.zhu@winphone.us" ]
wei.zhu@winphone.us
2910ecc15406b1427122471a3564971222e97579
ddb57ebc272329f50d74435fde65532aab68da8d
/88_快速完成缓存服务接收数据变更消息以及调用商品服务接口的代码编写/eshop-cache-ha/src/main/java/org/github/caishijun/eshop/cache/ha/service/impl/UserInfoServiceImpl.java
3c98491fa00cbb9e802323d771332e28a611df51
[]
no_license
MelodyJia/eshop-cache-test-001
6ed441f6a48007b324aa82e193b4ca96f46cdc24
dd393680698938bfcdf43fed7f1711a5af100914
refs/heads/master
2020-04-17T06:27:32.512421
2019-01-17T20:54:55
2019-01-17T20:54:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
593
java
package org.github.caishijun.eshop.cache.ha.service.impl; import org.github.caishijun.eshop.cache.ha.mapper.UserInfoMapper; import org.github.caishijun.eshop.cache.ha.model.UserInfo; import org.github.caishijun.eshop.cache.ha.service.UserInfoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class UserInfoServiceImpl implements UserInfoService { @Autowired private UserInfoMapper userInfoMapper; public UserInfo selectById(Integer id){ return userInfoMapper.selectById(id); } }
[ "1990908685@qq.com" ]
1990908685@qq.com
6da77ba4603b869542a01eeb49d6e644eb6e963d
4a2ee23161f72ff0fc5f7f2c5b66e7d85bb84ace
/src/main/java/p455w0rd/ae2wtlib/api/client/gui/widgets/GuiItemIconButton.java
85e0a82167ea7abaaeef27acb9ba22b9f30585fc
[ "MIT" ]
permissive
BrockWS/AE2WirelessTerminalLibrary
b8d12586d7985d08ef85aa31ba383dd4efb106c9
dd9b274612c82f9546ae7316c45e92d362a51ac0
refs/heads/master
2020-04-18T19:15:28.416935
2019-06-19T20:28:43
2019-06-19T20:28:43
167,707,750
0
0
MIT
2019-01-26T16:00:53
2019-01-26T16:00:53
null
UTF-8
Java
false
false
2,994
java
package p455w0rd.ae2wtlib.api.client.gui.widgets; import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL12; import appeng.client.gui.widgets.ITooltip; import appeng.core.AppEng; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.renderer.RenderHelper; import net.minecraft.client.renderer.RenderItem; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; /** * @author p455w0rd * */ public class GuiItemIconButton extends GuiButton implements ITooltip { private final RenderItem itemRenderer; private final String message; private int hideEdge = 0; private int myIcon = -1; private ItemStack myItem = ItemStack.EMPTY; public GuiItemIconButton(final int xIn, final int yIn, final int ico, final String message, final RenderItem ir) { super(0, 0, 16, ""); x = xIn; y = yIn; width = 22; height = 22; myIcon = ico; this.message = message; itemRenderer = ir; } public GuiItemIconButton(final int xIn, final int yIn, final ItemStack ico, final String message, final RenderItem ir) { super(0, 0, 16, ""); x = xIn; y = yIn; width = 22; height = 22; myItem = ico; this.message = message; itemRenderer = ir; } @Override public void drawButton(final Minecraft minecraft, final int mouseX, final int mouseY, float partial) { if (visible) { GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f); minecraft.renderEngine.bindTexture(new ResourceLocation(AppEng.MOD_ID, "textures/guis/states.png")); hovered = x >= x && y >= y && x < x + width && y < y + height; int uv_x = (hideEdge > 0 ? 11 : 13); final int offsetX = hideEdge > 0 ? 1 : 0; //this.drawTexturedModalRect( this.xPosition, this.yPosition, uv_x * 16, 0, 25, 22 ); if (myIcon >= 0) { final int uv_y = (int) Math.floor(myIcon / 16); uv_x = myIcon - uv_y * 16; this.drawTexturedModalRect(offsetX + x + 3, y + 6, uv_x * 16, uv_y * 16, 16, 16); } mouseDragged(minecraft, x, y); if (!myItem.isEmpty()) { zLevel = 100.0F; itemRenderer.zLevel = 100.0F; GL11.glEnable(GL11.GL_LIGHTING); GL11.glEnable(GL12.GL_RESCALE_NORMAL); RenderHelper.enableGUIStandardItemLighting(); //this.itemRenderer.renderItemAndEffectIntoGUI( fontrenderer, minecraft.renderEngine, this.myItem, offsetX + this.xPosition + 3, this.yPosition + 6 ); itemRenderer.renderItemIntoGUI(myItem, offsetX + x + 3, y + 6); GL11.glDisable(GL11.GL_LIGHTING); itemRenderer.zLevel = 0.0F; zLevel = 0.0F; } } } @Override public String getMessage() { return message; } @Override public int xPos() { return x; } @Override public int yPos() { return y; } @Override public int getWidth() { return 22; } @Override public int getHeight() { return 22; } @Override public boolean isVisible() { return visible; } public int getHideEdge() { return hideEdge; } public void setHideEdge(final int hideEdge) { this.hideEdge = hideEdge; } }
[ "p455w0rd@gmail.com" ]
p455w0rd@gmail.com
37c8805a1290dfc75d195f28cd293dc12a24b215
e27942cce249f7d62b7dc8c9b86cd40391c1ddd4
/modules/adwords_axis/src/main/java/com/google/api/ads/adwords/axis/v201705/cm/PolicyTopicConstraintPolicyTopicConstraintType.java
d9e3e4d989d2e9a5955695c8a61af6e519f91339
[ "Apache-2.0" ]
permissive
mo4ss/googleads-java-lib
b4b6178747d25d16ae6aa0c80d80ee18a2dfe01a
efaa9c3bd8a46a3ed4b00963dc9760c6dd8bd641
refs/heads/master
2022-12-05T00:30:56.740813
2022-11-16T10:47:15
2022-11-16T10:47:15
108,132,394
0
0
Apache-2.0
2022-11-16T10:47:16
2017-10-24T13:41:43
Java
UTF-8
Java
false
false
3,968
java
// Copyright 2017 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /** * PolicyTopicConstraintPolicyTopicConstraintType.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.adwords.axis.v201705.cm; public class PolicyTopicConstraintPolicyTopicConstraintType implements java.io.Serializable { private java.lang.String _value_; private static java.util.HashMap _table_ = new java.util.HashMap(); // Constructor protected PolicyTopicConstraintPolicyTopicConstraintType(java.lang.String value) { _value_ = value; _table_.put(_value_,this); } public static final java.lang.String _UNKNOWN = "UNKNOWN"; public static final java.lang.String _COUNTRY = "COUNTRY"; public static final java.lang.String _RESELLER = "RESELLER"; public static final PolicyTopicConstraintPolicyTopicConstraintType UNKNOWN = new PolicyTopicConstraintPolicyTopicConstraintType(_UNKNOWN); public static final PolicyTopicConstraintPolicyTopicConstraintType COUNTRY = new PolicyTopicConstraintPolicyTopicConstraintType(_COUNTRY); public static final PolicyTopicConstraintPolicyTopicConstraintType RESELLER = new PolicyTopicConstraintPolicyTopicConstraintType(_RESELLER); public java.lang.String getValue() { return _value_;} public static PolicyTopicConstraintPolicyTopicConstraintType fromValue(java.lang.String value) throws java.lang.IllegalArgumentException { PolicyTopicConstraintPolicyTopicConstraintType enumeration = (PolicyTopicConstraintPolicyTopicConstraintType) _table_.get(value); if (enumeration==null) throw new java.lang.IllegalArgumentException(); return enumeration; } public static PolicyTopicConstraintPolicyTopicConstraintType fromString(java.lang.String value) throws java.lang.IllegalArgumentException { return fromValue(value); } public boolean equals(java.lang.Object obj) {return (obj == this);} public int hashCode() { return toString().hashCode();} public java.lang.String toString() { return _value_;} public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);} public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.EnumSerializer( _javaType, _xmlType); } public static org.apache.axis.encoding.Deserializer getDeserializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.EnumDeserializer( _javaType, _xmlType); } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(PolicyTopicConstraintPolicyTopicConstraintType.class); static { typeDesc.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201705", "PolicyTopicConstraint.PolicyTopicConstraintType")); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } }
[ "jradcliff@users.noreply.github.com" ]
jradcliff@users.noreply.github.com
bbd906f74cd2bbfdda0c14a1c1d81fc8a18f2e1d
c6de2274fc8e80fcb4fb273be91f609d8bd536b8
/src/main/java/org/fao/fenix/web/modules/ipc/common/vo/ModuleVO.java
cf1d1b214edeaf183bf302d993782252f78b52cd
[]
no_license
FENIX-Platform-Projects/amis-statistics-legacy
d583f7db5e07ce4d8b0afcf5795291422d31754d
b51ff91efab51113e03b2e1cf21eb70f0ca24ce1
refs/heads/master
2021-06-10T05:12:20.671404
2017-01-31T12:56:19
2017-01-31T12:57:16
63,598,791
0
0
null
null
null
null
UTF-8
Java
false
false
1,159
java
package org.fao.fenix.web.modules.ipc.common.vo; import java.util.ArrayList; import java.util.List; import com.google.gwt.user.client.rpc.IsSerializable; public class ModuleVO implements IsSerializable { private Integer level; private List<FreeTextVO> freeTexts; private List<DropDownVO> dropDowns; public ModuleVO() { freeTexts = new ArrayList<FreeTextVO>(); dropDowns = new ArrayList<DropDownVO>(); } public Integer getLevel() { return level; } public void setLevel(Integer level) { this.level = level; } public List<FreeTextVO> getFreeTexts() { return freeTexts; } public void setFreeTexts(List<FreeTextVO> freeTexts) { this.freeTexts = freeTexts; } public List<DropDownVO> getDropDowns() { return dropDowns; } public void setDropDowns(List<DropDownVO> dropDowns) { this.dropDowns = dropDowns; } public void addFreeTextVO(FreeTextVO ft) { if (this.freeTexts == null) this.freeTexts = new ArrayList<FreeTextVO>(); this.freeTexts.add(ft); } public void addDropDownVO(DropDownVO dd) { if (this.dropDowns == null) this.dropDowns = new ArrayList<DropDownVO>(); this.dropDowns.add(dd); } }
[ "fabrizio.castelli@fao.org" ]
fabrizio.castelli@fao.org
855ba9f28db4fce82b88eadce8ad9c434b1290be
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-14263-119-17-PESA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/container/servlet/filters/internal/SetCharacterEncodingFilter_ESTest_scaffolding.java
46fe48381aa91b36d07b3722eecbb17f1b96c554
[]
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
475
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sat Apr 04 04:02:28 UTC 2020 */ package org.xwiki.container.servlet.filters.internal; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class SetCharacterEncodingFilter_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
db63e619cadde223bdc79d8016b55b3e8aa55347
ca030864a3a1c24be6b9d1802c2353da4ca0d441
/classes9.dex_source_from_JADX/com/facebook/video/videohome/prefetching/VideoHomePrefetchingModule.java
91de6a2c23f30c9a99a4b17eaa77d96dfa386c66
[]
no_license
pxson001/facebook-app
87aa51e29195eeaae69adeb30219547f83a5b7b1
640630f078980f9818049625ebc42569c67c69f7
refs/heads/master
2020-04-07T20:36:45.758523
2018-03-07T09:04:57
2018-03-07T09:04:57
124,208,458
4
0
null
null
null
null
UTF-8
Java
false
false
734
java
package com.facebook.video.videohome.prefetching; import com.facebook.inject.AbstractLibraryModule; import com.facebook.inject.BinderImpl; import com.facebook.inject.InjectorModule; import com.facebook.inject.ProviderMethod; import com.facebook.prefs.shared.FbSharedPreferences; @InjectorModule /* compiled from: shows a toast when prefetching starts/finishes */ public class VideoHomePrefetchingModule extends AbstractLibraryModule { protected void configure() { BinderImpl binderImpl = this.mBinder; } @ProviderMethod @VideoHomePrefetchInterval public static String m3126a(FbSharedPreferences fbSharedPreferences) { return fbSharedPreferences.a(VideoHomePrefetchPrefKeys.f3282b, "0"); } }
[ "son.pham@jmango360.com" ]
son.pham@jmango360.com
8a453c4a13013d5fa0931a9b679169e93186c369
cd15447d38629d1d4e6fc685f324acd0df8e2a3a
/dsajg6e/src/main/java/learn/dsajg6e/ch09priorityqueues/exer/R0905FastUnsortedPriorityQueue.java
4404796d41d518628934f08cf2953abe2b1d0887
[]
no_license
dpopkov/learn
f17a8fd578b45d7057f643c131334b2e39846da1
2f811fb37415cbd5a051bfe569dcace83330511a
refs/heads/master
2022-12-07T11:17:50.492526
2021-02-23T16:58:31
2021-02-23T16:58:31
117,227,906
1
0
null
2022-11-16T12:22:17
2018-01-12T10:29:38
Java
UTF-8
Java
false
false
1,165
java
package learn.dsajg6e.ch09priorityqueues.exer; import learn.dsajg6e.ch07list.positional.Position; import learn.dsajg6e.ch09priorityqueues.Entry; import learn.dsajg6e.ch09priorityqueues.PQEntry; import learn.dsajg6e.ch09priorityqueues.UnsortedPriorityQueue; public class R0905FastUnsortedPriorityQueue<K, V> extends UnsortedPriorityQueue<K, V> { private Position<Entry<K, V>> minPos; @Override public Entry<K, V> insert(K key, V value) throws IllegalArgumentException { checkKey(key); Entry<K, V> newest = new PQEntry<>(key, value); if (isEmpty()) { minPos = list.addLast(newest); } else if (compare(newest, minPos.getElement()) < 0) { minPos = list.addLast(newest); } else { list.addLast(newest); } return newest; } @Override public Entry<K, V> min() { if (isEmpty()) { return null; } return minPos.getElement(); } @Override public Entry<K, V> removeMin() { Entry<K, V> result = minPos.getElement(); list.remove(minPos); minPos = findMin(); return result; } }
[ "pkvdenis@gmail.com" ]
pkvdenis@gmail.com
f300595c6677f80ab02c1076929293fc12e45c64
0af8b92686a58eb0b64e319b22411432aca7a8f3
/single-large-project/src/test/java/org/gradle/test/performancenull_120/Testnull_11922.java
6fe546fc213253413f43ed18e011bf4e3e95a9f2
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
308
java
package org.gradle.test.performancenull_120; import static org.junit.Assert.*; public class Testnull_11922 { private final Productionnull_11922 production = new Productionnull_11922("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
d1ea881f6dafe9c74d87e8c7970028f7a9dd8085
eb1dec8dffe0a459f229fa190d626b265f8df4f5
/src/test/java/racecondition/studio/RaceConditionTestSuite.java
b9f7fafe41c5cb125d5d95e8f8222ca1664fe794
[]
no_license
caoxxoac/CSE231
03770d2f556111e58475efa290fcc29312bd15f2
9cb56071653547dfc2e8ce10aa9e86be7c4a4c14
refs/heads/master
2022-01-19T19:30:00.594111
2019-07-22T08:43:24
2019-07-22T08:43:24
198,167,964
0
0
null
null
null
null
UTF-8
Java
false
false
1,643
java
/******************************************************************************* * Copyright (C) 2016-2017 Dennis Cosgrove * * 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 racecondition.studio; import org.junit.runner.RunWith; import org.junit.runners.Suite; import racecondition.studio.mergesort.SuspectMergeSortTest; import racecondition.studio.wordscore.SuspectWordScoreTest; @RunWith(Suite.class) @Suite.SuiteClasses({ SuspectWordScoreTest.class, SuspectMergeSortTest.class }) public class RaceConditionTestSuite { }
[ "xcao22@wustl.edu" ]
xcao22@wustl.edu
66ddf7fb1c0c34c50b2b74e799e7a22777365fdb
0529524c95045b3232f6553d18a7fef5a059545e
/app/src/androidTest/java/TestCase_com_et_reader_activities_2102747288.java
e44e231765b00a7c08cb224ee4435fbc126efb5e
[]
no_license
sunxiaobiu/BasicUnitAndroidTest
432aa3e10f6a1ef5d674f269db50e2f1faad2096
fed24f163d21408ef88588b8eaf7ce60d1809931
refs/heads/main
2023-02-11T21:02:03.784493
2021-01-03T10:07:07
2021-01-03T10:07:07
322,577,379
0
0
null
null
null
null
UTF-8
Java
false
false
288
java
import androidx.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; @RunWith(AndroidJUnit4.class) public class TestCase_com_et_reader_activities_2102747288 { @Test public void testCase() throws Exception { // $FF: Couldn't be decompiled } }
[ "sunxiaobiu@gmail.com" ]
sunxiaobiu@gmail.com
f6499e36781c6f4e92b8012bf93f8445be5ac13e
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/apache--kafka/d0e436c471ba4122ddcc0f7a1624546f97c4a517/after/TaskInfo.java
914b8d32549d00d6f40dfe4c3a2e9b8306d49580
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
1,821
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.kafka.connect.runtime.rest.entities; import com.fasterxml.jackson.annotation.JsonProperty; import org.apache.kafka.connect.util.ConnectorTaskId; import java.util.Map; import java.util.Objects; public class TaskInfo { private final ConnectorTaskId id; private final Map<String, String> config; public TaskInfo(ConnectorTaskId id, Map<String, String> config) { this.id = id; this.config = config; } @JsonProperty public ConnectorTaskId id() { return id; } @JsonProperty public Map<String, String> config() { return config; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; TaskInfo taskInfo = (TaskInfo) o; return Objects.equals(id, taskInfo.id) && Objects.equals(config, taskInfo.config); } @Override public int hashCode() { return Objects.hash(id, config); } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
bf65b787ff39ae39c925200df8db4162f541ced2
5785d62f471705e9953314a4b635e1e46ba4f9ee
/masterSpringMvc-9/src/test/java/com/example/demo/search/SearchControolerMockTest.java
226a191f644c4cabb40dc50540cc8de64cf8d66a
[]
no_license
HymanLiuTS/JavaMVCTS
3912c0eb3cd14312ffbf3fc9a48de37221950c82
e94d74a79d3994d36ffb5b1b711e133b9365d30b
refs/heads/master
2020-04-17T17:26:56.102147
2019-03-12T03:27:15
2019-03-12T03:27:15
166,782,404
0
0
null
null
null
null
UTF-8
Java
false
false
2,802
java
package com.example.demo.search; import static org.junit.Assert.*; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.model; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.redirectedUrl; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import java.util.ArrayList; import java.util.List; import org.assertj.core.util.Arrays; import org.junit.Before; import org.junit.Test; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.setup.MockMvcBuilders; import org.springframework.web.context.WebApplicationContext; import com.example.demo.domain.Tweet; public class SearchControolerMockTest { @Autowired private WebApplicationContext wac; @Mock private SearchService searchService; @InjectMocks private SearchControoler searchContrller; private MockMvc mockMvc; @Before public void setUp() throws Exception { MockitoAnnotations.initMocks(this); this.mockMvc = MockMvcBuilders.standaloneSetup(searchContrller).setRemoveSemicolonContent(false).build(); //mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build(); } @Test public void should_search() throws Exception { List<Tweet> result = new ArrayList<Tweet>(); for (int i = 1; i <= 10; i++) { Tweet tweet = new Tweet(); tweet.setId(i); tweet.setName("Tweet" + i); tweet.setAge(10 + i); result.add(tweet); } List<String> keywords=new ArrayList<String>(){ { this.add("java"); } }; //定义调用服务接口时的返回值 when(searchService.search("popular", keywords)).thenReturn(result); //检查上面定义的返回值是否一致 this.mockMvc.perform(get("/api/search/popular;keywords=java")) .andDo(print()) .andExpect(status().isOk()) .andExpect(content().json("[{\"name\":\"Tweet1\",\"age\":11},{\"name\":\"Tweet2\",\"age\":12},{\"name\":\"Tweet3\",\"age\":13},{\"name\":\"Tweet4\",\"age\":14},{\"name\":\"Tweet5\",\"age\":15},{\"name\":\"Tweet6\",\"age\":16},{\"name\":\"Tweet7\",\"age\":17},{\"name\":\"Tweet8\",\"age\":18},{\"name\":\"Tweet9\",\"age\":19},{\"name\":\"Tweet10\",\"age\":20}]")); verify(searchService,times(1)).search("popular", keywords); } }
[ "879651072@qq.com" ]
879651072@qq.com
2ac289db6e977d631430ccda1c7fdf5fd1dffabf
29e184b262bb73e7301fca6b8069c873e910111c
/src/main/java/com/example/jaxb/fpml/legal/ExistingCreditSupportAnnex.java
a1d15d37a4b8924fd96c2eaeed91a197cb79cb2c
[]
no_license
oliversalmon/fpml
6c0578d8b2460e3976033fa9aea4254341aba65b
cecf5321e750bbb88c14e9bd75ee341acdccc444
refs/heads/master
2020-04-03T17:41:00.682605
2018-10-30T20:58:56
2018-10-30T20:58:56
155,455,414
0
0
null
null
null
null
UTF-8
Java
false
false
5,304
java
package com.example.jaxb.fpml.legal; import java.util.ArrayList; import java.util.List; import javax.annotation.Generated; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.datatype.XMLGregorianCalendar; /** * The reference to the existing Credit Support Annex (CSA). Used as part of the Standard CSA document. * * <p>Java class for ExistingCreditSupportAnnex complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="ExistingCreditSupportAnnex"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="agreementDate" type="{http://www.w3.org/2001/XMLSchema}date"/> * &lt;element name="documentType" type="{http://www.fpml.org/FpML-5/legal}LegalDocumentType"/> * &lt;element name="partyDocumentIdentifier" type="{http://www.fpml.org/FpML-5/legal}PartyDocumentIdentifier" maxOccurs="unbounded" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ExistingCreditSupportAnnex", namespace = "http://www.fpml.org/FpML-5/legal", propOrder = { "agreementDate", "documentType", "partyDocumentIdentifier" }) @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2018-10-30T08:17:37+00:00", comments = "JAXB RI v2.2.8-b130911.1802") public class ExistingCreditSupportAnnex { @XmlElement(namespace = "http://www.fpml.org/FpML-5/legal", required = true) @XmlSchemaType(name = "date") @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2018-10-30T08:17:37+00:00", comments = "JAXB RI v2.2.8-b130911.1802") protected XMLGregorianCalendar agreementDate; @XmlElement(namespace = "http://www.fpml.org/FpML-5/legal", required = true) @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2018-10-30T08:17:37+00:00", comments = "JAXB RI v2.2.8-b130911.1802") protected LegalDocumentType documentType; @XmlElement(namespace = "http://www.fpml.org/FpML-5/legal") @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2018-10-30T08:17:37+00:00", comments = "JAXB RI v2.2.8-b130911.1802") protected List<PartyDocumentIdentifier> partyDocumentIdentifier; /** * Gets the value of the agreementDate property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2018-10-30T08:17:37+00:00", comments = "JAXB RI v2.2.8-b130911.1802") public XMLGregorianCalendar getAgreementDate() { return agreementDate; } /** * Sets the value of the agreementDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2018-10-30T08:17:37+00:00", comments = "JAXB RI v2.2.8-b130911.1802") public void setAgreementDate(XMLGregorianCalendar value) { this.agreementDate = value; } /** * Gets the value of the documentType property. * * @return * possible object is * {@link LegalDocumentType } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2018-10-30T08:17:37+00:00", comments = "JAXB RI v2.2.8-b130911.1802") public LegalDocumentType getDocumentType() { return documentType; } /** * Sets the value of the documentType property. * * @param value * allowed object is * {@link LegalDocumentType } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2018-10-30T08:17:37+00:00", comments = "JAXB RI v2.2.8-b130911.1802") public void setDocumentType(LegalDocumentType value) { this.documentType = value; } /** * Gets the value of the partyDocumentIdentifier property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the partyDocumentIdentifier property. * * <p> * For example, to add a new item, do as follows: * <pre> * getPartyDocumentIdentifier().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link PartyDocumentIdentifier } * * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2018-10-30T08:17:37+00:00", comments = "JAXB RI v2.2.8-b130911.1802") public List<PartyDocumentIdentifier> getPartyDocumentIdentifier() { if (partyDocumentIdentifier == null) { partyDocumentIdentifier = new ArrayList<PartyDocumentIdentifier>(); } return this.partyDocumentIdentifier; } }
[ "oliver.salmon@gmail.com" ]
oliver.salmon@gmail.com
8df3fa37055bec1a186a6ebe622dfb5e9e187da4
0d7220b4a680f220e04ecad46d51b6532d90bf64
/dev/nuker/pyro/f2R.java
42aa99efdf459cb782a59f45e31dad5d7be3d57e
[]
no_license
HelpMopDog/PyroClient-Deobf
d2816bd39de7a792748e52e7b1de611b9fe07473
23cdef6fed8ae19025757c076f2147fbb9816802
refs/heads/main
2023-08-28T01:57:25.423834
2021-10-23T03:16:53
2021-10-23T03:16:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,593
java
/** * Obfuscator: Binsecure Decompiler: FernFlower * De-obfuscated by Gopro336 */ package dev.nuker.pyro; import com.mojang.brigadier.CommandDispatcher; import com.mojang.brigadier.arguments.ArgumentType; import com.mojang.brigadier.arguments.StringArgumentType; import com.mojang.brigadier.builder.ArgumentBuilder; import com.mojang.brigadier.builder.LiteralArgumentBuilder; import com.mojang.brigadier.suggestion.SuggestionProvider; import com.mojang.brigadier.suggestion.SuggestionsBuilder; import java.util.Arrays; import java.util.Collection; import java.util.Iterator; import java.util.Optional; import java.util.function.Predicate; import kotlin.TypeCastException; import kotlin.jvm.JvmStatic; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.StringCompanionObject; import kotlin.text.StringsKt; import org.jetbrains.annotations.NotNull; public class f2R { // $FF: renamed from: c dev.nuker.pyro.f2R public static f2R field_2000; // $FF: renamed from: c (java.lang.String) java.util.Optional public Optional method_3075(String var1) { return class_37.field_2633.method_3981().stream().filter((Predicate)(new f2P(var1))).findFirst(); } static { f2R var0 = new f2R(); field_2000 = var0; } // $FF: renamed from: c (dev.nuker.pyro.f2R, com.mojang.brigadier.suggestion.SuggestionsBuilder, int, java.lang.String[], java.util.Collection) void public static void method_3076(f2R var0, SuggestionsBuilder var1, int var2, String[] var3, Collection var4) { var0.method_3077(var1, var2, var3, var4); } // $FF: renamed from: c (com.mojang.brigadier.suggestion.SuggestionsBuilder, int, java.lang.String[], java.util.Collection) void public void method_3077(SuggestionsBuilder var1, int var2, String[] var3, Collection var4) { if (var3.length <= var2) { } String var5 = "" + '[' + var2 + "] "; int var6 = 0; for(int var7 = var2; var6 < var7; ++var6) { } Iterator var23 = var4.iterator(); while(true) { while(var23.hasNext()) { f0w var22 = (f0w)var23.next(); if (var22 instanceof f0z) { boolean var8 = false; Enum[] var11 = (Enum[])((Enum)((f0z)var22).method_3334().c()).getClass().getEnumConstants(); int var12 = var11.length; for(int var10 = 0; var10 < var12; ++var10) { Enum var9 = var11[var10]; StringCompanionObject var14 = StringCompanionObject.INSTANCE; String var15 = "[%s]"; Object[] var10000 = new Object[1]; String var16 = var9.name(); byte var20 = 0; Object[] var19 = var10000; Object[] var18 = var10000; boolean var17 = false; if (var16 == null) { throw new TypeCastException("null cannot be cast to non-null type java.lang.String"); } String var21 = var16.toLowerCase(); var19[var20] = var21; var17 = false; String var13 = String.format(var15, Arrays.copyOf(var18, var18.length)); if (StringsKt.startsWith$default(var22.method_3315() + var13, var3[var2], false, 2, (Object)null) && StringsKt.startsWith$default(var3[var2], var22.method_3315(), false, 2, (Object)null)) { var8 = true; if (!Intrinsics.areEqual((Object)(var22.method_3315() + var13), (Object)var3[var2])) { var1.suggest(var5 + var22.method_3315() + var13); } } if (!var8 && StringsKt.startsWith$default(var22.method_3315(), var3[var2], false, 2, (Object)null)) { var1.suggest(var5 + var22.method_3315()); } } } else { if (var22 instanceof f0t) { this.method_3077(var1, var2 + 1, var3, (Collection)((f0t)var22).c()); } var1.suggest(var5 + var22.method_3315() + (var22 instanceof f0t ? "." : "")); } } return; } } // $FF: renamed from: c (com.mojang.brigadier.CommandDispatcher) void @JvmStatic public static void method_3078(@NotNull CommandDispatcher var0) { var0.register((LiteralArgumentBuilder)f3e.method_3215("setting").then((ArgumentBuilder)f3e.method_3216("setting", (ArgumentType)StringArgumentType.string()).suggests((SuggestionProvider)f2Q.field_1997))); } }
[ "63124240+Gopro336@users.noreply.github.com" ]
63124240+Gopro336@users.noreply.github.com
daea2ece051bf82e0f488a3c325956f389b76174
c173832fd576d45c875063a1a480672fbd59ca04
/seguridad/tags/release-1.0/modulos/apps/LOCALGIS-Workbench/src/main/java/com/vividsolutions/jump/workbench/ui/plugin/datastore/AddDatastoreLayerPlugIn.java
579ef620b652c204ffa8b2b964274a54065ad2bb
[]
no_license
jormaral/allocalgis
1308616b0f3ac8aa68fb0820a7dfa89d5a64d0e6
bd5b454b9c2e8ee24f70017ae597a32301364a54
refs/heads/master
2021-01-16T18:08:36.542315
2016-04-12T11:43:18
2016-04-12T11:43:18
50,914,723
0
0
null
2016-02-02T11:04:27
2016-02-02T11:04:27
null
UTF-8
Java
false
false
2,697
java
package com.vividsolutions.jump.workbench.ui.plugin.datastore; import com.vividsolutions.jump.I18N; import com.vividsolutions.jump.coordsys.CoordinateSystemRegistry; import com.vividsolutions.jump.io.datasource.DataSourceQuery; import com.vividsolutions.jump.task.DummyTaskMonitor; import com.vividsolutions.jump.task.TaskMonitor; import com.vividsolutions.jump.workbench.model.Layer; import com.vividsolutions.jump.workbench.model.Layerable; import com.vividsolutions.jump.workbench.plugin.PlugInContext; import com.vividsolutions.jump.workbench.ui.plugin.AddNewLayerPlugIn; import com.vividsolutions.jump.workbench.ui.plugin.OpenProjectPlugIn; public class AddDatastoreLayerPlugIn extends AbstractAddDatastoreLayerPlugIn { public boolean execute(final PlugInContext context) throws Exception { ((AddDatastoreLayerPanel) panel(context)).setCaching(true); return super.execute(context); } public String getName(){ return I18N.get("jump.workbench.ui.plugin.datastore.AddDatastoreLayerPlugIn.Add-Datastore-Layer"); } private Layer createLayer( final AddDatastoreLayerPanel panel, final PlugInContext context) throws Exception { Layer layer = new Layer( panel.getDatasetName(), context.getLayerManager().generateLayerFillColor(), AddNewLayerPlugIn.createBlankFeatureCollection(), context.getLayerManager()); DataStoreDataSource ds = new DataStoreDataSource( panel.getDatasetName(), panel.getGeometryAttributeName(), panel.getWhereClause(), panel.getConnectionDescriptor(), panel.isCaching(), context.getWorkbenchContext()); DataSourceQuery dsq = new DataSourceQuery(ds, null, panel.getDatasetName()); layer.setDataSourceQuery(dsq); OpenProjectPlugIn.load( layer, CoordinateSystemRegistry.instance(context.getWorkbenchContext().getBlackboard()), new DummyTaskMonitor()); return layer; } protected ConnectionPanel createPanel(PlugInContext context) { return new AddDatastoreLayerPanel(context.getWorkbenchContext()); } protected Layerable createLayerable(ConnectionPanel panel, TaskMonitor monitor, PlugInContext context) throws Exception { monitor.report(I18N.get("jump.workbench.ui.plugin.datastore.AddDatastoreLayerPlugIn.Creating-layer")); return createLayer((AddDatastoreLayerPanel) panel, context); } }
[ "jorge.martin@cenatic.es" ]
jorge.martin@cenatic.es
0694d19c67ce167426da20c52655f02588f5ce80
238d89f2c469b32986be45db254493a53f0d3a1b
/spring-boot-step-by-step/src/main/java/com/spring/boot/step/service/impl/AyUserRoleRelServiceImpl.java
da0c5a254da40afb8c8586e6231bd49a34a926ac
[ "Apache-2.0" ]
permissive
dongzl/spring-book-code
f4f11747f6cf16d89102ea36b1482e0d78c27d19
9afbea0e5aad155fc23a631f2d989687c40b4247
refs/heads/master
2022-12-24T18:06:35.409066
2020-12-12T04:35:35
2020-12-12T04:35:35
176,476,679
0
1
Apache-2.0
2022-12-16T04:59:18
2019-03-19T09:37:14
Java
UTF-8
Java
false
false
698
java
package com.spring.boot.step.service.impl; import com.spring.boot.step.model.AyUserRoleRel; import com.spring.boot.step.repository.AyUserRoleRelRepository; import com.spring.boot.step.service.IAyUserRoleRelService; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.List; /** * @author dongzonglei * @description * @date 2019-04-19 14:46 */ @Service public class AyUserRoleRelServiceImpl implements IAyUserRoleRelService { @Resource private AyUserRoleRelRepository ayUserRoleRelRepository; @Override public List<AyUserRoleRel> findByUserId(String userId) { return ayUserRoleRelRepository.findByUserId(userId); } }
[ "dzllikelsw@163.com" ]
dzllikelsw@163.com
c36530c7b2b06d155cdf0eb4a4524a7778d12aac
e0d01559725c2de2c7abf1223f44f047a31002e1
/design-pattern/newpattern/objectpool/src/main/java/com/gaopal/pattern/objectpool/pool/PoolableObjectFactory.java
735d1629921293319493dff0fc809c7d2014d028
[]
no_license
warfu/source-code-analysis
699f31457809ef93cbd5abb98e6cfd38aafa27b8
e02bd99028ae6292f77174df8e6cc1633a3138ba
refs/heads/main
2023-07-16T16:15:06.024381
2021-08-15T12:33:24
2021-08-15T12:33:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
697
java
package com.gaopal.pattern.objectpool.pool; public class PoolableObjectFactory { private static PoolableObjectFactory factory; private PoolableObjectFactory() { } public static synchronized PoolableObjectFactory getInstance() { if (factory == null) { factory = new PoolableObjectFactory(); } return factory; } public Object createObject(Class classType) { Object obj = null; try { obj = classType.newInstance(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } return obj; } }
[ "ftd.gaopal@gmail.com" ]
ftd.gaopal@gmail.com
df668d8fe5f17f5d49542e7f38e0f7bfc354b95b
38ae33ee28f3836f6d77b46917825c9f9a07729e
/test_examples/src/com/example/test/Test1.java
e564079ff8ff6b6c73520e13a05a66cdc5d1ed69
[]
no_license
chinmaysept/java_general
c4f771cd30cffdcd24870f93ea699ac4703e838c
cb391b0dd1a3908814f6f3d1c26251576afa9c74
refs/heads/master
2022-12-22T20:25:16.680389
2019-11-14T08:44:53
2019-11-14T08:44:53
221,638,495
0
0
null
2022-12-16T03:32:16
2019-11-14T07:36:18
Java
UTF-8
Java
false
false
144
java
package com.example.test; public class Test1 { public static void main(String[] args) { System.out.println("Class Test1"); } }
[ "chinmaya.sept@rediffmail.com" ]
chinmaya.sept@rediffmail.com
5e2660123c289a3e5ea0a46a8ac46fd4c2ed5508
e368d9adb1fe3b2d6e20c31835ff4abeea77e4ee
/workspace_1/Code_CTDL/code-VanToan/lab3_by_Van_Toan/DoublyLinkedList.java
3b610f69206ed3ed1572f0cac773c216bd3754ad
[]
no_license
thanghoang07/java
29edf868f79318672707be626d9105935fd83478
41d62d5e9f206f0459b9c3d42a8581fc5395b223
refs/heads/master
2020-05-07T13:45:13.479039
2019-04-10T09:59:34
2019-04-10T09:59:34
180,541,189
2
0
null
null
null
null
UTF-8
Java
false
false
3,210
java
package lab3_by_Van_Toan; public class DoublyLinkedList<T> implements InterfaceLinkedList<T> { protected Node<T> head; protected Node<T> trailer; int size = 0; public DoublyLinkedList() { head = null; trailer = null; size = 0; } @Override public T get(int index) { Node<T> tmp = head; for (int i = 0; i < index; i++) { tmp = tmp.next; } return tmp.getData(); } @Override public void set(int index, T data) { if ((index < 0 || index > size())) System.out.println("Không thuộc danh sách"); else { Node<T> tmp = head; for (int i = 0; i < index; i++) { tmp = tmp.next; } tmp.setData(data); } } @Override public void addFirst(T data) { Node<T> newNode = new Node<T>(data, head, null); head = newNode; size++; } @Override public void addLast(T data) { if (head == null) addFirst(data); else { Node<T> newNode = new Node<T>(data, null, trailer); Node<T> tmp = head; while (tmp.next != null) { tmp = tmp.next; } tmp.next = newNode; size++; } } @Override public void add(T data) { if (head == null) addFirst(data); else { Node<T> newNode = new Node<T>(data, null, trailer); Node<T> tmp = head; while (tmp.next != null) { tmp = tmp.next; } tmp.next = newNode; size++; } } @Override public void add(int index, T data) { if (index <= 0) addFirst(data); else if (index >= size) addLast(data); else { Node<T> tmp = head; Node<T> newNode = new Node<T>(data, null, null); for (int i = 1; i < index; i++) { tmp = tmp.next; } newNode.setNext(tmp.getNext()); tmp.next.setPrev(newNode); newNode.setPrev(tmp); tmp.setPrev(newNode); size++; } } @Override public void remove(T data) { System.out.println("Danh sách liên kết sau khi xóa: "); if (head == null) throw new RuntimeException("Không thể xóa"); if (head.getData().equals(data)) { head = head.next; return; } Node<T> cur = head; Node<T> prev = null; while (cur != null && !cur.getData().equals(data)) { prev = cur; cur = cur.next; } if (cur == null) throw new RuntimeException("Không thể xóa"); prev.next = cur.next; size--; } @Override public int size() { return size; } @Override public int count(T data) { int count = 0; Node<T> tmp = head; while (tmp != null) { if (tmp.getData().equals(data)) count++; tmp = tmp.next; } return count; } public String toString() { Node<T> newNode = head; String output = "["; while (newNode != null) { output += newNode.getData() + " "; newNode = newNode.getNext(); } return output + "]"; } private class Node<T> { private T data; public Node<T> next; public Node<T> prev; public Node(T data, Node<T> next, Node<T> prev) { this.data = data; this.next = next; this.prev = prev; } public T getData() { return data; } public void setData(T data) { this.data = data; } public Node<T> getNext() { return next; } public void setNext(Node<T> next) { this.next = next; } public Node<T> getPrev() { return prev; } public void setPrev(Node<T> prev) { this.prev = prev; } } }
[ "thanghoang07@outlook.com" ]
thanghoang07@outlook.com
b219a940488de31c26207146c133d6d62f68e16a
0fe27303ca36d6cd00d5787a291f7e60e64b719a
/src/networking/InsertRawLiquorName.java
29c0b4e4fe8ccf3ff768cc3ddf8d482e8a803a1f
[]
no_license
Arasu378/Bar
33d925ccf5f389b5df80d1c60fa087906ec57dfa
681ce3469b283650f74de88055dc4887f53de8d2
refs/heads/master
2019-07-09T06:18:27.495878
2017-12-18T10:18:14
2017-12-18T10:18:14
90,111,051
0
0
null
null
null
null
UTF-8
Java
false
false
3,985
java
package networking; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.sql.CallableStatement; import java.sql.Connection; import java.sql.DriverManager; import utils.Constants; public class InsertRawLiquorName { public static void main(String[] args) { getdata(); //DeleteFiles(); } private static void getdata(){ CallableStatement callstatement=null; Connection connection=null; try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException e1) { e1.printStackTrace(); } String folderpath="C:/Users/kyros/Desktop/partender pictures/rename partender pic/PartenderPic"; File folder = new File(folderpath); File[] listOfFiles = folder.listFiles(); for (int i = 0; i < listOfFiles.length; i++) { if (listOfFiles[i].isFile()) { String liquorname=listOfFiles[i].getName(); String originalliquorname=listOfFiles[i].getName(); if(liquorname.contains("liquor")){ liquorname= liquorname.replace("liquor ", ""); } String filename=folderpath+"/"+originalliquorname; byte[] picturebytes=readBytesFromFile(filename); // System.out.println("Liquor name : " + filename); System.out.println("Files : " + listOfFiles.length +" of : "+i); try{ //String insertso="{CALL insert_raw_picture_name(?,?)}"; String insertso="{CALL insert_raw_picture_data(?,?)}"; connection=DriverManager.getConnection(Constants.URL,Constants.USER,Constants.PASSWORD); callstatement = connection.prepareCall(insertso); InputStream myInputStream = new ByteArrayInputStream(picturebytes); callstatement.setBinaryStream(1, myInputStream); int finalvalue=i+1; callstatement.setInt(2,finalvalue); // callstatement.setString(1, liquorname); // callstatement.setString(2, "JPG"); callstatement.execute(); }catch(Exception e){ e.printStackTrace(); }finally{ if(connection!=null){ try{ connection.close(); }catch(Exception e){ e.printStackTrace(); } }if(callstatement!=null){ try{ callstatement.close(); }catch(Exception e){ e.printStackTrace(); } } } } else if (listOfFiles[i].isDirectory()) { System.out.println("Directory " + listOfFiles[i].getName()); } } } private static byte[] readBytesFromFile(String filePath) { FileInputStream fileInputStream = null; byte[] bytesArray = null; try { File file = new File(filePath); bytesArray = new byte[(int) file.length()]; //read file into bytes[] fileInputStream = new FileInputStream(file); fileInputStream.read(bytesArray); } catch (IOException e) { e.printStackTrace(); } finally { if (fileInputStream != null) { try { fileInputStream.close(); } catch (IOException e) { e.printStackTrace(); } } } return bytesArray; } public static void DeleteFiles() { File file = new File("C:/Users/kyros/Desktop/partender pictures/rename partender pic/PartenderPic/Thumbs.db"); System.out.println("Called deleteFiles"); if (file.isDirectory()) { for (File f : file.listFiles()) { DeleteFiles(); System.out.println("File Source!"); } } else { file.delete(); System.out.println("File deleted!"); } } }
[ "info@kyrostechnologies.com" ]
info@kyrostechnologies.com
f406af7d19c480ae1ea57a5edbb89676a9d84b20
8f72007d55c01d01bb4a061a7a86ed425ba18b93
/J9ConcCookBook/src/chapter07concurrent_collections/lesson04threadsafe_lists_with_delayed_elements/Task.java
96626539a8e94997adb92c24cb8ee2ab4c4659d1
[]
no_license
VictorLeonidovich/MyConcurrencyLessons
42f226b5487abd20a90a36001915eca132576a31
3aeb04b0f7e6ebdf3ccf33362ed6804709fc5cba
refs/heads/master
2020-04-01T11:28:07.351405
2018-10-15T19:34:39
2018-10-15T19:34:39
153,163,533
0
0
null
null
null
null
UTF-8
Java
false
false
655
java
package chapter07concurrent_collections.lesson04threadsafe_lists_with_delayed_elements; import java.util.Date; import java.util.concurrent.DelayQueue; public class Task implements Runnable { private final int id; private final DelayQueue<Event> queue; public Task(int id, DelayQueue<Event> queue) { this.id = id; this.queue = queue; } @Override public void run() { Date now = new Date(); Date delay = new Date(); delay.setTime(now.getTime() + (id * 1000)); System.out.printf("Thread %s: %s\n", id, delay); for (int i = 0; i < 100; i++) { Event event = new Event(delay); queue.add(event); } } }
[ "k-v-l@tut.by" ]
k-v-l@tut.by
afb08b387fe8a319a20d4567fba7b83e391a3897
c426f7b90138151ffeb50a0d2c0d631abeb466b6
/inception/inception-ui-kb/src/main/java/de/tudarmstadt/ukp/inception/ui/kb/ConceptTreeProvider.java
c953d36491144f49a0da00a77b387bdff8a0d28f
[ "Apache-2.0" ]
permissive
inception-project/inception
7a06b8cd1f8e6a7eb44ee69e842590cf2989df5f
ec95327e195ca461dd90c2761237f92a879a1e61
refs/heads/main
2023-09-02T07:52:53.578849
2023-09-02T07:44:11
2023-09-02T07:44:11
127,004,420
511
141
Apache-2.0
2023-09-13T19:09:49
2018-03-27T15:04:00
Java
UTF-8
Java
false
false
6,093
java
/* * Licensed to the Technische Universität Darmstadt under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The Technische Universität Darmstadt * 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. * * 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 de.tudarmstadt.ukp.inception.ui.kb; import java.lang.invoke.MethodHandles; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import org.apache.wicket.Session; import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; import org.apache.wicket.model.IModel; import org.apache.wicket.model.Model; import org.eclipse.rdf4j.query.QueryEvaluationException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import de.tudarmstadt.ukp.inception.kb.KnowledgeBaseService; import de.tudarmstadt.ukp.inception.kb.graph.KBHandle; import de.tudarmstadt.ukp.inception.kb.graph.KBObject; import de.tudarmstadt.ukp.inception.kb.model.KnowledgeBase; public class ConceptTreeProvider implements ITreeProvider<KBObject> { private static final long serialVersionUID = 5318498575532049499L; private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); private Map<KBObject, Boolean> childrenPresentCache = new HashMap<>(); private Map<KBObject, List<KBHandle>> childrensCache = new HashMap<>(); private final KnowledgeBaseService kbService; private final IModel<KnowledgeBase> kbModel; private final IModel<ConceptTreeProviderOptions> options; public ConceptTreeProvider(KnowledgeBaseService aKbService, IModel<KnowledgeBase> aKbModel, IModel<ConceptTreeProviderOptions> aPreferences) { kbModel = aKbModel; kbService = aKbService; options = aPreferences; } @Override public void detach() { if (kbModel.isPresent().getObject() && !kbModel.getObject().isReadOnly()) { childrenPresentCache.clear(); } } @Override public Iterator<? extends KBHandle> getRoots() { if (!kbModel.isPresent().getObject()) { return Collections.emptyIterator(); } try { return kbService .listRootConcepts(kbModel.getObject(), options.getObject().isShowAllConcepts()) .iterator(); } catch (QueryEvaluationException e) { Session.get().error("Unable to list root concepts: " + e.getLocalizedMessage()); LOG.error("Unable to list root concepts.", e); return Collections.emptyIterator(); } } @Override public boolean hasChildren(KBObject aNode) { if (!kbModel.isPresent().getObject()) { return false; } try { // If the KB is read-only, then we cache the values and re-use the cached values. if (kbModel.getObject().isReadOnly()) { // To avoid having to send a query to the KB for every child node, just assume // that there might be child nodes and show the expander until we have actually // loaded the children, cached them and can show the true information. List<KBHandle> children = childrensCache.get(aNode); if (children == null) { return true; } else { return !children.isEmpty(); } } else { Boolean hasChildren = childrenPresentCache.get(aNode); if (hasChildren == null) { hasChildren = kbService.hasChildConcepts(kbModel.getObject(), aNode.getIdentifier(), options.getObject().isShowAllConcepts()); childrenPresentCache.put(aNode, hasChildren); } return hasChildren; } } catch (QueryEvaluationException e) { Session.get().error("Unable to list child concepts: " + e.getLocalizedMessage()); LOG.error("Unable to list child concepts.", e); return false; } } @Override public Iterator<? extends KBObject> getChildren(KBObject aNode) { if (!kbModel.isPresent().getObject()) { return Collections.emptyIterator(); } try { // If the KB is read-only, then we cache the values and re-use the cached values. if (kbModel.getObject().isReadOnly()) { List<KBHandle> children = childrensCache.get(aNode); if (children == null) { children = kbService.listChildConcepts(kbModel.getObject(), aNode.getIdentifier(), options.getObject().isShowAllConcepts()); childrensCache.put(aNode, children); } return children.iterator(); } else { return kbService.listChildConcepts(kbModel.getObject(), aNode.getIdentifier(), options.getObject().isShowAllConcepts()).iterator(); } } catch (QueryEvaluationException e) { Session.get().error("Unable to list child concepts: " + e.getLocalizedMessage()); LOG.error("Unable to list child concepts.", e); return Collections.emptyIterator(); } } @Override public IModel<KBObject> model(KBObject aObject) { return Model.of(aObject); } }
[ "richard.eckart@gmail.com" ]
richard.eckart@gmail.com
264904c51a63c61b7adbc0789c45b30ba79d730a
63152c4f60c3be964e9f4e315ae50cb35a75c555
/mllib/target/java/org/apache/spark/ml/param/shared/HasTol.java
0f98312b438eba2fad05f4fc298c2727f4fd6313
[ "EPL-1.0", "Classpath-exception-2.0", "LicenseRef-scancode-unicode", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-free-unknown", "GCC-exception-3.1", "LGPL-2.0-or-later", "CDDL-1.0", "MIT", "CC-BY-SA-3.0", "NAIST-2003", "LGPL-2.1-only", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-other-permissive", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "CPL-1.0", "CC-PDDC", "EPL-2.0", "CDDL-1.1", "BSD-2-Clause", "CC0-1.0", "Python-2.0", "LicenseRef-scancode-unknown" ]
permissive
PowersYang/spark-cn
76c407d774e35d18feb52297c68c65889a75a002
06a0459999131ee14864a69a15746c900e815a14
refs/heads/master
2022-12-11T20:18:37.376098
2020-03-30T09:48:22
2020-03-30T09:48:22
219,248,341
0
0
Apache-2.0
2022-12-05T23:46:17
2019-11-03T03:55:17
HTML
UTF-8
Java
false
false
467
java
package org.apache.spark.ml.param.shared; /** * Trait for shared param tol. This trait may be changed or * removed between minor versions. */ public interface HasTol extends org.apache.spark.ml.param.Params { /** @group getParam */ public double getTol () ; /** * Param for the convergence tolerance for iterative algorithms (&amp;gt;= 0). * @group param * @return (undocumented) */ public org.apache.spark.ml.param.DoubleParam tol () ; }
[ "577790911@qq.com" ]
577790911@qq.com
34b55193ce7f6f4a9df075af5e9775f88f9124e0
9b36d618658e2f65d8d2c802b05fc489e13e4073
/pkts-sip/src/main/java/io/pkts/packet/sip/header/CallIdHeader.java
ddebc249f52f12cce16afcfa0e0541975f812aef
[]
no_license
stormning/pkts-old
a31b095106c773a10d12046e73acd9d6f9a2a622
7539ae848a41f665f3d3613b0fba9d0af74bc6b3
refs/heads/master
2021-09-12T17:34:06.529324
2018-04-19T08:34:56
2018-04-19T08:34:56
103,370,110
0
0
null
null
null
null
UTF-8
Java
false
false
1,287
java
/** * */ package io.pkts.packet.sip.header; import static io.pkts.packet.sip.impl.PreConditions.assertNotEmpty; import io.pkts.buffer.Buffer; import io.pkts.buffer.Buffers; import io.pkts.packet.sip.SipParseException; import io.pkts.packet.sip.header.impl.CallIdHeaderImpl; /** * @author jonas@jonasborjesson.com */ public interface CallIdHeader extends SipHeader { Buffer NAME = Buffers.wrap("Call-ID"); /** * The compact name of the Call-ID header is 'i' */ Buffer COMPACT_NAME = Buffers.wrap("i"); Buffer getCallId(); @Override CallIdHeader clone(); static CallIdHeader frame(final Buffer buffer) { assertNotEmpty(buffer, "The value of the Call-ID cannot be null or empty"); return new CallIdHeaderImpl(buffer); } /** * Frame the {@link CallIdHeader} using its compact name. * * @param compactForm * @param buffer * @return * @throws SipParseException */ public static CallIdHeader frameCompact(final Buffer buffer) throws SipParseException { assertNotEmpty(buffer, "The value of the Call-ID cannot be null or empty"); return new CallIdHeaderImpl(true, buffer); } static CallIdHeader create() { return new CallIdHeaderImpl(); } }
[ "stormning@163.com" ]
stormning@163.com
c6c5416e2d2f60335c7f47a3349e6a1d65b8e1f8
fe68e7b35f9f41c0674fa54696d41ac367487de4
/vcat-admin/src/main/java/com/vcat/module/ec/entity/AnswerSheet.java
85f2f45e9779544fcef1b99103a5c65f7367497f
[]
no_license
snzke-projects/server_vcat
02a54b8d89d16ebd476876c326ffb5a4a582df35
f302fcdbedcafbfa637dc6c4d19588d3da77e1e2
refs/heads/master
2020-04-08T20:10:18.845755
2018-11-29T15:35:41
2018-11-29T15:35:54
159,686,776
0
0
null
null
null
null
UTF-8
Java
false
false
1,226
java
package com.vcat.module.ec.entity; import com.vcat.module.core.entity.DataEntity; import java.util.Date; import java.util.List; /** * 答卷 */ public class AnswerSheet extends DataEntity<AnswerSheet> { private static final long serialVersionUID = 1L; private Customer customer; // 答卷人 private Questionnaire questionnaire; // 所属问卷 private Date answerTime; // 答卷时间 private List<Question> questionList; // 答卷问题集合(带答案) public Customer getCustomer() { return customer; } public void setCustomer(Customer customer) { this.customer = customer; } public Questionnaire getQuestionnaire() { return questionnaire; } public void setQuestionnaire(Questionnaire questionnaire) { this.questionnaire = questionnaire; } public Date getAnswerTime() { return answerTime; } public void setAnswerTime(Date answerTime) { this.answerTime = answerTime; } public List<Question> getQuestionList() { return questionList; } public void setQuestionList(List<Question> questionList) { this.questionList = questionList; } }
[ "snzke@live.cn" ]
snzke@live.cn
7ce0f8ebdfd2aa732833e58da3899b88315ea962
31d7459c9a67c8fd894f3dfe99c838ce2c2457a6
/daemon/build/generated/source/buildConfig/androidTest/debug/so/raw/daemon/test/BuildConfig.java
91aa2626891ef1eeb265f7c71b56cfd3befcad5c
[]
no_license
chzh1377/SouyueFive
1691d86d2ea0598cecce1537d7d954350e92d320
deaa50cd557e1186e4856b4a2c0923bd66561328
refs/heads/master
2016-09-12T16:21:14.040083
2016-05-26T14:10:29
2016-05-26T14:10:29
59,755,405
0
0
null
null
null
null
UTF-8
Java
false
false
441
java
/** * Automatically generated file. DO NOT MODIFY */ package so.raw.daemon.test; public final class BuildConfig { public static final boolean DEBUG = Boolean.parseBoolean("true"); public static final String APPLICATION_ID = "so.raw.daemon.test"; public static final String BUILD_TYPE = "debug"; public static final String FLAVOR = ""; public static final int VERSION_CODE = -1; public static final String VERSION_NAME = ""; }
[ "zhch1377@163.com" ]
zhch1377@163.com
16e9ff96951c931a3b78c2130faee763674f70f4
5741045375dcbbafcf7288d65a11c44de2e56484
/reddit-decompilada/com/google/android/gms/internal/zzam.java
0a4bc5be459e7b18e6d5df769bf7a6db4fc8ebe6
[]
no_license
miarevalo10/ReporteReddit
18dd19bcec46c42ff933bb330ba65280615c281c
a0db5538e85e9a081bf268cb1590f0eeb113ed77
refs/heads/master
2020-03-16T17:42:34.840154
2018-05-11T10:16:04
2018-05-11T10:16:04
132,843,706
0
0
null
null
null
null
UTF-8
Java
false
false
3,093
java
package com.google.android.gms.internal; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.List; final class zzam { long f6531a; final String f6532b; final String f6533c; final long f6534d; final long f6535e; final long f6536f; final long f6537g; final List<zzl> f6538h; zzam(String str, zzc com_google_android_gms_internal_zzc) { this(str, com_google_android_gms_internal_zzc.f6722b, com_google_android_gms_internal_zzc.f6723c, com_google_android_gms_internal_zzc.f6724d, com_google_android_gms_internal_zzc.f6725e, com_google_android_gms_internal_zzc.f6726f, com_google_android_gms_internal_zzc.f6728h != null ? com_google_android_gms_internal_zzc.f6728h : zzao.m5471b(com_google_android_gms_internal_zzc.f6727g)); this.f6531a = (long) com_google_android_gms_internal_zzc.f6721a.length; } private zzam(String str, String str2, long j, long j2, long j3, long j4, List<zzl> list) { this.f6532b = str; if ("".equals(str2)) { str2 = null; } this.f6533c = str2; this.f6534d = j; this.f6535e = j2; this.f6536f = j3; this.f6537g = j4; this.f6538h = list; } static zzam m5405a(zzan com_google_android_gms_internal_zzan) throws IOException { if (zzal.m13309a((InputStream) com_google_android_gms_internal_zzan) == 538247942) { return new zzam(zzal.m13311a(com_google_android_gms_internal_zzan), zzal.m13311a(com_google_android_gms_internal_zzan), zzal.m13317b((InputStream) com_google_android_gms_internal_zzan), zzal.m13317b((InputStream) com_google_android_gms_internal_zzan), zzal.m13317b((InputStream) com_google_android_gms_internal_zzan), zzal.m13317b((InputStream) com_google_android_gms_internal_zzan), zzal.m13318b(com_google_android_gms_internal_zzan)); } throw new IOException(); } final boolean m5406a(OutputStream outputStream) { try { zzal.m13312a(outputStream, 538247942); zzal.m13314a(outputStream, this.f6532b); zzal.m13314a(outputStream, this.f6533c == null ? "" : this.f6533c); zzal.m13313a(outputStream, this.f6534d); zzal.m13313a(outputStream, this.f6535e); zzal.m13313a(outputStream, this.f6536f); zzal.m13313a(outputStream, this.f6537g); List<zzl> list = this.f6538h; if (list != null) { zzal.m13312a(outputStream, list.size()); for (zzl com_google_android_gms_internal_zzl : list) { zzal.m13314a(outputStream, com_google_android_gms_internal_zzl.f7777a); zzal.m13314a(outputStream, com_google_android_gms_internal_zzl.f7778b); } } else { zzal.m13312a(outputStream, 0); } outputStream.flush(); return true; } catch (OutputStream outputStream2) { zzae.m5043b("%s", outputStream2.toString()); return false; } } }
[ "mi.arevalo10@uniandes.edu.co" ]
mi.arevalo10@uniandes.edu.co
bad6813a129ed3524414b4a191a05086401d8cbb
82019dbd61bc71dafb60baeb736e3733fb4ffd4a
/src/Java0514/Ex01_WhileEx2.java
c7089be236dfd8517a2a06c6990c21c2ef9354aa
[]
no_license
ohr5446/Java
969c78eada08dd39d426f80dde90a97ab4fcc532
a3984726f51b17fcc477e630f84fd95ef93c2337
refs/heads/master
2022-12-28T05:04:59.594896
2020-10-13T10:00:50
2020-10-13T10:00:50
263,823,119
0
0
null
null
null
null
UTF-8
Java
false
false
1,164
java
/* Date : 2020.05.14 Author : HyeongRok Description : whileEx Version : 1.4 */ package Java0514; import java.util.Scanner; public class Ex01_WhileEx2 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int account = 0; boolean run = true; int menu; while (run) { System.out.println("-----------------------------"); System.out.println(" 1.예금 | 2.출금 | 3.잔고 | 4.종료"); System.out.println("-----------------------------"); System.out.println("선택 >> "); menu = sc.nextInt(); switch (menu) { case 1: System.out.print("예금액 >> "); account += sc.nextInt(); break; case 2: System.out.print("출금액 >> "); account -= sc.nextInt(); break; case 3: System.out.print("잔고 >> " + account); break; case 4: System.out.println("종료 >> "); run = false; break; default: System.out.println("그 외에 숫자를 입력했습니다."); break; } System.out.println(); } System.out.println("프로그램을 종료합니다."); } }
[ "1@1-PC" ]
1@1-PC
4bd2ffd9bfb73b08a854c709274d6cb57675c34d
8c5f33869c00160404be4be8cbf6daaf982e667c
/ole-docstore/ole-docstore-webapp/src/main/java/org/kuali/ole/dsng/rest/handler/holdings/CreateHoldingsHanlder.java
40fa0d260a8a8c150a20ee3f0ddc6e593b4a3f1b
[]
no_license
nroggeve/ole
4814e7eb7398290b290390275cc02b2a0f28ffef
9a650febac7a813d98ca85b03846bf4453f9cefa
refs/heads/develop
2021-01-21T09:53:39.298297
2016-06-30T19:58:39
2016-06-30T19:58:39
49,024,343
0
0
null
2016-01-04T21:30:16
2016-01-04T21:30:16
null
UTF-8
Java
false
false
5,030
java
package org.kuali.ole.dsng.rest.handler.holdings; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang.StringUtils; import org.codehaus.jettison.json.JSONObject; import org.kuali.ole.DocumentUniqueIDPrefix; import org.kuali.ole.Exchange; import org.kuali.ole.constants.OleNGConstants; import org.kuali.ole.docstore.common.document.PHoldings; import org.kuali.ole.docstore.engine.service.storage.rdbms.pojo.HoldingsRecord; import org.kuali.ole.dsng.model.HoldingsRecordAndDataMapping; import org.kuali.ole.dsng.rest.handler.Handler; import java.sql.Timestamp; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /** * Created by pvsubrah on 1/22/16. */ public class CreateHoldingsHanlder extends Handler { @Override public Boolean isInterested(String operation) { List<String> operationsList = getListFromJSONArray(operation); for (Iterator iterator = operationsList.iterator(); iterator.hasNext(); ) { String op = (String) iterator.next(); if (op.equals("121") || op.equals("221")) { return true; } } return false; } @Override public void process(JSONObject requestJsonObject, Exchange exchange) { List<HoldingsRecordAndDataMapping> holdingsRecordAndDataMappings = (List<HoldingsRecordAndDataMapping>) exchange.get(OleNGConstants.HOLDINGS_FOR_CREATE); List<HoldingsRecord> holdingsRecords = new ArrayList<HoldingsRecord>(); if (CollectionUtils.isNotEmpty(holdingsRecordAndDataMappings)) { for (Iterator<HoldingsRecordAndDataMapping> iterator = holdingsRecordAndDataMappings.iterator(); iterator.hasNext(); ) { try { HoldingsRecordAndDataMapping holdingsRecordAndDataMapping = iterator.next(); HoldingsRecord holdingsRecord = holdingsRecordAndDataMapping.getHoldingsRecord(); String bibId = holdingsRecord.getBibRecords().get(0).getBibId(); if (StringUtils.isNotBlank(bibId)) { JSONObject dataMapping = holdingsRecordAndDataMapping.getDataMapping(); holdingsRecord.setBibId(bibId); exchange.add(OleNGConstants.HOLDINGS_RECORD, holdingsRecord); JSONObject holdingsJSONObject = requestJsonObject.getJSONObject(OleNGConstants.HOLDINGS); if (null != dataMapping) { exchange.add(OleNGConstants.DATAMAPPING, dataMapping); processDataMappings(holdingsJSONObject, exchange); } setCommonValuesToHoldingsRecord(requestJsonObject, holdingsRecord); holdingsRecords.add(holdingsRecord); } } catch (Exception e) { e.printStackTrace(); addFailureReportToExchange(requestJsonObject, exchange, OleNGConstants.NO_OF_FAILURE_HOLDINGS, e, 1); } } exchange.remove(OleNGConstants.HOLDINGS_RECORD); exchange.remove(OleNGConstants.DATAMAPPING); try { getOleDsNGMemorizeService().getHoldingDAO().saveAll(holdingsRecords); } catch (Exception e) { e.printStackTrace(); addFailureReportToExchange(requestJsonObject, exchange, OleNGConstants.NO_OF_FAILURE_HOLDINGS, e, holdingsRecords.size()); } } } private void setCommonValuesToHoldingsRecord(JSONObject requestJsonObject, HoldingsRecord holdingsRecord) { String createdDateString = getStringValueFromJsonObject(requestJsonObject, OleNGConstants.UPDATED_DATE); Timestamp createdDate = getDateTimeStamp(createdDateString); String createdBy = getStringValueFromJsonObject(requestJsonObject, OleNGConstants.UPDATED_BY); holdingsRecord.setCreatedBy(createdBy); holdingsRecord.setCreatedDate(createdDate); setHoldingType(holdingsRecord); holdingsRecord.setUniqueIdPrefix(DocumentUniqueIDPrefix.PREFIX_WORK_HOLDINGS_OLEML); } public void setHoldingType(HoldingsRecord holdingsRecord) { holdingsRecord.setHoldingsType(PHoldings.PRINT); } @Override public List<Handler> getMetaDataHandlers() { if (null == metaDataHandlers) { metaDataHandlers = new ArrayList<Handler>(); metaDataHandlers.add(new HoldingsLocationHandler()); metaDataHandlers.add(new CallNumberHandler()); metaDataHandlers.add(new CallNumberTypeHandler()); metaDataHandlers.add(new CallNumberPrefixHandler()); metaDataHandlers.add(new CopyNumberHandler()); metaDataHandlers.add(new AccessStatusHandler()); metaDataHandlers.add(new SubscriptionStatusHandler()); metaDataHandlers.add(new HoldingsStaffOnlyHandler()); } return metaDataHandlers; } }
[ "sheiksalahudeen.m@kuali.org" ]
sheiksalahudeen.m@kuali.org
2e469328e309bac74cdd1e49d4eb2476400334d6
6d2fe29219cbdd28b64a3cff54c3de3050d6c7be
/plc4j/drivers/bacnet/src/main/generated/org/apache/plc4x/java/bacnetip/readwrite/BACnetValueSourceAddress.java
78bdf0907a068de2d247f8f37a593a0dc136a902
[ "Apache-2.0", "Unlicense" ]
permissive
siyka-au/plc4x
ca5e7b02702c8e59844bf45ba595052fcda24ac8
44e4ede3b4f54370553549946639a3af2c956bd1
refs/heads/develop
2023-05-12T12:28:09.037476
2023-04-27T22:55:23
2023-04-27T22:55:23
179,656,431
4
3
Apache-2.0
2023-03-02T21:19:18
2019-04-05T09:43:27
Java
UTF-8
Java
false
false
5,007
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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.plc4x.java.bacnetip.readwrite; import static org.apache.plc4x.java.spi.codegen.fields.FieldReaderFactory.*; import static org.apache.plc4x.java.spi.codegen.fields.FieldWriterFactory.*; import static org.apache.plc4x.java.spi.codegen.io.DataReaderFactory.*; import static org.apache.plc4x.java.spi.codegen.io.DataWriterFactory.*; import static org.apache.plc4x.java.spi.generation.StaticHelper.*; import java.time.*; import java.util.*; import org.apache.plc4x.java.api.exceptions.*; import org.apache.plc4x.java.api.value.*; import org.apache.plc4x.java.spi.codegen.*; import org.apache.plc4x.java.spi.codegen.fields.*; import org.apache.plc4x.java.spi.codegen.io.*; import org.apache.plc4x.java.spi.generation.*; // Code generated by code-generation. DO NOT EDIT. public class BACnetValueSourceAddress extends BACnetValueSource implements Message { // Accessors for discriminator values. // Properties. protected final BACnetAddressEnclosed address; public BACnetValueSourceAddress(BACnetTagHeader peekedTagHeader, BACnetAddressEnclosed address) { super(peekedTagHeader); this.address = address; } public BACnetAddressEnclosed getAddress() { return address; } @Override protected void serializeBACnetValueSourceChild(WriteBuffer writeBuffer) throws SerializationException { PositionAware positionAware = writeBuffer; boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get(); int startPos = positionAware.getPos(); writeBuffer.pushContext("BACnetValueSourceAddress"); // Simple Field (address) writeSimpleField("address", address, new DataWriterComplexDefault<>(writeBuffer)); writeBuffer.popContext("BACnetValueSourceAddress"); } @Override public int getLengthInBytes() { return (int) Math.ceil((float) getLengthInBits() / 8.0); } @Override public int getLengthInBits() { int lengthInBits = super.getLengthInBits(); BACnetValueSourceAddress _value = this; boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get(); // Simple field (address) lengthInBits += address.getLengthInBits(); return lengthInBits; } public static BACnetValueSourceBuilder staticParseBACnetValueSourceBuilder(ReadBuffer readBuffer) throws ParseException { readBuffer.pullContext("BACnetValueSourceAddress"); PositionAware positionAware = readBuffer; int startPos = positionAware.getPos(); int curPos; boolean _lastItem = ThreadLocalHelper.lastItemThreadLocal.get(); BACnetAddressEnclosed address = readSimpleField( "address", new DataReaderComplexDefault<>( () -> BACnetAddressEnclosed.staticParse(readBuffer, (short) (2)), readBuffer)); readBuffer.closeContext("BACnetValueSourceAddress"); // Create the instance return new BACnetValueSourceAddressBuilderImpl(address); } public static class BACnetValueSourceAddressBuilderImpl implements BACnetValueSource.BACnetValueSourceBuilder { private final BACnetAddressEnclosed address; public BACnetValueSourceAddressBuilderImpl(BACnetAddressEnclosed address) { this.address = address; } public BACnetValueSourceAddress build(BACnetTagHeader peekedTagHeader) { BACnetValueSourceAddress bACnetValueSourceAddress = new BACnetValueSourceAddress(peekedTagHeader, address); return bACnetValueSourceAddress; } } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof BACnetValueSourceAddress)) { return false; } BACnetValueSourceAddress that = (BACnetValueSourceAddress) o; return (getAddress() == that.getAddress()) && super.equals(that) && true; } @Override public int hashCode() { return Objects.hash(super.hashCode(), getAddress()); } @Override public String toString() { WriteBufferBoxBased writeBufferBoxBased = new WriteBufferBoxBased(true, true); try { writeBufferBoxBased.writeSerializable(this); } catch (SerializationException e) { throw new RuntimeException(e); } return "\n" + writeBufferBoxBased.getBox().toString() + "\n"; } }
[ "christofer.dutz@c-ware.de" ]
christofer.dutz@c-ware.de
4af72a88cedb03fc3b0d5d39f12bbc7d26b69d61
d9ea3ae7b2c4e9a586e61aed23e6e997eaa38687
/99.我的案例/Day54_OA项目/OA项目06/1706_OA01/src/main/java/com/syc/oa/domain/TbDoc.java
4fa15eef649df7533c9678800aaef0c62fb17699
[]
no_license
yuanhaocn/Fu-Zusheng-Java
6e5dcf9ef3d501102af7205bb81674f880352158
ab872bcfe36d985a651a5e12ecb6132ad4d2cb8e
refs/heads/master
2020-05-15T00:20:47.872967
2019-04-16T11:06:18
2019-04-16T11:06:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,141
java
package com.syc.oa.domain; import java.util.Date; public class TbDoc { private Integer id; private Date createdate; private String filename; private String title; private Integer uid; private String remark; private TbUser user; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Date getCreatedate() { return createdate; } public void setCreatedate(Date createdate) { this.createdate = createdate; } public String getFilename() { return filename; } public void setFilename(String filename) { this.filename = filename == null ? null : filename.trim(); } public String getTitle() { return title; } public void setTitle(String title) { this.title = title == null ? null : title.trim(); } public Integer getUid() { return uid; } public void setUid(Integer uid) { this.uid = uid; } public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark == null ? null : remark.trim(); } public TbUser getUser() { return user; } public void setUser(TbUser user) { this.user = user; } }
[ "fuzusheng@gmail.com" ]
fuzusheng@gmail.com
fc334b1879450666c9d818dcfadde1d921888136
0af8b92686a58eb0b64e319b22411432aca7a8f3
/single-large-project/src/test/java/org/gradle/test/performancenull_399/Testnull_39840.java
87e29f45ef4c63b85706b4a1f305e108e20a7a82
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
308
java
package org.gradle.test.performancenull_399; import static org.junit.Assert.*; public class Testnull_39840 { private final Productionnull_39840 production = new Productionnull_39840("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
37da31133856e8f42797a5d613f7f144d564f36e
fedc097c85f12de797d4becd31de47f80013a488
/Java_Learn/LearnDesignPattern/src/com/djs/learn/structural/bridge/OperaterA.java
855ca9c66b490d48c42e271ee04e8cba0f712f36
[ "Apache-2.0" ]
permissive
djsilenceboy/LearnTest
6291e272da2abb873720dfa9a55d58cdc7556d35
91c1ee4875a740d8be48fc9d74098a37e2f5cae6
refs/heads/master
2023-07-05T14:47:52.223970
2023-06-29T11:51:14
2023-06-29T11:51:14
61,952,430
3
3
Apache-2.0
2022-12-16T09:01:24
2016-06-25T16:43:34
Java
UTF-8
Java
false
false
199
java
package com.djs.learn.structural.bridge; public class OperaterA implements OperaterInterface { @Override public void process(String request){ System.out.println("Operater A: " + request); } }
[ "djdarkguardian@gmail.com" ]
djdarkguardian@gmail.com
c1af4d1f9607846155ef1ceaaacad4c08f86483b
a20819acbcbe08529f70a97c3989f9a8b25767a4
/src/main/java/com/github/lindenb/jvarkit/gatk/GatkCommand.java
14016c236e2f9116c667d0eb5ae24f16cee6a170
[ "MIT" ]
permissive
pradyumnasagar/jvarkit
97929e5d85af02dfe5375cfa4661fcf6645afa23
4d17618d058ff27a1866addff4b6f84194d02ad5
refs/heads/master
2022-03-24T16:31:06.001444
2018-08-13T13:30:51
2018-08-13T13:30:51
145,077,900
0
0
NOASSERTION
2022-02-16T07:29:47
2018-08-17T05:54:47
Java
UTF-8
Java
false
false
2,735
java
/* The MIT License (MIT) Copyright (c) 2016 Pierre Lindenbaum 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.github.lindenb.jvarkit.gatk; import java.util.List; public abstract class GatkCommand { protected static class OptionArg { final String name; final String summary; public OptionArg(final String name,final String summary) { this.name = name; this.summary = summary; } } protected abstract class GatkArg { protected abstract String name(); protected abstract String synonyms(); protected abstract String defaultValue(); protected abstract String type(); protected abstract String minValue(); protected abstract String maxValue(); protected abstract String minRecValue(); protected abstract String maxRecValue(); protected abstract String rodTypes(); protected abstract String kind(); protected abstract String summary(); protected abstract String required(); protected abstract OptionArg[] options(); public String getId() { return getGatkCommand().getName()+"."+getName(); } public String getName() { return name().replaceAll("\\-", ""); } public String getSummary() { return summary(); } public String getSynonyms() { return synonyms(); } public boolean isRequired() { return !required().equals("no"); } public GatkCommand getGatkCommand() { return GatkCommand.this;} } protected GatkArg _wrapArg(final GatkArg arg) { return arg; } protected boolean _acceptArg(final GatkArg arg) { return true; } protected List<GatkArg> fillArguments(final List<GatkArg> args) { return args; } public abstract String getName(); public abstract String getSummary(); protected abstract List<GatkArg> getArguments(); }
[ "plindenbaum@yahoo.fr" ]
plindenbaum@yahoo.fr
e589387d2c1fd380d180985320cd33a276985444
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/CHART-4b-4-15-PESA_II-WeightedSum:TestLen:CallDiversity/org/jfree/chart/axis/Axis_ESTest.java
673e8fa218c6b2cbf7382e99ca18fa3144348561
[]
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,136
java
/* * This file was automatically generated by EvoSuite * Thu Apr 02 12:55:47 UTC 2020 */ package org.jfree.chart.axis; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.axis.NumberAxis3D; import org.jfree.chart.plot.XYPlot; import org.jfree.chart.renderer.xy.XYItemRenderer; import org.jfree.data.xy.DefaultIntervalXYDataset; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class Axis_ESTest extends Axis_ESTest_scaffolding { @Test(timeout = 4000) public void test0() throws Throwable { DefaultIntervalXYDataset defaultIntervalXYDataset0 = new DefaultIntervalXYDataset(); NumberAxis numberAxis0 = new NumberAxis("org.jfree.chart.event.AxisChangeListener"); NumberAxis3D numberAxis3D0 = new NumberAxis3D(); XYPlot xYPlot0 = new XYPlot(defaultIntervalXYDataset0, numberAxis0, numberAxis3D0, (XYItemRenderer) null); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
bdb564c93eb81375ad8f30c54fe7ec85e043bbef
64cfca46cdf438c33918cc737c232cc2ebd6c72b
/ph-servlet/src/main/java/com/helger/servlet/mock/MockServletRequestListener.java
3d406dd8286f7db586e3208f1efcff7eef2aed91
[ "Apache-2.0" ]
permissive
quickeee/ph-web
a7abbf8c0542ca9d2d7619059b622bf48df719e2
99988592b7950b5d389616a2f7b3732173c9a604
refs/heads/master
2021-01-12T07:17:45.634823
2016-12-19T14:16:37
2016-12-19T14:16:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,493
java
/** * Copyright (C) 2014-2016 Philip Helger (www.helger.com) * philip[at]helger[dot]com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.helger.servlet.mock; import javax.annotation.Nonnull; import javax.annotation.Nullable; import javax.annotation.concurrent.ThreadSafe; import javax.servlet.ServletRequestEvent; import javax.servlet.ServletRequestListener; /** * This mock listeners is responsible for creating * * @author Philip Helger */ @ThreadSafe public class MockServletRequestListener implements ServletRequestListener { private MockHttpServletResponse m_aResp; public MockServletRequestListener () {} public void requestInitialized (@Nonnull final ServletRequestEvent aEvent) { m_aResp = new MockHttpServletResponse (); } @Nullable public MockHttpServletResponse getCurrentMockResponse () { return m_aResp; } public void requestDestroyed (@Nonnull final ServletRequestEvent aEvent) { m_aResp = null; } }
[ "philip@helger.com" ]
philip@helger.com
c9a991921c376a8551835af87f43518c94671ea7
010e66bdbe2bca1eaece08161351ae061267964d
/src/cn/water/cf/dao/impl/SystemDaoDDLImpl.java
767e94de191795af76f37062ca9f260e71c83094
[]
no_license
zhangxiaoxu132113/communication
3e84a25b0321ec6dc0b4532c7f815cf34b1868e9
419fd613a00dca36ed46e382a85264090649932b
refs/heads/master
2021-01-21T04:59:35.589105
2017-10-02T05:08:34
2017-10-02T05:08:34
46,255,281
0
0
null
null
null
null
UTF-8
Java
false
false
307
java
package cn.water.cf.dao.impl; import org.springframework.stereotype.Repository; import cn.water.cf.dao.ISystemDDLDao; import cn.water.cf.domain.SystemDDL; @Repository(ISystemDDLDao.SERVICE_NAME) public class SystemDaoDDLImpl extends CommonDaoImpl<SystemDDL> implements ISystemDDLDao{ }
[ "136218949@qq.com" ]
136218949@qq.com
90c5e95112cec627f169af170e90e145c5dc6b45
10a2e8f36ca6b322ab7023339d4082c62be9c9b2
/src/com/codegym/Main.java
3305c0172d2d432d15c24aee5e55c2b856bc039c
[]
no_license
Mytuananh/total-array
0704243f8b532f2623148a9bab5b23aa505608ae
ef9cd6575188ad22c578689c4f68cfaddd95dcec
refs/heads/master
2023-08-15T02:12:37.831421
2021-09-20T14:21:26
2021-09-20T14:21:26
408,472,757
0
0
null
null
null
null
UTF-8
Java
false
false
484
java
package com.codegym; public class Main { public static void main(String[] args) { int[] a = {1,2,3}; int[] b = {4,5,6}; totalarray(a, b); } public static int[] totalarray(int[] a, int[] b){ int n = a.length + b.length; int[] n1 = new int[n]; for (int i = 0; i < a.length; i++) { n1[i] = a[i]; } for (int i = 0; i < b.length ; i++) { n1[a.length + i] = b[i]; } return n1; } }
[ "you@example.com" ]
you@example.com
be08a93db225d0ba42518b601829ea043106b84b
dc5864c49333ac1b63cb8c82d7135009c846a2ab
/com/android/systemui/statusbar/tv/TvStatusBar.java
a5684a4cc189728400d2c0a9e5abed34c8845814
[]
no_license
AndroidSDKSources/android-sdk-sources-for-api-level-MNC
c78523c6251e1aefcc423d0166015fd550f3712d
277d2349e5762fdfaffb8b346994a5e4d7f367e1
refs/heads/master
2021-01-22T00:10:20.275475
2015-07-03T12:37:41
2015-07-03T12:37:41
38,491,940
0
0
null
null
null
null
UTF-8
Java
false
false
4,286
java
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.systemui.statusbar.tv; import android.os.IBinder; import android.service.notification.NotificationListenerService.RankingMap; import android.service.notification.StatusBarNotification; import android.view.View; import com.android.internal.statusbar.StatusBarIcon; import com.android.systemui.statusbar.ActivatableNotificationView; import com.android.systemui.statusbar.BaseStatusBar; import com.android.systemui.statusbar.NotificationData; /* * Status bar implementation for "large screen" products that mostly present no on-screen nav */ public class TvStatusBar extends BaseStatusBar { @Override public void addIcon(String slot, int index, int viewIndex, StatusBarIcon icon) { } @Override public void updateIcon(String slot, int index, int viewIndex, StatusBarIcon old, StatusBarIcon icon) { } @Override public void removeIcon(String slot, int index, int viewIndex) { } @Override public void addNotification(StatusBarNotification notification, RankingMap ranking, NotificationData.Entry entry) { } @Override protected void updateNotificationRanking(RankingMap ranking) { } @Override public void removeNotification(String key, RankingMap ranking) { } @Override public void disable(int state1, int state2, boolean animate) { } @Override public void animateExpandNotificationsPanel() { } @Override public void animateCollapsePanels(int flags) { } @Override public void setSystemUiVisibility(int vis, int mask) { } @Override public void topAppWindowChanged(boolean visible) { } @Override public void setImeWindowStatus(IBinder token, int vis, int backDisposition, boolean showImeSwitcher) { } @Override public void toggleRecentApps() { } @Override // CommandQueue public void setWindowState(int window, int state) { } @Override // CommandQueue public void buzzBeepBlinked() { } @Override // CommandQueue public void notificationLightOff() { } @Override // CommandQueue public void notificationLightPulse(int argb, int onMillis, int offMillis) { } @Override protected void setAreThereNotifications() { } @Override protected void updateNotifications() { } @Override public boolean shouldDisableNavbarGestures() { return true; } public View getStatusBarView() { return null; } @Override public void maybeEscalateHeadsUp() { } @Override protected int getMaxKeyguardNotifications() { return 0; } @Override public void animateExpandSettingsPanel() { } @Override protected void createAndAddWindows() { } @Override protected void refreshLayout(int layoutDirection) { } @Override public void onActivated(ActivatableNotificationView view) { } @Override public void onActivationReset(ActivatableNotificationView view) { } @Override public void showScreenPinningRequest() { } @Override public void appTransitionPending() { } @Override public void appTransitionCancelled() { } @Override public void appTransitionStarting(long startTime, long duration) { } @Override protected void updateHeadsUp(String key, NotificationData.Entry entry, boolean shouldInterrupt, boolean alertAgain) { } @Override protected void setHeadsUpUser(int newUserId) { } protected boolean isSnoozedPackage(StatusBarNotification sbn) { return false; } }
[ "root@ifeegoo.com" ]
root@ifeegoo.com
6dffe34cb1a0668cae3eff33c37280545ab329a4
d7130fdaf51db9b45347aeb77188c1ee26d8e56e
/LeoAmber/app/src/main/java/android/preference/LeoSaltSortList.java
483f713f4b7d3c19c272ee4abaae7db88ec2b06f
[]
no_license
FusionPlmH/Fusion-Project
317af268c8bcb2cc6e7c30cf39a9cc3bc62cb84e
19ac1c5158bc48f3013dce82fe5460d988206103
refs/heads/master
2022-04-07T00:36:40.424705
2020-03-16T16:06:28
2020-03-16T16:06:28
247,745,495
2
0
null
null
null
null
UTF-8
Java
false
false
3,379
java
/* * Grouxho - espdroids.com - 2018 * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package android.preference; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; import org.leo.tweaks.salt.LeoSaltPreferenceScreen; import org.leo.tweaks.salt.R; import org.leo.tweaks.salt.prefs.DlgFrLeoSaltSortList; import org.leo.tweaks.salt.utils.Common; import org.leo.tweaks.salt.utils.LeoSaltPrefsUtils; public class LeoSaltSortList extends LeoSaltBasePreference implements DlgFrLeoSaltSortList.OnSortedList { private boolean mSortIcon; private String mDefValue; int iconsValueTint =0; public LeoSaltSortList(Context context, AttributeSet attrs){ super(context,attrs); initAttributes(context,attrs); } public LeoSaltSortList(Context context, AttributeSet attrs, int defStyleAttr){ super(context,attrs,defStyleAttr); initAttributes(context,attrs); } private void initAttributes(Context context, AttributeSet attrs){ setWidgetLayoutResource(R.layout.widget_icon_accent); initStringPrefsCommonAttributes(context,attrs,true, true); TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.LeoSaltSortlist); mSortIcon=ta.getBoolean(R.styleable.LeoSaltSortlist_showShortIcon,getContext().getResources().getBoolean(R.bool.LeoSaltb_showShortIcon_default) ); if(ta.hasValue(R.styleable.LeoSaltSortlist_iconsValueTint)) iconsValueTint = ta.getInt(R.styleable.LeoSaltSortlist_iconsValueTint, 0); ta.recycle(); mDefValue=myPrefAttrsInfo.getMyStringDefValue(); if(mDefValue==null || mDefValue.isEmpty()){ mDefValue= LeoSaltPrefsUtils.getFormattedStringFromArrayResId(getContext(),myPrefAttrsInfo.getMyValuesArrayId(),myPrefAttrsInfo.getMySeparator()); } setDefaultValue(mDefValue); setSummary(myPrefAttrsInfo.getMySummary()); } @Override public void resetPreference(){ if(mStringValue.isEmpty()) return; mStringValue= mDefValue; saveNewStringValue(mStringValue); } @Override public void showDialog(){ LeoSaltPreferenceScreen LeoSaltPreferenceScreen = (LeoSaltPreferenceScreen) getOnPreferenceChangeListener(); if(LeoSaltPreferenceScreen !=null){ DlgFrLeoSaltSortList dlg = (DlgFrLeoSaltSortList) LeoSaltPreferenceScreen.getFragmentManager().findFragmentByTag("DlgFrLeoSaltSortList"); if(dlg==null){ dlg = DlgFrLeoSaltSortList.newInstance(this, Common.TAG_PREFSSCREEN_FRAGMENT, getKey(), getTitle().toString(), mStringValue, myPrefAttrsInfo.getMySeparator(), myPrefAttrsInfo.getMyOptionsArrayId(), myPrefAttrsInfo.getMyValuesArrayId(), myPrefAttrsInfo.getMyIconsArrayId(),iconsValueTint,mSortIcon); dlg.show(LeoSaltPreferenceScreen.getFragmentManager(),"DlgFrLeoSaltSortList"); } } } @Override public void saveSortedList(String value){ if(!mStringValue.equals(value)) { mStringValue= value; saveNewStringValue(mStringValue); } } }
[ "1249014784@qq.com" ]
1249014784@qq.com
8352d336d107cae7a5bbbd7eaf72fa42e91de0b3
447520f40e82a060368a0802a391697bc00be96f
/apks/malware/app29/source/net/tsz/afinal/http/RetryHandler.java
1fe772b069a9e1ffcd8f52b4939750cbeb09f094
[ "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
2,641
java
package net.tsz.afinal.http; import android.os.SystemClock; import java.io.IOException; import java.io.InterruptedIOException; import java.net.SocketException; import java.net.UnknownHostException; import java.util.HashSet; import javax.net.ssl.SSLHandshakeException; import org.apache.http.NoHttpResponseException; import org.apache.http.client.HttpRequestRetryHandler; import org.apache.http.client.methods.HttpUriRequest; import org.apache.http.protocol.HttpContext; public class RetryHandler implements HttpRequestRetryHandler { private static final int RETRY_SLEEP_TIME_MILLIS = 1000; private static HashSet<Class<?>> exceptionBlacklist; private static HashSet<Class<?>> exceptionWhitelist = new HashSet(); private final int maxRetries; static { exceptionBlacklist = new HashSet(); exceptionWhitelist.add(NoHttpResponseException.class); exceptionWhitelist.add(UnknownHostException.class); exceptionWhitelist.add(SocketException.class); exceptionBlacklist.add(InterruptedIOException.class); exceptionBlacklist.add(SSLHandshakeException.class); } public RetryHandler(int paramInt) { this.maxRetries = paramInt; } public boolean retryRequest(IOException paramIOException, int paramInt, HttpContext paramHttpContext) { Boolean localBoolean = (Boolean)paramHttpContext.getAttribute("http.request_sent"); int i; boolean bool1; if ((localBoolean != null) && (localBoolean.booleanValue())) { i = 1; if (paramInt <= this.maxRetries) { break label102; } bool1 = false; } for (;;) { label40: boolean bool2 = bool1; if (bool1) { paramHttpContext = (HttpUriRequest)paramHttpContext.getAttribute("http.request"); if ((paramHttpContext == null) || ("POST".equals(paramHttpContext.getMethod()))) { break label151; } } label102: label151: for (bool2 = true;; bool2 = false) { if (!bool2) { break label157; } SystemClock.sleep(1000L); return bool2; i = 0; break; if (exceptionBlacklist.contains(paramIOException.getClass())) { bool1 = false; break label40; } if (exceptionWhitelist.contains(paramIOException.getClass())) { bool1 = true; break label40; } if (i != 0) { break label164; } bool1 = true; break label40; } label157: paramIOException.printStackTrace(); return bool2; label164: bool1 = true; } } }
[ "antal.micky@yahoo.com" ]
antal.micky@yahoo.com
2eef0461e1e08b997e5900b2054d757e8fd2ac1b
5f0fcdb8e540fb5149b31cb4ea5e87d97d37156c
/src/main/java/br/com/claudemir/pdvserviceapi/service/exceptions/ExisteCaixaAbertoException.java
09695bf7b00c285b49d7b9099844347fcd1c0148
[]
no_license
claudemirferreira/pdv-service-api
674c101e329b1082931b7cf83d0951c0a8a0467d
caab1edd60bd9fb211bc4f7b15d60f1c768c67de
refs/heads/master
2023-02-28T22:16:08.865158
2021-02-08T10:34:12
2021-02-08T10:34:12
326,580,129
0
0
null
null
null
null
UTF-8
Java
false
false
363
java
package br.com.claudemir.pdvserviceapi.service.exceptions; public class ExisteCaixaAbertoException extends RuntimeException { private static final long serialVersionUID = 1L; public ExisteCaixaAbertoException(String msg){ super(msg); } public ExisteCaixaAbertoException(String msg, Throwable cause){ super(msg, cause); } }
[ "claudemirramosferreira@gmail.com" ]
claudemirramosferreira@gmail.com
f6927400c8c291b419533c69fdd2b5a1923e4177
3b55fa2ab12a3034cd38a7ace86b9d6adc9127db
/default/coordinacionacademica/gen/direc/procesos/studenttransfer/Place.java
885171b7d8dc2598fb59e1ef660e76647cf8a46a
[]
no_license
ellishia/CEIP
e1b58eb5fef0aa7130845f2f31c4c96f4f348c5a
206177a0924d1f0c0e84f77a93976fd9439d9645
refs/heads/master
2020-12-30T09:58:04.809910
2013-05-13T08:45:27
2013-05-13T08:45:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
340
java
package direc.procesos.studenttransfer; @SuppressWarnings("all") public class Place { public Place(final String id) { this.id = id; } private String id; public String getId() { return this.id; } public static Place Inicial = new Place("Inicial"); public static Place Finalizar = new Place("Finalizar"); }
[ "askerosi@askerosi-laptop.(none)" ]
askerosi@askerosi-laptop.(none)
8aa472b2b92b3094478d08b5ce851887a2e4a660
f6beea8ab88dad733809e354ef9a39291e9b7874
/com/planet_ink/coffee_mud/Commands/Foreward.java
8621011c8d69375c778bf3fdeec51808b0389540
[ "Apache-2.0" ]
permissive
bonnedav/CoffeeMud
c290f4d5a96f760af91f44502495a3dce3eea415
f629f3e2e10955e47db47e66d65ae2883e6f9072
refs/heads/master
2020-04-01T12:13:11.943769
2018-10-11T02:50:45
2018-10-11T02:50:45
153,196,768
0
0
Apache-2.0
2018-10-15T23:58:53
2018-10-15T23:58:53
null
UTF-8
Java
false
false
2,726
java
package com.planet_ink.coffee_mud.Commands; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.planet_ink.coffee_mud.Behaviors.interfaces.*; import com.planet_ink.coffee_mud.CharClasses.interfaces.*; import com.planet_ink.coffee_mud.Commands.interfaces.*; import com.planet_ink.coffee_mud.Common.interfaces.*; import com.planet_ink.coffee_mud.Exits.interfaces.*; import com.planet_ink.coffee_mud.Items.interfaces.*; import com.planet_ink.coffee_mud.Libraries.interfaces.*; import com.planet_ink.coffee_mud.Locales.interfaces.*; import com.planet_ink.coffee_mud.MOBS.interfaces.*; import com.planet_ink.coffee_mud.Races.interfaces.*; import java.util.*; /* Copyright 2013-2018 Bo Zimmerman 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. */ public class Foreward extends Go { public Foreward() { } private final String[] access=I(new String[]{"FOREWARD","FORE"}); @Override public String[] getAccessWords() { return access; } @Override public boolean execute(MOB mob, List<String> commands, int metaFlags) throws java.io.IOException { int direction=Directions.NORTH; if((commands!=null)&&(commands.size()>1)) { final int nextDir=CMLib.directions().getDirectionCode(commands.get(1)); if(nextDir == Directions.EAST) direction=Directions.NORTHEAST; else if(nextDir == Directions.WEST) direction=Directions.NORTHWEST; } if(!standIfNecessary(mob,commands, metaFlags, true)) return false; if(mob.isAttributeSet(MOB.Attrib.AUTORUN)) CMLib.tracking().run(mob, direction, false,false,false); else CMLib.tracking().walk(mob, direction, false,false,false); return false; } @Override public boolean canBeOrdered() { return true; } @Override public boolean securityCheck(MOB mob) { return (mob==null) || (mob.isMonster()) || (mob.location()==null) || (mob.location() instanceof BoardableShip) || (mob.location().getArea() instanceof BoardableShip); } }
[ "bo@zimmers.net" ]
bo@zimmers.net
31a19fc10edcdc2c50019d39390b184c5e5cdda9
e2d1595800979325424ee1725d5e86600ef3e706
/src/spires/account_numbers/Account_numbers.java
eb5ab87c6756389d3e86c6d8af6b9091602e1120
[]
no_license
yespickmeup/Sacrament-Registry
6cea39855b01c8a50972b87e169f9af81d565f2e
6bc981db3cd41a50a24c64ab0916ff71d1724936
refs/heads/master
2021-11-22T12:59:53.554676
2021-08-03T15:29:56
2021-08-03T15:29:56
51,804,555
0
0
null
null
null
null
UTF-8
Java
false
false
6,009
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 spires.account_numbers; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.List; import mijzcx.synapse.desk.utils.Lg; import mijzcx.synapse.desk.utils.SqlStringUtil; import spires.util.MyConnection; /** * * @author Guinness */ public class Account_numbers { public static class to_account_numbers { public final int id; public final String description; public final String account_no; public final int status; public to_account_numbers(int id, String description, String account_no, int status) { this.id = id; this.description = description; this.account_no = account_no; this.status = status; } } public static void add_data(to_account_numbers to_account_numbers) { try { Connection conn = MyConnection.connect(); String s0 = "insert into account_numbers(" + "description" + ",account_no" + ",status" + ")values(" + ":description" + ",:account_no" + ",:status" + ")"; s0 = SqlStringUtil.parse(s0) .setString("description", to_account_numbers.description) .setString("account_no", to_account_numbers.account_no) .setNumber("status", to_account_numbers.status) .ok(); PreparedStatement stmt = conn.prepareStatement(s0); stmt.execute(); Lg.s(Account_numbers.class, "Successfully Added"); } catch (SQLException e) { throw new RuntimeException(e); } finally { MyConnection.close(); } } public static void update_data(to_account_numbers to_account_numbers) { try { Connection conn = MyConnection.connect(); String s0 = "update account_numbers set " + " description= :description " + ",account_no= :account_no " + ",status= :status " + " where id='" + to_account_numbers.id + "' " + " "; s0 = SqlStringUtil.parse(s0) .setString("description", to_account_numbers.description) .setString("account_no", to_account_numbers.account_no) .setNumber("status", to_account_numbers.status) .ok(); PreparedStatement stmt = conn.prepareStatement(s0); stmt.execute(); String s2 = "update cashiering set " + " accounting_account_name= :accounting_account_name " + " where accounting_account_id='" + to_account_numbers.id + "' " + " "; s2 = SqlStringUtil.parse(s2) .setString("accounting_account_name", to_account_numbers.account_no) .ok(); PreparedStatement stmt2 = conn.prepareStatement(s2); stmt2.execute(); String s3 = "update cashiering_types set " + " accounting_account_name= :accounting_account_name " + " where accounting_account_id='" + to_account_numbers.id + "' " + " "; s3 = SqlStringUtil.parse(s3) .setString("accounting_account_name", to_account_numbers.account_no) .ok(); PreparedStatement stmt3 = conn.prepareStatement(s3); stmt3.execute(); Lg.s(Account_numbers.class, "Successfully Updated"); } catch (SQLException e) { throw new RuntimeException(e); } finally { MyConnection.close(); } } public static void delete_data(to_account_numbers to_account_numbers) { try { Connection conn = MyConnection.connect(); String s0 = "delete from account_numbers " + " where id='" + to_account_numbers.id + "' " + " "; PreparedStatement stmt = conn.prepareStatement(s0); stmt.execute(); Lg.s(Account_numbers.class, "Successfully Deleted"); } catch (SQLException e) { throw new RuntimeException(e); } finally { MyConnection.close(); } } public static List<to_account_numbers> ret_data(String where) { List<to_account_numbers> datas = new ArrayList(); try { Connection conn = MyConnection.connect(); String s0 = "select " + "id" + ",description" + ",account_no" + ",status" + " from account_numbers" + " " + where; Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(s0); while (rs.next()) { int id = rs.getInt(1); String description = rs.getString(2); String account_no = rs.getString(3); int status = rs.getInt(4); to_account_numbers to = new to_account_numbers(id, description, account_no, status); datas.add(to); } return datas; } catch (SQLException e) { throw new RuntimeException(e); } finally { MyConnection.close(); } } }
[ "rpascua.synsoftech@gmail.com" ]
rpascua.synsoftech@gmail.com
067c40f7a07d62d552a504dac60e959d7e0dfa76
c885ef92397be9d54b87741f01557f61d3f794f3
/results/Gson-14/com.google.gson.internal.$Gson$Types/BBC-F0-opt-90/tests/15/com/google/gson/internal/$Gson$Types_ESTest.java
c6170d9acf3becac58ae6b4bd176c8296a3340b0
[ "CC-BY-4.0", "MIT" ]
permissive
pderakhshanfar/EMSE-BBC-experiment
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
fea1a92c2e7ba7080b8529e2052259c9b697bbda
refs/heads/main
2022-11-25T00:39:58.983828
2022-04-12T16:04:26
2022-04-12T16:04:26
309,335,889
0
1
null
2021-11-05T11:18:43
2020-11-02T10:30:38
null
UTF-8
Java
false
false
637
java
/* * This file was automatically generated by EvoSuite * Thu Oct 21 00:22:24 GMT 2021 */ package com.google.gson.internal; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true) public class $Gson$Types_ESTest extends $Gson$Types_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pderakhshanfar@serg2.ewi.tudelft.nl" ]
pderakhshanfar@serg2.ewi.tudelft.nl
ccb8124ee58e6ab4c8975ded62d7f5c90ac9d466
d2c0d0e5ade1dcfacfeaeadf95d1c5e22c6caeba
/src/main/java/com/github/vonrosen/quantlib/CompositeInstrument.java
f9b9cbf2dc89ef4aef21cd2836f915869a232e6b
[]
no_license
xl5555123/Quantlib-SWIG-Java
f5e906662ab72211744921a4a42e2d8d5b270432
dda229841f511d1f6cb6992e5361e40937517c22
refs/heads/master
2020-07-01T12:47:39.383347
2018-09-24T01:53:44
2018-09-24T01:53:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,863
java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.github.vonrosen.quantlib; public class CompositeInstrument extends Instrument { private transient long swigCPtr; protected CompositeInstrument(long cPtr, boolean cMemoryOwn) { super(QuantLibJNI.CompositeInstrument_SWIGUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } protected static long getCPtr(CompositeInstrument obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; QuantLibJNI.delete_CompositeInstrument(swigCPtr); } swigCPtr = 0; } super.delete(); } public CompositeInstrument() { this(QuantLibJNI.new_CompositeInstrument(), true); } public void add(Instrument instrument, double multiplier) { QuantLibJNI.CompositeInstrument_add__SWIG_0(swigCPtr, this, Instrument.getCPtr(instrument), instrument, multiplier); } public void add(Instrument instrument) { QuantLibJNI.CompositeInstrument_add__SWIG_1(swigCPtr, this, Instrument.getCPtr(instrument), instrument); } public void subtract(Instrument instrument, double multiplier) { QuantLibJNI.CompositeInstrument_subtract__SWIG_0(swigCPtr, this, Instrument.getCPtr(instrument), instrument, multiplier); } public void subtract(Instrument instrument) { QuantLibJNI.CompositeInstrument_subtract__SWIG_1(swigCPtr, this, Instrument.getCPtr(instrument), instrument); } }
[ "hunter.stern@fundingcircle.com" ]
hunter.stern@fundingcircle.com
27af86d1932695fabfac4d9b2b92549037da924f
2d6c86d78f55a6cd25bbea5e33ea848f77882409
/app/src/main/kotlin/com/ray/frame/common/adapter/base/MultiItemTypeSupport.java
d565f4290e8ba4c1b32501f31d360da81ce80a57
[]
no_license
Ray512512/KotlinFrame
1e94f9c30594bc6380dbd2dcb7c394a896609687
745ed6a1496a6697a01bd2f6e2703b90516c407b
refs/heads/master
2020-03-21T19:55:24.030786
2019-11-14T10:38:45
2019-11-14T10:38:45
138,977,926
1
0
null
null
null
null
UTF-8
Java
false
false
215
java
package com.ray.frame.common.adapter.base; /** * Created by HanHailong on 15/9/6. */ public interface MultiItemTypeSupport<T> { int getLayoutId(int viewType); int getItemViewType(int position, T t); }
[ "1452011874@qq.com" ]
1452011874@qq.com
77ee1dce1d0f3778e91e8b2930758c8ae84c6f50
b4f571a5c095df9389ccd5a74e83752eb94f3e10
/delorean-service/src/main/java/com/tomitribe/delorean/service/Dates.java
d753ff53da0026fbd73759472f81ea5d7ca44a7c
[]
no_license
wangduoo/delorean
cd28282a101561686120f0c9472d8805c43deca7
8943f1f68742172cd05261777290baf677faef5d
refs/heads/master
2021-06-25T06:42:26.767004
2017-09-12T14:55:31
2017-09-12T14:55:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,690
java
/* * Tomitribe Confidential * * Copyright Tomitribe Corporation. 2017 * * The source code for this program is not published or otherwise divested * of its trade secrets, irrespective of what has been deposited with the * U.S. Copyright Office. */ package com.tomitribe.delorean.service; import com.tomitribe.delorean.util.Join; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; import java.util.List; public class Dates { private Dates() { } public static Date parse(String s) throws UnsupportedDateFormatException { for (final String s1 : formats()) { try { final SimpleDateFormat format = new SimpleDateFormat(s1); return format.parse(s); } catch (ParseException tryAgain) { } } throw new UnsupportedDateFormatException(formats(), s); } public static List<String> format(long time, String... f) { final List<String> dates = new ArrayList<String>(); for (final String s1 : f) { final SimpleDateFormat format = new SimpleDateFormat(s1); dates.add(format.format(time)); } return dates; } public static String[] formats() { return new String[]{ "yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss", "yyyy-MM-dd HH:mm:ss z", "yyyy-MM-dd HH:mm z", "yyyy-MM-dd z", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM-dd" }; } public static class UnsupportedDateFormatException extends RuntimeException { private final String[] supported; private final String date; public UnsupportedDateFormatException(String[] supported, String date) { this.supported = supported; this.date = date; } public String[] getSupported() { return supported; } public List<String> getExamples() { return format(System.currentTimeMillis(), formats()); } public String getDate() { return date; } @Override public String getMessage() { return toString(); } @Override public String toString() { return "UnsupportedDateFormatException{" + "date='" + date + '\'' + ", supported=" + Arrays.toString(supported) + ", examples=[" + Join.join(", ", getExamples()) + "]" + '}'; } } }
[ "david.blevins@gmail.com" ]
david.blevins@gmail.com
8d6692a102488e5106be4aa9b2ef9299830f2fa9
add554d49171aecfb2ca4d504db7c6e9c50e9124
/promeg/src/main/java/com/csjbot/promeg/PinyinDict.java
1c2c9c85cd52c7e65351851c8f189301e900fd71
[]
no_license
iamkhan001/RoboDemo
2a9ae5e359bafdfc5cd991ddde7c14067b8de088
11b5e4a7a0bc45c34af593b369cd85dcc74b7a67
refs/heads/master
2020-05-25T10:23:25.479284
2019-05-21T03:53:30
2019-05-21T03:53:30
187,757,641
0
0
null
null
null
null
UTF-8
Java
false
false
639
java
package com.csjbot.promeg; import java.util.Set; /** * 字典接口,字典应保证对{@link PinyinDict#words()}中的所有词,{@link PinyinDict#toPinyin(String)}均返回非null的结果 * * Created by guyacong on 2016/12/23. */ public interface PinyinDict { /** * 字典所包含的所有词 * * @return 所包含的所有词 */ Set<String> words(); /** * 将词转换为拼音 * * @param word 词 * @return 应保证对{@link PinyinDict#words()}中的所有词,{@link PinyinDict#toPinyin(String)}均返回非null的结果 */ String[] toPinyin(String word); }
[ "imran.k@in.adoroi.com" ]
imran.k@in.adoroi.com
19bbcd991ae554e3b0343438370dfa162dfdbb72
9e92540d8d29e642e42cee330aeb9c81c3ab11db
/D2FSClient/src/main/java/com/emc/d2fs/services/content_service/GetDynamicContentRequest.java
8cd0b7b9b829387f907a8e4e3d701e52d6877c5d
[]
no_license
ambadan1/demotrial
c8a64f6f26b5f0e5a9c8a2047dfb11d354ddec42
9b4dd17ad423067eca376a4bad204986ed039fee
refs/heads/master
2020-04-29T10:52:03.614348
2019-03-17T09:26:26
2019-03-17T09:26:26
176,076,767
0
0
null
2019-03-17T09:26:27
2019-03-17T08:48:00
Java
UTF-8
Java
false
false
4,173
java
package com.emc.d2fs.services.content_service; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; import com.emc.d2fs.models.attribute.Attribute; import com.emc.d2fs.models.context.Context; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType&gt; * &lt;complexContent&gt; * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; * &lt;sequence&gt; * &lt;element ref="{http://www.emc.com/d2fs/models/context}context"/&gt; * &lt;element ref="{http://www.emc.com/d2fs/models/attribute}attributes" maxOccurs="unbounded" minOccurs="0"/&gt; * &lt;/sequence&gt; * &lt;attribute ref="{http://www.emc.com/d2fs/models/common}id"/&gt; * &lt;attribute name="contentTypeName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt; * &lt;/restriction&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "context", "attributes" }) @XmlRootElement(name = "getDynamicContentRequest") public class GetDynamicContentRequest { @XmlElement(namespace = "http://www.emc.com/d2fs/models/context", required = true) protected Context context; @XmlElement(namespace = "http://www.emc.com/d2fs/models/attribute") protected List<Attribute> attributes; @XmlAttribute(name = "id", namespace = "http://www.emc.com/d2fs/models/common") protected String id; @XmlAttribute(name = "contentTypeName", required = true) protected String contentTypeName; /** * Gets the value of the context property. * * @return * possible object is * {@link Context } * */ public Context getContext() { return context; } /** * Sets the value of the context property. * * @param value * allowed object is * {@link Context } * */ public void setContext(Context value) { this.context = value; } /** * Gets the value of the attributes property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the attributes property. * * <p> * For example, to add a new item, do as follows: * <pre> * getAttributes().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Attribute } * * */ public List<Attribute> getAttributes() { if (attributes == null) { attributes = new ArrayList<Attribute>(); } return this.attributes; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets the value of the contentTypeName property. * * @return * possible object is * {@link String } * */ public String getContentTypeName() { return contentTypeName; } /** * Sets the value of the contentTypeName property. * * @param value * allowed object is * {@link String } * */ public void setContentTypeName(String value) { this.contentTypeName = value; } }
[ "aniket.ambadkar@novartis.com" ]
aniket.ambadkar@novartis.com
0839f31f00dd5af5a1d4d666ef7020fc93352ab4
3560541681cfb7484f3d88772a94ce13aa00c95c
/PDFComparer/org/apache/pdfbox/util/StringUtil.java
137ebe70e53c1e65852e6ae4165d5869397e2ff9
[]
no_license
daguti/PDFComparator
2efc16037a6cd3cd4ae6a12be13b8b7d083c51a7
4b84ea93bebc49f2739efac9325a417749e692c3
refs/heads/master
2021-01-10T12:43:08.814267
2016-03-17T16:39:36
2016-03-17T16:39:36
54,134,348
0
0
null
null
null
null
UTF-8
Java
false
false
668
java
/* */ package org.apache.pdfbox.util; /* */ /* */ import java.io.UnsupportedEncodingException; /* */ /* */ public class StringUtil /* */ { /* */ public static byte[] getBytes(String s) /* */ { /* */ try /* */ { /* 32 */ return s.getBytes("ISO-8859-1"); /* */ } /* */ catch (UnsupportedEncodingException e) /* */ { /* 36 */ throw new RuntimeException("Unsupported Encoding", e); /* */ } /* */ } /* */ } /* Location: C:\Users\ESa10969\Desktop\PDFComparer\ * Qualified Name: org.apache.pdfbox.util.StringUtil * JD-Core Version: 0.6.2 */
[ "ESa10969@MADWN0030139.euro.net.intra" ]
ESa10969@MADWN0030139.euro.net.intra
11fdd119449c6dbacba1c4e6390ba37d8b9d5796
b24ebefa3c18a38098d46fb0fbc67f9d14ecf5d2
/src/Password.java
80b9b16992b4c310d68e8fa22d9e0fd7ab458dbe
[]
no_license
AndySheu/APCSFinalProjectPokemon
46612ad451fdf254e141761a650a2da972bfdd92
9680efb1e6677faa01eb838c09ef2e505337f887
refs/heads/master
2021-05-30T09:07:02.456033
2015-09-06T23:28:02
2015-09-06T23:28:02
35,531,801
0
0
null
null
null
null
UTF-8
Java
false
false
1,005
java
public class Password { static void input() { boolean wrong = false; while (!wrong) { System.out.print("Enter a password (if you have one): "); String pass = V.keys.nextLine(); if (pass.equals("france")) { for (int i = 0; i < 6; i++) { V.player.addPokemon(new Pokemon(P.VICTINI, true)); } } else if (pass.equals("england")) { V.player.addPokemon(new Pokemon(P.CHARMANDER, true)); V.player.addPokemon(new Pokemon(P.ARCEUS, true)); V.player.fillTeam(4, true); } else if (pass.equals("excellent") && V.player.getName().equals("Mike Bollhorst")) { for (int i = 0; i < 6; i++) { V.player.addPokemon(new Pokemon(P.ARCEUS, true)); } } else if (pass.equals("meb")) { V.opp.setName("Michael E. Bollhorst"); for (int i = 0; i < 6; i++) { V.opp.addPokemon(new Pokemon(P.ARCEUS, false)); } } else { wrong = true; System.out.println("Wrong!"); } for (int i = 0; i < 100; i++) { System.out.println(); } } } }
[ "email" ]
email
8a20321b129723b21a90902227adc2c82aa28d88
4c304a7a7aa8671d7d1b9353acf488fdd5008380
/src/main/java/com/alipay/api/response/AlipayMarketingVoucherSendResponse.java
d4c0e9a6cf143418cf553da4c1f1a7df0eef7af2
[ "Apache-2.0" ]
permissive
zhaorongxi/alipay-sdk-java-all
c658983d390e432c3787c76a50f4a8d00591cd5c
6deda10cda38a25dcba3b61498fb9ea839903871
refs/heads/master
2021-02-15T19:39:11.858966
2020-02-16T10:44:38
2020-02-16T10:44:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
854
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.marketing.voucher.send response. * * @author auto create * @since 1.0, 2019-12-03 12:27:46 */ public class AlipayMarketingVoucherSendResponse extends AlipayResponse { private static final long serialVersionUID = 5531315457984216777L; /** * 支付宝用户ID */ @ApiField("user_id") private String userId; /** * 券ID */ @ApiField("voucher_id") private String voucherId; public void setUserId(String userId) { this.userId = userId; } public String getUserId( ) { return this.userId; } public void setVoucherId(String voucherId) { this.voucherId = voucherId; } public String getVoucherId( ) { return this.voucherId; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
785ed0433a8997d02ae311af8f2dc8e0df5176bd
837a5a7e45976923af44ba0bf32395381f07de2e
/src/test/java/StringMethod/StringDemo1.java
7a956f9040b9f7deef78d08d8b112a812ad12549
[]
no_license
mayur-ops/Bright
6481287a70b896abf7992df9fed935b1abb6856f
11610a358fa102e5d4b3c5af8013da88c7ae4282
refs/heads/master
2023-03-07T11:36:56.252181
2021-03-01T22:46:09
2021-03-01T22:46:09
343,578,444
0
0
null
null
null
null
UTF-8
Java
false
false
835
java
package StringMethod; public class StringDemo1 { public static void main(String[] args) { char[] ch={'k','e','t','a','n'}; String s=new String(ch); System.out.println(s); } } class StringDemo2{ public static void main(String[] args) { String s1="Mayur"; String s2="Patel"; System.out.println(s1.toUpperCase()); System.out.println(s1.toLowerCase()); System.out.println(s1.trim()); System.out.println(s1.startsWith("May")); System.out.println(s1.endsWith("ur")); System.out.println(s1.charAt(0)); System.out.println(s1.charAt(3)); System.out.println(s1.length()); System.out.println(s1.replace("Mayur","Dipika")); System.out.println(s1.contains("yu")); System.out.println(s1.concat(s2)); } }
[ "you@example.com" ]
you@example.com