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
8a3b507989d8f9f8a98aaf1c17c23c08a14d8dd0
08b8d598fbae8332c1766ab021020928aeb08872
/src/gcom/gerencial/atendimentopublico/registroatendimento/TarefaBatchGerarResumoRegistroAtendimento.java
3458b1c556ca9481d162c6ad1fb20c19d5d0ddc2
[]
no_license
Procenge/GSAN-CAGEPA
53bf9bab01ae8116d08cfee7f0044d3be6f2de07
dfe64f3088a1357d2381e9f4280011d1da299433
refs/heads/master
2020-05-18T17:24:51.407985
2015-05-18T23:08:21
2015-05-18T23:08:21
25,368,185
3
1
null
null
null
null
WINDOWS-1252
Java
false
false
4,797
java
/* * Copyright (C) 2007-2007 the GSAN – Sistema Integrado de Gestão de Serviços de Saneamento * * This file is part of GSAN, an integrated service management system for Sanitation * * GSAN is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License. * * GSAN is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place – Suite 330, Boston, MA 02111-1307, USA */ /* * GSAN – Sistema Integrado de Gestão de Serviços de Saneamento * Copyright (C) <2007> * Adriano Britto Siqueira * Alexandre Santos Cabral * Ana Carolina Alves Breda * Ana Maria Andrade Cavalcante * Aryed Lins de Araújo * Bruno Leonardo Rodrigues Barros * Carlos Elmano Rodrigues Ferreira * Cláudio de Andrade Lira * Denys Guimarães Guenes Tavares * Eduardo Breckenfeld da Rosa Borges * Fabíola Gomes de Araújo * Flávio Leonardo Cavalcanti Cordeiro * Francisco do Nascimento Júnior * Homero Sampaio Cavalcanti * Ivan Sérgio da Silva Júnior * José Edmar de Siqueira * José Thiago Tenório Lopes * Kássia Regina Silvestre de Albuquerque * Leonardo Luiz Vieira da Silva * Márcio Roberto Batista da Silva * Maria de Fátima Sampaio Leite * Micaela Maria Coelho de Araújo * Nelson Mendonça de Carvalho * Newton Morais e Silva * Pedro Alexandre Santos da Silva Filho * Rafael Corrêa Lima e Silva * Rafael Francisco Pinto * Rafael Koury Monteiro * Rafael Palermo de Araújo * Raphael Veras Rossiter * Roberto Sobreira Barbalho * Rodrigo Avellar Silveira * Rosana Carvalho Barbosa * Sávio Luiz de Andrade Cavalcante * Tai Mu Shih * Thiago Augusto Souza do Nascimento * Tiago Moreno Rodrigues * Vivianne Barbosa Sousa * * Este programa é software livre; você pode redistribuí-lo e/ou * modificá-lo sob os termos de Licença Pública Geral GNU, conforme * publicada pela Free Software Foundation; versão 2 da * Licença. * Este programa é distribuído na expectativa de ser útil, mas SEM * QUALQUER GARANTIA; sem mesmo a garantia implícita de * COMERCIALIZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM * PARTICULAR. Consulte a Licença Pública Geral GNU para obter mais * detalhes. * Você deve ter recebido uma cópia da Licença Pública Geral GNU * junto com este programa; se não, escreva para Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307, USA. */ package gcom.gerencial.atendimentopublico.registroatendimento; import gcom.seguranca.acesso.usuario.Usuario; import gcom.tarefa.TarefaBatch; import gcom.tarefa.TarefaException; import gcom.util.ConstantesJNDI; import gcom.util.ConstantesSistema; import gcom.util.agendadortarefas.AgendadorTarefas; import java.util.Collection; import java.util.Iterator; public class TarefaBatchGerarResumoRegistroAtendimento extends TarefaBatch { private static final long serialVersionUID = 1L; public TarefaBatchGerarResumoRegistroAtendimento(Usuario usuario, int idFuncionalidadeIniciada) { super(usuario, idFuncionalidadeIniciada); } @Deprecated public TarefaBatchGerarResumoRegistroAtendimento() { super(null, 0); } @Override protected Collection<Object> pesquisarTodasUnidadeProcessamentoBatch(){ // TODO Auto-generated method stub return null; } @Override protected Collection<Object> pesquisarTodasUnidadeProcessamentoReinicioBatch(){ // TODO Auto-generated method stub return null; } @Override public Object executar() throws TarefaException{ Collection colecaoIdsLocalidade = (Collection) getParametro(ConstantesSistema.COLECAO_UNIDADES_PROCESSAMENTO_BATCH); Integer anoMesFaturamentoSistemaParametro = (Integer) getParametro("anoMesFaturamentoSistemaParametro"); Iterator iterator = colecaoIdsLocalidade.iterator(); while(iterator.hasNext()){ Integer idLocalidade = ((Integer) iterator.next()); System.out.println("Localidade GERAR RESUMO REGISTRO ATENDIMENTO " + (idLocalidade) + "*********************************************************"); enviarMensagemControladorBatch(ConstantesJNDI.BATCH_GERAR_RESUMO_REGISTRO_ATENDIMENTO_MDB, new Object[] {idLocalidade, this .getIdFuncionalidadeIniciada(), anoMesFaturamentoSistemaParametro}); } return null; } @Override public void agendarTarefaBatch(){ AgendadorTarefas.agendarTarefa("GerarResumoRegistroAtendimentoBatch", this); } }
[ "Yara.Souza@procenge.com.br" ]
Yara.Souza@procenge.com.br
65e4b2c2266e29eb28a4dd523b833751c7c77170
70dee0e8f3f0f90ff661d4f123f16f3224191381
/svg-iconlibs/device/src/main/java/com/github/megatronking/svg/iconlibs/ic_battery_60.java
86d70d55379c4fb63763ba327e68d755c18cd7b6
[ "Apache-2.0" ]
permissive
litterLeaf/SVG-Android
af35f3503fad6c1b3cd7d84d7324f5bea986fa35
ea832fc061456f919dcb3a53ab8f2dd358cf328c
refs/heads/master
2021-01-13T15:19:23.653167
2016-12-13T16:27:06
2016-12-13T16:27:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,738
java
package com.github.megatronking.svg.iconlibs; import android.content.Context; import android.graphics.Canvas; import android.graphics.ColorFilter; import android.graphics.Paint; import com.github.megatronking.svg.support.SVGRenderer; /** * AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * SVG-Generator. It should not be modified by hand. */ public class ic_battery_60 extends SVGRenderer { public ic_battery_60(Context context) { super(context); mAlpha = 1.0f; mWidth = dip2px(24.0f); mHeight = dip2px(24.0f); } @Override public void render(Canvas canvas, int w, int h, ColorFilter filter) { final float scaleX = w / 24.0f; final float scaleY = h / 24.0f; mPath.reset(); mRenderPath.reset(); mFinalPathMatrix.setValues(new float[]{1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f}); mFinalPathMatrix.postScale(scaleX, scaleY); mPath.moveTo(17.0f, 5.33f); mPath.cubicTo(17.0f, 4.6f, 16.4f, 4.0f, 15.67f, 4.0f); mPath.lineTo(14.0f, 4.0f); mPath.lineTo(14.0f, 2.0f); mPath.rLineTo(-4.0f, 0f); mPath.rLineTo(0f, 2.0f); mPath.lineTo(8.33f, 4.0f); mPath.cubicTo(7.6f, 4.0f, 7.0f, 4.6f, 7.0f, 5.33f); mPath.lineTo(7.0f, 11.0f); mPath.rLineTo(10.0f, 0f); mPath.lineTo(17.0f, 5.33f); mPath.close(); mPath.moveTo(17.0f, 5.33f); mRenderPath.addPath(mPath, mFinalPathMatrix); if (mFillPaint == null) { mFillPaint = new Paint(); mFillPaint.setStyle(Paint.Style.FILL); mFillPaint.setAntiAlias(true); } mFillPaint.setColor(applyAlpha(-16777216, 1.0f)); mFillPaint.setColorFilter(filter); canvas.drawPath(mRenderPath, mFillPaint); mPath.reset(); mRenderPath.reset(); mFinalPathMatrix.setValues(new float[]{1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f}); mFinalPathMatrix.postScale(scaleX, scaleY); mPath.moveTo(7.0f, 11.0f); mPath.rLineTo(0f, 9.67f); mPath.cubicTo(7.0f, 21.4f, 7.6f, 22.0f, 8.33f, 22.0f); mPath.rLineTo(7.33f, 0f); mPath.rCubicTo(0.74f, 0.0f, 1.34f, -0.6f, 1.34f, -1.33f); mPath.lineTo(17.0f, 11.0f); mPath.lineTo(7.0f, 11.0f); mPath.close(); mPath.moveTo(7.0f, 11.0f); mRenderPath.addPath(mPath, mFinalPathMatrix); mFillPaint.setColor(applyAlpha(-16777216, 1.0f)); mFillPaint.setColorFilter(filter); canvas.drawPath(mRenderPath, mFillPaint); } }
[ "jgy08954@ly.com" ]
jgy08954@ly.com
ace006fcc9f29a0f0ffd18d904616634f558b1b1
0ce1160605d9a2dca76fc651071bc4f8779f8c6f
/app/src/main/java/com/letrans/android/translator/settings/about/UserProtocol.java
b95bd78ba658ac85168c95612d50df6975cf80c4
[]
no_license
liujingyi1/Translator-2
b07761214f685169c99258060c49dd531c58026b
5ac1220b5f66f661838dcbf452107d70f0b9f452
refs/heads/master
2020-09-10T04:09:32.516153
2019-11-14T08:15:03
2019-11-14T08:15:03
221,644,611
0
0
null
null
null
null
UTF-8
Java
false
false
1,139
java
package com.letrans.android.translator.settings.about; import android.app.Fragment; import android.content.Context; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.letrans.android.translator.R; public class UserProtocol extends Fragment { private Context mContext; private TextView mContentView; @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) { mContext = getContext(); View v = inflater.inflate(R.layout.setting_user_protocol, null); mContentView = (TextView) v.findViewById(R.id.protocol_content); return v; } @Override public void onStart() { super.onStart(); } @Override public void onResume() { super.onResume(); } @Override public void onPause() { super.onPause(); } @Override public void onStop() { super.onStop(); } }
[ "jingyi.liu@ragentek.com" ]
jingyi.liu@ragentek.com
64bda45256d4bb5e2fd53dba012c3be3203c82d2
f1d567b5664ba4db93b9527dbc645b76babb5501
/src/com/javarush/test/level11/lesson06/task02/Solution.java
907a40b9d3000649b1e716bcec335fc764cf316f
[]
no_license
zenonwch/JavaRushEducation
8b619676ba7f527497b5a657b060697925cf0d8c
73388fd058bdd01f1673f87ab309f89f98e38fb4
refs/heads/master
2020-05-21T20:31:07.794128
2016-11-12T16:28:22
2016-11-12T16:28:22
65,132,378
8
4
null
null
null
null
UTF-8
Java
false
false
451
java
package com.javarush.test.level11.lesson06.task02; /* Домашние животные Написать три класса: Pet (домашнее животное), Cat(кот) и Dog(собака). Унаследовать кота и собаку от животного. */ public class Solution { public static void main(String[] args) { } public class Pet { } public class Cat extends Pet { } public class Dog extends Pet { } }
[ "andrey.veshtard@ctco.lv" ]
andrey.veshtard@ctco.lv
42c6d10a3914aef3b892c143021fdb4f7f1c8f32
f5bcc663b2170584af387602aa260f71c770fd3c
/cache-manager-service/src/main/java/com/stackroute/cachemanagerservice/repository/RelationshipRepository.java
f72ce2110d6e128283fabd1c846b607340edba07
[ "Apache-2.0" ]
permissive
stackroute/ibm-wave3-plasma-hackathon
a28f44086e40440c17943ee78372e7acf84bd100
e6aca83d3292770107cc46e898e1a6bd9840bdda
refs/heads/master
2020-04-24T14:49:03.637881
2019-02-22T10:44:25
2019-02-22T10:44:25
172,025,637
0
0
null
null
null
null
UTF-8
Java
false
false
449
java
package com.stackroute.cachemanagerservice.repository; import com.stackroute.cachemanagerservice.domain.Relationship; import org.springframework.data.neo4j.annotation.Query; import org.springframework.data.neo4j.repository.Neo4jRepository; import java.util.List; public interface RelationshipRepository extends Neo4jRepository<Relationship,Long> { @Query("MATCH p=()-[r:CHILD_OF]->() RETURN p") List<Relationship> getAllRelations(); }
[ "rutuja.bacchuwar@stackroute.in" ]
rutuja.bacchuwar@stackroute.in
033eb94a472c944bd8b392051f91e99cd9b5ea42
c94f888541c0c430331110818ed7f3d6b27b788a
/twc/java/src/main/java/com/antgroup/antchain/openapi/twc/models/QueryFlowEvidenceResponse.java
77daf55fff4d14165ad46cecf27acec6581779d0
[ "Apache-2.0", "MIT" ]
permissive
alipay/antchain-openapi-prod-sdk
48534eb78878bd708a0c05f2fe280ba9c41d09ad
5269b1f55f1fc19cf0584dc3ceea821d3f8f8632
refs/heads/master
2023-09-03T07:12:04.166131
2023-09-01T08:56:15
2023-09-01T08:56:15
275,521,177
9
10
MIT
2021-03-25T02:35:20
2020-06-28T06:22:14
PHP
UTF-8
Java
false
false
2,268
java
// This file is auto-generated, don't edit it. Thanks. package com.antgroup.antchain.openapi.twc.models; import com.aliyun.tea.*; public class QueryFlowEvidenceResponse extends TeaModel { // 请求唯一ID,用于链路跟踪和问题排查 @NameInMap("req_msg_id") public String reqMsgId; // 结果码,一般OK表示调用成功 @NameInMap("result_code") public String resultCode; // 异常信息的文本描述 @NameInMap("result_msg") public String resultMsg; // 链上证据包对应的链上交易Hash,只有resultMsg为success时才返回 @NameInMap("chain_pack_tx_hash") public String chainPackTxHash; // 暂不支持,预留字段,链下证据包对应的可下载链接,有效期3小时,只有申请时选择了链下证据包、查询入参evidencePackType选择LocalEvidencePack及resultMsg为success时才返回 @NameInMap("local_pack_url") public String localPackUrl; public static QueryFlowEvidenceResponse build(java.util.Map<String, ?> map) throws Exception { QueryFlowEvidenceResponse self = new QueryFlowEvidenceResponse(); return TeaModel.build(map, self); } public QueryFlowEvidenceResponse setReqMsgId(String reqMsgId) { this.reqMsgId = reqMsgId; return this; } public String getReqMsgId() { return this.reqMsgId; } public QueryFlowEvidenceResponse setResultCode(String resultCode) { this.resultCode = resultCode; return this; } public String getResultCode() { return this.resultCode; } public QueryFlowEvidenceResponse setResultMsg(String resultMsg) { this.resultMsg = resultMsg; return this; } public String getResultMsg() { return this.resultMsg; } public QueryFlowEvidenceResponse setChainPackTxHash(String chainPackTxHash) { this.chainPackTxHash = chainPackTxHash; return this; } public String getChainPackTxHash() { return this.chainPackTxHash; } public QueryFlowEvidenceResponse setLocalPackUrl(String localPackUrl) { this.localPackUrl = localPackUrl; return this; } public String getLocalPackUrl() { return this.localPackUrl; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
b1ea9c8bcc69f59d147f81c8eec853222aa95c26
a1db640b5e04cf4ed955da50203e49431b32afb6
/ControleDispensacao/src/br/com/imhotep/consulta/entidade/ConfiguracaoConsulta.java
7b245954ce74bf901ea3071d785335a371dabb04
[]
no_license
marlonassis/Imhotep
845aef6150198b4b1c37f1ac15bea53e966a3ddd
b5e9c1a02cd209e9e14f18b12011475f9fdcf8be
refs/heads/master
2021-01-13T02:14:53.467004
2015-01-13T16:17:09
2015-01-13T16:17:09
3,450,022
0
0
null
null
null
null
UTF-8
Java
false
false
784
java
package br.com.imhotep.consulta.entidade; import java.util.List; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; import br.com.imhotep.entidade.Configuracao; import br.com.remendo.ConsultaGeral; import br.com.remendo.PadraoConsulta; @ManagedBean @SessionScoped public class ConfiguracaoConsulta extends PadraoConsulta<Configuracao> { public ConfiguracaoConsulta(){ getCamposConsulta().put("o.descricao", INCLUINDO_TUDO); getCamposConsulta().put("o.nome", INCLUINDO_TUDO); setOrderBy("to_ascii(o.nome)"); } @Override public List<Configuracao> getList() { setConsultaGeral(new ConsultaGeral<Configuracao>()); getConsultaGeral().setSqlConsultaSB(new StringBuilder("select o from Configuracao o where 1=1")); return super.getList(); } }
[ "marlonassis@gmail.com" ]
marlonassis@gmail.com
add2c7f5ba0c7174196d1ef80ceac779cd4e9957
675cbffa1d3e6716f0f89db8ac0ca637105967cf
/app/src/main/java/com/huatu/handheld_huatu/view/swiperecyclerview/refresh/LoadingMoreFooter.java
5f6a5bfbb848a0ef51ba3ce3101a11b28021cee9
[]
no_license
led-os/HTWorks
d5bd33e7fddf99930c318ced94869c17f7a97836
ee94e8a2678b8a2ea79e73026d665d57f312f7e2
refs/heads/master
2022-04-05T02:56:14.051111
2020-01-21T07:38:25
2020-01-21T07:38:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,885
java
package com.huatu.handheld_huatu.view.swiperecyclerview.refresh; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.view.ViewGroup; import android.widget.ProgressBar; import android.widget.TextView; import com.huatu.handheld_huatu.utils.DisplayUtil; /** * <p>描述:库中默认的加载更多实现</p> * 作者: zhouyou<br> * 日期: 2016/5/2 17:23 <br> * 版本: v1.0<br> */ public class LoadingMoreFooter extends BaseMoreFooter { private SimpleViewSwitcher progressCon; private TextView mText; public LoadingMoreFooter(Context context) { super(context); } public LoadingMoreFooter(Context context, AttributeSet attrs) { super(context, attrs); } @Override protected void initView() { super.initView(); progressCon = new SimpleViewSwitcher(getContext()); progressCon.setLayoutParams(new ViewGroup.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT)); AVLoadingIndicatorViews progressView = new AVLoadingIndicatorViews(this.getContext()); progressView.setIndicatorColor(0xffB5B5B5); progressView.setIndicatorId(ProgressStyle.BallSpinFadeLoader); progressCon.setView(progressView); addView(progressCon); mText = new TextView(getContext()); mText.setText("正在加载..."); LayoutParams layoutParams = new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); layoutParams.setMargins(DisplayUtil.dp2px(10), 0, 0, 0); mText.setLayoutParams(layoutParams); addView(mText); } @Override public void setProgressStyle(int style) { if (style == ProgressStyle.SysProgress) { progressCon.setView(new ProgressBar(getContext(), null, android.R.attr.progressBarStyle)); } else { AVLoadingIndicatorViews progressView = new AVLoadingIndicatorViews(this.getContext()); progressView.setIndicatorColor(0xffB5B5B5); progressView.setIndicatorId(style); progressCon.setView(progressView); } } @Override public void setState(int state) { super.setState(state); switch (state) { case STATE_LOADING: progressCon.setVisibility(View.VISIBLE); mText.setText(loadingHint); this.setVisibility(View.VISIBLE); break; case STATE_COMPLETE: mText.setText(loadingDoneHint); this.setVisibility(View.GONE); break; case STATE_NOMORE: mText.setText(noMoreHint); progressCon.setVisibility(View.GONE); this.setVisibility(View.VISIBLE); break; } } }
[ "yaohu2011@163.com" ]
yaohu2011@163.com
df6f193bbfb66fbf59e6756ac09a9085d8981c5b
ffed6d50602610adfb4eaf3f960b9118782a18cc
/Regular Expressions/templates/RegexQuiz.java
c3dde0a5b8f2881fb9876c2a2e5e9b55924fbb19
[]
no_license
OrshiKozek/lectures
864792ec1af5a67f7bb3846c8cd442303e703e5b
6036991ea3f61040ad80b548b7b19f3e8e89d357
refs/heads/master
2022-06-01T06:37:17.098465
2020-05-02T20:50:07
2020-05-02T20:50:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
881
java
public class RegexQuiz { public static void main(String[] args) { String text = null; String regex = null; System.out.println(text); System.out.println(regex); text = "hubbub"; // RegexHelper.printMatches(text, "h.*b"); // RegexHelper.printMatches(text, "h.*?b"); // RegexHelper.printMatches(text, "h.*bb*"); // RegexHelper.printMatches(text, "h.*bb+"); // RegexHelper.printMatches(text, "h.*bb?"); // RegexHelper.printMatches(text, "h.*?bb?"); System.out.println(); text = "ant ape bat bee bug cat cow dog"; // RegexHelper.printMatches(text, "\\w*a\\w*"); // RegexHelper.printMatches(text, "\\w+a\\w+"); // RegexHelper.printMatches(text, "\\w+t\\b"); // RegexHelper.printMatches(text, "\\w*[^e]e\\b"); System.out.println(); text = "dragonfly"; regex = "(drag(on))(fly)"; // TODO } }
[ "sjengle@cs.usfca.edu" ]
sjengle@cs.usfca.edu
7198747825ac4984baff14e00c404763c56dcdf4
cd4802766531a9ccf0fb54ca4b8ea4ddc15e31b5
/dist/game/data/scripts/ai/others/FleeMonsters.java
4a9fd32da53ceb9fd16e7ed8dc0bab030f829f76
[]
no_license
singto53/underground
8933179b0d72418f4b9dc483a8f8998ef5268e3e
94264f5168165f0b17cc040955d4afd0ba436557
refs/heads/master
2021-01-13T10:30:20.094599
2016-12-11T20:32:47
2016-12-11T20:32:47
76,455,182
0
1
null
null
null
null
UTF-8
Java
false
false
2,655
java
/* * This file is part of the L2J Mobius project. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package ai.others; import com.l2jmobius.gameserver.GeoData; import com.l2jmobius.gameserver.ai.CtrlIntention; import com.l2jmobius.gameserver.model.Location; import com.l2jmobius.gameserver.model.actor.L2Npc; import com.l2jmobius.gameserver.model.actor.L2Summon; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.model.interfaces.ILocational; import com.l2jmobius.gameserver.util.Util; import ai.AbstractNpcAI; /** * Flee Monsters AI. * @author Pandragon, NosBit */ public final class FleeMonsters extends AbstractNpcAI { // NPCs private static final int[] MOBS = { 18150, // Victim 18151, // Victim 18152, // Victim 18153, // Victim 18154, // Victim 18155, // Victim 18156, // Victim 18157, // Victim 20002, // Rabbit 20432, // Elpy 22228, // Grey Elpy 25604, // Mutated Elpy }; // Misc private static final int FLEE_DISTANCE = 500; private FleeMonsters() { addAttackId(MOBS); } @Override public String onAttack(L2Npc npc, L2PcInstance attacker, int damage, boolean isSummon) { npc.disableCoreAI(true); npc.setRunning(); final L2Summon summon = isSummon ? attacker.getServitors().values().stream().findFirst().orElse(attacker.getPet()) : null; final ILocational attackerLoc = summon == null ? attacker : summon; final double radians = Math.toRadians(Util.calculateAngleFrom(attackerLoc, npc)); final int posX = (int) (npc.getX() + (FLEE_DISTANCE * Math.cos(radians))); final int posY = (int) (npc.getY() + (FLEE_DISTANCE * Math.sin(radians))); final int posZ = npc.getZ(); final Location destination = GeoData.getInstance().moveCheck(npc.getX(), npc.getY(), npc.getZ(), posX, posY, posZ, attacker.getInstanceWorld()); npc.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, destination); return super.onAttack(npc, attacker, damage, isSummon); } public static void main(String[] args) { new FleeMonsters(); } }
[ "MobiusDev@7325c9f8-25fd-504a-9f63-8876acdc129b" ]
MobiusDev@7325c9f8-25fd-504a-9f63-8876acdc129b
cfd1de68b813c2d1cc28a2157b540c3005b0629b
f1cdd39e85a314d5189690c27596782ed89a7f30
/app/src/main/java/bkav/android/btalk/contacts/BtalkDialogChosePhone.java
0ad11e54480aee187dab649ca49bd772d928903d
[]
no_license
anhtienStorm/DATN
cdc7a3416580771cf568cde30ca51cf888fe53a8
0f3cea74f9944d6f813d028832200b7f15fa681e
refs/heads/master
2023-04-06T13:16:13.062178
2021-04-19T06:00:36
2021-04-19T06:00:36
358,844,882
0
0
null
null
null
null
UTF-8
Java
false
false
8,086
java
package bkav.android.btalk.contacts; import android.Manifest; import android.app.DialogFragment; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.graphics.Color; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.provider.ContactsContract; import android.support.annotation.Nullable; import android.support.v4.app.ActivityCompat; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CheckBox; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import com.android.contacts.ContactSaveService; import com.android.contacts.common.model.dataitem.DataItem; import com.android.contacts.common.model.dataitem.PhoneDataItem; import java.util.ArrayList; import java.util.List; import bkav.android.btalk.R; /** * AnhNDd: Dialog Thị khi lựa chọn contact có 2 số điện thoại trở lên, khi click trực tiếp vào contact để thực hiện cuộc gọi. */ public class BtalkDialogChosePhone extends DialogFragment { private LinearLayout mViewGroupPhone; private Context mContext; private List<DataItem> mPhoneDataItemsList; private List<View> mPhoneViewList = new ArrayList<>(); private CheckBox mCheckBoxSetPrimary; public static String DIALOG_TAG = "dialog_chose_phone"; /** * Create a new instance of MyDialogFragment, providing "num" * as an argument. */ static BtalkDialogChosePhone newInstance(int num) { BtalkDialogChosePhone f = new BtalkDialogChosePhone(); // Supply num input as an argument. Bundle args = new Bundle(); args.putInt("num", num); f.setArguments(args); return f; } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setStyle(STYLE_NO_TITLE, 0); } @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.btalk_dialog_chose_phone_to_call, container, false); mViewGroupPhone = (LinearLayout) v.findViewById(R.id.content_area_linear_layout_chose_phone); if (mPhoneDataItemsList == null) { new Handler().postDelayed(new Runnable() { @Override public void run() { dismiss(); } }, 200); } else { inflateAllPhone(LayoutInflater.from(getActivity())); insertEntriesIntoViewGroupPhone(); //AnhNDd: check box cho việc đặt làm số điện thoại mặc định. mCheckBoxSetPrimary = (CheckBox) v.findViewById(R.id.setPrimary); } return v; } public void insertEntriesIntoViewGroupPhone() { mViewGroupPhone.removeAllViews(); for (View view : getViewsToDisplay()) { mViewGroupPhone.addView(view); } } public void setData(Context context, List<DataItem> phoneDataItems) { mContext = context; mPhoneDataItemsList = phoneDataItems; } private List<View> getViewsToDisplay() { final List<View> viewsToDisplay = new ArrayList<View>(); for (int i = 0; i < mPhoneViewList.size(); i++) { viewsToDisplay.add(mPhoneViewList.get(i)); } return viewsToDisplay; } //AnhNDd: vẽ các view cho dialog. public void inflateAllPhone(LayoutInflater layoutInflater) { int size = mPhoneDataItemsList.size(); for (int i = 0; i < size; i++) { //AnhNDd: dữ liệu lấy vào là PhoneDataItem . PhoneDataItem phoneDataItem = (PhoneDataItem) mPhoneDataItemsList.get(i); mPhoneViewList.add(createPhoneView(layoutInflater, phoneDataItem)); // Bkav QuangNDb bo dai phan cach giua cac so dien thoai di // if (i < size - 1) { // mPhoneViewList.add(createDividerView()); // } } } //AnhNDd: vẽ đường phân cách giữa các số điện thoại. public View createDividerView() { View dividerView = new View(mContext); LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, (int) mContext.getResources().getDimension(R.dimen.btalk_section_divider_height)); dividerView.setLayoutParams(lp); dividerView.setBackgroundColor(Color.BLACK); return dividerView; } //AnhNDd: Hàm để khởi tạo view và đổ dữ liệu public View createPhoneView(LayoutInflater layoutInflater, final PhoneDataItem phoneDataItem) { final View view = (View) layoutInflater.inflate( R.layout.phone_disambig_item, mViewGroupPhone, false); final TextView text = (TextView) view.findViewById(R.id.text1); String type = phoneDataItem.getContentValues().getAsString(ContactsContract.CommonDataKinds.Phone.TYPE); // Anhdts fix loi type empty, k ro khi nao thi bi nua CharSequence typeLabel = ""; if (!type.isEmpty()) { typeLabel = ContactsContract.CommonDataKinds.Phone.getTypeLabel(mContext.getResources(), Integer.parseInt(type), phoneDataItem.getLabel()); } if (!TextUtils.isEmpty(typeLabel)) { text.setText(typeLabel); } else { text.setVisibility(View.GONE); } //AnhNDd: hiển thị số điện thoại. final String num = phoneDataItem.getNumber(); final TextView header = (TextView) view.findViewById(R.id.text2); if (!TextUtils.isEmpty(num)) { header.setText(num); } else { header.setVisibility(View.GONE); } //AnhNDd: sự kiện click vào một số điện thoại. view.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { callAction(phoneDataItem); } }); ImageView callInternet = (ImageView) view.findViewById(R.id.bkav_call_internet); callInternet.setVisibility(View.GONE); return view; } //AnhNDd: Thực hiện cuộc gọi đến 1 số. public void callAction(PhoneDataItem phoneDataItem) { if (mCheckBoxSetPrimary.isChecked()) { //AnhNDd: Thực hiện việc set số điện thoại là mặc định. final Intent setIntent = ContactSaveService.createSetSuperPrimaryIntent(mContext, phoneDataItem.getId()); mContext.startService(setIntent); } Intent in = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + phoneDataItem.getNumber())); if (ActivityCompat.checkSelfPermission(mContext, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) { // TODO: Consider calling // ActivityCompat#requestPermissions // here to request the missing permissions, and then overriding // public void onRequestPermissionsResult(int requestCode, String[] permissions, // int[] grantResults) // to handle the case where the user grants the permission. See the documentation // for ActivityCompat#requestPermissions for more details. return; } in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); mContext.startActivity(in); // TrungTH them vao if (mIDialogCallback != null) { mIDialogCallback.onCallActionFinish(); } this.dismiss(); } // Them doan callback cho dialog public interface IDialogCallback { public void onCallActionFinish(); } private IDialogCallback mIDialogCallback; public void setDialogCallback(IDialogCallback dialogCallback) { mIDialogCallback = dialogCallback; } }
[ "tiennab@bkav.com" ]
tiennab@bkav.com
6b1b0cdf4743a8313cd08f14fc5acbe170790ac3
32b72e1dc8b6ee1be2e80bb70a03a021c83db550
/ast_results/SufficientlySecure_calendar-import-export/CalendarImportExport/src/main/java/org/sufficientlysecure/ical/ui/RemindersDialog.java
9c830001db07a7b7f098a2f15b54bf7b34e32a57
[]
no_license
cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning
d90c41a17e88fcd99d543124eeb6e93f9133cb4a
0564143d92f8024ff5fa6b659c2baebf827582b1
refs/heads/master
2020-07-13T13:53:40.297493
2019-01-11T11:51:18
2019-01-11T11:51:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,584
java
// isComment package org.sufficientlysecure.ical.ui; import org.sufficientlysecure.ical.R; import org.sufficientlysecure.ical.Settings; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; import android.content.Context; import android.preference.DialogPreference; import android.support.annotation.NonNull; import android.util.AttributeSet; import android.view.View; import android.widget.Button; import android.widget.LinearLayout; import android.widget.Spinner; public class isClassOrIsInterface extends DialogPreference { // isComment private static final int[] isVariable = { isIntegerConstant, isIntegerConstant, isIntegerConstant, isIntegerConstant, isIntegerConstant, isIntegerConstant, isIntegerConstant, isIntegerConstant, isIntegerConstant, isIntegerConstant, isIntegerConstant, isIntegerConstant, isIntegerConstant, isIntegerConstant, isIntegerConstant, isIntegerConstant, isIntegerConstant, isIntegerConstant, isIntegerConstant, isIntegerConstant }; private LinearLayout isVariable; private final SettingsActivity isVariable; private int isVariable; public isConstructor(Context isParameter, AttributeSet isParameter) { super(isNameExpr, isNameExpr); isNameExpr = (SettingsActivity) isNameExpr; isNameExpr = isIntegerConstant; } public static List<Integer> isMethod(Settings isParameter) { List<Integer> isVariable = new ArrayList<>(); for (String isVariable : isNameExpr.isMethod(isNameExpr.isFieldAccessExpr).isMethod("isStringConstant")) { if (isNameExpr.isMethod() > isIntegerConstant) isNameExpr.isMethod(isNameExpr[isNameExpr.isMethod(isNameExpr)]); } return isNameExpr; } @Override protected void isMethod(@NonNull View isParameter) { super.isMethod(isNameExpr); isNameExpr = (LinearLayout) isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr); String isVariable = new Settings(isNameExpr.isMethod()).isMethod(isNameExpr.isFieldAccessExpr); for (String isVariable : isNameExpr.isMethod("isStringConstant")) { if (isNameExpr.isMethod() > isIntegerConstant) isMethod(isNameExpr.isMethod(isNameExpr)); } View.OnClickListener isVariable = new View.OnClickListener() { public void isMethod(View isParameter) { isMethod(isIntegerConstant); } }; Button isVariable = (Button) isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr); isNameExpr.isMethod(isNameExpr); } private void isMethod(int isParameter) { View isVariable = isNameExpr.isMethod().isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr, isNameExpr, true); final int isVariable = isNameExpr++; isNameExpr.isMethod(isNameExpr); Spinner isVariable = (Spinner) isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr); isNameExpr.isMethod(isNameExpr); View.OnClickListener isVariable = new View.OnClickListener() { public void isMethod(View isParameter) { isNameExpr.isMethod(isNameExpr.isMethod(isNameExpr)); } }; Button isVariable = (Button) isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr); isNameExpr.isMethod(isNameExpr); isNameExpr.isMethod(isNameExpr); } @Override protected void isMethod(boolean isParameter) { super.isMethod(isNameExpr); if (!isNameExpr) return; // isComment Set<Integer> isVariable = new HashSet<>(); final int isVariable = isNameExpr.isMethod(); for (int isVariable = isIntegerConstant; isNameExpr < isNameExpr; isNameExpr++) { View isVariable = isNameExpr.isMethod(isNameExpr); Spinner isVariable = (Spinner) isNameExpr.isMethod(isNameExpr.isFieldAccessExpr.isFieldAccessExpr); isNameExpr.isMethod(isNameExpr.isMethod()); } List<Integer> isVariable = new ArrayList<>(isNameExpr); isNameExpr.isMethod(isNameExpr); StringBuilder isVariable = new StringBuilder(); for (Integer isVariable : isNameExpr) { if (isNameExpr.isMethod() != isIntegerConstant) isNameExpr.isMethod("isStringConstant"); isNameExpr.isMethod(isNameExpr); } new Settings(isNameExpr.isMethod()).isMethod(isNameExpr.isFieldAccessExpr, isNameExpr.isMethod()); } }
[ "matheus@melsolucoes.net" ]
matheus@melsolucoes.net
5c94ed0998470f031b8c186c3b248ccd6798e4d4
e7330d93b77a763f7efc70aad45f657d779d34ae
/implementation/lib/Encog/src/main/java/org/encog/ml/graph/search/AbstractGraphSearch.java
cd5752bcf1029da6b5b9733de85275eb8aec1134
[ "MIT" ]
permissive
pveeckhout/bachelor-thesis
58be7fd87cee720f70c4e2ba81f4eac980fa4b9e
7dae63fe9b748f35b4be45815a3fe322291418f7
refs/heads/master
2016-09-05T13:17:57.255498
2013-11-08T08:20:59
2013-11-08T08:20:59
14,226,541
2
1
null
null
null
null
UTF-8
Java
false
false
2,796
java
/* * Encog(tm) Core v3.2 - Java Version * http://www.heatonresearch.com/encog/ * https://github.com/encog/encog-java-core * Copyright 2008-2013 Heaton Research, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * For more information on Heaton Research copyrights, licenses * and trademarks visit: * http://www.heatonresearch.com/copyright */ package org.encog.ml.graph.search; import java.util.HashSet; import java.util.Set; import org.encog.EncogError; import org.encog.ml.graph.BasicEdge; import org.encog.ml.graph.BasicGraph; import org.encog.ml.graph.BasicNode; import org.encog.ml.graph.BasicPath; public abstract class AbstractGraphSearch implements GraphSearch { private final BasicGraph graph; private final SearchGoal goal; private final FrontierHolder frontier = new FrontierHolder(this); private final Set<BasicNode> explored = new HashSet<BasicNode>(); private BasicPath solution; public AbstractGraphSearch(BasicGraph theGraph, BasicNode startingPoint, SearchGoal theGoal) { this.graph = theGraph; this.goal = theGoal; frontier.add(new BasicPath(startingPoint)); } public BasicGraph getGraph() { return graph; } public SearchGoal getGoal() { return goal; } public void iteration() { if (solution == null) { if (this.frontier.size() == 0) { throw new EncogError("Frontier is empty, cannot find solution."); } BasicPath path = this.frontier.pop(); if (this.goal.isGoalMet(path)) { this.solution = path; return; } BasicNode state = path.getDestinationNode(); this.explored.add(state); for (BasicEdge connection : state.getConnections()) { if (!this.explored.contains(connection.getTo()) && !this.frontier.containsDestination(connection.getTo())) { BasicPath path2 = new BasicPath(path, connection.getTo()); this.frontier.add(path2); } } } } /** * @return the solution */ public BasicPath getSolution() { return solution; } }
[ "vaneeckhout.pieter@gmail.com" ]
vaneeckhout.pieter@gmail.com
8e0afc74f214e48eedad3b7798d93aab7eeb9ff8
6a649709010f35916b58ad639eb24dc9d7452344
/AL-Game/data/scripts/system/handlers/ai/instance/kromedesTrial/KromedesMagasAI2.java
567054068b1284a3fcdbba79821f6125f88b8e93
[]
no_license
soulxj/aion-cn
807860611e746d8d4c456a769a36d3274405fd7e
8a0a53cf8f99233cbee82f341f2b5c33be0364fa
refs/heads/master
2016-09-11T01:12:19.660692
2014-08-11T14:59:38
2014-08-11T14:59:38
41,342,802
2
2
null
null
null
null
UTF-8
Java
false
false
2,109
java
/* * This file is part of Aion Lightning <aion-lightning.org>. * * Aion Lightning is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Aion Lightning is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Aion Lightning. If not, see <http://www.gnu.org/licenses/>. */ package ai.instance.kromedesTrial; import com.aionemu.gameserver.ai2.AIName; import com.aionemu.gameserver.ai2.NpcAI2; import com.aionemu.gameserver.model.DialogAction; import com.aionemu.gameserver.model.gameobjects.player.Player; import com.aionemu.gameserver.network.aion.serverpackets.SM_DIALOG_WINDOW; import com.aionemu.gameserver.network.aion.serverpackets.SM_PLAY_MOVIE; import com.aionemu.gameserver.utils.PacketSendUtility; /** * @author Gigi */ @AIName("krmagas") public class KromedesMagasAI2 extends NpcAI2 { @Override public boolean onDialogSelect(final Player player, int dialogId, int questId, int extendedRewardIndex) { if (dialogId == DialogAction.SETPRO1.id()) { if (player.getInventory().getItemCountByItemId(185000109) > 0) { PacketSendUtility.sendPacket(player, new SM_PLAY_MOVIE(0, 454)); PacketSendUtility.sendPacket(player, new SM_DIALOG_WINDOW(getObjectId(), 0)); } else PacketSendUtility.sendPacket(player, new SM_DIALOG_WINDOW(getObjectId(), 27)); } else if (dialogId == DialogAction.SELECT_ACTION_1012.id()) PacketSendUtility.sendPacket(player, new SM_DIALOG_WINDOW(getObjectId(), 1012)); return true; } @Override protected void handleDialogStart(Player player) { PacketSendUtility.sendPacket(player, new SM_DIALOG_WINDOW(getObjectId(), 1011)); } }
[ "feidebugao@gmail.com" ]
feidebugao@gmail.com
ece79d33735799cc44f0eeb3603710e6718eade0
a19b62e4cc8c253c6067ecb09e5fc2b8162752c5
/src/com/设计模式/桥接模式/Display.java
6ba8268746e7f9862a4961e55ba5d945d20e69b1
[]
no_license
BaTianCheng/Algorithm
ef4e7d1f50dbdc1eef37398a4e4e517a49d8d8d5
3cfaaa737f24d70a670dc44f967b3f56d79f0858
refs/heads/master
2020-08-03T15:09:20.040812
2020-06-19T06:13:23
2020-06-19T06:13:23
211,795,909
0
0
null
null
null
null
UTF-8
Java
false
false
418
java
package com.设计模式.桥接模式; /** * 显示类,作为功能层次,实际实现交给了实现类 * @author wicks * */ public class Display { private DisplayImpl impl; public Display(DisplayImpl impl) { this.impl = impl; } public void print() { impl.rawPrint(); } public final void display() { print(); } }
[ "cheng_wei_njut@163.com" ]
cheng_wei_njut@163.com
6337f58ec8b3f3f4690a44f8c975adcadfbdf3c9
36c0a0e21f3758284242b8d2e40b60c36bd23468
/src/main/java/com/datasphere/engine/manager/resource/provider/db/model/DBTableDataList.java
1445d5c0b3e430d8dbc37c0c2cc06ad30f20ef1e
[ "LicenseRef-scancode-mulanpsl-1.0-en" ]
permissive
neeeekoooo/datasphere-service
0185bca5a154164b4bc323deac23a5012e2e6475
cb800033ba101098b203dbe0a7e8b7f284319a7b
refs/heads/master
2022-11-15T01:10:05.530442
2020-02-01T13:54:36
2020-02-01T13:54:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
879
java
package com.datasphere.engine.manager.resource.provider.db.model; import java.util.List; public class DBTableDataList { private List<String> unsupportColumns; private List<String> columns; private List<String> typeList; private List<List<String>> dataList; public List<String> getUnsupportColumns() { return unsupportColumns; } public void setUnsupportColumns(List<String> unsupportColumns) { this.unsupportColumns = unsupportColumns; } public List<String> getColumns() { return columns; } public void setColumns(List<String> columns) { this.columns = columns; } public List<List<String>> getDataList() { return dataList; } public void setDataList(List<List<String>> dataList) { this.dataList = dataList; } public List<String> getTypeList() { return typeList; } public void setTypeList(List<String> typeList) { this.typeList = typeList; } }
[ "jack_r_ge@126.com" ]
jack_r_ge@126.com
9b8f2d58843ff443452d0205d8f9c710d1f4383a
b421864ddd0c2bcedee6cc908e8ab0e804e17c0e
/java/help-desk/src/main/java/com/giacom/helpdesk/api/security/config/WebSecurityConfig.java
cbeb2546b06279136d0a9f56cbc8847ad09933d9
[]
no_license
sandrogiacom/curso-angular-spring
915d40034366fb64b0a7daaaf14e1b11965181b7
774cdc89f7f9671971ef131af8e5d6093cba9a7a
refs/heads/master
2023-03-15T02:19:59.053728
2018-03-25T22:03:15
2018-03-25T22:03:15
126,596,647
0
0
null
2023-03-01T18:51:33
2018-03-24T12:22:51
CSS
UTF-8
Java
false
false
2,956
java
package com.giacom.helpdesk.api.security.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpMethod; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.security.config.http.SessionCreationPolicy; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter; import com.giacom.helpdesk.api.security.jwt.JwtAuthenticationEntryPoint; import com.giacom.helpdesk.api.security.jwt.JwtAuthenticationTokenFilter; @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled = true) public class WebSecurityConfig extends WebSecurityConfigurerAdapter { @Autowired private JwtAuthenticationEntryPoint unauthorizedHandler; @Autowired private UserDetailsService userDetailsService; @Autowired public void configureAuthentication(AuthenticationManagerBuilder authenticationManagerBuilder) throws Exception { authenticationManagerBuilder.userDetailsService(this.userDetailsService).passwordEncoder(passwordEncoder()); } @Bean public PasswordEncoder passwordEncoder() { return new BCryptPasswordEncoder(); } @Bean public JwtAuthenticationTokenFilter authenticationTokenFilterBean() throws Exception { return new JwtAuthenticationTokenFilter(); } @Bean public AuthenticationManager customAuthenticationManager() throws Exception { return authenticationManager(); } @Override protected void configure(HttpSecurity httpSecurity) throws Exception { httpSecurity.csrf().disable().exceptionHandling().authenticationEntryPoint(unauthorizedHandler).and() .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and().authorizeRequests() .antMatchers( HttpMethod.GET, "/", "/*.html", "/favicon.ico", "/**/*.html", "/**/*.css", "/**/*.js") .permitAll() .antMatchers("/api/auth/**") .permitAll().anyRequest().authenticated(); httpSecurity.addFilterBefore(authenticationTokenFilterBean(), UsernamePasswordAuthenticationFilter.class); httpSecurity.headers().cacheControl(); } }
[ "sandrogiacom@gmail.com" ]
sandrogiacom@gmail.com
d10fb48122d7875e80db36d89def494edda5c8f1
a85d2dccd5eab048b22b2d66a0c9b8a3fba4d6c2
/rebellion_h5_realm/data/scripts/ai/FollowNpc.java
da0e6e66aa853b13ea3db89b80110a68bba1a880
[]
no_license
netvirus/reb_h5_storm
96d29bf16c9068f4d65311f3d93c8794737d4f4e
861f7845e1851eb3c22d2a48135ee88f3dd36f5c
refs/heads/master
2023-04-11T18:23:59.957180
2021-04-18T02:53:10
2021-04-18T02:53:10
252,070,605
0
0
null
2021-04-18T02:53:11
2020-04-01T04:19:39
HTML
UTF-8
Java
false
false
3,105
java
package ai; import java.util.concurrent.ScheduledFuture; import l2r.commons.threading.RunnableImpl; import l2r.commons.util.Rnd; import l2r.gameserver.Config; import l2r.gameserver.ThreadPoolManager; import l2r.gameserver.ai.CtrlIntention; import l2r.gameserver.ai.DefaultAI; import l2r.gameserver.model.Creature; import l2r.gameserver.model.instances.MonsterInstance; import l2r.gameserver.model.instances.NpcInstance; import l2r.gameserver.utils.Location; public class FollowNpc extends DefaultAI { private boolean _thinking = false; private ScheduledFuture<?> _followTask; public FollowNpc(NpcInstance actor) { super(actor); } @Override protected boolean randomWalk() { if(getActor() instanceof MonsterInstance) return true; return false; } @Override protected void onEvtThink() { NpcInstance actor = getActor(); if(_thinking || actor.isActionsDisabled() || actor.isAfraid() || actor.isDead() || actor.isMovementDisabled()) return; _thinking = true; try { if(!Config.BLOCK_ACTIVE_TASKS && (getIntention() == CtrlIntention.AI_INTENTION_ACTIVE || getIntention() == CtrlIntention.AI_INTENTION_IDLE)) thinkActive(); else if(getIntention() == CtrlIntention.AI_INTENTION_FOLLOW) thinkFollow(); } catch(Exception e) { _log.error("", e); } finally { _thinking = false; } } protected void thinkFollow() { NpcInstance actor = getActor(); Creature target = actor.getFollowTarget(); //Находимся слишком далеко цели, либо цель не пригодна для следования, либо не можем перемещаться if(target == null || target.isAlikeDead() || actor.getDistance(target) > 4000 || actor.isMovementDisabled()) { clientActionFailed(); return; } //Уже следуем за этой целью if(actor.isFollow() && actor.getFollowTarget() == target) { clientActionFailed(); return; } //Находимся достаточно близко if(actor.isInRange(target, Config.FOLLOW_RANGE + 20)) clientActionFailed(); if(_followTask != null) { _followTask.cancel(false); _followTask = null; } _followTask = ThreadPoolManager.getInstance().schedule(new ThinkFollow(), 250L); } protected class ThinkFollow extends RunnableImpl { public NpcInstance getActor() { return FollowNpc.this.getActor(); } @Override public void runImpl() { NpcInstance actor = getActor(); if(actor == null) return; Creature target = actor.getFollowTarget(); if(target == null || target.isAlikeDead() || actor.getDistance(target) > 4000) { setIntention(CtrlIntention.AI_INTENTION_ACTIVE); return; } if(!actor.isInRange(target, Config.FOLLOW_RANGE + 20) && (!actor.isFollow() || actor.getFollowTarget() != target)) { Location loc = new Location(target.getX() + Rnd.get(-60, 60), target.getY() + Rnd.get(-60, 60), target.getZ()); actor.followToCharacter(loc, target, Config.FOLLOW_RANGE, false); } _followTask = ThreadPoolManager.getInstance().schedule(this, 250L); } } }
[ "l2agedev@gmail.com" ]
l2agedev@gmail.com
fc26f163fe4db3bd6dd097e6b474f45c2068bc0b
58ce44ff5fcc13be7876dd903e700b5be989ab19
/JavaWork/STS14_Transaction/src/main/java/com/lec/sts14_transaction/TicketDTO.java
da665cfcf9114a208e2e5427f773e66659a27b1a
[]
no_license
binna/full-stack
eb78836414a8d60d5dc5e78f5abc57b9348af48d
9e6990e1ce7eff8a515603b1cd71b25660b40f80
refs/heads/main
2023-04-23T08:50:52.441080
2021-05-15T15:33:05
2021-05-15T15:33:05
320,798,523
0
0
null
null
null
null
UTF-8
Java
false
false
396
java
package com.lec.sts14_transaction; public class TicketDTO { private String userId; private int ticketCount; public final String getUserId() { return userId; } public final void setUserId(String userId) { this.userId = userId; } public final int getTicketCount() { return ticketCount; } public final void setTicketCount(int ticketCount) { this.ticketCount = ticketCount; } }
[ "every5116@naver.com" ]
every5116@naver.com
23370aae1067b1c10ceee2af9507e1fffc4eea83
7e12fce67d9a726d002fe40fa8be806182ee6354
/WebserviceDemo/ws-server-springboot/src/main/java/com/zj/demo/WsWebConfiguration.java
6312364bf5edb888cb96a428bca0643ce07a7922
[]
no_license
zhujiancom/MyDemoGroup
85eb409c2b34fa54b8395c4f5f9a1f569b8e77e3
43981851b65efe00c5358d7fc2fe5426afcf8d38
refs/heads/master
2020-04-01T06:32:00.880640
2019-05-09T03:13:30
2019-05-09T03:13:30
152,952,094
0
0
null
null
null
null
UTF-8
Java
false
false
1,735
java
package com.zj.demo; import org.springframework.boot.web.servlet.ServletRegistrationBean; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.io.ClassPathResource; import org.springframework.ws.config.annotation.EnableWs; import org.springframework.ws.transport.http.MessageDispatcherServlet; import org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition; import org.springframework.xml.xsd.SimpleXsdSchema; import org.springframework.xml.xsd.XsdSchema; /** * Creator: zhuji * Date: 2018/10/14 * Time: 14:27 * Description: */ @Configuration @EnableWs public class WsWebConfiguration { @Bean public ServletRegistrationBean messageDispatcherServlet(ApplicationContext context) { MessageDispatcherServlet messageDispatcherServlet = new MessageDispatcherServlet(); messageDispatcherServlet.setApplicationContext(context); messageDispatcherServlet.setTransformWsdlLocations(true); return new ServletRegistrationBean(messageDispatcherServlet, "/ws/*"); } @Bean(name = "students") public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema studentsSchema) { DefaultWsdl11Definition definition = new DefaultWsdl11Definition(); definition.setPortTypeName("StudentPort"); definition.setTargetNamespace("http://com.zj.demo.ws/students"); definition.setLocationUri("/ws"); definition.setSchema(studentsSchema); return definition; } @Bean public XsdSchema studentsSchema() { return new SimpleXsdSchema(new ClassPathResource("xsd/student-details.xsd")); } }
[ "eric87com@gmail.com" ]
eric87com@gmail.com
9e967ed7df43a0b2ad4714661a4485e5e15d227b
b35fadf8d375525e320751e25893f6f69a04e37d
/leimingtech-cms/src/main/java/com/leimingtech/cms/service/impl/contentcatpriv/ContentCatPrivServiceImpl.java
6f99e4e331bb20fd20912f3d0f6d3f58e510cc67
[]
no_license
dockercms/cms-4.0
8e41fca1142e121861a86006afaf378327f1917b
8f390cc00848124daeb997b8c09aefa0f465572c
refs/heads/master
2021-05-19T03:38:03.644558
2019-12-06T02:10:27
2019-12-06T02:10:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,002
java
package com.leimingtech.cms.service.impl.contentcatpriv; import java.util.Date; import java.util.HashSet; import java.util.List; import java.util.Set; import com.leimingtech.core.entity.*; import net.sf.json.JSONArray; import net.sf.json.JSONObject; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.leimingtech.cms.service.contentcatpriv.ContentCatPrivServiceI; import com.leimingtech.core.service.ContentCatServiceI; import com.leimingtech.core.service.SiteServiceI; import com.leimingtech.core.service.impl.CommonServiceImpl; /** * PC栏目权限管理接口实现 * * @author liuzhen * */ @Service("contentCatPrivService") @Transactional public class ContentCatPrivServiceImpl extends CommonServiceImpl implements ContentCatPrivServiceI { /**栏目管理接口*/ @Autowired private ContentCatServiceI contentCatService; /**站点管理接口*/ @Autowired private SiteServiceI siteService; @Override public JSONArray loadContentCatTree(String roleId) { List<ContentCatPrivEntity> contentCatPrivList = findByProperty(ContentCatPrivEntity.class, "TSRole.id", roleId); Set<String> set = new HashSet<String>(); for(ContentCatPrivEntity contentCatPriv:contentCatPrivList){ if(null!=contentCatPriv.getContentCatEntity()){ set.add(contentCatPriv.getContentCatEntity().getId()); } } List<SiteEntity> sites = siteService.siteList(); JSONArray sitesJsonArray=new JSONArray(); for (SiteEntity site : sites) { JSONObject sitejsonObject = new JSONObject(); sitejsonObject.put("id",site.getId()); sitejsonObject.put("name", site.getSiteName()); sitejsonObject.put("open", true); sitejsonObject.put("checked", true); sitesJsonArray.add(sitejsonObject); sitesJsonArray.addAll(this.contentCatTree(set, site.getId())); } return sitesJsonArray; } /** * 获取指定站点中的栏目 * * @param set * @param siteid * @return */ private JSONArray contentCatTree(Set<String> set, String siteid) { List<ContentCatVOTreeEntity> contentCatList=contentCatService.getSimpleAllBySite(siteid);//获取站点下所有栏目数据,返回字段比较简洁,针对ztree使用 JSONArray jsonArray = new JSONArray(); for (ContentCatVOTreeEntity contentCat : contentCatList) { JSONObject json = new JSONObject(); json.put("id", contentCat.getId()); json.put("name", contentCat.getName()); json.put("open", true); if(StringUtils.isBlank(contentCat.getParentid())){ json.put("pId",siteid); }else{ json.put("pId",contentCat.getParentid()); } if (set.contains(contentCat.getId())) { json.put("checked", true); } else { json.put("checked", false); } jsonArray.add(json); } return jsonArray; } @Override public void saveContentCatPriv(String roleId, String funVal) { ContentCatPrivEntity contentCatPriv = new ContentCatPrivEntity(); String[] funValArray = funVal.split(","); TSRole role = getEntity(TSRole.class, roleId); List<ContentCatPrivEntity> contentCatPrivList = findByProperty(ContentCatPrivEntity.class, "TSRole.id", roleId); Set<String> flag = new HashSet<String>(); //当前角色没有栏目权限 if(contentCatPrivList.size()==0){ for(int i=0;i<funValArray.length;i++){ String funValId = funValArray[i]; if(StringUtils.isEmpty(funValId)){ continue; } contentCatPriv = new ContentCatPrivEntity(); contentCatPriv.setTSRole(role);//添加角色Id ContentCatEntity contentCat = null; if(StringUtils.isNotEmpty(funValId)){ contentCat = getEntity(ContentCatEntity.class, String.valueOf(funValId)); } contentCatPriv.setContentCatEntity(contentCat);//添加栏目Id contentCatPriv.setCreatedtime(new Date()); saveOrUpdate(contentCatPriv); } }else{ for(int k=0;k<contentCatPrivList.size();k++){ contentCatPriv = contentCatPrivList.get(k); String contentCatId="XXXXXX"; if(contentCatPriv.getContentCatEntity()!=null){ contentCatId = contentCatPriv.getContentCatEntity().getId(); } flag.add(contentCatId); //去掉已勾选的项 if(!funVal.contains(","+contentCatId+",")){ delete(contentCatPriv); } } for(int i=0;i<funValArray.length;i++){ String funValId = funValArray[i]; if(StringUtils.isEmpty(funValId)){ continue; } if(!flag.contains(funValId)){ contentCatPriv = new ContentCatPrivEntity(); contentCatPriv.setTSRole(role);//添加角色Id ContentCatEntity contentCat = null; if(StringUtils.isNotEmpty(funValId)){ contentCat = getEntity(ContentCatEntity.class, String.valueOf(funValId)); } if(contentCat!=null){ contentCatPriv.setContentCatEntity(contentCat);//添加栏目Id contentCatPriv.setCreatedtime(new Date()); saveOrUpdate(contentCatPriv); } } } } } }
[ "pixiaoyong@leimingtech.com" ]
pixiaoyong@leimingtech.com
f8a222f30db94b4c39d11dda26a5fd24cf3236e0
fe06f97c2cf33a8b4acb7cb324b79a6cb6bb9dac
/java/po/EHU_TACT/IErrimphwbPo.java
9095206838677bc39a8aa1264560f0bafbc90cb2
[]
no_license
HeimlichLin/TableSchema
3f67dae0b5b169ee3a1b34837ea9a2d34265f175
64b66a2968c3a169b75d70d9e5cf75fa3bb65354
refs/heads/master
2023-02-11T09:42:47.210289
2023-02-01T02:58:44
2023-02-01T02:58:44
196,526,843
0
0
null
2022-06-29T18:53:55
2019-07-12T07:03:58
Java
UTF-8
Java
false
false
3,945
java
package com.doc.common.po; public interface IErrimphwbPo { String getBagno(); void setBagno(final String bagno); String getDeclno(); void setDeclno(final String declno); String getDecltype(); void setDecltype(final String decltype); String getMwb(); void setMwb(final String mwb); String getHwb(); void setHwb(final String hwb); String getBoxno(); void setBoxno(final String boxno); String getClearancetype(); void setClearancetype(final String clearancetype); java.sql.Timestamp getReleasetime(); void setReleasetime(final java.sql.Timestamp releasetime); java.sql.Timestamp getCancelrelease(); void setCancelrelease(final java.sql.Timestamp cancelrelease); String getManuclearancetype(); void setManuclearancetype(final String manuclearancetype); BigDecimal getPiece(); void setPiece(final BigDecimal piece); String getUnit(); void setUnit(final String unit); BigDecimal getWeight(); void setWeight(final BigDecimal weight); String getIndicator(); void setIndicator(final String indicator); BigDecimal getDutypayment(); void setDutypayment(final BigDecimal dutypayment); String getExaminationnote(); void setExaminationnote(final String examinationnote); String getIe(); void setIe(final String ie); BigDecimal getGcipiece(); void setGcipiece(final BigDecimal gcipiece); java.sql.Timestamp getGcidate1(); void setGcidate1(final java.sql.Timestamp gcidate1); java.sql.Timestamp getGcidate2(); void setGcidate2(final java.sql.Timestamp gcidate2); BigDecimal getGciweight(); void setGciweight(final BigDecimal gciweight); String getChws(); void setChws(final String chws); BigDecimal getGcopiece(); void setGcopiece(final BigDecimal gcopiece); java.sql.Timestamp getGcodate1(); void setGcodate1(final java.sql.Timestamp gcodate1); java.sql.Timestamp getGcodate2(); void setGcodate2(final java.sql.Timestamp gcodate2); BigDecimal getGcobagsn(); void setGcobagsn(final BigDecimal gcobagsn); String getClosemark(); void setClosemark(final String closemark); String getExpressid(); void setExpressid(final String expressid); String getAirlineid(); void setAirlineid(final String airlineid); String getFlightno(); void setFlightno(final String flightno); String getFlightdest(); void setFlightdest(final String flightdest); java.sql.Timestamp getFlightdate(); void setFlightdate(final java.sql.Timestamp flightdate); BigDecimal getCancelgco(); void setCancelgco(final BigDecimal cancelgco); java.sql.Timestamp getLastupdate(); void setLastupdate(final java.sql.Timestamp lastupdate); String getHoldarea(); void setHoldarea(final String holdarea); String getHoldreason(); void setHoldreason(final String holdreason); String getExpbagno(); void setExpbagno(final String expbagno); String getGciws(); void setGciws(final String gciws); String getGciuser(); void setGciuser(final String gciuser); String getGcows(); void setGcows(final String gcows); String getGcouser(); void setGcouser(final String gcouser); String getChargebox(); void setChargebox(final String chargebox); java.sql.Timestamp getChargedate(); void setChargedate(final java.sql.Timestamp chargedate); String getFrozen(); void setFrozen(final String frozen); java.sql.Timestamp getPrintduty(); void setPrintduty(final java.sql.Timestamp printduty); String getPrintuser(); void setPrintuser(final String printuser); BigDecimal getPrintsn(); void setPrintsn(final BigDecimal printsn); java.sql.Timestamp getGcilock(); void setGcilock(final java.sql.Timestamp gcilock); String getLockuser(); void setLockuser(final String lockuser); String getLastdeclno(); void setLastdeclno(final String lastdeclno); String getLastdecltype(); void setLastdecltype(final String lastdecltype); }
[ "jerry.l@acer.com" ]
jerry.l@acer.com
2a4ff5a23b67d7fc40f5b3401f9e90f3d74f6b2b
2f4a058ab684068be5af77fea0bf07665b675ac0
/app/com/facebook/katana/service/method/UsersSearch$DeleteThread.java
f47e5858954045a81ff09f02decb401bb53eeb09
[]
no_license
cengizgoren/facebook_apk_crack
ee812a57c746df3c28fb1f9263ae77190f08d8d2
a112d30542b9f0bfcf17de0b3a09c6e6cfe1273b
refs/heads/master
2021-05-26T14:44:04.092474
2013-01-16T08:39:00
2013-01-16T08:39:00
8,321,708
1
0
null
null
null
null
UTF-8
Java
false
false
512
java
package com.facebook.katana.service.method; import java.util.HashMap; public class UsersSearch$DeleteThread extends Thread { public UsersSearch$DeleteThread(UsersSearch paramUsersSearch) { } public void run() { UsersSearch.a(this.a, new HashMap()); this.a.a(200, null, null); } } /* Location: /data1/software/jd-gui/com.facebook.katana_2.0_liqucn.com-dex2jar.jar * Qualified Name: com.facebook.katana.service.method.UsersSearch.DeleteThread * JD-Core Version: 0.6.0 */
[ "macluz@msn.com" ]
macluz@msn.com
1047438450cfa7abd3c61cc2935924a04932dbf1
ec36892fa87ae0818a9770da5e0468ebc093db16
/service-module/module-platform-configuration/src/main/java/org/module/platform/configuration/service/BoneScoreTableService.java
8b43a632b539b06264db2441fe6dff0f1cd7c7bd
[]
no_license
wanghuaqiang0121/micro-service
365033db8ba17c8214c659830d52dd206b3ef4f6
ab64cce33efe7cbf32aa7607e91dd6d12c049dcf
refs/heads/master
2022-06-22T03:21:55.767111
2019-06-05T10:39:18
2019-06-05T10:39:18
190,375,375
0
1
null
2022-06-17T02:11:23
2019-06-05T10:32:24
Java
UTF-8
Java
false
false
739
java
package org.module.platform.configuration.service; import java.util.List; import java.util.Map; import org.module.platform.configuration.dao.BoneScoreTableMapper; import org.module.platform.configuration.domain.BoneScoreTable; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class BoneScoreTableService { @Autowired private BoneScoreTableMapper boneScoreTableMapper; public List<Map<String, Object>> getBoneType(BoneScoreTable boneScoreTable) { return boneScoreTableMapper.getBoneType(boneScoreTable); } public List<Map<String, Object>> getBoneGrade(BoneScoreTable boneScoreTable) { return boneScoreTableMapper.getBoneGrade(boneScoreTable); } }
[ "1060356949@qq.com" ]
1060356949@qq.com
a47e7bee214c5ce4f1a75a6e666eb37570699ca5
1b8de4feb0bddc44683cb80195f8cd59eb55aa5a
/janus-monitor/src/main/java/org/xujin/janus/monitor/JanusEvent.java
44f73fb2154c488f248f929e0a6f8061630d9df3
[]
no_license
hetaoo/Janus
465bb506f30cee0b2df93c1299d98b1669bcb7fa
6c409d8944016c537c3c24848717e92926e2cea5
refs/heads/master
2023-02-05T09:10:19.210416
2020-12-31T03:27:44
2020-12-31T03:27:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
266
java
package org.xujin.janus.monitor; import org.xujin.janus.monitor.constant.EventLevel; /** * @author: gan * @date: 2020/6/9 */ public class JanusEvent { public static void report(String name, String type, EventLevel eventLevel, Throwable throwable) { } }
[ "Software_King@qq.com" ]
Software_King@qq.com
4da80032f83d861f5c4858abca6cd221dfda26eb
855c85f026504b90192acbbb131041f4bf195e87
/src/main/java/com/example/demo/controller/FrontController.java
b7f5280d47d2ebaf03072e2e3b24547f15bd56a8
[]
no_license
Ilxom1992/Spring_security_leeson_1
a7623aa382617badbc6eac36e85f5a1571861c21
f425b16285928472ce9d913371fcf89cffc9ce7c
refs/heads/master
2023-04-09T21:05:13.891243
2021-04-02T01:53:17
2021-04-02T01:53:17
353,874,833
0
0
null
null
null
null
UTF-8
Java
false
false
276
java
package com.example.demo.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class FrontController { @GetMapping String getIndex(){ return null; } }
[ "ilxom.xojamurodov@gmail.com" ]
ilxom.xojamurodov@gmail.com
b2f1fd22da84f3e708c0ed36c84d30ac0198d7b4
0a5b533571ade9d5ac00149911953f7c8749dc7d
/src/osv/model/players/combat/effects/bolts/EmeraldBoltSpecial.java
c429f2a465a809f754dfe89b1048bcb0bb82a37e
[]
no_license
DKisKING/-R-rY-eZ-g9EG-Server
b6768e3e5b00b2f708afc361d1ba83f326984bc3
ee5b95357577bd6caf3266180d0301bfa73f3828
refs/heads/master
2021-06-25T23:37:52.395201
2017-09-10T20:41:08
2017-09-10T20:41:08
102,985,462
0
0
null
2017-09-11T06:46:16
2017-09-09T21:16:36
Java
UTF-8
Java
false
false
1,139
java
package osv.model.players.combat.effects.bolts; import java.util.Optional; import osv.model.entity.HealthStatus; import osv.model.npcs.NPC; import osv.model.players.Player; import osv.model.players.combat.Damage; import osv.model.players.combat.DamageEffect; import osv.model.players.combat.range.RangeExtras; import osv.util.Misc; public class EmeraldBoltSpecial implements DamageEffect { @Override public void execute(Player attacker, Player defender, Damage damage) { int change = Misc.random((int) (damage.getAmount())); damage.setAmount(change); RangeExtras.createCombatGraphic(attacker, defender, 752, true); defender.getHealth().proposeStatus(HealthStatus.POISON, 5, Optional.empty()); } @Override public void execute(Player attacker, NPC defender, Damage damage) { if (defender.getDefinition().getNpcName() == null) { return; } int change = Misc.random((int) (damage.getAmount())); damage.setAmount(change); RangeExtras.createCombatGraphic(attacker, defender, 752, true); } @Override public boolean isExecutable(Player operator) { return RangeExtras.boltSpecialAvailable(operator, 9241); } }
[ "dkisking123@hotmail.com" ]
dkisking123@hotmail.com
4f8cbfd66afcf54ae433c270ffd4fcbc25a9d07c
f6899a2cf1c10a724632bbb2ccffb7283c77a5ff
/glassfish-3.0/ejb/ejb-container/src/main/java/org/glassfish/ejb/embedded/EmbeddedEjbContainer.java
91dfdbc5fae6ae3f1bf961012653833dca785839
[]
no_license
Appdynamics/OSS
a8903058e29f4783e34119a4d87639f508a63692
1e112f8854a25b3ecf337cad6eccf7c85e732525
refs/heads/master
2023-07-22T03:34:54.770481
2021-10-28T07:01:57
2021-10-28T07:01:57
19,390,624
2
13
null
2023-07-08T02:26:33
2014-05-02T22:42:20
null
UTF-8
Java
false
false
3,756
java
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL") (collectively, the "License"). You * may not use this file except in compliance with the License. You can obtain * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific * language governing permissions and limitations under the License. * * When distributing the software, include this License Header Notice in each * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt. * Sun designates this particular file as subject to the "Classpath" exception * as provided by Sun in the GPL Version 2 section of the License file that * accompanied this code. If applicable, add the following below the License * Header, with the fields enclosed by brackets [] replaced by your own * identifying information: "Portions Copyrighted [year] * [name of copyright owner]" * * Contributor(s): * * If you wish your version of this file to be governed by only the CDDL or * only the GPL Version 2, indicate your decision by adding "[Contributor] * elects to include this software in this distribution under the [CDDL or GPL * Version 2] license." If you don't indicate a single choice of license, a * recipient has the option to distribute your version of this file under * either the CDDL, the GPL Version 2 or to extend the choice of license to * its licensees as provided above. However, if you add GPL Version 2 code * and therefore, elected the GPL Version 2 license, then the option applies * only if the new code is made subject to such option by the copyright * holder. * */ package org.glassfish.ejb.embedded; import org.glassfish.api.embedded.EmbeddedContainer; import org.glassfish.api.embedded.Port; import org.glassfish.api.embedded.Server; import org.glassfish.api.embedded.LifecycleException; import org.glassfish.api.container.Sniffer; import org.glassfish.api.admin.ServerEnvironment; import org.jvnet.hk2.annotations.Service; import org.jvnet.hk2.annotations.Inject; import org.jvnet.hk2.component.Habitat; import org.jvnet.hk2.config.ConfigSupport; import org.jvnet.hk2.config.SingleConfigCode; import org.jvnet.hk2.config.TransactionFailure; import java.util.List; import java.util.ArrayList; import java.util.logging.Logger; import java.beans.PropertyVetoException; import com.sun.enterprise.config.serverbeans.EjbContainer; import com.sun.enterprise.config.serverbeans.Config; /** * @author Jerome Dochez */ public class EmbeddedEjbContainer implements EmbeddedContainer { final Habitat habitat; EmbeddedEjbContainer(EjbBuilder builder) { this.habitat = builder.habitat; } public void bind(Port port, String protocol) { } public List<Sniffer> getSniffers() { List<Sniffer> sniffers = new ArrayList<Sniffer>(); addSniffer(sniffers, "Ejb"); addSniffer(sniffers, "Security"); addSniffer(sniffers, "jpa"); addSniffer(sniffers, "jpaCompositeSniffer"); addSniffer(sniffers, "ear"); addSniffer(sniffers, "weld"); return sniffers; } private void addSniffer(List<Sniffer> sniffers, String name) { Sniffer sniffer = habitat.getComponent(Sniffer.class, name); if (sniffer != null) { sniffers.add(sniffer); } } public void start() throws LifecycleException { } public void stop() throws LifecycleException { } }
[ "ddimalanta@appdynamics.com" ]
ddimalanta@appdynamics.com
fba7468181fa390109a24f9be29fb65818f059b8
278a44f854ce69a464bb4f96e51a4782cd17b846
/java/poi-utils/src/main/java/com/chris/poi/xls/XlsBusinessCellCallback.java
9079a8a14fed8c6fd6bdf5be2ea0f8ba22bdf023
[]
no_license
Yi-Kuan/development-libs
e308a61b43b6fc903b4843ce7fa8af826bf676fa
47398214fbdb9aeb137b0cca82fa9b18518d3295
refs/heads/master
2021-05-26T10:52:54.045814
2020-02-19T17:49:43
2020-02-19T17:49:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
540
java
package com.chris.poi.xls; import org.apache.poi.ss.usermodel.Cell; /** * Created by Chris Chen * 2018/09/27 * Explain: 电子表工作簿设置 */ public interface XlsBusinessCellCallback<T> { /** * 在正式处理单元格数据之前执行 * * @param cell 单元格 * @param val 值 */ void preHandleCell(Cell cell, T val); /** * 在正式处理完单元格数据之后执行 * * @param cell 单元格 * @param val 值 */ void postHandleCell(Cell cell, T val); }
[ "chrischen2018@163.com" ]
chrischen2018@163.com
caed2337ad205fdd45d36d7f10e7aebf544e00dc
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
/genny_JavaWithoutLambdasApi21/applicationModule/src/test/java/applicationModulepackageJava19/Foo542Test.java
c046e16862b6b49582ee29b4fa0ee17e94ef717a
[]
no_license
NikitaKozlov/generated-project-for-desugaring
0bc1443ab3ddc84cd289331c726761585766aea7
81506b3711004185070ca4bb9a93482b70011d36
refs/heads/master
2020-03-20T00:35:06.996525
2018-06-12T09:30:37
2018-06-12T09:30:37
137,049,317
0
0
null
null
null
null
UTF-8
Java
false
false
482
java
package applicationModulepackageJava19; import org.junit.Test; public class Foo542Test { @Test public void testFoo0() { new Foo542().foo0(); } @Test public void testFoo1() { new Foo542().foo1(); } @Test public void testFoo2() { new Foo542().foo2(); } @Test public void testFoo3() { new Foo542().foo3(); } @Test public void testFoo4() { new Foo542().foo4(); } @Test public void testFoo5() { new Foo542().foo5(); } }
[ "nikita.e.kozlov@gmail.com" ]
nikita.e.kozlov@gmail.com
c4974a908d278aec6381acea7a0c5dc11b78202f
f1f1b17696632d865251a4f952cfd8dd74e0cc63
/IOCProj3-SetterInjection/src/com/nt/test/SetterInjectionTest.java
03c060d176a54c0daeb8141132c1d49e078390f8
[]
no_license
natarazworld/NTSP613Repo
99c178580b6c1d098618f13f1c43cc01f0c0e164
554494d1e020502bd8ed25036b6b22813e0a09b0
refs/heads/master
2023-07-01T00:46:29.807313
2021-08-04T13:35:14
2021-08-04T13:35:14
320,582,195
17
18
null
null
null
null
UTF-8
Java
false
false
735
java
package com.nt.test; import org.springframework.beans.factory.xml.XmlBeanFactory; import org.springframework.core.io.FileSystemResource; import com.nt.beans.WishMessageGenerator; public class SetterInjectionTest { public static void main(String[] args) { // Hold the name and location of spring bean file FileSystemResource res=new FileSystemResource("src/com/nt/cfgs/applicationContext.xml"); //create IOC container XmlBeanFactory factory=new XmlBeanFactory(res); //get target Spring bean class object WishMessageGenerator generator=(WishMessageGenerator) factory.getBean("wmg"); //invoke the b.method System.out.println("result="+generator.generateWishMessage("raja")); }//main }//class
[ "Nareshit@DESKTOP-IUDAAVL" ]
Nareshit@DESKTOP-IUDAAVL
0b0d4c383df943e03fa0e6532aa873f14c6f0f54
4dd6f65d3f59117b75bd5bd9ed63bbef87778c1e
/src/test/java/testNgClasses/Example.java
895ffb33b42180ea7f44d5c802deb9c1562c92cc
[]
no_license
eyilmaz4/TestNG_IQ
0b2c5cc5e405b0a842e941dfb881cc31aef1a05a
9ac8ded3b85cf8c37e19d564350d28ce7a8490d7
refs/heads/master
2023-05-11T06:30:00.395450
2020-07-21T14:04:45
2020-07-21T14:04:45
281,414,245
0
0
null
2023-05-09T18:52:55
2020-07-21T14:04:36
Java
UTF-8
Java
false
false
2,330
java
package testNgClasses; import io.github.bonigarcia.wdm.WebDriverManager; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.interactions.Actions; import org.testng.Assert; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.Parameters; import org.testng.annotations.Test; import java.util.concurrent.TimeUnit; /** * @author: Esra */ public class Example { WebDriver driver; @BeforeClass public void setUp(){ WebDriverManager.chromedriver().setup(); driver = new ChromeDriver(); driver.manage().window().maximize(); driver.manage().deleteAllCookies(); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); driver.get("https://opensource-demo.orangehrmlive.com/"); } @AfterClass public void tearDown(){ driver.quit(); } @Parameters({}) @Test public void login() { driver.findElement(By.id("txtUsername")).sendKeys("Admin"); driver.findElement(By.id("txtPassword")).sendKeys("admin123"); driver.findElement(By.xpath("//input[@id='btnLogin']")).click(); } @Test(dependsOnMethods = "login") public void addEmployee() throws InterruptedException { Actions action = new Actions(driver); WebElement pim = driver.findElement(By.xpath("//a[@id='menu_pim_viewPimModule']/b")); action.moveToElement(pim).build().perform(); Thread.sleep(5000); WebElement add = driver.findElement(By.linkText("Add Employee")); add.click(); driver.findElement(By.id("firstName")).sendKeys("Orhan"); driver.findElement(By.id("lastName")).sendKeys("Demirci"); String expectedId = driver.findElement(By.cssSelector("#employeeId")).getAttribute("value"); driver.findElement(By.id("btnSave")).click(); String actualId =driver.findElement(By.xpath("//input[@id='personal_txtEmployeeId']")).getAttribute("value"); Assert.assertEquals(actualId,expectedId,"Fail"); driver.findElement(By.id("welcome")).click(); Thread.sleep(5000); driver.findElement(By.linkText("Logout")).click(); } }
[ "eyilmaz4@na.edu" ]
eyilmaz4@na.edu
d95872db603cd290f9b958f57d2f8e62fc9297e3
4277f4cf6dbace9c7743d1cd280e61789f6f96a1
/java/com/polis/gameserver/network/serverpackets/ExShowSeedInfo.java
a4920882816ec68896dd83a66966bd18e337cdc0
[]
no_license
polis77/polis_server_h5
cad220828de29e5b5a2267e2870095145d56179d
7e8789baa7255065962b5fdaa1aa7f379d74ff84
refs/heads/master
2021-01-23T21:53:34.935991
2017-02-25T07:35:03
2017-02-25T07:35:03
83,112,850
0
0
null
null
null
null
UTF-8
Java
false
false
1,979
java
/* * Copyright (C) 2004-2014 L2J Server * * This file is part of L2J Server. * * L2J Server is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * L2J Server is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package com.polis.gameserver.network.serverpackets; import java.util.List; import com.polis.gameserver.datatables.ManorData; import com.polis.gameserver.model.SeedProduction; /** * @author l3x */ public class ExShowSeedInfo extends L2GameServerPacket { private final List<SeedProduction> _seeds; private final int _manorId; public ExShowSeedInfo(int manorId, List<SeedProduction> seeds) { _manorId = manorId; _seeds = seeds; } @Override protected void writeImpl() { writeC(0xFE); // Id writeH(0x23); // SubId writeC(0x00); writeD(_manorId); // Manor ID writeD(0x00); if (_seeds == null) { writeD(0); return; } writeD(_seeds.size()); for (SeedProduction seed : _seeds) { writeD(seed.getId()); // Seed id writeQ(seed.getCanProduce()); // Left to buy writeQ(seed.getStartProduce()); // Started amount writeQ(seed.getPrice()); // Sell Price writeD(ManorData.getInstance().getSeedLevel(seed.getId())); // Seed Level writeC(0x01); // reward 1 Type writeD(ManorData.getInstance().getRewardItemBySeed(seed.getId(), 1)); // Reward 1 Type Item Id writeC(0x01); // reward 2 Type writeD(ManorData.getInstance().getRewardItemBySeed(seed.getId(), 2)); // Reward 2 Type Item Id } } }
[ "policelazo@gmail.com" ]
policelazo@gmail.com
40b4de465b834503842ac07b6ed55afd4537e166
0cb8bdb7fccaa37f17ee387ef4dacaac631f68c9
/src/com/hackerrank/Stack/AndOrXOR.java
463b00e24925f58a2d003e91350923ab18e43f35
[]
no_license
RahilModi/hackerrank
a62e65c5dc8e3ddaa3f2ef94b2aac5a9cee2dfa6
a755e45580ab8a9d062553404c8deaeabd851d62
refs/heads/master
2021-01-20T21:46:01.097621
2017-09-10T06:51:05
2017-09-10T06:51:05
101,790,940
0
0
null
null
null
null
UTF-8
Java
false
false
1,174
java
package com.hackerrank.Stack; import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class AndOrXOR { public static void main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ Scanner in = new Scanner(System.in); int number = in.nextInt(); Stack<Integer> stack = new Stack<>(); int min_xor=0,max_xor=0; int[] temp = new int[number]; for(int i =0 ;i < number ;i++){ temp[i]=in.nextInt(); } for(int i =0 ;i < number ;i++){ while(!stack.isEmpty()){ min_xor = temp[i]^stack.peek(); if(min_xor>max_xor){ max_xor = min_xor; } if(temp[i]<stack.peek()){ stack.pop(); }else{ break; } } stack.push(temp[i]); } System.out.println(max_xor); } }
[ "rmodi10@gmail.com" ]
rmodi10@gmail.com
dca86df1a27728d5b5eea856a6cf0b6aac7f3327
2ff1c36916a459fb76014d96d81fd04e9c9528b1
/apis/api-core/api-core-common/src/main/java/org/hoteia/qalingo/core/domain/ProductMarketingCustomerComment.java
72343ccfb13d2b0712ceb313b6300caecb948dc7
[ "Apache-2.0" ]
permissive
randeepbhatia/qalingo-b2c-engine
51f91c411f3bc179e6855cfa5bab42c307faa67a
62c764c0f8972d5528471d06ddcdeebf1681b16a
refs/heads/master
2020-12-31T03:16:13.449752
2013-12-24T15:29:23
2013-12-24T15:29:23
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,787
java
/** * Most of the code in the Qalingo project is copyrighted Hoteia and licensed * under the Apache License Version 2.0 (release version 0.7.0) * http://www.apache.org/licenses/LICENSE-2.0 * * Copyright (c) Hoteia, 2012-2013 * http://www.hoteia.com - http://twitter.com/hoteia - contact@hoteia.com * */ package org.hoteia.qalingo.core.domain; import java.util.Date; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; 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.OneToMany; import javax.persistence.OneToOne; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; @Entity @Table(name="TECO_PRODUCT_MARKETING_CUSTOMER_COMMENT") public class ProductMarketingCustomerComment extends AbstractAddress { /** * Generated UID */ private static final long serialVersionUID = 1424510557043858148L; @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name="ID", nullable=false) private Long id; @Column(name="COMMENT") private String comment; @Column(name="PRODUCT_MARKETING_CUSTOMER_COMMENT_ID") private Long productMarketingCustomerCommentId; @OneToOne(fetch = FetchType.LAZY, cascade = {CascadeType.MERGE, CascadeType.DETACH}) @JoinColumn(name="CUSTOMER_ID") private Customer customer; @Column(name="MARKET_AREA_ID") private Long marketAreaId; @Column(name="PRODUCT_MARKETING_ID") private Long productMarketingId; @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) @JoinColumn(name="PRODUCT_MARKETING_CUSTOMER_COMMENT_ID") private Set<ProductMarketingCustomerComment> customerComments = new HashSet<ProductMarketingCustomerComment>(); @Temporal(TemporalType.TIMESTAMP) @Column(name="DATE_CREATE") private Date dateCreate; @Temporal(TemporalType.TIMESTAMP) @Column(name="DATE_UPDATE") private Date dateUpdate; public ProductMarketingCustomerComment() { } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getComment() { return comment; } public void setComment(String comment) { this.comment = comment; } public Long getProductMarketingCustomerCommentId() { return productMarketingCustomerCommentId; } public void setProductMarketingCustomerCommentId(Long productMarketingCustomerCommentId) { this.productMarketingCustomerCommentId = productMarketingCustomerCommentId; } public Customer getCustomer() { return customer; } public void setCustomer(Customer customer) { this.customer = customer; } public Long getMarketAreaId() { return marketAreaId; } public void setMarketAreaId(Long marketAreaId) { this.marketAreaId = marketAreaId; } public Long getProductMarketingId() { return productMarketingId; } public void setProductMarketingId(Long productMarketingId) { this.productMarketingId = productMarketingId; } public Set<ProductMarketingCustomerComment> getCustomerComments() { return customerComments; } public void setCustomerComments(Set<ProductMarketingCustomerComment> customerComments) { this.customerComments = customerComments; } public Date getDateCreate() { return dateCreate; } public void setDateCreate(Date dateCreate) { this.dateCreate = dateCreate; } public Date getDateUpdate() { return dateUpdate; } public void setDateUpdate(Date dateUpdate) { this.dateUpdate = dateUpdate; } }
[ "denis@Hoteia-Laptop.home" ]
denis@Hoteia-Laptop.home
700b995583155b2f1344e3a2f31dbd2a121f94af
f51d514f6149166346bd6efd8887c839ef09a632
/gamecomposer/src/main/java/de/mirkosertic/gamecomposer/objectinspector/utils/LongPredicate.java
6f1381fa70e74c7bd2ac1568f9a5ce5053a92e09
[]
no_license
mirkosertic/GameComposer
fae3c72a381a640344e885ac9b3235fd86c8c954
bbe0c583c9bba894f3fa3e2f80eb0a73025e3f58
refs/heads/master
2023-08-16T22:59:10.068628
2023-04-28T07:41:10
2023-04-28T07:41:10
13,907,695
67
21
null
2023-09-12T04:52:16
2013-10-27T18:24:00
Java
UTF-8
Java
false
false
1,202
java
/* * Copyright 2016 Mirko Sertic * * 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 de.mirkosertic.gamecomposer.objectinspector.utils; import java.util.function.Predicate; public class LongPredicate implements Predicate<Object> { @Override public boolean test(Object aObject) { if (aObject instanceof String) { String theValue = (String) aObject; try { long theIntValue = Long.parseLong(theValue); return true; } catch (Exception e) { return false; } } if (aObject instanceof Long) { return true; } return false; } }
[ "mirko.sertic@web.de" ]
mirko.sertic@web.de
29ff4605431c037c542339f59a0fd717cdee3578
364bd91497a498b899c1de60e1ff028795eddbbc
/02Benchmarks/Openj9Test-Test/src/javaT/beans/XMLEncoder/java_util_Collections_SynchronizedMap.java
32bc48081fd97004693c9f797210679be5bb8612
[]
no_license
JavaTailor/CFSynthesis
8485f5d94cec335bedfdf18c88ddc523e05a0567
bf9421fea49469fbac554da91169cf07aae3e08c
refs/heads/master
2023-04-15T02:37:04.252151
2021-11-12T09:57:06
2021-11-12T09:57:06
402,928,654
4
1
null
null
null
null
UTF-8
Java
false
false
1,807
java
package javaT.beans.XMLEncoder; /* * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test * @bug 6505888 * @summary Tests SynchronizedMap encoding * @author Sergey Malenkov */ import java.util.Collections; import java.util.Map; public final class java_util_Collections_SynchronizedMap extends AbstractTest<Map<String, String>> { public static void main(String[] args) { new java_util_Collections_SynchronizedMap().test(true); } protected Map<String, String> getObject() { Map<String, String> map = Collections.singletonMap("key", "value"); return Collections.synchronizedMap(map); } protected Map<String, String> getAnotherObject() { Map<String, String> map = Collections.emptyMap(); return Collections.synchronizedMap(map); } }
[ "JavaTailorZYQ@gmail.com" ]
JavaTailorZYQ@gmail.com
564b9817dcf241149cf3ac113ffe7134bb6969a3
7a2c91813117a8d949571521510895ee53daad49
/src/main/java/com/alipay/api/domain/ZhimaDataMorseOperateSyncModel.java
b0310b4d8fd4f5397f842e2641fa8f934d6a6057
[ "Apache-2.0" ]
permissive
dut3062796s/alipay-sdk-java-all
eb5afb5b570fb0deb40d8c960b85a01d13506568
559180f4c370f7fcfef67a1c559768d11475c745
refs/heads/master
2020-07-03T21:00:06.124387
2019-06-23T01:13:43
2019-06-23T01:13:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,512
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 安全计算操作信息同步 * * @author auto create * @since 1.0, 2018-01-17 10:33:43 */ public class ZhimaDataMorseOperateSyncModel extends AlipayObject { private static final long serialVersionUID = 2222728549898682687L; /** * 外部商户发送给域内系统的信息 */ @ApiField("data") private String data; /** * 扩展字段,用于补充 */ @ApiField("extent_info") private String extentInfo; /** * 多方安全计算分配给商户的唯一id,由管理员分配给商户的唯一识别号; */ @ApiField("mid") private String mid; /** * 服务操作类型,商户同步信息到域内,类型枚举:revoke_dataset、public_dataset、approve_sercive;根据不同场景管理员分配; */ @ApiField("operate_type") private String operateType; public String getData() { return this.data; } public void setData(String data) { this.data = data; } public String getExtentInfo() { return this.extentInfo; } public void setExtentInfo(String extentInfo) { this.extentInfo = extentInfo; } public String getMid() { return this.mid; } public void setMid(String mid) { this.mid = mid; } public String getOperateType() { return this.operateType; } public void setOperateType(String operateType) { this.operateType = operateType; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
a69768798181538d63be75a959a7ca5f6be70915
ae8d78faca8bd2ee6975258f77cac37b769c9272
/src/tech/aistar/tx/IAccountDao.java
43cd3999d92bda08054f5ebdfcdf778b9fdfc811
[ "Apache-2.0" ]
permissive
guancgsuccess/jdbc
39c377b0801046000a4c79dac464c35158d171de
002c2425e68dffd6277c074c37153003f841e470
refs/heads/master
2020-05-19T11:25:32.408531
2019-05-07T09:16:51
2019-05-07T09:16:51
184,992,142
0
0
Apache-2.0
2019-05-06T06:37:06
2019-05-05T06:56:52
Java
UTF-8
Java
false
false
222
java
package tech.aistar.tx; /** * @author success * @version 1.0 * @description:本类用来演示: * @date 2019/5/5 0005 */ public interface IAccountDao { void transfer(String srcno,String targetno,double money); }
[ "849962874@qq.com" ]
849962874@qq.com
b569938c981c16e50324a41472bcc10ea710d55a
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
/genny_JavaWithLambdasApi21/applicationModule/src/main/java/applicationModulepackageJava6/Foo918.java
ec02ca4bed1a852108a4b3faac309bf98849fa22
[]
no_license
NikitaKozlov/generated-project-for-desugaring
0bc1443ab3ddc84cd289331c726761585766aea7
81506b3711004185070ca4bb9a93482b70011d36
refs/heads/master
2020-03-20T00:35:06.996525
2018-06-12T09:30:37
2018-06-12T09:30:37
137,049,317
0
0
null
null
null
null
UTF-8
Java
false
false
575
java
package applicationModulepackageJava6; public class Foo918 { public void foo0() { final Runnable anything0 = () -> System.out.println("anything"); new applicationModulepackageJava6.Foo917().foo9(); } public void foo1() { foo0(); } public void foo2() { foo1(); } public void foo3() { foo2(); } public void foo4() { foo3(); } public void foo5() { foo4(); } public void foo6() { foo5(); } public void foo7() { foo6(); } public void foo8() { foo7(); } public void foo9() { foo8(); } }
[ "nikita.e.kozlov@gmail.com" ]
nikita.e.kozlov@gmail.com
0589fe4a511e41da2cc299dfb17eb51bcfd7d898
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/6/6_c36551f2831c45d548b11f918b79164637c9b6a1/ColumnWizardPage/6_c36551f2831c45d548b11f918b79164637c9b6a1_ColumnWizardPage_t.java
5edceacdfde4ff33d4bf15f2f489fbf81d5f7d3d
[]
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,871
java
package am.lodge.code.scaffold.wizards.single; import java.sql.DatabaseMetaData; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.eclipse.jface.wizard.IWizardPage; import org.eclipse.jface.wizard.WizardPage; import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.layout.FormAttachment; import org.eclipse.swt.layout.FormData; import org.eclipse.swt.layout.FormLayout; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Tree; import org.eclipse.swt.widgets.TreeItem; import am.lodge.code.scaffold.database.Column; import am.lodge.code.scaffold.database.Table; import am.lodge.code.scaffold.util.Constants; import am.lodge.code.scaffold.util.TreeUtils; import am.lodge.code.scaffold.wizards.BaseNewWizard; public class ColumnWizardPage extends WizardPage { private Tree columnTree; private String table; private String schem; private boolean update = false; public ColumnWizardPage(String title){ super(title); setTitle(title); setPageComplete(false); } @Override public void createControl(Composite parent){ Composite body = new Composite(parent, SWT.NONE); body.setLayout(new FormLayout()); columnTree = new Tree(body, SWT.CHECK | SWT.BORDER); FormData formData = new FormData(); formData.left = new FormAttachment(0, 0); formData.top = new FormAttachment(0, 0); formData.right = new FormAttachment(100, -1); formData.bottom = new FormAttachment(100, -1); columnTree.setLayoutData(formData); columnTree.addSelectionListener(new SelectionAdapter(){ public void widgetSelected(SelectionEvent e){ if(e.detail == SWT.CHECK){ TreeItem item = (TreeItem)e.item; boolean oldState = isPageComplete(); boolean checked = item.getChecked(); TreeUtils.checkItems(item, checked); TreeUtils.checkPath(item.getParentItem(), checked, false); boolean state = getSelectColumns().size() > 0; setPageComplete(state); if(oldState != state) getWizard().getContainer().updateButtons(); } } }); setControl(body); } public void updateColumnTree(){ DatabaseMetaData dmd = ((BaseNewWizard)getWizard()).getDatabaseMetaData(); try{ TableWizardPage wizard = (TableWizardPage)getPreviousPage(); String _schem = wizard.getSelectSchem(); String _table = wizard.getSelectTable(); if(_schem.equals(schem) && _table.equals(table)){ return; } schem = _schem; table = _table; columnTree.removeAll(); TreeItem root = new TreeItem(columnTree, SWT.NONE); root.setText(table); Set<String> pks = new HashSet<String>(); ResultSet rs = dmd.getPrimaryKeys(null, schem, table); while(rs.next()){ pks.add(rs.getString("COLUMN_NAME")); } rs = dmd.getColumns(null, schem, table, "%"); while(rs.next()){ TreeItem item = new TreeItem(root, SWT.NONE); String name = rs.getString("COLUMN_NAME"); item.setText(name); item.setData(Constants.SQL_TYPE, rs.getString("TYPE_NAME")); item.setData(Constants.COLUMN_SIZE, rs.getInt("COLUMN_SIZE")); item.setData(Constants.DECIMAL_DIGITS, rs.getInt("DECIMAL_DIGITS")); item.setData(Constants.NULLABLE, rs.getInt("NULLABLE") == 1); item.setData(Constants.DESC, rs.getString("REMARKS")); if(pks.contains(name)) item.setData("pk", true); } update = true; }catch (SQLException e){ throw new RuntimeException(e); } } private List<TreeItem> getSelectColumns(){ List<TreeItem> itemList = new ArrayList<TreeItem>(); TreeItem[] items = columnTree.getItems()[0].getItems(); for(TreeItem item: items){ if(item.getChecked()){ itemList.add(item); } } return itemList; } private Map<String, Object> getData(){ Map<String, Object> result = new HashMap<String, Object>(); Set<String> imports = new HashSet<String>(); result.put(Constants.IMPORTS, imports); Table tableData = new Table(); result.put(Constants.TABLE, tableData); tableData.setName(table); String tableAliasname = ((TableWizardPage)getPreviousPage()).getAliasTableName(); tableData.setAliasName(tableAliasname); TreeItem[] items = columnTree.getItems()[0].getItems(); for(TreeItem item: items){ Column column = new Column(); column.setName(item.getText()); column.setSqlType((String)item.getData(Constants.SQL_TYPE)); column.setColumnSize((Integer)item.getData(Constants.COLUMN_SIZE)); column.setDecimalDigits((Integer)item.getData(Constants.DECIMAL_DIGITS)); column.setNullable((Boolean)item.getData(Constants.NULLABLE)); column.setDesc((String)item.getData(Constants.DESC)); if(item.getData("pk") != null){ tableData.getPrimaryKeys().add(column); }else{ tableData.getColumns().add(column); } if(item.getChecked()){ if(Constants.IMPORT_MAP.get(column.getSqlType()) != null){ imports.add(Constants.IMPORT_MAP.get(column.getSqlType())); } tableData.getSelectColumns().add(column); } } return result; } public IWizardPage getNextPage(){ ColumnDescWizardPage wizard = (ColumnDescWizardPage)super.getNextPage(); if(update){ wizard.updateColumnData(getData()); update = false; } return wizard; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
b65dc582ce9217ed7dcbf1c392d1cac60368a49a
27a13543c5a21811e696278b5212755ecdebca53
/hsco/src/main/java/hsco/mis/sup/SUP020201/SUP020201Controller.java
e3b96731f3d0aadf81494284f847a2155e1c5a57
[]
no_license
chaseDeveloper/hsco
9dad73c971500c4bd98adfefa3e91a91d26ca318
7052d6da3ac772cd3b13ec391818139355935916
refs/heads/master
2023-06-15T23:55:10.592683
2021-07-06T07:46:07
2021-07-06T07:46:07
383,377,343
0
0
null
null
null
null
UTF-8
Java
false
false
5,693
java
package hsco.mis.sup.SUP020201; import javax.annotation.Resource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import hsco.cmm.controller.BaseContoller; import hsco.cmm.ria.nexacro.NexacroConstant; import hsco.cmm.ria.nexacro.map.NexacroMapDTO; /** * <pre> * @Project Name : 화성도시공사 차세대정보시스템 * @Class Name : SUP020201Controller.java * @Description : * @author : 양성모 * @since : 2015. 10. 21. * @version : 1.0 * @see : * @COPYRIGHT (c) 2015 나눔아이씨티, Inc. All Right Reserved. * <pre> * ------------------------------------------------------------------ * Modification Information * ------------------------------------------------------------------ * 작성일 작성자 내용 * ------------------------------------------------------------------ * 2015. 10. 21. 양성모 최초생성 * </pre> */ @Controller public class SUP020201Controller extends BaseContoller { protected Logger log = LoggerFactory.getLogger(this.getClass()); @Resource(name="sup020201Service") SUP020201ServiceImpl sup020201Service; /** * 년도별 제안자 목록조회 * @param xpDto * @param model * @return ModelAndView * @throws Exception */ @RequestMapping("/hsco/mis/sup/SUP020201/selectYrPropsrList.do") public ModelAndView selectYrPropsrList(NexacroMapDTO xpDto, Model model) throws Exception { ModelAndView mav = new ModelAndView("nexacroMapView"); execService(sup020201Service, "selectYrPropsrList", xpDto, mav); mav.addObject(NexacroConstant.ERROR_CODE, "0"); mav.addObject(NexacroConstant.ERROR_MSG, "success.정상조회"); return mav; } /** * 제안목록조회 * @param xpDto * @param model * @return ModelAndView * @throws Exception */ @RequestMapping("/hsco/mis/sup/SUP020201/selectPropseMastrList.do") public ModelAndView selectPropseMastrList(NexacroMapDTO xpDto, Model model) throws Exception { ModelAndView mav = new ModelAndView("nexacroMapView"); execService(sup020201Service, "selectPropseMastrList", xpDto, mav); mav.addObject(NexacroConstant.ERROR_CODE, "0"); mav.addObject(NexacroConstant.ERROR_MSG, "success.정상조회"); return mav; } /** * 제안자 목록 조회 * @param xpDto * @param model * @return ModelAndView * @throws Exception */ @RequestMapping("/hsco/mis/sup/SUP020201/selectPropsePropsrList.do") public ModelAndView selectPropsePropsrList(NexacroMapDTO xpDto, Model model) throws Exception { ModelAndView mav = new ModelAndView("nexacroMapView"); execService(sup020201Service, "selectPropsePropsrList", xpDto, mav); mav.addObject(NexacroConstant.ERROR_CODE, "0"); mav.addObject(NexacroConstant.ERROR_MSG, "success.정상조회"); return mav; } /** * 제안자, 제안실시성과 조회 * @param xpDto * @param model * @return ModelAndView * @throws Exception */ @RequestMapping("/hsco/mis/sup/SUP020201/selectPropseOprtnList.do") public ModelAndView selectPropseOprtnList(NexacroMapDTO xpDto, Model model) throws Exception { ModelAndView mav = new ModelAndView("nexacroMapView"); execService(sup020201Service, "selectPropseOprtnList", xpDto, mav); mav.addObject(NexacroConstant.ERROR_CODE, "0"); mav.addObject(NexacroConstant.ERROR_MSG, "success.정상조회"); return mav; } /** * 제안등록 수정, 삭제, 등록 처리 * @param xpDto * @param model * @return ModelAndView * @throws Exception */ @RequestMapping("/hsco/mis/sup/SUP020201/savePropseMastr.do") public ModelAndView savePropseMastr(NexacroMapDTO xpDto, Model model) throws Exception { log.debug("제안등록 수정, 삭제, 등록 처리----------------------------------------------------!"); ModelAndView mav = new ModelAndView("nexacroMapView"); execService(sup020201Service, "savePropseMastr", xpDto, mav); mav.addObject(NexacroConstant.ERROR_CODE, "0"); mav.addObject(NexacroConstant.ERROR_MSG, "success.처리성공"); return mav; } /** * 첨부파일 조회 * * @param xpDto * @param model * @return * @throws Exception */ @RequestMapping("/hsco/mis/sup/SUP020201/selectFileList.do") public ModelAndView selectFileList(NexacroMapDTO xpDto, Model model) throws Exception { ModelAndView mav = new ModelAndView("nexacroMapView"); execService(sup020201Service, "selectFileList", xpDto, mav); mav.addObject(NexacroConstant.ERROR_CODE, "0"); mav.addObject(NexacroConstant.ERROR_MSG, "success.정상조회"); return mav; } /** * 첨부파일 Key 저장 * * @param xpDto * @param model * @return * @throws Exception */ @RequestMapping("/hsco/mis/sup/SUP020201/saveNewFileSn.do") public ModelAndView saveNewFileSn(NexacroMapDTO xpDto, Model model) throws Exception { ModelAndView mav = new ModelAndView("nexacroMapView"); execService(sup020201Service, "saveNewFileSn", xpDto, mav); mav.addObject(NexacroConstant.ERROR_CODE, "0"); mav.addObject(NexacroConstant.ERROR_MSG, "success.처리성공"); return mav; } }
[ "kdk@ichase.co.kr" ]
kdk@ichase.co.kr
ed4a988d6bf154211fd144b624ff8b2efb77a0cf
f50fe796f013ea8af2fc7ff3b8f93ae57d55c77d
/easymark/src/main/java/me/shouheng/easymark/viewer/ext/mark/internal/MarkNodeRenderer.java
fb3639cc73123b193708ea5dff9ff90355767a55
[ "Apache-2.0" ]
permissive
dandycheung/EasyMark
93f9665b41f06139ac74dc4525b7617688184e7f
b26c48500d65a6a7f64c325e08be7a4ed0884da1
refs/heads/master
2021-11-27T09:50:19.063983
2020-03-28T13:53:28
2020-03-28T13:53:28
239,243,191
0
0
Apache-2.0
2021-11-25T07:03:33
2020-02-09T03:57:01
null
UTF-8
Java
false
false
1,561
java
package me.shouheng.easymark.viewer.ext.mark.internal; import com.vladsch.flexmark.html.CustomNodeRenderer; import com.vladsch.flexmark.html.HtmlWriter; import com.vladsch.flexmark.html.renderer.NodeRenderer; import com.vladsch.flexmark.html.renderer.NodeRendererContext; import com.vladsch.flexmark.html.renderer.NodeRendererFactory; import com.vladsch.flexmark.html.renderer.NodeRenderingHandler; import com.vladsch.flexmark.util.options.DataHolder; import java.util.HashSet; import java.util.Set; import me.shouheng.easymark.viewer.ext.mark.Mark; public class MarkNodeRenderer implements NodeRenderer { public MarkNodeRenderer(DataHolder options) {} @Override public Set<NodeRenderingHandler<?>> getNodeRenderingHandlers() { HashSet<NodeRenderingHandler<?>> set = new HashSet<>(); set.add(new NodeRenderingHandler<>(Mark.class, new CustomNodeRenderer<Mark>() { @Override public void render(Mark node, NodeRendererContext context, HtmlWriter html) { MarkNodeRenderer.this.render(node, context, html); } })); return set; } private void render(Mark node, NodeRendererContext context, HtmlWriter html) { html.srcPos(node.getText()).withAttr().tag("mark"); context.renderChildren(node); html.tag("/mark"); } public static class Factory implements NodeRendererFactory { @Override public NodeRenderer create(final DataHolder options) { return new MarkNodeRenderer(options); } } }
[ "shouheng2015@gmail.com" ]
shouheng2015@gmail.com
2d58030e2b2db434ceb53c6dc773d4f6a498e44b
b327a374de29f80d9b2b3841db73f3a6a30e5f0d
/out/host/linux-x86/obj/EXECUTABLES/vm-tests_intermediates/main_files/dot/junit/opcodes/double_to_float/Main_testB3.java
1000e0e241886885091fdff309eddd482f125a57
[]
no_license
nikoltu/aosp
6409c386ed6d94c15d985dd5be2c522fefea6267
f99d40c9d13bda30231fb1ac03258b6b6267c496
refs/heads/master
2021-01-22T09:26:24.152070
2011-09-27T15:10:30
2011-09-27T15:10:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
389
java
//autogenerated by util.build.BuildDalvikSuite, do not change package dot.junit.opcodes.double_to_float; import dot.junit.opcodes.double_to_float.d.*; import dot.junit.*; public class Main_testB3 extends DxAbstractMain { public static void main(String[] args) throws Exception { T_double_to_float_1 t = new T_double_to_float_1(); assertEquals(-0f, t.run(-0d)); } }
[ "fred.faust@gmail.com" ]
fred.faust@gmail.com
916c8bb79542e106c0b5e63075a23853eeb844b2
f42eea434af726a2c3c2ce1f18d30445067b56bc
/src/Leetcode/MajorElement.java
b9e9c8ea9fc7a531a77ebf69bac4f25ce55add32
[]
no_license
peizhe/Algorithm
a4efacac785b25504c3e828c703d1fdbe64e972e
e429b9ce043055fe68cc137ade8e6350bdd7c88b
refs/heads/master
2021-01-13T14:48:51.870324
2016-12-15T10:53:22
2016-12-15T10:53:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
525
java
package Leetcode; public class MajorElement { public int majorityElement(int[] nums) { int candidate = 0; int count = 0; for(int i = 0; i < nums.length; i ++) { if(count == 0) { candidate = nums[i]; count = 1; } else { if(nums[i] == candidate) count ++; else count --; } } return candidate; } }
[ "923762584@qq.com" ]
923762584@qq.com
e48c1952c597c3ae40482a791f270ab4e6028e39
139960e2d7d55e71c15e6a63acb6609e142a2ace
/mobile_app1/module912/src/main/java/module912packageJava0/Foo0.java
db2c57bc879b0116a22751af6a37463c3051b5cb
[ "Apache-2.0" ]
permissive
uber-common/android-build-eval
448bfe141b6911ad8a99268378c75217d431766f
7723bfd0b9b1056892cef1fef02314b435b086f2
refs/heads/master
2023-02-18T22:25:15.121902
2023-02-06T19:35:34
2023-02-06T19:35:34
294,831,672
83
7
Apache-2.0
2021-09-24T08:55:30
2020-09-11T23:27:37
Java
UTF-8
Java
false
false
612
java
package module912packageJava0; import java.lang.Integer; public class Foo0 { Integer int0; Integer int1; public void foo0() { new module252packageJava0.Foo0().foo5(); new module1139packageJava0.Foo0().foo1(); new module818packageJava0.Foo0().foo3(); new leafModuleMaxpackageJava0.Foo0().foo1(); new module414packageJava0.Foo0().foo6(); } public void foo1() { foo0(); } public void foo2() { foo1(); } public void foo3() { foo2(); } public void foo4() { foo3(); } public void foo5() { foo4(); } public void foo6() { foo5(); } }
[ "oliviern@uber.com" ]
oliviern@uber.com
08982b9445909bccf8f079cbbfbbe4205a1e585c
97d95ad49efb83a2e5be5df98534dc777a955154
/applications/plugins/org.csstudio.config.ioconfig.view/src/java/org/csstudio/config/ioconfig/view/serachview/AbstractStringViewerFilter.java
dcc86688dc1506a8c0b4b5f619b6f35bd7c85fb8
[]
no_license
bekumar123/cs-studio
61aa64d30bce53b22627a3d98237d40531cf7789
bc24a7e2d248522af6b2983588be3b72d250505f
refs/heads/master
2021-01-21T16:39:14.712040
2014-01-27T15:30:23
2014-01-27T15:30:23
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,518
java
package org.csstudio.config.ioconfig.view.serachview; import javax.annotation.CheckForNull; import javax.annotation.Nonnull; import javax.annotation.Nullable; import org.eclipse.jface.viewers.ViewerFilter; /** * * Abstract Viewer Filter for String columns. * * @author hrickens * @author $Author: $ * @since 23.09.2010 */ abstract class AbstractStringViewerFilter extends ViewerFilter { private boolean _caseSensetive; private String _searchText = ""; public AbstractStringViewerFilter() { // Default Constructor } protected boolean checkSearchText() { return _searchText != null && _searchText.trim().length() > 0; } protected boolean compareStrings(@Nonnull final String text) { String string1; String string2 = getSearchText(); if (isCaseSensetive()) { string1 = text; } else { string1 = text.toLowerCase(); if(string2!=null) { string2 = string2.toLowerCase(); } } return string2==null?false:string1.contains(string2); } @CheckForNull public String getSearchText() { return _searchText; } public boolean isCaseSensetive() { return _caseSensetive; } public void setCaseSensetive(final boolean caseSensetive) { _caseSensetive = caseSensetive; } public void setText(@Nullable final String searchText) { _searchText = searchText; } }
[ "jan.hatje@desy.de" ]
jan.hatje@desy.de
c9bdbadd2765e19083547035a0840b4bc828c00a
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
/cc5g-20220314/src/main/java/com/aliyun/cc5g20220314/models/ResetAreaLimitCardsResponse.java
0bf6def949bc069f69a437d988c2ac1d1d62fd81
[ "Apache-2.0" ]
permissive
aliyun/alibabacloud-java-sdk
83a6036a33c7278bca6f1bafccb0180940d58b0b
008923f156adf2e4f4785a0419f60640273854ec
refs/heads/master
2023-09-01T04:10:33.640756
2023-09-01T02:40:45
2023-09-01T02:40:45
288,968,318
40
45
null
2023-06-13T02:47:13
2020-08-20T09:51:08
Java
UTF-8
Java
false
false
1,408
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.cc5g20220314.models; import com.aliyun.tea.*; public class ResetAreaLimitCardsResponse extends TeaModel { @NameInMap("headers") @Validation(required = true) public java.util.Map<String, String> headers; @NameInMap("statusCode") @Validation(required = true) public Integer statusCode; @NameInMap("body") @Validation(required = true) public ResetAreaLimitCardsResponseBody body; public static ResetAreaLimitCardsResponse build(java.util.Map<String, ?> map) throws Exception { ResetAreaLimitCardsResponse self = new ResetAreaLimitCardsResponse(); return TeaModel.build(map, self); } public ResetAreaLimitCardsResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public ResetAreaLimitCardsResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public ResetAreaLimitCardsResponse setBody(ResetAreaLimitCardsResponseBody body) { this.body = body; return this; } public ResetAreaLimitCardsResponseBody getBody() { return this.body; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
c34a167356dca6295d7e2d1ea886cde1c32a13d7
ea4da81a69a300624a46fce9e64904391c37267c
/src/main/java/com/alipay/api/domain/AlipayCommerceIotGroupDeleteModel.java
6788c5b0455845f2df204f32b213af9ae774595f
[ "Apache-2.0" ]
permissive
shiwei1024/alipay-sdk-java-all
741cc3cb8cf757292b657ce05958ff9ad8ecf582
d6a051fd47836c719a756607e6f84fee2b26ecb4
refs/heads/master
2022-12-29T18:46:53.195585
2020-10-09T06:34:30
2020-10-09T06:34:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
589
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 删除分组 * * @author auto create * @since 1.0, 2020-08-19 20:11:34 */ public class AlipayCommerceIotGroupDeleteModel extends AlipayObject { private static final long serialVersionUID = 7747536692768573177L; /** * 需要删除的分组id */ @ApiField("group_id") private String groupId; public String getGroupId() { return this.groupId; } public void setGroupId(String groupId) { this.groupId = groupId; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
f8830c44af4d4e2a6f70fc2b263d6b963acf3e2f
81db921c8607b499c6b36881378329db275ca9a8
/cloudmanager/cloudmanager-api/src/main/java/org/ow2/petals/cloud/manager/api/deployment/Node.java
ad9f498bb11aa53a1300dfe25bd5dbe178eb8377
[]
no_license
petalslink/petals-cloud
7f71efb7be7b4f8503931075eb935ed5ad324062
8485ecef228ec9d05d09f6b5b7fec162757a2b81
refs/heads/master
2021-01-23T09:52:37.226682
2013-09-09T14:17:56
2013-09-09T14:17:56
12,537,002
0
0
null
null
null
null
UTF-8
Java
false
false
4,216
java
/** * * Copyright (c) 2013, Linagora * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * */ package org.ow2.petals.cloud.manager.api.deployment; import com.google.common.collect.Lists; import java.util.List; /** * @author Christophe Hamerling - chamerling@linagora.com */ public class Node { /** * Node has an ID when deployed on a provider (at least) */ private String id; /** * Node name */ private String name; /** * Softwares to install */ private List<String> softwares; /** * Provider to install node on or where the node is running (account) */ private String provider; /** * Properties of the VM to deploy this node on */ private VM vm; /** * Ports to open or which are open on this node */ private List<Integer> ports; /** * Additional properties */ private List<Property> properties; /** * */ private List<String> privateIpAddress; /** * */ private List<String> publicIpAddress; /** * How to access on this node? */ private Access access; public Node() { ports = Lists.newArrayList(); properties = Lists.newArrayList(); privateIpAddress = Lists.newArrayList(); publicIpAddress = Lists.newArrayList(); softwares = Lists.newArrayList(); } public String getName() { return name; } public void setName(String name) { this.name = name; } public List<String> getSoftwares() { return softwares; } public void setSoftwares(List<String> softwares) { this.softwares = softwares; } public String getProvider() { return provider; } public void setProvider(String provider) { this.provider = provider; } public VM getVm() { return vm; } public void setVm(VM vm) { this.vm = vm; } public List<Integer> getPorts() { return ports; } public void setPorts(List<Integer> ports) { this.ports = ports; } public List<Property> getProperties() { return properties; } public void setProperties(List<Property> properties) { this.properties = properties; } public List<String> getPrivateIpAddress() { return privateIpAddress; } public void setPrivateIpAddress(List<String> privateIpAddress) { this.privateIpAddress = privateIpAddress; } public List<String> getPublicIpAddress() { return publicIpAddress; } public void setPublicIpAddress(List<String> publicIpAddress) { this.publicIpAddress = publicIpAddress; } public Access getAccess() { return access; } public void setAccess(Access access) { this.access = access; } public String getId() { return id; } public void setId(String id) { this.id = id; } @Override public String toString() { return "Node{" + "id='" + id + '\'' + ", name='" + name + '\'' + ", softwares=" + softwares + ", provider='" + provider + '\'' + ", vm=" + vm + ", ports=" + ports + ", properties=" + properties + ", privateIpAddress=" + privateIpAddress + ", publicIpAddress=" + publicIpAddress + ", access=" + access + '}'; } }
[ "christophe.hamerling@gmail.com" ]
christophe.hamerling@gmail.com
d15ea4d62da49d869ae15aac1527caba891dc2de
a2d4bec9812e129e28a63507da7b3aa3f96f5787
/com/facebook/widget/FacebookFragment.java
4fec1d98393d588e960c6a677d6b6a744b805363
[]
no_license
achoraev/RealRacingSource
c5720b4a4437e96c356e88e225a8d0f812e3520a
9bc98f4708c8f67c388b35d756e3c3517572163e
refs/heads/master
2020-04-17T16:47:58.342025
2015-04-22T06:52:40
2015-04-22T06:52:40
34,332,999
0
0
null
null
null
null
UTF-8
Java
false
false
6,976
java
package com.facebook.widget; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import com.facebook.Session; import com.facebook.Session.Builder; import com.facebook.Session.OpenRequest; import com.facebook.Session.StatusCallback; import com.facebook.SessionLoginBehavior; import com.facebook.SessionState; import com.facebook.internal.SessionAuthorizationType; import com.facebook.internal.SessionTracker; import java.util.Date; import java.util.List; class FacebookFragment extends Fragment { private SessionTracker sessionTracker; private void openSession(String paramString, List<String> paramList, SessionLoginBehavior paramSessionLoginBehavior, int paramInt, SessionAuthorizationType paramSessionAuthorizationType) { Object localObject; Session.OpenRequest localOpenRequest; if (this.sessionTracker != null) { localObject = this.sessionTracker.getSession(); if ((localObject == null) || (((Session)localObject).getState().isClosed())) { Session localSession = new Session.Builder(getActivity()).setApplicationId(paramString).build(); Session.setActiveSession(localSession); localObject = localSession; } if (!((Session)localObject).isOpened()) { localOpenRequest = new Session.OpenRequest(this).setPermissions(paramList).setLoginBehavior(paramSessionLoginBehavior).setRequestCode(paramInt); if (!SessionAuthorizationType.PUBLISH.equals(paramSessionAuthorizationType)) { break label111; } ((Session)localObject).openForPublish(localOpenRequest); } } return; label111: ((Session)localObject).openForRead(localOpenRequest); } protected final void closeSession() { if (this.sessionTracker != null) { Session localSession = this.sessionTracker.getOpenSession(); if (localSession != null) { localSession.close(); } } } protected final void closeSessionAndClearTokenInformation() { if (this.sessionTracker != null) { Session localSession = this.sessionTracker.getOpenSession(); if (localSession != null) { localSession.closeAndClearTokenInformation(); } } } protected final String getAccessToken() { SessionTracker localSessionTracker = this.sessionTracker; String str = null; if (localSessionTracker != null) { Session localSession = this.sessionTracker.getOpenSession(); str = null; if (localSession != null) { str = localSession.getAccessToken(); } } return str; } protected final Date getExpirationDate() { SessionTracker localSessionTracker = this.sessionTracker; Date localDate = null; if (localSessionTracker != null) { Session localSession = this.sessionTracker.getOpenSession(); localDate = null; if (localSession != null) { localDate = localSession.getExpirationDate(); } } return localDate; } protected final Session getSession() { if (this.sessionTracker != null) { return this.sessionTracker.getSession(); } return null; } protected final List<String> getSessionPermissions() { SessionTracker localSessionTracker = this.sessionTracker; List localList = null; if (localSessionTracker != null) { Session localSession = this.sessionTracker.getSession(); localList = null; if (localSession != null) { localList = localSession.getPermissions(); } } return localList; } protected final SessionState getSessionState() { SessionTracker localSessionTracker = this.sessionTracker; SessionState localSessionState = null; if (localSessionTracker != null) { Session localSession = this.sessionTracker.getSession(); localSessionState = null; if (localSession != null) { localSessionState = localSession.getState(); } } return localSessionState; } protected final boolean isSessionOpen() { SessionTracker localSessionTracker = this.sessionTracker; boolean bool = false; if (localSessionTracker != null) { Session localSession = this.sessionTracker.getOpenSession(); bool = false; if (localSession != null) { bool = true; } } return bool; } public void onActivityCreated(Bundle paramBundle) { super.onActivityCreated(paramBundle); this.sessionTracker = new SessionTracker(getActivity(), new DefaultSessionStatusCallback(null)); } public void onActivityResult(int paramInt1, int paramInt2, Intent paramIntent) { super.onActivityResult(paramInt1, paramInt2, paramIntent); this.sessionTracker.getSession().onActivityResult(getActivity(), paramInt1, paramInt2, paramIntent); } public void onDestroy() { super.onDestroy(); this.sessionTracker.stopTracking(); } protected void onSessionStateChange(SessionState paramSessionState, Exception paramException) {} protected final void openSession() { openSessionForRead(null, null); } protected final void openSessionForPublish(String paramString, List<String> paramList) { openSessionForPublish(paramString, paramList, SessionLoginBehavior.SSO_WITH_FALLBACK, 64206); } protected final void openSessionForPublish(String paramString, List<String> paramList, SessionLoginBehavior paramSessionLoginBehavior, int paramInt) { openSession(paramString, paramList, paramSessionLoginBehavior, paramInt, SessionAuthorizationType.PUBLISH); } protected final void openSessionForRead(String paramString, List<String> paramList) { openSessionForRead(paramString, paramList, SessionLoginBehavior.SSO_WITH_FALLBACK, 64206); } protected final void openSessionForRead(String paramString, List<String> paramList, SessionLoginBehavior paramSessionLoginBehavior, int paramInt) { openSession(paramString, paramList, paramSessionLoginBehavior, paramInt, SessionAuthorizationType.READ); } public void setSession(Session paramSession) { if (this.sessionTracker != null) { this.sessionTracker.setSession(paramSession); } } private class DefaultSessionStatusCallback implements Session.StatusCallback { private DefaultSessionStatusCallback() {} public void call(Session paramSession, SessionState paramSessionState, Exception paramException) { FacebookFragment.this.onSessionStateChange(paramSessionState, paramException); } } } /* Location: E:\Dropbox\Dropbox\RealRacingHack\Decompile\install_dex2jar.jar * Qualified Name: com.facebook.widget.FacebookFragment * JD-Core Version: 0.7.0.1 */
[ "audulin@gmail.com" ]
audulin@gmail.com
c55360fab023e641b03217bb8af39d61ad72695d
5145b7405f1ae107ba99a41fd28f638772165994
/Android/Agency Mwalimu/app/src/main/java/com/example/m_saccoagency/JsonParser.java
76378c25d32e1a0fff9641d3ebe64078f44ea173
[ "MIT" ]
permissive
ewkonzo/Projects
a55f45ff363dfc4892e57459f357d255e302d5ba
bf3efc30353086978cdeb0253680743f48d8fa86
refs/heads/master
2022-01-29T11:47:26.939493
2019-07-21T08:51:57
2019-07-21T08:51:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,586
java
package com.example.m_saccoagency; import java.io.BufferedReader; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.List; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; import org.apache.http.NameValuePair; import org.apache.http.StatusLine; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.HttpClient; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.message.BasicNameValuePair; import org.apache.http.util.EntityUtils; import android.app.Activity; import android.app.Application; import android.content.Context; import android.util.Log; import android.widget.Toast; public class JsonParser { private static final String TAG = "HttpClient"; static InputStream iStream = null; static String jarray = null; static String json = ""; public static String WEBSERVICE_URL = "http://172.20.10.8:35051/Agency.asmx/"; // public static String WEBSERVICE_URL = "http://41.72.203.234:35051/Agency.asmx/"; /* Error */ public static String SendHttpPost(Activity paramActivity, String MethodName, String myagent, String MethodParam) { Log.d("URL", WEBSERVICE_URL + MethodName);Log.d("Data", myagent); // Creating HTTP client HttpClient httpClient = new DefaultHttpClient(); // Creating HTTP Post HttpPost httpPost = new HttpPost( WEBSERVICE_URL + MethodName); List<NameValuePair> nameValuePair = new ArrayList<NameValuePair>(2); nameValuePair.add(new BasicNameValuePair(MethodParam, myagent)); try { httpPost.setEntity(new UrlEncodedFormEntity(nameValuePair)); } catch (UnsupportedEncodingException e) { // writing error to Log e.printStackTrace(); } // Making HTTP Request try { HttpResponse response = httpClient.execute(httpPost); if (response.getStatusLine().getStatusCode() == 200) { HttpEntity entity = response.getEntity(); json = EntityUtils.toString(entity); } // writing response to log Log.d("Http Response:", json); } catch (ClientProtocolException e) { // writing exception to log e.printStackTrace(); } catch (IOException e) { // writing exception to log e.printStackTrace(); } return json; } private static String convertStreamToString(InputStream paramInputStream) { BufferedReader localBufferedReader = new BufferedReader( new InputStreamReader(paramInputStream)); StringBuilder localStringBuilder = new StringBuilder(); for (;;) { try { String str = localBufferedReader.readLine(); if (str != null) { localStringBuilder.append(str + "\n"); continue; } } catch (IOException localIOException) { localIOException = localIOException; localIOException.printStackTrace(); try { paramInputStream.close(); } catch (IOException e) { e.printStackTrace(); } continue; } finally { } try { paramInputStream.close(); return localStringBuilder.toString(); } catch (IOException ex) { ex.printStackTrace(); } } /* * try { paramInputStream.close(); throw (""); } catch (IOException exc) * { for (;;) { exc.printStackTrace(); } */ } //This method is to handle response private static String convertStreamToStrings(InputStream is) { /* * To convert the InputStream to String we use the BufferedReader.readLine() * method. We iterate until the BufferedReader return null which means * there's no more data to read. Each line will appended to a StringBuilder * and returned as String. */ BufferedReader reader = new BufferedReader(new InputStreamReader(is)); StringBuilder sb = new StringBuilder(); String line = null; try { while ((line = reader.readLine()) != null) { sb.append(line + "\n"); } } catch (IOException e) { e.printStackTrace(); } finally { try { is.close(); } catch (IOException e) { e.printStackTrace(); } } return sb.toString(); } /* Error */ public static String getJSONFromUrl(Activity paramActivity, String paramString) { String result = ""; return result; } }
[ "mbugus2008@gmail.com" ]
mbugus2008@gmail.com
ddfe9e75095a72998d4b7780b9a513fd7fe39df8
482eed4a0356f795fac5ce24912b732ad520d3cf
/app/src/main/java/com/example/aplikasiprogmob/Model/DaftarKrs.java
69f226a81d06ae9e7a915f106421a25ed131c742
[]
no_license
Gracehtb/AplikasiTts
a646e5245724c7d56e75cdcab23d8f1690ddea7c
d0c6bcfe6b07160468258143430b00479aabbd45
refs/heads/master
2020-08-27T10:35:21.481781
2019-12-13T03:57:04
2019-12-13T03:57:04
217,335,643
0
0
null
null
null
null
UTF-8
Java
false
false
1,502
java
package com.example.aplikasiprogmob.Model; public class DaftarKrs { private String kode; public String getKode() { return kode; } public void setKode(String kode) { this.kode = kode; } public String getMatkul() { return matkul; } public void setMatkul(String matkul) { this.matkul = matkul; } public String getHari() { return hari; } public void setHari(String hari) { this.hari = hari; } public String getSesi() { return sesi; } public void setSesi(String sesi) { this.sesi = sesi; } public String getSks() { return sks; } public void setSks(String sks) { this.sks = sks; } public String getDosen() { return dosen; } public void setDosen(String dosen) { this.dosen = dosen; } public String getJlhmhs() { return jlhmhs; } public void setJlhmhs(String jlhmhs) { this.jlhmhs = jlhmhs; } private String matkul; private String hari; private String sesi; private String sks; private String dosen; private String jlhmhs; public DaftarKrs (String kode, String matkul, String hari, String sesi, String sks, String dosen, String jlhmhs){ this.kode = kode; this.matkul = matkul; this.hari = hari; this.sesi = sesi; this.sks = sks; this.dosen = dosen; this.jlhmhs = jlhmhs; } }
[ "=" ]
=
4dcfeb7bc4d2f2ab9619e16ef7207200b0323faa
e7032cdcc667c16662a53d89925016ef6de3690d
/quarkus/extension/runtime/src/main/java/io/quarkus/qson/runtime/QuarkusQsonRegistry.java
9d19db14dbf1a48c77a24c600a2594479dd312fa
[]
no_license
patriot1burke/qson
a7baf21ca5472ce904628bbb25732e4c77e7cded
6ef8edd84b348766ea6c7aac1af5522b19d3f198
refs/heads/master
2023-01-28T03:38:31.184027
2020-12-08T16:44:11
2020-12-08T16:44:11
299,646,827
2
0
null
null
null
null
UTF-8
Java
false
false
1,968
java
package io.quarkus.qson.runtime; import io.quarkus.qson.util.Types; import io.quarkus.qson.deserializer.QsonParser; import io.quarkus.qson.serializer.QsonObjectWriter; import io.quarkus.runtime.RuntimeValue; import io.quarkus.runtime.annotations.Recorder; import java.lang.reflect.Type; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; @Recorder public class QuarkusQsonRegistry { static final Map<String, QsonParser> parsers = new ConcurrentHashMap<>(); static final Map<String, QsonObjectWriter> writers = new ConcurrentHashMap<>(); static final Map<Type, QsonParser> typeParsers = new ConcurrentHashMap<>(); static final Map<Type, QsonObjectWriter> typeWriters = new ConcurrentHashMap<>(); public void clear() { parsers.clear(); writers.clear(); typeParsers.clear(); typeWriters.clear(); } public void registerParser(String key, RuntimeValue<QsonParser> parser) { parsers.put(key, parser.getValue()); } public void registerWriter(String key, RuntimeValue<QsonObjectWriter> writer) { writers.put(key, writer.getValue()); } public static QsonParser getParser(String key) { return parsers.get(key); } public static QsonObjectWriter getWriter(String key) { return writers.get(key); } public static QsonParser getParser(Type key) { QsonParser parser = typeParsers.get(key); if (parser != null) return parser; parser = parsers.get(Types.typename(key)); if (parser == null) return null; typeParsers.putIfAbsent(key, parser); return parser; } public static QsonObjectWriter getWriter(Type key) { QsonObjectWriter writer = typeWriters.get(key); if (writer != null) return writer; writer = writers.get(Types.typename(key)); if (writer == null) return null; typeWriters.putIfAbsent(key, writer); return writer; } }
[ "bburke@redhat.com" ]
bburke@redhat.com
9ecdcf9463c7fc42bd4e4be3e93de8e48c96fc2f
48a88aea6e9774279c8563f1be665a540e02a894
/src/opennlp/tools/coref/resolver/ProperNounResolver.java
d412d810c1930312aa79dc264873f8e05cb5141e
[]
no_license
josepvalls/parserservices
0994aa0fc56919985474aaebb9fa64581928b5b4
903363685e5cea4bd50d9161d60500800e42b167
refs/heads/master
2021-01-17T08:36:23.455855
2016-01-19T19:49:54
2016-01-19T19:49:54
60,540,533
2
0
null
null
null
null
UTF-8
Java
false
false
5,004
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 opennlp.tools.coref.resolver; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import java.util.StringTokenizer; import opennlp.tools.coref.DiscourseEntity; import opennlp.tools.coref.mention.MentionContext; /** * Resolves coreference between proper nouns. */ public class ProperNounResolver extends MaxentResolver { private static Map<String, Set<String>> acroMap; private static boolean acroMapLoaded = false; public ProperNounResolver(String projectName, ResolverMode m) throws IOException { super(projectName,"pnmodel", m, 500); if (!acroMapLoaded) { initAcronyms(projectName + "/acronyms"); acroMapLoaded = true; } showExclusions = false; } public ProperNounResolver(String projectName, ResolverMode m,NonReferentialResolver nonRefResolver) throws IOException { super(projectName,"pnmodel", m, 500,nonRefResolver); if (!acroMapLoaded) { initAcronyms(projectName + "/acronyms"); acroMapLoaded = true; } showExclusions = false; } @Override public boolean canResolve(MentionContext mention) { return (mention.getHeadTokenTag().startsWith("NNP") || mention.getHeadTokenTag().startsWith("CD")); } private void initAcronyms(String name) { acroMap = new HashMap<String, Set<String>>(15000); try { BufferedReader str; str = new BufferedReader(new FileReader(name)); //System.err.println("Reading acronyms database: " + file + " "); String line; while (null != (line = str.readLine())) { StringTokenizer st = new StringTokenizer(line, "\t"); String acro = st.nextToken(); String full = st.nextToken(); Set<String> exSet = acroMap.get(acro); if (exSet == null) { exSet = new HashSet<String>(); acroMap.put(acro, exSet); } exSet.add(full); exSet = acroMap.get(full); if (exSet == null) { exSet = new HashSet<String>(); acroMap.put(full, exSet); } exSet.add(acro); } } catch (IOException e) { System.err.println("ProperNounResolver.initAcronyms: Acronym Database not found: " + e); } } private boolean isAcronym(String ecStrip, String xecStrip) { Set<String> exSet = acroMap.get(ecStrip); if (exSet != null && exSet.contains(xecStrip)) { return true; } return false; } protected List<String> getAcronymFeatures(MentionContext mention, DiscourseEntity entity) { MentionContext xec = ResolverUtils.getProperNounExtent(entity); String ecStrip = ResolverUtils.stripNp(mention); String xecStrip = ResolverUtils.stripNp(xec); if (ecStrip != null && xecStrip != null) { if (isAcronym(ecStrip, xecStrip)) { List<String> features = new ArrayList<String>(1); features.add("knownAcronym"); return features; } } return Collections.emptyList(); } @Override protected List<String> getFeatures(MentionContext mention, DiscourseEntity entity) { //System.err.println("ProperNounResolver.getFeatures: "+mention.toText()+" -> "+entity); List<String> features = new ArrayList<String>(); features.addAll(super.getFeatures(mention, entity)); if (entity != null) { features.addAll(ResolverUtils.getStringMatchFeatures(mention, entity)); features.addAll(getAcronymFeatures(mention, entity)); } return features; } @Override public boolean excluded(MentionContext mention, DiscourseEntity entity) { if (super.excluded(mention, entity)) { return true; } for (Iterator<MentionContext> ei = entity.getMentions(); ei.hasNext();) { MentionContext xec = ei.next(); if (xec.getHeadTokenTag().startsWith("NNP")) { // || initialCaps.matcher(xec.headToken.toString()).find()) { //System.err.println("MaxentProperNounResolver.exclude: kept "+xec.toText()+" with "+xec.headTag); return false; } } return true; } }
[ "josepvalls@Valls.local" ]
josepvalls@Valls.local
0a9ed118a5f213e697180b07d673d04c7ac34a97
c6d93152ab18b0e282960b8ff224a52c88efb747
/huntkey/code/biz-modeler/modeler-provider/src/main/java/com/huntkey/rx/modeler/provider/service/EdmLinkService.java
c4efdc8e2f83df81b0b63a4e38aee7c4ce3ad51f
[]
no_license
BAT6188/company-database
adfe5d8b87b66cd51efd0355e131de164b69d3f9
40d0342345cadc51ca2555840e32339ca0c83f51
refs/heads/master
2023-05-23T22:18:22.702550
2018-12-25T00:58:15
2018-12-25T00:58:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,809
java
package com.huntkey.rx.modeler.provider.service; import com.huntkey.rx.commons.utils.rest.Pagination; import com.huntkey.rx.modeler.common.model.EdmCond; import com.huntkey.rx.modeler.common.model.EdmConnect; import com.huntkey.rx.modeler.common.model.EdmLink; import com.huntkey.rx.modeler.common.model.vo.EdmLinkVO; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import java.util.List; /** * Created by licj on 2017/4/13. */ public interface EdmLinkService { int insert(EdmLink edmLink); //扩展属性 - 关联 - 表单单数据插入 void insertVO(EdmLinkVO edmLinkVO); //逻辑删 int delete(String id); //批量逻辑删除 void deleteIds(String[] ids); //改 int update(EdmLink edmLink); // 扩展属性 - 关联 - 表单单数据更新 void updateVO(EdmLinkVO edmLinkVO,String oldLinkId,boolean isPlan); //分页查询 Pagination<EdmLink> selectByExample(String edmlEdmpId, String edmlEdmpLinkId, String edmlCond, String edmlFormula, Byte edcnLinkPreservable,Byte edclUpdateType,String edclUpdateTimeliness,String edclUpdateTime, int pageNum, int pageSize); /** * * @param edmlEdmpId * @param edmlEdmpLinkId * @return */ boolean checkcircle(String edmlEdmpId,String edmlEdmpLinkId); EdmLinkVO getById(String id); String checkLinkId(String edmpId, String linkid); String selectLinkidById(String id); List<List<EdmLinkVO>> getConnectsByCid(String id); List<EdmLinkVO> getConnectsByPid(String id); void clearEdmlFormula(String id); List<EdmLinkVO> getEdmLinks(String edmpId, String edmlCond); void moveEdmLink(String[] edmpIds, EdmCond edmCond); String getEdmlEdmpId(String edmlLinkId); }
[ "729235023@qq.com" ]
729235023@qq.com
0b42c1c4406b503a85bcec9a0470b14f02350fbd
a13ab684732add3bf5c8b1040b558d1340e065af
/java7-src/com/sun/org/apache/xerces/internal/xni/XNIException.java
1094d900f8bc169d22b96987c71498d9ae9a82e7
[]
no_license
Alivop/java-source-code
554e199a79876343a9922e13ccccae234e9ac722
f91d660c0d1a1b486d003bb446dc7c792aafd830
refs/heads/master
2020-03-30T07:21:13.937364
2018-10-25T01:49:39
2018-10-25T01:51:38
150,934,150
5
2
null
null
null
null
UTF-8
Java
false
false
2,684
java
/* * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ /* * Copyright 2001, 2002,2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.sun.org.apache.xerces.internal.xni; /** * This exception is the base exception of all XNI exceptions. It * can be constructed with an error message or used to wrap another * exception object. * <p> * <strong>Note:</strong> By extending the Java * <code>RuntimeException</code>, XNI handlers and components are * not required to catch XNI exceptions but may explicitly catch * them, if so desired. * * @author Andy Clark, IBM * * @version $Id: XNIException.java,v 1.6 2010-11-01 04:40:19 joehw Exp $ */ public class XNIException extends RuntimeException { /** Serialization version. */ static final long serialVersionUID = 9019819772686063775L; // // Data // /** The wrapped exception. */ private Exception fException; // // Constructors // /** * Constructs an XNI exception with a message. * * @param message The exception message. */ public XNIException(String message) { super(message); } // <init>(String) /** * Constructs an XNI exception with a wrapped exception. * * @param exception The wrapped exception. */ public XNIException(Exception exception) { super(exception.getMessage()); fException = exception; } // <init>(Exception) /** * Constructs an XNI exception with a message and wrapped exception. * * @param message The exception message. * @param exception The wrapped exception. */ public XNIException(String message, Exception exception) { super(message); fException = exception; } // <init>(Exception,String) // // Public methods // /** Returns the wrapped exception. */ public Exception getException() { return fException; } // getException():Exception public Throwable getCause() { return fException; } } // class QName
[ "liulp@zjhjb.com" ]
liulp@zjhjb.com
acb1021665087269a3d52a049e70c4e8e81acf8a
26a02ec11fac41a4e1b691c8f257d150633b930d
/xml-impl/src/main/java/consulo/xml/util/xml/ui/BooleanControl.java
97af16ce67633f6cbaa97f3dd784b9cae2bd7527
[ "Apache-2.0" ]
permissive
consulo/consulo-xml
cb04cb6099417a5bbadc8f727015cffe033921ac
44a7832705cd7dbc1d98fa49834a41938e917dde
refs/heads/master
2023-08-31T06:54:20.530658
2023-08-31T06:17:13
2023-08-31T06:17:13
13,677,344
1
1
Apache-2.0
2023-01-01T16:41:13
2013-10-18T12:21:25
Java
UTF-8
Java
false
false
1,587
java
/* * Copyright 2000-2009 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 consulo.xml.util.xml.ui; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; /** * @author peter */ public class BooleanControl extends BaseModifiableControl<JCheckBox, Boolean> { private boolean myUndefined; public BooleanControl(final DomWrapper<Boolean> domWrapper) { super(domWrapper); } protected JCheckBox createMainComponent(JCheckBox boundComponent) { JCheckBox checkBox = boundComponent == null ? new JCheckBox() : boundComponent; checkBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { myUndefined = false; setModified(); commit(); reset(); } }); return checkBox; } public Boolean getValue() { return myUndefined ? null : getComponent().isSelected(); } public void setValue(final Boolean value) { myUndefined = value == null; getComponent().setSelected(value != null && value); } }
[ "vistall.valeriy@gmail.com" ]
vistall.valeriy@gmail.com
21c3dfe3277f65af10eda162d84bfca4128570ac
045f03ed626470163cad609359f7a6f1d16eea36
/app/src/main/java/com/xolo/gzqc/ui/activity/supplier/ShopFitmentActivity.java
4928e4e0f9ad858c769565ba1928a5b0f8b8d42d
[]
no_license
Superingxz/gzqc
487da1897127bfe55e24ab7b161f4b151ca73348
4ceef024bb63ef586aa0e8fc8d8d0a5b1c126db5
refs/heads/master
2021-01-17T11:30:06.783661
2017-03-06T06:05:58
2017-03-06T06:05:58
84,036,048
0
0
null
null
null
null
UTF-8
Java
false
false
6,232
java
package com.xolo.gzqc.ui.activity.supplier; import android.os.Bundle; import android.support.annotation.Nullable; import android.text.TextUtils; import android.view.View; import android.widget.Button; import android.widget.ListView; import com.google.gson.Gson; import com.xolo.gzqc.BaseActivity; import com.xolo.gzqc.R; import com.xolo.gzqc.adapter.ShopFitmentAdapter; import com.xolo.gzqc.bean.BaseBean; import com.xolo.gzqc.bean.ORMBean; import com.xolo.gzqc.bean.child.ShopFitment; import com.xolo.gzqc.configuration.SPManager; import com.xolo.gzqc.ui.view.LoadDialog; import com.xolo.gzqc.utils.HttpUtil; import com.xolo.gzqc.utils.ToastUtil; import org.xutils.http.RequestParams; import java.util.ArrayList; import java.util.List; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; /** * 店铺装修 * Created by Administrator on 2016/12/8. */ public class ShopFitmentActivity extends BaseActivity { @BindView(R.id.lv) ListView lv; @BindView(R.id.save) Button save; ShopFitmentAdapter shopFitmentAdapter; List<ShopFitment> list = new ArrayList<>(); @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_shop_fitment); ButterKnife.bind(this); initView(); getData(); } private void initView() { shopFitmentAdapter = new ShopFitmentAdapter(this, R.layout.item_shop_fitment, list); shopFitmentAdapter.setShopFitmentAdapterIface(new ShopFitmentAdapter.ShopFitmentAdapterIface() { @Override public void upOnClick(ShopFitment item, int postion) { setdata(true, item, postion); } @Override public void dnwnOClick(ShopFitment item, int postion) { setdata(false, item, postion); } }); lv.addHeaderView(View.inflate(this, R.layout.shop_fitment_title, null)); lv.setAdapter(shopFitmentAdapter); } private void setdata(boolean b, ShopFitment item, int postion) { List<GoodsOrder> goodslist = new ArrayList<GoodsOrder>(); if (b) { ShopFitment shopFitment = shopFitmentAdapter.getData().get(postion - 1); ShopFitment shopFitment1 = shopFitmentAdapter.getData().get(postion); String Sort_num=shopFitment.getSort_num(); String Sort_num1=shopFitment1.getSort_num(); shopFitment.setSort_num(Sort_num1); shopFitment1.setSort_num(Sort_num); shopFitmentAdapter.getData().set(postion, shopFitment); shopFitmentAdapter.getData().set(postion - 1, shopFitment1); } else { ShopFitment shopFitment = shopFitmentAdapter.getData().get(postion + 1); ShopFitment shopFitment1 = shopFitmentAdapter.getData().get(postion); String Sort_num=shopFitment.getSort_num(); String Sort_num1=shopFitment1.getSort_num(); shopFitment.setSort_num(Sort_num1); shopFitment1.setSort_num(Sort_num); shopFitmentAdapter.getData().set(postion, shopFitment); shopFitmentAdapter.getData().set(postion + 1, shopFitment1); } shopFitmentAdapter.notifyDataSetChanged(); for (ShopFitment shopFitment : shopFitmentAdapter.getData()) { GoodsOrder order = new GoodsOrder(); order.setSort_num(shopFitment.getSort_num()); order.setGoods_id(shopFitment.getC_goodsinfor_id()); goodslist.add(order); } Gson gson = new Gson(); Data data=new Data(); data.setData(goodslist); string = gson.toJson(data); } String string; @OnClick({R.id.save}) void OnClick(View view) { switch (R.id.save) { case R.id.save: seleteChange(); break; } } class Data { List<GoodsOrder> data; public List<GoodsOrder> getData() { return data; } public void setData(List<GoodsOrder> data) { this.data = data; } } class GoodsOrder { String goods_id; String sort_num; public String getGoods_id() { return goods_id; } public void setGoods_id(String goods_id) { this.goods_id = goods_id; } public String getSort_num() { return sort_num; } public void setSort_num(String sort_num) { this.sort_num = sort_num; } } void seleteChange() { if (TextUtils.isEmpty(string)) { ToastUtil.showShort(ShopFitmentActivity.this, "请更换顺序后重试"); return; } user = SPManager.getUser(mContext); RequestParams requestParams = creatParams("updategoodsinfosort"); requestParams.addBodyParameter("json_project", string); HttpUtil.getInstance().post(requestParams, BaseBean.class, new HttpUtil.HttpCallBack<BaseBean>() { @Override public void onError(Throwable ex, boolean isOnCallback) { } @Override public void onSuccess(BaseBean result) { ToastUtil.showShort(ShopFitmentActivity.this, result.getMsg()); } }); } void getData() { LoadDialog.show(mContext); user = SPManager.getUser(mContext); RequestParams requestParams = creatParams("getgoodsinfobysupport"); HttpUtil.getInstance().post(requestParams, ORMBean.ShopFimentBean.class, new HttpUtil.HttpCallBack<ORMBean.ShopFimentBean>() { @Override public void onError(Throwable ex, boolean isOnCallback) { LoadDialog.dismiss(mContext); } @Override public void onSuccess(ORMBean.ShopFimentBean result) { if (result.getRes().equals("1")) { list.clear(); list.addAll(result.getData()); shopFitmentAdapter.notifyDataSetChanged(); } LoadDialog.dismiss(mContext); } }); } }
[ "549856098@qq.com" ]
549856098@qq.com
16ec1e01533703df56a101da28834ba7653739e3
db6614d06a6433a6e8e8e964d7822b54ba1c44ef
/app/src/main/java/com/geek/huixiaoer/storage/entity/SingleResultBean.java
b0cd7f7880fe2db9aa3398651416d1fe01a2e339
[]
no_license
DarianLiu/HuiXiaoEr
979a1d8755c7eb203abc08046bbbefd8ad3160d8
4ee10a740d134149c7b02ce7e2f8ae7202c460b1
refs/heads/master
2021-05-03T08:08:32.138775
2018-06-20T02:27:49
2018-06-20T02:27:49
120,560,453
0
0
null
null
null
null
UTF-8
Java
false
false
484
java
package com.geek.huixiaoer.storage.entity; import com.google.gson.annotations.SerializedName; /** * 只有一个属性的Result(短信验证码:code,是否收藏:flag) * Created by Administrator on 2018/2/11. */ public class SingleResultBean { @SerializedName(value = "code", alternate = {"flag"}) private String result; public void setResult(String result) { this.result = result; } public String getResult() { return result; } }
[ "darian.liu@foxmail.com" ]
darian.liu@foxmail.com
110bf484dc1e2b26dac03d9b64f942c8fa0cceaf
58fd43adbfd665a2037e2c5c72b58f631ae9d4fc
/src/main/java/org/xblackcat/euler/problem15/R.java
330ed5c25172f24283cb5bfd13e9b40193a63a17
[]
no_license
xBlackCat/euler-problems
2a6b3e0d18ff00c0851eb2510e3a43a84f834992
c54ac05fad58c20bf8bc4fdec3dd8a4cbc952794
refs/heads/master
2022-01-08T16:17:01.782537
2019-05-31T09:44:58
2019-05-31T09:44:58
111,073,042
1
0
null
null
null
null
UTF-8
Java
false
false
1,003
java
package org.xblackcat.euler.problem15; import java.util.Objects; /** * 27.11.2017 16:13 * * @author xBlackCat */ class R { private final int h; private final int w; public static R of(int a, int b) { if (a > b) { return new R(b, a); } else { return new R(a, b); } } private R(int h, int w) { if (h > w) { throw new IllegalArgumentException("Height should be less than width"); } this.h = h; this.w = w; } public int getH() { return h; } public int getW() { return w; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final R r = (R) o; return h == r.h && w == r.w; } @Override public int hashCode() { return Objects.hash(h, w); } }
[ "xblackcat@gmail.com" ]
xblackcat@gmail.com
dc011078af7e3f8777c74fb452ea4d7a6664a040
0deb0a9a5d627365179e8e6eb560b8ce5eb4462e
/java/src/test/java/com/yourtion/leetcode/daily/m12/d20/SolutionTest.java
5b3c0696051122260997206bca746eedeb5a4596
[ "MIT" ]
permissive
yourtion/LeetCode
511bdd344b2d5a6a436ae0a6c0458c73205d54da
61ee9fb1f97274e1621f8415dcdd8c7e424d20b3
refs/heads/master
2021-08-16T21:50:13.852242
2021-07-09T01:58:46
2021-07-09T01:58:46
231,171,224
0
0
null
null
null
null
UTF-8
Java
false
false
917
java
package com.yourtion.leetcode.daily.m12.d20; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; import java.util.stream.Stream; import static org.junit.jupiter.params.provider.Arguments.arguments; @DisplayName("每日一题 - 20201220") class SolutionTest { static Stream<Arguments> testDataProvider() { return Stream.of( arguments("bcabc", "abc"), arguments("cbacdcbc", "acdb") ); } @ParameterizedTest() @MethodSource("testDataProvider") void removeDuplicateLetters(String source, String res) { System.out.printf("runTest: %s , res: %s", source, res); Assertions.assertEquals(res, new Solution().removeDuplicateLetters(source)); } }
[ "yourtion@gmail.com" ]
yourtion@gmail.com
626969a2e727f2bc3b5f0a3fc8d656d11f871279
1c13e7e9487dfb9682cdadd4cd69d11d33bfdeae
/spring-boot-starter-dubbo/src/main/java/org/mvnsearch/spring/boot/dubbo/DubboProperties.java
60244a507fc36df4cf9134864c7374fcd9820810
[]
no_license
0532/spring-boot-dubbo
130d575d49ba0d449caae76d97732a5f9c9dbb28
33a5649835990d4c566f06f67223979b3b939a8f
refs/heads/master
2020-07-12T13:26:42.980043
2016-11-15T09:14:26
2016-11-15T09:14:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,619
java
package org.mvnsearch.spring.boot.dubbo; import org.springframework.boot.context.properties.ConfigurationProperties; /** * dubbo properties * * @author linux_china */ @ConfigurationProperties(prefix = "spring.dubbo") public class DubboProperties { /** * dubbo application name */ private String app; /** * dubbo registry address */ private String registry; /** * dubbo monitor address */ private String monitor; /** * communication protocol, default is dubbo */ private String protocol = "dubbo"; /** * dubbo listen port, default 20800 */ private Integer port = 20800; /** * dubbo thread count, default 200 */ private Integer threads = 200; public String getApp() { return app; } public void setApp(String app) { this.app = app; } public String getRegistry() { return registry; } public void setRegistry(String registry) { this.registry = registry; } public String getMonitor() { return monitor; } public void setMonitor(String monitor) { this.monitor = monitor; } public String getProtocol() { return protocol; } public void setProtocol(String protocol) { this.protocol = protocol; } public Integer getPort() { return port; } public void setPort(Integer port) { this.port = port; } public Integer getThreads() { return threads; } public void setThreads(Integer threads) { this.threads = threads; } }
[ "linux_china@hotmail.com" ]
linux_china@hotmail.com
363980fa4d86630c5838904de6154101beecad8e
f115b9e03023d502ce1cb3110a16e2d6fbba92ed
/src/main/java/com/personal/notebook/repository/search/MonthlyTaskSearchRepository.java
b3d95eb0a971a88a030a0de4f923a4348007d9c1
[]
no_license
monjurmorshed793/PersonalNotebook
bdbbd0f555122a6f8229424f3e65dd6e6b806dba
e87552a673b8c6c5ec7e2af55a0222c1e80cff21
refs/heads/master
2020-03-28T18:42:50.476207
2018-09-18T18:12:55
2018-09-18T18:12:55
145,227,525
0
0
null
null
null
null
UTF-8
Java
false
false
358
java
package com.personal.notebook.repository.search; import com.personal.notebook.domain.MonthlyTask; import org.springframework.data.elasticsearch.repository.ElasticsearchRepository; /** * Spring Data Elasticsearch repository for the MonthlyTask entity. */ public interface MonthlyTaskSearchRepository extends ElasticsearchRepository<MonthlyTask, Long> { }
[ "monjurmorshed793@gmail.com" ]
monjurmorshed793@gmail.com
f431d85b65646a82e1a9d1396527e6b077d91593
984d15e076108a3bcf6a698ef9e4cfca8fcb6d90
/core/src/main/java/io/hyperfoil/core/builders/StepCatalog.java
8acad28388647118d36ee5f90e2c2ec990e1782b
[ "Apache-2.0" ]
permissive
diegolovison/Hyperfoil
349e0a9bb66e81bc12f8d2c7ba7cab5a308731cd
9ae5e4f6c62da15ab540ffe57dc24a988c4b4022
refs/heads/master
2022-08-17T21:46:04.736945
2019-07-25T11:19:41
2019-07-25T11:19:41
199,450,593
0
0
null
2019-07-29T12:41:29
2019-07-29T12:41:28
null
UTF-8
Java
false
false
7,391
java
package io.hyperfoil.core.builders; import java.util.concurrent.TimeUnit; import java.util.function.Function; import java.util.function.Predicate; import java.util.function.Supplier; import org.kohsuke.MetaInfServices; import io.hyperfoil.api.config.BaseSequenceBuilder; import io.hyperfoil.api.config.Locator; import io.hyperfoil.api.config.ScenarioBuilder; import io.hyperfoil.api.config.Step; import io.hyperfoil.api.config.StepBuilder; import io.hyperfoil.api.http.HttpMethod; import io.hyperfoil.api.session.Session; import io.hyperfoil.core.generators.RandomIntStep; import io.hyperfoil.core.generators.RandomItemStep; import io.hyperfoil.core.generators.TemplateStep; import io.hyperfoil.core.steps.AddToIntStep; import io.hyperfoil.core.steps.AwaitAllResponsesStep; import io.hyperfoil.core.steps.AwaitConditionStep; import io.hyperfoil.core.steps.AwaitDelayStep; import io.hyperfoil.core.steps.AwaitIntStep; import io.hyperfoil.core.steps.AwaitVarStep; import io.hyperfoil.core.steps.BreakSequenceStep; import io.hyperfoil.core.steps.ClearHttpCacheStep; import io.hyperfoil.core.steps.ForeachStep; import io.hyperfoil.core.steps.HttpRequestStep; import io.hyperfoil.core.steps.JsonStep; import io.hyperfoil.core.steps.LogStep; import io.hyperfoil.core.steps.LoopStep; import io.hyperfoil.core.steps.PollStep; import io.hyperfoil.core.steps.PullSharedMapStep; import io.hyperfoil.core.steps.PushSharedMapStep; import io.hyperfoil.core.steps.ScheduleDelayStep; import io.hyperfoil.core.steps.ServiceLoadedBuilderProvider; import io.hyperfoil.core.steps.SetIntStep; import io.hyperfoil.core.steps.SetStep; import io.hyperfoil.core.steps.StopwatchBeginStep; import io.hyperfoil.core.steps.UnsetStep; import io.hyperfoil.core.util.Unique; import io.hyperfoil.impl.StepCatalogFactory; /** * Helper class to gather well-known step builders */ public class StepCatalog implements Step.Catalog { private final BaseSequenceBuilder parent; StepCatalog(BaseSequenceBuilder parent) { this.parent = parent; } // control steps public BreakSequenceStep.Builder breakSequence() { return new BreakSequenceStep.Builder(parent); } public BaseSequenceBuilder nextSequence(String name) { return parent.step(s -> { s.nextSequence(name); return true; }); } public BaseSequenceBuilder loop(String counterVar, int repeats, String loopedSequence) { return parent.step(new LoopStep(counterVar, repeats, loopedSequence)); } public ForeachStep.Builder foreach() { return new ForeachStep.Builder(parent); } public BaseSequenceBuilder stop() { return parent.step(s -> { s.stop(); return true; }); } // requests public HttpRequestStep.Builder httpRequest(HttpMethod method) { return new HttpRequestStep.Builder(parent).method(method); } public BaseSequenceBuilder awaitAllResponses() { return parent.step(new AwaitAllResponsesStep()); } public BaseSequenceBuilder clearHttpCache() { return parent.step(new ClearHttpCacheStep()); } // timing public ScheduleDelayStep.Builder scheduleDelay(String key, long duration, TimeUnit timeUnit) { return new ScheduleDelayStep.Builder(parent, key, duration, timeUnit); } public BaseSequenceBuilder awaitDelay(String key) { return parent.step(new AwaitDelayStep(key)); } public AwaitDelayStep.Builder awaitDelay() { return new AwaitDelayStep.Builder(parent); } public ScheduleDelayStep.Builder thinkTime(long duration, TimeUnit timeUnit) { // We will schedule two steps bound by an unique key Unique key = new Unique(); // thinkTime should expose builder to support configurable duration randomization in the future ScheduleDelayStep.Builder delayBuilder = new ScheduleDelayStep.Builder(parent, key, duration, timeUnit).fromNow(); parent.stepBuilder(delayBuilder); parent.step(new AwaitDelayStep(key)); return delayBuilder; } public StopwatchBeginStep.Builder stopwatch() { return new StopwatchBeginStep.Builder(parent); } // general public BaseSequenceBuilder awaitCondition(Predicate<Session> condition) { return parent.step(new AwaitConditionStep(condition)); } public AwaitIntStep.Builder awaitInt() { return new AwaitIntStep.Builder(parent); } public BaseSequenceBuilder awaitVar(String var) { return parent.step(new AwaitVarStep(var)); } public UnsetStep.Builder unset() { return new UnsetStep.Builder(parent); } public SetStep.Builder set() { return new SetStep.Builder(parent, null); } public BaseSequenceBuilder set(String param) { return new SetStep.Builder(parent, param).endStep(); } public BaseSequenceBuilder setInt(String param) { return new SetIntStep.Builder(parent, param).endStep(); } public SetIntStep.Builder setInt() { return new SetIntStep.Builder(parent, null); } public AddToIntStep.Builder addToInt() { return new AddToIntStep.Builder(parent, null); } public BaseSequenceBuilder addToInt(String param) { return new AddToIntStep.Builder(parent, param).endStep(); } public <T> PollStep.Builder<T> poll(Function<Session, T> provider, String intoVar) { return new PollStep.Builder<>(parent, provider, intoVar); } public <T> PollStep.Builder<T> poll(Supplier<T> supplier, String intoVar) { return new PollStep.Builder<>(parent, session -> supplier.get(), intoVar); } // generators public TemplateStep.Builder template() { return new TemplateStep.Builder(parent); } public RandomIntStep.Builder randomInt() { return new RandomIntStep.Builder(parent, null); } public RandomIntStep.Builder randomInt(String rangeToVar) { return new RandomIntStep.Builder(parent, rangeToVar); } public RandomItemStep.Builder randomItem() { return new RandomItemStep.Builder(parent, null); } public RandomItemStep.Builder randomItem(String toFrom) { return new RandomItemStep.Builder(parent, toFrom); } public ServiceLoadedBuilderProvider<StepBuilder, StepBuilder.Factory> serviceLoaded() { return new ServiceLoadedBuilderProvider<>(StepBuilder.Factory.class, new Locator() { @Override public StepBuilder step() { throw new UnsupportedOperationException(); } @Override public BaseSequenceBuilder sequence() { return parent; } @Override public ScenarioBuilder scenario() { return parent.endSequence(); } }, parent::stepBuilder); } // data public JsonStep.Builder json() { return new JsonStep.Builder(parent); } public PullSharedMapStep.Builder pullSharedMap() { return new PullSharedMapStep.Builder(parent); } public PushSharedMapStep.Builder pushSharedMap() { return new PushSharedMapStep.Builder(parent); } // utility public LogStep.Builder log(String message) { return new LogStep.Builder(parent); } @MetaInfServices(StepCatalogFactory.class) public static class Factory implements StepCatalogFactory { @Override public Step.Catalog create(BaseSequenceBuilder sequenceBuilder) { return new StepCatalog(sequenceBuilder); } } }
[ "rvansa@redhat.com" ]
rvansa@redhat.com
a748c40ed6a80df5c2c215a6d27038078aaf5111
75754e8446f6e8223876528b2de6ac1369f1eacc
/src/main/java/org/todoapp/dbflute/cbean/cq/PurchasePaymentCQ.java
ecb740c319049ab9e7481995151594bd9f0d573c
[ "Apache-2.0" ]
permissive
RyoheiYamamoto/todoapp
d2fc1ac82ab7c7bcac7cf92f9cf86066d0408888
59ab2ce6c6c9b82177089a29ca6a18222a7b0231
refs/heads/master
2021-01-21T12:01:25.035456
2017-05-05T12:20:06
2017-05-05T12:20:06
91,770,299
0
0
null
null
null
null
UTF-8
Java
false
false
2,348
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.todoapp.dbflute.cbean.cq; import org.dbflute.cbean.ConditionQuery; import org.dbflute.cbean.sqlclause.SqlClause; import org.todoapp.dbflute.cbean.cq.bs.BsPurchasePaymentCQ; /** * The condition-query of purchase_payment. * <p> * You can implement your original methods here. * This class remains when re-generating. * </p> * @author DBFlute(AutoGenerator) */ public class PurchasePaymentCQ extends BsPurchasePaymentCQ { // =================================================================================== // Constructor // =========== // You should NOT touch with this constructor. /** * Auto-generated constructor to create query instance, basically called in DBFlute. * @param referrerQuery The instance of referrer query. (NullAllowed: if null, this is base query) * @param sqlClause The instance of SQL clause. (NotNull) * @param aliasName The alias name for this query. (NotNull) * @param nestLevel The nest level of this query. (if zero, this is base query) */ public PurchasePaymentCQ(ConditionQuery referrerQuery, SqlClause sqlClause, String aliasName, int nestLevel) { super(referrerQuery, sqlClause, aliasName, nestLevel); } // =================================================================================== // Arrange Query // ============= // You can make your arranged query methods here. e.g. public void arrangeXxx() }
[ "h031203yama@gmail.com" ]
h031203yama@gmail.com
187ec698d2cb1fab0079c45b0b8cd1e6730b8a17
3632c9297cd8a75ebfcad71e7543296bab3efcbf
/bc2/src/test/gwXML/com/xml/cnaps2/ccms/v92600101/InstdPty1.java
3b1ce76d03576b8ef7668f881b43adafa0d39623
[]
no_license
luboid/leontestbed
9850500166bd42378ae35f92768a198b1c2dd7c2
eb1c704b1ea77a62097375239ecb2c025c7a19dc
refs/heads/master
2021-01-10T21:48:41.905677
2015-09-24T10:28:18
2015-09-24T10:28:18
41,542,498
1
0
null
null
null
null
WINDOWS-1252
Java
false
false
2,614
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 // 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: 2011.05.03 at 08:45:48 ÏÂÎç CST // package com.xml.cnaps2.ccms.v92600101; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for InstdPty1 complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="InstdPty1"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="InstdDrctPty" type="{urn:cnaps:std:ccms:2010:tech:xsd:ccms.926.001.01}Max14Text"/> * &lt;element name="InstdPty" type="{urn:cnaps:std:ccms:2010:tech:xsd:ccms.926.001.01}Max14Text"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "InstdPty1", propOrder = { "instdDrctPty", "instdPty" }) public class InstdPty1 { @XmlElement(name = "InstdDrctPty", required = true) protected String instdDrctPty; @XmlElement(name = "InstdPty", required = true) protected String instdPty; /** * Gets the value of the instdDrctPty property. * * @return * possible object is * {@link String } * */ public String getInstdDrctPty() { return instdDrctPty; } /** * Sets the value of the instdDrctPty property. * * @param value * allowed object is * {@link String } * */ public void setInstdDrctPty(String value) { this.instdDrctPty = value; } /** * Gets the value of the instdPty property. * * @return * possible object is * {@link String } * */ public String getInstdPty() { return instdPty; } /** * Sets the value of the instdPty property. * * @param value * allowed object is * {@link String } * */ public void setInstdPty(String value) { this.instdPty = value; } }
[ "youranklean@gmail.com" ]
youranklean@gmail.com
ab0e587ef65482127c877bbe28cd276ecf5e738c
a280aa9ac69d3834dc00219e9a4ba07996dfb4dd
/regularexpress/home/weilaidb/work/app/hadoop-2.7.3-src/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/local/LocalContainerAllocator.java
4959767f30198cfa784beb841726af9724d7e973
[]
no_license
weilaidb/PythonExample
b2cc6c514816a0e1bfb7c0cbd5045cf87bd28466
798bf1bdfdf7594f528788c4df02f79f0f7827ce
refs/heads/master
2021-01-12T13:56:19.346041
2017-07-22T16:30:33
2017-07-22T16:30:33
68,925,741
4
2
null
null
null
null
UTF-8
Java
false
false
2,087
java
package org.apache.hadoop.mapreduce.v2.app.local; import java.io.IOException; import java.util.ArrayList; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.JobCounter; import org.apache.hadoop.mapreduce.MRJobConfig; import org.apache.hadoop.mapreduce.v2.api.records.TaskType; import org.apache.hadoop.mapreduce.v2.app.AppContext; import org.apache.hadoop.mapreduce.v2.app.client.ClientService; import org.apache.hadoop.mapreduce.v2.app.job.event.JobCounterUpdateEvent; import org.apache.hadoop.mapreduce.v2.app.job.event.JobEvent; import org.apache.hadoop.mapreduce.v2.app.job.event.JobEventType; import org.apache.hadoop.mapreduce.v2.app.job.event.TaskAttemptContainerAssignedEvent; import org.apache.hadoop.mapreduce.v2.app.rm.ContainerAllocator; import org.apache.hadoop.mapreduce.v2.app.rm.ContainerAllocatorEvent; import org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator; import org.apache.hadoop.security.UserGroupInformation; import org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest; import org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse; import org.apache.hadoop.yarn.api.records.Container; import org.apache.hadoop.yarn.api.records.ContainerId; import org.apache.hadoop.yarn.api.records.NodeId; import org.apache.hadoop.yarn.api.records.ResourceRequest; import org.apache.hadoop.yarn.api.records.Token; import org.apache.hadoop.yarn.client.ClientRMProxy; import org.apache.hadoop.yarn.event.EventHandler; import org.apache.hadoop.yarn.exceptions.ApplicationAttemptNotFoundException; import org.apache.hadoop.yarn.exceptions.ApplicationMasterNotRegisteredException; import org.apache.hadoop.yarn.exceptions.YarnRuntimeException; import org.apache.hadoop.yarn.factories.RecordFactory; import org.apache.hadoop.yarn.factory.providers.RecordFactoryProvider; import org.apache.hadoop.yarn.security.AMRMTokenIdentifier; public class LocalContainerAllocator extends RMCommunicator implements ContainerAllocator
[ "weilaidb@localhost.localdomain" ]
weilaidb@localhost.localdomain
86416718817ecfb19780ddbf019b19186114838a
764d198a5d3329dc5da9de4dc44344300f07de35
/src/main/java/com/ruisitech/bi/mapper/model/TableMeasureMapper.java
1ad9e9454e50b7545adc15c3366323eceb449209
[]
no_license
DarrickAZ/rsbi
a403cd93b034dde11370026e80e68e31d0670c7f
c82cd481d86e0f2ba4fd08f53b824b60bfd3170f
refs/heads/master
2020-04-26T17:32:35.928254
2019-03-14T06:35:31
2019-03-14T06:35:31
173,717,187
0
1
null
null
null
null
UTF-8
Java
false
false
1,018
java
// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package com.ruisitech.bi.mapper.model; import com.ruisitech.bi.entity.model.TableMeasure; import java.util.List; import java.util.Map; import org.apache.ibatis.annotations.Param; public interface TableMeasureMapper { void insertKpi(TableMeasure var1); void updateKpi(TableMeasure var1); void deleteKpi(TableMeasure var1); int getMaxKpiId(@Param("sysUser") String var1); List<TableMeasure> getTableKpis(@Param("sysUser") String var1, @Param("tid") Integer var2); List<Map<String, Object>> listKpiDesc(@Param("sysUser") String var1, @Param("selectDsIds") String var2); void insertKpiGroup(TableMeasure var1); List<String> listGroup(@Param("sysUser") String var1, @Param("tid") Integer var2); void deleteKpiGroup(@Param("sysUser") String var1, @Param("kpiGroup") String var2); void deleteKpiGroupByTid(@Param("sysUser") String var1, @Param("tid") Integer var2); }
[ "zhwwhx@126.com" ]
zhwwhx@126.com
efd440bfaec59fc10f96f86c9499cae1b1caa278
d71e879b3517cf4fccde29f7bf82cff69856cfcd
/ExtractedJars/Shopkick_com.shopkick.app/javafiles/android/databinding/adapters/TextViewBindingAdapter$1.java
18c377897296178dab95d754a5bb7f2f40d55da2
[ "MIT" ]
permissive
Andreas237/AndroidPolicyAutomation
b8e949e072d08cf6c6166c3f15c9c63379b8f6ce
c1ed10a2c6d4cf3dfda8b8e6291dee2c2a15ee8a
refs/heads/master
2020-04-10T02:14:08.789751
2019-05-16T19:29:11
2019-05-16T19:29:11
160,739,088
5
1
null
null
null
null
UTF-8
Java
false
false
4,247
java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package android.databinding.adapters; import android.databinding.InverseBindingListener; import android.text.Editable; import android.text.TextWatcher; // Referenced classes of package android.databinding.adapters: // TextViewBindingAdapter static final class TextViewBindingAdapter$1 implements TextWatcher { public void afterTextChanged(Editable editable) { terTextChanged tertextchanged = val$after; // 0 0:aload_0 // 1 1:getfield #29 <Field TextViewBindingAdapter$AfterTextChanged val$after> // 2 4:astore_2 if(tertextchanged != null) //* 3 5:aload_2 //* 4 6:ifnull 16 tertextchanged.afterTextChanged(editable); // 5 9:aload_2 // 6 10:aload_1 // 7 11:invokeinterface #39 <Method void TextViewBindingAdapter$AfterTextChanged.afterTextChanged(Editable)> // 8 16:return } public void beforeTextChanged(CharSequence charsequence, int i, int j, int k) { foreTextChanged foretextchanged = val$before; // 0 0:aload_0 // 1 1:getfield #23 <Field TextViewBindingAdapter$BeforeTextChanged val$before> // 2 4:astore 5 if(foretextchanged != null) //* 3 6:aload 5 //* 4 8:ifnull 23 foretextchanged.beforeTextChanged(charsequence, i, j, k); // 5 11:aload 5 // 6 13:aload_1 // 7 14:iload_2 // 8 15:iload_3 // 9 16:iload 4 // 10 18:invokeinterface #45 <Method void TextViewBindingAdapter$BeforeTextChanged.beforeTextChanged(CharSequence, int, int, int)> // 11 23:return } public void onTextChanged(CharSequence charsequence, int i, int j, int k) { TextChanged textchanged = val$on; // 0 0:aload_0 // 1 1:getfield #25 <Field TextViewBindingAdapter$OnTextChanged val$on> // 2 4:astore 5 if(textchanged != null) //* 3 6:aload 5 //* 4 8:ifnull 23 textchanged.onTextChanged(charsequence, i, j, k); // 5 11:aload 5 // 6 13:aload_1 // 7 14:iload_2 // 8 15:iload_3 // 9 16:iload 4 // 10 18:invokeinterface #50 <Method void TextViewBindingAdapter$OnTextChanged.onTextChanged(CharSequence, int, int, int)> charsequence = ((CharSequence) (val$textAttrChanged)); // 11 23:aload_0 // 12 24:getfield #27 <Field InverseBindingListener val$textAttrChanged> // 13 27:astore_1 if(charsequence != null) //* 14 28:aload_1 //* 15 29:ifnull 38 ((InverseBindingListener) (charsequence)).onChange(); // 16 32:aload_1 // 17 33:invokeinterface #55 <Method void InverseBindingListener.onChange()> // 18 38:return } final terTextChanged val$after; final foreTextChanged val$before; final TextChanged val$on; final InverseBindingListener val$textAttrChanged; TextViewBindingAdapter$1(foreTextChanged foretextchanged, TextChanged textchanged, InverseBindingListener inversebindinglistener, terTextChanged tertextchanged) { val$before = foretextchanged; // 0 0:aload_0 // 1 1:aload_1 // 2 2:putfield #23 <Field TextViewBindingAdapter$BeforeTextChanged val$before> val$on = textchanged; // 3 5:aload_0 // 4 6:aload_2 // 5 7:putfield #25 <Field TextViewBindingAdapter$OnTextChanged val$on> val$textAttrChanged = inversebindinglistener; // 6 10:aload_0 // 7 11:aload_3 // 8 12:putfield #27 <Field InverseBindingListener val$textAttrChanged> val$after = tertextchanged; // 9 15:aload_0 // 10 16:aload 4 // 11 18:putfield #29 <Field TextViewBindingAdapter$AfterTextChanged val$after> super(); // 12 21:aload_0 // 13 22:invokespecial #32 <Method void Object()> // 14 25:return } }
[ "silenta237@gmail.com" ]
silenta237@gmail.com
f75db97563fd1e3642c4b6611dd52facf2f0fb64
73c5f5a5545036967df0d5ddf2cbfaa97fbe49ed
/src/src/com/rapidminer/operator/learner/clustering/hierarchical/upgma/ClusterDistanceMeasure.java
a1e41882c6f9a3f62c8b41225dd52d5c39ea29f8
[]
no_license
hejiming/rapiddataminer
74b103cb4523ccba47150045c165dc384cf7d38f
177e15fa67dee28b311f6d9176bbfeedae6672e2
refs/heads/master
2021-01-10T11:35:48.036839
2015-12-31T12:29:43
2015-12-31T12:29:43
48,233,639
0
0
null
null
null
null
UTF-8
Java
false
false
1,141
java
/* * RapidMiner * * Copyright (C) 2001-2008 by Rapid-I and the contributors * * Complete list of developers available at our web site: * * http://rapid-i.com * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see http://www.gnu.org/licenses/. */ package com.rapidminer.operator.learner.clustering.hierarchical.upgma; public interface ClusterDistanceMeasure { public abstract double calculateUnionDistance(double distanceLI, double distanceLJ, Cluster clusterI, Cluster clusterJ, Cluster clusterL); }
[ "dao.xiang.cun@163.com" ]
dao.xiang.cun@163.com
12eef1a3e84de85c0c3bbc1d60ac499841594c83
7c77db2153f9e7d63cc69387eb1f03b468cc9669
/TouchRemoting/src/com/ivyinfo/framework/service/server/SpringContextHolder.java
9666f4f1b0d39b60fc83bc38fbc8050674444198
[]
no_license
saaikrishnaa/tigase-spring-ui
37dd7e9524225c3b8c76ff301c8fe6d105bfe209
5aec124189bf66762e8b740dff6504b5f9e0d6ae
refs/heads/master
2021-12-05T02:31:57.835503
2012-05-23T16:26:11
2012-05-23T16:26:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
411
java
package com.ivyinfo.framework.service.server; import org.springframework.context.ApplicationContext; public class SpringContextHolder { private static ApplicationContext applicationContext; public static void setApplicationContext(ApplicationContext context){ applicationContext = context; } public static ApplicationContext getApplicationContext(){ return applicationContext; } }
[ "qinkun1234@4acf1e67-aba8-a66a-3f9a-35fc814734f0" ]
qinkun1234@4acf1e67-aba8-a66a-3f9a-35fc814734f0
afca292c490453c24ca69acfeb073942aeeb25a1
225194fc28beaa9511b24d103f2c7ac557c53405
/creditcardservices/src/main/java/com/creditcard/creditcardservices/dao/CreditCardServiceDao.java
f60925c8bbd97f7a2a2a707676afc1c971858ecd
[]
no_license
chelirohini/CreditCardServices
3dbbe535bcaf6015759889bb0d7d0f1c2b3ca1f8
8b401e69d4eedd7daed9cd7cb2f4ce19b2c97b41
refs/heads/master
2023-03-14T09:04:25.059322
2021-02-28T23:35:05
2021-02-28T23:35:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
281
java
package com.creditcard.creditcardservices.dao; import java.util.Set; import org.springframework.data.jpa.repository.JpaRepository; import com.creditcard.creditcardservices.model.CreditCard; public interface CreditCardServiceDao extends JpaRepository<CreditCard,Integer>{ }
[ "you@example.com" ]
you@example.com
0289ee776ad0663d67f9d2bd5bf8ee4606929766
974aeb5e2b60a9ffbfe8b51b71adca4b17756aef
/SeleniumProject/src/com/SeleniumProject/javaprogrammes/interfaceimplementseg2.java
e8769a636edb66fbeb156cf781294daa930f0b1f
[]
no_license
shaath/KavithaAttur
8940250895f1c5b5ba43793c6b22bce5b8b7a03f
255086297517b39e9ec07f61cf9342afab401f1b
refs/heads/master
2020-03-27T20:36:31.073934
2018-09-02T12:09:52
2018-09-02T12:09:52
147,080,556
0
0
null
null
null
null
UTF-8
Java
false
false
368
java
package com.SeleniumProject.javaprogrammes; public class interfaceimplementseg2 implements interfaceEg{ public void car() { System.out.println("Interface implementation2 Car"); } public void bike() { System.out.println("Interface implementation2 Bike"); } public void vehicle() { System.out.println("Interface implementation2 Vehicle"); } }
[ "you@example.com" ]
you@example.com
574a77ad34690c9784c33626bb3ed484cc37c855
09534c278861e04441712475790c08fe0b92f279
/app/src/main/java/com/walktour/gui/newmap2/IMapTab.java
3cdbe3378cae3aeb406ffaa7fc88d5b30b62d8db
[]
no_license
copslock/Walktour4
077eee3500387abd9a8b74727dd3c5727cc11384
46b7e77e2a5e54c4f2a83f23448f7031c8b37537
refs/heads/master
2023-07-17T13:05:58.825418
2019-08-20T07:12:35
2019-08-20T07:12:35
397,678,508
1
0
null
null
null
null
UTF-8
Java
false
false
218
java
package com.walktour.gui.newmap2; import com.walktour.Utils.WalkStruct; /** * * @author zhicheng.chen * @date 2018/11/20 */ public interface IMapTab { void swicthMap(WalkStruct.ShowInfoType showInfoType); }
[ "15015912346@163.com" ]
15015912346@163.com
16043abf089a2f7930a4a5209b57b9d648fbaf67
77f41106d18d9d2fd2ca85c18531f7e30e6968a8
/clients/desktop-uploader-common/src/test/java/com/infoclinika/mssharing/upload/common/web/test/WebServiceTest.java
419193e81fb2a2fbcb223ae73583837a251d66de
[]
no_license
StratusBioSciences/chorus
a8abaa7ab1e9e8f6d867d327c7ec26e804e6fe0b
c9d8099419733314c0166980ee6270563a212383
refs/heads/master
2021-01-20T12:41:17.996158
2017-05-05T13:33:37
2017-05-05T13:33:37
90,378,816
0
4
null
2019-05-08T17:09:36
2017-05-05T13:32:47
Java
UTF-8
Java
false
false
5,428
java
/* package com.infoclinika.mssharing.upload.common.web.test; import com.google.common.base.Function; import com.google.common.base.Predicate; import com.google.common.collect.Collections2; import com.google.common.collect.FluentIterable; import com.google.common.collect.ImmutableList; import com.infoclinika.mssharing.dto.request.ConfirmMultipartUploadDTO; import com.infoclinika.mssharing.dto.request.UploadFilesDTORequest; import com.infoclinika.mssharing.dto.request.UserNamePassDTO; import com.infoclinika.mssharing.dto.response.*; import com.infoclinika.mssharing.upload.common.web.test.util.FileCreator; import com.infoclinika.mssharing.upload.common.web.test.util.SpringConfig; import com.infoclinika.mssharing.upload.common.web.api.WebService; import org.apache.cxf.common.util.StringUtils; import org.junit.*; import org.junit.runner.RunWith; import org.springframework.context.annotation.DependsOn; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import javax.annotation.Nullable; import javax.inject.Inject; import java.io.File; import java.io.IOException; import java.util.List; import static com.google.common.collect.Lists.newArrayList; @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = SpringConfig.class) public class WebServiceTest { static File testTempFile; @Inject WebService webService; @BeforeClass public static void setUpInit() throws IOException { testTempFile = FileCreator.createTempFile(); } @AfterClass public static void setDownInit() throws IOException { FileCreator.deleteTempDir(); } @Before public void setUp() throws IOException { // authenticate created session AuthenticateDTO authenticate = webService.authenticate(new UserNamePassDTO("pavel.kaplin@gmail.com", "pwd")); Assert.assertTrue("Error - Server didn't respond", authenticate != null); Assert.assertFalse("Error - Bad credentials", StringUtils.isEmpty(authenticate.getRestToken())); } @Test public void testFindInstrumentsAndSpecies() { // chose instrument and specie final List<InstrumentDTO> instruments = webService.getInstruments(); Assert.assertFalse("Error - Not work get all instruments", instruments.isEmpty()); Assert.assertFalse("Error - Not work get all species", webService.getSpecies().isEmpty()); Assert.assertTrue("Error - Not work get files for this instruments", FluentIterable.from(instruments).anyMatch(new Predicate<InstrumentDTO>() { @Override public boolean apply(@Nullable InstrumentDTO input) { return !webService.getInstrumentFiles(input).isEmpty(); } })); } @Test @DependsOn("testFindInstrumentsAndSpecies") public void testPostStartUploadRequest() throws IOException { InstrumentDTO instrument1 = webService.getInstruments().get(1); UploadFilesDTORequest.UploadFile uploadFile = new UploadFilesDTORequest.UploadFile( testTempFile.getName(), "", testTempFile.length(), 1, false ); UploadFilesDTORequest request = new UploadFilesDTORequest(instrument1.getId(), newArrayList(uploadFile)); UploadFilesDTOResponse response = webService.postStartUploadRequestBeforeFinish(request); Assert.assertTrue("Error - Return other instrument file", response.getInstrument() == instrument1.getId()); Assert.assertFalse("Error - File not write to request upload", response.getFiles().isEmpty()); } @Test public void testFindUnfinishedUploads() throws IOException { testPostStartUploadRequest(); List<FileDTO> files = webService.getUnfinishedUploads(); Assert.assertFalse("Error - Not have unfinished files", files.isEmpty()); List<String> fileNameUnfinished = ImmutableList.copyOf( Collections2.transform(files, new Function<FileDTO, String>() { @Override public String apply(FileDTO file) { return file.getName(); } })); String name = testTempFile.getName(); Assert.assertTrue("Error - File " + name + " not found", fileNameUnfinished.contains(name)); } @Test @DependsOn("testFindUnfinishedUploads") public void testDeleteUnfinishedUploads() throws IOException { List<FileDTO> files = webService.getUnfinishedUploads(); for (FileDTO file : files) { DeleteUploadDTO result = webService.deleteUpload(file.getId()); Assert.assertTrue("Error - File " + file.getName() + " not deleted", result.isDeleted()); } } @Test @DependsOn("testFindUnfinishedUploads") public void postCompleteUploadRequest() throws IOException { List<FileDTO> files = webService.getUnfinishedUploads(); for (FileDTO file : files) { CompleteUploadDTO result = webService.postCompleteUploadRequest( new ConfirmMultipartUploadDTO(file.getId(), String.valueOf(file.getContentId()))); Assert.assertTrue("Error - File " + file.getName() + " not confirmed", result.isConfirmed()); } } }*/
[ "vladimir.moiseiev@teamdev.com" ]
vladimir.moiseiev@teamdev.com
47f4f286ead087d8e938042ae05090709f2bf5d1
8504b15ba9153caa24c1032f5482deef93b9e339
/MroXdrMerge/core/xdr/lablefill/by23g/GridData_2G.java
a84e7e49d306def3bea376a7ee6360f290fddfa8
[]
no_license
AlexanderKwong/myProject
78d4507f0ef9bcc64c383151233d744fe3cc89ef
3828aff308babb689c035e25be71c743d769c093
refs/heads/master
2021-08-31T19:53:35.167478
2017-12-22T16:42:10
2017-12-22T16:42:10
111,092,218
0
0
null
null
null
null
UTF-8
Java
false
false
1,226
java
package xdr.lablefill.by23g; import StructData.DT_Sample_2G; import StructData.Stat_Grid_2G; import jan.util.data.MyInt; public class GridData_2G { private int startTime; private int endTime; private Stat_Grid_2G lteGrid; public GridData_2G(int startTime, int endTime) { this.startTime = startTime; this.endTime = endTime; lteGrid = new Stat_Grid_2G(); } public Stat_Grid_2G getStatItem() { return lteGrid; } public int getStartTime() { return startTime; } public int getEndTime() { return endTime; } public void dealSample(DT_Sample_2G sample) { boolean isMroSample = sample.flag.toUpperCase().equals("MRO"); boolean isMreSample = sample.flag.toUpperCase().equals("MRE"); lteGrid.isamplenum++; if (isMroSample || isMreSample) { } else { lteGrid.XdrCount++; lteGrid.iduration += sample.duration; //只有xdr,才算用户的个数,mr不用算 if(sample.IMSI > 0) { MyInt item = lteGrid.imsiMap.get(sample.IMSI); if(item == null) { item = new MyInt(0); lteGrid.imsiMap.put(sample.IMSI, item); } item.data++; } } } public void finalDeal() { lteGrid.UserCount = lteGrid.imsiMap.size(); } }
[ "601828006@qq.com" ]
601828006@qq.com
7c1707cbc905935f7422556344951b894e1c3bdd
f06239af9a874bc34eff6cd331498f1e23e29a8d
/src/main/java/org/oddjob/arooa/design/DesignListener.java
e0ec4dec3bfed3915e4b7b58635c30a6771d7997
[ "Apache-2.0" ]
permissive
robjg/arooa
70950665a2d5ecae3134df350832c44b8eb45e02
35f56775fc0e98ba3fb0f9c71134bc9c7a6ad584
refs/heads/master
2023-07-05T10:42:30.565054
2023-07-04T06:29:29
2023-07-04T06:29:29
1,803,585
1
0
null
null
null
null
UTF-8
Java
false
false
510
java
package org.oddjob.arooa.design; /** * A class which implements this interface is able to receive structural events. * * @author Rob Gordon. */ public interface DesignListener { /** * Called when a child is added to a Structural object. * * @param event The structural event. */ void childAdded(DesignStructureEvent event); /** * Called when a child is removed from a Structural object. * * @param event The structural event. */ void childRemoved(DesignStructureEvent event); }
[ "rob@rgordon.co.uk" ]
rob@rgordon.co.uk
274fc5d59a3648ae30894066c6e9d77d99c30f3e
a72c559f74aeb6fde09c16210f03ec9626a9c590
/gwt-bean-validators-restygwt-jaxrs/src/main/java/de/knightsoftnet/validators/client/rest/path/PathDefinitionImpl.java
3f1172d3ec13fd61c3c0d97cb0345972627a73ca
[ "Apache-2.0" ]
permissive
ManfredTremmel/gwt-bean-validators
4437b40f5987243af47124416ad661aa246ce6cf
fed075f8746efd471e0a486de5f9aafd5716bd29
refs/heads/master
2021-04-15T04:54:50.749984
2020-02-22T21:21:57
2020-02-22T21:21:57
28,275,474
32
6
Apache-2.0
2020-02-22T21:21:22
2014-12-20T18:37:01
Java
UTF-8
Java
false
false
452
java
package de.knightsoftnet.validators.client.rest.path; import de.knightsoftnet.validators.shared.ResourcePaths; import com.google.gwt.core.client.GWT; import org.apache.commons.lang3.StringUtils; public class PathDefinitionImpl implements PathDefinitionInterface { @Override public String getRestBasePath() { return StringUtils.removeEnd( StringUtils.removeEnd(GWT.getModuleBaseURL(), "/") + ResourcePaths.API_BASE_DIR, "/"); } }
[ "Manfred.Tremmel@iiv.de" ]
Manfred.Tremmel@iiv.de
de849e4981a8f18907e7f89b2ca85563f20bb675
c8c949b3710fbb4b983d03697ec9173a0ad3f79f
/src/com/company/ExpressiveWords.java
35d24f59e68842e81b0d0be318ba54d69c3e6015
[]
no_license
mxx626/myleet
ae4409dec30d81eaaef26518cdf52a75fd3810bc
5da424b2f09342947ba6a9fffb1cca31b7101cf0
refs/heads/master
2020-03-22T15:11:07.145406
2018-07-09T05:12:28
2018-07-09T05:12:28
140,234,151
2
1
null
null
null
null
UTF-8
Java
false
false
4,042
java
package com.company; // TAG: String public class ExpressiveWords { /** * Sometimes people repeat letters to represent extra feeling, such as "hello" -> "heeellooo", * "hi" -> "hiiii". Here, we have groups, of adjacent letters that are all the same character, * and adjacent characters to the group are different. A group is extended if that group is * length 3 or more, so "e" and "o" would be extended in the first example, and "i" would be * extended in the second example. As another example, the groups of "abbcccaaaa" would be "a", * "bb", "ccc", and "aaaa"; and "ccc" and "aaaa" are the extended groups of that string. For some given string S, a query word is stretchy if it can be made to be equal to S by extending some groups. Formally, we are allowed to repeatedly choose a group (as defined above) of characters c, and add some number of the same character c to it so that the length of the group is 3 or more. Note that we cannot extend a group of size one like "h" to a group of size two like "hh" - all extensions must leave the group extended - ie., at least 3 characters long. Given a list of query words, return the number of words that are stretchy. Example: Input: S = "heeellooo" words = ["hello", "hi", "helo"] Output: 1 Explanation: We can extend "e" and "o" in the word "hello" to get "heeellooo". We can't extend "helo" to get "heeellooo" because the group "ll" is not extended. Notes: 0 <= len(S) <= 100. 0 <= len(words) <= 100. 0 <= len(words[i]) <= 100. S and all words in words consist only of lowercase letters * @param S * @param words * @return */ public int expressiveWords(String S, String[] words) { int result = 0; for (String word : words) { if (match(S, word)) { result++; } } return result; } private boolean match(String S, String word) { int i = 0; int j = 0; while (i < S.length() && j < word.length()) { if (S.charAt(i) != word.charAt(j)) { return false; } int count1 = countChar(S, i); int count2 = countChar(word, j); if (count1 != count2 && (count1 < 3 || count1 < count2)) { return false; } i += count1; j += count2; } return i == S.length() && j == word.length(); } private int countChar(String s, int start) { char c = s.charAt(start); int i = start + 1; for (; i < s.length(); i++) { if (s.charAt(i) != c) { break; } } return i - start; } ///////////////////////////////////////////////////////////////////////////////////////////////////// public int expressiveWords2(String S, String[] words) { int res=0; for (String str : words){ if (isMatch(str, S)) res++; } return res; } private boolean isMatch(String word, String S){ int wLen=word.length(), sLen=S.length(); if (wLen>sLen) return false; if (wLen==sLen && !word.equals(S)) return false; int i=0, j=0; boolean flag=true; while (i<wLen && j<sLen){ if (word.charAt(i) == S.charAt(j)){ int tmp = i; int tmpS = j; char c = word.charAt(i); while (i<wLen && word.charAt(i)==c) i++; while (j<sLen && S.charAt(j)==c) j++; if (j-tmpS<3 && !word.substring(tmp, i).equals(S.substring(tmpS, j))){ flag=false; break; } } else break; } if (i==wLen && j==sLen && flag) return true; return false; } }
[ "mxx626@outlook.com" ]
mxx626@outlook.com
230d4507eb5c6f5e48452ec9a13bc54bc5fae15b
0f69e859b88fc53c4848021911a45fec99f7a932
/snap-dx/src/main/java/org/snapscript/dx/rop/annotation/AnnotationVisibility.java
6c633b292871a0448d3d9aafcd9f78e4c606b645
[]
no_license
snapscript/snap-external
62d6f3c260b457695be2ba79ff6b75b070d0e309
1ea713d89021824a18fe477a9394fa896e0b605a
refs/heads/master
2020-12-02T23:54:15.558170
2019-02-07T21:52:48
2019-02-07T21:52:48
95,952,611
1
0
null
null
null
null
UTF-8
Java
false
false
1,301
java
/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.snapscript.dx.rop.annotation; import org.snapscript.dx.util.ToHuman; /** * Visibility scope of an annotation. */ public enum AnnotationVisibility implements ToHuman { RUNTIME("runtime"), BUILD("build"), SYSTEM("system"), EMBEDDED("embedded"); /** {@code non-null;} the human-oriented string representation */ private final String human; /** * Constructs an instance. * * @param human {@code non-null;} the human-oriented string representation */ private AnnotationVisibility(String human) { this.human = human; } /** {@inheritDoc} */ public String toHuman() { return human; } }
[ "gallagher_niall@yahoo.com" ]
gallagher_niall@yahoo.com
ab86a2d7f0f6f214181c8644c2451c57c07fa02f
af7c8e493be053d600d21a6b7eaba55844e2269e
/Westwinglife/app/src/main/java/com/bentudou/westwinglife/json/GoodsDetail.java
71aa5de689a9aeabbdd891746008d0adeadccaca
[]
no_license
wutianchi/Tudou-android
fa8cb86d33ecef0ed3bdddcaf2069a55efb0bff1
d73db454eeb26ac7c85090778097add0bc7a9271
refs/heads/master
2021-01-09T06:04:15.980455
2017-02-04T04:42:35
2017-02-04T04:42:35
80,893,685
5
3
null
null
null
null
UTF-8
Java
false
false
3,528
java
package com.bentudou.westwinglife.json; import java.math.BigDecimal; import java.util.Date; import java.util.List; /** * Created by lzz on 2016/6/18. */ public class GoodsDetail { /** * ID */ private int goodsId; /** * 商品分类ID */ private int categoryId; /** * 商品品牌ID */ private int brandId; /** * 商品名称 */ private String goodsCnName; /** * 市场售价 */ private BigDecimal marketPrice; /** * 本店价格 */ private BigDecimal shopPriceCny; /** * 起订量 */ private int wholesaleMoq; /** * 商品图片 */ private String goodsImg; /** * 商品图文详情 */ private String goodsDescImg; /** * 是否参加了活动(0.未参加活动/1.参加活动) */ private boolean isActivity; /** * 发货仓 */ private String depotName; /** * 产地 */ private String goodsOriginName; /** * 货号 */ private String goodsSn; /** * 产品参数 */ private String goodsSpecifications; public BigDecimal getShopPriceCny() { return shopPriceCny; } public void setShopPriceCny(BigDecimal shopPriceCny) { this.shopPriceCny = shopPriceCny; } public String getGoodsOriginName() { return goodsOriginName; } public void setGoodsOriginName(String goodsOriginName) { this.goodsOriginName = goodsOriginName; } public String getGoodsSn() { return goodsSn; } public void setGoodsSn(String goodsSn) { this.goodsSn = goodsSn; } public String getGoodsImg() { return goodsImg; } public void setGoodsImg(String goodsImg) { this.goodsImg = goodsImg; } public int getWholesaleMoq() { return wholesaleMoq; } public void setWholesaleMoq(int wholesaleMoq) { this.wholesaleMoq = wholesaleMoq; } public int getGoodsId() { return goodsId; } public void setGoodsId(int goodsId) { this.goodsId = goodsId; } public int getCategoryId() { return categoryId; } public void setCategoryId(int categoryId) { this.categoryId = categoryId; } public int getBrandId() { return brandId; } public void setBrandId(int brandId) { this.brandId = brandId; } public String getGoodsCnName() { return goodsCnName; } public void setGoodsCnName(String goodsCnName) { this.goodsCnName = goodsCnName; } public BigDecimal getMarketPrice() { return marketPrice; } public void setMarketPrice(BigDecimal marketPrice) { this.marketPrice = marketPrice; } public boolean isActivity() { return isActivity; } public void setActivity(boolean activity) { isActivity = activity; } public String getDepotName() { return depotName; } public void setDepotName(String depotName) { this.depotName = depotName; } public String getGoodsSpecifications() { return goodsSpecifications; } public void setGoodsSpecifications(String goodsSpecifications) { this.goodsSpecifications = goodsSpecifications; } public String getGoodsDescImg() { return goodsDescImg; } public void setGoodsDescImg(String goodsDescImg) { this.goodsDescImg = goodsDescImg; } }
[ "admin@example.com" ]
admin@example.com
69b0321c89a27869b05ca511130c138624238c76
3369e1422175ef80b0f7cc76a1e72f496be7ae72
/0212_MVC_MyBatis/src/com/ict/model/ListCommand.java
bf2d4ba35d413a34b36fa68bd680752f16d33a30
[]
no_license
jeystory/ict_jsp
3c6fb1df5c1181ae8f322e11f193a86fd70eda63
56cf78f351f2d784dd08fd4009bc0634a2920e2e
refs/heads/master
2022-04-14T03:34:27.116261
2020-04-22T02:27:27
2020-04-22T02:27:27
257,769,147
0
0
null
null
null
null
UTF-8
Java
false
false
442
java
package com.ict.model; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.ict.db.DAO; import com.ict.db.VO; public class ListCommand implements Command{ @Override public String exec(HttpServletRequest request, HttpServletResponse response) { List<VO> list = DAO.getList(); request.setAttribute("list", list); return "view/list.jsp"; } }
[ "59073350+jeystory@users.noreply.github.com" ]
59073350+jeystory@users.noreply.github.com
d6929cf21e4e47d011276174c1dbd10c40f17381
223c236c03a89c5a8cfa6272ece12239a53f7a35
/phase8/stage3/step3/src/main/java/com/namoosori/javastory/LogicApplication.java
62cbdba36efedb96d492e7a74faee72b38c09375
[]
no_license
ParkSangHyun2/demolab
053317cefde1f4b518939b1bf68050e4e17a73f5
fa7fd23f2e82c0df57dbea9995255fa03d49bc1d
refs/heads/master
2021-04-27T02:56:39.194111
2018-04-12T07:26:24
2018-04-12T07:26:24
122,702,973
1
0
null
2018-03-06T04:39:21
2018-02-24T04:27:55
Java
UTF-8
Java
false
false
313
java
package com.namoosori.javastory; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class LogicApplication { public static void main(String[] args) { SpringApplication.run(LogicApplication.class, args); } }
[ "pus5684@gmail.com" ]
pus5684@gmail.com
bf335c0dda54b1e0b32662d8030894d7fece64e3
445d67019ee3871be1e4630e4a852b4b82818aff
/plugins/t-filesToStatements/src/main/java/com/linkedpipes/plugin/transformer/filesToStatements/FilesToStatements.java
498a6637f9248ecb52e7db1a618d41241083ec17
[ "MIT" ]
permissive
jindrichmynarz/etl
b00eac4d8613c8006cf4cf96d9e069c409d6bc25
b2d1db0abdee596a534a512746a14d2566027699
refs/heads/master
2021-01-20T23:51:59.987621
2017-06-27T14:34:41
2017-06-27T14:34:41
62,438,535
0
0
null
2016-07-02T07:04:43
2016-07-02T07:04:43
null
UTF-8
Java
false
false
3,202
java
package com.linkedpipes.plugin.transformer.filesToStatements; import com.linkedpipes.etl.dataunit.core.files.FilesDataUnit; import com.linkedpipes.etl.dataunit.core.rdf.WritableGraphListDataUnit; import com.linkedpipes.etl.executor.api.v1.LpException; import com.linkedpipes.etl.executor.api.v1.component.Component; import com.linkedpipes.etl.executor.api.v1.component.SequentialExecution; import com.linkedpipes.etl.executor.api.v1.service.ExceptionFactory; import com.linkedpipes.etl.executor.api.v1.service.ProgressReport; import org.apache.commons.io.FileUtils; import org.eclipse.rdf4j.model.IRI; import org.eclipse.rdf4j.model.Statement; import org.eclipse.rdf4j.model.ValueFactory; import org.eclipse.rdf4j.model.impl.SimpleValueFactory; import java.io.IOException; import java.util.ArrayList; import java.util.List; public final class FilesToStatements implements Component, SequentialExecution { private static final int BUFFER_SIZE = 64; @Component.OutputPort(iri = "InputFiles") public FilesDataUnit inputFiles; @Component.InputPort(iri = "OutputRdf") public WritableGraphListDataUnit outputRdf; @Component.Configuration public FilesToStatementsConfiguration configuration; @Component.Inject public ProgressReport progressReport; @Component.Inject public ExceptionFactory exceptionFactory; @Override public void execute() throws LpException { final List<Statement> statements = new ArrayList<>(BUFFER_SIZE + 1); final ValueFactory valueFactory = SimpleValueFactory.getInstance(); final IRI predicate; try { predicate = valueFactory.createIRI( configuration.getPredicate()); } catch (Throwable t) { throw exceptionFactory.failure("Invalid predicate: {}", FilesToStatementsVocabulary.PREDICATE, t); } // progressReport.start(inputFiles.size() + 1); for (FilesDataUnit.Entry file : inputFiles) { // Read file content. final String content; try { content = FileUtils.readFileToString(file.toFile()); } catch (IOException ex) { throw exceptionFactory.failure("Can't read file: {}", file, ex); } // Add to output. final IRI outputGraph = outputRdf.createGraph(); statements.add(valueFactory.createStatement( valueFactory.createBNode(), predicate, valueFactory.createLiteral(content), outputGraph)); // Add to the repository. if (statements.size() >= BUFFER_SIZE) { addStatements(statements); } progressReport.entryProcessed(); } // Add to the repository. addStatements(statements); progressReport.done(); } /** * Add statements to output and clear given list. */ private void addStatements(List<Statement> statements) throws LpException { outputRdf.execute((connection) -> { connection.add(statements); }); statements.clear(); } }
[ "skodapetr@gmail.com" ]
skodapetr@gmail.com
86f8d7d3f107f0a51ea0b3b6f3839b52fe3b339b
4d37505edab103fd2271623b85041033d225ebcc
/spring-context/src/test/java/org/springframework/context/annotation/Spr11202Tests.java
b81a00b8aa970f668f74ccbefbcfadb4234f5ff6
[ "Apache-2.0" ]
permissive
huifer/spring-framework-read
1799f1f073b65fed78f06993e58879571cc4548f
73528bd85adc306a620eedd82c218094daebe0ee
refs/heads/master
2020-12-08T08:03:17.458500
2020-03-02T05:51:55
2020-03-02T05:51:55
232,931,630
6
2
Apache-2.0
2020-03-02T05:51:57
2020-01-10T00:18:15
Java
UTF-8
Java
false
false
3,754
java
/* * Copyright 2002-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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.context.annotation; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.junit.Test; import org.springframework.beans.factory.FactoryBean; import org.springframework.beans.factory.InitializingBean; import org.springframework.context.ApplicationContext; import org.springframework.core.type.AnnotatedTypeMetadata; import org.springframework.core.type.AnnotationMetadata; import org.springframework.util.Assert; import static org.junit.Assert.*; /** * @author Dave Syer */ public class Spr11202Tests { @Test public void testWithImporter() { ApplicationContext context = new AnnotationConfigApplicationContext(Wrapper.class); assertEquals("foo", context.getBean("value")); } @Test public void testWithoutImporter() { ApplicationContext context = new AnnotationConfigApplicationContext(Config.class); assertEquals("foo", context.getBean("value")); } @Retention(RetentionPolicy.RUNTIME) @Documented @Target(ElementType.TYPE) protected @interface Bar { } @Configuration @Import(Selector.class) protected static class Wrapper { } protected static class Selector implements ImportSelector { @Override public String[] selectImports(AnnotationMetadata importingClassMetadata) { return new String[]{Config.class.getName()}; } } @Configuration protected static class Config { @Bean public FooFactoryBean foo() { return new FooFactoryBean(); } @Bean public String value() throws Exception { String name = foo().getObject().getName(); Assert.state(name != null, "Name cannot be null"); return name; } @Bean @Conditional(NoBarCondition.class) public String bar() throws Exception { return "bar"; } } protected static class NoBarCondition implements Condition { @Override public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) { if (context.getBeanFactory().getBeanNamesForAnnotation(Bar.class).length > 0) { return false; } return true; } } protected static class FooFactoryBean implements FactoryBean<Foo>, InitializingBean { private Foo foo = new Foo(); @Override public Foo getObject() throws Exception { return foo; } @Override public Class<?> getObjectType() { return Foo.class; } @Override public boolean isSingleton() { return true; } @Override public void afterPropertiesSet() throws Exception { this.foo.name = "foo"; } } protected static class Foo { private String name; public String getName() { return name; } } }
[ "huifer97@163.com" ]
huifer97@163.com
15dc1f1069744dfbbc8ee51378162eb2982754e9
fec4a09f54f4a1e60e565ff833523efc4cc6765a
/Dependencies/work/decompile-00fabbe5/net/minecraft/world/level/block/BlockAttachable.java
8cadbb02f0df0f259b2d022bdcac7a2550a45978
[]
no_license
DefiantBurger/SkyblockItems
012d2082ae3ea43b104ac4f5bf9eeb509889ec47
b849b99bd4dc52ae2f7144ddee9cbe2fd1e6bf03
refs/heads/master
2023-06-23T17:08:45.610270
2021-07-27T03:27:28
2021-07-27T03:27:28
389,780,883
0
0
null
null
null
null
UTF-8
Java
false
false
3,415
java
package net.minecraft.world.level.block; import javax.annotation.Nullable; import net.minecraft.core.BlockPosition; import net.minecraft.core.EnumDirection; import net.minecraft.world.item.context.BlockActionContext; import net.minecraft.world.level.GeneratorAccess; import net.minecraft.world.level.IWorldReader; import net.minecraft.world.level.block.state.BlockBase; import net.minecraft.world.level.block.state.IBlockData; import net.minecraft.world.level.block.state.properties.BlockProperties; import net.minecraft.world.level.block.state.properties.BlockPropertyAttachPosition; import net.minecraft.world.level.block.state.properties.BlockStateEnum; public class BlockAttachable extends BlockFacingHorizontal { public static final BlockStateEnum<BlockPropertyAttachPosition> FACE = BlockProperties.ATTACH_FACE; protected BlockAttachable(BlockBase.Info blockbase_info) { super(blockbase_info); } @Override public boolean canPlace(IBlockData iblockdata, IWorldReader iworldreader, BlockPosition blockposition) { return b(iworldreader, blockposition, h(iblockdata).opposite()); } public static boolean b(IWorldReader iworldreader, BlockPosition blockposition, EnumDirection enumdirection) { BlockPosition blockposition1 = blockposition.shift(enumdirection); return iworldreader.getType(blockposition1).d(iworldreader, blockposition1, enumdirection.opposite()); } @Nullable @Override public IBlockData getPlacedState(BlockActionContext blockactioncontext) { EnumDirection[] aenumdirection = blockactioncontext.f(); int i = aenumdirection.length; for (int j = 0; j < i; ++j) { EnumDirection enumdirection = aenumdirection[j]; IBlockData iblockdata; if (enumdirection.n() == EnumDirection.EnumAxis.Y) { iblockdata = (IBlockData) ((IBlockData) this.getBlockData().set(BlockAttachable.FACE, enumdirection == EnumDirection.UP ? BlockPropertyAttachPosition.CEILING : BlockPropertyAttachPosition.FLOOR)).set(BlockAttachable.FACING, blockactioncontext.g()); } else { iblockdata = (IBlockData) ((IBlockData) this.getBlockData().set(BlockAttachable.FACE, BlockPropertyAttachPosition.WALL)).set(BlockAttachable.FACING, enumdirection.opposite()); } if (iblockdata.canPlace(blockactioncontext.getWorld(), blockactioncontext.getClickPosition())) { return iblockdata; } } return null; } @Override public IBlockData updateState(IBlockData iblockdata, EnumDirection enumdirection, IBlockData iblockdata1, GeneratorAccess generatoraccess, BlockPosition blockposition, BlockPosition blockposition1) { return h(iblockdata).opposite() == enumdirection && !iblockdata.canPlace(generatoraccess, blockposition) ? Blocks.AIR.getBlockData() : super.updateState(iblockdata, enumdirection, iblockdata1, generatoraccess, blockposition, blockposition1); } protected static EnumDirection h(IBlockData iblockdata) { switch ((BlockPropertyAttachPosition) iblockdata.get(BlockAttachable.FACE)) { case CEILING: return EnumDirection.DOWN; case FLOOR: return EnumDirection.UP; default: return (EnumDirection) iblockdata.get(BlockAttachable.FACING); } } }
[ "joseph.cicalese@gmail.com" ]
joseph.cicalese@gmail.com
ad4afea8da722502ea4636212e7d142b898b45a3
96f8d42c474f8dd42ecc6811b6e555363f168d3e
/zuiyou/sources/cn/xiaochuankeji/tieba/json/topic/TopicPostListJson.java
67f40d7945b1d7b9667e188d58b6e243b1db6abc
[]
no_license
aheadlcx/analyzeApk
050b261595cecc85790558a02d79739a789ae3a3
25cecc394dde4ed7d4971baf0e9504dcb7fabaca
refs/heads/master
2020-03-10T10:24:49.773318
2018-04-13T09:44:45
2018-04-13T09:44:45
129,332,351
6
2
null
null
null
null
UTF-8
Java
false
false
1,275
java
package cn.xiaochuankeji.tieba.json.topic; import cn.xiaochuankeji.tieba.ui.topic.data.PostDataBean; import cn.xiaochuankeji.tieba.ui.topic.data.UgcDataBean; import cn.xiaochuankeji.tieba.ui.topic.data.c; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.annotation.JSONField; import java.util.LinkedList; import java.util.List; public class TopicPostListJson { @JSONField(name = "list") public JSONArray jsonArray; @JSONField(name = "more") public int more; @JSONField(name = "next_cb") public String nextCb; public List<c> postVisitableList() { List<c> linkedList = new LinkedList(); for (int i = 0; i < this.jsonArray.size(); i++) { JSONObject jSONObject = this.jsonArray.getJSONObject(i); switch (jSONObject.getInteger("c_type").intValue()) { case 3: linkedList.add((UgcDataBean) JSON.parseObject(JSON.toJSONString(jSONObject), UgcDataBean.class)); break; default: linkedList.add(PostDataBean.getPostDataBeanFromJson(jSONObject)); break; } } return linkedList; } }
[ "aheadlcxzhang@gmail.com" ]
aheadlcxzhang@gmail.com
a8436cbaa767e86280c153fb935e98dadd204071
558ad220e0f4d1ba45be0305dc801c564c0caf18
/src/main/java/org/lndroid/framework/usecases/bg/ISyncNotificationManager.java
b2c583ac60c1b40b7288cd58cc65ea088b600ab7
[ "MIT" ]
permissive
lndroid/lndroid-framework
759401d45309fe642bf8d92265aa4a0c93cac559
605911507b6ef1ea621605786851c2c09f3d3767
refs/heads/master
2020-12-29T16:59:14.134320
2020-03-25T08:02:07
2020-03-25T08:02:07
238,676,143
2
1
null
null
null
null
UTF-8
Java
false
false
246
java
package org.lndroid.framework.usecases.bg; public interface ISyncNotificationManager { int SYNC_TYPE_GRAPH_CHAIN = 0; int SYNC_TYPE_RECV_PAYMENTS = 0; void showNotification(int syncType); void hideNotification(int syncType); };
[ "brugeman.artur@gmail.com" ]
brugeman.artur@gmail.com
df54aec67a0ac309a61d295592c3dec30cc4f921
bdcdcf52c63a1037786ac97fbb4da88a0682e0e8
/src/test/java/io/akeyless/client/model/UpdateAzureTargetOutputTest.java
2b3dff7c6527d3ecc4d3b5797c20ae3eb96ee4b6
[ "Apache-2.0" ]
permissive
akeylesslabs/akeyless-java
6e37d9ec59d734f9b14e475ce0fa3e4a48fc99ea
cfb00a0e2e90ffc5c375b62297ec64373892097b
refs/heads/master
2023-08-03T15:06:06.802513
2023-07-30T11:59:23
2023-07-30T11:59:23
341,514,151
2
4
Apache-2.0
2023-07-11T08:57:17
2021-02-23T10:22:38
Java
UTF-8
Java
false
false
1,272
java
/* * Akeyless API * The purpose of this application is to provide access to Akeyless API. * * The version of the OpenAPI document: 2.0 * Contact: support@akeyless.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ package io.akeyless.client.model; 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 io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; /** * Model tests for UpdateAzureTargetOutput */ public class UpdateAzureTargetOutputTest { private final UpdateAzureTargetOutput model = new UpdateAzureTargetOutput(); /** * Model tests for UpdateAzureTargetOutput */ @Test public void testUpdateAzureTargetOutput() { // TODO: test UpdateAzureTargetOutput } /** * Test the property 'targetId' */ @Test public void targetIdTest() { // TODO: test targetId } }
[ "github@akeyless.io" ]
github@akeyless.io
4025c4a99b7b35599d7b7b7c03ab09e8bafd6cf8
95c49f466673952b465e19a5ee3ae6eff76bee00
/src/main/java/com/zhihu/android/library/sharecore/comment/ShareCommentContent.java
5710ba535290b6cc7814a2107b9d0b77705969a9
[]
no_license
Phantoms007/zhihuAPK
58889c399ae56b16a9160a5f48b807e02c87797e
dcdbd103436a187f9c8b4be8f71bdf7813b6d201
refs/heads/main
2023-01-24T01:34:18.716323
2020-11-25T17:14:55
2020-11-25T17:14:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,892
java
package com.zhihu.android.library.sharecore.comment; import android.os.Parcel; import android.os.Parcelable; import com.secneo.apkwrapper.C6969H; import kotlin.Metadata; import kotlin.p2243e.p2245b.C32569u; import kotlin.p2243e.p2245b.DefaultConstructorMarker; @Metadata /* renamed from: com.zhihu.android.library.sharecore.comment.a */ /* compiled from: ShareCommentContent.kt */ public final class ShareCommentContent implements Parcelable { public static final C21028a CREATOR = new C21028a(null); /* renamed from: a */ public String f74892a; /* renamed from: b */ public String f74893b; public int describeContents() { return 0; } @Metadata /* renamed from: com.zhihu.android.library.sharecore.comment.a$a */ /* compiled from: ShareCommentContent.kt */ public static final class C21028a implements Parcelable.Creator<ShareCommentContent> { private C21028a() { } public /* synthetic */ C21028a(DefaultConstructorMarker pVar) { this(); } /* renamed from: a */ public ShareCommentContent createFromParcel(Parcel parcel) { C32569u.m150519b(parcel, C6969H.m41409d("G7982C719BA3C")); return new ShareCommentContent(parcel); } /* renamed from: a */ public ShareCommentContent[] newArray(int i) { return new ShareCommentContent[i]; } } public ShareCommentContent() { } public ShareCommentContent(Parcel parcel) { ShareAnswerParcelablePlease.m104998a(this, parcel); } public void writeToParcel(Parcel parcel, int i) { ShareAnswerParcelablePlease.m104999a(this, parcel, i); } public String toString() { return C6969H.m41409d("G5A8BD408BA11A53AF10B8200F1EACDC36C8DC147") + this.f74892a + C6969H.m41409d("G25C3C008B36D") + this.f74893b + ')'; } }
[ "seasonpplp@qq.com" ]
seasonpplp@qq.com
99cb321f2897b8e2805ff6cd8a1d0806c519c83d
0175a417f4b12b80cc79edbcd5b7a83621ee97e5
/flexodesktop/model/flexofoundation/src/main/java/org/openflexo/foundation/sg/implmodel/exception/TechnologyModuleCompatibilityCheckException.java
b2069070bef3727dfbb967c909c03563559e8305
[]
no_license
agilebirds/openflexo
c1ea42996887a4a171e81ddbd55c7c1e857cbad0
0250fc1061e7ae86c9d51a6f385878df915db20b
refs/heads/master
2022-08-06T05:42:04.617144
2013-05-24T13:15:58
2013-05-24T13:15:58
2,372,131
11
6
null
2022-07-06T19:59:55
2011-09-12T15:44:45
Java
UTF-8
Java
false
false
1,861
java
/* * (c) Copyright 2010-2011 AgileBirds * * This file is part of OpenFlexo. * * OpenFlexo is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * OpenFlexo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OpenFlexo. If not, see <http://www.gnu.org/licenses/>. * */ package org.openflexo.foundation.sg.implmodel.exception; import org.openflexo.foundation.sg.implmodel.TechnologyModuleDefinition; /** * @author Nicolas Daniels * */ public class TechnologyModuleCompatibilityCheckException extends ImplementationModelException { private StringBuilder message; private TechnologyModuleDefinition module; private TechnologyModuleDefinition moduleIncompatibleWith; public TechnologyModuleCompatibilityCheckException(TechnologyModuleDefinition module, TechnologyModuleDefinition moduleIncompatibleWith) { super(); this.module = module; this.moduleIncompatibleWith = moduleIncompatibleWith; message = new StringBuilder("Module '" + module.getName() + "' is incompatible with module '" + moduleIncompatibleWith.getName() + "'"); } public TechnologyModuleDefinition getModule() { return module; } public TechnologyModuleDefinition getModuleIncompatibleWith() { return moduleIncompatibleWith; } /** * {@inheritDoc} */ @Override public String getMessage() { return message.toString(); } public void prependMessage(String pre) { message.insert(0, pre + "\n"); } }
[ "guillaume.polet@gmail.com" ]
guillaume.polet@gmail.com
fb27b048157f60e06d8d8f65edc9464bc83310f0
6baf1fe00541560788e78de5244ae17a7a2b375a
/hollywood/com.oculus.browser-base/sources/defpackage/C4492qx1.java
692b81483d9195be07d414c479875696b36c30ca
[]
no_license
phwd/quest-tracker
286e605644fc05f00f4904e51f73d77444a78003
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
refs/heads/main
2023-03-29T20:33:10.959529
2021-04-10T22:14:11
2021-04-10T22:14:11
357,185,040
4
2
null
2021-04-12T12:28:09
2021-04-12T12:28:08
null
UTF-8
Java
false
false
857
java
package defpackage; import android.os.Build; import org.chromium.content.browser.accessibility.WebContentsAccessibilityImpl; import org.chromium.content_public.browser.WebContents; /* renamed from: qx1 reason: default package and case insensitive filesystem */ /* compiled from: chromium-OculusBrowser.apk-stable-281887347 */ public class C4492qx1 implements AbstractC5682xx1 { public C4492qx1(C3979nx1 nx1) { } @Override // defpackage.AbstractC5682xx1 public Object a(WebContents webContents) { int i = Build.VERSION.SDK_INT; if (i >= 30) { return new HJ0(webContents); } if (i >= 28) { return new C3002iD0(webContents); } if (i >= 26) { return new C0652Kq0(webContents); } return new WebContentsAccessibilityImpl(webContents); } }
[ "cyuubiapps@gmail.com" ]
cyuubiapps@gmail.com
7f15af95c4804c2403beef4c26ad0a7250f45acb
51c5bcac5774533ba491d7961efe9e479e498d11
/src/main/java/li/cil/oc2/common/util/ChunkUtils.java
da0ee155cc762758fb650ae42ce70619b1e2bea8
[ "MIT", "CC0-1.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
fnuecke/oc2
0140ec0426464bcd79bee2d718360b4689c1fe7c
569288c6c8be73f6d95ea550b14ff9c368c043a4
refs/heads/1.18-forge
2023-06-21T23:55:14.569314
2022-07-24T21:30:24
2022-07-24T21:30:24
298,871,383
591
95
NOASSERTION
2023-06-13T16:18:43
2020-09-26T18:03:10
Java
UTF-8
Java
false
false
5,153
java
/* SPDX-License-Identifier: MIT */ package li.cil.oc2.common.util; import li.cil.oc2.api.API; import li.cil.oc2.common.mixin.ServerChunkCacheMixin; import net.minecraft.core.BlockPos; import net.minecraft.core.SectionPos; import net.minecraft.world.level.ChunkPos; import net.minecraft.world.level.LevelAccessor; import net.minecraft.world.level.chunk.ChunkAccess; import net.minecraftforge.event.world.ChunkEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import java.util.Collections; import java.util.Set; import java.util.WeakHashMap; @Mod.EventBusSubscriber(modid = API.MOD_ID, bus = Mod.EventBusSubscriber.Bus.FORGE) public final class ChunkUtils { /** * All chunks marked for lazy saving. The lazy unsaved state will be applied when * chunks unload and when chunks get explicitly saved, via the {@link ServerChunkCacheMixin}. */ private static final Set<ChunkAccess> UNSAVED_CHUNKS = Collections.synchronizedSet(Collections.newSetFromMap(new WeakHashMap<>())); /** * This will mark a chunk unsaved lazily, right before an attempt to save it would be made due * to of these events: * <ul> * <li>Chunk unloaded.</li> * <li>Game paused (singleplayer).</li> * <li>Save command.</li> * <li>Server stopped.</li> * </ul> * <p> * This is intended for things that change every tick, which would lead to saving to NBT every * single tick, when setting {@link net.minecraft.world.level.chunk.ChunkAccess#setUnsaved(boolean)} * directly. * <p> * Instead, this sets a flag on the chunk, which, if true, will cause the chunk to be marked as * unsaved just before this flag is checked, for the events listed above. I.e. for all cases * where an "explicit" save is performed. * * @param chunkAccess the chunk to set the flag for. */ public static void setLazyUnsaved(final ChunkAccess chunkAccess) { UNSAVED_CHUNKS.add(chunkAccess); } /** * This will mark a chunk unsaved lazily, right before an attempt to save it would be made due * to of these events: * <ul> * <li>Chunk unloaded.</li> * <li>Game paused (singleplayer).</li> * <li>Save command.</li> * <li>Server stopped.</li> * </ul> * <p> * This is intended for things that change every tick, which would lead to saving to NBT every * single tick, when setting {@link net.minecraft.world.level.chunk.ChunkAccess#setUnsaved(boolean)} * directly. * <p> * Instead, this sets a flag on the chunk, which, if true, will cause the chunk to be marked as * unsaved just before this flag is checked, for the events listed above. I.e. for all cases * where an "explicit" save is performed. * * @param level the level containing the chunk. * @param blockPos the block position contained in the chunk. */ public static void setLazyUnsaved(final LevelAccessor level, final BlockPos blockPos) { final int chunkX = SectionPos.blockToSectionCoord(blockPos.getX()); final int chunkZ = SectionPos.blockToSectionCoord(blockPos.getZ()); if (level.hasChunk(chunkX, chunkZ)) { setLazyUnsaved(level.getChunk(chunkX, chunkZ)); } } /** * This will mark a chunk unsaved lazily, right before an attempt to save it would be made due * to of these events: * <ul> * <li>Chunk unloaded.</li> * <li>Game paused (singleplayer).</li> * <li>Save command.</li> * <li>Server stopped.</li> * </ul> * <p> * This is intended for things that change every tick, which would lead to saving to NBT every * single tick, when setting {@link net.minecraft.world.level.chunk.ChunkAccess#setUnsaved(boolean)} * directly. * <p> * Instead, this sets a flag on the chunk, which, if true, will cause the chunk to be marked as * unsaved just before this flag is checked, for the events listed above. I.e. for all cases * where an "explicit" save is performed. * * @param level the level containing the chunk. * @param chunkPos the position of the chunk. */ public static void setLazyUnsaved(final LevelAccessor level, final ChunkPos chunkPos) { final int chunkX = chunkPos.x; final int chunkZ = chunkPos.z; if (level.hasChunk(chunkX, chunkZ)) { setLazyUnsaved(level.getChunk(chunkX, chunkZ)); } } /** * Marks the specified as unsaved, if it was marked as lazy unsaved before * and clears the lazy unsaved flags. * * @param chunk the chunk to apply the lazy unsaved state for. */ public static void applyChunkLazyUnsaved() { for (final ChunkAccess chunk : UNSAVED_CHUNKS) { chunk.setUnsaved(true); } UNSAVED_CHUNKS.clear(); } @SubscribeEvent public static void handleChunkUnload(final ChunkEvent.Unload event) { final ChunkAccess chunk = event.getChunk(); if (UNSAVED_CHUNKS.remove(chunk)) { chunk.setUnsaved(true); } } }
[ "florian@nuecke.de" ]
florian@nuecke.de
6c85742a21179fee0444cde152fcc50bc932bdb4
e45da90582e7b7a4249723ac4aed62e497b74d2b
/src/main/java/com/xceder/ctp/trade/CThostFtdcSuperUserFunctionField.java
830ddbc418daba38825539e8715f345826bf99f6
[]
no_license
ssh352/myctp
3d3d3f1b04fc4b67d6debe60da2d135a2186bdef
564d3743e655c7aa3570640c5ad9c9bbe2435be4
refs/heads/master
2020-03-28T23:28:15.973557
2018-03-15T05:49:32
2018-03-15T05:49:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,646
java
package com.xceder.ctp.trade; import org.bridj.Pointer; import org.bridj.StructObject; import org.bridj.ann.Array; import org.bridj.ann.Field; import org.bridj.ann.Library; /** * \ufffd\ufffd\ufffd\ufffd\ufffd\u00fb\ufffd\ufffd\ufffd\ufffd\ufffd\u0228\ufffd\ufffd<br> * <i>native declaration : ThostFtdcUserApiStruct.h:573</i><br> * This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br> * a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br> * For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> or <a href="http://bridj.googlecode.com/">BridJ</a> . */ @Library("Thosttraderapi") public class CThostFtdcSuperUserFunctionField extends StructObject { /** * \ufffd\u00fb\ufffd\ufffd\ufffd\ufffd\ufffd<br> * C type : TThostFtdcUserIDType */ @Array({16}) @Field(0) public Pointer<Byte > UserID() { return this.io.getPointerField(this, 0); } /** * \ufffd\ufffd\ufffd\u0734\ufffd\ufffd\ufffd<br> * C type : TThostFtdcFunctionCodeType */ @Field(1) public byte FunctionCode() { return this.io.getByteField(this, 1); } /** * \ufffd\ufffd\ufffd\u0734\ufffd\ufffd\ufffd<br> * C type : TThostFtdcFunctionCodeType */ @Field(1) public CThostFtdcSuperUserFunctionField FunctionCode(byte FunctionCode) { this.io.setByteField(this, 1, FunctionCode); return this; } public CThostFtdcSuperUserFunctionField() { super(); } public CThostFtdcSuperUserFunctionField(Pointer pointer) { super(pointer); } }
[ "790333234@qq.com" ]
790333234@qq.com
ef79ad487a0c10d2f98a3d17c4f346219d0393ea
58da62dfc6e145a3c836a6be8ee11e4b69ff1878
/src/main/java/com/alipay/api/domain/AlisisReportRow.java
f0928578d3a860893115ac657df810fe32111188
[ "Apache-2.0" ]
permissive
zhoujiangzi/alipay-sdk-java-all
00ef60ed9501c74d337eb582cdc9606159a49837
560d30b6817a590fd9d2c53c3cecac0dca4449b3
refs/heads/master
2022-12-26T00:27:31.553428
2020-09-07T03:39:05
2020-09-07T03:39:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
773
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, 2016-10-28 10:26:15 */ public class AlisisReportRow extends AlipayObject { private static final long serialVersionUID = 4213533556917956973L; /** * 报表行信息,每个对象是一列的数据 */ @ApiListField("row_data") @ApiField("alisis_report_column") private List<AlisisReportColumn> rowData; public List<AlisisReportColumn> getRowData() { return this.rowData; } public void setRowData(List<AlisisReportColumn> rowData) { this.rowData = rowData; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
137cc17213963fd35d112dff192b03a5c2f18cc5
964aa6796539d9f86c1b3d10be312a77d94cba09
/Sources/Talend/.JETEmitters/src/org/talend/designer/codegen/translators/internet/momandjms/TJMSOutputMainJava.java
a1d2bb461d3d7afc99d884939d102217ae65551f
[]
no_license
hedim3ali/TalendBI
3d33858c674bb83ccc64a1c5fda645574ec64437
c55b47eefcf2f4a203803dbca231409a90213003
refs/heads/master
2021-01-10T10:39:15.807393
2015-12-15T15:18:13
2015-12-15T15:18:13
48,033,156
0
1
null
null
null
null
UTF-8
Java
false
false
4,242
java
package org.talend.designer.codegen.translators.internet.momandjms; import org.talend.core.model.process.INode; import org.talend.designer.codegen.config.CodeGeneratorArgument; import org.talend.core.model.process.ElementParameterParser; import org.talend.core.model.metadata.IMetadataTable; import org.talend.core.model.metadata.IMetadataColumn; import org.talend.core.model.process.IConnection; import org.talend.core.model.process.IConnectionCategory; import java.util.List; public class TJMSOutputMainJava { protected static String nl; public static synchronized TJMSOutputMainJava create(String lineSeparator) { nl = lineSeparator; TJMSOutputMainJava result = new TJMSOutputMainJava(); nl = null; return result; } public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; protected final String TEXT_1 = ""; protected final String TEXT_2 = NL + "producer_"; protected final String TEXT_3 = ".send((javax.jms.Message)"; protected final String TEXT_4 = ".message);" + NL + "nbline_"; protected final String TEXT_5 = "++;"; protected final String TEXT_6 = NL + "javax.jms.ObjectMessage message_"; protected final String TEXT_7 = " = session_"; protected final String TEXT_8 = ".createObjectMessage();" + NL + "message_"; protected final String TEXT_9 = ".setObject("; protected final String TEXT_10 = ".messageContent);"; protected final String TEXT_11 = NL + "javax.jms.TextMessage message_"; protected final String TEXT_12 = " = session_"; protected final String TEXT_13 = ".createTextMessage();" + NL + "message_"; protected final String TEXT_14 = ".setText("; protected final String TEXT_15 = ".messageContent);"; protected final String TEXT_16 = NL + "producer_"; protected final String TEXT_17 = ".send(message_"; protected final String TEXT_18 = ");" + NL + "" + NL + "nbline_"; protected final String TEXT_19 = "++;"; protected final String TEXT_20 = NL + NL + NL + " "; protected final String TEXT_21 = NL; public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); stringBuffer.append(TEXT_1); CodeGeneratorArgument codeGenArgument = (CodeGeneratorArgument) argument; INode node = (INode)codeGenArgument.getArgument(); String cid = node.getUniqueName(); String processingMode = ElementParameterParser.getValue(node, "__PROCESSING_MODE__"); List<IMetadataTable> metadatas = node.getMetadataList(); if ((metadatas!=null)&&(metadatas.size()>0)) { IMetadataTable metadata = metadatas.get(0); List<IMetadataColumn> columns = metadata.getListColumns(); List< ? extends IConnection> conns = node.getIncomingConnections(); if((conns!=null)&&(conns.size()>0)) { IConnection conn = conns.get(0); if (conn.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)){ if("RAW".equals(processingMode)){ stringBuffer.append(TEXT_2); stringBuffer.append(cid ); stringBuffer.append(TEXT_3); stringBuffer.append(conn.getName() ); stringBuffer.append(TEXT_4); stringBuffer.append(cid ); stringBuffer.append(TEXT_5); }else{ if("id_Document".equals(metadata.getColumn("messageContent").getTalendType())){ stringBuffer.append(TEXT_6); stringBuffer.append(cid ); stringBuffer.append(TEXT_7); stringBuffer.append(cid ); stringBuffer.append(TEXT_8); stringBuffer.append(cid ); stringBuffer.append(TEXT_9); stringBuffer.append(conn.getName() ); stringBuffer.append(TEXT_10); }else{ stringBuffer.append(TEXT_11); stringBuffer.append(cid ); stringBuffer.append(TEXT_12); stringBuffer.append(cid ); stringBuffer.append(TEXT_13); stringBuffer.append(cid ); stringBuffer.append(TEXT_14); stringBuffer.append(conn.getName() ); stringBuffer.append(TEXT_15); } stringBuffer.append(TEXT_16); stringBuffer.append(cid ); stringBuffer.append(TEXT_17); stringBuffer.append(cid ); stringBuffer.append(TEXT_18); stringBuffer.append(cid ); stringBuffer.append(TEXT_19); } } } } stringBuffer.append(TEXT_20); stringBuffer.append(TEXT_21); return stringBuffer.toString(); } }
[ "mh.maali@applicam.tn" ]
mh.maali@applicam.tn
ef6c0ffa60f0acefbf8d16e94ed85ed3354802a6
09e6690147eedf58189c09546a8b4d50300c725b
/weizu-parent/weizu-web-modules/weizu-channel/src/main/java/com/weizu/flowsys/web/channel/dao/impl/AgencyEpDAOImpl.java
907caa93d5859bb2c71ee84e3f8361f02da152bb
[]
no_license
showlofans/weizu_channel
3c846e8df738b28db539324c28500d2b82172e83
39de1347be4a988acd2aa929d0d52e95dc8dbba9
refs/heads/master
2022-01-27T09:35:10.396785
2022-01-23T12:25:32
2022-01-23T12:25:32
95,176,460
0
1
null
2018-04-14T10:01:38
2017-06-23T02:42:08
Java
UTF-8
Java
false
false
1,128
java
package com.weizu.flowsys.web.channel.dao.impl; import java.util.List; import javax.annotation.Resource; import org.mybatis.spring.SqlSessionTemplate; import org.springframework.stereotype.Repository; import com.weizu.flowsys.core.dao.impl.DaoImpl; import com.weizu.flowsys.web.channel.dao.IAgencyEpDAO; import com.weizu.flowsys.web.channel.pojo.AgencyEpPo; /** * @description: 代理商平台连接DAO层接口实现类 * @projectName:crud * @className:AgencyEpDAOImpl.java * @author:POP产品研发部 宁强 * @createTime:2017年6月8日 下午1:19:48 * @version 1.0 */ @Repository(value = "agencyEpDAO") public class AgencyEpDAOImpl extends DaoImpl<AgencyEpPo, Long> implements IAgencyEpDAO { // @Resource // private SqlSessionTemplate sqlSessionTemplate; /** * @description:通过代理商ID获得所有平台列表 * @param agencyId * @return * @author:POP产品研发部 宁强 * @createTime:2017年6月8日 下午1:19:21 */ // @Override // public List<AgencyEpPo> getAgencyEpByAgencyId(int agencyId) { // // return sqlSessionTemplate.selectList("getAgencyEpByAgencyId", agencyId); // } }
[ "1727661035@qq.com" ]
1727661035@qq.com
fce6b6d0438d55720a06d24efcfaba499a3805c0
964601fff9212bec9117c59006745e124b49e1e3
/matos-android/src/main/java/android/media/ResampleInputStream.java
72c07078fdbb354c295373f699c9a29f7441b398
[ "Apache-2.0" ]
permissive
vadosnaprimer/matos-profiles
bf8300b04bef13596f655d001fc8b72315916693
fb27c246911437070052197aa3ef91f9aaac6fc3
refs/heads/master
2020-05-23T07:48:46.135878
2016-04-05T13:14:42
2016-04-05T13:14:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,294
java
package android.media; /* * #%L * Matos * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2010 - 2014 Orange SA * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ @com.francetelecom.rd.stubs.annotation.ClassDone(0) public final class ResampleInputStream extends java.io.InputStream{ // Constructors public ResampleInputStream(java.io.InputStream arg1, int arg2, int arg3){ super(); } // Methods protected void finalize() throws java.lang.Throwable{ } public void close() throws java.io.IOException{ } public int read() throws java.io.IOException{ return 0; } public int read(byte [] arg1) throws java.io.IOException{ return 0; } public int read(byte [] arg1, int arg2, int arg3) throws java.io.IOException{ return 0; } }
[ "pierre.cregut@orange.com" ]
pierre.cregut@orange.com
a9ddd2b153ea191f57847b64fe2590c80b844fde
8cc48c116ef4cc7fe91efec0606e3c667e150edc
/Nutz-Aop-Cglib/src/org/nutz/http/sender/PostSender.java
a460f2876100d1a9cad4a1e1837e776172fe531e
[]
no_license
chengjf0526/nutzlib
d70e67791819544196c9b19ca219b09fd4a317e6
ca891069f81feba7bfbac7a2ff651649aa465302
refs/heads/master
2020-12-27T00:19:51.691696
2011-03-08T13:32:07
2011-03-08T13:32:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,185
java
package org.nutz.http.sender; import java.io.BufferedWriter; import java.io.OutputStreamWriter; import java.io.Writer; import java.util.Iterator; import java.util.Map; import org.nutz.http.Http; import org.nutz.http.HttpException; import org.nutz.http.Request; import org.nutz.http.Response; import org.nutz.http.Sender; public class PostSender extends Sender { public PostSender(Request request) { super(request); } @Override public Response send() throws HttpException { try { openConnection(); setupRequestHeader(); setupDoInputOutputFlag(); Writer w = new BufferedWriter(new OutputStreamWriter(conn.getOutputStream())); Map<String, ?> params = request.getParams(); if (null != params && params.size() > 0) { for (Iterator<String> it = params.keySet().iterator(); it.hasNext();) { String key = it.next(); w.write(Http.encode(key)); w.write('='); w.write(Http.encode(params.get(key))); if (it.hasNext()) w.write('&'); } w.flush(); w.close(); w = null; } return createResponse(getResponseHeader()); } catch (Exception e) { throw new HttpException(request.getUrl().toString(), e); } } }
[ "wendal1985@gmail.com" ]
wendal1985@gmail.com