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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3eb092e576d7d8f1cee968e726e8f2bc7774e67d
|
f3414e405d68daa615b8010a949847b3fb7bd5b9
|
/utilities/idcserver.src/intradoc/server/SubjectCallback.java
|
65bfa91713c6dab72474e36265f0fcc2f9d8625b
|
[] |
no_license
|
osgirl/ProjectUCM
|
ac2c1d554746c360f24414d96e85a6c61e31b102
|
5e0cc24cfad53d1f359d369d57b622c259f88311
|
refs/heads/master
| 2020-04-22T04:11:13.373873
| 2019-03-04T19:26:48
| 2019-03-04T19:26:48
| 170,114,287
| 0
| 0
| null | 2019-02-11T11:02:25
| 2019-02-11T11:02:25
| null |
UTF-8
|
Java
| false
| false
| 754
|
java
|
package intradoc.server;
import intradoc.common.ExecutionContext;
import intradoc.common.ServiceException;
import intradoc.data.DataBinder;
import intradoc.data.DataException;
public abstract interface SubjectCallback
{
public static final String IDC_VERSION_INFO = "releaseInfo=7.3.5.185,relengDate=2013-07-11 17:07:21Z,releaseRevision=$Rev: 66660 $";
public abstract void refresh(String paramString)
throws DataException, ServiceException;
public abstract void loadBinder(String paramString, DataBinder paramDataBinder, ExecutionContext paramExecutionContext);
}
/* Location: C:\Documents and Settings\rastogia.EMEA\My Documents\idcserver\
* Qualified Name: intradoc.server.SubjectCallback
* JD-Core Version: 0.5.4
*/
|
[
"ranjodh.singh@hays.com"
] |
ranjodh.singh@hays.com
|
7dfed82646f0c7c6b08144d9138efde57e3ba6a9
|
b9a58c607ff4344de822c98ad693581eef1e1db6
|
/src/App4GoodsNotes/ExcelExportUtil.java
|
ff1cb8524eb7888534e3aa2f226e702bb2470611
|
[] |
no_license
|
huohehuo/LinServer
|
f6080619049ea81d1ca46f504eb7a18470915886
|
0a1b416d66bafa1150aba7417d1873a2d73683a6
|
refs/heads/master
| 2023-01-19T07:51:31.830278
| 2020-11-24T16:23:12
| 2020-11-24T16:23:12
| 267,913,675
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,274
|
java
|
package App4GoodsNotes;
import ServerVueWeb.Bean.BuyAtBean;
import Utils.Lg;
import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.ss.usermodel.BorderStyle;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.IndexedColors;
import org.apache.poi.ss.usermodel.VerticalAlignment;
import org.apache.poi.ss.util.CellRangeAddress;
import javax.servlet.http.HttpServletResponse;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.net.URLEncoder;
import java.util.List;
/*https://blog.csdn.net/ethan_10/article/details/80335350*/
public class ExcelExportUtil {
// 第一步,创建一个webbook,对应一个Excel文件
public HSSFWorkbook generateExcel() {
return new HSSFWorkbook();
}
//处理公司信息表对应的xls位置数据
public HSSFWorkbook generateExcelSheet(HSSFWorkbook wb, String sheetName, String[] fields, List<BuyAtBean> list) {
// 第二步,在webbook中添加一个sheet,对应Excel文件中的sheet
HSSFSheet sheet = wb.createSheet(sheetName);
// sheet.setDefaultRowHeightInPoints(30);//设置缺省列宽
// sheet.setDefaultColumnWidth(50);//设置缺省列高
HSSFCellStyle style = wb.createCellStyle();
// style.setAlignment(HSSFCellStyle.ALIGN_CENTER); // 创建一个居中格式
style.setAlignment(HorizontalAlignment.CENTER_SELECTION);//水平居中
style.setVerticalAlignment(VerticalAlignment.CENTER);//垂直居中
// 设置普通单元格字体样式
HSSFFont font = wb.createFont();
font.setFontName("宋体");
font.setFontHeightInPoints((short) 12);//设置字体大小
style.setFont(font);
style.setBorderLeft(BorderStyle.THIN);
style.setBorderBottom(BorderStyle.THIN);
style.setBorderRight(BorderStyle.THIN);
style.setBorderTop(BorderStyle.THIN);
style.setBottomBorderColor(IndexedColors.BLACK.getIndex());
style.setLeftBorderColor(IndexedColors.BLACK.getIndex());
style.setTopBorderColor(IndexedColors.BLACK.getIndex());
style.setRightBorderColor(IndexedColors.BLACK.getIndex());
// 第三步,在sheet中添加表头第0行,注意老版本poi对Excel的行数列数有限制short
HSSFRow rowH = sheet.createRow(0);
rowH.setHeight((short) 1000);
sheet.addMergedRegion(new CellRangeAddress(0,0,0,8));
HSSFCell cellHead;
cellHead = rowH.createCell(0);
cellHead.setCellValue(list.get(0).FBuyName);
cellHead.setCellStyle(style);
// 第四步,创建单元格,并设置值表头 设置表头居中
//设置表头字段名
HSSFCell cell;
int m=0;
HSSFRow row = sheet.createRow(1);
row.setHeight((short) 500);
for (int i = 0; i < fields.length; i++) {
cell = row.createCell(m);
cell.setCellValue(fields[i]);
cell.setCellStyle(style);
if (i==0){//设置指定列的宽度
sheet.setColumnWidth(cell.getColumnIndex(), 4000);
}else if (i==1){
sheet.setColumnWidth(cell.getColumnIndex(), 5000);
}else if (i==2){
sheet.setColumnWidth(cell.getColumnIndex(), 4000);
}else{
sheet.setColumnWidth(cell.getColumnIndex(), 3000);
}
m++;
}
for(String fieldName:fields){//设置首行的说明行
}
Lg.e("得到list",list);
HSSFCell hssfCell;
// font.setFontHeightInPoints((short) 12);
// style.setFont(font);
for (int i = 0; i < list.size(); i++)
{
row = sheet.createRow(i + 2);
row.setHeight((short) 388);
BuyAtBean data = list.get(i);
// 第五步,创建单元格,并设置值
int pos =0;
hssfCell =row.createCell(pos);hssfCell.setCellValue("");hssfCell.setCellStyle(style);pos++;
hssfCell =row.createCell(pos);hssfCell.setCellValue("");hssfCell.setCellStyle(style);pos++;
hssfCell =row.createCell(pos);hssfCell.setCellValue(data.FModelName);hssfCell.setCellStyle(style);pos++;
hssfCell =row.createCell(pos);hssfCell.setCellValue(data.FStuffName);hssfCell.setCellStyle(style);pos++;
hssfCell =row.createCell(pos);hssfCell.setCellValue(data.FColorName);hssfCell.setCellStyle(style);pos++;
hssfCell =row.createCell(pos);hssfCell.setCellValue(data.FNum);hssfCell.setCellStyle(style);pos++;
hssfCell =row.createCell(pos);hssfCell.setCellValue(data.FUnitName);hssfCell.setCellStyle(style);pos++;
hssfCell =row.createCell(pos);hssfCell.setCellValue(data.FPrice);hssfCell.setCellStyle(style);pos++;
hssfCell =row.createCell(pos);hssfCell.setCellValue(data.FSum);hssfCell.setCellStyle(style);pos++;
}
return wb;
}
public boolean writeExcelToDisk(HSSFWorkbook wb, String fileName){
try {
// String fileAddress = "C:/LinsServer/AppExcel4GoodsNotes/";
String fileAddress = BaseUtil.baseFileUrl;
File f = new File(fileAddress);
if (!f.exists()) {
f.mkdirs();
}
File file = new File(fileAddress + fileName);
FileOutputStream fops = new FileOutputStream(file);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
wb.write(baos);
byte[] xlsBytes = baos .toByteArray();
fops.write(xlsBytes);
fops.flush();
fops.close();
System.out.println("数据已写入");
return true;
} catch (Exception e) {
e.printStackTrace();
return false;
}
}
public void export(HSSFWorkbook wb,String fileName, HttpServletResponse response){
// 第六步,实现文件下载保存
try
{
response.setHeader("content-disposition", "attachment;filename="
+ URLEncoder.encode(fileName, "utf-8") + ".xls");
OutputStream out = response.getOutputStream();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
wb.write( baos);
byte[] xlsBytes = baos .toByteArray();
out.write( xlsBytes);
out.close();
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
|
[
"753392431@qq.com"
] |
753392431@qq.com
|
e3bfff28c98faee5ea81201d4bd93e8d35b7a4fb
|
b780c6d51def4f6631535d5751fc2b1bc40072c7
|
/bugswarm-sandbox/bugs/wmixvideo/nfe/128705454/pre_bug/src/test/java/com/fincatto/nfe310/classes/nota/NFGeraQRCodeTest.java
|
add36912841a34aea336cc12d3fd0debc89b6d06
|
[] |
no_license
|
FranciscoRibeiro/bugswarm-case-studies
|
95fad7a9b3d78fcdd2d3941741163ad73e439826
|
b2fb9136c3dcdd218b80db39a8a1365bf0842607
|
refs/heads/master
| 2023-07-08T05:27:27.592054
| 2021-08-19T17:27:54
| 2021-08-19T17:27:54
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,712
|
java
|
package com.fincatto.nfe310.classes.nota;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import org.junit.Assert;
import org.junit.Test;
import com.fincatto.nfe310.FabricaDeObjetosFake;
import com.fincatto.nfe310.NFeConfig;
import com.fincatto.nfe310.classes.NFAmbiente;
import com.fincatto.nfe310.classes.NFTipoEmissao;
import com.fincatto.nfe310.classes.NFUnidadeFederativa;
import com.fincatto.nfe310.utils.NFGeraQRCode;
public class NFGeraQRCodeTest {
//EXEMPLO DO MANUAL DA RECEITA
public static final String URL_TEST = "?chNFe=28140300156225000131650110000151341562040824&nVersao=100&tpAmb=1&cDest=13017959000181&dhEmi=323031342d30332d31385431303a35353a33332d30333a3030&vNF=60.90&vICMS=12.75&digVal=797a4759685578312f5859597a6b7357422b6650523351633530633d&cIdToken=000001&cHashQRCode=329f9d7b9fc5650372c1b2699ab88e9e22e0d33a";
@Test
public void geraQRCodeConformeEsperado() throws NoSuchAlgorithmException {
final NFNota nota = FabricaDeObjetosFake.getNotaQRCode();
NFGeraQRCode qr = new NFGeraQRCode(nota, createConfigTest());
String qrCode = qr.getQRCode();
nota.setInfoSuplementar(new NFNotaInfoSuplementar());
nota.getInfoSuplementar().setQrCode(qrCode);
String urlUf = nota.getInfo().getIdentificacao().getUf().getQrCodeProducao();
Assert.assertEquals(urlUf+URL_TEST, nota.getInfoSuplementar().getQrCode());
}
@Test
public void geraSHA1() throws Exception{
String entrada = "chNFe=28140300156225000131650110000151341562040824&nVersao=100&tpAmb=1&cDest=13017959000181&dhEmi=323031342d30332d31385431303a35353a33332d30333a3030&vNF=60.90&vICMS=12.75&digVal=797a4759685578312f5859597a6b7357422b6650523351633530633d&cIdToken=000001SEU-CODIGO-CSC-CONTRIBUINTE-36-CARACTERES";
String saida = NFGeraQRCode.sha1(entrada);
Assert.assertEquals(saida, "329f9d7b9fc5650372c1b2699ab88e9e22e0d33a");
}
private NFeConfig createConfigTest() {
return new NFeConfig() {
@Override
public Integer getCodigoSegurancaContribuinteID() {
return 1;
}
@Override
public String getCodigoSegurancaContribuinte() {
return "SEU-CODIGO-CSC-CONTRIBUINTE-36-CARACTERES";
}
@Override
public NFUnidadeFederativa getCUF() {
return NFUnidadeFederativa.SE;
}
@Override
public NFAmbiente getAmbiente() {
return NFAmbiente.PRODUCAO;
}
public NFTipoEmissao getTipoEmissao() {return null;}
public String getSSLProtocolo() {return null;}
public String getCertificadoSenha() {return null;}
public byte[] getCertificado() throws IOException {return null;}
public String getCadeiaCertificadosSenha() {return null;}
public byte[] getCadeiaCertificados() throws IOException {return null;}
};
}
}
|
[
"kikoribeiro95@gmail.com"
] |
kikoribeiro95@gmail.com
|
1b57af4e5d2ae1a864e5f493c985e202abd5b466
|
7aa36431660ff1832debbb21dede14ce277be8ca
|
/src/main/java/lucene/index/MultiFields.java
|
66d50ca0b74d85edcdc8266291ed53b4532037b4
|
[] |
no_license
|
DeanWanghewei/lucene-source-code-analysis
|
c329558f2f25c3517bc0277d64d4949db73afab2
|
1b50a9e8ece4ee0881d4745268ee1977b406c423
|
refs/heads/master
| 2020-04-28T21:26:30.584598
| 2019-03-15T10:13:42
| 2019-03-15T10:13:42
| 175,581,636
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,284
|
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 lucene.index;
import lucene.util.MergedIterator;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* Provides a single {@link Fields} term index view over an
* {@link IndexReader}.
* This is useful when you're interacting with an {@link
* IndexReader} implementation that consists of sequential
* sub-readers (eg {@link DirectoryReader} or {@link
* MultiReader}) and you must treat it as a {@link LeafReader}.
*
* <p><b>NOTE</b>: for composite readers, you'll get better
* performance by gathering the sub readers using
* {@link IndexReader#getContext()} to get the
* atomic leaves and then operate per-LeafReader,
* instead of using this class.
*
* @lucene.internal
*/
public final class MultiFields extends Fields {
private final Fields[] subs;
private final ReaderSlice[] subSlices;
private final Map<String,Terms> terms = new ConcurrentHashMap<>();
/**
* Sole constructor.
*/
public MultiFields(Fields[] subs, ReaderSlice[] subSlices) {
this.subs = subs;
this.subSlices = subSlices;
}
@SuppressWarnings({"unchecked","rawtypes"})
@Override
public Iterator<String> iterator() {
Iterator<String> subIterators[] = new Iterator[subs.length];
for(int i=0;i<subs.length;i++) {
subIterators[i] = subs[i].iterator();
}
return new MergedIterator<>(subIterators);
}
@Override
public Terms terms(String field) throws IOException {
Terms result = terms.get(field);
if (result != null)
return result;
// Lazy init: first time this field is requested, we
// create & add to terms:
final List<Terms> subs2 = new ArrayList<>();
final List<ReaderSlice> slices2 = new ArrayList<>();
// Gather all sub-readers that share this field
for(int i=0;i<subs.length;i++) {
final Terms terms = subs[i].terms(field);
if (terms != null) {
subs2.add(terms);
slices2.add(subSlices[i]);
}
}
if (subs2.size() == 0) {
result = null;
// don't cache this case with an unbounded cache, since the number of fields that don't exist
// is unbounded.
} else {
result = new MultiTerms(subs2.toArray(Terms.EMPTY_ARRAY),
slices2.toArray(ReaderSlice.EMPTY_ARRAY));
terms.put(field, result);
}
return result;
}
@Override
public int size() {
return -1;
}
}
|
[
"deanwanghewei@163.com"
] |
deanwanghewei@163.com
|
ec04dc42c4ad25d6008a26918865fda7d5002c27
|
805579dcf8a39987ea3854966f968ef8cf4f95f7
|
/dynamic-route/src/main/java/com/yao/sc/dynamicroute/ApiGatewayDynamicRouteApplication.java
|
97ed71afcd5985208c95a623bd48a9400d403224
|
[] |
no_license
|
ghyaolong/sc-all
|
ed2b38239f3c21fcf13bff21a9c07a29046b881a
|
4c3e2538950122fc796ea51a4468c78467872341
|
refs/heads/master
| 2020-05-29T15:29:06.377129
| 2019-06-26T08:28:47
| 2019-06-26T08:28:47
| 189,214,860
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 622
|
java
|
package com.yao.sc.dynamicroute;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
@EnableDiscoveryClient
@SpringBootApplication
@EnableZuulProxy
@RefreshScope
public class ApiGatewayDynamicRouteApplication {
public static void main(String[] args) {
SpringApplication.run(ApiGatewayDynamicRouteApplication.class, args);
}
}
|
[
"289911401@qq.com"
] |
289911401@qq.com
|
9bd406a5efd19c5a5e6d5648c9dfa16e73a58906
|
c8655251bb853a032ab7db6a9b41c13241565ff6
|
/jframe-utils/src/main/java/com/alipay/api/response/AlipayEcoCplifeNoticeDeleteResponse.java
|
352eee79ab52d82639b5b669775b134f5f3e194b
|
[] |
no_license
|
jacksonrick/JFrame
|
3b08880d0ad45c9b12e335798fc1764c9b01756b
|
d9a4a9b17701eb698b957e47fa3f30c6cb8900ac
|
refs/heads/master
| 2021-07-22T21:13:22.548188
| 2017-11-03T06:49:44
| 2017-11-03T06:49:44
| 107,761,091
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 373
|
java
|
package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.eco.cplife.notice.delete response.
*
* @author auto create
* @since 1.0, 2017-03-02 18:17:35
*/
public class AlipayEcoCplifeNoticeDeleteResponse extends AlipayResponse {
private static final long serialVersionUID = 1376592964247362434L;
}
|
[
"809573150@qq.com"
] |
809573150@qq.com
|
a8e05578721c413ae629fa5a725b8ef996afaa78
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mm/classes.jar/com/tencent/mm/roomsdk/model/a.java
|
6ad674cb841f424569d0d4bbf55791ff3debeaed
|
[] |
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
| 392
|
java
|
package com.tencent.mm.roomsdk.model;
import com.tencent.mm.am.p;
public abstract class a
extends p
{
public abstract com.tencent.mm.roomsdk.model.b.a a(com.tencent.mm.roomsdk.model.b.a parama);
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes4.jar
* Qualified Name: com.tencent.mm.roomsdk.model.a
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
d3d7cb1c7678672d67f9c96de44cf5e2129cf0a2
|
bceedb77b9370ff19c228149d8333225ddf0d68a
|
/src/main/java/ar/com/kfgodel/buxfer/client/api/exceptions/BuxferApiException.java
|
2c86ef1bc82ba46bd88d947b645cf0379bd9c478
|
[] |
no_license
|
kfgodel/buxfer-api-client
|
e429ca4bc59db38cc4b8924f8fae79e3dbff999d
|
0c319cdcd29b69ac6d28e6e977a828bc88a0a078
|
refs/heads/master
| 2021-06-11T03:38:49.158982
| 2020-04-05T00:06:13
| 2020-04-05T00:06:13
| 128,286,376
| 0
| 0
| null | 2021-06-07T16:34:24
| 2018-04-06T02:07:44
|
Java
|
UTF-8
|
Java
| false
| false
| 447
|
java
|
package ar.com.kfgodel.buxfer.client.api.exceptions;
/**
* This class represents an error on buxfer api communication
* Date: 08/04/18 - 23:55
*/
public class BuxferApiException extends RuntimeException {
public BuxferApiException(String message) {
super(message);
}
public BuxferApiException(String message, Throwable cause) {
super(message, cause);
}
public BuxferApiException(Throwable cause) {
super(cause);
}
}
|
[
"dario.garcia@10pines.com"
] |
dario.garcia@10pines.com
|
96c0c18a6c33345566af0e781b9edd74d2cb1368
|
914cd8b59592d49daa5fad665c44b94bc8cc45d6
|
/Algo/byte/src/com/lwj/algo/leetcode/editor/cn/VvXgSW .java
|
259b783f242067af244dc7b227d69831d13d0d49
|
[
"Apache-2.0"
] |
permissive
|
networkcv/Framework
|
29699c94c6939bfe0132039f59bf50842a858ce2
|
350b6fb49569d0161fb9b493fc9dfb48cfc0e0db
|
refs/heads/master
| 2023-08-18T04:01:02.252636
| 2023-07-18T05:57:36
| 2023-07-18T05:57:36
| 219,328,092
| 3
| 2
|
Apache-2.0
| 2023-08-31T17:23:02
| 2019-11-03T16:11:20
|
Java
|
UTF-8
|
Java
| false
| false
| 2,786
|
java
|
//给定一个链表数组,每个链表都已经按升序排列。
//
// 请将所有链表合并到一个升序链表中,返回合并后的链表。
//
//
//
// 示例 1:
//
//
//输入:lists = [[1,4,5],[1,3,4],[2,6]]
//输出:[1,1,2,3,4,4,5,6]
//解释:链表数组如下:
//[
// 1->4->5,
// 1->3->4,
// 2->6
//]
//将它们合并到一个有序链表中得到。
//1->1->2->3->4->4->5->6
//
//
// 示例 2:
//
//
//输入:lists = []
//输出:[]
//
//
// 示例 3:
//
//
//输入:lists = [[]]
//输出:[]
//
//
//
//
// 提示:
//
//
// k == lists.length
// 0 <= k <= 10^4
// 0 <= lists[i].length <= 500
// -10^4 <= lists[i][j] <= 10^4
// lists[i] 按 升序 排列
// lists[i].length 的总和不超过 10^4
//
//
//
//
// 注意:本题与主站 23 题相同: https://leetcode-cn.com/problems/merge-k-sorted-lists/
// Related Topics 链表 分治 堆(优先队列) 归并排序 👍 47 👎 0
package com.lwj.algo.leetcode.editor.cn;
import com.lwj.algo.leetcode.editor.cn.utils.ListNodeUtils;
import java.util.Comparator;
import java.util.PriorityQueue;
class VvXgSW {
public static void main(String[] args) {
Solution solution = new VvXgSW().new Solution();
System.out.println(solution.mergeKLists(new ListNode[0]));
ListNode[] listNodes = new ListNode[3];
listNodes[0] = ListNodeUtils.build(145);
listNodes[1] = ListNodeUtils.build(134);
listNodes[2] = ListNodeUtils.build(26);
System.out.println(solution.mergeKLists(listNodes));
}
//leetcode submit region begin(Prohibit modification and deletion)
/**
* Definition for singly-linked list.
* public class ListNode {
* int val;
* ListNode next;
* ListNode() {}
* ListNode(int val) { this.val = val; }
* ListNode(int val, ListNode next) { this.val = val; this.next = next; }
* }
*/
class Solution {
public ListNode mergeKLists(ListNode[] lists) {
if (lists.length == 0) {
return null;
}
ListNode dummy = new ListNode();
ListNode p = dummy;
PriorityQueue<ListNode> queue = new PriorityQueue<>(lists.length, Comparator.comparingInt(a -> a.val));
for (ListNode cur : lists) {
if (cur != null) {
queue.add(cur);
}
}
while (!queue.isEmpty()) {
ListNode cur = queue.poll();
if (cur.next != null) {
queue.add(cur.next);
}
p.next = cur;
p = p.next;
}
return dummy.next;
}
}
//leetcode submit region end(Prohibit modification and deletion)
}
|
[
"networkcavalry@gmail.com"
] |
networkcavalry@gmail.com
|
e2389b02408d94e93b7d413222d9c22a47103b98
|
5765c87fd41493dff2fde2a68f9dccc04c1ad2bd
|
/Variant Programs/1-5/15/store/SpaceChockfulWaiver.java
|
81008c5ebc6114701f28da7c64afa70d9eae098f
|
[
"MIT"
] |
permissive
|
hjc851/Dataset2-HowToDetectAdvancedSourceCodePlagiarism
|
42e4c2061c3f8da0dfce760e168bb9715063645f
|
a42ced1d5a92963207e3565860cac0946312e1b3
|
refs/heads/master
| 2020-08-09T08:10:08.888384
| 2019-11-25T01:14:23
| 2019-11-25T01:14:23
| 214,041,532
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 241
|
java
|
package store;
public class SpaceChockfulWaiver extends java.lang.Exception {
static int restrictions = 384978138;
public SpaceChockfulWaiver() {
super();
}
public SpaceChockfulWaiver(String signal) {
super(signal);
}
}
|
[
"hayden.cheers@me.com"
] |
hayden.cheers@me.com
|
0c752c7d84bd14589320090cf9fe5915e03c190b
|
a23b277bd41edbf569437bdfedad22c2d7733dbe
|
/topcoder/SequenceOfCommands.java
|
e5c0a964f92f45814aa09a0c392c0a443b57d83c
|
[] |
no_license
|
alexandrofernando/java
|
155ed38df33ae8dae641d327be3c6c355b28082a
|
a783407eaba29a88123152dd5b2febe10eb7bf1d
|
refs/heads/master
| 2021-01-17T06:49:57.241130
| 2019-07-19T11:34:44
| 2019-07-19T11:34:44
| 52,783,678
| 1
| 0
| null | 2017-07-03T21:46:00
| 2016-02-29T10:38:28
|
Java
|
UTF-8
|
Java
| false
| false
| 719
|
java
|
public class SequenceOfCommands {
public String whatHappens(String[] commands) {
int x = 0;
int y = 0;
int direction = 0;
int[] OFFSET_X = { -1, 0, 1, 0 };
int[] OFFSET_Y = { 0, 1, 0, -1 };
for (int i = 0; i < 4; i++) {
for (String commandElement : commands) {
for (int j = 0; j < commandElement.length(); j++) {
char command = commandElement.charAt(j);
if (command == 'S') {
x += OFFSET_X[direction];
y += OFFSET_Y[direction];
} else if (command == 'L') {
direction = (direction + 3) % 4;
} else if (command == 'R') {
direction = (direction + 1) % 4;
}
}
}
if (x == 0 && y == 0) {
return "bounded";
}
}
return "unbounded";
}
}
|
[
"alexandrofernando@gmail.com"
] |
alexandrofernando@gmail.com
|
b004bde89ff1dfad3bf0c93e6b9d2217b212625d
|
58e555e306f41d1a1d06f7c5e30db13eee2c1eed
|
/src/java/io/OutputStreamWriter.java
|
2755d5ebcee6832cd48e89d0289932ddcba70365
|
[] |
no_license
|
SmartTalk/jdk8-source-reading
|
33db15399d1b0de5c3062b2a2ec2d2ae3bbbaa4d
|
0682559ef6c84a73addd8375253755dfb9e647fd
|
refs/heads/master
| 2020-05-17T17:08:28.390691
| 2018-10-27T13:01:48
| 2018-10-27T13:01:48
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,743
|
java
|
/*
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.io;
import java.nio.charset.Charset;
import java.nio.charset.CharsetEncoder;
import sun.nio.cs.StreamEncoder;
/**
* An OutputStreamWriter is a bridge from character streams to byte streams:
* Characters written to it are encoded into bytes using a specified {@link
* java.nio.charset.Charset charset}. The charset that it uses
* may be specified by name or may be given explicitly, or the platform's
* default charset may be accepted.
*
* <p> Each invocation of a write() method causes the encoding converter to be
* invoked on the given character(s). The resulting bytes are accumulated in a
* buffer before being written to the underlying output stream. The size of
* this buffer may be specified, but by default it is large enough for most
* purposes. Note that the characters passed to the write() methods are not
* buffered.
*
* <p> For top efficiency, consider wrapping an OutputStreamWriter within a
* BufferedWriter so as to avoid frequent converter invocations. For example:
*
* <pre>
* Writer out
* = new BufferedWriter(new OutputStreamWriter(System.out));
* </pre>
*
* <p> A <i>surrogate pair</i> is a character represented by a sequence of two
* <tt>char</tt> values: A <i>high</i> surrogate in the range '\uD800' to
* '\uDBFF' followed by a <i>low</i> surrogate in the range '\uDC00' to
* '\uDFFF'.
*
* <p> A <i>malformed surrogate element</i> is a high surrogate that is not
* followed by a low surrogate or a low surrogate that is not preceded by a
* high surrogate.
*
* <p> This class always replaces malformed surrogate elements and unmappable
* character sequences with the charset's default <i>substitution sequence</i>.
* The {@linkplain java.nio.charset.CharsetEncoder} class should be used when more
* control over the encoding process is required.
*
* @author Mark Reinhold
* @see BufferedWriter
* @see OutputStream
* @see java.nio.charset.Charset
* @since JDK1.1
*/
public class OutputStreamWriter extends Writer {
private final StreamEncoder se;
/**
* Creates an OutputStreamWriter that uses the named charset.
*
* @param out
* An OutputStream
* @param charsetName
* The name of a supported
* {@link java.nio.charset.Charset charset}
*
* @throws UnsupportedEncodingException
* If the named encoding is not supported
*/
public OutputStreamWriter(OutputStream out, String charsetName) throws UnsupportedEncodingException {
super(out);
if (charsetName == null) {
throw new NullPointerException("charsetName");
}
se = StreamEncoder.forOutputStreamWriter(out, this, charsetName);
}
/**
* Creates an OutputStreamWriter that uses the default character encoding.
*
* @param out
* An OutputStream
*/
public OutputStreamWriter(OutputStream out) {
super(out);
try {
se = StreamEncoder.forOutputStreamWriter(out, this, (String) null);
} catch (UnsupportedEncodingException e) {
throw new Error(e);
}
}
/**
* Creates an OutputStreamWriter that uses the given charset.
*
* @param out
* An OutputStream
* @param cs
* A charset
*
* @since 1.4
*/
public OutputStreamWriter(OutputStream out, Charset cs) {
super(out);
if (cs == null) {
throw new NullPointerException("charset");
}
se = StreamEncoder.forOutputStreamWriter(out, this, cs);
}
/**
* Creates an OutputStreamWriter that uses the given charset encoder.
*
* @param out
* An OutputStream
* @param enc
* A charset encoder
*
* @since 1.4
*/
public OutputStreamWriter(OutputStream out, CharsetEncoder enc) {
super(out);
if (enc == null) {
throw new NullPointerException("charset encoder");
}
se = StreamEncoder.forOutputStreamWriter(out, this, enc);
}
/**
* Returns the name of the character encoding being used by this stream.
*
* <p> If the encoding has an historical name then that name is returned;
* otherwise the encoding's canonical name is returned.
*
* <p> If this instance was created with the {@link
* #OutputStreamWriter(OutputStream, String)} constructor then the returned
* name, being unique for the encoding, may differ from the name passed to
* the constructor. This method may return <tt>null</tt> if the stream has
* been closed. </p>
*
* @return The historical name of this encoding, or possibly
* <code>null</code> if the stream has been closed
*
* @see java.nio.charset.Charset
*/
public String getEncoding() {
return se.getEncoding();
}
/**
* Flushes the output buffer to the underlying byte stream, without flushing
* the byte stream itself. This method is non-private only so that it may
* be invoked by PrintStream.
*/
void flushBuffer() throws IOException {
se.flushBuffer();
}
/**
* Writes a single character.
*
* @throws IOException
* If an I/O error occurs
*/
public void write(int c) throws IOException {
se.write(c);
}
/**
* Writes a portion of an array of characters.
*
* @param cbuf
* Buffer of characters
* @param off
* Offset from which to start writing characters
* @param len
* Number of characters to write
*
* @throws IOException
* If an I/O error occurs
*/
public void write(char cbuf[], int off, int len) throws IOException {
se.write(cbuf, off, len);
}
/**
* Writes a portion of a string.
*
* @param str
* A String
* @param off
* Offset from which to start writing characters
* @param len
* Number of characters to write
*
* @throws IOException
* If an I/O error occurs
*/
public void write(String str, int off, int len) throws IOException {
se.write(str, off, len);
}
/**
* Flushes the stream.
*
* @throws IOException
* If an I/O error occurs
*/
public void flush() throws IOException {
se.flush();
}
public void close() throws IOException {
se.close();
}
}
|
[
"charpty@gmail.com"
] |
charpty@gmail.com
|
5b9dd88da135371493fa04d6c495baf18b058b41
|
41f79b1c6ef0c793914d99a55b3805f39e3ea8e3
|
/src/org/broad/igv/ui/TrackFilterElement.java
|
f48a0c53f4f31172abd8d1450131300b8fd0cc5e
|
[
"MIT",
"LGPL-2.1-or-later",
"LGPL-2.1-only"
] |
permissive
|
nrgene/NRGene-IGV
|
35bf50a07341ff0bf26eabbea55d10e8fa9fcdd0
|
4ac9ffcd6f9fcbe318e9e85d9820783afbabf5fc
|
refs/heads/master
| 2023-09-02T12:48:20.171109
| 2021-02-03T10:26:44
| 2021-02-03T10:26:44
| 162,590,091
| 2
| 1
|
MIT
| 2023-08-16T11:47:31
| 2018-12-20T14:26:46
|
Java
|
UTF-8
|
Java
| false
| false
| 2,533
|
java
|
/*
* Copyright (c) 2007-2011 by The Broad Institute of MIT and Harvard. All Rights Reserved.
*
* This software is licensed under the terms of the GNU Lesser General Public License (LGPL),
* Version 2.1 which is available at http://www.opensource.org/licenses/lgpl-2.1.php.
*
* THE SOFTWARE IS PROVIDED "AS IS." THE BROAD AND MIT MAKE NO REPRESENTATIONS OR
* WARRANTES OF ANY KIND CONCERNING THE SOFTWARE, EXPRESS OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
* PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, WHETHER
* OR NOT DISCOVERABLE. IN NO EVENT SHALL THE BROAD OR MIT, OR THEIR RESPECTIVE
* TRUSTEES, DIRECTORS, OFFICERS, EMPLOYEES, AND AFFILIATES BE LIABLE FOR ANY DAMAGES
* OF ANY KIND, INCLUDING, WITHOUT LIMITATION, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
* ECONOMIC DAMAGES OR INJURY TO PROPERTY AND LOST PROFITS, REGARDLESS OF WHETHER
* THE BROAD OR MIT SHALL BE ADVISED, SHALL HAVE OTHER REASON TO KNOW, OR IN FACT
* SHALL KNOW OF THE POSSIBILITY OF THE FOREGOING.
*/
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.broad.igv.ui;
import org.broad.igv.track.AttributeManager;
import org.broad.igv.track.Track;
import org.broad.igv.util.FilterElement;
/**
* @author eflakes
*/
public class TrackFilterElement extends FilterElement {
public TrackFilterElement(TrackFilter filter, String stringRepresetation) {
super(filter, stringRepresetation.split(":")[0],
Operator.valueOf(stringRepresetation.split(":")[1]),
stringRepresetation.split(":")[2],
BooleanOperator.valueOf(stringRepresetation.split(":")[3]));
}
public TrackFilterElement(TrackFilter filter, String item,
Operator comparisonOperator, String value,
BooleanOperator booleanOperator) {
super(filter, item, comparisonOperator, value, booleanOperator);
}
public boolean evaluate(Track track, Boolean previousResult) {
String attributeKey = getSelectedItem();
String attribute = track.getAttributeValue(attributeKey);
return super.test(attribute, previousResult);
}
public boolean evaluate(String trackId, Boolean previousResult) {
String attributeKey = getSelectedItem();
String attribute = AttributeManager.getInstance().getAttribute(trackId, attributeKey);
return super.test(attribute, previousResult);
}
}
|
[
"kiril@ubuntu.nrgene.local"
] |
kiril@ubuntu.nrgene.local
|
accf3ce1a46d2aee360cc8f659f1406a1213c77b
|
61602d4b976db2084059453edeafe63865f96ec5
|
/com/tencent/bugly/beta/upgrade/UpgradeStateListener.java
|
9a79a9d96a52fc89e36b8b288bd8aa8713b495f3
|
[] |
no_license
|
ZoranLi/thunder
|
9d18fd0a0ec0a5bb3b3f920f9413c1ace2beb4d0
|
0778679ef03ba1103b1d9d9a626c8449b19be14b
|
refs/heads/master
| 2020-03-20T23:29:27.131636
| 2018-06-19T06:43:26
| 2018-06-19T06:43:26
| 137,848,886
| 12
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 303
|
java
|
package com.tencent.bugly.beta.upgrade;
/* compiled from: BUGLY */
public interface UpgradeStateListener {
void onDownloadCompleted(boolean z);
void onUpgradeFailed(boolean z);
void onUpgradeNoVersion(boolean z);
void onUpgradeSuccess(boolean z);
void onUpgrading(boolean z);
}
|
[
"lizhangliao@xiaohongchun.com"
] |
lizhangliao@xiaohongchun.com
|
f0def3bc018a281ccf485d27b2bb510f9496bf7e
|
20eb62855cb3962c2d36fda4377dfd47d82eb777
|
/IntroClassJava/dataset/smallest/93f87bf20be12abd3b52e14015efb6d78b6038d2022e0ab5889979f9c6b6c8c757d6b5a59feae9f8415158057992ae837da76609dc156ea76b5cca7a43a4678b/000/mutations/152/smallest_93f87bf2_000.java
|
9398cab3bad924728460db439b84f9b62deeca73
|
[] |
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,457
|
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_93f87bf2_000 {
public java.util.Scanner scanner;
public String output = "";
public static void main (String[]args) throws Exception {
smallest_93f87bf2_000 mainClass = new smallest_93f87bf2_000 ();
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 first = new IntObj (), second = new IntObj (), third =
new IntObj (), fourth = new IntObj ();
output +=
(String.format ("Please enter 4 numbers separated by spaces > "));
first.value = scanner.nextInt ();
second.value = scanner.nextInt ();
third.value = scanner.nextInt ();
fourth.value = scanner.nextInt ();
if (first.value < second.value && first.value < third.value
&& first.value < fourth.value) {
output += (String.format ("%d is the smallest \n ", first.value));
} else if (second.value < first.value && second.value < third.value
&& second.value < fourth.value) {
output += (String.format ("%d is the smallest \n ", second.value));
} else if (((second.value) < (first.value)) && ((second.value) < (third.value))) {
output += (String.format ("%d is the smallest \n ", third.value));
} else if (fourth.value < first.value && fourth.value < second.value
&& fourth.value < third.value) {
output += (String.format ("%d is the smallest \n ", fourth.value));
}
if (true)
return;;
}
}
|
[
"justinwm@163.com"
] |
justinwm@163.com
|
74c3aaf0935f240b6aac3d751e77d8bc9a27a984
|
aa8a3972d192dc27805b6c564e6bd5a34eb34636
|
/modules/adwords_appengine/src/test/java/com/google/api/ads/adwords/jaxws/AdWordsJaxWsSoapCompressionIntegrationTest.java
|
a29bb7c993c509e3200854c0956ec6317cad62dd
|
[
"Apache-2.0"
] |
permissive
|
nafae/developer
|
201e76ef6909097b07936dbc7f4ef05660fe2a26
|
ea3ad63c72009c83c2cdbeebfc3868905a188166
|
refs/heads/master
| 2021-01-19T17:48:32.453689
| 2014-11-11T22:17:32
| 2014-11-11T22:17:32
| 26,411,286
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,841
|
java
|
// Copyright 2014, Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.ads.adwords.jaxws;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import com.google.api.ads.adwords.jaxws.factory.AdWordsServices;
import com.google.api.ads.adwords.jaxws.testing.SoapRequestXmlProvider;
import com.google.api.ads.adwords.jaxws.v201406.cm.Budget;
import com.google.api.ads.adwords.jaxws.v201406.cm.BudgetBudgetDeliveryMethod;
import com.google.api.ads.adwords.jaxws.v201406.cm.BudgetBudgetPeriod;
import com.google.api.ads.adwords.jaxws.v201406.cm.BudgetOperation;
import com.google.api.ads.adwords.jaxws.v201406.cm.BudgetServiceInterface;
import com.google.api.ads.adwords.jaxws.v201406.cm.Money;
import com.google.api.ads.adwords.jaxws.v201406.cm.Operator;
import com.google.api.ads.adwords.lib.client.AdWordsSession;
import com.google.api.ads.adwords.lib.soap.testing.SoapResponseXmlProvider;
import com.google.api.ads.common.lib.testing.MockHttpIntegrationTest;
import com.google.api.client.googleapis.auth.oauth2.GoogleCredential;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.jackson2.JacksonFactory;
import com.google.common.collect.Lists;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
/**
* Tests that a AdWords JAX-WS SOAP call can be made end-to-end when SOAP compression is enabled.
* This test should be run in its own JVM because it makes changes to system properties that could
* cause issues with other integration tests.
*
* @author Josh Radcliff
*/
@RunWith(JUnit4.class)
public class AdWordsJaxWsSoapCompressionIntegrationTest extends MockHttpIntegrationTest {
private static final String API_VERSION = "v201406";
@BeforeClass
public static void setupClass() {
System.setProperty("api.adwords.useCompression", "true");
}
/**
* Tests making a JAX-WS AdWords API call with OAuth2 and compression enabled.
*/
@Test
public void testGoldenSoap_oauth2() throws Exception {
testHttpServer.setMockResponseBody(SoapResponseXmlProvider.getTestSoapResponse(API_VERSION));
GoogleCredential credential = new GoogleCredential.Builder().setTransport(
new NetHttpTransport()).setJsonFactory(new JacksonFactory()).build();
credential.setAccessToken("TEST_ACCESS_TOKEN");
AdWordsSession session = new AdWordsSession.Builder().withUserAgent("TEST_APP")
.withOAuth2Credential(credential)
.withEndpoint(testHttpServer.getServerUrl())
.withDeveloperToken("TEST_DEVELOPER_TOKEN")
.withClientCustomerId("TEST_CLIENT_CUSTOMER_ID")
.build();
BudgetServiceInterface budgetService =
new AdWordsServices().get(session, BudgetServiceInterface.class);
Budget budget = new Budget();
budget.setName("Test Budget Name");
budget.setPeriod(BudgetBudgetPeriod.DAILY);
Money money = new Money();
money.setMicroAmount(50000000L);
budget.setAmount(money);
budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD);
BudgetOperation operation = new BudgetOperation();
operation.setOperand(budget);
operation.setOperator(Operator.ADD);
Budget responseBudget = budgetService.mutate(Lists.newArrayList(operation)).getValue().get(0);
assertEquals("Budget ID does not match", 251877074L, responseBudget.getBudgetId().longValue());
assertEquals("Budget name does not match", budget.getName(), responseBudget.getName());
assertEquals("Budget period does not match", budget.getPeriod(), responseBudget.getPeriod());
assertEquals("Budget amount does not match", budget.getAmount().getMicroAmount(),
responseBudget.getAmount().getMicroAmount());
assertEquals("Budget delivery method does not match", budget.getDeliveryMethod(),
responseBudget.getDeliveryMethod());
assertTrue("Compression was enabled but the last request body was not compressed",
testHttpServer.wasLastRequestBodyCompressed());
assertEquals(SoapRequestXmlProvider.getOAuth2SoapRequest(API_VERSION),
testHttpServer.getLastRequestBody());
assertEquals("Bearer TEST_ACCESS_TOKEN", testHttpServer.getLastAuthorizationHttpHeader());
}
}
|
[
"jradcliff@google.com"
] |
jradcliff@google.com
|
ead47819b45e392650c2ed4778b454bd0ef9ab1f
|
7c8d2d2791b63d49edaf464129849a585460c880
|
/2运营管理系统/AccWebOp/src/com/goldsign/acc/app/prminfo/entity/Contc.java
|
b8ef0a9d463df89ad9acecf930115ea8d5618a12
|
[] |
no_license
|
wuqq-20191129/wlmq
|
5cd3ebc50945bde41d0fd615ba93ca95ab1a2235
|
ae26d439af09097b65c90cad8d22954cd91fe5f5
|
refs/heads/master
| 2023-01-14T03:19:23.226824
| 2020-11-24T01:43:22
| 2020-11-24T02:09:41
| 315,494,185
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,438
|
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.goldsign.acc.app.prminfo.entity;
import java.io.Serializable;
/**
*
* @author:mh
* @create date: 2017-6-16
*/
public class Contc implements Serializable{
/**
* @return the contc_id
*/
public String getContc_id() {
return contc_id;
}
/**
* @param contc_id the contc_id to set
*/
public void setContc_id(String contc_id) {
this.contc_id = contc_id;
}
/**
* @return the contc_name
*/
public String getContc_name() {
return contc_name;
}
/**
* @param contc_name the contc_name to set
*/
public void setContc_name(String contc_name) {
this.contc_name = contc_name;
}
/**
* @return the link_man
*/
public String getLink_man() {
return link_man;
}
/**
* @param link_man the link_man to set
*/
public void setLink_man(String link_man) {
this.link_man = link_man;
}
/**
* @return the tel
*/
public String getTel() {
return tel;
}
/**
* @param tel the tel to set
*/
public void setTel(String tel) {
this.tel = tel;
}
/**
* @return the fax
*/
public String getFax() {
return fax;
}
/**
* @param fax the fax to set
*/
public void setFax(String fax) {
this.fax = fax;
}
/**
* @return the sequence
*/
public String getSequence() {
return sequence;
}
/**
* @param Sequence the sequence to set
*/
public void setSequence(String sequence) {
this.sequence = sequence;
}
/**
* @return the record_flag
*/
public String getRecord_flag() {
return record_flag;
}
/**
* @param record_flag the record_flag to set
*/
public void setRecord_flag(String record_flag) {
this.record_flag = record_flag;
}
private String contc_id;
private String contc_name;
private String link_man;
private String tel;
private String fax;
private String sequence;
private String record_flag;
}
|
[
"13821571040@163.com"
] |
13821571040@163.com
|
5df51053b683fdfbb81003dc488ab96faa39ef95
|
dfd7e70936b123ee98e8a2d34ef41e4260ec3ade
|
/analysis/reverse-engineering/decompile-fitts-20191031-2200/sources/kr/co/popone/fitts/feature/collection/MixedCollectionActivity$onPostClicked$1.java
|
c2b4eadd908a059df14c001120544bb6fbf3b1da
|
[
"Apache-2.0"
] |
permissive
|
skkuse-adv/2019Fall_team2
|
2d4f75bc793368faac4ca8a2916b081ad49b7283
|
3ea84c6be39855f54634a7f9b1093e80893886eb
|
refs/heads/master
| 2020-08-07T03:41:11.447376
| 2019-12-21T04:06:34
| 2019-12-21T04:06:34
| 213,271,174
| 5
| 5
|
Apache-2.0
| 2019-12-12T09:15:32
| 2019-10-07T01:18:59
|
Java
|
UTF-8
|
Java
| false
| false
| 479
|
java
|
package kr.co.popone.fitts.feature.collection;
import com.orhanobut.logger.Logger;
import io.reactivex.functions.Action;
final class MixedCollectionActivity$onPostClicked$1 implements Action {
public static final MixedCollectionActivity$onPostClicked$1 INSTANCE = new MixedCollectionActivity$onPostClicked$1();
MixedCollectionActivity$onPostClicked$1() {
}
public final void run() {
Logger.d("ActionLogSuccess", new Object[0]);
}
}
|
[
"33246398+ajid951125@users.noreply.github.com"
] |
33246398+ajid951125@users.noreply.github.com
|
8c4769c7e908b793d96c4b3583fd8f7fe351345a
|
3ef55e152decb43bdd90e3de821ffea1a2ec8f75
|
/large/module0927_internal/src/java/module0927_internal/a/IFoo0.java
|
b8a17e4dd76203cd6146d89f9dcb3b5007dba5fb
|
[
"BSD-3-Clause"
] |
permissive
|
salesforce/bazel-ls-demo-project
|
5cc6ef749d65d6626080f3a94239b6a509ef145a
|
948ed278f87338edd7e40af68b8690ae4f73ebf0
|
refs/heads/master
| 2023-06-24T08:06:06.084651
| 2023-03-14T11:54:29
| 2023-03-14T11:54:29
| 241,489,944
| 0
| 5
|
BSD-3-Clause
| 2023-03-27T11:28:14
| 2020-02-18T23:30:47
|
Java
|
UTF-8
|
Java
| false
| false
| 871
|
java
|
package module0927_internal.a;
import java.nio.file.*;
import java.sql.*;
import java.util.logging.*;
/**
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
* labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
* Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
*
* @see javax.annotation.processing.Completion
* @see javax.lang.model.AnnotatedConstruct
* @see javax.management.Attribute
*/
@SuppressWarnings("all")
public interface IFoo0<M> extends java.util.concurrent.Callable<M> {
javax.naming.directory.DirContext f0 = null;
javax.net.ssl.ExtendedSSLSession f1 = null;
javax.rmi.ssl.SslRMIClientSocketFactory f2 = null;
String getName();
void setName(String s);
M get();
void set(M e);
}
|
[
"gwagenknecht@salesforce.com"
] |
gwagenknecht@salesforce.com
|
90e51221dc30c73fa175f4f532dc4b21d20a864a
|
df484743755c29ff497a682f251e4bfdba91c8a5
|
/common/src/main/java/org/glowroot/common/repo/util/RollupLevelService.java
|
4a9a1c1b9f2e43e2c35a9ac69c0181311422e33a
|
[
"Apache-2.0"
] |
permissive
|
BurnningHotel/glowroot
|
7e4be000d1367b63181aced4667b3317391d08c4
|
4889ac3bfdfcf6229bd22d1df44aa1284fd884ee
|
refs/heads/master
| 2021-01-22T20:21:51.099859
| 2017-08-13T00:27:20
| 2017-08-13T00:27:20
| 100,702,599
| 1
| 0
| null | 2017-08-18T10:42:46
| 2017-08-18T10:42:46
| null |
UTF-8
|
Java
| false
| false
| 4,803
|
java
|
/*
* Copyright 2015-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.glowroot.common.repo.util;
import java.util.List;
import org.glowroot.common.repo.ConfigRepository;
import org.glowroot.common.repo.ConfigRepository.RollupConfig;
import org.glowroot.common.util.Clock;
import static java.util.concurrent.TimeUnit.HOURS;
public class RollupLevelService {
private final ConfigRepository configRepository;
private final Clock clock;
public RollupLevelService(ConfigRepository configRepository, Clock clock) {
this.configRepository = configRepository;
this.clock = clock;
}
public int getRollupLevelForView(long from, long to) throws Exception {
long millis = to - from;
long timeAgoMillis = clock.currentTimeMillis() - from;
List<Integer> rollupExpirationHours =
configRepository.getStorageConfig().rollupExpirationHours();
List<RollupConfig> rollupConfigs = configRepository.getRollupConfigs();
for (int i = 0; i < rollupConfigs.size() - 1; i++) {
RollupConfig nextRollupConfig = rollupConfigs.get(i + 1);
int expirationHours = rollupExpirationHours.get(i);
if (millis < nextRollupConfig.viewThresholdMillis()
&& (expirationHours == 0 || HOURS.toMillis(expirationHours) > timeAgoMillis)) {
return i;
}
}
return rollupConfigs.size() - 1;
}
public int getGaugeRollupLevelForView(long from, long to) throws Exception {
long millis = to - from;
long timeAgoMillis = clock.currentTimeMillis() - from;
List<Integer> rollupExpirationHours =
configRepository.getStorageConfig().rollupExpirationHours();
List<RollupConfig> rollupConfigs = configRepository.getRollupConfigs();
// gauge point rollup level 0 shares rollup level 1's expiration
long viewThresholdMillis = rollupConfigs.get(0).viewThresholdMillis();
int expirationHours = rollupExpirationHours.get(0);
if (millis < viewThresholdMillis * ConfigRepository.GAUGE_VIEW_THRESHOLD_MULTIPLIER
&& (expirationHours == 0 || HOURS.toMillis(expirationHours) > timeAgoMillis)) {
return 0;
}
for (int i = 0; i < rollupConfigs.size() - 1; i++) {
viewThresholdMillis = rollupConfigs.get(i + 1).viewThresholdMillis();
expirationHours = rollupExpirationHours.get(i);
if (millis < viewThresholdMillis * ConfigRepository.GAUGE_VIEW_THRESHOLD_MULTIPLIER
&& (expirationHours == 0 || HOURS.toMillis(expirationHours) > timeAgoMillis)) {
return i + 1;
}
}
return rollupConfigs.size();
}
public long getDataPointIntervalMillis(long from, long to) throws Exception {
long millis = to - from;
long timeAgoMillis = clock.currentTimeMillis() - from;
List<Integer> rollupExpirationHours =
configRepository.getStorageConfig().rollupExpirationHours();
List<RollupConfig> rollupConfigs = configRepository.getRollupConfigs();
for (int i = 0; i < rollupConfigs.size() - 1; i++) {
RollupConfig currRollupConfig = rollupConfigs.get(i);
RollupConfig nextRollupConfig = rollupConfigs.get(i + 1);
int expirationHours = rollupExpirationHours.get(i);
if (millis < nextRollupConfig.viewThresholdMillis()
&& (expirationHours == 0 || HOURS.toMillis(expirationHours) > timeAgoMillis)) {
return currRollupConfig.intervalMillis();
}
}
return rollupConfigs.get(rollupConfigs.size() - 1).intervalMillis();
}
public static long getSafeRollupTime(long safeCurrentTime, long intervalMillis) {
return getFloorRollupTime(safeCurrentTime, intervalMillis);
}
public static long getFloorRollupTime(long captureTime, long intervalMillis) {
return (long) Math.floor(captureTime / (double) intervalMillis) * intervalMillis;
}
public static long getCeilRollupTime(long captureTime, long intervalMillis) {
return (long) Math.ceil(captureTime / (double) intervalMillis) * intervalMillis;
}
}
|
[
"trask.stalnaker@gmail.com"
] |
trask.stalnaker@gmail.com
|
dd2dafbee3575d373ddf622ce860682c5689af92
|
c13f1cdf225c59e3c2bba983132c558e1fe94194
|
/src/test/java/WebSeleniumDatePicker.java
|
131112ceb7f92a8d34a7100c7bbc077ca0445adb
|
[] |
no_license
|
penikurniawati/basicAutomationWebUI
|
438a0fa6f03e868d6e185f67d50a86aa2f6760dd
|
4329b9609129d7fb113a3959f3bff83493249207
|
refs/heads/master
| 2022-12-30T15:02:53.567920
| 2020-10-05T15:11:16
| 2020-10-05T15:11:16
| 295,474,033
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,116
|
java
|
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import java.util.Date;
public class WebSeleniumDatePicker extends PageObject{
Date date = new Date();
@FindBy(xpath = "//*[@id=\"sandbox-container1\"]/div/span")
public WebElement button_date;
@FindBy(css = "td.today.day")
public WebElement today_day;
@FindBy(css = "td.day")
public WebElement day;
@FindBy(css = "td.old.day")
public WebElement old_day;
@FindBy(css = "td.disabled.disabled-date.day")
public WebElement disable_date_day;
@FindBy(css = "td.disabled.day")
public WebElement disabled_day;
@FindBy(xpath = "//td[@class]")
public WebElement test_day;
// public String Dis = today_day.getText()+1;
// public Integer dis = date_day + 1;
public WebSeleniumDatePicker(WebDriver driver){
super(driver);
}
public void showDatePicker(){
this.button_date.click();
}
public void validateTodayDay(){
if (today_day.isEnabled()){
System.out.println("Today enable is true");
}else
System.out.println("Today enable is false");
}
public void validateDay(){
if (day.isEnabled()){
System.out.println("Day enable is true");
}else
System.out.println(("Day enable is false"));
}
public void setTest_day(){
this.test_day.isDisplayed();
}
public void dday(){
if (test_day.isSelected()){
System.out.println(test_day.getText());
}else
System.out.println("salah");
}
public void set_dday(){
if (test_day.getText().equals(date.toString())){
System.out.println("yes");
}else {
System.out.println(test_day.getText());
}
}
public void validateDisableDay(){
if (disable_date_day.isDisplayed() && disable_date_day.isEnabled()){
System.out.println(disable_date_day.getText());
}else
System.out.println(disable_date_day.getText());
}
}
|
[
"you@example.com"
] |
you@example.com
|
3737db35b21fad369cc00e6cb22c7cd8318b45d6
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/8/8_37db8a6902fe2015b2c40095b43c4a4185d60108/CheckoutMojoTest/8_37db8a6902fe2015b2c40095b43c4a4185d60108_CheckoutMojoTest_s.java
|
301f0cfaf05231555520976c836659589ff5350b
|
[] |
no_license
|
zhongxingyu/Seer
|
48e7e5197624d7afa94d23f849f8ea2075bcaec0
|
c11a3109fdfca9be337e509ecb2c085b60076213
|
refs/heads/master
| 2023-07-06T12:48:55.516692
| 2023-06-22T07:55:56
| 2023-06-22T07:55:56
| 259,613,157
| 6
| 2
| null | 2023-06-22T07:55:57
| 2020-04-28T11:07:49
| null |
UTF-8
|
Java
| false
| false
| 5,598
|
java
|
package org.apache.maven.scm.plugin;
/*
* 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.
*/
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.testing.AbstractMojoTestCase;
import org.apache.maven.scm.ScmTestCase;
import org.apache.maven.scm.provider.svn.SvnScmTestUtils;
import org.codehaus.plexus.util.FileUtils;
import org.codehaus.plexus.util.StringUtils;
import java.io.File;
/**
* @author <a href="mailto:evenisse@apache.org">Emmanuel Venisse</a>
* @version $Id$
*/
public class CheckoutMojoTest
extends AbstractMojoTestCase
{
File checkoutDir;
File repository;
protected void setUp()
throws Exception
{
super.setUp();
checkoutDir = getTestFile( "target/checkout" );
repository = getTestFile( "target/repository" );
FileUtils.forceDelete( checkoutDir );
}
public void testSkipCheckoutWhenCheckoutDirectoryExistsAndSkip()
throws Exception
{
FileUtils.forceDelete( checkoutDir );
checkoutDir.mkdirs();
CheckoutMojo mojo = (CheckoutMojo) lookupMojo( "checkout", getTestFile(
"src/test/resources/mojos/checkout/checkoutWhenCheckoutDirectoryExistsAndSkip.xml" ) );
mojo.setCheckoutDirectory( checkoutDir );
mojo.execute();
assertEquals( 0, checkoutDir.listFiles().length );
}
public void testSkipCheckoutWithConnectionUrl()
throws Exception
{
if ( !ScmTestCase.isSystemCmd( SvnScmTestUtils.SVNADMIN_COMMAND_LINE ) )
{
System.err.println( "'" + SvnScmTestUtils.SVNADMIN_COMMAND_LINE
+ "' is not a system command. Ignored " + getName() + "." );
return;
}
FileUtils.forceDelete( checkoutDir );
SvnScmTestUtils.initializeRepository( repository );
CheckoutMojo mojo = (CheckoutMojo) lookupMojo( "checkout", getTestFile(
"src/test/resources/mojos/checkout/checkoutWithConnectionUrl.xml" ) );
mojo.setWorkingDirectory( new File( getBasedir() ) );
String connectionUrl = mojo.getConnectionUrl();
connectionUrl = StringUtils.replace( connectionUrl, "${basedir}", getBasedir() );
connectionUrl = StringUtils.replace( connectionUrl, "\\", "/" );
mojo.setConnectionUrl( connectionUrl );
mojo.setCheckoutDirectory( checkoutDir );
mojo.execute();
}
public void testSkipCheckoutWithoutConnectionUrl()
throws Exception
{
FileUtils.forceDelete( checkoutDir );
checkoutDir.mkdirs();
CheckoutMojo mojo = (CheckoutMojo) lookupMojo( "checkout", getTestFile(
"src/test/resources/mojos/checkout/checkoutWithoutConnectionUrl.xml" ) );
try
{
mojo.execute();
fail( "mojo execution must fail." );
}
catch ( MojoExecutionException e )
{
assertTrue( true );
}
}
public void testUseExport()
throws Exception
{
FileUtils.forceDelete( checkoutDir );
checkoutDir.mkdirs();
CheckoutMojo mojo = (CheckoutMojo) lookupMojo( "checkout", getTestFile(
"src/test/resources/mojos/checkout/checkoutUsingExport.xml" ) );
mojo.setCheckoutDirectory( checkoutDir );
mojo.execute();
assertTrue( checkoutDir.listFiles().length > 0 );
assertFalse( new File( checkoutDir, ".svn" ).exists() );
}
public void testExcludeInclude()
throws Exception
{
try
{
FileUtils.forceDelete( checkoutDir );
checkoutDir.mkdirs();
SvnScmTestUtils.initializeRepository( repository );
CheckoutMojo mojo = (CheckoutMojo) lookupMojo(
"checkout",
getTestFile( "src/test/resources/mojos/checkout/checkoutWithExcludesIncludes.xml" ) );
mojo.setCheckoutDirectory( checkoutDir );
mojo.execute();
assertTrue( checkoutDir.listFiles().length > 0 );
assertTrue( new File( checkoutDir, ".svn").exists() );
assertTrue( new File( checkoutDir, "pom.xml" ).exists() );
assertFalse( new File( checkoutDir, "readme.txt" ).exists() );
assertFalse( new File( checkoutDir, "src/test" ).exists() );
assertTrue( new File( checkoutDir, "src/main/java" ).exists() );
assertTrue( new File( checkoutDir, "src/main/java/.svn" ).exists() );
assertTrue( new File( checkoutDir, "src/main/.svn" ).exists() );
} catch (Exception e)
{
e.printStackTrace();
throw e;
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
14872b753a26dba296162f76893c0ec099fa3803
|
00cf8141ddf54700c5b0c54cd696ca17c7ee67b1
|
/TestTen-master/src/main/java/com/bwie/testten/classify/ClassifyConstract.java
|
1e18d4fda1cea0a67c9cb86ca4d48630c78d98ec
|
[] |
no_license
|
wuzijingwu/Tent
|
646ce475e98e7a3318091436d9f1d14c13ac1ec0
|
aefc156ee49dc74bd829369227838e15e5e86c37
|
refs/heads/master
| 2021-09-01T06:29:28.004138
| 2017-12-25T10:36:03
| 2017-12-25T10:36:03
| 115,309,769
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 930
|
java
|
package com.bwie.testten.classify;
import com.bwie.testten.classify.bean.OneBean;
import com.bwie.testten.classify.bean.TwoBean;
import java.util.List;
public interface ClassifyConstract {
interface IClassifyView{
void ShowList(List<OneBean.DataBean> list);
void ShowRight(List<TwoBean.DataBean> list);
void ShowError(String e);
}
interface IClassifyModel{
void OnRequestsListener(String url,OnRequestListener onRequestListener);
void OnRightData(String url,int cid,OnRightListener onRightListener);
}
interface OnRightListener{
void OnSuccess(List<TwoBean.DataBean> list);
void OnError(String e);
}
interface OnRequestListener{
void OnSuccess(List<OneBean.DataBean> list);
void OnError(String e);
}
interface IClassifyPresenter{
void LoadList(String url);
void LoadRight(String url,int cid);
}
}
|
[
"1944379174@qq.com"
] |
1944379174@qq.com
|
c3fe0272cbc7f09c200999769dd5e5b3218833f7
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-14227-14-18-FEMO-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/store/XWikiHibernateStore_ESTest.java
|
ce35ee89dfe0d08f0a1d6af837c3d2275895cd0a
|
[] |
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
| 564
|
java
|
/*
* This file was automatically generated by EvoSuite
* Mon Jan 20 11:39:21 UTC 2020
*/
package com.xpn.xwiki.store;
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 XWikiHibernateStore_ESTest extends XWikiHibernateStore_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
2be2e91699e247283bdc90baf4b7b6c4c1fe8a54
|
d5f09c7b0e954cd20dd613af600afd91b039c48a
|
/sources/com/facebook/stetho/inspector/elements/android/DialogFragmentDescriptor.java
|
bfaa1d83202de11bd81dd84f6ba6fec280f00afb
|
[] |
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
| 6,359
|
java
|
package com.facebook.stetho.inspector.elements.android;
import android.app.Dialog;
import android.graphics.Rect;
import android.view.View;
import com.facebook.stetho.common.Accumulator;
import com.facebook.stetho.common.LogUtil;
import com.facebook.stetho.common.Util;
import com.facebook.stetho.common.android.DialogFragmentAccessor;
import com.facebook.stetho.common.android.FragmentCompat;
import com.facebook.stetho.inspector.elements.AttributeAccumulator;
import com.facebook.stetho.inspector.elements.ChainedDescriptor;
import com.facebook.stetho.inspector.elements.ComputedStyleAccumulator;
import com.facebook.stetho.inspector.elements.Descriptor;
import com.facebook.stetho.inspector.elements.DescriptorMap;
import com.facebook.stetho.inspector.elements.NodeType;
import com.facebook.stetho.inspector.elements.StyleAccumulator;
import com.facebook.stetho.inspector.elements.StyleRuleNameAccumulator;
import javax.annotation.Nullable;
final class DialogFragmentDescriptor extends Descriptor<Object> implements ChainedDescriptor<Object>, HighlightableDescriptor<Object> {
private final DialogFragmentAccessor mAccessor;
private Descriptor<? super Object> mSuper;
@Override // com.facebook.stetho.inspector.elements.NodeDescriptor
public void getComputedStyles(Object obj, ComputedStyleAccumulator computedStyleAccumulator) {
}
@Override // com.facebook.stetho.inspector.elements.NodeDescriptor
public void getStyleRuleNames(Object obj, StyleRuleNameAccumulator styleRuleNameAccumulator) {
}
@Override // com.facebook.stetho.inspector.elements.NodeDescriptor
public void getStyles(Object obj, String str, StyleAccumulator styleAccumulator) {
}
@Override // com.facebook.stetho.inspector.elements.NodeDescriptor
public void setStyle(Object obj, String str, String str2, String str3) {
}
public static DescriptorMap register(DescriptorMap descriptorMap) {
maybeRegister(descriptorMap, FragmentCompat.getSupportLibInstance());
maybeRegister(descriptorMap, FragmentCompat.getFrameworkInstance());
return descriptorMap;
}
private static void maybeRegister(DescriptorMap descriptorMap, @Nullable FragmentCompat fragmentCompat) {
if (fragmentCompat != null) {
Class<?> dialogFragmentClass = fragmentCompat.getDialogFragmentClass();
LogUtil.d("Adding support for %s", dialogFragmentClass);
descriptorMap.registerDescriptor(dialogFragmentClass, (Descriptor) new DialogFragmentDescriptor(fragmentCompat));
}
}
private DialogFragmentDescriptor(FragmentCompat fragmentCompat) {
this.mAccessor = fragmentCompat.forDialogFragment();
}
@Override // com.facebook.stetho.inspector.elements.ChainedDescriptor
public void setSuper(Descriptor<? super Object> descriptor) {
Util.throwIfNull(descriptor);
Descriptor<? super Object> descriptor2 = this.mSuper;
if (descriptor == descriptor2) {
return;
}
if (descriptor2 == null) {
this.mSuper = descriptor;
return;
}
throw new IllegalStateException();
}
@Override // com.facebook.stetho.inspector.elements.NodeDescriptor
public void hook(Object obj) {
this.mSuper.hook(obj);
}
@Override // com.facebook.stetho.inspector.elements.NodeDescriptor
public void unhook(Object obj) {
this.mSuper.unhook(obj);
}
@Override // com.facebook.stetho.inspector.elements.NodeDescriptor
public NodeType getNodeType(Object obj) {
return this.mSuper.getNodeType(obj);
}
@Override // com.facebook.stetho.inspector.elements.NodeDescriptor
public String getNodeName(Object obj) {
return this.mSuper.getNodeName(obj);
}
@Override // com.facebook.stetho.inspector.elements.NodeDescriptor
public String getLocalName(Object obj) {
return this.mSuper.getLocalName(obj);
}
@Override // com.facebook.stetho.inspector.elements.NodeDescriptor
@Nullable
public String getNodeValue(Object obj) {
return this.mSuper.getNodeValue(obj);
}
@Override // com.facebook.stetho.inspector.elements.NodeDescriptor
public void getChildren(Object obj, Accumulator<Object> accumulator) {
accumulator.store(this.mAccessor.getDialog(obj));
}
@Override // com.facebook.stetho.inspector.elements.NodeDescriptor
public void getAttributes(Object obj, AttributeAccumulator attributeAccumulator) {
this.mSuper.getAttributes(obj, attributeAccumulator);
}
@Override // com.facebook.stetho.inspector.elements.NodeDescriptor
public void setAttributesAsText(Object obj, String str) {
this.mSuper.setAttributesAsText(obj, str);
}
@Override // com.facebook.stetho.inspector.elements.android.HighlightableDescriptor
@Nullable
public View getViewAndBoundsForHighlighting(Object obj, Rect rect) {
Dialog dialog;
HighlightableDescriptor highlightableDescriptor;
Descriptor.Host host = getHost();
if (host instanceof AndroidDescriptorHost) {
dialog = this.mAccessor.getDialog(obj);
highlightableDescriptor = ((AndroidDescriptorHost) host).getHighlightableDescriptor(dialog);
} else {
dialog = null;
highlightableDescriptor = null;
}
if (highlightableDescriptor == null) {
return null;
}
return highlightableDescriptor.getViewAndBoundsForHighlighting(dialog, rect);
}
@Override // com.facebook.stetho.inspector.elements.android.HighlightableDescriptor
@Nullable
public Object getElementToHighlightAtPosition(Object obj, int i, int i2, Rect rect) {
Dialog dialog;
HighlightableDescriptor highlightableDescriptor;
Descriptor.Host host = getHost();
if (host instanceof AndroidDescriptorHost) {
dialog = this.mAccessor.getDialog(obj);
highlightableDescriptor = ((AndroidDescriptorHost) host).getHighlightableDescriptor(dialog);
} else {
dialog = null;
highlightableDescriptor = null;
}
if (highlightableDescriptor == null) {
return null;
}
return highlightableDescriptor.getElementToHighlightAtPosition(dialog, i, i2, rect);
}
}
|
[
"test@gmail.com"
] |
test@gmail.com
|
822a45ce9d9b1dea7a31b2a6eda7f8860d5b5b8d
|
e83881215bd002da769c8cf6df14d8994d9a6923
|
/server/src/main/java/com/blocklang/develop/service/RepositoryPermissionService.java
|
3f9cd526f4c5f85e5d0050ad1e3df97e9790da27
|
[
"MIT"
] |
permissive
|
xintao222/blocklang.com
|
34627e613526b49000998e63a0a8b1016e862d68
|
939074c9df037c0780e01e9a73ee724b3dcc1dc0
|
refs/heads/master
| 2023-04-08T02:12:57.845570
| 2020-12-13T09:06:44
| 2020-12-13T09:06:44
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,614
|
java
|
package com.blocklang.develop.service;
import java.security.Principal;
import java.util.Optional;
import com.blocklang.develop.constant.AccessLevel;
import com.blocklang.develop.model.Repository;
/**
* 仓库类型:公开和私有;权限类型:只读(READ)、可写(WRITE)和管理(ADMIN)。
*
* <p>匿名用户
* <ol>
* <li>匿名用户可以 READ 所有公开仓库</li>
* <li>匿名用户不能 READ 所有私有仓库</li>
*
* <li>匿名用户不能 WRITE 所有公开仓库</li>
* <li>匿名用户不能 WRITE 所有私有仓库</li>
*
* <li>匿名用户不能 ADMIN 所有公开仓库</li>
* <li>匿名用户不能 ADMIN 所有私有仓库</li>
* </ol>
* <p>
*
* <p>登录用户
* <ol>
* <li>登录用户可以 READ 所有公开仓库</li>
* <li>登录用户不能 READ 无任何权限的私有仓库</li>
* <li>登录用户可以 READ 有 READ 权限的私有仓库</li>
* <li>登录用户可以 READ 有 WRITE 权限的私有仓库</li>
* <li>登录用户可以 READ 有 ADMIN 权限的私有仓库</li>
*
* <li>登录用户不能 WRITE 无任何权限的公开仓库</li>
* <li>登录用户不能 WRITE 有 READ 权限的公开仓库</li>
* <li>登录用户可以 WRITE 有 WRITE 权限的公开仓库</li>
* <li>登录用户可以 WRITE 有 ADMIN 权限的公开仓库</li>
* <li>登录用户不能 WRITE 无任何权限的私有仓库</li>
* <li>登录用户不能 WRITE 有 READ 权限的私有仓库</li>
* <li>登录用户可以 WRITE 有 WRITE 权限的私有仓库</li>
* <li>登录用户可以 WRITE 有 ADMIN 权限的私有仓库</li>
*
* <li>登录用户不能 ADMIN 无任何权限的公开仓库</li>
* <li>登录用户不能 ADMIN 有 READ 权限的公开仓库</li>
* <li>登录用户不能 ADMIN 有 WRITE 权限的公开仓库</li>
* <li>登录用户可以 ADMIN 有 ADMIN 权限的公开仓库</li>
* <li>登录用户不能 ADMIN 无任何权限的私有仓库</li>
* <li>登录用户不能 ADMIN 有 READ 权限的私有仓库</li>
* <li>登录用户不能 ADMIN 有 WRITE 权限的私有仓库</li>
* <li>登录用户可以 ADMIN 有 ADMIN 权限的私有仓库</li>
* </ol>
* </p>
*
* @author jinzw
*
*/
public interface RepositoryPermissionService {
/**
* 校验登录用户对仓库是否有读取权限。
*
* @param loginUser 登录用户信息
* @param repository 仓库基本信息
* @return 如果登录用户可以访问仓库,则返回权限信息,否则返回 <code>Optional.empty()</code>。
* <p>注意,不要使用返回的权限信息,此处本应返回 <code>Boolean</code> 类型,
* 之所以返回 <code>Optional<AccessLevel></code>,
* 是为了使用 {@link Optional#orElseThrow(java.util.function.Supplier)} </p>
*/
Optional<AccessLevel> canRead(Principal loginUser, Repository repository);
/**
* 校验登录用户对仓库是否有写入权限。
*
* @param loginUser 登录用户信息
* @param repository 仓库基本信息
* @return 如果登录用户可以写入仓库,则返回权限信息,否则返回 <code>Optional.empty()</code>
* <p>注意,不要使用返回的权限信息,此处本应返回 <code>Boolean</code> 类型,
* 之所以返回 <code>Optional<AccessLevel></code>,
* 是为了使用 {@link Optional#orElseThrow(java.util.function.Supplier)} </p>
*/
Optional<AccessLevel> canWrite(Principal loginUser, Repository repository);
/**
* 校验登录用户对仓库是否有管理权限。
*
* @param loginUser 登录用户信息
* @param repository 仓库基本信息
* @return 如果登录用户可以管理仓库,则返回权限信息,否则返回 <code>Optional.empty()</code>
* <p>注意,不要使用返回的权限信息,此处本应返回 <code>Boolean</code> 类型,
* 之所以返回 <code>Optional<AccessLevel></code>,
* 是为了使用 {@link Optional#orElseThrow(java.util.function.Supplier)} </p>
*/
Optional<AccessLevel> canAdmin(Principal loginUser, Repository repository);
/**
* 如果要获取用户对仓库拥有的最高权限,则应使用此方法,
* 因为权限是分等级的,canRead 等方法是用于校验用户对仓库是否拥有某项权限,返回的权限信息不一定是实际拥有的最高权限。
*
* @param loginUser 登录用户信息
* @param repository 仓库基本信息
* @return 权限信息
*/
AccessLevel findTopestPermission(Principal loginUser, Repository repository);
}
|
[
"idocument@qq.com"
] |
idocument@qq.com
|
6f254194565593560cf54e15cf9f8f3e7083833c
|
524f7bba8e6f7283b278a469466e538c7f63701e
|
/贝王-App源码/MStore安卓/mdwmall/src/main/java/com/xxmassdeveloper/mpchartexample/listviewitems/PieChartItem.java
|
0f402f1da4bc0c3f59401ce7e6da5fc4d312373b
|
[] |
no_license
|
xiongdaxionger/BSLIFE
|
e63e3582f6eec8c95636be39839c5f29b69b36ee
|
198a8c15ad32de493404022b9e00b0fe7202de08
|
refs/heads/master
| 2020-05-16T10:00:49.652335
| 2019-04-24T08:56:29
| 2019-04-24T08:56:29
| 182,962,206
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,430
|
java
|
package com.xxmassdeveloper.mpchartexample.listviewitems;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Typeface;
import android.view.LayoutInflater;
import android.view.View;
import com.github.mikephil.charting.charts.PieChart;
import com.github.mikephil.charting.components.Legend;
import com.github.mikephil.charting.components.Legend.LegendPosition;
import com.github.mikephil.charting.data.ChartData;
import com.github.mikephil.charting.data.PieData;
import com.github.mikephil.charting.utils.PercentFormatter;
import com.beiwangfx.R;
public class PieChartItem extends ChartItem {
private Typeface mTf;
public PieChartItem(ChartData<?> cd, Context c) {
super(cd);
mTf = Typeface.createFromAsset(c.getAssets(), "OpenSans-Regular.ttf");
}
@Override
public int getItemType() {
return TYPE_PIECHART;
}
@Override
public View getView(int position, View convertView, Context c) {
ViewHolder holder = null;
if (convertView == null) {
holder = new ViewHolder();
convertView = LayoutInflater.from(c).inflate(
R.layout.list_item_piechart, null);
holder.chart = (PieChart) convertView.findViewById(R.id.chart);
convertView.setTag(holder);
} else {
holder = (ViewHolder) convertView.getTag();
}
// apply styling
holder.chart.setDescription("");
holder.chart.setHoleRadius(52f);
holder.chart.setTransparentCircleRadius(57f);
holder.chart.setCenterText("MPChart\nAndroid");
holder.chart.setCenterTextTypeface(mTf);
holder.chart.setCenterTextSize(18f);
holder.chart.setUsePercentValues(true);
mChartData.setValueFormatter(new PercentFormatter());
mChartData.setValueTypeface(mTf);
mChartData.setValueTextSize(11f);
mChartData.setValueTextColor(Color.WHITE);
// set data
holder.chart.setData((PieData) mChartData);
Legend l = holder.chart.getLegend();
l.setPosition(LegendPosition.RIGHT_OF_CHART);
l.setYEntrySpace(0f);
l.setYOffset(0f);
// do not forget to refresh the chart
// holder.chart.invalidate();
holder.chart.animateXY(900, 900);
return convertView;
}
private static class ViewHolder {
PieChart chart;
}
}
|
[
"xiongerxiongda@gmail.com"
] |
xiongerxiongda@gmail.com
|
cec3f1b2dc18aad873280e8c538d8be3925f8303
|
1d32aa38e4e0e0c93fbb0cc259bc3ab3b1385afc
|
/app/src/main/java/com/bigpumpkin/app/ddng_android/bean/AdoptAdapter.java
|
d3c355596679e69e8b2f75faeda47127914cfa38
|
[] |
no_license
|
GuYou957641694/ddng_android
|
196df72fde36a64108a3cbb6fe980a3a256f1d86
|
70ff91b03001db3c3a69d63ab86a89ade013115c
|
refs/heads/master
| 2020-07-11T16:07:17.255963
| 2019-12-12T03:01:59
| 2019-12-12T03:01:59
| 204,591,311
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,436
|
java
|
package com.bigpumpkin.app.ddng_android.bean;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.bigpumpkin.app.ddng_android.R;
import java.util.List;
public class AdoptAdapter extends RecyclerView.Adapter<AdoptAdapter.MyViewHolder> {
private Context context;
List<String> list;
public AdoptAdapter(Context context, List<String> list) {
this.context = context;
this.list = list;
}
@NonNull
@Override
public MyViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {
//获取相应的布局
View view = LayoutInflater.from(context).inflate(R.layout.adopt_item, viewGroup, false);
final MyViewHolder holder = new MyViewHolder(view);
return holder;
}
@Override
public void onBindViewHolder(@NonNull MyViewHolder myViewHolder, int i) {
myViewHolder.tv_name.setText(list.get(i));
}
@Override
public int getItemCount() {
return list.size();
}
public class MyViewHolder extends RecyclerView.ViewHolder {
private TextView tv_name;
public MyViewHolder(@NonNull View itemView) {
super(itemView);
tv_name = itemView.findViewById(R.id.tv_name);
}
}
}
|
[
"j957641694@163.com"
] |
j957641694@163.com
|
db08cbecf77bcd63aca7e5f552ccc0f95f489abf
|
08b62f6eb907d12c0aa97f877f6e31fc4ffd1ae7
|
/Projects/idea-maven-spring/d-spring-aop-aspectj-04/src/main/java/com/studymyself/bao02/MyAspectJ.java
|
a86adcc1ad30208cda8836135736a1b85932fa64
|
[] |
no_license
|
Milianjie/Spring
|
ffc1631d18dc50062dfecfcb46f0f2733c4f6f21
|
ac285f14c61c837a0f4684da330174f57499cbf2
|
refs/heads/master
| 2023-03-03T04:47:41.207527
| 2021-02-13T15:48:27
| 2021-02-13T15:48:57
| 338,592,983
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,467
|
java
|
package com.studymyself.bao02;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import java.sql.ResultSet;
import java.util.Date;
/**
* @Aspect:这是AspectJ框架的注解
* 作用:表示当前类是切面类
* 切面类:用来给业务方法增加功能的类,里面有切面功能的代码
* 位置:写在定义类的上面
*/
@Aspect
public class MyAspectJ {
/**
* @Before前置通知
* @param jp
*/
@Before(value = "execution( public void *..SomeServiceImpl.doSome(..))")
public void myBefore(JoinPoint jp){
//获取方法否完整定义
System.out.println("方法的签名(定义)="+jp.getSignature());
System.out.println("方法名="+jp.getSignature().getName());
//获取方法的实参,有两个,一个返回的是Object数组,一个返回的是第一个实参
Object[] args = jp.getArgs();
for (Object arg:args){
System.out.println("参数="+arg);
}
//增加的功能,即切面代码
System.out.println("使用@Before前置通知的切面功能:输出目标方法执行时间\n"+new Date());
}
/**
* 后置通知定义方法规则:
* 1、公共方法,public修饰
* 2、无返回值,void
* 3、方法名自定义,但要见名知意
* 4、方法有参数。建议Object,参数名自定义。
* 从@AfterReturning就可以看出,其作用就是得等到目标方法执行后返回一个值
* 然后后置通知方法才能把这个值作为其参数,然后功能代码中就有对返回值的条件
* 语句判断,进行实现相应功能
*/
/**
* @AfterReturning:后置通知
* 属性:
* value:切人入点表达式
* returning:自定义的变量名,存储目标方法返回值的。
* 所以下面通知方法中的形参名就得和这个变量名的名称一致
* 位置:通知方法上面
* 特点:
* 1、目标方法执行后执行
* 2、能够获取目标方法的返回值,通知方法中可通过条件语句用该返回值
* 进行不同的功能实现
* 3、可以修改这个返回值。但是能否影响到目标方法的返回值可以根据自己之前学过的
* 参数传递进行思考。返回值是一个值,存储在栈内存,一个方法一个栈,肯定无法影响
* 返回值是一个引用,保存的是一个内存地址,内存地址唯一指向堆中的对象,可以说内存地址就
* 是这个对象,这个引用就是这个对象,我们把另一个对象的内存地址赋给这个引用后,之前的内存
* 地址就没了,也就是说返回值的内存地址变了,对象就变了。而这里的Object
* @param res
*/
@AfterReturning(value = "execution(* *..SomeServiceImpl.doOther(..))",returning = "res")
public void myAfterReturning(Object res){
//Object res;是目标方法执行后的返回值,根据返回值做切面功能的不同处理
if (res!=null){
System.out.println("后置通知:添加对返回值的判断做出的功能,输出返回值:"+res);
}else {
System.out.println("参数为空");
}
}
}
|
[
"1256478773@qq.com"
] |
1256478773@qq.com
|
68b42af35f060f076cbe7baa208d327c74aafdf1
|
bf812baa4cfd31d22d74ac7ec1a324641a991ede
|
/kadry/src/main/java/pl/gov/crd/xml/schematy/dziedzinowe/mf/_2020/_07/_06/ed/pitr/ObjectFactory.java
|
36374010f3ba27771129ff52079867a40fe88255
|
[] |
no_license
|
brzaskun/NetBeansProjects
|
f5d0abc95a29681fab87e6a039a7f925edab3dc6
|
aa67838735901cc9171c49600348eaea8e35e523
|
refs/heads/masterpozmianach
| 2023-08-31T23:32:37.748389
| 2023-08-30T21:30:09
| 2023-08-30T21:30:09
| 40,359,654
| 0
| 0
| null | 2023-03-27T22:22:00
| 2015-08-07T12:35:43
|
Java
|
UTF-8
|
Java
| false
| false
| 2,225
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2021.10.23 at 05:41:27 PM CEST
//
package pl.gov.crd.xml.schematy.dziedzinowe.mf._2020._07._06.ed.pitr;
import javax.xml.bind.annotation.XmlRegistry;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the pl.gov.crd.xml.schematy.dziedzinowe.mf._2020._07._06.ed.pitr package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: pl.gov.crd.xml.schematy.dziedzinowe.mf._2020._07._06.ed.pitr
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link ZalacznikPITR }
*
*/
public ZalacznikPITR createZalacznikPITR() {
return new ZalacznikPITR();
}
/**
* Create an instance of {@link TNaglowekPITR }
*
*/
public TNaglowekPITR createTNaglowekPITR() {
return new TNaglowekPITR();
}
/**
* Create an instance of {@link ZalacznikPITR.PozycjeSzczegolowe }
*
*/
public ZalacznikPITR.PozycjeSzczegolowe createZalacznikPITRPozycjeSzczegolowe() {
return new ZalacznikPITR.PozycjeSzczegolowe();
}
/**
* Create an instance of {@link TNaglowekPITR.KodFormularza }
*
*/
public TNaglowekPITR.KodFormularza createTNaglowekPITRKodFormularza() {
return new TNaglowekPITR.KodFormularza();
}
}
|
[
"Osito@DESKTOP-DVFG0DI"
] |
Osito@DESKTOP-DVFG0DI
|
1bfd0fe3a165a423af4d1815680ebff006fc328c
|
ca0e9689023cc9998c7f24b9e0532261fd976e0e
|
/src/com/tencent/mm/plugin/webview/ui/tools/jsapi/f$7.java
|
f67190fc96c513f780f9713f6074745c8a686982
|
[] |
no_license
|
honeyflyfish/com.tencent.mm
|
c7e992f51070f6ac5e9c05e9a2babd7b712cf713
|
ce6e605ff98164359a7073ab9a62a3f3101b8c34
|
refs/heads/master
| 2020-03-28T15:42:52.284117
| 2016-07-19T16:33:30
| 2016-07-19T16:33:30
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 751
|
java
|
package com.tencent.mm.plugin.webview.ui.tools.jsapi;
import com.tencent.mm.sdk.platformtools.u;
import com.tencent.mm.ui.widget.MMWebView;
public final class f$7
implements Runnable
{
public f$7(f paramf, String paramString) {}
public final void run()
{
try
{
f.c(irg).evaluateJavascript("javascript:WeixinJSBridge._handleMessageFromWeixin(" + irh + ")", null);
return;
}
catch (Exception localException)
{
u.e("!32@/B4Tb64lLpJkA9LZbWsTvpjmW6KIbHU+", "onVoiceUploadProgress fail, ex = %s", new Object[] { localException.getMessage() });
}
}
}
/* Location:
* Qualified Name: com.tencent.mm.plugin.webview.ui.tools.jsapi.f.7
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
4575cc305766be073ae8efab517c2d34deaa3136
|
74d15477c5640bd66cd13db0323030a16f52a25c
|
/26 EXAM PREPARATION/cresla/src/cresla/core/Generator.java
|
d8b821012837310ea94b42729206ce9280f5772c
|
[
"MIT"
] |
permissive
|
VasAtanasov/SoftUni-Java-OOP-February-2019
|
98dc1ecb826fc40528f0a47e3cd7f7d9162a7d1e
|
f9c61daca5c0db283f556417e00f703eac2b5af6
|
refs/heads/master
| 2020-04-25T03:31:58.387323
| 2019-04-28T20:30:12
| 2019-04-28T20:30:12
| 172,480,196
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 185
|
java
|
package cresla.core;
public final class Generator {
private static int id = 1;
private Generator() {
}
public static int generateId() {
return id++;
}
}
|
[
"vas.atanasov@gmail.com"
] |
vas.atanasov@gmail.com
|
350e62d2edbc668294443b21762c86fa2520e1e3
|
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
|
/Code Snippet Repository/Spring/Spring13542.java
|
9b7f105caf7190f9f9647d5cd738687766274812
|
[] |
no_license
|
saber13812002/DeepCRM
|
3336a244d4852a364800af3181e03e868cf6f9f5
|
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
|
refs/heads/master
| 2023-03-16T00:08:06.473699
| 2018-04-18T05:29:50
| 2018-04-18T05:29:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 468
|
java
|
@Override
protected void extendRequest(MockHttpServletRequest request) {
TestBean bean = new TestBean();
bean.setName("foo");
bean.setFavouriteColour(Colour.GREEN);
bean.setStringArray(ARRAY);
bean.setSpouse(new TestBean("Sally"));
bean.setSomeNumber(new Float("12.34"));
List friends = new ArrayList();
friends.add(new TestBean("bar"));
friends.add(new TestBean("penc"));
bean.setFriends(friends);
request.setAttribute("testBean", bean);
}
|
[
"Qing.Mi@my.cityu.edu.hk"
] |
Qing.Mi@my.cityu.edu.hk
|
2e738c8ec8504fdb454a97b2f3a717e8814e7dc9
|
5b41548e608034b347a80581e77d3881050b069f
|
/DAM2/PMM/Ejercicios Resueltos/Proyecto607/app/src/main/java/com/example/juan11791/proyecto607/Actividad1.java
|
ea578820923059c0b0480ba2f0c15405b41a18df
|
[] |
no_license
|
ColaboraGIT/DAM
|
ff4e6c2fda336224cfcaeb49b41718e8d4adebee
|
c7721f0767d843c8552c21f5cf06beecd3bb18aa
|
refs/heads/master
| 2023-09-01T07:43:47.493781
| 2021-10-09T06:04:57
| 2021-10-09T06:04:57
| 317,482,034
| 0
| 3
| null | 2020-12-09T17:23:45
| 2020-12-01T08:58:03
|
Java
|
UTF-8
|
Java
| false
| false
| 896
|
java
|
package com.example.juan11791.proyecto607;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
public class Actividad1 extends AppCompatActivity
{
private TextView tv1;
private String nombre, genero;
private int edad;
private float salario;
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_actividad1);
Bundle bundle = getIntent().getExtras();
tv1 = (TextView)findViewById(R.id.tv1);
nombre = bundle.getString("Nombre");
genero = bundle.getString("Género");
edad = bundle.getInt("Edad", 0);
salario = bundle.getFloat("Salario", 0);
tv1.setText(nombre + " es " + genero + " de " + edad + " años de edad, con un salario de " + salario + "€");
}
}
|
[
"juanrobertogarciasanchez@gmail.com"
] |
juanrobertogarciasanchez@gmail.com
|
843cecf75014257cea0a1a7f8cd58eebf04d5d1b
|
8afb5afd38548c631f6f9536846039ef6cb297b9
|
/MY_REPOS/Lambda-Resource-Static-Assets/2-content/14-Pure-Education/java-data-struc/java-prep/src/test/java/data/structures/java/heaps/FindMedianTest.java
|
43e264c43364f4b7d08174d2eb4bef214fa7b405
|
[
"MIT"
] |
permissive
|
bgoonz/UsefulResourceRepo2.0
|
d87588ffd668bb498f7787b896cc7b20d83ce0ad
|
2cb4b45dd14a230aa0e800042e893f8dfb23beda
|
refs/heads/master
| 2023-03-17T01:22:05.254751
| 2022-08-11T03:18:22
| 2022-08-11T03:18:22
| 382,628,698
| 10
| 12
|
MIT
| 2022-10-10T14:13:54
| 2021-07-03T13:58:52
| null |
UTF-8
|
Java
| false
| false
| 335
|
java
|
package data.structures.java.heaps;
import org.junit.Test;
import static org.junit.Assert.*;
public class FindMedianTest
{
@Test
public void getMedian()
{
FindMedian findMedian = new FindMedian(new int[] {3, 9, 5, 0, 1, 8, 2, 7, 4, 6});
findMedian.populate();
assertEquals(4.5, findMedian.getMedian(), 0.0);
}
}
|
[
"bryan.guner@gmail.com"
] |
bryan.guner@gmail.com
|
e8fa419b31d8c76c109e13e5b0a8c81088dec0ca
|
abda16e051b78404102e5af67afacefa364134fb
|
/environment/src/main/java/jetbrains/exodus/tree/btree/DupLeafNodeMutable.java
|
abe995c7cb625859861b07787be06945e657154d
|
[
"Apache-2.0"
] |
permissive
|
yusuke/xodus
|
c000e9dc098d58e1e30f6d912ab5283650d3f5c0
|
f84bb539ec16d96136d35600eb6f0966cc7b3b07
|
refs/heads/master
| 2023-09-04T12:35:52.294475
| 2017-12-01T18:46:24
| 2017-12-01T18:46:52
| 112,916,407
| 0
| 0
| null | 2017-12-03T09:46:15
| 2017-12-03T09:46:15
| null |
UTF-8
|
Java
| false
| false
| 2,494
|
java
|
/**
* Copyright 2010 - 2017 JetBrains s.r.o.
*
* 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 jetbrains.exodus.tree.btree;
import jetbrains.exodus.ByteIterable;
import jetbrains.exodus.CompoundByteIterable;
import jetbrains.exodus.log.CompressedUnsignedLongByteIterable;
import jetbrains.exodus.log.Loggable;
import jetbrains.exodus.tree.ITree;
import org.jetbrains.annotations.NotNull;
/**
* Stateful leaf node for mutable tree of duplicates
*/
class DupLeafNodeMutable extends BaseLeafNodeMutable {
protected long address = Loggable.NULL_ADDRESS;
protected final ByteIterable key;
protected final BTreeDupMutable dupTree;
DupLeafNodeMutable(@NotNull ByteIterable key, @NotNull BTreeDupMutable dupTree) {
this.key = key;
this.dupTree = dupTree;
}
@Override
public boolean isDupLeaf() {
return true;
}
@Override
@NotNull
public ByteIterable getKey() {
return key;
}
@Override
@NotNull
public ByteIterable getValue() {
return dupTree.key;
}
@Override
public long getAddress() {
return address;
}
@Override
public long save(ITree mainTree) {
assert mainTree == dupTree;
if (address != Loggable.NULL_ADDRESS) {
throw new IllegalStateException("Leaf already saved");
}
address = mainTree.getLog().write(((BTreeMutable) mainTree).getLeafType(),
mainTree.getStructureId(),
new CompoundByteIterable(new ByteIterable[]{
CompressedUnsignedLongByteIterable.getIterable(key.getLength()),
key
}));
return address;
}
@Override
public boolean delete(ByteIterable value) {
throw new UnsupportedOperationException("Supported by dup node only");
}
@Override
public String toString() {
return "DLN* {key:" + getKey().toString() + "} @ " + getAddress();
}
}
|
[
"lvo@intellij.net"
] |
lvo@intellij.net
|
7357ea653a59ab12f8f27c32effc1e4dd4af3fbf
|
c3519a97e09b756a0950fa6ca41f2e4834e62181
|
/maven-compiler-plugin/src/it/automodules-application/src/main/java/org/maven/test/Main.java
|
570983c4575b78fd4629813441f57e2840fe8337
|
[
"Apache-2.0"
] |
permissive
|
mattnelson/maven-plugins
|
fe00b3a09d4c6ac1265d430a04cc088d86ef2c9d
|
71c24e418afd37b8f4290fd1a4e0419bc9e2285a
|
refs/heads/trunk
| 2020-12-30T16:48:02.527643
| 2017-05-11T21:13:27
| 2017-05-11T21:13:27
| 91,035,145
| 0
| 0
| null | 2018-03-09T00:24:35
| 2017-05-12T00:37:05
|
Java
|
UTF-8
|
Java
| false
| false
| 1,097
|
java
|
package org.maven.test;
/*
* 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.
*/
import java.util.ArrayList;
import java.util.List;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
List blah = new ArrayList();
blah.add("hello");
}
}
|
[
"rfscholte@apache.org"
] |
rfscholte@apache.org
|
6354d9709af6f3a4dd20ea637af00caff2923d77
|
9dfd2390e654dc2c2eed29b58c8a062118b7b8b4
|
/chrome/browser/profile_card/android/internal/java/src/org/chromium/chrome/browser/profile_card/ProfileCardCoordinatorImpl.java
|
66653d0633bf127ca04919d342b5fa85df5bd291
|
[
"BSD-3-Clause"
] |
permissive
|
tongchiyang/chromium
|
d8136aeefa4646b7b2cf4c859fc84b2f22491e49
|
58cf4e036131385006e9e5b846577be7df717a9c
|
refs/heads/master
| 2023-03-01T18:24:50.959530
| 2020-03-06T07:28:27
| 2020-03-06T07:28:27
| 245,365,574
| 1
| 0
| null | 2020-03-06T08:22:06
| 2020-03-06T08:22:05
| null |
UTF-8
|
Java
| false
| false
| 1,603
|
java
|
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.profile_card;
import android.view.View;
import org.chromium.ui.modelutil.PropertyModel;
import org.chromium.ui.modelutil.PropertyModelChangeProcessor;
import org.chromium.ui.widget.ViewRectProvider;
/**
* Implements ProfileCardCoordinator.
* Talks to other components and decides when to show/update the profile card.
*/
public class ProfileCardCoordinatorImpl implements ProfileCardCoordinator {
private PropertyModel mModel;
private ProfileCardView mView;
private ProfileCardMediator mMediator;
private PropertyModelChangeProcessor mModelChangeProcessor;
private CreatorMetadata mCreatorMetadata;
@Override
public void init(View anchorView, CreatorMetadata creatorMetadata) {
ViewRectProvider rectProvider = new ViewRectProvider(anchorView);
mView = new ProfileCardView(anchorView.getContext(), anchorView, /*stringId=*/"",
/*accessibilityStringId=*/"", rectProvider);
mCreatorMetadata = creatorMetadata;
mModel = new PropertyModel(ProfileCardProperties.ALL_KEYS);
mModelChangeProcessor =
PropertyModelChangeProcessor.create(mModel, mView, ProfileCardViewBinder::bind);
mMediator = new ProfileCardMediator(mModel, creatorMetadata);
}
@Override
public void show() {
mMediator.show();
}
@Override
public void hide() {
mMediator.hide();
}
}
|
[
"commit-bot@chromium.org"
] |
commit-bot@chromium.org
|
7b8dd838cdf080ff53342d6cf19477724c6d518c
|
f0d7dd6ac3ebb360b0f633a6784d6b0a0f9584e1
|
/spring-rabbitmq/src/main/java/com/mohsinkd786/config/RabbitMqSettings.java
|
bb6b8fbbfbf9a0a8ea6b08c816677d5dee68295f
|
[
"Apache-2.0"
] |
permissive
|
mohsinkd786/spring
|
ed8124c93c855b44003a24548d0dac22ab44fcb0
|
6a41f7bcd77b58146dd77bae2373bfbb5206ec52
|
refs/heads/master
| 2022-11-30T16:10:51.841094
| 2021-07-26T10:04:28
| 2021-07-26T10:04:28
| 148,882,120
| 6
| 4
|
Apache-2.0
| 2022-11-24T09:24:11
| 2018-09-15T08:00:15
|
Java
|
UTF-8
|
Java
| false
| false
| 955
|
java
|
package com.mohsinkd786.config;
import org.springframework.context.annotation.Configuration;
@Configuration
public class RabbitMqSettings {
// Topic Exchange configs
public final static String TOPIC_USER_QUEUE = "com.mohsinkd786.topic.user";
public final static String TOPIC_EMPLOYEE_QUEUE = "com.mohsinkd786.topic.employee";
public final static String TOPIC_EXCHANGE = "com.mohsinkd786.topic.exchange";
public final static String BINDING_PATTERN_EMPLOYED = "*.employed.*";
public final static String BINDING_PATTERN_UNEMPLOYED = "#.unemployed";
// Fanout Exchange configs
public final static String FANOUT_USER_QUEUE = "com.mohsinkd786.fanout.user";
public final static String FANOUT_EMPLOYEE_QUEUE = "com.mohsinkd786.fanout.employee";
public final static String FANOUT_CANDIDATE_QUEUE = "com.mohsinkd786.fanout.candidate";
public final static String FANOUT_EXCHANGE = "com.mohsinkd786.fanout.exchange";
}
|
[
"mohsin.khursheed@techjini.com"
] |
mohsin.khursheed@techjini.com
|
45ecc74a99bb2aa43826c68478df2b97a6f00eed
|
8397f568ec839882b32bbd7e7ae1887d32dab9c5
|
/entity-store/src/main/java/jetbrains/exodus/entitystore/iterate/IdFilter.java
|
c81c2903f577f159910d66ec9f4d646cafada8f3
|
[
"Apache-2.0"
] |
permissive
|
marcelmay/xodus
|
7604e5600786c7a189d5a8cb11222cf6379f3388
|
0b0ec85f2202c5e6fbdf214004155782490696c7
|
refs/heads/master
| 2020-09-28T19:35:39.897524
| 2019-12-06T18:39:46
| 2019-12-06T18:39:46
| 226,847,554
| 0
| 0
|
Apache-2.0
| 2019-12-09T10:42:50
| 2019-12-09T10:42:50
| null |
UTF-8
|
Java
| false
| false
| 3,733
|
java
|
/**
* Copyright 2010 - 2019 JetBrains s.r.o.
*
* 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 jetbrains.exodus.entitystore.iterate;
import org.jetbrains.annotations.NotNull;
interface IdFilter {
int[] EMPTY_ID_ARRAY = new int[0];
boolean hasId(int id);
}
final class TrivialNegativeIdFilter implements IdFilter {
static final IdFilter INSTANCE = new TrivialNegativeIdFilter();
private TrivialNegativeIdFilter() {
}
@Override
public boolean hasId(final int id) {
return false;
}
}
abstract class InitialIdFilter implements IdFilter {
@Override
public boolean hasId(final int id) {
final int[] ids = getIds();
final int idCount = ids.length;
if (idCount == 0) {
setFinalIdFilter(TrivialNegativeIdFilter.INSTANCE);
return false;
}
if (idCount == 1) {
final int singleId = ids[0];
setFinalIdFilter(new SingleIdFilter(singleId));
return singleId == id;
}
final BloomIdFilter finalFilter = idCount < 4 ? new LinearSearchIdFilter(ids) : new BinarySearchIdFilter(ids);
setFinalIdFilter(finalFilter);
return finalFilter.hasId(id);
}
abstract int[] getIds();
abstract void setFinalIdFilter(@NotNull IdFilter filter);
}
final class SingleIdFilter implements IdFilter {
private final int id;
SingleIdFilter(final int id) {
this.id = id;
}
@Override
public boolean hasId(int id) {
return id == this.id;
}
}
abstract class BloomIdFilter implements IdFilter {
final int[] ids;
private final int bloomFilter;
BloomIdFilter(@NotNull final int[] ids) {
this.ids = ids;
int bloomFilter = 0;
for (int id : ids) {
bloomFilter |= (1 << (id & 0x1f));
}
this.bloomFilter = bloomFilter;
}
@Override
public boolean hasId(final int id) {
return (bloomFilter & (1 << (id & 0x1f))) != 0;
}
}
final class LinearSearchIdFilter extends BloomIdFilter {
LinearSearchIdFilter(@NotNull final int[] ids) {
super(ids);
}
@Override
public boolean hasId(final int id) {
if (super.hasId(id)) {
for (int i : ids) {
if (i == id) {
return true;
}
if (i > id) {
break;
}
}
}
return false;
}
}
final class BinarySearchIdFilter extends BloomIdFilter {
BinarySearchIdFilter(@NotNull final int[] ids) {
super(ids);
}
@Override
public boolean hasId(final int id) {
if (super.hasId(id)) {
// copy-pasted Arrays.binarySearch
int high = ids.length - 1;
int low = 0;
while (low <= high) {
final int mid = (low + high) >>> 1;
final int midVal = ids[mid];
if (midVal < id) {
low = mid + 1;
} else if (midVal > id) {
high = mid - 1;
} else {
return true;
}
}
}
return false;
}
}
|
[
"lvo@intellij.net"
] |
lvo@intellij.net
|
9a2aeae56710812b4c790431788715077581a9f6
|
46ff044f1727f4a8f1ec8d8184793fa5136348f1
|
/07 - ORIENTACAO-A-OBJETOS/src/aula24/labs/LivroLivraria.java
|
e072270c8e3705123262ae20c6b73a1979fc4b17
|
[] |
no_license
|
josemalcher/Curso-JAVA-1-Loiane
|
744516ce152c6d5cee41402ca70e3ae3e500108a
|
7532dfc41926ac12f71407f4f15f3c00bd5bbb9b
|
refs/heads/master
| 2020-04-06T07:10:14.620808
| 2016-08-30T01:56:50
| 2016-08-30T01:56:50
| 63,444,105
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 185
|
java
|
package aula24.labs;
public class LivroLivraria {
String nome;
String autor;
String isbn;
int quantidadePaginas;
int anoLacamento;
int quantidadeEstoque;
double preco;
}
|
[
"malcher.malch@gmail.com"
] |
malcher.malch@gmail.com
|
149345c50146817b213873320d60a28308d30d56
|
180469847c2f0ed6566901e3164cb138fea1597d
|
/AITTimeShow/app/src/main/java/hu/ait/aittimeshow/MainActivity.java
|
4c0081b941b52e0b513282c142f08ef8d1ca6045
|
[] |
no_license
|
peekler/AIT2017Summer
|
3faf8bad661d957ff750ea1a0667387d5541fec1
|
6b1e7864fea9e8a3be3307126ef372e9d09ba1e5
|
refs/heads/master
| 2021-01-24T07:27:43.079996
| 2017-07-05T18:01:48
| 2017-07-05T18:01:48
| 93,342,953
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,097
|
java
|
package hu.ait.aittimeshow;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import java.util.Date;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button btnTime = (Button) findViewById(R.id.btnTime);
final TextView tvTime = (TextView) findViewById(R.id.tvTime);
final EditText etName = (EditText) findViewById(R.id.etName);
final LinearLayout layoutContent = (LinearLayout) findViewById(R.id.layoutContent);
btnTime.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Log.d("TAG_MAIN", "btnTime was pressed");
String name = etName.getText().toString();
if (!TextUtils.isEmpty(name)) {
String time = getString(R.string.time_message, name,
new Date(System.currentTimeMillis()).toString());
//Toast.makeText(MainActivity.this, time,
// Toast.LENGTH_SHORT).show();
Snackbar.make(layoutContent, time, Snackbar.LENGTH_LONG).setAction(
"Ok", new View.OnClickListener() {
@Override
public void onClick(View v) {
tvTime.setText("OK");
}
}
).show();
tvTime.setText(time);
} else {
etName.setError(getString(R.string.error_empty));
}
}
});
}
}
|
[
"peter.ekler@gmail.com"
] |
peter.ekler@gmail.com
|
0be452762e191ea22371c085d10eec2a60a4b5f9
|
eb5af3e0f13a059749b179c988c4c2f5815feb0f
|
/eclipsecode/myShopping/src/com/wxws/sms/management/Verify.java
|
dedceb2331f62612579c975400eb849308482b32
|
[] |
no_license
|
xiakai007/wokniuxcode
|
ae686753da5ec3dd607b0246ec45fb11cf6b8968
|
d9918fb349bc982f0ee9d3ea3bf7537e11d062a2
|
refs/heads/master
| 2023-04-13T02:54:15.675440
| 2021-05-02T05:09:47
| 2021-05-02T05:09:47
| 363,570,147
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 431
|
java
|
package com.wxws.sms.management;
import java.util.Scanner;
public class Verify {
public boolean verif(String userName,String passWord) {
Scanner sc = new Scanner(System.in);
System.out.println("请输入用户名:");
String name = sc.next();
System.out.println("请输入密码:");
String pwd = sc.next();
if(name.equals(userName)&&pwd.equals(passWord)) {
return true;
}else {
return false;
}
}
}
|
[
"980385778@qq.com"
] |
980385778@qq.com
|
39359577a62a7006cd110c1dfb83354087af8ab0
|
ef7178759e59fd2480cbb58cc348264bafd7308e
|
/gen/net/masterthought/dlanguage/psi/impl/DLanguageStatementImpl.java
|
a08dd08c1424bed3c258607b0f38219c4c44de89
|
[] |
no_license
|
TrollBoxs/DLanguage
|
2588b1c2506332430874c5c376780a4761a8fe72
|
61c923a4528fe8b9f41c90750c079b539c9deae0
|
refs/heads/master
| 2021-06-12T23:06:58.575167
| 2016-12-17T16:23:46
| 2016-12-17T16:23:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| true
| 1,245
|
java
|
// This is a generated file. Not intended for manual editing.
package net.masterthought.dlanguage.psi.impl;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.util.PsiTreeUtil;
import static net.masterthought.dlanguage.psi.DLanguageTypes.*;
import com.intellij.extapi.psi.ASTWrapperPsiElement;
import net.masterthought.dlanguage.psi.*;
public class DLanguageStatementImpl extends ASTWrapperPsiElement implements DLanguageStatement {
public DLanguageStatementImpl(ASTNode node) {
super(node);
}
public void accept(@NotNull PsiElementVisitor visitor) {
if (visitor instanceof DLanguageVisitor) ((DLanguageVisitor)visitor).visitStatement(this);
else super.accept(visitor);
}
@Override
@Nullable
public DLanguageBlockStatement getBlockStatement() {
return findChildByClass(DLanguageBlockStatement.class);
}
@Override
@Nullable
public DLanguageNonEmptyStatement getNonEmptyStatement() {
return findChildByClass(DLanguageNonEmptyStatement.class);
}
@Override
@Nullable
public PsiElement getOpScolon() {
return findChildByType(OP_SCOLON);
}
}
|
[
"kingsleyhendrickse@me.com"
] |
kingsleyhendrickse@me.com
|
ad670fa56febfebf40673c09bbddd30710e2c5c9
|
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
|
/Code Snippet Repository/Struts/Struts2351.java
|
5a5892935ebcc0a7b76f4872c34cc505b7ef8f3a
|
[] |
no_license
|
saber13812002/DeepCRM
|
3336a244d4852a364800af3181e03e868cf6f9f5
|
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
|
refs/heads/master
| 2023-03-16T00:08:06.473699
| 2018-04-18T05:29:50
| 2018-04-18T05:29:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 567
|
java
|
public void testRequiredLabelPositionRight() throws Exception {
TestAction testAction = (TestAction) action;
testAction.setFoo("bar");
TextFieldTag tag = new TextFieldTag();
tag.setPageContext(pageContext);
tag.setId("myId");
tag.setLabel("mylabel");
tag.setName("foo");
tag.setValue("bar");
tag.setRequiredLabel("true");
tag.setRequiredPosition("right");
tag.doStartTag();
tag.doEndTag();
verify(TextFieldTag.class.getResource("Textfield-12.txt"));
}
|
[
"Qing.Mi@my.cityu.edu.hk"
] |
Qing.Mi@my.cityu.edu.hk
|
fb176cda64e9995674cb353073b55555f9db7acc
|
a95fbe4532cd3eb84f63906167f3557eda0e1fa3
|
/src/main/java/l2f/gameserver/network/serverpackets/ExMPCCOpen.java
|
38a0f36d446e8cbf42419883174e0a8b85a45e97
|
[
"MIT"
] |
permissive
|
Kryspo/L2jRamsheart
|
a20395f7d1f0f3909ae2c30ff181c47302d3b906
|
98c39d754f5aba1806f92acc9e8e63b3b827be49
|
refs/heads/master
| 2021-04-12T10:34:51.419843
| 2018-03-26T22:41:39
| 2018-03-26T22:41:39
| 126,892,421
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 286
|
java
|
package l2f.gameserver.network.serverpackets;
/**
* Opens the CommandChannel Information window
*/
public class ExMPCCOpen extends L2GameServerPacket
{
public static final L2GameServerPacket STATIC = new ExMPCCOpen();
@Override
protected void writeImpl()
{
writeEx(0x12);
}
}
|
[
"cristianleon48@gmail.com"
] |
cristianleon48@gmail.com
|
aa185fc8caeb24f8ad16f1a3844a953c5ae28ccd
|
73a41271001ffde1223df992bd7a4a39b3eaeac9
|
/session/src/main/java/com/example/session/tomcat/RequestHelper.java
|
511bbdab4a5844cdf1d4275c4e83268c0c76e7a6
|
[] |
no_license
|
BigPayno/SpringGuide
|
389d8e429c725f7cbb77a2570d21401a7a0ffd2d
|
b9f51463b5cb1fbf429656df8bbf584ca328e7f5
|
refs/heads/master
| 2022-12-11T05:21:07.360284
| 2020-06-01T03:39:22
| 2020-06-01T03:39:22
| 222,332,739
| 1
| 0
| null | 2022-06-17T03:30:24
| 2019-11-18T00:32:16
|
Java
|
UTF-8
|
Java
| false
| false
| 1,445
|
java
|
package com.example.session.tomcat;
import org.apache.catalina.Session;
import org.apache.catalina.connector.Connector;
import org.apache.catalina.connector.Request;
import org.apache.catalina.connector.RequestFacade;
import org.springframework.util.ReflectionUtils;
import java.lang.reflect.Field;
/**
* @author payno
* @date 2019/12/10 09:57
* @description
* 因为Request.getSession总是有Session返回,如果想真实拿到Session必须通过反射
*/
public final class RequestHelper {
private static Request getCurRequest(RequestFacade requestFacade) throws IllegalAccessException{
Field field=ReflectionUtils.findField(RequestFacade.class,"request",Request.class);
field.setAccessible(true);
return (Request) field.get(requestFacade);
}
public static Session getCurSession(RequestFacade requestFacade){
try{
Request request=getCurRequest(requestFacade);
Field field=ReflectionUtils.findField(Request.class,"session");
field.setAccessible(true);
return (Session)field.get(request);
}catch (IllegalAccessException e){
e.printStackTrace();
}
return null;
}
public static void main(String[] args) {
RequestFacade requestFacade=new RequestFacade(new Request(new Connector()));
Session session=getCurSession(requestFacade);
System.out.println(session==null);
}
}
|
[
"1361098889@qq.com"
] |
1361098889@qq.com
|
11e743f9c66376773c3d7b40501285dfe9e1db49
|
d5f09c7b0e954cd20dd613af600afd91b039c48a
|
/sources/com/coolapk/market/view/search/SuperSearchResultActivity$onCreate$1.java
|
2148f43055f169e55eafbefa4f07824a65a0c5c4
|
[] |
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
| 722
|
java
|
package com.coolapk.market.view.search;
import kotlin.Metadata;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "run"}, k = 3, mv = {1, 4, 2})
/* compiled from: SuperSearchResultActivity.kt */
final class SuperSearchResultActivity$onCreate$1 implements Runnable {
final /* synthetic */ SuperSearchResultActivity this$0;
SuperSearchResultActivity$onCreate$1(SuperSearchResultActivity superSearchResultActivity) {
this.this$0 = superSearchResultActivity;
}
@Override // java.lang.Runnable
public final void run() {
this.this$0.setTabLayoutDoubleClickListener();
}
}
|
[
"test@gmail.com"
] |
test@gmail.com
|
352f9d5dd632a69fecfb1c8bdbbe1d290ab9f956
|
471a1d9598d792c18392ca1485bbb3b29d1165c5
|
/jadx-MFP/src/main/java/com/shinobicontrols/charts/BarColumnSeries.java
|
1a80da2efe6cde8d5c7f9821198091e4cba973ad
|
[] |
no_license
|
reed07/MyPreferencePal
|
84db3a93c114868dd3691217cc175a8675e5544f
|
365b42fcc5670844187ae61b8cbc02c542aa348e
|
refs/heads/master
| 2020-03-10T23:10:43.112303
| 2019-07-08T00:39:32
| 2019-07-08T00:39:32
| 129,635,379
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,236
|
java
|
package com.shinobicontrols.charts;
import android.graphics.drawable.Drawable;
import com.shinobicontrols.charts.Axis.Orientation;
import com.shinobicontrols.charts.SeriesStyle;
import com.shinobicontrols.charts.SeriesStyle.FillStyle;
abstract class BarColumnSeries<T extends SeriesStyle> extends CartesianSeries<T> {
float a = 0.8f;
BarColumnSeries() {
}
/* access modifiers changed from: 0000 */
public float a() {
return this.a;
}
/* access modifiers changed from: 0000 */
public void b(float f) {
synchronized (x.a) {
this.a = f;
}
}
/* access modifiers changed from: 0000 */
public void a(Axis<?, ?> axis) {
if (axis.a(this.j)) {
for (InternalDataPoint a2 : this.n.c) {
a(a2, axis);
}
}
}
private void a(InternalDataPoint internalDataPoint, Axis<?, ?> axis) {
if (axis.c == Orientation.HORIZONTAL) {
internalDataPoint.c = a(internalDataPoint.a, axis);
internalDataPoint.d = internalDataPoint.b;
return;
}
internalDataPoint.d = a(internalDataPoint.b, axis);
internalDataPoint.c = internalDataPoint.a;
}
private double a(double d, Axis<?, ?> axis) {
int c = this.t.c();
int i = i();
double b = axis.j.b();
if (b == 0.0d) {
b = 1.0d;
}
double d2 = axis.j.a;
double d3 = d2 + (((axis.e - d2) * b) / b);
double floatValue = ((double) (1.0f - ((Float) axis.g.b.a).floatValue())) * axis.f;
double d4 = (double) c;
double floatValue2 = (floatValue / d4) * ((double) (1.0f - ((Float) axis.g.a.a).floatValue()));
b((float) floatValue2);
return (((d3 + (d - axis.e)) + (floatValue2 / 2.0d)) - (floatValue / 2.0d)) + ((((double) ((Float) axis.g.a.a).floatValue()) * floatValue) / ((double) (c * 2))) + ((((double) i) * floatValue) / d4);
}
/* access modifiers changed from: 0000 */
public NumberRange a(double d, NumberRange numberRange) {
if (Range.a((Range<?>) numberRange)) {
return numberRange;
}
double d2 = d * 0.5d;
return new NumberRange(Double.valueOf(numberRange.a - d2), Double.valueOf(numberRange.b + d2));
}
/* access modifiers changed from: 0000 */
public NumberRange a(NumberRange numberRange) {
if (Range.a((Range<?>) numberRange)) {
return numberRange;
}
NumberRange numberRange2 = new NumberRange(Double.valueOf(numberRange.a * 1.01d), Double.valueOf(numberRange.b * 1.01d));
numberRange2.a(this.t.b((CartesianSeries<?>) this));
return numberRange2;
}
/* access modifiers changed from: 0000 */
public Drawable c(float f) {
BarColumnSeriesStyle barColumnSeriesStyle = (BarColumnSeriesStyle) ((!isSelected() || this.r == null) ? this.q : this.r);
int i = 0;
int areaColor = barColumnSeriesStyle.getFillStyle() == FillStyle.NONE ? 0 : barColumnSeriesStyle.getAreaColor();
if (barColumnSeriesStyle.isLineShown()) {
i = barColumnSeriesStyle.getLineColor();
}
return new ba(areaColor, i, f);
}
}
|
[
"anon@ymous.email"
] |
anon@ymous.email
|
6f1f0a3ef015ff539853227b40cce5b0af0f7aec
|
f858e3f1d17298abfe4115da6f55db7ecaaabea2
|
/yarn/src/main/java/org/elasticsearch/hadoop/yarn/client/ClientRpc.java
|
0e256a74d7a1a56f1106e34607de112289c25e61
|
[
"Apache-2.0"
] |
permissive
|
venkateshk/elasticsearch-hadoop
|
b2d48154fe141b0428f207671888eeb7d1703f66
|
be51eb58cc20ef5d9d9a222c111101d521b230d7
|
refs/heads/master
| 2020-07-15T12:11:38.874533
| 2015-06-05T17:34:36
| 2015-06-05T17:34:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,238
|
java
|
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch 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.elasticsearch.hadoop.yarn.client;
import java.util.Collections;
import java.util.EnumSet;
import java.util.List;
import java.util.Set;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.security.UserGroupInformation;
import org.apache.hadoop.yarn.api.records.ApplicationId;
import org.apache.hadoop.yarn.api.records.ApplicationReport;
import org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext;
import org.apache.hadoop.yarn.api.records.YarnApplicationState;
import org.apache.hadoop.yarn.client.api.YarnClient;
import org.apache.hadoop.yarn.client.api.YarnClientApplication;
import org.apache.hadoop.yarn.conf.YarnConfiguration;
import org.elasticsearch.hadoop.yarn.EsYarnException;
import org.elasticsearch.hadoop.yarn.util.YarnUtils;
public class ClientRpc implements AutoCloseable {
private static final Set<String> ES_TYPE = Collections.singleton("ELASTICSEARCH");
private static final EnumSet<YarnApplicationState> ALIVE = EnumSet.range(YarnApplicationState.NEW, YarnApplicationState.RUNNING);
private YarnClient client;
private final Configuration cfg;
public ClientRpc(Configuration cfg) {
this.cfg = new YarnConfiguration(cfg);
}
public void start() {
if (client != null) {
return;
}
if (UserGroupInformation.isSecurityEnabled()) {
UserGroupInformation.setConfiguration(cfg);
}
client = YarnClient.createYarnClient();
client.init(cfg);
client.start();
}
public YarnClientApplication newApp() {
try {
return client.createApplication();
} catch (Exception ex) {
throw new EsYarnException(ex);
}
}
public ApplicationId submitApp(ApplicationSubmissionContext appContext) {
try {
return client.submitApplication(appContext);
} catch (Exception ex) {
throw new EsYarnException(ex);
}
}
public List<ApplicationReport> killEsApps() {
try {
List<ApplicationReport> esApps = client.getApplications(ES_TYPE, ALIVE);
for (ApplicationReport appReport : esApps) {
client.killApplication(appReport.getApplicationId());
}
return esApps;
} catch (Exception ex) {
throw new EsYarnException(ex);
}
}
public void killApp(String appId) {
try {
client.killApplication(YarnUtils.createAppIdFrom(appId));
} catch (Exception ex) {
throw new EsYarnException(ex);
}
}
public ApplicationReport getReport(ApplicationId appId) {
try {
return client.getApplicationReport(appId);
} catch (Exception ex) {
throw new EsYarnException(ex);
}
}
public List<ApplicationReport> listApps() {
try {
return client.getApplications();
} catch (Exception ex) {
throw new EsYarnException(ex);
}
}
public List<ApplicationReport> listEsClusters() {
try {
return client.getApplications(ES_TYPE);
} catch (Exception ex) {
throw new EsYarnException(ex);
}
}
public List<ApplicationReport> listEsClustersAlive() {
try {
return client.getApplications(ES_TYPE, ALIVE);
} catch (Exception ex) {
throw new EsYarnException(ex);
}
}
public void waitForApp(ApplicationId appId, long timeout) {
boolean repeat = false;
long start = System.currentTimeMillis();
do {
try {
ApplicationReport appReport = client.getApplicationReport(appId);
YarnApplicationState appState = appReport.getYarnApplicationState();
repeat = (appState != YarnApplicationState.FINISHED && appState != YarnApplicationState.KILLED && appState != YarnApplicationState.FAILED);
if (repeat) {
Thread.sleep(500);
}
} catch (Exception ex) {
throw new EsYarnException(ex);
}
} while (repeat && (System.currentTimeMillis() - start) < timeout);
}
@Override
public void close() {
if (client != null) {
client.stop();
client = null;
}
}
public Configuration getConfiguration() {
return cfg;
}
}
|
[
"costin.leau@gmail.com"
] |
costin.leau@gmail.com
|
e7916a7284df02c05d0d1a206b31cd2a4315e9af
|
a598029b19907c5f61f96c3d5bf6a14c6d1adc3c
|
/embl-api-core/src/main/java/uk/ac/ebi/embl/api/validation/check/feature/AntiCodonQualifierCheck.java
|
8d43b79f4ce0664382e3ffc92e21ea459cf726d5
|
[
"Apache-2.0"
] |
permissive
|
jjkoehorst/sequencetools
|
c6a3f2bb1fea0fab45d620bec3acc77ca269c13c
|
90efded7568e5c20b364bac295e417c213ce5184
|
refs/heads/master
| 2021-01-13T08:59:10.948099
| 2016-09-21T14:38:33
| 2016-09-21T14:38:33
| 69,276,257
| 0
| 0
| null | 2016-09-26T17:47:07
| 2016-09-26T17:47:07
| null |
UTF-8
|
Java
| false
| false
| 5,106
|
java
|
/*******************************************************************************
* Copyright 2012 EMBL-EBI, Hinxton outstation
*
* 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 uk.ac.ebi.embl.api.validation.check.feature;
import uk.ac.ebi.embl.api.entry.Entry;
import uk.ac.ebi.embl.api.entry.feature.Feature;
import uk.ac.ebi.embl.api.entry.location.CompoundLocation;
import uk.ac.ebi.embl.api.entry.location.Location;
import uk.ac.ebi.embl.api.entry.location.RemoteLocation;
import uk.ac.ebi.embl.api.entry.qualifier.AminoAcid;
import uk.ac.ebi.embl.api.entry.qualifier.AnticodonQualifier;
import uk.ac.ebi.embl.api.entry.qualifier.Qualifier;
import uk.ac.ebi.embl.api.validation.Origin;
import uk.ac.ebi.embl.api.validation.ValidationException;
import uk.ac.ebi.embl.api.validation.ValidationMessage;
import uk.ac.ebi.embl.api.validation.ValidationResult;
import uk.ac.ebi.embl.api.validation.annotation.Description;
@Description("Anticodon validation")
public class AntiCodonQualifierCheck extends FeatureValidationCheck
{
private final static String ANTICODON_LOCATION_RANGE_MESSAGE_ID = "AntiCodonQualifierCheck_1";
private final static String ANTICODON_SEGMENT_MESSAGE_ID = "AntiCodonQualifierCheck_2";
private final static String ANTICODON_SEGMENT_START_MESSAGE_ID = "AntiCodonQualifierCheck_3";
private final static String ANTICODON_SEGMENT_END_MESSAGE_ID = "AntiCodonQualifierCheck_4";
private final static String ANTICODON_AMINO_ACID_MESSAGE_ID = "AntiCodonQualifierCheck_5";
private final static String ANTICODON_AMINO_ACID_NOT_MATCH_MESSAGE_ID = "AntiCodonQualifierCheck_6";
public AntiCodonQualifierCheck()
{
}
public ValidationResult check(Feature feature)
{
result = new ValidationResult();
if (feature == null)
{
return result;
}
try
{
AminoAcid aminoAcid = null;
Long start = null, end = null;
Qualifier antiCodonQualifier = feature
.getSingleQualifier(Qualifier.ANTICODON_QUALIFIER_NAME);
if (antiCodonQualifier == null)
{
return result;
}
CompoundLocation<Location> featureLocation = feature.getLocations();
if(featureLocation!=null)
{
for(Location location : featureLocation.getLocations())
{
if(location instanceof RemoteLocation)
return result;
}
}
AnticodonQualifier antiCodon = new AnticodonQualifier(
antiCodonQualifier.getValue());
CompoundLocation<Location> antiCodonLocation = antiCodon.getLocations();
Long beginPosition = featureLocation.getMinPosition();
Long endPosition = featureLocation.getMaxPosition();
start = antiCodonLocation.getMinPosition();
end = antiCodonLocation.getMaxPosition();
Long anticodonLocationLength=antiCodonLocation.getLength();
aminoAcid = antiCodon.getAminoAcid();
String aminoAcidString=antiCodon.getAminoAcidString();
if (aminoAcid == null)
{
reportError(antiCodonQualifier.getOrigin(),
ANTICODON_AMINO_ACID_MESSAGE_ID);
}
if(aminoAcid!=null&&aminoAcid.getAbbreviation()!=null)
{
if(!aminoAcid.getAbbreviation().equals(aminoAcidString))
{
reportWarning(feature.getOrigin(),ANTICODON_AMINO_ACID_NOT_MATCH_MESSAGE_ID,aminoAcidString,aminoAcid.getAbbreviation());
}
}
if (start < beginPosition || end > endPosition)
{
reportError(antiCodonQualifier.getOrigin(),
ANTICODON_LOCATION_RANGE_MESSAGE_ID, start, end);
}
if (start > end)
{
reportError(antiCodonQualifier.getOrigin(),
ANTICODON_SEGMENT_MESSAGE_ID, start, end);
}
if (start == 0)
{
reportError(antiCodonQualifier.getOrigin(),
ANTICODON_SEGMENT_START_MESSAGE_ID, start);
}
if (anticodonLocationLength!=3)
{
reportError(antiCodonQualifier.getOrigin(),
ANTICODON_SEGMENT_END_MESSAGE_ID,
3);
}
} catch (ValidationException exception)
{
reportException(result, exception,feature);
}
return result;
}
private void reportException(ValidationResult result, ValidationException exception,Feature feature)
{
ValidationMessage<Origin> message = exception.getValidationMessage();
message.append(feature.getOrigin());
result.append(message);
}
}
|
[
"reddyk@REDDYK-W10D.windows.ebi.ac.uk"
] |
reddyk@REDDYK-W10D.windows.ebi.ac.uk
|
505d86c0fcc7440ec497479139fd8f62cbd32321
|
2edbc7267d9a2431ee3b58fc19c4ec4eef900655
|
/AL-Game/src/com/aionemu/gameserver/services/siegeservice/ArtifactAssault.java
|
14308d80cce9807f51727dde34228e9aae94382a
|
[] |
no_license
|
EmuZONE/Aion-Lightning-5.1
|
3c93b8bc5e63fd9205446c52be9b324193695089
|
f4cfc45f6aa66dfbfdaa6c0f140b1861bdcd13c5
|
refs/heads/master
| 2020-03-08T14:38:42.579437
| 2018-04-06T04:18:19
| 2018-04-06T04:18:19
| 128,191,634
| 1
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 285
|
java
|
package com.aionemu.gameserver.services.siegeservice;
public class ArtifactAssault extends Assault<ArtifactSiege> {
public ArtifactAssault(ArtifactSiege siege) {
super(siege);
}
public void scheduleAssault(int delay) {
}
public void onAssaultFinish(boolean captured) {
}
}
|
[
"naxdevil@gmail.com"
] |
naxdevil@gmail.com
|
1336dc4777967bfea13c1688826959f090327365
|
6a922e840b33f11ab3d0f154afa0b33cff272676
|
/src/xlsx4j/java/org/xlsx4j/sml/STGrowShrinkType.java
|
ccf6c050bc5401004e0563e23ed0cc337637a9ae
|
[
"Apache-2.0"
] |
permissive
|
baochanghong/docx4j
|
912fc146cb5605e6f7869c4839379a83a8b4afd8
|
4c83d8999c9396067dd583b82a6fc892469a3919
|
refs/heads/master
| 2021-01-12T15:30:26.971311
| 2016-10-20T00:44:25
| 2016-10-20T00:44:25
| 71,792,895
| 3
| 0
| null | 2016-10-24T13:39:57
| 2016-10-24T13:39:57
| null |
UTF-8
|
Java
| false
| false
| 2,095
|
java
|
/*
* Copyright 2010-2013, Plutext Pty Ltd.
*
* This file is part of xlsx4j, a component of docx4j.
docx4j is 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.xlsx4j.sml;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ST_GrowShrinkType.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="ST_GrowShrinkType">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="insertDelete"/>
* <enumeration value="insertClear"/>
* <enumeration value="overwriteClear"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "ST_GrowShrinkType")
@XmlEnum
public enum STGrowShrinkType {
@XmlEnumValue("insertDelete")
INSERT_DELETE("insertDelete"),
@XmlEnumValue("insertClear")
INSERT_CLEAR("insertClear"),
@XmlEnumValue("overwriteClear")
OVERWRITE_CLEAR("overwriteClear");
private final String value;
STGrowShrinkType(String v) {
value = v;
}
public String value() {
return value;
}
public static STGrowShrinkType fromValue(String v) {
for (STGrowShrinkType c: STGrowShrinkType.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
|
[
"jason@plutext.org"
] |
jason@plutext.org
|
822b070f35413d606fddda3c98ef66414c63dce3
|
3ebaee3a565d5e514e5d56b44ebcee249ec1c243
|
/assetBank 3.77 decomplied fixed/src/java/com/bright/assetbank/custom/bgs/bean/KeywordCriteria.java
|
2f2b4d123b50ff6a6905c452ad37a19571b8a4cc
|
[] |
no_license
|
webchannel-dev/Java-Digital-Bank
|
89032eec70a1ef61eccbef6f775b683087bccd63
|
65d4de8f2c0ce48cb1d53130e295616772829679
|
refs/heads/master
| 2021-10-08T19:10:48.971587
| 2017-11-07T09:51:17
| 2017-11-07T09:51:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,385
|
java
|
/* */ package com.bright.assetbank.custom.bgs.bean;
/* */
/* */ import java.util.ArrayList;
/* */ import java.util.Collection;
/* */
/* */ public class KeywordCriteria
/* */ {
/* 29 */ private Collection<Long> m_keywordIds = new ArrayList();
/* */ private String m_relatedKeywordType;
/* */
/* */ public KeywordCriteria()
/* */ {
/* */ }
/* */
/* */ public KeywordCriteria(Collection<Long> a_keywordIds, String a_relatedKeywordType)
/* */ {
/* 43 */ this.m_keywordIds = a_keywordIds;
/* 44 */ this.m_relatedKeywordType = a_relatedKeywordType;
/* */ }
/* */
/* */ public Collection<Long> getKeywordIds()
/* */ {
/* 49 */ return this.m_keywordIds;
/* */ }
/* */
/* */ public void setKeywordIds(Collection<Long> a_keywordIds)
/* */ {
/* 54 */ this.m_keywordIds = a_keywordIds;
/* */ }
/* */
/* */ public String getRelatedKeywordType()
/* */ {
/* 59 */ return this.m_relatedKeywordType;
/* */ }
/* */
/* */ public void setRelatedKeywordType(String a_relatedKeywordType)
/* */ {
/* 64 */ this.m_relatedKeywordType = a_relatedKeywordType;
/* */ }
/* */ }
/* Location: C:\Users\mamatha\Desktop\com.zip
* Qualified Name: com.bright.assetbank.custom.bgs.bean.KeywordCriteria
* JD-Core Version: 0.6.0
*/
|
[
"42003122+code7885@users.noreply.github.com"
] |
42003122+code7885@users.noreply.github.com
|
d46cefb0f6f5b453fb82bd5f0860325c20cbf604
|
6395a4761617ad37e0fadfad4ee2d98caf05eb97
|
/.history/src/main/java/frc/robot/subsystems/CheesyDrive_20191110182510.java
|
8b64720866449fb99d616fedb8cb4cccddf87984
|
[] |
no_license
|
iNicole5/Cheesy_Drive
|
78383e3664cf0aeca42fe14d583ee4a8af65c1a1
|
80e1593512a92dbbb53ede8a8af968cc1efa99c5
|
refs/heads/master
| 2020-09-22T06:38:04.415411
| 2019-12-01T00:50:53
| 2019-12-01T00:50:53
| 225,088,973
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,676
|
java
|
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
package frc.robot.subsystems;
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
import com.ctre.phoenix.motorcontrol.can.WPI_VictorSPX;
import edu.wpi.first.wpilibj.SpeedControllerGroup;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.drive.DifferentialDrive;
import frc.robot.RobotMap;
public class CheesyDrive extends Subsystem
{
WPI_TalonSRX leftMotor1 = new WPI_TalonSRX(RobotMap.leftMotor1);
WPI_VictorSPX leftMotor2 = new WPI_VictorSPX(RobotMap.leftMotor2);
WPI_VictorSPX rightMotor1 = new WPI_VictorSPX(RobotMap.rightMotor1);
WPI_TalonSRX rightMotor2 = new WPI_TalonSRX(RobotMap.rightMotor2);
SpeedControllerGroup leftDriveBase = new SpeedControllerGroup(leftMotor1, leftMotor2);
SpeedControllerGroup rightDriveBase = new SpeedControllerGroup(rightMotor1, rightMotor2);
DifferentialDrive cheesyDrive = new DifferentialDrive(leftDriveBase, rightDriveBase);
public void robotInit()
{
leftDriveBase.setInverted(true);
rightDriveBase.setInverted(t);
}
@Override
public void initDefaultCommand()
{
// Set the default command for a subsystem here.
// setDefaultCommand(new MySpecialCommand());
}
}
|
[
"40499551+iNicole5@users.noreply.github.com"
] |
40499551+iNicole5@users.noreply.github.com
|
49cefb72d8396e992d3daba945b0cffe42248f8b
|
efbfbfb4420fa073a5e157ba274bf51c6c40059a
|
/spring-cloud-alibaba-dubbo/src/main/java/org/springframework/cloud/alibaba/dubbo/context/DubboServiceRegistrationApplicationContextInitializer.java
|
7cec09322aab0820cf2ab4d70ba069a1c6609875
|
[
"Apache-2.0"
] |
permissive
|
simon11wei/spring-cloud-alibaba
|
17c97c6a5df8129ea13338b59c8f64f4737c0363
|
56627e38897247bcece116636a3ee61d5ce4ea54
|
refs/heads/master
| 2020-04-18T10:20:47.325835
| 2019-01-23T14:55:58
| 2019-01-23T14:55:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,882
|
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.springframework.cloud.alibaba.dubbo.context;
import org.springframework.cloud.alibaba.dubbo.registry.SpringCloudRegistryFactory;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
/**
* The Dubbo services will be registered as the specified Spring cloud applications that
* will not be considered normal ones, but only are used to Dubbo's service discovery even
* if it is based on Spring Cloud Commons abstraction. However, current application will
* be registered by other DiscoveryClientAutoConfiguration.
*
* @author <a href="mailto:mercyblitz@gmail.com">Mercy</a>
*/
public class DubboServiceRegistrationApplicationContextInitializer
implements ApplicationContextInitializer<ConfigurableApplicationContext> {
@Override
public void initialize(ConfigurableApplicationContext applicationContext) {
// Set ApplicationContext into SpringCloudRegistryFactory before Dubbo Service
// Register
SpringCloudRegistryFactory.setApplicationContext(applicationContext);
}
}
|
[
"mercyblitz@gmail.com"
] |
mercyblitz@gmail.com
|
94fd38b9aecb76ae9dc46ff7fc50d8a9da2364e6
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mm/classes.jar/com/tencent/mm/plugin/finder/uniComments/f$$ExternalSyntheticLambda4.java
|
a1d68134c5a2c6dfa60e06b928f5b3675b86302d
|
[] |
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
| 378
|
java
|
package com.tencent.mm.plugin.finder.uniComments;
public final class f$$ExternalSyntheticLambda4
implements Runnable
{
public final void run() {}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes2.jar
* Qualified Name: com.tencent.mm.plugin.finder.uniComments.f..ExternalSyntheticLambda4
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
356431bb863d578c1609bd43f3528fde1625e473
|
40cd4da5514eb920e6a6889e82590e48720c3d38
|
/desktop/applis/apps/bean/bean_games/pokemonbean/src/main/java/aiki/beans/abilities/AbilityBeanGetTrMultStatIfKoFoe.java
|
fe8dd964e35cda01a9a79a546383f99b4c7eb5e2
|
[] |
no_license
|
Cardman/projects
|
02704237e81868f8cb614abb37468cebb4ef4b31
|
23a9477dd736795c3af10bccccb3cdfa10c8123c
|
refs/heads/master
| 2023-08-17T11:27:41.999350
| 2023-08-15T07:09:28
| 2023-08-15T07:09:28
| 34,724,613
| 4
| 0
| null | 2020-10-13T08:08:38
| 2015-04-28T10:39:03
|
Java
|
UTF-8
|
Java
| false
| false
| 458
|
java
|
package aiki.beans.abilities;
import aiki.beans.PokemonBeanStruct;
import code.bean.nat.*;
import code.bean.nat.*;
import code.bean.nat.*;
import code.bean.nat.*;
public class AbilityBeanGetTrMultStatIfKoFoe implements NatCaller{
@Override
public NaSt re(NaSt _instance, NaSt[] _args){
return new NaStSt(( (AbilityBean) ((PokemonBeanStruct)_instance).getInstance()).getTrMultStatIfKoFoe(NaPa.convertToNumber(_args[0]).intStruct()));
}
}
|
[
"f.desrochettes@gmail.com"
] |
f.desrochettes@gmail.com
|
538e87fe4d8f72640eec19475ca61a114f41a7bd
|
442f6be098eeb1866fc2e94796a8ad2016f317d2
|
/jaccepte/src/main/java/net/gcolin/validator/constraints/DecimalMaxBigDecimalValidator.java
|
197dacf26f352ec9e30eee1f00aff691a2d330cf
|
[
"Apache-2.0"
] |
permissive
|
gcolin/smallee
|
355774d6feb2b9f478b297a17297d446c33705a3
|
3f21f2cbea2af708bb7e8f31375dcc4f56a17e16
|
refs/heads/master
| 2023-07-24T03:00:08.848827
| 2022-12-31T17:23:12
| 2022-12-31T17:23:12
| 205,173,969
| 0
| 0
|
Apache-2.0
| 2023-07-22T14:51:15
| 2019-08-29T13:47:29
|
Java
|
UTF-8
|
Java
| false
| false
| 1,529
|
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 net.gcolin.validator.constraints;
import java.math.BigDecimal;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import javax.validation.constraints.DecimalMax;
/**
* A ConstraintValidator DecimalMax for a BigDecimal.
*
* @author Gaël COLIN
* @since 1.0
*/
public class DecimalMaxBigDecimalValidator implements ConstraintValidator<DecimalMax, BigDecimal> {
private BigDecimal max;
@Override
public void initialize(DecimalMax constraintAnnotation) {
max = new BigDecimal(constraintAnnotation.value());
}
@Override
public boolean isValid(BigDecimal value, ConstraintValidatorContext context) {
return value == null || value.compareTo(max) <= 0;
}
}
|
[
"gael87@gmail.com"
] |
gael87@gmail.com
|
d0117f9b7cb2abbcc1eafb765dc89041d06b6b55
|
1b3991b733e773577810946a345a1b67b30ff955
|
/support/cas-server-support-shiro-authentication/src/main/java/org/apereo/cas/config/ShiroAuthenticationConfiguration.java
|
6c909e1aeebeba6d487d3ace2f07ec0972707236
|
[
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
0xDCSun/cas
|
20e51cc2a6c1f94c2c962bd1c5486ae9312fb8c6
|
6c9b7df9128c5606661f9ec8c468e1e88097eafa
|
refs/heads/master
| 2023-08-03T11:53:20.030396
| 2022-02-11T14:36:22
| 2022-02-11T14:36:22
| 182,512,612
| 0
| 0
|
Apache-2.0
| 2023-07-19T21:35:22
| 2019-04-21T09:09:24
|
Java
|
UTF-8
|
Java
| false
| false
| 4,313
|
java
|
package org.apereo.cas.config;
import org.apereo.cas.adaptors.generic.ShiroAuthenticationHandler;
import org.apereo.cas.authentication.AuthenticationEventExecutionPlanConfigurer;
import org.apereo.cas.authentication.AuthenticationHandler;
import org.apereo.cas.authentication.principal.PrincipalFactory;
import org.apereo.cas.authentication.principal.PrincipalFactoryUtils;
import org.apereo.cas.authentication.principal.PrincipalNameTransformerUtils;
import org.apereo.cas.authentication.principal.PrincipalResolver;
import org.apereo.cas.authentication.support.password.PasswordEncoderUtils;
import org.apereo.cas.authentication.support.password.PasswordPolicyContext;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.services.ServicesManager;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ScopedProxyMode;
/**
* This is {@link ShiroAuthenticationConfiguration}.
*
* @author Misagh Moayyed
* @since 5.3.0
*/
@EnableConfigurationProperties(CasConfigurationProperties.class)
@Slf4j
@Configuration(value = "ShiroAuthenticationConfiguration", proxyBeanMethods = false)
public class ShiroAuthenticationConfiguration {
@ConditionalOnMissingBean(name = "shiroPrincipalFactory")
@Bean
public PrincipalFactory shiroPrincipalFactory() {
return PrincipalFactoryUtils.newPrincipalFactory();
}
@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
@Bean
@ConditionalOnMissingBean(name = "shiroAuthenticationHandler")
public AuthenticationHandler shiroAuthenticationHandler(
final CasConfigurationProperties casProperties, final ConfigurableApplicationContext applicationContext,
@Qualifier("shiroPrincipalFactory")
final PrincipalFactory shiroPrincipalFactory,
@Qualifier("shiroPasswordPolicyConfiguration")
final PasswordPolicyContext shiroPasswordPolicyConfiguration,
@Qualifier(ServicesManager.BEAN_NAME)
final ServicesManager servicesManager) {
val shiro = casProperties.getAuthn().getShiro();
val h = new ShiroAuthenticationHandler(shiro.getName(), servicesManager, shiroPrincipalFactory, shiro.getRequiredRoles(), shiro.getRequiredPermissions());
h.loadShiroConfiguration(shiro.getLocation());
h.setPasswordEncoder(PasswordEncoderUtils.newPasswordEncoder(shiro.getPasswordEncoder(), applicationContext));
h.setPasswordPolicyConfiguration(shiroPasswordPolicyConfiguration);
h.setPrincipalNameTransformer(PrincipalNameTransformerUtils.newPrincipalNameTransformer(shiro.getPrincipalTransformation()));
return h;
}
@ConditionalOnMissingBean(name = "shiroAuthenticationEventExecutionPlanConfigurer")
@Bean
public AuthenticationEventExecutionPlanConfigurer shiroAuthenticationEventExecutionPlanConfigurer(
final CasConfigurationProperties casProperties,
@Qualifier("shiroAuthenticationHandler")
final AuthenticationHandler shiroAuthenticationHandler,
@Qualifier(PrincipalResolver.BEAN_NAME_PRINCIPAL_RESOLVER)
final PrincipalResolver defaultPrincipalResolver) {
return plan -> {
val shiroConfigFile = casProperties.getAuthn()
.getShiro()
.getLocation();
if (shiroConfigFile != null) {
LOGGER.debug("Injecting shiro authentication handler configured at [{}]", shiroConfigFile.getDescription());
plan.registerAuthenticationHandlerWithPrincipalResolver(shiroAuthenticationHandler, defaultPrincipalResolver);
}
};
}
@ConditionalOnMissingBean(name = "shiroPasswordPolicyConfiguration")
@Bean
public PasswordPolicyContext shiroPasswordPolicyConfiguration() {
return new PasswordPolicyContext();
}
}
|
[
"mm1844@gmail.com"
] |
mm1844@gmail.com
|
b9e94c0f02a1f20198349f1c1edf70c9fb0f684b
|
b7cac4e062aa5ba15c315adfd3763cb49676afc9
|
/inception/inception-api-annotation/src/main/java/de/tudarmstadt/ukp/clarin/webanno/api/annotation/paging/NoPagingStrategy.java
|
5637dcb12e62cd7d2dcf425b8b5dfa23d92eae09
|
[
"Apache-2.0"
] |
permissive
|
XiaofengZhu/inception
|
cd98f77fd300932eb7c651e549d6991dd283dee4
|
719f10c07c79e3c9ce4b660f72b1573ff57a9434
|
refs/heads/master
| 2023-06-13T21:48:29.018115
| 2021-07-07T21:18:07
| 2021-07-07T21:18:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,411
|
java
|
/*
* Licensed to the Technische Universität Darmstadt under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Technische Universität Darmstadt
* licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.tudarmstadt.ukp.clarin.webanno.api.annotation.paging;
import static java.util.Arrays.asList;
import java.util.List;
import org.apache.uima.cas.CAS;
import org.apache.wicket.Component;
import org.apache.wicket.markup.html.panel.EmptyPanel;
import org.apache.wicket.model.IModel;
import de.tudarmstadt.ukp.clarin.webanno.api.annotation.model.AnnotatorState;
import de.tudarmstadt.ukp.clarin.webanno.api.annotation.page.AnnotationPageBase;
import de.tudarmstadt.ukp.clarin.webanno.api.annotation.paging.DefaultPagingNavigator;
import de.tudarmstadt.ukp.clarin.webanno.api.annotation.paging.PagingStrategy;
import de.tudarmstadt.ukp.clarin.webanno.api.annotation.paging.Unit;
public class NoPagingStrategy
implements PagingStrategy
{
private static final long serialVersionUID = 1589886937787735472L;
@Override
public List<Unit> units(CAS aCas, int aFirstIndex, int aLastIndex)
{
return asList(new Unit(0, 0, aCas.getDocumentText().length()));
}
@Override
public Component createPositionLabel(String aId, IModel<AnnotatorState> aModel)
{
EmptyPanel emptyPanel = new EmptyPanel(aId);
// Just to avoid errors when re-rendering this is requested in an AJAX request
emptyPanel.setOutputMarkupId(true);
return emptyPanel;
}
@Override
public DefaultPagingNavigator createPageNavigator(String aId, AnnotationPageBase aPage)
{
DefaultPagingNavigator navi = new DefaultPagingNavigator(aId, aPage);
navi.setOutputMarkupPlaceholderTag(true);
navi.setVisible(false);
return navi;
}
}
|
[
"richard.eckart@gmail.com"
] |
richard.eckart@gmail.com
|
9739ad04d79e288b55972d24123e9c7fc5cc0ce4
|
fc6c869ee0228497e41bf357e2803713cdaed63e
|
/weixin6519android1140/src/sourcecode/com/tencent/mm/plugin/product/ui/b.java
|
e4d5186fb2db46a389aff0dd6123b1ba94c05d30
|
[] |
no_license
|
hyb1234hi/reverse-wechat
|
cbd26658a667b0c498d2a26a403f93dbeb270b72
|
75d3fd35a2c8a0469dbb057cd16bca3b26c7e736
|
refs/heads/master
| 2020-09-26T10:12:47.484174
| 2017-11-16T06:54:20
| 2017-11-16T06:54:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 634
|
java
|
package com.tencent.mm.plugin.product.ui;
import android.widget.ImageView;
import android.widget.TextView;
import com.tencent.gmtrace.GMTrace;
public final class b
{
public TextView izE;
public TextView nJe;
public ImageView nJf;
public HtmlTextView nJg;
public Object nJh;
public String title;
public int type;
public b()
{
GMTrace.i(6017383399424L, 44833);
GMTrace.o(6017383399424L, 44833);
}
}
/* Location: D:\tools\apktool\weixin6519android1140\jar\classes3-dex2jar.jar!\com\tencent\mm\plugin\product\ui\b.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"robert0825@gmail.com"
] |
robert0825@gmail.com
|
ace87421210b3e9ef3440bd6f30a435c34a9792d
|
9ab91b074703bcfe9c9407e1123e2b551784a680
|
/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/framework/DestroyableService.java
|
5fefb422a2d52cc9e7ab6d84948699a1511e9beb
|
[] |
no_license
|
pkdevbox/osee
|
7ad9c083c3df8a7e9ef6185a419680cc08e21769
|
7e31f80f43d6d0b661af521fdd93b139cb694001
|
refs/heads/master
| 2021-01-22T00:30:05.686402
| 2015-06-08T21:19:57
| 2015-06-09T18:42:17
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 617
|
java
|
/*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.ote.core.framework;
public interface DestroyableService {
void destroy();
}
|
[
"rbrooks@ee007c2a-0a25-0410-9ab9-bf268980928c"
] |
rbrooks@ee007c2a-0a25-0410-9ab9-bf268980928c
|
c47299ae85312b7263c3cd5026d5efac634d09d5
|
f583c50a88d07e159bba657c27ffdf14053a7f1e
|
/springboot的单点登录的实现/模板3(好用,使用shiro+jwt+redis来实现,shiro-jwt-SSO项目用到)/shiro-jwt-SSO/src/main/java/com/mzl/shirojwtSSO/shiro/jwt/JwtFilter.java
|
5357fba7e423dc32c6b7fe0fbf38ea6a1db27735
|
[] |
no_license
|
KTLeYing/springboot-learning-1
|
542eadb3d3174434047a7268a04be8050bf2ea11
|
9e5e6c9c27c41fef04bdc186f53ac30a3610af34
|
refs/heads/master
| 2023-03-19T14:08:55.988098
| 2021-03-18T11:32:47
| 2021-03-18T11:32:47
| 347,958,431
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,672
|
java
|
package com.mzl.shirojwtSSO.shiro.jwt;
import com.mzl.shirojwtSSO.exception.MyException;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.web.filter.authc.BasicHttpAuthenticationFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.method.HandlerMethod;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.Method;
import java.net.URLEncoder;
/**
* @ClassName : JwtFilter
* @Description: jwt过滤器,对用户请求的token进行处理
* @Author: mzl
* @CreateDate: 2021/1/30 21:45
* @Version: 1.0
*/
@Component
public class JwtFilter extends BasicHttpAuthenticationFilter {
@Autowired
private StringRedisTemplate stringRedisTemplate;
/**
* 如果带有 token,则对 token 进行检查,否则直接通过
* @param request
* @param response
* @param mappedValue
* @return
*/
@Override
protected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue){
System.out.println("执行了是否允许访问的处理...");
//判断请求的请求头是否带上 "token"
if (isLoginAttempt(request, response)){
//如果存在,则进入 executeLogin 方法执行登入,检查 token 是否正确
try{
executeLogin(request, response);
System.out.println("请求的用户身份认证成功了...");
return true;
} catch (Exception e) {
//token 错误
responseError(request, response, e.getMessage());
e.printStackTrace();
}
}
//请求如果不携带token,则请求失败
System.out.println("请求的用户身份认证失败了...");
responseError(request, response, "请求没携带token,请求token不能为空,认证失败!");
return false;
}
/**
* 判断用户是否想要登录,是否要尝试登录
* 检测 header 里面是否包含 token 字段,有token说明用户要请求,所以就进行用户token的验证;无token说明用户要进行登录或者游客状态访问
* @param request
* @param response
* @return
*/
@Override
protected boolean isLoginAttempt(ServletRequest request, ServletResponse response) {
System.out.println("执行了判断用户是否想要登录...");
HttpServletRequest httpServletRequest = (HttpServletRequest) request;
String token = httpServletRequest.getHeader("token");
return token != null;
}
/**
* 执行登录操作,看用户的token信息是否正确和用户是否有权限
* @param request
* @param response
* @return
* @throws Exception
*/
@Override
protected boolean executeLogin(ServletRequest request, ServletResponse response) throws Exception {
System.out.println("执行了登录操作...");
HttpServletRequest httpServletRequest = (HttpServletRequest) request;
String token = httpServletRequest.getHeader("token");
JwtToken jwtToken = new JwtToken(token);
// 提交给realm进行登入验证,如果错误它会抛出异常并被捕获(realm的身份认证和权限管理通过才能算是放行true,否则会抛出异常)
getSubject(request, response).login(jwtToken);
// 如果没有抛出异常则代表登入成功,返回true
return true;
}
/**
* 执行接口各项处理前的执行,对跨域的支持
* @param request
* @param response
* @return
* @throws Exception
*/
@Override
protected boolean preHandle(ServletRequest request, ServletResponse response) throws Exception {
System.out.println("执行了接口各项处理前的执行...");
HttpServletRequest httpServletRequest = (HttpServletRequest) request;
HttpServletResponse httpServletResponse = (HttpServletResponse) response;
httpServletResponse.setHeader("Access-control-Allow-Origin", httpServletRequest.getHeader("Origin"));
httpServletResponse.setHeader("Access-Control-Allow-Methods", "GET,POST,OPTIONS,PUT,DELETE");
httpServletResponse.setHeader("Access-Control-Allow-Headers", httpServletRequest.getHeader("Access-Control-Request-Headers"));
// 跨域时会首先发送一个option请求,这里我们给option请求直接返回正常状态
if (httpServletRequest.getMethod().equals(RequestMethod.OPTIONS.name())) {
httpServletResponse.setStatus(HttpStatus.OK.value());
return false;
}
return super.preHandle(request, response);
}
/**
* 将非法请求跳转到 /user/unauthorized/**
*/
private void responseError(ServletRequest request, ServletResponse response, String message) {
System.out.println("执行response401处理(身份认证失败或无权限)...");
HttpServletRequest req = (HttpServletRequest) request;
try{
req.getRequestDispatcher("/user/unauthorized/" + message).forward(request, response);
} catch (Exception e) {
e.printStackTrace();
}
}
}
|
[
"2198902814@qq.com"
] |
2198902814@qq.com
|
935bacb818f8fc776986d0091d725ee0024e8b2f
|
7d841458fd912eb7d295619d015a1f25d75b052e
|
/latte-ec/src/main/java/com/diabin/latte/ec/launcher/LauncherScrollDelegate.java
|
f0f1bfeb21c767ab68df13c321764524241cfe0b
|
[] |
no_license
|
johnYin2015/ECApp
|
2304d39929878369c6a9287a571308c2e0e1c0fd
|
53fd0268ed405f96d34fe48c45270edface2058b
|
refs/heads/master
| 2020-09-22T03:17:20.453095
| 2019-12-07T15:43:45
| 2019-12-07T15:43:45
| 225,030,125
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,274
|
java
|
package com.diabin.latte.ec.launcher;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import com.bigkoo.convenientbanner.ConvenientBanner;
import com.bigkoo.convenientbanner.listener.OnItemClickListener;
import com.diabin.latte.core.app.AccountManager;
import com.diabin.latte.core.app.IUserChecker;
import com.diabin.latte.core.delegates.LatteDelegate;
import com.diabin.latte.ui.launcher.IOnLauncherFinishListener;
import com.diabin.latte.ui.launcher.LauncherHolderCreator;
import com.diabin.latte.ui.launcher.OnLauncherFinishTag;
import com.diabin.latte.ui.launcher.ScrollLauncherTag;
import com.diabin.latte.core.ui.storage.LattePreference;
import com.diabin.latte.ec.R;
import java.util.ArrayList;
public class LauncherScrollDelegate extends LatteDelegate implements OnItemClickListener {
//页面翻转view
private ConvenientBanner<Integer> mConvenientBanner;
//图片集合
private final ArrayList<Integer> INTEGERS = new ArrayList<>();
private IOnLauncherFinishListener mIOnLauncherFinishListener;
//初始化图片集合
private void init() {
INTEGERS.add(R.mipmap.launcher_01);
INTEGERS.add(R.mipmap.launcher_02);
INTEGERS.add(R.mipmap.launcher_03);
INTEGERS.add(R.mipmap.launcher_04);
INTEGERS.add(R.mipmap.launcher_05);
mConvenientBanner.setPages(new LauncherHolderCreator(), INTEGERS)
.setPageIndicator(new int[]{R.drawable.dot_normal, R.drawable.dot_focus})
.setPageIndicatorAlign(ConvenientBanner.PageIndicatorAlign.CENTER_HORIZONTAL)
.setOnItemClickListener(this)
.setCanLoop(false);
}
@Override
public Object setLayout() {
mConvenientBanner = new ConvenientBanner<Integer>(getProxyActivity());
return mConvenientBanner;
}
@Override
public void onBindView(View rootView, @Nullable Bundle savedInstanceState) {
super.onBindView(rootView, savedInstanceState);
init();
}
@Override
public void onAttach(Activity activity) {
super.onAttach(activity);
if (activity instanceof IOnLauncherFinishListener) {
mIOnLauncherFinishListener = (IOnLauncherFinishListener) activity;
}
}
@Override
public void onItemClick(int position) {
//如果是最后一张
if (position == INTEGERS.size() - 1) {
LattePreference.setAppFlag(ScrollLauncherTag.HAS_FIRST_LAUNCH_APP.name(), true);
//检查是否已登录
AccountManager.checkAccount(new IUserChecker() {
//登录
@Override
public void onSignin() {
if (mIOnLauncherFinishListener != null) {
mIOnLauncherFinishListener.onLaunchFinish(OnLauncherFinishTag.SIGNED);
}
}
//未登录
@Override
public void onNotSignin() {
if (mIOnLauncherFinishListener != null) {
mIOnLauncherFinishListener.onLaunchFinish(OnLauncherFinishTag.NOTSIGNED);
}
}
});
}
}
}
|
[
"wit.zhaoguo@gmail.com"
] |
wit.zhaoguo@gmail.com
|
a07199174c7a7201ba4c91652910d6a5b9832177
|
33cd15771ba81da37aa04df0743fb1c8d076ee4d
|
/common/src/main/java/com/sishuok/es/common/plugin/web/controller/BaseMovableController.java
|
87c2bf127549bfc2976be1f0d6fe306ebb837514
|
[
"Apache-2.0"
] |
permissive
|
teacher1998/es
|
4117dd917de8609aadb2538a3c18aa42f7bb6374
|
866bde41ee32bb29df0042d7bd5fda0406afdb37
|
refs/heads/master
| 2021-01-21T01:10:53.385006
| 2013-05-05T11:11:04
| 2013-05-05T11:11:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,353
|
java
|
/**
* Copyright (c) 2005-2012 https://github.com/zhangkaitao
*
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package com.sishuok.es.common.plugin.web.controller;
import com.sishuok.es.common.entity.BaseEntity;
import com.sishuok.es.common.entity.search.Searchable;
import com.sishuok.es.common.plugin.entity.Movable;
import com.sishuok.es.common.plugin.serivce.BaseMovableService;
import com.sishuok.es.common.utils.MessageUtils;
import com.sishuok.es.common.web.bind.annotation.PageableDefaults;
import com.sishuok.es.common.web.controller.BaseCRUDController;
import com.sishuok.es.common.web.validate.AjaxResponse;
import org.springframework.ui.Model;
import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import java.io.Serializable;
/**
* <p>User: Zhang Kaitao
* <p>Date: 13-2-22 下午4:15
* <p>Version: 1.0
*/
public abstract class BaseMovableController<M extends BaseEntity & Movable, ID extends Serializable>
extends BaseCRUDController<M, ID> {
private BaseMovableService movableService;
public void setMovableService(BaseMovableService<M, ID> movableService) {
setBaseService(movableService);
this.movableService = movableService;
}
@Override
public void afterPropertiesSet() throws Exception {
super.afterPropertiesSet();
Assert.notNull(movableService, "movable service must not null");
}
@RequestMapping(method = RequestMethod.GET)
@PageableDefaults(value = 10, sort = "weight=desc")
@Override
public String list(Searchable searchable, Model model) {
return super.list(searchable, model);
}
@RequestMapping(value = "up/{fromId}/{toId}")
@ResponseBody
public AjaxResponse up(@PathVariable("fromId") Long fromId, @PathVariable("toId") Long toId) {
AjaxResponse ajaxResponse = new AjaxResponse("移动位置成功");
try {
movableService.up(fromId, toId);
} catch (IllegalStateException e) {
ajaxResponse.setSuccess(Boolean.FALSE);
ajaxResponse.setMessage(MessageUtils.message("move.not.enough"));
}
return ajaxResponse;
}
@RequestMapping(value = "down/{fromId}/{toId}")
@ResponseBody
public AjaxResponse down(@PathVariable("fromId") Long fromId, @PathVariable("toId") Long toId) {
AjaxResponse ajaxResponse = new AjaxResponse("移动位置成功");
try {
movableService.down(fromId, toId);
} catch (IllegalStateException e) {
ajaxResponse.setSuccess(Boolean.FALSE);
ajaxResponse.setMessage(MessageUtils.message("move.not.enough"));
}
return ajaxResponse;
}
@RequestMapping(value = "reweight")
@ResponseBody
public AjaxResponse reweight() {
AjaxResponse ajaxResponse = new AjaxResponse("优化权重成功!");
try {
movableService.reweight();
} catch (IllegalStateException e) {
ajaxResponse.setSuccess(Boolean.FALSE);
ajaxResponse.setMessage("优化权重失败了!");
}
return ajaxResponse;
}
}
|
[
"zhangkaitao0503@gmail.com"
] |
zhangkaitao0503@gmail.com
|
e617843753756563acaa9e5936f8e12a8df46d32
|
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
|
/aliyun-java-sdk-cloudcallcenter/src/main/java/com/aliyuncs/cloudcallcenter/model/v20170705/RemoveTestPhoneNumberResponse.java
|
399dcf171d1f392dd7d4821fac43ab6a4d8c7951
|
[
"Apache-2.0"
] |
permissive
|
aliyun/aliyun-openapi-java-sdk
|
a263fa08e261f12d45586d1b3ad8a6609bba0e91
|
e19239808ad2298d32dda77db29a6d809e4f7add
|
refs/heads/master
| 2023-09-03T12:28:09.765286
| 2023-09-01T09:03:00
| 2023-09-01T09:03:00
| 39,555,898
| 1,542
| 1,317
|
NOASSERTION
| 2023-09-14T07:27:05
| 2015-07-23T08:41:13
|
Java
|
UTF-8
|
Java
| false
| false
| 1,962
|
java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.cloudcallcenter.model.v20170705;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudcallcenter.transform.v20170705.RemoveTestPhoneNumberResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class RemoveTestPhoneNumberResponse extends AcsResponse {
private String requestId;
private Boolean success;
private String code;
private String message;
private Integer httpStatusCode;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public Boolean getSuccess() {
return this.success;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public String getCode() {
return this.code;
}
public void setCode(String code) {
this.code = code;
}
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
}
public Integer getHttpStatusCode() {
return this.httpStatusCode;
}
public void setHttpStatusCode(Integer httpStatusCode) {
this.httpStatusCode = httpStatusCode;
}
@Override
public RemoveTestPhoneNumberResponse getInstance(UnmarshallerContext context) {
return RemoveTestPhoneNumberResponseUnmarshaller.unmarshall(this, context);
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
0e90b363e566513d79046a49962473f1ff382bb3
|
de446b31e18cf4b0ca602fedd96c2171ef232059
|
/src/main/java/com/huawei/cloudcampus/api/model/TenantListDto.java
|
f1db6f6ba2ec35b7cd1f174b50e890583b89cda3
|
[] |
no_license
|
qqfbleach/cloud-campus-sdk
|
c2b79d194e499704b959c1f4354f9b05ff010918
|
3f0a17edd852441013696fe2ddb7997c4e248808
|
refs/heads/master
| 2022-11-24T01:37:07.757152
| 2020-02-18T12:08:56
| 2020-02-18T12:08:56
| 238,686,821
| 0
| 0
| null | 2022-11-16T09:23:44
| 2020-02-06T12:43:50
|
Java
|
UTF-8
|
Java
| false
| false
| 5,841
|
java
|
/*
* 租户管理
* 租户管理第三方北向接口。 · 提供租户创建接口 · 提供租户删除接口 · 提供租户查询接口
*
* OpenAPI spec version: 1.0.2
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.huawei.cloudcampus.api.model;
import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.huawei.cloudcampus.api.model.TenantData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* 查询租户列表返回模型。
*/
@ApiModel(description = "查询租户列表返回模型。")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaSdnClientCodegen", date = "2019-12-17T15:19:16.197+08:00")
public class TenantListDto {
@SerializedName("errcode")
private String errcode = null;
@SerializedName("errmsg")
private String errmsg = null;
@SerializedName("totalRecords")
private Integer totalRecords = null;
@SerializedName("pageIndex")
private Integer pageIndex = null;
@SerializedName("pageSize")
private Integer pageSize = null;
@SerializedName("data")
private List<TenantData> data = null;
public TenantListDto errcode(String errcode) {
this.errcode = errcode;
return this;
}
/**
* 错误码。
* return errcode
**/
@ApiModelProperty(value = "错误码。")
public String getErrcode() {
return errcode;
}
/**
* 错误码。
* Param errcode
**/
public void setErrcode(String errcode) {
this.errcode = errcode;
}
public TenantListDto errmsg(String errmsg) {
this.errmsg = errmsg;
return this;
}
/**
* 错误信息。
* return errmsg
**/
@ApiModelProperty(value = "错误信息。")
public String getErrmsg() {
return errmsg;
}
/**
* 错误信息。
* Param errmsg
**/
public void setErrmsg(String errmsg) {
this.errmsg = errmsg;
}
public TenantListDto totalRecords(Integer totalRecords) {
this.totalRecords = totalRecords;
return this;
}
/**
* 租户数量。
* return totalRecords
**/
@ApiModelProperty(value = "租户数量。")
public Integer getTotalRecords() {
return totalRecords;
}
/**
* 租户数量。
* Param totalRecords
**/
public void setTotalRecords(Integer totalRecords) {
this.totalRecords = totalRecords;
}
public TenantListDto pageIndex(Integer pageIndex) {
this.pageIndex = pageIndex;
return this;
}
/**
* 分页的序号。
* return pageIndex
**/
@ApiModelProperty(value = "分页的序号。")
public Integer getPageIndex() {
return pageIndex;
}
/**
* 分页的序号。
* Param pageIndex
**/
public void setPageIndex(Integer pageIndex) {
this.pageIndex = pageIndex;
}
public TenantListDto pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* 分页的大小。
* return pageSize
**/
@ApiModelProperty(value = "分页的大小。")
public Integer getPageSize() {
return pageSize;
}
/**
* 分页的大小。
* Param pageSize
**/
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
public TenantListDto data(List<TenantData> data) {
this.data = data;
return this;
}
public TenantListDto addDataItem(TenantData dataItem) {
if (this.data == null) {
this.data = new ArrayList<TenantData>();
}
this.data.add(dataItem);
return this;
}
/**
* 租户列表信息。
* return data
**/
@ApiModelProperty(value = "租户列表信息。")
public List<TenantData> getData() {
return data;
}
/**
* 租户列表信息。
* Param data
**/
public void setData(List<TenantData> data) {
this.data = data;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TenantListDto tenantListDto = (TenantListDto) o;
return Objects.equals(this.errcode, tenantListDto.errcode) &&
Objects.equals(this.errmsg, tenantListDto.errmsg) &&
Objects.equals(this.totalRecords, tenantListDto.totalRecords) &&
Objects.equals(this.pageIndex, tenantListDto.pageIndex) &&
Objects.equals(this.pageSize, tenantListDto.pageSize) &&
Objects.equals(this.data, tenantListDto.data);
}
@Override
public int hashCode() {
return Objects.hash(errcode, errmsg, totalRecords, pageIndex, pageSize, data);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TenantListDto {\n");
sb.append(" errcode: ").append(toIndentedString(errcode)).append("\n");
sb.append(" errmsg: ").append(toIndentedString(errmsg)).append("\n");
sb.append(" totalRecords: ").append(toIndentedString(totalRecords)).append("\n");
sb.append(" pageIndex: ").append(toIndentedString(pageIndex)).append("\n");
sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
|
[
"qianqifeng@hotmail.com"
] |
qianqifeng@hotmail.com
|
3c0dca34d636dfbdfd90a435e6eee7c4080d716e
|
68ee068f2a8f44f6c469a70d8ba47eb667591e8a
|
/datasets/styler/be5/repair-attempt/batch_0/45/OperationSupport.java
|
c86a9a1b6093a52dbbff23dd076ddbfc209baae7
|
[] |
no_license
|
aqhvhghtbtb/styler
|
261032390ef39224ab1fdfd51a70ba556e5f81d4
|
e2881daa6bbc7763ad4a9ba704c4d834316ed9c1
|
refs/heads/master
| 2021-03-07T16:50:11.364844
| 2020-02-28T10:00:47
| 2020-02-28T10:00:47
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,912
|
java
|
package com.developmentontheedge.be5.server.operations.support;
import com.developmentontheedge.be5.base.model.UserInfo;
import com.developmentontheedge.be5.base.services.Meta;
import com.developmentontheedge.be5.base.services.UserAwareMeta;
import com.developmentontheedge.be5.database.DbService;
import com.developmentontheedge.be5.databasemodel.DatabaseModel;
import com.developmentontheedge.be5.metadata.model.Query;
import com.developmentontheedge.be5.operation.model.Operation;
import com.developmentontheedge.be5.operation.model.OperationResult;
import com.developmentontheedge.be5.operation.services.OperationsFactory;
import com.developmentontheedge.be5.operation.services.validation.Validator;
import com.developmentontheedge.be5.operation.support.BaseOperationSupport;
import com.developmentontheedge.be5.query.services.QueriesService;
import com.developmentontheedge.be5.server.helpers.DpsHelper;
import com.developmentontheedge.be5.server.model.FrontendAction;
import com.developmentontheedge.be5.web.Request;
import com.developmentontheedge.be5.web.Session;
import javax.inject.Inject;
public abstract class OperationSupport extends BaseOperationSupport implements Operation
{
public Meta meta;
public UserAwareMeta userAwareMeta;
public DbService db;
public DatabaseModel database;
public DpsHelper dpsHelper;
public Validator validator;
public OperationsFactory operations;
public QueriesService queries;
protected Session session;
protected Request request;
protected UserInfo userInfo;
@Inject
public void inject(Meta meta, UserAwareMeta userAwareMeta, DbService db, DatabaseModel database,
DpsHelper dpsHelper, Validator validator, OperationsFactory operations,
QueriesService queries, Session session, Request request, UserInfo userInfo) {
this.meta = meta;
this.userAwareMeta = userAwareMeta;
this.db = db;
this.database = database;
this.dpsHelper = dpsHelper;
this.validator = validator;
this.operations = operations;
this.queries = queries;
this.session = session;
this.request = request;
this.userInfo = userInfo;
}
public Query getQuery()
{
return meta.getQuery(getInfo().getEntityName(), context.getQueryName());
}
public void setResultFinished()
{
setResult(OperationResult.finished());
}
public void setResultFinished(String message)
{
setResult(OperationResult.finished(message));
}
public void setResultFinished(String message, FrontendAction... frontendActions)
{
setResult(OperationResult.finished(message, frontendActions));
}
public void setResultFinished(FrontendAction... frontendActions)
{
setResult(OperationResult.finished(null, frontendActions));
}
}
|
[
"bloriot97@gmail.com"
] |
bloriot97@gmail.com
|
6e53266f859df649c5ffd9266805d453ee81b523
|
2191eb97c82ac98486d73cb0fff1fc793ec12082
|
/Chat-Client-Oneway/app/src/main/java/edu/stevens/cs522/chatclient/ChatClient.java
|
c151c996128f773b335542afbf3df57b22f0cc5b
|
[] |
no_license
|
Madhuvandhana/AndroidDatabasesDemo
|
a31ad56f4f806aaefb1310b89091adfaf7c4e2ab
|
dd317fa6b7f0b378951fa8f22300ba80fad53d4c
|
refs/heads/master
| 2021-02-09T13:41:33.598204
| 2020-03-02T05:36:16
| 2020-03-02T05:36:16
| 244,288,739
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,126
|
java
|
/*********************************************************************
Client for sending chat messages to the server..
Copyright (c) 2012 Stevens Institute of Technology
**********************************************************************/
package edu.stevens.cs522.chatclient;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.InetAddress;
import java.net.UnknownHostException;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.StrictMode;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import edu.stevens.cs522.base.DatagramSendReceive;
import edu.stevens.cs522.base.InetAddressUtils;
/*
* @author dduggan
*
*/
public class ChatClient extends Activity implements OnClickListener {
final static private String TAG = ChatClient.class.getCanonicalName();
/*
* Socket used for sending
*/
// private DatagramSocket clientSocket;
private DatagramSendReceive clientSocket;
/*
* Widgets for dest address, message text, send button.
*/
private EditText destinationHost;
private EditText chatName;
private EditText messageText;
private Button sendButton;
/*
* Called when the activity is first created.
*/
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.chat_client);
setTitle("Madhu Vandhana Vijay Kumar");
/**
* Let's be clear, this is a HACK to allow you to do network communication on the chat_client thread.
* This WILL cause an ANR, and is only provided to simplify the pedagogy. We will see how to do
* this right in a future assignment (using a Service managing background threads).
*/
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
// TODO initialize the UI.
destinationHost = findViewById(R.id.destination_host);
chatName = findViewById(R.id.chat_name);
messageText = findViewById(R.id.message_text);
sendButton = findViewById(R.id.send_button);
sendButton.setOnClickListener(this);
// End todo
try {
int port = getResources().getInteger(R.integer.app_port);
clientSocket = new DatagramSendReceive(port);
// clientSocket = new DatagramSocket(port);
} catch (IOException e) {
IllegalStateException ex = new IllegalStateException("Cannot open socket");
ex.initCause(e);
throw ex;
}
}
/*
* Callback for the SEND button.
*/
public void onClick(View v) {
try {
/*
* On the emulator, which does not support WIFI stack, we'll send to
* (an AVD alias for) the host loopback interface, with the server
* port on the host redirected to the server port on the server AVD.
*/
InetAddress destAddr;
int destPort = getResources().getInteger(R.integer.app_port);
String clientName;
byte[] sendData; // Combine sender and message text; default encoding is UTF-8
// TODO get data from UI (no-op if chat name is blank)
destAddr = InetAddress.getByName(destinationHost.getText().toString());
clientName = chatName.getText().toString();
String data = clientName+":"+messageText.getText().toString();
sendData = data.getBytes();
// End todo
Log.d(TAG, String.format("Sending data from address %s:%d", clientSocket.getInetAddress(), clientSocket.getPort()));
DatagramPacket sendPacket = new DatagramPacket(sendData,
sendData.length, destAddr, destPort);
clientSocket.send(sendPacket);
// Log.d(TAG, "Sent packet: " + line);
} catch (UnknownHostException e) {
throw new IllegalStateException("Unknown host exception: " + e.getMessage());
} catch (IOException e) {
throw new IllegalStateException("IO exception: " + e.getMessage());
}
messageText.setText("");
}
@Override
public void onDestroy() {
super.onDestroy();
if (clientSocket != null) {
clientSocket.close();
}
}
}
|
[
"="
] |
=
|
796eb6be4a415f8d954f1a1a33985e01048e3a5e
|
799cce351010ca320625a651fb2e5334611d2ebf
|
/Data Set/Manual/After/after_668.java
|
9a29d932c3ad3f90b4560c95fa5849c8a067b9ad
|
[] |
no_license
|
dareenkf/SQLIFIX
|
239be5e32983e5607787297d334e5a036620e8af
|
6e683aa68b5ec2cfe2a496aef7b467933c6de53e
|
refs/heads/main
| 2023-01-29T06:44:46.737157
| 2020-11-09T18:14:24
| 2020-11-09T18:14:24
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 443
|
java
|
class Dummy{
public int update(String names) throws Exception {
Connection dbConnection = null;
PrepearedStatement sqlStatement = null;
dbConnection = IO.getDBConnection();
sqlStatement = dbConnection.prepareStatement("update users set hitcount=hitcount+1 where name=?");
sqlStatement.setObject(1,names);
resultSet = sqlStatement.executeQuery();
return resultSet;
}}
|
[
"jahin99@gmail.com"
] |
jahin99@gmail.com
|
c2b99646b6e34030f780f998028e4dc43e0fe7e9
|
f26b833055dc6f9b1c78a7b78d5cb7121af2d59a
|
/src/by/it/_tasks_/lesson03/TaskA1.java
|
fe3bfd2b941f9118f0b55e86cd8bf30ff975d1ec
|
[] |
no_license
|
Rq3d/cs2018-01-08
|
00b85c7c395f5552a4f9d4d0a91d5db2e8afa655
|
53d7cb71e2647a3120f1e9353623e9addaa1b537
|
refs/heads/master
| 2021-05-13T18:52:04.902260
| 2018-01-21T17:22:25
| 2018-01-21T17:22:25
| 116,879,534
| 1
| 0
| null | 2018-01-09T22:48:08
| 2018-01-09T22:48:08
| null |
UTF-8
|
Java
| false
| false
| 1,872
|
java
|
package by.it._tasks_.lesson03;
/*
Lesson 04. Task A1. Калькулятор.
Напишите программу, которая считывает с клавиатуры два целых числа a и b
после этого выводит через пробел:
сумму, разность, произведение, частное и остаток от деления
этих чисел двух чисел (результат выводится как тип int).
после этого еще раз выводит через пробел
сумму, разность, произведение, частное и остаток от деления
этих чисел двух чисел (но результат выводится как тип double).
Для считывания данных с клавиатуры используйте метод nextInt() объекта класса Scanner.
Создать Scanner можно так:
Scanner sc=new Scanner(System.in);
Требования:
1. В программе необходимо создать объект типа Scanner.
2. Программа должна считывать два числа типа int с клавиатуры.
3. Программа должна дважды выводить в строку пять чисел через пробел.
4. Программа должна выводить int сумму, разность, произведение, частное и остаток от деления этих чисел двух чисел.
5. Программа должна выводить double сумму, разность, произведение, частное и остаток от деления этих чисел двух чисел.
Пример:
Ввод:
7 2
Вывод:
9 5 14 3 1
9.0 5.0 14.0 3.5 1.0
*/
class TaskA1 {
}
|
[
"375336849110@tut.by"
] |
375336849110@tut.by
|
4ec7768681d70044b73bad1ecf8a693244743ca9
|
44a0e67273389aea6e0927559312729e9d3f5675
|
/fili-core/src/main/java/com/yahoo/bard/webservice/web/TableMetadataFormatter.java
|
18ca4feddb7ff7a2e8ef7be76c4821c71ae738ad
|
[
"Apache-2.0"
] |
permissive
|
gitter-badger/fili
|
0159aae7d624dbfa4569a4fdd466c7c7d8819235
|
2adb1220975bee91fe2ecd0cbbe43380aea39df9
|
refs/heads/master
| 2020-12-25T16:03:06.076889
| 2016-06-21T16:33:35
| 2016-06-21T16:33:35
| 61,657,132
| 0
| 0
| null | 2016-06-21T18:27:16
| 2016-06-21T18:27:15
| null |
UTF-8
|
Java
| false
| false
| 1,547
|
java
|
// Copyright 2016 Yahoo Inc.
// Licensed under the terms of the Apache license. Please see LICENSE file distributed with this work for terms.
package com.yahoo.bard.webservice.web;
import com.yahoo.bard.webservice.table.LogicalTable;
import java.util.List;
import java.util.Set;
import javax.ws.rs.core.UriInfo;
public interface TableMetadataFormatter {
/**
* Method to provide a list of TableViews which have a complete view of all the tables
* and underlying information
*
* @param logicalTableList List of logical tables
* @param uriInfo Uri information to construct the uri's
*
* @return List of table views which contains full vew of each table
*/
List<TableView> formatTables(Set<LogicalTable> logicalTableList, UriInfo uriInfo);
/**
* Method to provide a representation of a table and underlying information
*
* @param logicalTable Logical Table
* @param uriInfo Uri information to construct the uri's
*
* @return Table which contains complete view
*/
TableView formatTable(LogicalTable logicalTable, UriInfo uriInfo);
/**
* Method to provide a representation of a table at grain level
*
* @param logicalTable Logical Table
* @param grain Table grain
* @param uriInfo Uri information to construct the uri's
*
* @return Table details with all the metrics and dimension details for given grain
*/
TableGrainView formatTableGrain(LogicalTable logicalTable, String grain, UriInfo uriInfo);
}
|
[
"mclawhor@yahoo-inc.com"
] |
mclawhor@yahoo-inc.com
|
c480f9c366e53dfcfb6d42e24390d9588af9e6d7
|
69040d2ad1b09341df198deb4822fde814eccd52
|
/src/main/java/RingOfDestiny/cards/ShadowFlower/ShadowMark.java
|
ebf9424e501dcf4cf4ef8fedb52441e625869dfc
|
[] |
no_license
|
Rita-Bernstein/RingOfDestiny
|
69feecf461541ed2c585c181c6dde6a16d39af52
|
788da2b2d11c2393288506b3e04e6d5da1a16949
|
refs/heads/master
| 2023-07-16T20:56:30.160192
| 2021-08-31T17:16:55
| 2021-08-31T17:16:55
| 343,334,965
| 3
| 3
| null | 2021-05-24T08:28:52
| 2021-03-01T08:01:25
|
Java
|
UTF-8
|
Java
| false
| false
| 2,274
|
java
|
package RingOfDestiny.cards.ShadowFlower;
import RingOfDestiny.RingOfDestiny;
import RingOfDestiny.cards.AbstractRingCard;
import RingOfDestiny.patches.CardColorEnum;
import RingOfDestiny.powers.ShadowMarkPower;
import basemod.abstracts.CustomCard;
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction;
import com.megacrit.cardcrawl.actions.common.GainBlockAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.localization.CardStrings;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import com.megacrit.cardcrawl.powers.PoisonPower;
import com.megacrit.cardcrawl.powers.VulnerablePower;
import com.megacrit.cardcrawl.powers.WeakPower;
public class ShadowMark extends AbstractRingCard {
public static final String ID = RingOfDestiny.makeID("ShadowMark");
private static final CardStrings cardStrings = CardCrawlGame.languagePack.getCardStrings(ID);
public static final String NAME = cardStrings.NAME;
public static final String IMG = RingOfDestiny.assetPath("img/cards/ShadowFlower/53.png");
private static final int COST = 0;
public static final String DESCRIPTION = cardStrings.DESCRIPTION;
public static final CardType TYPE = CardType.SKILL;
private static final CardColor COLOR = CardColorEnum.ShadowFlower_LIME;
private static final CardRarity RARITY = CardRarity.RARE;
private static final CardTarget TARGET = CardTarget.ENEMY;
public ShadowMark() {
super(ID, NAME, IMG, COST, DESCRIPTION, TYPE, COLOR, RARITY, TARGET);
this.magicNumber = this.baseMagicNumber = 1;
this.exhaust = true;
}
public void use(AbstractPlayer p, AbstractMonster m) {
addToBot(new ApplyPowerAction(m,p,new ShadowMarkPower(m,this.magicNumber),this.magicNumber));
}
public AbstractCard makeCopy() {
return new ShadowMark();
}
public void upgrade() {
if (!this.upgraded) {
upgradeName();
this.isInnate = true;
this.rawDescription = cardStrings.UPGRADE_DESCRIPTION;
initializeDescription();
}
}
}
|
[
"13536709069@163.com"
] |
13536709069@163.com
|
58367be68eb85aaa76ed7f11b51182aae7514762
|
8a3e81133ff67b8266b654a78fd452236e088c0e
|
/moviebuffs-api/src/main/java/com/sivalabs/moviebuffs/importer/model/MovieCsvRecord.java
|
ce19d76449372c149e3185282686b8c1b9905d0c
|
[] |
no_license
|
purnachand99/moviebuffs
|
4a1c624e3114a472674eb6e026f9869bf7f50c09
|
fa7d4829dd6a35481f973472060bbd063895e0d8
|
refs/heads/master
| 2021-03-23T23:07:01.529257
| 2020-03-09T03:38:55
| 2020-03-09T04:25:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 874
|
java
|
package com.sivalabs.moviebuffs.importer.model;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
public class MovieCsvRecord {
private String adult;
private String belongsToCollection;
private String budget;
private String genres;
private String homepage;
private String id;
private String imdbId;
private String originalLanguage;
private String originalTitle;
private String overview;
private String popularity;
private String posterPath;
private String productionCompanies;
private String productionCountries;
private String releaseDate;
private String revenue;
private String runtime;
private String spokenLanguages;
private String status;
private String tagline;
private String title;
private String video;
private String voteAverage;
private String voteCount;
}
|
[
"sivaprasadreddy.k@gmail.com"
] |
sivaprasadreddy.k@gmail.com
|
6ae9ee14bb7352e8204c63971b2b36b64c695b70
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-13546-1-12-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/xwiki/model/reference/EntityReference_ESTest.java
|
01556455b377e941888fec7cf502645875fae13b
|
[] |
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
| 890
|
java
|
/*
* This file was automatically generated by EvoSuite
* Sun Apr 05 15:34:09 UTC 2020
*/
package org.xwiki.model.reference;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
import org.xwiki.model.EntityType;
import org.xwiki.model.reference.EntityReference;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class EntityReference_ESTest extends EntityReference_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
EntityType entityType0 = EntityType.DOCUMENT;
EntityReference entityReference0 = new EntityReference("`Rv", entityType0);
// Undeclared exception!
entityReference0.setName((String) null);
}
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
febf7a0231c26ae709d9406711051a59e1a543b6
|
9371ae6ec24ad4b9914a43e64befb915d71e34f2
|
/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/android/widget/ZoomButton.java
|
b33653e2a252d2c709e2b79bd7c0b7e7e8521860
|
[] |
no_license
|
kanaida/LG-Esteem-Homeless-Kernel
|
9fac4c52993798eaf3021d9abb72a5e697464398
|
a5780f82bef7631fdb43b079e6f9ea6dbd187ac7
|
refs/heads/master
| 2020-06-09T06:14:50.214296
| 2012-02-24T04:23:01
| 2012-02-24T04:23:01
| 3,532,548
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,296
|
java
|
package android.widget;
public class ZoomButton
extends android.widget.ImageButton
implements android.view.View.OnLongClickListener
{
public ZoomButton(android.content.Context context) { super((android.content.Context)null,(android.util.AttributeSet)null,0); throw new RuntimeException("Stub!"); }
public ZoomButton(android.content.Context context, android.util.AttributeSet attrs) { super((android.content.Context)null,(android.util.AttributeSet)null,0); throw new RuntimeException("Stub!"); }
public ZoomButton(android.content.Context context, android.util.AttributeSet attrs, int defStyle) { super((android.content.Context)null,(android.util.AttributeSet)null,0); throw new RuntimeException("Stub!"); }
public boolean onTouchEvent(android.view.MotionEvent event) { throw new RuntimeException("Stub!"); }
public void setZoomSpeed(long speed) { throw new RuntimeException("Stub!"); }
public boolean onLongClick(android.view.View v) { throw new RuntimeException("Stub!"); }
public boolean onKeyUp(int keyCode, android.view.KeyEvent event) { throw new RuntimeException("Stub!"); }
public void setEnabled(boolean enabled) { throw new RuntimeException("Stub!"); }
public boolean dispatchUnhandledMove(android.view.View focused, int direction) { throw new RuntimeException("Stub!"); }
}
|
[
"kanaida.bat@gmail.com"
] |
kanaida.bat@gmail.com
|
27f2d95d38bd6c706feaa5008184beea6d5cf3e4
|
4764a9f6ed8c9cd6b01b829af7e9fe1c71897a45
|
/src/main/java/com/mmtechy/commerce/domain/Vente.java
|
228013ef963aeffcd71bcfc3fdd07429eeed7b05
|
[] |
no_license
|
mouradxmt/MyCommerce
|
577e595d77026eb96444599b16efb1c9b7b62cbc
|
2e345ae66c5449d232479709c1b1926ce5883b6e
|
refs/heads/main
| 2023-04-14T05:10:57.772376
| 2021-04-10T21:56:01
| 2021-04-10T21:56:01
| 356,703,473
| 1
| 0
| null | 2021-04-10T21:56:02
| 2021-04-10T21:51:54
|
Java
|
UTF-8
|
Java
| false
| false
| 4,633
|
java
|
package com.mmtechy.commerce.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.*;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
/**
* A Vente.
*/
@Entity
@Table(name = "vente")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Vente implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "date_vente")
private LocalDate dateVente;
@Column(name = "nom_revendeur")
private String nomRevendeur;
@Column(name = "mode_paiement")
private String modePaiement;
@Column(name = "montant_vente")
private Double montantVente;
@ManyToOne
@JsonIgnoreProperties(value = { "ventes" }, allowSetters = true)
private Client client;
@OneToMany(mappedBy = "vente")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@JsonIgnoreProperties(value = { "vente" }, allowSetters = true)
private Set<Produit> produits = new HashSet<>();
// jhipster-needle-entity-add-field - JHipster will add fields here
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Vente id(Long id) {
this.id = id;
return this;
}
public LocalDate getDateVente() {
return this.dateVente;
}
public Vente dateVente(LocalDate dateVente) {
this.dateVente = dateVente;
return this;
}
public void setDateVente(LocalDate dateVente) {
this.dateVente = dateVente;
}
public String getNomRevendeur() {
return this.nomRevendeur;
}
public Vente nomRevendeur(String nomRevendeur) {
this.nomRevendeur = nomRevendeur;
return this;
}
public void setNomRevendeur(String nomRevendeur) {
this.nomRevendeur = nomRevendeur;
}
public String getModePaiement() {
return this.modePaiement;
}
public Vente modePaiement(String modePaiement) {
this.modePaiement = modePaiement;
return this;
}
public void setModePaiement(String modePaiement) {
this.modePaiement = modePaiement;
}
public Double getMontantVente() {
return this.montantVente;
}
public Vente montantVente(Double montantVente) {
this.montantVente = montantVente;
return this;
}
public void setMontantVente(Double montantVente) {
this.montantVente = montantVente;
}
public Client getClient() {
return this.client;
}
public Vente client(Client client) {
this.setClient(client);
return this;
}
public void setClient(Client client) {
this.client = client;
}
public Set<Produit> getProduits() {
return this.produits;
}
public Vente produits(Set<Produit> produits) {
this.setProduits(produits);
return this;
}
public Vente addProduit(Produit produit) {
this.produits.add(produit);
produit.setVente(this);
return this;
}
public Vente removeProduit(Produit produit) {
this.produits.remove(produit);
produit.setVente(null);
return this;
}
public void setProduits(Set<Produit> produits) {
if (this.produits != null) {
this.produits.forEach(i -> i.setVente(null));
}
if (produits != null) {
produits.forEach(i -> i.setVente(this));
}
this.produits = produits;
}
// jhipster-needle-entity-add-getters-setters - JHipster will add getters and setters here
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof Vente)) {
return false;
}
return id != null && id.equals(((Vente) o).id);
}
@Override
public int hashCode() {
// see https://vladmihalcea.com/how-to-implement-equals-and-hashcode-using-the-jpa-entity-identifier/
return getClass().hashCode();
}
// prettier-ignore
@Override
public String toString() {
return "Vente{" +
"id=" + getId() +
", dateVente='" + getDateVente() + "'" +
", nomRevendeur='" + getNomRevendeur() + "'" +
", modePaiement='" + getModePaiement() + "'" +
", montantVente=" + getMontantVente() +
"}";
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
0f39952540a24ed9e6499047c7f4cabf9f5fc0c0
|
255ff79057c0ff14d0b760fc2d6da1165f1806c8
|
/02JavaStep02/01java进阶13天资料/day09-方法引用, Stream流,File类 , 递归 ,字节流/homework/01.File,递归作业和答案/day09_Homework/src/com/itheima/test01/Test01_05.java
|
b4c0931d73fd7bf6e176d5b12e736165f2bacfbe
|
[] |
no_license
|
wjphappy90/Resource
|
7f1f817d323db5adae06d26da17dfc09ee5f9d3a
|
6574c8399f3cdfb6d6b39cd64dc9507e784a2549
|
refs/heads/master
| 2022-07-30T03:33:59.869345
| 2020-08-10T02:31:35
| 2020-08-10T02:31:35
| 285,701,650
| 2
| 6
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 515
|
java
|
package com.itheima.test01;
import java.io.File;
import java.io.IOException;
/**
* @author pkxing
* @version 1.0
* @Package com.itheima.test01
* @date 2018/5/4 上午10:43
*/
public class Test01_05 {
public static void main(String[] args) throws IOException {
// 创建文件对象
File f = new File("c:/a.txt");
// 删除文件
f.delete();
// 创建文件夹对象
File dir = new File("c:/aaa");
// 删除文件夹
dir.delete();
}
}
|
[
"981146457@qq.com"
] |
981146457@qq.com
|
8da874047fed2f871fbe849eaf5df54cadd08669
|
9e64d53b69c90e582fd8d8d79fb8a7e7dc93fb17
|
/ch.rgw.utility/src/ch/rgw/tools/Tree.java
|
d3c83560572af87d08eaeb6176d7a3734fdcff19
|
[] |
no_license
|
jsigle/elexis-base
|
e89e277516f2eb94d870f399266560700820dcc5
|
fbda2efb49220b61ef81da58c1fa4b68c28bbcd4
|
refs/heads/master
| 2021-01-17T00:08:29.782414
| 2013-05-05T18:12:15
| 2013-05-05T18:12:15
| 6,995,370
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,004
|
java
|
/*******************************************************************************
* Copyright (c) 2005-2009, G. Weirich and Elexis
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* G. Weirich - initial implementation
*
* $Id: Tree.java 5022 2009-01-23 16:34:27Z rgw_ch $
*******************************************************************************/
package ch.rgw.tools;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
/**
* Eine Baumförmige rekursive Datenstruktur. Ein Tree ist gleicheitig ein node. Ein Tree hat
* children (die allerdings auch null sein können) und Geschwister, (die ebenfalls null sein
* können), sowie ein Parent, welches ebenfalls null sein kann (dann ist dieses Tree-Objekt die
* Wurzel des Baums) Jeder Tree trägt ein beliebiges Datenobjekt (contents).
*/
public class Tree<T> {
public IFilter filter;
protected Tree<T> parent;
protected Tree<T> first;
protected Tree<T> next;
// protected Tree<T> last;
public T contents;
/**
* Eine neues Tree-Objekt erstellen
*
* @param p
* der Parent, oder null, wenn dies die Wurzel werden soll.
* @param elem
* das zugeordnete Datenobjekt
*/
public Tree(Tree<T> p, T elem){
contents = elem;
parent = p;
first = null;
// last=null;
filter = null;
if (parent != null) {
next = parent.first;
parent.first = this;
}
}
/**
* Ein neues Tree-Objekt innerhalb der Geschwisterliste sortiert einfügen
*
* @param parent
* Parent
* @param elem
* Datenobjekt
* @param comp
* Ein Comparator für das Fatenobjekt
*/
public Tree(Tree<T> parent, T elem, Comparator<T> comp){
this.parent = parent;
contents = elem;
if (parent != null) {
next = parent.first;
Tree<T> prev = null;
while ((next != null) && (comp.compare(next.contents, elem) < 0)) {
prev = next;
next = next.next;
}
if (prev == null) {
parent.first = this;
} else {
prev.next = this;
}
}
}
/**
* Ein neues Tree-Objekt mit einem Filter erstellen. Wenn ein Filter gesetzt wird, dann werden
* von getChildren() nur die geliefert, die dem Filter entsprechen
*
* @param p
* Parent-Element
* @param elem
* Datenobjekt
* @param f
* Filter
*/
public Tree(Tree<T> p, T elem, IFilter f){
this(p, elem);
filter = f;
}
/**
* Filter nachträglich setzen. Der Filter wird für dieses und alle Children gesetzt.
*
* @param f
* der Filter
*/
public void setFilter(IFilter f){
filter = f;
Tree<T> cursor = first;
while (cursor != null) {
cursor.setFilter(f);
cursor = cursor.next;
}
}
/**
* Ein Datenobjekt als Kind-element zufügen. Dies (Das Datenobjekt wird implizit in ein
* Tree-Objekt gepackt. obj.add(t) ist dasselbe wie new Tree(obj,t))
*
* @param elem
* Das Datenobjekt
* @return das erzeugte Tree-Objekt
*/
public Tree<T> add(T elem){
Tree<T> ret = new Tree<T>(this, elem, filter);
return ret;
}
/**
* Ein Kind-Element samt dessen Unterelementen entfernen
*
* @param subtree
* das Kindelement
*/
public void remove(Tree<T> subtree){
if (first == null) {
return;
}
if (first.equals(subtree)) {
first = subtree.next;
return;
}
Tree<T> runner = first;
while (!runner.next.equals(subtree)) {
runner = runner.next;
if (runner == null) {
return;
}
}
runner.next = subtree.next;
}
/**
* An einen anderen Parenet-Node oder Tree zügeln (Mitsamt allen Kindern)
*
* @param newParent
* der neue Elter
*/
public synchronized Tree<T> move(Tree<T> newParent){
Tree<T> oldParent = parent;
if (oldParent != null) {
oldParent.remove(this);
}
parent = newParent;
next = newParent.first;
newParent.first = this;
return this;
}
/**
* Ähnlich wie add, aber wenn das übergebene Child schon existiert, werden nur dessen Kinder mit
* den Kindern des existenten childs ge'merged' (Also im Prinzip ein add mit Vermeidung von
* Dubletten
*/
public synchronized void merge(Tree<T> newChild){
Tree<T> tExist = find(newChild.contents, false);
if (tExist != null) {
for (Tree<T> ts = newChild.first; ts != null; ts = ts.next) {
tExist.merge(ts);
}
if (newChild.first == null) {
newChild.getParent().remove(newChild);
}
} else {
newChild.move(this);
}
}
/**
* Alle Kind-Elemente entfernen
*
*/
@SuppressWarnings("unchecked")//$NON-NLS-1$
public synchronized void clear(){
for (Tree t : getChildren()) {
remove(t);
}
}
/**
* Alle Kind-Elemente liefern
*
* @return eine Collection mit den Kind-Trees
*/
public Collection<Tree<T>> getChildren(){
ArrayList<Tree<T>> al = new ArrayList<Tree<T>>();
Tree<T> cursor = first;
while (cursor != null) {
if (filter == null) {
al.add(cursor);
} else {
if (filter.select(cursor.contents) || cursor.hasChildren()) {
al.add(cursor);
}
}
cursor = cursor.next;
}
return al;
}
/**
* Das Elternobjekt liefern
*
* @return das parent
*/
public Tree<T> getParent(){
return parent;
}
/**
* Erstes Kind-element liefern. Null, wenn keine Kinder. Dies macht im Gegensatz zu
* hasChildren() keine synchronisation!
*
* @return
*/
public Tree<T> getFirstChild(){
return first;
}
/**
* Nächstes Geschwister liefern oder null wenn keine mehr da sind. getParent().getFirstChild()
* liefert den Start der Geschwisterliste.
*
* @return
*/
public Tree<T> getNextSibling(){
return next;
}
/**
* Fragen, ob Kinder vorhanden sind
*
* @return true wenn dieses Objekt Children hat.
*/
public boolean hasChildren(){
if (filter == null) {
return (first != null);
}
Tree<T> cursor = first;
while (cursor != null) {
if (filter.select(cursor.contents) || cursor.hasChildren()) {
return true;
}
cursor = cursor.next;
}
return false;
}
/**
* Ein Array mit allen Elementen des Baums liefern
*
* @return
*/
@SuppressWarnings("unchecked")//$NON-NLS-1$
public Tree<T>[] toArray(){
return (Tree<T>[]) getAll().toArray();
}
/**
* Eine Liste mit allen Elementen des Baums liefern
*
* @return
*/
public Collection<Tree<T>> getAll(){
ArrayList<Tree<T>> al = new ArrayList<Tree<T>>();
Tree<T> child = first;
while (child != null) {
al.add(child);
al.addAll(child.getAll());
child = child.next;
}
return al;
}
public Tree<T> find(Object o, boolean deep){
for (Tree<T> t : getChildren()) {
if (t.contents.equals(o)) {
return t;
}
if (deep) {
Tree<T> ct = t.find(o, true);
if (ct != null) {
return ct;
}
}
}
return null;
}
}
|
[
"jsigle@think3.sc.de"
] |
jsigle@think3.sc.de
|
e7d08009bd658852feeaa6755fbf67dcf00a7d73
|
3ef55e152decb43bdd90e3de821ffea1a2ec8f75
|
/large/module1613_public/tests/unittests/src/java/module1613_public_tests_unittests/a/Foo1.java
|
04609ea13c2344302f33ea52d9fd55e16f19c188
|
[
"BSD-3-Clause"
] |
permissive
|
salesforce/bazel-ls-demo-project
|
5cc6ef749d65d6626080f3a94239b6a509ef145a
|
948ed278f87338edd7e40af68b8690ae4f73ebf0
|
refs/heads/master
| 2023-06-24T08:06:06.084651
| 2023-03-14T11:54:29
| 2023-03-14T11:54:29
| 241,489,944
| 0
| 5
|
BSD-3-Clause
| 2023-03-27T11:28:14
| 2020-02-18T23:30:47
|
Java
|
UTF-8
|
Java
| false
| false
| 1,704
|
java
|
package module1613_public_tests_unittests.a;
import javax.lang.model.*;
import javax.management.*;
import javax.naming.directory.*;
/**
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
* labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
* Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
*
* @see java.nio.file.FileStore
* @see java.sql.Array
* @see java.util.logging.Filter
*/
@SuppressWarnings("all")
public abstract class Foo1<L> extends module1613_public_tests_unittests.a.Foo0<L> implements module1613_public_tests_unittests.a.IFoo1<L> {
java.util.zip.Deflater f0 = null;
javax.annotation.processing.Completion f1 = null;
javax.lang.model.AnnotatedConstruct f2 = null;
public L element;
public static Foo1 instance;
public static Foo1 getInstance() {
return instance;
}
public static <T> T create(java.util.List<T> input) {
return module1613_public_tests_unittests.a.Foo0.create(input);
}
public String getName() {
return module1613_public_tests_unittests.a.Foo0.getInstance().getName();
}
public void setName(String string) {
module1613_public_tests_unittests.a.Foo0.getInstance().setName(getName());
return;
}
public L get() {
return (L)module1613_public_tests_unittests.a.Foo0.getInstance().get();
}
public void set(Object element) {
this.element = (L)element;
module1613_public_tests_unittests.a.Foo0.getInstance().set(this.element);
}
public L call() throws Exception {
return (L)module1613_public_tests_unittests.a.Foo0.getInstance().call();
}
}
|
[
"gwagenknecht@salesforce.com"
] |
gwagenknecht@salesforce.com
|
d865c1c4a5129f78bc0333db99df3865ad11c9d1
|
3374f62c624c1e133ffcdd340713a50303cb7c6d
|
/core/applib/src/main/java/org/apache/isis/applib/annotation/DomainService.java
|
9f9d33782d316c85e8d978250aecd3b6041458bf
|
[
"Apache-2.0"
] |
permissive
|
DalavanCloud/isis
|
83b6d6437a3ca3b7e0442ed1b8b5dbc3ae67ef1e
|
2af2ef3e2edcb807d742f089839e0571d8132bd9
|
refs/heads/master
| 2020-04-29T10:08:49.816838
| 2019-02-11T23:35:56
| 2019-02-11T23:35:56
| 176,051,163
| 1
| 0
|
Apache-2.0
| 2019-03-17T03:19:31
| 2019-03-17T03:19:31
| null |
UTF-8
|
Java
| false
| false
| 3,053
|
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.isis.applib.annotation;
import java.lang.annotation.*;
/**
* Indicates that the class should be automatically recognized as a domain service.
*
* <p>
* Also indicates whether the domain service acts as a repository for an entity, and menu ordering UI hints.
* </p>
*/
@Inherited
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
public @interface DomainService {
/**
* Provides the (first part of the) unique identifier (OID) for the service (the instanceId is always "1").
*
* <p>
* If not specified then either the optional "getId()" is used, otherwise the class' name.
*/
String objectType() default "";
/**
* If this domain service acts as a repository for an entity type, specify that entity type.
*/
Class<?> repositoryFor() default Object.class;
/**
* The nature of this service, eg for menus, contributed actions, repository.
*/
NatureOfService nature() default NatureOfService.VIEW;
/**
* Number in Dewey Decimal format representing the order.
*
* <p>
* Same convention as {@link MemberOrder#sequence()}. If not specified, placed after any named.
* </p>
*
* <p>
* Either this attribute or {@link DomainServiceLayout#menuOrder()} can be used; they are equivalent.
* Typically this attribute is used for services with a {@link #nature() nature} of
* {@link NatureOfService#DOMAIN domain} (these are not visible in the UI) whereas
* {@link DomainServiceLayout#menuOrder()} is used for services with a nature of
* {@link NatureOfService#VIEW_MENU_ONLY} (which do appear in the UI)
* </p>
*
* <p>
* The default value is set to "Integer.MAX_VALUE - 100" so that any domain services intended to override the
* default implementations provided by the framework itself will do so without having to specify the
* menuOrder (with the exception of <tt>EventBusServiceJdo</tt>, all framework implementations have a
* default order greater than Integer.MAX_VALUE - 50).
* </p>
*/
String menuOrder() default Constants.MENU_ORDER_DEFAULT ;
}
|
[
"dan@haywood-associates.co.uk"
] |
dan@haywood-associates.co.uk
|
72c5f8b1642a3f9134dc93afa061e73d3340e4df
|
48e257621587490b1c54a935543c29897ef3f71b
|
/core/src/test/java/galdr/spy/CollectionDisposeStartEventTest.java
|
2fcbcf0e1b24fb79b3326b3083a6eceafb7ea78f
|
[
"Apache-2.0"
] |
permissive
|
realityforge/galdr
|
4719044471acb14cbe42bddf5cc22a7b69230952
|
185c07dcb2aa71f716d3fcaf55517ea9e41eade9
|
refs/heads/master
| 2022-05-16T11:01:48.109987
| 2022-04-29T08:16:11
| 2022-04-29T08:16:11
| 207,789,524
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,137
|
java
|
package galdr.spy;
import galdr.AbstractTest;
import galdr.AreaOfInterest;
import galdr.World;
import galdr.Worlds;
import java.util.Collections;
import java.util.HashMap;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
public class CollectionDisposeStartEventTest
extends AbstractTest
{
private static class Health
{
}
@Test
public void basicOperation()
{
final World world = Worlds.world().component( Health.class ).build();
final AreaOfInterest areaOfInterest = world.createAreaOfInterest( Collections.singletonList( Health.class ) );
run( world, () -> world.createSubscription( areaOfInterest ) );
final CollectionInfo info = world.getSpy().getCollections().get( areaOfInterest );
final CollectionDisposeStartEvent event = new CollectionDisposeStartEvent( info );
assertEquals( event.getCollection(), info );
final HashMap<String, Object> data = new HashMap<>();
event.toMap( data );
assertEquals( data.get( "type" ), "CollectionDisposeStart" );
assertEquals( data.get( "areaOfInterest" ), areaOfInterest );
assertEquals( data.size(), 2 );
}
}
|
[
"peter@realityforge.org"
] |
peter@realityforge.org
|
88d16a6802abe37f15b00d67640cea4fa12e71c6
|
d33d87e133d8d2581f938286e7786c82619e5129
|
/garakuta/src/main/java/security/Length.java
|
e911d0bd3c12dfd14404940c8b959a3230a33bce
|
[
"MIT"
] |
permissive
|
ARK2022020/sandbox
|
de6fbea3f3ab5d94783c66bed974e40f584aeb47
|
6d952b3e3942cbe8aec1d2053b61dee313ea17ad
|
refs/heads/master
| 2023-04-06T06:03:46.568913
| 2021-04-14T21:56:02
| 2021-04-14T21:56:02
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,512
|
java
|
package security;
import java.math.BigInteger;
public class Length {
enum Status {
INT, LONG, BIGINT
}
private static final int INT_MAX = Integer.MAX_VALUE - 8;
private static final long LONG_MAX = Long.MAX_VALUE - 8L;
int iValue;
long lValue;
BigInteger biValue;
Status status = Status.INT;
private final int size;
public Length(final int size) {
this.size = size;
}
public void increment() {
switch (status) {
case INT: {
if (iValue > INT_MAX) {
lValue = iValue;
status = Status.LONG;
increment();
return;
}
iValue += 8;
return;
}
case LONG: {
if (lValue > LONG_MAX) {
biValue = BigInteger.valueOf(lValue);
status = Status.BIGINT;
increment();
return;
}
lValue += 8L;
return;
}
case BIGINT: {
biValue = biValue.add(BigInteger.valueOf(8));
return;
}
}
throw new IllegalStateException();
}
private byte getByte(final int index) {
switch (status) {
case INT: {
if (index < 4) {
return (byte) (iValue >> (8 * index));
}
return 0;
}
case LONG: {
if (index < 8) {
return (byte) (lValue >> (8L * index));
}
return 0;
}
case BIGINT: {
return biValue.shiftRight(8 * index).byteValue();
}
}
throw new IllegalStateException();
}
public void writeTo(final byte[] out, final int index) {
for (int i = 0; i < size; i++) {
out[index + i] = getByte(size - 1 - i);
}
}
}
|
[
"backpaper0@gmail.com"
] |
backpaper0@gmail.com
|
135bec82072c52ee3b8069a341a2501979fcadbc
|
0bf61ea236b6535324b73ae5885a0d301334a263
|
/data-provider-simulator/provider-service/src/main/java/com/finaxys/finaxysplatform/dataprovidersimulator/service/impl/IndexServiceImpl.java
|
1f2097a479670082b22351492046020b8d65721f
|
[] |
no_license
|
jhonygo/finaxys-platform
|
e060dcaaaa1736be3cbf3dbb8eacee390e404b57
|
14df271a48e9377ca916a22d48a564349368f51a
|
refs/heads/master
| 2021-01-16T22:01:22.299792
| 2014-08-20T15:51:29
| 2014-08-20T15:51:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 589
|
java
|
/*
*
*/
package com.finaxys.finaxysplatform.dataprovidersimulator.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import com.finaxys.finaxysplatform.core.domain.Index;
import com.finaxys.finaxysplatform.dataprovidersimulator.dao.IndexDao;
import com.finaxys.finaxysplatform.dataprovidersimulator.service.IndexService;
// TODO: Auto-generated Javadoc
/**
* The Class IndexInfoServiceImpl.
*/
public class IndexServiceImpl implements IndexService{
@Autowired
private IndexDao dao;
@Override
public void add(Index index) {
dao.add(index);
}
}
|
[
"="
] |
=
|
2ed2d2489b5c73d4c5fd3aca015c754b91f7e497
|
60dde56a288db420021be82d53231f9d04baa6d9
|
/core/src/ua/gram/view/AbstractLoadingScreen.java
|
3c45a02a183d069490b287e1e75e0995563e0a6f
|
[] |
no_license
|
chenbing8512/DivineDefense
|
c6aa16621d2fe3394676ab6fc3e2bedceda9fda3
|
f6a78ac19a02c86c360364a3d604dd85e0c36434
|
refs/heads/master
| 2020-12-28T20:19:27.518021
| 2016-05-01T09:54:35
| 2016-05-01T09:54:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,497
|
java
|
package ua.gram.view;
import ua.gram.DDGame;
import ua.gram.controller.stage.LoadingStage;
import ua.gram.utils.Log;
import ua.gram.view.screen.ErrorScreen;
import ua.gram.view.screen.MainMenuScreen;
/**
* LevelScreen handles resource loading invocation.
* In 'show' you specify resources to be loaded.
* In 'onLoad' you specify program logic that will be executed
*/
public abstract class AbstractLoadingScreen extends AbstractScreen {
protected LoadingStage loadingStage;
protected int progress;
public AbstractLoadingScreen(DDGame game) {
super(game);
}
@Override
public void show() {
super.show();
loadingStage = new LoadingStage(game);
}
@Override
public void renderAlways(float delta) {
progress = (int) game.getAssetManager().getProgress() * 100;
loadingStage.update(progress);
loadingStage.act(delta);
loadingStage.draw();
if (game.getAssetManager().update()) {
try {
onLoad();
} catch (Exception e) {
game.setScreen(new ErrorScreen(game, "Error at loading", e));
}
}
}
@Override
public void renderNoPause(float delta) {
}
public void onLoad() {
loadingStage.update(progress);
Log.info("Loading " + progress + "%");
game.setScreen(new MainMenuScreen(game));
}
@Override
public void hide() {
super.hide();
progress = 0;
}
}
|
[
"gram7gram@gmail.com"
] |
gram7gram@gmail.com
|
ccf871926497409e0a58f3a3cf73ca075bf36609
|
e0c033f3067fa0f17dd7ccadd072db341dd1c901
|
/pascals-triangle/src/test/java/PascalsTriangleGeneratorTest.java
|
1bd94a47fd72ec5bf560f6fc25f41a3d511caa92
|
[] |
no_license
|
krnets/exercism-java
|
a45e9bd111563c33afdd034d73375644429bf1fc
|
a00e09912dce9a63719839885006cc2d6306b774
|
refs/heads/master
| 2023-01-13T04:08:41.804704
| 2020-11-17T23:19:34
| 2020-11-17T23:19:34
| 299,140,253
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,798
|
java
|
import org.junit.Test;
import static org.junit.Assert.assertArrayEquals;
public class PascalsTriangleGeneratorTest {
private PascalsTriangleGenerator pascalsTriangleGenerator =
new PascalsTriangleGenerator();
@Test
public void testTriangleWithZeroRows() {
int[][] expectedOutput = new int[][]{};
assertArrayEquals(expectedOutput, pascalsTriangleGenerator.generateTriangle(0));
}
@Test
public void testTriangleWithOneRow() {
int[][] expectedOutput = new int[][]{
{1}
};
assertArrayEquals(expectedOutput, pascalsTriangleGenerator.generateTriangle(1));
}
@Test
public void testTriangleWithTwoRows() {
int[][] expectedOutput = new int[][]{
{1},
{1, 1}
};
assertArrayEquals(expectedOutput, pascalsTriangleGenerator.generateTriangle(2));
}
@Test
public void testTriangleWithThreeRows() {
int[][] expectedOutput = new int[][]{
{1},
{1, 1},
{1, 2, 1}
};
assertArrayEquals(expectedOutput, pascalsTriangleGenerator.generateTriangle(3));
}
@Test
public void testTriangleWithFourRows() {
int[][] expectedOutput = new int[][]{
{1},
{1, 1},
{1, 2, 1},
{1, 3, 3, 1}
};
assertArrayEquals(expectedOutput, pascalsTriangleGenerator.generateTriangle(4));
}
@Test
public void testTriangleWithFiveRows() {
int[][] expectedOutput = new int[][]{
{1},
{1, 1},
{1, 2, 1},
{1, 3, 3, 1},
{1, 4, 6, 4, 1}
};
assertArrayEquals(expectedOutput, pascalsTriangleGenerator.generateTriangle(5));
}
@Test
public void testTriangleWithSixRows() {
int[][] expectedOutput = new int[][]{
{1},
{1, 1},
{1, 2, 1},
{1, 3, 3, 1},
{1, 4, 6, 4, 1},
{1, 5, 10, 10, 5, 1}
};
assertArrayEquals(expectedOutput, pascalsTriangleGenerator.generateTriangle(6));
}
@Test
public void testTriangleWithTenRows() {
int[][] expectedOutput = new int[][]{
{1},
{1, 1},
{1, 2, 1},
{1, 3, 3, 1},
{1, 4, 6, 4, 1},
{1, 5, 10, 10, 5, 1},
{1, 6, 15, 20, 15, 6, 1},
{1, 7, 21, 35, 35, 21, 7, 1},
{1, 8, 28, 56, 70, 56, 28, 8, 1},
{1, 9, 36, 84, 126, 126, 84, 36, 9, 1}
};
assertArrayEquals(expectedOutput, pascalsTriangleGenerator.generateTriangle(10));
}
}
|
[
"cmantheo@gmail.com"
] |
cmantheo@gmail.com
|
6fa721f5b150558998a4ab9984db334fa39780ec
|
3ed18d25cc3596eb1e96b4f3bdd3225ed74311dc
|
/src/main/java/io/github/nucleuspowered/nucleus/modules/kit/commands/kit/KitResetUsageCommand.java
|
a1d11795700d9642771c280a9f5dfb5ef6851a95
|
[
"MIT",
"Apache-2.0"
] |
permissive
|
Tollainmear/Nucleus
|
ab197b89b4465aaa9121a8d92174ab7c58df3568
|
dfd88cb3b2ab6923548518765a712c190259557b
|
refs/heads/sponge-api/7
| 2021-01-25T15:04:23.678553
| 2018-08-19T14:03:46
| 2018-08-19T14:03:46
| 123,745,847
| 0
| 3
|
MIT
| 2018-10-08T05:55:23
| 2018-03-04T01:19:42
|
Java
|
UTF-8
|
Java
| false
| false
| 2,854
|
java
|
/*
* This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file
* at the root of this project for more details.
*/
package io.github.nucleuspowered.nucleus.modules.kit.commands.kit;
import io.github.nucleuspowered.nucleus.Nucleus;
import io.github.nucleuspowered.nucleus.Util;
import io.github.nucleuspowered.nucleus.api.nucleusdata.Kit;
import io.github.nucleuspowered.nucleus.internal.annotations.RunAsync;
import io.github.nucleuspowered.nucleus.internal.annotations.command.NoModifiers;
import io.github.nucleuspowered.nucleus.internal.annotations.command.Permissions;
import io.github.nucleuspowered.nucleus.internal.annotations.command.RegisterCommand;
import io.github.nucleuspowered.nucleus.internal.command.NucleusParameters;
import io.github.nucleuspowered.nucleus.internal.command.ReturnMessageException;
import io.github.nucleuspowered.nucleus.internal.permissions.SuggestedLevel;
import io.github.nucleuspowered.nucleus.modules.kit.commands.KitFallbackBase;
import io.github.nucleuspowered.nucleus.modules.kit.datamodules.KitUserDataModule;
import org.spongepowered.api.command.CommandResult;
import org.spongepowered.api.command.CommandSource;
import org.spongepowered.api.command.args.CommandContext;
import org.spongepowered.api.command.args.CommandElement;
import org.spongepowered.api.entity.living.player.User;
import org.spongepowered.api.util.annotation.NonnullByDefault;
@Permissions(prefix = "kit", suggestedLevel = SuggestedLevel.ADMIN)
@RegisterCommand(value = {"resetusage", "reset"}, subcommandOf = KitCommand.class)
@RunAsync
@NonnullByDefault
@NoModifiers
public class KitResetUsageCommand extends KitFallbackBase<CommandSource> {
@Override
public CommandElement[] getArguments() {
return new CommandElement[] {
NucleusParameters.ONE_USER,
KitFallbackBase.KIT_PARAMETER_NO_PERM_CHECK
};
}
@Override
public CommandResult executeCommand(final CommandSource player, CommandContext args) throws Exception {
Kit kitInfo = args.<Kit>getOne(KIT_PARAMETER_KEY).get();
User u = args.<User>getOne(NucleusParameters.Keys.USER).get();
KitUserDataModule inu = Nucleus.getNucleus().getUserDataManager().getUnchecked(u).get(KitUserDataModule.class);
if (Util.getKeyIgnoreCase(inu.getKitLastUsedTime(), kitInfo.getName()).isPresent()) {
// Remove the key.
inu.removeKitLastUsedTime(kitInfo.getName().toLowerCase());
player.sendMessage(
Nucleus.getNucleus().getMessageProvider().getTextMessageWithFormat("command.kit.resetuser.success", u.getName(), kitInfo.getName()));
return CommandResult.success();
}
throw ReturnMessageException.fromKey("command.kit.resetuser.empty", u.getName(), kitInfo.getName());
}
}
|
[
"git@drnaylor.co.uk"
] |
git@drnaylor.co.uk
|
ffe8bf0a7726a25287fc0a30bc4b2ee17328bac6
|
3ec2d2bbb52abaa28af294dba911d225fa7d2d48
|
/src/main/java/vn/vpay/web/rest/WalletRuleResource.java
|
2f165eb42080ef139712f9663b1fcce28e0c0ef3
|
[] |
no_license
|
tkmd123/vpay03
|
faf4621ff18b5772bda4fa9d77d6eeef5a68d3c9
|
25282fb4f14a367698552eab0329984ff8439711
|
refs/heads/master
| 2020-04-04T16:22:08.492262
| 2018-11-04T11:43:51
| 2018-11-04T11:43:51
| 156,074,755
| 0
| 0
| null | 2018-11-05T04:13:43
| 2018-11-04T11:23:15
|
Java
|
UTF-8
|
Java
| false
| false
| 5,240
|
java
|
package vn.vpay.web.rest;
import com.codahale.metrics.annotation.Timed;
import vn.vpay.domain.WalletRule;
import vn.vpay.repository.WalletRuleRepository;
import vn.vpay.web.rest.errors.BadRequestAlertException;
import vn.vpay.web.rest.util.HeaderUtil;
import vn.vpay.web.rest.util.PaginationUtil;
import io.github.jhipster.web.util.ResponseUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.List;
import java.util.Optional;
/**
* REST controller for managing WalletRule.
*/
@RestController
@RequestMapping("/api")
public class WalletRuleResource {
private final Logger log = LoggerFactory.getLogger(WalletRuleResource.class);
private static final String ENTITY_NAME = "walletRule";
private final WalletRuleRepository walletRuleRepository;
public WalletRuleResource(WalletRuleRepository walletRuleRepository) {
this.walletRuleRepository = walletRuleRepository;
}
/**
* POST /wallet-rules : Create a new walletRule.
*
* @param walletRule the walletRule to create
* @return the ResponseEntity with status 201 (Created) and with body the new walletRule, or with status 400 (Bad Request) if the walletRule has already an ID
* @throws URISyntaxException if the Location URI syntax is incorrect
*/
@PostMapping("/wallet-rules")
@Timed
public ResponseEntity<WalletRule> createWalletRule(@Valid @RequestBody WalletRule walletRule) throws URISyntaxException {
log.debug("REST request to save WalletRule : {}", walletRule);
if (walletRule.getId() != null) {
throw new BadRequestAlertException("A new walletRule cannot already have an ID", ENTITY_NAME, "idexists");
}
WalletRule result = walletRuleRepository.save(walletRule);
return ResponseEntity.created(new URI("/api/wallet-rules/" + result.getId()))
.headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))
.body(result);
}
/**
* PUT /wallet-rules : Updates an existing walletRule.
*
* @param walletRule the walletRule to update
* @return the ResponseEntity with status 200 (OK) and with body the updated walletRule,
* or with status 400 (Bad Request) if the walletRule is not valid,
* or with status 500 (Internal Server Error) if the walletRule couldn't be updated
* @throws URISyntaxException if the Location URI syntax is incorrect
*/
@PutMapping("/wallet-rules")
@Timed
public ResponseEntity<WalletRule> updateWalletRule(@Valid @RequestBody WalletRule walletRule) throws URISyntaxException {
log.debug("REST request to update WalletRule : {}", walletRule);
if (walletRule.getId() == null) {
throw new BadRequestAlertException("Invalid id", ENTITY_NAME, "idnull");
}
WalletRule result = walletRuleRepository.save(walletRule);
return ResponseEntity.ok()
.headers(HeaderUtil.createEntityUpdateAlert(ENTITY_NAME, walletRule.getId().toString()))
.body(result);
}
/**
* GET /wallet-rules : get all the walletRules.
*
* @param pageable the pagination information
* @return the ResponseEntity with status 200 (OK) and the list of walletRules in body
*/
@GetMapping("/wallet-rules")
@Timed
public ResponseEntity<List<WalletRule>> getAllWalletRules(Pageable pageable) {
log.debug("REST request to get a page of WalletRules");
Page<WalletRule> page = walletRuleRepository.findAll(pageable);
HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, "/api/wallet-rules");
return ResponseEntity.ok().headers(headers).body(page.getContent());
}
/**
* GET /wallet-rules/:id : get the "id" walletRule.
*
* @param id the id of the walletRule to retrieve
* @return the ResponseEntity with status 200 (OK) and with body the walletRule, or with status 404 (Not Found)
*/
@GetMapping("/wallet-rules/{id}")
@Timed
public ResponseEntity<WalletRule> getWalletRule(@PathVariable Long id) {
log.debug("REST request to get WalletRule : {}", id);
Optional<WalletRule> walletRule = walletRuleRepository.findById(id);
return ResponseUtil.wrapOrNotFound(walletRule);
}
/**
* DELETE /wallet-rules/:id : delete the "id" walletRule.
*
* @param id the id of the walletRule to delete
* @return the ResponseEntity with status 200 (OK)
*/
@DeleteMapping("/wallet-rules/{id}")
@Timed
public ResponseEntity<Void> deleteWalletRule(@PathVariable Long id) {
log.debug("REST request to delete WalletRule : {}", id);
walletRuleRepository.deleteById(id);
return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
f7a301434c03716004f5c3475618360798d989c9
|
982c6b06d72d646c809d5a12866359f720305067
|
/subprojects/core-model/src/main/java/dev/nokee/internal/provider/ProviderConvertibleInternal.java
|
ca71d1714a1e7242e786ef64b0e1dd1d6b102a41
|
[
"Apache-2.0"
] |
permissive
|
nokeedev/gradle-native
|
e46709a904e20183ca09ff64b92d222d3c888df2
|
6e6ee42cefa69d81fd026b2cfcb7e710dd62d569
|
refs/heads/master
| 2023-05-30T02:27:59.371101
| 2023-05-18T15:36:49
| 2023-05-23T14:43:18
| 243,841,556
| 52
| 9
|
Apache-2.0
| 2023-05-23T14:58:33
| 2020-02-28T19:42:28
|
Java
|
UTF-8
|
Java
| false
| false
| 1,715
|
java
|
/*
* Copyright 2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dev.nokee.internal.provider;
import dev.nokee.provider.ProviderConvertible;
import org.gradle.api.provider.Provider;
import java.util.concurrent.Callable;
/**
* An object that can be converted to a {@link Provider} compatible with Gradle {@literal Callable} aware APIs.
*
* @param <T> type of value represented by the provider
*/
public interface ProviderConvertibleInternal<T> extends ProviderConvertible<T>, Callable<Object> {
/**
* Gradle-compatible {@literal Callable} provider conversion.
*
* Some Gradle APIs, i.e. {@link org.gradle.api.Project#files(Object...)} and {@link org.gradle.api.Task#dependsOn(Object...)},
* accept {@link Callable} types as a legacy mechanic to the {@link Provider} API.
* In the majority of the cases, the API also accepts {@link Provider}.
* Gradle will unpack the {@link Callable} and use any resulting value.
* In our {@literal ProviderConvertible} case, it will result in an automatic {@link Provider} conversion.
*
* @return a {@link Provider}, never null
*/
@Override
default Object call() {
return asProvider();
}
}
|
[
"lacasseio@users.noreply.github.com"
] |
lacasseio@users.noreply.github.com
|
f7a755fc35eef26af7c5a6d67810cf9587112e1f
|
881ec42c677f2d954fdc2317ad582c88fb87c752
|
/stsworkspace/EqualsAndHashcode/src/com/skilldistillery/equalsandhashcode/solutions/Triangle2.java
|
75732b699f2dbe14fbad08b8f36da9b86f167dfc
|
[] |
no_license
|
stoprefresh/archive
|
f51119220fbcb4bccc82306c0483903502f1859e
|
0bde3917fb9cb7e002d3abb18088fee9df4371ec
|
refs/heads/master
| 2022-12-21T20:33:08.251833
| 2019-10-17T14:13:10
| 2019-10-17T14:13:10
| 215,808,299
| 0
| 0
| null | 2022-12-16T09:52:36
| 2019-10-17T14:08:48
|
Java
|
UTF-8
|
Java
| false
| false
| 1,146
|
java
|
package com.skilldistillery.equalsandhashcode.solutions;
public class Triangle2 {
private int base;
private int height;
public Triangle2(int b, int h) {
this.base = b;
this.height = h;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + base;
result = prime * result + height;
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Triangle2 other = (Triangle2) obj;
if (base != other.base)
return false;
if (height != other.height)
return false;
return true;
}
// public boolean equals(Object obj) {
// if (obj == this) {
// return true;
// }
// if (obj == null) {
// return false;
// }
// if (obj.getClass() != this.getClass()) {
// return false;
// }
// Triangle2 other = (Triangle2) obj;
// if (other.base == this.base
// && other.height == this.height) {
// return true;
// }
// return false;
// }
}
|
[
"marsigliamiguel@protonmail.com"
] |
marsigliamiguel@protonmail.com
|
9a7903903cad2242ffe0f9bcef54b0b4a6eed24b
|
23b6d6971a66cf057d1846e3b9523f2ad4e05f61
|
/MLMN-Statistics/src/vn/com/vhc/vmsc2/statistics/dao/MnHBscHoQosDAO.java
|
e38e0059432a080efd1da8e01b2549ce2044a60a
|
[] |
no_license
|
vhctrungnq/mlmn
|
943f5a44f24625cfac0edc06a0d1b114f808dfb8
|
d3ba1f6eebe2e38cdc8053f470f0b99931085629
|
refs/heads/master
| 2020-03-22T13:48:30.767393
| 2018-07-08T05:14:12
| 2018-07-08T05:14:12
| 140,132,808
| 0
| 1
| null | 2018-07-08T05:29:27
| 2018-07-08T02:57:06
|
Java
|
UTF-8
|
Java
| false
| false
| 1,746
|
java
|
package vn.com.vhc.vmsc2.statistics.dao;
import vn.com.vhc.vmsc2.statistics.domain.MnHBscHoQos;
public interface MnHBscHoQosDAO {
/**
* This method was generated by Apache iBATIS ibator.
* This method corresponds to the database table MN_H_BSC_HO_QOS
*
* @ibatorgenerated Wed Nov 10 10:03:01 ICT 2010
*/
int deleteByPrimaryKey(String bscid, Integer month, Integer year);
/**
* This method was generated by Apache iBATIS ibator.
* This method corresponds to the database table MN_H_BSC_HO_QOS
*
* @ibatorgenerated Wed Nov 10 10:03:01 ICT 2010
*/
void insert(MnHBscHoQos record);
/**
* This method was generated by Apache iBATIS ibator.
* This method corresponds to the database table MN_H_BSC_HO_QOS
*
* @ibatorgenerated Wed Nov 10 10:03:01 ICT 2010
*/
void insertSelective(MnHBscHoQos record);
/**
* This method was generated by Apache iBATIS ibator.
* This method corresponds to the database table MN_H_BSC_HO_QOS
*
* @ibatorgenerated Wed Nov 10 10:03:01 ICT 2010
*/
MnHBscHoQos selectByPrimaryKey(String bscid, Integer month, Integer year);
/**
* This method was generated by Apache iBATIS ibator.
* This method corresponds to the database table MN_H_BSC_HO_QOS
*
* @ibatorgenerated Wed Nov 10 10:03:01 ICT 2010
*/
int updateByPrimaryKeySelective(MnHBscHoQos record);
/**
* This method was generated by Apache iBATIS ibator.
* This method corresponds to the database table MN_H_BSC_HO_QOS
*
* @ibatorgenerated Wed Nov 10 10:03:01 ICT 2010
*/
int updateByPrimaryKey(MnHBscHoQos record);
}
|
[
"trungnq@vhc.com.vn"
] |
trungnq@vhc.com.vn
|
69d8518b8cd6fcb5127bc3c583704c2ee30b7c16
|
d653029a119100465a908e663bf795c4dedfe43a
|
/src/main/java/com/common/system/sys/entity/RcRoleWrapper.java
|
3108b3516024ad829901ad4f809223b5b888c82d
|
[] |
no_license
|
MengleiZhao/bg_perfm-main
|
d59740a42995e3b39c5ddbd0df710d87798f3e80
|
38751d15947984159da0069b54c8db547c55bbb3
|
refs/heads/master
| 2023-05-01T01:54:00.791997
| 2021-05-08T05:51:39
| 2021-05-08T05:51:39
| 365,401,842
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 354
|
java
|
package com.common.system.sys.entity;
/**
* Created by Mr.Yangxiufeng on 2017/9/11.
* Time:21:48
* ProjectName:bg_perfm
*/
public class RcRoleWrapper extends RcRole {
private boolean checked;
public boolean isChecked() {
return checked;
}
public void setChecked(boolean checked) {
this.checked = checked;
}
}
|
[
"649387483@qq.com"
] |
649387483@qq.com
|
5fbc929467b493395f452b3fc81078efb31bd828
|
e3162d976b3a665717b9a75c503281e501ec1b1a
|
/src/main/java/com/alipay/api/domain/TemplateOpenCardConfDTO.java
|
5b12a33cedae1d2c2c5c280678f82a8d942020f7
|
[
"Apache-2.0"
] |
permissive
|
sunandy3/alipay-sdk-java-all
|
16b14f3729864d74846585796a28d858c40decf8
|
30e6af80cffc0d2392133457925dc5e9ee44cbac
|
refs/heads/master
| 2020-07-30T14:07:34.040692
| 2019-09-20T09:35:20
| 2019-09-20T09:35:20
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,919
|
java
|
package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 模板开卡配置
*
* @author auto create
* @since 1.0, 2018-04-17 17:57:49
*/
public class TemplateOpenCardConfDTO extends AlipayObject {
private static final long serialVersionUID = 4279761832973662935L;
/**
* 领卡权益信息
*/
@ApiListField("card_rights")
@ApiField("template_rights_content_d_t_o")
private List<TemplateRightsContentDTO> cardRights;
/**
* 配置,预留字段,暂时不用
*/
@ApiField("conf")
private String conf;
/**
* ISV:外部系统
MER:直连商户
*/
@ApiField("open_card_source_type")
private String openCardSourceType;
/**
* 开卡连接,必须http、https开头
*/
@ApiField("open_card_url")
private String openCardUrl;
/**
* 渠道APPID,提供领卡页面的服务提供方
*/
@ApiField("source_app_id")
private String sourceAppId;
public List<TemplateRightsContentDTO> getCardRights() {
return this.cardRights;
}
public void setCardRights(List<TemplateRightsContentDTO> cardRights) {
this.cardRights = cardRights;
}
public String getConf() {
return this.conf;
}
public void setConf(String conf) {
this.conf = conf;
}
public String getOpenCardSourceType() {
return this.openCardSourceType;
}
public void setOpenCardSourceType(String openCardSourceType) {
this.openCardSourceType = openCardSourceType;
}
public String getOpenCardUrl() {
return this.openCardUrl;
}
public void setOpenCardUrl(String openCardUrl) {
this.openCardUrl = openCardUrl;
}
public String getSourceAppId() {
return this.sourceAppId;
}
public void setSourceAppId(String sourceAppId) {
this.sourceAppId = sourceAppId;
}
}
|
[
"ben.zy@antfin.com"
] |
ben.zy@antfin.com
|
105946fc78dee73e0673e56512dccc7279c4fc95
|
46db08f0ced251bf1e1a0902460ae821ffd378da
|
/app/src/main/java/com/example/administrator/travel_app/adapter/ModuleAdapter.java
|
0645ba920fd53ee69ce5ad78b0185538397e107a
|
[] |
no_license
|
3441242166/Travel_App
|
9e86b682906e4b1322b517d01437469c94923027
|
63fdbba3de9481aa104f0b926eb349b5f8c1e6e9
|
refs/heads/master
| 2020-04-09T22:17:43.002641
| 2018-12-06T05:39:24
| 2018-12-06T05:39:24
| 160,624,603
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,029
|
java
|
package com.example.administrator.travel_app.adapter;
import android.content.Context;
import android.support.annotation.Nullable;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.administrator.travel_app.R;
import com.example.administrator.travel_app.bean.GridBean;
import com.example.administrator.travel_app.bean.ModuleBean;
import java.util.List;
public class ModuleAdapter extends BaseQuickAdapter<ModuleBean,BaseViewHolder> {
private Context context;
public ModuleAdapter(@Nullable List<ModuleBean> data, Context context) {
super(R.layout.item_module, data);
this.context = context;
}
@Override
protected void convert(BaseViewHolder helper, ModuleBean item) {
helper.setText(R.id.item_module_title,item.getTitle());
Glide.with(context).load(item.getImgID()).into((ImageView) helper.getView(R.id.item_module_img));
}
}
|
[
"3441242166@qq.com"
] |
3441242166@qq.com
|
5c1ca89cd57ca528af7d675a7dfd64fd8df388d8
|
605dc9c30222306e971a80519bd1405ae513a381
|
/old_work/svn/gems/branches/global_em/ecloud/src/main/java/com/emscloud/model/CloudUserAudit.java
|
a512effb9fe163b8da00b129957e1ee6b94f44a4
|
[] |
no_license
|
rgabriana/Work
|
e54da03ff58ecac2e2cd2462e322d92eafd56921
|
9adb8cd1727fde513bc512426c1588aff195c2d0
|
refs/heads/master
| 2021-01-21T06:27:22.073100
| 2017-02-27T14:31:59
| 2017-02-27T14:31:59
| 83,231,847
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,133
|
java
|
package com.emscloud.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@Entity
@Table(name = "cloud_users_audit", schema = "public")
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public class CloudUserAudit implements Serializable {
@XmlElement(name = "id")
private Long id;
@XmlElement(name = "users")
private Users users;
@XmlElement(name = "username")
private String username;
@XmlElement(name = "description")
private String description;
@XmlElement(name = "username")
private String actionType;
private Date logTime;
@XmlElement(name = "ipAddress")
private String ipAddress;
public CloudUserAudit() {
}
public CloudUserAudit(Long id, Long userId, String username, String description, String actionType, Date logTime, String ipAddress) {
this.id = id;
this.username = username;
this.description = description;
this.actionType = actionType;
this.logTime = logTime;
Users users = new Users();
users.setId(userId);
this.users = users;
this.ipAddress = ipAddress;
}
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator="cloud_users_audit_seq")
@SequenceGenerator(name="cloud_users_audit_seq", sequenceName="cloud_users_audit_seq")
@Column(name = "id", unique = true, nullable = false)
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "users_id")
public Users getUser() {
return users;
}
public void setUser(Users users) {
this.users = users;
}
@Column(name = "username", nullable = false)
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
@Column(name = "description")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Column(name = "action_type", nullable = false)
public String getActionType() {
return actionType;
}
public void setActionType(String actionType) {
this.actionType = actionType;
}
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "log_time", length = 30, nullable = false)
public Date getLogTime() {
return logTime;
}
public void setLogTime(Date logTime) {
this.logTime = logTime;
}
@Column(name = "ip_address", nullable = false)
public String getIpAddress() {
return ipAddress;
}
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
}
|
[
"rolando.gabriana@gmail.com"
] |
rolando.gabriana@gmail.com
|
9274184da03c40f9d3bb8836072f8f9a65cf5f21
|
793c62c2034119829bf18e801ee1912a8b7905a7
|
/tools/zookeeper/src/test/java/com/luolei/tools/zookeeper/NodeManagerTest.java
|
6435bd57d3c47bc74758bd6d4e66931da8419ffa
|
[] |
no_license
|
askluolei/practice
|
5b087a40535b5fb038fb9aa25831d884476d27c9
|
044b13781bc876fd2472d7dfc3e709544d26c546
|
refs/heads/master
| 2021-09-10T15:15:58.199101
| 2018-03-28T09:17:57
| 2018-03-28T09:17:57
| 108,428,724
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,600
|
java
|
package com.luolei.tools.zookeeper;
import com.luolei.tools.zookeeper.cluster.NodeManager;
import org.apache.curator.test.TestingServer;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* @author 罗雷
* @date 2017/11/7 0007
* @time 10:49
*/
public class NodeManagerTest {
public static void main(String[] args) throws Exception{
testMultiWithShutdownAndTimeout();
}
/**
* 测试多节点启动获取节点号
*/
public static void testMulti() throws Exception {
TestingServer server = new TestingServer();
server.start();
int n = 5;
ExecutorService executorService = Executors.newFixedThreadPool(n);
for (int i = 0; i < n; i++) {
executorService.submit(() -> {
NodeManager nodeManager = new NodeManager(server.getConnectString());
nodeManager.initNode();
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
}
printStatus(nodeManager);
});
}
}
/**
* 测试多节点启动获取节点号
* 其中几个节点模拟 过期 重连
*/
public static void testMultiWithTimeout() throws Exception {
TestingServer server = new TestingServer();
server.start();
int n = 5;
ExecutorService executorService = Executors.newFixedThreadPool(n);
for (int i = 0; i < n; i++) {
boolean sessionTimeout = i % 2 == 1;
executorService.submit(() -> {
NodeManager nodeManager = new NodeManager(server.getConnectString(), sessionTimeout);
nodeManager.initNode();
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
}
printStatus(nodeManager);
});
}
}
/**
* 测试多节点启动获取节点号
* 其中几个节点模拟宕机
*/
public static void testMultiWithShutdownAdd() throws Exception {
TestingServer server = new TestingServer();
server.start();
int n = 5;
int m = 3;
ExecutorService executorService = Executors.newFixedThreadPool(n + m);
for (int i = 0; i < n; i++) {
boolean shutdown = i % 2 == 1;
executorService.submit(() -> {
NodeManager nodeManager = new NodeManager(server.getConnectString(), false, shutdown);
nodeManager.initNode();
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
}
printStatus(nodeManager);
});
}
Thread.sleep(30000);
for (int i = 0; i < m; i++) {
executorService.submit(() -> {
NodeManager nodeManager = new NodeManager(server.getConnectString());
nodeManager.initNode();
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
}
printStatus(nodeManager);
});
}
}
/**
* 测试多节点启动获取节点号
* 其中几个节点模拟宕机 几个节点模拟过期
* 然后补充几个节点
*/
public static void testMultiWithShutdownAndTimeout() throws Exception {
TestingServer server = new TestingServer();
server.start();
int n = 5;
int m = 3;
ExecutorService executorService = Executors.newFixedThreadPool(n + m);
for (int i = 0; i < n; i++) {
boolean shutdown = i % 2 == 1;
boolean timeout = i % 2 == 0;
executorService.submit(() -> {
NodeManager nodeManager = new NodeManager(server.getConnectString(), timeout, shutdown);
nodeManager.initNode();
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
}
printStatus(nodeManager);
});
}
Thread.sleep(30000);
for (int i = 0; i < m; i++) {
executorService.submit(() -> {
NodeManager nodeManager = new NodeManager(server.getConnectString());
nodeManager.initNode();
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
}
printStatus(nodeManager);
});
}
}
/**
* 测试单节点启动获取节点号
*/
public static void testSingle() throws Exception {
TestingServer server = new TestingServer();
server.start();
NodeManager nodeManager = new NodeManager(server.getConnectString());
nodeManager.initNode();
Thread.sleep(10000);
printStatus(nodeManager);
}
/**
* 测试单节点启动获取节点号后模拟session过去
* 重连
*/
public static void testSingleWithReconnect() throws Exception {
TestingServer server = new TestingServer();
server.start();
NodeManager nodeManager = new NodeManager(server.getConnectString(), true);
nodeManager.initNode();
printStatus(nodeManager);
}
/**
* 测试单节点启动获取节点号后
* 模拟宕机
*/
public static void testSingleWithShutdown() throws Exception {
TestingServer server = new TestingServer();
server.start();
NodeManager nodeManager = new NodeManager(server.getConnectString(), false, true);
nodeManager.initNode();
printStatus(nodeManager);
}
private static void printStatus(NodeManager nodeManager) {
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
}
System.out.println("节点号为:" + nodeManager.getCurrentNodeID());
System.out.println("是否可支付:" + nodeManager.canPay());
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
}
System.out.println("节点号为:" + nodeManager.getCurrentNodeID());
System.out.println("是否可支付:" + nodeManager.canPay());
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
}
System.out.println("节点号为:" + nodeManager.getCurrentNodeID());
System.out.println("是否可支付:" + nodeManager.canPay());
}
}
|
[
"askluolei@gmail.com"
] |
askluolei@gmail.com
|
200026f13a1e6bdda6bb2f115afcc6a8386473f1
|
0d51b1365bb50503c3d3fda4b8357dd4f1bcb1e1
|
/src/net/eoutech/utils/EuUdpClient.java
|
d96ccdbd4cecaef8028a2fac885b2a94ea8d467a
|
[] |
no_license
|
hezhengwei92/vifiws
|
3303fba045b736190a423dd7f5679bdc661facac
|
a093fffefc5165a4cbe4cac062302f4aa80f59b2
|
refs/heads/master
| 2021-08-23T08:44:13.951601
| 2017-12-04T10:38:13
| 2017-12-04T10:38:13
| 113,009,083
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 975
|
java
|
package net.eoutech.utils;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
//05x
public class EuUdpClient {
private DatagramSocket m_socket;
private String m_serverIP;
private int m_serverPort;
public EuUdpClient(String servIp, int servPort) {
m_serverIP = servIp;
m_serverPort = servPort;
}
public int sendMsg(String msg) {
try {
m_socket = new DatagramSocket();
m_socket.setSoTimeout(3000);
byte[] buffer = msg.getBytes();
DatagramPacket packet = new DatagramPacket(buffer, buffer.length, InetAddress.getByName(m_serverIP),
m_serverPort);
m_socket.send(packet);
byte[] b = new byte[4096];
DatagramPacket in = new DatagramPacket(b, 0, b.length);
m_socket.receive(in);
System.out.println("服务器返回字节长度。。。" + in.getLength());
} catch (Exception e) {
return -1;
} finally {
if (m_socket != null) {
m_socket.close();
}
}
return 0;
}
}
|
[
"419084526@qq.com"
] |
419084526@qq.com
|
85e8e080c15378562a58081ae53b3eaeb10c5e73
|
eac576976210a42aaeb484d45e2316033d1dae9e
|
/jOOQ/src/main/java/org/jooq/impl/TableImpl.java
|
8130159f5be97a95567478692dd95366cf74a621
|
[
"Apache-2.0"
] |
permissive
|
prashanth02/jOOQ
|
75fa46912cdeb72ef472b9020635c2a792dcf1af
|
2a4955abf1752a4e6e2b8127f429d13b8fe68be6
|
refs/heads/master
| 2022-10-03T15:32:45.960679
| 2016-05-30T10:14:52
| 2016-05-30T10:14:52
| 60,037,493
| 0
| 0
|
NOASSERTION
| 2022-09-22T19:34:19
| 2016-05-30T20:34:12
|
Java
|
UTF-8
|
Java
| false
| false
| 6,706
|
java
|
/**
* Copyright (c) 2009-2016, Data Geekery GmbH (http://www.datageekery.com)
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Other licenses:
* -----------------------------------------------------------------------------
* Commercial licenses for this work are available. These replace the above
* ASL 2.0 and offer limited warranties, support, maintenance, and commercial
* database integrations.
*
* For more information, please visit: http://www.jooq.org/licenses
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.jooq.impl;
import static java.util.Arrays.asList;
import static org.jooq.Clause.TABLE;
import static org.jooq.Clause.TABLE_ALIAS;
import static org.jooq.Clause.TABLE_REFERENCE;
import static org.jooq.SQLDialect.FIREBIRD;
// ...
import static org.jooq.SQLDialect.POSTGRES;
import java.util.Arrays;
import org.jooq.Clause;
import org.jooq.Context;
import org.jooq.Field;
import org.jooq.Record;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.tools.StringUtils;
/**
* A common base type for tables
* <p>
* This type is for JOOQ INTERNAL USE only. Do not reference directly
*
* @author Lukas Eder
*/
public class TableImpl<R extends Record> extends AbstractTable<R> {
private static final long serialVersionUID = 261033315221985068L;
private static final Clause[] CLAUSES_TABLE_REFERENCE = { TABLE, TABLE_REFERENCE };
private static final Clause[] CLAUSES_TABLE_ALIAS = { TABLE, TABLE_ALIAS };
final Fields<R> fields;
final Alias<Table<R>> alias;
protected final Field<?>[] parameters;
public TableImpl(String name) {
this(name, null, null, null, null);
}
public TableImpl(String name, Schema schema) {
this(name, schema, null, null, null);
}
public TableImpl(String name, Schema schema, Table<R> aliased) {
this(name, schema, aliased, null, null);
}
public TableImpl(String name, Schema schema, Table<R> aliased, Field<?>[] parameters) {
this(name, schema, aliased, parameters, null);
}
public TableImpl(String name, Schema schema, Table<R> aliased, Field<?>[] parameters, String comment) {
super(name, schema, comment);
this.fields = new Fields<R>();
if (aliased != null) {
alias = new Alias<Table<R>>(aliased, name);
}
else {
alias = null;
}
this.parameters = parameters;
}
/**
* Get the aliased table wrapped by this table
*/
Table<R> getAliasedTable() {
if (alias != null) {
return alias.wrapped();
}
return null;
}
@Override
final Fields<R> fields0() {
return fields;
}
@Override
public final Clause[] clauses(Context<?> ctx) {
return alias != null ? CLAUSES_TABLE_ALIAS : CLAUSES_TABLE_REFERENCE;
}
@Override
public final void accept(Context<?> ctx) {
if (alias != null) {
ctx.visit(alias);
}
else {
accept0(ctx);
}
}
private void accept0(Context<?> ctx) {
if (ctx.qualify() &&
(!asList(POSTGRES).contains(ctx.family()) || parameters == null || ctx.declareTables())) {
Schema mappedSchema = Tools.getMappedSchema(ctx.configuration(), getSchema());
if (mappedSchema != null) {
ctx.visit(mappedSchema);
ctx.sql('.');
}
}
ctx.literal(Tools.getMappedTable(ctx.configuration(), this).getName());
if (parameters != null && ctx.declareTables()) {
// [#2925] Some dialects don't like empty parameter lists
if (ctx.family() == FIREBIRD && parameters.length == 0)
ctx.visit(new QueryPartList<Field<?>>(parameters));
else
ctx.sql('(')
.visit(new QueryPartList<Field<?>>(parameters))
.sql(')');
}
}
/**
* Subclasses may override this method to provide custom aliasing
* implementations
* <p>
* {@inheritDoc}
*/
@Override
public Table<R> as(String as) {
if (alias != null) {
return alias.wrapped().as(as);
}
else {
return new TableAlias<R>(this, as);
}
}
/**
* Subclasses may override this method to provide custom aliasing
* implementations
* <p>
* {@inheritDoc}
*/
@Override
public Table<R> as(String as, String... fieldAliases) {
if (alias != null) {
return alias.wrapped().as(as, fieldAliases);
}
else {
return new TableAlias<R>(this, as, fieldAliases);
}
}
public Table<R> rename(String rename) {
return new TableImpl<R>(rename, getSchema());
}
/**
* Subclasses must override this method if they use the generic type
* parameter <R> for other types than {@link Record}
* <p>
* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
@Override
public Class<? extends R> getRecordType() {
return (Class<? extends R>) RecordImpl.class;
}
@Override
public boolean declaresTables() {
return (alias != null) || (parameters != null) || super.declaresTables();
}
// ------------------------------------------------------------------------
// XXX: Object API
// ------------------------------------------------------------------------
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
// [#2144] TableImpl equality can be decided without executing the
// rather expensive implementation of AbstractQueryPart.equals()
if (that instanceof TableImpl) {
TableImpl<?> other = (TableImpl<?>) that;
return
StringUtils.equals(getSchema(), other.getSchema()) &&
StringUtils.equals(getName(), other.getName()) &&
Arrays.equals(parameters, other.parameters);
}
return super.equals(that);
}
}
|
[
"lukas.eder@gmail.com"
] |
lukas.eder@gmail.com
|
ca8ec3cc0b83902cf8b063beaa0bfeb51ded5ec0
|
447520f40e82a060368a0802a391697bc00be96f
|
/apks/playstore_apps/de_number26_android/source/com/salesforce/android/chat/core/internal/e/c/e.java
|
4ee47d63736b292e0f7b8d2c30222edfa45808c2
|
[
"Apache-2.0"
] |
permissive
|
iantal/AndroidPermissions
|
7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465
|
d623b732734243590b5f004d167e542e2e2ae249
|
refs/heads/master
| 2023-07-19T01:29:26.689186
| 2019-09-30T19:01:42
| 2019-09-30T19:01:42
| 107,239,248
| 0
| 0
|
Apache-2.0
| 2023-07-16T07:41:38
| 2017-10-17T08:22:57
| null |
UTF-8
|
Java
| false
| false
| 1,231
|
java
|
package com.salesforce.android.chat.core.internal.e.c;
import com.google.gson.Gson;
import com.salesforce.android.service.common.b.d;
import com.salesforce.android.service.common.b.h;
import com.salesforce.android.service.common.b.j;
import com.salesforce.android.service.common.c.e.f;
import com.salesforce.android.service.common.utilities.h.a;
import okhttp3.RequestBody;
public class e
implements f
{
private final transient String b;
private final transient String c;
e(String paramString1, String paramString2)
{
this.c = paramString2;
this.b = paramString1;
}
public h a(String paramString, Gson paramGson, int paramInt)
{
return d.b().a(a(paramString)).a("Accept", "application/json; charset=utf-8").a("x-liveagent-api-version", "42").a("x-liveagent-session-key", this.b).a("x-liveagent-affinity", this.c).a("x-liveagent-sequence", Integer.toString(paramInt)).a(RequestBody.create(a, a(paramGson))).c();
}
public String a(Gson paramGson)
{
return paramGson.toJson(this);
}
public String a(String paramString)
{
return String.format("https://%s/chat/rest/%s", new Object[] { a.a(paramString, "LiveAgent Pod must not be null"), "Chasitor/ChasitorTyping" });
}
}
|
[
"antal.micky@yahoo.com"
] |
antal.micky@yahoo.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.