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
3b98d72338a02dae2d20e26b82fe750cfa7b1e85
597ec0651ce50c1709b2a3bd2732c621645a2a55
/src/com/nam/memento_pattern/CareTaker.java
c63c0bd878e8b68be8d2ac3adec28b00a3f2d746
[]
no_license
YershovAleksandr/Java_017
886d0d4a58fddb67f9e2b5c553a438326cec8e39
4c6271fe60b0a80bb4e1aa06c2632b12e473bfa6
refs/heads/master
2020-03-26T09:18:32.472685
2018-11-13T14:12:57
2018-11-13T14:12:57
144,744,237
0
0
null
null
null
null
UTF-8
Java
false
false
328
java
package com.nam.memento_pattern; import java.util.ArrayList; import java.util.List; public class CareTaker { private List<Memento> mementoList = new ArrayList<>(); public void add(Memento state){ mementoList.add(state); } public Memento get(int index){ return mementoList.get(index); } }
[ "namstudionsk@gmail.com" ]
namstudionsk@gmail.com
e97466baacd8c3c737d375b90d606fa7b95073da
6b8bcd288111e4ffefcd0f42ae3d14f8404ccc65
/Part6Algs4/MyAlgs4/src/test/java/com/huawei/l00379880/algs4/chapter5string/P486TSTTest.java
718b135991fc81998745d860aeb945fa446e6178
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-mulanpsl-1.0-en", "MulanPSL-1.0", "BSD-3-Clause" ]
permissive
luqian2017/algorithms
943c1365022e307ca2770d121cf8662ba6959e22
e83a17ecf1a7cfea77c5b4ecddc92eb9f1fc329c
refs/heads/master
2020-12-29T22:56:49.445532
2020-02-05T14:57:16
2020-02-05T14:57:16
238,765,020
1
0
NOASSERTION
2020-02-06T19:15:35
2020-02-06T19:15:35
null
UTF-8
Java
false
false
1,238
java
package com.huawei.l00379880.algs4.chapter5string; import org.junit.Test; /** * P486TST Tester. * * @author liangshanguang * @date 03/17/2018 * @description test */ public class P486TSTTest { @Test public void testMain() { P486TST<Integer> st = new P486TST(); st.put("by", 4); st.put("sea", 6); st.put("sells", 1); st.put("she", 0); st.put("shells", 3); st.put("shore", 7); st.put("the", 5); System.out.println("下面打印出所有的键值对:"); for (String key : st.keys()) { System.out.println(key + " " + st.get(key)); } System.out.println("打印指定字符串s中的最长匹配前缀"); System.out.println(st.longestPrefixOf("shellsort")); System.out.println(st.longestPrefixOf("quicksort")); System.out.println(); System.out.println("打印包含指定前缀的单词"); for (String she : st.keysWithPrefix("she")) { System.out.println(she); } System.out.println(); System.out.println("符合指定规则的键:"); for (String s : st.keysThatMatch(".he")) { System.out.println(s); } } }
[ "1648266192@qq.com" ]
1648266192@qq.com
2d712844ca5408246663542d65f2ffc29f8439d1
9b01ffa3db998c4bca312fd28aa977f370c212e4
/app/src/streamB/java/com/loki/singlemoduleapp/stub/SampleClass3220.java
10ce479d6a35e73d998c4a59eb64e139591af4fe
[]
no_license
SergiiGrechukha/SingleModuleApp
932488a197cb0936785caf0e73f592ceaa842f46
b7fefea9f83fd55dbbb96b506c931cc530a4818a
refs/heads/master
2022-05-13T17:15:21.445747
2017-07-30T09:55:36
2017-07-30T09:56:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
256
java
package stub; public class SampleClass3220 { private SampleClass3221 sampleClass; public SampleClass3220(){ sampleClass = new SampleClass3221(); } public String getClassName() { return sampleClass.getClassName(); } }
[ "sergey.grechukha@gmail.com" ]
sergey.grechukha@gmail.com
6ea6e301a8577a3dbeb1f541fd266185cba2c258
447520f40e82a060368a0802a391697bc00be96f
/apks/playstore_apps/com_ubercab/source/com/ubercab/android/partner/funnel/realtime/models/onboarding/steps/additionalinfo/StepData.java
9dba4a4ec6f5c1ea4cb20f95c3e9a730fe2c3291
[ "Apache-2.0", "GPL-1.0-or-later" ]
permissive
iantal/AndroidPermissions
7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465
d623b732734243590b5f004d167e542e2e2ae249
refs/heads/master
2023-07-19T01:29:26.689186
2019-09-30T19:01:42
2019-09-30T19:01:42
107,239,248
0
0
Apache-2.0
2023-07-16T07:41:38
2017-10-17T08:22:57
null
UTF-8
Java
false
false
501
java
package com.ubercab.android.partner.funnel.realtime.models.onboarding.steps.additionalinfo; import android.os.Parcelable; import com.ubercab.shape.Shape; @Shape public abstract class StepData implements Parcelable { public StepData() {} public abstract AdditionalInfoFields getAdditionalInfoFields(); public abstract String getType(); abstract StepData setAdditionalInfoFields(AdditionalInfoFields paramAdditionalInfoFields); abstract StepData setType(String paramString); }
[ "antal.micky@yahoo.com" ]
antal.micky@yahoo.com
dda3a26919f6948892ad45f2552e69c40b55258d
ab2c7d9ce617f1eeeeb3a2ed277724c525d42b3b
/bai9.java
b5076fe0cebe64e29648456856f3ebb1dd848a61
[]
no_license
Viet2000/danhviet12
a70cafa734671f7fa8446406ff6b934f9dfcd29b
d42848abe985ab190c0370d759494c81c0835996
refs/heads/master
2023-04-12T12:24:04.582434
2021-05-12T12:51:08
2021-05-12T12:51:08
334,610,710
0
0
null
null
null
null
UTF-8
Java
false
false
851
java
import java.util.Scanner; public class bai9 { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int hoa = 0; int thuong = 0; int so = 0; System.out.println("Nhập vào chuỗi kí tự bất kì: "); String name = new String(sc.next()); for (int i = 0; i < name.length(); i++) { char check = name.charAt(i); if (Character.isDigit(check)) { so++; } else if (Character.isUpperCase(check)) { hoa++; } else if (Character.isLowerCase(check)) { thuong++; } } System.out.println("Kí tự thường: "+thuong); System.out.println("Kí tự hoa: "+hoa); System.out.println("Kí tự số: "+so); } }
[ "you@example.com" ]
you@example.com
004292df4f65cb06990328c5a99cefad99b051a8
0742ad8c9d461dbf2cfdb81896f81200e74d3f01
/baselibrary/src/main/java/com/jy/baselibrary/base/mvvm/MvvMBaseDialogFragment.java
6d8e56a1c51c04d1c6c240f59a5debfbf1f21444
[]
no_license
sd99886/YLibrary
af61d192ab212b499dcd79f97fb8858e659dcfa4
2a3171acec262bc4cd0b6df529e7ddde234e869a
refs/heads/master
2023-04-09T05:16:42.874628
2021-04-19T09:18:31
2021-04-19T09:18:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,649
java
package com.jy.baselibrary.base.mvvm; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.databinding.DataBindingUtil; import androidx.databinding.ViewDataBinding; import androidx.lifecycle.Observer; import com.jy.baselibrary.base.BaseDialogFragment; import com.jy.baselibrary.base.broker.BaseViewModel; /** * @Author Administrator * @Date 2019/11/1-10:36 * @TODO */ public abstract class MvvMBaseDialogFragment<DBinding extends ViewDataBinding> extends BaseDialogFragment { protected DBinding dataBinding; @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { dataBinding = DataBindingUtil.inflate(inflater, initLayoutID(), container, false); dataBinding.setLifecycleOwner(this); mView = dataBinding.getRoot(); return mView; } /** * 挂载ViewModel * 注意:若需要实现数据共享,of则需要传activity * ViewModelProviders.of(getActivity())作用:Fragment之间返回的是同一个ViewModel对象,进而实现数据共享 */ public void attachViewModel(BaseViewModel viewModel) { viewModel.setLifeCycleProvide(this); viewModel.setLifecycleOwner(this); viewModel.getLoading().observe(this, new Observer<Boolean>() { @Override public void onChanged(Boolean show) { showPopWindowLoading(show); } }); } }
[ "123456" ]
123456
00bb1da77184152e151144bb31ffa152ee653cdf
d2eee6e9a3ad0b3fd2899c3d1cf94778615b10cb
/PROMISE/archives/synapse/1.0/org/apache/synapse/config/xml/endpoints/utils/LoadbalanceAlgorithmFactory.java
76a597bb9c921f2cee1baec0a1eabc170675e71b
[]
no_license
hvdthong/DEFECT_PREDICTION
78b8e98c0be3db86ffaed432722b0b8c61523ab2
76a61c69be0e2082faa3f19efd76a99f56a32858
refs/heads/master
2021-01-20T05:19:00.927723
2018-07-10T03:38:14
2018-07-10T03:38:14
89,766,606
5
1
null
null
null
null
UTF-8
Java
false
false
1,155
java
package org.apache.synapse.config.xml.endpoints.utils; import org.apache.axiom.om.OMElement; import org.apache.axiom.om.OMAttribute; import org.apache.synapse.endpoints.algorithms.LoadbalanceAlgorithm; import org.apache.synapse.endpoints.algorithms.RoundRobin; import org.apache.synapse.config.xml.Constants; import javax.xml.namespace.QName; import java.util.ArrayList; /** * Factroy of all load balance algorithms. ESBSendMediatorFactroy will use this to create the * appropriate algorithm implementation. */ public class LoadbalanceAlgorithmFactory { public static LoadbalanceAlgorithm createLoadbalanceAlgorithm(OMElement loadbalanceElement, ArrayList endpoints) { LoadbalanceAlgorithm algorithm = null; String algorithmName = "roundRobin"; OMAttribute algoAttribute = loadbalanceElement.getAttribute(new QName(null, Constants.ALGORITHM_NAME)); if(algoAttribute != null) { algorithmName = algoAttribute.getAttributeValue(); } if(algorithmName.equalsIgnoreCase("roundRobin")) { algorithm = new RoundRobin(endpoints); } return algorithm; } }
[ "hvdthong@github.com" ]
hvdthong@github.com
9d670ca987fe191934411936acedf4a452eded3d
6437240eddd7c33372fccab081395d4c6d45aa92
/ColetorPrecoClienteModulo/frontend/src/main/java/br/com/lojadigicom/coletorprecocliente/adapter/NaturezaProdutoListEdicaoAdapter.java
5f3cff4b3c17cc684bff3c334e348a8e76968a8e
[]
no_license
paulofor/projeto-android-aplicacao
49a530533496ec4a11dcb0a86ed9e9b75f2f9a4a
2aa9c244a830f12cf120f45727d7474203619c59
refs/heads/master
2021-01-05T06:04:29.225920
2020-02-16T14:45:25
2020-02-16T14:45:25
240,908,240
0
0
null
null
null
null
UTF-8
Java
false
false
1,690
java
package br.com.lojadigicom.coletorprecocliente.adapter; import android.content.Context; import android.view.View; import br.com.lojadigicom.coletorprecocliente.R; import br.com.lojadigicom.coletorprecocliente.framework.tela.ResourceObj; import br.com.lojadigicom.coletorprecocliente.modelo.NaturezaProduto; import br.com.lojadigicom.coletorprecocliente.template.lista.NaturezaProdutoListAdapterBase; import br.com.lojadigicom.coletorprecocliente.template.lista.NaturezaProdutoListViewHolderBase; /** * Created by Paulo on 18/02/16. */ public class NaturezaProdutoListEdicaoAdapter extends NaturezaProdutoListAdapterBase { public NaturezaProdutoListEdicaoAdapter(Context context, NaturezaProdutoListAdapterOnClickHandler dh, View emptyView, int choiceMode) { super(context, dh, emptyView, choiceMode); } @Override protected ResourceObj getLayoutItemResource() { return new ResourceObj(R.layout.item_natureza_produto_edita,"R.layout.item_natureza_produto_edita"); } @Override protected NaturezaProdutoListViewHolderBase getViewHolder(View v) { return new NaturezaProdutoListEdicaoViewHolder(v); } @Override public void onBindViewHolderDC(NaturezaProduto naturezaProduto, NaturezaProdutoListViewHolderBase holder, int position) { NaturezaProdutoListEdicaoViewHolder hold = (NaturezaProdutoListEdicaoViewHolder) holder; hold.setNomeNatureza(naturezaProduto.getNomeNaturezaProduto()); if (naturezaProduto.existeListaUsuarioPesquisa_PesquisadoPor()) { hold.setChecked(true); } else { hold.setChecked(false); } } }
[ "paulofore@gmail.com" ]
paulofore@gmail.com
d82a00080b2eb24352d4a8e5e2a311d0e9909428
09373d32b0c2b1cde09ff7e0beddda86627dc334
/src/main/java/org/mvelx/asm/commons/ModuleHashesAttribute.java
319b46e2f16f4b1d71392987f40241cdf4eb8e53
[]
no_license
flym/mvelx
ba4a7e2d8ad4a151699d106a1c7fe9445afa3ac3
18c9eb7635f285a769c443107220e02c898e1b6b
refs/heads/master
2020-07-10T20:18:00.570137
2019-03-11T01:49:43
2019-03-11T01:49:43
74,010,079
12
8
null
null
null
null
UTF-8
Java
false
false
4,586
java
/*** * ASM: a very small and fast Java bytecode manipulation framework * Copyright (c) 2000-2011 INRIA, France Telecom * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the copyright holders nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. */ package org.mvelx.asm.commons; import org.mvelx.asm.*; import java.util.ArrayList; import java.util.List; /** * ModuleHashes attribute. * This attribute is specific to the OpenJDK and may change in the future. * * @author Remi Forax */ public final class ModuleHashesAttribute extends Attribute { public String algorithm; public List<String> modules; public List<byte[]> hashes; /** * Creates an attribute with a hashing algorithm, a list of module names, * and a list of the same length of hashes. * @param algorithm the hashing algorithm name. * @param modules a list of module name * @param hashes a list of hash, one for each module name. */ public ModuleHashesAttribute(final String algorithm, final List<String> modules, final List<byte[]> hashes) { super("ModuleHashes"); this.algorithm = algorithm; this.modules = modules; this.hashes = hashes; } /** * Creates an empty attribute that can be used as prototype * to be passed as argument of the method * {@link org.mvelx.asm.ClassReader#accept(org.mvelx.asm.ClassVisitor, Attribute[], int)}. */ public ModuleHashesAttribute() { this(null, null, null); } @Override protected Attribute read(ClassReader cr, int off, int len, char[] buf, int codeOff, Label[] labels) { String hashAlgorithm = cr.readUTF8(off, buf); int count = cr.readUnsignedShort(off + 2); ArrayList<String> modules = new ArrayList<String>(count); ArrayList<byte[]> hashes = new ArrayList<byte[]>(count); off += 4; for (int i = 0; i < count; i++) { String module = cr.readModule(off, buf); int hashLength = cr.readUnsignedShort(off + 2); off += 4; byte[] hash = new byte[hashLength]; for (int j = 0; j < hashLength; j++) { hash[j] = (byte) (cr.readByte(off + j) & 0xff); } off += hashLength; modules.add(module); hashes.add(hash); } return new ModuleHashesAttribute(hashAlgorithm, modules, hashes); } @Override protected ByteVector write(ClassWriter cw, byte[] code, int len, int maxStack, int maxLocals) { ByteVector v = new ByteVector(); int index = cw.newUTF8(algorithm); v.putShort(index); int count = (modules == null)? 0: modules.size(); v.putShort(count); for(int i = 0; i < count; i++) { String module = modules.get(i); v.putShort(cw.newModule(module)); byte[] hash = hashes.get(i); v.putShort(hash.length); for(byte b: hash) { v.putByte(b); } } return v; } }
[ "www@iflym.com" ]
www@iflym.com
45d32d1ccd3eeaab798fc1eecc809d6bfdf00368
faac38ad94b701611936826413b82d5e765df4ad
/java/leetcode/src/main/java/com/vaani/leetcode/greedy/PlayWithChips.java
6e9ffdc1b7756565bf0288abaa7b32d165c3c17a
[ "MIT" ]
permissive
kinshuk4/leetcode-solutions
8e721cd9e4d40cca1e5267557395a89c577f1c04
a4a8c6353b6ac0ea066a0fed5ce7a6661d206711
refs/heads/master
2023-05-25T14:37:07.854010
2023-05-13T22:18:07
2023-05-13T22:18:07
170,730,125
1
0
MIT
2022-07-22T22:04:07
2019-02-14T17:24:27
Java
UTF-8
Java
false
false
1,730
java
package com.vaani.leetcode.greedy; /** * https://leetcode.com/problems/play-with-chips/ * 1217. Play with Chips * Easy * <p> * There are some chips, and the i-th chip is at position chips[i]. * <p> * You can perform any of the two following types of moves any number of times (possibly zero) on any chip: * <p> * Move the i-th chip by 2 units to the left or to the right with a cost of 0. * Move the i-th chip by 1 unit to the left or to the right with a cost of 1. * <p> * There can be two or more chips at the same position initially. * <p> * Return the minimum cost needed to move all the chips to the same position (any position). * <p> * <p> * <p> * Example 1: * <p> * Input: chips = [1,2,3] * Output: 1 * Explanation: Second chip will be moved to positon 3 with cost 1. First chip will be moved to position 3 with cost 0. Total cost is 1. * <p> * Example 2: * <p> * Input: chips = [2,2,2,3,3] * Output: 2 * Explanation: Both fourth and fifth chip will be moved to position two with cost 1. Total minimum cost will be 2. * <p> * <p> * <p> * Constraints: * <p> * 1 <= chips.length <= 100 * 1 <= chips[i] <= 10^9 */ /* After figuring out the meaning of "i-th chip is at position chips[i]", for [1, 2, 3], would look like: position 1 position 2 position 3 chip 1 chip 2 chip 3 for [2, 2, 2, 3, 3], would look like: position 2 position 3 chip 1 chip 4 chip 2 chip 5 chip 3 */ public class PlayWithChips { public int minCostToMoveChips(int[] chips) { int odd = 0, even = 0; for (int c : chips) { if (c % 2 == 0) { even++; } else { odd++; } } return Math.min(even, odd); } }
[ "kinshuk.ram@gmail.com" ]
kinshuk.ram@gmail.com
ac6b46c9379b35dc8e846820144ea61cb49418d9
83593598f21cba234f08eca4dec44d2f73a6052d
/prj/commodity/web-front/web-front-integrated/src/main/java/gnnt/MEBS/integrated/front/model/Zone.java
5fcc97cbbbe545da19e9d87c05ad43c088554e6d
[ "Apache-2.0" ]
permissive
bigstar18/prjs
23a04309a51b0372ddf6c391ee42270e640ec13c
c29da4d0892ce43e074d9e9831f1eedf828cd9d8
refs/heads/master
2021-05-31T19:55:16.217893
2016-06-24T02:35:31
2016-06-24T02:35:31
42,025,473
0
2
null
null
null
null
UTF-8
Java
false
false
799
java
package gnnt.MEBS.integrated.front.model; import gnnt.MEBS.common.front.model.StandardModel; import gnnt.MEBS.common.front.model.translate.ClassDiscription; public class Zone extends StandardModel { private static final long serialVersionUID = 977593279994999511L; @ClassDiscription(name = "地域编码", description = "") private String code; @ClassDiscription(name = "地域名称", description = "") private String name; public String getCode() { return this.code; } public void setCode(String paramString) { this.code = paramString; } public String getName() { return this.name; } public void setName(String paramString) { this.name = paramString; } public PrimaryInfo fetchPKey() { return new PrimaryInfo("code", this.code); } }
[ "hxx@hxx-PC" ]
hxx@hxx-PC
6789dfbd48ff360e8b796ef65f5734a50ef2a465
ac7710c083c2a5a5e6c022e95262ef5e085ef1c1
/spring-cloud-security-oauth2-singleLogin/client/src/main/java/com/example/ClientApplication.java
d776d34a7c5a47a565ef48291da2cca80927d3ae
[]
no_license
q258523454/spring-cloud-security-oauth2-demo
462f23600c21215975172ae24bdb0cd767683851
5306c4c383552677b985c5e98fbaf388cb30734e
refs/heads/master
2020-04-05T12:00:54.706202
2018-11-09T11:46:39
2018-11-09T11:46:39
156,525,952
0
0
null
null
null
null
UTF-8
Java
false
false
1,648
java
/* * Copyright 2012-2015 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 com.example; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.context.annotation.Configuration; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.security.Principal; /** * Test client for use with social application (as an OAuth2 auth server). Remember to * access this app via its IP address (not "localhost"), otherwise the auth server will * steal your cookie. * * @author Dave Syer * */ @EnableAutoConfiguration @Configuration @EnableOAuth2Sso @RestController public class ClientApplication { @RequestMapping("/client") public String home(Principal user) { return "Hello " + user.getName(); } public static void main(String[] args) { new SpringApplicationBuilder(ClientApplication.class).run(args); } }
[ "258523454@qq.com" ]
258523454@qq.com
018fbef4f5068ad9aa986b1bd39a3607c8f8b777
7db382a7e4297f26652b4a6498871664088c6a93
/injavawetrust.effective.java/src/chapter08/item55/examples/Test1.java
317e2d04ec66840835a6ff1749d8a9426ceb3bcc
[]
no_license
starsgemini/injavawetrust-effective-java
c0c24b93b05f6ef858b780e62224fc2faac2c38f
75e3fadbfdbefec88775fe751408412226d03432
refs/heads/master
2020-08-02T23:19:48.971644
2018-11-07T17:17:37
2018-11-07T17:17:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,531
java
package chapter08.item55.examples; import java.util.Collection; import java.util.Comparator; import java.util.Objects; import java.util.Optional; public class Test1 { // Returns maximum value in collection - throws exception if empty public static <E extends Comparable<E>> E max(Collection<E> c) { if (c.isEmpty()) throw new IllegalArgumentException("Empty collection"); E result = null; for (E e : c) if (result == null || e.compareTo(result) > 0) result = Objects.requireNonNull(e); return result; } // This method throws an IllegalArgumentException if the given collection is // empty. We mentioned in Item 30 that a better alternative would be to return // Optional<E>. public static <E extends Comparable<E>> Optional<E> maxV2(Collection<E> c) { if (c.isEmpty()) return Optional.empty(); E result = null; for (E e : c) if (result == null || e.compareTo(result) > 0) result = Objects.requireNonNull(e); return Optional.of(result); } /* * As you can see, it is straightforward to return an optional. All you have to * do is to create the optional with the appropriate static factory. In this * program, we use two: Optional.empty() returns an empty optional, and * Optional.of(value) returns an optional containing the given non-null value. * */ // Returns max val in collection as Optional<E> - uses stream public static <E extends Comparable<E>> Optional<E> maxV3(Collection<E> c) { return c.stream().max(Comparator.naturalOrder()); } }
[ "erguder.levent@gmail.com" ]
erguder.levent@gmail.com
6bd259ec2b9d722c40c12c4b83f95f16152b2a07
35605bf46938d16afa6a39f7a5d58fb9854ae3cf
/gen/com/example/engnews/BuildConfig.java
63c2f9c397756eb36de7a57648d195231464d947
[]
no_license
wtJavaer88/EngNews
9a0a1f7d70caa8a45681405cb465a1b7d8f1eea9
d941d1a4a0064792472ecd6e850ea0b4783e4b7a
refs/heads/master
2021-01-11T03:00:12.846033
2018-10-08T13:31:56
2018-10-08T13:31:56
70,894,315
0
0
null
null
null
null
UTF-8
Java
false
false
161
java
/** Automatically generated file. DO NOT MODIFY */ package com.example.engnews; public final class BuildConfig { public final static boolean DEBUG = true; }
[ "529801034@qq.com" ]
529801034@qq.com
461b60a0bdafbf96926a19188900f35045b9172c
ac9d735ed822ead92aaa460914d9bd384b076194
/src/test/java/com/dangky/hanngu/web/rest/TestUtil.java
3473189129c1780e656f765695aaa37fc81b51c7
[]
no_license
masterit3000/dangky-hanngu
4d772fdfe8dd13603c7bff394b891557bc74eacc
aba45a276b385c008dc0bc772d694c2bc5a65d4f
refs/heads/master
2022-12-29T13:08:19.227955
2020-02-21T18:11:25
2020-02-21T18:11:25
241,170,946
0
0
null
2022-12-16T05:13:05
2020-02-17T17:46:00
Java
UTF-8
Java
false
false
6,196
java
package com.dangky.hanngu.web.rest; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import org.hamcrest.Description; import org.hamcrest.TypeSafeDiagnosingMatcher; import org.springframework.format.datetime.standard.DateTimeFormatterRegistrar; import org.springframework.format.support.DefaultFormattingConversionService; import org.springframework.format.support.FormattingConversionService; import org.springframework.http.MediaType; import java.io.IOException; import java.time.ZonedDateTime; import java.time.format.DateTimeParseException; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.TypedQuery; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaQuery; import javax.persistence.criteria.Root; import static org.assertj.core.api.Assertions.assertThat; /** * Utility class for testing REST controllers. */ public final class TestUtil { private static final ObjectMapper mapper = createObjectMapper(); /** * MediaType for JSON */ public static final MediaType APPLICATION_JSON = MediaType.APPLICATION_JSON; private static ObjectMapper createObjectMapper() { ObjectMapper mapper = new ObjectMapper(); mapper.configure(SerializationFeature.WRITE_DURATIONS_AS_TIMESTAMPS, false); mapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY); mapper.registerModule(new JavaTimeModule()); return mapper; } /** * Convert an object to JSON byte array. * * @param object the object to convert. * @return the JSON byte array. * @throws IOException */ public static byte[] convertObjectToJsonBytes(Object object) throws IOException { return mapper.writeValueAsBytes(object); } /** * Create a byte array with a specific size filled with specified data. * * @param size the size of the byte array. * @param data the data to put in the byte array. * @return the JSON byte array. */ public static byte[] createByteArray(int size, String data) { byte[] byteArray = new byte[size]; for (int i = 0; i < size; i++) { byteArray[i] = Byte.parseByte(data, 2); } return byteArray; } /** * A matcher that tests that the examined string represents the same instant as the reference datetime. */ public static class ZonedDateTimeMatcher extends TypeSafeDiagnosingMatcher<String> { private final ZonedDateTime date; public ZonedDateTimeMatcher(ZonedDateTime date) { this.date = date; } @Override protected boolean matchesSafely(String item, Description mismatchDescription) { try { if (!date.isEqual(ZonedDateTime.parse(item))) { mismatchDescription.appendText("was ").appendValue(item); return false; } return true; } catch (DateTimeParseException e) { mismatchDescription.appendText("was ").appendValue(item) .appendText(", which could not be parsed as a ZonedDateTime"); return false; } } @Override public void describeTo(Description description) { description.appendText("a String representing the same Instant as ").appendValue(date); } } /** * Creates a matcher that matches when the examined string represents the same instant as the reference datetime. * * @param date the reference datetime against which the examined string is checked. */ public static ZonedDateTimeMatcher sameInstant(ZonedDateTime date) { return new ZonedDateTimeMatcher(date); } /** * Verifies the equals/hashcode contract on the domain object. */ public static <T> void equalsVerifier(Class<T> clazz) throws Exception { T domainObject1 = clazz.getConstructor().newInstance(); assertThat(domainObject1.toString()).isNotNull(); assertThat(domainObject1).isEqualTo(domainObject1); assertThat(domainObject1.hashCode()).isEqualTo(domainObject1.hashCode()); // Test with an instance of another class Object testOtherObject = new Object(); assertThat(domainObject1).isNotEqualTo(testOtherObject); assertThat(domainObject1).isNotEqualTo(null); // Test with an instance of the same class T domainObject2 = clazz.getConstructor().newInstance(); assertThat(domainObject1).isNotEqualTo(domainObject2); // HashCodes are equals because the objects are not persisted yet assertThat(domainObject1.hashCode()).isEqualTo(domainObject2.hashCode()); } /** * Create a {@link FormattingConversionService} which use ISO date format, instead of the localized one. * @return the {@link FormattingConversionService}. */ public static FormattingConversionService createFormattingConversionService() { DefaultFormattingConversionService dfcs = new DefaultFormattingConversionService (); DateTimeFormatterRegistrar registrar = new DateTimeFormatterRegistrar(); registrar.setUseIsoFormat(true); registrar.registerFormatters(dfcs); return dfcs; } /** * Makes a an executes a query to the EntityManager finding all stored objects. * @param <T> The type of objects to be searched * @param em The instance of the EntityManager * @param clss The class type to be searched * @return A list of all found objects */ public static <T> List<T> findAll(EntityManager em, Class<T> clss) { CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQuery<T> cq = cb.createQuery(clss); Root<T> rootEntry = cq.from(clss); CriteriaQuery<T> all = cq.select(rootEntry); TypedQuery<T> allQuery = em.createQuery(all); return allQuery.getResultList(); } private TestUtil() {} }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
9a0d83cca38ab06aeea8b4bd85f56da916dd2881
a1e49f5edd122b211bace752b5fb1bd5c970696b
/projects/org.springframework.jms/src/main/java/org/springframework/jms/listener/adapter/ListenerExecutionFailedException.java
4cdfdb8f209b74b0a2edf333d57fa86eab3131e3
[ "Apache-2.0" ]
permissive
savster97/springframework-3.0.5
4f86467e2456e5e0652de9f846f0eaefc3214cfa
34cffc70e25233ed97e2ddd24265ea20f5f88957
refs/heads/master
2020-04-26T08:48:34.978350
2019-01-22T14:45:38
2019-01-22T14:45:38
173,434,995
0
0
Apache-2.0
2019-03-02T10:37:13
2019-03-02T10:37:12
null
UTF-8
Java
false
false
1,204
java
/* * Copyright 2002-2006 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.springframework.jms.listener.adapter; import org.springframework.jms.JmsException; /** * Exception to be thrown when the execution of a listener method failed. * * @author Juergen Hoeller * @since 2.0 * @see MessageListenerAdapter */ public class ListenerExecutionFailedException extends JmsException { /** * Constructor for ListenerExecutionFailedException. * @param msg the detail message * @param cause the exception thrown by the listener method */ public ListenerExecutionFailedException(String msg, Throwable cause) { super(msg, cause); } }
[ "taibi@sonar-scheduler.rd.tut.fi" ]
taibi@sonar-scheduler.rd.tut.fi
037147214a76580b8c99e02bb0404751df48412b
34221f3f7738d7a33c693e580dc6a99789349cf3
/app/src/main/java/defpackage/btk.java
b2e7edc660cd80d32f029d02754ae92798bc4a27
[]
no_license
KobeGong/TasksApp
0c7b9f3f54bc4be755b1f605b41230822d6f9850
aacdd5cbf0ba073460797fa76f1aaf2eaf70f08e
refs/heads/master
2023-08-16T07:11:13.379876
2021-09-25T17:38:57
2021-09-25T17:38:57
374,659,931
0
0
null
null
null
null
UTF-8
Java
false
false
895
java
package defpackage; /* renamed from: btk reason: default package */ /* compiled from: PG */ public enum btk { UNKNOWN_STATUS(0), REGISTERED(1), PENDING_REGISTRATION(2), FAILED_REGISTRATION(3), UNREGISTERED(4), PENDING_UNREGISTRATION(5), FAILED_UNREGISTRATION(6); public final int g; private btk(int i2) { this.g = i2; } public static defpackage.btk a(int i2) { switch (i2) { case 1: return REGISTERED; case 2: return PENDING_REGISTRATION; case 3: return FAILED_REGISTRATION; case 4: return UNREGISTERED; case 5: return PENDING_UNREGISTRATION; case 6: return FAILED_UNREGISTRATION; default: return UNKNOWN_STATUS; } } }
[ "droidevapp1023@gmail.com" ]
droidevapp1023@gmail.com
d7e44608f6dd3674f563e1684c8a4baf356ef2bc
a1ce173359cca8ba584df24a7041f52ff492b753
/src/main/java/org/tyaa/demo/java/jhipster/angular/config/LiquibaseConfiguration.java
99b04bbb8e74707ed8de2d0ee805fc15b0dd07b6
[]
no_license
YuriiTrofimenko/demo-jhipster-angular
359d8bb9912fd1e6c68306233f80a55a4502ce56
b413385e4fcee06a39917ed7bf5ed4bbcb5b6709
refs/heads/master
2023-03-27T02:18:39.842429
2021-03-15T19:59:28
2021-03-15T19:59:28
348,105,803
0
0
null
null
null
null
UTF-8
Java
false
false
3,964
java
package org.tyaa.demo.java.jhipster.angular.config; import io.github.jhipster.config.JHipsterConstants; import io.github.jhipster.config.liquibase.AsyncSpringLiquibase; import liquibase.integration.spring.SpringLiquibase; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.ObjectProvider; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.autoconfigure.liquibase.LiquibaseDataSource; import org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties; import org.springframework.boot.autoconfigure.r2dbc.R2dbcProperties; import org.springframework.boot.jdbc.DataSourceBuilder; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.env.Environment; import org.springframework.core.env.Profiles; import javax.sql.DataSource; import java.util.concurrent.Executor; import java.util.function.Supplier; @Configuration public class LiquibaseConfiguration { private final Logger log = LoggerFactory.getLogger(LiquibaseConfiguration.class); private final Environment env; public LiquibaseConfiguration(Environment env) { this.env = env; } @Bean public SpringLiquibase liquibase(@Qualifier("taskExecutor") Executor executor, LiquibaseProperties liquibaseProperties, R2dbcProperties dataSourceProperties) { SpringLiquibase liquibase = createAsyncSpringLiquibase(this.env, executor, liquibaseProperties, dataSourceProperties); liquibase.setChangeLog("classpath:config/liquibase/master.xml"); liquibase.setContexts(liquibaseProperties.getContexts()); liquibase.setDefaultSchema(liquibaseProperties.getDefaultSchema()); liquibase.setLiquibaseSchema(liquibaseProperties.getLiquibaseSchema()); liquibase.setLiquibaseTablespace(liquibaseProperties.getLiquibaseTablespace()); liquibase.setDatabaseChangeLogLockTable(liquibaseProperties.getDatabaseChangeLogLockTable()); liquibase.setDatabaseChangeLogTable(liquibaseProperties.getDatabaseChangeLogTable()); liquibase.setDropFirst(liquibaseProperties.isDropFirst()); liquibase.setLabels(liquibaseProperties.getLabels()); liquibase.setChangeLogParameters(liquibaseProperties.getParameters()); liquibase.setRollbackFile(liquibaseProperties.getRollbackFile()); liquibase.setTestRollbackOnUpdate(liquibaseProperties.isTestRollbackOnUpdate()); if (env.acceptsProfiles(Profiles.of(JHipsterConstants.SPRING_PROFILE_NO_LIQUIBASE))) { liquibase.setShouldRun(false); } else { liquibase.setShouldRun(liquibaseProperties.isEnabled()); log.debug("Configuring Liquibase"); } return liquibase; } public static SpringLiquibase createAsyncSpringLiquibase(Environment env, Executor executor, LiquibaseProperties liquibaseProperties, R2dbcProperties dataSourceProperties) { SpringLiquibase liquibase = new AsyncSpringLiquibase(executor, env); liquibase.setDataSource(createNewDataSource(liquibaseProperties, dataSourceProperties)); return liquibase; } private static DataSource createNewDataSource(LiquibaseProperties liquibaseProperties, R2dbcProperties dataSourceProperties) { String user = getProperty(liquibaseProperties::getUser, dataSourceProperties::determineUsername); String password = getProperty(liquibaseProperties::getPassword, dataSourceProperties::determinePassword); return DataSourceBuilder.create() .url(liquibaseProperties.getUrl()) .username(user) .password(password) .build(); } private static String getProperty(Supplier<String> property, Supplier<String> defaultValue) { String value = property.get(); return (value != null) ? value : defaultValue.get(); } }
[ "tyaa@ukr.net" ]
tyaa@ukr.net
6c3de41c303f4f144f0a768e0ea9312d37ad93a7
c19cb77e3958a194046d6f84ca97547cc3a223c3
/pkix/src/main/java/org/bouncycastle/tsp/ers/ERSByteData.java
25ab5a669656f8fc2057210d87f4f0e0f4f9753c
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
bcgit/bc-java
1b6092bc5d2336ec26ebd6da6eeaea6600b4c70a
62b03c0f704ebd243fe5f2d701aef4edd77bba6e
refs/heads/main
2023-09-04T00:48:33.995258
2023-08-30T05:33:42
2023-08-30T05:33:42
10,416,648
1,984
1,021
MIT
2023-08-26T05:14:28
2013-06-01T02:38:42
Java
UTF-8
Java
false
false
685
java
package org.bouncycastle.tsp.ers; import org.bouncycastle.operator.DigestCalculator; /** * Generic class for holding byte[] data for RFC 4998 ERS. */ public class ERSByteData extends ERSCachingData { private final byte[] content; public ERSByteData(byte[] content) { this.content = content; } protected byte[] calculateHash(DigestCalculator digestCalculator, byte[] previousChainHash) { byte[] hash = ERSUtil.calculateDigest(digestCalculator, content); if (previousChainHash != null) { return ERSUtil.concatPreviousHashes(digestCalculator, previousChainHash, hash); } return hash; } }
[ "dgh@cryptoworkshop.com" ]
dgh@cryptoworkshop.com
5ad9ed7373c6263e133ec81277c2ca739cd7d876
3131d66e177e2b5ab82d7a8d683762d5b60cd99a
/commons/src/main/java/io/agilehandy/commons/api/storage/FileCancelRequest.java
4ca3c035ba93b2c1e4da94dbba2f77f304f2defd
[]
no_license
Haybu/demo-spring-distributed-transaction
87453eaa41545294115d88fe5393d0989454d4cf
d8ac65a2cc11bf5d14a5490d7bd559aafbad7f76
refs/heads/master
2022-03-01T18:03:58.801239
2022-02-21T15:14:17
2022-02-21T15:14:17
217,439,541
55
14
null
null
null
null
UTF-8
Java
false
false
1,063
java
/* * Copyright 2012-2019 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 io.agilehandy.commons.api.storage; import io.agilehandy.commons.api.jobs.JobExchange; import io.agilehandy.commons.api.jobs.JobState; import lombok.Data; import lombok.NoArgsConstructor; /** * @author Haytham Mohamed **/ @Data @NoArgsConstructor public class FileCancelRequest extends JobExchange implements FileRequest { private JobState request = JobState.FILE_CANCEL; private String fileId; private String filename; }
[ "haybu@hotmail.com" ]
haybu@hotmail.com
8eba9f3b5c6f7eb1eaa39691b8a6058f1c039284
55cd9819273b2a0677c3660b2943951b61c9e52e
/gtl/src/main/java/com/basics/app/dao/impl/AppAreaMybatisDao.java
469e7542cd6cc7c291d6ece0661ea91a20ce5e18
[]
no_license
h879426654/mnc
0fb61dff189404f47e7ee1fb6cb89f0c1e2f006f
9e1c33efc90b9f23c47069606ee2b0b0073cc7e3
refs/heads/master
2022-12-27T05:26:22.276805
2019-10-21T05:16:14
2019-10-21T05:16:14
210,249,616
0
0
null
2022-12-16T10:37:07
2019-09-23T02:36:55
JavaScript
UTF-8
Java
false
false
1,318
java
package com.basics.app.dao.impl; import org.springframework.stereotype.Repository; import com.basics.app.dao.AppAreaDao; import com.basics.app.entity.AppArea; import com.basics.app.support.GenericMybatisDaoSupport; import com.basics.support.DefaultNameMapper; import com.basics.support.INameMapper; @Repository public class AppAreaMybatisDao extends GenericMybatisDaoSupport<AppArea> implements AppAreaDao { public AppAreaMybatisDao() { super(); this.setPrimaryKeyFields("id"); } public INameMapper onBuildNameMapper() { DefaultNameMapper defaultNameMapper = new DefaultNameMapper(); defaultNameMapper.configFieldColumnName("id", "AREA_ID"); defaultNameMapper.configFieldColumnName("areaParentId", "AREA_PARENT_ID"); defaultNameMapper.configFieldColumnName("areaCode", "AREA_CODE"); defaultNameMapper.configFieldColumnName("areaName", "AREA_NAME"); defaultNameMapper.configFieldColumnName("areaComment", "AREA_COMMENT"); defaultNameMapper.configFieldColumnName("areaOrder", "AREA_ORDER"); defaultNameMapper.configFieldColumnName("areaIcon", "AREA_ICON"); defaultNameMapper.configFieldColumnName("areaUrl", "AREA_URL"); defaultNameMapper.configFieldColumnName("areaType", "AREA_TYPE"); defaultNameMapper.configFieldColumnName("areaFlag", "AREA_FLAG"); return defaultNameMapper; } }
[ "879426654@qq.com" ]
879426654@qq.com
59335797ba5abf176f5c2414aa2d0a3c92f58c6a
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-13138-12-19-NSGA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/wiki/internal/manager/DefaultWikiCreator_ESTest_scaffolding.java
226a96b77b542a66f1f4c47cd6e51e649fb2d8cd
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
454
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Fri Apr 03 05:01:03 UTC 2020 */ package org.xwiki.wiki.internal.manager; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class DefaultWikiCreator_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
6cfe2c21557a9798f39c2d2aaa959f271fa8d2ad
3a6b03115f89c52c0990048d653e2d66ff85feba
/org/apache/http/conn/routing/RouteTracker.java
9b5486bc98f411a3ebdb8a741c900160af7d22ba
[]
no_license
isabella232/android-sdk-sources-for-api-level-1
9159e92080649343e6e2be0da2b933fa9d3fea04
c77731af5068b85a350e768757d229cae00f8098
refs/heads/master
2023-03-18T05:07:06.633807
2015-06-13T13:35:17
2015-06-13T13:35:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,536
java
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://kpdus.tripod.com/jad.html // Decompiler options: packimports(3) fieldsfirst ansi space // Source File Name: RouteTracker.java package org.apache.http.conn.routing; import java.net.InetAddress; import org.apache.http.HttpHost; // Referenced classes of package org.apache.http.conn.routing: // RouteInfo, HttpRoute public final class RouteTracker implements RouteInfo, Cloneable { public RouteTracker(HttpHost target, InetAddress local) { throw new RuntimeException("Stub!"); } public RouteTracker(HttpRoute route) { throw new RuntimeException("Stub!"); } public final void connectTarget(boolean secure) { throw new RuntimeException("Stub!"); } public final void connectProxy(HttpHost proxy, boolean secure) { throw new RuntimeException("Stub!"); } public final void tunnelTarget(boolean secure) { throw new RuntimeException("Stub!"); } public final void tunnelProxy(HttpHost proxy, boolean secure) { throw new RuntimeException("Stub!"); } public final void layerProtocol(boolean secure) { throw new RuntimeException("Stub!"); } public final HttpHost getTargetHost() { throw new RuntimeException("Stub!"); } public final InetAddress getLocalAddress() { throw new RuntimeException("Stub!"); } public final int getHopCount() { throw new RuntimeException("Stub!"); } public final HttpHost getHopTarget(int hop) { throw new RuntimeException("Stub!"); } public final HttpHost getProxyHost() { throw new RuntimeException("Stub!"); } public final boolean isConnected() { throw new RuntimeException("Stub!"); } public final RouteInfo.TunnelType getTunnelType() { throw new RuntimeException("Stub!"); } public final boolean isTunnelled() { throw new RuntimeException("Stub!"); } public final RouteInfo.LayerType getLayerType() { throw new RuntimeException("Stub!"); } public final boolean isLayered() { throw new RuntimeException("Stub!"); } public final boolean isSecure() { throw new RuntimeException("Stub!"); } public final HttpRoute toRoute() { throw new RuntimeException("Stub!"); } public final boolean equals(Object o) { throw new RuntimeException("Stub!"); } public final int hashCode() { throw new RuntimeException("Stub!"); } public final String toString() { throw new RuntimeException("Stub!"); } public Object clone() throws CloneNotSupportedException { throw new RuntimeException("Stub!"); } }
[ "root@ifeegoo.com" ]
root@ifeegoo.com
1047b1727611b976e6eb2c4d9cfbf6328925a3d8
f7fbc015359f7e2a7bae421918636b608ea4cef6
/base-one/tags/hsqldb_1_8_0_RC8/src/org/hsqldb/test/TestScript.java
be4059ec533d0c63f3127e2398a3fbe1bfc5bc10
[]
no_license
svn2github/hsqldb
cdb363112cbdb9924c816811577586f0bf8aba90
52c703b4d54483899d834b1c23c1de7173558458
refs/heads/master
2023-09-03T10:33:34.963710
2019-01-18T23:07:40
2019-01-18T23:07:40
155,365,089
0
0
null
null
null
null
UTF-8
Java
false
false
2,202
java
/* Copyright (c) 2001-2005, The HSQL Development Group * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * Neither the name of the HSQL Development Group nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG, * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package org.hsqldb.test; import java.sql.Connection; import java.sql.Statement; public class TestScript extends TestBase { String path = "TestSelfCasewhen.txt"; // String path = "TestSelfQueries.txt"; // String path = "TestSelfCheckConstraints.txt"; // String path = "TestSelfLeftJoin.txt"; public TestScript(String name) { super(name); } public void test() throws java.lang.Exception { Connection conn = newConnection(); Statement stmt = conn.createStatement(); TestUtil.testScript(conn, path); } }
[ "(no author)@7c7dc5f5-a22d-0410-a3af-b41755a11667" ]
(no author)@7c7dc5f5-a22d-0410-a3af-b41755a11667
3e3a76ca81923b3748dfbfb9fd82fb4b5a55d5f7
5e34c548f8bbf67f0eb1325b6c41d0f96dd02003
/dataset/smallest_dedc2a7c_000/mutations/259/smallest_dedc2a7c_000.java
f99412491dfa0757d31d80747be74ba893b1576e
[]
no_license
mou23/ComFix
380cd09d9d7e8ec9b15fd826709bfd0e78f02abc
ba9de0b6d5ea816eae070a9549912798031b137f
refs/heads/master
2021-07-09T15:13:06.224031
2020-03-10T18:22:56
2020-03-10T18:22:56
196,382,660
1
1
null
2020-10-13T20:15:55
2019-07-11T11:37:17
Java
UTF-8
Java
false
false
2,275
java
package introclassJava; class IntObj { public int value; public IntObj () { } public IntObj (int i) { value = i; } } class FloatObj { public float value; public FloatObj () { } public FloatObj (float i) { value = i; } } class LongObj { public long value; public LongObj () { } public LongObj (long i) { value = i; } } class DoubleObj { public double value; public DoubleObj () { } public DoubleObj (double i) { value = i; } } class CharObj { public char value; public CharObj () { } public CharObj (char i) { value = i; } } public class smallest_dedc2a7c_000 { public java.util.Scanner scanner; public String output = ""; public static void main (String[]args) throws Exception { smallest_dedc2a7c_000 mainClass = new smallest_dedc2a7c_000 (); String output; if (args.length > 0) { mainClass.scanner = new java.util.Scanner (args[0]); } else { mainClass.scanner = new java.util.Scanner (System.in); } mainClass.exec (); System.out.println (mainClass.output); } public void exec () throws Exception { FloatObj a = new FloatObj (), b = new FloatObj (), c = new FloatObj (), d = new FloatObj (); output += (String.format ("Please enter 4 numbers separated by spaces > ")); a.value = scanner.nextFloat (); b.value = scanner.nextFloat (); c.value = scanner.nextFloat (); d.value = scanner.nextFloat (); if (((b.value) < (a.value)) && ((b.value) < (c.value)) && (a.value < d.value)) { output += (String.format ("%.0f is the smallest\n", a.value)); } else if ((b.value < a.value) && (b.value < c.value) && (b.value < d.value)) { output += (String.format ("%.0f is the smallest\n", b.value)); } else if ((c.value < a.value) && (c.value < b.value) && (c.value < d.value)) { output += (String.format ("%.0f is the smallest\n", c.value)); } else { output += (String.format ("%.0f is the smallest\n", d.value)); } if (true) return;; } }
[ "bsse0731@iit.du.ac.bd" ]
bsse0731@iit.du.ac.bd
458340f3765bcdd3c7ca9180c7d4c84852bd1867
eca4a253fe0eba19f60d28363b10c433c57ab7a1
/server/openjacob.engine/java/de/tif/jacob/core/data/impl/qbe/QBENullExpression.java
995990033573963ae6b85194c2e23cf1a945ca68
[]
no_license
freegroup/Open-jACOB
632f20575092516f449591bf6f251772f599e5fc
84f0a6af83876bd21c453132ca6f98a46609f1f4
refs/heads/master
2021-01-10T11:08:03.604819
2015-05-25T10:25:49
2015-05-25T10:25:49
36,183,560
0
0
null
null
null
null
UTF-8
Java
false
false
1,744
java
/******************************************************************************* * This file is part of Open-jACOB * Copyright (C) 2005-2006 Tarragon GmbH * * 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; version 2 of the License. * * 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, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA *******************************************************************************/ package de.tif.jacob.core.data.impl.qbe; import java.io.PrintWriter; import de.tif.jacob.core.exception.InvalidExpressionException; /** * QBE NULL expression * * @author Andreas Sonntag */ public final class QBENullExpression extends QBEExpression { static public transient final String RCS_ID = "$Id: QBENullExpression.java,v 1.2 2010/01/29 00:47:09 ibissw Exp $"; static public transient final String RCS_REV = "$Revision: 1.2 $"; public QBENullExpression() { super(); } public boolean isNullExpression() { return true; } public void print(PrintWriter writer) { writer.print("NULL"); } public void makeConstraint(QBEConstraintBuilder builder, boolean doNot) throws InvalidExpressionException { builder.appendNullExpression(doNot); } }
[ "a.herz@freegroup.de" ]
a.herz@freegroup.de
10659700ec9a24c14527c40ab22787d6e7a91679
fff80cdaf12712704f36038479f50418253f42f3
/tsdash/server/src/com/facebook/tsdb/tsdash/server/data/hbase/RowKey.java
8d4321dde55e8769ce1f647cf5a608784b3ac8c1
[ "Apache-2.0" ]
permissive
rudolfkopriva/Facebook
1ea0cfbc116f68ae0317332eeb9155461af5645a
56e4c6a83f992bb01849ad353004b28409e53eef
refs/heads/master
2023-02-14T01:54:36.519860
2021-01-05T02:09:26
2021-01-05T02:09:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,809
java
/* * Copyright 2011 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.facebook.tsdb.tsdash.server.data.hbase; import java.util.Arrays; import org.apache.hadoop.hbase.util.Bytes; import com.facebook.tsdb.tsdash.server.model.ID; import com.facebook.tsdb.tsdash.server.model.Tag; import com.facebook.tsdb.tsdash.server.model.TagsArray; import com.google.common.primitives.UnsignedBytes; public class RowKey { public static final int PREFIX_TS_BYTES = 4; private final IDMap idMap; private final byte[] key; public RowKey(byte[] key, IDMap idMap) { this.key = key; this.idMap = idMap; } public byte[] getID() { return Arrays.copyOf(key, ID.BYTES); } public byte[] getKey() { return key; } public TagsArray getTags(ID[] tagsPri) { int prefixLen = ID.BYTES + PREFIX_TS_BYTES; int tagBytes = 2 * ID.BYTES; int tagsCount = (key.length - prefixLen) / tagBytes; Tag[] tags = new Tag[tagsCount]; int offset = prefixLen; for (int i = 0; i < tags.length; i++) { tags[i] = new Tag( Arrays.copyOfRange(key, offset, offset + ID.BYTES), Arrays.copyOfRange(key, offset + ID.BYTES, offset + 2 * ID.BYTES), idMap); offset += tagBytes; } return new TagsArray(tags, tagsPri, idMap); } public static long baseTsFromRowKey(byte[] rowKey) { return Bytes.toInt(rowKey, ID.BYTES, PREFIX_TS_BYTES); } public String prefixToString() { return UnsignedBytes.join("", Arrays.copyOf(key, ID.BYTES + PREFIX_TS_BYTES)); } public static int prefixLen() { return ID.BYTES + PREFIX_TS_BYTES; } @Override public String toString() { String ret = prefixToString(); int tagsNo = (key.length - prefixLen()) / (2 * ID.BYTES); for (int i = 0; i < tagsNo; i++) { int offset = prefixLen() + i * 2 * ID.BYTES; ret += " " + UnsignedBytes.join( ".", Arrays.copyOfRange(key, offset, offset + 2 * ID.BYTES)); } return ret; } }
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
372ff8342db60dc9be79f12014f050c178281af8
d38afb4d31e0574dd2086fc84e5d664aecc77f5c
/com/planet_ink/coffee_mud/core/intermud/i3/packets/FingerRequest.java
46ee47b41d790973662cd6177d549acd623c5a7b
[ "Apache-2.0" ]
permissive
Dboykey/CoffeeMud
c4775fc6ec9e910ff7ff8523c04567a580a9529e
844704805d3de26a16b83bd07552d6ae82391208
refs/heads/master
2022-04-16T07:07:22.004847
2020-04-06T17:55:33
2020-04-06T17:55:33
255,074,559
0
1
Apache-2.0
2020-04-12T12:10:07
2020-04-12T12:10:06
null
UTF-8
Java
false
false
2,493
java
package com.planet_ink.coffee_mud.core.intermud.i3.packets; import com.planet_ink.coffee_mud.core.intermud.i3.server.*; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.planet_ink.coffee_mud.Behaviors.interfaces.*; import com.planet_ink.coffee_mud.CharClasses.interfaces.*; import com.planet_ink.coffee_mud.Commands.interfaces.*; import com.planet_ink.coffee_mud.Common.interfaces.*; import com.planet_ink.coffee_mud.Exits.interfaces.*; import com.planet_ink.coffee_mud.Items.interfaces.*; import com.planet_ink.coffee_mud.Libraries.interfaces.*; import com.planet_ink.coffee_mud.Locales.interfaces.*; import com.planet_ink.coffee_mud.MOBS.interfaces.*; import com.planet_ink.coffee_mud.Races.interfaces.*; import java.util.Vector; /** * Copyright (c) 2010-2020 Bo Zimmerman * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ public class FingerRequest extends Packet { public FingerRequest() { super(); type = Packet.FINGER_REQUEST; } public FingerRequest(final Vector<?> v) throws InvalidPacketException { super(v); try { type = Packet.FINGER_REQUEST; target_mud=(String)v.elementAt(4); target_name=(String)v.elementAt(6); } catch( final ClassCastException e ) { throw new InvalidPacketException(); } } @Override public void send() throws InvalidPacketException { if( sender_name == null || target_mud == null || sender_mud == null || target_name == null) { throw new InvalidPacketException(); } super.send(); } @Override public String toString() { final String cmd="({\"finger-req\",5,\"" + I3Server.getMudName() + "\",\"" + sender_name + "\",\"" + target_mud + "\",0,\"" + target_name + "\",})"; return cmd; } }
[ "bo@zimmers.net" ]
bo@zimmers.net
a589de4ff5228747571d231dfc7d89536a44e614
620a39fe25cc5fbd0ed09218b62ccbea75863cda
/wfj_front/src/shop/homeIndex/action/HomeKeyBookAction.java
ba1e1025c27b5aa20bdf331a479f1a62780bb30e
[]
no_license
hukeling/wfj
f9d2a1dc731292acfc67b1371f0f6933b0af1d17
0aed879a73b1349d74948efd74dadd97616d8fb8
refs/heads/master
2021-01-16T18:34:47.111453
2017-08-12T07:48:58
2017-08-12T07:48:58
100,095,588
0
0
null
null
null
null
UTF-8
Java
false
false
5,269
java
package shop.homeIndex.action; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import net.sf.json.JSONObject; import shop.homeIndex.pojo.HomeKeyBook; import shop.homeIndex.service.IHomeKeyBookService; import util.action.BaseAction; import com.opensymphony.xwork2.ActionContext; /** * 数据字典Action类 * @author whb * 20140114 */ @SuppressWarnings("serial") public class HomeKeyBookAction extends BaseAction{ private IHomeKeyBookService homeKeyBookService; private HomeKeyBook homeKeyBook; private List<HomeKeyBook> homeKeyBookList = new ArrayList<HomeKeyBook>(); private String homeKeyBookId; private String ids; //跳转到数据字典列表页面 public String gotoHomeKeyBookPage(){ return SUCCESS; } //查询所有信息列表 @SuppressWarnings("unchecked") public void listHomeKeyBook() throws IOException{ String where =" where 1=1 "; String type = request.getParameter("type"); String name = request.getParameter("name"); if(name!=null&&!"".equals(name.trim())){ name = name.trim(); where += " and o.name like '%"+name+"%'"; } if(type!=null&&!"".equals(type.trim())){ type = type.trim(); where += " and o.type like '%"+type+"%'"; } int totalRecordCount = homeKeyBookService.getCount(where+" order by o.type,o.value"); pageHelper.setPageInfo(pageSize, totalRecordCount, currentPage); String [] selectColumns={"homeKeyBookId","value","name","type","typeName"}; homeKeyBookList = homeKeyBookService.findListByPageHelper(selectColumns,pageHelper, where+" order by o.type,o.value");//" order by o.type,o.value" Map<String, Object> jsonMap = new HashMap<String, Object>(); jsonMap.put("total", totalRecordCount); jsonMap.put("rows", homeKeyBookList); JSONObject jo = JSONObject.fromObject(jsonMap); response.setContentType("text/html;charset=utf-8"); PrintWriter out = response.getWriter(); out.println(jo.toString()); out.flush(); out.close(); } //保存或者修改 public void saveOrUpdateHomeKeyBook() throws IOException{ if(homeKeyBook!=null){ homeKeyBook = (HomeKeyBook) homeKeyBookService.saveOrUpdateObject(homeKeyBook); if(homeKeyBook.getHomeKeyBookId()!=null){ JSONObject jo = new JSONObject(); jo.accumulate("isSuccess", "true"); response.setContentType("text/html;charset=utf-8"); PrintWriter out = response.getWriter(); out.println(jo.toString()); out.flush(); out.close(); } } } //获取一条记录 public void getHomeKeyBookInfo() throws IOException{ homeKeyBook = (HomeKeyBook) homeKeyBookService.getObjectByParams(" where o.homeKeyBookId='"+homeKeyBookId+"'"); JSONObject jo = JSONObject.fromObject(homeKeyBook); response.setContentType("text/html;charset=utf-8"); PrintWriter out = response.getWriter(); out.println(jo.toString()); out.flush(); out.close(); } //删除记录 public void deleteHomeKeyBook() throws IOException{ Boolean isSuccess = homeKeyBookService.deleteObjectsByIds("homeKeyBookId",ids); JSONObject jo = new JSONObject(); jo.accumulate("isSuccess", isSuccess + ""); response.setContentType("text/html;charset=utf-8"); PrintWriter out = response.getWriter(); out.println(jo.toString()); out.flush(); out.close(); } //更新初始化数据字典 @SuppressWarnings("unchecked") public void updateInServletContextHomeKeyBook() throws IOException{ Map<String, Object> servletContext = ActionContext.getContext().getApplication(); Boolean isSuccess = false;//返回值,是否更新成功,默认是否 if (servletContext != null) { Map<String,List<HomeKeyBook>> map = new HashMap<String,List<HomeKeyBook>>(); List<String> typeNameList = homeKeyBookService.distinctType("type", "");//查找类型名称 for(String typeName : typeNameList){ List<HomeKeyBook> homeKeyBookList = homeKeyBookService.findObjects(null," where o.type = '"+typeName+"' order by o.homeKeyBookId asc ");//根据类型名称查出对象集合 map.put(typeName, homeKeyBookList); } servletContext.put("homekeybook", map); isSuccess = true; } JSONObject jo = new JSONObject(); jo.accumulate("isSuccess", isSuccess + ""); response.setContentType("text/html;charset=utf-8"); PrintWriter out = response.getWriter(); out.println(jo.toString()); out.flush(); out.close(); } public HomeKeyBook getHomeKeyBook() { return homeKeyBook; } public void setHomeKeyBook(HomeKeyBook homeKeyBook) { this.homeKeyBook = homeKeyBook; } public List<HomeKeyBook> getHomeKeyBookList() { return homeKeyBookList; } public void setHomeKeyBookList(List<HomeKeyBook> homeKeyBookList) { this.homeKeyBookList = homeKeyBookList; } public String getHomeKeyBookId() { return homeKeyBookId; } public void setHomeKeyBookId(String homeKeyBookId) { this.homeKeyBookId = homeKeyBookId; } public String getIds() { return ids; } public void setIds(String ids) { this.ids = ids; } public void setHomeKeyBookService(IHomeKeyBookService homeKeyBookService) { this.homeKeyBookService = homeKeyBookService; } }
[ "hukelingwork@163.com" ]
hukelingwork@163.com
b6ced0c3cb2ecaae53fc7868bedbfb29705a8fd5
0bffcdd8c5f803627956bd7cec7b28d1cea00dc3
/src/main/java/android/support/annotation/InterpolatorRes.java
136611554aa4e50f513f1ccf3aadc74b5ea1638d
[]
no_license
sinzua/baseApk
eb5d8c28cdb385ec49413217151ebba7c2fbb723
9011fb631ed84b1747561244cc08fff38205e97c
refs/heads/master
2021-01-21T17:39:20.367401
2017-05-21T18:06:26
2017-05-21T18:06:26
91,977,496
3
2
null
null
null
null
UTF-8
Java
false
false
423
java
package android.support.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; @Target({ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD, ElementType.LOCAL_VARIABLE}) @Retention(RetentionPolicy.CLASS) @Documented public @interface InterpolatorRes { }
[ "sinzua@gmail.com" ]
sinzua@gmail.com
73562d582e8332c34cce5d4f17ec665bf1a523b5
e2a7e31927bd224bb7625b233f68e0dead65bf8d
/src/main/java/top/parak/febs/job/service/IJobLogService.java
b1099dc8cd9203b93b39c22b70a672e8c9519a5f
[]
no_license
Khighness/FEBS-System
8755deaa5f7af56f64f0fa74d6c0524c85e31217
3b9ea5be4b5c9ee149859e393adc90613537ed06
refs/heads/master
2023-06-05T08:31:45.668111
2021-06-28T08:07:37
2021-06-28T08:07:37
380,953,507
0
0
null
null
null
null
UTF-8
Java
false
false
1,028
java
package top.parak.febs.job.service; import top.parak.febs.common.entity.FebsConstant; import top.parak.febs.common.entity.QueryRequest; import top.parak.febs.job.entity.JobLog; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.IService; import org.springframework.scheduling.annotation.Async; /** * @Author: KHighness * @Date: 2020-7 * @Description: */ public interface IJobLogService extends IService<JobLog> { /** * 获取定时任务日志分页数据 * * @param request request * @param jobLog jobLog * @return 定时任务日志分页数据 */ IPage<JobLog> findJobLogs(QueryRequest request, JobLog jobLog); /** * 保存定时任务日志 * * @param log 定时任务日志 */ @Async(FebsConstant.ASYNC_POOL) void saveJobLog(JobLog log); /** * 删除定时任务日志 * * @param jobLogIds 定时任务日志id数组 */ void deleteJobLogs(String[] jobLogIds); }
[ "1823676372@qq.com" ]
1823676372@qq.com
099a58ddbdcab021cd05993a601e5d4f776569a1
589bbf1b096ee6f1e55b644777651ccb819fe631
/silentphone2/src/main/java/com/silentcircle/silentphone2/list/OnListFragmentScrolledListener.java
4e3a7911a2dec4c4d276a0842b1bf69b5853a5cd
[]
no_license
jmmrrsn/silent-phone-android
d2a2cd7c4ef8eb2ff2faeb4d4668452f8711fca0
a69c2ed1b82d830891aad5e6dcbd7cc80bc3a3c8
refs/heads/master
2023-03-24T15:50:33.356228
2017-10-13T21:25:09
2017-10-16T12:54:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
985
java
/* * Copyright (C) 2013 Google Inc. * Licensed to The Android Open Source Project. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.silentcircle.silentphone2.list; /* * Interface to provide callback to activity when a child fragment is scrolled */ public interface OnListFragmentScrolledListener { void onListFragmentScrollStateChange(int scrollState); void onListFragmentScroll(int firstVisibleItem, int visibleItemCount, int totalItemCount); }
[ "rkrueger@silentcircle.com" ]
rkrueger@silentcircle.com
d02522de9592e645a53bc6ca971df68b2eb72aa6
ab224e3b32239be3d9473f1874e26a522d504e99
/GenericTree/PredecessorAndSucessorofElement.java
42d63fddabf02118368aa1d74cfe916285deba6e
[]
no_license
ShivamPorwal02/Data-Structures-and-Algorithms
244042b42cf89262550263586c3191a83a85789e
871f1a57c27391eb69e01ed8a1e3a306e24efe7a
refs/heads/master
2023-06-28T19:48:55.472935
2021-08-09T17:29:56
2021-08-09T17:29:56
393,118,805
0
0
null
null
null
null
UTF-8
Java
false
false
1,598
java
package GenericTree; import java.util.ArrayList; import java.util.Stack; public class PredecessorAndSucessorofElement { private static class Node { int data; ArrayList<Node> children = new ArrayList<>(); } public static void display(Node node) { String str = node.data + " -> "; for (Node child : node.children) { str += child.data + ", "; } str += "."; System.out.println(str); for (Node child : node.children) { display(child); } } public static Node construct(int[] arr) { Node root = null; Stack<Node> st = new Stack<>(); for (int i = 0; i < arr.length; i++) { if (arr[i] == -1) { st.pop(); } else { Node t = new Node(); t.data = arr[i]; if (st.size() > 0) { st.peek().children.add(t); } else { root = t; } st.push(t); } } return root; } static Node predecessor; static Node successor; static int state = 0; public static void predecessorAndSuccessor(Node node, int data) { if(state==0){ if(node.data==data){ state = 1; }else{ predecessor = node; } }else if(state==1){ successor = node; state=2; } for(Node child:node.children){ predecessorAndSuccessor(child,data); } } }
[ "porwal1234shivam@gmail.com" ]
porwal1234shivam@gmail.com
45b4c78a8a309f0ff4be81e1b4df98c299597915
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/5/5_3b394b6207b8f3210974346106d6d8d7d7e6c4f2/CustomerService/5_3b394b6207b8f3210974346106d6d8d7d7e6c4f2_CustomerService_s.java
b1352c2bfdf5085540f9265457ef9d31254b7f3e
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
2,439
java
package org.xezz.timeregistration.service; import org.xezz.timeregistration.dao.CoworkerDAO; import org.xezz.timeregistration.dao.CustomerDAO; import org.xezz.timeregistration.dao.ProjectDAO; import org.xezz.timeregistration.dao.TimeSpanDAO; /** * User: Xezz * Date: 29.04.13 * Time: 14:36 */ public interface CustomerService { /** * Receive all Customers * * @return List of all Customers */ Iterable<CustomerDAO> customersAll(); /** * Get a Customer by its id * * @param id Long the id of a given Customer * @return Customer that has the id */ CustomerDAO customerById(Long id); /** * Persist a new Customer * * @param c Customer to persist * @return Persisted Customer */ CustomerDAO addNewCustomer(CustomerDAO c); /** * Update an existing Customer * * @param c Customer that has been updated * @return Customer after persisting */ CustomerDAO updateCustomer(CustomerDAO c); /** * Receive Customers by their name * * @param name String the name of the Customer * @return List of Customers that matches a give name */ Iterable<CustomerDAO> customerByName(String name); /** * Receive all Customers where a part of its name matches the given name * * @param name String part of the name to match * @return List of Customers that match a name partially */ Iterable<CustomerDAO> customerByNameMatch(String name); /** * Get the Customer of a Project * * @param p Project to get a Customer of * @return Customer that owns the Project */ CustomerDAO customerByProject(ProjectDAO p); /** * Get a Customer that is associated to a timeframe * * @param t TimeSpan of concern * @return Customer that gets charged for the timeframe */ CustomerDAO customerByTimeFrame(TimeSpanDAO t); /** * Get all Customers the given Coworker worked for * * @param c Coworker in concern * @return List of Customers the given Coworker was involved with */ Iterable<CustomerDAO> customerByCoworker(CoworkerDAO c); /** * Delete an existing Customer * * @param customerDAO Customer to delete */ void deleteCustomer(CustomerDAO customerDAO); }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
b042a339043a9d56726a80815b0cc311bf81b078
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/2/2_b0b40df5c90982471296acce85d51f3d75665d8b/Rule/2_b0b40df5c90982471296acce85d51f3d75665d8b_Rule_t.java
526be74f46b4e7cf6e39dded64c15bd9f80f2d2f
[]
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
4,089
java
/* * The MIT License * * Copyright (c) 2013, benas (md.benhassine@gmail.com) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package net.benas.easyrules.core; import net.benas.easyrules.api.JmxManagedRule; import net.benas.easyrules.util.EasyRulesConstants; /** * Class representing a rule than can be fired by the rules engine.<br/> * * Rules are registered in the rules engine registry and must have a <strong>unique</strong> name.<br/> * * Rules are fired according to their priority. By default, lower values represent higher priorities. To override * this default behavior, override {@link net.benas.easyrules.core.Rule#compareTo(net.benas.easyrules.core.Rule)} and * provide custom priority strategy. * * @author benas (md.benhassine@gmail.com) */ public class Rule implements Comparable<Rule>, JmxManagedRule { /** * Rule name. */ private String name; /** * Rule description. */ private String description; /** * Rule priority. */ private int priority; public Rule() { this(EasyRulesConstants.DEFAULT_RULE_NAME, EasyRulesConstants.DEFAULT_RULE_DESCRIPTION, EasyRulesConstants.DEFAULT_RULE_PRIORITY); } public Rule(String name, String description, int priority) { this.name = name; this.description = description; this.priority = priority; } /** * Rule conditions abstraction : this method encapsulates the rule's conditions. * @return true if the rule should be applied, false else */ public boolean evaluateConditions(){ return false; } /** * Rule actions abstraction : this method encapsulates the rule's actions. * @throws Exception thrown if an exception occurs during actions performing */ public void performActions() throws Exception { //no op } public String getName() { return name; } public String getDescription() { return description; } public int getPriority() { return priority; } public void setName(String name) { this.name = name; } public void setDescription(String description) { this.description = description; } public void setPriority(int priority) { this.priority = priority; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Rule rule = (Rule) o; return name.equals(rule.name); } @Override public int hashCode() { return name.hashCode(); } @Override public int compareTo(Rule rule) { if (priority < rule.getPriority()) { return -1; } else if (priority == rule.getPriority()) { return 0; } else { return 1; } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
10e210bda78de47102e6ee6ef04fd4d7c642beff
d33574802593c6bb49d44c69fc51391f7dc054af
/ShipLinx/src/main/java/com/meritconinc/shiplinx/carrier/ups/ws/freightpickup/proxy/FreightCancelPickupErrorMessage.java
7e4b8d52d8b933525509360f0bcea78168ee3128
[]
no_license
mouadaarab/solushipalertmanagement
96734a0ff238452531be7f4d12abac84b88de214
eb4cf67a7fbf54760edd99dc51efa12d74fa058e
refs/heads/master
2021-12-06T06:09:15.559467
2015-10-06T09:00:54
2015-10-06T09:00:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,360
java
package com.meritconinc.shiplinx.carrier.ups.ws.freightpickup.proxy; import javax.xml.ws.WebFault; /** * This class was generated by Apache CXF 2.5.0 * 2011-12-09T23:07:23.595-05:00 * Generated source version: 2.5.0 */ @WebFault(name = "Errors", targetNamespace = "http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1") public class FreightCancelPickupErrorMessage extends Exception { private com.meritconinc.shiplinx.carrier.ups.ws.freightpickup.proxy.Errors errors; public FreightCancelPickupErrorMessage() { super(); } public FreightCancelPickupErrorMessage(String message) { super(message); } public FreightCancelPickupErrorMessage(String message, Throwable cause) { super(message, cause); } public FreightCancelPickupErrorMessage(String message, com.meritconinc.shiplinx.carrier.ups.ws.freightpickup.proxy.Errors errors) { super(message); this.errors = errors; } public FreightCancelPickupErrorMessage(String message, com.meritconinc.shiplinx.carrier.ups.ws.freightpickup.proxy.Errors errors, Throwable cause) { super(message, cause); this.errors = errors; } public com.meritconinc.shiplinx.carrier.ups.ws.freightpickup.proxy.Errors getFaultInfo() { return this.errors; } }
[ "harikrishnan.r@mitosistech.com" ]
harikrishnan.r@mitosistech.com
faa2443585c55c147b3a497d8439151c848ec06b
0fa04831dd49e94b191e0fdfd076639b7560d423
/app/src/main/java/com/love/jax/bean/table/province.java
48fae593c0399426ead7b30d1e369e9de4aae79f
[]
no_license
jaxwog/Learing
f79a2e2a37301797f7265ad2c5071790d434b125
bf330b2e1575da5569c84590cd2bc666021e0577
refs/heads/master
2022-11-26T23:57:45.006228
2020-08-05T17:43:02
2020-08-05T17:43:02
157,231,244
0
0
null
null
null
null
UTF-8
Java
false
false
1,465
java
package com.love.jax.bean.table; import org.greenrobot.greendao.annotation.Entity; import org.greenrobot.greendao.annotation.Id; import java.io.Serializable; import org.greenrobot.greendao.annotation.Generated; /** * com.love.jax.bean.table * Created by jax on 2019/4/7 00:39 * TODO:省份列表 */ @Entity(nameInDb = "province") public class province implements Serializable { @Id(autoincrement = true) private Long id; private String provinceCode; @Override public String toString() { return "province{" + "id=" + id + ", provinceCode='" + provinceCode + '\'' + ", " + "provinceName='" + provinceName + '\'' + '}'; } private String provinceName; @Generated(hash = 41009445) public province(Long id, String provinceCode, String provinceName) { this.id = id; this.provinceCode = provinceCode; this.provinceName = provinceName; } @Generated(hash = 1132815257) public province() { } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getProvinceCode() { return provinceCode; } public void setProvinceCode(String provinceCode) { this.provinceCode = provinceCode; } public String getProvinceName() { return provinceName; } public void setProvinceName(String provinceName) { this.provinceName = provinceName; } }
[ "yongzheng13@gmail.com" ]
yongzheng13@gmail.com
b76bf03c9fd7fcc96024d1548f2b2845db538a68
3b91ed788572b6d5ac4db1bee814a74560603578
/com/tencent/mm/plugin/offline/ui/WalletOfflineCoinPurseUI$34.java
1846217c074a89686e820fd040ce07a5557f3be4
[]
no_license
linsir6/WeChat_java
a1deee3035b555fb35a423f367eb5e3e58a17cb0
32e52b88c012051100315af6751111bfb6697a29
refs/heads/master
2020-05-31T05:40:17.161282
2018-08-28T02:07:02
2018-08-28T02:07:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
747
java
package com.tencent.mm.plugin.offline.ui; import com.tencent.mm.g.a.kr; import com.tencent.mm.plugin.wallet_core.c.y; import com.tencent.mm.sdk.b.b; import com.tencent.mm.sdk.b.c; class WalletOfflineCoinPurseUI$34 extends c<kr> { final /* synthetic */ WalletOfflineCoinPurseUI lMe; WalletOfflineCoinPurseUI$34(WalletOfflineCoinPurseUI walletOfflineCoinPurseUI) { this.lMe = walletOfflineCoinPurseUI; this.sFo = kr.class.getName().hashCode(); } public final /* synthetic */ boolean a(b bVar) { this.lMe.a(new y(null, 8), false, false); WalletOfflineCoinPurseUI.d(this.lMe); WalletOfflineCoinPurseUI.e(this.lMe); WalletOfflineCoinPurseUI.f(this.lMe); return false; } }
[ "707194831@qq.com" ]
707194831@qq.com
327e0a8d622cff10e0e91d7bfd52d97222bb1c78
0a4d4b808ee0724114e6153c1204de4e253c1dcb
/samples/224/b.java
66a3dbd14d63e0ad498b681e1929646eb3bf0ee7
[ "MIT" ]
permissive
yura-hb/sesame-sampled-pairs
543b19bf340f6a35681cfca1084349bd3eb8f853
33b061e3612a7b26198c17245c2835193f861151
refs/heads/main
2023-07-09T04:15:05.821444
2021-08-08T12:01:04
2021-08-08T12:01:04
393,947,142
0
0
null
null
null
null
UTF-8
Java
false
false
583
java
import java.lang.invoke.VarHandle; class AtomicLongArray implements Serializable { /** * Atomically adds the given value to the element at index {@code i}, * with memory effects as specified by {@link VarHandle#getAndAdd}. * * @param i the index * @param delta the value to add * @return the previous value */ public final long getAndAdd(int i, long delta) { return (long) AA.getAndAdd(array, i, delta); } private static final VarHandle AA = MethodHandles.arrayElementVarHandle(long[].class); private final long[] array; }
[ "hayeuyur@MacBook-Pro.local" ]
hayeuyur@MacBook-Pro.local
a2f0936d5c86c48644e1b8be9567e6099aa6a632
369270a14e669687b5b506b35895ef385dad11ab
/java.xml.bind/com/sun/xml/internal/bind/v2/model/core/EnumLeafInfo.java
ecc451239e41dc25ba30d8c7e1bd178dec64bc99
[]
no_license
zcc888/Java9Source
39254262bd6751203c2002d9fc020da533f78731
7776908d8053678b0b987101a50d68995c65b431
refs/heads/master
2021-09-10T05:49:56.469417
2018-03-20T06:26:03
2018-03-20T06:26:03
125,970,208
3
3
null
null
null
null
UTF-8
Java
false
false
1,357
java
/* * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.xml.internal.bind.v2.model.core; /** * {@link NonElement} that represents an {@link Enum} class. * * @author Kohsuke Kawaguchi */ public interface EnumLeafInfo<T,C> extends LeafInfo<T,C> { /** * The same as {@link #getType()} but an {@link EnumLeafInfo} * is guaranteed to represent an enum declaration, which is a * kind of a class declaration. * * @return * always non-null. */ C getClazz(); /** * Returns the base type of the enumeration. * * <p> * For example, with the following enum class, this method * returns {@link BuiltinLeafInfo} for {@link Integer}. * * <pre> * &amp;XmlEnum(Integer.class) * enum Foo { * &amp;XmlEnumValue("1") * ONE, * &amp;XmlEnumValue("2") * TWO * } * </pre> * * @return * never null. */ NonElement<T,C> getBaseType(); /** * Returns the read-only list of enumeration constants. * * @return * never null. Can be empty (really?). */ Iterable<? extends EnumConstant> getConstants(); }
[ "841617433@qq.com" ]
841617433@qq.com
8705ddbaaa5caf7e4f3c8c87d7e5244c76ccdda3
f4d67892b0663091759130e14abc38eacb3a8a7d
/org.celllife.mobilisr.domain/src/main/java/org/celllife/mobilisr/domain/MailMessage.java
cb1cbdb1abfa12b4deae06f02781a4f15fd665bc
[]
no_license
cell-life/communicate
6ab6f86a62866213fc2a5057f83d6c3e0cf3db9a
454de8d9823fb8d5170987ab72a732b7353fe9ec
refs/heads/master
2021-05-02T02:07:32.558672
2018-02-09T19:19:28
2018-02-09T19:19:28
120,880,101
0
1
null
null
null
null
UTF-8
Java
false
false
4,531
java
package org.celllife.mobilisr.domain; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.FetchType; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.annotations.ForeignKey; import org.hibernate.annotations.Index; @Entity @Table(name="mailmessage") public class MailMessage extends AbstractBaseEntity implements HasOrganization, Serializable { private static final long serialVersionUID = -2861380882365976364L; public static final String PROP_ADDRESS = "address"; public static final String PROP_SUBJECT = "subject"; public static final String PROP_TEXT = "text"; public static final String PROP_DATETIME = "datetime"; public static final String PROP_TYPE = "type"; public static final String PROP_EMAILED = "emailed"; @Column(name="address", nullable = false) private String address; @Column(name="subject") private String subject; @Column(name="text", nullable = false, columnDefinition="TEXT") private String text; @Temporal(TemporalType.TIMESTAMP) @Column(name="datetime", nullable = false) @Index(name = "ALERT_DATETIME", columnNames = { "datetime" }) private Date datetime; @Column(name="type", nullable = false, length=20) @Index(name = "ALERT_TYPE", columnNames = { "type" }) @Enumerated(EnumType.STRING) private AlertType type; @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name="organization_id") @ForeignKey(name="fk_alert_organization",inverseName="fk_organization_alert") private Organization organization; @Column(name="attachments", nullable = true, length = 510) private String attachments; private boolean emailed; public MailMessage(){ } public MailMessage(String address, String subject, String text, AlertType type, Organization organization) { super(); this.address = address; this.subject = subject; this.text = text; this.type = type; this.organization = organization; this.datetime = new Date(); } public MailMessage(String address, String text) { this.address = address; this.text = text; this.datetime = new Date(); } public String getText() { return text; } public void setText(String text) { this.text = text; } public Date getDatetime() { return datetime == null ? null : new Date(datetime.getTime()); } public void setDatetime(Date datetime) { this.datetime = datetime == null ? null : new Date(datetime.getTime()); } public boolean isEmailed() { return emailed; } public void setEmailed(boolean emailed) { this.emailed = emailed; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public Organization getOrganization() { return organization; } public void setOrganization(Organization organization) { this.organization = organization; } public AlertType getType() { return type; } public void setType(AlertType type) { this.type = type; } public String getSubject() { return subject; } public void setSubject(String subject) { this.subject = subject; } public void setAttachments(String attachments) { this.attachments = attachments; } public String getAttachments() { return attachments; } public boolean hasAttachements(){ return attachments != null && !attachments.isEmpty(); } public List<String> getAttachmentList(){ List<String> attachmentList = new ArrayList<String>(); if (attachments == null || attachments.isEmpty()){ return attachmentList; } String[] attachmentArray = attachments.split(","); for(String attachment: attachmentArray){ attachmentList.add(attachment); } return attachmentList; } public void setAttachmentList(List<String> attachmentList){ if (attachmentList.isEmpty()){ this.attachments = null; return; } StringBuffer stringBuffer = new StringBuffer(); for(String attachment: attachmentList){ stringBuffer.append(attachment); stringBuffer.append(","); } this.attachments = stringBuffer.substring(0, stringBuffer.length()-1); } }
[ "dagmar.timler@gmail.com" ]
dagmar.timler@gmail.com
2bd5f4859b7061fd2c1fa0531e2d987ee2375047
14fec7d48aa2bd28ecbeb87e4e1d8aeb23e20635
/src/main/java/com/mht/service/impl/MessageReportServiceImpl.java
285b00a5ddb2a3d52a32098be81416661bbf43e5
[]
no_license
haoqiunie/api1
352a2d75ee77b98ff09f7e5a43bfc4f6cab98294
37bf9c55edda5e9b7a70a85f0851472dd8306280
refs/heads/master
2022-06-27T18:22:03.203863
2019-08-12T03:02:11
2019-08-12T03:02:11
201,601,048
0
0
null
2022-06-17T02:25:39
2019-08-10T08:17:18
Java
UTF-8
Java
false
false
498
java
package com.mht.service.impl; import com.mht.entity.MessageReport; import com.mht.mapper.MessageReportMapper; import com.mht.service.IMessageReportService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.stereotype.Service; /** * <p> * 服务实现类 * </p> * * @author jobob * @since 2019-07-29 */ @Service public class MessageReportServiceImpl extends ServiceImpl<MessageReportMapper, MessageReport> implements IMessageReportService { }
[ "1778715299@qq.com" ]
1778715299@qq.com
b23597a468f91d4381a3e1ec7c352bcce6692d54
697aba309b7727cb4ca0af04facb7cc87b0aed7a
/android/app/src/main/java/com/mobile_24_dec_dev_17259/MainActivity.java
b91ead860e8e7bc2a9b0aec2ec4f2e4bc4ef58c6
[]
no_license
crowdbotics-apps/mobile-24-dec-dev-17259
0fc6700f8c4ed2fdc3c979fd80109aa49613b669
2728575b7052c190a5a735be161e7d3234d22781
refs/heads/master
2023-02-02T08:38:25.196677
2020-12-24T14:26:38
2020-12-24T14:26:38
324,068,056
0
0
null
null
null
null
UTF-8
Java
false
false
388
java
package com.mobile_24_dec_dev_17259; import com.facebook.react.ReactActivity; public class MainActivity extends ReactActivity { /** * Returns the name of the main component registered from JavaScript. This is used to schedule * rendering of the component. */ @Override protected String getMainComponentName() { return "mobile_24_dec_dev_17259"; } }
[ "team@crowdbotics.com" ]
team@crowdbotics.com
dfc5d19b4f3f6db4f7988421c3928e123f178289
a9d0965686411eb5376ac61c8febd809673c9f7b
/ZXingLibrary2/src/main/java/com/wang/zxinglibrary/core/multi/MultipleBarcodeReader.java
1906d9acf6d320e083d449dd2c2df24b38ed9b6a
[]
no_license
ShiZiXuan/SamoAPP
63b133343cfb9ed17477f15c30958c50d7e75342
e0d84999ea9e53551fc620845ee4f4c225392a07
refs/heads/master
2020-04-04T22:14:42.020367
2018-11-06T09:43:13
2018-11-06T09:43:13
156,316,127
0
0
null
null
null
null
UTF-8
Java
false
false
1,265
java
/* * Copyright 2009 ZXing 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 com.wang.zxinglibrary.core.multi; import com.wang.zxinglibrary.core.BinaryBitmap; import com.wang.zxinglibrary.core.DecodeHintType; import com.wang.zxinglibrary.core.NotFoundException; import com.wang.zxinglibrary.core.Result; import java.util.Map; /** * Implementation of this interface attempt to read several barcodes from one image. * * @see com.wang.zxinglibrary.core.Reader * @author Sean Owen */ public interface MultipleBarcodeReader { Result[] decodeMultiple(BinaryBitmap image) throws NotFoundException; Result[] decodeMultiple(BinaryBitmap image, Map<DecodeHintType, ?> hints) throws NotFoundException; }
[ "1648013465@qq.com" ]
1648013465@qq.com
05172d159c7d4da39a8978888f9ddf6cf868707f
c173832fd576d45c875063a1a480672fbd59ca04
/seguridad/tags/apps20120808/apps/localgismezcla/src/com/geopista/app/layerutil/schema/attribute/AttributeEditor.java
bf37ad21001e4ba77556a9b88a6af4a99f42eae6
[]
no_license
jormaral/allocalgis
1308616b0f3ac8aa68fb0820a7dfa89d5a64d0e6
bd5b454b9c2e8ee24f70017ae597a32301364a54
refs/heads/master
2021-01-16T18:08:36.542315
2016-04-12T11:43:18
2016-04-12T11:43:18
50,914,723
0
0
null
2016-02-02T11:04:27
2016-02-02T11:04:27
null
UTF-8
Java
false
false
4,684
java
/** * The GEOPISTA project is a set of tools and applications to manage * geographical data for local administrations. * * Copyright (C) 2004 INZAMAC-SATEC UTE * * 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 2 * 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, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * For more information, contact: * * * www.geopista.com * */ package com.geopista.app.layerutil.schema.attribute; /** * Editor para los componentes de tipo Attribute * * @author cotesa * */ import javax.swing.AbstractCellEditor; import javax.swing.table.TableCellEditor; import javax.swing.JButton; import javax.swing.JTable; import com.geopista.app.AppContext; import com.geopista.app.layerutil.exception.DataException; import com.geopista.app.layerutil.layer.LayerOperations; import com.geopista.app.layerutil.util.JDialogTranslations; import com.geopista.feature.Attribute; import java.awt.Component; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Hashtable; public class AttributeEditor extends AbstractCellEditor implements TableCellEditor, ActionListener { AppContext aplicacion = (AppContext) AppContext.getApplicationContext(); Attribute currentAttribute; Hashtable traducciones = new Hashtable(); JButton button; JDialogTranslations jDiccionario; protected static final String EDIT = "edit"; /** * Constructor de la clase * */ public AttributeEditor() { //Set up the editor (from the table's point of view), //which is a button. //This button brings up the color chooser dialog, //which is the editor from the user's point of view. button = new JButton(); button.setActionCommand(EDIT); button.addActionListener(this); } /** * Handles events from the editor button and from * the dialog's OK button. */ public void actionPerformed(ActionEvent e) { if (EDIT.equals(e.getActionCommand())) { //The user has clicked the cell, so //bring up the dialog. //button.setBackground(currentColor); LayerOperations operaciones = new LayerOperations(); if (currentAttribute.getHtTraducciones()==null) { try { traducciones = operaciones.buscarTraduccionAtributos(currentAttribute); } catch (DataException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } else { traducciones = currentAttribute.getHtTraducciones(); } jDiccionario = new JDialogTranslations(aplicacion.getMainFrame(), true, traducciones,true); jDiccionario.setSize(600,500); jDiccionario.show(); Hashtable diccionario = jDiccionario.getDiccionario(); if (diccionario !=null) currentAttribute.setHtTraducciones(diccionario); //Make the renderer reappear. fireEditingStopped(); } else { //User pressed dialog's "OK" button. currentAttribute.setHtTraducciones(currentAttribute.getHtTraducciones()); } } /** * Implements the one CellEditor method that AbstractCellEditor doesn't. */ public Object getCellEditorValue() { return currentAttribute; } /** * Implements the one method defined by TableCellEditor. */ public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { currentAttribute = (Attribute)value; return button; } }
[ "jorge.martin@cenatic.es" ]
jorge.martin@cenatic.es
442413df363edc288ef665a03b10489e9f373464
07841705bb52cbe09f2f4736eb7fd3ab21dbbe03
/OOP/Composition/challenge/Ceiling.java
0455a1d1d727ec52bb9dfe5e8366b1cab30a0448
[]
no_license
david2999999/Java-Master-Class
a861a772bd60654344e2acf6de461c0603e5b0ea
91bf32f0a02ee8971c972132b409f0900c7f1541
refs/heads/master
2021-07-16T03:32:09.526901
2018-12-09T13:14:26
2018-12-09T13:14:26
111,569,329
2
0
null
null
null
null
UTF-8
Java
false
false
394
java
package OOP.Composition.challenge; public class Ceiling { private int height; private int paintedColor; public Ceiling(int height, int paintedColor) { this.height = height; this.paintedColor = paintedColor; } public int getHeight() { return height; } public int getPaintedColor() { return paintedColor; } }
[ "djiang86@binghamton.edu" ]
djiang86@binghamton.edu
a4a467b84a7f7e0554b6cfa7f4d45308ec120f9f
94cb48658040df60a16a5a13da0976ed07c01ceb
/examples/dunwu-examples-showcase/dunwu-examples-showcase-server/src/main/java/io/github/dunwu/quickstart/user/service/UserService.java
4821c80cc85887862d8043391cd4b2cf7baaa584
[ "Apache-2.0" ]
permissive
wtopps/dunwu
569ea2f7aefbebf81efe0057b07b95f7ce00403b
7c94d56808d76b4cf96aa34141ddc7d3b7fe4414
refs/heads/master
2020-12-08T12:58:54.891740
2019-12-20T15:42:30
2019-12-20T15:42:30
232,987,475
1
0
Apache-2.0
2020-01-10T07:08:20
2020-01-10T07:08:19
null
UTF-8
Java
false
false
336
java
package io.github.dunwu.quickstart.user.service; import io.github.dunwu.data.service.IService; import io.github.dunwu.quickstart.user.entity.User; /** * <p> * 用户表 服务类 * </p> * * @author <a href="mailto:forbreak@163.com">Zhang Peng</a> * @since 2019-09-17 */ public interface UserService extends IService<User> { }
[ "forbreak@163.com" ]
forbreak@163.com
c2285f25b9c314fedcde2038626587e05c5c9d52
b970108757a8678d31f2ee8b72823d911b997546
/app/src/main/java/com/gcloud/gaadi/Fragments/FinanceOthersFragment.java
2852d1337eecf9f2bc9ae8bc0a946dccdd9544d1
[]
no_license
morristech/Gcloud
c1f9d10aa3a03543ba60e4744acac23821ea69da
6528f21b5802e39b485a4846d6ea26e6fe839b53
refs/heads/master
2020-03-17T08:10:39.785132
2016-04-08T17:04:22
2016-04-08T17:04:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,756
java
package com.gcloud.gaadi.Fragments; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.gcloud.gaadi.R; import com.gcloud.gaadi.ui.Finance.GaadiFinanceActivity; /** * Created by lakshaygirdhar on 19/10/15. */ public class FinanceOthersFragment extends Fragment { private Activity mActivity; @Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); mActivity = getActivity(); } private Activity getFragmentActivity() { return mActivity; } @Override public void onAttach(Context context) { super.onAttach(context); //mActivity = getFragmentActivity(); } public static FinanceOthersFragment getInstance(){ FinanceOthersFragment fragment = new FinanceOthersFragment(); return fragment; } @Nullable @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.others_fragment,null); view.findViewById(R.id.tvGoToMain).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(getFragmentActivity(), GaadiFinanceActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(intent); getFragmentActivity().finish(); } }); return view; } }
[ "mushareb.ali@gaadi.com" ]
mushareb.ali@gaadi.com
301ae03c98b48516accce01c1920a8f0bfe2a518
c74c2e590b6c6f967aff980ce465713b9e6fb7ef
/game-logic/src/main/java/com/bdoemu/gameserver/model/manufactures/templates/ManufactureT.java
92c4dbd0951b4408e7c505fd535b25e7ea2a86ed
[]
no_license
lingfan/bdoemu
812bb0abb219ddfc391adadf68079efa4af43353
9c49b29bfc9c5bfe3192b2a7fb1245ed459ef6c1
refs/heads/master
2021-01-01T13:10:13.075388
2019-12-02T09:23:20
2019-12-02T09:23:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,181
java
package com.bdoemu.gameserver.model.manufactures.templates; import com.bdoemu.gameserver.model.manufactures.ManufactureItem; import java.sql.ResultSet; import java.sql.SQLException; import java.util.HashMap; public class ManufactureT { private int resultDropGroup; private int successPercent; private HashMap<Integer, ManufactureItem> items; public ManufactureT(final ResultSet rs) throws SQLException { this.items = new HashMap<>(); for (int i = 1; i <= 5; ++i) { if (rs.getString("MaterialItem" + i) != null) { final int itemId = rs.getInt("MaterialItem" + i); final long count = rs.getLong("MaterialItemCount" + i); this.items.put(itemId, new ManufactureItem(itemId, count)); } } this.resultDropGroup = rs.getInt("ResultDropGroup"); this.successPercent = rs.getInt("SuccessPercent"); } public HashMap<Integer, ManufactureItem> getItems() { return this.items; } public int getResultDropGroup() { return this.resultDropGroup; } public int getSuccessPercent() { return this.successPercent; } }
[ "511459965@qq.com" ]
511459965@qq.com
c1bb09bd990052670419ecfbb52296c1213ef6e6
34bcf41c98b60da861b2d90c332a0a879815a6c2
/src/main/java/com/etermax/spacehorse/core/quest/model/unlock/AvailableQuestSlotDifficultiesByPlayerLevel.java
acd1f1ee474ccf252ef1730839faa5e880f260d9
[]
no_license
damianciocca/horse-api
af3c15ad749b81541cffa62f68824fe0df69b2f2
2f8df8a50081a2c2ad2dc57d15932776d93c3f2e
refs/heads/master
2020-03-19T21:22:45.733348
2018-06-11T14:32:13
2018-06-11T14:32:13
136,938,331
0
0
null
null
null
null
UTF-8
Java
false
false
838
java
package com.etermax.spacehorse.core.quest.model.unlock; import java.util.List; import com.etermax.spacehorse.core.quest.model.QuestDifficultyType; public class AvailableQuestSlotDifficultiesByPlayerLevel { private final int playerLevel; private final List<QuestDifficultyType> availableSlotDifficulties; public AvailableQuestSlotDifficultiesByPlayerLevel(int playerLevel, List<QuestDifficultyType> availableSlotDifficulties) { this.playerLevel = playerLevel; this.availableSlotDifficulties = availableSlotDifficulties; } public int getPlayerLevel() { return playerLevel; } public List<QuestDifficultyType> getAvailableSlotDifficulties() { return availableSlotDifficulties; } public boolean contains(QuestDifficultyType questDifficultyType) { return availableSlotDifficulties.contains(questDifficultyType); } }
[ "damian.ciocca@etermax.com" ]
damian.ciocca@etermax.com
cd4ed3bd9058189c94063c33cf4aaf14f4851f54
9c6755241eafce525184949f8c5dd11d2e6cefd1
/src/leetcode/algorithms/RepeatedNTimes.java
940ff02eba02a853b1cabc00a071aceb85020bfb
[]
no_license
Baltan/leetcode
782491c3281ad04efbe01dd0dcba2d9a71637a31
0951d7371ab93800e04429fa48ce99c51284d4c4
refs/heads/master
2023-08-17T00:47:41.880502
2023-08-16T16:04:32
2023-08-16T16:04:32
172,838,932
13
3
null
null
null
null
UTF-8
Java
false
false
843
java
package leetcode.algorithms; import java.util.HashSet; import java.util.Set; /** * Description: 961. N-Repeated Element in Size 2N Array * * @author Baltan * @date 2019-03-12 09:45 */ public class RepeatedNTimes { public static void main(String[] args) { System.out.println(repeatedNTimes(new int[]{1, 2, 3, 3})); System.out.println(repeatedNTimes(new int[]{2, 1, 2, 5, 3, 2})); System.out.println(repeatedNTimes(new int[]{5, 1, 5, 2, 5, 3, 5, 4})); } public static int repeatedNTimes(int[] A) { Set<Integer> set = new HashSet<>(); int oldSize = 0; for (int num : A) { set.add(num); if (set.size() == oldSize) { return num; } else { oldSize = set.size(); } } return -1; } }
[ "617640006@qq.com" ]
617640006@qq.com
29b211739426140e39245ab1b1a8738c769b9f03
515fc6a4c7dcd24b034e68f711fa18d0de4112c8
/modules/basic/src/main/java/io/oasp/module/basic/common/api/config/ConfigProperties.java
a7f5f655fef8df95b8c689da95313cdbd460ca31
[ "Apache-2.0" ]
permissive
oasp/oasp4j
186af233cd7bfef2fd135dfd6dadc43a27799309
4ff7e9eb9900455befc40e1375efb64005205de9
refs/heads/develop
2021-11-26T22:24:21.246680
2021-05-22T14:43:20
2021-05-22T14:43:20
20,517,345
80
215
Apache-2.0
2021-05-22T14:43:21
2014-06-05T08:20:28
Java
UTF-8
Java
false
false
4,700
java
package io.oasp.module.basic.common.api.config; import java.util.Map; import java.util.Set; /** * Simple abstraction interface for generic access to configuration properties (from spring-boot * {@code application.properties}). * * @since 3.0.0 */ public interface ConfigProperties { /** The separator charactor '.' for hierarchical keys such as "spring.datasource.url". */ char KEY_SEPARATOR = '.'; /** An immutable instance of {@link ConfigProperties} that is always {@link #isEmpty() empty} */ ConfigProperties EMPTY = new EmptyConfigProperties(); /** * @return the {@link Set} of the {@link #getChild(String) direct child keys} available in the * {@link ConfigProperties}-node. */ Set<String> getChildKeys(); /** * @param key the {@link #getChildKeys() child key} of the requested configuration value. * @return the child {@link ConfigProperties}. Will be an {@link #isEmpty() empty} child if undefined. */ ConfigProperties getChild(String key); /** * Recursive variant of {@link #getChild(String)} such that * <code>{@link ConfigProperties config}.{@link #getChild(String...) getChild}(key1, ..., keyN)</code> is the same as * <code>{@link ConfigProperties config}.{@link #getChild(String) getChild}(key1)...{@link #getChild(String) getChild}(keyN)</code>. * * @param keys the keys to traverse recursively. * @return the descendant {@link #getChild(String) child} reached from recursively traversing the given {@code keys}. */ ConfigProperties getChild(String... keys); /** * Shortcut for {@link #getChild(String) getChild(key)}.{@link #getValue()}. * * @param key the {@link #getChild(String) key of the child} * @return the value of this {@link ConfigProperties}-node. May be {@code null}. */ String getChildValue(String key); /** * Shortcut for {@link #getChild(String...) getChild(keys)}.{@link #getValue()}. * * @param keys the keys to traverse recursively. * @return the {@link #getValue() value} of the {@link #getChild(String...) descendant child} traversed by * {@code keys}. May be {@code null}. */ String getChildValue(String... keys); /** * @return the value of this {@link ConfigProperties}-node. May be {@code null}. */ String getValue(); /** * @param <T> the requested {@code type} * @param type the {@link Class} reflecting the requested result type. * @return the value of this {@link ConfigProperties}-node converted to the given {@code type}. Will be {@code null} * if undefined. */ <T> T getValue(Class<T> type); /** * @param <T> the requested {@code type} * @param type the {@link Class} reflecting the requested result type. * @param defaultValue the value returned as default if the actual {@link #getValue() value} is undefined. * @return the value of this {@link ConfigProperties}-node converted to the given {@code type}. Will be * {@code defaultValue} if undefined. */ <T> T getValue(Class<T> type, T defaultValue); /** * @return the {@link #getValue(Class, Object)} as {@code boolean} with {@code false} as default. */ boolean getValueAsBoolean(); /** * @return {@code true} if this is an empty {@link ConfigProperties}-node that neither has a {@link #getValue() value} * nor {@link #getChildKeys() any} {@link #getChild(String) child}. */ boolean isEmpty(); /** * @return this {@link ConfigProperties} converted to a {@link ConfigProperties#toFlatMap() flat} {@link Map}. */ Map<String, String> toFlatMap(); /** * @param rootKey the root key used as prefix for the {@link java.util.Map.Entry#getKey() keys} separated with a dot * if not {@link String#isEmpty() empty}. Typically the empty {@link String}. * @return this {@link ConfigProperties} converted to a {@link ConfigProperties#toFlatMap() flat} {@link Map}. */ Map<String, String> toFlatMap(String rootKey); /** * @return this {@link ConfigProperties} converted to a {@link ConfigProperties#toHierarchicalMap() hierarchical} * {@link Map}. */ Map<String, Object> toHierarchicalMap(); /** * @param parent the parent {@link ConfigProperties} to extend. * @return a new instance of {@link ConfigProperties} with all {@link #getChild(String) children} and * {@link #getValue() value}(s) from this {@link ConfigProperties}-tree and all {@link #getChild(String) * children} and {@link #getValue() value}(s) inherited from the given {@code parent} * {@link ConfigProperties}-tree if they are undefined in this tree. */ MutableConfigProperties inherit(ConfigProperties parent); }
[ "hohwille@users.sourceforge.net" ]
hohwille@users.sourceforge.net
731b29a9a9737469d85e734144a0fefa4db0cd91
bebd89940b37962e290968b1a39aa1a5a305ed53
/src/main/java/com/honeywell/fireiot/fire/entity/FireEvent.java
d8aebc581e18e54167f1d4b47fb1a111b3e26be7
[]
no_license
tanxiaoqiao/iot
911a26494b003758c3d26e5ee57e3bde9af1f85e
eb911c0b07974282996c0e7f9f0be426684ab1c5
refs/heads/master
2022-07-02T10:10:31.530354
2019-07-29T01:14:13
2019-07-29T01:14:13
199,354,147
1
3
null
2021-04-26T19:22:49
2019-07-29T01:03:27
Java
UTF-8
Java
false
false
981
java
package com.honeywell.fireiot.fire.entity; import com.honeywell.fireiot.entity.BaseEntity; import lombok.Data; import javax.persistence.Entity; import javax.persistence.Table; /** * @Author : YingZhang * @Description: 火警事件 * @Date : Create in 1:16 PM 12/28/2018 */ @Data @Entity @Table(name = "fire_event") public class FireEvent extends BaseEntity<FireEvent> { // 自定义设备Id private String deviceId; // 创建时间 private Long createDatetime; // 楼 private String building; // 层 private String floor; // 设备标签 private String deviceLabel; // 设备类型 private String deviceType; // 事件类型(火警/故障/隔离) private String eventType; // 事件状态(Add/Del)Add:事件新增 Del:事件恢复 private String eventStatus; // 0:有效 1:删除 private Integer status; // 区号 private String zone; // 点号 private String point; }
[ "george.qian@honeywell.com" ]
george.qian@honeywell.com
7c0f49f0b4a75d5f3e76abbf1f27ade814192823
58df55b0daff8c1892c00369f02bf4bf41804576
/src/bzj.java
7930431c273044790e52f109a0d79f203769eb6a
[]
no_license
gafesinremedio/com.google.android.gm
0b0689f869a2a1161535b19c77b4b520af295174
278118754ea2a262fd3b5960ef9780c658b1ce7b
refs/heads/master
2020-05-04T15:52:52.660697
2016-07-21T03:39:17
2016-07-21T03:39:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
280
java
public abstract interface bzj { public abstract boolean a(); public abstract void b(); public abstract boolean zoomIn(); public abstract boolean zoomOut(); } /* Location: * Qualified Name: bzj * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
c7f4d36327624d3bd15517987ee2c955232fb79a
1f3c787895122dd183a91426836093cf5ecfecdf
/vertx-axle-clients/vertx-axle-generator/src/test/java/io/vertx/codegen/extra/Bar.java
468746dbae08b17d601a50130f00629930944b52
[ "Apache-2.0" ]
permissive
aguibert/smallrye-reactive-utils
d7ad87c7f3e44c8128a868c565bf978f70f2275c
15723080192c7dfe56c74418f79a706023dd966c
refs/heads/master
2022-10-06T07:40:52.536310
2020-05-29T14:26:35
2020-05-29T14:26:35
268,556,310
0
0
Apache-2.0
2020-06-01T15:12:49
2020-06-01T15:12:48
null
UTF-8
Java
false
false
214
java
package io.vertx.codegen.extra; import io.vertx.codegen.annotations.GenIgnore; import io.vertx.codegen.annotations.VertxGen; @VertxGen public interface Bar { @GenIgnore class Impl implements Bar { } }
[ "julien@julienviet.com" ]
julien@julienviet.com
4c211f91e64f9b6cabb0540d7942575b01a40db2
e4aea93f2988e2cf1be4f96a39f6cc3328cbbd50
/src/org/agilemore/agilegrid/u.java
cce03c2388fd24055c4843a86599675b1c26d13e
[]
no_license
lannerate/ruleBuilder
18116282ae55e9d56e9eb45d483520f90db4a1a6
b5d87495990aa1988adf026366e92f7cbb579b19
refs/heads/master
2016-09-05T09:13:43.879603
2013-11-10T08:32:58
2013-11-10T08:32:58
14,231,127
0
1
null
null
null
null
UTF-8
Java
false
false
297
java
package org.agilemore.agilegrid; class u implements av { u(r paramr) { } public void a(aB paramaB) { this.a.d(); } } /* Location: D:\Dev_tools\ruleEngine\rbuilder.jar * Qualified Name: org.agilemore.agilegrid.u * JD-Core Version: 0.6.0 */
[ "zhanghuizaizheli@hotmail.com" ]
zhanghuizaizheli@hotmail.com
fbdb277fb912bc6e8ceb8c06271cbe6b1801bcba
454fa99f348879664b62be68337c4a8bf216e907
/evidence/evidenceJdbc/src/beSkilled/service/PurchaseService.java
76d5fadd5c0a503e06f845201198cf76ec01923b
[]
no_license
mostafiz9900/JDBC
950a40666c976e581b8d2ce49633949416ebd124
8165cacd25691716726b6ee275a1162667bfd25b
refs/heads/master
2020-04-05T03:12:06.022640
2018-12-18T06:37:44
2018-12-18T06:37:44
156,504,920
0
0
null
null
null
null
UTF-8
Java
false
false
1,696
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package beSkilled.service; import beSkilled.connection.jdbcConnection; import beSkilled.demo.purchase; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author User */ public class PurchaseService { static Connection conn = jdbcConnection.getConnection(); public static void creatTable() { String sql = "create table purchase(pid int auto_increment primary key, pname varchar(30) not null, pcode varchar(30) not null, qty int (11) not null, unitPrice double not null, totalPrice double not null , pdate Date not null)"; try { PreparedStatement ps = conn.prepareStatement(sql); ps.execute(); System.out.println("Table created"); } catch (SQLException ex) { Logger.getLogger(PurchaseService.class.getName()).log(Level.SEVERE, null, ex); } } //insert purchase table public static void insertData() { String sql = "insert into purchase( pname, pcode , qty, unitPrice, totalPrice , pdate ) values(?,?,?,?,?,?)"; try { PreparedStatement ps = conn.prepareStatement(sql); //ps.setString(1, purchase.); ps.execute(); System.out.println("Table created"); } catch (SQLException ex) { Logger.getLogger(PurchaseService.class.getName()).log(Level.SEVERE, null, ex); } } //insert purchase table }
[ "mostafiz9900@gmail.com" ]
mostafiz9900@gmail.com
76418c5d34075a11ee7654b6deb7d8dd4da7a1ee
86505462601eae6007bef6c9f0f4eeb9fcdd1e7b
/bin/modules/sap-framework-core/sapcorejco/testsrc/de/hybris/platform/sap/core/jco/SapcorejcoSNCTest.java
8bfd9fc6bd28be68152dfb3051b7034d7da8b711
[]
no_license
jp-developer0/hybrisTrail
82165c5b91352332a3d471b3414faee47bdb6cee
a0208ffee7fee5b7f83dd982e372276492ae83d4
refs/heads/master
2020-12-03T19:53:58.652431
2020-01-02T18:02:34
2020-01-02T18:02:34
231,430,332
0
4
null
2020-08-05T22:46:23
2020-01-02T17:39:15
null
UTF-8
Java
false
false
4,330
java
/* * Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * license agreement you entered into with SAP. */ package de.hybris.platform.sap.core.jco; import static org.junit.Assert.assertTrue; import de.hybris.bootstrap.annotations.ManualTest; import de.hybris.platform.sap.core.configuration.rfc.event.SAPRFCDestinationPingEvent; import de.hybris.platform.sap.core.jco.service.impl.DefaultSAPRFCDestinationService; import de.hybris.platform.servicelayer.ServicelayerTransactionalTest; import de.hybris.platform.servicelayer.event.EventService; import de.hybris.platform.servicelayer.internal.service.ServicelayerUtils; import org.apache.log4j.Logger; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; /** * JUnit Tests for the Sapcorejco extension. * * Test prerequisites: * - SAP Cryptographic Library is installed and configured * - Environment Variable SECUDIR set to SNC sec directory * - Environment Variable SNC_LIB set to SNC directory * - SNC_TEST_DEST.jcoDestination exist in config folder with the parameters of the AS ABAP used for SNC test. * */ @ManualTest public class SapcorejcoSNCTest extends ServicelayerTransactionalTest { /** Edit the local|project.properties to change logging behaviour (properties log4j.*). */ private static final Logger LOG = Logger.getLogger(SapcorejcoSNCTest.class.getName()); @Before @SuppressWarnings("javadoc") public void setUp() { // implement here code executed before each test } @After @SuppressWarnings("javadoc") public void tearDown() { // implement here code executed after each test } @Test @SuppressWarnings("javadoc") public void testPingDestWithSnc() { LOG.info("The test uses local destination file SNC_TEST_DEST.jcoDestination. The SNC library path is specified there."); // Destination SNC_TEST_DEST must be provided as file SNC_TEST_DEST.jcoDestination!!! final SAPRFCDestinationPingEvent event = new SAPRFCDestinationPingEvent("SNC_TEST_DEST"); getEventService().publishEvent(event); if (event.getResultIndicator() == 0) { LOG.info("SAP RFC SNC Destination Ping Test Result: " + event.getMessage()); } else { LOG.error("SAP RFC SNC Destination Ping Test Result: " + event.getMessage()); } assertTrue(event.getResultIndicator()!= 1); } @Test @SuppressWarnings("javadoc") public void testSetSncLibPath2EnvVar() { final DefaultSAPRFCDestinationService classUnderTest = getDestinationService(); LOG.info("Value of the SncLibraryPath of the destination service: " + classUnderTest.getSncLibraryPath()); LOG.info("Value of environment variable SNC_LIB: " + System.getenv("SNC_LIB")); if (System.getenv("SNC_LIB") == null) { // skip the test; test environment is not quite well LOG.info("Check the setup of enviroment variable SNC_LIB"); return; } if (classUnderTest.getSncLibraryPath() != null) { assertTrue(classUnderTest.getSncLibraryPath().equals(System.getenv("SNC_LIB"))); } else { assertTrue(false); } } @Test @SuppressWarnings("javadoc") public void testSetSncLibPath2SpecificValue() { final String sncLibraryPath = "D:\\tmp"; final DefaultSAPRFCDestinationService classUnderTest = getDestinationService(); // Remind the current assignment of the SNC library path final String actualSncLibraryPath = classUnderTest.getSncLibraryPath(); // Perform the test, set new library path and check classUnderTest.setSncLibraryPath(sncLibraryPath); assertTrue(classUnderTest.getSncLibraryPath().equals(sncLibraryPath)); // reset to old reminded value classUnderTest.setSncLibraryPath(actualSncLibraryPath); } @SuppressWarnings("javadoc") private EventService getEventService() { return (EventService) ServicelayerUtils.getApplicationContext().getBean("eventService"); } @SuppressWarnings("javadoc") private DefaultSAPRFCDestinationService getDestinationService() { return (DefaultSAPRFCDestinationService) ServicelayerUtils.getApplicationContext().getBean("sapCoreDefaultSAPRFCDestinationService"); } }
[ "juan.gonzalez.working@gmail.com" ]
juan.gonzalez.working@gmail.com
79ab411485ad938bdaeb6d8f32a36f99617476f7
4a624db7b1aca0d7c0d516c2ac68cd555a9422dd
/src/main/java/com/viewfunction/vfbam/ui/component/processManagement/ProcessManagementPanel.java
1850ada41bfe96961472b5df1ab100348f93cc20
[]
no_license
wangyingchu/Business-activity-management-AdminApplication_viewfunction
0dabfef6334c68b88b96fca8fdac374d83acd49c
3327d5e5cee1ab653e0cd65ad4a31a729a07caa1
refs/heads/master
2020-03-08T16:08:53.401148
2018-04-07T14:20:34
2018-04-07T14:20:34
128,231,954
1
1
null
null
null
null
UTF-8
Java
false
false
852
java
package com.viewfunction.vfbam.ui.component.processManagement; import com.vaadin.ui.Label; import com.vaadin.ui.VerticalLayout; import com.viewfunction.vfbam.ui.util.UserClientInfo; import java.util.Properties; public class ProcessManagementPanel extends VerticalLayout { private UserClientInfo currentUserClientInfo; public ProcessManagementPanel(UserClientInfo currentUserClientInfo){ this.currentUserClientInfo=currentUserClientInfo; Properties userI18NProperties=this.currentUserClientInfo.getUserI18NProperties(); VerticalLayout content0 = new VerticalLayout(); content0.setMargin(true); content0.setSpacing(true); // content.setHeight("500px"); content0.setSizeFull(); content0.addComponent(new Label("Content for tab ")); this.addComponent(content0); } }
[ "yingchuwang@gmail.com" ]
yingchuwang@gmail.com
9aa6ccaed462e1f81127db6281f8b50d0407b6c1
0c249077623248cf98972abcc11d5a3e7e5e3b0c
/app/src/main/java/com/et/secondworld/widget/behavior/DisInterceptNestedScrollView.java
fd435eab5d5c680db4927df3efc1655352458c0a
[]
no_license
zhengyi321/SecondWorld
c8ea5dd060011abf852203a43cb483575c68bd34
814fa9c3491ee35a7fb05518df109497eefc06d1
refs/heads/master
2022-12-05T18:13:48.744296
2020-08-27T08:02:34
2020-08-27T08:02:34
290,713,867
0
0
null
null
null
null
UTF-8
Java
false
false
1,489
java
package com.et.secondworld.widget.behavior; import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; import androidx.core.widget.NestedScrollView; /** * Created by stefan on 2017/5/26. * Func:用于子类防止父类拦截子类的事件 */ public class DisInterceptNestedScrollView extends NestedScrollView { public DisInterceptNestedScrollView(Context context) { super(context); requestDisallowInterceptTouchEvent(true); } public DisInterceptNestedScrollView(Context context, AttributeSet attrs) { super(context, attrs); requestDisallowInterceptTouchEvent(true); } public DisInterceptNestedScrollView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); requestDisallowInterceptTouchEvent(true); } public boolean dispatchTouchEvent(MotionEvent ev) { getParent().requestDisallowInterceptTouchEvent(true); return super.dispatchTouchEvent(ev); } @Override public boolean onTouchEvent(MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_MOVE: requestDisallowInterceptTouchEvent(true); break; case MotionEvent.ACTION_UP: case MotionEvent.ACTION_CANCEL: requestDisallowInterceptTouchEvent(false); break; } return super.onTouchEvent(event); } }
[ "zhengyi321@126.com" ]
zhengyi321@126.com
a226f22983cd8e9b5b51bd1df414d911bf6ea503
97fd02f71b45aa235f917e79dd68b61c62b56c1c
/src/main/java/com/tencentcloudapi/pts/v20210728/models/DescribeProjectsRequest.java
a6f53310f65d10b9deb4916aa5536b33ff77d55d
[ "Apache-2.0" ]
permissive
TencentCloud/tencentcloud-sdk-java
7df922f7c5826732e35edeab3320035e0cdfba05
09fa672d75e5ca33319a23fcd8b9ca3d2afab1ec
refs/heads/master
2023-09-04T10:51:57.854153
2023-09-01T03:21:09
2023-09-01T03:21:09
129,837,505
537
317
Apache-2.0
2023-09-13T02:42:03
2018-04-17T02:58:16
Java
UTF-8
Java
false
false
5,912
java
/* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.tencentcloudapi.pts.v20210728.models; import com.tencentcloudapi.common.AbstractModel; import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.Expose; import java.util.HashMap; public class DescribeProjectsRequest extends AbstractModel{ /** * 分页offset */ @SerializedName("Offset") @Expose private Long Offset; /** * 每页limit */ @SerializedName("Limit") @Expose private Long Limit; /** * 项目ID数组 */ @SerializedName("ProjectIds") @Expose private String [] ProjectIds; /** * 项目名 */ @SerializedName("ProjectName") @Expose private String ProjectName; /** * 按字段排序 */ @SerializedName("OrderBy") @Expose private String OrderBy; /** * 升序/降序 */ @SerializedName("Ascend") @Expose private Boolean Ascend; /** * 标签数组 */ @SerializedName("TagFilters") @Expose private TagSpec [] TagFilters; /** * Get 分页offset * @return Offset 分页offset */ public Long getOffset() { return this.Offset; } /** * Set 分页offset * @param Offset 分页offset */ public void setOffset(Long Offset) { this.Offset = Offset; } /** * Get 每页limit * @return Limit 每页limit */ public Long getLimit() { return this.Limit; } /** * Set 每页limit * @param Limit 每页limit */ public void setLimit(Long Limit) { this.Limit = Limit; } /** * Get 项目ID数组 * @return ProjectIds 项目ID数组 */ public String [] getProjectIds() { return this.ProjectIds; } /** * Set 项目ID数组 * @param ProjectIds 项目ID数组 */ public void setProjectIds(String [] ProjectIds) { this.ProjectIds = ProjectIds; } /** * Get 项目名 * @return ProjectName 项目名 */ public String getProjectName() { return this.ProjectName; } /** * Set 项目名 * @param ProjectName 项目名 */ public void setProjectName(String ProjectName) { this.ProjectName = ProjectName; } /** * Get 按字段排序 * @return OrderBy 按字段排序 */ public String getOrderBy() { return this.OrderBy; } /** * Set 按字段排序 * @param OrderBy 按字段排序 */ public void setOrderBy(String OrderBy) { this.OrderBy = OrderBy; } /** * Get 升序/降序 * @return Ascend 升序/降序 */ public Boolean getAscend() { return this.Ascend; } /** * Set 升序/降序 * @param Ascend 升序/降序 */ public void setAscend(Boolean Ascend) { this.Ascend = Ascend; } /** * Get 标签数组 * @return TagFilters 标签数组 */ public TagSpec [] getTagFilters() { return this.TagFilters; } /** * Set 标签数组 * @param TagFilters 标签数组 */ public void setTagFilters(TagSpec [] TagFilters) { this.TagFilters = TagFilters; } public DescribeProjectsRequest() { } /** * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, * and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. */ public DescribeProjectsRequest(DescribeProjectsRequest source) { if (source.Offset != null) { this.Offset = new Long(source.Offset); } if (source.Limit != null) { this.Limit = new Long(source.Limit); } if (source.ProjectIds != null) { this.ProjectIds = new String[source.ProjectIds.length]; for (int i = 0; i < source.ProjectIds.length; i++) { this.ProjectIds[i] = new String(source.ProjectIds[i]); } } if (source.ProjectName != null) { this.ProjectName = new String(source.ProjectName); } if (source.OrderBy != null) { this.OrderBy = new String(source.OrderBy); } if (source.Ascend != null) { this.Ascend = new Boolean(source.Ascend); } if (source.TagFilters != null) { this.TagFilters = new TagSpec[source.TagFilters.length]; for (int i = 0; i < source.TagFilters.length; i++) { this.TagFilters[i] = new TagSpec(source.TagFilters[i]); } } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap<String, String> map, String prefix) { this.setParamSimple(map, prefix + "Offset", this.Offset); this.setParamSimple(map, prefix + "Limit", this.Limit); this.setParamArraySimple(map, prefix + "ProjectIds.", this.ProjectIds); this.setParamSimple(map, prefix + "ProjectName", this.ProjectName); this.setParamSimple(map, prefix + "OrderBy", this.OrderBy); this.setParamSimple(map, prefix + "Ascend", this.Ascend); this.setParamArrayObj(map, prefix + "TagFilters.", this.TagFilters); } }
[ "tencentcloudapi@tencent.com" ]
tencentcloudapi@tencent.com
5e0eba1a018aefc80fe6115da5d65d3d758edc32
e934ea451331e47c3b22374a1dcb14b7f06468e2
/server/src/main/java/sf/net/experimaestro/manager/json/JsonArray.java
5b3b0ab480560bcb96ec9135623edc9ca991b219
[]
no_license
nicolasdespres/experimaestro
7ba71b174d598547a9b2e4fdfdf4af8c2b829cd2
fa0407dac58c5181de7550d23ad5dbdf9d2e7721
refs/heads/master
2021-01-17T22:16:13.937657
2015-11-25T14:14:41
2015-11-25T14:14:41
32,166,147
0
0
null
2015-03-13T16:11:39
2015-03-13T16:11:39
null
UTF-8
Java
false
false
3,123
java
package sf.net.experimaestro.manager.json; /* * This file is part of experimaestro. * Copyright (c) 2014 B. Piwowarski <benjamin@bpiwowar.net> * * experimaestro 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. * * experimaestro 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 experimaestro. If not, see <http://www.gnu.org/licenses/>. */ import com.google.gson.stream.JsonWriter; import sf.net.experimaestro.manager.Manager; import sf.net.experimaestro.manager.QName; import sf.net.experimaestro.utils.Output; import java.io.IOException; import java.io.Writer; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import static java.lang.String.format; /** * @author B. Piwowarski <benjamin@bpiwowar.net> * @date 1/4/13 */ public class JsonArray extends ArrayList<Json> implements Json { public JsonArray(int initialCapacity) { super(initialCapacity); } public JsonArray(Json... elements) { addAll(Arrays.asList(elements)); } public JsonArray() { } public JsonArray(Collection<? extends Json> c) { super(c); } @Override public String toString() { return format("[%s]", Output.toString(", ", this)); } @Override public void write(Writer out) throws IOException { out.write('['); boolean first = true; for (Json json : this) { if (first) first = false; else out.write(", "); json.write(out); } out.write(']'); } @Override public void write(JsonWriter out) throws IOException { out.beginArray(); for (Json json : this) { json.write(out); } out.endArray(); } @Override public Json clone() { JsonArray array = new JsonArray(); for (Json json : this) array.add(json.clone()); return array; } @Override public boolean isSimple() { return false; } @Override public Object get() { return this; } @Override public QName type() { return Manager.XP_ARRAY; } @Override public boolean canIgnore(JsonWriterOptions options) { return size() == 0; } @Override public void writeDescriptorString(Writer out, JsonWriterOptions options) throws IOException { out.write('['); boolean first = true; for (Json json : this) { if (first) first = false; else out.write(", "); json.writeDescriptorString(out, options); } out.write(']'); } }
[ "benjamin@bpiwowar.net" ]
benjamin@bpiwowar.net
c094775d964b7af0b5c2b884a1008e12d7de158d
e5a8c17e3109386f6f0a2f863517637a81e264b7
/Eclipse_WS/apitraining/src/main/java/com/synechron/apiautomation/apitraining/ser/Employee.java
3a7e262cfaf988172a0b106832261e701a194a0f
[]
no_license
AravindaHB/Synechron_API_Automation
9b7eba325f3626cc28bdf8e2e75f6a1ecfd0e030
a0bb521eaa8f029a03c0d4198f9c1df182944e32
refs/heads/master
2023-08-10T16:40:15.511870
2021-09-24T10:51:26
2021-09-24T10:51:26
409,167,569
0
0
null
null
null
null
UTF-8
Java
false
false
832
java
package com.synechron.apiautomation.apitraining.ser; public class Employee { private String firstname; private String lastname; private String age;//" : 39, private String email;// " : "aru03.info@gmail.comm", private String empid ;//" public String getFirstname() { return firstname; } public void setFirstname(String firstname) { this.firstname = firstname; } public String getLastname() { return lastname; } public void setLastname(String lastname) { this.lastname = lastname; } public String getAge() { return age; } public void setAge(String age) { this.age = age; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getEmpid() { return empid; } public void setEmpid(String empid) { this.empid = empid; } }
[ "aru03.info@gmail.com" ]
aru03.info@gmail.com
30bfbd91cd65303f1e0a69dd0dd1ce6875d4aca2
478106dd8b16402cc17cc39b8d65f6cd4e445042
/l2junity-gameserver/dist/game/data/scripts/handlers/effecthandlers/BlockResurrection.java
f0ce8e5ee451c4e5d4b4279a84a8956fdf1664a3
[]
no_license
czekay22/L2JUnderGround
9f014cf87ddc10d7db97a2810cc5e49d74e26cdf
1597b28eab6ec4babbf333c11f6abbc1518b6393
refs/heads/master
2020-12-30T16:58:50.979574
2018-09-28T13:38:02
2018-09-28T13:38:02
91,043,466
1
0
null
null
null
null
UTF-8
Java
false
false
1,223
java
/* * Copyright (C) 2004-2015 L2J DataPack * * This file is part of L2J DataPack. * * L2J DataPack 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 DataPack 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 handlers.effecthandlers; import org.l2junity.gameserver.model.StatsSet; import org.l2junity.gameserver.model.effects.AbstractEffect; import org.l2junity.gameserver.model.effects.EffectFlag; /** * Block Resurrection effect implementation. * @author UnAfraid */ public final class BlockResurrection extends AbstractEffect { public BlockResurrection(StatsSet params) { } @Override public long getEffectFlags() { return EffectFlag.BLOCK_RESURRECTION.getMask(); } }
[ "unafraid89@gmail.com" ]
unafraid89@gmail.com
a106845bdafb696a17910ffadcb0c124563b1cce
e8f171ddb3c8fb54fcecaff0a84648e76681f982
/community/logicaldoc/trunk/logicaldoc-gui/src/main/java/com/logicaldoc/gui/frontend/client/services/CalendarService.java
f0fcfb2031b9334409d6aef74403530ca59265d0
[]
no_license
zhunengfei/logicaldoc
f12114ef72935e683af4b50f30a88fbd5df9bfde
9d432d29a9b43ebd2b13a1933a50add3f4784815
refs/heads/master
2021-01-20T01:05:48.499693
2017-01-13T16:24:16
2017-01-13T16:24:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,205
java
package com.logicaldoc.gui.frontend.client.services; import java.util.Date; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; import com.logicaldoc.gui.common.client.ServerException; import com.logicaldoc.gui.common.client.beans.GUICalendarEvent; /** * The client side stub for the Calendar Service. This service allows the * handling of calendar events. * * @author Marco Meschieri - Logical Objects * @since 6.7 */ @RemoteServiceRelativePath("calendar") public interface CalendarService extends RemoteService { /** * Saves an event */ public void saveEvent(GUICalendarEvent event) throws ServerException; /** * Gets an event */ public GUICalendarEvent getEvent(long eventId) throws ServerException; /** * Searches for events. * * @param startDate Start date (optional) * @param endDate End date (optional) * @param expireFrom (optional) * @param expireTo (optional) * @param frequency The frequency of the event (1,15, 30 ... optional) * @param title The title (used with like operator, optional) * @param type The type (used with like operator, optional) * @param subtype The subtype (used with like operator, optional) * @param status The title (used with like operator, optional) * @param maxRecords Maximum number of records (optional) * * @return The list of events ordered by ascending date */ public GUICalendarEvent[] find(Date startDate, Date endDate, Date expireFrom, Date expireTo, Integer frequency, String title, String type, String subtype, Integer status, Integer maxRecords) throws ServerException; /** * Deletes an event. If the event is a master, in any case all the * occurrences will be deleted too. */ public void deleteEvent(long eventId) throws ServerException; /** * Counts the number of events that start from now until a given date. * * @param username The user to be processed * @param end The and date * @return The number of found events * * @throws ServerException */ public int countUserEvents(String username, Date end) throws ServerException; }
[ "car031@bae09422-6297-422f-b3ee-419521344c47" ]
car031@bae09422-6297-422f-b3ee-419521344c47
a6659067c2fff2e5d7b55c40c1441eb113b2bfaa
5c4ae76a9885361f4fe94c6fd5e3487cb5fb3036
/leadnews/leadnews-model/src/main/java/com/siyi/model/admin/pojos/AdArticleStatistics.java
fd7165e0ee0b2b118a42d384b70c478b0c0f2b40
[]
no_license
ppker/leadnews
d4b62d1df459e460d02b58eb49d29bdccfee1440
78115309361f7e888040ab265afe167c1005221e
refs/heads/main
2023-05-27T03:19:07.078738
2021-06-02T02:58:04
2021-06-02T02:58:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
629
java
package com.siyi.model.admin.pojos; import lombok.Data; import lombok.NoArgsConstructor; import java.util.Date; @Data @NoArgsConstructor public class AdArticleStatistics { private Integer id; private Integer articleWeMedia; private Integer articleCrawlers; private Integer channelId; private Integer read20; private Integer read100; private Integer readCount; private Integer comment; private Integer follow; private Integer collection; private Integer forward; private Integer likes; private Integer unlikes; private Integer unfollow; private Date createdTime; }
[ "siyiyimiaozhong@qq.com" ]
siyiyimiaozhong@qq.com
75dafdc7146549f6d923b569a4761b5d06d7f53d
715d79559c10e327e7debf20d515c431d70a0b29
/revature_java_training/cookie_demo/src/com/controller/SummaryServlet.java
5cbeab117019c9914b1c77ff1dcfb6bbfbb3aa24
[]
no_license
vinayingalahalli/java_batch_uta
8bb1d599559cf65053447d9829b66973440800d5
0019b16e2bc14030c643156904bf104cd6670aae
refs/heads/master
2023-01-09T04:28:24.581552
2020-04-20T17:09:32
2020-04-20T17:09:32
228,490,902
5
2
null
2023-01-07T14:05:41
2019-12-16T22:59:44
JavaScript
UTF-8
Java
false
false
1,859
java
package com.controller; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * Servlet implementation class SummaryServlet */ @WebServlet("/summary") public class SummaryServlet extends HttpServlet { private static final long serialVersionUID = 1L; /** * @see HttpServlet#HttpServlet() */ public SummaryServlet() { super(); // TODO Auto-generated constructor stub } /** * @see HttpServlet#service(HttpServletRequest request, HttpServletResponse response) */ protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out=response.getWriter(); Cookie cookies[]=request.getCookies(); out.print("<table border='1px'>"); for(Cookie cookie:cookies) { out.print("<tr>"); out.print("<th>"+cookie.getName()+"</th>"); out.print("<td>"+cookie.getValue()+"</td>"); out.print("</tr>"); } out.print("<tr>"); out.print("<th>Organization Name</th>"); out.print("<td>"+request.getParameter("orgname")+"</td>"); out.print("</tr>"); out.print("<tr>"); out.print("<th>Total Years Of Experience</th>"); out.print("<td>"+request.getParameter("yoe")+"</td>"); out.print("</tr>"); out.print("<tr>"); out.print("<th>Current Salary</th>"); out.print("<td>"+request.getParameter("current_salary")+"</td>"); out.print("</tr>"); out.print("<tr>"); out.print("<th>Expected Salary</th>"); out.print("<td>"+request.getParameter("expected_salary")+"</td>"); out.print("</tr>"); out.print("</table>"); } }
[ "vinay.ingalahalli1989@gmail.com" ]
vinay.ingalahalli1989@gmail.com
c0c8fcb9010ee796064c80ed4260cc382ac97159
f66e2ad3fc0f8c88278c0997b156f5c6c8f77f28
/Android/WebSerser/app/src/main/java/com/mwqi/server/MainActivity.java
723e49a5d05679508a589398f1f012e8c4eeef77
[ "Apache-2.0" ]
permissive
flyfire/Programming-Notes-Code
3b51b45f8760309013c3c0cc748311d33951a044
4b1bdd74c1ba0c007c504834e4508ec39f01cd94
refs/heads/master
2020-05-07T18:00:49.757509
2019-04-10T11:15:13
2019-04-10T11:15:13
180,750,568
1
0
Apache-2.0
2019-04-11T08:40:38
2019-04-11T08:40:38
null
UTF-8
Java
false
false
2,068
java
package com.mwqi.server; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import org.mortbay.ijetty.log.AndroidLog; /** * Created by mwqi on 2014/5/30. */ public class MainActivity extends Activity implements View.OnClickListener { private Button mBtStart, mBtStop, mBtSetting; // public static final File JETTY_DIR; // public static final String WEBAPP_DIR = "webapps"; // public static final String ETC_DIR = "etc"; // public static final String CONTEXTS_DIR = "contexts"; static { // 不使用jetty的XML解析验证 System.setProperty("org.eclipse.jetty.xml.XmlParser.Validating", "false"); // 使用android日志类 System.setProperty("org.eclipse.jetty.util.log.class", "org.mortbay.ijetty.AndroidLog"); org.eclipse.jetty.util.log.Log.setLog(new AndroidLog()); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mBtStart = (Button) findViewById(R.id.bt_start); mBtStop = (Button) findViewById(R.id.bt_stop); mBtSetting = (Button) findViewById(R.id.bt_setting); mBtStart.setOnClickListener(this); mBtStop.setOnClickListener(this); mBtSetting.setOnClickListener(this); } @Override public void onClick(View view) { switch (view.getId()) { case R.id.bt_start: onStartClick(); break; case R.id.bt_stop: onStopClick(); break; case R.id.bt_setting: onSettingClick(); break; } } public void onStartClick() { Intent intent = new Intent(this, WebService.class); startService(intent); } public void onStopClick() { Intent intent = new Intent(this, WebService.class); stopService(intent); } public void onSettingClick() { } }
[ "ztiany3@gmail.com" ]
ztiany3@gmail.com
5b7755b9f24e6c72955e07d26c6f1119aa417294
621a865f772ccbab32471fb388e20b620ebba6b0
/GameServer/java/net/sf/l2j/gameserver/clientpackets/StartRotating.java
d516a76445f84a96602e830d3652f07bab933e47
[]
no_license
BloodyDawn/Scions_of_Destiny
5257de035cdb7fe5ef92bc991119b464cba6790c
e03ef8117b57a1188ba80a381faff6f2e97d6c41
refs/heads/master
2021-01-12T00:02:47.744333
2017-04-24T06:30:39
2017-04-24T06:30:39
78,662,280
0
1
null
null
null
null
UTF-8
Java
false
false
1,705
java
/* * 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 2, 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, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * http://www.gnu.org/copyleft/gpl.html */ package net.sf.l2j.gameserver.clientpackets; import net.sf.l2j.gameserver.serverpackets.BeginRotation; /** * This class ... * @version $Revision: 1.1.4.3 $ $Date: 2005/03/27 15:29:30 $ */ public class StartRotating extends L2GameClientPacket { private static final String _C__4A_STARTROTATING = "[C] 4A StartRotating"; private int _degree; private int _side; @Override protected void readImpl() { _degree = readD(); _side = readD(); } @Override public void runImpl() { if (getClient().getActiveChar() == null) { return; } BeginRotation br = new BeginRotation(getClient().getActiveChar().getObjectId(), _degree, _side, 0); getClient().getActiveChar().broadcastPacket(br); } /* * (non-Javadoc) * @see net.sf.l2j.gameserver.clientpackets.L2GameClientPacket#getType() */ @Override public String getType() { return _C__4A_STARTROTATING; } }
[ "psv71@yandex.ru" ]
psv71@yandex.ru
20a41816df47837cb5ab4a4e5b5fecd24b114aa9
9bceeab1093b190618d5871838bb67e1c755d876
/app/src/main/java/com/app/elixir/TravelB2B/model/Model_Login.java
0c9b906d5506fd5c2bc7ba6b1978149e3f47b73f
[]
no_license
Ravikumawat1990/TravelB2b
988aad92974e04e86ed521f4742ca31490c704d7
eb4dcdd14c1785c630df8591c3743b769e6029a6
refs/heads/master
2020-04-05T12:38:33.316909
2017-09-21T10:15:26
2017-09-21T10:15:26
95,190,340
0
0
null
null
null
null
UTF-8
Java
false
false
858
java
package com.app.elixir.TravelB2B.model; import com.google.gson.annotations.SerializedName; /** * Created by mtpl on 12/15/2015. */ public class Model_Login { @SerializedName("userID") public String userID; @SerializedName("userrole") public String userrole; @SerializedName("fullName") public String fullName; @SerializedName("qrcode") public String qrcode; @SerializedName("mobileNo") public String mobileNo; @SerializedName("email") public String email; @SerializedName("address") public String address; @SerializedName("city") public String city; @SerializedName("country") public String country; @SerializedName("postCode") public String postCode; @SerializedName("gender") public String gender; @SerializedName("profilePic") public String profilePic; }
[ "kravi@elixirinfo.com" ]
kravi@elixirinfo.com
9eedadfad4dcb659d09e705de851a180baa6191d
d8a76a17259c35d48a55058d8f1c2584e790c5bd
/src/main/java/br/com/formento/gerenciadorDeBlocos/service/factoryMethod/FabricaContextoInterpreterStringParametroAplicacao.java
42c94b7683fe761ecea87cc024c3a2cb385648b7
[]
no_license
andreformento/gerenciadorDeBlocos
8a9965516070c8a2c6dc4d8f8148071cdc3bb28d
00b55b8c8b3b496a9e5a222ad6da3f9d89693485
refs/heads/master
2016-08-03T08:19:59.483526
2015-06-10T02:05:28
2015-06-10T02:05:28
37,168,798
0
0
null
null
null
null
UTF-8
Java
false
false
466
java
package br.com.formento.gerenciadorDeBlocos.service.factoryMethod; import br.com.formento.gerenciadorDeBlocos.model.ParametroAplicacao; import br.com.formento.gerenciadorDeBlocos.service.interpreter.ContextoInterpreterStringParametroAplicacao; public interface FabricaContextoInterpreterStringParametroAplicacao extends FabricaContextoInterpreter<String[], ParametroAplicacao> { @Override public ContextoInterpreterStringParametroAplicacao criarInstancia(); }
[ "andreformento.sc@gmail.com" ]
andreformento.sc@gmail.com
e1777d9ae2105ac5045b83dfd78f52c95299329a
1dced079671699fb3e69a080178fa9a8fc6f2359
/jcard3/src/java/util/TimeZone.java
256267baf3828b213bf7eae15b3d43adbfb5b2ca
[]
no_license
dougxc/SquawkNG
7dc93a7fd2ebafaea4cf021e942f984ab8d494ea
60ebfc59d2a479e671160679a78b1d2ddc30ab65
refs/heads/master
2022-12-22T05:02:18.384927
2020-09-29T09:54:49
2020-09-29T09:54:49
299,572,864
0
0
null
null
null
null
UTF-8
Java
false
false
7,996
java
//if[DATETIME] /* * @(#)TimeZone.java 1.38 98/09/30 * * (C) Copyright Taligent, Inc. 1996 - All Rights Reserved * (C) Copyright IBM Corp. 1996 - All Rights Reserved * * Portions copyright (c) 1996-2001 Sun Microsystems, Inc. All Rights Reserved. * * The original version of this source code and documentation is copyrighted * and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These * materials are provided under terms of a License Agreement between Taligent * and Sun. This technology is protected by multiple US and International * patents. This notice and attribution to Taligent may not be removed. * Taligent is a registered trademark of Taligent, Inc. * * Permission to use, copy, modify, and distribute this software * and its documentation for NON-COMMERCIAL purposes and without * fee is hereby granted provided that this copyright notice * appears in all copies. Please refer to the file "copyright.html" * for further important copyright and licensing information. * * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. * */ package java.util; import com.sun.cldc.util.TimeZoneImplementation; /** * <code>TimeZone</code> represents a time zone offset, and also figures out daylight * savings. * * <p> * Typically, you get a <code>TimeZone</code> using <code>getDefault</code> * which creates a <code>TimeZone</code> based on the time zone where the program * is running. For example, for a program running in Japan, <code>getDefault</code> * creates a <code>TimeZone</code> object based on Japanese Standard Time. * * <p> * You can also get a <code>TimeZone</code> using <code>getTimeZone</code> along * with a time zone ID. For instance, the time zone ID for the Pacific * Standard Time zone is "PST". So, you can get a PST <code>TimeZone</code> object * with: * <blockquote> * <pre> * TimeZone tz = TimeZone.getTimeZone("PST"); * </pre> * </blockquote> * * <p> This class is a pure subset of the java.util.TimeZone class in J2SE. * <p> The only time zone ID that is required to be supported is "GMT". * <p> * Apart from the methods and variables being subset, the semantics of the * getTimeZone() method may also be subset: custom IDs such as "GMT-8:00" * are not required to be supported. * * @see Calendar * @version 1.0 (J2ME MIDP) * @author Mark Davis, David Goldsmith, Chen-Lieh Huang, Alan Liu, Brian Modra */ public abstract class TimeZone { private static TimeZoneImplementation defaultZone = null; private static String platform = null; private static String classRoot = null; public TimeZone() { } /** * Gets offset, for current date, modified in case of * daylight savings. This is the offset to add *to* GMT to get local time. * Gets the time zone offset, for current date, modified in case of daylight * savings. This is the offset to add *to* GMT to get local time. Assume * that the start and end month are distinct. This method may return incorrect * results for rules that start at the end of February (e.g., last Sunday in * February) or the beginning of March (e.g., March 1). * * @param era The era of the given date (0 = BC, 1 = AD). * @param year The year in the given date. * @param month The month in the given date. Month is 0-based. e.g., * 0 for January. * @param day The day-in-month of the given date. * @param dayOfWeek The day-of-week of the given date. * @param millis The milliseconds in day in <em>standard</em> local time. * @return The offset to add *to* GMT to get local time. * @exception IllegalArgumentException the era, month, day, * dayOfWeek, or millis parameters are out of range */ public abstract int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis); /** * Gets the GMT offset for this time zone. * * @return the GMT offset for this time zone. */ public abstract int getRawOffset(); /** * Queries if this time zone uses Daylight Savings Time. * * @return if this time zone uses Daylight Savings Time. */ public abstract boolean useDaylightTime(); /** * Gets the ID of this time zone. * @return the ID of this time zone. */ public String getID() { return null; } /** * Gets the <code>TimeZone</code> for the given ID. * @param ID the ID for a <code>TimeZone</code>, either an abbreviation such as * "GMT", or a full name such as "America/Los_Angeles". * <p> The only time zone ID that is required to be supported is "GMT". * * @return the specified TimeZone, or the GMT zone if the given ID cannot be * understood. */ /* <p> * The following is information for implementers. Applications should not * need to be aware of this or rely on it, because each implementation * may do it differently: * <p> * The Calendar will look up a class the name of which includes the platform name. * The class name will take the form: <p> * * <code>{classRoot}.util.{platform}.CalendarImpl</code> * * <p> * The classRoot is derived from the system by looking up the system property * "microedition.implpath". If this property key is not found or the * associated class is not present then "com.sun.cldc" is used. * <p> * The platform name is derived from the system by looking for the system property * "microedition.platform". * If this property key is not found or the associated class is not present * then one of two default directories are used. These are called "j2me" * and "j2se". If the property "microedition.configuration" is non-null * then "j2me" is used, otherwise "j2se" is assumed. */ public static synchronized TimeZone getTimeZone(String ID) { if (ID == null) { throw new NullPointerException(); } getDefault(); TimeZone tz = defaultZone.getInstance(ID); if (tz == null) { tz = defaultZone.getInstance("GMT"); } return tz; } /** * Gets the default <code>TimeZone</code> for this host. * The source of the default <code>TimeZone</code> * may vary with implementation. * @return a default <code>TimeZone</code>. */ public static synchronized TimeZone getDefault() { if (defaultZone == null) { if (platform == null) { /* Setup the platform name */ /**** platform = System.getProperty("microedition.platform"); if (platform == null) { // Work out if we are running on a J2ME system if (System.getProperty("microedition.configuration") != null) platform = "j2me"; else platform = "j2se"; } ****/ platform = "j2me"; /* See if there is an alternate protocol class root */ classRoot = System.getProperty("microedition.implpath"); if (classRoot == null) { classRoot = "com.sun.cldc"; } } try { /* Using the platform and protocol names lookup a class to implement the connection */ Klass clazz = Klass.forName(classRoot+".util."+platform+".TimeZoneImpl"); /* Construct a new instance */ defaultZone = (TimeZoneImplementation)clazz.newInstance(); defaultZone = (TimeZoneImplementation)defaultZone.getInstance(null); } catch (Exception x) {} } return defaultZone; } /** Gets all the available IDs supported. * @return an array of IDs. */ public static String[] getAvailableIDs() { getDefault(); return defaultZone.getIDs(); } }
[ "doug.simon@oracle.com" ]
doug.simon@oracle.com
7f9107aa529d30b98b62e7778807ce8b05615951
179c1e140217fbfc75d08b0a648286f9bcdd5fe1
/spring-annotation/src/main/java/org/seefly/springannotation/imports/ImportBean.java
e6411602ef5af1da4263c266834ae40d3afe2531
[]
no_license
gitdoit/learning-springboot
3dd9591553733b3055b4ea729f0027d1bc15635e
064684c7acfe176856432f38cdcb652837991775
refs/heads/master
2023-06-23T16:56:57.722712
2022-11-13T12:40:53
2022-11-13T12:40:53
206,306,631
2
2
null
2023-06-20T18:33:11
2019-09-04T11:47:17
Java
UTF-8
Java
false
false
396
java
package org.seefly.springannotation.imports; import lombok.Data; import org.springframework.context.annotation.Import; /** * * 演示使用{@link Import}注解,导入这个bean到容器 * @author liujianxin * @date 2018-12-23 16:15 */ @Data public class ImportBean { private String name; public ImportBean(){ System.out.println("创建了一个ImportBean...."); } }
[ "seefly@vip.qq.com" ]
seefly@vip.qq.com
4e3042959cb24269808aec324302a6eb6318f6b0
4c2e83907706317c147433e4560a49d431badf1b
/app/src/main/java/com/google/android/gms/internal/zzbdx.java
f4cc1359fc74df97532664d6fc9012c472aab8d2
[ "Unlicense" ]
permissive
renyuanceshi/KingKingRE
92c80328556853029eb5b7bbf3a48a19182cf056
b15295bec2cee47867b786dbe0841c1a4edaff5e
refs/heads/master
2020-12-13T14:41:26.365794
2020-01-17T04:27:21
2020-01-17T04:27:21
234,442,774
0
0
null
null
null
null
UTF-8
Java
false
false
724
java
package com.google.android.gms.internal; public final class zzbdx<L> { private final L mListener; private final String zzaEP; zzbdx(L l, String str) { this.mListener = l; this.zzaEP = str; } public final boolean equals(Object obj) { if (this != obj) { if (!(obj instanceof zzbdx)) { return false; } zzbdx zzbdx = (zzbdx) obj; if (this.mListener != zzbdx.mListener || !this.zzaEP.equals(zzbdx.zzaEP)) { return false; } } return true; } public final int hashCode() { return (System.identityHashCode(this.mListener) * 31) + this.zzaEP.hashCode(); } }
[ "lewis@spectratech.com" ]
lewis@spectratech.com
3e00825295410032a9f69ae8358ec03f2fbb7a95
7fca44a2002dde5a70b7d3aef1741dcda9463b00
/app/src/main/java/com/jhcms/tuangou/adapter/ParentAdapter.java
114e53ff4ffc3ff6037a67c463f1aa8ae373940d
[]
no_license
zl1659403511/JHSheQu
998636dd0c441c85aa7df0fc5e84bcacf61f8d9c
c37291708816d73d5cd75465e528776270954e44
refs/heads/master
2021-05-07T13:43:49.389755
2017-11-06T09:24:14
2017-11-06T09:24:14
109,673,432
1
1
null
null
null
null
UTF-8
Java
false
false
5,287
java
package com.jhcms.tuangou.adapter; import android.content.Context; import android.content.Intent; import android.support.v7.widget.RecyclerView; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.TextView; import com.coorchice.library.SuperTextView; import com.jhcms.common.model.Data_Group_Home; import com.jhcms.common.utils.Api; import com.jhcms.common.utils.Utils; import com.jhcms.common.widget.ListViewForListView; import com.jhcms.tuangou.CustomView.StarBar; import com.jhcms.tuangou.activity.TuanShopAllGoodsActivity; import com.jhcms.tuangou.activity.TuanShopDetailActivity; import com.jhcms.waimaiV3.R; import java.util.List; import butterknife.Bind; import butterknife.ButterKnife; /** * Created by admin on 2017/4/17. */ public class ParentAdapter extends RecyclerView.Adapter<ParentAdapter.MyViewHolder> { private final LayoutInflater layoutInflater; private List<Data_Group_Home.ShopItemsEntity> list; private Context context; public ParentAdapter(Context context) { this.context = context; layoutInflater = LayoutInflater.from(context); } @Override public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { return new MyViewHolder(layoutInflater.inflate(R.layout.item_tuan_shop_frg, parent, false)); } @Override public void onBindViewHolder(MyViewHolder viewHolder, int position) { Data_Group_Home.ShopItemsEntity shopItemsEntity = list.get(position); Utils.LoadStrPicture(context, Api.IMAGE_URL + shopItemsEntity.logo, viewHolder.ivShopLogo); viewHolder.tvShopTitle.setText(shopItemsEntity.title); if (shopItemsEntity.have_tuan.equals("1")) { viewHolder.tvTuan.setVisibility(View.VISIBLE); } else { viewHolder.tvTuan.setVisibility(View.GONE); } if (shopItemsEntity.have_maidan.equals("1")) { viewHolder.tvMaidan.setVisibility(View.VISIBLE); } else { viewHolder.tvMaidan.setVisibility(View.GONE); } viewHolder.starBar.setStarMark(TextUtils.isEmpty(shopItemsEntity.avg_score) ? 0 : Float.parseFloat(shopItemsEntity.avg_score)); viewHolder.tvShopScore.setText(shopItemsEntity.avg_score + "分"); viewHolder.tvShopCate.setText(shopItemsEntity.cate_name); viewHolder.tvPer.setText(String.format(context.getString(R.string.人均), shopItemsEntity.avg_amount)); viewHolder.tvShopAddr.setText(shopItemsEntity.addr); viewHolder.tvShopJuli.setText(shopItemsEntity.juli_label); List<Data_Group_Home.ShopItemsEntity.ProductsEntity> products = shopItemsEntity.products; viewHolder.sonListViewItem.setFocusable(false); SonAdapter sonAdapter = new SonAdapter(context, products); viewHolder.sonListViewItem.setAdapter(sonAdapter); if (shopItemsEntity.total_count > 2) { viewHolder.loadmorelayout.setVisibility(View.VISIBLE); viewHolder.tvMoreNum.setText(String.format(context.getString(R.string.其他商品), shopItemsEntity.other_count)); } else { viewHolder.loadmorelayout.setVisibility(View.GONE); } /*点击进入更多团购*/ viewHolder.loadmorelayout.setOnClickListener(v -> { Intent intent = new Intent(context, TuanShopAllGoodsActivity.class); intent.putExtra(TuanShopAllGoodsActivity.SHOP_ID, shopItemsEntity.shop_id); context.startActivity(intent); }); /*点击进入店铺团购详情*/ viewHolder.headview.setOnClickListener(v -> { Intent intent = new Intent(context, TuanShopDetailActivity.class); intent.putExtra(TuanShopDetailActivity.SHOP_ID, shopItemsEntity.shop_id); context.startActivity(intent); }); } @Override public int getItemCount() { return list == null ? 0 : list.size(); } public void setData(List<Data_Group_Home.ShopItemsEntity> list) { this.list = list; } public class MyViewHolder extends RecyclerView.ViewHolder { @Bind(R.id.iv_shop_logo) ImageView ivShopLogo; @Bind(R.id.tv_shop_title) TextView tvShopTitle; @Bind(R.id.tv_tuan) SuperTextView tvTuan; @Bind(R.id.tv_maidan) SuperTextView tvMaidan; @Bind(R.id.starBar) StarBar starBar; @Bind(R.id.tv_shop_score) TextView tvShopScore; @Bind(R.id.tv_shop_cate) TextView tvShopCate; @Bind(R.id.tv_shop_addr) TextView tvShopAddr; @Bind(R.id.headview) RelativeLayout headview; @Bind(R.id.sonListView_item) ListViewForListView sonListViewItem; @Bind(R.id.tv_more_num) TextView tvMoreNum; @Bind(R.id.tv_per) TextView tvPer; @Bind(R.id.tv_shop_juli) TextView tvShopJuli; @Bind(R.id.loadmorelayout) LinearLayout loadmorelayout; public MyViewHolder(View itemView) { super(itemView); ButterKnife.bind(this, itemView); } } }
[ "1659403511@qq.com" ]
1659403511@qq.com
168ec8d5816f1c03f607bf53bb1235529cac670a
1c5e8605c1a4821bc2a759da670add762d0a94a2
/src/dahua/fdc/aimcost/AbstractVoucherForDynamicInfo.java
2f7a0e36c46bd5138037eb4fc158220481c8bbe7
[]
no_license
shxr/NJG
8195cfebfbda1e000c30081399c5fbafc61bb7be
1b60a4a7458da48991de4c2d04407c26ccf2f277
refs/heads/master
2020-12-24T06:51:18.392426
2016-04-25T03:09:27
2016-04-25T03:09:27
19,804,797
0
3
null
null
null
null
GB18030
Java
false
false
3,116
java
package com.kingdee.eas.fdc.aimcost; import java.io.Serializable; import com.kingdee.bos.dao.AbstractObjectValue; import java.util.Locale; import com.kingdee.util.TypeConversionUtils; import com.kingdee.bos.util.BOSObjectType; public class AbstractVoucherForDynamicInfo extends com.kingdee.eas.fdc.basedata.FDCBillInfo implements Serializable { public AbstractVoucherForDynamicInfo() { this("id"); } protected AbstractVoucherForDynamicInfo(String pkField) { super(pkField); } /** * Object:目标成本调整凭证's 是否已生成凭证property */ public boolean isFiVouchered() { return getBoolean("fiVouchered"); } public void setFiVouchered(boolean item) { setBoolean("fiVouchered", item); } /** * Object: 目标成本调整凭证 's 财务成本一体化科目 property */ public com.kingdee.eas.fdc.basedata.BeforeAccountViewInfo getBeAccount() { return (com.kingdee.eas.fdc.basedata.BeforeAccountViewInfo)get("beAccount"); } public void setBeAccount(com.kingdee.eas.fdc.basedata.BeforeAccountViewInfo item) { put("beAccount", item); } /** * Object: 目标成本调整凭证 's 工程项目 property */ public com.kingdee.eas.fdc.basedata.CurProjectInfo getCurProject() { return (com.kingdee.eas.fdc.basedata.CurProjectInfo)get("curProject"); } public void setCurProject(com.kingdee.eas.fdc.basedata.CurProjectInfo item) { put("curProject", item); } /** * Object: 目标成本调整凭证 's 产品 property */ public com.kingdee.eas.fdc.basedata.ProductTypeInfo getProduct() { return (com.kingdee.eas.fdc.basedata.ProductTypeInfo)get("product"); } public void setProduct(com.kingdee.eas.fdc.basedata.ProductTypeInfo item) { put("product", item); } /** * Object: 目标成本调整凭证 's 调整分录 property */ public com.kingdee.eas.fdc.aimcost.AdjustRecordEntryInfo getAdjustEntry() { return (com.kingdee.eas.fdc.aimcost.AdjustRecordEntryInfo)get("adjustEntry"); } public void setAdjustEntry(com.kingdee.eas.fdc.aimcost.AdjustRecordEntryInfo item) { put("adjustEntry", item); } /** * Object: 目标成本调整凭证 's 凭证 property */ public com.kingdee.eas.fi.gl.VoucherInfo getVoucher() { return (com.kingdee.eas.fi.gl.VoucherInfo)get("voucher"); } public void setVoucher(com.kingdee.eas.fi.gl.VoucherInfo item) { put("voucher", item); } /** * Object: 目标成本调整凭证 's 产品结算单 property */ public com.kingdee.eas.fdc.finance.FIProductSettleBillInfo getSettBill() { return (com.kingdee.eas.fdc.finance.FIProductSettleBillInfo)get("settBill"); } public void setSettBill(com.kingdee.eas.fdc.finance.FIProductSettleBillInfo item) { put("settBill", item); } public BOSObjectType getBOSType() { return new BOSObjectType("F5E6400D"); } }
[ "shxr_code@126.com" ]
shxr_code@126.com
f7aa6894ea16d4fcb92a05b39cbab008191a16c6
47382f1391487596351425649efd4e973b7028bb
/src/ro/ubbcluj/lci/gui/Actions/ActionUtilities.java
6fc9108ee632d23b3951dcf8726a9c7052cfba0f
[]
no_license
luoyuxia/ocle
e6963e7de4fc7537f0ff6d12cd31fa28848b16c0
a7d60f098ddfa95764a851e781eaaf22cd3add3c
refs/heads/master
2022-12-11T02:06:00.431361
2020-08-18T04:04:27
2020-08-18T04:04:27
284,402,676
0
0
null
null
null
null
UTF-8
Java
false
false
1,145
java
package ro.ubbcluj.lci.gui.Actions; import java.io.File; import ro.ubbcluj.lci.gui.mainframe.GMainFrame; import ro.ubbcluj.lci.gui.tools.AFileFilter; public class ActionUtilities { public ActionUtilities() { } public static File getFileForSave(String fileName, String fileExtension, String description, String chooserTitle) { File modelFile = null; if (fileName == null) { modelFile = chooseFileForSave(fileExtension, description, chooserTitle); } else { modelFile = new File(fileName); } return modelFile; } public static File chooseFileForSave(String fileExtension, String description, String chooserTitle) { AFileFilter[] ff = new AFileFilter[]{new AFileFilter(fileExtension, description)}; return AFileFilter.chooseFile(1, GMainFrame.getMainFrame(), ff, chooserTitle); } public static File chooseFileForOpen(String fileExtension, String description, String chooserTitle) { AFileFilter[] ff = new AFileFilter[]{new AFileFilter(fileExtension, description)}; return AFileFilter.chooseFile(0, GMainFrame.getMainFrame(), ff, chooserTitle); } }
[ "1464567365@qq.com" ]
1464567365@qq.com
676863d3e44ca2c86e6bf721dbca1ee192b8af1b
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.mm/classes.jar/com/tencent/mm/msgsubscription/a$a.java
b1cacdf6996aeb54496bb9dc68633ac0739b2be5
[]
no_license
tsuzcx/qq_apk
0d5e792c3c7351ab781957bac465c55c505caf61
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
refs/heads/main
2022-07-02T10:32:11.651957
2022-02-01T12:41:38
2022-02-01T12:41:38
453,860,108
36
9
null
2022-01-31T09:46:26
2022-01-31T02:43:22
Java
UTF-8
Java
false
false
577
java
package com.tencent.mm.msgsubscription; public final class a$a { public static final int BW_0_Alpha_0_5 = 2131099673; public static final int desc_text_color = 2131100368; public static final int dialog_divider_line_color = 2131100398; public static final int normal_text = 2131101152; public static final int subscribe_msg_dialog_force_notify_bell_yellow = 2131101503; } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes5.jar * Qualified Name: com.tencent.mm.msgsubscription.a.a * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
4c0ae3e78f27c9804f14c7814878bbe4b9465c12
265302da0a7cf8c2f06dd0f96970c75e29abc19b
/ar_webapp/src/main/java/org/kuali/kra/iacuc/correspondence/IacucProtocolCorrespondenceAuthorizationServiceImpl.java
b148113a690b7a0e178a9b92ff3b342d18f25e91
[ "Apache-2.0", "ECL-2.0" ]
permissive
Ariah-Group/Research
ee7718eaf15b59f526fca6983947c8d6c0108ac4
e593c68d44176dbbbcdb033c593a0f0d28527b71
refs/heads/master
2021-01-23T15:50:54.951284
2017-05-05T02:10:59
2017-05-05T02:10:59
26,879,351
1
1
null
null
null
null
UTF-8
Java
false
false
1,352
java
/* * Copyright 2005-2014 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php * * 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.kuali.kra.iacuc.correspondence; import org.kuali.kra.iacuc.IacucProtocol; import org.kuali.kra.iacuc.auth.IacucProtocolTask; import org.kuali.kra.protocol.ProtocolBase; import org.kuali.kra.protocol.auth.ProtocolTaskBase; import org.kuali.kra.protocol.correspondence.ProtocolCorrespondenceAuthorizationServiceImplBase; public class IacucProtocolCorrespondenceAuthorizationServiceImpl extends ProtocolCorrespondenceAuthorizationServiceImplBase implements IacucProtocolCorrespondenceAuthorizationService { @Override protected ProtocolTaskBase getNewProtocolTaskInstanceHook(String taskName, ProtocolBase protocol) { return new IacucProtocolTask(taskName, (IacucProtocol) protocol); } }
[ "code@ariahgroup.org" ]
code@ariahgroup.org
809c8af6f1d16a29d7615043ad56015b426b1eda
66e13bf7a6639cb37fd6d6160945d37119fe6df4
/Java/02.DB/02.SpringData/13.SpringDataAdvQuerying/Ex/src/main/java/com/example/springintro/CommandLineRunnerImpl.java
a24bad39e7d4e536a34e15c783511d47cf649acb
[]
no_license
MeGaDeTH91/SoftUni
5fd10e55ba3a1700345fec720beac5dc2cd9d18d
a5e50c77d6efe6deddb9be0bdfb87373692aa668
refs/heads/master
2023-01-25T05:01:15.172521
2021-12-18T22:22:46
2021-12-18T22:22:46
121,627,540
5
3
null
2023-01-11T22:01:03
2018-02-15T12:31:23
C#
UTF-8
Java
false
false
7,135
java
package com.example.springintro; import com.example.springintro.model.entity.AgeRestriction; import com.example.springintro.model.entity.EditionType; import com.example.springintro.service.AuthorService; import com.example.springintro.service.BookService; import com.example.springintro.service.CategoryService; import org.springframework.boot.CommandLineRunner; import org.springframework.stereotype.Component; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.util.Collections; import java.util.HashMap; import java.util.Map; @Component public class CommandLineRunnerImpl implements CommandLineRunner { private final CategoryService categoryService; private final AuthorService authorService; private final BookService bookService; private final BufferedReader bufferedReader; private final Map<String, AgeRestriction> ageRestrictions; public CommandLineRunnerImpl(CategoryService categoryService, AuthorService authorService, BookService bookService) { this.categoryService = categoryService; this.authorService = authorService; this.bookService = bookService; this.bufferedReader = new BufferedReader(new InputStreamReader(System.in)); Map<String, AgeRestriction> restrictionMap = new HashMap<>(); for (AgeRestriction instance : AgeRestriction.values()) { restrictionMap.put(instance.name(), instance); } ageRestrictions = Collections.unmodifiableMap(restrictionMap); } @Override public void run(String... args) throws Exception { seedData(); System.out.print("Enter task number: "); int taskNumber = Integer.parseInt(bufferedReader.readLine()); switch (taskNumber) { case 1: executeTaskOne(); break; case 2: executeTaskTwo(); break; case 3: executeTaskThree(); break; case 4: executeTaskFour(); break; case 5: executeTaskFive(); break; case 6: executeTaskSix(); break; case 7: executeTaskSeven(); break; case 8: executeTaskEight(); break; case 9: executeTaskNine(); break; case 10: executeTaskTen(); break; case 11: executeTaskEleven(); break; case 12: executeTaskTwelve(); break; default: break; } } private void executeTaskTwelve() throws IOException { System.out.print("Enter release date in the format 'dd MMM yyyy': "); String targetRelease = bufferedReader.readLine(); DateTimeFormatter dateFormat = DateTimeFormatter.ofPattern("dd MMM yyyy"); LocalDate localDate = LocalDate.parse(targetRelease, dateFormat); System.out.print("Enter copies to add number: "); int addCopiesNumber = Integer.parseInt(bufferedReader.readLine()); var booksUpdated = bookService.updateCopiesOfBooksByReleaseDate(localDate, addCopiesNumber) * addCopiesNumber; System.out.println(booksUpdated); } private void executeTaskEleven() throws IOException { System.out.print("Enter book title: "); String bookTitle = bufferedReader.readLine(); System.out.println(bookService.getSpecificBookDetailsByBookTitle(bookTitle)); } private void executeTaskTen() { authorService.getAllAuthorsWithTotalNumberOfCopiesDesc().forEach(System.out::println); } private void executeTaskNine() throws IOException { System.out.print("Enter title target length: "); int titleLength = Integer.parseInt(bufferedReader.readLine()); System.out.println(bookService.getBooksCountWithTitleLengthGreaterThan(titleLength)); } private void executeTaskEight() throws IOException { System.out.print("Enter first part of author's last name: "); String authorLastNamePart = bufferedReader.readLine(); bookService .findAllByAuthorLastNameStartsWith(authorLastNamePart) .forEach(System.out::println); } private void executeTaskSeven() throws IOException { System.out.print("Enter part of book's title: "); String bookTitlePart = bufferedReader.readLine(); bookService .findAllBooksWithTitleContains(bookTitlePart) .forEach(System.out::println); } private void executeTaskSix() throws IOException { System.out.print("Enter last part of author's first name: "); String strEndsWith = bufferedReader.readLine(); authorService .getAllAuthorsThatFirstNameEndsWith(strEndsWith) .forEach(System.out::println); } private void executeTaskFive() throws IOException { System.out.print("Enter release date in the format 'dd-MM-yyyy': "); String release = bufferedReader.readLine(); DateTimeFormatter dateFormat = DateTimeFormatter.ofPattern("dd-MM-yyyy"); LocalDate localDate = LocalDate.parse(release, dateFormat); bookService .findAllBooksBeforeDate(localDate) .forEach(System.out::println); } private void executeTaskFour() throws IOException { System.out.print("Enter year of release: "); int year = Integer.parseInt(bufferedReader.readLine()); bookService .findAllBooksWithReleaseYearNotEqualTo(year) .forEach(System.out::println); } private void executeTaskThree() { bookService .findAllBooksByPriceBoundaries(BigDecimal.valueOf(5), BigDecimal.valueOf(40)) .forEach(System.out::println); } private void executeTaskTwo() { EditionType editionType = EditionType.valueOf("GOLD"); bookService .findAllBooksByEditionTypeAndCopiesLessThan(editionType, 5000) .forEach(System.out::println); } private void executeTaskOne() throws IOException { System.out.print("Enter age restriction: "); String ageRestrictionStr = bufferedReader.readLine().toUpperCase(); AgeRestriction ageRestriction = ageRestrictions.get(ageRestrictionStr); if (ageRestriction == null) { System.out.println("Please provide valid age restriction."); } else { bookService .findAllBooksByAgeRestriction(ageRestriction) .forEach(System.out::println); } } private void seedData() throws IOException { categoryService.seedCategories(); authorService.seedAuthors(); bookService.seedBooks(); } }
[ "martin_taskov@yahoo.com" ]
martin_taskov@yahoo.com
c1f5f900a466994248d295e0c9c850827ffd4353
801c39e8bbeee2e25ed1ba2b74aa039f8b3d62ae
/fizteh-java-2014/src/ru/fizteh/fivt/students/LebedevAleksey/FileMap/LoadOrSaveError.java
92cfdecb3b17e78da17f0adbd3ebbd84e38d4a3d
[]
no_license
grapefroot/mipt
2f6572b3120e28a0e63e28f2542782520384828f
51d13fa07b37bdbdda943bd47d7e356a3a126177
refs/heads/master
2020-12-24T21:12:03.706690
2016-11-08T07:40:20
2016-11-08T07:40:20
56,529,254
1
0
null
null
null
null
UTF-8
Java
false
false
285
java
package ru.fizteh.fivt.students.LebedevAleksey.FileMap; public class LoadOrSaveError extends DatabaseException { public LoadOrSaveError(String message) { super(message); } public LoadOrSaveError(String message, Exception ex) { super(message, ex); } }
[ "salnikov.dmitri@gmail.com" ]
salnikov.dmitri@gmail.com
3977b900180ac092a64a6ccf890fee87eea71865
6bb7bdc325b34469b65c648b52072ac77ba14e17
/takin-webapp/tro-web/tro-web-data/src/main/java/com/pamirs/tro/entity/domain/vo/TLinkNodesVo.java
08bfe7be38a647727dd0722d0da893aee641bd66
[ "Apache-2.0" ]
permissive
NijaCN/Takin
c2ac00e528d7b78d7340a901d45891f59d5d7f8c
93a03997ddfe0993d013185787eb471ab5d90995
refs/heads/main
2023-06-26T05:22:50.919980
2021-07-27T05:57:01
2021-07-27T05:57:01
389,866,134
1
0
Apache-2.0
2021-07-27T06:01:36
2021-07-27T06:01:35
null
UTF-8
Java
false
false
1,910
java
/* * Copyright 2021 Shulie Technology, Co.Ltd * Email: shulie@shulie.io * 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, * See the License for the specific language governing permissions and * limitations under the License. */ package com.pamirs.tro.entity.domain.vo; /** * 说明:链路检测实体类 * * @author shoaqi * @version V1.0 * @date: 2019年1月11日 */ public class TLinkNodesVo { //@Field tLinkId : 链路id private String tLinkId; //@Field tLinkId : 链路顺序 private Integer tLinkOrder; //@Field tLinkId : 链路级别 private Integer tLinkBank; //@Field tLinkId : 链路名称 private String linkName; public String gettLinkId() { return tLinkId; } public void settLinkId(String tLinkId) { this.tLinkId = tLinkId; } public Integer gettLinkOrder() { return tLinkOrder; } public void settLinkOrder(Integer tLinkOrder) { this.tLinkOrder = tLinkOrder; } public Integer gettLinkBank() { return tLinkBank; } public void settLinkBank(Integer tLinkBank) { this.tLinkBank = tLinkBank; } public String getLinkName() { return linkName; } public void setLinkName(String linkName) { this.linkName = linkName; } @Override public String toString() { return "TLinkNodesVo{" + "tLinkId='" + tLinkId + '\'' + ", tLinkOrder=" + tLinkOrder + ", tLinkBank=" + tLinkBank + ", linkName='" + linkName + '\'' + '}'; } }
[ "576425673@qq.com" ]
576425673@qq.com
5c5f2bf1d747b7256529782469c90ae0d3310f1e
1b929e916a872db9c8f923c1f93abad020ff6efc
/src/main/java/ebook/designpattern/factory/example2/pizza/ingredient/ingredient.java
7f8258885e7dfdf0489fe1742eda145630925c05
[]
no_license
fbion/common
d3aea10d20c6626f7d90f26d32dff1c473173b61
42d94efe83c5fdff053f9f2ffd1851b7998adf54
refs/heads/master
2020-03-28T10:04:35.346895
2018-07-18T06:37:02
2018-07-18T06:37:02
148,081,356
0
1
null
2018-09-10T01:15:47
2018-09-10T01:15:47
null
UTF-8
Java
false
false
145
java
package ebook.designpattern.factory.example2.pizza.ingredient; /** * Created by Administrator on 2016/5/9. */ public interface ingredient { }
[ "zhihui.zhou@pcitc.com" ]
zhihui.zhou@pcitc.com
0930ba67c2a9df73c88dc15dad77404a38ed7a05
8cb667bb78ba520f0da39c36dffd94980dfa7907
/app/src/androidTest/java/com/eaglesakura/andriders/ui/navigation/PluginSettingActivityTest.java
4b4d5eafadb7e6a047efbbd1b9afe8ab0188acb1
[ "MIT" ]
permissive
eaglesakura/andriders-central-engine-v3
e4ee4c4b52dab36629856f489cf0b594c7ef950b
6600104720f6e98faa9931b2479b03c6c274f167
refs/heads/v3.0.x
2021-01-16T23:32:50.477896
2017-01-07T15:44:41
2017-01-07T15:44:41
51,501,559
1
3
MIT
2018-01-13T13:07:59
2016-02-11T08:05:38
Java
UTF-8
Java
false
false
1,049
java
package com.eaglesakura.andriders.ui.navigation; import com.eaglesakura.andriders.AppScenarioTest; import com.eaglesakura.andriders.ui.navigation.plugin.PluginSettingFragmentMain; import com.eaglesakura.util.Util; import org.junit.Test; import static com.eaglesakura.android.devicetest.scenario.ScenarioContext.assertTopActivity; import static com.eaglesakura.android.devicetest.scenario.ScenarioContext.findFragment; public class PluginSettingActivityTest extends AppScenarioTest<PluginSettingActivity> { public PluginSettingActivityTest() { super(PluginSettingActivity.class); } @Test public void Activityが起動できる() throws Throwable { assertTopActivity(PluginSettingActivity.class); } @Test public void Pluginが読み込めている() throws Throwable { Util.sleep(1000); PluginSettingFragmentMain fragment = findFragment(PluginSettingFragmentMain.class); assertNotNull(fragment); validate(fragment.getPlugins().list()).allNotNull().sizeFrom(1); } }
[ "eagle.sakura@gmail.com" ]
eagle.sakura@gmail.com
3c0e4b3d65a76b8e29096c14416c7e6560856b58
71c244860b94338891aa147b68b1a4b14bc31a15
/Josephus问题/src/Main.java
ae823b1b7f1c6bcdeff398931cff81beffe309b0
[]
no_license
KronosOceanus/algorithm
ab7ca3793ec007a0c8f5a22a110d2fa85ef24929
24595b9d88407ec7384a4b6efa78bf9285a8e323
refs/heads/master
2021-08-19T15:48:31.766529
2021-07-06T23:36:14
2021-07-06T23:36:14
189,804,070
0
0
null
null
null
null
UTF-8
Java
false
false
791
java
public class Main { //人员编号是 1 - NUMBER private static final int NUMBER = 41; private static final int JUMP = 3; public static void main(String[] args) { CircularLinkedList<Integer> list = new CircularLinkedList<>(); for (int i=0;i<NUMBER;i++){ list.add(i + 1); } while(list.size() > 1){ for (int i=0;i<JUMP;i++){ list.toNext(); } list.remove(); } System.out.println(list.get()); /** * 测试 * for (int i=0;i<10;i++){ * list.add(i); * } * for (int i=0;i<100;i++){ * System.out.print(list.get() + "\t"); * } */ } }
[ "704690152@qq.com" ]
704690152@qq.com
ef679fcfa12c4ac3d342eb1f4ba7b02f10f40d6c
e680c1483a143a40fd5d92e0e0befbd9e2dcdf0d
/sentence-screen-fitting/Solution.java
cd7f61c76d528f360fab5d0383c90cd114ba3896
[]
no_license
grvgoel81/leetcode
a715ddb35442bbda21b66ecd88eb55bca2d836da
e490d6b109890db104ceeb3647bb60f954ca2bcf
refs/heads/master
2022-08-19T10:24:08.871144
2020-05-26T10:12:08
2020-05-26T10:12:08
267,265,566
1
0
null
2020-05-27T08:36:19
2020-05-27T08:36:18
null
UTF-8
Java
false
false
1,392
java
import java.util.Arrays; import java.util.HashMap; import java.util.Map; public class Solution { public int wordsTyping(String[] sentence, int rows, int cols) { int maxWordLength = Arrays.stream(sentence).mapToInt(String::length).max().getAsInt(); if (maxWordLength > cols) { return 0; } Map<Integer, NextState> wordIndex2nextState = new HashMap<Integer, NextState>(); int times = 0; int wordIndex = 0; for (int i = 0; i < rows; i++) { int nextWordIndex; int timesAddition; if (wordIndex2nextState.containsKey(wordIndex)) { NextState nextState = wordIndex2nextState.get(wordIndex); nextWordIndex = nextState.nextWordIndex; timesAddition = nextState.timesAddition; } else { nextWordIndex = wordIndex; timesAddition = 0; int c = 0; while (cols - c >= sentence[nextWordIndex].length()) { c += sentence[nextWordIndex].length() + 1; nextWordIndex++; if (nextWordIndex == sentence.length) { timesAddition++; nextWordIndex = 0; } } wordIndex2nextState.put(wordIndex, new NextState(nextWordIndex, timesAddition)); } wordIndex = nextWordIndex; times += timesAddition; } return times; } } class NextState { int nextWordIndex; int timesAddition; NextState(int nextWordIndex, int timesAddition) { this.nextWordIndex = nextWordIndex; this.timesAddition = timesAddition; } }
[ "charles.wangkai@gmail.com" ]
charles.wangkai@gmail.com
a3d675272589832f2556a4427920fcd1f5fb682d
88ed034fdc1841e7c79831caed1b0ba78eea8b79
/src/main/java/org/sitemesh/spring/boot/ext/content/tagrules/decorate/SiteMeshChildrenRule.java
0efc5a7aaf316413d7960ed72649b3fa951370c7
[ "Apache-2.0" ]
permissive
hiwepy/sitemesh3-spring-boot-starter
b16ebb858d1d99950a1b9a671e457b859928be53
0eb847c3ecb18989e3105cc4d164fccc1ad1dab7
refs/heads/master
2023-01-02T07:35:29.779332
2020-11-02T14:53:34
2020-11-02T14:53:34
114,637,164
0
0
null
null
null
null
UTF-8
Java
false
false
2,538
java
package org.sitemesh.spring.boot.ext.content.tagrules.decorate; import java.io.IOException; import java.util.Iterator; import org.sitemesh.SiteMeshContext; import org.sitemesh.content.Content; import org.sitemesh.content.ContentProperty; import org.sitemesh.spring.boot.utils.TagRuleBundleUtils; import org.sitemesh.tagprocessor.BasicBlockRule; import org.sitemesh.tagprocessor.Tag; /** * * 替换 {@code <sitemesh:children property='script'/>} 此类标签为 {@link ContentProperty} 合并到当前文档后的内容,标签自身内的内容将被丢弃. * @see org.sitemesh.content.tagrules.decorate.SiteMeshWriteRule * @see SiteMeshContext#getContentToMerge() */ public class SiteMeshChildrenRule extends BasicBlockRule<String> { private final SiteMeshContext siteMeshContext; public SiteMeshChildrenRule(SiteMeshContext siteMeshContext) { this.siteMeshContext = siteMeshContext; } /* * <sitemesh:children property='body.footer:script'/> * <sitemesh:children property='body:script'/> */ @Override protected String processStart(Tag tag) throws IOException { String propertyPath = tag.getAttributeValue("property", true); Content contentToMerge = siteMeshContext.getContentToMerge(); if (contentToMerge != null) { //根节点路径取值 String rootPath = TagRuleBundleUtils.getRootPath(propertyPath); String tagName = TagRuleBundleUtils.getTagName(propertyPath); //获取指定的根节点 ContentProperty targetProperty = TagRuleBundleUtils.getTargetProperty(contentToMerge, rootPath); if(targetProperty != null){ //循环子节点 Iterator<ContentProperty> childIterator = targetProperty.getChildren().iterator(); while (childIterator.hasNext()) { ContentProperty contentProperty = childIterator.next(); if(contentProperty.getName().equalsIgnoreCase(tagName)){ contentProperty.writeValueTo(tagProcessorContext.currentBuffer()); } } } } tagProcessorContext.pushBuffer(); return null; } @Override protected void processEnd(Tag tag, String property) throws IOException { CharSequence defaultContents = tagProcessorContext.currentBufferContents(); tagProcessorContext.popBuffer(); if (siteMeshContext.getContentToMerge() == null) { tagProcessorContext.currentBuffer().append(defaultContents); } } }
[ "hnxyhcwdl1003@163.com" ]
hnxyhcwdl1003@163.com
1b75765fa7fa341b52b59dd1f4aed073b8e94e91
018c616e7b40a8fab36a00e0c78a219ef314243d
/src/main/java/com/frostwire/jlibtorrent/swig/metadata_received_alert.java
684b0c02a9c4693c831ade62a5958e3c4d4559fe
[ "MIT" ]
permissive
AndroidTorrent/frostwire-jlibtorrent
5726ec265a274ab9f14285b2a352c88865544279
98f269a4667477d00b2506c5a9a524cd750e583e
refs/heads/master
2021-01-20T05:10:34.216721
2017-04-26T13:17:48
2017-04-26T13:17:48
89,758,271
3
0
null
2017-04-29T02:15:42
2017-04-29T02:15:42
null
UTF-8
Java
false
false
1,801
java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.frostwire.jlibtorrent.swig; public class metadata_received_alert extends torrent_alert { private transient long swigCPtr; protected metadata_received_alert(long cPtr, boolean cMemoryOwn) { super(libtorrent_jni.metadata_received_alert_SWIGUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } protected static long getCPtr(metadata_received_alert obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; libtorrent_jni.delete_metadata_received_alert(swigCPtr); } swigCPtr = 0; } super.delete(); } public int type() { return libtorrent_jni.metadata_received_alert_type(swigCPtr, this); } public int category() { return libtorrent_jni.metadata_received_alert_category(swigCPtr, this); } public String what() { return libtorrent_jni.metadata_received_alert_what(swigCPtr, this); } public String message() { return libtorrent_jni.metadata_received_alert_message(swigCPtr, this); } public final static int priority = libtorrent_jni.metadata_received_alert_priority_get(); public final static int alert_type = libtorrent_jni.metadata_received_alert_alert_type_get(); public final static int static_category = libtorrent_jni.metadata_received_alert_static_category_get(); }
[ "aldenml@gmail.com" ]
aldenml@gmail.com
43d8d0151444590ed9e6a0e335b937c4fd3d20a8
e2df03554a0bdcb32ce30b8c657375d9cb36a626
/arc-core/src/io/anuke/arc/scene/ui/ButtonGroup.java
5a0b85a30287e0d11947bf78a7fd93072f7e3a19
[]
no_license
todun/Arc-2
4dbd5b2efb616b13cfedebba875bb45b7715fad0
c7f3d8125c8d13c0a31c5f14fdabdb3d0efbd676
refs/heads/master
2020-09-21T10:07:44.440002
2019-11-26T04:48:28
2019-11-26T04:48:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,389
java
package io.anuke.arc.scene.ui; import io.anuke.arc.collection.Array; /** * Manages a group of buttons to enforce a minimum and maximum number of checked buttons. This enables "radio button" * functionality and more. A button may only be in one group at a time. * <p> * The {@link #canCheck(Button, boolean)} method can be overridden to control if a button check or uncheck is allowed. * @author Nathan Sweet */ public class ButtonGroup<T extends Button>{ private final Array<T> buttons = new Array<>(); private Array<T> checkedButtons = new Array<>(1); private int minCheckCount, maxCheckCount = 1; private boolean uncheckLast = true; private T lastChecked; public ButtonGroup(){ minCheckCount = 1; } public ButtonGroup(T... buttons){ minCheckCount = 0; add(buttons); minCheckCount = 1; } public void add(T button){ if(button == null) throw new IllegalArgumentException("button cannot be null."); button.buttonGroup = null; boolean shouldCheck = button.isChecked() || buttons.size < minCheckCount; button.setChecked(false); button.buttonGroup = this; buttons.add(button); button.setChecked(shouldCheck); } public void add(T... buttons){ if(buttons == null) throw new IllegalArgumentException("buttons cannot be null."); for(int i = 0, n = buttons.length; i < n; i++) add(buttons[i]); } public void remove(T button){ if(button == null) throw new IllegalArgumentException("button cannot be null."); button.buttonGroup = null; buttons.removeValue(button, true); checkedButtons.removeValue(button, true); } public void remove(T... buttons){ if(buttons == null) throw new IllegalArgumentException("buttons cannot be null."); for(int i = 0, n = buttons.length; i < n; i++) remove(buttons[i]); } public void clear(){ buttons.clear(); checkedButtons.clear(); } /** * Called when a button is checked or unchecked. If overridden, generally changing button checked states should not be done * from within this method. * @return True if the new state should be allowed. */ protected boolean canCheck(T button, boolean newState){ if(button.isChecked == newState) return false; if(!newState){ // Keep button checked to enforce minCheckCount. if(checkedButtons.size <= minCheckCount) return false; checkedButtons.removeValue(button, true); }else{ // Keep button unchecked to enforce maxCheckCount. if(maxCheckCount != -1 && checkedButtons.size >= maxCheckCount){ if(uncheckLast){ int old = minCheckCount; minCheckCount = 0; lastChecked.setChecked(false); minCheckCount = old; }else return false; } checkedButtons.add(button); lastChecked = button; } return true; } /** Sets all buttons' {@link Button#isChecked()} to false, regardless of {@link #setMinCheckCount(int)}. */ public void uncheckAll(){ int old = minCheckCount; minCheckCount = 0; for(int i = 0, n = buttons.size; i < n; i++){ T button = buttons.get(i); button.setChecked(false); } minCheckCount = old; } /** @return The first checked button, or null. */ public T getChecked(){ if(checkedButtons.size > 0) return checkedButtons.get(0); return null; } /** Sets the first {@link TextButton} with the specified text to checked. */ public void setChecked(String text){ if(text == null) throw new IllegalArgumentException("text cannot be null."); for(int i = 0, n = buttons.size; i < n; i++){ T button = buttons.get(i); if(button instanceof TextButton && text.contentEquals(((TextButton)button).getText())){ button.setChecked(true); return; } } } /** @return The first checked button index, or -1. */ public int getCheckedIndex(){ if(checkedButtons.size > 0) return buttons.indexOf(checkedButtons.get(0), true); return -1; } public Array<T> getAllChecked(){ return checkedButtons; } public Array<T> getButtons(){ return buttons; } /** Sets the minimum number of buttons that must be checked. Default is 1. */ public void setMinCheckCount(int minCheckCount){ this.minCheckCount = minCheckCount; } /** Sets the maximum number of buttons that can be checked. Set to -1 for no maximum. Default is 1. */ public void setMaxCheckCount(int maxCheckCount){ if(maxCheckCount == 0) maxCheckCount = -1; this.maxCheckCount = maxCheckCount; } /** * If true, when the maximum number of buttons are checked and an additional button is checked, the last button to be checked * is unchecked so that the maximum is not exceeded. If false, additional buttons beyond the maximum are not allowed to be * checked. Default is true. */ public void setUncheckLast(boolean uncheckLast){ this.uncheckLast = uncheckLast; } }
[ "arnukren@gmail.com" ]
arnukren@gmail.com
018e01bc8ce1c8bd8e38574edcc46593bffd8594
ef1b72abf5554c94661c495a0bf0a6aded89e37c
/src/net/minecraft/src/go.java
534a05ecff58f7b5c4224c70c345949a02bac494
[]
no_license
JimmyZJX/MC1.8_source
ad459b12d0d01db28942b9af87c86393011fd626
25f56c7884a320cbf183b23010cccecb5689d707
refs/heads/master
2016-09-10T04:26:40.951576
2014-11-29T06:22:02
2014-11-29T06:22:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
999
java
package net.minecraft.src; /* 1: */ import io.netty.buffer.ByteBuf; /* 2: */ import io.netty.channel.ChannelHandlerContext; /* 3: */ import io.netty.handler.codec.MessageToByteEncoder; /* 4: */ import javax.crypto.Cipher; import javax.crypto.ShortBufferException; /* 5: */ /* 6: */ public class go /* 7: */ extends MessageToByteEncoder<ByteBuf> /* 8: */ { /* 9: */ private final gm a; /* 10: */ /* 11: */ public go(Cipher paramCipher) /* 12: */ { /* 13:13 */ this.a = new gm(paramCipher); /* 14: */ } /* 15: */ /* 16: */ protected void encode(ChannelHandlerContext paramChannelHandlerContext, ByteBuf paramByteBuf1, ByteBuf paramByteBuf2) throws ShortBufferException /* 17: */ { /* 18:18 */ this.a.a(paramByteBuf1, paramByteBuf2); /* 19: */ } /* 20: */ } /* Location: C:\Minecraft1.7.5\.minecraft\versions\1.8\1.8.jar * Qualified Name: go * JD-Core Version: 0.7.0.1 */
[ "604590822@qq.com" ]
604590822@qq.com
d9ce47f916c18cddd5c9a6a86593981b930f6d73
7bea7fb60b5f60f89f546a12b43ca239e39255b5
/src/com/sun/org/apache/bcel/internal/generic/IfInstruction.java
d89c31bd6872e599e726cc04863e55ef4fa9d040
[]
no_license
sorakeet/fitcorejdk
67623ab26f1defb072ab473f195795262a8ddcdd
f946930a826ddcd688b2ddbb5bc907d2fc4174c3
refs/heads/master
2021-01-01T05:52:19.696053
2017-07-15T01:33:41
2017-07-15T01:33:41
97,292,673
0
0
null
null
null
null
UTF-8
Java
false
false
475
java
/** * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package com.sun.org.apache.bcel.internal.generic; public abstract class IfInstruction extends BranchInstruction implements StackConsumer{ IfInstruction(){ } protected IfInstruction(short opcode,InstructionHandle target){ super(opcode,target); } public abstract IfInstruction negate(); }
[ "panxiaoping@9af151c5-2e68-9a40-a710-8967c58c11f7" ]
panxiaoping@9af151c5-2e68-9a40-a710-8967c58c11f7
241da5d2192678172fe2ced5855abeea6fc8e9b6
69005ab4c8cc5d88d7996d47ac8def0b28730b95
/android-medium/app/src/main/java/test/perf/MyPerfClass_2451.java
602760e215a68622381a563b095a44e96956873b
[]
no_license
sakerbuild/performance-comparisons
ed603c9ffa0d34983a7da74f7b2b731dc3350d7e
78cd8d7896c4b0255ec77304762471e6cab95411
refs/heads/master
2020-12-02T19:14:57.865537
2020-05-11T14:09:40
2020-05-11T14:09:40
231,092,201
0
0
null
null
null
null
UTF-8
Java
false
false
803
java
package test.perf; public class MyPerfClass_2451{ private final String property; public MyPerfClass_2451(String param) { this.property = param; } public String getProperty() { return property; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((property == null) ? 0 : property.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; MyPerfClass_2451 other = (MyPerfClass_2451) obj; if (property == null) { if (other.property != null) return false; } else if (!property.equals(other.property)) return false; return true; } }
[ "10866741+Sipkab@users.noreply.github.com" ]
10866741+Sipkab@users.noreply.github.com
36d200097e3d68040d1f48611b751b869777b8b8
d52fd93e19f1b228589cde9f983ac4eaeb2b2e2f
/flexodesktop/GUI/flexointerfacebuilder/src/dev/java/org/openflexo/fib/editor/view/widget/FIBEditableDropDownWidget.java
7fb2ef7f17d228e07de2c93c19ef8030c8e2acb6
[]
no_license
bmangez/openflexo
597dbb3836bcb0ebe7ab1e4f601a22fca470d4d7
7d8773c59b96f460864b4408cf1f2cfc9633cf8d
refs/heads/master
2020-12-25T04:54:16.874230
2012-12-05T16:19:04
2012-12-06T15:41:49
2,393,923
0
0
null
null
null
null
UTF-8
Java
false
false
2,587
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.fib.editor.view.widget; import java.util.Observable; import java.util.Vector; import java.util.logging.Logger; import javax.swing.JComboBox; import org.openflexo.fib.editor.controller.FIBEditorController; import org.openflexo.fib.editor.view.FIBEditableView; import org.openflexo.fib.editor.view.FIBEditableViewDelegate; import org.openflexo.fib.editor.view.PlaceHolder; import org.openflexo.fib.model.FIBDropDown; import org.openflexo.fib.model.FIBModelNotification; import org.openflexo.fib.view.widget.FIBDropDownWidget; import org.openflexo.logging.FlexoLogger; public class FIBEditableDropDownWidget extends FIBDropDownWidget implements FIBEditableView<FIBDropDown,JComboBox> { private static final Logger logger = FlexoLogger.getLogger(FIBEditableDropDownWidget.class.getPackage().getName()); private final FIBEditableViewDelegate<FIBDropDown,JComboBox> delegate; private final FIBEditorController editorController; @Override public FIBEditorController getEditorController() { return editorController; } public FIBEditableDropDownWidget(FIBDropDown model, FIBEditorController editorController) { super(model,editorController.getController()); this.editorController = editorController; delegate = new FIBEditableViewDelegate<FIBDropDown,JComboBox>(this); model.addObserver(this); } @Override public void delete() { delegate.delete(); getComponent().deleteObserver(this); super.delete(); } public Vector<PlaceHolder> getPlaceHolders() { return null; } public FIBEditableViewDelegate<FIBDropDown,JComboBox> getDelegate() { return delegate; } @Override public void update(Observable o, Object dataModification) { if (dataModification instanceof FIBModelNotification) { delegate.receivedModelNotifications(o, (FIBModelNotification)dataModification); } } }
[ "guillaume.polet@gmail.com" ]
guillaume.polet@gmail.com
01ee82d4ae0b91cc9f7775052daf42363b2d7b71
68449dd01b0998714a5a8e9016d5097fb2112dd9
/Leetcode/算法/1295-统计位数为偶数的数字/Main.java
e268b3fa119926e19207dd5eacf87d350b10ca6f
[]
no_license
XsJim/Problem-Solving-Record-Java
113dd58f180033dcedadb7358d7f06d666c00312
a0453d2ddf206aa22372f14701481dc1558839e0
refs/heads/master
2021-07-05T16:51:53.573573
2021-06-19T08:43:24
2021-06-19T08:43:24
239,968,743
1
0
null
null
null
null
UTF-8
Java
false
false
648
java
public class Main { public static void main(String[] args) { System.out.println(new Solution().findNumbers(new int[] {12,345,2,6,7896})); System.out.println(new Solution().findNumbers(new int[] {555,901,482,1771})); } } class Solution { public int findNumbers(int[] nums) { int sum = 0; for (int i = 0; i < nums.length; i++) { if (count(nums[i]) % 2 == 0) sum++; } return sum; } private static int count(int num) { int sum = 0; while (num != 0) { sum++; num /= 10; } return sum; } }
[ "shixinsheng@live.cn" ]
shixinsheng@live.cn
8cf21926b791d304e7c4d1ea043894d8b4529692
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-14227-4-3-NSGA_II-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/store/migration/AbstractDataMigrationManager_ESTest_scaffolding.java
e821e9503a4d2de5ee6b2515488029ace737016a
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
462
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sat Jan 18 17:53:22 UTC 2020 */ package com.xpn.xwiki.store.migration; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class AbstractDataMigrationManager_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
cb1feb4179a39d7eed74469ae7592c43ab5052c9
b41a76a5c84110abef8a49f921b71eea727cbb2b
/Welcom/src/main/java/org/squale/welcom/outils/interpel/InterpelConfig.java
840b543921b8c2e13bd8377112b4f316486d55bf
[]
no_license
zeeneddie/squale
d175db676504a92f7e1148fc28512bb88d2d3bd6
e6a44c744e37317b5d81cf5081dcd6ad5360c132
refs/heads/master
2020-03-27T07:55:27.557302
2018-09-04T07:01:42
2018-09-04T07:01:42
146,205,739
0
0
null
null
null
null
ISO-8859-1
Java
false
false
5,182
java
/** * Copyright (C) 2008-2010, Squale Project - http://www.squale.org * * This file is part of Squale. * * Squale is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or any later version. * * Squale 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 Lesser General Public License * along with Squale. If not, see <http://www.gnu.org/licenses/>. */ /* * Créé le 7 oct. 04 * * Pour changer le modèle de ce fichier généré, allez à : * Fenêtre&gt;Préférences&gt;Java&gt;Génération de code&gt;Code et commentaires */ package org.squale.welcom.outils.interpel; import java.util.Properties; /** * Classe de config pour transfert Interpel <br> * La classe peut etre autonome en utilisant des valeur par defaut.<br> * Cependant nous conseillons l'utilisation d'un fichier de properties<br> * permettant une meilleure souplesse pour l'avenir.<br> * Les informations connues dans ce fichier sont definit par le BT<br> * <br> * * @deprecated * @author M327837 */ public class InterpelConfig { /** Machine Interpel par defaut */ private String host = "noshot.squale.org"; /** Executable interpel par default */ private String rpx = "/home/pelican/peliunix/run_time/etc/rpx"; /** Site a deployer */ private Site site = null; /** Repertoire a postionner pour Interpel */ private String path = "/dsk1/pelican/data"; /** Nom d'utilisateur pour effectuer le rsh */ private String user = "peluser"; /** * Initialise la config pour Interperl Utilise les parametres en dur */ public InterpelConfig() { } /** * Initialise la config pour Interperl * * @param prop : Fichier de poerpties de configuration d'Interpel * @throws InterpelConfigException : Probleme de configuration dans le fichier perperties */ public InterpelConfig( final Properties prop ) throws InterpelConfigException { if ( prop.containsKey( "host" ) ) { host = prop.getProperty( "host" ); } else { throw new InterpelConfigException( "La variable 'host' n'est pas definit\n" ); } if ( prop.containsKey( "rpx" ) ) { rpx = prop.getProperty( "rpx" ); } else { throw new InterpelConfigException( "La variable 'rpx' n'est pas definit\n" ); } if ( prop.containsKey( "site" ) ) { try { site = Site.getSite( prop.getProperty( "site" ) ); } catch ( final SiteException e ) { throw new InterpelConfigException( e.getMessage() ); } } if ( prop.containsKey( "path" ) ) { path = prop.getProperty( "path" ); } else { throw new InterpelConfigException( "La variable 'path' n'est pas definit\n" ); } if ( prop.containsKey( "user" ) ) { user = prop.getProperty( "user" ); } else { throw new InterpelConfigException( "La variable 'user' n'est pas definit\n" ); } } /** * @return Retourne la machine pour lequel Interpel est lancé */ public String getHost() { return host; } /** * @return Retourne le chamin pour lancer Interpel */ public String getPath() { return path; } /** * @return retourne l'executable qui est lancé pour Interpel */ public String getRpx() { return rpx; } /** * @return retourne le site Interpel pour transefrer le fichier */ public Site getSite() { return site; } /** * @return Recupere le user Utliser pour Interpel */ public String getUser() { return user; } /** * @param string Machine Interpel */ public void setHost( final String string ) { host = string; } /** * @param string Chemin pour poser le fichier */ public void setPath( final String string ) { path = string; } /** * @param string Executable pour lancer le transfert */ public void setRpx( final String string ) { rpx = string; } /** * @param pSite : Site Interpel */ public void setSite( final Site pSite ) { this.site = pSite; } /** * @param string : User pour le transfert Interpel */ public void setUser( final String string ) { user = string; } }
[ "bellingard@gmail.com" ]
bellingard@gmail.com
96c3a919791da5955ed7faba7dd64659db60ea49
2ca93846ab8f638a7d8cd80f91566ee3632cf186
/Entire Dataset/4-28/Dealer/Shipper.java
56950e05a25f2a98692816463231a8f1a0bd3c60
[ "MIT" ]
permissive
hjc851/SourceCodePlagiarismDetectionDataset
729483c3b823c455ffa947fc18d6177b8a78a21f
f67bc79576a8df85e8a7b4f5d012346e3a76db37
refs/heads/master
2020-07-05T10:48:29.980984
2019-08-15T23:51:55
2019-08-15T23:51:55
202,626,196
0
0
null
null
null
null
UTF-8
Java
false
false
3,796
java
package Dealer; import Programming.Synchronization.Questionnaire.FaController; import Programming.Synchronization.Grr.GrrProgrammer; import Programming.Proceedings; import Programming.Workflow.Gpa.RailCompiler; import Programming.Workspace.Tds.DefinedCompiler; import Programming.Spreadsheet; import Programming.Server.Spt.DegeneratesDeveloper; import Device.CycleJoystick; import java.io.IOException; import java.util.*; import static java.lang.System.out; import static java.lang.String.format; import static java.util.Collections.sort; public class Shipper { public static int ExpeditionPeriod; private java.util.LinkedList<Proceedings> methodologies; private java.util.ArrayDeque<Spreadsheet> types; static double cksMaterials = 0.75008588003417; public Shipper() { Programming.Spreadsheet using; Programming.Spreadsheet rail; Programming.Spreadsheet obtaining; Programming.Spreadsheet grr; Programming.Spreadsheet dc; this.types = (new java.util.ArrayDeque<>()); using = (new Server.Spt.DegeneratesDeveloper()); rail = (new Workflow.Gpa.RailCompiler()); obtaining = (new Workspace.Tds.DefinedCompiler()); grr = (new Synchronization.Grr.GrrProgrammer()); dc = (new Synchronization.Questionnaire.FaController()); this.types.addLast(using); this.types.addLast(rail); this.types.addLast(obtaining); this.types.addLast(dc); this.types.addLast(grr); } public synchronized void layLitigate(java.util.LinkedList<Proceedings> methodology) { String decreaseThresholds; decreaseThresholds = ("rqIIs1"); this.methodologies = (methodology); } public synchronized void rigidMailAmount(int detachmentBeginning) { int span; span = (-211388282); this.ExpeditionPeriod = (detachmentBeginning); } public synchronized void carryDevice() { String significant; significant = ("hNb9BuNcKobKArgjm"); for (Programming.Spreadsheet ora : types) synx242(ora); this.photographySnapshot(); } public synchronized void photographySnapshot() { int dept; dept = (-530869720); try { java.lang.String usb; CycleJoystick.TurnoutCharge.write("Summary\n"); out.println("Summary"); usb = (format("%-9s%23s%26s", "Algorithm", "Average Waiting Time", "Average Turnaround Time")); CycleJoystick.TurnoutCharge.write(usb + "\n"); out.println(usb); for (Programming.Spreadsheet fh : types) synx243(fh); CycleJoystick.TurnoutCharge.close(); } catch (java.io.IOException abel) { out.println("Unable to write summary to file."); } } private synchronized void synx242(Spreadsheet ora) { ora.offsetCompiler(); while (ora.goIsMoving()) { if (ora.produceUndergoneMethodologiesDensity() == methodologies.size()) { ora.kiboshSynchronization(); } else { java.util.LinkedList<Proceedings> headingMethodologies; headingMethodologies = (new java.util.LinkedList<>()); for (Programming.Proceedings cern : methodologies) { if (cern.haveMeetPeriods() == ora.letAfootDials() + 1) { headingMethodologies.add(new Programming.Proceedings(cern)); } } sort(headingMethodologies); while (!headingMethodologies.isEmpty()) { ora.serveInward(headingMethodologies.removeFirst()); } ora.doContinuingVibrate(ora.letAfootDials() + 1); ora.weapMark(); } } } private synchronized void synx243(Spreadsheet fh) { java.lang.String recap; recap = (format( "%-9s%23.2f%26.2f", fh.workflowCite(), fh.sustainLevelJustThing(), fh.producePercentageTransitionNow())); CycleJoystick.TurnoutCharge.write(recap + "\n"); out.println(recap); } }
[ "hayden.cheers@me.com" ]
hayden.cheers@me.com
76c9fee8d85291abac41bb07d2fb357b99fc7ec4
f2a014e3cb0b04849b3cec3490fa962725e79204
/jseckill-backend/src/main/java/com/liushaoming/jseckill/backend/service/SeckillService.java
eea5e0ac6441117ca9853233bf5d36a56438d6f3
[ "Apache-2.0" ]
permissive
future1314/jseckill
32d07bb4e2405b5af90eec26cc80617afd1a5118
6f84d53ebb142facf533ab93dc67568ee16ad225
refs/heads/master
2020-04-24T19:17:47.520684
2019-02-23T08:38:49
2019-02-23T08:38:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,178
java
package com.liushaoming.jseckill.backend.service; import com.liushaoming.jseckill.backend.dto.Exposer; import com.liushaoming.jseckill.backend.dto.SeckillExecution; import com.liushaoming.jseckill.backend.entity.Seckill; import com.liushaoming.jseckill.backend.exception.SeckillException; import org.springframework.transaction.annotation.Transactional; import java.util.List; public interface SeckillService { /** * 查询所有秒杀记录 * * @return */ List<Seckill> getSeckillList(); /** * 查询单个秒杀记录 * * @param seckillId * @return */ Seckill getById(long seckillId); /** * 秒杀开启输出秒杀接口地址, * 否则输出系统时间和秒杀时间 * * @param seckillId */ Exposer exportSeckillUrl(long seckillId); /** * 执行秒杀操作 * * @param seckillId * @param userPhone * @param md5 */ SeckillExecution executeSeckill(long seckillId, long userPhone, String md5) throws SeckillException; SeckillExecution doUpdateStock(long seckillId, long userPhone) throws SeckillException; }
[ "liushaomingdev@163.com" ]
liushaomingdev@163.com
b9fe78f7fccdf9c68e78ed601dc8de43be5363e3
318f01d9c7d6d5615c32eaf3a48b38e72c89dec6
/thirdpp-manager/src/main/java/com/zdmoney/manager/service/TSysAppService.java
5ab3ece55cbb1f1338d64196457f691b890f822e
[]
no_license
ichoukou/thirdapp
dce52f5df2834f79a51895475b995a3e758be8c0
aae0a1596e06992b600a1a442723b833736240e3
refs/heads/master
2020-05-03T03:12:33.064089
2018-04-18T06:00:14
2018-04-18T06:00:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
634
java
package com.zdmoney.manager.service; import java.util.List; import java.util.Map; import com.zdmoney.manager.models.TBankInfo; import com.zdmoney.manager.models.TSysApp; /** * * @author wyj * */ public interface TSysAppService { List<Map> getSysAppList(Map<String, Object> params); int insert(TSysApp app); int updateSysApp(TSysApp app); TSysApp selectSysAppByID(long id); int getSysAppListCount(Map<String, Object> params); int batchDeleteInfo(List<Integer> list); List<Map> getSysAppMeanu(); int getAppCodeCount(String code); String getSysAppName(Map<String, Object> params); int updateSysAppFlag (TSysApp app); }
[ "gaohongxuhappy@163.com" ]
gaohongxuhappy@163.com
aca0bf3546dffc901035681820b307ef32eb9721
f07677b552f96e0aa6ec2470b564d55defcc5cef
/gene-portal/src/main/java/com/gene/common/utils/MD5Utils.java
e30f4c1baff3a68b8233d2ecc69a5c68333bb66b
[]
no_license
tangminnan/ailande
44e346d6f24dae1798c4985f45c8c48886015b6e
e9402a03bfd932451d37f46dfe37c42bffb30122
refs/heads/master
2022-09-23T23:26:06.165743
2020-05-25T12:55:23
2020-05-25T12:55:23
214,069,146
0
0
null
2022-09-01T23:14:10
2019-10-10T02:33:43
JavaScript
UTF-8
Java
false
false
804
java
package com.gene.common.utils; import org.apache.shiro.crypto.hash.SimpleHash; import org.apache.shiro.util.ByteSource; public class MD5Utils { private static final String SALT = "1qazxsw2"; private static final String ALGORITH_NAME = "md5"; private static final int HASH_ITERATIONS = 2; public static String encrypt(String pswd) { String newPassword = new SimpleHash(ALGORITH_NAME, pswd, ByteSource.Util.bytes(SALT), HASH_ITERATIONS).toHex(); return newPassword; } public static String encrypt(String username, String pswd) { String newPassword = new SimpleHash(ALGORITH_NAME, pswd, ByteSource.Util.bytes(username + SALT), HASH_ITERATIONS).toHex(); return newPassword; } public static void main(String[] args) { //System.out.println(MD5Utils.encrypt("admin", "1")); } }
[ "349829327@qq.com" ]
349829327@qq.com