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
19c297b228375e0f34e8296a3419b0c8205a84cb
6b5e2b809a21ab16c435201a426861ebec43d1a0
/modules/siddhi-core/src/main/java/org/wso2/siddhi/core/query/selector/attribute/aggregator/incremental/IncrementalAggregationProcessor.java
92ec2b54826040d07f5674408ba994d18e7d57a5
[ "Apache-2.0" ]
permissive
PivithuruThejan/siddhi
b9edcc57412d571e1e993e7a894f0211515aa371
4fade55ff5f23de802553e4ea49324f82b683775
refs/heads/master
2021-08-16T16:44:54.479854
2017-11-20T05:16:55
2017-11-20T05:16:55
105,748,323
1
0
null
2017-10-04T08:51:55
2017-10-04T08:51:55
null
UTF-8
Java
false
false
3,614
java
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. 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.wso2.siddhi.core.query.selector.attribute.aggregator.incremental; import org.wso2.siddhi.core.event.ComplexEvent; import org.wso2.siddhi.core.event.ComplexEventChunk; import org.wso2.siddhi.core.event.stream.MetaStreamEvent; import org.wso2.siddhi.core.event.stream.StreamEvent; import org.wso2.siddhi.core.event.stream.StreamEventPool; import org.wso2.siddhi.core.exception.SiddhiAppCreationException; import org.wso2.siddhi.core.executor.ExpressionExecutor; import org.wso2.siddhi.core.query.processor.Processor; import java.util.List; /** * Incremental Aggregation Processor to consume events to Incremental Aggregators */ public class IncrementalAggregationProcessor implements Processor { private final List<ExpressionExecutor> incomingExpressionExecutors; private final MetaStreamEvent processedMetaStreamEvent; private final StreamEventPool streamEventPool; private IncrementalExecutor incrementalExecutor; public IncrementalAggregationProcessor(IncrementalExecutor incrementalExecutor, List<ExpressionExecutor> incomingExpressionExecutors, MetaStreamEvent processedMetaStreamEvent) { this.incrementalExecutor = incrementalExecutor; this.incomingExpressionExecutors = incomingExpressionExecutors; this.processedMetaStreamEvent = processedMetaStreamEvent; this.streamEventPool = new StreamEventPool(processedMetaStreamEvent, 5); } @Override public void process(ComplexEventChunk complexEventChunk) { ComplexEventChunk<StreamEvent> streamEventChunk = new ComplexEventChunk<>(complexEventChunk.isBatch()); while (complexEventChunk.hasNext()) { ComplexEvent complexEvent = complexEventChunk.next(); StreamEvent borrowedEvent = streamEventPool.borrowEvent(); for (int i = 0; i < incomingExpressionExecutors.size(); i++) { ExpressionExecutor expressionExecutor = incomingExpressionExecutors.get(i); borrowedEvent.setOutputData(expressionExecutor.execute(complexEvent), i); } streamEventChunk.add(borrowedEvent); } incrementalExecutor.execute(streamEventChunk); } @Override public Processor getNextProcessor() { return null; } @Override public void setNextProcessor(Processor processor) { throw new SiddhiAppCreationException("IncrementalAggregationProcessor does not support any next processor"); } @Override public void setToLast(Processor processor) { throw new SiddhiAppCreationException("IncrementalAggregationProcessor does not support any " + "next/last processor"); } @Override public Processor cloneProcessor(String key) { throw new SiddhiAppCreationException("IncrementalAggregationProcessor cannot be cloned"); } }
[ "suhothayan@gmail.com" ]
suhothayan@gmail.com
69fc2c8cab1aa7d3680803c65d0d43643ccaa74e
caf76991b058e77da493c3d4f66f34add461ec91
/book-crazy-java-5-codes/04/4.6/ReferenceArrayTest.java
b3e41670285704129e9d59cc6e63c05c85132332
[ "Apache-2.0" ]
permissive
zou-zhicheng/awesome-java
44122083582e85ecc40ddcd1a422c2e70e327efe
99eaaf93525ffe48598b28c9eb342ddde8de4492
refs/heads/main
2023-09-03T22:20:55.729979
2021-10-29T06:44:20
2021-10-29T06:44:20
366,591,784
1
1
null
null
null
null
UTF-8
Java
false
false
1,410
java
/** * Description: * 网站: <a href="http://www.crazyit.org">疯狂Java联盟</a><br> * Copyright (C), 2001-2020, Yeeku.H.Lee<br> * This program is protected by copyright laws.<br> * Program Name:<br> * Date:<br> * @author Yeeku.H.Lee kongyeeku@163.com * @version 5.0 */ class Person { public int age; // 年龄 public double height; // 身高 // 定义一个info方法 public void info() { System.out.println("我的年龄是:" + age + ",我的身高是:" + height); } } public class ReferenceArrayTest { public static void main(String[] args) { // 定义一个students数组变量,其类型是Person[] Person[] students; // 执行动态初始化 students = new Person[2]; // 创建一个Person实例,并将这个Person实例赋给zhang变量 var zhang = new Person(); // 为zhang所引用的Person对象的age、height赋值 zhang.age = 15; zhang.height = 158; // 创建一个Person实例,并将这个Person实例赋给lee变量 var lee = new Person(); // 为lee所引用的Person对象的age、height赋值 lee.age = 16; lee.height = 161; // 将zhang变量的值赋给第一个数组元素 students[0] = zhang; // 将lee变量的值赋给第二个数组元素 students[1] = lee; // 下面两行代码的结果完全一样,因为lee // 和students[1]指向的是同一个Person实例。 lee.info(); students[1].info(); } }
[ "zhichengzou@creditease.cn" ]
zhichengzou@creditease.cn
0c0ff81adc223a7ff0582b0d0e3927bb69a95b5f
cc15ce58cb4e827b7fa58744ef07a308377ae411
/micro-service-provider/micro-service-provider-static/src/main/java/com/igoosd/repository/ParkingRepository.java
63cb41700330b71515b837584a63a29aae8fa308
[ "MIT" ]
permissive
yxxcrtd/pgis
6465536f6c71f4416ade7214c0fdfd53a2eb0007
48de4f30084aaf08d92fb986b83a2d3e44ace6e4
refs/heads/master
2022-02-18T14:10:39.177723
2019-09-08T07:56:42
2019-09-08T07:56:42
190,665,351
0
0
null
null
null
null
UTF-8
Java
false
false
1,019
java
package com.igoosd.repository; import com.igoosd.domain.Parking; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import javax.transaction.Transactional; public interface ParkingRepository extends JpaRepository<Parking,Long>, JpaSpecificationExecutor<Parking> { /** * 更新剩余车位数 * @param exitNum * @param enterNum * @param parkingSpaceId */ @Transactional @Modifying(clearAutomatically = true) @Query("update Parking set lotRemainCount = lotRemainCount + :exitNum - :enterNum where id=:id and (lotTotalCount - lotRemainCount - :exitNum + :enterNum) >= 0") int changeLotRemain(@Param("exitNum") int exitNum, @Param("enterNum") int enterNum, @Param("id") Long parkingSpaceId); }
[ "yxxcrtd@gmail.com" ]
yxxcrtd@gmail.com
b70e5f0fae39f6e2921901b1531cedda8959c7aa
b7abf30539bce1cdb8dc8883a7324a8afa344296
/easyExcel/src/main/java/com/tonels/temp/large/LargeData.java
d30282a26d30b72a1fa8fc968c8b1f6822bf69d1
[ "Apache-2.0" ]
permissive
tonels/dataFlower
aef9831d797f5b607032b070e03a362e98a0a667
f1172fe58b73eb6c9fbbe372e8fbd65182c4cc4e
refs/heads/master
2022-07-01T09:41:02.308506
2020-04-17T05:46:58
2020-04-17T05:46:58
220,606,519
0
0
Apache-2.0
2022-06-29T17:51:51
2019-11-09T07:21:06
Java
UTF-8
Java
false
false
816
java
package com.tonels.temp.large; import lombok.Builder; import lombok.Data; /** * @author Jiaju Zhuang */ @Data @Builder public class LargeData { private String str1; private String str2; private String str3; private String str4; private String str5; private String str6; private String str7; private String str8; private String str9; private String str10; private String str11; private String str12; private String str13; private String str14; private String str15; private String str16; private String str17; private String str18; private String str19; private String str20; private String str21; private String str22; private String str23; private String str24; private String str25; }
[ "1589900136@qq.com" ]
1589900136@qq.com
6471e1692e79b92b9624484412a69a2007b8fc43
d977af1f7b1c61f87a5a53ff87caab9376c81f4d
/chain-plugin-interface/src/main/java/ru/ezhov/chain/plugin/exception/SourcePluginException.java
9054476f0e355657238c914df3c4d491bf7f83da
[]
no_license
ezhov-da/chain-executor
573e81565a8eb86dc90baeb5af69a5de9fb80ff5
aefc73675289a3071e8fbfb9cc90b7a6668b2b7d
refs/heads/master
2018-11-09T17:53:25.378465
2018-08-21T07:16:40
2018-08-21T07:16:40
119,663,552
0
0
null
null
null
null
UTF-8
Java
false
false
612
java
package ru.ezhov.chain.plugin.exception; public class SourcePluginException extends Exception { public SourcePluginException() { } public SourcePluginException(String message) { super(message); } public SourcePluginException(String message, Throwable cause) { super(message, cause); } public SourcePluginException(Throwable cause) { super(cause); } public SourcePluginException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { super(message, cause, enableSuppression, writableStackTrace); } }
[ "ezhdenis@yandex.ru" ]
ezhdenis@yandex.ru
b6e7a17aad86afd608341432db73057c9f4bcc3a
7877b2cc1c7546ca445f2813ad19492c7b315b02
/app/src/main/java/com/example/myapplication/TopRankings.java
8cac6744945e38b61aa34540ba78b03e025fea04
[]
no_license
Tranthuha19982015/android
3c0c9a0a58b59eb2d0bfdb578688b877cdfda8c0
5235167358c2e2e4dacf8ce54ccddf8fc28a4080
refs/heads/master
2023-01-21T18:30:17.629758
2020-11-28T14:55:01
2020-11-28T14:55:01
316,757,007
0
0
null
null
null
null
UTF-8
Java
false
false
1,354
java
package com.example.myapplication; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.view.MenuItem; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; import androidx.annotation.NonNull; import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.AppCompatActivity; import com.example.myapplication.db.DataBaseManager; import com.example.myapplication.db.Player; import java.util.ArrayList; public class TopRankings extends AppCompatActivity implements View.OnClickListener { ListView lvxephang; ArrayList<Player> player=null; private DataBaseManager dataBaseManager; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.toprankings); findViewById(R.id.btn_back).setOnClickListener(this); dataBaseManager=new DataBaseManager(this); player=new ArrayList<>(); loadTopRankings(); } public void loadTopRankings() { lvxephang = (ListView) findViewById(R.id.lvTop); player = dataBaseManager.getPlayerHighScore(10); TopRangeAdapter customer = new TopRangeAdapter(player); lvxephang.setAdapter(customer); } @Override public void onClick(View v) { finish(); } }
[ "you@example.com" ]
you@example.com
67a4ff87d4f123bab46ae369a4cde38234d9e663
421077f5f882c71644aa3ab9369813c2dd47e84d
/src/main/java/com/pixelab/service/impl/ConsultaServiceImpl.java
7118484e1b9610697cf0351ec38cd232c9cbccee
[]
no_license
samir28/clase5-springboot-reports
9c2d2b56427660b3f8169acba844265dfefbbf59
f8bc3368c5a028172546120d47808797b04638fa
refs/heads/master
2020-12-27T00:20:21.286861
2020-01-26T12:51:09
2020-01-26T12:51:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,318
java
package com.pixelab.service.impl; import java.io.File; import java.io.IOException; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.List; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.pixelab.dto.ConsultaListaExamenDTO; import com.pixelab.dto.ConsultaResumenDTO; import com.pixelab.dto.FiltroConsultaDTO; import com.pixelab.model.Consulta; import com.pixelab.repo.IConsultaExamenRepo; import com.pixelab.repo.IConsultaRepo; import com.pixelab.service.IConsultaService; import net.sf.jasperreports.engine.JasperExportManager; import net.sf.jasperreports.engine.JasperFillManager; import net.sf.jasperreports.engine.JasperPrint; import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource; @Service public class ConsultaServiceImpl implements IConsultaService{ @Autowired private IConsultaRepo repo; @Autowired private IConsultaExamenRepo ceRepo; @Override public Consulta registrar(Consulta obj) { obj.getDetalleConsulta().forEach(det -> { det.setConsulta(obj); }); return repo.save(obj); } @Transactional @Override public Consulta registrarTransaccional(ConsultaListaExamenDTO dto) { dto.getConsulta().getDetalleConsulta().forEach(det -> { det.setConsulta(dto.getConsulta()); }); repo.save(dto.getConsulta()); dto.getLstExamen().forEach(ex -> ceRepo.registrar(dto.getConsulta().getIdConsulta(), ex.getIdExamen())); return dto.getConsulta(); } @Override public Consulta modificar(Consulta obj) { return repo.save(obj); } @Override public List<Consulta> listar() { return repo.findAll(); } @Override public Consulta leerPorId(Integer id) { Optional<Consulta> op = repo.findById(id); return op.isPresent() ? op.get() : new Consulta(); } @Override public boolean eliminar(Integer id) { repo.deleteById(id); return true; } @Override public List<Consulta> buscar(FiltroConsultaDTO filtro) { return repo.buscar(filtro.getDni(), filtro.getNombreCompleto()); } @Override public List<Consulta> buscarFecha(FiltroConsultaDTO filtro) { LocalDateTime fechaSgte = filtro.getFechaConsulta().plusDays(1); return repo.buscarFecha(filtro.getFechaConsulta(), fechaSgte); } @Override public List<ConsultaResumenDTO> listarResumen() { List<ConsultaResumenDTO> consultas = new ArrayList<>(); repo.listarResumen().forEach(x -> { ConsultaResumenDTO cr = new ConsultaResumenDTO(); cr.setCantidad(Integer.parseInt(String.valueOf(x[0]))); cr.setFecha(String.valueOf(x[1])); consultas.add(cr); }); return consultas; } @Override public byte[] generarReporte() { byte[] data = null; //HashMap<String, String> params = new HashMap<String, String>(); //params.put("txt_empresa", "MitoCode Network"); try { File file = new ClassPathResource("/reports/consultas.jasper").getFile(); JasperPrint print = JasperFillManager.fillReport(file.getPath(), null, new JRBeanCollectionDataSource(this.listarResumen())); data = JasperExportManager.exportReportToPdf(print); }catch(Exception e) { e.printStackTrace(); } return data; } }
[ "ingenieromiguelch@gmail.com" ]
ingenieromiguelch@gmail.com
0f83bbe1f7cbe43e1b64b3ad2883d7f86da2884d
f702cd919cafacce0ab88a58db76a1eb2335a290
/src/main/java/com/telkom/oauthreact2/domain/PersistentAuditEvent.java
fc95174a2acdd46732981c6c7f5c64c853cd04a3
[]
no_license
Ravikumara6970/OauthReactExmp
723534ad99d82597bcd1b959335291a2bb6e33b7
24c260fb1dca6e2d4d635aa752317d1a2879fce0
refs/heads/master
2022-12-25T14:58:11.438066
2019-12-16T10:24:31
2019-12-16T10:24:31
228,360,659
0
0
null
2022-12-16T04:42:42
2019-12-16T10:24:20
Java
UTF-8
Java
false
false
2,512
java
package com.telkom.oauthreact2.domain; import javax.persistence.*; import javax.validation.constraints.NotNull; import java.io.Serializable; import java.time.Instant; import java.util.HashMap; import java.util.Map; /** * Persist AuditEvent managed by the Spring Boot actuator. * * @see org.springframework.boot.actuate.audit.AuditEvent */ @Entity @Table(name = "jhi_persistent_audit_event") public class PersistentAuditEvent implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "event_id") private Long id; @NotNull @Column(nullable = false) private String principal; @Column(name = "event_date") private Instant auditEventDate; @Column(name = "event_type") private String auditEventType; @ElementCollection @MapKeyColumn(name = "name") @Column(name = "value") @CollectionTable(name = "jhi_persistent_audit_evt_data", joinColumns=@JoinColumn(name="event_id")) private Map<String, String> data = new HashMap<>(); public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getPrincipal() { return principal; } public void setPrincipal(String principal) { this.principal = principal; } public Instant getAuditEventDate() { return auditEventDate; } public void setAuditEventDate(Instant auditEventDate) { this.auditEventDate = auditEventDate; } public String getAuditEventType() { return auditEventType; } public void setAuditEventType(String auditEventType) { this.auditEventType = auditEventType; } public Map<String, String> getData() { return data; } public void setData(Map<String, String> data) { this.data = data; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof PersistentAuditEvent)) { return false; } return id != null && id.equals(((PersistentAuditEvent) o).id); } @Override public int hashCode() { return 31; } @Override public String toString() { return "PersistentAuditEvent{" + "principal='" + principal + '\'' + ", auditEventDate=" + auditEventDate + ", auditEventType='" + auditEventType + '\'' + '}'; } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
9973aae9b6c5cf53083e9d90eafc7382cd206b27
52280cf6517f27bde1ad70037bc20f9aaa01d6c5
/src/com/jingdong/cloud/msg/entity/LoginState.java
3aeb18f751ffbf1bc06abee44a2625dca7ac678a
[]
no_license
xiangyong/JDMall
7730ae3395a44d03387f4d4075a1b2c8870c23be
5ce5a7870e87a67cad500903bc169cd266b5a2e9
refs/heads/master
2021-01-16T18:13:41.254336
2014-02-26T09:59:08
2014-02-26T09:59:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
475
java
package com.jingdong.cloud.msg.entity; public class LoginState { private static boolean isHasLogin = false; public static boolean isHasLogin() { return isHasLogin; } public static void setHasLogin(boolean paramBoolean) { isHasLogin = paramBoolean; } } /* Location: C:\Users\yepeng\Documents\classes-dex2jar.jar * Qualified Name: com.jingdong.cloud.msg.entity.LoginState * JD-Core Version: 0.7.0.1 */
[ "13718868826@163.com" ]
13718868826@163.com
3f973b07f1a48aa9c91a143f241f3e287ae26980
a0e4f155a7b594f78a56958bca2cadedced8ffcd
/sdk/src/main/java/org/zstack/sdk/SyncPrimaryStorageCapacityResult.java
6d9a92a395b9255214430002db99211fd2e91635
[ "Apache-2.0" ]
permissive
zhao-qc/zstack
e67533eabbbabd5ae9118d256f560107f9331be0
b38cd2324e272d736f291c836f01966f412653fa
refs/heads/master
2020-08-14T15:03:52.102504
2019-10-14T03:51:12
2019-10-14T03:51:12
215,187,833
3
0
Apache-2.0
2019-10-15T02:27:17
2019-10-15T02:27:16
null
UTF-8
Java
false
false
367
java
package org.zstack.sdk; import org.zstack.sdk.PrimaryStorageInventory; public class SyncPrimaryStorageCapacityResult { public PrimaryStorageInventory inventory; public void setInventory(PrimaryStorageInventory inventory) { this.inventory = inventory; } public PrimaryStorageInventory getInventory() { return this.inventory; } }
[ "xin.zhang@mevoco.com" ]
xin.zhang@mevoco.com
f10a9f377072184e9c152c170f76a9095b3642ac
ad85131e9c580c62d34bf87dd44a9ec84743e6b1
/Module_4/session_12_ajax/exercise_blog_ajax/src/main/java/com/soren/repository/BlogRepository.java
16734e8994d293be50cc563206600ed320752363
[]
no_license
Hoangtq1710/C1120G1-TranQuocHoang
0c848b5773ce790456109322aad25d58b0094135
efc975b1fc95ad0d804e2249a077e5365197ca75
refs/heads/main
2023-05-02T20:20:58.630250
2021-05-18T11:44:59
2021-05-18T11:44:59
316,412,561
0
0
null
null
null
null
UTF-8
Java
false
false
684
java
package com.soren.repository; import com.soren.model.Blog; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface BlogRepository extends JpaRepository<Blog, Integer> { List<Blog> findAllByTitleContaining(String search); List<Blog> findAllByCategoryId(Integer id); @Query(value = "select * from blog limit ?1, ?2", nativeQuery = true) List<Blog> findAllLoad(int start, int limit); @Query(value = "select * from blog limit ?1, 2", nativeQuery = true) List<Blog> findNext(int currentIndex); }
[ "hoangtq1710@gmail.com" ]
hoangtq1710@gmail.com
2d8c2450426f013c63e551a96bd1b00df1923c66
958b13739d7da564749737cb848200da5bd476eb
/src/main/java/com/alipay/api/domain/AlipayTradeCustomsDeclareModel.java
5ca947a458192939ebd62d8a89f58e7ddf6d705d
[ "Apache-2.0" ]
permissive
anywhere/alipay-sdk-java-all
0a181c934ca84654d6d2f25f199bf4215c167bd2
649e6ff0633ebfca93a071ff575bacad4311cdd4
refs/heads/master
2023-02-13T02:09:28.859092
2021-01-14T03:17:27
2021-01-14T03:17:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,836
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 统一收单报关接口 * * @author auto create * @since 1.0, 2019-03-28 14:00:51 */ public class AlipayTradeCustomsDeclareModel extends AlipayObject { private static final long serialVersionUID = 6185133845536624115L; /** * 报关金额,单位为人民币“元”,精确到小数点后2位。 */ @ApiField("amount") private String amount; /** * 订购人身份信息 */ @ApiField("buyer_info") private CustomsDeclareBuyerInfo buyerInfo; /** * 海关编号(大小写皆可)。参见“ <a href="https://doc.open.alipay.com/docs/doc.htm?treeId=267&articleId=105883&docType=1">海关编号</a>”。 */ @ApiField("customs_place") private String customsPlace; /** * 报关模式,默认可空,1表示需要强校验买家和支付人的身份信息。 */ @ApiField("declare_mode") private Long declareMode; /** * 商户控制本单是否拆单的报关参数。 仅当该参数传值为T或者t时,才会触发拆单。 */ @ApiField("is_split") private String isSplit; /** * 商户在海关备案的编号。 */ @ApiField("merchant_customs_code") private String merchantCustomsCode; /** * 商户海关备案名称。 */ @ApiField("merchant_customs_name") private String merchantCustomsName; /** * 报关流水号。商户生成的用于唯一标识一次报关操作的业务编号。 建议生成规则:yyyymmdd型8位日期拼接4位序列号。每个报关请求号仅允许传入:数字、英文字母、下划线”_”、短横线”-” 。长度6-32位前后不能有空格 */ @ApiField("out_request_no") private String outRequestNo; /** * 拆单报关的商户子订单号。 用于区别拆单时不同子单。拆单时必须传入,否则会报INVALID_PARAMETER错误码。 */ @ApiField("sub_out_biz_no") private String subOutBizNo; /** * 支付宝交易号。该交易在支付宝系统中的交易流水号,最长64位。 */ @ApiField("trade_no") private String tradeNo; public String getAmount() { return this.amount; } public void setAmount(String amount) { this.amount = amount; } public CustomsDeclareBuyerInfo getBuyerInfo() { return this.buyerInfo; } public void setBuyerInfo(CustomsDeclareBuyerInfo buyerInfo) { this.buyerInfo = buyerInfo; } public String getCustomsPlace() { return this.customsPlace; } public void setCustomsPlace(String customsPlace) { this.customsPlace = customsPlace; } public Long getDeclareMode() { return this.declareMode; } public void setDeclareMode(Long declareMode) { this.declareMode = declareMode; } public String getIsSplit() { return this.isSplit; } public void setIsSplit(String isSplit) { this.isSplit = isSplit; } public String getMerchantCustomsCode() { return this.merchantCustomsCode; } public void setMerchantCustomsCode(String merchantCustomsCode) { this.merchantCustomsCode = merchantCustomsCode; } public String getMerchantCustomsName() { return this.merchantCustomsName; } public void setMerchantCustomsName(String merchantCustomsName) { this.merchantCustomsName = merchantCustomsName; } public String getOutRequestNo() { return this.outRequestNo; } public void setOutRequestNo(String outRequestNo) { this.outRequestNo = outRequestNo; } public String getSubOutBizNo() { return this.subOutBizNo; } public void setSubOutBizNo(String subOutBizNo) { this.subOutBizNo = subOutBizNo; } public String getTradeNo() { return this.tradeNo; } public void setTradeNo(String tradeNo) { this.tradeNo = tradeNo; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
93e08eb7d9ed9dab407afb27bd82e8c811435f26
cde62d07c3f0adeb34bcadbf164a9d7b62d8d4d8
/SeleniumCucumber/src/com/training/selenium/utilities/Driver.java
6e105e9f4ee717295d341157fee0d4a01ee43527
[]
no_license
adithnaveen/sdet-2weeks
65b31ec697209702e933f5503ea4f86cbfa9fc8a
728dd92632f2858e800474012cda259273bb4369
refs/heads/master
2020-04-22T07:08:02.802134
2019-02-15T21:55:56
2019-02-15T21:55:56
170,211,115
0
0
null
null
null
null
UTF-8
Java
false
false
453
java
package com.training.selenium.utilities; public interface Driver { // KEYS String CHROME="webdriver.chrome.driver"; String IE ="webdriver.ie.driver"; String FIREFOX="webdriver.firefox.marionette"; // PATH String CHROME_PATH="C:\\SDET Works\\driver\\chromedriver.exe"; String IE_PATH32="C:\\SDET Works\\driver\\IEDriver_32Bit\\IEDriverServer.exe"; String IE_PATH64="C:\\SDET Works\\driver\\IEDriverServer.exe"; String FIREFOX_PATH=""; }
[ "adith.naveen@gmail.com" ]
adith.naveen@gmail.com
05c6512feac0e6e5c7ec27f63deb80905c301d2c
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project42/src/test/java/org/gradle/test/performance42_5/Test42_490.java
0030e5461eec8741cd4bdcf7b4eff061c233c35e
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
292
java
package org.gradle.test.performance42_5; import static org.junit.Assert.*; public class Test42_490 { private final Production42_490 production = new Production42_490("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
86d41839567c1009620da457dcf765851afa8e60
a78cbb3413a46c8b75ed2d313b46fdd76fff091f
/src/mobius.esc/escjava/tags/escjava-2-0a1/ESCTools/Javafe/java/javafe/parser/PragmaParser.java
0d543881337b856d7f5ceea8ef5646326f09ff9c
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
wellitongb/Mobius
806258d483bd9b893312d7565661dadbf3f92cda
4b16bae446ef5b91b65fd248a1d22ffd7db94771
refs/heads/master
2021-01-16T22:25:14.294886
2013-02-18T20:25:24
2013-02-18T20:25:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,399
java
/* Copyright 2000, 2001, Compaq Computer Corporation */ package javafe.parser; import javafe.util.CorrelatedReader; /** * <code>PragmaParser</code> objects are called by <code>Lex</code> * objects to parse pragmas out of pragma-containing comments. They * are also called to see if a comment contains pragmas in the first * place. See <code>Lex</code> for more details. * * <p> Pragmas are described using <code>Token</code> objects. The * <code>ttype</code> field of a pragma token must be one of * <code>TagConstants.LEXICALPRAGMA</code>, * <code>TagConstants.MODIFIERPRAGMA</code>, * <code>TagConstants.STMTPRAGMA</code>, or * <code>TagConstants.TYPEDECLELEMPRAGMA</code>; the * <code>auxVal</code> field must be filled have a type according to * the table in <code>Token</code>. * * @see javafe.parser.Token * @see javafe.parser.Lex */ public interface PragmaParser { /** * Decide whether a comment contains pragmas. When it encounters a * comment, a <code>Lex</code> object passes the first character of * the comment to the <code>checkTag</code> method of its * <code>PragmaParser</code>. If this call returns false, the * comment is assumed to contain no pragmas and thus is discarded. * If this call returns true, the comment may contain pragmas, so it * is converted into a <code>CorrelatedReader</code> and passed to * <code>restart</code>. (The <code>tag</code> argument is either a * <code>char</code> or <code>-1</code>; <code>-1</code> indicates * the empty comment.) */ boolean checkTag(int tag); /** * Restart a pragma parser on a new input stream. If * <code>this</code> already opened on another * <code>CorrelatedReader</code>, closes the old reader.<p> * <code>eolComment</code> is true to indicate that the correlated * reader stream is reading from a Java comment that begins with * "//" as opposed to a Java comment that begins with "/*". */ //@ requires in != null void restart(CorrelatedReader in, boolean eolComment); /** * Parse the next pragma. If none are left, returns * <code>false</code>; otherwise, returns <code>true</code> and * updates fields of <code>destination</code> to describe the * pragma. When <code>false</code> is returned, the pragma parser * is expected to close the underlying <code>CorrelatedReader</code> * and in other ways clean up resources. * * <p> This method requires that the <code>PragmaParser</code> is * "open;" that is, <code>restart</code> has been called and, since * the last call to <code>restart</code>, <code>getNextPragma</code> * has not returned false and <code>close</code> has not been * called. */ //@ requires destination != null boolean getNextPragma(Token destination); /** * Stop parsing the current reader. Sometimes a <code>Lex</code> * object will be stopped before its associated * <code>PragmaParser</code> has finished reading all pragmas out of * a comment (for example, when <code>Lex.restart</code> is called). * In this case, the <code>Lex</code> object calls * <code>PragmaParser.close</code>. This method should close the * underlying <code>CorrelatedReader</code> and in other ways clean * up resources. */ void close(); }
[ "nobody@c6399e9c-662f-4285-9817-23cccad57800" ]
nobody@c6399e9c-662f-4285-9817-23cccad57800
10f9ddf23beaefb722e1b7c6f64299db84712709
4c924e1e0b94d4d667cfd03a1ccaf18beb1d2e21
/work/SecurityCenter/src/com/miui/optimizecenter/cache/CacheGroupComparator.java
fcacb223ba8c64d6ed795b33f0a1c6c758a7a15e
[]
no_license
linux86/bestgames
b27c7d96db29cc42caedbcd44c897c7630b78631
c25585040cb75bc70508f0fb22ba1a7b36ec5ee0
refs/heads/master
2021-01-11T01:21:36.472880
2015-12-22T12:44:18
2015-12-22T12:44:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,165
java
package com.miui.optimizecenter.cache; import android.text.TextUtils; import com.miui.common.ApkIconHelper; import java.util.Comparator; import com.miui.optimizecenter.enums.CacheGroupSortType; import android.util.Log; import java.text.Collator; public class CacheGroupComparator implements Comparator<CacheGroupModel> { private CacheGroupSortType mSortType = CacheGroupSortType.SIZE; private final Collator mCollator = Collator.getInstance(); public CacheGroupComparator() { mSortType = CacheGroupSortType.SIZE; } public CacheGroupComparator(CacheGroupSortType sortType) { mSortType = sortType; } @Override public int compare(CacheGroupModel lhs, CacheGroupModel rhs){ if (mSortType == CacheGroupSortType.NAME){ return mCollator.compare(lhs.getAppName(), rhs.getAppName()); } else{ if(lhs.getTotalSize() > rhs.getTotalSize()){ return -1; } else if(lhs.getTotalSize() < rhs.getTotalSize()){ return 1; } else{ return 0; } } } }
[ "huwei@wandoujia.com" ]
huwei@wandoujia.com
27544920bf52b281299ddb51f7ea4cd81068974a
7bee1a02d05f0bb03d29bdf9fdcf976dda69d277
/src/org/netbeans/modules/groovy/editor/hints/infrastructure/GroovySelectionRule.java
147522fa05fde4da4d9b1b5cfd768e2d64c41094
[]
no_license
Valery-Sh/Netbeans-Groovy-Editor
f852ec7d2103e1ecde3541e9977941cfd3f7eff3
4932e014b7d571cbe0422a706e29a21142052634
refs/heads/master
2021-01-19T22:29:32.386719
2012-03-07T17:54:43
2012-03-07T17:54:43
3,651,826
0
1
null
null
null
null
UTF-8
Java
false
false
2,517
java
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. * * Oracle and Java are registered trademarks of Oracle and/or its affiliates. * Other names may be trademarks of their respective owners. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common * Development and Distribution License("CDDL") (collectively, the * "License"). You may not use this file except in compliance with the * License. You can obtain a copy of the License at * http://www.netbeans.org/cddl-gplv2.html * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the * specific language governing permissions and limitations under the * License. When distributing the software, include this License Header * Notice in each file and include the License file at * nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the GPL Version 2 section of the License file that * accompanied this code. If applicable, add the following below the * License Header, with the fields enclosed by brackets [] replaced by * your own identifying information: * "Portions Copyrighted [year] [name of copyright owner]" * * If you wish your version of this file to be governed by only the CDDL * or only the GPL Version 2, indicate your decision by adding * "[Contributor] elects to include this software in this distribution * under the [CDDL or GPL Version 2] license." If you do not indicate a * single choice of license, a recipient has the option to distribute * your version of this file under either the CDDL, the GPL Version 2 or * to extend the choice of license to its licensees as provided above. * However, if you add GPL Version 2 code and therefore, elected the GPL * Version 2 license, then the option applies only if the new code is * made subject to such option by the copyright holder. * * Contributor(s): * * Portions Copyrighted 2007 Sun Microsystems, Inc. */ package org.netbeans.modules.groovy.editor.hints.infrastructure; import java.util.List; import org.netbeans.modules.csl.api.Hint; import org.netbeans.modules.csl.api.Rule.SelectionRule; /** * Represents a rule to be run on text selection */ public abstract class GroovySelectionRule implements SelectionRule { public abstract void run(GroovyRuleContext context, List<Hint> result); }
[ "Valery@Valery-PC" ]
Valery@Valery-PC
ed88a2b4cf1216e3536e912f84e8b97e50c15214
d14d9ca4cf953fbf5b170187433063c66148811c
/app/src/main/java/ru/dorofeev/helpforrust/models/WeaponItemList.java
3153b03acad6bec04a66010fcf6abf513b92b405
[]
no_license
Feelini/helpForRust
121afb79677f64261559b2c14d9b20a1754f621e
b70df197d181bcf9c793f967d38657fc4b2911a3
refs/heads/master
2022-12-01T18:14:52.394000
2020-08-06T21:21:07
2020-08-06T21:21:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,259
java
package ru.dorofeev.helpforrust.models; import java.util.List; public class WeaponItemList { private WeaponsWithValue weaponsWithValue; private List<ItemWithValue> itemWithValues; private List<ItemWithValue> itemCompoundWithValues; public WeaponItemList(WeaponsWithValue weaponsWithValue, List<ItemWithValue> itemWithValues, List<ItemWithValue> itemCompoundWithValues) { this.weaponsWithValue = weaponsWithValue; this.itemWithValues = itemWithValues; this.itemCompoundWithValues = itemCompoundWithValues; } public WeaponsWithValue getWeaponsWithValue() { return weaponsWithValue; } public void setWeaponsWithValue(WeaponsWithValue weaponsWithValue) { this.weaponsWithValue = weaponsWithValue; } public List<ItemWithValue> getItemWithValues() { return itemWithValues; } public void setItemWithValues(List<ItemWithValue> itemWithValues) { this.itemWithValues = itemWithValues; } public List<ItemWithValue> getItemCompoundWithValues() { return itemCompoundWithValues; } public void setItemCompoundWithValues(List<ItemWithValue> itemCompoundWithValues) { this.itemCompoundWithValues = itemCompoundWithValues; } }
[ "user@example.com" ]
user@example.com
d54611dca6fcad4e095bf84799f8651432ccadb2
828f187acfd2874f0ecb5c4c71bd111d3af4a956
/app/src/main/java/com/cook/rotenzonew/Model/CheckListModel.java
28abc11e764baf91d5c2c77810eb22bb495ecc14
[]
no_license
raghsahu/RotenzoCook
351c32d02248ff0784539e128bb5136c7e31b9b1
8db2516a4d6c39a7435186f6b44667a08b4e9b50
refs/heads/master
2020-12-12T11:34:17.593660
2020-01-15T16:03:32
2020-01-15T16:03:32
234,117,718
0
0
null
null
null
null
UTF-8
Java
false
false
1,975
java
package com.cook.rotenzonew.Model; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.util.List; public class CheckListModel { // String user_id; // String ingredients; // String ingred_quantity; // String ingred_unit; // // // // public CheckListModel(String user_id, String ingredients, String ingred_quantity, String ingred_unit) { // this.user_id = user_id; // this.ingredients = ingredients; // this.ingred_quantity = ingred_quantity; // this.ingred_unit = ingred_unit; // } // // public String getUser_id() { // return user_id; // } // // public void setUser_id(String user_id) { // this.user_id = user_id; // } // // public String getIngredients() { // return ingredients; // } // // public void setIngredients(String ingredients) { // this.ingredients = ingredients; // } // // public String getIngred_quantity() { // return ingred_quantity; // } // // public String getIngred_unit() { // return ingred_unit; // } // // public void setIngred_unit(String ingred_unit) { // this.ingred_unit = ingred_unit; // } // // public void setIngred_quantity(String ingred_quantity) { // this.ingred_quantity = ingred_quantity; // } @SerializedName("result") @Expose private String result; @SerializedName("msg") @Expose private String msg; @SerializedName("data") @Expose private List<CheckListData> data = null; public String getResult() { return result; } public void setResult(String result) { this.result = result; } public String getMsg() { return msg; } public void setMsg(String msg) { this.msg = msg; } public List<CheckListData> getData() { return data; } public void setData(List<CheckListData> data) { this.data = data; } }
[ "raghvendra.19934@gmail.com" ]
raghvendra.19934@gmail.com
65e4c46e12e937c158878369d8d87a56832bce8d
7107fe4e329c3926c345968d9610bb47768aea7a
/stiletto-tests/src/test/java/com/github/marschall/stiletto/tests/injection/ArgumentsTest.java
5267dca327c09dae7505cccee941715c7e04e248
[]
no_license
marschall/stiletto
98d96083698956aa6b830ab1534c23d688ccb008
e3e98ad1841b7953a5c329209691be77363beaab
refs/heads/master
2023-04-22T21:24:46.305831
2021-05-02T13:24:29
2021-05-02T13:24:29
111,083,442
2
0
null
2021-05-02T13:25:11
2017-11-17T09:16:55
Java
UTF-8
Java
false
false
1,594
java
package com.github.marschall.stiletto.tests.injection; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class ArgumentsTest { private CaptureArgumentsAspect aspect; private CaptureArguments proxy; @BeforeEach public void setUp() { this.aspect = new CaptureArgumentsAspect(); CaptureArguments targetObject = new CaptureArguments(); this.proxy = new CaptureArguments_(targetObject, this.aspect); } @Test public void noArguments() { assertEquals("noArguments", this.proxy.noArguments()); assertNull(this.aspect.getArguments()); } @Test public void oneArgument() { assertEquals("oneArgument", this.proxy.oneArgument("one")); assertArrayEquals(new Object[] {"one"}, this.aspect.getArguments()); } @Test public void twoArguments() { assertEquals("twoArguments", this.proxy.twoArguments("one", "two")); assertArrayEquals(new Object[] {"one", "two"}, this.aspect.getArguments()); } @Test public void onePrimitiveArgument() { assertEquals("onePrimitiveArgument", this.proxy.onePrimitiveArgument(23)); assertArrayEquals(new Object[] {23}, this.aspect.getArguments()); } @Test public void arrayArgument() { assertEquals("arrayArgument", this.proxy.arrayArgument(new String[] {"1", "2"})); assertArrayEquals(new Object[][] {new String[] {"1", "2"}}, this.aspect.getArguments()); } }
[ "philippe.marschall@gmail.com" ]
philippe.marschall@gmail.com
e9aa160e0f79c794489ebe5bc3d2b614026e345f
3245eaa2e90e417d144f282313f57c7fa7e85327
/Integracao/IntegracaoCipEJB/src/br/com/sicoob/sisbr/sicoobdda/integracaocip/negocio/delegates/ProcessarEnvioArquivoDelegate.java
1851cd18c241cd048bda10e27858a8a3846161c1
[]
no_license
pabllo007/DDA
01ca636fc56cb7200d6d87d4c9f69e9eb68486db
e900c03b37e03231e929a08ce66a7ac0ac269a49
refs/heads/master
2022-11-30T19:00:02.651730
2019-10-27T21:25:14
2019-10-27T21:25:14
217,918,454
0
0
null
2022-11-24T06:24:00
2019-10-27T21:23:22
Java
ISO-8859-1
Java
false
false
2,935
java
/** * Projeto: SicoobDDA * Camada Projeto: sdda-integracao-cip-ejb * Pacote: br.com.sicoob.sisbr.sicoobdda.integracaocip.negocio.delegates * Arquivo: ProcessarEnvioMensagensDelegate.java * Data Criação: May 25, 2016 */ package br.com.sicoob.sisbr.sicoobdda.integracaocip.negocio.delegates; import java.util.Date; import br.com.sicoob.sisbr.sicoobdda.comum.excecao.ComumException; import br.com.sicoob.sisbr.sicoobdda.comum.excecao.ComumNegocioException; import br.com.sicoob.sisbr.sicoobdda.integracaocip.negocio.servicos.IntegracaoCipServico; import br.com.sicoob.sisbr.sicoobdda.integracaocip.negocio.servicos.ProcessarEnvioArquivoServico; import br.com.sicoob.sisbr.sicoobdda.integracaocip.negocio.servicos.locator.IntegracaoCipServiceLocator; /** * ProcessarEnvioMensagensDelegate * * @author Rafael.Silva */ public class ProcessarEnvioArquivoDelegate extends IntegracaoCipDelegate<IntegracaoCipServico> implements ProcessarEnvioArquivoServico { /** * {@inheritDoc} * * @see br.com.bancoob.negocio.servicos.BancoobServico#verificarDisponibilidade() */ public void verificarDisponibilidade() { localizarServico().verificarDisponibilidade(); } /** * {@inheritDoc} * * @see br.com.bancoob.negocio.delegates.BancoobDelegate#localizarServico() */ @Override protected ProcessarEnvioArquivoServico localizarServico() { return IntegracaoCipServiceLocator.getInstance().localizarProcessarEnvioArquivoServico(); } /** * {@inheritDoc} * * @see br.com.sicoob.sisbr.sicoobdda.integracaocip.negocio.servicos.ProcessarEnvioArquivoServico#registrarArquivo(java.util.List, java.lang.Long) */ public void registrarArquivo() throws ComumException { localizarServico().registrarArquivo(); } /** * {@inheritDoc} * * @see br.com.sicoob.sisbr.sicoobdda.integracaocip.negocio.servicos.ProcessarEnvioArquivoServico#gerarArquivo(java.lang.Long) */ public void gerarArquivo(Long idLogEnvioArquivoDDA) throws ComumException, ComumNegocioException { localizarServico().gerarArquivo(idLogEnvioArquivoDDA); } /** * {@inheritDoc} * * @see br.com.sicoob.sisbr.sicoobdda.integracaocip.negocio.servicos.ProcessarEnvioArquivoServico#postarArquivo(java.lang.Long) */ public void postarArquivo(Long idLogEnvioArquivoDDA) throws ComumException { localizarServico().postarArquivo(idLogEnvioArquivoDDA); } /** * {@inheritDoc} * * @see br.com.sicoob.sisbr.sicoobdda.integracaocip.negocio.servicos.ProcessarEnvioArquivoServico#tratarArquivosComErro(java.lang.Long, java.util.Date) */ public void tratarArquivosComErro(Long idLogEnvioArquivoDDA, Date dataMovimento) throws ComumException { localizarServico().tratarArquivosComErro(idLogEnvioArquivoDDA, dataMovimento); } }
[ "=" ]
=
1eaac30e2e608bb6875824eaa96ca356a294decd
bcbd05d4c06ff86da1a366f7c74f2778e8e38aa2
/javaBasics/src/main/java/designPatterns/chain/responsibility/Client.java
0ff79f50c064b52e11bc7493ec864f85570278d7
[]
no_license
heguitang1214/javaProject
72607208a62054a7711792ffc6e9f7fe4895d2e4
3c4c4ec8f0e81e9f0c786025aff4682a91b7e7d8
refs/heads/master
2022-12-23T13:48:16.085257
2020-01-12T05:23:47
2020-01-12T05:23:47
162,799,111
2
2
null
2022-12-16T11:53:54
2018-12-22T09:39:08
Java
UTF-8
Java
false
false
240
java
package designPatterns.chain.responsibility; public class Client { public Client() { } public PurchaseRequest sendRequst(int Type, int Number, float Price) { return new PurchaseRequest(Type, Number, Price); } }
[ "hgt11391214abc" ]
hgt11391214abc
865732a824753ff0d1ba11261f9f42e966195f99
5d0cb8fd005e28e41772c70a4b6a8ff2c88ec7bf
/src/string/RemoveKdigits402.java
e062b85715681a1366962dad9e925ad7ac703446
[]
no_license
zbtmaker/LeetCode
83bcc5932ea53e19a7cb3ca46def0837ded96cba
131d172bf7695914e5790ea9d908939b4587bb3e
refs/heads/master
2022-10-24T05:40:34.552318
2022-10-23T03:32:49
2022-10-23T03:32:49
179,952,532
0
0
null
null
null
null
UTF-8
Java
false
false
2,402
java
package string; import java.util.HashSet; import java.util.Set; public class RemoveKdigits402 { /** * 方法一:自底向上进行递归 * 方法二:自顶向下进行递归 * 方法三:动态规划 * * @param num 字符串 * @param k 要删除的字符数 * @return 删除之后能够构成的最小数字字符串 */ public String removeKdigits(String num, int k) { if (num.length() <= k) { return "0"; } return removeKdigitsByBottomUpEnumeration(num, k); } /** * 自底向上递归操作 * * @param num 字符串 * @param k 要删除的字符数 * @return 删除之后能够构成的最小数字字符串 */ private String removeKdigitsByBottomUpEnumeration(String num, int k) { Set<Integer> indexSet = new HashSet<>(k); int[] min = new int[]{Integer.MAX_VALUE}; recurRemoveKdigits(num, k, 0, 0, indexSet, min); return String.valueOf(min[0]); } /** * 自底向上递归主体 * * @param num 字符串 * @param k 要删除的的字符数 * @param count 已经删除的字符数 * @param i 递归当前的位置 * @param indexSet 要删除的字符索引集合 * @param min 最小值 */ private void recurRemoveKdigits(String num, int k, int count, int i, Set<Integer> indexSet, int[] min) { if (count == k) { min[0] = Math.min(min[0], filterIndex(indexSet, num)); } for (int j = i; j < num.length(); j++) { indexSet.add(j); count++; recurRemoveKdigits(num, k, count, j + 1, indexSet, min); count--; indexSet.remove(j); } } /** * 返回已删除的字符串之后的数字 * * @param indexSet 要删除的字符索引集合 * @param num 字符串 * @return 删除字符后的数字 */ private int filterIndex(Set<Integer> indexSet, String num) { StringBuilder sb = new StringBuilder(num.length() - indexSet.size()); for (int i = 0; i < num.length(); i++) { if (indexSet.contains(i)) { continue; } sb.append(num.charAt(i)); } return Integer.parseInt(sb.toString()); } }
[ "zoubaitao@gmail.com" ]
zoubaitao@gmail.com
a677d7eb6283efe7a4fae038ceb46241485b066f
884557ac73eff99ccb985febe0ed1c5a46a9969c
/Portals/SEP/src/main/java/com/smilecoms/sep/action/CallcentreActionBean.java
2bfc57c66e76fa44749f485b0d508e26bb33e17f
[]
no_license
vikaspshelar/SMILE
732ef4b80655f246b43997d8407653cf7ffddad0
7ffc19eafef4d53a33e3d4bc658a1266b1087b27
refs/heads/master
2023-07-17T14:21:28.863986
2021-08-28T07:08:39
2021-08-28T07:08:39
400,570,564
0
0
null
null
null
null
UTF-8
Java
false
false
4,798
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.smilecoms.sep.action; import com.smilecoms.commons.base.BaseUtils; import com.smilecoms.commons.sca.CCAgentData; import com.smilecoms.commons.sca.Customer; import com.smilecoms.commons.sca.CustomerQuery; import com.smilecoms.commons.sca.IncomingCCAgentCallData; import com.smilecoms.commons.sca.SCAWrapper; import com.smilecoms.commons.sca.StCustomerLookupVerbosity; import com.smilecoms.commons.sca.helpers.Permissions; import com.smilecoms.commons.stripes.*; import com.smilecoms.sep.helpers.*; import java.io.StringReader; import java.util.Arrays; import java.util.Iterator; import java.util.List; import net.sourceforge.stripes.action.*; /** * * @author Jason Penton */ public class CallcentreActionBean extends SmileActionBean { private static final String QUEUES_KEY = "env.cti.availablequeues"; private OptionTransfer optionTransfer; private final static String OPTION_TRANSFER_DELIMITER = ","; @DefaultHandler public Resolution showCallCentreLogin() { checkPermissions(Permissions.CALL_CENTRE_PABX); return getDDForwardResolution("/call_centre/login.jsp"); } public Resolution callCentreLogout() { //remove this agent from all the queues we know about checkPermissions(Permissions.CALL_CENTRE_PABX); String ccAgentExtension = getCallCentreAgentExtensionFromSession(); if (ccAgentExtension != null) { CCAgentData callcentreAgentLogoutData = new CCAgentData(); callcentreAgentLogoutData.setCCAgentExtension(ccAgentExtension); SCAWrapper.getUserSpecificInstance().logCCAgentOutQueues(callcentreAgentLogoutData); removeCallCentreAgentExtensionFromSession(); } deleteCookie(SESSION_KEY_CCAGENT_EXTENSION); setPageMessage("cc.logout.succeeded"); return getDDForwardResolution("/index.jsp"); } public Resolution lookForIncomingCall() { checkPermissions(Permissions.CALL_CENTRE_PABX); String extension = getCallCentreAgentExtensionFromSession(); if (extension == null) { return new StreamingResolution("text", new StringReader("nothing")); } log.debug("Agent extension is [{}]", extension); CCAgentData agentData = new CCAgentData(); agentData.setCCAgentExtension(extension); IncomingCCAgentCallData incomingCall = SCAWrapper.getUserSpecificInstance().checkForNewCCAgentCall(agentData); return new StreamingResolution("text", new StringReader(incomingCall.getNumber())); } public Resolution callCentreLogin() { checkPermissions(Permissions.CALL_CENTRE_PABX); CustomerQuery custQuery = new CustomerQuery(); custQuery.setCustomerId(getUserCustomerIdFromSession()); custQuery.setVerbosity(StCustomerLookupVerbosity.CUSTOMER); Customer sepUser = (SCAWrapper.getUserSpecificInstance().getCustomer(custQuery)); /* Retrieve values of queues to log into using OptionTransfer */ String newRight = optionTransfer.getNewRight(); String[] queueNames = newRight.split(OPTION_TRANSFER_DELIMITER); getCCQueueLoginData().getMemberQueues().addAll(Arrays.asList(queueNames)); getCCQueueLoginData().setCCAgentName(sepUser.getFirstName() + " " + sepUser.getLastName()); SCAWrapper.getUserSpecificInstance().logCCAgentIntoQueues(getCCQueueLoginData()); //set the session object to let us know we are an agent logged in to receive CTI events/popups setCallCentreAgentExtensionInSession(getCCQueueLoginData().getCCAgentExtension()); //We will also add a cookie which will help our CTI state remain across failover. This is beacuse not ALL //of the HTTP session is restored when we failover to another backend portal node. createCookie(SESSION_KEY_CCAGENT_EXTENSION, getCCQueueLoginData().getCCAgentExtension(), 3660*24*7); setPageMessage("cc.login.succeeded"); return getDDForwardResolution("/index.jsp"); } public String[] getAvailableQueues() { List<String> availableQueues = BaseUtils.getPropertyAsList(QUEUES_KEY); String[] queues = new String[availableQueues.size()]; Iterator<String> it = availableQueues.iterator(); int i = 0; while (it.hasNext()) { queues[i++] = it.next(); } return queues; } public void setAvailableQueues(String[] availableQueues) { } public OptionTransfer getOptionTransfer() { return optionTransfer; } public void setOptionTransfer(OptionTransfer optionTransfer) { this.optionTransfer = optionTransfer; } }
[ "sbaranwal@futurerx.com" ]
sbaranwal@futurerx.com
11e39a414a6182f73b4cbf0f481240e0dd6466f8
8c085f12963e120be684f8a049175f07d0b8c4e5
/castor/branches/EXOLAB/castor-2002/castor/src/main/org/exolab/castor/builder/SGIdRef.java
2f203964198babe0df3cc2b19d05071746bc08e9
[]
no_license
alam93mahboob/castor
9963d4110126b8f4ef81d82adfe62bab8c5f5bce
974f853be5680427a195a6b8ae3ce63a65a309b6
refs/heads/master
2020-05-17T08:03:26.321249
2014-01-01T20:48:45
2014-01-01T20:48:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,674
java
/** * Redistribution and use of this software and associated documentation * ("Software"), with or without modification, are permitted provided * that the following conditions are met: * * 1. Redistributions of source code must retain copyright * statements and notices. Redistributions must also contain a * copy of this document. * * 2. Redistributions in binary form must reproduce the * above copyright notice, this list of conditions and the * following disclaimer in the documentation and/or other * materials provided with the distribution. * * 3. The name "Exolab" must not be used to endorse or promote * products derived from this Software without prior written * permission of Exoffice Technologies. For written permission, * please contact info@exolab.org. * * 4. Products derived from this Software may not be called "Exolab" * nor may "Exolab" appear in their names without prior written * permission of Exoffice Technologies. Exolab is a registered * trademark of Exoffice Technologies. * * 5. Due credit should be given to the Exolab Project * (http://www.exolab.org/). * * THIS SOFTWARE IS PROVIDED BY EXOFFICE TECHNOLOGIES AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL * EXOFFICE TECHNOLOGIES OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * Copyright 1999 (C) Exoffice Technologies Inc. All Rights Reserved. * * $Id$ */ package org.exolab.castor.builder; import org.exolab.castor.builder.types.*; import org.exolab.castor.xml.JavaXMLNaming; import org.exolab.javasource.*; import java.util.Vector; /** * @author <a href="mailto:kvisco@exoffice.com">Keith Visco</a> * @version $Revision$ $Date$ **/ public class SGIdRef extends SGAttrMember { public SGIdRef(String name) { super(new XSIdRef(), name); } //-- SGId public JMethod[] createAccessMethods() { JMethod[] methods = new JMethod[2]; String mname = getName().substring(1); JType jType = SGTypes.Object; //-- create get method methods[0] = new JMethod(jType, "get"+mname); JSourceCode jsc = methods[0].getSourceCode(); jsc.add("return this."); jsc.append(getName()); jsc.append(".get();"); //-- create set method methods[1] = new JMethod(null, "set"+mname); methods[1].addParameter(new JParameter(getXSType().getJType(), getName())); jsc = methods[1].getSourceCode(); jsc.add("this."); jsc.append(getName()); jsc.append(" = "); jsc.append(getName()); jsc.append(";"); return methods; } //-- createAccessMethods /** * **/ public void generateMarshalCode(JSourceCode jsc) { jsc.add("atts.addAttribute(\""); jsc.append(getXMLName()); jsc.append("\", null, this."); jsc.append(getName()); jsc.append(".get().getReferenceId());"); } //-- generateMarshalCode } //-- SGIdRef
[ "nobody@b24b0d9a-6811-0410-802a-946fa971d308" ]
nobody@b24b0d9a-6811-0410-802a-946fa971d308
2f73e527070819335bdf310ccb2e0d85e3db6619
bcb9961ec44a8aef1a87965e47547d98e45d7064
/petsdemo/src/main/java/com/nfinity/fastcode/petsdemo/application/visits/dto/CreateVisitsOutput.java
3cbc1f927da473a36c5325b4206c19a091f7846c
[]
no_license
musman013/petsdemo
51a19e7c760e991e284ca77a6f6e99bb0ba39236
7e8fc3dcfc299ffc0ba857ebe0c025ee5ca30c26
refs/heads/master
2022-09-19T10:34:32.669915
2020-04-01T07:30:28
2020-04-01T07:30:28
252,103,610
0
0
null
2022-05-20T21:31:33
2020-04-01T07:30:21
Java
UTF-8
Java
false
false
1,049
java
package com.nfinity.fastcode.petsdemo.application.visits.dto; import java.util.Date; public class CreateVisitsOutput { private String description; private Integer id; private Date visitDate; private Integer petId; private String petsDescriptiveField; public Integer getPetId() { return petId; } public void setPetId(Integer petId){ this.petId = petId; } public String getPetsDescriptiveField() { return petsDescriptiveField; } public void setPetsDescriptiveField(String petsDescriptiveField){ this.petsDescriptiveField = petsDescriptiveField; } public String getDescription() { return description; } public void setDescription(String description){ this.description = description; } public Integer getId() { return id; } public void setId(Integer id){ this.id = id; } public Date getVisitDate() { return visitDate; } public void setVisitDate(Date visitDate){ this.visitDate = visitDate; } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
0fb7110c86e0492e6e7819290594d549e33e5d7f
4192d19e5870c22042de946f211a11c932c325ec
/j-hi-20110823/src/org/hi/common/tools/highcharts/context/States.java
d5d4675e2f8c3e1a3ad7e23f7d173b4d8e310a1a
[]
no_license
arthurxiaohz/ic-card
1f635d459d60a66ebda272a09ba65e616d2e8b9e
5c062faf976ebcffd7d0206ad650f493797373a4
refs/heads/master
2021-01-19T08:15:42.625340
2013-02-01T06:57:41
2013-02-01T06:57:41
39,082,049
2
1
null
null
null
null
UTF-8
Java
false
false
903
java
package org.hi.common.tools.highcharts.context; import java.io.Serializable; import org.hi.common.tools.ChartSymbol; public class States implements Serializable,ChartSymbol{ private Hover hover; public Hover getHover() { return hover; } public void setHover(Hover hover) { this.hover = hover; } public class Hover implements Serializable{ private Boolean enabled; private Integer lineWidth; private MarkerElement marker; public Boolean getEnabled() { return enabled; } public void setEnabled(Boolean enabled) { this.enabled = enabled; } public Integer getLineWidth() { return lineWidth; } public void setLineWidth(Integer lineWidth) { this.lineWidth = lineWidth; } public MarkerElement getMarker() { return marker; } public void setMarker(MarkerElement marker) { this.marker = marker; } } }
[ "Angi.Wang.AFE@gmail.com" ]
Angi.Wang.AFE@gmail.com
a1b2de6768db7358c39a878fd1519de5c478e70f
80c66c984ce60bc7d17e02d04507b87b2cc684ff
/net/minecraft/command/CommandServerKick.java
e19b146da055f65dbaae83d10ca2c661b7721416
[ "WTFPL" ]
permissive
MinecraftModdedClients/Resilience-Client-Source
26d9ed318a41797660e05ed89df24d37fd48482e
4a3b2bd906f17b99be9e5eceaf9d6fcfc1470c01
refs/heads/master
2022-12-31T23:28:15.559468
2020-10-02T12:01:18
2020-10-02T12:01:18
39,420,083
111
45
WTFPL
2020-10-02T12:01:19
2015-07-21T02:41:38
Java
UTF-8
Java
false
false
2,334
java
package net.minecraft.command; import java.util.List; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.server.MinecraftServer; public class CommandServerKick extends CommandBase { private static final String __OBFID = "CL_00000550"; public String getCommandName() { return "kick"; } /** * Return the required permission level for this command. */ public int getRequiredPermissionLevel() { return 3; } public String getCommandUsage(ICommandSender par1ICommandSender) { return "commands.kick.usage"; } public void processCommand(ICommandSender par1ICommandSender, String[] par2ArrayOfStr) { if (par2ArrayOfStr.length > 0 && par2ArrayOfStr[0].length() > 1) { EntityPlayerMP var3 = MinecraftServer.getServer().getConfigurationManager().getPlayerForUsername(par2ArrayOfStr[0]); String var4 = "Kicked by an operator."; boolean var5 = false; if (var3 == null) { throw new PlayerNotFoundException(); } else { if (par2ArrayOfStr.length >= 2) { var4 = func_147178_a(par1ICommandSender, par2ArrayOfStr, 1).getUnformattedText(); var5 = true; } var3.playerNetServerHandler.kickPlayerFromServer(var4); if (var5) { notifyAdmins(par1ICommandSender, "commands.kick.success.reason", new Object[] {var3.getCommandSenderName(), var4}); } else { notifyAdmins(par1ICommandSender, "commands.kick.success", new Object[] {var3.getCommandSenderName()}); } } } else { throw new WrongUsageException("commands.kick.usage", new Object[0]); } } /** * Adds the strings available in this command to the given list of tab completion options. */ public List addTabCompletionOptions(ICommandSender par1ICommandSender, String[] par2ArrayOfStr) { return par2ArrayOfStr.length >= 1 ? getListOfStringsMatchingLastWord(par2ArrayOfStr, MinecraftServer.getServer().getAllUsernames()) : null; } }
[ "admin@timo.de.vc" ]
admin@timo.de.vc
37ec780547f0b4f99cea267e536690e05d0359f3
d0a20d78a7aa7c38bcf6fbd942111de2ea68391f
/src/main/java/net/earthcomputer/multiconnect/protocols/v1_12_2/mixin/MixinStructureBlockScreen1.java
7f8ca5c06465a876f09834db6ac73775a2ff3108
[ "MIT" ]
permissive
creeper123123321/multiconnect
2937b03298983e861993071bb17f2be3582525a4
6f56aceb60ad353a83c25e5c44f4a3413735f7e3
refs/heads/master
2023-06-15T04:28:32.323135
2021-07-13T10:27:06
2021-07-13T10:27:06
277,079,348
0
0
MIT
2020-07-04T09:29:52
2020-07-04T09:29:51
null
UTF-8
Java
false
false
1,211
java
package net.earthcomputer.multiconnect.protocols.v1_12_2.mixin; import net.earthcomputer.multiconnect.api.Protocols; import net.earthcomputer.multiconnect.impl.ConnectionInfo; import net.minecraft.client.font.TextRenderer; import net.minecraft.client.gui.widget.TextFieldWidget; import net.minecraft.text.Text; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; @Mixin(targets = "net.minecraft.client.gui.screen.ingame.StructureBlockScreen$1") public class MixinStructureBlockScreen1 extends TextFieldWidget { public MixinStructureBlockScreen1(TextRenderer textRenderer, int x, int y, int width, int height, TextFieldWidget copyFrom, Text text) { super(textRenderer, x, y, width, height, copyFrom, text); } @Inject(method = "charTyped(CI)Z", at = @At("HEAD"), cancellable = true) private void onCharTyped(char chr, int keyCode, CallbackInfoReturnable<Boolean> ci) { if (ConnectionInfo.protocolVersion <= Protocols.V1_12_2) { ci.setReturnValue(super.charTyped(chr, keyCode)); } } }
[ "burtonjae@hotmail.co.uk" ]
burtonjae@hotmail.co.uk
d8f34985fb68ff31995b1457f5d47789d9c2f87e
4004a2013924b3819770d6a4f6bc0c2897631d5c
/providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/domain/InternetGatewayAttachment.java
d20fc54eb428879b361c3b39a93f463b79b473c6
[ "Apache-2.0" ]
permissive
Comcast/jclouds
c3a4a6d7c2fe5d1803ca55accdd134d5bb6d7275
18eb7f3d383a280f6dd8f8c24978f578c5e88780
refs/heads/master
2021-05-12T16:29:09.686492
2018-01-08T07:06:32
2018-01-10T06:26:53
117,011,918
1
2
null
2018-10-17T22:53:07
2018-01-10T21:18:17
Java
UTF-8
Java
false
false
2,059
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.jclouds.aws.ec2.domain; import org.jclouds.javax.annotation.Nullable; import com.google.auto.value.AutoValue; /** * Amazon EC2 Internet Gateway attachment to VPC. * * @see <a href="http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_InternetGatewayAttachment.html" >doc</a> */ @AutoValue public abstract class InternetGatewayAttachment { public enum State { UNRECOGNIZED, ATTACHING, ATTACHED, AVAILABLE, DETATCHING, DETATCHED; public String value() { return name().toLowerCase(); } public static State fromValue(String v) { try { return valueOf(v.toUpperCase()); } catch (IllegalArgumentException e) { return UNRECOGNIZED; } } } @Nullable public abstract State state(); @Nullable public abstract String vpcId(); InternetGatewayAttachment() {} public static Builder builder() { return new AutoValue_InternetGatewayAttachment.Builder(); } @AutoValue.Builder public abstract static class Builder { public abstract Builder state(State state); public abstract Builder vpcId(String vpcId); public abstract InternetGatewayAttachment build(); } }
[ "nacx@apache.org" ]
nacx@apache.org
4084418b6f1e5d85a054f87fd4f2d3358ca6801e
ed24cf12cbe4a55077e450b25ffe9d41d9a7cbac
/app/src/main/java/com/actiknow/famdent/adapter/SpinnerAdapter.java
c95c3f0708a53e21ddbad8d93a80eb32584cfbd5
[]
no_license
kammy92/Famdent
41686c6f714f28f0a08fd53fe774e93a200c272f
983831f368a24b30fa80a887595ad3f86fa1343b
refs/heads/master
2021-01-20T04:36:52.491894
2017-07-12T11:10:31
2017-07-12T11:10:31
89,704,895
0
0
null
null
null
null
UTF-8
Java
false
false
2,485
java
package com.actiknow.famdent.adapter; import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; import com.actiknow.famdent.R; import com.actiknow.famdent.utils.Utils; import java.util.List; public class SpinnerAdapter extends ArrayAdapter<String> { Activity activity; LayoutInflater inflater; TextView tvUserType; String[] user_type; public SpinnerAdapter (Context context, int resource) { super (context, resource); } public SpinnerAdapter (Context context, int resource, int textViewResourceId) { super (context, resource, textViewResourceId); } public SpinnerAdapter (Activity activity, int resource, String[] objects) { super (activity, resource, objects); this.activity = activity; user_type = objects; inflater = (LayoutInflater) activity.getSystemService (Context.LAYOUT_INFLATER_SERVICE); } public SpinnerAdapter (Context context, int resource, int textViewResourceId, String[] objects) { super (context, resource, textViewResourceId, objects); } public SpinnerAdapter (Context context, int resource, List<String> objects) { super (context, resource, objects); } public SpinnerAdapter (Context context, int resource, int textViewResourceId, List<String> objects) { super (context, resource, textViewResourceId, objects); } @Override public View getDropDownView (int position, View convertView, ViewGroup parent) { return getCustomView (position, convertView, parent); } @Override public View getView (int position, View convertView, ViewGroup parent) { return getCustomView (position, convertView, parent); } public View getCustomView (int position, View convertView, ViewGroup parent) { View row = inflater.inflate (R.layout.spinner_item, parent, false); tvUserType = (TextView) row.findViewById (R.id.tvUserType); if (position == 0) { tvUserType.setEnabled (false); tvUserType.setTextColor (activity.getResources ().getColor (R.color.text_color_grey_light)); } else { tvUserType.setEnabled (true); } tvUserType.setText (user_type[position]); Utils.setTypefaceToAllViews (activity, tvUserType); return row; } }
[ "karman.singhh@gmail.com" ]
karman.singhh@gmail.com
47a21191da9267ba2202e29a95298ef49d2489af
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/5/5_64761d759a06dfdba06ac51a1664ecbeeba09583/FileEvent/5_64761d759a06dfdba06ac51a1664ecbeeba09583_FileEvent_s.java
c433e4634a0afd76cac3f38667165496656132f4
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
931
java
package org.flowerplatform.file_event; import java.io.File; /** * * @author Tache Razvan Mihai * */ public class FileEvent { public static final int FILE_CLOSED = 1; public static final int FILE_CREATED = 2; public static final int FILE_DELETED = 3; public static final int FILE_MODIFIED = 4; public static final int FILE_OPENED = 5; public static final int FILE_RENAMED = 6; private int event; private File file; private File oldFile = null; public FileEvent(File file,int event) { this.file = file; this.event = event; } public FileEvent(File file,int event, File oldFile) { this.file = file; this.event = event; this.oldFile = oldFile; } public int getEvent() { return event; } public File getFile() { return file; } public File getOldFile() { return oldFile; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
81612616da992749669bda676fd3414b69edd6b9
1a83f3f213dca04890764ac096ba3613f50e5665
/src/main/java/io/server/game/world/entity/combat/strategy/player/custom/KarilsStrategy.java
499ce56fb1946154a5bfa9617d67969f73f457ae
[]
no_license
noveltyps/NewRunityRebelion
52dfc757d6f784cce4d536c509bcdd6247ae57ef
6b0e5c0e7330a8a9ee91c691fb150cb1db567457
refs/heads/master
2020-05-20T08:44:36.648909
2019-05-09T17:23:50
2019-05-09T17:23:50
185,468,893
1
1
null
null
null
null
UTF-8
Java
false
false
875
java
package io.server.game.world.entity.combat.strategy.player.custom; import io.server.game.world.entity.combat.CombatType; import io.server.game.world.entity.combat.attack.FightType; import io.server.game.world.entity.combat.strategy.player.PlayerRangedStrategy; import io.server.game.world.entity.mob.Mob; import io.server.game.world.entity.mob.player.Player; public class KarilsStrategy extends PlayerRangedStrategy { private static final KarilsStrategy INSTANCE = new KarilsStrategy(); public String name() { return "Karil's crossbow"; } @Override public CombatType getCombatType() { return CombatType.RANGED; } @Override public int getAttackDelay(Player attacker, Mob defender, FightType fightType) { return 2; } /** Instane's the class to be called upon,and applied to an item. **/ public static KarilsStrategy get() { return INSTANCE; } }
[ "43006455+donvlee97@users.noreply.github.com" ]
43006455+donvlee97@users.noreply.github.com
a96117a59902b6655a70293e074954a40dab07f9
53d677a55e4ece8883526738f1c9d00fa6560ff7
/com/tencent/mm/ui/chatting/viewitems/al$a$1.java
ffdc25d1cbcae925d32d26719b4caff38aaf38a3
[]
no_license
0jinxing/wechat-apk-source
544c2d79bfc10261eb36389c1edfdf553d8f312a
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
refs/heads/master
2020-06-07T20:06:03.580028
2019-06-21T09:17:26
2019-06-21T09:17:26
193,069,132
9
4
null
null
null
null
UTF-8
Java
false
false
1,336
java
package com.tencent.mm.ui.chatting.viewitems; import android.content.Context; import android.content.Intent; import android.view.View; import android.view.View.OnClickListener; import com.tencent.matrix.trace.core.AppMethodBeat; import com.tencent.mm.g.c.cy; import com.tencent.mm.ui.base.b; import com.tencent.mm.ui.chatting.TextPreviewUI; import com.tencent.mm.ui.widget.MMNeat7extView; final class al$a$1 implements View.OnClickListener { al$a$1(al.a parama, al.f paramf) { } public final void onClick(View paramView) { AppMethodBeat.i(33285); Intent localIntent = new Intent(paramView.getContext(), TextPreviewUI.class); localIntent.addFlags(67108864); ay localay = (ay)this.zgL.zgQ.getTag(); if (localay != null) { CharSequence localCharSequence = this.zgL.zgQ.dPr(); localIntent.putExtra("Chat_Msg_Id", localay.cKd.field_msgId); localIntent.putExtra("key_chat_text", localCharSequence); paramView.getContext().startActivity(localIntent); b.hL(paramView.getContext()); } AppMethodBeat.o(33285); } } /* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes6-dex2jar.jar * Qualified Name: com.tencent.mm.ui.chatting.viewitems.al.a.1 * JD-Core Version: 0.6.2 */
[ "172601673@qq.com" ]
172601673@qq.com
a8c835761ac5ae34bc45db53541e46b22b1adbfc
f20e1ecf2d473e93805b7967a771be0c57b4d836
/src/main/java/task16_transportation_lambda/cargo/exception/unckecked/CargoDeleteConstraintViolationException.java
3def9197483660080826f2b8f256ec4452853bea
[]
no_license
Tadashimi/EpamTasks
154fee6f1e322a4d4326678e45af3c611151c7b1
b3c9774ea9273614b5504ffc4085ed9493643832
refs/heads/master
2023-07-20T01:51:44.709725
2023-04-09T19:37:34
2023-04-09T19:37:34
225,715,328
1
0
null
2023-07-07T21:58:36
2019-12-03T21:03:51
Java
UTF-8
Java
false
false
608
java
package task16_transportation_lambda.cargo.exception.unckecked; import task16_transportation_lambda.common.business.exception.unchecked.OurCompanyUncheckedException; public class CargoDeleteConstraintViolationException extends OurCompanyUncheckedException { private static final String MESSAGE = "Cant delete cargo with id '%s'. There are transportations which relates to it!"; public CargoDeleteConstraintViolationException(String message) { super(message); } public CargoDeleteConstraintViolationException(long cargoId) { this(String.format(MESSAGE, cargoId)); } }
[ "tadashimi777@gmail.com" ]
tadashimi777@gmail.com
4c421d4cf25e8e4b38584c764a65d39c1b592be7
aeb0bc3c42c1b7182a329afc33b9f07af8d2fc0f
/src/main/java/leetcode/easy/E70_ClimbingStairs.java
576414fe009b5e5c8c194b0a66ad700a44dde8cb
[]
no_license
fighterhit/code-set
9d4bda8e99ee4b76efdc1d0f58e6b94fb37408db
d472676a631473ae9d2e61c158eae09c26700d1b
refs/heads/master
2021-06-02T12:06:23.959568
2020-08-22T04:47:58
2020-08-22T04:47:58
132,473,673
1
1
null
null
null
null
UTF-8
Java
false
false
1,446
java
package leetcode.easy; /** * You are climbing a stair case. It takes n steps to reach to the top. * Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? * Note: Given n will be a positive integer. * <p> * Example 1: * Input: 2 * Output: 2 * Explanation: There are two ways to climb to the top. * 1. 1 step + 1 step * 2. 2 steps * <p> * Example 2: * Input: 3 * Output: 3 * Explanation: There are three ways to climb to the top. * 1. 1 step + 1 step + 1 step * 2. 1 step + 2 steps * 3. 2 steps + 1 step * n级台阶的走法 = 先走一级后,n-1级台阶的走法 + 先走两级后,n-2级台阶的走法。即 f(n) = f(n-1)+f(n-2) */ public class E70_ClimbingStairs { //递归超时 public int climbStairs(int n) { if (n <= 0 || n == 1 || n == 2) { return n; } return climbStairs(n - 1) + climbStairs(n - 2); } //递归超时 public int climbStairs2(int n) { if (n < 2) { return 1; } int a = 1, b = 1, c = 2; for (int i = 2; i <= n; i++) { c = a + b; a = b; b = c; } return c; } //DP public int climbStairs3(int n) { int[] dp = new int[n + 1]; dp[0] = 1; dp[1] = 1; for (int i = 2; i <= n; i++) { dp[i] = dp[i - 1] + dp[i - 2]; } return dp[n]; } }
[ "fighterhit@163.com" ]
fighterhit@163.com
583ed43f36cb5195df515ff3727d65c6572198b1
a23fa133aa4959a5eba721bcab9f0a0d58d28306
/src/main/java/com/logistics/plan/controller/NodeController.java
c3acfa0dbf9b21cc4a9a9876a34e6b109ff6a2c0
[]
no_license
a97659096/logistics_plan
1ca621b454f13f0544f1391b15f967a2f061d469
e0dcd8ffff3594aae7cd23f96ae381a785b63d0a
refs/heads/master
2023-03-14T06:13:22.387616
2021-02-23T06:18:33
2021-02-23T06:18:33
341,449,611
0
0
null
null
null
null
UTF-8
Java
false
false
2,147
java
package com.logistics.plan.controller; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.logistics.plan.domain.entity.Mail; import com.logistics.plan.domain.entity.Node; import com.logistics.plan.service.MailService; import com.logistics.plan.service.NodeService; import com.logistics.plan.utils.R; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.List; import java.util.Map; /** * <p> * 前端控制器 * </p> * * @author tianshihao * @since 2021-02-22 */ @RestController @RequestMapping("/node") @Api(tags = "NodeController", description = "节点控制器") public class NodeController { @Autowired private NodeService nodeService; @ApiOperation("新增") @PostMapping("/save") public R save(@RequestBody Node node){ nodeService.save(node); return R.ok(); } /** * 列表 */ @ApiOperation("查询列表") @GetMapping("/list") public R list(Page page){ IPage iPage = nodeService.page(page); return R.ok(iPage); } /** * 修改 */ @ApiOperation("修改") @PutMapping("/update") public R update(@RequestBody Node node){ nodeService.updateById(node); return R.ok(); } /** * 删除 */ @ApiOperation("删除") @DeleteMapping("/delete/{nodeId}") public R delete(@PathVariable Long nodeId){ nodeService.removeById(nodeId); return R.ok(); } @ApiOperation("获取省份下拉列表") @GetMapping("province-list") public R provinceList(){ List<Map<String, String>> maps = nodeService.selectProvinceList(); return R.ok(maps); } @ApiOperation("根据省份code获取城市下拉列表") @GetMapping("city-list") public R cityList(@RequestParam String pCode){ List<Map<String, String>> maps = nodeService.selectCityListByPCode(pCode); return R.ok(maps); } }
[ "97659096@qq.com" ]
97659096@qq.com
3884e960aa89ae8e4913b1a6e7fc679fea51deac
ddec46506cbdee03b495b7bc287b14abab12c701
/jdk1.8/src/com/sun/org/apache/xerces/internal/xs/XSMultiValueFacet.java
1ab2822d6ef9b197344a39f3297869bff5725fe2
[]
no_license
kvenLin/JDK-Source
f86737d3761102933c4b87730bca8928a5885287
1ff43b09f1056d91de97356be388d58c98ba1982
refs/heads/master
2023-08-10T11:26:59.051952
2023-07-20T06:48:45
2023-07-20T06:48:45
161,105,850
60
24
null
2022-06-17T02:19:27
2018-12-10T02:37:12
Java
UTF-8
Java
false
false
1,380
java
/* * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ /* * Copyright 2003,2004 The Apache Software Foundation. * * 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.sun.org.apache.xerces.internal.xs; /** * Describes a multi-value constraining facets: pattern and enumeration. */ public interface XSMultiValueFacet extends XSObject { /** * The name of the facet, i.e. <code>FACET_ENUMERATION</code> and * <code>FACET_PATTERN</code> (see <code>XSSimpleTypeDefinition</code>). */ public short getFacetKind(); /** * Values of this facet. */ public StringList getLexicalFacetValues(); /** * A sequence of [annotations] or an empty <code>XSObjectList</code>. */ public XSObjectList getAnnotations(); }
[ "1256233771@qq.com" ]
1256233771@qq.com
4ab2606f0d4a1e5dbdf15924de59ae1ec0fda225
019351eb9567fefa8c9c15588899b52edbb68616
/ArtOfConcurrency/src/cn/shyshetxwh/v6/CountTask.java
d58d8e95d7d05acb0240431187f78a8f6463e8e6
[]
no_license
shyshetxwh/selfstudy
3220bbdee656f659a8890053d12e7a792bc67ad6
9b536e83243214a9ea37ff46a48b72d5d242ef2b
refs/heads/master
2023-04-02T09:52:44.067355
2021-04-02T13:33:46
2021-04-02T13:33:46
352,621,879
0
0
null
null
null
null
UTF-8
Java
false
false
1,511
java
package cn.shyshetxwh.v6; import java.util.concurrent.ExecutionException; import java.util.concurrent.ForkJoinPool; import java.util.concurrent.Future; import java.util.concurrent.RecursiveTask; /** * FileName: CountTask * Author: Administrator+shyshetxwh * Date: 2021/1/12 0012 21:33 */ public class CountTask extends RecursiveTask<Integer> { private static final int THRESHOLD = 2; private int start; private int end; public CountTask(int start, int end) { this.start = start; this.end = end; } @Override protected Integer compute() { int sum = 0; boolean canCompute = (end - start) <= THRESHOLD; if (canCompute) { for (int i = start; i <= end; i++) { sum += i; } } else { int middle = (start + end) / 2; CountTask leftTask = new CountTask(start, middle); CountTask rightTask = new CountTask(middle + 1, end); leftTask.fork(); rightTask.fork(); Integer leftResult = leftTask.join(); Integer rightResult = rightTask.join(); sum = leftResult + rightResult; } return sum; } public static void main(String[] args) throws ExecutionException, InterruptedException { ForkJoinPool pool = new ForkJoinPool(); CountTask task = new CountTask(1, 4); Future<Integer> result = pool.submit(task); System.out.println(result.get()); } }
[ "shyshetxwh@163.com" ]
shyshetxwh@163.com
81f3a13b12926d4467cf6581bb130247f6bed4ae
7072aaf1715591e8f63075b92e12ad4546abcda2
/src/main/java/se/swedsoft/bookkeeping/print/report/SSCustomerListPrinter.java
6960b4a543ba7acf8a48805418f6f7be60b94676
[]
no_license
Kenstream/JFS
24ac23cd6eebb30b8de221ee2148ecebc2ce0199
61e1045ad77913629a45d10ccecdde7d200fea9f
refs/heads/master
2021-03-12T23:54:39.465123
2015-01-20T11:51:56
2015-01-20T11:51:56
29,526,257
0
0
null
null
null
null
UTF-8
Java
false
false
3,372
java
package se.swedsoft.bookkeeping.print.report; import se.swedsoft.bookkeeping.print.SSPrinter; import se.swedsoft.bookkeeping.print.util.SSDefaultJasperDataSource; import se.swedsoft.bookkeeping.data.SSProduct; import se.swedsoft.bookkeeping.data.SSAccount; import se.swedsoft.bookkeeping.data.SSProductRow; import se.swedsoft.bookkeeping.data.SSCustomer; import se.swedsoft.bookkeeping.data.system.SSDB; import se.swedsoft.bookkeeping.gui.util.SSBundle; import se.swedsoft.bookkeeping.gui.util.model.SSDefaultTableModel; import se.swedsoft.bookkeeping.calc.math.SSCustomerMath; import se.swedsoft.bookkeeping.SSBookkeeping; import java.util.List; import java.util.Collections; import java.util.Comparator; import java.text.DateFormat; /** * Date: 2006-mar-03 * Time: 15:32:42 */ public class SSCustomerListPrinter extends SSPrinter { private List<SSCustomer> iCustomers; /** * */ public SSCustomerListPrinter() { this( SSDB.getInstance().getCustomers() ); } /** * */ public SSCustomerListPrinter( List<SSCustomer> iCustomers){ super(); // Get all orders this.iCustomers = iCustomers; setPageHeader ("header.jrxml"); setColumnHeader("customerlist.jrxml"); setDetail ("customerlist.jrxml"); } /** * Gets the title file for this repport * * @return */ public String getTitle() { return SSBundle.getBundle().getString("customerlistreport.title"); } /** * @return SSDefaultTableModel */ protected SSDefaultTableModel getModel() { SSDefaultTableModel<SSCustomer> iModel = new SSDefaultTableModel<SSCustomer>() { public Class getType() { return SSAccount.class; } public Object getValueAt(int rowIndex, int columnIndex) { Object value = null; SSCustomer iCustomer = getObject(rowIndex); switch (columnIndex) { case 0 : value = iCustomer.getNumber(); break; case 1: value = iCustomer.getName(); break; case 2: value = iCustomer.getYourContactPerson(); break; case 3: value = iCustomer.getRegistrationNumber(); break; case 4: value = iCustomer.getPhone1(); break; case 5: value = iCustomer.getTelefax(); break; } return value; } }; iModel.addColumn("customer.number"); iModel.addColumn("customer.name"); iModel.addColumn("customer.contact"); iModel.addColumn("customer.registrationnumber"); iModel.addColumn("customer.phone"); iModel.addColumn("customer.telefax"); Collections.sort(iCustomers, new Comparator<SSCustomer>() { public int compare(SSCustomer o1, SSCustomer o2) { return o1.getNumber().compareTo( o2.getNumber() ); } }); iModel.setObjects(iCustomers); return iModel; } }
[ "shikhar.singh@kenstream.se" ]
shikhar.singh@kenstream.se
bebaaa20b642d08a2f402a183d01e30394f951a6
4eea13dc72e0ff8ec79c7a94deca38e55868b603
/chapter19/Exercise7.java
691b9b8f372dcdf4252479e7f06cf47dfe425949
[ "Apache-2.0" ]
permissive
helloShen/thinkinginjava
1a9bfad9afa68b226684f6e063e9fa2ae36d898c
8986b74b2b7ea1753df33af84cd56287b21b4239
refs/heads/master
2021-01-11T20:38:09.259654
2017-03-07T03:52:54
2017-03-07T03:52:54
79,158,702
3
0
null
null
null
null
UTF-8
Java
false
false
943
java
/** * Exercise 7 */ package com.ciaoshen.thinkinjava.chapter19; import java.util.*; public class Exercise7{ public enum SetMembers{ A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15,A16,A17,A18,A19,A20,A21,A22,A23,A24,A25,A26,A27,A28,A29,A30,A31,A32,A33,A34,A35,A36,A37,A38,A39,A40,A41,A42,A43,A44,A45,A46,A47,A48,A49,A50,A51,A52,A53,A54,A55,A56,A57,A58,A59,A60,A61,A62,A63,A64,A65,A66,A67,A68,A69,A70,A71,A72,A73,A74,A75,A76,A77,A78,A79,A80,A81,A82,A83,A84,A85,A86,A87,A88,A89,A90,A91,A92,A93,A94,A95,A96,A97,A98,A99,A100,A101,A102,A103,A104,A105,A106,A107,A108,A109,A110,A111,A112,A113,A114,A115,A116,A117,A118,A119,A120,A121,A122,A123,A124,A125,A126,A127,A128,A129,A130,A131,A132,A133,A134,A135,A136,A137,A138,A139,A140,A141,A142,A143,A144,A145,A146,A147,A148,A149,A150 } public static void main(String[] args){ EnumSet<SetMembers> es=EnumSet.allOf(SetMembers.class); System.out.println(es); } }
[ "symantec__@hotmail.com" ]
symantec__@hotmail.com
f91e9213ca350171b24f86c6556bdad9aa2e4a4c
6adea47740bccfbcfffc410e3d86f9d3e1dfaca5
/util-services/util-service-soundmatch/src/main/java/com/clemble/social/utils/soundmatch/jdbc/JdbcSoundMatchDataRepository.java
2b96a57953a426584ba5ff43dcb64ab865bfd955
[]
no_license
clemble/clemble-social
7c3adb7337098d7fb0e7c018fb1d32f8b2ffdd1f
54fb08f51680556d7a0f23f434372fe20e4c9236
refs/heads/master
2020-05-17T18:47:33.164383
2015-05-09T04:58:41
2015-05-09T04:58:41
7,006,329
0
0
null
null
null
null
UTF-8
Java
false
false
2,049
java
package com.clemble.social.utils.soundmatch.jdbc; import static com.google.common.base.Preconditions.checkNotNull; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import javax.inject.Inject; import javax.sql.DataSource; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowMapper; import com.clemble.social.utils.soundmatch.SoundMatchAlgorithm; import com.clemble.social.utils.soundmatch.SoundMatchDataRepository; public class JdbcSoundMatchDataRepository implements SoundMatchDataRepository { final private String ADD_MATCH = "INSERT INTO UTILS_SOUND_MATCHES(WORD, PRESENTATION, ALGORITHM) VALUES(?,?,?)"; final private String GET_MATCH = "SELECT PRESENTATION FROM UTILS_SOUND_MATCHES WHERE WORD = ? AND ALGORITHM = ?"; final private RowMapper<String> SOUND_MATCH_MAPPER = new RowMapper<String>() { @Override public String mapRow(ResultSet rs, int rowNum) throws SQLException { return rs.getString(1); } }; final private JdbcTemplate jdbcTemplate; @Inject public JdbcSoundMatchDataRepository(final DataSource dataSource) { this.jdbcTemplate = new JdbcTemplate(checkNotNull(dataSource)); } public JdbcSoundMatchDataRepository(final JdbcTemplate jdbcTemplate) { this.jdbcTemplate = checkNotNull(jdbcTemplate); } @Override public String get(String word, SoundMatchAlgorithm matchAlgorithm) { // Step 1. Query for the sound match List<String> data = jdbcTemplate.query(GET_MATCH, SOUND_MATCH_MAPPER, word, matchAlgorithm.name()); // Step 2. Return appropriate value return data.size() > 0 ? data.get(0) : null; } @Override public void put(String word, String presentation, SoundMatchAlgorithm matchAlgorithm) { try { jdbcTemplate.update(ADD_MATCH, word, presentation, matchAlgorithm.name()); } catch(RuntimeException exception) { exception.printStackTrace(); } } }
[ "mavarazy@gmail.com" ]
mavarazy@gmail.com
0f731440ebaf389a64c153e2c0b7a64d6d87cb3f
0429ec7192a11756b3f6b74cb49dc1ba7c548f60
/src/main/java/com/linkage/module/gtms/stb/resource/dao/BatchPingDAO.java
a9549c241c69c549a8e898da9b113e293b287e61
[]
no_license
lichao20000/WEB
5c7730779280822619782825aae58506e8ba5237
5d2964387d66b9a00a54b90c09332e2792af6dae
refs/heads/master
2023-06-26T16:43:02.294375
2021-07-29T08:04:46
2021-07-29T08:04:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,924
java
package com.linkage.module.gtms.stb.resource.dao; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.jdbc.core.RowMapper; import com.linkage.commons.db.PrepareSQL; import com.linkage.commons.util.DateTimeUtil; import com.linkage.commons.util.StringUtil; import com.linkage.module.gwms.dao.SuperDAO; import com.linkage.module.gwms.dao.tabquery.CityDAO; import com.linkage.system.utils.StringUtils; public class BatchPingDAO extends SuperDAO { // 日志记录 private static Logger logger = LoggerFactory.getLogger(BatchPingDAO.class); /** * 批量ping数据查询 * @param curPage_splitPage * @param num_splitPage * @param cityId * @param loopbackIp * @return */ @SuppressWarnings({ "unchecked", "rawtypes" }) public List<Map> queryData(int curPage_splitPage, int num_splitPage, String cityId, String deviceIp, String result, String startTime, String endTime) { PrepareSQL pSql = new PrepareSQL(); pSql.setSQL("select a.device_ip, a.device_name, a.city_name, a.result, a.result_desc, a.operate_time" + " a.succes_num, a.fail_num, a.packet_loss_rate, a.min_response_time, a.avg_response_time, a.max_response_time, a.city_id " + " from stb_batch_ping a where 1 = 1"); if (!CityDAO.isAdmin(cityId)) { ArrayList<String> cityArray = CityDAO.getAllNextCityIdsByCityPid(cityId); pSql.append(" and a.city_id in ('" + StringUtils.weave(cityArray, "','") + "')"); cityArray = null; } if (!StringUtil.IsEmpty(deviceIp) && !"-1".equals(deviceIp)) { pSql.append(" and a.device_ip = '" + deviceIp + "' "); } if (!StringUtil.IsEmpty(result)) { pSql.append(" and a.result = '" + result + "' "); } if (!StringUtil.IsEmpty(startTime)) { pSql.append(" and a.operate_time >= " + new DateTimeUtil(startTime).getLongTime() + ""); } if (!StringUtil.IsEmpty(endTime)) { pSql.append(" and a.operate_time <= " + new DateTimeUtil(endTime).getLongTime() + ""); } if (-1 != curPage_splitPage) { return querySP(pSql.getSQL(), (curPage_splitPage - 1) * num_splitPage, num_splitPage, new RowMapper() { public Object mapRow(ResultSet rs, int arg1) throws SQLException { Map<String, String> map = new HashMap<String, String>(); return resultSet2Map(map, rs); } }); } else { return jt.query(pSql.getSQL(), new RowMapper() { public Object mapRow(ResultSet rs, int arg1) throws SQLException { Map<String, String> map = new HashMap<String, String>(); return resultSet2Map(map, rs); } }); } } /** * 查询记录数 * @param cityId * @param deviceIp * @return */ public int queryCount(String cityId, String deviceIp, String result, String startTime, String endTime) { PrepareSQL pSql = new PrepareSQL(); pSql.setSQL("select count(*) from stb_batch_ping a where 1=1 "); if (!CityDAO.isAdmin(cityId)) { ArrayList<String> cityArray = CityDAO.getAllNextCityIdsByCityPid(cityId); pSql.append(" and a.city_id in ('" + StringUtils.weave(cityArray, "','") + "')"); cityArray = null; } if (!StringUtil.IsEmpty(deviceIp) && !"-1".equals(deviceIp)) { pSql.append(" and a.device_ip = '" + deviceIp + "' "); } if (!StringUtil.IsEmpty(result)) { pSql.append(" and a.result = '" + result + "' "); } if (!StringUtil.IsEmpty(startTime)) { pSql.append(" and a.operate_time >= " + new DateTimeUtil(startTime).getLongTime() + ""); } if (!StringUtil.IsEmpty(endTime)) { pSql.append(" and a.operate_time <= " + new DateTimeUtil(endTime).getLongTime() + ""); } return jt.queryForInt(pSql.getSQL()); } /** * 数据转换 * * @param map * @param rs * @return */ public Map<String, String> resultSet2Map(Map<String, String> map, ResultSet rs) { try { map.put("device_ip", rs.getString("device_ip")); map.put("device_name", rs.getString("device_name")); if ("1".equals(rs.getString("result"))) { map.put("result", "成功"); } else { map.put("result", "失败"); } map.put("result_desc", rs.getString("result_desc")); map.put("operate_time", new DateTimeUtil( rs.getLong("operate_time") * 1000).getYYYY_MM_DD_HH_mm_ss()); map.put("succes_num", rs.getString("succes_num")); map.put("fail_num", rs.getString("fail_num")); map.put("packet_loss_rate", rs.getString("packet_loss_rate")); map.put("min_response_time", rs.getString("min_response_time")); map.put("avg_response_time", rs.getString("avg_response_time")); map.put("max_response_time", rs.getString("max_response_time")); map.put("city_id", rs.getString("city_id")); map.put("city_name", CityDAO.getCityIdCityNameMap().get(rs.getString("city_id"))); } catch (SQLException e) { logger.error(e.getMessage(), e); } return map; } }
[ "di4zhibiao.126.com" ]
di4zhibiao.126.com
47f8ad064773cddc2a17e1a7459b024f858ac565
596d36a78c206f896a4a7247a064a934a262d41e
/src/main/java/aramframework/com/cmm/constant/CacheKey.java
8024ff39145186978d3a56bd436c20f687d4fbe8
[ "Apache-2.0" ]
permissive
SkyDevCode/aramcomp
5042d9d01fe6103733f8ae3fdefb70af969527d5
090af4eeedbc50de91a204ee84b1cf781bcab6f5
refs/heads/master
2021-01-14T08:30:33.994946
2016-01-04T13:18:12
2016-01-04T13:18:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
500
java
package aramframework.com.cmm.constant; public interface CacheKey { String BBS_PREFIX = "BBS_"; String CMY_PREFIX = "CMY_"; String CMY_HOME = "Home"; String CMY_LOGOIMAGE = "LogoImage"; String CMY_TEMPLET = "Templet"; String CMY_BBSLIST = "BbsList"; String CMY_CLUBLIST = "ClubList"; String CMY_TOPLIST = "TopList"; String CMY_MGRLIST = "MgrList"; String CMY_SUBLIST = "SubList"; String LTO_PREFIX = "LTO_"; String LTO_LOTTOARRAY = "LottoArray"; }
[ "hnccho@hanafos.com" ]
hnccho@hanafos.com
28861d3b81cd92232e9b3018f9a0f0173930f0b8
18c70f2a4f73a9db9975280a545066c9e4d9898e
/mirror-composite/composite-service/src/main/java/com/migu/tsg/microservice/atomicservice/composite/controller/util/es/util/DateUtils.java
55e75c44c547557da18727f7822c5c5091c6d18f
[]
no_license
iu28igvc9o0/cmdb_aspire
1fe5d8607fdacc436b8a733f0ea44446f431dfa8
793eb6344c4468fe4c61c230df51fc44f7d8357b
refs/heads/master
2023-08-11T03:54:45.820508
2021-09-18T01:47:25
2021-09-18T01:47:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,811
java
package com.migu.tsg.microservice.atomicservice.composite.controller.util.es.util; import java.text.MessageFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import org.apache.commons.lang.time.FastDateFormat; /** * 类说明:时间处理公用类 * 项目名称: 微服务 * 包: com.migu.tsg.microservice.monitor.log.util * 类名称: DateUtils.java * 类描述: 时间处理公用类 * 创建人: jiangfuyi * 创建时间: 2017年7月27日 */ public class DateUtils { /** * yyyyMMddHHmmss */ public static final String DATA_PATTERN_WITHOUT_SYMBOL = "yyyyMMddHHmmss"; /** * yyyyMMdd */ public static final String DATA_PATTERN_DATE_SYMBOL = "yyyyMMdd"; /** * yyyy-MM-dd HH:mm:ss */ public static final String DATA_PATTERN_FULL_SYMBOL = "yyyy-MM-dd HH:mm:ss"; /** * yyyy-MM-dd */ public static final String DATA_PATTERN_DATE_NORMAL = "yyyy-MM-dd"; /** * HH:mm:ss */ public static final String DATA_PATTERN_TIME_NORMAL = "HH:mm:ss"; /** * 根据时间格式返回时间字符串 〈功能详细描述〉 * @param date [时间] * @param pattern [格式] * @return [返回日期字符串] */ public static String getDateStr(Date date, String pattern) { FastDateFormat fdf = FastDateFormat.getInstance(pattern); return fdf.format(date); } public static Date parseDate(String dateStr, String pattern) { SimpleDateFormat format = new SimpleDateFormat(pattern); try { return format.parse(dateStr); } catch (Exception e) { e.printStackTrace(); } return null; } /** * 时间计算 * @param date 基准时间,如果为空,将按照当前时间计算 * @param year 加减的年数 * @param month 加减的月数 * @param day 加减的天数 * @param hour 加减的小时数 * @param minute 加减分钟 * @param second 加减秒数 * @return 计算后的时间 */ public static Date getDate(Date date, int year, int month, int day, int hour, int minute, int second) { if (date == null) { date = new Date(); } Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.add(Calendar.YEAR, year); cal.add(Calendar.MONTH, month); cal.add(Calendar.DATE, day); cal.add(Calendar.HOUR_OF_DAY, hour); cal.add(Calendar.MINUTE, minute); cal.add(Calendar.SECOND, second); return cal.getTime(); } /** * 校验时间字符串是否符合格式要求 * @param str 时间字符串 * @param pattern 时间格式 * @return 符合格式要求返回true,否则返回false */ public static boolean allowPatternString(String str, String pattern) { final FastDateFormat dateFormat = FastDateFormat.getInstance(pattern); try { dateFormat.parseObject(str); return true; } catch (Exception e) { return false; } } /** * 转换时间格式 * @param date 需要转换的 时间 * @return 指定格式的时间格式 */ public static String getTimestamp(Date date) { return MessageFormat.format("{0}T{1}+000000", FastDateFormat.getInstance(DATA_PATTERN_DATE_NORMAL).format(date), FastDateFormat.getInstance(DATA_PATTERN_TIME_NORMAL).format(date)); } /** * 时间戳转换成日期格式字符串 * @param seconds 精确到秒的字符串 * @param format 格式 * @return */ public static String timeStamp2Date(String seconds,String format) { if(seconds == null || seconds.isEmpty() || seconds.equals("null")){ return ""; } if(format == null || format.isEmpty()){ format = "yyyy-MM-dd HH:mm:ss"; } SimpleDateFormat sdf = new SimpleDateFormat(format); return sdf.format(new Date(Long.valueOf(seconds))); } public static String timeStamp2Date(String seconds) { return timeStamp2Date(seconds,"yyyy-MM-dd HH:mm:ss"); } }
[ "jiangxuwen7515@163.com" ]
jiangxuwen7515@163.com
cab8aa7fd41aa139e855f7ce20cc5c8006909cdd
4da9097315831c8639a8491e881ec97fdf74c603
/src/StockIT-v2-release_source_from_JADX/sources/com/google/android/exoplayer2/upstream/DefaultHttpDataSourceFactory.java
4d6a3caf432477d3191e7997494ab04dd71b9f53
[ "Apache-2.0" ]
permissive
atul-vyshnav/2021_IBM_Code_Challenge_StockIT
5c3c11af285cf6f032b7c207e457f4c9a5b0c7e1
25c26a4cc59a3f3e575f617b59acc202ee6ee48a
refs/heads/main
2023-08-11T06:17:05.659651
2021-10-01T08:48:06
2021-10-01T08:48:06
410,595,708
1
1
null
null
null
null
UTF-8
Java
false
false
1,804
java
package com.google.android.exoplayer2.upstream; import com.google.android.exoplayer2.upstream.HttpDataSource; import com.google.android.exoplayer2.util.Predicate; public final class DefaultHttpDataSourceFactory extends HttpDataSource.BaseFactory { private final boolean allowCrossProtocolRedirects; private final int connectTimeoutMillis; private final TransferListener listener; private final int readTimeoutMillis; private final String userAgent; public DefaultHttpDataSourceFactory(String str) { this(str, (TransferListener) null); } public DefaultHttpDataSourceFactory(String str, TransferListener transferListener) { this(str, transferListener, 8000, 8000, false); } public DefaultHttpDataSourceFactory(String str, int i, int i2, boolean z) { this(str, (TransferListener) null, i, i2, z); } public DefaultHttpDataSourceFactory(String str, TransferListener transferListener, int i, int i2, boolean z) { this.userAgent = str; this.listener = transferListener; this.connectTimeoutMillis = i; this.readTimeoutMillis = i2; this.allowCrossProtocolRedirects = z; } /* access modifiers changed from: protected */ public DefaultHttpDataSource createDataSourceInternal(HttpDataSource.RequestProperties requestProperties) { DefaultHttpDataSource defaultHttpDataSource = new DefaultHttpDataSource(this.userAgent, (Predicate<String>) null, this.connectTimeoutMillis, this.readTimeoutMillis, this.allowCrossProtocolRedirects, requestProperties); TransferListener transferListener = this.listener; if (transferListener != null) { defaultHttpDataSource.addTransferListener(transferListener); } return defaultHttpDataSource; } }
[ "57108396+atul-vyshnav@users.noreply.github.com" ]
57108396+atul-vyshnav@users.noreply.github.com
4638000653ed4a961fdbc4031205bedc3b9635d8
20eb62855cb3962c2d36fda4377dfd47d82eb777
/IntroClassJava/dataset/smallest/d009aa71ece41454c68d8038b5462d8eea8feb291bce1d53ee149f8477b5eab62ee28c7f690bf14dc6ce1d70c8943f7f3b3e4300965cb24da4cd2d2807dab19a/001/mutations/127/smallest_d009aa71_001.java
12cf4a326846f88710ac52ead757a5c8df2f907d
[]
no_license
ozzydong/CapGen
356746618848065cce4e253e5d3c381baa85044a
0ba0321b6b1191443276021f1997833342f02515
refs/heads/master
2023-03-18T20:12:02.923428
2020-08-21T03:08:28
2020-08-21T03:08:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,362
java
package introclassJava; class IntObj { public int value; public IntObj () { } public IntObj (int i) { value = i; } } class FloatObj { public float value; public FloatObj () { } public FloatObj (float i) { value = i; } } class LongObj { public long value; public LongObj () { } public LongObj (long i) { value = i; } } class DoubleObj { public double value; public DoubleObj () { } public DoubleObj (double i) { value = i; } } class CharObj { public char value; public CharObj () { } public CharObj (char i) { value = i; } } public class smallest_d009aa71_001 { public java.util.Scanner scanner; public String output = ""; public static void main (String[]args) throws Exception { smallest_d009aa71_001 mainClass = new smallest_d009aa71_001 (); String output; if (args.length > 0) { mainClass.scanner = new java.util.Scanner (args[0]); } else { mainClass.scanner = new java.util.Scanner (System.in); } mainClass.exec (); System.out.println (mainClass.output); } public void exec () throws Exception { IntObj a = new IntObj (), b = new IntObj (), c = new IntObj (), d = new IntObj (); output += (String.format ("Please enter 4 numbers separated by spaces > ")); a.value = scanner.nextInt (); b.value = scanner.nextInt (); c.value = scanner.nextInt (); d.value = scanner.nextInt (); if ((a.value < b.value) && (a.value < c.value) && (a.value < d.value)) { output += (String.format ("%d is the smallest\n", a.value)); } else if ((b.value < a.value) && (b.value < c.value) && (b.value < d.value)) { output += (String.format ("%d is the smallest\n", b.value)); } else if ((c.value < a.value) && ((c.value) < (a.value)) && ((c.value) < (b.value)) && (c.value < d.value)) { output += (String.format ("%d is the smallest\n", c.value)); } else if ((d.value < a.value) && (d.value < b.value) && (d.value < c.value)) { output += (String.format ("%d is the smallest\n", d.value)); } if (true) return;; } }
[ "justinwm@163.com" ]
justinwm@163.com
cbbc4937286f1fd86b3b7e0278cfb89b57d833a8
f61f16b03d4a73ca19c5e2e5fb22deae12d96af3
/src/aug10/add/OperatorEx19.java
9ee8b3ffe8dc218e84b8de5537b87c87138cfc51
[]
no_license
cayori/kh
47d49d50597aa3d618443f9f9d24bc2f27952e4f
19df8a004956b46b139133cb4b7ec1b263f782c6
refs/heads/master
2021-07-04T04:24:55.124924
2017-09-25T23:54:08
2017-09-25T23:54:08
103,261,961
0
0
null
null
null
null
UTF-8
Java
false
false
269
java
package aug10.add; public class OperatorEx19 { public static void main(String[] args) { int share = 10/8; int remain = 10%8; System.out.println("10 을 8로 나누면, "); System.out.println("몫은 "+share+" 이고, 나머지는 "+remain+" 이다"); } }
[ "cayori@gmail.com" ]
cayori@gmail.com
a9bef72d01260c4eb6cc1c158aa213355eb6f5e4
c5c52a5f6436056c1d8102b83835a5d9565f5857
/src/lesson7/BreadthFirstPaths.java
84477bfec4b5b5f7347bd3b248a33d0d5fbb3814
[]
no_license
yacooler/alg_20112020
4b941e6015970cf4b606b5b5fbd17da998e3cc35
d0dfeb814c7012c09d3cfef9e417c3efc4f856c2
refs/heads/master
2023-02-05T03:00:52.393739
2020-12-17T12:37:27
2020-12-17T12:37:27
315,920,570
0
0
null
2020-12-17T13:33:05
2020-11-25T11:37:53
Java
UTF-8
Java
false
false
729
java
package lesson7; import java.util.LinkedList; public class BreadthFirstPaths extends GraphPaths{ public BreadthFirstPaths(Graph graph, int startVertex) { super(graph, startVertex); } @Override protected void calc(int currentVertex) { LinkedList<Integer> queue = new LinkedList<>(); queue.addLast(currentVertex); marked[currentVertex] = true; while (!queue.isEmpty()) { int vertex = queue.removeFirst(); for (int w : graph.getAdjList(vertex)) { if (!marked[w]) { marked[w] = true; edgeTo[w] = vertex; queue.addLast(w); } } } } }
[ "yacooler@yandex.ru" ]
yacooler@yandex.ru
62e95c4bdd2e3d08a55844b3eacdb8badb96bbfb
f787964b2eb70971c558892c37f3036dda7f5cb8
/.JETEmitters/src/org/talend/designer/codegen/translators/transformation/CContentEnricherMainJava.java
94b817b5598cf9b02a1ec039e7f5afd196c4fd94
[]
no_license
sharrake/SampleTalendWorkspace
1746e1600ec667efc8a929c8fc33ca1e3d1f09f5
b518c24aca165408eaef0353a7bb208ac4c9bd96
refs/heads/master
2021-01-10T04:19:48.039640
2015-11-23T11:16:36
2015-11-23T11:16:36
46,714,207
0
4
null
null
null
null
UTF-8
Java
false
false
3,111
java
package org.talend.designer.codegen.translators.transformation; import org.talend.core.model.process.INode; import org.talend.core.model.process.ElementParameterParser; import org.talend.core.model.process.IConnection; import org.talend.designer.codegen.config.CodeGeneratorArgument; import java.util.List; public class CContentEnricherMainJava { protected static String nl; public static synchronized CContentEnricherMainJava create(String lineSeparator) { nl = lineSeparator; CContentEnricherMainJava result = new CContentEnricherMainJava(); nl = null; return result; } public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; protected final String TEXT_1 = "\t\t\t.pollEnrich("; protected final String TEXT_2 = NL + "\t\t\t.enrich("; protected final String TEXT_3 = NL + "\t\t\t\t, "; protected final String TEXT_4 = NL + "\t\t\t, new "; protected final String TEXT_5 = "()"; protected final String TEXT_6 = NL + "\t\t\t)"; protected final String TEXT_7 = NL; protected final String TEXT_8 = NL; public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); CodeGeneratorArgument codeGenArgument = (CodeGeneratorArgument) argument; INode node = (INode)codeGenArgument.getArgument(); String cid = node.getUniqueName(); List< ? extends IConnection> conns = node.getIncomingConnections(); String resourceURI = ElementParameterParser.getValue(node, "__RESOURCE_URI__"); boolean isPollEnrich = "true".equals(ElementParameterParser.getValue(node, "__POLLENRICH__")); boolean isEnrich = "true".equals(ElementParameterParser.getValue(node, "__ENRICH__")); boolean useAggregationStrategy = "true".equals(ElementParameterParser.getValue(node, "__USE_AGG_STRATEGY__")); String aggregationStrategy = ElementParameterParser.getValue(node, "__AGGREGATION_STRATEGY__"); boolean specifyTimeout = "true".equals(ElementParameterParser.getValue(node, "__SPECIFY_TIMEOUT__")); boolean wait = "true".equals(ElementParameterParser.getValue(node, "__WAIT__")); boolean immediate = "true".equals(ElementParameterParser.getValue(node, "__IMMEDIATE__")); boolean trigger = "true".equals(ElementParameterParser.getValue(node, "__TRIGGER__")); int timeout = 0; if(wait) timeout = -1; else if(immediate) timeout = 0; else timeout = Integer.parseInt(ElementParameterParser.getValue(node, "__TIMEOUT_TRIGGER__")); if(conns.size()>0) { if(isPollEnrich) { stringBuffer.append(TEXT_1); stringBuffer.append(resourceURI); } else { stringBuffer.append(TEXT_2); stringBuffer.append(resourceURI); } if(isPollEnrich) { if(specifyTimeout) { stringBuffer.append(TEXT_3); stringBuffer.append(timeout); } } if(useAggregationStrategy) { stringBuffer.append(TEXT_4); stringBuffer.append(aggregationStrategy); stringBuffer.append(TEXT_5); } stringBuffer.append(TEXT_6); } stringBuffer.append(TEXT_7); stringBuffer.append(TEXT_8); return stringBuffer.toString(); } }
[ "rakesh.ramotra@gmail.com" ]
rakesh.ramotra@gmail.com
9cad1b12190ce50709f3d1a71f5296e6552d64c5
b5b307376b90d52fbb6e629cb6030045951c117d
/src/main/java/com/entor/serivce/impl/PropertyServiceImpl.java
d6d0bb6351c4d7365cd336ab3056c80b8a9928d1
[]
no_license
xinlide/ly
51c85887a3c26430e6b9029eef3906cf2012d5e5
edadcbd516ed16e4e54752eeebcbf7289653be6c
refs/heads/master
2022-12-22T04:47:44.215731
2019-09-29T02:57:39
2019-09-29T02:57:39
210,528,459
0
0
null
2022-11-16T11:53:53
2019-09-24T06:29:49
Java
UTF-8
Java
false
false
990
java
package com.entor.serivce.impl; import java.io.Serializable; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.stereotype.Repository; import com.entor.dao.PropertyDao; import com.entor.dao.ProductImageDao; import com.entor.dao.UserDao; import com.entor.entity.Property; import com.entor.entity.User; import com.entor.service.PropertyService; @Repository("propertyService") public class PropertyServiceImpl extends BaseServiceImpl<Property> implements PropertyService{ @Resource private PropertyDao propertyDao; @Override public List<Property> queryPageByCid(int cid,Class<?> cls,int currentPage,int pageSize) { // TODO Auto-generated method stub Map<String, Integer> map = new HashMap<String, Integer>(); map.put("start", (currentPage-1)*pageSize); map.put("pageSize", pageSize); map.put("cid", cid); return propertyDao.queryPageByCid(cls,map); } }
[ "Administrator@80DR054LIU0TTAN" ]
Administrator@80DR054LIU0TTAN
4e0536f4adc773509fd10d343518e66151d647a2
e93eb7c5a23d0495285ebebd64d0821f7ef96289
/csh-pom/csh-tenantapp/src/main/java/com/csh/dao/ServiceCategoryDao.java
654e8abcd32f5c535c586e382e6fe410326a3624
[]
no_license
StoneInCHN/CSH
0427f417267f95b93a2e0e3c7f8fb0dd893f0bd0
b926b28c3773851a9dd970b714d6b5dfa6174d79
refs/heads/master
2021-08-06T20:18:11.758283
2017-11-07T02:16:50
2017-11-07T02:16:50
53,311,650
0
1
null
null
null
null
UTF-8
Java
false
false
184
java
package com.csh.dao; import com.csh.entity.ServiceCategory; import com.csh.framework.dao.BaseDao; public interface ServiceCategoryDao extends BaseDao<ServiceCategory,Long>{ }
[ "464709367@qq.com" ]
464709367@qq.com
c1022a99de940ba5e78652c38200bdaf8dfba291
1009269d48df2e25e6140e28412d6ba6c2c1d546
/src/com/asiainfo/chapter2/AtomicClass2.java
3e96788a2d733c01399ce52b1e60283dd9f3cf5c
[]
no_license
zhangzhiwang/JavaMultiThreadProgramming
906717f3a21330694e4963837ba7706c33bbd5f4
1a0392d604df53bdccbea215eb8245d13f9e2cc9
refs/heads/master
2020-08-04T12:11:35.721077
2019-11-18T02:36:52
2019-11-18T02:36:52
212,133,341
1
0
null
null
null
null
UTF-8
Java
false
false
1,139
java
package com.asiainfo.chapter2; import java.util.concurrent.atomic.AtomicInteger; import com.asiainfo.chapter2.VolatileNotAtomic.Count; /** * 对线程安全的原子类的理解 * * @author zhangzhiwang * @date 2019年10月13日 下午2:16:54 */ public class AtomicClass2 extends Thread { public void run() { Count.add(); } public static void main(String[] args) throws InterruptedException { for (int i = 0; i < 100; i++) { AtomicClass2 volatileNotAtomic = new AtomicClass2(); volatileNotAtomic.start(); } Thread.sleep(3000); System.out.println(Count.atomicInteger.get()); } static class Count { private static AtomicInteger atomicInteger = new AtomicInteger(0); public static synchronized void add() {// 本示例是想说明,原子类的方法本身是线程安全的,不需要加任何锁,但是方法和方法之间无法做到线程安全,需要在外层方法用sync同步 System.out.println(Thread.currentThread().getName() + "--->" + atomicInteger.addAndGet(100)); System.out.println(Thread.currentThread().getName() + "又加了个1--->" + atomicInteger.addAndGet(1)); } } }
[ "934109401@qq.com" ]
934109401@qq.com
6aa4c7a37b474682c00dfe2724753a9833838fe7
bb375e9fce8cff772cd5b1929b4a96721c6ca49d
/TestAndroidService/app/src/main/java/oracle/huwl/com/testandroidservice/MainActivity.java
473ea5b42a92ae6b950484b9261b0014b38132c9
[]
no_license
chenqilin70/Practice
916d58b62ffcd36952bb569605eb498fd38fd9d7
95fab26da4add2ac253ea3f65ae334023b09e7de
refs/heads/master
2021-01-23T16:13:19.952843
2017-08-02T09:38:48
2017-08-02T09:38:48
93,285,863
0
0
null
null
null
null
UTF-8
Java
false
false
2,196
java
package oracle.huwl.com.testandroidservice; import android.app.Activity; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.IBinder; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Toast; public class MainActivity extends Activity { @Override protected void onDestroy() { super.onDestroy(); // if(connection!=null){ // unbindService(connection); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } public void startService(View v){ Intent intent=new Intent(this,MyRemoteService.class); startService(intent); Toast.makeText(this,"service is running",Toast.LENGTH_SHORT).show(); } public void stopService(View v){ stopService(new Intent(this,MyRemoteService.class)); Toast.makeText(this,"service is shutdown",Toast.LENGTH_SHORT).show(); } private ServiceConnection connection; public void bindService(View v){ if(connection==null){ connection=new ServiceConnection() { @Override public void onServiceConnected(ComponentName componentName, IBinder iBinder) { Log.e("test","onServiceConnected-->"); } @Override public void onServiceDisconnected(ComponentName componentName) { Log.e("test","onServiceDisconnected-->"); } }; bindService(new Intent(this,MyRemoteService.class) ,connection, Context.BIND_AUTO_CREATE); }else{ Toast.makeText(this,"已经绑定",Toast.LENGTH_SHORT).show(); } } public void unbindService(View v){ if(connection==null){ Toast.makeText(this,"还未绑定",Toast.LENGTH_SHORT).show(); }else{ unbindService(connection); connection=null; } } }
[ "kylinchen85@foxmail.com" ]
kylinchen85@foxmail.com
9e53ec2813b70b5f9044dc85685e3111d6652f3d
2c8273d2cb27575b44e09c015ecad3caa3575f0f
/app/src/main/java/com/dat/mylabs/Lab3/MyIntentService.java
8eb4431636f27bb2920532d7794585ae2854a09f
[]
no_license
jintoga/android-Labs
6892465c29228069e9010fceae6bcf9aeb2e7aed
1d072b9e871f70f5f736e8135494479c3aa34b8f
refs/heads/master
2021-01-09T06:48:46.103261
2016-11-03T18:22:10
2016-11-03T18:22:10
68,456,378
0
0
null
null
null
null
UTF-8
Java
false
false
672
java
package com.dat.mylabs.Lab3; import android.app.IntentService; import android.content.Intent; import android.util.Log; import android.widget.Toast; /** * Created by DAT on 9/26/2016. */ public class MyIntentService extends IntentService { public MyIntentService() { super("MyIntentService"); } @Override protected void onHandleIntent(Intent intent) { Log.d("MyIntentService", "doing something"); } @Override public int onStartCommand(Intent intent, int flags, int startId) { Toast.makeText(this, "service starting", Toast.LENGTH_SHORT).show(); return super.onStartCommand(intent, flags, startId); } }
[ "jintoga123@yahoo.com" ]
jintoga123@yahoo.com
f128e2630e6ebc8d073284ea039fd05ff7fa26ff
48fd1d4142439be057c4b226b1c8e4ec88c344c6
/20220831/spring/src/main/java/kr/megaptera/makaobank/models/Account.java
e11ea32e1ab033098df32b976b6cc8c4981468f7
[]
no_license
ahastudio/CodingLife
2323d4b105f85935be1e6534433338e4ea806b3f
dfbddf92e3c4f93ba357a66ed4171b1cd6172d56
refs/heads/main
2023-07-19T22:04:56.830668
2023-07-09T20:25:48
2023-07-09T20:27:25
19,508,919
73
42
null
2022-03-23T22:51:43
2014-05-06T20:07:00
Jupyter Notebook
UTF-8
Java
false
false
1,311
java
package kr.megaptera.makaobank.models; import kr.megaptera.makaobank.dtos.AccountDto; import org.hibernate.annotations.CreationTimestamp; import org.hibernate.annotations.UpdateTimestamp; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import java.time.LocalDateTime; @Entity public class Account { @Id @GeneratedValue private Long id; private String accountNumber; private String name; private Long amount; @CreationTimestamp private LocalDateTime createdAt; @UpdateTimestamp private LocalDateTime updatedAt; public Account() { } public Account(String accountNumber, String name) { this.accountNumber = accountNumber; this.name = name; this.amount = 0L; } public Account(Long id, String accountNumber, String name, Long amount) { this.id = id; this.accountNumber = accountNumber; this.name = name; this.amount = amount; } public String getAccountNumber() { return accountNumber; } public static Account fake(String accountNumber) { return new Account(1L, accountNumber, "Tester", 100L); } public AccountDto toDto() { return new AccountDto(accountNumber, name, amount); } }
[ "ahastudio@gmail.com" ]
ahastudio@gmail.com
4bee554deecda8d96f4b9e367480b454f699fb15
c59f24c507d30bbb80f39e9a4f120fec26a43439
/hbase-src-1.2.1/hbase-prefix-tree/src/test/java/org/apache/hadoop/hbase/util/vint/TestFIntTool.java
585130171ffc4f82b796d1f2fb33ca4e5c4e213a
[ "Apache-2.0", "CC-BY-3.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-protobuf" ]
permissive
fengchen8086/ditb
d1b3b9c8cf3118fb53e7f2720135ead8c8c0829b
d663ecf4a7c422edc4c5ba293191bf24db4170f0
refs/heads/master
2021-01-20T01:13:34.456019
2017-04-24T13:17:23
2017-04-24T13:17:23
89,239,936
13
3
Apache-2.0
2023-03-20T11:57:01
2017-04-24T12:54:26
Java
UTF-8
Java
false
false
5,840
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.hadoop.hbase.util.vint; import java.io.ByteArrayOutputStream; import java.io.IOException; import org.apache.hadoop.hbase.testclassification.SmallTests; import org.junit.Assert; import org.junit.Test; import org.junit.experimental.categories.Category; /********************** tests *************************/ @Category(SmallTests.class) public class TestFIntTool { @Test public void testLeadingZeros() { Assert.assertEquals(64, Long.numberOfLeadingZeros(0)); Assert.assertEquals(63, Long.numberOfLeadingZeros(1)); Assert.assertEquals(0, Long.numberOfLeadingZeros(Long.MIN_VALUE)); Assert.assertEquals(0, Long.numberOfLeadingZeros(-1)); Assert.assertEquals(1, Long.numberOfLeadingZeros(Long.MAX_VALUE)); Assert.assertEquals(1, Long.numberOfLeadingZeros(Long.MAX_VALUE - 1)); } @Test public void testMaxValueForNumBytes() { Assert.assertEquals(255, UFIntTool.maxValueForNumBytes(1)); Assert.assertEquals(65535, UFIntTool.maxValueForNumBytes(2)); Assert.assertEquals(0xffffff, UFIntTool.maxValueForNumBytes(3)); Assert.assertEquals(0xffffffffffffffL, UFIntTool.maxValueForNumBytes(7)); } @Test public void testNumBytes() { Assert.assertEquals(1, UFIntTool.numBytes(0)); Assert.assertEquals(1, UFIntTool.numBytes(1)); Assert.assertEquals(1, UFIntTool.numBytes(255)); Assert.assertEquals(2, UFIntTool.numBytes(256)); Assert.assertEquals(2, UFIntTool.numBytes(65535)); Assert.assertEquals(3, UFIntTool.numBytes(65536)); Assert.assertEquals(4, UFIntTool.numBytes(0xffffffffL)); Assert.assertEquals(5, UFIntTool.numBytes(0x100000000L)); Assert.assertEquals(4, UFIntTool.numBytes(Integer.MAX_VALUE)); Assert.assertEquals(8, UFIntTool.numBytes(Long.MAX_VALUE)); Assert.assertEquals(8, UFIntTool.numBytes(Long.MAX_VALUE - 1)); } @Test public void testGetBytes() { Assert.assertArrayEquals(new byte[] { 0 }, UFIntTool.getBytes(1, 0)); Assert.assertArrayEquals(new byte[] { 1 }, UFIntTool.getBytes(1, 1)); Assert.assertArrayEquals(new byte[] { -1 }, UFIntTool.getBytes(1, 255)); Assert.assertArrayEquals(new byte[] { 1, 0 }, UFIntTool.getBytes(2, 256)); Assert.assertArrayEquals(new byte[] { 1, 3 }, UFIntTool.getBytes(2, 256 + 3)); Assert.assertArrayEquals(new byte[] { 1, -128 }, UFIntTool.getBytes(2, 256 + 128)); Assert.assertArrayEquals(new byte[] { 1, -1 }, UFIntTool.getBytes(2, 256 + 255)); Assert.assertArrayEquals(new byte[] { 127, -1, -1, -1 }, UFIntTool.getBytes(4, Integer.MAX_VALUE)); Assert.assertArrayEquals(new byte[] { 127, -1, -1, -1, -1, -1, -1, -1 }, UFIntTool.getBytes(8, Long.MAX_VALUE)); } @Test public void testFromBytes() { Assert.assertEquals(0, UFIntTool.fromBytes(new byte[] { 0 })); Assert.assertEquals(1, UFIntTool.fromBytes(new byte[] { 1 })); Assert.assertEquals(255, UFIntTool.fromBytes(new byte[] { -1 })); Assert.assertEquals(256, UFIntTool.fromBytes(new byte[] { 1, 0 })); Assert.assertEquals(256 + 3, UFIntTool.fromBytes(new byte[] { 1, 3 })); Assert.assertEquals(256 + 128, UFIntTool.fromBytes(new byte[] { 1, -128 })); Assert.assertEquals(256 + 255, UFIntTool.fromBytes(new byte[] { 1, -1 })); Assert.assertEquals(Integer.MAX_VALUE, UFIntTool.fromBytes(new byte[] { 127, -1, -1, -1 })); Assert.assertEquals(Long.MAX_VALUE, UFIntTool.fromBytes(new byte[] { 127, -1, -1, -1, -1, -1, -1, -1 })); } @Test public void testRoundTrips() { long[] values = new long[] { 0, 1, 2, 255, 256, 31123, 65535, 65536, 65537, 0xfffffeL, 0xffffffL, 0x1000000L, 0x1000001L, Integer.MAX_VALUE - 1, Integer.MAX_VALUE, (long) Integer.MAX_VALUE + 1, Long.MAX_VALUE - 1, Long.MAX_VALUE }; for (int i = 0; i < values.length; ++i) { Assert.assertEquals(values[i], UFIntTool.fromBytes(UFIntTool.getBytes(8, values[i]))); } } @Test public void testWriteBytes() throws IOException {// copied from testGetBytes Assert.assertArrayEquals(new byte[] { 0 }, bytesViaOutputStream(1, 0)); Assert.assertArrayEquals(new byte[] { 1 }, bytesViaOutputStream(1, 1)); Assert.assertArrayEquals(new byte[] { -1 }, bytesViaOutputStream(1, 255)); Assert.assertArrayEquals(new byte[] { 1, 0 }, bytesViaOutputStream(2, 256)); Assert.assertArrayEquals(new byte[] { 1, 3 }, bytesViaOutputStream(2, 256 + 3)); Assert.assertArrayEquals(new byte[] { 1, -128 }, bytesViaOutputStream(2, 256 + 128)); Assert.assertArrayEquals(new byte[] { 1, -1 }, bytesViaOutputStream(2, 256 + 255)); Assert.assertArrayEquals(new byte[] { 127, -1, -1, -1 }, bytesViaOutputStream(4, Integer.MAX_VALUE)); Assert.assertArrayEquals(new byte[] { 127, -1, -1, -1, -1, -1, -1, -1 }, bytesViaOutputStream(8, Long.MAX_VALUE)); } private byte[] bytesViaOutputStream(int outputWidth, long value) throws IOException { ByteArrayOutputStream os = new ByteArrayOutputStream(); UFIntTool.writeBytes(outputWidth, value, os); return os.toByteArray(); } }
[ "fengchen8086@gmail.com" ]
fengchen8086@gmail.com
572178ca4ee5db8ec199e17513cfff011aea511c
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.mm/classes.jar/com/tencent/mm/plugin/appbrand/page/b/h.java
242babeaaa17796d1b2eb71b4d44b936a4462131
[]
no_license
tsuzcx/qq_apk
0d5e792c3c7351ab781957bac465c55c505caf61
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
refs/heads/main
2022-07-02T10:32:11.651957
2022-02-01T12:41:38
2022-02-01T12:41:38
453,860,108
36
9
null
2022-01-31T09:46:26
2022-01-31T02:43:22
Java
UTF-8
Java
false
false
844
java
package com.tencent.mm.plugin.appbrand.page.b; import com.tencent.matrix.trace.core.AppMethodBeat; import kotlin.Metadata; @Metadata(d1={""}, d2={"Lcom/tencent/mm/plugin/appbrand/page/navigation/SceneInfo;", "", "enable", "", "sceneType", "", "(ZLjava/lang/String;)V", "getEnable", "()Z", "getSceneType", "()Ljava/lang/String;", "luggage-wxa-app_release"}, k=1, mv={1, 5, 1}, xi=48) public final class h { final boolean enable; final String tCV; public h(boolean paramBoolean, String paramString) { AppMethodBeat.i(325092); this.enable = paramBoolean; this.tCV = paramString; AppMethodBeat.o(325092); } } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes5.jar * Qualified Name: com.tencent.mm.plugin.appbrand.page.b.h * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
20c8c65847212c8f27e99d54cfb2ae46be749e74
d5f09c7b0e954cd20dd613af600afd91b039c48a
/sources/com/coolapk/market/databinding/ThemePickerListItemBinding.java
506e6ba2cd7f7ae761ea411409c66973252bdcce
[]
no_license
t0HiiBwn/CoolapkRelease
af5e00c701bf82c4e90b1033f5c5f9dc8526f4b3
a6a2b03e32cde0e5163016e0078391271a8d33ab
refs/heads/main
2022-07-29T23:28:35.867734
2021-03-26T11:41:18
2021-03-26T11:41:18
345,290,891
5
2
null
null
null
null
UTF-8
Java
false
false
2,747
java
package com.coolapk.market.databinding; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import androidx.databinding.Bindable; import androidx.databinding.DataBindingUtil; import androidx.databinding.ViewDataBinding; import com.coolapk.market.AppTheme; import com.coolapk.market.view.theme.ThemeListActivity; public abstract class ThemePickerListItemBinding extends ViewDataBinding { public final ImageView checkIndicator; public final TextView colorText; @Bindable protected AppTheme.ThemeItem mThemeItem; @Bindable protected ThemeListActivity.ThemePickerFragment.ThemeViewHolder mViewHolder; public final TextView textView; public final TextView tipText; public abstract void setThemeItem(AppTheme.ThemeItem themeItem); public abstract void setViewHolder(ThemeListActivity.ThemePickerFragment.ThemeViewHolder themeViewHolder); protected ThemePickerListItemBinding(Object obj, View view, int i, ImageView imageView, TextView textView2, TextView textView3, TextView textView4) { super(obj, view, i); this.checkIndicator = imageView; this.colorText = textView2; this.textView = textView3; this.tipText = textView4; } public AppTheme.ThemeItem getThemeItem() { return this.mThemeItem; } public ThemeListActivity.ThemePickerFragment.ThemeViewHolder getViewHolder() { return this.mViewHolder; } public static ThemePickerListItemBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z) { return inflate(layoutInflater, viewGroup, z, DataBindingUtil.getDefaultComponent()); } @Deprecated public static ThemePickerListItemBinding inflate(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z, Object obj) { return (ThemePickerListItemBinding) ViewDataBinding.inflateInternal(layoutInflater, 2131559204, viewGroup, z, obj); } public static ThemePickerListItemBinding inflate(LayoutInflater layoutInflater) { return inflate(layoutInflater, DataBindingUtil.getDefaultComponent()); } @Deprecated public static ThemePickerListItemBinding inflate(LayoutInflater layoutInflater, Object obj) { return (ThemePickerListItemBinding) ViewDataBinding.inflateInternal(layoutInflater, 2131559204, null, false, obj); } public static ThemePickerListItemBinding bind(View view) { return bind(view, DataBindingUtil.getDefaultComponent()); } @Deprecated public static ThemePickerListItemBinding bind(View view, Object obj) { return (ThemePickerListItemBinding) bind(obj, view, 2131559204); } }
[ "test@gmail.com" ]
test@gmail.com
50b6b4b6c41e9933760dac2e97d79cd58fa22504
43ca534032faa722e206f4585f3075e8dd43de6c
/src/ch/boye/httpclientandroidlib/entity/ContentLengthStrategy.java
1b12e61022e26baea02baeddf9fa090e8e2ef340
[]
no_license
dnoise/IG-6.9.1-decompiled
3e87ba382a60ba995e582fc50278a31505109684
316612d5e1bfd4a74cee47da9063a38e9d50af68
refs/heads/master
2021-01-15T12:42:37.833988
2014-10-29T13:17:01
2014-10-29T13:17:01
26,952,948
1
0
null
null
null
null
UTF-8
Java
false
false
468
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 ch.boye.httpclientandroidlib.entity; import ch.boye.httpclientandroidlib.HttpMessage; public interface ContentLengthStrategy { public static final int CHUNKED = -2; public static final int IDENTITY = -1; public abstract long determineLength(HttpMessage httpmessage); }
[ "leo.sjoberg@gmail.com" ]
leo.sjoberg@gmail.com
4c71cb7008fc67e156393e4fea12521d672dcef8
a5d01febfd8d45a61f815b6f5ed447e25fad4959
/Source Code/5.27.0/sources/com/iqoption/core/graphics/animation/a/d.java
ea83a1c0e11371a328ae1ce146ac02c00b620664
[]
no_license
kkagill/Decompiler-IQ-Option
7fe5911f90ed2490687f5d216cb2940f07b57194
c2a9dbbe79a959aa1ab8bb7a89c735e8f9dbc5a6
refs/heads/master
2020-09-14T20:44:49.115289
2019-11-04T06:58:55
2019-11-04T06:58:55
223,236,327
1
0
null
2019-11-21T18:17:17
2019-11-21T18:17:16
null
UTF-8
Java
false
false
975
java
package com.iqoption.core.graphics.animation.a; import kotlin.i; @i(bne = {1, 1, 15}, bnf = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\b&\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, bng = {"Lcom/iqoption/core/graphics/animation/transition/TransitionInfo;", "", "durations", "Lcom/iqoption/core/graphics/animation/transition/Durations;", "(Lcom/iqoption/core/graphics/animation/transition/Durations;)V", "getDurations", "()Lcom/iqoption/core/graphics/animation/transition/Durations;", "core_release"}) /* compiled from: TransitionInfo.kt */ public abstract class d { private final b bip; public d(b bVar) { kotlin.jvm.internal.i.f(bVar, "durations"); this.bip = bVar; } public final b XU() { return this.bip; } }
[ "yihsun1992@gmail.com" ]
yihsun1992@gmail.com
78ad3fb2d7799bc8ea3720a803be191c687fd352
3016374f9ee1929276a412eb9359c0420d165d77
/InstrumentAPK/sootOutput/com.waze_source_from_JADX/com/google/android/gms/internal/zzqq.java
b0823b27eb6d455d3840df3e5a02841fb46287a5
[]
no_license
DulingLai/Soot_Instrumenter
190cd31e066a57c0ddeaf2736a8d82aec49dadbf
9b13097cb426b27df7ba925276a7e944b469dffb
refs/heads/master
2021-01-02T08:37:50.086354
2018-04-16T09:21:31
2018-04-16T09:21:31
99,032,882
4
3
null
null
null
null
UTF-8
Java
false
false
843
java
package com.google.android.gms.internal; import com.google.android.gms.common.data.DataHolder; import com.google.android.gms.internal.zzrm.zzb; import dalvik.annotation.Signature; /* compiled from: dalvik_source_com.waze.apk */ public abstract class zzqq<L> implements zzb<L> { private final DataHolder DW; protected zzqq(DataHolder $r1) throws { this.DW = $r1; } protected abstract void zza(@Signature({"(T", "L;", "Lcom/google/android/gms/common/data/DataHolder;", ")V"}) L l, @Signature({"(T", "L;", "Lcom/google/android/gms/common/data/DataHolder;", ")V"}) DataHolder dataHolder) throws ; public void zzata() throws { if (this.DW != null) { this.DW.close(); } } public final void zzy(@Signature({"(T", "L;", ")V"}) L $r1) throws { zza($r1, this.DW); } }
[ "laiduling@alumni.ubc.ca" ]
laiduling@alumni.ubc.ca
11f76650df42b3bb1b0f9a2b35155ed3e2c59ede
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
/sources/com/bumptech/glide/load/resource/bitmap/StreamBitmapDecoder.java
af34af0b4f31f1d5033f2ec9fd2a8600c2a112e2
[]
no_license
Auch-Auch/avito_source
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
76fdcc5b7e036c57ecc193e790b0582481768cdc
refs/heads/master
2023-05-06T01:32:43.014668
2021-05-25T10:19:22
2021-05-25T10:19:22
370,650,685
0
0
null
null
null
null
UTF-8
Java
false
false
3,064
java
package com.bumptech.glide.load.resource.bitmap; import android.graphics.Bitmap; import androidx.annotation.NonNull; import com.bumptech.glide.load.Options; import com.bumptech.glide.load.ResourceDecoder; import com.bumptech.glide.load.engine.Resource; import com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool; import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool; import com.bumptech.glide.load.resource.bitmap.Downsampler; import com.bumptech.glide.util.ExceptionCatchingInputStream; import com.bumptech.glide.util.MarkEnforcingInputStream; import java.io.IOException; import java.io.InputStream; public class StreamBitmapDecoder implements ResourceDecoder<InputStream, Bitmap> { public final Downsampler a; public final ArrayPool b; public static class a implements Downsampler.DecodeCallbacks { public final RecyclableBufferedInputStream a; public final ExceptionCatchingInputStream b; public a(RecyclableBufferedInputStream recyclableBufferedInputStream, ExceptionCatchingInputStream exceptionCatchingInputStream) { this.a = recyclableBufferedInputStream; this.b = exceptionCatchingInputStream; } @Override // com.bumptech.glide.load.resource.bitmap.Downsampler.DecodeCallbacks public void onDecodeComplete(BitmapPool bitmapPool, Bitmap bitmap) throws IOException { IOException exception = this.b.getException(); if (exception != null) { if (bitmap != null) { bitmapPool.put(bitmap); } throw exception; } } @Override // com.bumptech.glide.load.resource.bitmap.Downsampler.DecodeCallbacks public void onObtainBounds() { this.a.fixMarkLimit(); } } public StreamBitmapDecoder(Downsampler downsampler, ArrayPool arrayPool) { this.a = downsampler; this.b = arrayPool; } public Resource<Bitmap> decode(@NonNull InputStream inputStream, int i, int i2, @NonNull Options options) throws IOException { RecyclableBufferedInputStream recyclableBufferedInputStream; boolean z; if (inputStream instanceof RecyclableBufferedInputStream) { recyclableBufferedInputStream = (RecyclableBufferedInputStream) inputStream; z = false; } else { recyclableBufferedInputStream = new RecyclableBufferedInputStream(inputStream, this.b); z = true; } ExceptionCatchingInputStream obtain = ExceptionCatchingInputStream.obtain(recyclableBufferedInputStream); try { return this.a.decode(new MarkEnforcingInputStream(obtain), i, i2, options, new a(recyclableBufferedInputStream, obtain)); } finally { obtain.release(); if (z) { recyclableBufferedInputStream.release(); } } } public boolean handles(@NonNull InputStream inputStream, @NonNull Options options) { return this.a.handles(inputStream); } }
[ "auchhunter@gmail.com" ]
auchhunter@gmail.com
4c356f05abea52d3d6bac382ef73c3da2c3a8f43
b9e8ba3f2cb7cc3aec9025385129c1fdda6ec080
/src/com/click4care/wsdl/_6_5/integrationservices/BenefitDataListFilter.java
2905d7579988d8e24b4ff2e15a9ba6a941ef9914
[]
no_license
petecummings/AcopyOfAcopy
af2c75a7f066515569afff364b0faf11562024f8
c83293be0bf5aa51c508df0db0f29654b56a13f9
refs/heads/master
2020-03-14T18:26:18.217011
2018-05-01T12:38:05
2018-05-01T12:38:05
131,741,148
0
0
null
null
null
null
UTF-8
Java
false
false
5,158
java
package com.click4care.wsdl._6_5.integrationservices; import java.math.BigInteger; 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.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;choice> * &lt;element name="universalId" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/> * &lt;element name="id" type="{http://www.w3.org/2001/XMLSchema}integer" maxOccurs="unbounded"/> * &lt;sequence> * &lt;choice minOccurs="0"> * &lt;element name="createdDate" type="{http://click4care.com/wsdl/6.5/integrationServices}dateRange"/> * &lt;element name="lastActionDate" type="{http://click4care.com/wsdl/6.5/integrationServices}dateRange"/> * &lt;/choice> * &lt;element name="queryState" type="{http://click4care.com/wsdl/6.5/integrationServices}queryStateType" minOccurs="0"/> * &lt;/sequence> * &lt;/choice> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "universalId", "id", "createdDate", "lastActionDate", "queryState" }) @XmlRootElement(name = "benefitDataListFilter") public class BenefitDataListFilter { protected List<String> universalId; protected List<BigInteger> id; protected DateRange createdDate; protected DateRange lastActionDate; protected BigInteger queryState; /** * Gets the value of the universalId 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 universalId property. * * <p> * For example, to add a new item, do as follows: * <pre> * getUniversalId().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getUniversalId() { if (universalId == null) { universalId = new ArrayList<String>(); } return this.universalId; } /** * Gets the value of the id 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 id property. * * <p> * For example, to add a new item, do as follows: * <pre> * getId().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link BigInteger } * * */ public List<BigInteger> getId() { if (id == null) { id = new ArrayList<BigInteger>(); } return this.id; } /** * Gets the value of the createdDate property. * * @return * possible object is * {@link DateRange } * */ public DateRange getCreatedDate() { return createdDate; } /** * Sets the value of the createdDate property. * * @param value * allowed object is * {@link DateRange } * */ public void setCreatedDate(DateRange value) { this.createdDate = value; } /** * Gets the value of the lastActionDate property. * * @return * possible object is * {@link DateRange } * */ public DateRange getLastActionDate() { return lastActionDate; } /** * Sets the value of the lastActionDate property. * * @param value * allowed object is * {@link DateRange } * */ public void setLastActionDate(DateRange value) { this.lastActionDate = value; } /** * Gets the value of the queryState property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getQueryState() { return queryState; } /** * Sets the value of the queryState property. * * @param value * allowed object is * {@link BigInteger } * */ public void setQueryState(BigInteger value) { this.queryState = value; } }
[ "you@example.com" ]
you@example.com
71722da1c2c294f9f08f947e0460612c7bdbccf2
fd1a92d9e1f81cb99ff23597b268eae3d8b79880
/zjs-commons/zjs-commons-public/src/main/java/com/zjs/commons/annotations/LoginAuth.java
d2f38b879e7d0b2ca06e1e93ec9fd1c94edf9100
[]
no_license
xeon-ye/zjs-parent
39c8b14164baf4685f01aef5f4c473d4c7624b73
67c31e550a69346de8a39834b898cd7774fd89f0
refs/heads/master
2021-10-29T02:14:24.635494
2019-04-25T09:47:12
2019-04-25T09:47:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
296
java
package com.zjs.commons.annotations; import java.lang.annotation.*; /** * @desc 已登录权限验证注解 * * @author daxiong * @since 10/17/2017 3:13 PM */ @Target({ElementType.TYPE, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface LoginAuth { }
[ "12345678" ]
12345678
7826353dec481189fca0803b8a6056bbdd474de0
12ca025bf5f491a73544082149b55ada453dab49
/src/main/java/com/tms/converter/CatConverter.java
79a1f315d53188bce641e034b97c5a2dd3eec963
[ "MIT" ]
permissive
sdrahnea/translation-management-system
1d6859f2b42228edaccb91aa1f57604154bcb771
55ae8e7c9e716cb93ce1606405b1c9efcf5fdda0
refs/heads/master
2022-12-22T12:29:03.900786
2022-07-02T04:45:38
2022-07-02T04:45:38
184,437,012
4
1
MIT
2022-12-16T03:46:59
2019-05-01T15:26:11
Java
UTF-8
Java
false
false
433
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.tms.converter; import com.tms.model.entity.Cat; import javax.faces.convert.FacesConverter; /** * * @author sdrahnea */ @FacesConverter("catConverter") public class CatConverter extends AbstractConverter<Cat> { }
[ "s.drahnea@gmail.com" ]
s.drahnea@gmail.com
98ecdb3a2816f14160053c2a5ba0927e2927766d
c66075f3bb4929b499a4730347aa433222324a09
/src/main/java/com/rzblog/project/system/dict/controller/DictDataController.java
b6aa74ae171f8f5063c21440195278b43c73ebea
[ "MIT" ]
permissive
ricozhou/RZBlog
71d3c42f668e794b867b022c37953fbcb74b21d9
e02a069883186f95637d33794b54fa867139d49e
refs/heads/master
2022-09-19T03:49:45.806973
2019-11-15T04:50:20
2019-11-15T04:50:20
221,845,216
1
0
MIT
2022-09-01T23:15:52
2019-11-15T04:39:53
JavaScript
UTF-8
Java
false
false
3,953
java
package com.rzblog.project.system.dict.controller; import java.util.List; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import com.rzblog.framework.aspectj.lang.annotation.Log; import com.rzblog.framework.web.controller.BaseController; import com.rzblog.framework.web.domain.Message; import com.rzblog.framework.web.page.TableDataInfo; import com.rzblog.project.system.dict.domain.DictData; import com.rzblog.project.system.dict.service.IDictDataService; /** * 数据字典信息 * * @author ricozhou */ @Controller @RequestMapping("/admin/system/dict/data") public class DictDataController extends BaseController { private String prefix = "system/dict/data"; @Autowired private IDictDataService dictDataService; @RequiresPermissions("system:dict:view") @GetMapping() public String dictData() { return prefix + "/data"; } @GetMapping("/list") @RequiresPermissions("system:dict:list") @ResponseBody public TableDataInfo list(DictData dictData) { startPage(); List<DictData> list = dictDataService.selectDictDataList(dictData); return getDataTable(list); } /** * 修改字典类型 */ @Log(title = "系统管理", action = "字典管理-修改字典数据") @RequiresPermissions("system:dict:edit") @GetMapping("/edit/{dictCode}") public String edit(@PathVariable("dictCode") Long dictCode, Model model) { DictData dict = dictDataService.selectDictDataById(dictCode); model.addAttribute("dict", dict); return prefix + "/edit"; } /** * 新增字典类型 */ @Log(title = "系统管理", action = "字典管理-新增字典数据") @RequiresPermissions("system:dict:add") @GetMapping("/add/{dictType}") public String add(@PathVariable("dictType") String dictType, Model model) { model.addAttribute("dictType", dictType); return prefix + "/add"; } /** * 保存字典类型 */ @Log(title = "系统管理", action = "字典管理-保存字典数据") @RequiresPermissions("system:dict:save") @PostMapping("/save") @ResponseBody public Message save(DictData dict) { if (dictDataService.saveDictData(dict) > 0) { return Message.success(); } return Message.error(); } /** * 删除 */ @Log(title = "系统管理", action = "字典管理-删除字典数据") @RequiresPermissions("system:dict:remove") @RequestMapping("/remove/{dictCode}") @ResponseBody public Message remove(@PathVariable("dictCode") Long dictCode) { DictData dictData = dictDataService.selectDictDataById(dictCode); if (dictData == null) { return Message.error("字典数据不存在"); } if (dictDataService.deleteDictDataById(dictCode) > 0) { return Message.success(); } return Message.error(); } @Log(title = "系统管理", action = "字典类型-批量删除") @RequiresPermissions("system:dict:batchRemove") @PostMapping("/batchRemove") @ResponseBody public Message batchRemove(@RequestParam("ids[]") Long[] ids) { int rows = dictDataService.batchDeleteDictData(ids); if (rows > 0) { return Message.success(); } return Message.error(); } }
[ "2320095772@qq.com" ]
2320095772@qq.com
dd189421b3d790a52a317de9d26e6a714b89772d
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/LANG-13b-4-22-FEMO-WeightedSum:TestLen:CallDiversity/org/apache/commons/lang3/SerializationUtils$ClassLoaderAwareObjectInputStream_ESTest.java
7fbb8283482977ee0e53d719b3d64a37545b3d3c
[]
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
635
java
/* * This file was automatically generated by EvoSuite * Mon Jan 20 13:02:22 UTC 2020 */ package org.apache.commons.lang3; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class SerializationUtils$ClassLoaderAwareObjectInputStream_ESTest extends SerializationUtils$ClassLoaderAwareObjectInputStream_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
cb21e64f4b6c6b431041ea3fa719a6c95e8f75b0
7687c6436faeed458c1da278f716f8c7c230ae64
/src/main/java/com/jiuji/cn/business/tbyouhuiuser/dao/impl/TbYouhuiUserDaoImpl.java
efb2b34b804f995663491bd44f25f281693d6cc3
[]
no_license
gulangzai/jiuji
49b72c2e3f2a3ef2394abcc63945525955efda77
c53f2387f48c3a16df95ea0a4460f274895e6763
refs/heads/master
2022-07-09T03:15:14.074556
2018-03-09T01:42:56
2018-03-09T01:42:56
69,077,303
0
0
null
null
null
null
UTF-8
Java
false
false
665
java
package com.jiuji.cn.business.tbyouhuiuser.dao.impl; import java.util.List; import org.springframework.stereotype.Repository; import com.jiuji.cn.business.tbuser.dao.TbUserDao; import com.jiuji.cn.business.tbuser.model.TbUser; import com.jiuji.cn.business.tbyouhui.dao.TbYouhuiDao; import com.jiuji.cn.business.tbyouhui.model.TbYouhuiUser; import com.jiuji.cn.business.tbyouhuiuser.dao.TbYouhuiUserDao; import com.lanbao.base.PageData; import com.lanbao.dao.impl.BaseDaoImpl; import com.lanbao.mybatis.impl.MyBatisBaseDaoImpl; @Repository public class TbYouhuiUserDaoImpl<TbYouhuiUser> extends BaseDaoImpl implements TbYouhuiUserDao{ }
[ "1871710810@qq.com" ]
1871710810@qq.com
c1d18487a287d39b3c64fcb77e078dc8f28747b5
34eeab9ab57c5981a3f73ae51d6702e87275c9f8
/Mage.Sets/src/mage/cards/f/FlowerFlourish.java
f9aab0988ffe1db84734d1f5270c1a58b8d8f139
[ "MIT" ]
permissive
tylerFretz/mage
f12a3116119376c4ec50c2eff7f2f03ff3016e07
cfa1dffc1e009c25d976dcca0063e8abb237aa46
refs/heads/master
2023-04-30T08:49:22.655044
2023-04-12T15:12:48
2023-04-12T15:12:48
238,129,169
1
0
MIT
2023-04-13T00:28:58
2020-02-04T05:17:50
Java
UTF-8
Java
false
false
1,883
java
package mage.cards.f; import java.util.UUID; import mage.abilities.effects.common.continuous.BoostControlledEffect; import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect; import mage.cards.CardSetInfo; import mage.cards.SplitCard; import mage.constants.CardType; import mage.constants.Duration; import mage.constants.SpellAbilityType; import mage.constants.SubType; import mage.constants.SuperType; import mage.filter.FilterCard; import mage.filter.predicate.Predicates; import mage.target.common.TargetCardInLibrary; /** * * @author TheElk801 */ public final class FlowerFlourish extends SplitCard { private static final FilterCard filter = new FilterCard("basic Forest or Plains card"); static { filter.add(SuperType.BASIC.getPredicate()); filter.add(Predicates.or( SubType.FOREST.getPredicate(), SubType.PLAINS.getPredicate() )); } public FlowerFlourish(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{G/W}", "{4}{G}{W}", SpellAbilityType.SPLIT); // Flower // Search your library for a basic Forest or Plains card, reveal it, put it into your hand, then shuffle your library. this.getLeftHalfCard().getSpellAbility().addEffect( new SearchLibraryPutInHandEffect( new TargetCardInLibrary(filter), true, true ) ); // Flourish // Creatures you control get +2/+2 until end of turn. this.getRightHalfCard().getSpellAbility().addEffect( new BoostControlledEffect(2, 2, Duration.EndOfTurn) ); } private FlowerFlourish(final FlowerFlourish card) { super(card); } @Override public FlowerFlourish copy() { return new FlowerFlourish(this); } }
[ "theelk801@gmail.com" ]
theelk801@gmail.com
c42a0ffd9317f9ef2537b8c393814018e571bec4
2b6c5004b2f467d453f6a227306ae9830c1b834f
/archive/2015.06/2015.06.06 - Yandex.Algorithm.2015 Round 3/TaskF.java
4d30ce090edd61479617c97c9b652d77369dd276
[]
no_license
gargoris/yaal
83edf0bb36627aa96ce0e66c836d56f92ec5f842
4f927166577b16faa99c7d3e6d870f59d6977cb3
refs/heads/master
2020-12-21T04:48:30.470138
2020-04-19T11:25:19
2020-04-19T11:25:19
178,675,652
0
0
null
2019-03-31T10:54:25
2019-03-31T10:54:24
null
UTF-8
Java
false
false
2,001
java
package net.egork; import net.egork.graph.BidirectionalGraph; import net.egork.graph.Graph; import net.egork.graph.ShortestDistance; import net.egork.io.IOUtils; import net.egork.misc.ArrayUtils; import net.egork.misc.MiscUtils; import net.egork.io.InputReader; import net.egork.io.OutputWriter; public class TaskF { public void solve(int testNumber, InputReader in, OutputWriter out) { int count = in.readInt(); int edgeCount = in.readInt(); int start = in.readInt() - 1; int end = in.readInt() - 1; int initial = in.readInt(); int target = in.readInt(); int[] from = new int[edgeCount]; int[] to = new int[edgeCount]; int[] weight = new int[edgeCount]; int[] cost = new int[edgeCount]; IOUtils.readIntArrays(in, from, to, weight, cost); MiscUtils.decreaseByOne(from, to); if (start == end) { out.printLine(0); return; } long answer = Long.MAX_VALUE; for (int i = 0; i < edgeCount; i++) { if (weight[i] < 0 || cost[i] == 0) { out.printLine(0); return; } answer = Math.min(answer, (weight[i] + 1L) * cost[i]); } int delta = target - initial; Graph graph = BidirectionalGraph.createWeightedGraph(count, from, to, ArrayUtils.asLong(weight)); long[] fromStart = ShortestDistance.dijkstraAlgorithm(graph, start).first; long[] fromEnd = ShortestDistance.dijkstraAlgorithm(graph, end).first; for (int i = 0; i < edgeCount; i++) { long path = Math.min(fromStart[from[i]] + fromEnd[to[i]] + weight[i], fromStart[to[i]] + fromEnd[from[i]] + weight[i]); if (path <= delta) { out.printLine(0); return; } if (answer / cost[i] >= path - delta) { answer = (path - delta) * cost[i]; } } out.printLine(answer); } }
[ "egor@egork.net" ]
egor@egork.net
bb88e331ef294480ed34b123036fa8a3a3e8c598
c8073dbee31a9f30ab94f05ee9831e63b740d9cf
/src/org/kapott/hbci/datatypes/SyntaxAN.java
2634dd3b2be909d28f650f6eaee19732cfd72a49
[]
no_license
maxemmert/Studiarbeit_HBCIPatched
9d12699263ee7404bea93ac0435404958f954b0b
ad2d37404d8b5fee4d444dc079d6f31a6a364f93
refs/heads/master
2021-01-19T13:46:06.398801
2015-03-18T10:25:37
2015-03-18T10:25:37
32,451,338
0
0
null
null
null
null
UTF-8
Java
false
false
4,455
java
/* $Id: SyntaxAN.java,v 1.1 2011/05/04 22:37:56 willuhn Exp $ This file is part of HBCI4Java Copyright (C) 2001-2008 Stefan Palme HBCI4Java 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 2 of the License, or (at your option) any later version. HBCI4Java 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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package org.kapott.hbci.datatypes; // Speicherung im orig. Format public class SyntaxAN extends SyntaxDE { /** @internal @brief Quotes all HBCI-specific characters. @param x The String to be quoted. @return A String where all HBCI-specific characters in @p x are quoted using @c ? */ protected static String quote(String x) { int len=x.length(); StringBuffer temp=new StringBuffer(len<<1); for (int i=0; i<len;i++) { char ch = x.charAt(i); switch (ch) { case '+': case ':': case '\'': case '?': case '@': temp.append('?'); break; default: break; } temp.append(ch); } return temp.toString(); } /** @internal @brief Creates a data element for storing alphanumeric data, used while creating a message @see SyntaxDE */ public SyntaxAN(String x, int minlen, int maxlen) { super(x.trim(),minlen,maxlen); } @Override public void init(String x,int minlen,int maxlen) { super.init(x.trim(),minlen,maxlen); } /** @internal @see SyntaxDE */ protected SyntaxAN() { super(); } @Override protected void init() { super.init(); } /** @internal @see SyntaxDE */ @Override public String toString(int zero) { String st=getContent(); return (st==null)?"":quote(st); } // -------------------------------------------------------------------------------- private void initData(StringBuffer res,int minsize,int maxsize) { int startidx = skipPreDelim(res); int endidx = findNextDelim(res, startidx); String st = res.substring(startidx, endidx); setContent(unquote(st),minsize,maxsize); res.delete(0,endidx); } /** @internal @brief Creates a data element for storing alphanumeric data, used while parsing a message. This constructor creates a new data element from a given HBCI message. For this the first token in the HBCI message will be extracted from @p res and used as init value for the data element @param res A part of the HBCI-message to be parsed. From this (sub-)string the first token will be used to initialize the data element. @param minsize The minimum string length for this element. @param maxsize The maximum string length for this element (or zero). See SyntaxDE::setContent(String,int,int,int). */ public SyntaxAN(StringBuffer res, int minsize, int maxsize) { initData(res,minsize,maxsize); } @Override public void init(StringBuffer res,int minlen,int maxlen) { initData(res,minlen,maxlen); } /** @internal @brief Returns a String with all quotation characters removed @param st the String to be unquoted @return an unquoted string, i.e. with all HBCI-quotes (?) removed */ protected static String unquote(String st) { int len=st.length(); StringBuffer ret = new StringBuffer(len); int idx = 0; while (idx<len) { char ch = st.charAt(idx++); if (ch == '?') { ch = st.charAt(idx++); } ret.append(ch); } return ret.toString(); } }
[ "max_emmert@web.de" ]
max_emmert@web.de
29958d026a595e92935be9bd8495b2977aabb94a
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.mm/classes.jar/com/tencent/mm/plugin/gamelive/GameLiveAppbrandProcessService$$ExternalSyntheticLambda16.java
84a01340a8ecfc83dc407cbe213744908205a272
[]
no_license
tsuzcx/qq_apk
0d5e792c3c7351ab781957bac465c55c505caf61
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
refs/heads/main
2022-07-02T10:32:11.651957
2022-02-01T12:41:38
2022-02-01T12:41:38
453,860,108
36
9
null
2022-01-31T09:46:26
2022-01-31T02:43:22
Java
UTF-8
Java
false
false
523
java
package com.tencent.mm.plugin.gamelive; import android.view.MenuItem; import com.tencent.mm.ui.base.u.i; public final class GameLiveAppbrandProcessService$$ExternalSyntheticLambda16 implements u.i { public final void onMMMenuItemSelected(MenuItem arg1, int arg2) {} } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes11.jar * Qualified Name: com.tencent.mm.plugin.gamelive.GameLiveAppbrandProcessService..ExternalSyntheticLambda16 * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
2d5c851277fdfa38d91319cbbe2c42853e398040
0add363a9bc1c30ee688f2dcc1fcc01a48afdb18
/app/src/main/java/com/allcn/content/PathCursor.java
5fafe0313d8c218081cda96f9d1183deed60bdd8
[]
no_license
scofieldhhl/AllCN1
71828fcb75a281233130b2356166d295347e9fdd
2daf9d91a4da623d5ce1c4dcbf69e419f264702c
refs/heads/master
2020-05-05T09:29:40.242745
2019-04-07T02:12:44
2019-04-07T02:12:44
179,907,152
0
0
null
null
null
null
UTF-8
Java
false
false
4,887
java
/* * Copyright (C) 2015 Zhang Rui <bbcallen@gmail.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.allcn.content; import android.database.AbstractCursor; import android.provider.BaseColumns; import android.text.TextUtils; import java.io.File; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Set; import java.util.TreeSet; public class PathCursor extends AbstractCursor { private List<FileItem> mFileList = new ArrayList<>(); public static final String CN_ID = BaseColumns._ID; public static final String CN_FILE_NAME = "file_name"; public static final String CN_FILE_PATH = "file_path"; public static final String CN_IS_DIRECTORY = "is_directory"; public static final String CN_IS_VIDEO = "is_video"; public static final String[] columnNames = new String[]{CN_ID, CN_FILE_NAME, CN_FILE_PATH, CN_IS_DIRECTORY, CN_IS_VIDEO}; public static final int CI_ID = 0; public static final int CI_FILE_NAME = 1; public static final int CI_FILE_PATH = 2; public static final int CI_IS_DIRECTORY = 3; public static final int CI_IS_VIDEO = 4; PathCursor(File parentDirectory, File[] fileList) { if (parentDirectory.getParent() != null) { FileItem parentFile = new FileItem(new File(parentDirectory, "..")); parentFile.isDirectory = true; mFileList.add(parentFile); } if (fileList != null) { for (File file : fileList) { mFileList.add(new FileItem(file)); } Collections.sort(this.mFileList, sComparator); } } @Override public int getCount() { return mFileList.size(); } @Override public String[] getColumnNames() { return columnNames; } @Override public String getString(int column) { switch (column) { case CI_FILE_NAME: return mFileList.get(getPosition()).file.getName(); case CI_FILE_PATH: return mFileList.get(getPosition()).file.toString(); } return null; } @Override public short getShort(int column) { return (short) getLong(column); } @Override public int getInt(int column) { return (int) getLong(column); } @Override public long getLong(int column) { switch (column) { case CI_ID: return getPosition(); case CI_IS_DIRECTORY: return mFileList.get(getPosition()).isDirectory ? 1 : 0; case CI_IS_VIDEO: return mFileList.get(getPosition()).isVideo ? 1 : 0; } return 0; } @Override public float getFloat(int column) { return 0; } @Override public double getDouble(int column) { return 0; } @Override public boolean isNull(int column) { return mFileList == null; } public static Comparator<FileItem> sComparator = new Comparator<FileItem>() { @Override public int compare(FileItem lhs, FileItem rhs) { if (lhs.isDirectory && !rhs.isDirectory) return -1; else if (!lhs.isDirectory && rhs.isDirectory) return 1; return lhs.file.getName().compareToIgnoreCase(rhs.file.getName()); } }; private static Set<String> sMediaExtSet = new TreeSet<String>(String.CASE_INSENSITIVE_ORDER); static { sMediaExtSet.add("flv"); sMediaExtSet.add("mp4"); } private class FileItem { public File file; public boolean isDirectory; public boolean isVideo; public FileItem(String file) { this(new File(file)); } public FileItem(File file) { this.file = file; this.isDirectory = file.isDirectory(); String fileName = file.getName(); if (!TextUtils.isEmpty(fileName)) { int extPos = fileName.lastIndexOf('.'); if (extPos >= 0) { String ext = fileName.substring(extPos + 1); if (!TextUtils.isEmpty(ext) && sMediaExtSet.contains(ext)) { this.isVideo = true; } } } } } }
[ "scofield.hhl@gmail.com" ]
scofield.hhl@gmail.com
233e1dcc91065e5c7e29be6f285fd1e7e0c7ee4c
ab0e55f869f40296a61af3e593785fd59667ac1f
/src/main/java/com/el/jichu/designpattern/iterator/test/ComputerColleage.java
eed996c4c7a5f78060d1f9a21cf4958f36f5a13a
[]
no_license
rmzf9192/demojichu
fed23470e41b47d1d9d63d06a6728a80be21a3a2
7d22cd769feab69bbcd8c2e4ce0acfecb0f25cd7
refs/heads/master
2022-10-18T04:22:17.419666
2020-07-14T11:13:48
2020-07-14T11:13:48
163,253,486
0
0
null
2022-10-04T23:55:41
2018-12-27T05:58:41
Java
UTF-8
Java
false
false
965
java
package com.el.jichu.designpattern.iterator.test; import java.util.Iterator; /** * @author Roman.zhang * @Date: 2019/7/9 15:44 * @Version:V1.0 * @Description:ComputerColleage */ public class ComputerColleage implements College { Department[] departments; int numOfDepartment = 0; public ComputerColleage() { departments = new Department[5]; addDepartment("Java专业", " Java专业 "); addDepartment("PHP专业", " PHP专业 "); addDepartment("大数据专业", " 大数据专业 "); } @Override public String getName() { return "计算机学院"; } @Override public void addDepartment(String name, String desc) { Department department = new Department(name, desc); departments[numOfDepartment] = department; numOfDepartment+=1; } @Override public Iterator createIterator() { return new ComputerCollegeIterator(departments); } }
[ "goodMorning_pro@163.com" ]
goodMorning_pro@163.com
1146d2028a87a264393be2ca9d63083c44cbe16d
82262cdae859ded0f82346ed04ff0f407b18ea6f
/value-map/cloud-web-gateway/gateway-core/src/main/java/com/tzCloud/gateway/provider/QiChaChaProvider.java
f5cde1cb1150bbc4c162612aea8f257506849faa
[]
no_license
dwifdji/real-project
75ec32805f97c6d0d8f0935f7f92902f9509a993
9ddf66dfe0493915b22132781ef121a8d4661ff8
refs/heads/master
2020-12-27T14:01:37.365982
2019-07-26T10:07:27
2019-07-26T10:07:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,150
java
package com.tzCloud.gateway.provider; import com.alibaba.dubbo.config.annotation.Service; import com.tzCloud.gateway.service.check.QiChaChaService; import com.tzCloud.gateway.facade.QiChaChaFacade; import com.tzCloud.gateway.resp.risk.RiskComInfoResp; import com.tzCloud.gateway.resp.risk.RiskInvestmentResp; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; /** * 描述: * <p> * 作者: wuchuanqi * 版本: 1.0.0 * 时间: 2019/1/22 13:50 */ @Component @Service(version = "1.0.0") public class QiChaChaProvider implements QiChaChaFacade { @Autowired private QiChaChaService qiChaChaService; @Override public RiskComInfoResp getRiskComInfo(String keyWord) { return qiChaChaService.getRiskComInfo(keyWord); } @Override public String getStockAnalysisData(String keyWord) { return qiChaChaService.getStockAnalysisData(keyWord); } @Override public RiskInvestmentResp searchInvestment(String keyWord, String page, String pageSize) { return qiChaChaService.searchInvestment(keyWord,page,pageSize); } }
[ "15538068782@163.com" ]
15538068782@163.com
8610195f58a5ae2fbf9a36b2a34e26e844042fcb
de75c58f6513c0f78921e5a0879a523c5d528d9c
/build.properties/src/wsl/fw/gui/WslComboBox.java
c355f1e775e6f73c70a7e73005c1e56aa9b76efc
[]
no_license
Prinz2109/mobiledatanow
679af56e1809736ee283439db9b74cfa25512ab0
a792a11b228a85a476c16127aac2a98fdc500cd1
refs/heads/master
2021-01-17T13:20:11.589335
2009-02-04T04:49:30
2009-02-04T04:49:30
33,274,021
0
1
null
null
null
null
UTF-8
Java
false
false
5,687
java
/** * Title: <p> * Description: <p> * Copyright: Copyright (c) <p> * Company: <p> * @author * @version 1.0 */ package wsl.fw.gui; // imports import java.util.Vector; import java.awt.Dimension; import javax.swing.JComboBox; import wsl.fw.util.Type; import wsl.fw.util.Util; import wsl.fw.datasource.RecordSet; import wsl.fw.datasource.DataManager; import wsl.fw.datasource.DataSource; import wsl.fw.datasource.DataSourceException; import wsl.fw.datasource.DataObject; import wsl.fw.datasource.Query; /** * Wsl framework subclass of JComboBox. Adds constructors to build combo using the DataSource framework */ public class WslComboBox extends JComboBox { /** * Preferred width */ public static final int DEFAULT_WIDTH = 100; /** * Preferred height */ public static final int DEFAULT_HEIGHT = 20; /** * Dimension of the combo box */ private Dimension _dimension = new Dimension(DEFAULT_WIDTH, DEFAULT_HEIGHT); /** * Blank ctor */ public WslComboBox() { } /** * Constructor taking a width for the combo * @param width the width of the combo */ public WslComboBox(int width) { _dimension.width = width; updateSize(); } /** * Updates the size properties of the control based on preferred size */ private void updateSize() { setSize(getPreferredSize()); setMinimumSize(getPreferredSize()); setMaximumSize(getPreferredSize()); } /** * Builds a combo from an entity name * @param entityName the entity used to build the combo */ public WslComboBox(String entityName) { // select from data source DataSource ds = DataManager.getDataSource(entityName); Util.argCheckNull(ds); try { RecordSet rs = ds.select(new Query(entityName)); // delegate to recordset ctor if(rs != null) buildFromRecordSet(rs); } catch(DataSourceException e) { throw new RuntimeException(e.toString()); } } /** * Builds a combo from a RecordSet * @param rs the RecordSet used to build the combo */ public WslComboBox(RecordSet rs) { // delegate buildFromRecordSet(rs); } /** * Builds a combo from a Vector * @param v the Vector used to build the combo */ public WslComboBox(Vector v) { // delegate buildFromVector(v); } /** * Builds a combo from a RecordSet * @param rs the RecordSet used to build the combo */ public void buildFromRecordSet(RecordSet rs) { // delegate buildFromVector(rs.getRows()); } /** * Builds a combo from a Vector * @param v the Vector used to build the combo */ public void buildFromVector(Vector v) { // delegate buildFromArray(v.toArray()); } /** * Builds a combo from an Object array * @param array the Object array used to build the combo */ public void buildFromArray(Object[] array) { // verify params Util.argCheckNull(array); // build from vector for(int i = 0; i < array.length; i++) this.addItem(array[i]); } /** * Select the item with the specified text * @param text the text to look for * @return int the index if the row found to match the param string, -1 if not found */ public int selectItem(String text) { // iterate the combo for(int i = 0; i < this.getItemCount(); i++) { // compare the item text if(getItemAt(i).toString().equalsIgnoreCase(text)) { this.setSelectedIndex(i); return i; } } // not found return -1; } /** * Select the combo by finding a DataObject by a field and value * @param field the field to compare the value with * @param value the value to compare * @return int the selected index, -1 if not found */ public int selectDataObject(String field, Object value) { // get the selected index int index = findDataObject(field, value); if(index >= 0) this.setSelectedIndex(index); return index; } /** * Find the index of a data object from a field value * @param field the name of a field * @param value the value of the field * @return int the index of the DataObject, -1 if not found */ public int findDataObject(String field, Object value) { // iterate the combo DataObject dobj; String tempVal; for(int i = 0; i < this.getItemCount(); i++) { // get the DataObject dobj = (DataObject)getItemAt(i); // compare the field values if(dobj != null) { tempVal = dobj.getStringValue(field); if((tempVal == null && value == null) || (tempVal != null && tempVal.equals(Type.objectToString(value)))) return i; } } // not found return -1; } /** * return the preferred size for the combo */ public Dimension getPreferredSize() { return _dimension; } //-------------------------------------------------------------------------- // clear /** * Clear the combo */ public void clear() { // delegate to removeAllItems() this.removeAllItems(); } }
[ "nick.mobiledatanow@95061b60-9fd8-11dd-a887-7ffe1a420f8d" ]
nick.mobiledatanow@95061b60-9fd8-11dd-a887-7ffe1a420f8d
eb2341711892e70643f2898b7a55b09481b6036f
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project94/src/test/java/org/gradle/test/performance94_1/Test94_56.java
d29521d1023302a4b6d6ff0078b662bbc5f7c4a6
[]
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
289
java
package org.gradle.test.performance94_1; import static org.junit.Assert.*; public class Test94_56 { private final Production94_56 production = new Production94_56("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
702d8d21b8b30d69c3dede167f602897c06375a0
32f38cd53372ba374c6dab6cc27af78f0a1b0190
/app/src/main/java/com/alipay/mobile/common/share/widget/ResUtils.java
e2a5057279f2a6e32f7b08627a1fab0c575a43e1
[]
no_license
shuixi2013/AmapCode
9ea7aefb42e0413f348f238f0721c93245f4eac6
1a3a8d4dddfcc5439df8df570000cca12b15186a
refs/heads/master
2023-06-06T23:08:57.391040
2019-08-29T04:36:02
2019-08-29T04:36:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
903
java
package com.alipay.mobile.common.share.widget; import android.content.Context; public final class ResUtils { public static final String ANIM = "anim"; public static final String ATTR = "attr"; public static final String COLOR = "color"; public static final String DIMEN = "dimen"; public static final String DRAWABLE = "drawable"; public static final String ID = "id"; public static final String INTEGER = "integer"; public static final String LAYOUT = "layout"; public static final String RAW = "raw"; public static final String STRING = "string"; public static final String STYLE = "style"; public static final String STYLEABLE = "styleable"; private ResUtils() { } public static int getResId(Context context, String type, String name) { return context.getResources().getIdentifier(name, type, context.getPackageName()); } }
[ "hubert.yang@nf-3.com" ]
hubert.yang@nf-3.com
30eb85a0f9f1d3e9ad8d116fd6e4e0d8ed0987b0
21cc908c06949e4e00e5f82ca6b9fbe991a6ea17
/src/com/ibm/dp/beans/SWLocatorFormBean.java
1cd06ba4ee51840404458950496401d804185674
[]
no_license
Beeru1/DPDTH_New
b93cca6a2dc99b64de242b024f3e48327102d3fc
80e3b364bb7634841e47fa41df7d3e633baedf72
refs/heads/master
2021-01-12T06:54:25.644819
2016-12-19T11:57:08
2016-12-19T11:57:08
76,858,059
1
0
null
null
null
null
UTF-8
Java
false
false
4,154
java
package com.ibm.dp.beans; import java.util.ArrayList; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; /** * Form Bean object for State Warehouse Locator Master * * @author Saatae Issa * */ public class SWLocatorFormBean extends ActionForm { /** * serialVersionUID */ private static final long serialVersionUID = -7384006324066921447L; /** * swId */ private int swId; /** * swCompanyCode */ private String swCompanyCode; /** * swAreaCode */ private String swAreaCode; /** * swSubareaCode */ private String swSubareaCode; /** * swSourceType */ private String swSourceType; /** * swCircle */ private String swCircle; /** * userId */ private String userId; /** * locatorList */ ArrayList locatorList; /** * circleList */ ArrayList circleList; /** * Reset field values */ public void reset(ActionMapping mapping, HttpServletRequest request) { this.swId = 0; this.swCompanyCode = null; this.swAreaCode = null; this.swSubareaCode = null; this.swSourceType = null; this.swCircle = null; this.userId = null; this.locatorList = null; this.circleList = null; } /** * Validate the form bean */ public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); // Validate the fields in your form, adding // adding each error to this.errors as found, e.g. // if ((field == null) || (field.length() == 0)) { // errors.add("field", new // org.apache.struts.action.ActionError("error.field.required")); // } return errors; } /** * Getter for property "locatorList" */ public ArrayList getLocatorList() { return locatorList; } /** * Setter for property <code>locatorList</code>. * @param locatorList */ public void setLocatorList(ArrayList locatorList) { this.locatorList = locatorList; } /** * Getter for property "swAreaCode" */ public String getSwAreaCode() { return swAreaCode; } /** * Setter for property <code>swAreaCode</code>. * @param swAreaCode */ public void setSwAreaCode(String swAreaCode) { this.swAreaCode = swAreaCode; } /** * Getter for property "swCircle" */ public String getSwCircle() { return swCircle; } /** * Setter for property <code>swCircle</code>. * @param swCircle */ public void setSwCircle(String swCircle) { this.swCircle = swCircle; } /** * Getter for property "swCompanyCode" */ public String getSwCompanyCode() { return swCompanyCode; } /** * Setter for property <code>swCompanyCode</code>. * @param swCompanyCode */ public void setSwCompanyCode(String swCompanyCode) { this.swCompanyCode = swCompanyCode; } /** * Getter for property "swId" */ public int getSwId() { return swId; } /** * Setter for property <code>swId</code>. * @param swId */ public void setSwId(int swId) { this.swId = swId; } /** * Getter for property "swSourceType" */ public String getSwSourceType() { return swSourceType; } /** * Setter for property <code>swSourceType</code>. * @param swSourceType */ public void setSwSourceType(String swSourceType) { this.swSourceType = swSourceType; } /** * Getter for property "swSubareaCode" */ public String getSwSubareaCode() { return swSubareaCode; } /** * Setter for property <code>swSubareaCode</code>. * @param swSubareaCode */ public void setSwSubareaCode(String swSubareaCode) { this.swSubareaCode = swSubareaCode; } /** * Getter for property "userId" */ public String getUserId() { return userId; } /** * Setter for property <code>userId</code>. * @param userId */ public void setUserId(String userId) { this.userId = userId; } /** * Getter for property "circleList" */ public ArrayList getCircleList() { return circleList; } /** * Setter for property <code>circleList</code>. * @param circleList */ public void setCircleList(ArrayList circleList) { this.circleList = circleList; } }
[ "sgurugub@in.ibm.com" ]
sgurugub@in.ibm.com
3c78a289fa81d6f749bca53ed579ca649867e6c5
6a10b0a59daa4e779282eeecc3d1105473f200dd
/src/test/java/com/thebuzzmedia/exiftool/core/cache/GuavaVersionCacheTest.java
302740027fa864631be0546450781b5f56eceae8
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
rmarmier/exiftool
acab7030616ceee393c826d848decc6ba637c571
76a5a92050965e25f2786875c46993b88c8acd09
refs/heads/master
2021-01-22T16:53:10.254073
2017-05-14T21:32:32
2017-05-14T21:32:32
53,200,896
0
0
null
2016-03-05T12:43:57
2016-03-05T12:43:57
null
UTF-8
Java
false
false
1,194
java
/** * Copyright 2011 The Buzz Media, LLC * Copyright 2015 Mickael Jeanroy <mickael.jeanroy@gmail.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.thebuzzmedia.exiftool.core.cache; import static com.thebuzzmedia.exiftool.tests.ReflectionUtils.readPrivateField; import com.google.common.cache.Cache; import com.thebuzzmedia.exiftool.VersionCache; public class GuavaVersionCacheTest extends AbstractVersionCacheTest<GuavaVersionCache> { @Override protected GuavaVersionCache create() { return new GuavaVersionCache(); } @Override protected long size(VersionCache cache) throws Exception { return ((Cache) readPrivateField(cache, "cache")).size(); } }
[ "mickael.jeanroy@gmail.com" ]
mickael.jeanroy@gmail.com
684cb7cd56f556472d6f85dd2712b81e3f769297
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
/benchmark/test/com/vaadin/tests/design/DesignReadInConstructorTest.java
675f8b3fe91d13c8388cf7600faa2080d1790137
[]
no_license
STAMP-project/dspot-experiments
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
121487e65cdce6988081b67f21bbc6731354a47f
refs/heads/master
2023-02-07T14:40:12.919811
2019-11-06T07:17:09
2019-11-06T07:17:09
75,710,758
14
19
null
2023-01-26T23:57:41
2016-12-06T08:27:42
null
UTF-8
Java
false
false
317
java
package com.vaadin.tests.design; import org.junit.Assert; import org.junit.Test; public class DesignReadInConstructorTest { @Test public void useDesignReadInConstructor() { DesignReadInConstructor dric = new DesignReadInConstructor(); Assert.assertEquals(3, getComponentCount()); } }
[ "benjamin.danglot@inria.fr" ]
benjamin.danglot@inria.fr
0e93e6421484497bb5055d4fc89f636a12b95b99
7d2d888c41b38142d8152c45b136e5130f715fa9
/app/build/generated/source/r/debug/com/makeramen/roundedimageview/R.java
930a0f66a6ae76c1f907078c6643f9c88397d0f0
[]
no_license
ParisXiao/Remotemeicalplatform
f13629aae341992307d56cab83c1e8544f9b9511
a52593949f95713ac67625784566247ebe2e9cd0
refs/heads/master
2021-01-25T14:16:12.144847
2018-04-11T16:45:07
2018-04-11T16:45:07
122,987,002
0
0
null
null
null
null
UTF-8
Java
false
false
3,392
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package com.makeramen.roundedimageview; public final class R { public static final class attr { public static final int riv_border_color = 0x7f010125; public static final int riv_border_width = 0x7f010124; public static final int riv_corner_radius = 0x7f01011f; public static final int riv_corner_radius_bottom_left = 0x7f010122; public static final int riv_corner_radius_bottom_right = 0x7f010123; public static final int riv_corner_radius_top_left = 0x7f010120; public static final int riv_corner_radius_top_right = 0x7f010121; public static final int riv_mutate_background = 0x7f010126; public static final int riv_oval = 0x7f010127; public static final int riv_tile_mode = 0x7f010128; public static final int riv_tile_mode_x = 0x7f010129; public static final int riv_tile_mode_y = 0x7f01012a; } public static final class id { public static final int clamp = 0x7f0e004a; public static final int mirror = 0x7f0e004b; public static final int repeat = 0x7f0e004c; } public static final class string { public static final int define_roundedimageview = 0x7f070063; public static final int library_roundedimageview_author = 0x7f07008c; public static final int library_roundedimageview_authorWebsite = 0x7f07008d; public static final int library_roundedimageview_isOpenSource = 0x7f07008e; public static final int library_roundedimageview_libraryDescription = 0x7f07008f; public static final int library_roundedimageview_libraryName = 0x7f070090; public static final int library_roundedimageview_libraryVersion = 0x7f070091; public static final int library_roundedimageview_libraryWebsite = 0x7f070092; public static final int library_roundedimageview_licenseId = 0x7f070093; public static final int library_roundedimageview_repositoryLink = 0x7f070094; } public static final class styleable { public static final int[] RoundedImageView = { 0x0101011d, 0x7f01011f, 0x7f010120, 0x7f010121, 0x7f010122, 0x7f010123, 0x7f010124, 0x7f010125, 0x7f010126, 0x7f010127, 0x7f010128, 0x7f010129, 0x7f01012a }; public static final int RoundedImageView_android_scaleType = 0; public static final int RoundedImageView_riv_border_color = 7; public static final int RoundedImageView_riv_border_width = 6; public static final int RoundedImageView_riv_corner_radius = 1; public static final int RoundedImageView_riv_corner_radius_bottom_left = 4; public static final int RoundedImageView_riv_corner_radius_bottom_right = 5; public static final int RoundedImageView_riv_corner_radius_top_left = 2; public static final int RoundedImageView_riv_corner_radius_top_right = 3; public static final int RoundedImageView_riv_mutate_background = 8; public static final int RoundedImageView_riv_oval = 9; public static final int RoundedImageView_riv_tile_mode = 10; public static final int RoundedImageView_riv_tile_mode_x = 11; public static final int RoundedImageView_riv_tile_mode_y = 12; } }
[ "1451183076@qq.com" ]
1451183076@qq.com
ee9704c464c8ff4210f7f9d55e691b3c0302278c
7f261a1e2bafd1cdd98d58f00a2937303c0dc942
/src/ANXCamera/sources/com/miui/extravideo/common/MediaDecoderAsync.java
584c338a52a2597696899a58988d5831f632efb9
[]
no_license
xyzuan/ANXCamera
7614ddcb4bcacdf972d67c2ba17702a8e9795c95
b9805e5197258e7b980e76a97f7f16de3a4f951a
refs/heads/master
2022-04-23T16:58:09.592633
2019-05-31T17:18:34
2019-05-31T17:26:48
259,555,505
3
0
null
2020-04-28T06:49:57
2020-04-28T06:49:57
null
UTF-8
Java
false
false
7,655
java
package com.miui.extravideo.common; import android.media.MediaCodec; import android.media.MediaCodec.BufferInfo; import android.media.MediaCodec.Callback; import android.media.MediaCodec.CodecException; import android.media.MediaExtractor; import android.media.MediaFormat; import android.os.Handler; import android.os.Looper; import android.support.annotation.NonNull; import android.util.Log; import java.nio.ByteBuffer; public class MediaDecoderAsync { private static final String TAG = "MediaDecoderAsync"; /* access modifiers changed from: private */ public int mDecodeFrameIndex; private MediaCodec mDecoder; private Handler mHandler; private Exception mInitException; /* access modifiers changed from: private */ public DecodeUpdateListener mListener; /* access modifiers changed from: private */ public final MediaExtractor mMediaExtractor; private final MediaParamsHolder mMediaParamsHolder; /* access modifiers changed from: private */ public int mSkipFrameTimes; private final String mTargetFile; private class CustomCallback extends Callback { private CustomCallback() { } public void onError(@NonNull MediaCodec mediaCodec, @NonNull CodecException codecException) { Log.d(MediaDecoderAsync.TAG, "onError", codecException); if (MediaDecoderAsync.this.mListener != null) { MediaDecoderAsync.this.mListener.onError(); } } public void onInputBufferAvailable(@NonNull MediaCodec mediaCodec, int i) { try { int readSampleData = MediaDecoderAsync.this.mMediaExtractor.readSampleData(mediaCodec.getInputBuffer(i), 0); long sampleTime = MediaDecoderAsync.this.mMediaExtractor.getSampleTime(); MediaDecoderAsync.this.mDecodeFrameIndex = MediaDecoderAsync.this.mDecodeFrameIndex + 1; Log.d(MediaDecoderAsync.TAG, String.format("input decode index : %d time : %d simple size : %d", new Object[]{Integer.valueOf(MediaDecoderAsync.this.mDecodeFrameIndex), Long.valueOf(sampleTime), Integer.valueOf(readSampleData)})); if (MediaDecoderAsync.this.mListener != null) { MediaDecoderAsync.this.mListener.onFrameDecodeBegin(MediaDecoderAsync.this.mDecodeFrameIndex, sampleTime); } if (readSampleData < 0) { mediaCodec.queueInputBuffer(i, 0, 0, 0, 4); return; } mediaCodec.queueInputBuffer(i, 0, readSampleData, sampleTime, 0); for (int i2 = 0; i2 < MediaDecoderAsync.this.mSkipFrameTimes; i2++) { MediaDecoderAsync.this.mMediaExtractor.advance(); } } catch (Exception e) { Log.d(MediaDecoderAsync.TAG, "onInputBufferAvailable exception", e); } } public void onOutputBufferAvailable(@NonNull MediaCodec mediaCodec, int i, @NonNull BufferInfo bufferInfo) { try { boolean z = (bufferInfo.flags & 4) != 0; ByteBuffer outputBuffer = mediaCodec.getOutputBuffer(i); if (!z) { if (MediaDecoderAsync.this.mListener != null) { MediaDecoderAsync.this.mListener.onDecodeBuffer(outputBuffer, bufferInfo); Log.d(MediaDecoderAsync.TAG, String.format("output decode presentation time : %d", new Object[]{Long.valueOf(bufferInfo.presentationTimeUs)})); outputBuffer.clear(); mediaCodec.releaseOutputBuffer(i, false); } } else if (MediaDecoderAsync.this.mListener != null) { MediaDecoderAsync.this.mListener.onDecodeStop(true); Log.d(MediaDecoderAsync.TAG, "OutputBuffer BUFFER_FLAG_END_OF_STREAM"); } } catch (Exception e) { Log.d(MediaDecoderAsync.TAG, "onOutputBufferAvailable exception", e); } } public void onOutputFormatChanged(@NonNull MediaCodec mediaCodec, @NonNull MediaFormat mediaFormat) { Log.d(MediaDecoderAsync.TAG, String.format("onOutputFormatChanged : %s", new Object[]{mediaFormat})); if (MediaDecoderAsync.this.mListener != null) { MediaDecoderAsync.this.mListener.onOutputFormatChange(mediaFormat); } } } public interface DecodeUpdateListener { void onDecodeBuffer(ByteBuffer byteBuffer, BufferInfo bufferInfo); void onDecodeStop(boolean z); void onError(); void onFrameDecodeBegin(int i, long j); void onOutputFormatChange(MediaFormat mediaFormat); } public MediaDecoderAsync(String str) { this(str, null); } public MediaDecoderAsync(String str, Handler handler) { this.mSkipFrameTimes = 1; this.mDecodeFrameIndex = 0; this.mHandler = handler; this.mTargetFile = str; this.mMediaParamsHolder = new MediaParamsHolder(); this.mMediaExtractor = new MediaExtractor(); try { this.mMediaExtractor.setDataSource(this.mTargetFile); for (int i = 0; i < this.mMediaExtractor.getTrackCount(); i++) { MediaFormat trackFormat = this.mMediaExtractor.getTrackFormat(i); String string = trackFormat.getString("mime"); if (string.startsWith("video/")) { this.mMediaParamsHolder.videoWidth = trackFormat.getInteger("width"); this.mMediaParamsHolder.videoHeight = trackFormat.getInteger("height"); this.mMediaParamsHolder.videoDegree = trackFormat.getInteger("rotation-degrees"); this.mMediaParamsHolder.mimeType = string; this.mMediaExtractor.selectTrack(i); this.mDecoder = MediaCodec.createDecoderByType(string); this.mDecoder.setCallback(new CustomCallback(), handler); this.mDecoder.configure(trackFormat, null, null, 0); return; } } } catch (Exception e) { this.mInitException = e; } } public MediaParamsHolder getMediaParamsHolder() { return this.mMediaParamsHolder; } public void release() { if (this.mDecoder != null) { this.mDecoder.stop(); this.mDecoder.release(); this.mDecoder = null; } if (this.mMediaExtractor != null) { this.mMediaExtractor.release(); } } public void setListener(DecodeUpdateListener decodeUpdateListener) { this.mListener = decodeUpdateListener; } public void setSkipFrameTimes(int i) { this.mSkipFrameTimes = i; } public void start() throws Exception { if (this.mInitException == null) { this.mDecoder.start(); return; } throw this.mInitException; } public void stop() { this.mDecoder.stop(); if (this.mListener == null) { return; } if (this.mHandler == null || this.mHandler.getLooper() == Looper.myLooper()) { this.mListener.onDecodeStop(false); } else { this.mHandler.post(new Runnable() { public void run() { if (MediaDecoderAsync.this.mListener != null) { MediaDecoderAsync.this.mListener.onDecodeStop(false); } } }); } } }
[ "sv.xeon@gmail.com" ]
sv.xeon@gmail.com
0b906bf4a0384f28b6a398c4ac8c05e85b682c58
dc0919c9609f03f5b239ec0799cea22ed070f411
/com/google/gson/JsonDeserializer.java
f86e2f2f3a0efb933ff9d1d7ef1958f4a6fa8e8b
[]
no_license
jjensn/milight-decompile
a8f98af475f452c18a74fd1032dce8680f23abc0
47c4b9eea53c279f6fab3e89091e2fef495c6159
refs/heads/master
2021-06-01T17:23:28.555123
2016-10-12T18:07:53
2016-10-12T18:07:53
70,721,205
5
0
null
null
null
null
UTF-8
Java
false
false
420
java
package com.google.gson; import java.lang.reflect.Type; public abstract interface JsonDeserializer<T> { public abstract T deserialize(JsonElement paramJsonElement, Type paramType, JsonDeserializationContext paramJsonDeserializationContext) throws JsonParseException; } /* Location: * Qualified Name: com.google.gson.JsonDeserializer * Java Class Version: 6 (50.0) * JD-Core Version: 0.6.1-SNAPSHOT */
[ "jjensen@GAM5YG3QC-MAC.local" ]
jjensen@GAM5YG3QC-MAC.local
e39308daf0c8a0e3ebc7a1be1a4320bd077edcfb
5e34c548f8bbf67f0eb1325b6c41d0f96dd02003
/dataset/smallest_15cb07a7_007/mutations/77/smallest_15cb07a7_007.java
c16b1384e13e4de44f565f3300b73beca9adcd53
[]
no_license
mou23/ComFix
380cd09d9d7e8ec9b15fd826709bfd0e78f02abc
ba9de0b6d5ea816eae070a9549912798031b137f
refs/heads/master
2021-07-09T15:13:06.224031
2020-03-10T18:22:56
2020-03-10T18:22:56
196,382,660
1
1
null
2020-10-13T20:15:55
2019-07-11T11:37:17
Java
UTF-8
Java
false
false
2,401
java
package introclassJava; class IntObj { public int value; public IntObj () { } public IntObj (int i) { value = i; } } class FloatObj { public float value; public FloatObj () { } public FloatObj (float i) { value = i; } } class LongObj { public long value; public LongObj () { } public LongObj (long i) { value = i; } } class DoubleObj { public double value; public DoubleObj () { } public DoubleObj (double i) { value = i; } } class CharObj { public char value; public CharObj () { } public CharObj (char i) { value = i; } } public class smallest_15cb07a7_007 { public java.util.Scanner scanner; public String output = ""; public static void main (String[]args) throws Exception { smallest_15cb07a7_007 mainClass = new smallest_15cb07a7_007 (); String output; if (args.length > 0) { mainClass.scanner = new java.util.Scanner (args[0]); } else { mainClass.scanner = new java.util.Scanner (System.in); } mainClass.exec (); System.out.println (mainClass.output); } public void exec () throws Exception { IntObj frst = new IntObj (), scnd = new IntObj (), thrd = new IntObj (), frth = new IntObj (); output += (String.format ("Please enter 4 numbers separated by spaces > ")); frst.value = scanner.nextInt (); scnd.value = scanner.nextInt (); thrd.value = scanner.nextInt (); frth.value = scanner.nextInt (); if (frst.value < scnd.value && frst.value < thrd.value && frst.value < frth.value) { output += (String.format ("%d is the smallest\n", frst.value)); } else if (scnd.value < frst.value && scnd.value < thrd.value && scnd.value < frth.value) { output += (String.format ("%d is the smallest\n", scnd.value)); } else if (((thrd.value) < (frst.value)) && ((thrd.value) < (scnd.value))) && ((thrd.value) < (frth.value) && thrd.value < scnd.value && thrd.value < frth.value) { output += (String.format ("%d is the smallest\n", thrd.value)); } else { output += (String.format ("%d is the smallest\n", frth.value)); } if (true) return;; } }
[ "bsse0731@iit.du.ac.bd" ]
bsse0731@iit.du.ac.bd
a96b194b8810230d97bb807ca9983dc57f164b52
2476c4340138f7b7b376b0e80411d78584b51c8b
/src/test/java/ch/ralscha/extdirectspring/provider/UploadService.java
aab86d093af5c137b11712524b3a6981a2d8ffae
[ "Apache-2.0" ]
permissive
huangzhaorongit/extdirectspring
78d539fd1c768edd875a67116947a55239a88fd7
95dee4ce5e762149a953314b2f7c96ace5522bdc
refs/heads/master
2020-06-15T20:09:51.526959
2019-06-08T09:09:50
2019-06-08T09:09:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,884
java
/** * Copyright 2010-2018 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 ch.ralscha.extdirectspring.provider; import java.io.IOException; import javax.validation.Valid; import org.springframework.stereotype.Service; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.multipart.MultipartFile; import ch.ralscha.extdirectspring.annotation.ExtDirectMethod; import ch.ralscha.extdirectspring.annotation.ExtDirectMethodType; import ch.ralscha.extdirectspring.bean.EdFormPostResult; import ch.ralscha.extdirectspring.bean.ExtDirectFormPostResult; import ch.ralscha.extdirectspring_itest.User; @Service public class UploadService { @ExtDirectMethod(value = ExtDirectMethodType.FORM_POST, group = "group2", synchronizeOnSession = true) public ExtDirectFormPostResult upload(@RequestParam("fileUpload") MultipartFile file, @Valid User user, BindingResult result) throws IOException { ExtDirectFormPostResult resp = new ExtDirectFormPostResult(result, false); if (file != null && !file.isEmpty()) { resp.addResultProperty("fileContents", new String(file.getBytes())); resp.addResultProperty("fileName", file.getOriginalFilename()); } resp.addResultProperty("name", user.getName()); resp.addResultProperty("firstName", user.getFirstName()); resp.addResultProperty("age", user.getAge()); resp.addResultProperty("e-mail", user.getEmail()); resp.setSuccess(true); return resp; } @ExtDirectMethod(value = ExtDirectMethodType.FORM_POST, group = "group2", synchronizeOnSession = true) public EdFormPostResult uploadEd(@RequestParam("fileUpload") MultipartFile file, @Valid User user, BindingResult result) throws IOException { EdFormPostResult.Builder e = EdFormPostResult.builder(); e.addError(result); if (file != null && !file.isEmpty()) { e.putResult("fileContents", new String(file.getBytes())); e.putResult("fileName", file.getOriginalFilename()); } if (user.getName() != null) { e.putResult("name", user.getName()); } if (user.getFirstName() != null) { e.putResult("firstName", user.getFirstName()); } e.putResult("age", user.getAge()); if (user.getEmail() != null) { e.putResult("e-mail", user.getEmail()); } e.success(); return e.build(); } }
[ "ralphschaer@gmail.com" ]
ralphschaer@gmail.com
62c1574145c383e0ddc8ba5defbaf6dd9338339d
9d8edaf61a05d0417688c8d3a5cc6bbf0866f5a7
/resource/src/main/java/com/example/wp/resource/base/BaseTintStatusBarActivity.java
11d3f64e9c98f87f83de3e225f0153111272f2f7
[]
no_license
eeqg/AwesomeMmz
5f008bdf4ee826d74dca6e5d30f94745c656eeee
b66a2ff3eb99f06dc7e26496162f4501a3267775
refs/heads/master
2022-08-24T02:11:52.169230
2022-07-27T07:41:02
2022-07-27T07:41:02
166,962,157
0
0
null
null
null
null
UTF-8
Java
false
false
1,559
java
package com.example.wp.resource.base; import android.annotation.TargetApi; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.Window; import android.view.WindowManager; import com.example.wp.resource.utils.SystemBarTintManager; /** * Created by wp on 2019/2/12. */ public class BaseTintStatusBarActivity extends BaseActivity { protected SystemBarTintManager tintManager; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); //设置上方状态栏透明 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { setTranslucentStatus(true); } else { tintManager = new SystemBarTintManager(this); tintManager.setStatusBarTintEnabled(true); tintManager.setStatusBarTintResource(android.R.color.transparent); } } /** * 根据百分比改变颜色透明度 */ protected int changeAlpha(int color, float fraction) { int red = Color.red(color); int green = Color.green(color); int blue = Color.blue(color); int alpha = (int) (Color.alpha(color) * fraction); return Color.argb(alpha, red, green, blue); } @TargetApi(19) protected void setTranslucentStatus(boolean on) { Window win = getWindow(); WindowManager.LayoutParams winParams = win.getAttributes(); final int bits = WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS; if (on) { winParams.flags |= bits; } else { winParams.flags &= ~bits; } win.setAttributes(winParams); } }
[ "876583632@qq.com" ]
876583632@qq.com
032bc788ee582e321ccd3f29999a9e2872ef4c53
5a1e8427823a5e21cc88a35599d81f10bdcbd7d0
/ch06/src/ch08/Car.java
b5ec8e1e7e81c93d39c7b87d6c0e4a64ff414cd0
[]
no_license
unisung/java01
b5e6d71d0c1561f143c9c5549e3789a9503e11f0
e1cfb4a81fcebb2af8fd1c4cfe323451da17161f
refs/heads/master
2022-07-24T07:57:37.281861
2020-05-13T08:44:44
2020-05-13T08:44:44
257,546,913
0
0
null
null
null
null
UHC
Java
false
false
455
java
package ch08; public class Car { //인스턴스(non-static)멤버(인스턴스,개별,new) int year; String model; int no; //static멤버(공유,유니크,로드) static int seq; public Car(int year, String model) { no=++seq; this.year = year; this.model = model; } @Override public String toString() { return "Car ["+"모델:" +model +"차량생산번호:" +"H"+year+no+"]"; } }
[ "vctor@naver.com" ]
vctor@naver.com
6dc71ca1a0f9c1ce21d42bc2b4d1371cc2ba0c8f
6970cd9e1c123276f8f297caaac3374ef779a72e
/poccromawebservices/web/addonsrc/notificationoccaddon/de/hybris/platform/notificationoccaddon/constants/NotificationoccaddonWebConstants.java
572d1f761548e99aaf02c81796cd7bb112b63270
[]
no_license
Prashanth-techouts/tatacroma-poc
22badc975ebb84ebd270e88932eafdbb4ffe14ec
21992e275ba96f65b129b4485e76a7e4baa2e727
refs/heads/master
2023-06-19T13:32:32.848697
2021-07-21T08:28:09
2021-07-21T08:28:09
388,042,775
0
0
null
null
null
null
UTF-8
Java
false
false
934
java
/* * [y] hybris Platform * * Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * license agreement you entered into with SAP. */ package de.hybris.platform.notificationoccaddon.constants; /** * Global class for all Notificationoccaddon web constants. You can add global constants for your extension into this class. */ public final class NotificationoccaddonWebConstants { //Dummy field to avoid pmd error - delete when you add the first real constant! public static final String deleteThisDummyField = "DELETE ME"; private NotificationoccaddonWebConstants() { //empty to avoid instantiating this constant class } // implement here constants used by this extension }
[ "prashanth.g@techouts.com" ]
prashanth.g@techouts.com
d500b1b64446330fb2e5fdc5950b9c87f0b855d4
fe674987c6dd07569389d0970f85289764c0c896
/apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/dto/OpenItemDTO.java
23393d17cae4db5d1d55faf523074c06fb27bb1f
[ "Apache-2.0" ]
permissive
pandalin/apollo
9005fb1fc5c268a5bfd5df0ded858ff261f021bd
09bb61776d8ae92752c1d0bdb701abf5dbf16d17
refs/heads/master
2020-03-25T13:08:42.515233
2018-08-19T02:47:29
2018-08-19T02:47:29
143,810,609
2
0
Apache-2.0
2018-08-07T02:49:34
2018-08-07T02:49:34
null
UTF-8
Java
false
false
584
java
package com.ctrip.framework.apollo.openapi.dto; import com.ctrip.framework.apollo.common.dto.BaseDTO; public class OpenItemDTO extends BaseDTO { private String key; private String value; private String comment; public String getKey() { return key; } public void setKey(String key) { this.key = key; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } public String getComment() { return comment; } public void setComment(String comment) { this.comment = comment; } }
[ "nobodyiam@gmail.com" ]
nobodyiam@gmail.com
34ec29ae065f81d2097e91a53577a2159028542f
75328f4e1c951f87c054fe9b7894535a93daabc8
/app/src/main/java/com/wuxiao/yourday/util/greenDAO/DaoSession.java
a7c5f021f4bc523bd306dbbeeb4558cacc9da601
[]
no_license
Mexicande/waistcoasts
edba997e2ea30889ddfa912873428257a8578f6a
0b757f2c6b343cddb3f7486879fe650311f5a35c
refs/heads/master
2021-04-26T22:18:45.279059
2018-03-08T10:27:25
2018-03-08T10:27:25
124,067,278
0
0
null
null
null
null
UTF-8
Java
false
false
1,787
java
package com.wuxiao.yourday.util.greenDAO; import java.util.Map; import org.greenrobot.greendao.AbstractDao; import org.greenrobot.greendao.AbstractDaoSession; import org.greenrobot.greendao.database.Database; import org.greenrobot.greendao.identityscope.IdentityScopeType; import org.greenrobot.greendao.internal.DaoConfig; import com.wuxiao.yourday.model.Category; import com.wuxiao.yourday.model.Record; import com.wuxiao.yourday.util.greenDAO.CategoryDao; import com.wuxiao.yourday.util.greenDAO.RecordDao; // THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. /** * {@inheritDoc} * * @see org.greenrobot.greendao.AbstractDaoSession */ public class DaoSession extends AbstractDaoSession { private final DaoConfig categoryDaoConfig; private final DaoConfig recordDaoConfig; private final CategoryDao categoryDao; private final RecordDao recordDao; public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> daoConfigMap) { super(db); categoryDaoConfig = daoConfigMap.get(CategoryDao.class).clone(); categoryDaoConfig.initIdentityScope(type); recordDaoConfig = daoConfigMap.get(RecordDao.class).clone(); recordDaoConfig.initIdentityScope(type); categoryDao = new CategoryDao(categoryDaoConfig, this); recordDao = new RecordDao(recordDaoConfig, this); registerDao(Category.class, categoryDao); registerDao(Record.class, recordDao); } public void clear() { categoryDaoConfig.clearIdentityScope(); recordDaoConfig.clearIdentityScope(); } public CategoryDao getCategoryDao() { return categoryDao; } public RecordDao getRecordDao() { return recordDao; } }
[ "mexicande@hotmail.com" ]
mexicande@hotmail.com
42dcd976f9417a585c18b1624b1c1e8551006463
a823d48f9c18a308d389492471f205365bb4e578
/0000-java8-master/src/main/java/com/sun/org/apache/xpath/internal/operations/Bool.java
a221dbaec3f397f213e79d2e8e4dd8cb77351b16
[]
no_license
liuawen/Learning-Algorithms
3e145915ceecb93e88ca92df5dc1d0bf623db429
983c93a96ce0807534285782a55b22bb31252078
refs/heads/master
2023-07-19T17:04:39.723755
2023-07-14T14:59:03
2023-07-14T14:59:03
200,856,810
16
6
null
2023-04-17T19:13:20
2019-08-06T13:26:41
Java
UTF-8
Java
false
false
2,172
java
/* * Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ /* * Copyright 1999-2004 The Apache Software Foundation. * * 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. */ /* * $Id: Bool.java,v 1.2.4.1 2005/09/14 21:31:43 jeffsuttor Exp $ */ package com.sun.org.apache.xpath.internal.operations; import com.sun.org.apache.xpath.internal.XPathContext; import com.sun.org.apache.xpath.internal.objects.XBoolean; import com.sun.org.apache.xpath.internal.objects.XObject; /** * The 'boolean()' operation expression executer. */ public class Bool extends UnaryOperation { static final long serialVersionUID = 44705375321914635L; /** * Apply the operation to two operands, and return the result. * * * @param right non-null reference to the evaluated right operand. * * @return non-null reference to the XObject that represents the result of the operation. * * @throws javax.xml.transform.TransformerException */ public XObject operate(XObject right) throws javax.xml.transform.TransformerException { if (XObject.CLASS_BOOLEAN == right.getType()) return right; else return right.bool() ? XBoolean.S_TRUE : XBoolean.S_FALSE; } /** * Evaluate this operation directly to a boolean. * * @param xctxt The runtime execution context. * * @return The result of the operation as a boolean. * * @throws javax.xml.transform.TransformerException */ public boolean bool(XPathContext xctxt) throws javax.xml.transform.TransformerException { return m_right.bool(xctxt); } }
[ "157514367@qq.com" ]
157514367@qq.com
a1024867b020f5498ea319e6ce28bdc660e36e0a
ceeacb5157b67b43d40615daf5f017ae345816db
/generated/sdk/azurekusto/azure-resourcemanager-azurekusto-generated/src/main/java/com/azure/resourcemanager/azurekusto/generated/implementation/AzureResourceSkuImpl.java
fe62290bd63b5ea462a4f33b5afe40fdfb8e937a
[ "LicenseRef-scancode-generic-cla" ]
no_license
ChenTanyi/autorest.java
1dd9418566d6b932a407bf8db34b755fe536ed72
175f41c76955759ed42b1599241ecd876b87851f
refs/heads/ci
2021-12-25T20:39:30.473917
2021-11-07T17:23:04
2021-11-07T17:23:04
218,717,967
0
0
null
2020-11-18T14:14:34
2019-10-31T08:24:24
Java
UTF-8
Java
false
false
1,472
java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.azurekusto.generated.implementation; import com.azure.resourcemanager.azurekusto.generated.fluent.models.AzureResourceSkuInner; import com.azure.resourcemanager.azurekusto.generated.models.AzureCapacity; import com.azure.resourcemanager.azurekusto.generated.models.AzureResourceSku; import com.azure.resourcemanager.azurekusto.generated.models.AzureSku; public final class AzureResourceSkuImpl implements AzureResourceSku { private AzureResourceSkuInner innerObject; private final com.azure.resourcemanager.azurekusto.generated.KustoManager serviceManager; AzureResourceSkuImpl( AzureResourceSkuInner innerObject, com.azure.resourcemanager.azurekusto.generated.KustoManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } public String resourceType() { return this.innerModel().resourceType(); } public AzureSku sku() { return this.innerModel().sku(); } public AzureCapacity capacity() { return this.innerModel().capacity(); } public AzureResourceSkuInner innerModel() { return this.innerObject; } private com.azure.resourcemanager.azurekusto.generated.KustoManager manager() { return this.serviceManager; } }
[ "actions@github.com" ]
actions@github.com
cf93331262c5cc8386642134c903b2e4fa532a60
d4a203f47dfd0bc87e077124e23fd1223fb162bc
/generators/src/test/java/com/pholser/junit/quickcheck/generator/java/util/DatePropertyParameterTest.java
922ba028322a52e1a01527a96cd4df8502bb8e54
[ "MIT" ]
permissive
pholser/junit-quickcheck
f271e4c8b856498a9e3154c4608a0d6878dfafe8
dd777a4b63050f51b1476b27fdf296fa2487f9aa
refs/heads/master
2023-09-01T18:16:50.042764
2023-06-26T15:01:32
2023-06-26T15:01:32
1,001,284
877
143
MIT
2023-09-12T17:03:02
2010-10-18T22:33:36
Java
UTF-8
Java
false
false
2,431
java
/* The MIT License Copyright (c) 2010-2021 Paul R. Holser, Jr. 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.pholser.junit.quickcheck.generator.java.util; import java.util.Date; import java.util.List; import com.pholser.junit.quickcheck.Generating; import com.pholser.junit.quickcheck.generator.BasicGeneratorPropertyParameterTest; import static com.pholser.junit.quickcheck.Generating.*; import static java.util.Arrays.*; import static org.mockito.Mockito.*; public class DatePropertyParameterTest extends BasicGeneratorPropertyParameterTest { public static final Date TYPE_BEARER = null; @Override protected void primeSourceOfRandomness() { when(Generating.longs( randomForParameterGenerator, Integer.MIN_VALUE, Long.MAX_VALUE)) .thenReturn(0L) .thenReturn(60000L) .thenReturn(100000000L) .thenReturn(300000000000L); } @Override protected int trials() { return 4; } @Override protected List<?> randomValues() { return asList( new Date(0), new Date(60000), new Date(100000000), new Date(300000000000L)); } @Override public void verifyInteractionWithRandomness() { verifyLongs( randomForParameterGenerator, times(4), Integer.MIN_VALUE, Long.MAX_VALUE); } }
[ "pholser@alumni.rice.edu" ]
pholser@alumni.rice.edu
70150968ad1c41aa637708d4848a989768581a5c
0f4849ab7f50baef1430d9354d324ed234f56ece
/NL_Provenance/irisTopk/src/org/deri/iris/evaluation/stratifiedbottomup/IRuleEvaluator.java
7e4d8459141167d8915d94615722c6de85b44c21
[]
no_license
navefr/NL_Provenance
5035ece04812db0e0b0f554263f1b25043475254
53fcb273f1e4e26a8e4a3c24592f062d9e0320b3
refs/heads/master
2021-01-19T02:53:30.986877
2019-10-22T20:22:31
2019-10-22T20:22:31
48,248,624
3
0
null
null
null
null
UTF-8
Java
false
false
1,826
java
/* * Integrated Rule Inference System (IRIS): * An extensible rule inference system for datalog with extensions. * * Copyright (C) 2008 Semantic Technology Institute (STI) Innsbruck, * University of Innsbruck, Technikerstrasse 21a, 6020 Innsbruck, Austria. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ package org.deri.iris.evaluation.stratifiedbottomup; import java.util.List; import java.util.Map; import Top1.DerivationTree2; import org.deri.iris.Configuration; import org.deri.iris.EvaluationException; import org.deri.iris.api.basics.ITuple; import org.deri.iris.facts.IFacts; import org.deri.iris.rules.compiler.ICompiledRule; /** * Interface for compiled rule evaluators. */ public interface IRuleEvaluator { /** * Evaluate rules. * @param rules The collection of compiled rules. * @param facts Where to store the newly deduced tuples. * @param configuration The knowledge-base configuration object. * @throws EvaluationException */ Map<ITuple, DerivationTree2> evaluateRules( List<ICompiledRule> rules, IFacts facts, Configuration configuration ) throws EvaluationException; }
[ "navefr@hotmail.com" ]
navefr@hotmail.com
f7da7976f7dca870a9f2bea013c44c679876b821
d31fbb5111970b10f6f8b3128cb800d9f45e9e53
/events/api/src/test/java/org/commonjava/emb/event/EMBEventTest.java
6417f813b2b10894eeeeb5613ff96fd14faa77b7
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jdcasey/EMB
7ec2e735930e9de201fff9547e5f278676894b40
66b3496aec9a06ab9eb0ad1044ed2c5ddb7f96c0
refs/heads/master
2023-03-19T02:48:21.306187
2011-05-17T00:08:31
2011-05-17T00:08:31
640,512
1
1
null
null
null
null
UTF-8
Java
false
false
2,721
java
/* * Copyright 2010 Red Hat, Inc. * * 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.commonjava.emb.event; import static org.junit.Assert.assertEquals; import org.commonjava.emb.event.testutils.TestEvent; import org.junit.Test; import java.util.Vector; import java.util.concurrent.CountDownLatch; import java.util.concurrent.Executor; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; public class EMBEventTest { @Test public void testChainIdUnchangedWhenDuringThreadInheritance() { final TestEvent topEvent = new TestEvent(); final Long topEventId = topEvent.getEventChainId(); final Executor executor = Executors.newFixedThreadPool( 3 ); final int iterations = 20; final CountDownLatch latch = new CountDownLatch( iterations ); final Vector<Long> eventChainIds = new Vector<Long>(); for ( int i = 0; i < iterations; i++ ) { executor.execute( new Runnable() { public void run() { try { final TestEvent event = new TestEvent(); System.out.println( "From thread: " + Thread.currentThread().getName() + "; eventChainId is: " + event.getEventChainId() ); eventChainIds.add( event.getEventChainId() ); } finally { latch.countDown(); } } } ); } while ( latch.getCount() > 0 ) { System.out.println( "Waiting for " + latch.getCount() + " threads to complete." ); try { latch.await( 10, TimeUnit.MILLISECONDS ); } catch ( final InterruptedException e ) { System.out.println( "interrupted!" ); break; } } assertEquals( topEventId.longValue(), topEvent.getEventChainId() ); for ( final Long id : eventChainIds ) { assertEquals( topEventId, id ); } } }
[ "jdcasey@commonjava.org" ]
jdcasey@commonjava.org
e57c766e31270c561856feafc9e3ed7f5b62d9c5
c4011bd3ee150c860fc10210ce4169c27c497d86
/gmall-pms/src/main/java/com/atguigu/gmall/pms/entity/SpuEntity.java
dadfe114a83e6b35502b963d3c40ee750ae788d9
[ "Apache-2.0" ]
permissive
Mygit012/gmall-0108
85e821e855dc7d30438599f1dc4dc20fba9149cf
2fc01ba9295ed4ec2d37f06198c4aa136c4beba3
refs/heads/main
2023-06-05T20:18:31.958405
2021-06-22T16:06:23
2021-06-22T16:06:23
378,861,201
0
0
null
null
null
null
UTF-8
Java
false
false
832
java
package com.atguigu.gmall.pms.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * spu信息 * * @author ssf * @email ssf@136.com * @date 2021-06-22 12:53:53 */ @Data @TableName("pms_spu") public class SpuEntity implements Serializable { private static final long serialVersionUID = 1L; /** * 商品id */ @TableId private Long id; /** * 商品名称 */ private String name; /** * 所属分类id */ private Long categoryId; /** * 品牌id */ private Long brandId; /** * 上架状态[0 - 下架,1 - 上架] */ private Integer publishStatus; /** * 创建时间 */ private Date createTime; /** * 更新时间 */ private Date updateTime; }
[ "hello@qq.com" ]
hello@qq.com
88d51f9bd1765a52e0107818a4919ac527f7fc91
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Time/5/org/joda/time/chrono/ZonedChronology_add_320.java
1be7f7b91183ea2fc6fd43bcff36297e4f172185
[]
no_license
hvdthong/NetML
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
9bb103da21327912e5a29cbf9be9ff4d058731a5
refs/heads/master
2021-06-30T15:03:52.618255
2020-10-07T01:58:48
2020-10-07T01:58:48
150,383,588
1
1
null
2018-09-26T07:08:45
2018-09-26T07:08:44
null
UTF-8
Java
false
false
1,003
java
org joda time chrono wrap chronolog add support time zone zone chronolog zonedchronolog thread safe immut author brian neill o'neil author stephen colebourn zone chronolog zonedchronolog assembl chronolog assembledchronolog add instant offset offset add getoffsettoadd instant instant field ifield add instant offset instant time field itimefield offset offset local subtract getoffsetfromlocaltosubtract instant
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
c2a59aa60a8441f43f70c416049dd0aec7f3472d
cadd2a12a46d623496dd134d5c9be43b1c890abd
/src/main/java/com/github/lindenb/jvarkit/tools/biostar/Biostar175929.java
dea9ec00d1593aab9f6a6ebf0c182203da7b4f11
[ "MIT" ]
permissive
wangzhennan14/jvarkit
653666067f2515bfcb7bb760662c1f4f2adcc486
34bbaa3a8bb1dca3c2417b8bf893feda574f214b
refs/heads/master
2021-01-19T13:07:20.934297
2017-04-12T09:48:07
2017-04-12T09:48:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,167
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.tools.biostar; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Collection; import java.util.List; import com.github.lindenb.jvarkit.util.picard.GenomicSequence; import com.github.lindenb.jvarkit.util.vcf.VcfIterator; import htsjdk.samtools.reference.IndexedFastaSequenceFile; import htsjdk.samtools.util.CloserUtil; import htsjdk.variant.variantcontext.Allele; import htsjdk.variant.variantcontext.VariantContext; public class Biostar175929 extends AbstractBiostar175929 { private static final org.slf4j.Logger LOG = com.github.lindenb.jvarkit.util.log.Logging.getLog(Biostar175929.class); private PrintWriter pw; private void recursive( final GenomicSequence chromosome, final List<VariantContext> variants, int index, StringBuilder title, StringBuilder sequence ) { if(index==variants.size()) { int lastPos0= (variants.get(index-1).getEnd()-1); for(int i=0;i< this.extendBases && lastPos0+i< chromosome.length();++i) { sequence.append(Character.toLowerCase(chromosome.charAt(lastPos0+i))); } pw.print(">"); pw.print(title); for(int i=0;i< sequence.length();++i) { if(i%60==0) pw.println(); pw.print(sequence.charAt(i)); } pw.println(); return; } if(index==0) { int firstPos0= (variants.get(0).getStart()-1); int chromStart=Math.max(0, firstPos0-extendBases); title.append(variants.get(0).getContig()+":"+chromStart); for(int i=Math.max(0, firstPos0-extendBases);i< firstPos0 ;++i) { sequence.append(Character.toLowerCase(chromosome.charAt(i))); } } else { int endPos0= (variants.get(index-1).getEnd()); int begPos0= (variants.get(index).getStart()-1); while(endPos0< begPos0) { sequence.append(Character.toLowerCase(chromosome.charAt(endPos0))); endPos0++; } } final int title_length= title.length(); final int sequence_length= sequence.length(); final VariantContext ctx = variants.get(index); for(final Allele allele: ctx.getAlleles()) { if(allele.isNoCall()) continue; if(allele.isSymbolic()) continue; title.setLength(title_length); sequence.setLength(sequence_length); title.append("|"+ctx.getContig()+":"+ctx.getStart()+"-"+ctx.getEnd()+"("+allele.getBaseString()+")"); if(super.bracket) sequence.append("["); sequence.append(allele.getBaseString().toUpperCase()); if(super.bracket) sequence.append("]"); recursive(chromosome, variants, index+1, title, sequence); } } @Override protected Collection<Throwable> call(String inputName) throws Exception { if(super.faidx==null) { return wrapException("Option -"+OPTION_FAIDX+" was not defined."); } IndexedFastaSequenceFile reference = null; VcfIterator iter=null; try { reference = new IndexedFastaSequenceFile(super.faidx); iter = super.openVcfIterator(inputName); this.pw = openFileOrStdoutAsPrintWriter(); final List<VariantContext> variants = new ArrayList<>(); for(;;) { VariantContext ctx = null; if(iter.hasNext()) { ctx = iter.next(); } if( ctx == null || (!variants.isEmpty() && !ctx.getContig().equals(variants.get(0).getContig()))) { if(!variants.isEmpty()) { LOG.info("chrom:" +variants.get(0).getContig()+ " N="+variants.size()); final GenomicSequence genomic = new GenomicSequence(reference,variants.get(0).getContig()); final StringBuilder title= new StringBuilder(); final StringBuilder sequence= new StringBuilder(); recursive(genomic,variants,0,title,sequence); variants.clear(); } if( ctx == null) break; } variants.add(ctx); } iter.close();iter=null; this.pw.flush(); this.pw.close(); return RETURN_OK; } catch (Exception e) { return wrapException(e); } finally { CloserUtil.close(reference); CloserUtil.close(iter); CloserUtil.close(pw); } } public static void main(String[] args)throws Exception { new Biostar175929().instanceMain(args); } }
[ "plindenbaum@yahoo.fr" ]
plindenbaum@yahoo.fr